a608362187dcf743eacc69f730a4dc4d1c5c3e46
[gnulib.git] / ChangeLog
1 2013-03-11  Eric Blake  <eblake@redhat.com>
2
3         tests: make it easier to bypass alarm time in debugger
4         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
5         * tests/test-memmem.c (main): Likewise.
6         * tests/test-passfd.c (main): Likewise.
7         * tests/test-ptsname.c (main): Likewise.
8         * tests/test-ptsname_r.c (main): Likewise.
9         * tests/test-strcasestr.c (main): Likewise.
10         * tests/test-strstr.c (main): Likewise.
11
12         regex: port to mingw's recent addition of undeclared alarm
13         * doc/posix-functions/alarm.texi (alarm): Document that alarm
14         exists but still doesn't work in newer mingw.
15         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
16         not existence.  Ensure SIGALRM is not trapped.
17         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
18         * m4/regex.m4 (gl_REGEX): Likewise.
19         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
20         * tests/test-regex.c (main): Use correct probe for alarm.
21
22         putenv: avoid compilation warning on mingw
23         * lib/putenv.c (_unsetenv): Protect variable declaration.
24         (putenv): Fix indentation.
25
26 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
27
28         unistd: don't prevent Tru64 Unix from using gnulib strtod.
29         * lib/unistd.in.h: be careful not to include un-needed system
30         stdlib.h from here, because that prevents gnulib stdlib.h from
31         defining rpl_strtod correctly.
32
33 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
34
35         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
36         changesets, but for the 'precision 0' test.
37         * tests/test-vasprintf-posix.c (test_function): Don't insist on
38         round-to-even, since POSIX says rounding is implementation-defined
39         and OS X 10.8.2 rounds 1.51 to 1 here.
40
41         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
42         changeset.
43         * tests/test-vasprintf-posix.c (test_function): Don't insist on
44         round-to-even, since POSIX says rounding is implementation-defined
45         and OS X 10.8.2 rounds 1.5 to 1 here.
46
47 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
48
49         vasnprintf-posix-tests: allow rounding 1.5 to 1
50         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
51         round-to-even, since POSIX says rounding is implementation-defined
52         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
53         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
54
55         bootstrap: port to FreeBSD
56         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
57         that treat '--' differently.  Reported by Mats Erik Andersson in
58         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
59
60 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
61
62         regex: rename remaining __attribute calls to __attribute__.
63         2012-02-25 changed definition of __attribute, but left some uses
64         unchanged, preventing compilation of regex module on most non-gcc
65         environments.
66         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
67         (lookup_collation_sequence_value, build_range_exp)
68         (build_collating_symbol): Set attributes with newly renamed
69         __attribute__ decorator.
70         * lib/regex_internal.c (re_string_peek_byte_case)
71         (re_node_set_compare, re_node_set_contains): Likewise.
72         * lib/regexec.c (acquire_init_state_context): Likewise.
73
74 2013-03-06  Bruno Haible  <bruno@clisp.org>
75
76         execute: Revert last change, but use a different condition.
77         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
78         on Windows.
79
80 2013-03-05  Eric Blake  <eblake@redhat.com>
81
82         execute: drop dead code
83         * lib/execute.c (nonintr_close, nonintr_open): Delete.
84
85 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
86
87         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
88         * m4/non-recursive-gnulib-prefix-hack.m4
89         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
90         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
91         <http://bugs.gnu.org/10305#237>.
92
93 2013-03-04  Eric Blake  <eblake@redhat.com>
94
95         test-getsockopt: avoid compiler warning
96         * tests/test-getsockopt.c (includes): Ensure close is declared.
97
98 2013-03-02  Bruno Haible  <bruno@clisp.org>
99
100         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
101         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
102
103 2013-03-02  Bruno Haible  <bruno@clisp.org>
104
105         gettext: Update to version 0.18.2.
106         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
107         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
108                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
109
110 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
111
112         regex: merge patches from libc
113
114         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
115         * lib/regex_internal.h (__attribute__): Rename from __attribute.
116         All uses changed.
117         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
118         (re_string_wchar_at, re_string_elem_size_at):
119         Mark function as possibly unused.
120
121         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
122         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
123         elements compare against the byte sequence of it, not its name.
124
125 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
126
127         putenv: port better to native Windows
128         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
129         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
130         (_unsetenv): Use _putenv if available.
131         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
132         a bit less likely to cause damage.
133         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
134         Fix the wrong value with SetEnvironmentVariable.
135         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
136         code better.
137
138 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
139
140         regex: ignore old-style-definition warnings
141         * lib/regex.c: Add pragma to ignore these warnings.
142         Problem reported for GNU tar by Pavel Raiskup.
143
144 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
145
146         getcwd: support coreutils better
147         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
148         but this might not be correct in coreutils, which disables
149         the raw decl checks.  Problem reported by Nagendra in
150         <http://bugs.gnu.org/10305#192>.
151         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
152         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
153         Test the getcwd function, not any macro, since getcwd.c wants the
154         function.
155         * m4/getcwd.m4 (gl_FUNC_GETCWD):
156         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
157         compile, as might happen if there's a macro but no function.
158
159         strtod: support coreutils better
160         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
161         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
162         disables the raw decl checks.  This assumes there is an underlying
163         strtod, but that's a safe assumption these days.
164         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
165
166         mountlist: port to HP NonStop
167         Reported by Joachim Schmitz in
168         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
169         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
170         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
171
172 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
173
174         extern-inline: avoid compilation error with HP-UX cc
175         Reported by Richard Lloyd in
176         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
177         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
178         Suppress extern inline with HP-UX cc.  This should be safe,
179         though it may hurt performance.  Perhaps someone with some HP-UX
180         experience can come up with a higher-performance fix.
181
182 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
183
184         putenv: fix heap corruption with mixed putenv/_putenv
185         Problem reported by Michael Goffioul in
186         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
187         * lib/putenv.c (putenv) [HAVE__PUTENV]:
188         Rely on _putenv to allocate the new environment.
189         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
190         * modules/putenv (configure.ac): Use it.
191
192 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
193
194         unsetenv etc.: port to Solaris 11 + GNU Emacs
195         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
196         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
197         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
198         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
199         idea but is too painful to fix right now), and without this gnulib
200         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
201         compiling unsetenv.c on Solaris 11.  Fix the problem for
202         unsetenv.c, and fix other similar occurrences.
203
204 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
205
206         secure_getenv: fix C++ declaration typo
207         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
208         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
209         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
210
211 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
212
213         careadlinkat: stop exporting careadlinkatcwd
214         Only Emacs used it directly, and Emacs no longer needs it.
215         * NEWS: Document this simplification.
216         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
217         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
218         for readlink.
219         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
220         Don't include stdlib.h; no longer needed.
221         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
222         * lib/relocwrapper.c: Adjust comment to match new dependencies.
223         * modules/areadlink (Depends-on): Add readlink.
224         (Maintainer): Add self.
225         * modules/careadlinkat (Depends-on): Remove readlink.
226
227         extensions: port better to HP-UX
228         This is merged from git Autoconf.
229         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
230         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
231         so that it's compatible with the value used when compiling.
232
233         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
234         Problem reported by Mats Erik Andersson in
235         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
236         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
237         openpty function exists, not merely when we intend to replace it.
238         This corrects the 2013-01-31 patch, which mistakenly defined
239         HAVE_OPENPTY even on hosts that lacked it.
240
241 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
242
243         secure_getenv: fix include typo
244         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
245
246         secure_getenv: port better to FreeBSD and Solaris
247         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
248         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
249         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
250         This works better on BSDish platforms.
251         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
252         Test for issetugid if __secure_getenv is missing.
253
254 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
255
256         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
257         Some of these changes are merged in from git Autoconf.
258         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
259         When deciding whether to define _XOPEN_SOURCE, inspect the
260         preprocessor macro __hpux instead of the more-heavyweight
261         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
262         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
263         as the key for __EXTENSIONS__.
264
265         unistd: avoid namespace pollution on non-glibc systems
266         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
267         This avoids namespace pollution on non-glibc systems, by causing
268         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
269         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
270         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
271
272 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
273
274         tmpdir: use secure_getenv
275         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
276         Define to secure_getenv, not getenv.
277         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
278         as that's now secure_getenv's job.
279         * modules/tmpdir (Depends-on): Add secure_getenv.
280
281         tempname: use secure_getenv
282         * lib/tempname.c (__secure_getenv) [!_LIBC]:
283         Define to secure_getenv, not getenv.
284         * modules/tempname (Depends-on):
285         Add secure_getenv.
286
287         secure_getenv: new module
288         * MODULES.html.sh (Extra functions based on ANSI C 89):
289         Add secure_getenv.
290         * doc/glibc-functions/secure_getenv.texi: New file.
291         * doc/gnulib.texi: Include it.
292         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
293         New files.
294         * lib/stdlib.in.h (secure_getenv): New decl.
295         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
296         * modules/stdlib (stdlib.h):
297         Add secure_getenv checks.
298
299 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
300
301         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
302         Reported for OS X 10.8.2 by Assaf Gordon in
303         <http://bugs.gnu.org/13516>.
304         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
305         !HAVE_OPENAT && !HAVE_FDOPENDIR.
306         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
307         so that they can be kept in sync more easily.  Avoid PATH_MAX
308         test on the Hurd.  Sync from test-getcwd.c for errno tests after
309         mkdir or chdir failure.
310         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
311         lib/getcwd.c.
312         (test_abort_bug): Do not test for the deep directory bug unless we
313         have openat support.  Avoid PATH_MAX test on the Hurd.
314
315         regex-tests, regex: fix bug: memset undeclared
316         * tests/test-regex.c: Don't include regex.h twice.  Include
317         string.h, to declare memset.  Christensen's report also mentioned
318         this issue.
319         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
320         test-regex.c, to avoid future problems like this.  Remove
321         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
322         twice.
323
324         regex-tests: fix link errors on older Solaris
325         These need to link with @LIBINTL@ to get libintl_gettext.
326         Problem reported by Tom G. Christensen in
327         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
328         * modules/regex-tests (test_regex_LDADD): New macro.
329
330 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
331
332         regex-tests: new module
333         * modules/regex-tests, tests/test-regex.c: New files.
334
335         regex: fix off-by-one error in configure test
336         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
337
338 2013-01-31  Eric Blake  <eblake@redhat.com>
339
340         regex: avoid infinite configure test
341         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
342
343 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
344
345         openpty: fix bug where HAVE_OPENPTY wasn't defined
346         See the thread starting at:
347         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
348         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
349         openpty function exists, not merely when we intend to replace it.
350
351 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
352
353         sys_time: port to Solaris 2.6
354         There is a circularity problem on Solaris 2.6, where <time.h> includes
355         <sys/time.h> for struct timespec.  The include nesting is gnulib
356         <time.h>, system <time.h>, gnulib <sys/time.h>, system
357         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
358         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
359         <sys/siginfo.h>; the last, innermost file needs struct
360         timestruc_t, which is defined in <sys/time.h>, which has not been
361         fully parsed.  Problem reported by Tom G. Christensen in
362         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
363         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
364         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
365         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
366         uses split double-inclusion guards.
367
368 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
369
370         regex: test for buffer overrun
371         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
372         for the just-fixed regex bug.
373
374 2013-01-29  Andreas Schwab  <schwab@suse.de>
375
376         regex: fix buffer overrun in regexp matcher [BZ #15078]
377         * lib/regexec.c (extend_buffers): Add parameter min_len.
378         (check_matching): Pass minimum needed length.
379         (clean_state_log_if_needed): Likewise.
380         (get_subexp): Likewise.
381
382 2013-01-28  Pádraig Brady  <P@draigBrady.com>
383
384         mountlist: don't consider "devtmpfs" as dummy
385         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
386         as there is storage associcated with it.
387
388 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
389
390         futimens-tests, utimens-tests: Depend on gettext.
391         This works around a problem introduced in my 2013-01-12 patch,
392         which added @LIBINTL@ to these modules.
393         * modules/futimens-tests (Depends-on):
394         * modules/utimens-tests (Depends-on): Add gettext.
395
396 2013-01-26  Eric Blake  <eblake@redhat.com>
397
398         test-getpeername: fix typo
399         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
400
401 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
402
403         bootstrap: remove the need for a sorted .gitignore file
404         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
405         rename to insert_if_absent(), so that we don't need or generate
406         a sorted .gitignore file.  We do require a .gitignore with no
407         existing duplicate entries and enforce that.
408         (sort_patterns): Remove this function as we now use the simpler
409         technigue of inserting blacklist entries at the top of the file,
410         assuming gnulib won't be inserting !whitelist entries.
411
412 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
413
414         readlinkat: don't depend on gl_FUNC_OPENAT
415         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
416         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
417         renameat.m4, symlinkat.m4; but one thing at a time.
418
419         statat: new module, split out from fstatat
420         GNU Emacs needs the POSIX-specified fstatat, but not the
421         gnulib-specified statat and lstat.  Split the latter two into a
422         new module 'statat'.
423         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
424         * lib/openat.h, lib/statat.c (STATAT_INLINE):
425         Rename from FSTATAT_INLINE. All uses changed.
426         * modules/fstatat (Files): Remove lib/statat.c.
427         (gl_MODULE_INDICATOR([fstatat])): Remove.
428         (lib_SOURCES): Remove.
429         (Maintainer): Add self.
430         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
431         * tests/test-fstatat.c (BASE): Don't define if already defined.
432         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
433
434 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
435
436         tests: don't assume fd 99 is closed
437         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
438         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
439         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
440         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
441         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
442         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
443         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
444         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
445         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
446         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
447         * tests/test-fwrite.c, tests/test-getpeername.c:
448         * tests/test-getsockname.c, tests/test-getsockopt.c:
449         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
450         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
451         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
452         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
453         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
454         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
455         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
456         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
457         * tests/test-unlinkat.c, tests/test-unlockpt.c:
458         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
459         Close file descriptor 99, instead of assuming it's already closed.
460
461 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
462
463         stpncpy: port to OS X 10.8
464         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
465         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
466
467 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
468
469         unistd: port to recent mingw
470         * lib/unistd.in.h: Remove special invocation convention for mingw,
471         which breaks for the latest mingw version.  See John W. Eaton in
472         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
473
474         largefile: port better to Mac OS X 10.5
475         This patch is backported from Autoconf git.
476         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
477         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
478         with ino_t size being different for configuration time versus
479         build/run time.  Problem reported by PHO in
480         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
481
482 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
483
484         doc: clarify -Werror
485         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
486         clarify that it's intended for developers, not for ordinary builds,
487         and mention --enable-gcc-warnings as one possible use.
488
489 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
490
491         stdint: fix build with Android's Bionic fox x86
492         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
493         was already included as _SSIZE_T_DEFINED_ might also be defined
494         in include/machine/_types.h, which is included by stdio.h
495
496 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
497
498         net_if-tests: port to Solaris 7 + GCC 3.4.6
499         Problem reported by Tom G. Christensen in
500         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
501         * tests/test-net_if.c (ni): Move to next the code that uses it,
502         so that it's declared only if needed.
503
504 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
505
506         net_if-tests: port to older Solaris
507         Problem reported by Tom G. Christensen in
508         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
509         * modules/net_if-tests (NET_IF_LIB): New substitution.
510         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
511         (HAVE_IF_NAMEINDEX): New C macro.
512         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
513
514         system-quote-tests: port to older Solaris
515         Problem reported by Tom G. Christensen in
516         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
517         * tests/test-system-quote-child.c (fopen, fread): Undef.
518
519         c-xvasprintf etc.: fix link errors on older Solaris
520         These need to link with @LIBINTL@ to get libintl_gettext.
521         Problem reported by Tom G. Christensen in
522         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
523         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
524         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
525         * modules/futimens-tests (test_futimens_LDADD):
526         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
527
528 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
529
530         locale: port to Solaris 2.6 and 7 + GNU gettext
531         * lib/locale.in.h: Just include_next <locale.h> when
532         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
533         when combining the localename module with GNU gettext 0.18.2.
534         Problem reported by Tom G. Christensen in
535         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
536
537 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
538
539         stdlib: port to Solaris 2.6
540         Also, the code worked on Solaris 7 through 9 only by accident.
541         Problem reported by Tom G. Christensen in
542         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
543         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
544         simply include the system stdlib.h.
545         * lib/getopt.in.h (__need_system_stdlib_h):
546         * lib/pthread.in.h (__need_system_stdlib_h):
547         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
548         Define when including <stdlib.h>, to avoid problems at least for
549         the pthread case on Solaris 2.6 and 7.  These .h files can get by
550         with the system stdlib.h.
551
552 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
553
554         doc: update main copyright year
555         * doc/gnulib.texi: Update copyright date.
556
557         doc: improve ISO 8601 discussion
558         * doc/parse-datetime.texi (Combined date and time of day items):
559         Specify more carefully what formats are supported and what is
560         done with excess precision.
561
562 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
563
564         doc: avoid small caps
565         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
566         they're more trouble than they're worth.  Suggested by Karl Berry
567         in <http://bugs.gnu.org/13360>.
568
569         regex: conform to strict C
570         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
571         From Aharon Robbins.
572
573         gnulib-tool: fix incompatibility with autopoint 0.18.2
574         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
575         Problem reported by Tom G. Christensen in
576         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
577
578 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
579
580         fprintftime: bring back and reword fwrite comment
581         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
582
583         stdio: remove now-unnecessary stdio.c
584         Since stdio.in.h no longer uses inline functions, we no longer
585         need to compile the extern versions.
586         * lib/stdio.c: Remove.
587         * modules/stdio (Files): Remove lib/stdio.c.
588         (lib_SOURCES): Remove.
589
590         unicodeio: depend on stdio, not ignore-value
591         * lib/unicodeio.c: Do not include ignore-value.h.
592         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
593         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
594
595         fprintftime: depend on stdio, not ignore-value
596         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
597         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
598         since the stdio module arranges to silence that warning now.
599         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
600
601 2012-10-04  Simon Josefsson  <simon@josefsson.org>
602
603         stdint-tests: Fix expanded-before-required-warning.
604         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
605
606 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
607
608         fwrite: silence __wur only for older glibc versions
609         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
610         This will help us remove this workaround some time in the far future.
611
612 2013-01-03  Eric Blake  <eblake@redhat.com>
613
614         fwrite: silence __wur without using inline
615         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
616         just gcc, and in a way that avoids inline issues.
617         * modules/stdio (Depends-on): Drop extern-inline.
618
619 2013-01-03  Jim Meyering  <jim@meyering.net>
620
621         update-copyright: avoid copyright notice date corruption
622         Given a sequence of copyright year numbers in which the final
623         one was a two-digit number that happened to be a substring of
624         a preceding four-digit year number, we would mistakenly update
625         the substring (from two- to four-digit) rather than the two-digit
626         number at the end, which, combined with the addition of the current
627         4-digit year number would yield two 5-digit year numbers, e.g.,
628         here, it would convert the first "99" to "1999, 2013" rather than
629         the final one:
630           1991, 99
631           11999, 20131, 1999
632         * build-aux/update-copyright: Tighten a regexp.
633         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
634         Reported by Joseph Myers in
635         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
636
637 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
638
639         regex: omit needless signed-pointer casts
640         * lib/regcomp.c (build_charclass, build_charclass_op):
641         Use char *, not unsigned char *, for class name and extra.
642         The char values are always nonnegative so there's no need to
643         insist on unsigned char * here, and using char * removes the need
644         for casts.  Reported by Aharon Robbins in
645         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
646
647         regex: support Gawk, which never uses alloca
648         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
649         Do not include in this case.  Gawk doesn't supply a substitute
650         alloca.h and doesn't need one.
651
652         regex: port __libc_lock_define usage to C89
653         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
654         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
655         does not conform to C89, as it has an empty macro argument.
656         Reported by Aharon Robbins in
657         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
658
659 2013-01-01  Eric Blake  <eblake@redhat.com>
660
661         maint: update all copyright year number ranges
662         Run "make update-copyright".
663
664         version-etc: bump copyright year reported in --version
665         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
666
667 2012-12-31  Eric Blake  <eblake@redhat.com>
668
669         sigprocmask-tests: skip test if pid is unexpectedly large
670         * tests/test-sigprocmask.c (main): Add range check.
671
672         git-version-gen: avoid test -z portability glitch
673         * build-aux/git-version-gen: Prefer portable test spelling, since
674         git-version-gen is run on more than just developer machines.
675
676 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
677
678         git-version-gen: add --fallback option to use if git is not present
679         * build-aux/git-version-gen: Add support for the new option --fallback,
680         which comes into play when there is no $tarball_version_file and
681         git is not working.
682         (scriptversion): Update.
683
684         maint.mk: handle missing git with more grace
685         * top/maint.mk (no-submodule-changes, public-submodule-commit):
686         Quietly proceed if git is not present.
687
688 2012-12-31  Eric Blake  <eblake@redhat.com>
689
690         dup2: work around cygwin bug
691         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
692         * lib/dup2.c (rpl_dup2): Work around it.
693         * doc/posix-functions/dup2.texi (dup2): Document it.
694
695 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
696
697         regex: remove unnecessary dependency on localcharset.h
698         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
699         hasn't been needed for years.
700         * modules/regex (Depends-on): Remove localcharset.
701
702         regex: revert single-byte change
703         * lib/regexec.c (check_node_accept_bytes): Revert previous change
704         to this function.  This was alredy fixed in a different way, at
705         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
706         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
707         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
708
709         regex: simplify based on Gawk version
710         * lib/regex_internal.c (re_dfa_add_node): Simplify.
711         Reported by Aharon Robbins in
712         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
713
714 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
715
716         regex: check that pattern char is single-byte
717         Reported by Aharon Robbins in
718         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
719         * lib/regexec.c (check_node_accept_bytes):
720         Return 0 if the pattern string has a multibyte character here.
721
722         regex: implement rational ranges
723         Reported by Aharon Robbins in
724         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
725         * lib/regcomp.c (build_range_exp) [!_LIBC]:
726         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
727         Implement rational ranges.
728
729         regex: avoid redefining __wctype
730         Reported by Aharon Robbins in
731         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
732         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
733         #undef before defining.
734
735         regex: port to hosts where malloc (0) == NULL
736         Reported by Aharon Robbins in
737         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
738         * lib/regex_internal.c (re_node_set_alloc):
739         Don't assume that malloc (0) yields nonnull.
740         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
741         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
742         * modules/regex (Files): Add m4/eealloc.m4.
743
744         regex: port to C89
745         Reported by Aharon Robbins in
746         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
747         * lib/regcomp.c (init_word_char): Declaration before statement.
748
749         regex: merge glibc changes
750         Also, copy the license wording from glibc.  This simplifies
751         merging changes.  gnulib-tool will change the wording to GPL as
752         appropriate, when importing it to other packages.  The only
753         glibc change made since the last merge, which needs merging, is:
754         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
755         * lib/regex_internal.h (gettext): Remove use of INTUSE.
756
757         * users.txt: Add Emacs.
758
759         doc: omit mention of version when not needed
760         * doc/gnulib-intro.texi (Portability and Application Code):
761         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
762         Don't mention particular dates or versions when not necessary, so
763         that the documentation won't go out of date so quickly.
764
765         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
766
767 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
768
769         bootstrap: pass --force to autoreconf.
770         * build-aux/bootstrap (AUTORECONFFLAGS): New.
771         Add "--force" so that Automake's ylwrap and other such tools
772         be updated at each bootstrap invocation.
773         Use it.
774
775 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
776
777         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
778         The earlier patch forgot to update one of the #if conditions, causing
779         a problem on Debian testing i386 reported by Mats Erik Andersson
780         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
781         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
782         (__argp_fmtstream_puts, argp_fmtstream_puts)
783         (__argp_fmtstream_write, argp_fmtstream_write)
784         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
785
786         * doc/gnulib-readme.texi: Minor fixups.
787         (Portability guidelines): Modernize URLs.  Remove some repetition.
788         (Indent with spaces not TABs): Reword to avoid too-long lines.
789         Remove some '@ifset standalone' stuff that isn't used.
790
791         * doc/gnulib-readme.texi (Portability guidelines):
792         ctype.h, not ctime.h.
793
794         Correct name of POSIX.1-2001.
795         * doc/posix-functions/fgetc.texi (fgetc):
796         * doc/posix-functions/fgets.texi (fgets):
797         * doc/posix-functions/fread.texi (fread):
798         * doc/posix-functions/fscanf.texi (fscanf):
799         * doc/posix-functions/getc.texi (getc):
800         * doc/posix-functions/getchar.texi (getchar):
801         * doc/posix-functions/scanf.texi (scanf):
802         POSIX.1-2001, not POSIX-2001.
803
804         doc: move README into manual
805         * README: Move contents to new file doc/gnulib-readme.texi.
806         Replace with a one-line summary.
807         * doc/gnulib.texi (Brief Overview): New section,
808         with old intro preface.  Include gnulib-readme.texi for contents.
809         (Philosophy): Rename from "Introduction", since this
810         section no longer introduces the rest.  Write a new preface.
811         * doc/gnulib-readme.texi: New file, with the old contents of
812         README texinfo-ized.  This way, the README info appears
813         in the online and printed manual.
814
815 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
816
817         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
818         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
819         c_vasprintf() prototype.
820
821 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
822
823         c-vasprintf: Fix "empty declaration" warning reported by GCC.
824         * lib/c-vasprintf.h: Remove stray semicolon.
825
826 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
827
828         gettext: avoid obsolete macro AM_PROG_MKDIR_P
829         It is obsolete and is planned to be removed from Automake 1.14; see
830         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
831         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
832         (installdirs-data, installdirs-data-yes):
833         Use $(MKDIR_P), not $(mkdir_p).
834         * m4/intl.m4 (AM_INTL_SUBDIR):
835         * m4/po.m4 (AM_PO_SUBDIRS):
836         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
837
838 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
839
840         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
841         On this platform, we are not optimizing but we are using
842         the substitute for extern inlines, so compile as if
843         C99-style extern inline, or a substitute, is available.
844         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
845         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
846         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
847         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
848         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
849         Declare as ARGP_FS_EI, not as extern.
850         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
851         (__option_is_short, _option_is_end, __option_is_end)
852         [!_LIBC && __USE_EXTERN_INLINES]:
853         Declare as ARGP_EI, not as extern.
854
855 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
856
857         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
858         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
859         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
860         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
861         ...), as the latter is fatal with older Autoconfs.
862         Problem reported and fix suggested by Eric Blake in thread starting at
863         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
864
865 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
866
867         AC_PROG_MKDIR_P: don't workaround if not buggy
868         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
869         Define only for Autoconf versions before 2.62.
870         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
871         undocumented m4_PACKAGE_VERSION, for consistency with the
872         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
873         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
874         was introduced in 2.62.
875
876 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
877
878         New 'c-*printf' modules for formatted output in C locale.
879
880         New module 'c-vasnprintf'.
881         * modules/c-vasnprintf: New file.
882         * lib/c-vasnprintf.c: New file.
883         * lib/c-vasnprintf.h: New file.
884
885         New module 'c-snprintf'.
886         * modules/c-snprintf: New file.
887         * modules/c-snprintf-tests: New file.
888         * lib/c-snprintf.c: New file.
889         * lib/c-snprintf.h: New file.
890         * tests/test-c-snprintf.c: New file.
891         * tests/test-c-snprintf.sh: New file.
892
893         New module 'c-vsnprintf'.
894         * modules/c-vsnprintf: New file.
895         * modules/c-vsnprintf-tests: New file.
896         * lib/c-vsnprintf.c: New file.
897         * lib/c-vsnprintf.h: New file.
898         * tests/test-c-vsnprintf.c: New file.
899         * tests/test-c-vsnprintf.sh: New file.
900
901         New module 'c-vasprintf'.
902         * modules/c-vasprintf: New file.
903         * modules/c-vasprintf-tests: New file.
904         * lib/c-asprintf.c: New file.
905         * lib/c-vasprintf.c: New file.
906         * lib/c-vasprintf.h: New file.
907         * tests/test-c-vasprintf.c  +: New file.
908         * tests/test-c-vasprintf.sh: New file.
909
910         New module 'c-xvasprintf'.
911         * modules/c-xvasprintf: New file.
912         * modules/c-xvasprintf-tests: New file.
913         * lib/c-xasprintf.c: New file.
914         * lib/c-xvasprintf.c: New file.
915         * lib/c-xvasprintf.h: New file.
916         * tests/test-c-xvasprintf.c: New file.
917         * tests/test-c-xvasprintf.sh: New file.
918
919 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
920
921         argp: better 'inline'
922         Use extern-inline module to declare extern inline functions.
923         This avoids some bogus warning diagnostics.  Problem discovered
924         when modifying GNU tar to use the manywarnings module.
925         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
926         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
927         Define based on extern-inline.
928         * modules/argp (Depends-on): Add extern-inline.
929
930 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
931
932         filemode, sys_stat: Handle MPX files a la AIX.
933         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
934         * lib/sys_stat.in.h (S_ISMPX): New macro.
935         * tests/test-sys_stat.c: Add tests for MPX files.
936
937 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
938
939         x-to-1: honor $PERL
940         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
941         a chance to use his preferred version of Perl.  This is typically
942         required by Darwin users whose default /usr/bin/perl does not have all
943         the libraries required by help2man, and who need to use their MacPorts
944         installation of Perl instead.
945
946 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
947
948         gnu-web-doc-update: add all the new files, even in new directories
949         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
950         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
951         Use it.
952         (main): Don't use cvsutils to get the list of unknown files,
953         just add all the existing files and directories.
954
955 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
956
957         gnu-web-doc-update: improve --help
958         * build-aux/gnu-web-doc-update: Move comments into --help.
959
960 2012-12-07  Eric Wong  <normalperson@yhbt.net>
961
962         mountlist: recognize more "dummy" file systems
963         * lib/mountlist.c (ME_DUMMY_0):
964         Add these dummy FS names to the list:
965         - "debugfs" virtual filesystem for kernel debugging
966         - "devpts" PTY slave filesystem
967         - "devtmpfs" device filesystem on top of tmpfs/ramfs
968         - "fusectl" control filesystem for FUSE
969         - "mqueue" enumerates POSIX message queues
970         - "rpc_pipefs" kernel <-> userspace bridge for NFS
971         - "sysfs" is for exporting kernel objects
972         - "devfs" device filesystem for Linux 2.4 and FreeBSD
973
974 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
975
976         extern-inline: avoid incompatibility with Darwin Libc
977         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
978         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
979         Problem reported by Akim Demaille in
980         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
981
982 2012-12-11  Simon Josefsson  <simon@josefsson.org>
983
984         gnupload: Work with GnuPG using gpg-agent (for smartcards).
985         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
986         let it handle password prompting.
987
988 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
989
990         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
991         * lib/canonicalize.c (canonicalize_filename_mode):
992         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
993         fetching the current directory.  Don't overrun the beginning of
994         rpath if there's no slashes after the MS-Windows drive letter.
995
996 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
997
998         maint.mk: avoid extra forks
999         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1000         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1001         So use that instead of "$(shell test -f FILE && echo FILE)".
1002
1003 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1004
1005         vasnprintf: fix ASCII_ONLY typo
1006         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1007         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1008         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1009         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1010         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1011
1012 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1013
1014         list, oset, xlist, xoset: fix extern inline issue with C99
1015         This was introduced by my recent changes for 'inline'.
1016         Problem reported for gettext by Daiki Ueno in
1017         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1018         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1019         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1020         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1021         (gl_list_previous_node, gl_list_get_at)
1022         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1023         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1024         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1025         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1026         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1027         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1028         (gl_list_iterator_free, gl_sortedlist_search)
1029         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1030         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1031         (gl_sortedlist_remove):
1032         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1033         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1034         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1035         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1036         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1037         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1038         (gl_list_add_at, gl_sortedlist_add):
1039         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1040         Wrap these extern decls inside "#if 0", because they are implemented
1041         as inline functions, and extern inline is not what's wanted here.
1042         It would simplify these .h files to remove the extern decls entirely,
1043         although a downside would be less-clear separation between
1044         specification and implementation.
1045
1046 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1047
1048         sys_stat: no 'static inline'
1049         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1050         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1051
1052         extern-inline: no 'static inline'
1053         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1054         Do not require AC_C_INLINE.
1055         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1056         'static inline', for older compilers.
1057
1058         snippet/warn-on-use: no 'static inline'
1059         * build-aux/snippet/warn-on-use.h:
1060         Remove unnecessary 'inline' in comment.
1061
1062         rbtree-list, rbtreehash-list: no 'static inline'
1063         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1064         * lib/gl_anytree_list2.h (node_at):
1065         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1066         (gl_oset_first, add_nodes_to_buckets):
1067         Now static, not static inline.
1068
1069         regex: no 'static inline'
1070         * lib/regex_internal.c (calc_state_hash):
1071         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1072         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1073         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1074         Now static, not static inline.
1075         (inline) [__GNUC__ < 3 && _LIBC]:
1076         Remove macro; no longer needed.
1077
1078         xvasprintf: no 'static inline'
1079         * lib/xvasprintf.c (xstrcat):
1080         Now static, not static inline.
1081         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1082         Do not require AC_C_INLINE.
1083
1084         parse-datetime, parse-duration: no 'static inline'
1085         * lib/parse-datetime.y (to_uchar):
1086         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1087         (scale_n_add):
1088         Now static, not static inline.
1089         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1090         * modules/parse-duration (configure.ac):
1091         Do not require AC_C_INLINE.
1092
1093         getaddrinfo: no 'static inline'
1094         * lib/getaddrinfo.c (validate_family):
1095         Now static, not static inline.
1096         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1097         Do not require AC_C_INLINE.
1098
1099         ftruncate, fts, lstat, openat, raise: no 'static inline'
1100         * lib/ftruncate.c (chsize_nothrow):
1101         * lib/fts.c (opendirat, diropen):
1102         * lib/lstat.c (orig_lstat):
1103         * lib/openat.c (orig_openat):
1104         * lib/raise.c (raise_nothrow):
1105         Now static, not static inline.
1106         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1107         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1108         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1109         * m4/openat.m4 (gl_PREREQ_OPENAT):
1110         * m4/raise.m4 (gl_PREREQ_RAISE):
1111         Do not require AC_C_INLINE.
1112
1113         fflush, stat: no 'static inline'
1114         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1115         (clear_ungetc_buffer, disable_seek_optimization)
1116         (restore_seek_optimization, update_fpos_cache):
1117         * lib/stat.c (orig_stat):
1118         Now static, not static inline.
1119         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1120         (update_fpos_cache):
1121         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1122         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1123         * m4/stat.m4 (gl_PREREQ_STAT):
1124         Do not require AC_C_INLINE.
1125
1126         error, filevercmp: no 'static inline'
1127         * lib/error.c (is_open, flush_stdout):
1128         * lib/filevercmp.c (order):
1129         Now static, not static inline.
1130         * m4/error.m4 (gl_PREREQ_ERROR):
1131         * modules/filevercmp (configure.ac):
1132         Do not require AC_C_INLINE.
1133
1134         dup, execute, fatal-signal, etc.: no 'static inline'
1135         * lib/dup.c (dup_nothrow):
1136         * lib/execute.c (nonintr_close, nonintr_open):
1137         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1138         * lib/fopen.c (orig_fopen):
1139         * lib/freadseek.c (freadptrinc):
1140         * lib/freopen.c (orig_freopen):
1141         * lib/fstat.c (orig_fstat, fstat_nothrow):
1142         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1143         (get_rusage_as_via_iterator):
1144         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1145         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1146         * lib/isatty.c (_isatty_nothrow):
1147         * lib/open.c (orig_open):
1148         * lib/read.c (read_nothrow):
1149         * lib/sigprocmask.c (signal_nothrow):
1150         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1151         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1152         * lib/wait-process.c (unregister_slave_subprocess):
1153         * lib/write.c (write_nothrow):
1154         Now static, not static inline.
1155         * lib/spawn-pipe.c (nonintr_open): Define only if
1156         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1157         * m4/dup.m4 (gl_PREREQ_DUP):
1158         * m4/execute.m4 (gl_EXECUTE):
1159         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1160         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1161         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1162         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1163         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1164         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1165         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1166         * m4/open.m4 (gl_PREREQ_OPEN):
1167         * m4/read.m4 (gl_PREREQ_READ):
1168         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1169         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1171         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1172         * m4/write.m4 (gl_PREREQ_WRITE):
1173         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1174         Do not require AC_C_INLINE.
1175
1176         c-strtod, memcoll, readutmp: no 'static inline'
1177         * lib/c-strtod.c (c_locale):
1178         * lib/memcoll.c (strcoll_loop):
1179         * lib/readutmp.c (desirable_utmp_entry):
1180         Now static, not static inline.
1181         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1182         * m4/memcoll.m4 (gl_MEMCOLL):
1183         * m4/readutmp.m4 (gl_READUTMP):
1184         Do not require AC_C_INLINE.
1185
1186         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1187         * lib/arctwo.c (to_uchar):
1188         * lib/md4.c (set_uint32):
1189         * lib/md5.c (set_uint32):
1190         * lib/sha1.c (set_uint32):
1191         * lib/sha256.c (set_uint32):
1192         * lib/sha512.c (set_uint64):
1193         Now static, not static inline.  This is a bit simpler, and doesn't
1194         affect performance with GCC and default optimization.
1195         * m4/arctwo.m4 (gl_ARCTWO):
1196         * m4/md4.m4 (gl_MD4):
1197         * m4/md5.m4 (gl_MD5):
1198         * m4/sha1.m4 (gl_SHA1):
1199         * m4/sha256.m4 (gl_SHA256):
1200         * m4/sha512.m4 (gl_SHA512):
1201         Do not require AC_C_INLINE.
1202
1203         cond, lock, thread: better 'inline'
1204         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1205         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1206         New macros.  Use them instead of static inline, for header functions.
1207         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1208         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1209         * lib/glthread/lock.c (gl_waitqueue_init)
1210         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1211         * lib/glthread/thread.c (get_current_thread_handle):
1212         Change 'static inline' to 'inline'.
1213         * lib/glthread/cond.h, lib/glthread/thread.h:
1214         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1215         * m4/cond.m4 (gl_COND):
1216         * m4/lock.m4 (gl_PREREQ_LOCK):
1217         * m4/thread.m4 (gl_THREAD):
1218         Do not require AC_C_INLINE.
1219         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1220
1221         chdir-long, cycle-check, savewd: better 'inline'
1222         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1223         (find_non_slash):
1224         * lib/cycle-check.c (is_zero_or_power_of_two):
1225         * lib/savewd.c (savewd_delegating):
1226         Change 'static inline' to 'inline'.
1227         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1228         Replace all remaining uses of 'static inline' with it.
1229         * lib/savewd.h:
1230         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1231         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1232         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1233         * m4/savewd.m4 (gl_SAVEWD):
1234         Do not require AC_C_INLINE.
1235         * modules/savewd (Depends-on): Add extern-inline.
1236
1237         base32, base64: no need for 'inline'
1238         * lib/base32.c (to_uchar, get_8, decode_8):
1239         * lib/base64.c (to_uchar, get_4, decode_4):
1240         Change 'static inline' to 'inline'.
1241         * m4/base32.m4 (gl_PREREQ_BASE32):
1242         * m4/base64.m4 (gl_PREREQ_BASE64):
1243         Do not require AC_C_INLINE.
1244
1245         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1246         * lib/gl_array_oset.c (gl_array_nx_add_at):
1247         (gl_array_remove_at):
1248         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1249         (add_to_bucket, remove_from_bucket):
1250         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1251         Change 'static inline' to 'static', as it's simpler to omit
1252         'inline' unless there's a significant performance advantage.
1253
1254         list, oset, xlist, xoset, xsublist: simplify via extern inline
1255         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1256         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1257         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1258         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1259         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1260         New macro.  Replace all uses of 'static inline' with it.
1261         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1262         instead of as macros FOO that are defined to static inline
1263         functions FOO_inline.
1264         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1265         * lib/gl_xsublist.c:
1266         Reimplement from scratch, by defining the corresponding *_INLINE
1267         macro and including the corresponding .h file.  This is simpler.
1268         * modules/list, modules/oset, modules/xlist, modules/xoset:
1269         (Files): Remove m4/gl_list.m4.
1270         (configure.ac): Remove gl_LIST.
1271         * m4/gl_list.m4: Remove.
1272         * modules/list, modules/oset, modules/xlist, modules/xoset:
1273         * modules/xsublist:
1274         (Depends-on): Depend on extern-inline, not inline.
1275
1276         xalloc: better 'inline'
1277         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1278         New macro.  Replace all uses of 'static inline' with it.
1279         (static_inline): Remove.
1280         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1281         Let 'extern inline' do the work automatically, instead of doing
1282         it by hand.
1283         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1284         Remove.  All uses removed.
1285         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1286
1287         gethrxtime: better 'inline'
1288         * lib/xtime.c: New file.
1289         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1290         * lib/xtime.h (XTIME_INCLUDE):
1291         New macros.  Replace all uses of 'static inline' with them.
1292         * lib/gethrxtime.c (gethrxtime): Define only if
1293         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1294         this source file is now always compiled, because of the extern inline.
1295         * lib/gethrxtime.h, lib/xtime.h:
1296         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1297         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1298         if gethrtime works, as they're not needed in that case.
1299         (gl_XTIME): Do not require AC_C_INLINE.
1300         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1301         compiled now.  Move the check into gl_GETHRXTIME.
1302         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1303         (Depends-on): Add extern-inline.
1304         (configure.ac): gethrxtime is always compiled now.
1305         (lib_SOURCES): Add gethrxtime.c.
1306
1307         wctype-h: better 'inline'
1308         * lib/wctype-h.c: New file.
1309         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1310         New macro.  Replace all uses of 'static inline' with it.
1311         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1312         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1313         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1314         (Depends-on): Add extern-inline.
1315
1316         unistd: better 'inline'
1317         * lib/unistd.c: New file.
1318         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1319         New macro.  Replace all uses of 'static inline' with it.
1320         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1321         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1322         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1323         (Depends-on): Add extern-inline.
1324
1325         sys_socket: better 'inline'
1326         * lib/sys_socket.c: New file.
1327         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1328         New macro.  Replace all uses of 'static inline' with it.
1329         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1330         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1331         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1332         (Depends-on): Add extern-inline.
1333
1334         stdio: better 'inline'
1335         * lib/stdio.c: New file.
1336         * lib/stdio.in.h (_GL_STDIO_INLINE):
1337         New macro.  Replace all uses of 'static inline' with it.
1338         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1339         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1340         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1341         (Depends-on): Add extern-inline.
1342
1343         sigaction: better 'inline'
1344         * lib/sig-handler.c: New file.
1345         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1346         New macro.  Replace all uses of 'static inline' with it.
1347         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1348         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1349         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1350         (Depends-on): Add extern-inline.
1351
1352         selinux-h: better 'inline'
1353         * lib/se-context.c, lib/se-selinux.c: New files.
1354         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1355         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1356         New macro.  Replace all uses of 'static inline' with it.
1357         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1358         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1359         New macro.  Replace all uses of 'static inline' with it.
1360         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1361         * modules/selinux-h (Files, lib_SOURCES):
1362         Add lib/se-context.c, lib/se-selinux.c.
1363         (Depends-on): Add extern-inline.
1364         (configure.ac): Do not require AC_C_INLINE.
1365
1366         pthread: better 'inline'
1367         * lib/pthread.c: New file.
1368         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1369         New macro.  Replace all uses of 'static inline' with it.
1370         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1371         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1372         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1373         * modules/pthread (Files): Add lib/pthread.c.
1374         (Depends-on): Add extern-inline.
1375
1376         math: better 'inline'
1377         * lib/math.c: New file.
1378         * lib/math.in.h (_GL_MATH_INLINE):
1379         New macro.  Replace all uses of 'static inline' with it.
1380         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1381         * m4/math_h.m4 (gl_MATH_H):
1382         Do not require AC_C_INLINE.
1383         * modules/math (Files, lib_SOURCES):
1384         Add lib/math.c.
1385         (Depends-on): Add extern-inline.
1386
1387         count-one-bits: better 'inline'
1388         * lib/count-one-bits.c: New file.
1389         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1390         New macro.  Replace all uses of 'static inline' with it.
1391         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1392         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1393         Do not require AC_C_INLINE.
1394         * modules/count-one-bits (Files, lib_SOURCES):
1395         Add lib/count-one-bits.c.
1396         (Depends-on): Add extern-inline.
1397
1398         count-leading-zeros: better 'inline'
1399         * lib/count-leading-zeros.c: New file.
1400         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1401         New macro.  Replace all uses of 'static inline' with it.
1402         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1403         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1404         Do not require AC_C_INLINE.
1405         * modules/count-leading-zeros (Files, lib_SOURCES):
1406         Add lib/count-leading-zeros.c.
1407         (Depends-on): Add extern-inline.
1408
1409         bitrotate: better 'inline'
1410         * lib/bitrotate.c: New file.
1411         * lib/bitrotate.h (BITROTATE_INLINE):
1412         New macros.
1413         Replace all uses of 'static inline' with them.
1414         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1415         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1416         (Depends-on): Add extern-inline.
1417         (configure.ac): Do not require AC_C_INLINE.
1418
1419 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1420
1421         maint.mk: avoid gratuitous failure
1422         Reported by Stefano Lattarini in
1423         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1424         * top/maint.mk (public-submodule-commit): Quote more safely.
1425
1426 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1427
1428         canonicalize, canonicalize-lgpl: support MS-Windows file names
1429         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1430         for test cases, which it'd be nice to add at some point.
1431         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1432         * lib/canonicalize.c (canonicalize_filename_mode):
1433         * lib/canonicalize-lgpl.c (__realpath):
1434         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1435         slash is at the beginning of the file name.  Use ISSLASH, instead
1436         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1437         the first character with '/'.  Test for
1438         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1439         with a drive letter.
1440         * lib/canonicalize.c (SLASHES): New macro.
1441         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1442
1443 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1444
1445         fts: introduce FTS_VERBATIM
1446         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1447         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1448         * lib/fts.c (fts_open): Honor it.
1449
1450 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1451
1452         getlogin-tests: allow errno == ENXIO
1453         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1454         with errno == ENXIO (No controlling tty).
1455         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1456         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1457         with errno == ENOENT.  This was reported to happen in various
1458         situations on GNU/Linux.
1459
1460 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1461
1462         getlogin-tests: allow errno == ENOENT
1463         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1464         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1465         when running a test in an Emacs shell buffer.
1466
1467 2012-11-08  Jim Meyering  <jim@meyering.net>
1468
1469         tests/nap.h: avoid warning about unused variable
1470         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1471
1472         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1473         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1474         white space before each of the special-cased file names, to avoid
1475         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1476         in http://bugs.gnu.org/12830.
1477
1478 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1479
1480         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1481         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1482         fails with errno == EBADF when fd is opened with O_PATH.
1483         Reported by Jim Meyering in
1484         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1485         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1486         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1487
1488 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1489
1490         test-utimens: speed up by taking shorter naps
1491         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1492         New functions.
1493         (nap): Use them, to do a better job of guessing the delay.
1494         On Fedora 17 with ext4 atop md atop hard disks, this made
1495         test-utimens run 10x faster, because the test napped for
1496         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1497         <http://bugs.gnu.org/12820#11>.
1498
1499 2012-11-07  Jim Meyering  <jim@meyering.net>
1500
1501         mountlist.c: fix a compilation failure
1502         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1503         I introduced while transforming commit v0.0-7683-g613bcb6
1504
1505 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1506
1507         errno: port to LynxOS 178 2.2.2
1508         Problem reported by Joel Brobecker in
1509         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1510         * doc/posix-headers/errno.texi (errno.h): Document this.
1511         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1512         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1513         Supply a string for EILSEQ.
1514         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1515
1516 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1517
1518         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1519         Linux kernel 2.6.39 introduced O_PATH (see
1520         <http://lwn.net/Articles/433854/>) and this is a better fallback
1521         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1522         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1523         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1524         * lib/fcntl.in.h (O_ACCMODE):
1525         * tests/test-fcntl-h.c (main):
1526         Do not reject O_ACCMODE merely because it has more than the
1527         minimal number of bits, as POSIX allows extensions here.
1528
1529 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1530
1531         mountlist: do not classify a bind-mounted dir entry as "dummy"
1532         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1533         the "none"-testing clause.
1534         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1535         exception for bind-mounted directories.
1536
1537 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1538
1539         quote: provide a means to escape strings with nul characters
1540         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1541         (quote, quote_n): Rename formal arguments for consistency with
1542         quotearg.
1543
1544 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1545
1546         test-raise: don't assume 199 is an invalid signal
1547         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1548
1549         sh-quote-tests: port to Solaris 9
1550         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1551         Problem reported by Dagobert Michelsen in
1552         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1553
1554 2012-10-28  Jim Meyering  <jim@meyering.net>
1555
1556         maint.mk: rename a new configurable variable
1557         * top/maint.mk (_gl_translatable_string_re): Rename from
1558         translation-markers: _gl_ prefix to insulate from user Makefile code,
1559         and the _re suffix to inform that it's a regular expression.
1560
1561 2012-10-26  Eric Blake  <eblake@redhat.com>
1562
1563         maint.mk: let packages tweak sc_po_check pattern
1564         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1565         finding files with other translation markers.
1566
1567 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1568
1569         euidaccess: speed up 'configure' on GNU hosts
1570         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1571         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1572         it's needed only in this case.  Use AC_CHECK_DECLS, not
1573         AC_CHECK_DECLS_ONCE.
1574         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1575         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1576
1577         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1578
1579 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1580
1581         fchmodat, fchownat, fstatat: port to non-inlining compilers
1582         Problem reported for FreeBSD 9 by Jim Meyering in
1583         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1584         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1585         New files, which define FCHMODAT_INLINE etc.
1586         * lib/fchmodat.c (FCHMODAT_INLINE):
1587         * lib/fchownat.c (FCHOWNAT_INLINE):
1588         * lib/fstatat.c (FSTATAT_INLINE):
1589         Remove, as chmodat.c etc. now do this.
1590         * modules/fchmodat (Files): Add lib/chmodat.c.
1591         * modules/fchownat (Files): Add lib/chownat.c.
1592         * modules/fstatat (Files): Add lib/statat.c.
1593
1594 2012-10-15  Jim Meyering  <jim@meyering.net>
1595
1596         fchmodat.c, fchownat.c: compile-impeding typos
1597         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1598         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1599         Introduced in commit v0.0-7636-gd202279.
1600
1601 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1602
1603         fcntl-h: support GNU flags like O_IGNORE_CTTY
1604         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1605         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1606         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1607         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1608         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1609         Define to 0 if not already defined.
1610         * tests/test-fcntl-h.c: Test these new flags.
1611
1612 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1613
1614         faccessat, etc.: support AT_FDCWD-only use
1615         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1616         this function only if its first argument is AT_FDCWD.
1617         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1618         values other than AT_FDCWD, so it doesn't want all the openat
1619         machinery with fchdir etc.
1620         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1621         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1622         * modules/unlinkat (Files):
1623         Remove lib/openat-priv.h, as at-internal supplies this file.
1624         Removing this file here allows us to support programs like Emacs
1625         that avoid at-internal.
1626
1627         faccessat: speed up 'configure' on mainstream hosts
1628         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1629         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1630         since it's only on unusual platforms that we need to check for
1631         'access', and it's better not to slow 'configure' down on all
1632         platforms.
1633
1634         faccessat: port to Solaris 10
1635         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1636         Needed on Solaris 10, which doesn't have AT_EACCESS,
1637         so we need the Gnulib fcntl.h, which defines it.
1638
1639 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1640         canonicalize: fix C89 compilation
1641         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1642         declarations so C89 is supported.  Also remove the comment
1643         referencing memorty allocation as the suggested feature could
1644         not be implemented as suggested.
1645         Reported by Michael Goffioul.
1646
1647 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1648
1649         group-member: omit unnecessary dependencies
1650         This is for Emacs, which has its own allocator and where we
1651         don't want to use xalloc.
1652         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1653         since we no longer use xmalloc.  Do not include stdbool.h, since
1654         the changes below happen to remove the only use of bool.
1655         (GROUPBUF_SIZE): New constant.
1656         (struct group_info): Remove n_groups member.  Add groupbuf member.
1657         This lets us get the groups without using malloc, usually.
1658         (free_group_info, get_group_info): Adjust to this.
1659         (get_group_info): Return the number of groups found, or -1 on error.
1660         Use plain malloc not xmalloc, and treat its failure as if there
1661         are no groups, as the user already loses in case of error.
1662         (group_member): Simplify, based on changes to get_group_info.
1663         * modules/group-member (Depends-on): Remove dependencies on
1664         xalloc and stdbool.  Add dependency on xalloc-oversized.
1665
1666 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1667
1668         gethrxtime: port to C++
1669         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1670
1671 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1672
1673         ptsname: fix macro-name typo
1674         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1675
1676 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1677
1678         inttostr: Relax license.
1679         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1680
1681 2012-10-03  Eric Blake  <eblake@redhat.com>
1682
1683         ptsname_r: support ptys returned by FreeBSD posix_openpt
1684         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1685         lives in /dev/pts/.
1686
1687 2012-10-02  Eric Blake  <eblake@redhat.com>
1688
1689         pselect: reject invalid file descriptors
1690         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1691         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1692         * modules/pselect (Depends-on): Add dup2.
1693         * doc/posix-functions/pselect.texi (pselect): Document this.
1694
1695         select: reject invalid file descriptors
1696         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1697         * lib/select.c (rpl_select) [!win32]: Work around it.
1698         * modules/select (Depends-on): Add dup2.
1699         * doc/posix-functions/select.texi (select): Document this.
1700
1701         select: enhance test
1702         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1703         New functions.
1704         (test_function): Enhance test.
1705         (do_select_bad_fd): Avoid any stale errno values.
1706
1707         ptsname: reject invalid file descriptors
1708         http://www.austingroupbugs.net/view.php?id=503
1709         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1711         * modules/stdlib (Makefile.am): Replace witness.
1712         * lib/stdlib.in.h (ptsname): Allow for replacement.
1713         * modules/ptsname (configure.ac): Trigger replacement.
1714         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1715
1716 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1717
1718         hash-pjw-bare: new module
1719         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1720         * lib/hash-pjw-bare.h: Likewise.
1721         * modules/hash-pjw-bare: New file.
1722         * MODULES.html.sh (Misc): Add it.
1723
1724 2012-10-02  Eric Blake  <eblake@redhat.com>
1725
1726         manywarnings: cater to more gcc infelicities
1727         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1728         -Wuninitialized without -O.
1729
1730 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1731
1732         select, poll tests: Make setsockopt invocation effective.
1733         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1734         the bind() call.
1735         * tests/test-select.h (open_server_socket): Likewise.
1736
1737 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1738
1739         sockets, sys_stat: restore AC_C_INLINE
1740         This undoes the 2012-09-22 patch.
1741         * m4/sockets.m4 (gl_SOCKETS):
1742         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1743         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1744         and does not support plain 'inline'.  Reported by Bruno Haible in
1745         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1746
1747 2012-09-30  Bruno Haible  <bruno@clisp.org>
1748
1749         localeconv tests: Avoid test failure on OpenIndiana.
1750         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1751         skip the 'grouping' and 'mon_grouping' tests.
1752         Reported by Jim Meyering.
1753
1754 2012-09-30  Bruno Haible  <bruno@clisp.org>
1755
1756         havelib: Follow libtool developments.
1757         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1758         Suggested by Simon Josefsson.
1759
1760 2012-09-29  Jim Meyering  <meyering@redhat.com>
1761
1762         fstatat.c: fix a compile-impeding typo
1763         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1764         Introduced in commit v0.0-7636-gd202279.
1765         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1766
1767 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1768
1769         extern-inline: provide a -Wundef safe config.h
1770         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1771         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1772         to produce a -Wundef warning free config.h.
1773
1774 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1775
1776         hash-pjw: relax license to LGPLv2+
1777         * modules/hash-pjw (License): Relax, with consent of author.
1778
1779 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1780
1781         maint.mk: fix strict vs. lazy variable issues with RELEASE
1782         * top/maint.mk (_equal): New function.
1783         (member_check): Strip the result to avoid spurious spaces.
1784         (url_dir_list): Do not use ifeq, which is strict, as it will
1785         require RELEASE_TYPE to be defined.
1786         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1787         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1788         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1789         (announcement_Cc_beta,announcement_mail_headers_beta)
1790         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1791         (release): Do not depend on $(release-type), as it forces its
1792         evaluation.  Bounce to it.
1793
1794 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1795
1796         maint.mk: formatting changes
1797         * top/maint.mk: Indent bodies of if's.
1798
1799 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1800
1801         maint.mk: factor the validation of RELEASE_TYPE
1802         With help from Jim Meyering.
1803         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1804         * top/maint.mk (_empty, _sp): Move their definition earlier.
1805         (member-check, release-type): New.
1806         Use the latter instead of $(RELEASE_TYPE).
1807         Remove now useless local checks.
1808
1809 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1810
1811         maint.mk: provide "make upload" to ease uploading
1812         See
1813         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1814         Do not depend simply on the current $(VERSION), as there may have been
1815         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1816         as "make release-commit" already does.
1817
1818         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1819         "make TYPE".
1820
1821         * top/maint.mk (upload_command, upload, release): New.
1822         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1823         (VERSION): first word of $(RELEASE) is always right.
1824         (emit_upload_commands): Adjust.
1825         * top/README-release: Update.
1826
1827 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1828
1829         maint.mk: silent rules
1830         With help from Stefano Lattarini.
1831         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1832         (announcement): Use $(AM_V_at).
1833
1834 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1835
1836         localename: port gl_locale_name_thread_unsafe to FreeBSD
1837         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1838         and use the simpler FreeBSD implementation on Mac OS X as well.
1839         Original idea suggested by Ed Maste in
1840         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1841
1842 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1843
1844         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1845         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1846         * lib/mbuiter.c, lib/xsize.c: New files.
1847         * lib/binary-io.h (BINARY_IO_INLINE):
1848         * lib/eealloc.h (EEALLOC_INLINE):
1849         * lib/mbfile.h (MBFILE_INLINE):
1850         * lib/mbiter.h (MBITER_INLINE):
1851         * lib/mbuiter.h (MBUITER_INLINE):
1852         * lib/xsize.h (XSIZE_INLINE):
1853         New macros.
1854         Replace all uses of 'static inline' with them.
1855         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1856         * m4/eealloc.m4 (gl_EEALLOC):
1857         * m4/mbfile.m4 (gl_MBFILE):
1858         * m4/mbiter.m4 (gl_MBITER):
1859         * m4/xsize.m4 (gl_XSIZE):
1860         Do not require AC_C_INLINE.
1861         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1862         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1863         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1864         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1865         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1866         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1867         * modules/binary-io, modules/eealloc, modules/mbfile:
1868         * modules/mbiter, modules/mbuiter:
1869         (Depends-on): Add extern-inline.
1870
1871         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1872         * lib/pipe-filter-aux.c: New file.
1873         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1874         Replace all uses of 'static inline' with it.
1875         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1876         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1877         (filter_retcode): No real need for inline here.
1878         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1879         (Files): Add lib/pipe-filter-aux.c.
1880         (Depends-on): Add extern-inline.
1881         (configure.ac): Do not require AC_C_INLINE.
1882         (lib_SOURCES): Add pipe-filter-aux.c.
1883
1884         fdutimensat: omit unnecessary AC_C_INLINE
1885         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1886
1887         fchmodat, fchownat, fstatat: use extern-inline
1888         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1889         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1890         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1891         New macros.
1892         * lib/openat.h:
1893         Replace all uses of 'static inline' with them.
1894         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1895         * modules/fchmodat, modules/fchownat, modules/fstatat:
1896         * modules/openat-h:
1897         (Depends-on):
1898         Add extern-inline.
1899         (configure.ac): Remove AC_C_INLINE.
1900
1901         acl, mbchar, priv-set: use extern-inline
1902         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1903         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1904         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1905         New macros.
1906         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1907         Replace all uses of 'static inline' with it.
1908         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1909         * m4/acl.m4 (gl_FUNC_ACL):
1910         * m4/mbchar.m4 (gl_MBCHAR):
1911         * m4/priv-set.m4 (gl_PRIV_SET):
1912         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1913         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1914         Add extern-inline.
1915
1916         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1917         * m4/sockets.m4 (gl_SOCKETS):
1918         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1919         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1920         environments where it's already guaranteed to work, so we needn't
1921         check for it at 'configure'-time.
1922
1923         tls-tests: omit unnecessary 'inline'
1924         * tests/test-tls.c (perhaps_yield): No longer inline.
1925         Simplicity and portability trump efficiency in test cases.
1926
1927         utimens-tests: avoid unnecessary 'inline'
1928         * modules/fdutimensat-tests (configure.ac):
1929         * modules/futimens-tests (configure.ac):
1930         * modules/utimens-tests (configure.ac):
1931         * modules/utimensat-tests (configure.ac):
1932         Remove AC_C_INLINE.
1933         * tests/test-utimens-common.h (ctime_compare):
1934         No longer inline.  Simplicity and portability trump efficiency here.
1935
1936         misc: don't limit commentary to inline functions
1937         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1938         * lib/xalloc-oversized.h, lib/xsize.h:
1939         Contrast macros to functions in general, not just to inline functions,
1940         when the commentary does not apply only to inline functions.
1941
1942 2012-09-20  Jim Meyering  <meyering@redhat.com>
1943
1944         non-recursive-gnulib-prefix-hack: new module
1945         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1946         the file that originated in Bison.
1947         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1948         largely copied from a snippet that resided in bison's configure.ac.
1949         * modules/non-recursive-gnulib-prefix-hack: New file.
1950         * MODULES.html.sh (Support for maintaining and releasing projects):
1951         Add it.
1952
1953 2012-09-18  Jim Meyering  <meyering@redhat.com>
1954
1955         maint.mk: generalize _gl_tight_scope for non-recursive make
1956         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1957         that *.h would describe additional .h files in the directory
1958         specified by $(_gl_TS_dir).  I.e., add this...
1959         (_gl_TS_other_headers): New variable.
1960
1961         maint.mk: exempt trailing blanks found in "binary" files
1962         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1963         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1964         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1965
1966 2012-09-17  Jim Meyering  <meyering@redhat.com>
1967
1968         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1969         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1970         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1971         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1972
1973 2012-09-17  Jim Meyering  <meyering@redhat.com>
1974
1975         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1976         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1977         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1978         It is not in the same category as "exit (0)" or "exit (1)", and
1979         besides, I know of no symbolic name for that 77.  Reported by
1980         Richard W.M. Jones in
1981         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1982
1983 2012-09-17  Jim Meyering  <meyering@redhat.com>
1984
1985         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1986         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1987         all uses of #define, not just those that start in column 1.
1988         Richard W.M. Jones reported a false positive in
1989         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1990
1991 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1992
1993         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1994         * lib/localcharset.c (locale_charset) [DARWIN7]:
1995         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1996         as these two values are incompatible.  Problem reported by Max Horn.
1997         For more discussion, please see
1998         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1999
2000         doc: document sticky-EOF issue
2001         * doc/posix-functions/fgetc.texi (fgetc):
2002         * doc/posix-functions/fgets.texi (fgets):
2003         * doc/posix-functions/fread.texi (fread):
2004         * doc/posix-functions/fscanf.texi (fscanf):
2005         * doc/posix-functions/getc.texi (getc):
2006         * doc/posix-functions/getchar.texi (getchar):
2007         * doc/posix-functions/scanf.texi (scanf):
2008         Mention that glibc and default Solaris do not conform to
2009         C99 and POSIX-2001 or later, with respect to how getchar
2010         etc. behave when feof reports nonzero.
2011
2012 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2013
2014         poll: fix poll(0, NULL, msec)
2015         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2016         but nfd is 0.  In that case poll should behave like select.
2017
2018 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2019             Paolo Bonzini <bonzini@gnu.org>
2020
2021         poll: fix for systems that can't recv() on a non-socket
2022         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2023         is readable.  In this case POLLHUP will not be supported.
2024         * doc/posix-functions/poll.texi: Document this.
2025
2026 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2027
2028         poll/select: document portability problems not fixed by Gnulib.
2029         * doc/posix-functions/poll.texi: poll does not work well on
2030         pipes under Windows.  It has the same limitations as select on
2031         BeOS.
2032         * doc/posix-functions/select.texi: select does not work well
2033         on pipes under Windows.
2034
2035 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2036
2037         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2038         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2039         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2040         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2041
2042 2012-09-06  Eric Blake  <eblake@redhat.com>
2043
2044         net_if: give more details about the bug being fixed
2045         * doc/posix-headers/net_if.texi: Add clarification.
2046
2047 2012-09-05  Eric Blake  <eblake@redhat.com>
2048
2049         net_if: new module
2050         * modules/net_if: New module, borrowing ideas from netinet_in.
2051         * m4/net_if_h.m4: New file.
2052         * lib/net_if.in.h: Likewise.
2053         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2054         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2055         * tests/test-net_if.c: Make function checks conditional.
2056         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2057
2058 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2059
2060         readutmp: fix non-portable UT_PID use
2061         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2062         Use `UT_PID (u) > 0' as absolute condition.
2063
2064 2012-09-04  Jim Meyering  <meyering@redhat.com>
2065
2066         fts: reduce two or more trailing spaces to just one, usually
2067         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2068         or more slashes, trim all but the final one.  But if a name consists
2069         solely of two slashes, don't modify it.  If it consists solely of
2070         three or more slashes, strip all but one.
2071
2072         This is part of the solution to a minor problem with rm:
2073         it would print a bogus ELOOP diagnostic when failing to remove
2074         the slash-decorated name of a symlink-to-directory:
2075
2076             $ mkdir d && ln -s d s && env rm -r s/
2077             rm: cannot remove 's': Too many levels of symbolic links
2078
2079         With the change below and a trivial don't-trim-trailing-slashes
2080         adjustment to remove.c, it does this:
2081
2082             $ env rm -r s/
2083             rm: cannot remove 's/': Not a directory
2084
2085         Improved by: Eric Blake
2086
2087         fts: when there is no risk of overlap, use memcpy, not memmove
2088         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2089
2090 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2091
2092         stdbool: be more compatible with mixed C/C++ compiles
2093         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2094         Define to bool, true, false, respectively, as GCC's builtin
2095         stdbool.h does.  Problem reported by Michael Goffioul in
2096         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2097
2098 2012-08-28  Jim Meyering  <meyering@redhat.com>
2099
2100         revert last change: it was not needed
2101         * tests/test-vc-list-files-git.sh: There's already a test for
2102         a working git, just below.
2103
2104 2012-08-28  Jim Meyering  <meyering@redhat.com>
2105
2106         tests: test-vc-list-files-git.sh: skip if git is not available
2107         * tests/test-vc-list-files-git.sh: Skip this test when git is
2108         not available.
2109
2110 2012-08-26  Bruno Haible  <bruno@clisp.org>
2111
2112         gnulib-tool: Remove no-op option --no-changelog.
2113         * gnulib-tool (func_usage): Don't mention --no-changelog.
2114         (do_changelog): Remove variable.
2115         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2116
2117 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2118
2119         doc: remove fdl-1.2.texi
2120         It is no longer used or maintained, and its use of @acronym
2121         is problematic.  See the thread containing
2122         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2123         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2124         * doc/old-licenses/fdl-1.2.texi: Remove.
2125
2126         execinfo: port to FreeBSD
2127         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2128         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2129         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2130         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2131
2132 2012-08-23  Jim Meyering  <meyering@redhat.com>
2133
2134         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2135         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2136         to placate gcc's -Wold-style-declaration.
2137
2138 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2139
2140         doc: do not use @acronym
2141         * doc/inet_ntoa.texi (inet_ntoa):
2142         * doc/parse-datetime.texi (Seconds since the Epoch)
2143         (Specifying time zone rules):
2144         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2145         Don't use @acronym.  Problem reported by John Darlington in
2146         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2147
2148 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2149
2150         stdnoreturn: port to newer GCCs
2151         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2152         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2153         Problem reported by Jim Meyering in
2154         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2155         Also, rename the 'test' function to a void a clash with the
2156         already-supplied 'main' function; this fixes a bug that incorrectly
2157         rejected GCC 4.7.1's <stdnoreturn.h>.
2158         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2159         Document GCC problem.
2160
2161 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2162
2163         pipe-filter: fix comment typo
2164         * lib/pipe-filter.h: Mention correct function.
2165
2166 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2167
2168         execinfo: new module
2169         This is for Emacs.  Currently, it provides a no-effect stub
2170         on all platforms where it does not already work.
2171         It already works on glibc-based systems, and on Solaris 11.
2172         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2173         New files.
2174         * doc/glibc-headers/execinfo.texi (execinfo.h):
2175         * MODULES.html.sh (Misc): Document it.
2176
2177 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2178
2179         extern-inline: support old GCC 'inline'
2180         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2181         if available.  This applies to GCC versions 2.7 through 4.2, or
2182         when newer GCC is using -fgnu89-inline.  The goal is to address
2183         some of the performance issues mentioned by Bruno Haible in
2184         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2185
2186 2012-08-20  Eric Blake  <eblake@redhat.com>
2187
2188         maint.mk: avoid redundant file name in message
2189         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2190         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2191         (sc_makefile_path_separator_check): Remove bogus $(ME).
2192
2193 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2194
2195         timer-time: fix link order when static linking on glibc
2196         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2197         _after_ -lrt so that it's significant.
2198
2199 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2200
2201         timespec: omit unnecessary AC_C_INLINE
2202         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2203
2204         stat-time: omit unnecessary AC_C_INLINE
2205         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2206         Do not require AC_C_INLINE.
2207
2208         ignore-value: omit unnecessary AC_C_INLINE
2209         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2210
2211         sys_select: avoid 'static inline'
2212         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2213
2214         mktime: avoid 'static inline'
2215         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2216         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2217
2218 2012-08-19  Bruno Haible  <bruno@clisp.org>
2219
2220         gnulib-tool: Improve coding style.
2221         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2222         func_emit_lib_Makefile_am.
2223         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2224
2225 2012-08-19  Bruno Haible  <bruno@clisp.org>
2226
2227         gnulib-tool: Fix indentation.
2228         * gnulib-tool (func_import): Fix indentation.
2229
2230 2012-08-19  Bruno Haible  <bruno@clisp.org>
2231
2232         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2233         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2234         on the list of removed files.
2235
2236 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2237
2238         test-parse-datetime: avoid glibc leap-second glitch
2239         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2240         with the 2012 rules.  Problem reported by Bruce Dubbs in
2241         <http://bugs.gnu.org/12206>.
2242
2243 2012-08-14  Bruno Haible  <bruno@clisp.org>
2244
2245         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2246         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2247         from argument.
2248         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2249
2250 2012-08-14  Eric Blake  <eblake@redhat.com>
2251
2252         ldexp: relax license
2253         * modules/ldexp (License): Trivial relax, since the module only
2254         provides a permissively licensed m4 file.
2255
2256 2012-08-13  Bruno Haible  <bruno@clisp.org>
2257
2258         gnulib-tool: Fix persistence of --witness-c-macro option.
2259         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2260         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2261
2262 2012-08-11  Eric Blake  <eblake@redhat.com>
2263
2264         count-leading-zeros: use a lookup table on non-gcc compilers
2265         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2266         alternate implementation, suggested by Jim Meyering.
2267
2268 2012-08-10  Eric Blake  <eblake@redhat.com>
2269
2270         count-leading-zeros: new module
2271         * modules/count-leading-zeros: New module.
2272         * m4/count-leading-zeros.m4: New file.
2273         * lib/count-leading-zeros.h: Likewise.
2274         * modules/count-leading-zeros-tests: New test.
2275         * tests/test-count-leading-zeros.c: New file.
2276         * MODULES.html.sh (Integer arithmetic functions): Document it.
2277
2278 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2279             Jim Meyering  <meyering@redhat.com>
2280
2281         maintainer-makefile: Fix syntax error with dash.
2282         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2283         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2284
2285 2012-08-05  Jim Meyering  <meyering@redhat.com>
2286
2287         extern-inline: also ignore -Wmissing-declarations
2288         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2289         required with gcc-4.8.0-to-be.
2290
2291         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2292         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2293         for /error ?([^,]*)/.  This avoids false-positives for strings like
2294         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2295
2296 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2297
2298         gnumakefile: better interaction with Automake-NG
2299         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2300         Automake-NG always contain a definition of VPATH, even in non-VPATH
2301         builds (its value being simply '.' in that case).  So, in the
2302         'clean-GNUmakefile' rule, to determine whether running under a
2303         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2304         '$(VPATH)' expands to the empty string.
2305
2306 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2307
2308         base64: Use extern C scope in header file, for C++.
2309         * lib/base64.h: Add C++ namespace protection.
2310
2311 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2312
2313         stat-time, timespec, u64: support naive out-of-dir builds
2314         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2315         Use '#include "foo.h"', not '#include <foo.h>', when including
2316         one's own interface.  This works better when configuring with
2317         out-of-directory builds, since packages need not add an
2318         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2319
2320 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2321
2322         utimens: use extern-inline
2323         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2324         * lib/utimens.h: Add copyright notice, since this is now large enough
2325         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2326         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2327         * modules/utimens (Depends-on): Add extern-inline.
2328
2329         u64: use extern-inline
2330         * lib/u64.c: New file.
2331         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2332         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2333         * modules/u64 (Files): Add lib/u64.c.
2334         (Depends-on): Add extern-inline.
2335         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2336         does that now.
2337         (lib_SOURCES): Add u64.c.
2338
2339         timespec: use extern-inline
2340         * lib/timespec.c: New file.
2341         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2342         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2343         * modules/timespec (Files): Add lib/timespec.c.
2344         (Depends-on): Add extern-inline.
2345         (lib_SOURCES): Add timespec.c.
2346
2347         stat-time: use extern-inline
2348         * lib/stat-time.c: New file.
2349         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2350         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2351         * modules/stat-time (Files): Add lib/stat-time.c.
2352         (Depends-on): Add extern-inline.
2353         (lib_SOURCES): Add stat-time.c.
2354
2355         extern-inline: new module
2356         * modules/extern-inline, m4/extern-inline.m4: New files.
2357         This is for better support of 'extern inline' a la ISO C99,
2358         with a portable alternative on compilers that do not support
2359         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2360         of the Emacs executable, when compiled with debugging disabled,
2361         which is a typical way that Emacs is built while developing.
2362
2363 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2364
2365         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2366         * build-aux/do-release-commit-and-tag: Move variable definitions
2367         together.
2368         ($branch): Instead of defaulting to "master", default to the current
2369         branch (as gnu-web-doc-update does).
2370         (help): Display the current values of the option arguments.
2371         * top/maint.mk (release-commit): New.
2372         * top/README-release: Simplify the corresponding step.
2373
2374 2012-07-30  Eric Blake  <eblake@redhat.com>
2375
2376         passfd: fix comment on recvfd
2377         * lib/passfd.c (recvfd): Fix comment.
2378         Reported by Jann Horn <jannhorn@googlemail.com>.
2379
2380 2012-07-30  Jim Meyering  <meyering@redhat.com>
2381
2382         maint.mk: avoid a sub-shell
2383         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2384
2385 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2386
2387         maint.mk: use silent-rules support from Automake
2388         * top/maint.mk (news-check, vc-diff-check, announcement)
2389         (no-submodule-changes, alpha beta stable, release-prep)
2390         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2391
2392 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2393
2394         maint.mk: provide a web-manual-update target
2395         * top/maint.mk: here.
2396         * top/README-release: Use it to simplify the web manual update step.
2397
2398 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2399
2400         README-release: shorten the circuit to post a news
2401         * top/README-release: Point directly to the news submission form.
2402
2403 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2404
2405         gnu-web-doc-update: fix --help
2406         * build-aux/gnu-web-doc-update: The information "top level" was written
2407         twice.
2408
2409 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2410
2411         maint.mk: absolute VPATH issue
2412         * top/maint.mk (release-prep): Help Git find .git/.
2413         From Jim Meyering.
2414
2415 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2416
2417         gitlog-to-changelog: fix previous change
2418         * build-aux/gitlog-to-changelog: Fix condition.
2419         Add missing ";".
2420
2421 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2422
2423         gitlog-to-changelog: don't expect .git to be in $srcdir
2424         Reported by Bruno Haible.
2425         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2426         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2427         Use it.
2428
2429 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2430
2431         maint.mk: absolute VPATH build fix
2432         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2433         $(srcdir) is not a parent of $(builddir).
2434
2435 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2436
2437         clean-temp: Fix memory leak.
2438         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2439         'files' members of tmpdir.
2440
2441 2012-07-27  Jim Meyering  <meyering@redhat.com>
2442
2443         maint.mk: new rule: refresh-gnulib-patches
2444         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2445         Use this rule to refresh them.
2446         * top/maint.mk (refresh-gnulib-patches): New rule.
2447
2448 2012-07-24  Bruno Haible  <bruno@clisp.org>
2449
2450         gnulib-tool: Fix handling of inctests variable.
2451         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2452         Reported by Nick Bowler <nbowler@elliptictech.com>.
2453
2454 2012-07-22  Bruno Haible  <bruno@clisp.org>
2455
2456         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2457         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2458         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2459         Remove exemption for getpass.h.
2460         Suggested by Eric Blake.
2461
2462 2012-07-20  Eric Blake  <eblake@redhat.com>
2463
2464         verify: document conflict with -Wnested-externs
2465         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2466
2467         maint.mk: forbid exit(-1)
2468         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2469
2470 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2471
2472         fsusage: port back to Solaris
2473         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2474         error (fsd not declared) on Solaris 10.  Reported privately by
2475         Andrew Borodin.
2476
2477 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2478
2479         gnu-web-doc-update: fix error messages
2480         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2481
2482         gnu-web-doc-update: check the requirements.
2483         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2484         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2485         * build-aux/bootstrap (find_tool): Comment change.
2486
2487 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2488
2489         maint.mk: minor simplication.
2490         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2491         for default values.
2492
2493 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2494
2495         gitlog-to-changelog: VPATH build issues
2496         If builddir is not a subdirectory of srcdir, running git from it will
2497         fail.
2498         * build-aux/gitlog-to-changelog (--srcdir): New option.
2499
2500 2012-07-15  Bruno Haible  <bruno@clisp.org>
2501
2502         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2503         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2504         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2505         Remove exemption for fpending.h.
2506         Suggested by Eric Blake.
2507
2508 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2509
2510         pthread_sigmask: fix bug on FreeBSD 9
2511         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2512         Include string.h.
2513         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2514         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2515         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2516         but pthread_sigmask (1729, NULL, NULL) returns zero.
2517         See <http://bugs.gnu.org/11884>.
2518         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2519         by inspecting whether the main call changed the old mask.
2520
2521 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2522
2523         README-release: make it more legible
2524         * top/README-release: Improve typography slightly.
2525
2526 2012-07-15  Jim Meyering  <meyering@redhat.com>
2527
2528         maint: require that each sc_... command start with "@"
2529         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2530         "make sc_maint" helps us avoid this nit.
2531
2532 2012-07-15  Jim Meyering  <meyering@redhat.com>
2533
2534         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2535         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2536
2537 2012-07-13  Eric Blake  <eblake@redhat.com>
2538
2539         maint.mk: new syntax check for HAVE_DECL checks
2540         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2541         * cfg.mk
2542         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2543         Exempt some false positives.
2544         Based on a report by Karel Zak.
2545
2546         argp: make HAVE_DECL usage consistent
2547         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2548         macros, not whether they are defined.
2549         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2550         convention with other declaration checks.
2551         Reported by Karel Zak, with suggestions from Paul Eggert.
2552
2553         stat-time: relax license to LGPLv2+
2554         * modules/stat-time (License): Relax, with consent of all authors.
2555
2556         strndup: fix m4 usage error
2557         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2558         defined, to either 0 or 1.
2559         Reported by Karel Zak.
2560
2561 2012-07-11  Jim Meyering  <meyering@redhat.com>
2562
2563         maint: enable the sc_avoid_if_before_free syntax-check rule
2564         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2565         (if_before_free_offenders_): Define.
2566         (if_before_free_basename_re_): Define.
2567         Exempt current files with useless if-before-free.
2568
2569 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2570
2571         gettext: do not assume '#define ... defined ...' behavior
2572         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2573         Do not use '#define FOO ... defined BAR ...', as the C standard says
2574         it's not portable to expect that this works after macro expansion.
2575         Problem reported for gzip by Steven M. Schweda in
2576         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2577
2578 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2579
2580         getloadavg: clean out old Emacs and Autoconf cruft
2581         See Glenn Morris in <http://bugs.gnu.org/11905>.
2582         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2583         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2584         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2585         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2586
2587 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2588
2589         bootstrap: let warn be like tests/init.sh's warn_
2590         Reported by Jim Meyering.
2591         * build-aux/bootstrap (warn): Remove, replaced by...
2592         (warnf_, warn_): these.
2593         Adjust callers.
2594         Shorten messages that no longer fit in 80 columns.
2595
2596 2012-07-09  Bruno Haible  <bruno@clisp.org>
2597
2598         getopt: Simplify after Emacs changed.
2599         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2600         (gl_GETOPT_IFELSE): Remove macro.
2601
2602 2012-07-09  Jim Meyering  <meyering@redhat.com>
2603
2604         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2605         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2606
2607         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2608         Bugs in both of those conspired to make the
2609         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2610         _sc_search_regexp's handling of non-empty $in_files would filter
2611         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2612         choice of in_files value meant there would be no match in most
2613         projects, due to the presence of two or more Makefile.in files.
2614         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2615         Fix a bug in how a non-empty $$in_files was processed:
2616         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2617         in spite of the name, it's a regexp, not a list of file names.
2618
2619 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2620
2621         getloadavg, getopt: fix commentary re configure.in
2622         Autoconf is deprecating the name 'configure.in', so change it to
2623         to the new name 'configure.ac' in a couple of places.
2624         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2625         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2626         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2627         Emacs has renamed it to configure.ac, and it no longer refers
2628         to these macros anyway.
2629
2630         timespec: mark functions with const attributes
2631         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2632         Mark with _GL_ATTRIBUTE_CONST.
2633
2634 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2635
2636         canonicalize[-lgpl]: handle "guessing" values when cross-building
2637         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2638         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2639         matches "*yes" instead of just "yes".  Regression introduced in commit
2640         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2641
2642 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2643             Bruno Haible  <bruno@clisp.org>
2644
2645         canonicalize: make the right guess when cross-compiling to GNU
2646         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2647         determine whether cross-compiling to glibc systems, so as to
2648         include GNU/Hurd.
2649
2650 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2651
2652         timespec-sub: avoid duplicate include
2653         * lib/timespec-sub.c: Do not include <config.h> twice.
2654         Reported by Juanma Barranquero.
2655
2656 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2657
2658         bootstrap: use a more consistent error reporting scheme
2659         * build-aux/bootstrap (warn, die): New.
2660         Use them.
2661
2662 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2663
2664         sys_time: allow too-wide tv_sec
2665         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2666         timeval even if tv_sec is wider than time_t.  This allows
2667         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2668         as without this patch gnulib replaces struct timeval
2669         and OpenBSD futimes therefore has a type mismatch.
2670         * doc/posix-headers/sys_time.texi: Mention this.
2671
2672         pthread: check for both pthread_create and pthread_join
2673         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2674         alter the check so that it tests for both pthread_create and
2675         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2676         Suggested by Bruno Haible and Richard Yao in
2677         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2678
2679         parse-datetime: doc tuneup
2680         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2681         spacing issues.
2682
2683 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2684
2685         do-release-commit-and-tag: fix the previous commit
2686         * build-aux/do-release-commit-and-tag: Actually the test was right,
2687         but the comment and the error message were misleading.
2688         Fix comment, and improve error message.
2689         Perform check first, so that NEWS is not modified uselessly.
2690
2691         do-release-commit-and-tag: fix typo
2692         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2693         _not_ start with a stub.
2694
2695 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2696
2697         pthread: check for pthread_create, not pthread_join
2698         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2699         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2700         pthread_join in libc.  I hope this removes the need for all the
2701         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2702         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2703
2704 2012-07-04  Jim Meyering  <meyering@redhat.com>
2705
2706         parse-datetime: fix failure to diagnose invalid input
2707         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2708         rather than diagnosing the invalid input.  Now it reports this:
2709         date: invalid date '\260'
2710         * lib/parse-datetime.y (to_uchar): Define.
2711         (yylex): Don't sign-extend "other" bytes.
2712         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2713         Thanks to Bruno Haible for the patch to this file.
2714         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2715         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2716
2717 2012-07-03  Jim Meyering  <meyering@redhat.com>
2718
2719         bootstrap: do not require now-removed build-aux/missing
2720         Now that build-aux/missing is, er, missing, bootstrap would
2721         silently fail.
2722         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2723         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2724         no longer part of gnulib.
2725         Diagnose the failure.
2726
2727 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2728
2729         alloca: add support for HP NonStop TNS/E native
2730         * lib/alloca.in.h (alloca): Support the new host.
2731         From a suggestion by Joachim Schmitz in
2732         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2733
2734 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2735
2736         fsusage: remove code not needed on non GNU/Linux systems.
2737
2738         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2739         Don't include headers no longer needed in this case.
2740         * lib/fsusage.c [STAT_STATVFS &&
2741         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2742         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2743
2744 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2745
2746         fsusage: include files needed for glibc 2.6 fallback
2747         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2748         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2749         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2750         Problem reported by Ludovic Courtès in
2751         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2752
2753         fsusage: avoid needless check on GNU/Linux
2754         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2755         on GNU/Linux systems, since it can't possibly work.
2756
2757 2012-07-01  Bruno Haible  <bruno@clisp.org>
2758
2759         log: Fix an autoconf >= 2.64 warning.
2760         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2761         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2762
2763 2012-06-28  Bruno Haible  <bruno@clisp.org>
2764
2765         log10f: Fix possible configuration problem.
2766         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2767         $LOGF_LIBM.
2768         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2769
2770 2012-06-28  Bruno Haible  <bruno@clisp.org>
2771
2772         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2773         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2774         not gl_cv_func_unlink_works.
2775         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2776
2777 2012-06-27  Eric Blake  <eblake@redhat.com>
2778
2779         config: drop scripts that automake says are not independent
2780         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2781         * build-aux/elisp-comp: Delete.
2782         * build-aux/missing: Likewise.
2783         * build-aux/ylwrap: Likewise.
2784         * modules/elisp-comp: Likewise.
2785         * MODULES.html.sh: Drop mention of elisp-comp.
2786         * NEWS: Mention this.
2787
2788 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2789
2790         root-uid: new module
2791         This is for portability to Tandem's NonStop Kernel.
2792         * lib/root-uid.h, modules/root-uid: New files.
2793         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2794         * lib/write-any-file.c, tests/test-sethostname2.c:
2795         Include "root-uid.h".
2796         * lib/euidaccess.c (euidaccess):
2797         * lib/pt_chown.c (main):
2798         * lib/unlinkdir.c (cannot_unlink_dir):
2799         * lib/write-any-file.c (can_write_any_file):
2800         * m4/mknod.m4 (gl_FUNC_MKNOD):
2801         * tests/test-sethostname2.c (geteuid, main):
2802         Don't assume ROOT_UID == 0.
2803         * modules/euidaccess (Depends-on):
2804         * modules/pt_chown (Depends-on):
2805         * modules/sethostname-tests (Depends-on):
2806         * modules/unlinkdir (Depends-on):
2807         * modules/write-any-file (Depends-on):
2808         Add root-uid.
2809
2810         regex: use locale-independent comparison for codeset name
2811         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2812         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2813         for codeset name.
2814         * lib/regex_internal.h: Do not include <strings.h>, since we
2815         no longer use strcasecmp.
2816         * modules/regex (Depends-on): Remove strcase.
2817
2818 2012-06-23  Bruno Haible  <bruno@clisp.org>
2819
2820         getopt-posix: No longer guarantee that option processing is resettable.
2821         * doc/posix-functions/getopt.texi: Drop description of problem with
2822         internal state. Fix info about mingw and msvc9.
2823         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2824         option processing by getopt(). Run three test programs instead of one.
2825         Simplify cross-compilation guess.
2826         * NEWS: Mention the change.
2827         Reported by Rich Felker <dalias@aerifal.cx>.
2828
2829 2012-06-26  Bruno Haible  <bruno@clisp.org>
2830
2831         argp, regex: Ensure strcasecmp gets declared.
2832         * lib/argp-help.c: Include <strings.h>.
2833         * lib/regex_internal.h: Likewise.
2834         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2835
2836 2012-06-24  Bruno Haible  <bruno@clisp.org>
2837
2838         ptsname_r: Make it consistent with ptsname on AIX.
2839         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2840         implementation as for OSF/1.
2841         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2842         a pty master.
2843
2844         ptsname_r: Make it consistent with ptsname on OSF/1.
2845         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2846         OSF/1.
2847
2848 2012-06-24  Bruno Haible  <bruno@clisp.org>
2849
2850         ttyname_r: Fix result on OSF/1, Solaris.
2851         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2852
2853 2012-06-24  Bruno Haible  <bruno@clisp.org>
2854
2855         ptsname_r: Add support for Solaris.
2856         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2857         Solaris.
2858
2859         ptsname_r: Fix test failure on native Windows.
2860         * modules/ptsname_r (Depends-on): Add isatty.
2861
2862         ptsname_r: Fix test failures on IRIX, Solaris.
2863         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2864         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2865         accordingly.
2866         * lib/ptsname_r.c: Include <fcntl.h>.
2867         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2868         set errno if fd is invalid.
2869         * tests/test-isatty.c (main): Update comments.
2870
2871 2012-06-24  Bruno Haible  <bruno@clisp.org>
2872
2873         ptsname test: Extend test.
2874         * tests/test-ptsname.c: Include <errno.h>.
2875         (main): Test behaviour with invalid file descriptor.
2876
2877 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2878
2879         time: fix obsolete comment
2880         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2881         reference to HAVE_STRUCT_TIMESPEC in comment.
2882
2883 2012-06-23  Bruno Haible  <bruno@clisp.org>
2884
2885         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2887         does not handle abbreviated long options with equivalent
2888         disambiguations, set gl_replace_getopt to yes.
2889         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2890
2891 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2892
2893         time_r: fix typo that always overrode localtime_r decl
2894         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2895         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2896         not in a standard include.
2897
2898 2012-06-22  Bruno Haible  <bruno@clisp.org>
2899
2900         Write "Mac OS X" instead of "MacOS X".
2901         * README: Write "Mac OS X" instead of "MacOS X".
2902         * build-aux/bootstrap: Likewise.
2903         * build-aux/install-reloc: Likewise.
2904         * lib/acl-internal.h: Likewise.
2905         * lib/acl_entries.c: Likewise.
2906         * lib/argp-ba.c: Likewise.
2907         * lib/argp-pv.c: Likewise.
2908         * lib/config.charset: Likewise.
2909         * lib/copy-acl.c: Likewise.
2910         * lib/csharpexec.c: Likewise.
2911         * lib/euidaccess.c: Likewise.
2912         * lib/fbufmode.c: Likewise.
2913         * lib/fflush.c: Likewise.
2914         * lib/file-has-acl.c: Likewise.
2915         * lib/filemode.h: Likewise.
2916         * lib/fpurge.c: Likewise.
2917         * lib/freadable.c: Likewise.
2918         * lib/freadahead.c: Likewise.
2919         * lib/freading.c: Likewise.
2920         * lib/freadptr.c: Likewise.
2921         * lib/freadseek.c: Likewise.
2922         * lib/fseeko.c: Likewise.
2923         * lib/fseterr.c: Likewise.
2924         * lib/fsusage.c: Likewise.
2925         * lib/fwritable.c: Likewise.
2926         * lib/fwriting.c: Likewise.
2927         * lib/get-rusage-as.c: Likewise.
2928         * lib/get-rusage-data.c: Likewise.
2929         * lib/getdomainname.c: Likewise.
2930         * lib/idpriv-drop.c: Likewise.
2931         * lib/idpriv-droptemp.c: Likewise.
2932         * lib/localcharset.c: Likewise.
2933         * lib/locale.in.h: Likewise.
2934         * lib/localename.c: Likewise.
2935         * lib/mbsrtowcs-state.c: Likewise.
2936         * lib/nproc.c: Likewise.
2937         * lib/passfd.c: Likewise.
2938         * lib/posix_openpt.c: Likewise.
2939         * lib/printf-parse.c: Likewise.
2940         * lib/progreloc.c: Likewise.
2941         * lib/safe-read.h: Likewise.
2942         * lib/safe-write.h: Likewise.
2943         * lib/sched.in.h: Likewise.
2944         * lib/set-mode-acl.c: Likewise.
2945         * lib/signal.in.h: Likewise.
2946         * lib/stdint.in.h: Likewise.
2947         * lib/stdio-impl.h: Likewise.
2948         * lib/stdlib.in.h: Likewise.
2949         * lib/strtod.c: Likewise.
2950         * lib/sys_select.in.h: Likewise.
2951         * lib/tcgetsid.c: Likewise.
2952         * lib/unistd.in.h: Likewise.
2953         * lib/unlockpt.c: Likewise.
2954         * lib/vasnprintf.c: Likewise.
2955         * lib/vma-iter.c: Likewise.
2956         * lib/wcsrtombs-state.c: Likewise.
2957         * m4/acl.m4: Likewise.
2958         * m4/acosl.m4: Likewise.
2959         * m4/asinl.m4: Likewise.
2960         * m4/atanl.m4: Likewise.
2961         * m4/c-stack.m4: Likewise.
2962         * m4/cosl.m4: Likewise.
2963         * m4/expl.m4: Likewise.
2964         * m4/extensions.m4: Likewise.
2965         * m4/fdatasync.m4: Likewise.
2966         * m4/fmal.m4: Likewise.
2967         * m4/frexp.m4: Likewise.
2968         * m4/frexpf.m4: Likewise.
2969         * m4/frexpl.m4: Likewise.
2970         * m4/fsusage.m4: Likewise.
2971         * m4/getdomainname.m4: Likewise.
2972         * m4/getloadavg.m4: Likewise.
2973         * m4/getopt.m4: Likewise.
2974         * m4/gettext.m4: Likewise.
2975         * m4/gnulib-common.m4: Likewise.
2976         * m4/intdiv0.m4: Likewise.
2977         * m4/intlmacosx.m4: Likewise.
2978         * m4/largefile.m4: Likewise.
2979         * m4/ldexpl.m4: Likewise.
2980         * m4/link-follow.m4: Likewise.
2981         * m4/locale-ar.m4: Likewise.
2982         * m4/locale-fr.m4: Likewise.
2983         * m4/locale-ja.m4: Likewise.
2984         * m4/locale-tr.m4: Likewise.
2985         * m4/locale-zh.m4: Likewise.
2986         * m4/locale_h.m4: Likewise.
2987         * m4/lock.m4: Likewise.
2988         * m4/logl.m4: Likewise.
2989         * m4/mathfunc.m4: Likewise.
2990         * m4/minus-zero.m4: Likewise.
2991         * m4/mktime.m4: Likewise.
2992         * m4/mmap-anon.m4: Likewise.
2993         * m4/multiarch.m4: Likewise.
2994         * m4/nanosleep.m4: Likewise.
2995         * m4/nocrash.m4: Likewise.
2996         * m4/poll.m4: Likewise.
2997         * m4/printf-frexpl.m4: Likewise.
2998         * m4/printf.m4: Likewise.
2999         * m4/signbit.m4: Likewise.
3000         * m4/sinl.m4: Likewise.
3001         * m4/sqrtl.m4: Likewise.
3002         * m4/strerror_r.m4: Likewise.
3003         * m4/tanl.m4: Likewise.
3004         * m4/threadlib.m4: Likewise.
3005         * m4/ttyname_r.m4: Likewise.
3006         * m4/unlink.m4: Likewise.
3007         * m4/visibility.m4: Likewise.
3008         * m4/wcwidth.m4: Likewise.
3009         * tests/minus-zero.h: Likewise.
3010         * tests/test-alloca-opt.c: Likewise.
3011         * tests/test-copy-acl.sh: Likewise.
3012         * tests/test-copy-file.sh: Likewise.
3013         * tests/test-fdatasync.c: Likewise.
3014         * tests/test-file-has-acl.sh: Likewise.
3015         * tests/test-flock.c: Likewise.
3016         * tests/test-fsync.c: Likewise.
3017         * tests/test-localename.c: Likewise.
3018         * tests/test-malloca.c: Likewise.
3019         * tests/test-nonblocking-pipe.h: Likewise.
3020         * tests/test-nonblocking-socket.h: Likewise.
3021         * tests/test-openpty.c: Likewise.
3022         * tests/test-posix_openpt.c: Likewise.
3023         * tests/test-ptsname.c: Likewise.
3024         * tests/test-ptsname_r.c: Likewise.
3025         * tests/test-sameacls.c: Likewise.
3026         * tests/test-select.h: Likewise.
3027         * tests/test-set-mode-acl.sh: Likewise.
3028         * tests/test-snprintf-posix.h: Likewise.
3029         * tests/test-sprintf-posix.h: Likewise.
3030         * tests/test-strtod.c: Likewise.
3031         * tests/test-time.c: Likewise.
3032         * tests/test-vasnprintf-posix.c: Likewise.
3033         * tests/test-vasprintf-posix.c: Likewise.
3034         * doc/acl-resources.txt: Likewise.
3035         * doc/**/*.texi: Likewise.
3036         Reported by Max Horn <max@quendi.de>.
3037
3038 2012-06-22  Bruno Haible  <bruno@clisp.org>
3039
3040         grantpt: Relax requirement regarding invalid file descriptors.
3041         * lib/grantpt.c: Don't include <fcntl.h>.
3042         (grantpt): Don't verify the validity of the file descriptor.
3043         * modules/grantpt (Depends-on): Remove fcntl-h.
3044         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3045         file descriptors.
3046         * doc/posix-functions/grantpt.texi: Document more platforms on which
3047         grantpt succeeds for invalid file descriptors.
3048         Reported by Rich Felker <dalias@aerifal.cx>.
3049
3050 2012-06-22  Bruno Haible  <bruno@clisp.org>
3051
3052         fbufmode test: Don't test unportable behaviour.
3053         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3054         (main): Invoke it three times.
3055         Reported by Szabolcs Nagy <nsz@port70.net>
3056         and Rich Felker <dalias@aerifal.cx>.
3057
3058 2012-06-21  Bruno Haible  <bruno@clisp.org>
3059
3060         gnulib-tool: Refactor inctests variable.
3061         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3062         (func_modules_transitive_closure,
3063         func_modules_transitive_closure_separately,
3064         func_import, func_create_testdir): Update.
3065
3066         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3067         * gnulib-tool: Accept option --without-tests.
3068         (func_usage): Document --without-tests option. Rearrange.
3069         (inctests): Normalize according to the mode.
3070         * NEWS: Mention the change.
3071         Suggested by Simon Josefsson.
3072
3073 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3074
3075         parse-duration test: Avoid spurious output.
3076         * tests/test-parse-duration.sh: Reindent with leading tabs.
3077
3078 2012-06-21  Jim Meyering  <meyering@redhat.com>
3079
3080         maint: disable the strncpy prohibition
3081         * cfg.mk: Do not prohibit strncpy here.
3082
3083 2012-06-21  Bruno Haible  <bruno@clisp.org>
3084
3085         nonblocking: Avoid compilation error on mingw64.
3086         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3087         fscanf.
3088         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3089         * modules/vfscanf (configure.ac): Likewise.
3090         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3091         definition only if stdio.h has prepared it.
3092         Reported by Daniel P. Berrange <berrange@redhat.com>.
3093
3094 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3095
3096         gnulib-tool: Use readlink if it is available.
3097         * gnulib-tool (func_readlink): Choose function more appropriately.
3098
3099 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3100
3101         posixtm-tests: port to buggy compiler
3102         Problem reported by Simon Josefsson in
3103         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3104         * modules/posixtm-tests (Depends-on): Add stdint.
3105         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3106         Now of type int_least64_t, not int64_t, both because that's
3107         what INT64_C returns and because int_least64_t works even
3108         on 72-bit hosts.
3109         (T): Use INT64_C on constants outside the traditional int range,
3110         to work around compiler bug noted by Simon.
3111
3112         mktime: fix integer overflow in 'configure'-time test
3113         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3114         after integer overflow.  Problem reported by Rich Felker in
3115         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3116         Also, don't look for further instances of a bug if we've already
3117         found one instance; this helps 'configure' run faster.
3118
3119 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3120
3121         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3122         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3123         GetVersionEx correctly.
3124         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3125
3126 2012-06-20  Bruno Haible  <bruno@clisp.org>
3127
3128         fdopen: Allow implementations that don't reject invalid fd arguments.
3129         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3130         succeeds.
3131         Reported by Rich Felker <dalias@aerifal.cx>.
3132
3133 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3134
3135         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3136         bring in LIBINTL.
3137
3138 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3139
3140         init.sh: do not rely on autoupated PWD
3141         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3142         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3143         Although Nelson's bug was not necessarily fixed by this patch,
3144         it seems wise to make the change for safety.
3145         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3146         automagically after 'cd'; this is not reliable on older shells.
3147         (setup_): Fail if we cannot cd to temporary directory.
3148
3149 2012-06-19  Bruno Haible  <bruno@clisp.org>
3150
3151         stat, fstat: Avoid warnings on mingw64.
3152         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3153         redefining.
3154         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3155         Reported by Daniel P. Berrange <berrange@redhat.com>.
3156
3157 2012-06-19  Bruno Haible  <bruno@clisp.org>
3158
3159         stdioext: Add support for musl libc.
3160
3161         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3162         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3163
3164         * m4/fseterr.m4: New file.
3165         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3166         function exists.
3167         * modules/fseterr (Files): Add m4/fseterr.m4.
3168         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3169         __fseterr does not exist.
3170         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3171
3172         * lib/freadable.h: Update comment.
3173
3174         * lib/fwritable.h: Update comment.
3175
3176         * lib/freading.h: Update comment.
3177
3178         * lib/fwriting.h: Update comment.
3179
3180         * m4/freadahead.m4: New file.
3181         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3182         that function exists.
3183         * modules/freadahead (Files): Add m4/freadahead.m4.
3184         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3185         __freadahead does not exist.
3186         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3187
3188         * m4/freadptr.m4: New file.
3189         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3190         function exists.
3191         * modules/freadptr (Files): Add m4/freadptr.m4.
3192         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3193         __freadptr does not exist.
3194         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3195
3196         * m4/freadseek.m4: New file.
3197         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3198         exists.
3199         * modules/freadseek (Files): Add m4/freadseek.m4.
3200         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3201
3202         * lib/fpurge.c (fpurge): Update comment.
3203
3204         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3205
3206 2012-06-19  Bruno Haible  <bruno@clisp.org>
3207
3208         *printf-posix: Put more info into config.log.
3209         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3210         exit code into config.log.
3211
3212 2012-06-19  Bruno Haible  <bruno@clisp.org>
3213
3214         getopt-gnu: Fix exit code overflow in autoconf test.
3215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3216         to keep them below < 128.
3217
3218 2012-06-17  Jim Meyering  <meyering@redhat.com>
3219
3220         maint.mk: fix typo in code to derive GPG key at release time
3221         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3222
3223 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3224
3225         regex: avoid warning when pointers are not long
3226         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3227         and uintptr_t, not long, for portability to hosts where pointers and
3228         long have different sizes.  Issue noted by Daniel P. Berrange in
3229         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3230         and fix suggested by Bruno Haible in
3231         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3232
3233 2012-06-17  Bruno Haible  <bruno@clisp.org>
3234
3235         dummy: Relicense into the public domain.
3236         * modules/dummy (License): Set to "public domain".
3237         Suggested by Reuben Thomas.
3238
3239 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3240
3241         announce-gen: VPATH issues
3242         * build-aux/announce-gen (--srcdir): New option, used to trim the
3243         $srcdir part of the path from $builddir to NEWS.
3244         * top/maint.mk (announcement): Adjust.
3245
3246 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3247
3248         gnu-web-doc-update: VPATH builds
3249         * build-aux/gnu-web-doc-update (--builddir): New option.
3250         Revamp the handling of options.
3251         Prefer $(...) to `...`.
3252         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3253         the template, and it is GNU mktemp specific.
3254         Prefer set -e to long series of &&.
3255         Restore the initial git branch, not "master".
3256         Properly initialize submodules (don't rely only on bootstrap).
3257         Do not reconfigure blindly, use config.status.
3258         * top/README-release: Update instructions for gnu-web-doc-update.
3259
3260 2012-06-11  Jim Meyering  <meyering@redhat.com>
3261
3262         maint.mk: revert most of the previous change re "all these"
3263         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3264         For rationale, see the discussion at
3265         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3266
3267 2012-06-10  Karl Berry  <karl@gnu.org>
3268
3269         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3270
3271         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3272
3273 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3274
3275         parse-duration: Relicense under LGPLv2+.
3276         * modules/parse-duration (License): Change to LGPLv2+.
3277
3278 2012-06-10  Jim Meyering  <meyering@redhat.com>
3279
3280         maint.mk: prohibit common grammar error: "all these"
3281         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3282         the list of prohibited word sequences.  It should be "all of these".
3283         * lib/tempname.c (__gen_tempname): Fix one of them.
3284
3285 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3286
3287         do-release-commit-and-tag: support VPATH builds
3288         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3289         (noteworthy): Defined earlier to factor its value.
3290         (noteworthy_stub): New.
3291         Use it to factor.
3292         (help_version): Split into...
3293         (help, version): these.
3294         Adjust the option processing part.
3295         Support "--option=value" in addition to "--option value".
3296         (builddir): New.
3297         (--builddir): New option.
3298         * top/README-release: Document this.
3299         Reword slightly so that the reader cannot understand that he
3300         has to do these steps before calling do-release-commit-and-tag.
3301
3302 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3303
3304         readme-release: also require announce-gen and maintainer-makefile
3305         * modules/readme-release (Depends-on): here.
3306         * modules/announce-gen, modules/do-release-commit-and-tag,
3307         modules/gnu-web-doc-update, modules/maintainer-makefile
3308         (Description): Point to readme-release.
3309
3310 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3311
3312         maint.mk: fix VPATH issues.
3313         * top/maint.mk (news-check): GNU Make understand $< very well.
3314         (release-prep): NEWS is in $(srcdir).
3315
3316 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3317
3318         readme-release: require the promoted modules.
3319         * modules/readme-release (Depends-on): Add
3320         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3321         in this text.
3322
3323 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3324             Bruno Haible  <bruno@clisp.org>
3325
3326         error, strerror-override: Support mingw64 from Fedora 17.
3327         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3328         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3329         EINPROGRESS.
3330         * lib/strerror-override.h (strerror_override): Test it.
3331         * lib/strerror-override.c (strerror_override): Likewise.
3332         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3333
3334 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3335             Bruno Haible  <bruno@clisp.org>
3336
3337         error, strerror-override: Support mingw64 from Fedora 17.
3338         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3339         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3340         * lib/strerror-override.h (strerror_override): Test it.
3341         * lib/strerror-override.c (strerror_override): Likewise.
3342
3343 2012-06-03  Bruno Haible  <bruno@clisp.org>
3344
3345         error, strerror-override: Support new errno values from POSIX:2008.
3346         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3347         ENOTRECOVERABLE.
3348         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3349         platforms.
3350         * lib/strerror-override.c (strerror_override): Conditionalize the
3351         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3352         * lib/strerror-override.h (strerror_override): Declare also if
3353         GNULIB_defined_EOWNERDEAD is defined.
3354         * tests/test-errno.c (e130, e131): New variables.
3355         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3356         ENOTRECOVERABLE.
3357         Reported by Paolo Bonzini.
3358
3359 2012-05-31  Jim Meyering  <meyering@redhat.com>
3360
3361         savewd: add missing dependency on sys_wait module
3362         * modules/savewd (Depends-on): Add sys_wait, needed at least
3363         for MSVC.  Report and suggested change by Michael Goffioul.
3364
3365 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3366
3367         system-quote-tests: port to CentOS 5
3368         Problem reported by Tom G. Christensen in
3369         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3370         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3371
3372 2012-05-29  Jim Meyering  <meyering@redhat.com>
3373
3374         maint: fix typos in comments and ChangeLog
3375         Culprits identified and fixed mostly automatically using these commands:
3376         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3377         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3378         using http://github.com/lyda/misspell-check
3379         * ChangeLog: Fix typos.
3380         * doc/solaris-versions: Likewise.
3381         * lib/regexec.c (re_search_stub): Likewise.
3382         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3383
3384 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3385
3386         manywarnings: remove duplicate -Wmultichar entry
3387         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3388         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3389         so keep the entry marked as documented.
3390
3391 2012-05-27  Karl Berry  <karl@gnu.org>
3392
3393         * config/srclist.txt (mktime.c): remove last libc sync,
3394         perhaps just temporarily.
3395
3396 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3397
3398         regex: don't assume uint64_t or uint32_t
3399         * lib/regcomp.c (init_word_char): Don't assume that the types
3400         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3401         them, and on some 32-bit compilers there is no uint64_t.
3402         Problem reported by Gianluigi Tiesi in
3403         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3404
3405 2012-05-25  Jim Meyering  <meyering@redhat.com>
3406
3407         maint.mk: add strncpy-prohibiting syntax-check rule
3408         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3409
3410 2012-05-24  Jim Meyering  <meyering@redhat.com>
3411
3412         maint.mk: compute $(gpg_key_ID) more portably
3413         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3414         That use of sed is not portable to some fringe systems.
3415         Reported by Paul Eggert in
3416         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3417
3418 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3419
3420         mktime: sync from glibc
3421         * config/srclist.txt: Uncomment mktime.c.
3422         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3423         First, indent with tabs, since glibc uses tabs and doesn't want to
3424         change and we'd rather be identical to glibc.  Also, two small
3425         coding changes:
3426         (isdst_differ): Use &&, not &, as && is the usual style.
3427         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3428         for clarity.
3429
3430 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3431
3432         announce-gen: du -h is more portable than du --human
3433         * build-aux/announce-gen (sizes): Invoke du with -h instead
3434         of --human.  Accept leading white space in its output.
3435
3436 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3437
3438         announce-gen: Improve diagnostics.
3439         * build-aux/announce-gen: When parsing command line options,
3440         prefer "announce-gen: option --release-type requires an argument"
3441         to "Option release-type requires an argument".
3442
3443 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3444
3445         maint.mk: gpg_key_ID: use sed more portably
3446         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3447         the closing brace.
3448         (refresh-po): Fuse two sed invocations into one.
3449
3450 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3451
3452         gitlog-to-changelog: support the log message format used in Bison.
3453         * build-aux/gitlog-to-changelog: Support --strip-tab and
3454         --strip-cherry-picked.
3455
3456 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3457
3458         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3459         the rest of the current time slice to another thread in the current
3460         process. So if the thread that feeds the file decscriptor we're
3461         polling is not in the current process, we get busy-waiting.
3462         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3463         Patch from Theodore Leblond.
3464         * lib/select.c: Split polling out of the loop that sets the output
3465         fd_sets.  Check for zero result and loop if the wait timeout is
3466         infinite.
3467
3468 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3469
3470         select: Fix build error on IRIX 6.5.
3471         * lib/select.c: Include stddef.h for NULL.
3472
3473 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3474
3475         gc: fix libgcrypt detection on older machines.
3476         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3477         copyright years because the file has been distributed every year
3478         since it was created.
3479
3480 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3481
3482         crypto: fix bug in large buffer handling
3483         Problem reported by Serge Belyshev for glibc in
3484         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3485         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3486         * lib/md4.c (md4_process_block):
3487         * lib/md5.c (md5_process_block):
3488         * lib/sha1.c (sha1_process_block):
3489         * lib/sha256.c (sha256_process_block):
3490         Don't assume the buffer length is less than 2**32.
3491         * lib/sha512.c (sha512_process_block): Likewise.
3492         Here, the bug is present only in the rare case where the host does
3493         not support uint64_t or where size_t is wider than 64 bits.
3494         Use u64size to work around the problems.
3495         * lib/u64.h (u64size): New macro.
3496
3497 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3498
3499         fsusage: fix block size returned on older Linux 2.6
3500
3501         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3502         which is available since Linux 2.6.
3503         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3504         when the member is available so it can be used as a fallback.
3505         * doc/posix-functions/statvfs.texi: Mention the hang issue
3506         on Linux < 2.6.36.
3507
3508 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3509
3510         bootstrap: suppress stderr chatter
3511         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3512         Omit unnecessary chatter to stderr.  The main program chatter
3513         was there only inadvertantly.
3514
3515         bootstrap: .gitignore files created by autopoint, libtool
3516         I ran into this problem when bootstrapping the latest diffutils.
3517         After './bootstrap', 'git status' reported lots of untracked files
3518         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3519         autopoint and do not need to be version-controlled.
3520         * build-aux/bootstrap: Put into .gitignore the files that
3521         autopoint and libtool create, by keeping track of files that exist
3522         after but not before these programs are run.
3523         (version_controlled_file): Move up.  2nd arg is now full file
3524         name, not base name; this is more convenient.  Put CVS at the end,
3525         as it's now somewhat deprecated.
3526
3527 2012-05-14  Jim Meyering  <meyering@redhat.com>
3528
3529         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3530         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3531         definition.  Reported by Bruno Haible.
3532
3533 2012-05-13  Bruno Haible  <bruno@clisp.org>
3534             Paul Eggert  <eggert@cs.ucla.edu>
3535
3536         binary-io: Define set_binary_mode function.
3537         * lib/binary-io.h (set_binary_mode): New function.
3538         (SET_BINARY): Define in terms of set_binary_mode.
3539         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3540         * tests/test-binary-io.c (main): Accept an argument, and test either
3541         set_binary_mode or SET_BINARY depending on the argument.
3542         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3543         argument. Clean up also t-bin-out0.tmp.
3544
3545 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3546
3547         bootstrap: take advantage of POSIX shell features
3548
3549         The 'bootstrap' script offered by Gnulib script already uses POSIX
3550         shell features (like $((...)) arithmetic expansions) that are not
3551         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3552         means that bootstrap must already be run using a proper POSIX shell,
3553         which will thus provide more features, like ${var#pattern} parameter
3554         expansion or inversion of a command exit status with '!'.  We can
3555         thus use these features to improve the clarity and the performances
3556         of the bootstrap script.
3557
3558         Suggested by Eric Blake.
3559
3560         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3561         of sed/expr plus command substitutions, to save some forks.  While
3562         we are at it, prefer the POSIX $(...) form of command substitution,
3563         rather than the legacy form `...` (since the former is visually
3564         clearer and interacts better with quoting), and prefer the idiom:
3565           "if ! CMD; then ACTION ..."
3566         over the idiom:
3567           "if CMD; then :; else ACTION ..."
3568         which was required by legacy Bourne shells not supporting '!'.
3569
3570 2012-05-12  Bruno Haible  <bruno@clisp.org>
3571
3572         system-quote: Add more comments.
3573         * lib/system-quote.h: Add more comments about wilcards and limitations.
3574         Suggested by Eli Zaretskii <eliz@gnu.org>.
3575
3576         sh-quote, system-quote: Add comments about wildcards.
3577         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3578         * lib/system-quote.h: Likewise.
3579         Reported by Eli Zaretskii <eliz@gnu.org>.
3580
3581 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3582
3583         fsusage: check for GNU/Linux statvfs problem dynamically
3584         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3585         Define STAT_STATFS2_BSIZE too, since in this case the code now
3586         checks dynamically whether statvfs is reliable, falling back on
3587         Linux-style statfs otherwise.
3588         (statvfs_works): New function, for dynamically testing statvfs.
3589         (get_fs_usage) [STAT_STATVFS]: Use it.
3590         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3591         statvfs on GNU/Linux hosts, since it's now done dynamically.
3592
3593 2012-05-10  Bruno Haible  <bruno@clisp.org>
3594
3595         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3596         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3597         '?' character.
3598         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3599         * tests/test-system-quote-main.c (check_all): Check also strings like
3600         "??????????".
3601         Reported by Eli Zaretskii <eliz@gnu.org>.
3602
3603 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3604
3605         _Noreturn: port config.h to gcc -Wundef
3606         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3607         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3608         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3609
3610 2012-05-10  Bruno Haible  <bruno@clisp.org>
3611
3612         system-quote: Refactor.
3613         * lib/system-quote.h (system_quote_copy): Fix comment.
3614         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3615         New functions, extracted from system_quote_copy.
3616         (system_quote_length, system_quote_copy): Use these functions.
3617         Reported by Paul Eggert.
3618
3619 2012-05-08  Bruno Haible  <bruno@clisp.org>
3620
3621         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3622         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3623
3624 2012-05-08  Bruno Haible  <bruno@clisp.org>
3625
3626         Tests for module 'system-quote'.
3627         * modules/system-quote-tests: New file.
3628         * tests/test-system-quote.sh: New file.
3629         * tests/test-system-quote-main.c: New file.
3630         * tests/test-system-quote-child.c: New file.
3631
3632         New module 'system-quote'.
3633         * lib/system-quote.h: New file.
3634         * lib/system-quote.c: New file.
3635         * modules/system-quote: New file.
3636
3637 2012-05-08  Bruno Haible  <bruno@clisp.org>
3638
3639         sh-quote: Make C++ safe and allow multiple inclusion.
3640         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3641         declarations in extern "C".
3642
3643 2012-05-08  Bruno Haible  <bruno@clisp.org>
3644
3645         sh-quote tests: Make tests stricter.
3646         * tests/test-sh-quote.c (check_one): Check the return value of
3647         shell_quote_copy.
3648         (main): Check a string with a CR character. Check a string that
3649         contains UCHAR_MAX.
3650
3651 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3652
3653         warnings.m4: provide a means to specify the program to compile.
3654         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3655         (gl_WARN_ADD): here.
3656         Use gl_AS_VAR_APPEND.
3657         Support an argument to specify the program to compile.
3658         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3659         AC_SUBST the WARN_CFLAGS when they are used.
3660         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3661         leave this to gl_WARN_ADD.
3662
3663 2012-05-08  Eric Blake  <eblake@redhat.com>
3664
3665         doc: recommendations on gettext version
3666         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3667         choice between versions.
3668         * DEPENDENCIES (gettext): Cover both approaches.
3669
3670 2012-05-08  Jim Meyering  <meyering@redhat.com>
3671
3672         init.sh: explain why EXEEXT support uses aliases rather than functions
3673         * tests/init.sh: Add a comment.
3674
3675         init.sh: don't let bash aliases interfere with tests
3676         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3677         is bash.  This avoids problems for those who alias standard commands to
3678         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3679         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3680
3681 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3682
3683         stdint: be more consistent with glibc, SunOS libc
3684         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3685         (gl_int_fast16_t, gl_uint_fast16_t)
3686         (gl_int_fast32_t, gl_uint_fast32_t)
3687         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3688         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3689         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3690         Be consistent with glibc by default, and with SunOS 5.10 and later
3691         if __sun is defined.  This lessens the likelihood of clashes if
3692         code compiled for older hosts is combined with code compiled for
3693         newer ones.  Problem reported by Niels Möller in
3694         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3695
3696 2012-05-07  Eric Blake  <eblake@redhat.com>
3697
3698         isatty: relax license to LGPLv2+
3699         * modules/isatty (License): Relax license.
3700
3701 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3702
3703         stat-size: comment fix
3704         * lib/stat-size.h: Remove obsolete comment about indenting.
3705
3706 2012-05-06  Bruno Haible  <bruno@clisp.org>
3707
3708         Tests for module 'sh-quote'.
3709         * modules/sh-quote-tests: New file.
3710         * tests/test-sh-quote.c: New file.
3711
3712 2012-05-06  Bruno Haible  <bruno@clisp.org>
3713
3714         sh-quote: Improve shell_quote_argv's signature.
3715         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3716         * lib/sh-quote.c (shell_quote_argv): Likewise.
3717
3718 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3719
3720         stdint: document issues with int_fast8_t etc.
3721         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3722         stdint.h substitutes may define these types differently.  See
3723         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3724
3725 2012-05-05  Bruno Haible  <bruno@clisp.org>
3726
3727         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3728         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3729         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3730         or 'guessing no (mishandles large arguments)'.
3731
3732 2012-05-05  Bruno Haible  <bruno@clisp.org>
3733
3734         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3735         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3736         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3737         set gl_cv_func_link_follows_symlink to "guessing no".
3738
3739 2012-05-05  Bruno Haible  <bruno@clisp.org>
3740
3741         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3742         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3743         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3744         "guessing no".
3745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3746
3747 2012-05-05  Bruno Haible  <bruno@clisp.org>
3748
3749         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3750         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3751         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3752         set gl_cv_struct_dirent_d_ino to "guessing yes".
3753
3754 2012-05-05  Bruno Haible  <bruno@clisp.org>
3755
3756         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3757         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3758         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3759         "guessing yes".
3760
3761 2012-05-05  Bruno Haible  <bruno@clisp.org>
3762
3763         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3764         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3765         compiling to a glibc system, set gl_cv_func_signbit and
3766         gl_cv_func_signbit_gcc to "guessing yes".
3767
3768 2012-05-05  Bruno Haible  <bruno@clisp.org>
3769
3770         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3771         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3772         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3773         to "guessing yes".
3774         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3775         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3776
3777 2012-05-05  Bruno Haible  <bruno@clisp.org>
3778
3779         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3780         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3781         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3782         gl_cv_func_realpath_works to "guessing yes".
3783
3784 2012-05-05  Bruno Haible  <bruno@clisp.org>
3785
3786         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3787         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3788         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3789
3790 2012-05-04  Bruno Haible  <bruno@clisp.org>
3791
3792         Tweak last commit.
3793         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3794         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3795
3796 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3797
3798         unistd_h: make it easier to avoid sys_types_h
3799         This is useful for Emacs, which has its own method of porting to
3800         Windows, and which therefore does not need the sys_types_h module.
3801         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3802         code moved here from gl_SYS_TYPES_H.
3803         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3804         using the code directly.
3805         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3806         gl_SYS_TYPES_H.
3807         * modules/sys_types (Files):
3808         * modules/unistd (Files): Add m4/off_t.m4.
3809
3810 2012-05-03  Bruno Haible  <bruno@clisp.org>
3811
3812         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3813         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3814         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3815         "guessing yes" or "guessing no".
3816         (gl_FUNC_LSTAT): Update.
3817         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3818         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3819         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3820
3821 2012-05-03  Bruno Haible  <bruno@clisp.org>
3822
3823         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3824         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3825         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3826         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3827         cross-compiling, choose the first alternative on glibc systems.
3828         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3829
3830 2012-05-03  Bruno Haible  <bruno@clisp.org>
3831
3832         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3833         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3834         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3835
3836 2012-05-03  Bruno Haible  <bruno@clisp.org>
3837
3838         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3839         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3840
3841 2012-05-03  Bruno Haible  <bruno@clisp.org>
3842
3843         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3844         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3845         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3846         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3847         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3848         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3849         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3850         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3851         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3852         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3853         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3854         gl_cv_func_chown_ctime_works to "guessing yes".
3855         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3856         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3857         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3858         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3859         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3861         compiling to glibc systems, set gl_cv_func_open_directory_works to
3862         "guessing yes".
3863         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3864         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3865         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3866         "guessing yes".
3867         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3868         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3869         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3870         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3871         "guessing yes".
3872         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3873         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3874         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3875         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3876         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3877         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3878         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3879         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3880         "guessing yes".
3881         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3882         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3883         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3884         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3885         "guessing yes".
3886         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3887         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3888         "guessing yes".
3889         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3890         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3891         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3892         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3893         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3894         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3895         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3896         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3897         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3898         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3899         "guessing yes".
3900         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3901         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3902         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3903         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3904         "guessing yes".
3905         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3906         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3907         "guessing yes".
3908         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3909         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3910         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3911         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3912         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3913         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3914         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3915         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3916         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3917         "guessing yes".
3918         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3919         compiling to glibc systems, set gl_cv_func_mknod_works to
3920         "guessing yes".
3921         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3922         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3923         "guessing yes".
3924         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3925         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3926         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3927         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3928         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3929         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3930         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3931         compiling to glibc systems, set gl_cv_func_svid_putenv to
3932         "guessing yes".
3933         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3934         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3935         "guessing yes".
3936         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3937         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3938         "guessing yes".
3939         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3940         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3941         to "guessing yes".
3942         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3943         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3944         to "guessing yes".
3945         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3946         compiling to glibc systems, set gl_cv_func_rmdir_works to
3947         "guessing yes".
3948         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3949         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3950         gl_cv_func_unlink_parent_fails to "guessing yes".
3951         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3952         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3953         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3954         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3955         gl_cv_func_rename_dest_works to "guessing yes".
3956         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3957         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3958         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3959         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3960         "guessing yes".
3961         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3962         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3963         "guessing yes".
3964         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3965         compiling to glibc systems, set gl_cv_func_setenv_works to
3966         "guessing yes".
3967         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3968         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3969         "guessing yes".
3970         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3971         compiling to glibc systems, set gl_cv_func_sleep_works to
3972         "guessing yes".
3973         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3974         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3975         "guessing yes".
3976         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3977         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3978         "guessing yes".
3979         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3980         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3981         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3982         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3983         "guessing yes".
3984         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3985         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3986         "guessing yes".
3987         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3988         compiling to glibc systems, set gl_cv_func_usleep_works to
3989         "guessing yes".
3990         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3991         compiling to glibc systems, set gl_cv_func_futimesat_works to
3992         "guessing yes".
3993
3994 2012-05-03  Bruno Haible  <bruno@clisp.org>
3995
3996         Say "guessing yes" or "guessing no" when cross-compiling.
3997         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3998         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3999         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4000         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4001         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4002         am_cv_func_working_getline to "guessing yes" or "guessing no".
4003         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4004         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4005         (gl_FUNC_MEMMEM): When cross-compiling, set
4006         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4007         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4008         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4010         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4011         "guessing no".
4012         (gl_FUNC_STRCASESTR): When cross-compiling, set
4013         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4014         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4015         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4016         (gl_FUNC_STRSTR): When cross-compiling, set
4017         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4018         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4019         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4020         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4021         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4022
4023 2012-05-01  Bruno Haible  <bruno@clisp.org>
4024
4025         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4026         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4027         * build-aux/reloc-ldflags: Likewise.
4028         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4029
4030 2012-05-01  Bruno Haible  <bruno@clisp.org>
4031
4032         gnulib-tool: Remove transitional code.
4033         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4034         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4035
4036 2012-05-01  Bruno Haible  <bruno@clisp.org>
4037
4038         getcwd: Fix misindentation.
4039         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4040
4041 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4042
4043         exclude: process exclude and include directives in order
4044         This restores the pre-2009 behavior, and is part of a fix of a
4045         grep bug reported by Quentin Arce in
4046         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4047         * lib/exclude.c (struct exclude): Remove 'tail' member.
4048         (new_exclude_segment): Prepend the new segment instead of appending.
4049         Return void, since that's now more convenient.
4050         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4051         (file_name_matches): Renamed from excluded_file_name_p.
4052         (file_pattern_matches, file_name_matches):
4053         Return true if the pattern matches, not if it excludes.
4054         All callers changed.
4055         (excluded_file_name): Process the list in reverse order;
4056         since the list is now reversed this restores the pre-2009 behavior.
4057         (add_exclude): Adjust to new reversed-order list.  Use local var
4058         rather than macro, for clarity.
4059         * tests/test-exclude7.sh: Adjust to corrected behavior.
4060
4061         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4062         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4063         it's not possible here.  Handle the case of \ at end of pattern
4064         without dumping core.
4065         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4066
4067         _Noreturn: future-proof non-GNU and non-MSVC compilers
4068         * build-aux/snippet/_Noreturn.h (_Noreturn):
4069         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4070         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4071         C11 or later.  This is more likely to work with random future C
4072         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4073         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4074
4075         exclude: handle wildcards with FNM_EXTMATCH
4076         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4077         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4078         comment that "has wildcards" really means "has or may have
4079         wildcards".  Simplify by avoiding the need to call strcspn.
4080
4081 2012-04-29  Bruno Haible  <bruno@clisp.org>
4082
4083         gnulib-tool: Fix list of authors.
4084         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4085
4086 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4087
4088         bootstrap: support Automake-NG in $buildreq
4089         * bootstrap (check_versions): Handle automake and aclocal from
4090         Automake-NG specially.  They can be specified as respectively
4091         the "automake-ng" and "aclocal-ng" requirements.
4092
4093 2012-04-25  Eric Blake  <eblake@redhat.com>
4094
4095         bootstrap: only force latest Makefile.in.in for gettext module
4096         * build-aux/bootstrap (with_gettext): Only install latest
4097         Makefile.in.in for projects requesting bleeding edge gettext.
4098
4099 2012-04-22  Bruno Haible  <bruno@clisp.org>
4100
4101         doc: Mention reason for replacement on glibc/Linux systems.
4102         * doc/posix-functions/dprintf.texi: Mention the problem with special
4103         'long double' values.
4104         * doc/posix-functions/fprintf.texi: Likewise.
4105         * doc/posix-functions/printf.texi: Likewise.
4106         * doc/posix-functions/snprintf.texi: Likewise.
4107         * doc/posix-functions/sprintf.texi: Likewise.
4108         * doc/posix-functions/vdprintf.texi: Likewise.
4109         * doc/posix-functions/vfprintf.texi: Likewise.
4110         * doc/posix-functions/vprintf.texi: Likewise.
4111         * doc/posix-functions/vsnprintf.texi: Likewise.
4112         * doc/posix-functions/vsprintf.texi: Likewise.
4113         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4114         platforms with F_DUPFD_CLOEXEC problems.
4115         * doc/posix-functions/glob.texi: Mention which platforms are affected
4116         by the problem with symbolic links.
4117         * doc/posix-functions/linkat.texi: Mention the problem with
4118         AT_SYMLINK_FOLLOW on Linux.
4119
4120 2012-04-22  Bruno Haible  <bruno@clisp.org>
4121
4122         pwrite: Don't replace on all platforms.
4123         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4124
4125 2012-04-22  Bruno Haible  <bruno@clisp.org>
4126
4127         rint* tests: Avoid gcc warnings.
4128         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4129         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4130         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4131
4132 2012-04-21  Bruno Haible  <bruno@clisp.org>
4133
4134         users.txt: Update.
4135         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4136         switched from CVS to git, bzr, or svn.
4137
4138 2012-04-21  Bruno Haible  <bruno@clisp.org>
4139
4140         Large File Support for native Windows platforms.
4141
4142         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4143         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4144
4145         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4146         type.
4147         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4148         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4149         * doc/posix-headers/sys_types.texi: Mention the effect of the
4150         'largefile' module.
4151
4152         * lib/fcntl.in.h: Add comments about off_t.
4153         * modules/fcntl-h (Depends-on): Add sys_types.
4154
4155         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4156         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4157         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4158         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4159         * modules/unistd (Depends-on): Add sys_types.
4160         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4161
4162         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4163         instead of lseek.
4164         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4165         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4166         * modules/lseek (Depends-on): Add sys_types.
4167
4168         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4169         msvc-nothrow.h.
4170         (SetFileSize): New function.
4171         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4172         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4173         if Large File Support is requested.
4174         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4175         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4176
4177         * lib/stdio.in.h: Add comments about off_t.
4178         * modules/stdio (Depends-on): Add sys_types.
4179
4180         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4181         instead of ftello.
4182         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4183         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4184         (gl_PREREQ_FTELLO): New macro.
4185         * modules/ftello (Depends-on): Add sys_types.
4186         (configure.ac): Incoke gl_PREREQ_FTELLO.
4187
4188         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4189         instead of fseeko.
4190         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4191         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4192         (gl_PREREQ_FSEEKO): New macro.
4193         * modules/fseeko (Depends-on): Add sys_types.
4194         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4195
4196         * lib/sys_stat.in.h: Add comments about off_t.
4197         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4198         64-bit integer for st_size in 'struct stat'.
4199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4200         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4201         * modules/sys_stat (Depends-on): Add sys_types.
4202         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4203
4204         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4205         instead of stat or _stat.
4206
4207         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4208         'struct _stati64' instead of fstat and 'struct stat'.
4209         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4210         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4211
4212         Reported by Ray Satiro <raysatiro@yahoo.com>.
4213
4214 2012-04-19  Eric Blake  <eblake@redhat.com>
4215
4216         bootstrap: accommodate older libtool
4217         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4218         Reported by Daniel P. Berrange.
4219
4220 2012-04-19  Jim Meyering  <meyering@redhat.com>
4221
4222         announce-gen: avoid failure due to lack of Digest::SHA1
4223         Even with the preferred Digest::SHA available, this script
4224         would fail when the backup module, Digest::SHA1, was not installed.
4225         * build-aux/announce-gen: Quote the conditional use of "use".
4226         Reported by Reuben Thomas in:
4227         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4228
4229         bootstrap: don't let a user's CDPATH setting affect this script
4230         When CDPATH is set, cd will sometimes generate output.
4231         When "cd" is run in a subshell whose output matters, that
4232         surprising-to-some output can cause malfunction.
4233         Unsetting CDPATH turns off this shell "feature."
4234         * build-aux/bootstrap (CDPATH): Unset.
4235         Reported by Reuben Thomas in:
4236         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4237         and inspired by his patch here:
4238         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4239
4240 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4241         and Jim Meyering  <meyering@redhat.com>
4242
4243         maint.mk: catch "see @xref{}" and similar
4244         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4245         prohibit "See also @xref{", "Also see @pxref{", and similar.
4246
4247 2012-04-16  Jim Meyering  <meyering@redhat.com>
4248
4249         bootstrap: really use gnulib's po/Makefile.in.in
4250         * build-aux/bootstrap: Correct the source file name in previous change.
4251         Reported by Akim Demaille.
4252
4253         configmake: correct minor inconsistency in Makefile rule
4254         * modules/configmake (Makefile.am): All other rules like this one
4255         run the final "mv -f ..." in the same backslash-continued command
4256         as the one that does everything else.  This one put the mv -f ...
4257         command on a separate, non-backslash-continued line.
4258         Make it like the others.
4259
4260         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4261         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4262         the one from gettext.  Reported by Akim Demaille.
4263
4264 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4265
4266         Fix recursion of install-* into po directories.
4267         Bison's install-pdf bug reported by Hans Aberg at
4268         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4269         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4270         (install-info, install-pdf, install-ps): New targets.
4271
4272 2012-04-16  Jim Meyering  <meyering@redhat.com>
4273
4274         maint: avoid spurious "make sc_maint" failure
4275         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4276         exempt all *.class file names, for lib/javaversion.class.
4277
4278 2012-04-15  Bruno Haible  <bruno@clisp.org>
4279
4280         lseek: Make configure test independent of environment.
4281         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4282         Windows, we know that lseek() on pipes is broken; skip the runtime
4283         test.
4284
4285 2012-04-14  Bruno Haible  <bruno@clisp.org>
4286
4287         stat: Bypass buggy override in mingw64.
4288         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4289         * lib/stat.c (stat) [mingw64]: Define to _stat.
4290         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4291
4292 2012-04-14  Bruno Haible  <bruno@clisp.org>
4293
4294         pathmax: Fix compilation error on MSVC 9.
4295         * modules/pathmax (Depends-on): Add unistd.
4296
4297 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4298
4299         README: document pointer comparison assumption
4300         * README (Portability guidelines): Document assumption about
4301         pointer comparisons, in response to a recent bug-gnulib comment by
4302         Jeffrey Kegler.
4303
4304 2012-04-12  Bruno Haible  <bruno@clisp.org>
4305
4306         Tests for module 'getrusage'.
4307         * modules/getrusage-tests: New file.
4308         * tests/test-getrusage.c: New file.
4309
4310         New module 'getrusage'.
4311         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4312         warn-on-use.h.
4313         (getrusage): New declaration.
4314         * lib/getrusage.c: New file.
4315         * m4/getrusage.m4: New file.
4316         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4317         is declared.
4318         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4319         HAVE_GETRUSAGE.
4320         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4321         snippet/c++defs, snippet/warn-on-use.
4322         (Makefile.am): Update generation of sys/resource.h. Substitute
4323         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4324         * modules/getrusage: New file.
4325         * doc/posix-functions/getrusage.texi: Mention the new module.
4326
4327 2012-04-12  Bruno Haible  <bruno@clisp.org>
4328
4329         Tests for module 'sys_resource'.
4330         * modules/sys_resource-tests: New file.
4331         * tests/test-sys_resource.c: New file.
4332
4333         New module 'sys_resource'.
4334         * lib/sys_resource.in.h: New file.
4335         * m4/sys_resource_h.m4: New file.
4336         * modules/sys_resource: New file.
4337         * doc/posix-headers/sys_resource.texi: Mention the new module.
4338
4339 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4340
4341         ioctl: Fix compilation error on mingw.
4342         * lib/ioctl.c: Include <windows.h>.
4343         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4344
4345 2012-04-04  Jim Meyering  <meyering@redhat.com>
4346
4347         regex: correct #pragma guard expression
4348         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4349         not 4.3.  Correct its cpp guard expression.
4350
4351 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4352
4353         regex: remove unnecessary type punning
4354         Problem reported by Vladimir Serbinenko in
4355         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4356         * lib/regex.h (struct re_pattern_buffer): Change the type of
4357         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4358         Fix comment to match code.
4359         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4360         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4361         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4362         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4363         (set_regs):
4364         Omit no-longer-necessary casts.
4365
4366 2012-04-03  Bruno Haible  <bruno@clisp.org>
4367
4368         Tests for module 'ilogbl'.
4369         * modules/ilogbl-tests: New file.
4370         * tests/test-ilogbl.c: New file.
4371
4372         New module 'ilogbl'.
4373         * lib/math.in.h (ilogbl): New declaration.
4374         * lib/ilogbl.c: New file.
4375         * m4/ilogbl.m4: New file.
4376         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4378         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4379         Split sed invocation, to avoid the limit of 100 substitutions of
4380         HP-UX 'sed'.
4381         * modules/ilogbl: New file.
4382         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4383         * doc/posix-functions/ilogbl.texi: Mention the new module.
4384
4385 2012-04-03  Bruno Haible  <bruno@clisp.org>
4386
4387         Tests for module 'ilogbf'.
4388         * modules/ilogbf-tests: New file.
4389         * tests/test-ilogbf.c: New file.
4390
4391         New module 'ilogbf'.
4392         * lib/math.in.h (ilogbf): New declaration.
4393         * lib/ilogbf.c: New file.
4394         * m4/ilogbf.m4: New file.
4395         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4397         REPLACE_ILOGBF.
4398         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4399         REPLACE_ILOGBF.
4400         * modules/ilogbf: New file.
4401         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4402         * doc/posix-functions/ilogbf.texi: Mention the new module.
4403
4404 2012-04-03  Bruno Haible  <bruno@clisp.org>
4405
4406         Tests for module 'ilogb'.
4407         * modules/ilogb-tests: New file.
4408         * tests/test-ilogb.c: New file.
4409         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4410         tests/test-logb-ieee.h.
4411
4412         New module 'ilogb'.
4413         * lib/math.in.h (ilogb): New declaration.
4414         * lib/ilogb.c: New file.
4415         * m4/ilogb.m4: New file.
4416         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4418         REPLACE_ILOGB.
4419         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4420         REPLACE_ILOGB.
4421         * modules/ilogb: New file.
4422         * tests/test-math-c++.cc: Check the declaration of ilogb.
4423         * doc/posix-functions/ilogb.texi: Mention the new module.
4424
4425 2012-04-03  Bruno Haible  <bruno@clisp.org>
4426
4427         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4428         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4429         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4430         (main): Check their values.
4431         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4432         problem.
4433
4434 2012-04-03  Bruno Haible  <bruno@clisp.org>
4435
4436         Tests for module 'logbl-ieee'.
4437         * modules/logbl-ieee-tests: New file.
4438         * tests/test-logbl-ieee.c: New file.
4439
4440         New module 'logbl-ieee'.
4441         * modules/logbl-ieee: New file.
4442
4443         Tests for module 'logb-ieee'.
4444         * modules/logb-ieee-tests: New file.
4445         * tests/test-logb-ieee.c: New file.
4446
4447         New module 'logb-ieee'.
4448         * modules/logb-ieee: New file.
4449
4450         Tests for module 'logbf-ieee'.
4451         * modules/logbf-ieee-tests: New file.
4452         * tests/test-logbf-ieee.c: New file.
4453         * tests/test-logb-ieee.h: New file.
4454
4455         New module 'logbf-ieee'.
4456         * modules/logbf-ieee: New file.
4457
4458 2012-04-03  Bruno Haible  <bruno@clisp.org>
4459
4460         Tests for module 'logbl'.
4461         * modules/logbl-tests: New file.
4462         * tests/test-logbl.c: New file.
4463
4464         New module 'logbl'.
4465         * lib/math.in.h (logbl): New declaration.
4466         * lib/logbl.c: New file.
4467         * m4/logbl.m4: New file.
4468         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4470         REPLACE_LOGBL.
4471         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4472         REPLACE_LOGBL.
4473         * modules/logbl: New file.
4474         * tests/test-math-c++.cc: Check the declaration of logbl.
4475         * doc/posix-functions/logbl.texi: Mention the new module.
4476
4477 2012-04-02  Bruno Haible  <bruno@clisp.org>
4478
4479         Tests for module 'logbf'.
4480         * modules/logbf-tests: New file.
4481         * tests/test-logbf.c: New file.
4482
4483         New module 'logbf'.
4484         * lib/math.in.h (logbf): New declaration.
4485         * lib/logbf.c: New file.
4486         * m4/logbf.m4: New file.
4487         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4489         REPLACE_LOGBF.
4490         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4491         REPLACE_LOGBF.
4492         * modules/logbf: New file.
4493         * tests/test-math-c++.cc: Check the declaration of logbf.
4494         * doc/posix-functions/logbf.texi: Mention the new module.
4495
4496 2012-04-02  Bruno Haible  <bruno@clisp.org>
4497
4498         logb tests: More tests.
4499         * tests/test-logb.h: New file, based on tests/test-logb.c and
4500         tests/test-frexp.h.
4501         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4502         (main): Just invoke test_function.
4503         * modules/logb-tests (Files): Add tests/test-logb.h,
4504         tests/minus-zero.h, tests/randomd.c.
4505         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4506
4507         logb: Provide replacement and workarounds.
4508         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4509         is 1.
4510         * lib/logb.c: New file.
4511         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4512         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4514         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4515         * modules/logb (Files): Add lib/logb.c.
4516         (Depends-on): Add isfinite, frexp, isnand.
4517         (configure.ac): Compile the replacement code logb.c if needed.
4518         * tests/test-math-c++.cc: Check the declaration of logb.
4519         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4520         with subnormal numbers.
4521
4522 2012-04-02  Bruno Haible  <bruno@clisp.org>
4523
4524         log10* tests: Speed up.
4525         * tests/test-log10.h (test_function): Reduce amount of random numbers
4526         to test.
4527
4528 2012-04-01  Bruno Haible  <bruno@clisp.org>
4529
4530         logf-ieee: Fix test whether logf works.
4531         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4532
4533 2012-04-01  Bruno Haible  <bruno@clisp.org>
4534
4535         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4536         * lib/log10l.c: Include <float.h>
4537         (log10l): On IRIX, normalize the +Infinity value.
4538         * modules/log10l (Depends-on): Add 'float'.
4539         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4540         +Infinity.
4541
4542         log10f-ieee: Work around test failure on NetBSD 5.1.
4543         * m4/log10f-ieee.m4: New file.
4544         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4545         test whether log10f works with a negative argument. Replace it if not.
4546         * lib/log10f.c (log10f): For negative arguments, return NaN.
4547         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4548         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4549         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4550
4551         log10f-ieee: Work around test failure on Solaris 9.
4552         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4553         (configure.ac): Require gl_FUNC_LOG10F.
4554
4555         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4556         * m4/log10-ieee.m4: New file.
4557         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4558         whether log10 works with a negative argument. Replace it if not.
4559         * lib/log10.c (log10): For negative arguments, return NaN.
4560         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4561         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4562         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4563
4564         Tests for module 'log10l-ieee'.
4565         * modules/log10l-ieee-tests: New file.
4566         * tests/test-log10l-ieee.c: New file.
4567
4568         New module 'log10l-ieee'.
4569         * modules/log10l-ieee: New file.
4570
4571         Tests for module 'log10-ieee'.
4572         * modules/log10-ieee-tests: New file.
4573         * tests/test-log10-ieee.c: New file.
4574
4575         New module 'log10-ieee'.
4576         * modules/log10-ieee: New file.
4577
4578         Tests for module 'log10f-ieee'.
4579         * modules/log10f-ieee-tests: New file.
4580         * tests/test-log10f-ieee.c: New file.
4581         * tests/test-log10-ieee.h: New file.
4582
4583         New module 'log10f-ieee'.
4584         * modules/log10f-ieee: New file.
4585
4586 2012-04-01  Bruno Haible  <bruno@clisp.org>
4587
4588         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4589         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4590         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4591         workaround.
4592         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4593         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4595         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4596         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4597         (Depends-on): Update conditions.
4598         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4599         IRIX 6.5, OSF/1 5.1 problems.
4600
4601 2012-04-01  Bruno Haible  <bruno@clisp.org>
4602
4603         log10f: Work around OSF/1 5.1 bug.
4604         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4605         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4606         workaround.
4607         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4608         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4610         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4611         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4612         (Depends-on): Update conditions.
4613         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4614
4615 2012-04-01  Bruno Haible  <bruno@clisp.org>
4616
4617         log10: Work around OSF/1 5.1 bug.
4618         * lib/math.in.h (log10): New declaration.
4619         * lib/log10.c: New file.
4620         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4621         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4622         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4624         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4625         * modules/log10 (Files): Add lib/log10.c.
4626         (Depends-on): Add math.
4627         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4628         * tests/test-math-c++.cc: Check the declaration of log10.
4629         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4630
4631 2012-03-31  Bruno Haible  <bruno@clisp.org>
4632
4633         log10l tests: More tests.
4634         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4635         tests/minus-zero.h, tests/randoml.c.
4636         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4637         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4638         (main): Invoke test_function.
4639
4640         log10f tests: More tests.
4641         * modules/log10f-tests (Files): Add tests/test-log10.h,
4642         tests/minus-zero.h, tests/randomf.c.
4643         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4644         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4645         (main): Invoke test_function.
4646
4647         log10 tests: More tests.
4648         * tests/test-log10.h: New file.
4649         * modules/log10-tests (Files): Add tests/test-log10.h,
4650         tests/minus-zero.h, tests/randomd.c.
4651         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4652         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4653         (main): Invoke test_function.
4654
4655 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4656
4657         fflush: Fix syntax error.
4658         * lib/fflush.c: Include unused-parameter.h, needed for
4659         _GL_UNUSED_PARAMETER.
4660         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4661
4662 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4663
4664         regex: pacify GCC when compiling GRUB
4665         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4666         a diagnostic.  Reported by Vladimir Serbinenko in
4667         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4668
4669 2012-03-29  Eric Blake  <eblake@redhat.com>
4670
4671         stdio: don't assume gets any more
4672         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4673         support.
4674         * modules/stdio (Makefile.am): Likewise.
4675         * lib/stdio-read.c (gets): Likewise.
4676         * tests/test-stdio-c++.cc: Likewise.
4677         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4678         * lib/stdio.in.h (gets): Make warning occur in more places.
4679         * doc/posix-functions/gets.texi (gets): Update documentation.
4680         Reported by Christer Solskogen.
4681
4682         maint.mk: fix syntax checks without exclusions
4683         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4684         Reported by Daniel P. Berrange.
4685
4686         strerror_r: avoid compiler warning
4687         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4688         level.
4689
4690         fflush: avoid compiler warning
4691         * lib/fflush.c (update_fpos_cache): Mark variables that are
4692         potentially unused.
4693
4694 2012-03-25  Bruno Haible  <bruno@clisp.org>
4695
4696         Tests for module 'localeconv'.
4697         * modules/localeconv-tests: New file.
4698         * tests/test-localeconv.c: New file.
4699
4700         New module 'localeconv'.
4701         * lib/locale.in.h (localeconv): New declaration.
4702         * lib/localeconv.c: New file.
4703         * m4/localeconv.m4: New file.
4704         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4705         REPLACE_LOCALECONV.
4706         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4707         REPLACE_LOCALECONV.
4708         * modules/localeconv: New file.
4709         * modules/nl_langinfo (Depends-on): Add localeconv.
4710         * modules/human (Depends-on): Likewise.
4711         * doc/posix-functions/localeconv.texi: Mention the new module.
4712
4713 2012-03-25  Bruno Haible  <bruno@clisp.org>
4714
4715         locale: Provide a complete 'struct lconv'.
4716         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4717         'struct lconv' does not contain int_p_cs_precedes.
4718         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4719         * doc/posix-headers/locale.texi: Update.
4720
4721         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4722         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4723         * doc/posix-headers/locale.texi: Update.
4724
4725         locale: Provide a working 'struct lconv'.
4726         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4727         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4728         'struct lconv' does not even contain decimal_point.
4729         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4730         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4731         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4732         * doc/posix-headers/locale.texi: Mention the problems with
4733         'struct lconv'.
4734         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4735
4736 2012-03-24  Bruno Haible  <bruno@clisp.org>
4737
4738         Enable common subexpression optimization in GCC.
4739         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4740         macros.
4741         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4742         GCC attribute 'const'.
4743         (uc_locale_language): Declare with GCC attribute 'pure'.
4744         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4745         with GCC attribute 'const'.
4746         * lib/unictype.in.h (uc_is_general_category_withtable,
4747         uc_combining_class, uc_combining_class_name,
4748         uc_combining_class_long_name, uc_bidi_class_name,
4749         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4750         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4751         uc_decimal_value, uc_digit_value, uc_numeric_value,
4752         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4753         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4754         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4755         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4756         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4757         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4758         Declare with GCC attribute 'const'.
4759         (uc_general_category_name, uc_general_category_long_name,
4760         uc_general_category_byname, uc_general_category,
4761         uc_is_general_category, uc_combining_class_byname,
4762         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4763         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4764         Declare with GCC attribute 'pure'.
4765         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4766         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4767         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4768         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4769         with GCC attribute 'pure'.
4770         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4771         'const'.
4772         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4773         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4774         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4775         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4776         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4777         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4778         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4779         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4780         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4781         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4782         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4783         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4784         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4785         GCC attribute 'pure'.
4786         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4787         'const'.
4788         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4789         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4790         u32_strwidth): Declare with GCC attribute 'pure'.
4791
4792         Enable common subexpression optimization in GCC.
4793         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4794         (alphasort): Declare with GCC attribute 'pure'.
4795         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4796         (atoll): Declare with GCC attribute 'pure'.
4797         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4798         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4799         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4800         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4801         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4802         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4803         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4804
4805 2012-03-24  Bruno Haible  <bruno@clisp.org>
4806
4807         gnulib-tool: Avoid unintended error output from 'cmp'.
4808         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4809         "cmp -s", not "cmp > /dev/null".
4810
4811 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4812
4813         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4814
4815         It's not just Automake versions < 1.9b that creates an empty
4816         pkgdatadir at installation time if pkgdata_DATA is specified
4817         to empty; modern automake versions do this as well, at least
4818         until automake 1.11.4 (not yet released at the moment of writing,
4819         but soon to appear).  That behaviour was generally considered a
4820         feature rather than a bug, at least until this discussion:
4821         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4822
4823         See also automake bugs #10997 and #11030.
4824
4825         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4826         reference to relevant automake bug numbers.
4827         (func_emit_tests_Makefile_am): Likewise.
4828
4829 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4830
4831         announce-gen: use Digest::SHA when possible
4832         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4833         back to Digest::SHA1 if necessary.
4834
4835 2012-03-20  Jim Meyering  <meyering@redhat.com>
4836
4837         tests: avoid gcc warnings about argv vs. const initializers
4838         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4839         warnings about discarding 'const' qualifier from pointer target type.
4840         * tests/test-posix_spawn2.c (main): Likewise.
4841
4842 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4843
4844         README-release: simplify slightly
4845         * top/README-release: Run "git checkout master" only once.
4846
4847 2012-03-15  Mark Wielaard  <mark@klomp.org>
4848
4849         git-merge-changelog: add specific example on how to use with hg.
4850         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4851
4852 2012-03-18  Mark Wielaard  <mark@klomp.org>
4853
4854         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4855
4856 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4857
4858         git-version-gen: don't let "prefix" envvar cause trouble
4859         * build-aux/git-version-gen (prefix): Initialize properly,
4860         so as not to use a value specified via the environment.
4861         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4862
4863 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4864
4865         regex: diagnose too-large repeat counts in EREs
4866         Previously, the code did not diagnose the too-large repeat count
4867         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4868         as if it were 'b\{1000000000}', which is unexpected.
4869         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4870         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4871         is a reasonable one for this problem.  Another option would be to
4872         create a new REG_OVERFLOW error for repeat counts that are too large.
4873         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4874         count is too large, so that the caller can distinguish the two cases.
4875         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4876         "Too large" return code, and that repeat counts are one example of this.
4877
4878 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4879
4880         doc: some glibc x32 integer width issues
4881         * doc/posix-headers/sys_types.texi (sys/types.h):
4882         * doc/posix-headers/time.texi (time.h):
4883         Mention that glibc x32 does not conform to POSIX in a couple of
4884         areas related to integer widths.
4885
4886 2012-03-15  Bruno Haible  <bruno@clisp.org>
4887
4888         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4889         * lib/fma.c (VOLATILE): New macro.
4890         (FUNC): Use it to work around a GCC compiler bug.
4891
4892 2012-03-13  Bruno Haible  <bruno@clisp.org>
4893
4894         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4895         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4896         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4897         REPLACE_HYPOTL to 1.
4898         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4899
4900 2012-03-13  Bruno Haible  <bruno@clisp.org>
4901
4902         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4903         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4904         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4905         REPLACE_REMAINDERL to 1.
4906         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4907         bug.
4908
4909 2012-03-13  Bruno Haible  <bruno@clisp.org>
4910
4911         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4912         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4913         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4914         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4915         too big rounding errors.
4916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4917         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4918         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4919         (Depends-on): Update conditions.
4920         * tests/test-sqrtl.c (my_ldexpl): New function.
4921         (main): Add test of a particular value.
4922         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4923
4924 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4925
4926         doc: Update timer_* platform portability notes.
4927         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4928         that always return ENOSYS.
4929         * doc/posix-functions/timer_delete.texi: Likewise.
4930         * doc/posix-functions/timer_gettime.texi: Likewise.
4931         * doc/posix-functions/timer_settime.texi: Likewise.
4932
4933 2012-03-13  Bruno Haible  <bruno@clisp.org>
4934
4935         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4936         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4937         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4938         REPLACE_CBRTL to 1.
4939         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4940
4941 2012-03-13  Bruno Haible  <bruno@clisp.org>
4942
4943         remainderl: Avoid compilation error on AIX >= 5.2.
4944         * lib/math.in.h (remainderl): Undefine macro from the system header.
4945
4946 2012-03-13  Bruno Haible  <bruno@clisp.org>
4947
4948         Avoid compilation errors with MSVC option -fp:strict.
4949         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4950         * lib/cbrtf.c: Likewise.
4951         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4952
4953 2012-03-12  Bruno Haible  <bruno@clisp.org>
4954
4955         uninorm: Don't crash in out-of-memory conditions.
4956         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4957         gracefully.
4958         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4959         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4960
4961 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4962
4963         quote: fix syntax-check
4964         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4965         also exports quote_quoting_options.
4966
4967 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4968
4969         Collapse list of copyright years to ranges.  See
4970         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4971         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4972         build-aux/csharpexec.sh.in, build-aux/gnupload,
4973         build-aux/install-reloc, build-aux/javacomp.sh.in,
4974         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4975         build-aux/move-if-change, build-aux/reloc-ldflags,
4976         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4977
4978 2012-03-11  Bruno Haible  <bruno@clisp.org>
4979
4980         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4981         * m4/log2f-ieee.m4: New file.
4982         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4983         whether log2f works with a minus zero argument. Replace it if not.
4984         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4985         (Depends-on): Add log2-ieee.
4986         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4987         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4988
4989         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4990         * m4/log2-ieee.m4: New file.
4991         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4992         whether log2 works with a minus zero argument. Replace it if not.
4993         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4994         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4995         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4996
4997         Tests for module 'log2l-ieee'.
4998         * modules/log2l-ieee-tests: New file.
4999         * tests/test-log2l-ieee.c: New file.
5000
5001         New module 'log2l-ieee'.
5002         * modules/log2l-ieee: New file.
5003
5004         Tests for module 'log2-ieee'.
5005         * modules/log2-ieee-tests: New file.
5006         * tests/test-log2-ieee.c: New file.
5007
5008         New module 'log2-ieee'.
5009         * modules/log2-ieee: New file.
5010
5011         Tests for module 'log2f-ieee'.
5012         * modules/log2f-ieee-tests: New file.
5013         * tests/test-log2f-ieee.c: New file.
5014         * tests/test-log2-ieee.h: New file.
5015
5016         New module 'log2f-ieee'.
5017         * modules/log2f-ieee: New file.
5018
5019 2012-03-11  Bruno Haible  <bruno@clisp.org>
5020
5021         Tests for module 'log2l'.
5022         * modules/log2l-tests: New file.
5023         * tests/test-log2l.c: New file.
5024
5025         New module 'log2l'.
5026         * lib/math.in.h (log2l): New declaration.
5027         * lib/log2l.c: New file.
5028         * m4/log2l.m4: New file.
5029         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5031         REPLACE_LOG2L.
5032         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5033         REPLACE_LOG2L.
5034         * modules/log2l: New file.
5035         * tests/test-math-c++.cc: Check the declaration of log2l.
5036         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5037         and OSF/1 problems.
5038
5039 2012-03-11  Bruno Haible  <bruno@clisp.org>
5040
5041         Tests for module 'log2f'.
5042         * modules/log2f-tests: New file.
5043         * tests/test-log2f.c: New file.
5044
5045         New module 'log2f'.
5046         * lib/math.in.h (log2f): New declaration.
5047         * lib/log2f.c: New file.
5048         * m4/log2f.m4: New file.
5049         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5051         REPLACE_LOG2F.
5052         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5053         REPLACE_LOG2F.
5054         * modules/log2f: New file.
5055         * tests/test-math-c++.cc: Check the declaration of log2f.
5056         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5057         and OSF/1 and Cygwin problems.
5058
5059 2012-03-11  Bruno Haible  <bruno@clisp.org>
5060
5061         Tests for module 'log2'.
5062         * modules/log2-tests: New file.
5063         * tests/test-log2.c: New file.
5064         * tests/test-log2.h: New file.
5065
5066         New module 'log2'.
5067         * lib/math.in.h (log2): New declaration.
5068         * lib/log2.c: New file.
5069         * m4/log2.m4: New file.
5070         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5072         REPLACE_LOG2.
5073         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5074         REPLACE_LOG2.
5075         * modules/log2: New file.
5076         * tests/test-math-c++.cc: Check the declaration of log2.
5077         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5078         and OSF/1 and Cygwin problems.
5079
5080 2012-03-11  Bruno Haible  <bruno@clisp.org>
5081
5082         exp2* tests: More tests.
5083         * tests/test-exp2.h (test_function): Test all integral arguments that
5084         don't need to overflow or denormalized numbers.
5085         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5086         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5087         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5088
5089 2012-03-10  Bruno Haible  <bruno@clisp.org>
5090
5091         log1pl-ieee: Work around test failure on AIX 7.1.
5092         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5093
5094         log1pl-ieee: Work around test failure on IRIX 6.5.
5095         * m4/log1pl-ieee.m4: New file.
5096         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5097         test whether log1pl works with a minus zero argument. Replace it if
5098         not.
5099         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5101         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5102         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5103         (Depends-on): Update conditions.
5104         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5105         m4/signbit.m4.
5106         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5107         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5108
5109         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5110         * m4/log1pf-ieee.m4: New file.
5111         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5112         test whether log1pf works with a minus zero argument. Replace it if
5113         not.
5114         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5115         m4/signbit.m4.
5116         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5117         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5118
5119         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5120         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5121         (configure.ac): Require gl_FUNC_LOG1PF.
5122
5123         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5124         * m4/log1p-ieee.m4: New file.
5125         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5126         whether log1p works with a minus zero argument. Replace it if not.
5127         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5129         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5130         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5131         (Depends-on): Update conditions.
5132         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5133         m4/signbit.m4.
5134         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5135         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5136
5137         Tests for module 'log1pl-ieee'.
5138         * modules/log1pl-ieee-tests: New file.
5139         * tests/test-log1pl-ieee.c: New file.
5140
5141         New module 'log1pl-ieee'.
5142         * modules/log1pl-ieee: New file.
5143
5144         Tests for module 'log1p-ieee'.
5145         * modules/log1p-ieee-tests: New file.
5146         * tests/test-log1p-ieee.c: New file.
5147
5148         New module 'log1p-ieee'.
5149         * modules/log1p-ieee: New file.
5150
5151         Tests for module 'log1pf-ieee'.
5152         * modules/log1pf-ieee-tests: New file.
5153         * tests/test-log1pf-ieee.c: New file.
5154         * tests/test-log1p-ieee.h: New file.
5155
5156         New module 'log1pf-ieee'.
5157         * modules/log1pf-ieee: New file.
5158
5159 2012-03-10  Bruno Haible  <bruno@clisp.org>
5160
5161         Tests for module 'log1pl'.
5162         * modules/log1pl-tests: New file.
5163         * tests/test-log1pl.c: New file.
5164
5165         New module 'log1pl'.
5166         * lib/math.in.h (log1pl): New declaration.
5167         * lib/log1pl.c: New file.
5168         * m4/log1pl.m4: New file.
5169         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5171         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5172         * modules/log1pl: New file.
5173         * tests/test-math-c++.cc: Check the declaration of log1pl.
5174         * doc/posix-functions/log1pl.texi: Mention the new module.
5175
5176 2012-03-10  Bruno Haible  <bruno@clisp.org>
5177
5178         Tests for module 'log1pf'.
5179         * modules/log1pf-tests: New file.
5180         * tests/test-log1pf.c: New file.
5181
5182         New module 'log1pf'.
5183         * lib/math.in.h (log1pf): New declaration.
5184         * lib/log1pf.c: New file.
5185         * m4/log1pf.m4: New file.
5186         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5188         REPLACE_LOG1PF.
5189         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5190         REPLACE_LOG1PF.
5191         * modules/log1pf: New file.
5192         * tests/test-math-c++.cc: Check the declaration of log1pf.
5193         * doc/posix-functions/log1pf.texi: Mention the new module.
5194
5195 2012-03-10  Bruno Haible  <bruno@clisp.org>
5196
5197         log1p tests: More tests.
5198         * tests/test-log1p.h: New file.
5199         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5200         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5201         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5202         (main): Invoke test_function.
5203
5204         log1p: Provide replacement for Minix and MSVC.
5205         * lib/math.in.h (log1p): New declaration.
5206         * lib/log1p.c: New file.
5207         * m4/log1p.m4: New file.
5208         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5210         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5211         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5212         (Depends-on): Add math, isnand, log, round.
5213         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5214         HAVE_LOG1P is 0.
5215         * tests/test-math-c++.cc: Check the declaration of log1p.
5216         * doc/posix-functions/log1p.texi: Mention the replacement.
5217
5218 2012-03-10  Bruno Haible  <bruno@clisp.org>
5219
5220         math tests: Small simplification.
5221         * tests/test-exp.h (test_function): Use the same err_bound for
5222         'double' on platforms with sizeof (long double) == sizeof (double)
5223         than on platforms with sizeof (long double) > sizeof (double).
5224         * tests/test-exp2.h (test_function): Likewise.
5225         * tests/test-expm1.h (test_function): Likewise.
5226         * tests/test-log.h (test_function): Likewise.
5227
5228 2012-03-10  Bruno Haible  <bruno@clisp.org>
5229
5230         Fix some comments.
5231         * lib/expl.c: Fix an ambiguous comment.
5232         * lib/expm1.c: Likewise.
5233         * lib/expm1l.c: Likewise.
5234         * lib/exp2.c: Likewise.
5235         * lib/exp2l.c: Likewise.
5236
5237 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5238
5239         regex: allow inclusion of <regex.h> before <limits.h>
5240         Without this patch, portable programs had to include <limits.h> before
5241         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5242         I ran into this problem with a test version of GNU grep on Solaris 8.
5243         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5244         This is done conditionally so that this change can be merged
5245         back to glibc.
5246         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5247         using the included regex.
5248
5249         fts: depend on fdopendir
5250         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5251         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5252         problem was introduced when fdopendir was split out.
5253
5254 2012-03-10  Bruno Haible  <bruno@clisp.org>
5255
5256         Remove unused variables.
5257         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5258         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5259
5260 2012-03-10  Bruno Haible  <bruno@clisp.org>
5261
5262         isnanf-nolibm: Fix last commit.
5263         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5264
5265         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5266         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5267
5268 2012-03-10  Bruno Haible  <bruno@clisp.org>
5269
5270         logf-ieee: Work around test failure on NetBSD 5.1.
5271         * m4/logf-ieee.m4: New file.
5272         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5273         whether logf works with a negative argument. Replace it if not.
5274         * lib/logf.c (logf): For negative arguments, return NaN.
5275         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5276         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5277         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5278
5279         logf-ieee: Work around test failure on Solaris 9.
5280         * modules/logf-ieee (Depends-on): Add log-ieee.
5281         (configure.ac): Require gl_FUNC_LOGF.
5282
5283         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5284         * m4/log-ieee.m4: New file.
5285         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5286         log works with a negative argument. Replace it if not.
5287         * lib/log.c (log): For negative arguments, return NaN.
5288         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5289         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5290         * doc/posix-functions/log.texi: Mention the log-ieee module.
5291
5292         Tests for module 'logl-ieee'.
5293         * modules/logl-ieee-tests: New file.
5294         * tests/test-logl-ieee.c: New file.
5295
5296         New module 'logl-ieee'.
5297         * modules/logl-ieee: New file.
5298
5299         Tests for module 'log-ieee'.
5300         * modules/log-ieee-tests: New file.
5301         * tests/test-log-ieee.c: New file.
5302
5303         New module 'log-ieee'.
5304         * modules/log-ieee: New file.
5305
5306         Tests for module 'logf-ieee'.
5307         * modules/logf-ieee-tests: New file.
5308         * tests/test-logf-ieee.c: New file.
5309         * tests/test-log-ieee.h: New file.
5310
5311         New module 'logf-ieee'.
5312         * modules/logf-ieee: New file.
5313
5314 2012-03-10  Bruno Haible  <bruno@clisp.org>
5315
5316         log: Fix bug introduced on 2012-03-09.
5317         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5318
5319 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5320
5321         timer-time: link explicitly with pthreads on glibc
5322         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5323         to support static linking, when newer glibc is
5324         detected, as that contains pthread emulation of
5325         POSIX timer functions where required.
5326         * modules/timer-time: Depend on threadlib to
5327         pull in the appropriate library to link.
5328
5329 2012-03-10  Bruno Haible  <bruno@clisp.org>
5330
5331         log* tests: More tests.
5332         * tests/test-log.h: New file.
5333         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5334         (main): Invoke test_function.
5335         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5336         (main): Invoke test_function.
5337         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5338         (main): Invoke test_function.
5339         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5340         tests/randomd.c.
5341         (Makefile.am): Add randomd.c to test_log_SOURCES.
5342         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5343         tests/randomf.c.
5344         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5345         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5346         tests/randoml.c.
5347         (Depends-on): Add 'float'.
5348         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5349
5350 2012-03-09  Bruno Haible  <bruno@clisp.org>
5351
5352         logl: Work around OSF/1 5.1 bug.
5353         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5354         * lib/logl.c (logl): If logl exists, use it and provide just the
5355         workaround.
5356         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5357         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5359         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5360         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5361         (Depends-on): Update conditions.
5362         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5363
5364 2012-03-09  Bruno Haible  <bruno@clisp.org>
5365
5366         logf: Work around OSF/1 5.1 bug.
5367         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5368         * lib/logf.c (logf): If logf exists, use it and provide just the
5369         workaround.
5370         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5371         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5373         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5374         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5375         (Depends-on): Update conditions.
5376         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5377
5378 2012-03-09  Bruno Haible  <bruno@clisp.org>
5379
5380         log: Work around OSF/1 5.1 bug.
5381         * lib/math.in.h (log): New declaration.
5382         * lib/log.c: New file.
5383         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5384         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5385         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5387         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5388         * modules/log (Files): Add lib/log.c.
5389         (Depends-on): Add math.
5390         (configure.ac): If REPLACE_LOG is 1, compile an override.
5391         * tests/test-math-c++.cc: Check the declaration of log.
5392         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5393
5394 2012-03-09  Jim Meyering  <meyering@redhat.com>
5395
5396         readtokens.c: adjust wording in a comment
5397         * lib/readtokens.c: Insert omitted "that" in a comment.
5398
5399 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5400
5401         modechange: add notations +40, 00440, etc.
5402         * lib/modechange.c (mode_compile): Support new notations
5403         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5404
5405 2012-03-08  Bruno Haible  <bruno@clisp.org>
5406
5407         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5408         * m4/exp2l-ieee.m4: New file.
5409         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5410         test whether exp2l works with a NaN argument and with a negative
5411         infinity argument. Replace it if not.
5412         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5414         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5415         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5416         (Depends-on): Update conditions.
5417         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5418         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5419         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5420
5421         Tests for module 'exp2l-ieee'.
5422         * modules/exp2l-ieee-tests: New file.
5423         * tests/test-exp2l-ieee.c: New file.
5424
5425         New module 'exp2l-ieee'.
5426         * modules/exp2l-ieee: New file.
5427
5428         Tests for module 'exp2-ieee'.
5429         * modules/exp2-ieee-tests: New file.
5430         * tests/test-exp2-ieee.c: New file.
5431
5432         New module 'exp2-ieee'.
5433         * modules/exp2-ieee: New file.
5434
5435         Tests for module 'exp2f-ieee'.
5436         * modules/exp2f-ieee-tests: New file.
5437         * tests/test-exp2f-ieee.c: New file.
5438         * tests/test-exp2-ieee.h: New file.
5439
5440         New module 'exp2f-ieee'.
5441         * modules/exp2f-ieee: New file.
5442
5443 2012-03-08  Bruno Haible  <bruno@clisp.org>
5444
5445         Tests for module 'exp2l'.
5446         * modules/exp2l-tests: New file.
5447         * tests/test-exp2l.c: New file.
5448
5449         New module 'exp2l'.
5450         * lib/math.in.h (exp2l): New declaration.
5451         * lib/exp2l.c: New file.
5452         * lib/expl-table.c: New file, extracted from lib/expl.c.
5453         * lib/expl.c (gl_expl_table): New declaration.
5454         (expl): Remove expl_table. Update reference.
5455         * m4/exp2l.m4: New file.
5456         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5458         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5459         * modules/exp2l: New file.
5460         * modules/expl (Files): Add lib/expl-table.c.
5461         (configure.ac): Compile also expl-table.c.
5462         * tests/test-math-c++.cc: Check the declaration of exp2l.
5463         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5464         problem.
5465
5466 2012-03-08  Bruno Haible  <bruno@clisp.org>
5467
5468         Tests for module 'exp2f'.
5469         * modules/exp2f-tests: New file.
5470         * tests/test-exp2f.c: New file.
5471
5472         New module 'exp2f'.
5473         * lib/math.in.h (exp2f): New declaration.
5474         * lib/exp2f.c: New file.
5475         * m4/exp2f.m4: New file.
5476         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5478         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5479         * modules/exp2f: New file.
5480         * tests/test-math-c++.cc: Check the declaration of exp2f.
5481         * doc/posix-functions/exp2f.texi: Mention the new module and the
5482         IRIX problem.
5483
5484 2012-03-08  Bruno Haible  <bruno@clisp.org>
5485
5486         Tests for module 'exp2'.
5487         * modules/exp2-tests: New file.
5488         * tests/test-exp2.c: New file.
5489         * tests/test-exp2.h: New file.
5490
5491         New module 'exp2'.
5492         * lib/math.in.h (exp2): New declaration.
5493         * lib/exp2.c: New file.
5494         * m4/exp2.m4: New file.
5495         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5497         REPLACE_EXP2.
5498         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5499         REPLACE_EXP2.
5500         * modules/exp2: New file.
5501         * tests/test-math-c++.cc: Check the declaration of exp2.
5502         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5503         and OpenBSD problems.
5504
5505 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5506
5507         savedir: fix comment typo
5508         * lib/savedir.c (savedirstream): Fix typo in comment.
5509
5510 2012-03-08  Bruno Haible  <bruno@clisp.org>
5511
5512         test-readtokens.c: use const; remove unwarranted cast
5513         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5514
5515 2012-03-08  Bruno Haible  <bruno@clisp.org>
5516
5517         fmal: Avoid compilation error on AIX.
5518         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5519         AIX 5.2..7.1.
5520
5521 2012-03-08  Bruno Haible  <bruno@clisp.org>
5522
5523         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5524         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5525         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5526         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5527         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5528         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5529         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5530
5531 2012-03-08  Bruno Haible  <bruno@clisp.org>
5532
5533         remainderf: Override buggy system function on IRIX 6.5.
5534         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5535         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5536         when it exists.
5537         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5538
5539 2012-03-08  Jim Meyering  <meyering@redhat.com>
5540
5541         test-readtokens.c: avoid const-related compilation warnings
5542         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5543
5544 2012-03-07  Jim Meyering  <meyering@redhat.com>
5545             Bruno Haible  <bruno@clisp.org>
5546
5547         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5548         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5549         tests/randomd.c.
5550         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5551         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5552         tests/randoml.c.
5553         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5554
5555 2012-03-07  Bruno Haible  <bruno@clisp.org>
5556
5557         expm1l: Avoid compilation error on AIX.
5558         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5559         AIX 5.2..7.1.
5560
5561 2012-03-07  Bruno Haible  <bruno@clisp.org>
5562
5563         expm1l: Don't override undeclared system function on IRIX 6.5.
5564         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5565         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5566         it exists. Set HAVE_DECL_EXPM1L.
5567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5568         HAVE_EXPM1L.
5569         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5570         HAVE_EXPM1L.
5571         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5572
5573 2012-03-07  Bruno Haible  <bruno@clisp.org>
5574
5575         remainderl: Don't override undeclared system function on IRIX 6.5.
5576         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5577         HAVE_REMAINDERL.
5578         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5579         declared when it exists. Set HAVE_DECL_REMAINDERL.
5580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5581         not HAVE_REMAINDERL.
5582         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5583         HAVE_REMAINDERL.
5584         * doc/posix-functions/remainderl.texi: Mention missing declaration
5585         problem.
5586
5587 2012-03-07  Bruno Haible  <bruno@clisp.org>
5588
5589         rintf: Don't override undeclared system function on IRIX 6.5.
5590         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5591         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5592         exists. Set HAVE_DECL_RINTF.
5593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5594         HAVE_RINTF.
5595         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5596         HAVE_RINTF.
5597         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5598
5599 2012-03-07  Bruno Haible  <bruno@clisp.org>
5600
5601         roundl: Avoid compilation error on AIX.
5602         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5603         AIX 5.2..7.1.
5604
5605 2012-03-07  Bruno Haible  <bruno@clisp.org>
5606
5607         roundl: Don't override undeclared system function on IRIX 6.5.
5608         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5609         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5610         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5611         * modules/roundl (configure.ac): For replacement code, test
5612         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5613         (Depends-on): Update conditions.
5614         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5615
5616 2012-03-07  Bruno Haible  <bruno@clisp.org>
5617
5618         roundf: Don't override undeclared system function on IRIX 6.5.
5619         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5620         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5621         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5622         * modules/roundf (configure.ac): For replacement code, test
5623         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5624         (Depends-on): Update conditions.
5625         * modules/roundf-ieee (Depends-on): Update conditions.
5626         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5627
5628 2012-03-07  Bruno Haible  <bruno@clisp.org>
5629
5630         round: Don't override undeclared system function on IRIX 6.5.
5631         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5632         argument.
5633         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5634         also when it is not declared. Set HAVE_ROUND. For replacement code,
5635         test HAVE_ROUND, not HAVE_DECL_ROUND.
5636         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5637         not HAVE_DECL_ROUND.
5638         (Depends-on): Update conditions.
5639         * modules/round-ieee (Depends-on): Update conditions.
5640         * doc/posix-functions/round.texi: Mention the IRIX problem.
5641
5642 2012-03-07  Bruno Haible  <bruno@clisp.org>
5643
5644         copysignf: Don't override undeclared system function on IRIX 6.5.
5645         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5646         HAVE_COPYSIGNF.
5647         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5648         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5650         not HAVE_COPYSIGNF.
5651         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5652         HAVE_COPYSIGNF.
5653         * doc/posix-functions/copysignf.texi: Mention missing declaration
5654         problem.
5655
5656 2012-03-07  Jim Meyering  <meyering@redhat.com>
5657
5658         readtokens: add tests
5659         * modules/readtokens-tests: New file.
5660         * tests/test-readtokens.c: New file.
5661
5662 2012-03-07  Jim Meyering  <meyering@redhat.com>
5663
5664         quotearg: the module must now include quote.h
5665         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5666         So must the module.
5667         * modules/quotearg (Files): Add quote.h.
5668
5669 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5670
5671         readtokens: avoid core dumps with unusual calling patterns
5672         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5673         * lib/readtokens.c: Include limits.h.
5674         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5675         (readtoken): Don't cache the delimiters; the cache code was buggy
5676         if !delim && saved_delim, or if the new n_delim differs from the old.
5677         Also, it wasn't thread-safe.
5678
5679 2012-03-07  Bruno Haible  <bruno@clisp.org>
5680
5681         quote: Adhere to common module description layout.
5682         * modules/quote (Makefile.am): Add back empty section.
5683
5684 2012-03-06  Akim Demaille  <demaille@gostai.com>
5685
5686         quote: fuse into quotearg
5687         This patch is made for the benefit of Bison.
5688         quote does not leave the choice of the quoting style to the user.
5689         quoting_style provides poor customizability, yet quoting_options,
5690         which is very rich, is hidden inside quotearg.c.  So in order to
5691         allow quote customization, move its implementation to quotearg.c.
5692         * lib/quote.c: Remove.
5693         * modules/quote: Adjust.
5694         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5695         warning: provide all the members of literal structs.
5696         (quote_quoting_options): New.
5697         (quote, quote_n): Import implementation from quote.c.
5698         * lib/quote.h: Import the comments from quote.c.
5699         (quote_quoting_options): New.
5700
5701 2012-03-06  Bruno Haible  <bruno@clisp.org>
5702
5703         Tests for module 'expm1l-ieee'.
5704         * modules/expm1l-ieee-tests: New file.
5705         * tests/test-expm1l-ieee.c: New file.
5706
5707         New module 'expm1l-ieee'.
5708         * modules/expm1l-ieee: New file.
5709
5710         Tests for module 'expm1f-ieee'.
5711         * modules/expm1f-ieee-tests: New file.
5712         * tests/test-expm1f-ieee.c: New file.
5713
5714         New module 'expm1f-ieee'.
5715         * modules/expm1f-ieee: New file.
5716
5717         Tests for module 'expm1-ieee'.
5718         * modules/expm1-ieee-tests: New file.
5719         * tests/test-expm1-ieee.c: New file.
5720         * tests/test-expm1-ieee.h: New file.
5721
5722         New module 'expm1-ieee'.
5723         * modules/expm1-ieee: New file.
5724         * m4/expm1-ieee.m4: New file.
5725         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5726         whether expm1 works with a minus zero argument. Replace it if not.
5727         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5729         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5730         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5731         (Depends-on): Update conditions.
5732         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5733         AIX problem.
5734
5735 2012-03-06  Bruno Haible  <bruno@clisp.org>
5736
5737         Work around expm1f bug on IRIX 6.5.
5738         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5739         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5740         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5741         not work.
5742         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5743         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5744         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5745         (Depends-on): Update conditions.
5746         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5747
5748 2012-03-06  Bruno Haible  <bruno@clisp.org>
5749
5750         Tests for module 'expm1l'.
5751         * modules/expm1l-tests: New file.
5752         * tests/test-expm1l.c: New file.
5753
5754         New module 'expm1l'.
5755         * lib/math.in.h (expm1l): New declaration.
5756         * lib/expm1l.c: New file.
5757         * m4/expm1l.m4: New file.
5758         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5760         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5761         * modules/expm1l: New file.
5762         * tests/test-math-c++.cc: Check the declaration of expm1l.
5763         * doc/posix-functions/expm1l.texi: Mention the new module.
5764
5765 2012-03-06  Bruno Haible  <bruno@clisp.org>
5766
5767         Tests for module 'expm1f'.
5768         * modules/expm1f-tests: New file.
5769         * tests/test-expm1f.c: New file.
5770
5771         New module 'expm1f'.
5772         * lib/math.in.h (expm1f): New declaration.
5773         * lib/expm1f.c: New file.
5774         * m4/expm1f.m4: New file.
5775         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5777         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5778         * modules/expm1f: New file.
5779         * tests/test-math-c++.cc: Check the declaration of expm1f.
5780         * doc/posix-functions/expm1f.texi: Mention the new module.
5781
5782 2012-03-06  Bruno Haible  <bruno@clisp.org>
5783
5784         Tests for module 'expm1'.
5785         * modules/expm1-tests: New file.
5786         * tests/test-expm1.c: New file.
5787         * tests/test-expm1.h: New file.
5788
5789         New module 'expm1'.
5790         * lib/math.in.h (expm1): New declaration.
5791         * lib/expm1.c: New file.
5792         * m4/expm1.m4: New file.
5793         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5795         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5796         * modules/expm1: New file.
5797         * tests/test-math-c++.cc: Check the declaration of expm1.
5798         * doc/posix-functions/expm1.texi: Mention the new module.
5799
5800 2012-03-06  Bruno Haible  <bruno@clisp.org>
5801
5802         math: Ensure declarations of math functions.
5803         * modules/acosf (Depends-on): Add 'extensions'.
5804         * modules/asinf (Depends-on): Likewise.
5805         * modules/atan2f (Depends-on): Likewise.
5806         * modules/atanf (Depends-on): Likewise.
5807         * modules/cbrt (Depends-on): Likewise.
5808         * modules/cbrtf (Depends-on): Likewise.
5809         * modules/cbrtl (Depends-on): Likewise.
5810         * modules/copysignf (Depends-on): Likewise.
5811         * modules/copysignl (Depends-on): Likewise.
5812         * modules/cosf (Depends-on): Likewise.
5813         * modules/coshf (Depends-on): Likewise.
5814         * modules/expf (Depends-on): Likewise.
5815         * modules/fabsf (Depends-on): Likewise.
5816         * modules/fabsl (Depends-on): Likewise.
5817         * modules/fmaf (Depends-on): Likewise.
5818         * modules/fmal (Depends-on): Likewise.
5819         * modules/fmodf (Depends-on): Likewise.
5820         * modules/fmodl (Depends-on): Likewise.
5821         * modules/frexpf (Depends-on): Likewise.
5822         * modules/frexpl (Depends-on): Likewise.
5823         * modules/hypot (Depends-on): Likewise.
5824         * modules/hypotf (Depends-on): Likewise.
5825         * modules/hypotl (Depends-on): Likewise.
5826         * modules/ldexpf (Depends-on): Likewise.
5827         * modules/ldexpl (Depends-on): Likewise.
5828         * modules/log10f (Depends-on): Likewise.
5829         * modules/log10l (Depends-on): Likewise.
5830         * modules/log1p (Depends-on): Likewise.
5831         * modules/logb (Depends-on): Likewise.
5832         * modules/logf (Depends-on): Likewise.
5833         * modules/modff (Depends-on): Likewise.
5834         * modules/modfl (Depends-on): Likewise.
5835         * modules/powf (Depends-on): Likewise.
5836         * modules/remainderf (Depends-on): Likewise.
5837         * modules/remainderl (Depends-on): Likewise.
5838         * modules/rintf (Depends-on): Likewise.
5839         * modules/rintl (Depends-on): Likewise.
5840         * modules/sinf (Depends-on): Likewise.
5841         * modules/sinhf (Depends-on): Likewise.
5842         * modules/sqrtf (Depends-on): Likewise.
5843         * modules/tanf (Depends-on): Likewise.
5844         * modules/tanhf (Depends-on): Likewise.
5845         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5846         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5847         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5848         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5849         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5850         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5851         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5852         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5853         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5854         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5855         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5856         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5857         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5858         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5859         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5860         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5861         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5862         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5863         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5864         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5865         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5866         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5867         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5868         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5869         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5870         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5871         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5872         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5873         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5874         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5875         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5876         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5877         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5878         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5879         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5880         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5881         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5882         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5883         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5884         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5885         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5886
5887 2012-03-06  Bruno Haible  <bruno@clisp.org>
5888
5889         math: Update module names in warnings.
5890         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5891         tanl): Use specific module name in warn-on-use warning.
5892
5893 2012-03-06  Bruno Haible  <bruno@clisp.org>
5894
5895         expl: Simplify computation.
5896         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5897
5898 2012-03-05  Bruno Haible  <bruno@clisp.org>
5899
5900         exp* tests: More tests.
5901         * tests/test-exp.h: New file.
5902         * tests/test-exp.c: Include <float.h> and test-exp.h.
5903         (main): Invoke test_function.
5904         * tests/test-expf.c: Include <float.h> and test-exp.h.
5905         (main): Invoke test_function.
5906         * tests/test-expl.c: Include <float.h> and test-exp.h.
5907         (main): Invoke test_function.
5908         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5909         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5910         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5911         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5912         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5913         (Depends-on): Add 'float'.
5914         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5915
5916         expl: Fix precision of computed result.
5917         * lib/expl.c: Completely rewritten.
5918         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5919         (Maintainer): Add me.
5920         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5921
5922 2012-03-05  Bruno Haible  <bruno@clisp.org>
5923
5924         cbrt* tests: More tests.
5925         * tests/test-cbrt.h: New file.
5926         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5927         (main): Invoke test_function.
5928         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5929         (main): Invoke test_function.
5930         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5931         (main): Invoke test_function.
5932         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5933         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5934         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5935         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5936         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5937         (Depends-on): Add 'float'.
5938         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5939
5940 2012-03-05  Bruno Haible  <bruno@clisp.org>
5941
5942         hypot* tests: More tests.
5943         * tests/test-hypot.h: New file, partially extracted from
5944         tests/test-hypotl.c.
5945         * tests/test-hypot.c: Include test-hypot.h.
5946         (main): Invoke test_function.
5947         * tests/test-hypotf.c: Include test-hypot.h.
5948         (main): Invoke test_function.
5949         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5950         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5951         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5952         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5953         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5954         tests/randomf.c.
5955         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5956         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5957         tests/randoml.c.
5958         (Depends-on): Add 'fpucw', 'float'.
5959         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5960
5961 2012-03-05  Bruno Haible  <bruno@clisp.org>
5962
5963         fpucw: Doc about FreeBSD.
5964         * lib/fpucw.h: Mention FreeBSD in comments.
5965
5966 2012-03-04  Bruno Haible  <bruno@clisp.org>
5967
5968         sqrt* tests: More tests.
5969         * tests/test-sqrt.h: New file.
5970         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5971         (main): Invoke test_function.
5972         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5973         (main): Invoke test_function.
5974         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5975         (main): Invoke test_function.
5976         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5977         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5978         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5979         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5980         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5981         (Depends-on): Add 'float'.
5982         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5983
5984 2012-03-04  Bruno Haible  <bruno@clisp.org>
5985
5986         remainder* tests: More tests.
5987         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5988         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5989         (main): Invoke test_function.
5990         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5991         (main): Invoke test_function.
5992         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5993         (main): Invoke test_function.
5994         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5995         tests/randomd.c.
5996         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5997         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5998         tests/randomf.c.
5999         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6000         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6001         tests/randoml.c.
6002         (Depends-on): Add 'float'.
6003         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6004
6005 2012-03-04  Bruno Haible  <bruno@clisp.org>
6006
6007         remainder, remainderf, remainderl: Fix computation for large quotients.
6008         * lib/remainder.c: Completely rewritten.
6009         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6010         USE_FLOAT.
6011         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6012         USE_LONG_DOUBLE.
6013         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6014         isnand, isinf. Remove round, fma.
6015         * modules/remainderf (Files): Add lib/remainder.c.
6016         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6017         Remove roundf, fmaf.
6018         * modules/remainderl (Files): Add lib/remainder.c.
6019         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6020         isinf. Remove roundl, fmal.
6021         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6022         REMAINDER_LIBM.
6023         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6024         REMAINDERF_LIBM.
6025         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6026         REMAINDERL_LIBM.
6027
6028 2012-03-04  Bruno Haible  <bruno@clisp.org>
6029
6030         fmod* tests: More tests.
6031         * tests/test-fmod.h (my_ldexp): New function.
6032         (test_function): Reduce amount of random numbers to test. Add tests
6033         of very large quotients x / y.
6034         * tests/test-fmod.c (MAX_EXP): New macro.
6035         * tests/test-fmodf.c (MAX_EXP): Likewise.
6036         * tests/test-fmodl.c (MAX_EXP): Likewise.
6037
6038 2012-03-04  Bruno Haible  <bruno@clisp.org>
6039
6040         fmod, fmodl: Fix computation for large quotients x / y.
6041         * lib/fmod.c: Completely rewritten.
6042         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6043         USE_LONG_DOUBLE.
6044         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6045         isnand. Remove fma.
6046         * modules/fmodl (Files): Add lib/fmod.c.
6047         (Depends-on): Add float, isfinite, signbit, fabsl,
6048         frexpl, ldexpl, isnanl. Remove fma.
6049         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6050         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6051
6052 2012-03-03  Bruno Haible  <bruno@clisp.org>
6053
6054         fmod* tests: More tests.
6055         * tests/test-fmod.h: New file.
6056         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6057         (main): Invoke test_function.
6058         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6059         (main): Invoke test_function.
6060         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6061         (main): Invoke test_function.
6062         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6063         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6064         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6065         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6066         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6067         (Depends-on): Add 'float'.
6068         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6069
6070 2012-03-03  Bruno Haible  <bruno@clisp.org>
6071
6072         rint* tests: More tests.
6073         * tests/test-rint.h: New file, partially extracted from
6074         tests/test-rintl.c.
6075         * tests/test-rint.c: Include test-rint.h.
6076         (main): Invoke test_function.
6077         * tests/test-rintf.c: Include test-rint.h.
6078         (main): Invoke test_function.
6079         * tests/test-rintl.c: Include test-rint.h.
6080         (main): Invoke test_function.
6081         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6082         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6083         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6084         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6085         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6086         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6087
6088 2012-03-03  Bruno Haible  <bruno@clisp.org>
6089
6090         modf* tests: More tests.
6091         * tests/test-modf.h: New file.
6092         * tests/test-modf.c: Include <float.h> and test-modf.h.
6093         (main): Invoke test_function.
6094         * tests/test-modff.c: Include <float.h> and test-modf.h.
6095         (main): Invoke test_function.
6096         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6097         (main): Invoke test_function.
6098         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6099         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6100         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6101         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6102         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6103         (Depends-on): Add 'float'.
6104         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6105
6106 2012-03-03  Bruno Haible  <bruno@clisp.org>
6107
6108         fabs* tests: More tests.
6109         * tests/test-fabs.h: New file, partially extracted from
6110         tests/test-fabsl.c.
6111         * tests/test-fabs.c (RANDOM): New macro.
6112         * tests/test-fabsf.c (RANDOM): New macro.
6113         * tests/test-fabsl.c (RANDOM): New macro.
6114         * modules/fabs-tests (Files): Add tests/randomd.c.
6115         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6116         * modules/fabsf-tests (Files): Add tests/randomf.c.
6117         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6118         * modules/fabsl-tests (Files): Add tests/randoml.c.
6119         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6120
6121 2012-03-03  Bruno Haible  <bruno@clisp.org>
6122
6123         ldexp* tests: More tests.
6124         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6125         * tests/test-ldexp.c (RANDOM): New macro.
6126         * tests/test-ldexpf.c (RANDOM): New macro.
6127         * tests/test-ldexpl.c (RANDOM): New macro.
6128         * modules/ldexp-tests (Files): Add tests/randomd.c.
6129         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6130         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6131         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6132         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6133         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6134
6135 2012-03-03  Bruno Haible  <bruno@clisp.org>
6136
6137         frexp* tests: More tests.
6138         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6139         * tests/test-frexp.c (RANDOM): New macro.
6140         * tests/test-frexpf.c (RANDOM): New macro.
6141         * tests/test-frexpl.c (RANDOM): New macro.
6142         * modules/frexp-tests (Files): Add tests/randomd.c.
6143         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6144         * modules/frexpf-tests (Files): Add tests/randomf.c.
6145         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6146         * modules/frexpl-tests (Files): Add tests/randoml.c.
6147         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6148
6149 2012-03-03  Bruno Haible  <bruno@clisp.org>
6150
6151         Support for pseudo-random numbers in tests.
6152         * tests/randomf.c: New file.
6153         * tests/randomd.c: New file.
6154         * tests/randoml.c: New file.
6155         * tests/macros.h (randomf, randomd, randoml): New declarations.
6156
6157 2012-03-03  Bruno Haible  <bruno@clisp.org>
6158
6159         frexp* tests: Refactor.
6160         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6161         * tests/test-frexp.c: Include and use it.
6162         * tests/test-frexpf.c: Likewise.
6163         * tests/test-frexpl.c: Likewise.
6164         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6165         * modules/frexpf-tests (Files): Likewise.
6166         * modules/frexpl-tests (Files): Likewise.
6167
6168 2012-03-02  Jim Meyering  <meyering@redhat.com>
6169
6170         maint: don't specify XZ_OPT=-9ev in dist-related rule
6171         Using xz's -9 option is warranted only if you have a very large
6172         tarball (see xz's documentation for the sizes vs. presets), and
6173         requires 64MiB of memory at decompression time.
6174         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6175         Automake's default of just "-e" is fine.  Override on a
6176         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6177
6178 2012-03-01  Eric Blake  <eblake@redhat.com>
6179
6180         maint.mk: allow announcement for non-gnulib project
6181         * maint.mk (announcement): Skip gnulib version if not used.
6182
6183 2012-03-01  Jim Meyering  <meyering@redhat.com>
6184
6185         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6186         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6187         envvar settings cannot interfere.  Otherwise, setting envvars like
6188         prohibit=foo require=bar, etc. would cause spurious test failures.
6189
6190 2012-03-01  Eric Blake  <eblake@redhat.com>
6191
6192         maint.mk: add per-line exclusions to prohibitions
6193         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6194         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6195         (sc_const_long_option): Use it.
6196
6197 2012-03-01  Bruno Haible  <bruno@clisp.org>
6198
6199         Tests for module 'expl-ieee'.
6200         * modules/expl-ieee-tests: New file.
6201         * tests/test-expl-ieee.c: New file.
6202
6203         New module 'expl-ieee'.
6204         * modules/expl-ieee: New file.
6205
6206         Tests for module 'exp-ieee'.
6207         * modules/exp-ieee-tests: New file.
6208         * tests/test-exp-ieee.c: New file.
6209
6210         New module 'exp-ieee'.
6211         * modules/exp-ieee: New file.
6212
6213         Tests for module 'expf-ieee'.
6214         * modules/expf-ieee-tests: New file.
6215         * tests/test-expf-ieee.c: New file.
6216         * tests/test-exp-ieee.h: New file.
6217
6218         New module 'expf-ieee'.
6219         * modules/expf-ieee: New file.
6220
6221 2012-02-29  Bruno Haible  <bruno@clisp.org>
6222
6223         cbrtl-ieee: Work around test failure on IRIX 6.5.
6224         * m4/cbrtl-ieee.m4: New file.
6225         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6226         test whether cbrtl works with a minus zero argument. Replace it if not.
6227         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6229         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6230         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6231         (Depends-on): Update conditions.
6232         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6233         m4/signbit.m4.
6234         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6235         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6236         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6237
6238         Tests for module 'cbrtl-ieee'.
6239         * modules/cbrtl-ieee-tests: New file.
6240         * tests/test-cbrtl-ieee.c: New file.
6241
6242         New module 'cbrtl-ieee'.
6243         * modules/cbrtl-ieee: New file.
6244
6245         Tests for module 'cbrt-ieee'.
6246         * modules/cbrt-ieee-tests: New file.
6247         * tests/test-cbrt-ieee.c: New file.
6248
6249         New module 'cbrt-ieee'.
6250         * modules/cbrt-ieee: New file.
6251
6252         Tests for module 'cbrtf-ieee'.
6253         * modules/cbrtf-ieee-tests: New file.
6254         * tests/test-cbrtf-ieee.c: New file.
6255         * tests/test-cbrt-ieee.h: New file.
6256
6257         New module 'cbrtf-ieee'.
6258         * modules/cbrtf-ieee: New file.
6259
6260 2012-02-29  Bruno Haible  <bruno@clisp.org>
6261
6262         cbrtf: Work around bug in IRIX 6.5 system function.
6263         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6264         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6265         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6266         work.
6267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6268         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6269         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6270         (Depends-on): Update conditions.
6271         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6272
6273 2012-02-29  Bruno Haible  <bruno@clisp.org>
6274
6275         Tests for module 'cbrtl'.
6276         * modules/cbrtl-tests: New file.
6277         * tests/test-cbrtl.c: New file.
6278
6279         New module 'cbrtl'.
6280         * lib/math.in.h (cbrtl): New declaration.
6281         * lib/cbrtl.c: New file.
6282         * m4/cbrtl.m4: New file.
6283         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6285         HAVE_DECL_CBRTL.
6286         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6287         HAVE_DECL_CBRTL.
6288         * modules/cbrtl: New file.
6289         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6290         * doc/posix-functions/cbrtl.texi: Mention the new module.
6291
6292 2012-02-29  Bruno Haible  <bruno@clisp.org>
6293
6294         Tests for module 'cbrtf'.
6295         * modules/cbrtf-tests: New file.
6296         * tests/test-cbrtf.c: New file.
6297
6298         New module 'cbrtf'.
6299         * lib/math.in.h (cbrtf): New declaration.
6300         * lib/cbrtf.c: New file.
6301         * m4/cbrtf.m4: New file.
6302         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6304         HAVE_DECL_CBRTF.
6305         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6306         HAVE_DECL_CBRTF.
6307         * modules/cbrtf: New file.
6308         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6309         * doc/posix-functions/cbrtf.texi: Mention the new module.
6310
6311 2012-02-29  Bruno Haible  <bruno@clisp.org>
6312
6313         cbrt: Provide replacement on MSVC and Minix.
6314         * lib/math.in.h (cbrt): New declaration.
6315         * lib/cbrt.c: New file.
6316         * m4/cbrt.m4: New file.
6317         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6318         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6319         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6320         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6321         (Depends-on): Add dependencies.
6322         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6323         * tests/test-math-c++.cc: Check the declaration of cbrt.
6324         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6325         replacement.
6326
6327 2012-02-29  Bruno Haible  <bruno@clisp.org>
6328
6329         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6330         * m4/hypotl-ieee.m4: New file.
6331         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6332         test whether hypotl works with mixed NaN and Infinity arguments.
6333         Replace it if not.
6334         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6336         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6337         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6338         (Depends-on): Update conditions.
6339         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6340         (Depends-on): Add hypot-ieee.
6341         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6342         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6343
6344         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6345         * m4/hypotf-ieee.m4: New file.
6346         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6347         test whether hypotf works with mixed NaN and Infinity arguments.
6348         Replace it if not.
6349         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6350         (Depends-on): Add hypot-ieee.
6351         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6352         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6353
6354         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6355         * lib/math.in.h (hypot): New declaration.
6356         * lib/hypot.c: New file.
6357         * m4/hypot-ieee.m4: New file.
6358         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6359         whether hypot works with mixed NaN and Infinity arguments. Replace it
6360         if not.
6361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6362         REPLACE_HYPOT.
6363         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6364         * modules/hypot (Files): Add lib/hypot.c.
6365         (Depends-on): Add dependencies.
6366         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6367         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6368         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6369         * tests/test-math-c++.cc: Check the declaration of hypot.
6370         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6371
6372         Tests for module 'hypotl-ieee'.
6373         * modules/hypotl-ieee-tests: New file.
6374         * tests/test-hypotl-ieee.c: New file.
6375
6376         New module 'hypotl-ieee'.
6377         * modules/hypotl-ieee: New file.
6378
6379         Tests for module 'hypot-ieee'.
6380         * modules/hypot-ieee-tests: New file.
6381         * tests/test-hypot-ieee.c: New file.
6382
6383         New module 'hypot-ieee'.
6384         * modules/hypot-ieee: New file.
6385
6386         Tests for module 'hypotf-ieee'.
6387         * modules/hypotf-ieee-tests: New file.
6388         * tests/test-hypotf-ieee.c: New file.
6389         * tests/test-hypot-ieee.h: New file.
6390
6391         New module 'hypotf-ieee'.
6392         * modules/hypotf-ieee: New file.
6393
6394 2012-02-29  Bruno Haible  <bruno@clisp.org>
6395
6396         Remove unused variables.
6397         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6398         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6399         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6400         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6401
6402 2012-02-29  Eric Blake  <eblake@redhat.com>
6403
6404         termios: fix pid_t always, not just for tcgetsid
6405         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6406         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6407         just when building tcgetsid.
6408
6409 2012-02-29  Bruno Haible  <bruno@clisp.org>
6410
6411         Tests for module 'hypotl'.
6412         * modules/hypotl-tests: New file.
6413         * tests/test-hypotl.c: New file.
6414
6415         New module 'hypotl'.
6416         * lib/math.in.h (hypotl): New declaration.
6417         * lib/hypotl.c: New file.
6418         * m4/hypotl.m4: New file.
6419         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6421         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6422         * modules/hypotl: New file.
6423         * tests/test-math-c++.cc: Check the hypotl declaration.
6424         * doc/posix-functions/hypotl.texi: Mention the new module.
6425
6426 2012-02-29  Eric Blake  <eblake@redhat.com>
6427
6428         tcgetsid: fix cygwin header bug
6429         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6430
6431         docs: update cygwin progress
6432         * doc/posix-functions/llround.texi (llround): Added in cygwin
6433         1.7.8.
6434         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6435         * doc/glibc-functions/program_invocation_name.texi
6436         (program_invocation_name): Likewise.
6437         * doc/glibc-functions/program_invocation_short_name.texi
6438         (program_invocation_short_name): Likewise.
6439         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6440         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6441         Likewise.
6442         * doc/posix-functions/pthread_spin_destroy.texi
6443         (pthread_spin_destroy): Added in cygwin 1.7.10.
6444         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6445         Likewise.
6446         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6447         Likewise.
6448         * doc/posix-functions/pthread_spin_trylock.texi
6449         (pthread_spin_trylock): Likewise.
6450         * doc/posix-functions/pthread_spin_unlock.texi
6451         (pthread_spin_unlock): Likewise.
6452         * doc/posix-functions/pthread_setschedprio.texi
6453         (pthread_setschedprio): Likewise.
6454         * doc/posix-functions/pthread_attr_getstack.texi
6455         (pthread_attr_getstack): Likewise.
6456         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6457         (pthread_attr_getstackaddr): Likewise.
6458         * doc/glibc-functions/pthread_getattr_np.texi
6459         (pthread_getattr_np): Likewise.
6460         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6461         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6462         * doc/posix-functions/clock_settime.texi (clock_settime):
6463         Likewise.
6464         * doc/posix-functions/pthread_attr_getguardsize.texi
6465         (pthread_attr_getguardsize): Likewise.
6466         * doc/posix-functions/pthread_attr_setguardsize.texi
6467         (pthread_attr_setguardsize): Likewise.
6468         * doc/posix-functions/pthread_attr_setstack.texi
6469         (pthread_attr_setstack): Likewise.
6470         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6471         (pthread_attr_setstackaddr): Likewise.
6472         * doc/posix-functions/clock_getcpuclockid.texi
6473         (clock_getcpuclockid): Likewise.
6474         * doc/posix-functions/pthread_getcpuclockid.texi
6475         (pthread_getcpuclockid): Likewise.
6476         * doc/glibc-functions/error.texi (error): Likewise.
6477         * doc/glibc-functions/error_at_line.texi (error_at_line):
6478         Likewise.
6479         * doc/glibc-functions/error_message_count.texi
6480         (error_message_count): Likewise.
6481         * doc/glibc-functions/error_one_per_line.texi
6482         (error_one_per_line): Likewise.
6483         * doc/glibc-functions/error_print_progname.texi
6484         (error_print_progname): Likewise.
6485         * doc/posix-functions/pthread_condattr_getclock.texi
6486         (pthread_condattr_getclock): Likewise.
6487         * doc/posix-functions/pthread_condattr_setclock.texi
6488         (pthread_condattr_setclock): Likewise.
6489         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6490         Likewise.
6491         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6492         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6493         * doc/glibc-functions/get_current_dir_name.texi
6494         (get_current_dir_name): Likewise.
6495         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6496         Likewise.
6497         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6498         wrong return type.
6499         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6500         1.7.11.
6501
6502 2012-02-29  Bruno Haible  <bruno@clisp.org>
6503
6504         Tests for module 'hypotf'.
6505         * modules/hypotf-tests: New file.
6506         * tests/test-hypotf.c: New file.
6507
6508         New module 'hypotf'.
6509         * lib/math.in.h (hypotf): New declaration.
6510         * lib/hypotf.c: New file.
6511         * m4/hypotf.m4: New file.
6512         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6514         REPLACE_HYPOTF.
6515         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6516         REPLACE_HYPOTF.
6517         * modules/hypotf: New file.
6518         * tests/test-math-c++.cc: Check the hypotf declaration.
6519         * doc/posix-functions/hypotf.texi: Mention the new module.
6520
6521         hypot: Prepare for hypotf module.
6522         * m4/hypot.m4: New file.
6523         * modules/hypot (Files): Add m4/hypot.m4.
6524         (configure.ac): Invoke gl_FUNC_HYPOT.
6525
6526 2012-02-29  Bruno Haible  <bruno@clisp.org>
6527
6528         hypot tests: More tests.
6529         * tests/test-hypot.c: Include <float.h>.
6530         (main): Add tests about overflow and underflow.
6531
6532 2012-02-29  Bruno Haible  <bruno@clisp.org>
6533
6534         math code: Add comments.
6535         * lib/acosl.c: Add comment about related glibc source files.
6536         * lib/asinl.c: Likewise.
6537         * lib/atanl.c: Likewise.
6538         * lib/expl.c: Likewise.
6539         * lib/logl.c: Likewise.
6540         * lib/sincosl.c: Likewise.
6541         * lib/sinl.c: Likewise.
6542         * lib/tanl.c: Likewise.
6543         * lib/trigl.c: Likewise.
6544         * lib/cosl.c: Likewise. Fix comments.
6545
6546 2012-02-28  Bruno Haible  <bruno@clisp.org>
6547
6548         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6549         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6550         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6551         HUGE_VALL are defined.
6552         (numeric_equald): Renamed from numeric_equal.
6553         (numeric_equalf, numeric_equall): New functions.
6554         (main): Check also HUGE_VALF, HUGE_VALL.
6555         * modules/math-tests (Files): Add tests/macros.h.
6556         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6557         HUGE_VALL.
6558
6559 2012-02-28  Bruno Haible  <bruno@clisp.org>
6560
6561         doc: Move ISO C11 feature notes into POSIX chapters.
6562         * doc/posix-functions/aligned_alloc.texi: Renamed from
6563         doc/glibc-functions/aligned_alloc.texi.
6564         * doc/posix-functions/quick_exit.texi: Renamed from
6565         doc/glibc-functions/quick_exit.texi.
6566         * doc/posix-headers/uchar.texi: Renamed from
6567         doc/glibc-headers/uchar.texi.
6568         * doc/posix-functions/c16rtomb.texi: Renamed from
6569         doc/glibc-functions/c16rtomb.texi.
6570         * doc/posix-functions/c32rtomb.texi: Renamed from
6571         doc/glibc-functions/c32rtomb.texi.
6572         * doc/posix-functions/mbrtoc16.texi: Renamed from
6573         doc/glibc-functions/mbrtoc16.texi.
6574         * doc/posix-functions/mbrtoc32.texi: Renamed from
6575         doc/glibc-functions/mbrtoc32.texi.
6576         * doc/gnulib.texi: Update.
6577         (Glibc uchar.h): Remove section.
6578         Suggested by Eric Blake.
6579
6580 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6581
6582         stdnoreturn: port to MSVC better
6583         MSVC standard headers use __declspec(noreturn), so #define noreturn
6584         to empty on that platform.  Reported by Bruno Haible in
6585         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6586         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6587         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6588
6589 2012-02-28  Bruno Haible  <bruno@clisp.org>
6590
6591         doc: Mention new glibc headers and functions.
6592         * doc/glibc-headers/uchar.texi: New file.
6593         * doc/glibc-functions/aligned_alloc.texi: New file.
6594         * doc/glibc-functions/c16rtomb.texi: New file.
6595         * doc/glibc-functions/c32rtomb.texi: New file.
6596         * doc/glibc-functions/clock_adjtime.texi: New file.
6597         * doc/glibc-functions/fanotify_init.texi: New file.
6598         * doc/glibc-functions/fanotify_mark.texi: New file.
6599         * doc/glibc-functions/inet6_opt_append.texi: New file.
6600         * doc/glibc-functions/inet6_opt_find.texi: New file.
6601         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6602         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6603         * doc/glibc-functions/inet6_opt_init.texi: New file.
6604         * doc/glibc-functions/inet6_opt_next.texi: New file.
6605         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6606         * doc/glibc-functions/inet6_rth_add.texi: New file.
6607         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6608         * doc/glibc-functions/inet6_rth_init.texi: New file.
6609         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6610         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6611         * doc/glibc-functions/inet6_rth_space.texi: New file.
6612         * doc/glibc-functions/login.texi: New file.
6613         * doc/glibc-functions/mbrtoc16.texi: New file.
6614         * doc/glibc-functions/mbrtoc32.texi: New file.
6615         * doc/glibc-functions/name_to_handle_at.texi: New file.
6616         * doc/glibc-functions/ntp_gettimex.texi: New file.
6617         * doc/glibc-functions/open_by_handle_at.texi: New file.
6618         * doc/glibc-functions/prlimit.texi: New file.
6619         * doc/glibc-functions/process_vm_readv.texi: New file.
6620         * doc/glibc-functions/process_vm_writev.texi: New file.
6621         * doc/glibc-functions/recvmmsg.texi: New file.
6622         * doc/glibc-functions/scandirat.texi: New file.
6623         * doc/glibc-functions/sendmmsg.texi: New file.
6624         * doc/glibc-functions/setns.texi: New file.
6625         * doc/glibc-functions/timespec_get.texi: New file.
6626         * doc/gnulib.texi: Include them.
6627         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6628         sections.
6629         Reported by Eric Blake.
6630
6631 2012-02-28  Bruno Haible  <bruno@clisp.org>
6632
6633         Avoid compilation errors with MSVC option -fp:strict.
6634         * lib/floor.c: Use MSVC specific pragma fenv_access.
6635         * lib/ceil.c: Likewise.
6636         * lib/trunc.c: Likewise.
6637         * lib/round.c: Likewise.
6638         * lib/rint.c: Likewise.
6639         * lib/fma.c: Likewise.
6640         * lib/integer_length.c: Likewise.
6641         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6642         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6643         * tests/test-floor2.c: Likewise.
6644         * tests/test-floorf2.c: Likewise.
6645         * tests/test-ceil2.c: Likewise.
6646         * tests/test-ceilf2.c: Likewise.
6647         * tests/test-trunc2.c: Likewise.
6648         * tests/test-truncf2.c: Likewise.
6649         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6650
6651 2012-02-27  Bruno Haible  <bruno@clisp.org>
6652
6653         Tests for module 'sqrtl-ieee'.
6654         * modules/sqrtl-ieee-tests: New file.
6655         * tests/test-sqrtl-ieee.c: New file.
6656
6657         New module 'sqrtl-ieee'.
6658         * modules/sqrtl-ieee: New file.
6659
6660         Tests for module 'sqrt-ieee'.
6661         * modules/sqrt-ieee-tests: New file.
6662         * tests/test-sqrt-ieee.c: New file.
6663
6664         New module 'sqrt-ieee'.
6665         * modules/sqrt-ieee: New file.
6666
6667         Tests for module 'sqrtf-ieee'.
6668         * modules/sqrtf-ieee-tests: New file.
6669         * tests/test-sqrtf-ieee.c: New file.
6670         * tests/test-sqrt-ieee.h: New file.
6671
6672         New module 'sqrtf-ieee'.
6673         * modules/sqrtf-ieee: New file.
6674
6675 2012-02-27  Bruno Haible  <bruno@clisp.org>
6676
6677         remainderl-ieee: Work around test failure on OSF/1.
6678         * m4/remainderl-ieee.m4: New file.
6679         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6680         present, test whether remainderl works with a zero second argument.
6681         Replace it if not.
6682         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6684         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6685         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6686         (Depends-on): Update conditions.
6687         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6688         (Depends-on): Add remainder-ieee.
6689         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6690         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6691         module.
6692
6693         remainderf-ieee: Work around test failure on OSF/1.
6694         * m4/remainderf-ieee.m4: New file.
6695         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6696         present, test whether remainderf works with a zero second argument.
6697         Replace it if not.
6698         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6700         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6701         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6702         (Depends-on): Update conditions.
6703         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6704         (Depends-on): Add remainder-ieee.
6705         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6706         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6707         module.
6708
6709         remainder-ieee: Work around test failure on OSF/1.
6710         * m4/remainder-ieee.m4: New file.
6711         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6712         present, test whether remainder works with a zero second argument.
6713         Replace it if not.
6714         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6716         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6717         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6718         (Depends-on): Update dependencies.
6719         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6720         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6721         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6722
6723         Tests for module 'remainderl-ieee'.
6724         * modules/remainderl-ieee-tests: New file.
6725         * tests/test-remainderl-ieee.c: New file.
6726
6727         New module 'remainderl-ieee'.
6728         * modules/remainderl-ieee: New file.
6729
6730         Tests for module 'remainder-ieee'.
6731         * modules/remainder-ieee-tests: New file.
6732         * tests/test-remainder-ieee.c: New file.
6733
6734         New module 'remainder-ieee'.
6735         * modules/remainder-ieee: New file.
6736
6737         Tests for module 'remainderf-ieee'.
6738         * modules/remainderf-ieee-tests: New file.
6739         * tests/test-remainderf-ieee.c: New file.
6740         * tests/test-remainder-ieee.h: New file.
6741
6742         New module 'remainderf-ieee'.
6743         * modules/remainderf-ieee: New file.
6744
6745 2012-02-27  Bruno Haible  <bruno@clisp.org>
6746
6747         modff, modfl: Fix configure syntax error.
6748         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6749         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6750
6751 2012-02-27  Bruno Haible  <bruno@clisp.org>
6752
6753         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6754         * m4/fmodl-ieee.m4: New file.
6755         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6756         whether fmodl works with zero arguments. Replace it if not.
6757         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6758         (Depends-on): Add fmod-ieee.
6759         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6760         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6761
6762         fmodf-ieee: Work around test failure on OSF/1.
6763         * m4/fmodf-ieee.m4: New file.
6764         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6765         whether fmodf works with zero arguments. Replace it if not.
6766         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6768         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6769         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6770         (Depends-on): Update dependencies.
6771         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6772         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6773         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6774
6775         fmodf-ieee: Work around test failure on MSVC 9.
6776         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6777         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6778
6779         fmod-ieee: Work around test failures on OSF/1, mingw.
6780         * m4/fmod-ieee.m4: New file.
6781         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6782         whether fmod works with zero arguments. Replace it if not.
6783         * lib/math.in.h (fmod): New declaration.
6784         * lib/fmod.c: New file.
6785         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6787         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6788         * modules/fmod (Files): Add lib/fmod.c.
6789         (Depends-on): Add math, isinf, trunc, fma.
6790         (configure.ac): Arrange to compile lib/fmod.c if needed.
6791         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6792         m4/signbit.m4.
6793         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6794         * tests/test-math-c++.cc: Check the declaration of fmod.
6795         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6796
6797         fmodl-ieee: Fix test failures.
6798         * lib/fmodl.c (fmodl): Treat Inf specially.
6799         * modules/fmodl (Depends-on): Add isinf.
6800
6801         Tests for module 'fmodl-ieee'.
6802         * modules/fmodl-ieee-tests: New file.
6803         * tests/test-fmodl-ieee.c: New file.
6804
6805         New module 'fmodl-ieee'.
6806         * modules/fmodl-ieee: New file.
6807
6808         Tests for module 'fmod-ieee'.
6809         * modules/fmod-ieee-tests: New file.
6810         * tests/test-fmod-ieee.c: New file.
6811
6812         New module 'fmod-ieee'.
6813         * modules/fmod-ieee: New file.
6814
6815         Tests for module 'fmodf-ieee'.
6816         * modules/fmodf-ieee-tests: New file.
6817         * tests/test-fmodf-ieee.c: New file.
6818         * tests/test-fmod-ieee.h: New file.
6819
6820         New module 'fmodf-ieee'.
6821         * modules/fmodf-ieee: New file.
6822
6823 2012-02-27  Bruno Haible  <bruno@clisp.org>
6824
6825         Tests for module 'rintl-ieee'.
6826         * modules/rintl-ieee-tests: New file.
6827         * tests/test-rintl-ieee.c: New file.
6828
6829         New module 'rintl-ieee'.
6830         * modules/rintl-ieee: New file.
6831
6832         Tests for module 'rint-ieee'.
6833         * modules/rint-ieee-tests: New file.
6834         * tests/test-rint-ieee.c: New file.
6835
6836         New module 'rint-ieee'.
6837         * modules/rint-ieee: New file.
6838
6839         Tests for module 'rintf-ieee'.
6840         * modules/rintf-ieee-tests: New file.
6841         * tests/test-rintf-ieee.c: New file.
6842         * tests/test-rint-ieee.h: New file.
6843
6844         New module 'rintf-ieee'.
6845         * modules/rintf-ieee: New file.
6846
6847 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6848
6849         regex: re_search etc. should return -2 when memory exhausted
6850         This bug was uncovered when testing 'grep'.  Without the fix,
6851         re_search and friends return -1 when memory is exhausted, but -1
6852         means no match, and this causes grep to falsely report no-match
6853         instead of memory-exhaustion.  See
6854         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6855         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6856         trouble; this can occur if re_search_internal ran out of memory.
6857
6858 2012-02-26  Bruno Haible  <bruno@clisp.org>
6859
6860         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6861         * m4/modfl-ieee.m4: New file.
6862         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6863         whether modfl works with Inf. Replace it if not.
6864         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6866         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6867         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6868         (Depends-on): Update dependencies.
6869         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6870         m4/signbit.m4.
6871         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6872         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6873
6874         modfl-ieee: Fix dependencies.
6875         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6876
6877         modfl-ieee: Fix test failures.
6878         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6879         * modules/modfl (Depends-on): Add isfinite, isinf.
6880
6881         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6882         * m4/modff-ieee.m4: New file.
6883         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6884         whether modff works with NaN and Inf. Replace it if not.
6885         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6887         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6888         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6889         (Depends-on): Update dependencies.
6890         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6891         m4/signbit.m4.
6892         (Depends-on): Add modf-ieee.
6893         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6894         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6895
6896         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6897         * m4/modf-ieee.m4: New file.
6898         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6899         whether modf works with NaN and Inf. Replace it if not.
6900         * lib/math.in.h (modf): New declaration.
6901         * lib/modf.c: New file.
6902         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6903         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6904         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6905         * modules/modf (Files): Add lib/modf.c.
6906         (Depends-on): Add math, isfinite, trunc, isinf.
6907         (configure.ac): Addrange to compile lib/modf.c if needed.
6908         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6909         m4/signbit.m4.
6910         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6911         * tests/test-math-c++.cc: Check the declaration of modf.
6912         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6913
6914         Tests for module 'modfl-ieee'.
6915         * modules/modfl-ieee-tests: New file.
6916         * tests/test-modfl-ieee.c: New file.
6917
6918         New module 'modfl-ieee'.
6919         * modules/modfl-ieee: New file.
6920
6921         Tests for module 'modf-ieee'.
6922         * modules/modf-ieee-tests: New file.
6923         * tests/test-modf-ieee.c: New file.
6924
6925         New module 'modf-ieee'.
6926         * modules/modf-ieee: New file.
6927
6928         Tests for module 'modff-ieee'.
6929         * modules/modff-ieee-tests: New file.
6930         * tests/test-modff-ieee.c: New file.
6931         * tests/test-modf-ieee.h: New file.
6932
6933         New module 'modff-ieee'.
6934         * modules/modff-ieee: New file.
6935
6936 2012-02-26  Bruno Haible  <bruno@clisp.org>
6937
6938         Tests for module 'fabsl-ieee'.
6939         * modules/fabsl-ieee-tests: New file.
6940         * tests/test-fabsl-ieee.c: New file.
6941
6942         New module 'fabsl-ieee'.
6943         * modules/fabsl-ieee: New file.
6944
6945         Tests for module 'fabs-ieee'.
6946         * modules/fabs-ieee-tests: New file.
6947         * tests/test-fabs-ieee.c: New file.
6948
6949         New module 'fabs-ieee'.
6950         * modules/fabs-ieee: New file.
6951
6952         Tests for module 'fabsf-ieee'.
6953         * modules/fabsf-ieee-tests: New file.
6954         * tests/test-fabsf-ieee.c: New file.
6955         * tests/test-fabs-ieee.h: New file.
6956
6957         New module 'fabsf-ieee'.
6958         * modules/fabsf-ieee: New file.
6959
6960 2012-02-26  Bruno Haible  <bruno@clisp.org>
6961
6962         Tests for module 'fmal-ieee'.
6963         * modules/fmal-ieee-tests: New file.
6964         * tests/test-fmal-ieee.c: New file.
6965
6966         New module 'fmal-ieee'.
6967         * modules/fmal-ieee: New file.
6968
6969         Tests for module 'fma-ieee'.
6970         * modules/fma-ieee-tests: New file.
6971         * tests/test-fma-ieee.c: New file.
6972
6973         New module 'fma-ieee'.
6974         * modules/fma-ieee: New file.
6975
6976         Tests for module 'fmaf-ieee'.
6977         * modules/fmaf-ieee-tests: New file.
6978         * tests/test-fmaf-ieee.c: New file.
6979         * tests/test-fma-ieee.h: New file.
6980
6981         New module 'fmaf-ieee'.
6982         * modules/fmaf-ieee: New file.
6983
6984 2012-02-26  Bruno Haible  <bruno@clisp.org>
6985
6986         Tests for module 'ldexpl-ieee'.
6987         * modules/ldexpl-ieee-tests: New file.
6988         * tests/test-ldexpl-ieee.c: New file.
6989
6990         New module 'ldexpl-ieee'.
6991         * modules/ldexpl-ieee: New file.
6992
6993         Tests for module 'ldexp-ieee'.
6994         * modules/ldexp-ieee-tests: New file.
6995         * tests/test-ldexp-ieee.c: New file.
6996
6997         New module 'ldexp-ieee'.
6998         * modules/ldexp-ieee: New file.
6999
7000         Tests for module 'ldexpf-ieee'.
7001         * modules/ldexpf-ieee-tests: New file.
7002         * tests/test-ldexpf-ieee.c: New file.
7003         * tests/test-ldexp-ieee.h: New file.
7004
7005         New module 'ldexpf-ieee'.
7006         * modules/ldexpf-ieee: New file.
7007
7008 2012-02-26  Bruno Haible  <bruno@clisp.org>
7009
7010         Refactor frexp*-ieee tests.
7011         * tests/test-frexp-ieee.h: New file.
7012         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7013         (main): Just call test_function.
7014         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7015         (main): Just call test_function.
7016         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7017         (main): Just call test_function.
7018         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7019         * modules/frexp-ieee-tests (Files): Likewise.
7020         * modules/frexpl-ieee-tests (Files): Likewise.
7021
7022         Tests for module 'frexpl-ieee'.
7023         * modules/frexpl-ieee-tests: New file.
7024         * tests/test-frexpl-ieee.c: New file.
7025
7026         New module 'frexpl-ieee'.
7027         * modules/frexpl-ieee: New file.
7028
7029         Tests for module 'frexp-ieee'.
7030         * modules/frexp-ieee-tests: New file.
7031         * tests/test-frexp-ieee.c: New file.
7032
7033         New module 'frexp-ieee'.
7034         * modules/frexp-ieee: New file.
7035
7036         Tests for module 'frexpf-ieee'.
7037         * modules/frexpf-ieee-tests: New file.
7038         * tests/test-frexpf-ieee.c: New file.
7039
7040         New module 'frexpf-ieee'.
7041         * modules/frexpf-ieee: New file.
7042
7043 2012-02-26  Bruno Haible  <bruno@clisp.org>
7044
7045         roundl-ieee tests: More tests.
7046         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7047         (main): Add tests for [MX] shaded specification in POSIX.
7048         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7049         (Depends-on): Add isnanl-nolibm.
7050
7051         round-ieee tests: More tests.
7052         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7053         (main): Add tests for [MX] shaded specification in POSIX.
7054         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7055         (Depends-on): Add isnand-nolibm.
7056
7057         roundf-ieee tests: More tests.
7058         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7059         (main): Add tests for [MX] shaded specification in POSIX.
7060         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7061         (Depends-on): Add isnanf-nolibm.
7062
7063         truncl-ieee tests: More tests.
7064         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7065         (main): Add tests for [MX] shaded specification in POSIX.
7066         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7067         (Depends-on): Add isnanl-nolibm.
7068
7069         trunc-ieee tests: More tests.
7070         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7071         (main): Add tests for [MX] shaded specification in POSIX.
7072         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7073         (Depends-on): Add isnand-nolibm.
7074
7075         truncf-ieee tests: More tests.
7076         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7077         (main): Add tests for [MX] shaded specification in POSIX.
7078         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7079         (Depends-on): Add isnanf-nolibm.
7080
7081         ceill-ieee tests: More tests.
7082         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7083         (main): Add tests for [MX] shaded specification in POSIX.
7084         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7085         (Depends-on): Add isnanl-nolibm.
7086
7087         ceil-ieee tests: More tests.
7088         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7089         (main): Add tests for [MX] shaded specification in POSIX.
7090         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7091         (Depends-on): Add isnand-nolibm.
7092
7093         ceilf-ieee tests: More tests.
7094         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7095         (main): Add tests for [MX] shaded specification in POSIX.
7096         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7097         (Depends-on): Add isnanf-nolibm.
7098
7099         floorl-ieee tests: More tests.
7100         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7101         (main): Add tests for [MX] shaded specification in POSIX.
7102         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7103         (Depends-on): Add isnanl-nolibm.
7104
7105         floor-ieee tests: More tests.
7106         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7107         (main): Add tests for [MX] shaded specification in POSIX.
7108         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7109         (Depends-on): Add isnand-nolibm.
7110
7111         floorf-ieee tests: More tests.
7112         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7113         (main): Add tests for [MX] shaded specification in POSIX.
7114         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7115         (Depends-on): Add isnanf-nolibm.
7116
7117 2012-02-26  Bruno Haible  <bruno@clisp.org>
7118
7119         fpieee: More comments.
7120         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7121
7122 2012-02-25  Bruno Haible  <bruno@clisp.org>
7123
7124         Tests for module 'log10l'.
7125         * modules/log10l-tests: New file.
7126         * tests/test-log10l.c: New file.
7127         * tests/test-math-c++.cc: Check the declaration of log10l.
7128
7129         New module 'log10l'.
7130         * lib/math.in.h (log10l): New declaration.
7131         * lib/log10l.c: New file.
7132         * m4/log10l.m4: New file.
7133         * modules/log10l: New file.
7134         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7136         HAVE_DECL_LOG10L.
7137         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7138         HAVE_DECL_LOG10L.
7139         * doc/posix-functions/log10l.texi: Mention the new module.
7140
7141 2012-02-25  Bruno Haible  <bruno@clisp.org>
7142
7143         fmodl, remainder*: Avoid wrong results due to rounding errors.
7144         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7145         expected bounds.
7146         * lib/remainderf.c (remainderf): Likewise.
7147         * lib/remainder.c (remainder): Likewise.
7148         * lib/remainderl.c (remainderl): Likewise.
7149
7150 2012-02-25  Bruno Haible  <bruno@clisp.org>
7151
7152         Tests for module 'remainderl'.
7153         * modules/remainderl-tests: New file.
7154         * tests/test-remainderl.c: New file.
7155         * tests/test-math-c++.cc: Check the declaration of remainderl.
7156
7157         New module 'remainderl'.
7158         * lib/math.in.h (remainderl): New declaration.
7159         * lib/remainderl.c: New file.
7160         * m4/remainderl.m4: New file.
7161         * modules/remainderl: New file.
7162         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7164         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7165         HAVE_REMAINDERL.
7166         * doc/posix-functions/remainderl.texi: Mention the new module.
7167
7168 2012-02-25  Bruno Haible  <bruno@clisp.org>
7169
7170         Tests for module 'remainderf'.
7171         * modules/remainderf-tests: New file.
7172         * tests/test-remainderf.c: New file.
7173         * tests/test-math-c++.cc: Check the declaration of remainderf.
7174
7175         New module 'remainderf'.
7176         * lib/math.in.h (remainderf): New declaration.
7177         * lib/remainderf.c: New file.
7178         * m4/remainderf.m4: New file.
7179         * modules/remainderf: New file.
7180         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7182         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7183         HAVE_REMAINDERF.
7184         * doc/posix-functions/remainderf.texi: Mention the new module.
7185
7186 2012-02-25  Bruno Haible  <bruno@clisp.org>
7187
7188         remainder: Support for MSVC.
7189         * lib/math.in.h (remainder): New declaration.
7190         * lib/remainder.c: New file.
7191         * m4/remainder.m4: New file.
7192         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7193         (Depends-on): Add math, round, fma.
7194         (configure.ac): Use results of gl_FUNC_REMAINDER.
7195         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7197         HAVE_DECL_REMAINDER.
7198         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7199         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7200         * tests/test-math-c++.cc: Check the declaration of remainder.
7201         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7202         problems are fixed.
7203
7204 2012-02-25  Bruno Haible  <bruno@clisp.org>
7205
7206         Tests for module 'fmodl'.
7207         * modules/fmodl-tests: New file.
7208         * tests/test-fmodl.c: New file.
7209         * tests/test-math-c++.cc: Check the declaration of fmodl.
7210
7211         New module 'fmodl'.
7212         * lib/math.in.h (fmodl): New declaration.
7213         * lib/fmodl.c: New file.
7214         * m4/fmodl.m4: New file.
7215         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7216         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7217         REPLACE_FMODL.
7218         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7219         REPLACE_FMODL.
7220         * modules/fmodl: New file.
7221         * doc/posix-functions/fmodl.texi: Mention the new module.
7222
7223 2012-02-25  Bruno Haible  <bruno@clisp.org>
7224
7225         Tests for module 'modfl'.
7226         * modules/modfl-tests: New file.
7227         * tests/test-modfl.c: New file.
7228         * tests/test-math-c++.cc: Check the declaration of modfl.
7229
7230         New module 'modfl'.
7231         * lib/math.in.h (modfl): New declaration.
7232         * lib/modfl.c: New file.
7233         * m4/modfl.m4: New file.
7234         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7236         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7237         * modules/modfl: New file.
7238         * doc/posix-functions/modfl.texi: Mention the new module.
7239
7240 2012-02-25  Bruno Haible  <bruno@clisp.org>
7241
7242         Tests for module 'fabsl'.
7243         * modules/fabsl-tests: New file.
7244         * tests/test-fabsl.c: New file.
7245         * tests/test-math-c++.cc: Check the declaration of fabsl.
7246
7247         New module 'fabsl'.
7248         * lib/math.in.h (fabsl): New declaration.
7249         * lib/fabsl.c: New file.
7250         * m4/fabsl.m4: New file.
7251         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7253         REPLACE_FABSL.
7254         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7255         REPLACE_FABSL.
7256         * modules/fabsl: New file.
7257         * doc/posix-functions/fabsl.texi: Mention the new module.
7258
7259 2012-02-25  Bruno Haible  <bruno@clisp.org>
7260
7261         fabs tests: More tests.
7262         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7263         (zero): New variable.
7264         (main): Add tests for signed zero.
7265         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7266
7267         fabsf tests: More tests.
7268         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7269         (zero): New variable.
7270         (main): Add tests for signed zero.
7271         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7272
7273 2012-02-24  Bruno Haible  <bruno@clisp.org>
7274
7275         atanl: Provide function definition on MSVC.
7276         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7277         function pointer.
7278         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7279
7280 2012-02-24  Bruno Haible  <bruno@clisp.org>
7281
7282         acosl: Provide function definition on MSVC.
7283         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7284         function pointer.
7285         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7286
7287 2012-02-24  Bruno Haible  <bruno@clisp.org>
7288
7289         asinl: Provide function definition on MSVC.
7290         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7291         function pointer.
7292         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7293
7294 2012-02-24  Bruno Haible  <bruno@clisp.org>
7295
7296         tanl: Provide function definition on MSVC.
7297         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7298         function pointer.
7299         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7300
7301 2012-02-24  Bruno Haible  <bruno@clisp.org>
7302
7303         cosl: Provide function definition on MSVC.
7304         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7305         function pointer.
7306         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7307
7308 2012-02-24  Bruno Haible  <bruno@clisp.org>
7309
7310         sinl: Provide function definition on MSVC.
7311         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7312         function pointer.
7313         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7314
7315 2012-02-24  Bruno Haible  <bruno@clisp.org>
7316
7317         logl: Provide function definition on MSVC.
7318         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7319         function pointer.
7320         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7321
7322 2012-02-24  Bruno Haible  <bruno@clisp.org>
7323
7324         expl: Provide function definition on MSVC.
7325         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7326         function pointer.
7327         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7328
7329 2012-02-24  Bruno Haible  <bruno@clisp.org>
7330
7331         sqrtl: Provide function definition on MSVC.
7332         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7333         a function pointer.
7334         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7335
7336 2012-02-24  Bruno Haible  <bruno@clisp.org>
7337
7338         ceill: Provide function definition on MSVC.
7339         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7340         used as a function pointer.
7341         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7342
7343 2012-02-24  Bruno Haible  <bruno@clisp.org>
7344
7345         floorl: Provide function definition on MSVC.
7346         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7347         used as a function pointer.
7348         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7349
7350 2012-02-24  Bruno Haible  <bruno@clisp.org>
7351
7352         ceilf: Provide function definition on MSVC.
7353         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7354         used as a function pointer.
7355         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7356
7357 2012-02-24  Bruno Haible  <bruno@clisp.org>
7358
7359         floorf: Provide function definition on MSVC.
7360         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7361         used as a function pointer.
7362         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7363
7364 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7365
7366         stdnoreturn: new module
7367         This implements a replacement for C11's <stdnoreturn.h>.
7368         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7369         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7370         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7371         * tests/test-stdnoreturn.c: New files.
7372
7373 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7374
7375         regex: fix false multibyte matches in some regular expressions
7376         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7377         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7378         * lib/regex_internal.c (re_string_skip_chars):
7379         Fix miscomputation of remain_len that may cause incomplete
7380         multi-byte character and false match.
7381
7382 2012-02-24  Jim Meyering  <meyering@redhat.com>
7383
7384         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7385         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7386         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7387         Remove now-unnecessary str''cmp obfuscation.
7388         Suggested by Akim Demaille.
7389
7390 2012-02-24  Bruno Haible  <bruno@clisp.org>
7391
7392         streq: Rename macro.
7393         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7394         * NEWS: Mention the change.
7395         * lib/mbrtowc.c (mbrtowc): Update.
7396         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7397         * lib/wcwidth.c (wcwidth): Update.
7398         Suggested by Akim Demaille and Jim Meyering.
7399
7400 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7401
7402         regex: fix typo in definition of MIN
7403         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7404         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7405
7406 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7407             Bruno Haible  <bruno@clisp.org>
7408
7409         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7410         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7411         entries into a stack-allocated buffer directly.
7412         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7413
7414 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7415             Bruno Haible  <bruno@clisp.org>
7416
7417         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7418
7419          - There were several instances of this pattern:
7420
7421              for (;;) {
7422                n = acl (f, GETACLCNT, 0, NULL);
7423                [ allocate an array A of size N ]
7424                if (acl (f, GETACL, n, a) == n)
7425                  break;
7426              }
7427
7428            This loop might never terminate if some other process is constantly
7429            manipulating the file's ACL.  The loop should be rewritten to
7430            terminate.
7431
7432          - The acl (... GETACLNT ...) call is merely an optimization; its value
7433            is merely a hint as to how big to make the array.  A better
7434            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7435            and just guess a reasonably-big size, growing the size and trying
7436            again if it's not large enough.  This guarantees termination, and
7437            saves a system call.
7438
7439         * lib/acl-internal.h: Include <limits.h>.
7440         (MIN, SIZE_MAX): New macros.
7441         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7442         a stack-allocated buffer, and use malloc if it does not fit. Don't
7443         use GETACLCNT.
7444         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7445
7446 2012-02-19  Bruno Haible  <bruno@clisp.org>
7447
7448         acl: Fix endless loop on Solaris with vxfs.
7449         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7450         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7451         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7452         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7453         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7454         Reported by Bill Jones in
7455         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7456
7457 2012-02-19  Bruno Haible  <bruno@clisp.org>
7458
7459         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7460         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7461         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7462         that this function returns 0 in some more cases.
7463
7464 2012-02-19  Bruno Haible  <bruno@clisp.org>
7465
7466         acl: Update doc references.
7467         * doc/acl-resources.txt: Update links to Solaris documentation.
7468
7469 2012-02-19  Bruno Haible  <bruno@clisp.org>
7470
7471         Fix test failure in many locales on Solaris 11.
7472         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7473         'tr' arguments.
7474         * tests/test-pipe-filter-ii1.c (main): Likewise.
7475         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7476         expressions in the C locale.
7477         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7478         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7479
7480 2012-02-19  Bruno Haible  <bruno@clisp.org>
7481
7482         gnulib-tool: Improve usage message.
7483         * gnulib-tool (func_usage): Move doc of --help and --version to the
7484         section "Operation modes".
7485
7486 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7487
7488         README-release: make it easier to execute commands
7489         * top/README-release: break commands out on to separate lines.
7490
7491 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7492
7493         GNUmakefile: simplify detection of unconfigured trees
7494         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7495         whether the tree make is being run from is already configured or
7496         not.  Related simplifications.
7497
7498 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7499
7500         * gnulib-tool (func_usage): Document --help and --version.
7501
7502 2012-02-11  Jim Meyering  <meyering@redhat.com>
7503
7504         bootstrap: don't exit 0 upon gnulib-tool failure
7505         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7506         its exit status, not 0.
7507
7508 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7509
7510         README-release: various improvements
7511         * top/README-release: Give a command to push changes for the
7512         release.  Add "distcheck" to list of other pre-release checks.
7513         Fix instance of "make stable" which should be "make TYPE".
7514
7515 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7516
7517         maint: replace FSF snail-mail addresses with URLs
7518         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7519         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7520         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7521         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7522         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7523         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7524         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7525         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7526         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7527         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7528         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7529         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7530         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7531         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7532         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7533         * lib/glthread/thread.c, lib/glthread/thread.h:
7534         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7535         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7536         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7537         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7538         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7539         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7540         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7541         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7542         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7543         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7544         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7545         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7546         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7547         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7548         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7549         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7550         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7551         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7552         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7553         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7554         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7555         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7556         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7557         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7558         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7559         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7560         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7561         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7562         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7563         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7564         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7565         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7566         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7567         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7568         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7569         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7570         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7571         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7572         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7573         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7574         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7575         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7576         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7577         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7578         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7579         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7580         * tests/test-poll.c, tests/test-quotearg-simple.c:
7581         * tests/test-quotearg.c, tests/test-quotearg.h:
7582         * tests/test-round-ieee.c, tests/test-round1.c:
7583         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7584         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7585         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7586         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7587         * tests/test-strerror.c, tests/test-strerror_r.c:
7588         * tests/test-strsignal.c, tests/test-strverscmp.c:
7589         * tests/test-xmemdup0.c:
7590         Replace FSF snail mail addresses with URLs, as per GNU coding
7591         standards.  See glibc bug
7592         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7593
7594 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7595
7596         README-release: capitalize a word and split a line
7597         * top/README-release: Fix punctuation and spacing.
7598
7599 2012-02-08  Akim Demaille  <demaille@gostai.com>
7600
7601         fatal-signal: use C prototypes (with explicit void).
7602         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7603         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7604
7605 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7606
7607         regex: spelling fix
7608         * lib/regexec.c: spelling fix
7609
7610         regex: rely on stdint.h for SIZE_MAX
7611         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7612
7613 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7614
7615         regex: merge glibc changes
7616
7617         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7618         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7619         (init_word_char): Work even if bitset words are not exactly 32 or
7620         64 bits wide.  Don't assume there are no padding bits.
7621         * lib/regex.c [_LIBC]: Do not include <config.h>.
7622         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7623         and -Wtype-limits.
7624         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7625         needless disagreement with glibc.  All uses changed.  Define it to
7626         1 only if _GNU_SOURCE, to match glibc.
7627         (_REG_RM_NAME): Remove; no longer needed, since the names in
7628         question are now all protected by __USE_GNU.
7629         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7630         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7631         * lib/regex_internal.h (MIN): New macro.
7632
7633         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7634         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7635
7636         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7637         * lib/regex_internal.c (re_string_fetch_byte_case):
7638         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7639         is miscompiled, and it turns out it is because of an incorrect
7640         attribute on re_string_fetch_byte_case.  Unlike
7641         re_string_peek_byte_case, this one is really not pure, it modifies
7642         memory (increments pstr->cur_idx), and with the pure attribute GCC
7643         assumed it doesn't and it cached the presumed value of
7644         regexp->cur_idx in a variable across the
7645          for (;; ++i)
7646            {
7647              if (i >= BRACKET_NAME_BUF_SIZE)
7648                return REG_EBRACK;
7649              if (token->type == OP_OPEN_CHAR_CLASS)
7650                ch = re_string_fetch_byte_case (regexp);
7651              else
7652                ch = re_string_fetch_byte (regexp);
7653              if (re_string_eoi(regexp))
7654                return REG_EBRACK;
7655              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7656                break;
7657              elem->opr.name[i] = ch;
7658            }
7659
7660         2011-11-29 Andreas Schwab <schwab@redhat.com>
7661         * lib/regcomp.c (build_equiv_class):
7662         Fix access after end of search string in regex matcher.
7663
7664         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7665         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7666
7667         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7668         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7669
7670         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7671         * lib/regcomp.c (parse_branch, parse_sub_exp):
7672         More regex memory leak fixes and tests.
7673         (parse_sub_exp, parse_bracket_exp):
7674         Fix memory leak for some invalid regular expressions.
7675
7676         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7677         * lib/regex_internal.c, lib/regexec.c:
7678         Fix unnecessary overallocation due to incomplete character.  When
7679         incomplete characters are found at the end of a string the code
7680         ran amok and allocated lots of memory.  Stricter limits are now in
7681         place.
7682
7683         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7684         * lib/regex.h: Update documentation.
7685
7686         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7687         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7688
7689         2010-05-05 Andreas Schwab <schwab@redhat.com>
7690         * lib/regexec.c (find_collation_sequence_value):
7691         Fix lookup of collation sequence value during regexp matching.
7692
7693         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7694         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7695
7696         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7697         * lib/regex.h: Cleanup namespace.
7698
7699         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7700         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7701
7702         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7703         * lib/regex_internal.h: Prevent some declarations and definitions
7704         to be seen when used in tests.
7705
7706         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7707         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7708         __libc_lock_* macros if not _LIBC.
7709         (struct re_dfa_t): Add lock.
7710
7711 2012-02-07  Eric Blake  <eblake@redhat.com>
7712
7713         maint.mk: also prohibit lower-case @var@
7714         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7715         lower case, like @top_srcdir@.
7716
7717 2012-02-04  Eric Blake  <eblake@redhat.com>
7718
7719         canonicalize: avoid uninitialized memory use
7720         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7721         random '/' left in dest.
7722         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7723
7724 2012-02-04  Bruno Haible  <bruno@clisp.org>
7725
7726         isatty: Fix test failure of ptsname_r on native Windows.
7727         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7728         and don't set errno.
7729         (isatty): Test first whether fd is valid. Set errno when returning 0.
7730
7731 2012-02-04  Bruno Haible  <bruno@clisp.org>
7732
7733         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7734         * tests/test-spawn-pipe-main.c: Include progname.h.
7735         (main): Invoke set_program_name.
7736         * modules/spawn-pipe-tests (Depends-on): Add progname.
7737
7738         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7739         * tests/test-nonblocking-socket-main.c: Include progname.h.
7740         (main): Invoke set_program_name.
7741         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7742
7743         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7744         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7745         (main): Invoke set_program_name.
7746         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7747
7748 2012-02-04  Eric Blake  <eblake@redhat.com>
7749
7750         canonicalize-lgpl: fix // handling
7751         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7752
7753         canonicalize: fix // handling
7754         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7755         /// to //, since only // is special.
7756
7757 2012-02-04  Bruno Haible  <bruno@clisp.org>
7758
7759         ioctl: Fix test failure on native Windows.
7760         * lib/ioctl.c: Include msvc-nothrow.h.
7761         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7762
7763 2012-02-04  Bruno Haible  <bruno@clisp.org>
7764
7765         fsync: Avoid test failure on native Windows.
7766         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7767         read-only.
7768
7769 2012-02-04  Bruno Haible  <bruno@clisp.org>
7770
7771         sys_select: Avoid syntax error on OpenBSD 5.0.
7772         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7773         currently being included, just include the system's <sys/select.h>.
7774
7775 2012-02-04  Bruno Haible  <bruno@clisp.org>
7776
7777         sys_select: Avoid syntax error on OpenBSD 5.0.
7778         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7779         <sys/select.h>, not before.
7780         Reported by Jiri B <jirib@devio.us>.
7781
7782 2012-02-04  Bruno Haible  <bruno@clisp.org>
7783
7784         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7785         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7786         global variables.
7787         * tests/test-get-rusage-data.c (main): Likewise.
7788         Reported by Jim Meyering.
7789
7790 2012-02-04  Bruno Haible  <bruno@clisp.org>
7791
7792         stdioext: Fix last commit.
7793         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7794
7795 2012-02-03  Bruno Haible  <bruno@clisp.org>
7796
7797         stdioext: Add tentative support for Plan9.
7798         * lib/stdio-impl.h: Include <errno.h>.
7799         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7800         * lib/freadable.c (freadable): Likewise.
7801         * lib/fwritable.c (fwritable): Likewise.
7802         * lib/fbufmode.c (fbufmode): Likewise.
7803         * lib/freading.c (freading): Likewise.
7804         * lib/fwriting.c (fwriting): Likewise.
7805         * lib/freadptr.c (freadptr): Likewise.
7806         * lib/freadseek.c (freadptrinc): Likewise.
7807         * lib/freadahead.c (freadahead): Likewise.
7808         * lib/fpurge.c (fpurge): Likewise.
7809         * lib/fseeko.c (rpl_fseeko): Likewise.
7810         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7811         Reported by Jens Staal <staal1978@gmail.com>.
7812
7813 2012-02-02  Jim Meyering  <meyering@redhat.com>
7814
7815         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7816         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7817         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7818         not even to try to add the attribute.  Instead, add a pragma to suppress
7819         the suggestion/warning.
7820
7821 2012-01-31  Karl Berry  <karl@gnu.org>
7822
7823         setstate doc: typo.
7824         * doc/posix-functions/setstate.texi (setstate): { not (.
7825
7826 2012-01-31  Bruno Haible  <bruno@clisp.org>
7827
7828         popen: Make more robust on Windows.
7829         * lib/popen.c: On native Windows, use the _popen based code even if
7830         HAVE_POPEN is set.
7831         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7832         environment variable on native Windows.
7833
7834 2012-01-30  Bruno Haible  <bruno@clisp.org>
7835
7836         pclose: Fix typo.
7837         * lib/stdio.in.h (pclose): Fix typo in warning message.
7838
7839 2012-01-30  Bruno Haible  <bruno@clisp.org>
7840
7841         doc about getlogin_r, setstate.
7842         * doc/posix-functions/getlogin_r.texi: List the incompatible
7843         declaration problem under "not fixed by gnulib".
7844         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7845         problem on Solaris 11 and other platforms.
7846
7847 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7848             Bruno Haible  <bruno@clisp.org>
7849
7850         poll tests: Make test more robust.
7851         * tests/test-poll.c: Include macros.h.
7852         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7853         return value of various I/O operations.
7854         * modules/poll-tests (Files): Add tests/macros.h.
7855
7856 2012-01-30  Bruno Haible  <bruno@clisp.org>
7857
7858         sys_stat: Fix support for mingw64 and MSVC.
7859         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7860         header files already do it.
7861         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7862         stat itself.
7863         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7864
7865 2012-01-30  Bruno Haible  <bruno@clisp.org>
7866
7867         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7869         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7870
7871 2012-01-29  Bruno Haible  <bruno@clisp.org>
7872
7873         quotearg: Fix test failure on MacOS X 10.5.
7874         * tests/test-quotearg-simple.c: Include localcharset.h.
7875         (main): If the locale encoding is not ASCII, bypass the tests of
7876         locale_quoting_style and clocale_quoting_style.
7877         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7878
7879 2012-01-29  Jim Meyering  <meyering@redhat.com>
7880
7881         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7882         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7883         detect uses of canonicalize_file_name.
7884
7885 2012-01-28  Bruno Haible  <bruno@clisp.org>
7886
7887         test-framework-sh: Fix test failure with AIX 7.1 diff.
7888         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7889         in column 1, like 'diff -c' does.
7890         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7891         whether 'diff -u' is used. Instead, test whether the output contains
7892         some '@' character.
7893
7894 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7895
7896         strtoimax: eliminate need for stdint.h, inttypes.h checks
7897         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7898         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7899         the prerequisites for a recently-introduced strtoimax test.
7900         I guess this might cause strtoimax to be replaced when not
7901         strictly necessary on older hosts, but this shouldn't introduce
7902         any bugs and it should make Emacs 'configure' faster on typical
7903         modern hosts.  Problem discovered when importing the latest gnulib
7904         to an Emacs test version.
7905         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7906
7907 2012-01-28  Bruno Haible  <bruno@clisp.org>
7908
7909         sys_time: Override 'struct timeval' on some native Windows platforms.
7910         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7911         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7912         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7913         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7914         needs to be overridden.
7915         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7916         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7917         * tests/test-sys_select.c: Check that the tv_sec member has the same
7918         size as a 'time_t'.
7919         * tests/test-sys_time.c: Likewise.
7920         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7921         is set, set also REPLACE_GETTIMEOFDAY.
7922         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7923         convert the resulting 'struct timeval' before returning.
7924         * lib/select.c: Include <sys/time.h>.
7925         (select, timeval): Undefine at the right place.
7926         * modules/select (Depends-on): Add sys_time.
7927         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7928         some Windows platforms.
7929         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7930
7931 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7932
7933         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7934         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7935         an integer.
7936         * lib/fcntl.c (dupfd): Likewise.
7937         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7938
7939 2012-01-28  Bruno Haible  <bruno@clisp.org>
7940
7941         fcntl: Avoid compilation error on native Windows.
7942         * modules/fcntl (Depends-on): Add 'close'.
7943
7944 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7945
7946         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7947         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7948         pointer to an integer.
7949         * lib/poll.c (IsConsoleHandle): Likewise.
7950         * lib/isatty.c (IsConsoleHandle): Likewise.
7951
7952 2012-01-28  Jim Meyering  <meyering@redhat.com>
7953
7954         doc: clarify README-release
7955         * top/README-release: Clarify: you should make a point to have
7956         the latest stable versions of build tools in your PATH, and the
7957         reference to buildreq is solely for its list of tool names, not
7958         for its minimal-functional version numbers.
7959         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7960
7961         maint.mk: use more readable (yet functionally equivalent) quoting
7962         It is common to quote a single quote in a single quoted string like
7963         this:  '...'\''...'.  Unless you know the idiom, that looks like
7964         gibberish, so prefer to double-quote the string when possible.
7965         Then you can use a more readable, lone single quote: "...'..."
7966         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7967         "don't" is more readable than the equivalent 'don'\''t'.
7968         (sc_cast_of_x_alloc_return_value): Likewise.
7969         (sc_cast_of_alloca_return_value): Likewise.
7970         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7971         rather than '\'':'\''.
7972
7973 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7974
7975         stdalign: relax _Alignof and tighten _Alignas test
7976         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7977         as it was too strict: alignof must divide offsetof, but it need
7978         not equal offsetof.  Inspired by Joseph S. Myers's comment
7979         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7980         Conversely, tighten the _Alignas test a bit, as the resulting
7981         alignment must be exactly 8.
7982
7983 2012-01-27  Bruno Haible  <bruno@clisp.org>
7984
7985         stdalign: Document the last change.
7986         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7987
7988 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7989
7990         stdalign: check that alignof and offsetof are consistent
7991         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7992         Problem reported for gnulib by Richard W.M. Jones in
7993         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7994
7995 2012-01-27  Jim Meyering  <meyering@redhat.com>
7996
7997         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7998         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7999         convert a sequence with gaps to the minimal containing range.
8000         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8001         * tests/test-update-copyright.sh: Test for this.
8002         The FSF confirmed it is ok to do this, assuming there is at
8003         least one significant change per year in the affected range:
8004         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8005
8006 2012-01-26  Bruno Haible  <bruno@clisp.org>
8007
8008         pipe2: refine doc about thread-safety
8009         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8010         multithread-safety problem.
8011         * doc/glibc-functions/accept4.texi: Likewise.
8012
8013 2012-01-26  Bruno Haible  <bruno@clisp.org>
8014
8015         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8016         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8017         In the test program, include <fcntl.h>, for O_RDONLY.
8018
8019 2012-01-26  Eric Blake  <eblake@redhat.com>
8020
8021         pipe2: document lack of thread-safety in replacement
8022         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8023         issue in replacement.
8024         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8025         Based on a report by Eric Wong.
8026
8027 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8028             Bruno Haible  <bruno@clisp.org>
8029
8030         malloca: Avoid warnings on x86_64 mingw64.
8031         * lib/malloca.c: Include <stdint.h>.
8032         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8033         * modules/malloca (Depends-on): Add stdint.
8034         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8035
8036 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8037
8038         obstack: remove __STDC__ conditionals
8039         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8040         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8041         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8042         m4/include_next.m4 as the only gnulib-maintained places that still
8043         refer to __STDC__.
8044
8045 2012-01-24  Bruno Haible  <bruno@clisp.org>
8046
8047         havelib: Modern quoting.
8048         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8049         the recent change to the GNU coding standards.
8050
8051 2012-01-24  Bruno Haible  <bruno@clisp.org>
8052
8053         stdint: Improve support for Android.
8054         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8055         Reported by Simon Josefsson <simon@josefsson.org>.
8056
8057 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8058
8059         doc: omit trailing empty lines from INSTALL etc.
8060         * doc/Makefile (INSTALL): Omit trailing empty lines.
8061         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8062         omit trailing empty lines.  This simplifies the build procedure.
8063
8064 2012-01-23  Jim Meyering  <meyering@redhat.com>
8065
8066         tests: avoid spurious warnings about gl_sockets_startup
8067         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8068         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8069         reporting a "statement with no effect".
8070         * tests/test-accept.c (main): Mark as "(void)".
8071         * tests/test-accept4.c (main): Likewise.
8072         * tests/test-bind.c (main): Likewise.
8073         * tests/test-connect.c (main): Likewise.
8074         * tests/test-getpeername.c (main): Likewise.
8075         * tests/test-getsockname.c (main): Likewise.
8076         * tests/test-getsockopt.c (main): Likewise.
8077         * tests/test-listen.c (main): Likewise.
8078         * tests/test-recv.c (main): Likewise.
8079         * tests/test-recvfrom.c (main): Likewise.
8080         * tests/test-send.c (main): Likewise.
8081         * tests/test-sendto.c (main): Likewise.
8082         * tests/test-setsockopt.c (main): Likewise.
8083         * tests/test-shutdown.c (main): Likewise.
8084
8085 2012-01-21  Bruno Haible  <bruno@clisp.org>
8086
8087         locale-fr.m4: Fix for Android.
8088         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8089         failure of the test program on Bionic libc.
8090
8091 2012-01-21  Jim Meyering  <meyering@redhat.com>
8092
8093         bootstrap: fail when bootstrap_post_import_hook fails
8094         Otherwise, it's far too easy to miss diagnostics emitted
8095         between gnulib-tool's output and that of running configure.
8096         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8097
8098 2012-01-17  Jim Meyering  <meyering@redhat.com>
8099
8100         maint: enable sc_trailing_blank
8101         * build-aux/pmccabe.css: Remove trailing blanks.
8102         * doc/acl-cygwin.txt: Likewise.
8103         * doc/gnu-oids.texi: Likewise
8104         * cfg.mk: Enable sc_trailing_blank.
8105         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8106
8107 2012-01-17  Jim Meyering  <meyering@redhat.com>
8108
8109         maint: enable sc_prohibit_openat_without_use
8110         * cfg.mk: Enable sc_prohibit_openat_without_use.
8111         Exempt lib/selinux-at.c.
8112
8113 2012-01-17  Jim Meyering  <meyering@redhat.com>
8114
8115         maint: enable sc_prohibit_cloexec_without_use
8116         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8117         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8118
8119 2012-01-17  Jim Meyering  <meyering@redhat.com>
8120
8121         maint: enable sc_prohibit_intprops_without_use
8122         * cfg.mk: Enable sc_prohibit_intprops_without_use
8123         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8124
8125 2012-01-17  Jim Meyering  <meyering@redhat.com>
8126
8127         maint: enable sc_prohibit_hash_pjw_without_use
8128         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8129         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8130         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8131         following " (".
8132
8133 2012-01-17  Jim Meyering  <meyering@redhat.com>
8134
8135         maint: enable double-word-prohibiting rule
8136         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8137         Exempt three files.
8138
8139 2012-01-17  Jim Meyering  <meyering@redhat.com>
8140
8141         maint: remove empty lines at EOF, but excluding modules/*
8142         Apply syntax rules at home as well as abroad.  Most changes
8143         were induced by running this:
8144           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8145             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8146             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8147         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8148         Exempt modules/* and two binary files.
8149         Also exempt doc/INSTALL*, per request from Bruno Haible.
8150         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8151         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8152         * doc/Copyright/request-assign.future: Likewise.
8153         * doc/Copyright/request-disclaim.changes: Likewise.
8154         * doc/INSTALL: Likewise.
8155         * doc/INSTALL.ISO: Likewise.
8156         * doc/INSTALL.UTF-8: Likewise.
8157         * doc/acl-cygwin.txt: Likewise.
8158         * doc/acl-resources.txt: Likewise.
8159         * doc/fdl-1.2.texi: Likewise.
8160         * doc/fdl-1.3.texi: Likewise.
8161         * doc/fdl.texi: Likewise.
8162         * lib/argp-pin.c: Likewise.
8163         * lib/round.c: Likewise.
8164         * lib/unicase/u16-totitle.c: Likewise.
8165         * lib/unictype/block_test.c: Likewise.
8166         * lib/uninorm/canonical-decomposition.c: Likewise.
8167         * m4/README: Likewise.
8168         * m4/relocatable-lib.m4: Likewise.
8169         * tests/test-isnand-nolibm.c: Likewise.
8170         * tests/test-isnand.c: Likewise.
8171         * tests/uninorm/NormalizationTest.txt: Likewise.
8172
8173 2012-01-17  Jim Meyering  <meyering@redhat.com>
8174
8175         maint: add framework to run syntax-check rules against gnulib sources
8176         * cfg.mk: New file, to disable all currently-failing tests.
8177         We'll enable them one by one, as they are made to pass.
8178         * Makefile (sc_maint): New rule.
8179
8180 2012-01-21  Bruno Haible  <bruno@clisp.org>
8181
8182         stdint: Add support for Android.
8183         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8184         include the system's <stdint.h>.
8185         Reported by Simon Josefsson <simon@josefsson.org>.
8186
8187 2012-01-19  Jim Meyering  <meyering@redhat.com>
8188
8189         bootstrap: add bootstrap_post_import_hook
8190         Bison does still need something like the gnulib_mk_hook whose
8191         invocation I had to remove along with slurp in commit 767ccd40.
8192         Technically, we could get along without it, but doing so would
8193         have required living with a warning and a mandatory post-bootstrap
8194         automake rerun.
8195         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8196         (bootstrap_post_import_hook): New function.
8197         Invoke it after gnulib-tool --import and before autoreconf.
8198
8199 2012-01-18  Jim Meyering  <meyering@redhat.com>
8200
8201         gitlog-to-changelog: don't use "no_"-prefixed variable name
8202         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8203         to enable both --cluster and --no-cluster.  Change variable name,
8204         s/\$no_cluster/$cluster/, and reverse usage to match.
8205
8206         gitlog-to-changelog: use "||", not "or" in expressions
8207         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8208         expressions.
8209
8210 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8211
8212         gitlog-to-changelog: new option --no-cluster
8213         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8214         clustering of adjacent commit messages.
8215
8216 2012-01-17  Jim Meyering  <meyering@redhat.com>
8217
8218         maint: spell file systems with two words, not one
8219         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8220         two words, not one.
8221
8222 2012-01-16  Jim Meyering  <meyering@redhat.com>
8223
8224         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8225         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8226
8227 2012-01-16  Eric Blake  <eblake@redhat.com>
8228
8229         bootstrap: cater to autoconf 2.59
8230         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8231         is not available.
8232
8233         bootstrap: properly check for libtool
8234         * build-aux/bootstrap (libtoolize): Also run libtool when older
8235         usage is detected.
8236
8237 2012-01-15  Bruno Haible  <bruno@clisp.org>
8238
8239         Improve support for MSVC 9.
8240         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8241         clashes on MSVC.
8242         * lib/fcntl.in.h: Likewise.
8243         * lib/stdlib.in.h: Likewise.
8244         * lib/sys_stat.in.h: Likewise.
8245
8246 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8247
8248         gnupload: we hold the master copy of this script now
8249         For motivation and more information, see:
8250         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8251         * build-aux/gnupload: Make it clear in the heading comments that the
8252         master copy of this file is maintained by gnulib.  Since we are at
8253         it, bump its copyright year and ...
8254         ($scriptversion): ... the date in its version.
8255         ($usage): Patches and bug reports should be sent to the gnulib list,
8256         not the automake one.
8257         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8258         anymore.
8259
8260 2012-01-15  Bruno Haible  <bruno@clisp.org>
8261
8262         Fix module 'random'.
8263         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8264         initstate, setstate are declared.
8265
8266 2012-01-14  Bruno Haible  <bruno@clisp.org>
8267
8268         Tests for module 'random'.
8269         * modules/random-tests: New file.
8270         * tests/test-random.c: New file, based on tests/test-random_r.c.
8271
8272         New module 'random'.
8273         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8274         declarations.
8275         * lib/random.c: New file, based on glibc/stdlib/random.c.
8276         * m4/random.m4: New file.
8277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8278         HAVE_RANDOM.
8279         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8280         * modules/random: New file.
8281         * config/srclist.txt: Add an entry for random.c.
8282         * doc/posix-functions/random.texi: Mention the 'random' module.
8283         * doc/posix-functions/initstate.texi: Likewise.
8284         * doc/posix-functions/setstate.texi: Likewise.
8285         * doc/posix-functions/srandom.texi: Likewise.
8286
8287 2012-01-12  Bruno Haible  <bruno@clisp.org>
8288
8289         random_r: Use common idioms.
8290         * lib/random_r.c: Include <stdlib.h> first.
8291
8292         random_r: Override incompatible API on AIX, OSF/1.
8293         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8294         Override the system function if REPLACE_RANDOM_R is 1.
8295         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8296         and OSF/1, set REPLACE_RANDOM_R.
8297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8298         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8299         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8300         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8301         * doc/glibc-functions/random_r.texi: Likewise.
8302         * doc/glibc-functions/setstate_r.texi: Likewise.
8303
8304         random_r: Support for MSVC 9.
8305         * lib/random_r.c: Include stdint.h, not inttypes.h.
8306
8307 2012-01-12  Eric Blake  <eblake@redhat.com>
8308
8309         inet_ntop: guard extra work by IF_LINT
8310         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8311         better code generation when not checking for warnings.
8312         Suggested by Paul Eggert and Jim Meyering.
8313
8314         strptime: fix regression on mingw
8315         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8316         Fix regression.  Reported by Bruno Haible.
8317
8318 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8319             Bruno Haible  <bruno@clisp.org>
8320
8321         copy-file: add error-code-returning variant.
8322         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8323         (qcopy_file_preserving): New declaration.
8324         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8325         copy_file_preserving. Change return type to 'int'. Don't emit an error
8326         message here.
8327         (copy_file_preserving): New function.
8328         * tests/test-copy-file.c: Include <stdlib.h>.
8329         (main): Test qcopy_file_preserving if the environment variable
8330         NO_STDERR_OUTPUT is set.
8331         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8332         with NO_STDERR_OUTPUT
8333         * tests/test-copy-file-2.sh: Likewise.
8334
8335 2012-01-10  Bruno Haible  <bruno@clisp.org>
8336
8337         copy-file: Use 'quote' module consistently.
8338         * lib/copy-file.c (copy_file_preserving): Use quote().
8339
8340         copy-file: Refactor.
8341         * lib/copy-file.c: Include quote.h.
8342         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8343         message here.
8344         * modules/copy-file (Depends-on): Add quote.
8345
8346         acl: Export qcopy_acl.
8347         * lib/acl.h (qcopy_acl): New declaration.
8348         * lib/copy-acl.c (qcopy_acl): Make non-static.
8349
8350         acl: Rename a local variable.
8351         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8352
8353         acl: Align return values of copy_acl and qcopy_acl.
8354         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8355         maybe < -1.
8356
8357 2012-01-11  Eric Blake  <eblake@redhat.com>
8358
8359         strptime: silence gcc warnings
8360         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8361         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8362         Reported by Daniel P. Berrange.
8363
8364         inet_ntop: silence gcc warning
8365         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8366         Reported by Daniel P. Berrange.
8367
8368 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8369
8370         getloadavg test: skip the test on GNU/Linux without /proc mounted
8371         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8372         file.  When /proc is not mounted, it always fails with ENOENT.
8373         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8374         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8375
8376 2012-01-10  Bruno Haible  <bruno@clisp.org>
8377
8378         regex: Avoid link error on MSVC 9.
8379         * modules/regex (Depends-on): Add wctype.
8380
8381 2012-01-10  Bruno Haible  <bruno@clisp.org>
8382
8383         doc: Mention --with-tests option.
8384         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8385         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8386         --with-tests.
8387         Reported by Reuben Thomas.
8388
8389 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8390
8391         users.txt: order package names lexicographically.
8392         * users.txt: Order package names lexicographically.
8393
8394 2012-01-10  Jim Meyering  <meyering@redhat.com>
8395
8396         maint.mk: fix description in comment
8397         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8398
8399         ignore-value: remove deprecated ignore_ptr function
8400         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8401         * NEWS: Note this.
8402
8403 2012-01-09  Jim Meyering  <meyering@redhat.com>
8404
8405         test-init.sh: avoid a subshell
8406         * tests/test-init.sh: Remove protective subshell.
8407         Suggested by Bernhard Voelker.  While a subshell is normally
8408         required to protect against older shells (Solaris, FreeBSD) that
8409         warn about a missing program before performing redirection, the
8410         shell-selection tests performed by init.sh probably exclude any
8411         offending shell.
8412
8413 2012-01-08  Bruno Haible  <bruno@clisp.org>
8414
8415         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8416         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8417         variable.
8418
8419 2012-01-08  Bruno Haible  <bruno@clisp.org>
8420
8421         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8422         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8423         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8424         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8425         macro.
8426         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8427         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8428         * lib/spawn_faction_addopen.c: Add workaround implementation if
8429         HAVE_WORKING_POSIX_SPAWN.
8430         * modules/spawn (Makefile): Substitute
8431         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8432         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8433         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8434         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8435         (Depends-on): Update conditions.
8436         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8437         the Solaris 11 bug.
8438
8439 2012-01-08  Bruno Haible  <bruno@clisp.org>
8440
8441         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8442         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8443         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8444         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8445         macro.
8446         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8447         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8448         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8449         HAVE_WORKING_POSIX_SPAWN.
8450         * modules/spawn (Makefile): Substitute
8451         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8452         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8453         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8454         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8455         (Depends-on): Update conditions.
8456         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8457         the Solaris 11 bug.
8458
8459 2012-01-08  Bruno Haible  <bruno@clisp.org>
8460
8461         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8462         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8463         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8465         HAVE_WORKING_POSIX_SPAWN.
8466         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8467         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8468         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8469         * lib/spawn_faction_addclose.c: Add workaround implementation if
8470         HAVE_WORKING_POSIX_SPAWN.
8471         * modules/spawn (Makefile): Substitute
8472         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8473         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8474         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8475         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8476         (Depends-on): Update conditions.
8477         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8478         the Solaris 11 bug.
8479
8480 2012-01-08  Bruno Haible  <bruno@clisp.org>
8481
8482         doc: Update for Solaris 11 2011-11.
8483         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8484         * m4/printf.m4: Update comments.
8485
8486 2012-01-08  Bruno Haible  <bruno@clisp.org>
8487
8488         mktime: Avoid compilation error on Solaris 11.
8489         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8490
8491 2012-01-08  Bruno Haible  <bruno@clisp.org>
8492
8493         doc: Small fix.
8494         * doc/posix-headers/nl_types.texi: Correct platforms list.
8495
8496 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8497
8498         Add lgpl-3.0 module.
8499         * MODULES.html.sh (Support for building documentation): Add
8500         lgpl-3.0.
8501         * modules/lgpl-3.0: New file.
8502
8503 2012-01-08  Jim Meyering  <meyering@redhat.com>
8504
8505         select.c: indent with spaces, not TABs
8506         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8507
8508 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8509
8510         quotearg: do not use grave accent for left quote
8511         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8512         locale_quoting_style.
8513         (quotearg_buffer_restyled): Fix example.
8514         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8515
8516 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8517
8518         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8519         Most programs do not have translation catalogs for English and much
8520         less separate catalogs for British and American English.  Drop the
8521         suggestion to translators about these two, and provide it
8522         automatically for Unicode locales.  Like most programs, even those
8523         using American English, we use single quotation marks.  This conflicts
8524         with the American typographic convention, but works better when you
8525         cite the entire error message within double quotes.  It also tries not
8526         to clash with established practice and with what non-gnulib programs
8527         will usually do.
8528         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8529         using an UTF-8 or GB-18030 locale.  The list of other locales with
8530         quotes was provided by Bruno Haible.
8531         (quotearg_buffer_restyled): Adjust instructions to translators.
8532         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8533         text, since this would be wrong when using Unicode.
8534         * modules/quotearg: Depend on c-strcaseeq.
8535
8536 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8537
8538         quotearg: fix Wikipedia link
8539         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8540
8541 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8542
8543         Fix for mingw with MSVC9.
8544         * m4/ld-version-script.m4: Check that compiler rejects version
8545         scripts with syntax errors.  Reported by Bruno Haible
8546         <bruno@clisp.org>.
8547
8548 2012-01-06  Bruno Haible  <bruno@clisp.org>
8549
8550         Talk about "native Windows API", not "Woe32".
8551         * lib/accept4.c: Update comments to mention native Windows.
8552         * lib/execute.c: Likewise.
8553         * lib/fatal-signal.c: Likewise.
8554         * lib/localcharset.c: Likewise.
8555         * lib/nanosleep.c: Likewise.
8556         * lib/nl_langinfo.c: Likewise.
8557         * lib/pclose.c: Likewise.
8558         * lib/pipe-filter-gi.c: Likewise.
8559         * lib/pipe-filter-ii.c: Likewise.
8560         * lib/pipe.c: Likewise.
8561         * lib/pipe2.c: Likewise.
8562         * lib/popen.c: Likewise.
8563         * lib/progreloc.c: Likewise.
8564         * lib/relocatable.c: Likewise.
8565         * lib/sigaction.c: Likewise.
8566         * lib/sigprocmask.c: Likewise.
8567         * lib/spawn-pipe.h: Likewise.
8568         * lib/spawn-pipe.c: Likewise.
8569         * lib/spawni.c: Likewise.
8570         * lib/stat-time.h: Likewise.
8571         * lib/w32spawn.h: Likewise.
8572         * tests/test-isatty.c: Likewise.
8573         * lib/config.charset: More comments.
8574         * doc/gnulib-intro.texi: Mention native Windows.
8575         * doc/posix-functions/_Exit_C99.texi: Likewise.
8576         * doc/posix-headers/fcntl.texi: Likewise.
8577
8578 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8579
8580         argp: Avoid crash if translator uses % characters in a translation.
8581         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8582         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8583
8584 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8585
8586         doc: C11 and C++11 are now official
8587         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8588         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8589         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8590         * modules/stdalign:
8591         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8592
8593 2012-01-06  Bruno Haible  <bruno@clisp.org>
8594
8595         uc-is-grapheme-break tests: Tweak.
8596         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8597         message.
8598
8599 2012-01-06  Bruno Haible  <bruno@clisp.org>
8600
8601         test-init.sh: correct the test for diff -u
8602         * tests/test-init.sh: Also redirect stdout to /dev/null.
8603
8604 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8605
8606         Use ', not `, for quoting output.
8607         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8608         (print_changelog_deltas, get_tool_versions, main program):
8609         * build-aux/git-version-gen:
8610         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8611         * build-aux/move-if-change (help):
8612         * build-aux/useless-if-before-free (usage, main program):
8613         * check-module (parse_module_file, usage)
8614         (find_included_lib_files, check_module):
8615         * lib/argmatch.c (main) [TEST]:
8616         * lib/argp-help.c (_help):
8617         * lib/getopt1.c (main) [TEST]:
8618         * lib/git-merge-changelog.c (usage):
8619         * lib/xstrtol-error.c (xstrtol_error):
8620         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8621         * m4/argz.m4 (gl_FUNC_ARGZ):
8622         * m4/bison.m4 (gl_BISON):
8623         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8624         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8625         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8626         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8627         * m4/gc-random.m4 (gl_GC_RANDOM):
8628         * m4/intl.m4 (gt_CHECK_DECL):
8629         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8630         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8631         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8632         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8633         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8634         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8635         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8636         * tests/test-dirname.c (main):
8637         * tests/test-getpass.c (main):
8638         * tests/test-iconvme.c (main):
8639         * tests/test-parse-datetime.c (LOG):
8640         * tests/test-xstrtoimax.sh:
8641         * tests/test-xstrtol.sh:
8642         * tests/test-xstrtoll.sh:
8643         * tests/test-xstrtoumax.sh:
8644         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8645         * top/GNUmakefile (abort-due-to-no-makefile):
8646         Quote 'like this', not `like this', as per the recent change to
8647         the GNU coding standards.
8648
8649 2012-01-05  Bruno Haible  <bruno@clisp.org>
8650
8651         strtoimax: Don't force a replacement on systems where intmax_t is int.
8652         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8653         'intmax_t' is not larger than 'int'.
8654         Reported by Pádraig Brady <P@draigBrady.com>.
8655
8656 2012-01-05  Bruno Haible  <bruno@clisp.org>
8657
8658         doc: Mention NetBSD bugs.
8659         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8660         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8661
8662 2012-01-05  Bruno Haible  <bruno@clisp.org>
8663
8664         strtoumax tests: Enhance tests.
8665         * tests/test-strtoumax.c (main): Add tests for large values.
8666
8667 2012-01-05  Bruno Haible  <bruno@clisp.org>
8668
8669         strtoimax: Work around AIX 5.1 bug.
8670         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8671         definition.
8672         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8673         Set HAVE_STRTOIMAX.
8674         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8675         REPLACE_STRTOIMAX.
8676         * modules/inttypes-incomplete (Makefile.am): Substitute
8677         REPLACE_STRTOIMAX.
8678         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8679         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8680         (Depends-on): Update conditions.
8681         * tests/test-strtoimax.c (main): Add tests for large values.
8682         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8683
8684 2012-01-05  Bruno Haible  <bruno@clisp.org>
8685
8686         inttypes: Modernize.
8687         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8688         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8689         (Makefile.am): Update inttypes.h rule.
8690
8691 2012-01-05  Jim Meyering  <meyering@redhat.com>
8692
8693         init.sh: don't waste a subshell just to redirect stderr
8694         * tests/init.sh: In testing for diff -u and diff -c, use a
8695         stderr-redirecting exec inside `...` rather than a subshell.
8696
8697         test-init.sh: avoid failure on HP-UX 11.00
8698         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8699         resolves to diff -c or cmp.  Reported by Bruno Haible.
8700
8701 2012-01-05  Bruno Haible  <bruno@clisp.org>
8702
8703         Tests for module 'strtoull'.
8704         * modules/strtoull-tests: New file.
8705         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8706
8707 2012-01-05  Bruno Haible  <bruno@clisp.org>
8708
8709         Tests for module 'strtoll'.
8710         * modules/strtoll-tests: New file.
8711         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8712
8713 2012-01-05  Bruno Haible  <bruno@clisp.org>
8714
8715         Tests for module 'strtoul'.
8716         * modules/strtoul-tests: New file.
8717         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8718
8719 2012-01-05  Bruno Haible  <bruno@clisp.org>
8720
8721         Tests for module 'strtol'.
8722         * modules/strtol-tests: New file.
8723         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8724
8725 2012-01-04  Jim Meyering  <meyering@redhat.com>
8726
8727         test-init.sh: accommodate Solaris 5.10's different diff -u output
8728         * tests/test-init.sh: Also exempt @@ lines from the comparison
8729         of diff output, since Solaris 5.10 and GNU diff formats differ.
8730         Reported by Stefano Lattarini.
8731
8732 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8733
8734         test-posixtm: don't assume signed integer wraparound
8735         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8736         after signed integer overflow.  Inspired by (though it may not
8737         fix) Bruno Haible's bug report in
8738         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8739
8740         Spell out "Windows 9x" and "Windows XP".
8741         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8742         "Windows 9x" and "WinXP" with "Windows XP".
8743
8744 2012-01-04  Jim Meyering  <meyering@redhat.com>
8745
8746         test-vc-list-files-cvs.sh: remove obsolete comment
8747         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8748         double exit.  Now that's all encapsulated via skip_ and Exit.
8749
8750 2012-01-04  Bruno Haible  <bruno@clisp.org>
8751
8752         Talk about "native Windows API", not "Win32".
8753         * lib/classpath.c: Update comments to mention native Windows.
8754         * lib/csharpexec.c: Likewise.
8755         * lib/dup2.c: Likewise.
8756         * lib/error.c: Likewise.
8757         * lib/fcntl.c: Likewise.
8758         * lib/filename.h: Likewise.
8759         * lib/findprog.c: Likewise.
8760         * lib/get-rusage-as.c: Likewise.
8761         * lib/get-rusage-data.c: Likewise.
8762         * lib/getpagesize.c: Likewise.
8763         * lib/javaexec.c: Likewise.
8764         * lib/msvc-inval.c: Likewise.
8765         * lib/msvc-nothrow.c: Likewise.
8766         * lib/nanosleep.c: Likewise.
8767         * lib/nonblocking.c: Likewise.
8768         * lib/printf-parse.c: Likewise.
8769         * lib/setlocale.c: Likewise.
8770         * lib/sigaction.c: Likewise.
8771         * lib/strerror_r.c: Likewise.
8772         * lib/tmpdir.c: Likewise.
8773         * lib/vasnprintf.c: Likewise.
8774         * lib/w32spawn.h: Likewise.
8775         * lib/waitpid.c: Likewise.
8776         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8777         * m4/locale-ar.m4: Likewise.
8778         * m4/locale-fr.m4: Likewise.
8779         * m4/locale-ja.m4: Likewise.
8780         * m4/locale-tr.m4: Likewise.
8781         * m4/locale-zh.m4: Likewise.
8782         * m4/printf.m4: Likewise.
8783         * tests/test-cloexec.c: Likewise.
8784         * tests/test-copy-acl.sh: Likewise.
8785         * tests/test-copy-file.sh: Likewise.
8786         * tests/test-file-has-acl.sh: Likewise.
8787         * tests/test-set-mode-acl.sh: Likewise.
8788         * tests/test-dup-safer.c: Likewise.
8789         * tests/test-dup2.c: Likewise.
8790         * tests/test-dup3.c: Likewise.
8791         * tests/test-fcntl.c: Likewise.
8792         * tests/test-nonblocking-pipe.h: Likewise.
8793         * tests/test-nonblocking-socket.h: Likewise.
8794         * tests/test-pipe.c: Likewise.
8795         * tests/test-pipe2.c: Likewise.
8796         * tests/test-spawn-pipe-child.c: Likewise.
8797         * doc/acl-resources.txt: Likewise.
8798         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8799         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8800         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8801         * lib/localcharset.c: Update comments to mention native Windows.
8802         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8803         * lib/localename.c: Likewise.
8804         * lib/progreloc.c: Likewise.
8805         * lib/relocatable.c: Likewise.
8806         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8807         (windows_compute_revents): Renamed from win32_compute_revents.
8808         (windows_compute_revents_socket): Renamed from
8809         win32_compute_revents_socket.
8810         * lib/select.c: Update comments to mention native Windows.
8811         (windows_poll_handle): Renamed from win32_poll_handle.
8812         * m4/threadlib.m4: Update comments to mention native Windows.
8813         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8814         --enable-threads=windows instead of --enable-threads=win32. Set
8815         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8816         * lib/glthread/lock.h: Update comments to mention native Windows.
8817         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8818         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8819         USE_WIN32_THREADS.
8820         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8821         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8822         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8823         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8824         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8825         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8826         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8827         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8828         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8829         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8830         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8831         * tests/test-tls.c: Likewise.
8832         Rationale:
8833         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8834         on both 32-bit and 64-bit Windows systems.
8835         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8836         line of distinction is between "native Windows" on one side and Unix/
8837         POSIX systems on the other side. More details in
8838         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8839         Suggested by Paul Eggert.
8840
8841 2012-01-03  Bruno Haible  <bruno@clisp.org>
8842
8843         isatty: Support for MSVC 9.
8844         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8845         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8846         (_isatty_nothrow): New function.
8847         (isatty): Use it instead of _isatty.
8848         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8849         * lib/poll.c (IsConsoleHandle): Likewise.
8850         * lib/select.c (IsConsoleHandle): Likewise.
8851         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8852         (gl_PREREQ_ISATTY): New macro.
8853         * modules/isatty (Depends-on): Add msvc-inval.
8854         (configure.ac): Invoke gl_PREREQ_ISATTY.
8855
8856 2012-01-03  Jim Meyering  <meyering@redhat.com>
8857
8858         maint.mk: remove temporary transition aid from over 1.5 years ago
8859         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8860         purpose was to aid in the transition (avoiding silent malfunction)
8861         from that old name to the new _sc_search_regexp.  This shim was
8862         added by commit 219c504b.
8863
8864         init.sh: do not try to accommodate compare arguments starting with "-"
8865         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8866         compare arguments that start with "-".  Besides, we do not worry
8867         about this when invoking diff or cmp; why start now with sed?
8868         Using "--" to separate options from argument would trigger sed
8869         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8870         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8871
8872 2012-01-02  Bruno Haible  <bruno@clisp.org>
8873
8874         Enhance tests for module 'isatty'.
8875         * modules/isatty-tests (Depends-on): Add pipe-posix.
8876         * tests/test-isatty.c: Include <fcntl.h>.
8877         (DEV_NULL): New macro.
8878         (main): Test the resut of isatty() also on regular files, pipes, and
8879         /dev/null.
8880
8881         New module 'isatty'.
8882         * lib/unistd.in.h (isatty): New declaration.
8883         * lib/isatty.c: New file, based on an idea of
8884         Bastien Roucariès <roucaries.bastien@gmail.com>.
8885         * m4/isatty.m4: New file.
8886         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8887         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8888         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8889         REPLACE_ISATTY.
8890         * modules/isatty: New file.
8891         * doc/posix-functions/isatty.texi: Mention the new module.
8892         Suggested by Paolo Bonzini.
8893
8894 2012-01-02  Bruno Haible  <bruno@clisp.org>
8895
8896         canonicalize: Tweak 2011-12-29 commit.
8897         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8898         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8899
8900 2012-01-02  Jim Meyering  <meyering@redhat.com>
8901
8902         gitlog-to-changelog: describe input syntax in --help output
8903         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8904
8905         gitlog-to-changelog: fix typo in --help: show backslash before email @
8906         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8907         in sources, but not in actual output.
8908
8909 2011-12-30  Jim Meyering  <meyering@redhat.com>
8910
8911         gitlog-to-changelog: don't malfunction when name contains %-directive
8912         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8913         in a name string cause trouble.  E.g., with a user name of "%s",
8914         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8915
8916 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8917
8918         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8919         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8920         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8921         the "  (tiny change)" notation that is appended to the standard
8922         ChangeLog "date  name  email" header line.
8923
8924 2012-01-01  Jim Meyering  <meyering@redhat.com>
8925
8926         test-framework-sh: init.sh: fix "make dist" failure
8927         When using gnulib-tool's --with-tests option and any module that
8928         depends on test-framework-sh, "make dist" would fail due to the
8929         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8930         in the gltests directory, and not in the gllib/ directory.
8931         One way to work around that is to move the EXTRA_DIST += init.sh
8932         from the primary module to the -tests one:
8933         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8934         * modules/test-framework-sh (Makefile.am): ...not here.
8935         Reported by Tom G. Christensen in
8936         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8937
8938         version-etc: update copyright year reported by --version
8939         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8940
8941 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8942
8943         canonicalize: only stat() if required
8944         * lib/canonicalize.c (canonicalize_filename_mode):
8945         Avoid calling l?stat() when both CAN_MISSING,
8946         and CAN_NOLINKS are set, as we neither need
8947         to resolve symlinks or test component existence.
8948
8949 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8950
8951         doc: cover st_ino issues once; add OpenVMS etc.
8952         * doc/posix-functions/stat.texi (stat):
8953         * doc/posix-functions/lstat.texi (lstat):
8954         * doc/posix-functions/fstatat.texi (fstatat):
8955         * doc/posix-functions/fstat.texi (fstat):
8956         Move general 'struct stat' stuff to sys_stat.texi,
8957         leaving behind a pointer.
8958         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8959         Merge duplicate info about 'struct stat' problems into here.
8960         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8961         and suggest partial workarounds.
8962
8963         same-inode: port to OpenVMS
8964         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8965         three st_ino values.
8966
8967 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8968
8969         canonicalize: fix references to stat() and lstat()
8970         * lib/canonicalize.c (canonicalize_filename_mode):
8971         Ensure references always resolve to a replacement
8972         function if required (even via a macro).
8973
8974 2011-12-30  Jim Meyering  <meyering@redhat.com>
8975
8976         gitlog-to-changelog: remove a little duplication
8977         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8978         rather than twice.
8979
8980 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8981
8982         canonicalize: add support for not resolving symlinks
8983         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8984         indicate we don't want to follow symlinks.  Also
8985         provide CAN_MODE_MASK to aid setting these existing
8986         mutually exclusive values.
8987         * lib/canonicalize.c (canonicalize_filename_mode):
8988         Extract the flags from can_mode parameter, which
8989         are currently just used to select between stat()
8990         and lstat().  Also ensure that mutually exclusive
8991         values are flagged immediately as invalid.
8992         * tests/test-canonicalize.c: Verify symlinks are
8993         not followed, and that invalid flag combinations
8994         are diagnosed.
8995
8996 2011-12-25  Jim Meyering  <meyering@redhat.com>
8997
8998         gitlog-to-changelog: do not clump multi-paragraph entries
8999         Identical header lines (date,name,email+coauthors) are suppressed,
9000         thus putting all entries with those same characteristics under
9001         a single header.  However, when a log entry consists of two or
9002         more paragraphs, it may not be clear where it starts and ends.
9003         This change makes it so that such an entry is always separated
9004         from others by a header line, even when that header would
9005         otherwise be suppressed.
9006         * build-aux/gitlog-to-changelog: Implement the above.
9007         Inspired by a related request from Stefano Lattarini in
9008         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9009
9010 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9011
9012         announce-gen: fix `cmd' typo in diagnostic
9013         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9014         diagnostic: a missing '$' meant that the command was not output.
9015
9016 2011-12-23  Jim Meyering  <meyering@redhat.com>
9017
9018         test-framework-sh: distribute init.sh
9019         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9020         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9021         fail due to the lack of init.sh.
9022
9023         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9024         * modules/atexit-tests: Rather than listing tests/init.sh,
9025         now that there's a module for it, simply depend on that new module.
9026         * modules/closein-tests: Likewise.
9027         * modules/exclude-tests: Likewise.
9028         * modules/getcwd-tests: Likewise.
9029         * modules/perror-tests: Likewise.
9030         * modules/pread-tests: Likewise.
9031         * modules/pwrite-tests: Likewise.
9032         * modules/vc-list-files-tests: Likewise.
9033         * modules/verify-tests: Likewise.
9034         * modules/xalloc-die-tests: Likewise.
9035         * modules/xstrtoimax-tests: Likewise.
9036         * modules/xstrtol-tests: Likewise.
9037         * modules/xstrtoll-tests: Likewise.
9038         * modules/xstrtoumax-tests: Likewise.
9039         * modules/yesno-tests: Likewise.
9040
9041 2011-12-22  Jim Meyering  <meyering@redhat.com>
9042
9043         test-framework-sh: add minimal tests of init.sh's compare function
9044         * modules/test-framework-sh-tests: New file.
9045         * tests/test-init.sh: New file.
9046
9047         test-framework-sh: new module
9048         * modules/test-framework-sh: New file.
9049         * MODULES.html.sh (Support for maintaining and releasing projects):
9050         List it.
9051
9052         init.sh: do not emit simulated diff output to stderr
9053         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9054
9055 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9056
9057         .gitignore: ignore gnulib.dvi and regex.info
9058         * doc/.gitignore:add gnulib.dvi and regex.info
9059
9060 2011-12-22  Jim Meyering  <meyering@redhat.com>
9061
9062         init.sh: correct previous change
9063         * tests/init.sh (compare): My previous change was wrong.
9064         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9065
9066         init.sh: avoid unwarranted test failure when using "set -e"
9067         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9068         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9069         a use like "compare exp out" would get evoke an unconditional failure.
9070
9071 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9072
9073         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9074         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9075         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9076         autoreconf that did not.
9077         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9078         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9079
9080 2011-12-17  Jim Meyering  <meyering@redhat.com>
9081
9082         bootstrap: remove some now-unneeded code
9083         This script arose back when gnulib-tool was young.
9084         Since then, it has seen improvements that render much of this
9085         script unnecessary.  In particular, it can now make symlinks
9086         to the files it uses.  Also, I no longer see as much value in
9087         marking files as read-only via comments.
9088         If you relied on the symlink-creation feature of the preceding
9089         version of this script, you can get most of that functionality
9090         by adding the --symlink option to the definition of
9091         gnulib_tool_option_extras in your bootstrap.conf file.
9092         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9093         Run autopoint and libtoolize *before* gnulib-tool.
9094         After it, run an abbreviated autoreconf, rather than a loop around
9095         all tools.
9096         (slirp, bt_mark_as_generated): Remove functions.
9097
9098 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9099
9100         ftoastr: fix typo
9101         * lib/ftoastr.h: Fix misspelling in comment.
9102
9103 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9104
9105         * top/README-release: fix punctuation.
9106
9107 2011-12-17  Jim Meyering  <meyering@redhat.com>
9108
9109         bootstrap: correct the recent buildreq change
9110         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9111         had no effect.
9112         * build-aux/bootstrap (buildreq): Bracket each search term with
9113         "*...*", so that the shell "case" statement works as intended.
9114         Add comments.
9115
9116 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9117
9118         build: let bootstrap resort to wget when downloading .po files
9119         * build-aux/bootstrap (download_po_files): Fallback to wget when
9120         downloading the .po files via rsync fails.  This is necessary to
9121         bootstrap from behind a strict firewall.
9122
9123 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9124
9125         stdint: don't assume C++11 when compiling with g++
9126         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9128         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9129         work also in C++ before C++11, as that improperly inhibits
9130         generating a substitute stdint.h for that case.
9131
9132 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9133
9134         alloca: protect comment from gnulib-tool
9135         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9136         that gnulib-tool doesn't think it's a license, and munge it to
9137         say "GCC version 3".
9138
9139 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9140
9141         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9142         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9143         $(abs_top_builddir) instead of $(top_builddir).
9144
9145 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9146
9147         strftime-tests: also test nanoseconds
9148         * tests/test-strftime.c (T): Add a test of %N.
9149
9150 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9151
9152         inttypes, stdint: add C++11 support
9153         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9154         when including inttypes.h and stdint.h.  Support this change to
9155         the standard.
9156         * doc/posix-headers/inttypes.texi (inttypes.h):
9157         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9158         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9159         Define if not defined already, for the benefit of pre-C++11 hosts.
9160         Define the standard format macros (e.g., PRId8) always.
9161         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9162         Likewise, if __cpluspus.  Define the standard constant and limit
9163         macros (e.g., INT8_C, INT8_MAX) always.
9164         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9165         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9166         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9167         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9168         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9169         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9170         Likewise.
9171
9172 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9173
9174         nonblocking tests: Fix test failure on Linux/PPC.
9175         Suggested by Prerna Saxena in
9176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9177         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9178         Set to 1100000.
9179
9180 2011-12-12  Jim Meyering  <meyering@redhat.com>
9181
9182         argmatch: don't hard-code `' when listing valid option arguments
9183         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9184         use the quote function to add quotes.  Use fputs rather than
9185         fprintf for the format string with no format directive.
9186
9187 2011-12-07  Eric Blake  <eblake@redhat.com>
9188
9189         bootstrap: detect tools required by gnulib-tool
9190         * build-aux/bootstrap (buildreq): Provide minimum implicit
9191         dependencies.
9192         * DEPENDENCIES: Mention patch as a prereq.
9193
9194 2011-12-04  Bruno Haible  <bruno@clisp.org>
9195
9196         sethostname: Port to Windows platforms.
9197         * lib/sethostname.c: Provide an alternate implementation for Windows
9198         platforms.
9199         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9200         (main): Skip the test if sethostname() fails with EPERM. On Windows
9201         platforms, don't check the result of gethostname().
9202
9203 2011-12-04  Bruno Haible  <bruno@clisp.org>
9204             Jim Meyering  <meyering@redhat.com>
9205
9206         tests: Avoid spurious error message on platforms without mktemp program.
9207         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9208
9209 2011-12-04  Bruno Haible  <bruno@clisp.org>
9210
9211         sethostname: Fix documentation.
9212         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9213         "not fixed" section.
9214
9215 2011-12-03  Bruno Haible  <bruno@clisp.org>
9216
9217         gnulib-tool: Verify that the License field is present and non-empty.
9218         * gnulib-tool (func_get_license_raw): New function, extracted from
9219         func_get_license.
9220         (func_get_license): Use it. Warn if the module is not a test module and
9221         has no license.
9222         Suggested by Jim Meyering.
9223
9224 2011-12-03  Bruno Haible  <bruno@clisp.org>
9225
9226         sethostname tests: Fix link error on mingw.
9227         * tests/test-sethostname1.c: New file, extracted from
9228         tests/test-sethostname.c.
9229         * tests/test-sethostname2.c: New file, extracted from
9230         tests/test-sethostname.c.
9231         * tests/test-sethostname.c: Remove file.
9232         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9233         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9234         (Depends-on): Add gethostname.
9235         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9236         Link the latter with $(GETHOSTNAME_LIB).
9237
9238         sethostname tests: Fix compilation error on mingw.
9239         * tests/test-sethostname.c: Don't include <sys/types.h>.
9240         (geteuid): Use a dummy value without uid_t.
9241         * modules/sethostname-tests (Depends-on): Remove sys_types.
9242
9243         sethostname tests: Avoid a gcc warning.
9244         * tests/test-sethostname.c (main): Remove an unused variable.
9245
9246         Tweak last commit.
9247         * modules/sethostname-tests (Files): Sort by decreasing importance.
9248         (configure.ac): Check for geteuid.
9249         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9250         the test when there's nothing to test. Drop an unnecessary cast.
9251         Improve an error message. Verify that the final sethostname() call
9252         succeeds.
9253
9254 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9255
9256         Add a test suite for the sethostname module.
9257         * modules/sethostname-tests: New file.  A test program
9258         for the sethostname module.
9259         * tests/test-sethostname.c: Likewise.
9260
9261 2011-12-03  Bruno Haible  <bruno@clisp.org>
9262
9263         Tweak last commit.
9264         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9265         Fix preprocessor directives indentation. Fix typos.
9266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9267         * modules/unistd (Makefile): Likewise.
9268
9269 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9270
9271         Integrate the sethostname module into unistd.
9272         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9273         into the unistd.h header.
9274         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9275         preprocessor directives.
9276         * modules/unistd: Setup the Makefile substitutions of the
9277         SETHOSTNAME preprocessor directives.
9278
9279 2011-12-03  Bruno Haible  <bruno@clisp.org>
9280
9281         Tweak last commit.
9282         * lib/sethostname.c: Don't include <string.h>.
9283         (sethostname): No need to copy the argument string to the stack. Don't
9284         call clearerr. Preserve errno when fprintf failed.
9285         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9286         Don't invoke AC_REPLACE_FUNCS.
9287         * modules/sethostname (Link): Remove empty section.
9288         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9289         failure problem.
9290
9291 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9292
9293         New module 'sethostname'.
9294         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9295         for systems that lack it.
9296         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9297         sethostname declaration and function.
9298         * modules/sethostname: New file.  Define the sethostname module.
9299
9300 2011-12-03  Bruno Haible  <bruno@clisp.org>
9301
9302         Tweak last commit.
9303         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9304
9305 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9306
9307         Split the HOST_NAME_MAX detection into a separate m4 macro.
9308         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9309         macro so it can be used by the pending sethostname module.
9310
9311 2011-12-03  Bruno Haible  <bruno@clisp.org>
9312
9313         Fix module descriptions syntax.
9314         * modules/argv-iter (License): Fix syntax.
9315         * modules/di-set (License): Likewise.
9316         * modules/ino-map (License): Likewise.
9317         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9318
9319 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9320
9321         stdalign: port to Clang 3.0
9322         Problem reported by Simon Josefsson in
9323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9324         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9325         which has <stdalign.h> but which does not define alignof.
9326         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9327
9328 2011-12-01  Eric Blake  <eblake@redhat.com>
9329
9330         mktempd: silence dd usage
9331         * build-aux/mktempd (rand_bytes): Silence dd.
9332
9333 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9334
9335         manywarnings: Don't mention gcc version in docstring.
9336         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9337         Jim Meyering <meyering@redhat.com>.
9338
9339 2011-11-30  Jim Meyering  <meyering@redhat.com>
9340
9341         hash: mark a few floating point constants with "f" suffix
9342         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9343         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9344         floating point constants with "f", since they're destined to be
9345         saved/used as "float"s.
9346
9347 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9348
9349         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9350         * tests/test-float.c (test_long_double): Correct and re-enable the
9351         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9352
9353 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9354
9355         Avoid subtracting two pointers that don't point into the same block.
9356         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9357         only pointers into the same memory block are subtracted. We cannot
9358         assume that sizeof (ptrdiff_t) == sizeof (void *).
9359
9360 2011-11-29  Eric Blake  <eblake@redhat.com>
9361
9362         maint.mk: add syntax check for use of compare from init.sh
9363         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9364         moved here from coreutils.
9365
9366         manywarnings: drop -Wunsuffixed-float-constants
9367         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9368         '1.0D', which is the only way to silence this warning for 'double'.
9369
9370 2011-11-29  Jim Meyering  <meyering@redhat.com>
9371
9372         hash: mark compute_bucket_size with the pure attribute
9373         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9374
9375         quotearg, propername: correct pragma guard expression
9376         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9377         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9378
9379 2011-11-28  Jim Meyering  <meyering@redhat.com>
9380
9381         propername: do not mark proper_name with the const attribute
9382         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9383         since it examines data pointed to by its parameter.
9384         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9385         the suggestion from -Wsuggest-attribute=const.
9386
9387         propername: mark one more function as const
9388         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9389
9390 2011-11-27  Jim Meyering  <meyering@redhat.com>
9391
9392         mark functions with const and pure attributes
9393
9394         Mark functions per suggestions from gcc-4.6 when using these options:
9395         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9396         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9397         Follow these guidelines: when possible, apply the attribute to
9398         an extern declaration, not to its definition.  Apply it to the
9399         definition only when the definition is static.
9400         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9401         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9402         * lib/base64.h (isbase64): Likewise.
9403         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9404         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9405         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9406         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9407         (c_tolower, c_toupper): Likewise.
9408         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9409         * lib/chdir-long.c (find_non_slash): Likewise.
9410         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9411         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9412         * lib/file-type.h (file_type): Likewise.
9413         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9414         * lib/filevercmp.c (verrevcmp): Likewise.
9415         * lib/freadahead.h (freadahead): Likewise.
9416         * lib/fts.c (fts_maxarglen): Likewise.
9417         * lib/hash-pjw.h (hash_pjw): Likewise.
9418         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9419         * lib/hash.c (is_prime, next_prime): Likewise.
9420         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9421         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9422         (hash_table_ok, hash_get_first, hash_string): Likewise.
9423         (compute_bucket_size): Likewise.
9424         * lib/i-ring.h (i_ring_empty): Likewise.
9425         * lib/isnan.c (isnanl): Likewise.
9426         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9427         * lib/memcasecmp.h (memcasecmp): Likewise.
9428         * lib/memchr2.h (memchr2): Likewise.
9429         * lib/memcmp2.h (memcmp2): Likewise.
9430         * lib/parse-datetime.y (lookup_zone): Likewise.
9431         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9432         [!WINDOWS_SOCKETS]: Likewise.
9433         * lib/strnlen1.h (strnlen1): Likewise.
9434         * lib/uniwidth.in.h (uc_width): Likewise.
9435         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9436         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9437         (quoting_options_from_style): Add a comment.
9438         * lib/propername.h (proper_name): Add a comment.
9439
9440 2011-11-27  Bruno Haible  <bruno@clisp.org>
9441
9442         Remove unused macros from !_LIBC code in glibc-borrowed files.
9443         * lib/fnmatch.c (STRCOLL): Remove macro.
9444         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9445         * lib/glob.c (__stat, __readdir64): Remove macros.
9446         * lib/tempname.c (__open64, __xstat64): Remove macros.
9447         Suggested by Paul Eggert.
9448
9449 2011-11-27  Bruno Haible  <bruno@clisp.org>
9450
9451         getcwd: Fix link error on MSVC 9.
9452         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9453
9454 2011-11-27  Bruno Haible  <bruno@clisp.org>
9455
9456         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9457         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9458         HAVE_OPENDIR is 0.
9459         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9460         HAVE_CLOSEDIR is 0.
9461         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9462         is 0.
9463         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9464
9465 2011-11-27  Bruno Haible  <bruno@clisp.org>
9466
9467         getcwd: Fix bug from 2011-08-17.
9468         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9469         platforms that need it.
9470         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9471         code of 4 to be a failure, not a success. This ensures that
9472         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9473
9474 2011-11-27  Bruno Haible  <bruno@clisp.org>
9475
9476         binary-io tests: Avoid test failure on mingw when libtool is used.
9477         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9478         Don't verify the size of t-bin-out1.tmp here.
9479         * tests/test-binary-io.sh: Verify it here.
9480         Reported by Simon Josefsson.
9481
9482 2011-11-26  Bruno Haible  <bruno@clisp.org>
9483
9484         Fix conflict between two instantiations of module 'unistd'.
9485         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9486         ${include_guard_prefix} also in the autoconf snippet.
9487         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9489         GNULIB_UNISTD_H_GETOPT.
9490         * modules/getopt-posix (configure.ac): Set the
9491         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9492         * modules/getopt-gnu (configure.ac): Likewise.
9493         * modules/unistd (Makefile.am): Change the substitution value of
9494         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9495         Reported by Simon Josefsson.
9496
9497 2011-11-25  Bruno Haible  <bruno@clisp.org>
9498
9499         pagealign_alloc: Doc and comments.
9500         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9501         module.
9502         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9503
9504 2011-11-25  Jim Meyering  <meyering@redhat.com>
9505
9506         test-update-copyright.sh: avoid false-positive failure
9507         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9508         around false positive failure on Cygwin/Windows.  The latter was
9509         matching erroneously-created files with names like
9510         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9511
9512 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9513
9514         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9515         * m4/valgrind-tests.m4: Check that the parameters that will be
9516         used works, not just a subset of them.  Reported by Bruno Haible
9517         <bruno@clisp.org>.
9518
9519 2011-11-24  Jim Meyering  <meyering@redhat.com>
9520
9521         test-stdalign.c: comment out long double tests
9522         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9523         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9524         error: '_Alignas' specifiers cannot reduce alignment of \
9525         'static_longdouble_alignas'.
9526
9527 2011-11-22  Jim Meyering  <meyering@redhat.com>
9528
9529         init.sh: make "compare /dev/null FILE" output more readable
9530         * tests/init.sh (compare_): Document the preferred order of arguments.
9531         (emit_diff_u_header_): New function.
9532         (compare_dev_null_): Emit a simulated diff, rather than just the
9533         contents of the unexpected file.  Suggestion from Bruno Haible.
9534
9535 2011-11-21  Jim Meyering  <meyering@redhat.com>
9536             Eric Blake  <eblake@redhat.com>
9537
9538         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9539         * tests/init.sh: Make our compare function slightly more portable.
9540         Reported by Bruno Haible in
9541         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9542
9543 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9544
9545         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9546         before using it, in code that ends up in config.h.
9547
9548 2011-11-20  Bruno Haible  <bruno@clisp.org>
9549
9550         getcwd: Work around getcwd bug on AIX 5..7.
9551         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9552         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9553         Use a different value for gl_cv_func_getcwd_path_max. Move the
9554         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9555         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9556         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9557         Define HAVE_MINIMALLY_WORKING_GETCWD.
9558         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9559         where it is not even minimally working, that is, on AIX.
9560         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9561         m4/getcwd-path-max.m4.
9562         (main): Update exit code computation.
9563         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9564         getcwd does not handle long file names.
9565
9566 2011-11-20  Bruno Haible  <bruno@clisp.org>
9567
9568         getcwd: Fix bug from 2009-09-10.
9569         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9570         like "no".
9571
9572 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9573
9574         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9575
9576 2011-11-20  Bruno Haible  <bruno@clisp.org>
9577
9578         fma tests: Avoid shadowing local variables.
9579         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9580         expected.
9581
9582 2011-11-20  Bruno Haible  <bruno@clisp.org>
9583
9584         copysignf tests: Fix.
9585         * tests/test-copysignf.c: Fix signature check.
9586
9587 2011-11-20  Bruno Haible  <bruno@clisp.org>
9588
9589         fma: Remove unused code.
9590         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9591         unused macros.
9592
9593 2011-11-20  Bruno Haible  <bruno@clisp.org>
9594
9595         sethostname: Fix doc about AIX.
9596         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9597         sethostname; it has it.
9598
9599         sethostname: Mention more portability problems.
9600         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9601         problem.
9602         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9603
9604 2011-11-19  Bruno Haible  <bruno@clisp.org>
9605
9606         Depend on module fcntl-h when AT_FDCWD is used.
9607         * modules/utimens (Depends-on): Add fcntl-h.
9608         * modules/areadlinkat (Depends-on): Likewise.
9609         * modules/areadlinkat-with-size (Depends-on): Likewise.
9610         * modules/faccessat (Depends-on): Likewise.
9611         * modules/fchmodat (Depends-on): Likewise.
9612         * modules/fchownat (Depends-on): Likewise.
9613         * modules/getcwd (Depends-on): Likewise.
9614         * modules/mkdirat (Depends-on): Likewise.
9615         * modules/mkfifoat (Depends-on): Likewise.
9616         * modules/readlinkat (Depends-on): Likewise.
9617         * modules/symlinkat (Depends-on): Likewise.
9618         * modules/dup2-tests (Depends-on): Likewise.
9619         * modules/fdutimensat-tests (Depends-on): Likewise.
9620         * modules/futimens-tests (Depends-on): Likewise.
9621
9622 2011-11-19  Bruno Haible  <bruno@clisp.org>
9623
9624         euidaccess: Update a comment.
9625         * lib/euidaccess.c: Update comment about platforms with faccessat.
9626
9627 2011-11-19  Bruno Haible  <bruno@clisp.org>
9628
9629         openat: Fix file list.
9630         * modules/openat (Files): Remove lib/at-func.c.
9631
9632 2011-11-19  Bruno Haible  <bruno@clisp.org>
9633
9634         fstatat: Simplify.
9635         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9636         gnulib should define rpl_fstatat, there is a
9637         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9638
9639 2011-11-19  Bruno Haible  <bruno@clisp.org>
9640
9641         Ensure 'inline' can be used in tests/test-utimens-common.h.
9642         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9643         * modules/futimens-tests (configure.ac): Likewise.
9644         * modules/utimens-tests (configure.ac): Likewise.
9645         * modules/utimensat-tests (configure.ac): Likewise.
9646
9647 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9648
9649         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9650         not hash_insert0.
9651         (hash_insert_if_absent): Doc fix.
9652
9653 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9654
9655         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9656
9657 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9658
9659         test-getcwd: disambiguate exit status
9660         * tests/test-getcwd.c (test_long_name): Return 0..7.
9661         (main): Exit with an unambiguous exit status.  The old
9662         code yielded a mysterious mixture of two failure codes.
9663
9664         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9665         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9666         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9667         rpl_fstatat or fstatat.  This should fix the other problem
9668         reported by Kai Habel in
9669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9670         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9672         and I reproduced it on a Solaris 8 host we still have in production.
9673
9674 2011-11-18  Jim Meyering  <meyering@redhat.com>
9675
9676         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9677         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9678         Add a sentence to the comment.
9679         (hash_insert0): New function that simply calls hash_insert_if_absent.
9680         * lib/hash.h (hash_insert_if_absent): Declare it.
9681         (hash_insert0): Add deprecation attribute.
9682         (_GL_ATTRIBUTE_DEPRECATED): Define.
9683         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9684         not hash_insert0.
9685         * NEWS: Mention it, even though it's not really an incompatible change.
9686
9687 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9688
9689         openat: avoid compilation failure due to lack of <errno.h> inclusion
9690         * lib/openat.c: Include <errno.h>.
9691
9692 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9693
9694         * modules/getcwd (Depends-on): Add fdopendir.
9695         This fixes one of the two problems reported by Kai Habel in
9696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9697
9698         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9699         stdalign problem reported by Ian Beckwith in
9700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9701         * modules/crypto/gc-arcfour (Depends-on):
9702         Depend conditionally on crypto/arcfour.
9703         * modules/crypto/gc-arctwo (Depends-on):
9704         Depend conditionally on crypto/arctwo.
9705         * modules/crypto/gc-des (Depends-on):
9706         Depend conditionally on crypto/des.
9707         * modules/crypto/gc-hmac-md5 (Depends-on):
9708         Depend conditionally on crypto/hmac-md5.
9709         * modules/crypto/gc-hmac-sha1 (Depends-on):
9710         Depend conditionally on crypto/hmac-sha1.
9711         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9712         * modules/crypto/gc-md4 (Depends-on):
9713         Depend conditionally on crypto/md4.
9714         * modules/crypto/gc-md5 (Depends-on):
9715         Depend conditionally on crypto/md5.
9716         * modules/crypto/gc-rijndael (Depends-on):
9717         Depend conditionally on crypto/rijndael.
9718         * modules/crypto/gc-sha1 (Depends-on):
9719         Depend conditionally on crypto/sha1.
9720         * modules/crypto/gc-arcfour:
9721         * modules/crypto/gc-arctwo:
9722         * modules/crypto/gc-des:
9723         * modules/crypto/gc-hmac-md5:
9724         * modules/crypto/gc-hmac-sha1:
9725         * modules/crypto/gc-md2:
9726         * modules/crypto/gc-md4:
9727         * modules/crypto/gc-md5:
9728         * modules/crypto/gc-rijndael:
9729         * modules/crypto/gc-sha1:
9730         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9731         now that the conditional dependencies do the work for us.
9732
9733 2011-11-17  Jim Meyering  <meyering@redhat.com>
9734
9735         tests: factor st_ctime-comparison out of two headers
9736         * tests/test-utimens-common.h (ctime_compare): Define.
9737         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9738         * tests/test-lutimens.h (test_lutimens): Likewise.
9739         * tests/test-utimens.h (test_utimens): Likewise.
9740
9741         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9742         Invoke the test program via an init.sh-using wrapper.
9743         * tests/test-getcwd.sh: New file.
9744         * modules/getcwd-tests (Files): Add it.
9745         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9746
9747 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9748
9749         gitlog-to-changelog: support multi-author commits.
9750         The FSF cares about keeping track of all authors of patches to its
9751         projects, but Git doesn't provide obvious support for multi-author
9752         changesets. Consensus seems to be forming around the use of extra
9753         Signed-off-by inspired lines in the log message formatted as
9754         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9755         multi-author commits between version control systems.
9756         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9757         log message and output in standard ChangeLog multi-author format.
9758         Reported by Peter Rosin <peda@lysator.liu.se>
9759
9760 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9761             Bruno Haible  <bruno@clisp.org>
9762
9763         Fix some modules' file list.
9764         * modules/fstatat (Files): Add m4/lstat.m4.
9765         * modules/openat (Files): Likewise.
9766         * modules/unlinkat (Files): Likewise.
9767
9768 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9769
9770         maint.mk: fix tight-scope.mk generation in VPATH builds.
9771         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9772         reference with $(srcdir) so that the file is found correctly even
9773         when running `make syntax-check' in a VPATH build.
9774
9775 2011-11-13  Bruno Haible  <bruno@clisp.org>
9776             Jim Meyering  <meyering@redhat.com>
9777
9778         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9779         * tests/init.sh (compare): Remove "No differences encountered" or
9780         synonymous output from the 'diff' program.
9781
9782 2011-11-13  Bruno Haible  <bruno@clisp.org>
9783
9784         Makefile: Tweak indentation.
9785         * Makefile: Use tab as first character in every line that contains rule
9786         commands.
9787
9788 2011-11-13  Bruno Haible  <bruno@clisp.org>
9789
9790         Syntax check for copyright statements.
9791         * check-copyright: New file.
9792         * Makefile (sc_check_copyright): New rule.
9793
9794 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9795
9796         * build-aux/git-version-gen: Add --prefix to configure the tag
9797         match string.
9798
9799 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9800
9801         * build-aux/git-version-gen: Add --help and --version.
9802
9803 2011-11-12  Jim Meyering  <meyering@redhat.com>
9804
9805         revamp the other test-exclude?.sh scripts to use init.sh, too
9806         * tests/test-exclude1.sh: Use init.sh.
9807         * tests/test-exclude2.sh: Likewise.
9808         * tests/test-exclude3.sh: Likewise.
9809         * tests/test-exclude4.sh: Likewise.
9810         * tests/test-exclude5.sh: Likewise.
9811         * tests/test-exclude6.sh: Likewise.
9812         * tests/test-exclude7.sh: Likewise.
9813         * tests/test-exclude8.sh: Likewise.
9814         * modules/exclude-tests (Files): List init.sh.
9815
9816         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9817         These shell scripts ignored failure of the binary test-exclude,
9818         so making the latter return 77 didn't cause them to be skipped.
9819         * tests/test-exclude5.sh: Exit with test-exclude's error status
9820         when that program fails.  Revamp to use init.sh.
9821         * tests/test-exclude2.sh: Likewise.
9822
9823         test-exclude: fix a typo
9824         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9825
9826 2011-11-11  Bruno Haible  <bruno@clisp.org>
9827
9828         obstack: Fix compilation error on MSVC 9.
9829         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9830
9831 2011-11-11  Jim Meyering  <meyering@redhat.com>
9832
9833         test-exclude: skip tests rather than failing on deficient systems
9834         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9835         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9836         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9837         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9838
9839 2011-11-10  Bruno Haible  <bruno@clisp.org>
9840
9841         ptsname_r test: Avoid gcc warning on glibc systems.
9842         * tests/test-ptsname_r.c (null_ptr): New function.
9843         (test_errors): Use it.
9844
9845 2011-11-10  Bruno Haible  <bruno@clisp.org>
9846
9847         ptsname_r: Avoid compilation error on OSF/1 5.1.
9848         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9850         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9851         function is not declared or incompatibly declared.
9852         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9853         * modules/ptsname_r (Depends-on, configure.ac): Update.
9854         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9855
9856 2011-11-10  Bruno Haible  <bruno@clisp.org>
9857
9858         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9859         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9860         When cross-compiling, guess yes on all platforms except AIX.
9861         Reported by Ludovic Courtès <ludo@gnu.org>.
9862
9863 2011-11-09  Bruno Haible  <bruno@clisp.org>
9864
9865         ptsname_r tests: Fix bugs.
9866         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9867         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9868
9869 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9870
9871         fstatat: work with cross-compilation
9872         Problem reported by Ludovic Courtès in
9873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9874         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9875         "cross-compiling" and assume the bug is present.  Replace
9876         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9877         an inverted sense, to be more conservative about our assumptions.
9878         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9879
9880 2011-11-09  Bruno Haible  <bruno@clisp.org>
9881
9882         Improve MODULES.html output.
9883         * modules/mkfifoat (Description): Use the word "function".
9884         * modules/readlinkat (Description): Likewise.
9885         * modules/symlinkat (Description): Likewise.
9886
9887 2011-11-09  Eric Blake  <eblake@redhat.com>
9888
9889         ptsname_r-tests: new test module
9890         * modules/ptsname_r-tests: New module.
9891         * tests/test-ptsname_r.c: New file.
9892
9893         ptsname_r: new module
9894         * modules/ptsname_r: New module.
9895         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9896         * lib/ptsname.c (__ptsname_r): Split...
9897         * lib/ptsname_r.c: ...into new file.
9898         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9899         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9900         * modules/stdlib (Makefile.am): Substitute witnesses.
9901         * lib/stdlib.in.h (ptsname_r): Declare it.
9902         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9903         * MODULES.html.sh (Misc): Likewise.
9904         * modules/ptsname (Depends-on): Alter dependency.
9905         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9906
9907 2011-11-09  Jim Meyering  <meyering@redhat.com>
9908
9909         announce-gen: be more concise when there's only one URL+tarball
9910         * build-aux/announce-gen (get_tool_versions): When you distribute
9911         only one type of tarball, combine the first two "Here are..."
9912         sections and make the key-checking grammar independent of
9913         how many tarballs there are.
9914
9915 2011-11-09  Eric Blake  <eblake@redhat.com>
9916
9917         openpty: provide a stub on mingw
9918         * lib/pty.in.h (includes): Provide forward declarations.
9919         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9920
9921         raise: fix mingw handling of SIGPIPE
9922         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9923
9924 2011-11-08  Bruno Haible  <bruno@clisp.org>
9925
9926         More conditional dependencies.
9927         * modules/faccessat (Depends-on): Add conditions.
9928         * modules/fchmodat (Depends-on): Likewise.
9929         * modules/fchownat (Depends-on): Likewise.
9930         * modules/fstatat (Depends-on): Likewise.
9931         * modules/mkfifoat (Depends-on): Likewise.
9932         * modules/readlinkat (Depends-on): Likewise.
9933         * modules/symlinkat (Depends-on): Likewise.
9934         * modules/unlinkat (Depends-on): Likewise.
9935         * modules/utimensat (Depends-on): Likewise.
9936         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9937         * modules/linkat (Depends-on): Refine the conditions.
9938         * modules/renameat (Depends-on): Likewise.
9939
9940 2011-11-08  Bruno Haible  <bruno@clisp.org>
9941
9942         faccessat: Move AC_LIBOBJ invocation to module description.
9943         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9944         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9945         invocation from here...
9946         * modules/faccessat (configure.ac): ... to here. Invoke
9947         gl_PREREQ_FACCESSAT.
9948
9949 2011-11-08  Bruno Haible  <bruno@clisp.org>
9950
9951         faccessat: Simplify autoconf macro.
9952         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9953         gl_FUNC_EUIDACCESS.
9954
9955 2011-11-08  Bruno Haible  <bruno@clisp.org>
9956
9957         renameat: Fix dependencies.
9958         * modules/renameat (Depends-on): Add stdbool.
9959
9960 2011-11-08  Bruno Haible  <bruno@clisp.org>
9961
9962         mkfifoat: Fix module description.
9963         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9964         not gl_UNISTD_MODULE_INDICATOR.
9965
9966 2011-11-08  Bruno Haible  <bruno@clisp.org>
9967
9968         fstatat: Remove unused dependency.
9969         * modules/fstatat (Depends-on): Remove fstat.
9970
9971 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9972
9973         GNUmakefile: behave when Makefile is missing.
9974         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9975
9976 2011-11-08  Bruno Haible  <bruno@clisp.org>
9977
9978         openat: Conditionalize dependencies.
9979         * lib/openat.c: Reduce the scope of some #includes.
9980         * modules/openat (Depends-on): Add conditions.
9981
9982 2011-11-07  Jim Meyering  <meyering@redhat.com>
9983
9984         maint.mk: extract GPG key ID without using a temporary file
9985         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9986         without using a temporary file.  Based on a suggestion from Werner Koch
9987         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9988
9989 2011-11-07  Eric Blake  <eblake@redhat.com>
9990
9991         grantpt: fix typo
9992         * lib/stdlib.in.h (grantpt): Check correct function.
9993
9994         maint.mk: silence new syntax check
9995         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9996
9997 2011-11-06  Bruno Haible  <bruno@clisp.org>
9998
9999         Doc about floating-point and math API.
10000         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10001         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10002
10003 2011-11-06  Bruno Haible  <bruno@clisp.org>
10004
10005         stdalign tests: Skip the test when compiled by Sun C.
10006         * tests/test-stdalign.c (main): Skip the test on Sun C.
10007
10008 2011-11-06  Bruno Haible  <bruno@clisp.org>
10009
10010         ansi-c++-opt: Complete the 2011-06-05 change.
10011         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10012         does not support namespaces, set the variable to "no", not to ":".
10013
10014 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10015
10016         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10017
10018 2011-11-06  Bruno Haible  <bruno@clisp.org>
10019
10020         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10021         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10022         (minus_zerol) [HP-UX]: New macro.
10023         (unary_minus) [HP-UX]: New function.
10024         (copysignl) [HP-UX]: Use unary_minus function.
10025
10026 2011-11-06  Bruno Haible  <bruno@clisp.org>
10027
10028         ldexp, ldexpf, ldexpl: Enhance tests.
10029         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10030         and tests/test-ldexpl.c.
10031         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10032         LDEXP, MIN_EXP, MAX_EXP): New macros.
10033         Include test-ldexp.h.
10034         (main): Just call test_function.
10035         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10036         infinity.h, nan.h.
10037         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10038         MAX_EXP): New macros.
10039         Include test-ldexp.h.
10040         (x, y): Remove variables.
10041         (main): Just call test_function.
10042         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10043         infinity.h, nan.h.
10044         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10045         MAX_EXP): New macros.
10046         Include test-ldexp.h.
10047         (x, y): Remove variables.
10048         (main): Just call test_function.
10049         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10050         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10051         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10052         (Depends-on): Add isnand-nolibm, signbit, float.
10053         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10054         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10055         (Depends-on): Add isnanf-nolibm, signbit, float.
10056
10057 2011-11-06  Bruno Haible  <bruno@clisp.org>
10058
10059         math tests: Cosmetics.
10060         * tests/test-math-c++.cc: Reorder declarations.
10061
10062 2011-11-05  Bruno Haible  <bruno@clisp.org>
10063
10064         fma*: Simplify test.
10065         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10066         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10067
10068         Tests for module 'fmal'.
10069         * modules/fmal-tests: New file.
10070         * tests/test-fmal1.c: New file.
10071         * tests/test-fmal2.c: New file.
10072
10073         New module 'fmal'.
10074         * lib/math.in.h (fmal): New declaration.
10075         * lib/fmal.c: New file.
10076         * m4/fmal.m4: New file.
10077         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10079         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10080         REPLACE_FMAL.
10081         * modules/fmal: New file.
10082         * doc/posix-functions/fmal.texi: Mention the new module and the various
10083         bugs.
10084
10085         Tests for module 'fmaf'.
10086         * modules/fmaf-tests: New file.
10087         * tests/test-fmaf1.c: New file.
10088         * tests/test-fmaf2.c: New file.
10089
10090         New module 'fmaf'.
10091         * lib/math.in.h (fmaf): New declaration.
10092         * lib/fmaf.c: New file.
10093         * m4/fmaf.m4: New file.
10094         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10096         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10097         REPLACE_FMAF.
10098         * modules/fmaf: New file.
10099         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10100         bugs.
10101
10102         Tests for module 'fma'.
10103         * modules/fma-tests: New file.
10104         * tests/test-fma1.c: New file.
10105         * tests/test-fma1.h: New file.
10106         * tests/test-fma2.c: New file.
10107         * tests/test-fma2.h: New file.
10108
10109         New module 'fma'.
10110         * lib/math.in.h (fma): New declaration.
10111         * lib/fma.c: New file.
10112         * m4/fma.m4: New file.
10113         * m4/fegetround.m4: New file.
10114         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10116         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10117         REPLACE_FMA.
10118         * modules/fma: New file.
10119         * doc/posix-functions/fma.texi: Mention the new module and the various
10120         bugs.
10121
10122         Extend gl_MATHFUNC.
10123         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10124         Support 'void' as argument type.
10125         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10126
10127 2011-11-05  Jim Meyering  <meyering@redhat.com>
10128
10129         maint.mk: also prohibit inclusion of dirent.h without use
10130         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10131
10132 2011-11-05  Bruno Haible  <bruno@clisp.org>
10133
10134         ldexpl tests: Avoid test failure on MSVC 9.
10135         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10136         value. Needed in order to enforce the conversion from a value greater
10137         than LDBL_MAX to Infinity.
10138
10139 2011-11-05  Bruno Haible  <bruno@clisp.org>
10140
10141         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10142         * modules/at-internal: New file, extracted from modules/openat.
10143         * modules/openat-h: New file.
10144         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10145         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10146         * modules/openat (Description): Add reference to POSIX function.
10147         (Files): Remove lib/openat.h, lib/openat-proc.c.
10148         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10149         intprops, unistd.
10150         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10151         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10152         gl_FCNTL_MODULE_INDICATOR.
10153         (Include): Remove unistd.h, openat.h.
10154         * modules/areadlinkat (Files): Add lib/at-func.c.
10155         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10156         openat-die, openat-h, save-cwd.
10157         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10158         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10159         openat-die, openat-h, save-cwd, unistd.
10160         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10161         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10162         openat-h, save-cwd. Remove fcntl-h, openat.
10163         * modules/fchmodat (Files): Remove lib/openat.h.
10164         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10165         openat, stdbool, unistd.
10166         * modules/fchownat (Files): Remove lib/openat.h.
10167         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10168         openat, stdbool, sys_stat.
10169         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10170         lib/openat-proc.c.
10171         (Depends-on): Add at-internal.
10172         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10173         * modules/fstatat (Files): Remove lib/openat.h.
10174         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10175         stdbool, unistd.
10176         * modules/fts (Depends-on): Add openat-h.
10177         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10178         openat.
10179         * modules/mkdirat (Files): Remove lib/openat.h.
10180         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10181         openat, stdbool, sys_stat.
10182         * modules/mkfifoat (Files): Add lib/at-func.c.
10183         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10184         openat-h, save-cwd. Remove fcntl-h, openat.
10185         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10186         * modules/readlinkat (Files): Add lib/at-func.c.
10187         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10188         openat-h, save-cwd. Remove fcntl-h, openat.
10189         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10190         openat.
10191         * modules/selinux-at (Files): Add lib/at-func.c.
10192         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10193         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10194         * modules/symlinkat (Files): Add lib/at-func.c.
10195         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10196         openat-h, save-cwd. Remove fcntl-h, openat.
10197         * modules/unlinkat (Files): Remove lib/openat.h.
10198         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10199         stdbool.
10200         * modules/utimensat (Files): Add lib/at-func.c.
10201         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10202         openat-die, openat-h, save-cwd.
10203         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10204         * modules/fdutimensat-tests (Depends-on): Add openat.
10205         * modules/fstatat-tests (Depends-on): Add openat-h.
10206         * modules/readlinkat-tests (Depends-on): Add openat.
10207         * modules/symlinkat-tests (Depends-on): Add openat.
10208
10209 2011-11-05  Bruno Haible  <bruno@clisp.org>
10210
10211         openat: Include <stdbool.h>.
10212         * lib/openat.c: Include <stdbool.h>.
10213
10214 2011-11-04  Bruno Haible  <bruno@clisp.org>
10215
10216         fchownat, renameat, unlinkat: Fix dependencies.
10217         * modules/fchownat (Depends-on): Add fstatat.
10218         * modules/renameat (Depends-on): Likewise.
10219         * modules/unlinkat (Depends-on): Likewise.
10220
10221 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10222
10223         openat: remove direct dependency on dirent
10224         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10225         and hasn't been needed ever since fdopendir was split into its own
10226         module on 2009-08-31.
10227         * modules/openat (Depends-on): Remove dirent.
10228
10229 2011-11-04  Bruno Haible  <bruno@clisp.org>
10230
10231         renameat: Optimize code size.
10232         * modules/renameat (configure.ac): Don't compile at-func2.c if
10233         REPLACE_RENAMEAT is 1.
10234
10235 2011-11-04  Bruno Haible  <bruno@clisp.org>
10236
10237         openat tests: Fix file list.
10238         * modules/openat-tests (Files): Add tests/test-open.h.
10239
10240 2011-11-04  Bruno Haible  <bruno@clisp.org>
10241
10242         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10243         * modules/fchmodat (Depends-on): Add openat-die.
10244         * modules/fchownat (Depends-on): Likewise.
10245         * modules/linkat (Depends-on): Likewise.
10246         * modules/renameat (Depends-on): Likewise.
10247         * modules/openat (Depends-on): Add dirent.
10248
10249 2011-11-04  Jim Meyering  <meyering@redhat.com>
10250
10251         at-func*.c: fix comments
10252         * lib/at-func2.c: Correct/improve first-line comment.
10253         * lib/at-func.c: Correct grammar in first-line comment.
10254
10255 2011-11-04  Bruno Haible  <bruno@clisp.org>
10256
10257         New module 'mkdirat', split off from module 'openat'.
10258         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10259         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10260         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10261         * modules/mkdirat: New file, extracted from modules/openat.
10262         * modules/openat (Files): Remove lib/mkdirat.c.
10263         (Depends-on): Remove mkdir.
10264         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10265         (Include): Remove <sys/stat.h>.
10266         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10267         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10268         tests/test-mkdir.h.
10269         (Depends-on): Remove ignore-value.
10270         (Makefile.am): Remove rules for test-mkdirat.
10271         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10272         of module 'openat'.
10273         * NEWS: Mention the change.
10274
10275 2011-11-04  Bruno Haible  <bruno@clisp.org>
10276
10277         closedir: Avoid warning on mingw.
10278         * lib/closedir.c: Include <unistd.h>.
10279
10280 2011-11-04  Bruno Haible  <bruno@clisp.org>
10281
10282         New module 'fstatat', split off from module 'openat'.
10283         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10284         defined.
10285         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10286         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10287         gl_FUNC_FSTATAT.
10288         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10289         * modules/fstatat: New file, extracted from modules/openat.
10290         * modules/openat (Files): Remove lib/fstatat.c.
10291         (Depends-on): Remove lstat.
10292         (configure.ac): Remove AC_LIBOBJ of fstatat.
10293         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10294         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10295         tests/test-lstat.h, tests/test-stat.h.
10296         (Depends-on): Remove getcwd-lgpl.
10297         (Makefile.am): Remove rules for test-fstatat.
10298         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10299         of module 'openat'.
10300         * NEWS: Mention the change.
10301         * modules/getcwd (Depends-on): Add fstatat.
10302         * modules/linkat (Depends-on): Likewise.
10303         * modules/mkfifoat-tests (Depends-on): Likewise.
10304         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10305
10306 2011-11-03  Bruno Haible  <bruno@clisp.org>
10307
10308         New module 'unlinkat', split off from module 'openat'.
10309         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10310         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10311         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10312         * modules/unlinkat: New file, extracted from modules/openat. Correct
10313         the dependency conditions.
10314         * modules/openat (Files): Remove lib/unlinkat.c.
10315         (Depends-on): Remove rmdir, unlink.
10316         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10317         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10318         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10319         tests/test-rmdir.h, tests/test-unlink.h.
10320         (Depends-on): Remove unlinkdir.
10321         (Makefile.am): Remove rules for test-unlinkat.
10322         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10323         of module 'openat'.
10324         * NEWS: Mention the change.
10325         * modules/linkat-tests (Depends-on): Add unlinkat.
10326         * modules/mkfifoat-tests (Depends-on): Likewise.
10327         * modules/readlinkat-tests (Depends-on): Likewise.
10328
10329 2011-11-02  Bruno Haible  <bruno@clisp.org>
10330
10331         New module 'fchmodat', split off from module 'openat'.
10332         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10333         defined.
10334         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10335         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10336         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10337         * modules/fchmodat: New file, extracted from modules/openat.
10338         * modules/openat (Files): Remove lib/fchmodat.c.
10339         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10340         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10341         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10342         (Makefile.am): Remove rules for test-fchmodat.
10343         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10344         of module 'openat'.
10345         * NEWS: Mention the change.
10346
10347 2011-11-02  Jim Meyering  <meyering@redhat.com>
10348
10349         putenv: indent #definition of "environ" to placate cppi
10350         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10351
10352         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10353         Git logs are often treated as immutable, because editing them
10354         changes the SHA1 checksums of all descendants.  Thus, errors in
10355         git logs tend to stay there forever.  However, when we generate
10356         a ChangeLog file -- typically for distribution -- from that git log,
10357         we can actually make corrections in the generated file.  The key
10358         lies in recording in machine-readable/applicable form the desired
10359         corrections.  See --help for description and an example.
10360         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10361         (usage): Describe it; alphabetize option descriptions.
10362         (main): Honor the new option, carefully.
10363
10364 2011-11-01  Jim Meyering  <meyering@redhat.com>
10365
10366         gitlog-to-changelog: avoid an infloop
10367         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10368         that ends up being empty.
10369
10370 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10371
10372         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10373         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10374         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10375         contains (possibly-quoted) backslashes.  This should avoid
10376         all-too-common shell bugs if COMPLICATED contains backslashes in
10377         the "wrong" places.  Reported by David Evans in
10378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10379         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10380         because we want ASCII ranges.  Is there some reason we don't use
10381         the C locale everywhere in this script?
10382         (func_module, top level): Avoid unwanted pathname expansion when
10383         $repo_url_prefix or $repo_url_suffix_repl contain shell
10384         metacharacters like '?' and '*'.
10385
10386 2011-11-01  Bruno Haible  <bruno@clisp.org>
10387
10388         fchownat: Improve description.
10389         * modules/fchownat (Description): Add link to function.
10390
10391 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10392
10393         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10394         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10396         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10397
10398 2011-11-01  Bruno Haible  <bruno@clisp.org>
10399
10400         alignof: Avoid collision with stdalign module.
10401         * lib/alignof.h (alignof): Remove macro.
10402         * NEWS: Mention the change.
10403         Reported by Paul Eggert.
10404
10405 2011-11-01  Bruno Haible  <bruno@clisp.org>
10406
10407         New module 'fchownat', split off from module 'openat'.
10408         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10409         defined.
10410         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10411         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10412         invoke gl_FUNC_FCHOWNAT.
10413         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10414         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10415         * modules/fchownat: New file, extracted from modules/openat.
10416         * modules/openat (Files): Remove lib/fchownat.c.
10417         (Depends-on): Remove lchown.
10418         (configure.ac): Remove AC_LIBOBJ of fchownat.
10419         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10420         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10421         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10422         (Depends-on): Remove mgetgroups, usleep, stat-time.
10423         (configure.ac): Remove test for getegid.
10424         (Makefile.am): Remove rules for test-fchownat.
10425         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10426         of module 'openat'.
10427         * NEWS: Mention the change.
10428
10429 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10430
10431         stdalign: port better to MSVC and to Sun C 5.11
10432         This fixes some of the problems reported by Bruno Haible in
10433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10434         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10435         shortcomings of MSVC and of Sun C 5.11.
10436         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10437         around __declspec arg.
10438         * modules/stdalign-tests (Files): Add tests/macros.h.
10439         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10440         Include macros.h, for ASSERT.
10441         (DECLARE_ALIGNED): Remove.
10442         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10443         to catch bug), and to 1 if not (simplifies the rest of the code).
10444         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10445         (CHECK_AUTO): Remove.
10446         (CHECK_ALIGNED): Check only the alignment of the static vars,
10447         since auto var alignment isn't supported by Sun C 5.11.
10448         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10449         ASSERT failures are easier to diagnose.
10450
10451 2011-10-31  Bruno Haible  <bruno@clisp.org>
10452
10453         doc about some IRIX 5.3 problems.
10454         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10455         on IRIX 5.3.
10456         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10457         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10458         5.3.
10459         * doc/posix-functions/grantpt.texi: Likewise.
10460         * doc/posix-functions/unlockpt.texi: Likewise.
10461         * doc/posix-functions/lgamma.texi: Likewise.
10462         * doc/posix-functions/nextafter.texi: Likewise.
10463         * doc/posix-functions/remainder.texi: Likewise.
10464         * doc/posix-functions/select.texi: Mention misplaced declaration on
10465         IRIX 5.3.
10466         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10467
10468 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10469
10470         gitlog-to-changelog: fix git-log invocation.
10471         git-log mishandles date strings before 1970-01-01 UTC, and there is
10472         no use to specify --since=1970-01-01 by default anyway.
10473         * build-aux/gitlog-to-changelog: By default, when no --since option
10474         was given, do not specify explicit --since option to git-log.
10475
10476 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10477
10478         gitlog-to-changelog: new option --append-dot.
10479         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10480         first non-blank line of each commit message terminated with a dot.
10481
10482 2011-10-30  Bruno Haible  <bruno@clisp.org>
10483
10484         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10485         * lib/ffsl.h: Include <config.h>.
10486         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10487
10488 2011-10-30  Jim Meyering  <meyering@redhat.com>
10489
10490         GNUmakefile: reenable "make syntax-check" for most projects
10491         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10492         build-aux variable", "syntax-check" would do nothing but succeed with
10493         the "No version control files detected..." diagnostic (unless you
10494         happened to override _build-aux via cfg.mk).
10495         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10496         to precede inclusion of maint.mk.  Otherwise, these variables would
10497         be used undefined in any project that does not override the default.
10498
10499 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10500
10501         gitlog-to-changelog: treat a message with only blank lines as empty.
10502         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10503         trailing blank lines before the code that issues a warning about an
10504         empty commit message.
10505
10506 2011-10-30  Jim Meyering  <meyering@redhat.com>
10507
10508         test-parse-datetime.c: avoid new DST-related false positive test failure
10509         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10510         based on the time/date we'll convert, not the current time.
10511         Otherwise, the moment we cross a DST boundary like today's in
10512         Europe, (CEST to CET), that offset ends up being one hour off.
10513
10514 2011-10-27  Bruno Haible  <bruno@clisp.org>
10515
10516         fstat: Tweak documentation.
10517         * modules/fstat (Description): More precise description.
10518
10519 2011-10-27  Bruno Haible  <bruno@clisp.org>
10520
10521         Update documentation regarding 'largefile' module.
10522         * doc/posix-functions/fstat.texi: Tweak wording.
10523         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10524         problems with huge directories and/or small ino_t types.
10525         * doc/posix-functions/readdir.texi: Likewise.
10526         * doc/posix-functions/rewinddir.texi: Likewise.
10527
10528 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10529
10530         maint.mk: don't maintain a second build-aux variable.
10531         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10532         depends on GNUmakefile, which already maintains a cfg.mk
10533         overridable $(_build-aux) for projects with a non-standard
10534         build-aux directory location, although without the $(srcdir)
10535         prefix.  Use that variable consistently instead of introducing a
10536         second one.  Adjust all call sites.
10537
10538 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10539
10540         Add stdalign module and use it in other modules.
10541         This is based on a previous proposal by Bruno Haible
10542         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10543
10544         stdalign: new module
10545         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10546         * modules/stdalign: New files.
10547         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10548         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10549
10550         stdalign-tests: new module
10551         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10552
10553         argp: use stdalign
10554         * lib/argp-parse.c: Include <stdalign.h>.
10555         (alignof): Remove.
10556         * modules/argp (Depends-on): Add stdalign.
10557
10558         crypto libraries: use stdalign
10559         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10560         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10561         Do not include <stdlib.h> twice, in md4.c.
10562         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10563         because we are accessing a pointer's bit-pattern, not a size.
10564         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10565         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10566         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10567         * modules/crypto/sha512: Likewise.
10568
10569         sys_socket: use stdalign, not alignof
10570         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10571         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10572
10573 2011-10-27  Bruno Haible  <bruno@clisp.org>
10574
10575         raise test: Avoid a test failure on Linux/MIPS.
10576         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10577         because 99 is a valid signal on Linux/MIPS.
10578
10579 2011-10-27  Bruno Haible  <bruno@clisp.org>
10580
10581         nonblocking tests: Fix test failure on Linux/MIPS.
10582         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10583         Set to 270000.
10584
10585 2011-10-27  Bruno Haible  <bruno@clisp.org>
10586
10587         utimensat: Work around problem on Linux/hppa.
10588         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10589         values.
10590         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10591
10592 2011-10-25  Jim Meyering  <meyering@redhat.com>
10593
10594         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10595         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10596         after symbols like NULL, size_t, etc.
10597         Reported by Alfred M. Szmidt.
10598
10599         maint.mk: exempt ENODATA from a syntax-check rule
10600         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10601         from the sc_prohibit_always-defined_macros syntax-check rule.
10602         Add a comment.  See this for more details:
10603         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10604
10605 2011-10-23  Jim Meyering  <meyering@redhat.com>
10606
10607         fts: close parent dir FD before returning from post-traversal fts_read
10608         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10609         unlink A, even though an FD open on A remained.  This is suboptimal
10610         (holding a file descriptor open longer than needed), but otherwise not
10611         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10612         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10613         that represents a real problem: it causes the removal of A to fail
10614         with e.g., "rm: cannot remove `A': Device or resource busy"
10615
10616         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10617         directory file descriptors.  After completing the final, FTS_DP,
10618         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10619         cache, but then proceeded to add a new FD to it via the subsequent
10620         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10621         final file descriptor would be closed only via fts_close's call to
10622         fd_ring_clear.  Now, it is usually closed earlier, via the final
10623         FTS_DP-returning fts_read call.
10624         * lib/fts.c (restore_initial_cwd): New function, converted from
10625         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10626         Update callers.
10627         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10628         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10629
10630 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10631             Bruno Haible  <bruno@clisp.org>
10632             Jim Meyering  <jim@meyering.net>
10633
10634         readme-release: improve safety of release prep instructions.
10635         * README-release: Don't git pull all branches when only master
10636         is needed for the release process.
10637         Run make maintainer-clean before changing trees and merging.
10638         Don't try to run ./configure right after git pull in case files
10639         that influence the bootstrap process have changed, move the
10640         ./configure step to after running ./bootstrap.
10641         Don't bootstrap "one last time"... it's the first time!
10642
10643 2011-10-22  Bruno Haible  <bruno@clisp.org>
10644
10645         errno, strerror-override: Support for MSVC 10.
10646         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10647         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10648         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10649         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10650         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10651         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10652         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10653         Assign values compatible with MSVC 10.
10654         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10655         New macros.
10656         (GNULIB_defined_EWINSOCK): New macro.
10657         * lib/strerror-override.c (strerror_override): Update accordingly.
10658         * lib/strerror-override.h: Likewise.
10659         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10660         longer equal to the corresponding errno value.
10661         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10662
10663 2011-10-22  Bruno Haible  <bruno@clisp.org>
10664
10665         perror: Recognize when test program crashes.
10666         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10667         strerror, set gl_cv_func_perror_works to no.
10668         Reported by Daniel Richard G. <skunk@iskunk.org>.
10669
10670         perror: Fix indentation.
10671         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10672
10673 2011-10-22  Bruno Haible  <bruno@clisp.org>
10674
10675         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10676         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10677         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10678         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10679         functions, not as a macro.
10680         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10681         macros.
10682         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10683         absence of macro.
10684         Suggested by Eric Blake.
10685         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10686
10687 2011-10-21  Bruno Haible  <bruno@clisp.org>
10688
10689         relocatable-prog-wrapper: Don't leave object files behind.
10690         * build-aux/install-reloc: Re-synchronize list of .o files to be
10691         removed with list of compilation units.
10692
10693 2011-10-20  Bruno Haible  <bruno@clisp.org>
10694
10695         openpty, posix_openpt: Remove code duplication.
10696         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10697         * lib/openpty.c: Include <stdlib.h>.
10698         (openpty): Use posix_openpt on all platforms except IRIX.
10699         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10700
10701 2011-10-20  Bruno Haible  <bruno@clisp.org>
10702
10703         unlockpt: Detect invalid argument.
10704         * lib/unlockpt.c: Include <fcntl.h>.
10705         (unlockpt): Check whether fd is valid, using fcntl().
10706         * modules/unlockpt (Depends-on): Add fcntl-h.
10707
10708 2011-10-20  Bruno Haible  <bruno@clisp.org>
10709
10710         openpty: Avoid compilation error on AIX 6.1.
10711         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10712
10713 2011-10-20  Bruno Haible  <bruno@clisp.org>
10714
10715         posix_openpt: Support for OpenBSD.
10716         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10717         (posix_openpt) [OpenBSD]: New code.
10718         * lib/grantpt.c: Include <fcntl.h>.
10719         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10720         * modules/grantpt (Depends-on): Add fcntl-h.
10721
10722 2011-10-20  Bruno Haible  <bruno@clisp.org>
10723
10724         posix_openpt test: Coding style.
10725         * tests/test-posix_openpt.c: Use GNU coding style.
10726
10727 2011-10-20  Bruno Haible  <bruno@clisp.org>
10728
10729         grantpt: Support --avoid=pt_chown.
10730         * modules/grantpt (Files): Add lib/pty-private.h.
10731
10732 2011-10-20  Bruno Haible  <bruno@clisp.org>
10733
10734         posix_openpt: Fix autoconf macro.
10735         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10736         unneeded check for _getpty.
10737
10738 2011-10-20  Bruno Haible  <bruno@clisp.org>
10739
10740         openpty: Update comments.
10741         * lib/openpty.c: Add comments about Minix.
10742
10743 2011-10-19  Eric Blake  <eblake@redhat.com>
10744
10745         openpty: relax license
10746         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10747
10748         pt_chown: use configmake to simplify build
10749         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10750
10751         ptsname and others: relax license
10752         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10753         * modules/unlockpt (License): Likewise.
10754         * modules/pt_chown (License): Likewise.
10755         * modules/ptsname (License): Likewise.
10756         * modules/ttyname_r (License): Likewise.
10757
10758 2011-10-19  Jim Meyering  <meyering@redhat.com>
10759
10760         posix_openpt: remove spurious #endif
10761         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10762
10763 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10764
10765         maint.mk: Respect $(build_aux) in web-manual rule.
10766         * top/maint.mk (web-manual): Find gen-announce script in user's
10767         $(build_aux) directory instead of hard-coding 'build-aux'.
10768
10769 2011-10-19  Bruno Haible  <bruno@clisp.org>
10770
10771         posix_openpt: Fix compilation error.
10772         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10773         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10774         Mention the openpty module as an alternative.
10775
10776 2011-10-19  Bruno Haible  <bruno@clisp.org>
10777
10778         Support for old NeXTstep 3.3 frexp().
10779         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10780         execution time of the test to 5 seconds.
10781         Reported by Daniel Richard G. <skunk@iskunk.org>.
10782
10783 2011-10-19  Bruno Haible  <bruno@clisp.org>
10784
10785         Support for old NeXTstep 3.3 sed.
10786         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10787         part, use /.../, not \|...|. Escape periods in the header file name.
10788         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10789         Reported by Daniel Richard G. <skunk@iskunk.org>.
10790
10791 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10792
10793         Support for old NeXTstep 3.3 gcc.
10794         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10795         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10796         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10797         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10798         * lib/regex.h (_Restrict_arr_): Likewise.
10799         * lib/regex_internal.h (re_token_t): Likewise.
10800         * lib/regexec.c (check_node_accept_bytes): Likewise.
10801         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10802
10803 2011-10-18  Eric Blake  <eblake@redhat.com>
10804
10805         posix_openpt: new module
10806         * modules/posix_openpt: New module.
10807         * m4/posix_openpt.m4: New file.
10808         * lib/posix_openpt.c: Likewise.
10809         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10810         (gl_STDLIB_H_DEFAULTS): Set defaults.
10811         * modules/stdlib (Makefile.am): Substitute macros.
10812         * lib/stdlib.in.h (posix_openpt): Declare.
10813         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10814         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10815         * modules/posix_openpt-tests: New test module.
10816         * tests/test-posix_openpt.c: New test.
10817
10818 2011-10-15  Bruno Haible  <bruno@clisp.org>
10819
10820         xstrtoll: Fix compilation failure.
10821         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10822         from lib/strtol.c.
10823         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10824         some platforms.
10825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10826
10827 2011-10-15  Bruno Haible  <bruno@clisp.org>
10828
10829         vasnprintf: Optimize bit search operation.
10830         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10832         gl_DOUBLE_EXPONENT_LOCATION.
10833         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10834         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10835         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10836         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10837         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10838         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10839         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10840         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10841         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10842
10843 2011-10-15  Bruno Haible  <bruno@clisp.org>
10844
10845         vasnprintf: Fix comments.
10846         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10847
10848 2011-10-14  Bruno Haible  <bruno@clisp.org>
10849
10850         Tests for module 'integer_length_ll'.
10851         * modules/integer_length_ll-tests: New file.
10852         * tests/test-integer_length_ll.c: New file.
10853
10854         New module 'integer_length_ll'.
10855         * lib/integer_length_ll.c: New file.
10856         * modules/integer_length_ll: New file.
10857
10858 2011-10-14  Bruno Haible  <bruno@clisp.org>
10859
10860         Tests for module 'integer_length_l'.
10861         * modules/integer_length_l-tests: New file.
10862         * tests/test-integer_length_l.c: New file.
10863
10864         New module 'integer_length_l'.
10865         * lib/integer_length_l.c: New file.
10866         * modules/integer_length_l: New file.
10867
10868 2011-10-14  Bruno Haible  <bruno@clisp.org>
10869
10870         Tests for module 'integer_length'.
10871         * modules/integer_length-tests: New file.
10872         * tests/test-integer_length.c: New file.
10873
10874         New module 'integer_length'.
10875         * lib/integer_length.h: New file.
10876         * lib/integer_length.c: New file.
10877         * modules/integer_length: New file.
10878
10879 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10880
10881         popen: Fix dependency conditions.
10882         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10883
10884 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10885
10886         perror: Fix autoconf test.
10887         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10888         <stdlib.h> and <string.h>.
10889
10890 2011-10-14  Bruno Haible  <bruno@clisp.org>
10891
10892         ffsl: Optimize on 64-bit platforms.
10893         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10894         unrolling.
10895
10896 2011-10-13  Bruno Haible  <bruno@clisp.org>
10897
10898         ffsl: Optimize on 32-bit platforms.
10899         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10900         use ffs() without a loop.
10901
10902         ffsl, ffsll: Optimize for GCC.
10903         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10904         * lib/ffsl.c (GCC_BUILTIN): New macro.
10905         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10906
10907 2011-10-13  Bruno Haible  <bruno@clisp.org>
10908
10909         ffs, bcopy, memset: Support symbol renaming via config.h.
10910         * lib/ffs.c: Include <config.h>.
10911         * lib/bcopy.c: Likewise.
10912         * lib/memset.c: Likewise.
10913
10914 2011-10-10  Bruno Haible  <bruno@clisp.org>
10915
10916         atanl: Simplify for platforms where 'long double' == 'double'.
10917         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10918         alternative implementation.
10919         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10920         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10921         * modules/atanl (Depends-on): Add atan. Update conditions.
10922
10923 2011-10-10  Bruno Haible  <bruno@clisp.org>
10924
10925         acosl: Simplify for platforms where 'long double' == 'double'.
10926         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10927         alternative implementation.
10928         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10929         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10930         * modules/acosl (Depends-on): Add acos. Update conditions.
10931
10932 2011-10-10  Bruno Haible  <bruno@clisp.org>
10933
10934         asinl: Simplify for platforms where 'long double' == 'double'.
10935         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10936         alternative implementation.
10937         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10938         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10939         * modules/asinl (Depends-on): Add asin. Update conditions.
10940
10941 2011-10-10  Bruno Haible  <bruno@clisp.org>
10942
10943         tanl: Simplify for platforms where 'long double' == 'double'.
10944         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10945         implementation.
10946         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10947         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10948         * modules/tanl (Depends-on): Add tan. Update conditions.
10949         (configure.ac): Don't compile trigl.c if
10950         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10951
10952 2011-10-10  Bruno Haible  <bruno@clisp.org>
10953
10954         cosl: Simplify for platforms where 'long double' == 'double'.
10955         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10956         implementation.
10957         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10958         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10959         * modules/cosl (Depends-on): Add cos. Update conditions.
10960         (configure.ac): Don't compile sincosl.c and trigl.c if
10961         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10962
10963 2011-10-10  Bruno Haible  <bruno@clisp.org>
10964
10965         sinl: Simplify for platforms where 'long double' == 'double'.
10966         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10967         implementation.
10968         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10969         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10970         * modules/sinl (Depends-on): Add sin. Update conditions.
10971         (configure.ac): Don't compile sincosl.c and trigl.c if
10972         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10973
10974 2011-10-10  Bruno Haible  <bruno@clisp.org>
10975
10976         logl: Simplify for platforms where 'long double' == 'double'.
10977         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10978         implementation.
10979         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10980         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10981         * modules/logl (Depends-on): Add log. Update conditions.
10982
10983 2011-10-10  Bruno Haible  <bruno@clisp.org>
10984
10985         expl: Simplify for platforms where 'long double' == 'double'.
10986         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10987         implementation.
10988         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10989         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10990         * modules/expl (Depends-on): Add exp. Update conditions.
10991
10992 2011-10-10  Bruno Haible  <bruno@clisp.org>
10993
10994         sqrtl: Simplify for platforms where 'long double' == 'double'.
10995         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10996         alternative implementation.
10997         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10998         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10999         * modules/sqrtl (Depends-on): Update conditions.
11000
11001 2011-10-10  Bruno Haible  <bruno@clisp.org>
11002
11003         ldexpl: Simplify for platforms where 'long double' == 'double'.
11004         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11005         alternative implementation.
11006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11007         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11008         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11009
11010 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11011
11012         ffsll: set correct witness
11013         * modules/ffsll (configure.ac): Fix typo.
11014
11015 2011-10-10  Bruno Haible  <bruno@clisp.org>
11016
11017         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11018         * lib/printf-frexpl.c: Include <config.h>.
11019         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11020         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11021         second time.
11022         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11023         gl_LONG_DOUBLE_VS_DOUBLE.
11024         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11025         conditions.
11026
11027 2011-10-10  Bruno Haible  <bruno@clisp.org>
11028
11029         frexpl: Simplify for platforms where 'long double' == 'double'.
11030         * lib/frexpl.c: Include <config.h>.
11031         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11032         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11033         time.
11034         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11035         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11036         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11037         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11038         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11039         conditions.
11040
11041 2011-10-10  Jim Meyering  <meyering@redhat.com>
11042
11043         test-renameat: don't leave behind a temporary file
11044         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11045           ERROR: files left in build directory after distclean:
11046           ./gltests/test-renameat.too
11047           make[1]: *** [distcleancheck] Error 1
11048         Reported by Tom G. Christensen.
11049
11050 2011-10-09  Bruno Haible  <bruno@clisp.org>
11051
11052         rint: Determine RINT_LIBM correctly on AIX 7.
11053         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11054         directly, not only through a function pointer. Also accept an optional
11055         4th argument with extra code.
11056         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11057         rintf() call by gcc when optimizing.
11058
11059         mathfunc.m4: Refactor.
11060         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11061         m4 variable.
11062
11063 2011-10-09  Bruno Haible  <bruno@clisp.org>
11064
11065         rintl: Simplify for platforms where 'long double' == 'double'.
11066         * lib/rintl.c: Include <config.h>.
11067         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11068         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11069         time.
11070         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11071         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11072         * modules/rintl (Depends-on): Add rint. Update conditions.
11073
11074 2011-10-09  Bruno Haible  <bruno@clisp.org>
11075
11076         roundl: Simplify for platforms where 'long double' == 'double'.
11077         * lib/roundl.c: Include <config.h>.
11078         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11079         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11080         time.
11081         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11082         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11083         * modules/roundl (Depends-on): Add round. Update conditions.
11084
11085 2011-10-09  Bruno Haible  <bruno@clisp.org>
11086
11087         truncl: Simplify for platforms where 'long double' == 'double'.
11088         * lib/truncl.c: Include <config.h>.
11089         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11090         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11091         time.
11092         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11093         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11094         * modules/truncl (Depends-on): Add trunc. Update conditions.
11095
11096 2011-10-09  Bruno Haible  <bruno@clisp.org>
11097
11098         ceill: Simplify for platforms where 'long double' == 'double'.
11099         * lib/ceill.c: Include <config.h>.
11100         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11101         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11102         time.
11103         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11104         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11105         * modules/ceill (Depends-on): Add ceil. Update conditions.
11106
11107 2011-10-09  Bruno Haible  <bruno@clisp.org>
11108
11109         floorl: Simplify for platforms where 'long double' == 'double'.
11110         * lib/floorl.c: Include <config.h>.
11111         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11112         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11113         time.
11114         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11115         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11116         * modules/floorl (Depends-on): Add floor. Update conditions.
11117
11118 2011-10-09  Bruno Haible  <bruno@clisp.org>
11119
11120         rint: Fix ordering constraints.
11121         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11122         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11123         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11124
11125 2011-10-09  Bruno Haible  <bruno@clisp.org>
11126
11127         copysignl: Simplify for platforms where 'long double' == 'double'.
11128         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11129         alternative.
11130         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11131         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11132         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11133
11134 2011-10-09  Bruno Haible  <bruno@clisp.org>
11135
11136         Tests for module 'rintl'.
11137         * modules/rintl-tests: New file.
11138         * tests/test-rintl.c: New file.
11139
11140         New module 'rintl'.
11141         * lib/math.in.h (rintl): New declaration.
11142         * lib/rintl.c: New file.
11143         * m4/rintl.m4: New file.
11144         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11145         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11146         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11147         * modules/rintl: New file.
11148         * tests/test-math-c++.cc: Check the declaration of rintl.
11149         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11150         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11151         * doc/posix-functions/rintl.texi: Mention the new module.
11152
11153 2011-10-09  Bruno Haible  <bruno@clisp.org>
11154
11155         Tests for module 'rintf'.
11156         * modules/rintf-tests: New file.
11157         * tests/test-rintf.c: New file.
11158
11159         New module 'rintf'.
11160         * lib/math.in.h (rintf): New declaration.
11161         * lib/rintf.c: New file.
11162         * m4/rintf.m4: New file.
11163         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11165         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11166         * modules/rintf: New file.
11167         * tests/test-math-c++.cc: Check the declaration of rintf.
11168         * doc/posix-functions/rintf.texi: Mention the new module.
11169
11170 2011-10-09  Bruno Haible  <bruno@clisp.org>
11171
11172         rint: Support for MSVC.
11173         * lib/math.in.h (rint): New declaration.
11174         * lib/rint.c: New file.
11175         * m4/rint.m4: New file.
11176         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11178         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11179         * modules/rint (Description): Fix.
11180         (Files): Add lib/rint.c, m4/rint.m4.
11181         (Depends-on): Add math.
11182         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11183         gl_MATH_MODULE_INDICATOR.
11184         * tests/test-math-c++.cc: Check the declaration of rint.
11185         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11186         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11187         * doc/posix-functions/rint.texi: Mention the replacement provided by
11188         the module.
11189
11190         rint tests: More tests.
11191         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11192         minus-zero.h, infinity.h, nan.h.
11193         (main): Skip the test if the current rounding mode is not standard. Add
11194         tests for negative numbers, minus zero, infinity, NaN.
11195         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11196         tests/nan.h.
11197         (Depends-on): Add isnand-nolibm.
11198
11199 2011-10-09  Bruno Haible  <bruno@clisp.org>
11200
11201         Tests for module 'copysignl'.
11202         * modules/copysignl-tests: New file.
11203         * tests/test-copysignl.c: New file.
11204
11205         New module 'copysignl'.
11206         * lib/math.in.h (copysignl): New declaration.
11207         * lib/copysignl.c: New file.
11208         * m4/copysignl.m4: New file.
11209         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11211         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11212         HAVE_COPYSIGNL.
11213         * modules/copysignl: New file.
11214         * tests/test-math-c++.cc: Check the declaration of copysignl.
11215         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11216         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11217         * doc/posix-functions/copysignl.texi: Mention the new module.
11218
11219 2011-10-09  Bruno Haible  <bruno@clisp.org>
11220
11221         Tests for module 'copysignf'.
11222         * modules/copysignf-tests: New file.
11223         * tests/test-copysignf.c: New file.
11224
11225         New module 'copysignf'.
11226         * lib/math.in.h (copysignf): New declaration.
11227         * lib/copysignf.c: New file.
11228         * m4/copysignf.m4: New file.
11229         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11231         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11232         HAVE_COPYSIGNF.
11233         * modules/copysignf: New file.
11234         * tests/test-math-c++.cc: Check the declaration of copysignf.
11235         * doc/posix-functions/copysignf.texi: Mention the new module.
11236
11237 2011-10-09  Bruno Haible  <bruno@clisp.org>
11238
11239         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11240         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11241         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11242         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11243         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11244         gl_SIGNAL_H_DEFAULTS.
11245
11246 2011-10-09  Bruno Haible  <bruno@clisp.org>
11247
11248         poll: Make macro safer.
11249         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11250         ac_cv_header_poll_h is not set.
11251
11252 2011-10-09  Bruno Haible  <bruno@clisp.org>
11253
11254         copysign: Provide replacement.
11255         * lib/math.in.h (copysign): New declaration.
11256         * lib/copysign.c: New file.
11257         * m4/copysign.m4: New file.
11258         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11260         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11261         HAVE_COPYSIGN.
11262         * modules/copysign (Description): Clarify.
11263         (Files): Add lib/copysign.c, m4/copysign.m4.
11264         (Depends-on): Add math, signbit.
11265         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11266         gl_MATH_MODULE_INDICATOR.
11267         * tests/test-math-c++.cc: Check the declaration of copysign.
11268         * doc/posix-functions/copysign.texi: Mention the effects of the module
11269         on Minix and MSVC.
11270
11271 2011-10-09  Bruno Haible  <bruno@clisp.org>
11272
11273         isinf: Ensure macro on AIX 5.1.
11274         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11275         macro.
11276         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11277
11278 2011-10-09  Bruno Haible  <bruno@clisp.org>
11279
11280         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11281         * modules/snprintf-posix-tests (configure.ac): Require
11282         gl_LONG_DOUBLE_VS_DOUBLE.
11283         * modules/sprintf-posix-tests (configure.ac): Likewise.
11284         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11285         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11286         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11287         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11288         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11289         tests on platforms where 'long double' is the same as 'double'.
11290         * tests/test-sprintf-posix.h (test_function): Likewise.
11291         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11292         * tests/test-vasprintf-posix.c (test_function): Likewise.
11293
11294         *printf: Fix for platforms where 'long double' == 'double'.
11295         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11296         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11297         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11298         * modules/fprintf-posix (Files): Likewise.
11299         * modules/obstack-printf-posix (Files): Likewise.
11300         * modules/snprintf-posix (Files): Likewise.
11301         * modules/sprintf-posix (Files): Likewise.
11302         * modules/vasnprintf (Files): Likewise.
11303         * modules/vasnprintf-posix (Files): Likewise.
11304         * modules/vasprintf-posix (Files): Likewise.
11305         * modules/vdprintf-posix (Files): Likewise.
11306         * modules/vfprintf-posix (Files): Likewise.
11307         * modules/vsnprintf-posix (Files): Likewise.
11308         * modules/vsprintf-posix (Files): Likewise.
11309         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11310         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11311         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11312         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11313         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11314         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11315         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11316
11317         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11318         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11319         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11320         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11321         'long double'.
11322         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11323
11324         isinf: Fix for platforms where 'long double' == 'double'.
11325         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11326         Don't blindly assume 80-bit 'long double'.
11327
11328         isfinite: Fix for platforms where 'long double' == 'double'.
11329         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11330         Don't blindly assume 80-bit 'long double'.
11331
11332         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11333         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11334         * modules/isfinite-tests (configure.ac): Require
11335         gl_LONG_DOUBLE_VS_DOUBLE.
11336         * modules/isinf-tests (configure.ac): Likewise.
11337         * modules/isnan-tests (configure.ac): Likewise.
11338         * modules/isnanl-tests (configure.ac): Likewise.
11339         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11340         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11341         tests on platforms where 'long double' is the same as 'double'.
11342         * tests/test-isinf.c (test_isinfl): Likewise.
11343         * tests/test-isnan.c (test_long_double): Likewise.
11344         * tests/test-isnanl.h (main): Likewise.
11345
11346 2011-10-08  Bruno Haible  <bruno@clisp.org>
11347
11348         Tests for module 'tanhf'.
11349         * modules/tanhf-tests: New file.
11350         * tests/test-tanhf.c: New file.
11351
11352         New module 'tanhf'.
11353         * lib/math.in.h (tanhf): New declaration.
11354         * lib/tanhf.c: New file.
11355         * m4/tanhf.m4: New file.
11356         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11358         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11359         * modules/tanhf: New file.
11360         * tests/test-math-c++.cc: Check the declaration of tanhf.
11361         * doc/posix-functions/tanhf.texi: Mention the new module.
11362
11363         tanh: Use a .m4 file.
11364         * m4/tanh.m4: New file.
11365         * modules/tanh (Files): Add it.
11366         (configure.ac): Just invoke gl_FUNC_TANH.
11367
11368 2011-10-08  Bruno Haible  <bruno@clisp.org>
11369
11370         Tests for module 'coshf'.
11371         * modules/coshf-tests: New file.
11372         * tests/test-coshf.c: New file.
11373
11374         New module 'coshf'.
11375         * lib/math.in.h (coshf): New declaration.
11376         * lib/coshf.c: New file.
11377         * m4/coshf.m4: New file.
11378         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11380         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11381         * modules/coshf: New file.
11382         * tests/test-math-c++.cc: Check the declaration of coshf.
11383         * doc/posix-functions/coshf.texi: Mention the new module.
11384
11385         cosh: Use a .m4 file.
11386         * m4/cosh.m4: New file.
11387         * modules/cosh (Files): Add it.
11388         (configure.ac): Just invoke gl_FUNC_COSH.
11389
11390 2011-10-08  Bruno Haible  <bruno@clisp.org>
11391
11392         Tests for module 'sinhf'.
11393         * modules/sinhf-tests: New file.
11394         * tests/test-sinhf.c: New file.
11395
11396         New module 'sinhf'.
11397         * lib/math.in.h (sinhf): New declaration.
11398         * lib/sinhf.c: New file.
11399         * m4/sinhf.m4: New file.
11400         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11402         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11403         * modules/sinhf: New file.
11404         * tests/test-math-c++.cc: Check the declaration of sinhf.
11405         * doc/posix-functions/sinhf.texi: Mention the new module.
11406
11407         sinh: Use a .m4 file.
11408         * m4/sinh.m4: New file.
11409         * modules/sinh (Files): Add it.
11410         (configure.ac): Just invoke gl_FUNC_SINH.
11411
11412 2011-10-08  Bruno Haible  <bruno@clisp.org>
11413
11414         Tests for module 'atan2f'.
11415         * modules/atan2f-tests: New file.
11416         * tests/test-atan2f.c: New file.
11417
11418         New module 'atan2f'.
11419         * lib/math.in.h (atan2f): New declaration.
11420         * lib/atan2f.c: New file.
11421         * m4/atan2f.m4: New file.
11422         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11424         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11425         * modules/atan2f: New file.
11426         * tests/test-math-c++.cc: Check the declaration of atan2f.
11427         * doc/posix-functions/atan2f.texi: Mention the new module.
11428
11429         atan2: Use a .m4 file.
11430         * m4/atan2.m4: New file.
11431         * modules/atan2 (Files): Add it.
11432         (configure.ac): Just invoke gl_FUNC_ATAN2.
11433
11434 2011-10-08  Bruno Haible  <bruno@clisp.org>
11435
11436         Tests for module 'atanf'.
11437         * modules/atanf-tests: New file.
11438         * tests/test-atanf.c: New file.
11439
11440         New module 'atanf'.
11441         * lib/math.in.h (atanf): New declaration.
11442         * lib/atanf.c: New file.
11443         * m4/atanf.m4: New file.
11444         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11446         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11447         * modules/atanf: New file.
11448         * tests/test-math-c++.cc: Check the declaration of atanf.
11449         * doc/posix-functions/atanf.texi: Mention the new module.
11450
11451         atan: Use a .m4 file.
11452         * m4/atan.m4: New file.
11453         * modules/atan (Files): Add it.
11454         (configure.ac): Just invoke gl_FUNC_ATAN.
11455
11456 2011-10-08  Bruno Haible  <bruno@clisp.org>
11457
11458         Tests for module 'acosf'.
11459         * modules/acosf-tests: New file.
11460         * tests/test-acosf.c: New file.
11461
11462         New module 'acosf'.
11463         * lib/math.in.h (acosf): New declaration.
11464         * lib/acosf.c: New file.
11465         * m4/acosf.m4: New file.
11466         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11468         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11469         * modules/acosf: New file.
11470         * tests/test-math-c++.cc: Check the declaration of acosf.
11471         * doc/posix-functions/acosf.texi: Mention the new module.
11472
11473         acos: Use a .m4 file.
11474         * m4/acos.m4: New file.
11475         * modules/acos (Files): Add it.
11476         (configure.ac): Just invoke gl_FUNC_ACOS.
11477
11478 2011-10-08  Bruno Haible  <bruno@clisp.org>
11479
11480         Tests for module 'asinf'.
11481         * modules/asinf-tests: New file.
11482         * tests/test-asinf.c: New file.
11483
11484         New module 'asinf'.
11485         * lib/math.in.h (asinf): New declaration.
11486         * lib/asinf.c: New file.
11487         * m4/asinf.m4: New file.
11488         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11490         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11491         * modules/asinf: New file.
11492         * tests/test-math-c++.cc: Check the declaration of asinf.
11493         * doc/posix-functions/asinf.texi: Mention the new module.
11494
11495         asin: Use a .m4 file.
11496         * m4/asin.m4: New file.
11497         * modules/asin (Files): Add it.
11498         (configure.ac): Just invoke gl_FUNC_ASIN.
11499
11500 2011-10-08  Bruno Haible  <bruno@clisp.org>
11501
11502         Tests for module 'tanf'.
11503         * modules/tanf-tests: New file.
11504         * tests/test-tanf.c: New file.
11505
11506         New module 'tanf'.
11507         * lib/math.in.h (tanf): New declaration.
11508         * lib/tanf.c: New file.
11509         * m4/tanf.m4: New file.
11510         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11512         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11513         * modules/tanf: New file.
11514         * tests/test-math-c++.cc: Check the declaration of tanf.
11515         * doc/posix-functions/tanf.texi: Mention the new module.
11516
11517         tan: Use a .m4 file.
11518         * m4/tan.m4: New file.
11519         * modules/tan (Files): Add it.
11520         (configure.ac): Just invoke gl_FUNC_TAN.
11521
11522 2011-10-08  Bruno Haible  <bruno@clisp.org>
11523
11524         Tests for module 'cosf'.
11525         * modules/cosf-tests: New file.
11526         * tests/test-cosf.c: New file.
11527
11528         New module 'cosf'.
11529         * lib/math.in.h (cosf): New declaration.
11530         * lib/cosf.c: New file.
11531         * m4/cosf.m4: New file.
11532         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11534         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11535         * modules/cosf: New file.
11536         * tests/test-math-c++.cc: Check the declaration of cosf.
11537         * doc/posix-functions/cosf.texi: Mention the new module.
11538
11539         cos: Use a .m4 file.
11540         * m4/cos.m4: New file.
11541         * modules/cos (Files): Add it.
11542         (configure.ac): Just invoke gl_FUNC_COS.
11543
11544 2011-10-08  Bruno Haible  <bruno@clisp.org>
11545
11546         Tests for module 'sinf'.
11547         * modules/sinf-tests: New file.
11548         * tests/test-sinf.c: New file.
11549
11550         New module 'sinf'.
11551         * lib/math.in.h (sinf): New declaration.
11552         * lib/sinf.c: New file.
11553         * m4/sinf.m4: New file.
11554         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11556         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11557         * modules/sinf: New file.
11558         * tests/test-math-c++.cc: Check the declaration of sinf.
11559         * doc/posix-functions/sinf.texi: Mention the new module.
11560
11561         sin: Use a .m4 file.
11562         * m4/sin.m4: New file.
11563         * modules/sin (Files): Add it.
11564         (configure.ac): Just invoke gl_FUNC_SIN.
11565
11566 2011-10-08  Bruno Haible  <bruno@clisp.org>
11567
11568         Tests for module 'powf'.
11569         * modules/powf-tests: New file.
11570         * tests/test-powf.c: New file.
11571
11572         New module 'powf'.
11573         * lib/math.in.h (powf): New declaration.
11574         * lib/powf.c: New file.
11575         * m4/powf.m4: New file.
11576         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11578         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11579         * modules/powf: New file.
11580         * tests/test-math-c++.cc: Check the declaration of powf.
11581         * doc/posix-functions/powf.texi: Mention the new module.
11582
11583         pow: Use a .m4 file.
11584         * m4/pow.m4: New file.
11585         * modules/pow (Files): Add it.
11586         (configure.ac): Just invoke gl_FUNC_POW.
11587
11588 2011-10-08  Bruno Haible  <bruno@clisp.org>
11589
11590         Tests for module 'log10f'.
11591         * modules/log10f-tests: New file.
11592         * tests/test-log10f.c: New file.
11593
11594         New module 'log10f'.
11595         * lib/math.in.h (log10f): New declaration.
11596         * lib/log10f.c: New file.
11597         * m4/log10f.m4: New file.
11598         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11600         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11601         * modules/log10f: New file.
11602         * tests/test-math-c++.cc: Check the declaration of log10f.
11603         * doc/posix-functions/log10f.texi: Mention the new module.
11604
11605         log10: Use a .m4 file.
11606         * m4/log10.m4: New file.
11607         * modules/log10 (Files): Add it.
11608         (configure.ac): Just invoke gl_FUNC_LOG10.
11609
11610 2011-10-08  Bruno Haible  <bruno@clisp.org>
11611
11612         Tests for module 'logf'.
11613         * modules/logf-tests: New file.
11614         * tests/test-logf.c: New file.
11615
11616         New module 'logf'.
11617         * lib/math.in.h (logf): New declaration.
11618         * lib/logf.c: New file.
11619         * m4/logf.m4: New file.
11620         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11621         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11622         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11623         * modules/logf: New file.
11624         * tests/test-math-c++.cc: Check the declaration of logf.
11625         * doc/posix-functions/logf.texi: Mention the new module.
11626
11627         log: Use a .m4 file.
11628         * m4/log.m4: New file.
11629         * modules/log (Files): Add it.
11630         (configure.ac): Just invoke gl_FUNC_LOG.
11631
11632 2011-10-08  Bruno Haible  <bruno@clisp.org>
11633
11634         Tests for module 'expf'.
11635         * modules/expf-tests: New file.
11636         * tests/test-expf.c: New file.
11637
11638         New module 'expf'.
11639         * lib/math.in.h (expf): New declaration.
11640         * lib/expf.c: New file.
11641         * m4/expf.m4: New file.
11642         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11644         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11645         * modules/expf: New file.
11646         * tests/test-math-c++.cc: Check the declaration of expf.
11647         * doc/posix-functions/expf.texi: Mention the new module.
11648
11649         exp: Use a .m4 file.
11650         * m4/exp.m4: New file.
11651         * modules/exp (Files): Add it.
11652         (configure.ac): Just invoke gl_FUNC_EXP.
11653
11654 2011-10-08  Bruno Haible  <bruno@clisp.org>
11655
11656         Tests for module 'sqrtf'.
11657         * modules/sqrtf-tests: New file.
11658         * tests/test-sqrtf.c: New file.
11659
11660         New module 'sqrtf'.
11661         * lib/math.in.h (sqrtf): New declaration.
11662         * lib/sqrtf.c: New file.
11663         * m4/sqrtf.m4: New file.
11664         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11665         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11666         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11667         * modules/sqrtf: New file.
11668         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11669         * doc/posix-functions/sqrtf.texi: Mention the new module.
11670
11671 2011-10-08  Bruno Haible  <bruno@clisp.org>
11672
11673         Tests: Avoid link failures w.r.t. libintl.
11674         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11675         $(LIBINTL).
11676         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11677         $(LIBINTL).
11678         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11679         against $(LIBINTL).
11680         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11681         $(LIBINTL).
11682         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11683         $(LIBINTL).
11684         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11685
11686 2011-10-08  Bruno Haible  <bruno@clisp.org>
11687
11688         pow tests: Defeat compiler optimizations.
11689         * tests/test-pow.c (main): Assign arguments to x and y before use.
11690
11691 2011-10-08  Bruno Haible  <bruno@clisp.org>
11692
11693         gnulib-tool: Improve last commit.
11694         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11695         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11696         ignore dependencies that are not among the modules list.
11697
11698 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11699
11700         gnulib-tool: don't follow dependencies to avoided modules
11701         This fixes a bug that is related to the previous one.
11702         * gnulib-tool (func_modules_transitive_closure)
11703         (func_emit_autoconf_snippets):
11704         Check whether a dependency is acceptable before using it.
11705         (--extract-dependencies): Report an error if --avoid is also used,
11706         since this combination of options is not yet supported.
11707
11708         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11709         Problem reported by Peter Dyballa in
11710         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11711         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11712         when echoing "$condition".
11713
11714 2011-10-07  Bruno Haible  <bruno@clisp.org>
11715
11716         Fix documentation about math functions on MacOS X.
11717         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11718         MacOS X 10.5.
11719         * doc/posix-functions/fdim.texi: Likewise.
11720         * doc/posix-functions/feclearexcept.texi: Likewise.
11721         * doc/posix-functions/fegetenv.texi: Likewise.
11722         * doc/posix-functions/fegetround.texi: Likewise.
11723         * doc/posix-functions/feholdexcept.texi: Likewise.
11724         * doc/posix-functions/feraiseexcept.texi: Likewise.
11725         * doc/posix-functions/fesetenv.texi: Likewise.
11726         * doc/posix-functions/fesetround.texi: Likewise.
11727         * doc/posix-functions/fetestexcept.texi: Likewise.
11728         * doc/posix-functions/feupdateenv.texi: Likewise.
11729         * doc/posix-functions/fmax.texi: Likewise.
11730         * doc/posix-functions/fmin.texi: Likewise.
11731         * doc/posix-functions/log2.texi: Likewise.
11732         * doc/posix-functions/modff.texi: Likewise.
11733         * doc/posix-functions/nan.texi: Likewise.
11734         * doc/posix-functions/nanf.texi: Likewise.
11735         * doc/posix-functions/nextafterf.texi: Likewise.
11736         * doc/posix-functions/remquo.texi: Likewise.
11737
11738 2011-10-07  Bruno Haible  <bruno@clisp.org>
11739
11740         modff: Drop assumption about library that defines modff.
11741         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11742         AC_CHECK_FUNCS.
11743         * modules/modff (Files): Add m4/mathfunc.m4.
11744
11745 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11746
11747         raise tests: Avoid a GCC warning.
11748         * tests/test-raise.c (handler): Use _Noreturn.
11749
11750 2011-10-07  Bruno Haible  <bruno@clisp.org>
11751
11752         Tests for module 'ldexpf'.
11753         * modules/ldexpf-tests: New file.
11754         * tests/test-ldexpf.c: New file.
11755
11756         New module 'ldexpf'.
11757         * lib/math.in.h (ldexpf): New declaration.
11758         * lib/ldexpf.c: New file.
11759         * m4/ldexpf.m4: New file.
11760         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11762         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11763         * modules/ldexpf: New file.
11764         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11765         * doc/posix-functions/ldexpf.texi: Mention the new module.
11766
11767 2011-10-06  Bruno Haible  <bruno@clisp.org>
11768
11769         frexpf: Work around problems on IRIX and mingw.
11770         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11772         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11773         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11774         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11775         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11776         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11777
11778 2011-10-06  Bruno Haible  <bruno@clisp.org>
11779
11780         fabsf: Drop assumption about library that defines fabsf.
11781         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11782         AC_CHECK_FUNCS.
11783         * modules/fabsf (Files): Add m4/mathfunc.m4.
11784
11785 2011-10-06  Bruno Haible  <bruno@clisp.org>
11786
11787         frexpf: Drop assumption about library that defines frexpf.
11788         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11789         'int *', 'float *', 'long double *', 'float', 'long double'.
11790         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11791         AC_CHECK_FUNCS.
11792         * modules/frexpf (Files): Add m4/mathfunc.m4.
11793
11794         Tests for module 'frexpf'.
11795         * modules/frexpf-tests: New file.
11796         * tests/test-frexpf.c: New file.
11797
11798         New module 'frexpf'.
11799         * lib/math.in.h (frexpf): New declaration.
11800         * lib/frexpf.c: New file.
11801         * m4/frexpf.m4: New file.
11802         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11804         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11805         * modules/frexpf: New file.
11806         * tests/test-math-c++.cc: Check the declaration of frexpf.
11807         * doc/posix-functions/frexpf.texi: Mention the new module.
11808
11809 2011-10-06  Bruno Haible  <bruno@clisp.org>
11810
11811         math: Sort function declarations of math.in.h.
11812         * lib/math.in.h (frexp, logb): Move declarations.
11813
11814 2011-10-05  Bruno Haible  <bruno@clisp.org>
11815
11816         Tests for module 'modff'.
11817         * modules/modff-tests: New file.
11818         * tests/test-modff.c: New file.
11819
11820         New module 'modff'.
11821         * lib/math.in.h (modff): New declaration.
11822         * lib/modff.c: New file.
11823         * m4/modff.m4: New file.
11824         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11826         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11827         * modules/modff: New file.
11828         * tests/test-math-c++.cc: Check the declaration of modff.
11829         * doc/posix-functions/modff.texi: Mention the new module.
11830
11831         modf tests: Make test sharper.
11832         * tests/test-modf.c (main): Strengthen upper bound.
11833
11834         modf: Use a .m4 file.
11835         * m4/modf.m4: New file.
11836         * modules/modf (Files): Add it.
11837         (configure.ac): Just invoke gl_FUNC_MODF.
11838
11839 2011-10-05  Bruno Haible  <bruno@clisp.org>
11840
11841         Tests for module 'fmodf'.
11842         * modules/fmodf-tests: New file.
11843         * tests/test-fmodf.c: New file.
11844
11845         New module 'fmodf'.
11846         * lib/math.in.h (fmodf): New declaration.
11847         * lib/fmodf.c: New file.
11848         * m4/fmodf.m4: New file.
11849         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11851         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11852         * modules/fmodf: New file.
11853         * tests/test-math-c++.cc: Check the declaration of fmodf.
11854         * doc/posix-functions/fmodf.texi: Mention the new module.
11855
11856         fmod: Use a .m4 file.
11857         * m4/fmod.m4: New file.
11858         * modules/fmod (Files): Add it.
11859         (configure.ac): Just invoke gl_FUNC_FMOD.
11860
11861 2011-10-05  Bruno Haible  <bruno@clisp.org>
11862
11863         Tests for module 'fabsf'.
11864         * modules/fabsf-tests: New file.
11865         * tests/test-fabsf.c: New file.
11866
11867         New module 'fabsf'.
11868         * lib/math.in.h (fabsf): New declaration.
11869         * lib/fabsf.c: New file.
11870         * m4/fabsf.m4: New file.
11871         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11873         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11874         * modules/fabsf: New file.
11875         * tests/test-math-c++.cc: Check the declaration of fabsf.
11876         * doc/posix-functions/fabsf.texi: Mention the new module.
11877
11878         fabs: Use a .m4 file.
11879         * m4/fabs.m4: New file.
11880         * modules/fabs (Files): Add it.
11881         (configure.ac): Just invoke gl_FUNC_FABS.
11882
11883 2011-10-05  Jim Meyering  <meyering@redhat.com>
11884
11885         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11886         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11887         ls -lL regression introduced in coreutils-8.12, it does so at the
11888         cost of an additional stat call in the common case.  Besides, now
11889         that the kernel change that prompted commit 95f7c57f has been reverted
11890         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11891         we have no use for commit 95f7c57f, "file-has-acl: use
11892         acl_extended_file_nofollow if available".
11893
11894 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11895
11896         file-has-acl: revert unintended change in behavior of ls -L
11897         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11898         derived from...
11899         (file_has_acl): ...code here.  Call it.
11900         This problem was introduced with 2011-07-22 commit 95f7c57f,
11901         "file-has-acl: use acl_extended_file_nofollow if available".
11902         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11903
11904 2011-10-03  Bruno Haible  <bruno@clisp.org>
11905
11906         poll: Avoid link errors on MSVC.
11907         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11908         * modules/poll (Depends-on): Add sockets.
11909         (Link): New section.
11910         * NEWS: Mention the change.
11911         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11912         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11913         $(LIB_POLL) instead of $(LIBSOCKET).
11914
11915 2011-10-03  Bruno Haible  <bruno@clisp.org>
11916
11917         sys_select tests: Fix link error on MSVC 9.
11918         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11919         with $(LIB_SELECT) instead of $(LIBSOCKET).
11920
11921 2011-10-03  Bruno Haible  <bruno@clisp.org>
11922
11923         sys_select: Fix compilation error on mingw.
11924         * lib/sys_select.in.h: On native Windows, include <io.h>.
11925
11926 2011-10-03  Bruno Haible  <bruno@clisp.org>
11927
11928         wmemset: Support for MSVC.
11929         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11930         whether wmemset() exists.
11931
11932 2011-10-03  Bruno Haible  <bruno@clisp.org>
11933
11934         wmemmove: Support for MSVC.
11935         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11936         whether wmemmove() exists.
11937
11938 2011-10-03  Bruno Haible  <bruno@clisp.org>
11939
11940         wmemcpy: Support for MSVC.
11941         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11942         whether wmemcpy() exists.
11943
11944 2011-10-03  Bruno Haible  <bruno@clisp.org>
11945
11946         wmemcmp: Support for MSVC.
11947         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11948         whether wmemcmp() exists.
11949
11950 2011-10-03  Bruno Haible  <bruno@clisp.org>
11951
11952         wmemchr: Support for MSVC.
11953         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11954         whether wmemchr() exists.
11955
11956 2011-10-03  Bruno Haible  <bruno@clisp.org>
11957
11958         glthread/*, strsignal: Support for MSVC.
11959         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11960         including <winsock.h> on MSVC 9.
11961         * lib/glthread/lock.h: Likewise.
11962         * lib/glthread/thread.h: Likewise.
11963         * lib/glthread/tls.h: Likewise.
11964         * lib/glthread/yield.h: Likewise.
11965         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11966         if HAVE_UNISTD_H is false.
11967         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11968
11969 2011-10-03  Bruno Haible  <bruno@clisp.org>
11970
11971         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11972         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11973         Set to 100000.
11974
11975 2011-10-03  Bruno Haible  <bruno@clisp.org>
11976
11977         acl: Fix specification.
11978         * lib/file-has-acl.c (file_has_acl): Fix specification.
11979
11980 2011-10-03  Bruno Haible  <bruno@clisp.org>
11981
11982         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11983         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11984         (compute_curr_prefix, shared_library_fullname,
11985         find_shared_library_fullname, get_shared_library_fullname, relocate):
11986         Use it together with PIC && INSTALLDIR.
11987         Reported by <jojelino@gmail.com>
11988         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11989
11990 2011-10-01  Jim Meyering  <meyering@redhat.com>
11991
11992         maint.mk: adjust a release-related rule not to require use of gzip
11993         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11994         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11995         projects that build only .tar.xz files.  Also fix an erroneous test.
11996
11997         test-linkat: don't leave behind a temporary file
11998         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11999         Otherwise, coreutils' "make distcheck" would fail with this:
12000           Only in /c/cu/tests/torture/coreutils/test/\
12001             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12002           make[2]: *** [my-distcheck] Error 1
12003
12004         float, math: add omitted file
12005         * lib/itold.c: Add file, required for yesterday's float change.
12006
12007 2011-10-01  Bruno Haible  <bruno@clisp.org>
12008
12009         isinf: Fix for OpenBSD/x86.
12010         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12011         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12012         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12013
12014 2011-10-01  Bruno Haible  <bruno@clisp.org>
12015
12016         isfinite: Fix syntax error in configure test.
12017         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12018
12019         isfinite: Fix typo.
12020         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12021         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12022
12023 2011-10-01  Bruno Haible  <bruno@clisp.org>
12024
12025         nonblocking tests: Fix test failure on Linux/IA-64.
12026         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12027         Set to 270000.
12028
12029 2011-10-01  Bruno Haible  <bruno@clisp.org>
12030
12031         mkfifoat tests: Fix a test failure on mingw.
12032         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12033         with error ENOSYS.
12034
12035 2011-09-30  Bruno Haible  <bruno@clisp.org>
12036
12037         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12038         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12039         'long double'. Set REPLACE_ITOLD.
12040         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12041         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12042         * lib/itold.c: New file.
12043         * modules/float (Files): Add lib/itold.c.
12044         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12045         (Makefile.am): Substitute REPLACE_ITOLD.
12046         * modules/math (Depends-on): Add float.
12047         (Makefile.am): Substitute REPLACE_ITOLD.
12048         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12049         * doc/posix-headers/math.texi: Likewise.
12050         * doc/posix-functions/logl.texi: Likewise.
12051
12052 2011-09-30  Bruno Haible  <bruno@clisp.org>
12053
12054         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12055         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12056         Set to 140000.
12057
12058 2011-09-30  Bruno Haible  <bruno@clisp.org>
12059
12060         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12061         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12062         invocation, say "right after AC_PROG_CC_STDC", not "right after
12063         AC_PROG_CC".
12064         Reported by Gary V. Vaughan <gary@gnu.org>.
12065
12066 2011-09-30  Bruno Haible  <bruno@clisp.org>
12067
12068         Centralize C99 requirement.
12069         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12070         * modules/stdarg (configure.ac-early): Invoke it instead of
12071         AC_PROG_CC_STDC.
12072         Reported by Gary V. Vaughan and Paul Eggert.
12073
12074 2011-09-29  Bruno Haible  <bruno@clisp.org>
12075
12076         float: Fix LDBL_MAX value on Linux/PowerPC.
12077         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12078         on Linux/PowerPC.
12079         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12080         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12081         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12082         platform.
12083         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12084
12085 2011-09-29  Bruno Haible  <bruno@clisp.org>
12086
12087         doc: Improve doc about gl_EARLY.
12088         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12089         AC_PROG_CC_STDC invocation.
12090         Reported by Gary V. Vaughan <gary@gnu.org>.
12091
12092 2011-09-28  Bruno Haible  <bruno@clisp.org>
12093
12094         fgetc, fputc, fread, fwrite tests: Fix link error.
12095         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12096         on non-MSVC platforms.
12097         * tests/test-fputc.c (main): Likewise.
12098         * tests/test-fread.c (main): Likewise.
12099         * tests/test-fwrite.c (main): Likewise.
12100         Reported by Jim Meyering.
12101
12102 2011-09-27  Bruno Haible  <bruno@clisp.org>
12103
12104         fputc, fwrite tests: Avoid test failure on MSVC.
12105         * tests/test-fgetc.c: Include msvc-inval.h.
12106         (main): Invoke gl_msvc_inval_ensure_handler.
12107         * tests/test-fputc.c: Include msvc-inval.h.
12108         (main): Invoke gl_msvc_inval_ensure_handler.
12109         * tests/test-fread.c: Include msvc-inval.h.
12110         (main): Invoke gl_msvc_inval_ensure_handler.
12111         * tests/test-fwrite.c: Include msvc-inval.h.
12112         (main): Invoke gl_msvc_inval_ensure_handler.
12113         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12114         * modules/fputc-tests (Depends-on): Likewise.
12115         * modules/fread-tests (Depends-on): Likewise.
12116         * modules/fwrite-tests (Depends-on): Likewise.
12117
12118 2011-09-27  Bruno Haible  <bruno@clisp.org>
12119
12120         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12121         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12122         (raise): Remove older, duplicated declaration.
12123         (_gl_raise_SIGPIPE): New declaration.
12124         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12125         (rpl_raise): Remove function.
12126         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12127         a gnulib-defined SIGPIPE here.
12128         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12129         'sigprocmask' has detected missing signal-blocking and the module
12130         'sigpipe' is enabled.
12131         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12132
12133 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12134
12135         base64-tests: avoid memory leak
12136         * tests/test-base64.c (main): Plug memory leak.
12137
12138         base32: new module
12139         * modules/base32: New module.
12140         * lib/base32.c: New file.
12141         * lib/base32.h: Likewise.
12142         * m4/base32.m4: Likewise.
12143         * modules/base32-tests: New test.
12144         * tests/test-base32.c: Likewise.
12145         * MODULES.html.sh (Misc): Mention it.
12146
12147 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12148
12149         gnulib: use more-standard license notice wording
12150         * gnulib-tool (func_emit_copyright_notice): When emitting a
12151         license notice into a file, use the standard wording as suggested
12152         by the current information for GNU maintainers, except say "file"
12153         rather than "program".  The new wording gives a license version
12154         number, which addresses an issue raised by Glenn Morris in
12155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12156         * m4/onceonly.m4: Use that same wording here, too.
12157
12158         dup2: minor simplification
12159         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12160         as lib/dup2.c no longer uses 'inline'.
12161
12162 2011-09-25  Bruno Haible  <bruno@clisp.org>
12163
12164         strings: Fix compilation error on MSVC.
12165         * lib/strings.in.h: Include <stddef.h> for size_t.
12166
12167 2011-09-25  Bruno Haible  <bruno@clisp.org>
12168
12169         fflush et al.: Document limitation on MSVC.
12170         * doc/posix-functions/fflush.texi: Document possible crash in handling
12171         mode other than DEFAULT_HANDLING.
12172         * doc/posix-functions/fgetc.texi: Likewise.
12173         * doc/posix-functions/fputc.texi: Likewise.
12174         * doc/posix-functions/fread.texi: Likewise.
12175         * doc/posix-functions/fwrite.texi: Likewise.
12176
12177 2011-09-25  Bruno Haible  <bruno@clisp.org>
12178
12179         msvc-inval: Allow three invalid parameter handling modes.
12180         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12181         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12182         macros.
12183         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12184         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12185         SANE_LIBRARY_HANDLING as a no-op.
12186         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12187         <stdlib.h>.
12188         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12189
12190 2011-09-25  Bruno Haible  <bruno@clisp.org>
12191
12192         msvc-inval: Make handler multithread-safe.
12193         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12194         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12195         declarations.
12196         (gl_msvc_inval_current): New declaration.
12197         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12198         Operate on the structure returned by gl_msvc_inval_current().
12199         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12200         Remove varaiables.
12201         (tls_index, tls_initialized): New variables.
12202         (not_per_thread): New variable.
12203         (gl_msvc_inval_current): New function.
12204         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12205         returned by gl_msvc_inval_current().
12206
12207 2011-09-25  Bruno Haible  <bruno@clisp.org>
12208
12209         msvc-inval: Install handler globally.
12210         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12211         !_MSC_VER.
12212         (gl_msvc_invalid_parameter_handler): Remove declaration.
12213         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12214         declarations.
12215         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12216         Install the handler globally, don't uninstall it.
12217         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12218         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12219         currently valid, call RaiseException instead.
12220         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12221         for !_MSC_VER.
12222
12223 2011-09-25  Bruno Haible  <bruno@clisp.org>
12224
12225         strerror_r-posix: Fix for MSVC 9.
12226         * lib/strerror_r.c (local_snprintf): New function.
12227         (snprintf): Define to local_snprintf, not to _snprintf.
12228
12229 2011-09-25  Bruno Haible  <bruno@clisp.org>
12230
12231         ftruncate: Support for MSVC 9.
12232         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12233         (chsize_nothrow): New function.
12234         (chsize): Redefine as a macro.
12235         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12236         * modules/ftruncate (Depends-on): Add msvc-inval.
12237
12238 2011-09-25  Bruno Haible  <bruno@clisp.org>
12239
12240         New module 'fstat'.
12241         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12242         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12243         * lib/fchdir.c (rpl_fstat): Remove function.
12244         * m4/fstat.m4: New file.
12245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12246         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12247         declared.
12248         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12249         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12250         * modules/fstat: New file.
12251         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12252         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12253         is set.
12254         * doc/posix-functions/fstat.texi: Mention the new module and the
12255         problem on MSVC.
12256         * NEWS: Mention the change.
12257         * modules/acl (Depends-on): Add fstat.
12258         * modules/chdir-safer (Depends-on): Likewise.
12259         * modules/chown (Depends-on): Likewise.
12260         * modules/copy-file (Depends-on): Likewise.
12261         * modules/fchdir (Depends-on): Likewise.
12262         * modules/fdopendir (Depends-on): Likewise.
12263         * modules/fopen (Depends-on): Likewise.
12264         * modules/fts (Depends-on): Likewise.
12265         * modules/getcwd (Depends-on): Likewise.
12266         * modules/isapipe (Depends-on): Likewise.
12267         * modules/linkat (Depends-on): Likewise.
12268         * modules/lseek (Depends-on): Likewise.
12269         * modules/mkdir-p (Depends-on): Likewise.
12270         * modules/open (Depends-on): Likewise.
12271         * modules/openat (Depends-on): Likewise.
12272         * modules/read-file (Depends-on): Likewise.
12273         * modules/renameat (Depends-on): Likewise.
12274         * modules/utimens (Depends-on): Likewise.
12275
12276 2011-09-25  Bruno Haible  <bruno@clisp.org>
12277
12278         linkat: Fix compilation on MSVC 9.
12279         * lib/linkat.c: Don't include <stdint.h>.
12280
12281 2011-09-25  Bruno Haible  <bruno@clisp.org>
12282
12283         fclose: Support for MSVC 9.
12284         * lib/fclose.c: Include msvc-inval.h.
12285         (fclose_nothrow): New function.
12286         (rpl_fclose): Use it.
12287         * modules/fclose (Depends-on): Add msvc-inval.
12288         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12289
12290 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12291
12292         dup2: minor simplifications
12293         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12294         that it's a performance win.
12295         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12296         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12297
12298 2011-09-24  Jim Meyering  <meyering@redhat.com>
12299
12300         test-futimens: avoid a warning from gcc -Wshadow
12301         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12302         to avoid a shadowing warning.
12303
12304 2011-09-24  Bruno Haible  <bruno@clisp.org>
12305
12306         fdopen: Support for MSVC 9.
12307         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12308         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12309         * lib/fdopen.c: Include msvc-inval.h.
12310         (fdopen_nothrow): New function.
12311         (rpl_fdopen): Use it.
12312         * modules/fdopen (Depends-on): Add msvc-inval.
12313         * modules/fclose-tests (Depends-on): Add fdopen.
12314         * modules/fflush-tests (Depends-on): Likewise.
12315         * modules/fgetc-tests (Depends-on): Likewise.
12316         * modules/fputc-tests (Depends-on): Likewise.
12317         * modules/fread-tests (Depends-on): Likewise.
12318         * modules/freopen-tests (Depends-on): Likewise.
12319         * modules/fseeko-tests (Depends-on): Likewise.
12320         * modules/ftello-tests (Depends-on): Likewise.
12321         * modules/fwrite-tests  (Depends-on): Likewise.
12322         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12323
12324 2011-09-24  Bruno Haible  <bruno@clisp.org>
12325
12326         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12327         * modules/fgetc-tests (Depends-on): Add unistd.
12328         * modules/fputc-tests (Depends-on): Likewise.
12329         * modules/fread-tests (Depends-on): Likewise.
12330         * modules/fwrite-tests (Depends-on): Likewise.
12331
12332 2011-09-24  Bruno Haible  <bruno@clisp.org>
12333
12334         dup: Simplify autoconf test.
12335         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12336         on gl_MSVC_INVAL's result.
12337
12338 2011-09-24  Bruno Haible  <bruno@clisp.org>
12339
12340         Tests for function fwrite().
12341         * modules/fwrite-tests: New file.
12342         * tests/test-fwrite.c: New file.
12343         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12344
12345         Tests for function fread().
12346         * modules/fread-tests: New file.
12347         * tests/test-fread.c: New file.
12348         * modules/stdio-tests (Depends-on): Add fread-tests.
12349
12350         Activate fputc tests.
12351         * modules/stdio-tests (Depends-on): Add fputc-tests.
12352
12353         Enhance fgetc, fputc tests.
12354         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12355         * tests/test-fputc.c (main): Likewise.
12356
12357 2011-09-24  Bruno Haible  <bruno@clisp.org>
12358
12359         write: Support for MSVC 9.
12360         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12361         is not 1.
12362         * lib/write.c (write_nothrow): New function.
12363         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12364         not 1. Use write_nothrow.
12365         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12366         invalid parameter handler.
12367         (gl_PREREQ_WRITE): New macro.
12368         * modules/write (Depends-on): Add msvc-inval.
12369         (configure.ac): Invoke gl_PREREQ_WRITE.
12370         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12371
12372 2011-09-24  Bruno Haible  <bruno@clisp.org>
12373
12374         read: Fix last commit.
12375         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12376
12377 2011-09-24  Bruno Haible  <bruno@clisp.org>
12378
12379         dup2: Fix last commit.
12380         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12381         (rpl_dup2): Disable fcntl workaround on native Windows.
12382
12383         sigprocmask: Make code safer.
12384         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12385         section that changes macro definitions for this compilation unit.
12386
12387 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12388
12389         dup2: clarify by coalescing Windows-specific material
12390         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12391         "msvc-nothrow.h"' to the Windows-specific section, so that the
12392         Emacs source need not contain these include files.
12393         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12394         Windows-specific fixes into this function rather than just the
12395         nothrow fix, as this shortens and clarifies the code.  Always
12396         define as a function, as that's a bit cleaner than having it be
12397         sometimes a function and sometimes a macro.
12398         (rpl_dup2): Move the Windows-specific stuff out of here and into
12399         ms_windows_dup2.  Don't protect the Haiku-related fix with
12400         "#if !defined __linux__", as the same code also works around
12401         a Linux kernel bug, and it doesn't add any system calls on any
12402         platform.  Add comment about FreeBSD 6.1.
12403
12404         sigprocmask: move #include directive
12405         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12406         Windows-specific section, so that the Emacs source need not
12407         contain msvc-inval.h.
12408
12409 2011-09-23  Bruno Haible  <bruno@clisp.org>
12410
12411         read: Support for MSVC 9.
12412         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12413         is not 1.
12414         * lib/read.c (read_nothrow): New function.
12415         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12416         read_nothrow.
12417         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12418         invalid parameter handler.
12419         (gl_PREREQ_READ): New macro.
12420         * modules/read (Depends-on): Add msvc-inval.
12421         (configure.ac): Invoke gl_PREREQ_READ.
12422         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12423
12424 2011-09-23  Bruno Haible  <bruno@clisp.org>
12425
12426         close: Support for MSVC 9.
12427         * lib/close.c: Include <errno.h>, msvc-inval.h.
12428         (close_nothrow): New function.
12429         (rpl_close): Use it.
12430         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12431         invalid parameter handler.
12432         * modules/close (Depends-on): Add msvc-inval.
12433         * modules/dup2-tests (Depends-on): Add close.
12434         * modules/dup3-tests (Depends-on): Likewise.
12435         * modules/fcntl-tests (Depends-on): Likewise.
12436         * modules/spawn-pipe-tests (Depends-on): Likewise.
12437         * modules/unistd-safer-tests (Depends-on): Likewise.
12438         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12439
12440 2011-09-23  Bruno Haible  <bruno@clisp.org>
12441
12442         New module 'dup'.
12443         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12444         Allow replacement.
12445         * lib/dup.c: New file.
12446         * lib/fchdir.c (rpl_dup): Remove function.
12447         * m4/dup.m4: New file.
12448         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12449         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12450         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12451         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12452         * modules/dup: New file.
12453         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12454         'dup' module is in use.
12455         * modules/fdopendir (Depends-on): Add dup.
12456         * modules/fdutimensat-tests (Depends-on): Likewise.
12457         * modules/fts (Depends-on): Likewise.
12458         * modules/futimens-tests (Depends-on): Likewise.
12459         * modules/posix_spawnp-tests (Depends-on): Likewise.
12460         * modules/unistd-safer-tests (Depends-on): Likewise.
12461         * modules/utimens-tests (Depends-on): Likewise.
12462         * doc/posix-functions/dup.texi: Mention the new module and the problem
12463         on MSVC.
12464
12465 2011-09-23  Bruno Haible  <bruno@clisp.org>
12466
12467         getdtablesize: Support for MSVC 9.
12468         * lib/getdtablesize.c: Include msvc-inval.h.
12469         (_setmaxstdio_nothrow): New function.
12470         (_setmaxstdio): Redefine it.
12471         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12472         * modules/getdtablesize (Depends-on): Add msvc-inval.
12473         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12474
12475 2011-09-23  Bruno Haible  <bruno@clisp.org>
12476
12477         signal-h: Rename from signal.
12478         * modules/signal-h: Renamed from modules/signal.
12479         * modules/pthread_sigmask (Depends-on): Update.
12480         * modules/raise (Depends-on): Likewise.
12481         * modules/sigaction (Depends-on): Likewise.
12482         * modules/sigpipe (Depends-on): Likewise.
12483         * modules/sigprocmask (Depends-on): Likewise.
12484         * modules/sys_select (Depends-on): Likewise.
12485         * modules/signal-h-tests: Renamed from modules/signal-tests.
12486         (Files, Depends-on, Makefile.am): Update.
12487         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12488         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12489         (Files, Makefile.am): Update.
12490         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12491         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12492         * modules/signal: New placeholder file.
12493         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12494         * doc/posix-headers/signal.texi: Update.
12495         * NEWS: Mention the change.
12496
12497 2011-09-23  Bruno Haible  <bruno@clisp.org>
12498
12499         sigprocmask: Avoid crashes through signal() on MSVC 9.
12500         * lib/sigprocmask.c: Include msvc-inval.h.
12501         (signal_nothrow): New function.
12502         (signal): Redefine it.
12503         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12504         * modules/sigprocmask (Depends-on): Add msvc-inval.
12505         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12506
12507 2011-09-23  Bruno Haible  <bruno@clisp.org>
12508
12509         Tests for module 'raise'.
12510         * modules/raise-tests: New file.
12511         * tests/test-raise.c: New file.
12512
12513         raise: Support for MSVC.
12514         * lib/signal.in.h (raise): New declaration.
12515         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12516         for native Windows platforms.
12517         * m4/raise.m4: New file.
12518         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12519         HAVE_RAISE, REPLACE_RAISE.
12520         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12521         REPLACE_RAISE.
12522         * modules/raise (Status, Notice): Remove fields.
12523         (Files): Add m4/raise.m4.
12524         (Depends-on): Add signal, msvc-inval.
12525         (configure.ac): Use the common idioms.
12526         (Maintainer): Add me.
12527         * tests/test-signal-c++.cc: Check the signature of raise.
12528         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12529
12530 2011-09-23  Bruno Haible  <bruno@clisp.org>
12531
12532         pipe2: Fix compilation on pre-C99 compilers.
12533         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12534
12535 2011-09-23  Bruno Haible  <bruno@clisp.org>
12536
12537         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12538         * lib/msvc-nothrow.h: New file.
12539         * lib/msvc-nothrow.c: New file.
12540         * m4/msvc-nothrow.m4: New file.
12541         * modules/msvc-nothrow: New file.
12542         * lib/dup2.c: Include msvc-nothrow.h.
12543         (rpl_dup2): No need to protect _get_osfhandle call here.
12544         * lib/accept4.c: Include msvc-nothrow.h.
12545         * lib/error.c: Likewise.
12546         * lib/fcntl.c: Likewise.
12547         * lib/lseek.c: Likewise.
12548         * lib/nonblocking.c: Likewise.
12549         * lib/poll.c: Likewise.
12550         * lib/read.c: Likewise.
12551         * lib/select.c: Likewise.
12552         * lib/sockets.h: Likewise.
12553         * lib/sockets.c: Likewise.
12554         * lib/stdio-read.c: Likewise.
12555         * lib/stdio-write.c: Likewise.
12556         * lib/write.c: Likewise.
12557         * lib/w32sock.h: Likewise.
12558         * lib/w32spawn.h: Likewise.
12559         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12560         * lib/fsync.c: Likewise.
12561         * lib/isapipe.c: Likewise.
12562         * modules/dup2 (Depends-on): Add msvc-nothrow.
12563         * modules/accept4 (Depends-on): Likewise.
12564         * modules/error (Depends-on): Likewise.
12565         * modules/fcntl (Depends-on): Likewise.
12566         * modules/lseek (Depends-on): Likewise.
12567         * modules/nonblocking (Depends-on): Likewise.
12568         * modules/poll (Depends-on): Likewise.
12569         * modules/read (Depends-on): Likewise.
12570         * modules/select (Depends-on): Likewise.
12571         * modules/sockets (Depends-on): Likewise.
12572         * modules/sigpipe (Depends-on): Likewise.
12573         * modules/write (Depends-on): Likewise.
12574         * modules/accept (Depends-on): Likewise.
12575         * modules/bind (Depends-on): Likewise.
12576         * modules/connect (Depends-on): Likewise.
12577         * modules/gethostname (Depends-on): Likewise.
12578         * modules/getpeername (Depends-on): Likewise.
12579         * modules/getsockname (Depends-on): Likewise.
12580         * modules/getsockopt (Depends-on): Likewise.
12581         * modules/ioctl (Depends-on): Likewise.
12582         * modules/listen (Depends-on): Likewise.
12583         * modules/recv (Depends-on): Likewise.
12584         * modules/recvfrom (Depends-on): Likewise.
12585         * modules/send (Depends-on): Likewise.
12586         * modules/sendto (Depends-on): Likewise.
12587         * modules/setsockopt (Depends-on): Likewise.
12588         * modules/shutdown (Depends-on): Likewise.
12589         * modules/socket (Depends-on): Likewise.
12590         * modules/execute (Depends-on): Likewise.
12591         * modules/spawn-pipe (Depends-on): Likewise.
12592         * modules/flock (Depends-on): Likewise.
12593         * modules/fsync (Depends-on): Likewise.
12594         * modules/isapipe (Depends-on): Likewise.
12595         * tests/test-cloexec.c: Include msvc-nothrow.h.
12596         * tests/test-dup-safer.c: Likewise.
12597         * tests/test-dup2.c: Likewise.
12598         * tests/test-dup3.c: Likewise.
12599         * tests/test-fcntl.c: Likewise.
12600         * tests/test-pipe.c: Likewise.
12601         * tests/test-pipe2.c: Likewise.
12602         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12603         * modules/unistd-safer-tests (Depends-on): Likewise.
12604         * modules/dup2-tests (Depends-on): Likewise.
12605         * modules/dup3-tests (Depends-on): Likewise.
12606         * modules/fcntl-tests (Depends-on): Likewise.
12607         * modules/pipe-posix-tests (Depends-on): Likewise.
12608         * modules/pipe2-tests (Depends-on): Likewise.
12609
12610 2011-09-23  Bruno Haible  <bruno@clisp.org>
12611
12612         dup2: Make code more maintainable.
12613         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12614         (rpl_dup2): Use it.
12615         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12616         * modules/dup2 (configure.ac): Invoke it.
12617         Reported by Paul Eggert.
12618
12619 2011-09-23  Bruno Haible  <bruno@clisp.org>
12620
12621         msvc-inval: Fix compilation error.
12622         * lib/msvc-inval.h: Include <excpt.h>.
12623
12624 2011-09-23  Bruno Haible  <bruno@clisp.org>
12625
12626         mkdir: Tweak for MSVC 9.
12627         * lib/sys_stat.in.h: Update comments.
12628         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12629
12630         Tests for module 'chdir'.
12631         * modules/chdir-tests: New file.
12632         * tests/test-chdir.c: New file.
12633
12634         New module 'chdir'.
12635         * modules/chdir: New file.
12636         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12637         (chdir): New declaration.
12638         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12639         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12640         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12641         * tests/test-unistd-c++.cc: Check signature of chdir.
12642         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12643         * modules/chdir-long (Depends-on): Add chdir.
12644         * modules/fchdir (Depends-on): Likewise.
12645         * modules/rename (Depends-on): Likewise.
12646         * modules/savewd (Depends-on): Likewise.
12647
12648         rmdir: Support for mingw, MSVC 9.
12649         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12650         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12651
12652         getcwd: Tweak for MSVC 9.
12653         * lib/unistd.in.h: Update comments.
12654         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12655
12656 2011-09-22  Bruno Haible  <bruno@clisp.org>
12657
12658         strerror_r-posix: Avoid a link error on MSVC.
12659         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12660         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12661
12662 2011-09-22  Bruno Haible  <bruno@clisp.org>
12663
12664         select: Avoid link errors on MSVC.
12665         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12666         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12667         * modules/pselect (Link): Likewise.
12668         * NEWS: Mention the change.
12669         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12670         test-select-stdin against $(LIB_SELECT).
12671         * modules/pselect-tests (Makefile.am): Link test-pselect against
12672         $(LIB_SELECT).
12673
12674 2011-09-22  Bruno Haible  <bruno@clisp.org>
12675
12676         select: Avoid compilation error on MSVC.
12677         * lib/select.c: Don't include <stdbool.h>.
12678
12679 2011-09-21  Bruno Haible  <bruno@clisp.org>
12680
12681         Consolidate all uses of PATH_MAX in *.m4 files.
12682         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12683         macros.
12684         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12685         and gl_PATHMAX_SNIPPET.
12686         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12687         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12688         * modules/chdir-long (Files): Add m4/pathmax.m4.
12689         * modules/getcwd (Files): Likewise.
12690
12691 2011-09-21  Bruno Haible  <bruno@clisp.org>
12692
12693         ftruncate: Un-deprecate, concentrate on Win32 support.
12694         * modules/ftruncate (Status, Notice): Remove sections.
12695         (Depends-on): Add largefile.
12696         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12697         non-mingw platforms.
12698         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12699         include <io.h>.
12700         * modules/perror-tests (Depends-on): Add ftruncate.
12701         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12702         'ftruncate' module.
12703
12704 2011-09-21  Bruno Haible  <bruno@clisp.org>
12705
12706         Add dependencies to new dirent related modules.
12707         * modules/opendir (Depends-on): Add closedir.
12708         * modules/getcwd (Depends-on): Add opendir, closedir.
12709         * modules/dirent-safer-tests (Depends-on): Likewise.
12710         * modules/fdopendir-tests (Depends-on): Likewise.
12711         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12712         * modules/renameat-tests (Depends-on): Likewise.
12713
12714 2011-09-21  Bruno Haible  <bruno@clisp.org>
12715
12716         opendir: Avoid compilation error on mingw.
12717         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12718         * modules/opendir (Depends-on): Add unistd.
12719
12720 2011-09-21  Bruno Haible  <bruno@clisp.org>
12721
12722         ftruncate tests: Avoid a test failure on mingw.
12723         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12724
12725 2011-09-21  Bruno Haible  <bruno@clisp.org>
12726
12727         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12728         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12729         native Windows.
12730
12731 2011-09-21  Bruno Haible  <bruno@clisp.org>
12732
12733         New module 'fdopen'.
12734         * lib/stdio.in.h (fdopen): New declaration.
12735         * lib/fdopen.c: New file.
12736         * m4/fdopen.m4: New file.
12737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12738         REPLACE_FDOPEN.
12739         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12740         REPLACE_FDOPEN.
12741         * modules/fdopen: New file.
12742         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12743         * tests/test-stdio-c++.cc: Check signature of fdopen.
12744         * doc/posix-functions/fdopen.texi: Mention the new module.
12745
12746 2011-09-21  Bruno Haible  <bruno@clisp.org>
12747
12748         unlockpt tests: Avoid test failure on NetBSD 5.1.
12749         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12750         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12751
12752 2011-09-21  Bruno Haible  <bruno@clisp.org>
12753
12754         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12755         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12756         * tests/test-getlogin_r.c (main): Likewise.
12757
12758 2011-09-20  Bruno Haible  <bruno@clisp.org>
12759
12760         time tests: Don't require pid_t.
12761         * doc/posix-headers/time.texi: Revert last change.
12762         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12763         * tests/test-time.c: Comment out the check for pid_t.
12764
12765 2011-09-20  Bruno Haible  <bruno@clisp.org>
12766
12767         fsync tests: Avoid a test failure on mingw.
12768         * tests/test-fsync.c (main): Allow a failure with EIO.
12769
12770 2011-09-20  Bruno Haible  <bruno@clisp.org>
12771
12772         euidaccess: Update comments.
12773         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12774
12775 2011-09-20  Bruno Haible  <bruno@clisp.org>
12776
12777         Ensure EBADF returns for socket functions on mingw.
12778         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12779         descriptor is invalid.
12780         * lib/bind.c (rpl_bind): Likewise.
12781         * lib/connect.c (rpl_connect): Likewise.
12782         * lib/getpeername.c (rpl_getpeername): Likewise.
12783         * lib/getsockname.c (rpl_getsockname): Likewise.
12784         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12785         * lib/listen.c (rpl_listen): Likewise.
12786         * lib/recv.c (rpl_recv): Likewise.
12787         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12788         * lib/send.c (rpl_send): Likewise.
12789         * lib/sendto.c (rpl_sendto): Likewise.
12790         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12791         * lib/shutdown.c (rpl_shutdown): Likewise.
12792
12793 2011-09-20  Bruno Haible  <bruno@clisp.org>
12794
12795         select tests: EBADF tests.
12796         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12797         test_bad_fd): New functions.
12798         (test_function): Invoke also test_bad_fd.
12799
12800 2011-09-20  Bruno Haible  <bruno@clisp.org>
12801
12802         Tests for module 'posix_spawn_file_actions_addopen.
12803         * modules/posix_spawn_file_actions_addopen-tests: New file.
12804         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12805
12806         Tests for module 'posix_spawn_file_actions_adddup2'.
12807         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12808         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12809
12810         Tests for module 'posix_spawn_file_actions_addclose'.
12811         * modules/posix_spawn_file_actions_addclose-tests: New file.
12812         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12813
12814 2011-09-20  Bruno Haible  <bruno@clisp.org>
12815
12816         Tests for module 'unlockpt'.
12817         * modules/unlockpt-tests: New file.
12818         * tests/test-unlockpt.c: New file.
12819         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12820
12821         Tests for module 'grantpt'.
12822         * modules/grantpt-tests: New file.
12823         * tests/test-grantpt.c: New file.
12824         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12825
12826 2011-09-20  Bruno Haible  <bruno@clisp.org>
12827
12828         freopen tests: EBADF tests.
12829         * tests/test-freopen.c: Include errno.h, unistd.h.
12830         (main): Add tests for EBADF, commented out for the moment.
12831
12832         fclose tests: EBADF tests.
12833         * tests/test-fclose.c (main): Add tests for EBADF.
12834
12835         fflush tests: EBADF tests.
12836         * tests/test-fflush.c: Include errno.h, macros.h.
12837         (main): Add tests for EBADF.
12838
12839         ftello tests: EBADF tests.
12840         * tests/test-ftello4.sh: New file.
12841         * tests/test-ftello4.c: New file.
12842         * modules/ftello-tests (Files): Add them.
12843         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12844
12845         fseeko tests: EBADF tests.
12846         * tests/test-fseeko4.sh: New file.
12847         * tests/test-fseeko4.c: New file.
12848         * modules/fseeko-tests (Files): Add them.
12849         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12850
12851         Tests for function fputc().
12852         * modules/fputc-tests: New file.
12853         * tests/test-fputc.c: New file.
12854         * modules/stdio-tests (Depends-on): Add fputc-tests.
12855
12856         Tests for function fgetc().
12857         * modules/fgetc-tests: New file.
12858         * tests/test-fgetc.c: New file.
12859         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12860
12861         Tests for function fdopen().
12862         * modules/fdopen-tests: New file.
12863         * tests/test-fdopen.c: New file.
12864         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12865
12866         Tests for module 'vdprintf'.
12867         * modules/vdprintf-tests: New file.
12868         * tests/test-vdprintf.c: New file.
12869
12870         Tests for module 'dprintf'.
12871         * modules/dprintf-tests: New file.
12872         * tests/test-dprintf.c: New file.
12873
12874 2011-09-20  Bruno Haible  <bruno@clisp.org>
12875
12876         Tests for module 'ioctl'.
12877         * modules/ioctl-tests: New file.
12878         * tests/test-ioctl.c: New file.
12879
12880 2011-09-20  Bruno Haible  <bruno@clisp.org>
12881
12882         fcntl tests: EBADF tests.
12883         * tests/test-fcntl.c (main): Add more tests for EBADF.
12884
12885 2011-09-20  Bruno Haible  <bruno@clisp.org>
12886
12887         utimensat tests: EBADF tests.
12888         * tests/test-utimensat.c (main): Add tests for EBADF.
12889
12890         renameat tests: EBADF tests.
12891         * tests/test-renameat.c (main): Add tests for EBADF.
12892
12893         mkfifoat tests: EBADF tests.
12894         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12895
12896         readlinkat tests: EBADF tests.
12897         * tests/test-readlinkat.c (main): Add tests for EBADF.
12898
12899         symlinkat tests: EBADF tests.
12900         * tests/test-symlinkat.c (main): Add tests for EBADF.
12901
12902         linkat tests: EBADF tests.
12903         * tests/test-linkat.c (main): Add tests for EBADF.
12904
12905         Tests for module 'faccessat'.
12906         * modules/faccessat-tests: New file.
12907         * tests/test-faccessat.c: New file.
12908
12909         fdopendir tests: EBADF tests.
12910         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12911
12912         openat tests: EBADF tests.
12913         * tests/test-fchownat.c (main): Add tests for EBADF.
12914         * tests/test-fstatat.c (main): Likewise.
12915         * tests/test-mkdirat.c (main): Likewise.
12916         * tests/test-openat.c (main): Likewise.
12917         * tests/test-unlinkat.c (main): Likewise.
12918         * tests/test-fchmodat.c: New file.
12919         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12920         (Makefile.am): Also run 'test-fchmodat'.
12921
12922 2011-09-20  Bruno Haible  <bruno@clisp.org>
12923
12924         utimens, futimens, fdutimensat tests: EBADF tests.
12925         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12926
12927         Tests for function fstat().
12928         * modules/fstat-tests: New file.
12929         * tests/test-fstat.c: New file.
12930         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12931
12932 2011-09-20  Bruno Haible  <bruno@clisp.org>
12933
12934         test-ttyname_r tests: EBADF tests.
12935         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12936
12937         Tests for module 'isatty'.
12938         * modules/isatty-tests: New file.
12939         * tests/test-isatty.c: New file.
12940
12941         Tests for module 'write'.
12942         * modules/write-tests: New file.
12943         * tests/test-write.c: New file.
12944
12945         Tests for module 'read'.
12946         * modules/read-tests: New file.
12947         * tests/test-read.c: New file.
12948
12949         pwrite tests: EBADF tests.
12950         * tests/test-pwrite.c (main): Add tests for EBADF.
12951
12952         pread tests: EBADF tests.
12953         * tests/test-pread.c (main): Add tests for EBADF.
12954
12955         lseek tests: EBADF tests.
12956         * tests/test-lseek.c (main): Add more tests for EBADF.
12957
12958         Tests for module 'ftruncate'.
12959         * modules/ftruncate-tests: New file.
12960         * tests/test-ftruncate.sh: New file.
12961         * tests/test-ftruncate.c: New file.
12962
12963         fsync tests: EBADF tests.
12964         * tests/test-fsync.c (main): Add more tests for EBADF.
12965
12966         fdatasync tests: EBADF tests.
12967         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12968
12969         Tests for module 'fchown'.
12970         * modules/fchown-tests: New file.
12971         * tests/test-fchown.c: New file.
12972
12973         Tests for module 'fchmod'.
12974         * modules/fchmod-tests: New file.
12975         * tests/test-fchmod.c: New file.
12976
12977         fchdir tests: EBADF tests.
12978         * tests/test-fchdir.c (main): Add more tests for EBADF.
12979
12980         dup2 tests: EBADF tests.
12981         * tests/test-dup2.c (main): Add more tests for EBADF.
12982
12983         Tests for module 'dup'.
12984         * modules/dup-tests: New file.
12985         * tests/test-dup.c: New file.
12986
12987         Tests for module 'close'.
12988         * modules/close-tests: New file.
12989         * tests/test-close.c: New file.
12990
12991 2011-09-20  Bruno Haible  <bruno@clisp.org>
12992
12993         Tests for module 'shutdown'.
12994         * modules/shutdown-tests: New file.
12995         * tests/test-shutdown.c: New file.
12996
12997         Tests for module 'setsockopt'.
12998         * modules/setsockopt-tests: New file.
12999         * tests/test-setsockopt.c: New file.
13000
13001         Tests for module 'sendto'.
13002         * modules/sendto-tests: New file.
13003         * tests/test-sendto.c: New file.
13004
13005         Tests for module 'send'.
13006         * modules/send-tests: New file.
13007         * tests/test-send.c: New file.
13008
13009         Tests for module 'recvfrom'.
13010         * modules/recvfrom-tests: New file.
13011         * tests/test-recvfrom.c: New file.
13012
13013         Tests for module 'recv'.
13014         * modules/recv-tests: New file.
13015         * tests/test-recv.c: New file.
13016
13017         Tests for module 'listen'.
13018         * modules/listen-tests: New file.
13019         * tests/test-listen.c: New file.
13020
13021         Tests for module 'getsockopt'.
13022         * modules/getsockopt-tests: New file.
13023         * tests/test-getsockopt.c: New file.
13024
13025         Tests for module 'getsockname'.
13026         * modules/getsockname-tests: New file.
13027         * tests/test-getsockname.c: New file.
13028
13029         Tests for module 'getpeername'.
13030         * modules/getpeername-tests: New file.
13031         * tests/test-getpeername.c: New file.
13032
13033         Tests for module 'connect'.
13034         * modules/connect-tests: New file.
13035         * tests/test-connect.c: New file.
13036
13037         Tests for module 'bind'.
13038         * modules/bind-tests: New file.
13039         * tests/test-bind.c: New file.
13040
13041         accept4 tests: Fix for native Windows.
13042         * tests/test-accept4.c: Include sockets.h.
13043         (main): Invoke gl_sockets_startup.
13044         * modules/accept4-tests (Depends-on): Add sockets.
13045
13046         accept tests: Fix for native Windows.
13047         * tests/test-accept.c: Include sockets.h.
13048         (main): Invoke gl_sockets_startup.
13049         * modules/accept-tests (Depends-on): Add sockets.
13050
13051 2011-09-19  Bruno Haible  <bruno@clisp.org>
13052
13053         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13054         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13055         do...while(0).
13056         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13057         Suggested by Paul Eggert.
13058
13059 2011-09-19  Bruno Haible  <bruno@clisp.org>
13060
13061         sched: Ensure pid_t is defined.
13062         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13063         not define pid_t.
13064         * lib/sched.in.h: Include <sys/types.h>.
13065         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13067
13068 2011-09-19  Bruno Haible  <bruno@clisp.org>
13069
13070         msvc-inval: Ensure the entire expansion is a single statement.
13071         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13072         of braces.
13073
13074 2011-09-19  Jim Meyering  <meyering@redhat.com>
13075
13076         tests: use printf, not echo in init.sh's warn_ function
13077         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13078         misbehave when given strings containing a backslash or starting
13079         with e.g., -n.  James Youngman suggested setting IFS.
13080
13081 2011-09-19  Eric Blake  <eblake@redhat.com>
13082
13083         futimens: enhance test
13084         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13085         closed non-negative fd.
13086
13087         date: accept 'hence' as opposite of 'ago'
13088         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13089         * tests/test-parse-datetime.c (main): Enhance test.
13090         Suggested by Jesse Wilson.
13091
13092 2011-09-19  Jim Meyering  <meyering@redhat.com>
13093
13094         getcwd: don't fail in a deep directory on a system without openat
13095         Before this change, getcwd would fail when called from a directory
13096         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13097         the non-openat implementation used "..", "../..", "../../..", etc.
13098         to access ancestor directories.  With too many, that string would
13099         be longer than PATH_MAX.
13100         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13101         using gnulib's openat replacement.
13102         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13103         we're using the replacement function.
13104
13105 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13106
13107         maint.mk: avoid warnings from perl about missing files
13108         * top/maint.mk (def_sym_regex): Ignore files listed in
13109         $(gl_other_headers_) that do not exist, say because a project
13110         does not use a corresponding module.
13111
13112 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13113
13114         stat: use pathmax.h only if needed
13115         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13116         This is better for Emacs, which does not have a mingw port and
13117         therefore can avoid the pathmax module.
13118
13119         utimens: remove dependency on dup2
13120         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13121         to work around the Linux kernel bug.
13122         * modules/utimens (Depends-on): Remove dup2.
13123
13124 2011-09-18  Bruno Haible  <bruno@clisp.org>
13125
13126         inet_ntop, inet_pton: Look for it also in libresolv.
13127         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13128         libnsl, search for it in libresolv.
13129         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13130         Needed on Solaris 7.
13131
13132 2011-09-18  Bruno Haible  <bruno@clisp.org>
13133
13134         accept, accept4 tests: Avoid link error on Solaris.
13135         * modules/accept-tests (Makefile.am): Link test-accept against
13136         $(LIBSOCKET).
13137         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13138         $(LIBSOCKET).
13139
13140         accept4: Avoid link error on Solaris.
13141         * modules/accept4 (Link): New section.
13142
13143         socket functions: Avoid link errors on Solaris.
13144         * modules/accept (Depends-on): Add socketlib.
13145         (Link): New section.
13146         * modules/bind (Depends-on): Add socketlib.
13147         (Link): New section.
13148         * modules/connect (Depends-on): Add socketlib.
13149         (Link): New section.
13150         * modules/getpeername (Depends-on): Add socketlib.
13151         (Link): New section.
13152         * modules/getsockname (Depends-on): Add socketlib.
13153         (Link): New section.
13154         * modules/getsockopt (Depends-on): Add socketlib.
13155         (Link): New section.
13156         * modules/listen (Depends-on): Add socketlib.
13157         (Link): New section.
13158         * modules/recv (Depends-on): Add socketlib.
13159         (Link): New section.
13160         * modules/recvfrom (Depends-on): Add socketlib.
13161         (Link): New section.
13162         * modules/send (Depends-on): Add socketlib.
13163         (Link): New section.
13164         * modules/sendto (Depends-on): Add socketlib.
13165         (Link): New section.
13166         * modules/setsockopt (Depends-on): Add socketlib.
13167         (Link): New section.
13168         * modules/shutdown (Depends-on): Add socketlib.
13169         (Link): New section.
13170         * modules/socket (Depends-on): Add socketlib.
13171         (Link): New section.
13172
13173 2011-09-18  Bruno Haible  <bruno@clisp.org>
13174
13175         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13176         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13177         than 5 seconds.
13178         * modules/ptsname-tests (configure.ac): Test for alarm.
13179
13180 2011-09-18  Bruno Haible  <bruno@clisp.org>
13181
13182         posix_spawn_file_actions_add*: Fix module dependencies.
13183         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13184         posix_spawn_file_actions_init.
13185         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13186         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13187
13188 2011-09-18  Bruno Haible  <bruno@clisp.org>
13189
13190         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13191         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13192         * tests/test-renameat.c (main): Likewise.
13193
13194 2011-09-18  Bruno Haible  <bruno@clisp.org>
13195
13196         Tests for module 'accept4'.
13197         * modules/accept4-tests: New file.
13198         * tests/test-accept4.c: New file.
13199
13200 2011-09-18  Bruno Haible  <bruno@clisp.org>
13201
13202         Tests for module 'accept'.
13203         * modules/accept-tests: New file.
13204         * tests/test-accept.c: New file.
13205
13206 2011-09-18  Bruno Haible  <bruno@clisp.org>
13207
13208         dup2: Support for MSVC.
13209         * lib/dup2.c: Include msvc-inval.h.
13210         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13211         _get_osfhandle calls.
13212         * modules/dup2 (Depends-on): Add msvc-inval.
13213         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13214
13215         New module 'msvc-inval'.
13216         * lib/msvc-inval.h: New file.
13217         * lib/msvc-inval.c: New file.
13218         * m4/msvc-inval.m4: New file.
13219         * modules/msvc-inval: New file.
13220
13221 2011-09-17  Bruno Haible  <bruno@clisp.org>
13222
13223         Tests for module 'pclose'.
13224         * modules/pclose-tests: New file.
13225
13226         New module 'pclose'.
13227         * lib/stdio.in.h (pclose): New declaration.
13228         * lib/pclose.c: New file.
13229         * m4/pclose.m4: New file.
13230         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13231         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13232         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13233         * modules/pclose: New file.
13234         * modules/popen-tests (Depends-on): Add pclose.
13235         * modules/popen-safer-tests (Depends-on): Likewise.
13236         * doc/posix-functions/pclose.texi: Mention the new module.
13237
13238 2011-09-17  Bruno Haible  <bruno@clisp.org>
13239
13240         popen: Support for MSVC.
13241         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13242         * lib/popen.c (popen): Provide alternate definition for native Windows.
13243         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13245         * modules/popen (Depends-on, configure.ac): Update condition.
13246         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13247         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13248         fixed.
13249
13250 2011-09-17  Bruno Haible  <bruno@clisp.org>
13251
13252         isnanl, isnand, isnanf: Work around MSVC bug.
13253         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13254
13255 2011-09-17  Bruno Haible  <bruno@clisp.org>
13256
13257         sys_socket tests: Fix recent mistake.
13258         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13259
13260 2011-09-17  Bruno Haible  <bruno@clisp.org>
13261
13262         putenv: Support for MSVC.
13263         * modules/putenv (Depends-on): Add environ.
13264         * lib/putenv.c (environ): Disable declaration.
13265         * lib/unistd.in.h: Update comment.
13266
13267 2011-09-17  Bruno Haible  <bruno@clisp.org>
13268
13269         math: Avoid macro redefinition warnings on MSVC.
13270         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13271         Undefine before redefining.
13272
13273 2011-09-17  Bruno Haible  <bruno@clisp.org>
13274
13275         doc: Mention functions which are declared as macros.
13276         * doc/posix-functions/*[fl].texi: Mention that some functions are
13277         defined as macros with arguments only.
13278
13279 2011-09-17  Bruno Haible  <bruno@clisp.org>
13280
13281         Add dependencies to new dirent related modules.
13282         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13283         * modules/fts (Depends-on): Likewise.
13284         * modules/glob (Depends-on): Likewise.
13285         * modules/savedir (Depends-on): Likewise.
13286         * modules/scandir (Depends-on): Likewise.
13287         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13288         * modules/fdopendir (Depends-on): Add opendir.
13289
13290 2011-09-17  Bruno Haible  <bruno@clisp.org>
13291
13292         inet_pton: Support for MSVC on Windows Vista or newer.
13293         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13294         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13295         HAVE_DECL_INET_PTON is defined.
13296         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13297         On platforms with <winsock2.h>, test whether inet_pton is declared in
13298         <ws2tcpip.h>. If so, arrange to replace it.
13299         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13300         REPLACE_INET_PTON.
13301         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13302         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13303         (Depends-on, configure.ac): Update condition.
13304         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13305
13306 2011-09-17  Bruno Haible  <bruno@clisp.org>
13307
13308         inet_ntop: Support for MSVC on Windows Vista or newer.
13309         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13310         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13311         HAVE_DECL_INET_NTOP is defined.
13312         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13313         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13314         <ws2tcpip.h>. If so, arrange to replace it.
13315         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13316         REPLACE_INET_NTOP.
13317         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13318         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13319         (Depends-on, configure.ac): Update condition.
13320         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13321
13322 2011-09-16  Eric Blake  <eblake@redhat.com>
13323
13324         test-fsync: yet another enhancement
13325         * tests/test-fsync.c (main): Also test behavior on read-only text
13326         file.
13327
13328 2011-09-16  Bruno Haible  <bruno@clisp.org>
13329
13330         Enhance fsync, fdatasync tests.
13331         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13332         * tests/test-fdatasync.c (main): Likewise.
13333
13334 2011-09-16  Bruno Haible  <bruno@clisp.org>
13335
13336         Support for MSVC compiler: Ensure mode_t gets defined.
13337         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13338         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13339         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13340         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13341         * tests/test-fcntl-h.c: Check that mode_t is defined.
13342         * tests/test-sys_stat.c: Likewise.
13343         * tests/test-sys_types.c: Likewise.
13344         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13345         * doc/posix-headers/sys_stat.texi: Likewise.
13346         * doc/posix-headers/sys_types.texi: Likewise.
13347
13348 2011-09-16  Bruno Haible  <bruno@clisp.org>
13349
13350         sys_stat: Support for MSVC.
13351         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13352         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13353         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13354         MSVC.
13355
13356 2011-09-16  Bruno Haible  <bruno@clisp.org>
13357
13358         Support for MSVC compiler: Ensure off_t gets defined.
13359         * lib/unistd.in.h: Include <sys/types.h>.
13360         * tests/test-fcntl-h.c: Check that off_t is defined.
13361         * tests/test-sys_stat.c: Likewise.
13362         * tests/test-sys_types.c: Likewise.
13363
13364 2011-09-16  Eric Blake  <eblake@redhat.com>
13365
13366         fdatasync: port to Solaris
13367         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13368         * modules/fdatasync (Link): Document it.
13369         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13370
13371         fdatasync: port to MacOS X 10.7
13372         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13373         declared.
13374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13375         * modules/unistd (Makefile.am): Substitute it.
13376         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13377         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13378
13379         fdatasync: minor improvements
13380         * modules/fdatasync (Depends-on): Add condition for fsync.
13381         * lib/fdatasync.c (fdatasync): Add comment.
13382         * tests/test-unistd-c++.cc: Test fdatasync.
13383
13384         unistd: update refs to newer POSIX
13385         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13386         Suggested by Bruno Haible.
13387
13388         fdatasync: new module
13389         * modules/fsync (Description): Document difference to fdatasync.
13390         * modules/fdatasync: New module.
13391         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13392         * lib/fdatasync.c (fdatasync): Likewise.
13393         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13394         defaults.
13395         * modules/unistd (Makefile.am): Set witnesses.
13396         * lib/unistd.in.h (fdatasync): Declare.
13397         * MODULES.html.sh: Document it.
13398         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13399         * modules/fdatasync-tests: New test.
13400         * tests/test-fdatasync.c: Likewise.
13401
13402 2011-09-16  Eric Blake  <eblake@redhat.com>
13403
13404         test-fsync: enhance tests
13405         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13406         * tests/test-fsync.c (main): Enhance test.
13407
13408 2011-09-15  Bruno Haible  <bruno@clisp.org>
13409
13410         Support for MSVC compiler: Ensure ssize_t gets defined.
13411         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13412         * doc/posix-headers/stdio.texi: Likewise.
13413         * modules/stdio (Depends-on): Add ssize_t.
13414         * modules/sys_socket (Depends-on): Likewise.
13415         * modules/sys_types (Depends-on): Likewise.
13416         * modules/sys_uio (Depends-on): Likewise.
13417         * modules/unistd (Depends-on): Likewise.
13418         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13419         * tests/test-sys_types.c: Check that ssize_t is defined.
13420
13421 2011-09-14  Bruno Haible  <bruno@clisp.org>
13422
13423         Avoid using #, the m4 comment starter character, near brackets.
13424         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13425         delimiter character in sed expressions.
13426         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13427         Suggested by Eric Blake.
13428
13429         Properly quote AC_CHECK_DECLS' 4th argument.
13430         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13431         argument.
13432         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13433         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13434         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13435         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13436         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13437         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13438         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13439         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13440         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13441         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13442         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13443         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13444         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13445         * m4/isinf.m4 (gl_ISINF): Likewise.
13446         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13447         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13448         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13449         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13450         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13451         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13452         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13453         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13454         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13455         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13456         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13457         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13459         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13461         Reported by Eric Blake.
13462
13463         Properly quote AC_CHECK_DECL's 4th argument.
13464         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13465         argument.
13466         * m4/argp.m4 (gl_ARGP): Likewise.
13467         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13468         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13469         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13470         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13471         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13472         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13473         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13474         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13475         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13476         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13477         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13478         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13479         Reported by Eric Blake.
13480
13481 2011-09-14  Eric Blake  <eblake@redhat.com>
13482
13483         opendir: avoid compile warning
13484         * lib/opendir.c (includes): Always include errno.h.
13485         Reported by Tatsuro MATSUOKA.
13486
13487 2011-09-14  Jim Meyering  <meyering@redhat.com>
13488
13489         maint.mk: sc_tight_scope: propagate failure from sub-make
13490         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13491         Reported by Martin von Gagern.
13492
13493 2011-09-13  Bruno Haible  <bruno@clisp.org>
13494
13495         tempname: Support for MSVC.
13496         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13497         MSVC.
13498         * modules/tempname (Depends-on): Add fcntl-h.
13499
13500 2011-09-13  Bruno Haible  <bruno@clisp.org>
13501
13502         sys_time: Support for MSVC.
13503         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13504         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13505         include <winsock2.h>.
13506         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13507         function declarations that collide with POSIX.
13508         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13509         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13510
13511 2011-09-13  Bruno Haible  <bruno@clisp.org>
13512
13513         stat: Support for MSVC.
13514         * lib/stat.c: Include pathmax.h.
13515         * modules/stat (Depends-on): Add pathmax.
13516
13517         pathmax: Support for native Windows.
13518         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13519
13520 2011-09-12  Bruno Haible  <bruno@clisp.org>
13521
13522         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13523         * lib/dirent.in.h (struct dirent): New type.
13524         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13525         DT_WHT): New macros.
13526         (DIR): New type.
13527         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13528         (readdir, rewinddir): New declarations.
13529         * lib/dirent-private.h: New file.
13530         * lib/opendir.c: New file.
13531         * lib/readdir.c: New file.
13532         * lib/rewinddir.c: New file.
13533         * lib/closedir.c: New file.
13534         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13535         * m4/opendir.m4: New file.
13536         * m4/readdir.m4: New file.
13537         * m4/rewinddir.m4: New file.
13538         * m4/closedir.m4: New file.
13539         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13540         REPLACE_CLOSEDIR here.
13541         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13542         readdir, rewinddir are declared.
13543         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13544         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13545         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13546         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13547         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13548         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13549         * modules/opendir: New file.
13550         * modules/readdir: New file.
13551         * modules/rewinddir: New file.
13552         * modules/closedir: New file.
13553         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13554         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13555         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13556         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13557         * NEWS: Mention the 'fchdir' change.
13558
13559 2011-09-11  Bruno Haible  <bruno@clisp.org>
13560
13561         asm-underscore.m4: Support for MSVC.
13562         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13563         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13564
13565 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13566
13567         Doc about crypt functions.
13568         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13569         needing for _GNU_SOURCE to get crypt.
13570         * doc/posix-functions/encrypt.texi: Likewise.
13571         * doc/posix-functions/setkey.texi: Likewise.
13572
13573 2011-09-11  Bruno Haible  <bruno@clisp.org>
13574
13575         doc: Update regarding MSVC 9.
13576         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13577         tested".
13578         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13579         * doc/posix-headers/*.texi: Likewise.
13580         * doc/pastposix-functions/*.texi: Likewise.
13581         * doc/glibc-functions/*.texi: Likewise.
13582         * doc/glibc-headers/*.texi: Likewise.
13583
13584 2011-09-11  Bruno Haible  <bruno@clisp.org>
13585
13586         unistd et al.: Don't assume <unistd.h> exists.
13587         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13588         does not exist.
13589         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13590         exist. But include <stdlib.h>.
13591         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13592         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13593         symlink() does not exist.
13594         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13595         include <io.h> instead.
13596         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13597         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13598         include <direct.h> instead.
13599         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13600         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13601         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13602         <io.h> instead.
13603         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13604         correctly if the system does not have hard links.
13605         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13606         <direct.h> instead.
13607         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13608         it when looking for function declarations.
13609         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13610         <direct.h> and <io.h> instead.
13611         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13612
13613 2011-09-11  Bruno Haible  <bruno@clisp.org>
13614
13615         strcase: Support for MSVC.
13616         * modules/strcase (Status, Notice): Remove obsoletion mark.
13617         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13618         * doc/posix-functions/strncasecmp.texi: Likewise.
13619
13620         strings: Don't assume <strings.h> exists.
13621         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13622         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13623         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13624         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13625
13626 2011-09-11  Bruno Haible  <bruno@clisp.org>
13627
13628         dirent: Don't assume <dirent.h> exists.
13629         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13630         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13631         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13632         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13633
13634 2011-09-11  Bruno Haible  <bruno@clisp.org>
13635
13636         Fix wint_t on MSVC.
13637         * lib/wchar.in.h (wint_t): On MSVC, override it.
13638         * lib/wctype.in.h (wint_t): Likewise.
13639         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13640         MSVC.
13641         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13642         * doc/posix-headers/wctype.texi: Likewise.
13643
13644 2011-09-11  Bruno Haible  <bruno@clisp.org>
13645
13646         sys_types: Fix typo.
13647         * lib/sys_types.in.h: Fix typo in comment.
13648         Reported by Paul Eggert.
13649
13650         Support for MSVC compiler: Ensure size_t gets defined.
13651         * modules/strings (Depends-on): Add 'sys_types'.
13652         * modules/sys_uio (Depends-on): Likewise.
13653         * lib/sys_uio.in.h: Update comment.
13654
13655         C++ tests for module 'sys_types'.
13656         * modules/sys_types-c++-tests: New file.
13657         * tests/test-sys_types-c++.cc: New file.
13658
13659         Tests for module 'sys_types'.
13660         * modules/sys_types-tests: New file.
13661         * tests/test-sys_types.c: New file.
13662
13663         New module 'sys_types'.
13664         * lib/sys_types.in.h: New file.
13665         * m4/sys_types_h.m4: New file.
13666         * modules/sys_types: New file.
13667         * doc/posix-headers/sys_types.texi: Mention the new module and the
13668         size_t problem on MSVC 9.
13669
13670 2011-09-11  Bruno Haible  <bruno@clisp.org>
13671
13672         Support for MSVC compiler: Avoid division by a literal 0.
13673         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13674         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13675         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13676         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13677         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13678         * tests/infinity.h: New file.
13679         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13680         on MSVC.
13681         * tests/test-ceilf1.c: Include infinity.h.
13682         (main): Use Infinityf.
13683         * tests/test-ceil1.c: Include infinity.h.
13684         (main): Use Infinityd.
13685         * tests/test-ceill.c: Include infinity.h.
13686         (main): Use Infinityl.
13687         * tests/test-dprintf-posix.c: Include infinity.h.
13688         (test_function): Use Infinityd.
13689         * tests/test-floorf1.c: Include infinity.h.
13690         (main): Use Infinityf.
13691         * tests/test-floor1.c: Include infinity.h.
13692         (main): Use Infinityd.
13693         * tests/test-floorl.c: Include infinity.h.
13694         (main): Use Infinityl.
13695         * tests/test-fprintf-posix.c: Include infinity.h.
13696         (test_function): Use Infinityd.
13697         * tests/test-frexp.c: Include infinity.h.
13698         (main): Use Infinityd.
13699         * tests/test-frexpl.c: Include infinity.h.
13700         (main): Use Infinityl.
13701         * tests/test-isfinite.c: Include infinity.h.
13702         (test_isfinitef): Use Infinityf.
13703         (test_isfinited): Use Infinityd.
13704         (test_isfinitel): Use Infinityl.
13705         * tests/test-isinf.c: Include infinity.h.
13706         (test_isinff): Use Infinityf.
13707         (test_isinfd): Use Infinityd.
13708         (test_isinfl): Use Infinityl.
13709         * tests/test-isnan.c: Include infinity.h.
13710         (test_float): Use Infinityf.
13711         (test_double): Use Infinityd.
13712         (test_long_double): Use Infinityl.
13713         * tests/test-isnanf.h: Include infinity.h.
13714         (main): Use Infinityf.
13715         * tests/test-isnand.h: Include infinity.h.
13716         (main): Use Infinityd.
13717         * tests/test-isnanl.h: Include infinity.h.
13718         (main): Use Infinityl.
13719         * tests/test-ldexpl.c: Include infinity.h.
13720         (main): Use Infinityl.
13721         * tests/test-printf-posix.h: Include infinity.h.
13722         (test_function): Use Infinityd.
13723         * tests/test-roundf1.c: Include infinity.h.
13724         (main): Use Infinityf.
13725         * tests/test-round1.c: Include infinity.h.
13726         (main): Use Infinityd.
13727         * tests/test-roundl.c: Include infinity.h.
13728         (main): Use Infinityl.
13729         * tests/test-signbit.c: Include infinity.h.
13730         (test_signbitf): Use Infinityf.
13731         (test_signbitd): Use Infinityd.
13732         (test_signbitl): Use Infinityl.
13733         * tests/test-snprintf-posix.h: Include infinity.h.
13734         (test_function): Use Infinityd, Infinityl.
13735         * tests/test-sprintf-posix.h: Include infinity.h.
13736         (test_function): Use Infinityd, Infinityl.
13737         * tests/test-truncf1.c: Include infinity.h.
13738         (main): Use Infinityf.
13739         * tests/test-trunc1.c: Include infinity.h.
13740         (main): Use Infinityd.
13741         * tests/test-truncl.c: Include infinity.h.
13742         (main): Use Infinityl.
13743         * tests/test-vasnprintf-posix.c: Include infinity.h.
13744         (test_function): Use Infinityd, Infinityl.
13745         * tests/test-vasprintf-posix.c: Include infinity.h.
13746         (test_function): Use Infinityd, Infinityl.
13747         * modules/ceilf-tests (Files): Add tests/infinity.h.
13748         * modules/ceil-tests (Files): Likewise.
13749         * modules/ceill-tests (Files): Likewise.
13750         * modules/dprintf-posix-tests (Files): Likewise.
13751         * modules/floorf-tests (Files): Likewise.
13752         * modules/floor-tests (Files): Likewise.
13753         * modules/floorl-tests (Files): Likewise.
13754         * modules/fprintf-posix-tests (Files): Likewise.
13755         * modules/frexp-tests (Files): Likewise.
13756         * modules/frexp-nolibm-tests (Files): Likewise.
13757         * modules/frexpl-tests (Files): Likewise.
13758         * modules/frexpl-nolibm-tests (Files): Likewise.
13759         * modules/isfinite-tests (Files): Likewise.
13760         * modules/isinf-tests (Files): Likewise.
13761         * modules/isnan-tests (Files): Likewise.
13762         * modules/isnanf-tests (Files): Likewise.
13763         * modules/isnanf-nolibm-tests (Files): Likewise.
13764         * modules/isnand-tests (Files): Likewise.
13765         * modules/isnand-nolibm-tests (Files): Likewise.
13766         * modules/isnanl-tests (Files): Likewise.
13767         * modules/isnanl-nolibm-tests (Files): Likewise.
13768         * modules/ldexpl-tests (Files): Likewise.
13769         * modules/printf-posix-tests (Files): Likewise.
13770         * modules/roundf-tests (Files): Likewise.
13771         * modules/round-tests (Files): Likewise.
13772         * modules/roundl-tests (Files): Likewise.
13773         * modules/signbit-tests (Files): Likewise.
13774         * modules/snprintf-posix-tests (Files): Likewise.
13775         * modules/sprintf-posix-tests (Files): Likewise.
13776         * modules/truncf-tests (Files): Likewise.
13777         * modules/trunc-tests (Files): Likewise.
13778         * modules/truncl-tests (Files): Likewise.
13779         * modules/vasnprintf-posix-tests (Files): Likewise.
13780         * modules/vasprintf-posix-tests (Files): Likewise.
13781         * modules/vdprintf-posix-tests (Files): Likewise.
13782         * modules/vfprintf-posix-tests (Files): Likewise.
13783         * modules/vprintf-posix-tests (Files): Likewise.
13784         * modules/vsnprintf-posix-tests (Files): Likewise.
13785         * modules/vsprintf-posix-tests (Files): Likewise.
13786         * modules/xprintf-posix-tests (Files): Likewise.
13787
13788 2011-09-11  Bruno Haible  <bruno@clisp.org>
13789
13790         Ensure pid_t gets defined.
13791         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13792         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13793         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13794         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13795         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13796         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13797         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13798         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13799         * tests/test-fcntl-h.c: Check that pid_t is defined.
13800         * tests/test-sched.c: Likewise.
13801         * tests/test-termios.c: Likewise.
13802         * tests/test-time.c: Likewise.
13803         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13804         * doc/posix-headers/signal.texi: Likewise.
13805         * doc/posix-headers/sys_types.texi: Likewise.
13806         * doc/posix-headers/time.texi: Likewise.
13807
13808 2011-09-11  Bruno Haible  <bruno@clisp.org>
13809
13810         acl: Fix compilation on Solaris 10 (older version).
13811         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13812         of ACE_EVERYONE.
13813         * lib/set-mode-acl.c (qset_acl): Likewise.
13814         Reported by Christian Jullien <eligis@orange.fr>.
13815
13816 2011-09-10  Bruno Haible  <bruno@clisp.org>
13817
13818         iconv, unsetenv: Add support for MSVC compiler.
13819         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13820         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13821
13822 2011-09-10  Bruno Haible  <bruno@clisp.org>
13823
13824         *printf: Add support for MSVC compiler.
13825         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13826         handles the exception caused by the %n directive. When cross-compiling,
13827         guess no on native Windows.
13828         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13829         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13830         emulate it through vsnprintf.
13831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13832         * doc/posix-functions/dprintf.texi: Update documentation regarding
13833         MSVC 9.
13834         * doc/posix-functions/fprintf.texi: Likewise.
13835         * doc/posix-functions/printf.texi: Likewise.
13836         * doc/posix-functions/snprintf.texi: Likewise.
13837         * doc/posix-functions/sprintf.texi: Likewise.
13838         * doc/posix-functions/swprintf.texi: Likewise.
13839         * doc/posix-functions/vdprintf.texi: Likewise.
13840         * doc/posix-functions/vfprintf.texi: Likewise.
13841         * doc/posix-functions/vprintf.texi: Likewise.
13842         * doc/posix-functions/vsnprintf.texi: Likewise.
13843         * doc/posix-functions/vsprintf.texi: Likewise.
13844         * doc/glibc-functions/asprintf.texi: Likewise.
13845         * doc/glibc-functions/obstack_printf.texi: Likewise.
13846         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13847         * doc/glibc-functions/vasprintf.texi: Likewise.
13848
13849 2011-09-10  Bruno Haible  <bruno@clisp.org>
13850
13851         nocrash: Add support for native Windows.
13852         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13853
13854 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13855             Bruno Haible  <bruno@clisp.org>
13856
13857         absolute-header, include-next: Add support for MSVC compiler.
13858         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13859         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13860         directory separator in #line directives.
13861         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13862         recognize also backslash as directory separator in #line directives.
13863
13864 2011-09-08  Jim Meyering  <meyering@redhat.com>
13865
13866         maint.mk: mark the post-release commit log with "maint: " prefix
13867         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13868         one-line commit-log summary.
13869
13870 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13871             Bruno Haible  <bruno@clisp.org>
13872
13873         Doc about crypt functions.
13874         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13875         systems.
13876         * doc/posix-functions/encrypt.texi: Likewise.
13877         * doc/posix-functions/setkey.texi: Likewise.
13878
13879 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13880
13881         * lib/gc.h: Fix copyright header.
13882
13883 2011-09-07  Bruno Haible  <bruno@clisp.org>
13884
13885         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13886         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13887         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13888
13889 2011-09-07  Bruno Haible  <bruno@clisp.org>
13890
13891         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13892         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13893         * lib/freopen.c: Likewise.
13894         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13895         * lib/lstat.c: Likewise.
13896         * lib/stat.c: Likewise.
13897         * lib/open.c: Use different syntax for include of <fcntl.h>.
13898         * lib/openat.c: Include fcntl.h again, explicitly.
13899
13900 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13901
13902         parse-datetime: document the newly accepted format
13903         * doc/parse-datetime.texi (Combined date and time of day items):
13904         New section.
13905
13906 2011-09-06  Bruno Haible  <bruno@clisp.org>
13907
13908         acl: Fix a test failure on newer Solaris 10 with ZFS.
13909         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13910         ENOSYS as no ACL.
13911         Reported by Jim Meyering.
13912
13913 2011-09-06  Bruno Haible  <bruno@clisp.org>
13914
13915         acl: Update for AIX >= 5.3 with NFS.
13916         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13917         ENOSYS as no ACL.
13918
13919         acl: Fix a test failure on AIX >= 5.3 with NFS.
13920         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13921         as no ACL.
13922
13923 2011-09-06  Bruno Haible  <bruno@clisp.org>
13924
13925         acl: Fix a test failure on IRIX 6.5 with NFS.
13926         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13927         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13928         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13929         * lib/copy-acl.c (qcopy_acl): Likewise.
13930
13931 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13932
13933         openat: port to AIX 7.1 with large files
13934         AIX 7.1 does a "#define openat open64at" if large files are in use,
13935         so we can't simply #undef openat.  Use the orig_openat trick (similar
13936         to orig_open in lib/open.c) to work around the problem.  Problem
13937         reported by Kevin Brott for GNU tar, in the thread containing
13938         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13939         * lib/openat.c (__need_system_fcntl_h): Define first.
13940         Include <fcntl.h> and <sys/types.h> before undefining.
13941         (orig_openat) [HAVE_OPENAT]: New inline function.
13942         (openat) [HAVE_OPENAT]: Do not undef.
13943         (rpl_openat): Use orig_openat, not openat.
13944
13945 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13946             Bruno Haible  <bruno@clisp.org>
13947
13948         acl: Avoid errors on NonStop Kernel.
13949         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13950         ENOTSUP errors.
13951
13952 2011-09-05  Bruno Haible  <bruno@clisp.org>
13953
13954         acl: Clean up Solaris code.
13955         * lib/acl-internal.h: Remove no-op #if.
13956         * lib/file-has-acl.c: Likewise.
13957         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13958         * lib/copy-acl.c (qcopy_acl): Likewise.
13959
13960 2011-09-05  Bruno Haible  <bruno@clisp.org>
13961
13962         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13963         binaries built on the original Solaris 10.
13964         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13965         trivial.
13966
13967 2011-09-05  Bruno Haible  <bruno@clisp.org>
13968
13969         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13970         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13971         10.
13972         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13973         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13974         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13975         instead of acl_get, facl_get, acl_set, facl_set.
13976
13977 2011-09-05  Bruno Haible  <bruno@clisp.org>
13978
13979         copy-file: Try unit tests on more file systems.
13980         * tests/test-copy-file-1.sh: New file.
13981         * tests/test-copy-file-2.sh: New file.
13982         * modules/copy-file-tests (Files): Add them.
13983         (Makefile.am): Add them to TESTS.
13984
13985         acl: Try unit tests on more file systems.
13986         * tests/test-file-has-acl-1.sh: New file.
13987         * tests/test-file-has-acl-2.sh: New file.
13988         * tests/test-set-mode-acl-1.sh: New file.
13989         * tests/test-set-mode-acl-2.sh: New file.
13990         * tests/test-copy-acl-1.sh: New file.
13991         * tests/test-copy-acl-2.sh: New file.
13992         * modules/acl-tests (Files): Add them.
13993         (Makefile.am): Add them to TESTS.
13994
13995 2011-09-04  Bruno Haible  <bruno@clisp.org>
13996
13997         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13998         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13999         10.
14000         (OLD_ALLOW, OLD_DENY): New macros.
14001         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14002         ACE_ACCESS_ALLOWED_ACE_TYPE.
14003         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14004         ACE_ACCESS_DENIED_ACE_TYPE.
14005         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14006         (NEW_ACE_EXECUTE): Fix value.
14007         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14008         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14009         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14010         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14011         NEW_ACE_SYNCHRONIZE): New macros.
14012         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14013         instead of acl_fromtext, acl_set, facl_set.
14014         Fixes a coreutils/tests/cp/perm failure.
14015
14016 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14017
14018         openat: test for fstatat (..., 0) bug
14019         Further testing with tar suggests that fstatat (..., 0)
14020         does not work in general, on AIX 7.1; see
14021         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14022         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14023         replacement fstatat (which is what older AIX releases were using
14024         anyway).
14025         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14026         use is now changed to orig_fstatat.  This was probably the right
14027         thing to do anyway.
14028         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14029         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14030         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14031         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14032         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14033         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14034         if the bug is found.
14035
14036         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14037         This tests for another fstatat bug on AIX 7.1:
14038         fstatat (AT_FDCWD, ..., 0) does not work.  See
14039         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14040         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14041         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14042         (rpl_fstatat): Adjust so that it works around either (or both)
14043         bugs if present.
14044         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14045
14046 2011-09-03  Karl Berry  <karl@gnu.org>
14047
14048         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14049         in index entries.
14050
14051 2011-09-02  Bruno Haible  <bruno@clisp.org>
14052
14053         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14054         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14055         values of AR, ARFLAGS, RANLIB.
14056         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14057
14058 2011-09-02  Bruno Haible  <bruno@clisp.org>
14059
14060         Find 'ar' program that fits with --host argument.
14061         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14062
14063 2011-09-02  Bruno Haible  <bruno@clisp.org>
14064
14065         tests: init.sh: Support any non-GNU diff.
14066         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14067         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14068         Solaris 8.
14069
14070 2011-09-02  Bruno Haible  <bruno@clisp.org>
14071
14072         tests: init.sh: work also with any non-GNU diff that supports -u
14073         * tests/init.sh: Relax check for diff -u support.
14074         Rather than checking for GNU diff via --version, simply check
14075         for support for -u itself.  Useful at least on OpenBSD 4.9,
14076         AIX 7.1, IRIX 6.5, and Solaris 10.
14077
14078 2011-09-01  Bruno Haible  <bruno@clisp.org>
14079
14080         strtoimax, strtoumax: Document problem on HP-UX 11.
14081         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14082         * doc/posix-functions/strtoumax.texi: Likewise.
14083
14084 2011-09-01  Bruno Haible  <bruno@clisp.org>
14085
14086         strtoumax: Avoid link error on OSF/1 with DTK cc.
14087         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14088         defined as a function.
14089         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14090         strtoumax is defined, not whether it is declared.
14091
14092 2011-09-01  Bruno Haible  <bruno@clisp.org>
14093
14094         strtoimax: Avoid link error on OSF/1 with DTK cc.
14095         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14096         defined as a function.
14097         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14098         strtoimax is defined, not whether it is declared.
14099
14100 2011-09-01  Bruno Haible  <bruno@clisp.org>
14101
14102         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14103         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14104         as a function.
14105         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14106         whether it is declared.
14107
14108 2011-09-01  Bruno Haible  <bruno@clisp.org>
14109
14110         imaxabs: Avoid link error on OSF/1 with DTK cc.
14111         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14112         as a function.
14113         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14114         whether it is declared.
14115
14116 2011-09-01  Bruno Haible  <bruno@clisp.org>
14117
14118         Tests for module 'strtoumax'.
14119         * modules/strtoumax-tests: New file.
14120         * tests/test-strtoumax.c: New file.
14121
14122         Tests for module 'strtoimax'.
14123         * modules/strtoimax-tests: New file.
14124         * tests/test-strtoimax.c: New file.
14125
14126         Tests for module 'imaxdiv'.
14127         * modules/imaxdiv-tests: New file.
14128         * tests/test-imaxdiv.c: New file.
14129
14130         Tests for module 'imaxabs'.
14131         * modules/imaxabs-tests: New file.
14132         * tests/test-imaxabs.c: New file.
14133
14134 2011-09-01  Bruno Haible  <bruno@clisp.org>
14135
14136         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14137         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14138         pthread_create.
14139
14140 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14141
14142         openat: work around AIX 7.1 fstatat issue
14143         This should fix the problem that was not properly fixed
14144         in the previous change, dated 2011-08-30.
14145         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14146         __need_system_stat_h defined.
14147         (orig_fstatat) [HAVE_FSTATAT]: New function.
14148         (rpl_fstatat): Go back to the old way of doing things,
14149         except call orig_fstatat instead of fstatat.
14150         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14151         Remove unnecessary check whether fstatat fills in st_size etc.
14152
14153 2011-09-01  Bruno Haible  <bruno@clisp.org>
14154
14155         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14156         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14157         just include the system's header.
14158
14159 2011-08-31  Jim Meyering  <meyering@redhat.com>
14160
14161         tests: avoid spurious assertion failure in test-float.c on ppc64
14162         * tests/test-float.c (test_long_double): Comment out an assertion,
14163         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14164         with gcc-4.4.4.
14165
14166         maint: indent with spaces, not TABs
14167         I need to get in the habit of running gnulib's "make check".
14168         Both of these would have been caught.
14169         * m4/largefile.m4: Indent with spaces, not TABs.
14170         * lib/parse-datetime.y (iso_8601_time): Likewise.
14171         Spotted by Pádraig Brady.
14172
14173         test-parse-datetime.c: accommodate a relatively strict gcc warning
14174         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14175         to avoid a warning from gcc's -Werror=missing-declarations.
14176         Insert a few spaces-before-funcall-parenthesis.
14177
14178 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14179
14180         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14181         The parser now accepts ISO 8601 date-time strings with "T" as the
14182         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14183         with a space between the date and time strings.  Now it also parses
14184         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14185         variants like "2004-02-29T16:21:42.333-07:00"
14186         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14187         of day representation using the 'T' separator character.
14188         * doc/parse-datetime.texi (General date syntax): replace use of
14189         deprecated --iso-8601 option with --rfc-3339 in example of date
14190         command output formats that can be parsed.
14191         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14192         lib/parse-datetime.y.
14193         (gmt_offset): New function.
14194         (main): Add additional test cases to validate ISO8601 extended
14195         date and time of day parsing.
14196
14197 2011-08-31  Bruno Haible  <bruno@clisp.org>
14198
14199         freopen: Documentation.
14200         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14201         name.
14202         Reported by Claudio Bley <claudio.bley@gmail.com>.
14203
14204 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14205
14206         freopen: Don't crash if the filename argument is NULL.
14207         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14208         NULL.
14209
14210 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14211
14212         openat: work around AIX 7.1 fstatat bug
14213         Problem reported by Kevin Brott for GNU tar, in the thread containing
14214         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14215         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14216         FSTATAT_ST_SIZE_ETC_BROKEN.
14217         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14218         rpl_fstatat.
14219         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14220         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14221         AC_CHECK_FUNCS_ONCE for fstatat.
14222         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14223         fchmodat, mkdirat, openat and unlinkat.
14224
14225 2011-08-30  Bruno Haible  <bruno@clisp.org>
14226
14227         Avoid endless recursions if config.h includes some header files.
14228         * lib/fopen.c (__need_FILE): Define already before including config.h.
14229         * lib/freopen.c (__need_FILE): Likewise.
14230         * lib/open.c (__need_system_fcntl_h): Likewise.
14231         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14232         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14233         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14234
14235 2011-08-25  Karl Berry  <karl@gnu.org>
14236
14237         * config/srclist.txt (ylwrap): new try.
14238         * build-aux/ylwrap: new file.
14239
14240 2011-08-23  Bruno Haible  <bruno@clisp.org>
14241
14242         tmpdir: Use a good default directory on native Windows.
14243         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14244         (P_tmpdir): Default to _P_tmpdir on native Windows.
14245         (path_search): On native Windows, try the value returned by GetTempPath
14246         before trying P_tmpdir.
14247         * modules/tmpdir (Depends-on): Add pathmax.
14248         Suggested by John Darrington <john@darrington.wattle.id.au>.
14249
14250 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14251
14252         doc: fix typo in README-release
14253         * top/README-release: Capitalize first word of a sentence.
14254
14255 2011-08-19  Jim Meyering  <meyering@redhat.com>
14256
14257         fts: do not exhaust memory when processing million-entry directories
14258         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14259         directory would require about 256*N bytes of memory.  Thus, it was
14260         easy to construct a directory too large to be processed by any of
14261         those tools.  With this change, fts' maximum memory utilization is
14262         now limited to around 30MB.
14263         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14264         (fts_read): When we've processed the final entry (i.e., when
14265         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14266         using the parent entry to read any remaining entries.  Dispatch
14267         depending on what fts_build returns:
14268         - NULL+stop, aka failure: stop
14269         - NULL otherwise: move up in the dir hierarchy
14270         - non-NULL: handle this new entry
14271         (fts_build): Declare and use new local, continue_readdir.
14272         Prepare to be called from fts_read, when the entries
14273         from a partially-read directory have just been exhausted.
14274         In that case, we'll skip the opendir and instead use the parent's
14275         fts_dirp and derive dir_fd from that.
14276         Finally, in the readdir loop, if we read max_entries entries,
14277         exit the loop ensuring *not* to call closedir.  This is required
14278         so that fts_dirp can be reused on a subsequent call.
14279         Prompted by Ben England's report of memory exhaustion in find
14280         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14281
14282         maint: fts: move decl of `dp' down into while loop; split a long line
14283         * lib/fts.c (fts_build): No semantic change.
14284
14285         fts: add/use new struct member, fts_dirp
14286         We are about to use this to manage any directory with
14287         too many entries to read all of them into memory at once.
14288         To do that, we'll need to save the DIR* pointer in each
14289         affected FTSENT struct.
14290         * lib/fts_.h: Include <dirent.h>.
14291         (struct FTSENT) [fts_dirp]: New member.
14292         * lib/fts.c (closedir_and_clear): Define.
14293         Use it in place of closedir so that we are sure to
14294         clear the new fts_dirp member when done with it.
14295         (fts_alloc): Initialize the new member.
14296         (fts_lfree): Free, if needed.
14297
14298         maint: fts: give __opendir2 a new parameter and rename
14299         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14300         than surreptitiously using sole caller's "dir_fd".
14301         (fts_opendir): Rename from __opendir2.
14302
14303         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14304         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14305
14306         maint: fts.c: correct off-by-one indentation
14307         * lib/fts.c (fts_build): Correct indentation, change style
14308         of a couple of block comments, and bracing style.
14309
14310         maint: fts.c: move __opendir2 #define "up" out of function body
14311         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14312
14313         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14314         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14315         out for a long time and besides was useful only on BSD systems.
14316
14317 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14318
14319         regex: port to Stratus OpenVOS
14320         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14321         define to empty, rather than attempting nonportable optimizations.
14322         Problem reported by Paul Green in:
14323         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14324         and fix suggested by Eric Blake in:
14325         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14326
14327 2011-08-17  Eric Blake  <eblake@redhat.com>
14328
14329         getcwd: fix test failures on mingw
14330         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14331         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14332         test if long directory cannot be created, and allow mingw errno.
14333
14334         getcwd-lgpl: fix m4 to match relaxed test for BSD
14335         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14336         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14337         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14338         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14339         signature problem.
14340
14341         getcwd: fix compilation on mingw64
14342         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14343         getcwd.
14344         Reported by Marc-André Lureau.
14345
14346         pipe2: silence compiler warning
14347         * lib/pipe2.c (pipe2): Hide label if it is not used.
14348
14349 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14350
14351         relocatable-prog: fix link error
14352         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14353         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14354         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14355         into modules/relocatable-lib without noticing that
14356         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14357         also needs to build relocatable.c.
14358
14359 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14360
14361         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14362         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14363         shell code: it contained a 'break' that was not in a loop.
14364         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14365         via a shell-language loop; this may have been true in old Autoconf
14366         versions, but it's not true in Autoconf 2.68.  I found this bug
14367         when testing coreutils git on Solaris 8, whose shell complains
14368         about the syntax error.
14369
14370 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14371
14372         * lib/base64.c: Fix comment to reference RFC 4648.
14373         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14374         <gvtulder@gmail.com>.
14375
14376 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14377
14378         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14379
14380         po/Makefile.in.in: fix make -q problem
14381         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14382         rule, since there's no file named 'check-macro-version' and its
14383         use as a file breaks make -q.
14384         (all): Don't depend on check-macro-version.
14385         (CHECK_MACRO_VERSION): New macro.
14386         (stamp-po): Use it.
14387
14388         configmake: fix make -q problem
14389         * modules/configmake (configmake.h): Update configmake.h's time stamp
14390         even if the file does not change.  Otherwise, 'make -q' fails.
14391         Problem reported by Simon Josefsson in
14392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14393
14394 2011-08-11  Jim Meyering  <meyering@redhat.com>
14395
14396         git-version-gen: correct the advice in a comment
14397         * build-aux/git-version-gen: Correct comment.
14398         Don't recommend to list .tarball-version in .gitignore.
14399
14400 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14401
14402         base64: fix off-by-one buffer size bug
14403         Problem and (trivial) fix reported by Gijs van Tulder in
14404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14405         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14406         * tests/test-base64.c (main): Catch the bug.
14407
14408 2011-08-10  Eric Blake  <eblake@redhat.com>
14409
14410         closein: correct comments
14411         * lib/closein.c (close_stdin): Improve comments.
14412
14413 2011-08-09  Bruno Haible  <bruno@clisp.org>
14414
14415         More tests for 'fseeko'.
14416         * tests/test-fseeko3.c: New file, from Eric Blake.
14417         * tests/test-fseeko3.sh: New file.
14418         * modules/fseeko-tests (Files): Add them.
14419         (TESTS): Add test-fseeko3.sh.
14420         (check_PROGRAMS): Add test-fseeko3.
14421
14422 2011-08-09  Eric Blake  <eblake@redhat.com>
14423
14424         fseeko: remove unneeded hack
14425         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14426
14427         fseeko: fix bug on glibc
14428         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14429         Reported by John W. Eaton.
14430
14431 2011-08-08  Bruno Haible  <bruno@clisp.org>
14432
14433         unictype/base: Fix interoperability with preinstalled libunistring.
14434         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14435         Reported by Simon Josefsson.
14436
14437 2011-08-08  Bruno Haible  <bruno@clisp.org>
14438
14439         iswblank: Detect declaration correctly.
14440         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14441         AC_CHECK_DECLS invocation.
14442
14443 2011-08-08  Bruno Haible  <bruno@clisp.org>
14444
14445         tcgetsid: Detect declaration correctly.
14446         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14447         AC_CHECK_DECLS invocation.
14448         Reported by Simon Josefsson.
14449
14450 2011-08-08  Eric Blake  <eblake@redhat.com>
14451
14452         largefile: fix typo that regressed large file support
14453         * modules/largefile (configure.ac-early): Fix section name.
14454
14455 2011-08-06  Karl Berry  <karl@gnu.org>
14456
14457         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14458         a separate module.
14459
14460 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14461
14462         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14463         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14464         get prototype for free.
14465
14466 2011-08-04  Bruno Haible  <bruno@clisp.org>
14467
14468         Tests for module 'pathmax'.
14469         * modules/pathmax-tests: New file.
14470         * tests/test-pathmax.c: New file.
14471
14472         canonicalize-lgpl: Support larger filenames on the Hurd.
14473         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14474         Reported by Paul Eggert.
14475
14476         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14477         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14478         * lib/chdir-long.h: Include pathmax.h.
14479         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14480         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14481         (PATH_MAX): Remove code that is done by pathmax.h.
14482         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14483         * lib/tmpfile.c: Add a comment.
14484         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14485         * modules/chdir-long (Depends-on): Add pathmax.
14486         * modules/getcwd (Depends-on): Add pathmax.
14487         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14488         is not defined.
14489         * doc/posix-headers/limits.texi: Mention the pathmax module.
14490         * NEWS: Mention the change.
14491
14492 2011-08-02  Bruno Haible  <bruno@clisp.org>
14493
14494         pthread_sigmask: Actually use results of gl_THREADLIB.
14495         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14496         gl_THREADLIB, not gl_[]THREADLIB.
14497         Reported by Eric Blake.
14498
14499 2011-08-02  Jim Meyering  <meyering@redhat.com>
14500
14501         maint.mk: relax the default _gl_TS_function_match regexp
14502         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14503         space between function name and "(" in an "extern" declaration.
14504         That would fail to match a decl with no space there: extern void foo();
14505
14506 2011-07-31  Iain Nicol  <iain@thenicols.net>
14507
14508         git-version-gen: document that EXTRA_DIST must include .version
14509         * build-aux/git-version-gen: In the how-to-use comment, document
14510         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14511         will fail when run from an unpacked distribution tarball.
14512
14513 2011-08-01  Bruno Haible  <bruno@clisp.org>
14514
14515         wctype-h: Fix last change.
14516         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14517         REPLACE_TOWLOWER to 0.
14518         Reported by Sam Steingold <sds@gnu.org>.
14519
14520 2011-07-31  Bruno Haible  <bruno@clisp.org>
14521
14522         frexpl: Update autoconf test.
14523         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14524         according to changes of 2011-06-20.
14525
14526 2011-07-31  Bruno Haible  <bruno@clisp.org>
14527
14528         sys_utsname: Add support for Minix.
14529         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14530         <sys/utsname.h>.
14531         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14532         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14533
14534 2011-07-31  Bruno Haible  <bruno@clisp.org>
14535
14536         strings: Add support for Minix.
14537         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14538         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14539         * doc/posix-headers/strings.texi: Document the Minix problem.
14540
14541 2011-07-31  Bruno Haible  <bruno@clisp.org>
14542
14543         wctype-h: Add support for Minix.
14544         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14545         REPLACE_TOWLOWER.
14546         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14547         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14548         REPLACE_ISWCNTRL.
14549
14550 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14551
14552         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14553         This is a performance improvement for 64-bit hosts: it causes the
14554         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14555
14556 2011-07-31  Bruno Haible  <bruno@clisp.org>
14557
14558         stdioext: Add support for Minix.
14559         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14560         * lib/fpurge.c (fpurge): Likewise.
14561         * lib/freadahead.c (freadahead): Likewise.
14562         * lib/freadable.c (freadable): Likewise.
14563         * lib/freading.c (freading): Likewise.
14564         * lib/freadptr.c (freadptr): Likewise.
14565         * lib/freadseek.c (freadptrinc): Likewise.
14566         * lib/fseeko.c (rpl_fseeko): Likewise.
14567         * lib/fseterr.c (fseterr): Likewise.
14568         * lib/fwritable.c (fwritable): Likewise.
14569         * lib/fwriting.c (fwriting): Likewise.
14570         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14571         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14572
14573 2011-07-31  Bruno Haible  <bruno@clisp.org>
14574
14575         errno: Port to Minix.
14576         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14577         ECONNABORTED are defined.
14578         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14579         GNULIB_defined_ECONNABORTED): New macros.
14580         * lib/strerror-override.h (strerror_override): Test also
14581         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14582         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14583         ECONNABORTED.
14584         * doc/posix-headers/errno.texi: Mention the Minix problem.
14585
14586 2011-07-31  Bruno Haible  <bruno@clisp.org>
14587
14588         Work around declaration collisions on Minix.
14589         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14590         defined, set REPLACE_MBSINIT.
14591         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14592         defined, set REPLACE_MBRTOWC.
14593         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14594         set REPLACE_MBRLEN.
14595         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14596         defined, set REPLACE_MBSRTOWCS.
14597         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14598         defined, set REPLACE_WCRTOMB.
14599         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14600         defined, set REPLACE_WCSRTOMBS.
14601
14602 2011-07-31  Bruno Haible  <bruno@clisp.org>
14603
14604         Add support for Minix with ACK compiler.
14605         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14606         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14607         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14608
14609 2011-07-31  Bruno Haible  <bruno@clisp.org>
14610
14611         Documentation about Minix.
14612         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14613         * doc/glibc-headers/*.texi: Likewise.
14614         * doc/posix-functions/*.texi: Likewise.
14615         * doc/glibc-functions/*.texi: Likewise.
14616
14617 2011-07-31  Bruno Haible  <bruno@clisp.org>
14618
14619         snippet/warn-on-use: Fix indentation.
14620         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14621
14622 2011-07-25  Jim Meyering  <meyering@redhat.com>
14623
14624         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14625         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14626         commands.
14627
14628 2011-07-27  Jim Meyering  <meyering@redhat.com>
14629
14630         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14631         * top/maint.mk (gl_extract_significant_defines_): Now that
14632         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14633         gnulib/lib/signal.in.h, and now that we recommend to
14634         define-if-undefined those two symbols in application code,
14635         we must filter them out of the "significant" list.
14636         This avoids a "make syntax-check" failure in coreutils.
14637
14638 2011-07-26  Eric Blake  <eblake@redhat.com>
14639
14640         warnings: add comments about previous patch
14641         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14642         * m4/include_next.m4: Likewise.
14643         * m4/warn-on-use.m4: Likewise.
14644         * m4/warnings.m4: Likewise, and simplify use.
14645         Suggested by Stefano Lattarini.
14646
14647         include-next, warnings: support older autoconf
14648         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14649         AS_VAR_PUSHDEF in a way that works with older autoconf.
14650         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14651         Reported by Daniel P. Berrange.
14652
14653 2011-07-25  Bruno Haible  <bruno@clisp.org>
14654
14655         fseek, ftell: Fix doc.
14656         * doc/posix-functions/fseek.texi: Reword statement about
14657         AC_SYS_LARGEFILE.
14658         * doc/posix-functions/ftell.texi: Likewise.
14659
14660 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14661             Bruno Haible  <bruno@clisp.org>
14662
14663         Add dependencies to the 'largefile' module.
14664         * modules/fopen (Depends-on): Add 'largefile'.
14665         * modules/freopen (Depends-on): Likewise.
14666         * modules/fseeko (Depends-on): Likewise.
14667         * modules/ftello (Depends-on): Likewise.
14668         * modules/glob (Depends-on): Likewise.
14669         * modules/lseek (Depends-on): Likewise.
14670         * modules/lstat (Depends-on): Likewise.
14671         * modules/mkostemp (Depends-on): Likewise.
14672         * modules/mkostemps (Depends-on): Likewise.
14673         * modules/mkstemp (Depends-on): Likewise.
14674         * modules/mkstemps (Depends-on): Likewise.
14675         * modules/open (Depends-on): Likewise.
14676         * modules/openat (Depends-on): Likewise.
14677         * modules/pread (Depends-on): Likewise.
14678         * modules/pwrite (Depends-on): Likewise.
14679         * modules/scandir (Depends-on): Likewise.
14680         * modules/stat (Depends-on): Likewise.
14681         * modules/tmpfile (Depends-on): Likewise.
14682         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14683         since the containing module now depends on the largefile module.
14684         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14685         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14686         off_t is fixed by gnulib.
14687         * doc/posix-functions/freopen.texi: Likewise.
14688         * doc/posix-functions/fseeko.texi: Likewise.
14689         * doc/posix-functions/fstatat.texi: Likewise.
14690         * doc/posix-functions/ftello.texi: Likewise.
14691         * doc/posix-functions/glob.texi: Likewise.
14692         * doc/posix-functions/lseek.texi: Likewise.
14693         * doc/posix-functions/lstat.texi: Likewise.
14694         * doc/posix-functions/mkstemp.texi: Likewise.
14695         * doc/posix-functions/open.texi: Likewise.
14696         * doc/posix-functions/openat.texi: Likewise.
14697         * doc/posix-functions/pread.texi: Likewise.
14698         * doc/posix-functions/pwrite.texi: Likewise.
14699         * doc/posix-functions/scandir.texi: Likewise.
14700         * doc/posix-functions/stat.texi: Likewise.
14701         * doc/posix-functions/tmpfile.texi: Likewise.
14702         * doc/glibc-functions/mkostemp.texi: Likewise.
14703         * doc/glibc-functions/mkostemps.texi: Likewise.
14704         * doc/glibc-functions/mkstemps.texi: Likewise.
14705
14706 2011-07-25  Bruno Haible  <bruno@clisp.org>
14707
14708         fcntl: Move AC_LIBOBJ invocation to module description.
14709         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14710         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14711
14712         fcntl: Remove call-in from fchdir.m4.
14713         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14715
14716         dup3: Remove potential call-in from fchdir.m4.
14717         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14718         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14719
14720         dup2: Move AC_LIBOBJ invocation to module description.
14721         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14722         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14723         Don't invoke AC_LIBOBJ.
14724         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14725
14726         dup2: Remove call-in from fchdir.m4.
14727         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14728         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14729
14730         fclose: Move AC_LIBOBJ invocation to module description.
14731         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14732         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14733         to 1.
14734         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14735
14736         fclose: Remove call-in from close.m4.
14737         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14738         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14739
14740         close: Move AC_LIBOBJ invocation to module description.
14741         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14742         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14743         1.
14744         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14745
14746         close: Remove call-in from fchdir.m4.
14747         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14749
14750         open: Move AC_LIBOBJ invocation to module description.
14751         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14752         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14753         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14754
14755         open: Remove call-in from fchdir.m4.
14756         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14758
14759         fchdir: Start to remove gl_REPLACE_* idiom.
14760         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14761         (gl_FUNC_FCHDIR): Invoke it.
14762
14763 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14764
14765         * lib/ftell.c (ftell): Comment out cast.
14766
14767         close: use gl_REPLACE_FCLOSE only if defined
14768         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14769         is defined.  The close module doesn't depend on the fclose module
14770         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14772         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14773
14774 2011-07-24  Jim Meyering  <meyering@redhat.com>
14775
14776         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14777         * tests/test-select.h (test_function): Declare as "static".
14778
14779 2011-07-24  Bruno Haible  <bruno@clisp.org>
14780
14781         doc: Mention the effects of AC_SYS_LARGEFILE.
14782         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14783         on this function.
14784         * doc/posix-functions/aio_error.texi: Likewise.
14785         * doc/posix-functions/aio_fsync.texi: Likewise.
14786         * doc/posix-functions/aio_read.texi: Likewise.
14787         * doc/posix-functions/aio_return.texi: Likewise.
14788         * doc/posix-functions/aio_suspend.texi: Likewise.
14789         * doc/posix-functions/aio_write.texi: Likewise.
14790         * doc/posix-functions/fgetpos.texi: Likewise.
14791         * doc/posix-functions/fopen.texi: Likewise.
14792         * doc/posix-functions/freopen.texi: Likewise.
14793         * doc/posix-functions/fsetpos.texi: Likewise.
14794         * doc/posix-functions/fstatvfs.texi: Likewise.
14795         * doc/posix-functions/ftruncate.texi: Likewise.
14796         * doc/posix-functions/ftw.texi: Likewise.
14797         * doc/posix-functions/getrlimit.texi: Likewise.
14798         * doc/posix-functions/glob.texi: Likewise.
14799         * doc/posix-functions/lio_listio.texi: Likewise.
14800         * doc/posix-functions/lockf.texi: Likewise.
14801         * doc/posix-functions/mkstemp.texi: Likewise.
14802         * doc/posix-functions/mmap.texi: Likewise.
14803         * doc/posix-functions/nftw.texi: Likewise.
14804         * doc/posix-functions/openat.texi: Likewise.
14805         * doc/posix-functions/opendir.texi: Likewise.
14806         * doc/posix-functions/posix_fadvise.texi: Likewise.
14807         * doc/posix-functions/posix_fallocate.texi: Likewise.
14808         * doc/posix-functions/pread.texi: Likewise.
14809         * doc/posix-functions/pwrite.texi: Likewise.
14810         * doc/posix-functions/readdir.texi: Likewise.
14811         * doc/posix-functions/readdir_r.texi: Likewise.
14812         * doc/posix-functions/rewinddir.texi: Likewise.
14813         * doc/posix-functions/scandir.texi: Likewise.
14814         * doc/posix-functions/seekdir.texi: Likewise.
14815         * doc/posix-functions/setrlimit.texi: Likewise.
14816         * doc/posix-functions/statvfs.texi: Likewise.
14817         * doc/posix-functions/telldir.texi: Likewise.
14818         * doc/posix-functions/tmpfile.texi: Likewise.
14819         * doc/posix-functions/truncate.texi: Likewise.
14820         * doc/glibc-functions/fallocate.texi: Likewise.
14821         * doc/glibc-functions/fstatfs.texi: Likewise.
14822         * doc/glibc-functions/fts_children.texi: Likewise.
14823         * doc/glibc-functions/fts_read.texi: Likewise.
14824         * doc/glibc-functions/getdirentries.texi: Likewise.
14825         * doc/glibc-functions/mkostemp.texi: Likewise.
14826         * doc/glibc-functions/mkostemps.texi: Likewise.
14827         * doc/glibc-functions/mkstemps.texi: Likewise.
14828         * doc/glibc-functions/preadv.texi: Likewise.
14829         * doc/glibc-functions/pwritev.texi: Likewise.
14830         * doc/glibc-functions/sendfile.texi: Likewise.
14831         * doc/glibc-functions/statfs.texi: Likewise.
14832
14833 2011-07-24  Bruno Haible  <bruno@clisp.org>
14834
14835         doc: Fix typo.
14836         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14837
14838 2011-07-24  Bruno Haible  <bruno@clisp.org>
14839
14840         doc: Mention fsusage.
14841         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14842
14843 2011-07-24  Bruno Haible  <bruno@clisp.org>
14844
14845         doc: Mention new glibc headers and functions.
14846         * doc/glibc-headers/gshadow.texi: New file.
14847         * doc/glibc-functions/endsgent.texi: New file.
14848         * doc/glibc-functions/fgetsgent.texi: New file.
14849         * doc/glibc-functions/fgetsgent_r.texi: New file.
14850         * doc/glibc-functions/getsgent.texi: New file.
14851         * doc/glibc-functions/getsgent_r.texi: New file.
14852         * doc/glibc-functions/getsgnam.texi: New file.
14853         * doc/glibc-functions/getsgnam_r.texi: New file.
14854         * doc/glibc-functions/putsgent.texi: New file.
14855         * doc/glibc-functions/setsgent.texi: New file.
14856         * doc/glibc-functions/sgetsgent.texi: New file.
14857         * doc/glibc-functions/sgetsgent_r.texi: New file.
14858         * doc/glibc-functions/malloc_info.texi: New file.
14859         * doc/glibc-functions/preadv.texi: New file.
14860         * doc/glibc-functions/pwritev.texi: New file.
14861         * doc/glibc-functions/register_printf_modifier.texi: New file.
14862         * doc/glibc-functions/register_printf_specifier.texi: New file.
14863         * doc/glibc-functions/register_printf_type.texi: New file.
14864         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14865         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14866         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14867         * doc/glibc-functions/pthread_getname_np.texi: New file.
14868         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14869         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14870         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14871         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14872         * doc/glibc-functions/pthread_setname_np.texi: New file.
14873         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14874         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14875         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14876         * doc/glibc-functions/qsort_r.texi: New file.
14877         * doc/glibc-functions/quick_exit.texi: New file.
14878         * doc/glibc-functions/syncfs.texi: New file.
14879         * doc/gnulib.texi: Include them.
14880         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14881         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14882         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14883         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14884         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14885         * doc/glibc-functions/execvpe.texi: Likewise.
14886
14887 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14888
14889         ftell: don't include <unistd.h>
14890         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14891         guaranteed to define off_t, and the ftell module depends on the
14892         stdio module.
14893
14894         ftell: do not assume wraparound signed arithmetic
14895         * lib/ftell.c: Include <limits.h>.
14896         (ftell): Don't assume wraparound signed arithmetic.
14897
14898 2011-07-24  Bruno Haible  <bruno@clisp.org>
14899
14900         close: No longer depend on module 'fclose'.
14901         * modules/close (Depends-on): Remove fclose.
14902         * NEWS: Mention the change.
14903         Suggested by Sam Steingold <sds@gnu.org>.
14904
14905 2011-07-24  Bruno Haible  <bruno@clisp.org>
14906
14907         fsusage: Enable large volume support on AIX >= 5.2.
14908         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14909         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14910         instead of STAT_STATVFS.
14911         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14912
14913         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14914         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14915         f_blocks field only on MacOS X.
14916
14917         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14918         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14919         * modules/fsusage (Depends-on): Add largefile.
14920
14921 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14922
14923         * README: Modernize discussion of signed integers.
14924         Assuming overflow wraparound is no longer safe.
14925         Mention ones' complement and signed magnitude.
14926
14927 2011-07-22  Bruno Haible  <bruno@clisp.org>
14928
14929         select tests, pselect tests: Refactor.
14930         * tests/test-select.h: New file, extracted from tests/test-select.c.
14931         (select_fn): New type.
14932         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14933         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14934         test_pipe): Add my_select argument.
14935         (test_function): Renamed from main. Add my_select argument.
14936         * tests/test-select.c: Move most code to tests/test-select.h. Include
14937         test-select.h.
14938         * modules/select-tests (Files): Add tests/test-select.h.
14939         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14940         (my_select, main): New functions.
14941         * modules/pselect-tests (Files): Add tests/test-select.h,
14942         tests/macros.h, tests/signature.h.
14943         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14944         (configure.ac): Check for <sys/wait.h>.
14945
14946 2011-07-22  Bruno Haible  <bruno@clisp.org>
14947
14948         sys_select tests: Check the signature of FD_*.
14949         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14950         signature tests from here...
14951         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14952         here.
14953         * modules/sys_select-tests (Files): Add tests/signature.h.
14954
14955 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14956
14957         largefile: new module, replacing large-inode
14958         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14959         * MODULES.html.sh: Add largefile, remove large-inode.
14960         * modules/largefile, m4/largefile.m4: New files.
14961         * modules/large-inode, m4/large-inode.m4: Remove.
14962
14963         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14964         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14965         implementations that use only 32 bits to count blocks.
14966         On typical hosts with 1024-byte blocks, this fails with file
14967         systems as small as 4 TiB.  Problem reported by Herb Wartens
14968         <http://debbugs.gnu.org/9140> and this should also fix a similar
14969         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14970
14971         large-inode: New module
14972         * MODULES.html.sh: Add it.
14973         * modules/large-inode, m4/large-inode.m4: New files.
14974
14975         extensions: Enable extensions on MacOS X 10.5 and later.
14976         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14977
14978 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14979
14980         file-has-acl: use acl_extended_file_nofollow if available
14981         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14982         (acl_extended_file): New macro.
14983         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14984         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14985
14986 2011-07-21  Bruno Haible  <bruno@clisp.org>
14987
14988         Declare system functions in a way that works with C++.
14989         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14990         declare fdopendir as extern "C".
14991         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14992         declare frexpl as extern "C".
14993         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14994         declare gai_strerror as extern "C".
14995         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14996         programs, declare gai_strerror as extern "C".
14997         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14998         declare getlogin_r as extern "C".
14999         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15000         as extern "C".
15001         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15002         declare ldexpl as extern "C".
15003         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15004         as extern "C".
15005         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15006         program, declare getmntinfo as extern "C".
15007         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15008         stpncpy as extern "C".
15009         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15010         program, declare __xpg_strerror_r as extern "C".
15011         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15012         strndup as extern "C".
15013         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15014         declare memset and bzero as extern "C".
15015         Reported by Sam Steingold <sds@gnu.org>.
15016
15017 2011-07-12  Jim Meyering  <meyering@redhat.com>
15018
15019         maint.mk: prohibit inclusion of "verify.h" without use
15020         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15021
15022 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15023
15024         timer-time: A new module to check for timer_settime()
15025         * m4/timer_time.m4: Check for the posix function.
15026         * modules/timer-time: Add the new module.
15027         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15028         Mention it.
15029
15030 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15031             Bruno Haible  <bruno@clisp.org>
15032
15033         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15034         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15035         not defined, assume POSIX threads and look for pthread_sigmask in
15036         $LIBS, without changing $CPPFLAGS.
15037
15038 2011-07-19  Bruno Haible  <bruno@clisp.org>
15039
15040         strstr: Update cross-compilation guess.
15041         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15042         CPUs, guess no, in view of glibc
15043         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15044         Suggested by Eric Blake. Reported by Reuben Thomas.
15045
15046 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15047
15048         getopt-gnu: suppress core dumps from detection code
15049         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15050         to suppress core dumps that may well occur on glibc systems.
15051         * modules/getopt-gnu: Depend on nocrash.
15052
15053 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15054
15055         pthread_sigmask: ensure usleep is declared
15056         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15057         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15058
15059 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15060
15061         doc: Document NonStop portability issues.
15062         * doc/posix-functions/sigaction.texi (sigaction):
15063         * doc/posix-headers/signal.texi (signal.h):
15064         Document NonStop.  See Joachim Schmitz in
15065         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15066
15067 2011-07-15  Bruno Haible  <bruno@clisp.org>
15068
15069         ffsl, ffsll: Avoid unportable behaviour.
15070         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15071
15072 2011-07-15  Bruno Haible  <bruno@clisp.org>
15073
15074         ffs: More tests.
15075         * tests/test-ffs.c (NBITS): New macro.
15076         (main): Add more tests.
15077         * tests/test-ffsl.c (NBITS): New macro.
15078         (main): Add more tests.
15079         * tests/test-ffsll.c (NBITS): New macro.
15080         (main): Add more tests.
15081
15082 2011-07-15  Eric Blake  <eblake@redhat.com>
15083
15084         ffsl, ffsll: new modules
15085         * modules/ffsl: New file.
15086         * modules/ffsll: Likewise.
15087         * m4/ffsl.m4: Likewise.
15088         * m4/ffsll.m4: Likewise.
15089         * lib/ffsl.c: Likewise.
15090         * lib/ffsl.h: Likewise.
15091         * lib/ffsll.c: Likewise.
15092         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15093         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15094         * modules/string (Makefile.am): Substitute witnesses.
15095         * lib/strings.in.h (ffsl, ffsll): Declare.
15096         * modules/ffsl-tests: New test file.
15097         * modules/ffsll-tests: Likewise.
15098         * tests/test-ffsl.c: Likewise.
15099         * tests/test-ffsll.c: Likewise.
15100         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15101         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15102         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15103
15104         ffs: fix m4 prerequisite
15105         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15106
15107         ffs: avoid undefined behavior
15108         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15109         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15110         Reported by Bruno Haible.
15111
15112 2011-07-12  Bruno Haible  <bruno@clisp.org>
15113
15114         pthread_sigmask: Rely on module 'threadlib'.
15115         * modules/pthread_sigmask (Depends-on): Add threadlib.
15116         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15117         is defined.
15118
15119 2011-07-12  Bruno Haible  <bruno@clisp.org>
15120
15121         regex: Depend on module 'strcase'.
15122         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15123
15124 2011-07-12  Jim Meyering  <meyering@redhat.com>
15125
15126         warn-on-use: fix typo in file name
15127         * modules/snippet/warn-on-use (Files): Correct file name:
15128         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15129
15130 2011-07-12  Bruno Haible  <bruno@clisp.org>
15131
15132         strings: Document module.
15133         * doc/posix-headers/strings.texi: Mention module 'strings'.
15134
15135 2011-07-12  Bruno Haible  <bruno@clisp.org>
15136
15137         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15138         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15139         (Files, Makefile.am): Update.
15140         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15141         * modules/stdlib (Depends-on): Update.
15142
15143 2011-07-12  Bruno Haible  <bruno@clisp.org>
15144
15145         * NEWS: Mention the changes.
15146
15147         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15148         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15149         (Files, Makefile.am): Update.
15150         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15151         * modules/arpa_inet (Depends-on): Update.
15152         * modules/ctype (Depends-on): Update.
15153         * modules/dirent (Depends-on): Update.
15154         * modules/fcntl-h (Depends-on): Update.
15155         * modules/glob (Depends-on): Update.
15156         * modules/iconv-h (Depends-on): Update.
15157         * modules/inttypes-incomplete (Depends-on): Update.
15158         * modules/langinfo (Depends-on): Update.
15159         * modules/locale (Depends-on): Update.
15160         * modules/math (Depends-on): Update.
15161         * modules/netdb (Depends-on): Update.
15162         * modules/poll-h (Depends-on): Update.
15163         * modules/pty (Depends-on): Update.
15164         * modules/search (Depends-on): Update.
15165         * modules/signal (Depends-on): Update.
15166         * modules/spawn (Depends-on): Update.
15167         * modules/stdio (Depends-on): Update.
15168         * modules/stdlib (Depends-on): Update.
15169         * modules/string (Depends-on): Update.
15170         * modules/strings (Depends-on): Update.
15171         * modules/sys_file (Depends-on): Update.
15172         * modules/sys_ioctl (Depends-on): Update.
15173         * modules/sys_select (Depends-on): Update.
15174         * modules/sys_socket (Depends-on): Update.
15175         * modules/sys_stat (Depends-on): Update.
15176         * modules/sys_time (Depends-on): Update.
15177         * modules/sys_times (Depends-on): Update.
15178         * modules/sys_utsname (Depends-on): Update.
15179         * modules/sys_wait (Depends-on): Update.
15180         * modules/termios (Depends-on): Update.
15181         * modules/time (Depends-on): Update.
15182         * modules/unistd (Depends-on): Update.
15183         * modules/wchar (Depends-on): Update.
15184         * modules/wctype-h (Depends-on): Update.
15185         * MODULES.html.sh (Support for building libraries and executables):
15186         Update.
15187
15188         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15189         * modules/snippet/unused-parameter: Renamed from
15190         modules/unused-parameter.
15191         (Files, Makefile.am): Update.
15192         * build-aux/snippet/unused-parameter.h: Renamed from
15193         build-aux/unused-parameter.h.
15194         * modules/selinux-h (Depends-on): Update.
15195         * modules/unistr/base (Depends-on): Update.
15196         * MODULES.html.sh (Core language properties): Update.
15197
15198         Rename module 'link-warning' to 'snippet/link-warning'.
15199         * modules/snippet/link-warning: Renamed from modules/link-warning.
15200         (Files, Makefile.am): Update.
15201         * build-aux/snippet/link-warning.h: Renamed from
15202         build-aux/link-warning.h.
15203         * MODULES.html.sh (Support for building libraries and executables):
15204         Update.
15205
15206         Rename module 'c++defs' to 'snippet/c++defs'.
15207         * modules/snippet/c++defs: Renamed from modules/c++defs.
15208         (Files, Makefile.am): Update.
15209         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15210         * modules/arpa_inet (Depends-on): Update.
15211         * modules/ctype (Depends-on): Update.
15212         * modules/dirent (Depends-on): Update.
15213         * modules/fcntl-h (Depends-on): Update.
15214         * modules/glob (Depends-on): Update.
15215         * modules/iconv-h (Depends-on): Update.
15216         * modules/langinfo (Depends-on): Update.
15217         * modules/locale (Depends-on): Update.
15218         * modules/math (Depends-on): Update.
15219         * modules/netdb (Depends-on): Update.
15220         * modules/poll-h (Depends-on): Update.
15221         * modules/pty (Depends-on): Update.
15222         * modules/search (Depends-on): Update.
15223         * modules/signal (Depends-on): Update.
15224         * modules/spawn (Depends-on): Update.
15225         * modules/stdio (Depends-on): Update.
15226         * modules/stdlib (Depends-on): Update.
15227         * modules/string (Depends-on): Update.
15228         * modules/strings (Depends-on): Update.
15229         * modules/sys_ioctl (Depends-on): Update.
15230         * modules/sys_select (Depends-on): Update.
15231         * modules/sys_socket (Depends-on): Update.
15232         * modules/sys_stat (Depends-on): Update.
15233         * modules/sys_time (Depends-on): Update.
15234         * modules/sys_wait (Depends-on): Update.
15235         * modules/termios (Depends-on): Update.
15236         * modules/time (Depends-on): Update.
15237         * modules/unistd (Depends-on): Update.
15238         * modules/wchar (Depends-on): Update.
15239         * modules/wctype-h (Depends-on): Update.
15240
15241         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15242         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15243         (Files, Makefile.am): Update.
15244         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15245         * modules/argv-iter (Depends-on): Update.
15246         * modules/arpa_inet (Depends-on): Update.
15247         * modules/dirent (Depends-on): Update.
15248         * modules/fcntl-h (Depends-on): Update.
15249         * modules/fnmatch (Depends-on): Update.
15250         * modules/getopt-posix (Depends-on): Update.
15251         * modules/glob (Depends-on): Update.
15252         * modules/iconv-h (Depends-on): Update.
15253         * modules/inttypes-incomplete (Depends-on): Update.
15254         * modules/locale (Depends-on): Update.
15255         * modules/math (Depends-on): Update.
15256         * modules/netdb (Depends-on): Update.
15257         * modules/search (Depends-on): Update.
15258         * modules/signal (Depends-on): Update.
15259         * modules/spawn (Depends-on): Update.
15260         * modules/stdio (Depends-on): Update.
15261         * modules/stdlib (Depends-on): Update.
15262         * modules/string (Depends-on): Update.
15263         * modules/strings (Depends-on): Update.
15264         * modules/sys_socket (Depends-on): Update.
15265         * modules/sys_stat (Depends-on): Update.
15266         * modules/sys_time (Depends-on): Update.
15267         * modules/sys_times (Depends-on): Update.
15268         * modules/sys_utsname (Depends-on): Update.
15269         * modules/time (Depends-on): Update.
15270         * modules/unistd (Depends-on): Update.
15271         * modules/wchar (Depends-on): Update.
15272         * MODULES.html.sh (Support for building libraries and executables):
15273         Update.
15274
15275 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15276
15277         Improvements on _Noreturn and related modules.
15278
15279         modules/_Exit-tests: test _Noreturn too
15280         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15281         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15282         (main): Use them.
15283
15284         stdnoreturn, stdnoreturn-tests: remove modules
15285         They're not needed here and a bit premature for use elsewhere.  See
15286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15287         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15288         * tests/test-stdnoreturn.c: Remove files.
15289         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15290         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15291         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15292         and using noreturn.
15293         * modules/openat, modules/sigpipe-die, modules/xalloc:
15294         * modules/xmemdup0, modules/xstrtol:
15295         Remove dependency on stdnoreturn.
15296
15297         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15298         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15299         Reparenthesize to avoid GCC warning.
15300         Support Microsoft's syntax.
15301         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15302
15303         _Noreturn-tests: remove module
15304         * modules/_Noreturn-tests: Remove.
15305         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15306         * tests/test-_Noreturn.c: Remove.
15307         * tests/test-stdnoreturn.c: Merge from the old
15308         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15309
15310 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15311
15312         _Noreturn, stdnoreturn, and related modules.
15313
15314         * top/maint.mk: Adjust to new noreturn support.
15315         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15316         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15317
15318         xalloc: use stdnoreturn.h
15319         * lib/xalloc.h: Include <stdnoreturn.h>.
15320         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15321         * modules/xalloc (Depends-on): Add stdnoreturn.
15322
15323         xstrtol: use stdnoreturn.h
15324         * lib/xstrtol.h: Include <stdnoreturn.h>.
15325         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15326         * modules/xstrtol (Depends-on): Add stdnoreturn.
15327
15328         xmemdup0: use stdnoreturn.h
15329         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15330         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15331         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15332
15333         sigpipe-die: use stdnoreturn.h
15334         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15335         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15336         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15337
15338         openat: use stdnoreturn.h
15339         * lib/openat.h: Include <stdnoreturn.h>.
15340         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15341         * modules/openat (Depends-on): Add stdnoreturn.
15342
15343         * lib/openat-die.c (openat_save_fail): Modernize comment.
15344
15345         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15346
15347         * lib/glthread/thread.h: Modernize comment.
15348
15349         obstack: use _Noreturn
15350         * lib/obstack.c (__attribute__): Remove macro.
15351         (print_and_abort): Use _Noreturn.
15352
15353         c-stack: use _Noreturn
15354         * lib/c-stack.c (die, overflow_handler, segv_handler):
15355         Use _Noreturn rather than __attribute__((noreturn)).
15356
15357         argmatch-tests, exclude_tests: use _Noreturn
15358         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15359         Remove.
15360         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15361
15362         stdlib: use _Noreturn
15363         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15364         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15365         * modules/stdlib (Depends-on): Add _Noreturn.
15366         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15367
15368         stdnoreturn-tests: new module
15369         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15370
15371         stdnoreturn: new module
15372         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15373         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15374
15375         _Noreturn-tests: new module
15376         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15377
15378         _Noreturn: new module
15379         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15380         New section, mentioning it.
15381         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15382
15383         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15384
15385 2011-07-11  Eric Blake  <eblake@redhat.com>
15386
15387         ffs: new module
15388         * modules/ffs: New file.
15389         * m4/ffs.m4: Likewise.
15390         * lib/ffs.c: Likewise.
15391         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15392         * modules/strings (Makefile.am): Substitute witness.
15393         (Depends-on): Add c++defs.
15394         * lib/strings.in.h (ffs): Declare.
15395         * modules/ffs-tests: New test file.
15396         * tests/test-ffs.c: Test new module.
15397         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15398         * doc/posix-functions/ffs.texi (ffs): Likewise.
15399
15400         regex: avoid compiler warning
15401         * lib/regex.c (includes): Include <strings.h>, for use of
15402         strcasecmp in regcomp.c.
15403         Reported by Joachim Schmitz.
15404
15405 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15406
15407         stdint: respect system's intmax_t if INTMAX_MAX
15408         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15409         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15410         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15411         long but int64_t is long long, and where we will clash with the
15412         system intmax_t if we override it.  See
15413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15414         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15415         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15416         similarly for UINTMAX_C.
15417
15418 2011-07-08  Bruno Haible  <bruno@clisp.org>
15419
15420         pthread_sigmask tests: Avoid a compiler warning.
15421         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15422         non-zero.
15423
15424         sigprocmask tests: A better way to avoid a compiler warning.
15425         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15426         (main): Complain if system() returns non-zero.
15427         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15428
15429 2011-07-08  Bruno Haible  <bruno@clisp.org>
15430
15431         pthread_sigmask: Work around IRIX bug.
15432         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15433         bug.
15434         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15435         there may be unblocked pending signals.
15436         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15437
15438 2011-07-08  Bruno Haible  <bruno@clisp.org>
15439
15440         pthread_sigmask: Work around Cygwin bug.
15441         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15442         bug.
15443         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15444         the system's pthread_sigmask function.
15445         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15446
15447 2011-07-08  Bruno Haible  <bruno@clisp.org>
15448
15449         pthread_sigmask: Work around bug in single-threaded implementation.
15450         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15451         FreeBSD, HP-UX, Solaris bug.
15452         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15453         * lib/pthread_sigmask.c: Include <stddef.h>.
15454         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15455         the system's pthread_sigmask function.
15456         * modules/pthread_sigmask (configure.ac): Invoke
15457         gl_PREREQ_PTHREAD_SIGMASK.
15458         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15459         HP-UX, Solaris.
15460
15461 2011-07-08  Eric Blake  <eblake@redhat.com>
15462
15463         test-sigprocmask: avoid compiler warning
15464         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15465         * tests/test-sigprocmask.c (main): Use it to silence warning.
15466         Reported by Jim Meyering.
15467
15468         test-snprintf: avoid compiler warning
15469         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15470         * tests/test-vsnprintf.c (main): Likewise.
15471         Reported by Jim Meyering.
15472
15473 2011-07-08  Bruno Haible  <bruno@clisp.org>
15474
15475         Tests for module 'pthread_sigmask'.
15476         * modules/pthread_sigmask-tests: New file.
15477         * tests/test-pthread_sigmask1.c: New file, based on
15478         tests/test-sigprocmask.c.
15479         * tests/test-pthread_sigmask2.c: New file.
15480
15481 2011-07-08  Jim Meyering  <meyering@redhat.com>
15482
15483         test-getopt.h: avoid warning about an unused variable
15484         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15485
15486 2011-07-07  Jim Meyering  <meyering@redhat.com>
15487
15488         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15489         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15490         now that it no longer contains leading TABs.
15491         Remove unused "url=FIXME" statement.
15492
15493 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15494
15495         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15496         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15497         When gl_THREADLIB is not in use, assume that the POSIX sematics
15498         are desired.  This is better for Emacs, which uses POSIX semantics
15499         on GNUish and/or POSIXish platforms, and does not use threads at
15500         all otherwise.
15501
15502         pthread_sigmask: fix typo when testing for libraries
15503         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15504         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15505
15506 2011-07-08  Eric Blake  <eblake@redhat.com>
15507
15508         fts: introduce FTS_NOATIME
15509         * lib/fts_.h (FTS_NOATIME): New bit flag.
15510         (FTS_OPTIONMASK): Adjust.
15511         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15512         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15513
15514 2011-07-08  Bruno Haible  <bruno@clisp.org>
15515
15516         Tests for module 'thread'.
15517         * modules/thread-tests: New file.
15518         * tests/test-thread_self.c: New file.
15519         * tests/test-thread_create.cc: New file.
15520
15521 2011-07-08  Bruno Haible  <bruno@clisp.org>
15522
15523         thread: Avoid gcc warnings when using gl_thread_self().
15524         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15525         'void *'.
15526         (gl_thread_self_pointer): Update.
15527
15528 2011-07-07  Bruno Haible  <bruno@clisp.org>
15529
15530         signal-c++-tests: Check declaration of pthread_sigmask.
15531         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15532         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15533         $(LIB_PTHREAD_SIGMASK).
15534
15535 2011-07-07  Bruno Haible  <bruno@clisp.org>
15536
15537         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15538         * lib/signal.in.h (pthread_sigmask): Override if
15539         REPLACE_PTHREAD_SIGMASK is 1.
15540         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15541         REPLACE_PTHREAD_SIGMASK.
15542         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15543         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15544         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15545         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15546         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15547
15548 2011-07-07  Bruno Haible  <bruno@clisp.org>
15549
15550         pthread_sigmask: Ensure declaration in <signal.h>.
15551         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15552         include <pthread.h>.
15553         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15554         problem.
15555
15556 2011-07-07  Bruno Haible  <bruno@clisp.org>
15557
15558         pthread_sigmask: Document the module.
15559         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15560
15561 2011-07-07  Bruno Haible  <bruno@clisp.org>
15562
15563         pthread_sigmask: Follow gnulib conventions.
15564         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15565         gl_PTHREAD_SIGMASK.
15566         * modules/pthread_sigmask (configure.ac): Update.
15567
15568 2011-07-07  Bruno Haible  <bruno@clisp.org>
15569
15570         pthread_sigmask: Make declaration C++ safe.
15571         * lib/signal.in.h: In two special conditions, just do an #include_next.
15572         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15573         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15574         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15575         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15576         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15577         not REPLACE_PTHREAD_MASK.
15578         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15579         not REPLACE_PTHREAD_MASK.
15580         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15581
15582 2011-07-07  Bruno Haible  <bruno@clisp.org>
15583
15584         pthread_sigmask: Fix return value.
15585         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15586         * lib/pthread_sigmask.c: New file.
15587         * modules/pthread_sigmask (Files): Add it.
15588         (configure.ac): Invoke AC_LIBOBJ.
15589
15590 2011-07-07  Eric Blake  <eblake@redhat.com>
15591
15592         getopt: more portable argv creation
15593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15594         const, use char arrays rather than strings.
15595         Suggested by Paul Eggert.
15596
15597 2011-07-07  Bruno Haible  <bruno@clisp.org>
15598
15599         Tests for module 'sigprocmask'.
15600         * modules/sigprocmask-tests: New file.
15601         * tests/test-sigprocmask.c: New file.
15602
15603 2011-07-07  Bruno Haible  <bruno@clisp.org>
15604
15605         float tests: Tweak.
15606         * tests/test-float.c (main): Tweak skip message.
15607
15608 2011-07-07  Eric Blake  <eblake@redhat.com>
15609
15610         getopt: avoid compiler warning during configure
15611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15612         assigning string literals to non-const pointer.
15613
15614         getopt-gnu: avoid crash in glibc getopt
15615         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15616         * tests/test-getopt.h (test_getopt): Enhance test.
15617         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15618         * doc/posix-functions/getopt.texi (getopt): Document it.
15619         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15620         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15621         Likewise.
15622
15623 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15624
15625         getopt: handle W; without long options in getopt [BZ #12922]
15626         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15627         but no long options are defined, just return 'W'.
15628
15629 2011-07-07  Bruno Haible  <bruno@clisp.org>
15630
15631         Avoid literal tabs.
15632         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15633         variable containing a tab instead of a literal tab.
15634         Reported by Jim Meyering.
15635
15636 2011-07-07  Bruno Haible  <bruno@clisp.org>
15637
15638         Comments.
15639         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15640
15641 2011-07-06  Bruno Haible  <bruno@clisp.org>
15642
15643         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15644         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15645         <winsock2.h>.
15646         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15647         lib/sys_socket.in.h.
15648         (close, gethostname): Hide declarations from <winsock2.h>.
15649         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15650         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15651         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15652         (select): Don't override if gnulib's <sys/select.h> was already
15653         included.
15654         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15655         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15656         setsockopt, shutdown, select): Tweak indentation.
15657
15658 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15659
15660         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15661         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15662         in an application that does not use the sys_select module.
15663
15664 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15665
15666         poll: do not return 0 on timeout=-1
15667         * lib/poll.c: Loop with yield if no events occurred.
15668
15669 2011-07-06  Eric Blake  <eblake@redhat.com>
15670
15671         pthread_sigmask: always replace when not using pthread
15672         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15673         replacement when using some threading other than pthread.  Fix
15674         logic bug.
15675
15676 2011-07-06  Bruno Haible  <bruno@clisp.org>
15677
15678         Comments.
15679         * m4/printf.m4: Update comments about mingw.
15680
15681 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15682
15683         sys_select: define sigset_t more portably
15684         * lib/sys_select.in.h: Always include <sys/types.h>, since
15685         we now need sigset_t and mingw defines it there.
15686         Include <signal.h> before split inclusion guard, to avoid
15687         mishaps on Solaris, whose <signal.h> eventually includes us.
15688         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15689         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15690         which come from ...
15691         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15692         gl_CHECK_TYPE_SIGSET_T.
15693         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15694         does the real work.
15695         * modules/sys_select (Depends-on): Add 'signal'.
15696
15697         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15698         Suggested by Bruno Haible.
15699
15700         pselect: Use pthread_sigmask, not sigprocmask.
15701         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15702         multithreaded apps better than sigprocmask does.
15703         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15704         sigprocmask directly.
15705
15706 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15707
15708         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15709         Don't #undef,  since we don't need any underlying pselect.
15710         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15711         (Depends-on): Add select.
15712         (Link): Add $(LIBSOCKET).
15713         These changes suggested by Bruno Haible.
15714
15715         pselect: document better
15716         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15717         * doc/posix-functions/pselect.texi (pselect): Document new module.
15718
15719         pthread_sigmask: new module
15720         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15721         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15722         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15723         This is done only as a macro; I don't know how well that'll
15724         work for C++.  Move <sys/types.h> include before the include_next,
15725         to avoid mishap on Solaris.
15726         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15727         * modules/signal (Makefile.am): Substitute the check's results.
15728         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15729
15730         test-pselect: new module
15731         * modules/pselect-tests, tests/test-pselect.c: New files.
15732         * tests/test-select.c, tests/test-sys_select-c++.cc:
15733         If TEST_PSELECT is defined, test pselect instead of testing select.
15734
15735         * tests/test-sys_select.c (sigset_t): Test for it, too.
15736         Suggested by Bruno Haible.
15737
15738 2011-07-05  Eric Blake  <eblake@redhat.com>
15739
15740         snprintf: guarantee %1$d, for libintl
15741         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15742         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15743         * doc/posix-functions/snprintf.texi (snprintf): Update.
15744         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15745         * tests/test-snprintf.c (main): Enhance test.
15746         * tests/test-vsnprintf.c (main): Likewise.
15747
15748 2011-07-05  Jim Meyering  <meyering@redhat.com>
15749
15750         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15751         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15752         per Bruno's request, to accommodate this idiom (no space after "#")
15753         even when the function is inside an #if block:
15754         char *
15755         gets (char *s)
15756         #undef gets
15757         {
15758           ...
15759         }
15760
15761 2011-07-04  Jim Meyering  <meyering@redhat.com>
15762
15763         maint: indent with spaces, not TABs, and add a rule to check this
15764         * tests/test-userspec.c: Indent with spaces, not TABs.
15765         * tests/test-argp.c: Likewise.
15766         * tests/test-c-stack2.sh: Likewise.
15767         * tests/test-parse-duration.sh: Likewise
15768         * m4/strtod.m4: Likewise.
15769         * m4/alloca.m4: Likewise.
15770         * m4/pselect.m4: Likewise.
15771         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15772
15773 2011-07-03  Jim Meyering  <meyering@redhat.com>
15774
15775         maint.mk: correct omissions in prohibit_argmatch_without_use check
15776         This rule would mistakenly report that argmatch.h is included without
15777         use even when both the argmatch and invalid_arg macro were used.
15778         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15779         of argmatch and invalid_arg.
15780
15781 2011-07-03  Bruno Haible  <bruno@clisp.org>
15782
15783         Comments about EINTR.
15784         * lib/safe-read.h: Explain the purpose of this module.
15785         * lib/safe-write.h: Likewise.
15786         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15787         module.
15788         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15789         module.
15790         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15791
15792 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15793
15794         xnanosleep: Rewrite to use new dtotimespec module.
15795         It has the conversion code that used to be in xnanosleep.
15796         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15797         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15798         (TIME_T_MAX): Remove.
15799         (xnanosleep): Rewrite in terms of dtotimespec.
15800         * modules/xnanosleep (Depends-on): Add dtotimespec.
15801         Remove intprops, stdbool.
15802
15803         timespec-add, timespec-sub: new modules
15804         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15805         * lib/timespec-add.c, lib/timespec-sub.c:
15806         * modules/timespec-add, modules/timespec-sub: New files.
15807
15808         dtotimespec: new module
15809         * lib/timespec.h (dtotimespec): New decl.
15810         * lib/dtotimespec.c, modules/dtotimespec: New files.
15811
15812         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15813
15814         pselect: new module
15815         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15816         (pselect): New decls.
15817         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15818         since the standard pselect decl uses 'restrict'.
15819         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15820         HAVE_PSELECT, REPLACE_PSELECT.
15821         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15822         HAVE_PSELECT, REPLACE_PSELECT.
15823         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15824
15825         sys_select: don't depend on sys_socket
15826         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15828         This fix works on GNU and GNU-like platforms, but has not been tested
15829         on native Windows.
15830         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15831         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15832         gl_HEADER_SYS_SOCKET.
15833         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15834         gl_PREREQ_SYS_H_WINSOCK2.
15835
15836 2011-06-29  Eric Blake  <eblake@redhat.com>
15837
15838         pipe2: fix C89 compile problem
15839         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15840         Reported by Bruno Haible.
15841
15842         pipe, pipe2: don't corrupt fd on error
15843         * lib/pipe.c (pipe): Leave fd unchanged on error.
15844         * lib/pipe2.c (pipe2): Likewise.
15845         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15846         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15847
15848 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15849
15850         mmap-anon: do not use regular expressions inadvertently
15851         * m4/mmap-anon.m4: Remove trailing period from strings sought
15852         in the output.
15853
15854 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15855
15856         nanosleep: fix integer overflow problem
15857         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15858         arithmetic wraps around on overflow.
15859
15860         nanosleep: simplify carrying
15861         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15862         first call to the underyling nanosleep, not for the last one.
15863         This doesn't fix any bugs, but it simplifies the computation of
15864         the remaining delay.  Found while auditing integer overflow issues.
15865
15866         dup2: remove test for existence of fcntl
15867         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15868         "#if HAVE_FCNTL", in the configure-time test program.
15869         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15870         and therefore speeds up "configure" a bit.  Found while
15871         adding the dup2 module to Emacs.
15872
15873 2011-06-24  Eric Blake  <eblake@redhat.com>
15874
15875         maint.mk: enhance useless header checks
15876         * top/maint.mk (_sc_header_without_use): Check both include
15877         styles.
15878         (sc_prohibit_assert_without_use)
15879         (sc_prohibit_close_stream_without_use)
15880         (sc_prohibit_getopt_without_use)
15881         (sc_prohibit_quotearg_without_use)
15882         (sc_prohibit_quote_without_use)
15883         (sc_prohibit_long_options_without_use)
15884         (sc_prohibit_inttostr_without_use)
15885         (sc_prohibit_ignore_value_without_use)
15886         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15887         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15888         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15889         (sc_prohibit_hash_pjw_without_use)
15890         (sc_prohibit_safe_read_without_use)
15891         (sc_prohibit_argmatch_without_use)
15892         (sc_prohibit_canonicalize_without_use)
15893         (sc_prohibit_root_dev_ino_without_use)
15894         (sc_prohibit_openat_without_use)
15895         (sc_prohibit_c_ctype_without_use)
15896         (sc_prohibit_signal_without_use)
15897         (sc_prohibit_stdio--_without_use)
15898         (sc_prohibit_stdio-safer_without_use)
15899         (sc_prohibit_strings_without_use)
15900         (sc_prohibit_intprops_without_use)
15901         (sc_prohibit_stddef_without_use)
15902         (sc_prohibit_xfreopen_without_use): Update clients.
15903
15904 2011-06-24  Jim Meyering  <meyering@redhat.com>
15905
15906         syntax-check: keep one maint.mk rule in sync with its header
15907         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15908         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15909         I prefer to avoid temporary files here, so use <(...), but that
15910         is not supported by /bin/sh, so...
15911         (SHELL): Define to /bin/bash.
15912
15913 2011-06-24  Eric Blake  <eblake@redhat.com>
15914
15915         maint.mk: update sc_prohibit_intprops_without_use
15916         * top/maint.mk (_intprops_names): Match recent changes.
15917
15918 2011-06-24  Bruno Haible  <bruno@clisp.org>
15919
15920         strerror-override: No-op tweak.
15921         * lib/strerror-override.h (strerror_override): Reorder conditions,
15922         for consistency with lib/strerror-override.c.
15923
15924 2011-06-23  Eric Blake  <eblake@redhat.com>
15925
15926         maint.mk: test further PATH_MAX issues
15927         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15928         (sc_prohibit_path_max_allocation): ...and also test alloca.
15929         Suggested by Jim Meyering.
15930
15931 2011-06-22  Eric Blake  <eblake@redhat.com>
15932
15933         maint.mk: add syntax-check to avoid char[PATH_MAX]
15934         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15935
15936         stat: be robust to PATH_MAX definition
15937         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15938         * modules/stat (Depends-on): Add verify.
15939
15940         link: work around IRIX bug
15941         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15942         * lib/link.c (rpl_link): Work around it.
15943         * tests/test-link.h (test_link): Enhance test.
15944         * doc/posix-functions/link.texi (link): Document the bug.
15945
15946         getopt: silence clang warning
15947         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15948         dereference.
15949         Reported by Gustavo Martin Domato.
15950
15951 2011-06-22  Jim Meyering  <meyering@redhat.com>
15952
15953         bootstrap: do not insert a blank line into each .gitignore file
15954         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15955
15956 2011-06-21  Eric Blake  <eblake@redhat.com>
15957
15958         perror: test for output mismatch
15959         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15960         perror on IRIX.
15961
15962         strerror_r: fix OpenBSD behavior on out-of-range
15963         * lib/strerror_r.c (strerror_r): Always use maximal string.
15964         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15965
15966         strerror_r: fix OpenBSD behavior on 0
15967         * lib/strerror-override.c (strerror_override): Also override 0
15968         when needed.
15969         * lib/strerror-override.h (strerror_override): Likewise.
15970         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15971         earlier.
15972         * lib/strerror_r.c (strerror_r): Likewise.
15973         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15974         behavior...
15975         (gl_FUNC_STRERROR_0): ...into new macro.
15976         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15977         is overridden.
15978         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15979         * modules/strerror-override (Files): Add strerror.m4.
15980         (configure.ac): Also provide override for 0 when needed.
15981         * doc/posix-functions/strerror.texi (strerror): Document this.
15982         * doc/posix-functions/perror.texi (perror): Likewise.
15983
15984         perror: adjust array size
15985         * modules/perror (Depends-on): Add strerror-override.
15986         * lib/perror.c (perror): Use it to avoid magic number.
15987
15988         strerror-override: reduce size
15989         * lib/strerror-override.c (strerror_override): Use fewer lines.
15990
15991 2011-06-20  Bruno Haible  <bruno@clisp.org>
15992
15993         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15994         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15995
15996 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15997
15998         alloca: port to compilers that can optimize like GCC 4.6.0
15999         * lib/alloca.c (find_stack_direction): New signature, taken from
16000         Autoconf git.  This works with GCC 4.6.0.  This code should never
16001         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16002         be used with other compilers that optimize as well as GCC 4.6.0 does.
16003         (alloca): Adjust to new signature.
16004         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16005         New macro, which patches Autoconf in a similar way.
16006
16007         c-stack: stop worrying about stack direction
16008         * lib/c-stack.c (find_stack_direction): Remove.
16009         (segv_handler): Don't worry about stack direction growth, as it's
16010         too much of a pain to configure this correctly, given how compilers
16011         are optimizing-away our stack-growth detection code.  Instead, assume
16012         that any access to just before or just after the stack is OK.
16013         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16014         Don't require AC_FUNC_ALLOCA; no longer needed.
16015
16016 2011-06-20  Eric Blake  <eblake@redhat.com>
16017
16018         test-stat: don't allocate PATH_MAX bytes
16019         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16020         PATH_MAX-sized buffer.
16021         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16022         * modules/stat-tests (Depends-on): Likewise.
16023         * tests/test-fstatat.c (includes): Drop pathmax.h.
16024         * tests/test-stat.c (includes): Likewise.
16025         Reported by Bruno Haible.
16026
16027 2011-06-20  Bruno Haible  <bruno@clisp.org>
16028
16029         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16030         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16031         * lib/float.c: New file.
16032         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16033         REPLACE_FLOAT_LDBL.
16034         * modules/float (Files): Add lib/float.c.
16035         (configure.ac): Invoke AC_LIBOBJ.
16036         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16037
16038 2011-06-20  Bruno Haible  <bruno@clisp.org>
16039
16040         Tests for module 'float'.
16041         * modules/float-tests: New file.
16042         * tests/test-float.c: New file.
16043
16044 2011-06-19  Bruno Haible  <bruno@clisp.org>
16045
16046         isinf: Coding style.
16047         * lib/isinf.c: Use GNU coding style.
16048
16049 2011-06-19  Bruno Haible  <bruno@clisp.org>
16050
16051         linkat test: Avoid test failure on AIX 7.1.
16052         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16053         * tests/test-link.h (test_link): Likewise.
16054
16055 2011-06-19  Bruno Haible  <bruno@clisp.org>
16056
16057         pread test: Avoid test failure on OpenBSD 4.9.
16058         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16059
16060 2011-06-19  Bruno Haible  <bruno@clisp.org>
16061
16062         sprintf-posix: Fix test failure on AIX 7.1.
16063         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16064         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16065         on AIX.
16066         * doc/posix-functions/fprintf.texi: Likewise.
16067         * doc/posix-functions/printf.texi: Likewise.
16068         * doc/posix-functions/snprintf.texi: Likewise.
16069         * doc/posix-functions/sprintf.texi: Likewise.
16070         * doc/posix-functions/vdprintf.texi: Likewise.
16071         * doc/posix-functions/vfprintf.texi: Likewise.
16072         * doc/posix-functions/vprintf.texi: Likewise.
16073         * doc/posix-functions/vsnprintf.texi: Likewise.
16074         * doc/posix-functions/vsprintf.texi: Likewise.
16075
16076 2011-06-19  Bruno Haible  <bruno@clisp.org>
16077
16078         roundl-ieee: Fix test failure on AIX 7.1.
16079         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16080         * doc/posix-functions/roundl.texi: Mention problem with negative
16081         arguments.
16082
16083 2011-06-19  Bruno Haible  <bruno@clisp.org>
16084
16085         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16086         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16087         * doc/posix-functions/round.texi: Mention problem with negative
16088         arguments.
16089         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16090
16091 2011-06-19  Bruno Haible  <bruno@clisp.org>
16092
16093         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16094         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16095         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16096         * doc/posix-functions/roundf.texi: Mention problem with negative
16097         arguments.
16098         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16099
16100 2011-06-19  Bruno Haible  <bruno@clisp.org>
16101
16102         ceilf-ieee: Work around bug on MacOS X 10.5.
16103         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16104
16105         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16106         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16107         IEEE compliant, avoid compiler optimizations.
16108         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16109         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16110         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16111         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16112         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16113         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16114         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16115         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16116         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16117         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16118
16119 2011-06-19  Bruno Haible  <bruno@clisp.org>
16120
16121         ceilf-ieee: Work around bug on AIX 7.1.
16122         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16123         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16124
16125 2011-06-19  Bruno Haible  <bruno@clisp.org>
16126
16127         ceil-ieee: Work around bug on AIX 7.1.
16128         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16129         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16130
16131 2011-06-18  Bruno Haible  <bruno@clisp.org>
16132
16133         fsync test: Avoid test failure on MacOS X and AIX.
16134         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16135         EINVAL.
16136
16137 2011-06-18  Bruno Haible  <bruno@clisp.org>
16138
16139         openat, fdopendir tests: Fix link errors.
16140         * modules/openat-tests (Depends-on): Add progname.
16141         * modules/fdopendir-tests (Depends-on): Likewise.
16142         * tests/test-fchownat.c: Include progname.h.
16143         (main): Call set_program_name.
16144         * tests/test-fstatat.c: Include progname.h.
16145         (main): Call set_program_name.
16146         * tests/test-mkdirat.c: Include progname.h.
16147         (main): Call set_program_name.
16148         * tests/test-openat.c: Include progname.h.
16149         (main): Call set_program_name.
16150         * tests/test-unlinkat.c: Include progname.h.
16151         (main): Call set_program_name.
16152         * tests/test-fdopendir.c: Include progname.h.
16153         (main): Call set_program_name.
16154
16155 2011-06-18  Bruno Haible  <bruno@clisp.org>
16156
16157         Doc update.
16158         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16159         HP-UX.
16160         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16161
16162 2011-06-18  Bruno Haible  <bruno@clisp.org>
16163
16164         getcwd tests: Avoid compilation error on HP-UX 11.31.
16165         * modules/getcwd-tests (Depends-on): Add pathmax.
16166         * tests/test-getcwd.c: Include pathmax.h.
16167
16168 2011-06-18  Bruno Haible  <bruno@clisp.org>
16169
16170         isfinite, isinf: Fix link error on AIX 6 and 7.
16171         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16172         needed, also test the macro with a 'float' argument.
16173         * m4/isinf.m4 (gl_ISINF): Likewise.
16174
16175 2011-06-18  Bruno Haible  <bruno@clisp.org>
16176
16177         getloadavg: Don't clobber LIBS. Regression from previous commit.
16178         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16179         AC_CHECK_LIB from here...
16180         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16181         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16182         gl_func_getloadavg_done.
16183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16184
16185 2011-06-18  Bruno Haible  <bruno@clisp.org>
16186
16187         clean-temp: Improve documentation.
16188         * lib/clean-temp.h: Explain better how to use this module.
16189         Reported by John Darrington <john@darrington.wattle.id.au>.
16190
16191 2011-06-17  Bruno Haible  <bruno@clisp.org>
16192
16193         pread, pwrite: Avoid cc warning on AIX.
16194         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16195         (pwrite): Likewise.
16196
16197 2011-06-17  Bruno Haible  <bruno@clisp.org>
16198
16199         spawn-pipe tests: Fix link error.
16200         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16202
16203 2011-06-17  Bruno Haible  <bruno@clisp.org>
16204
16205         Tests: Remove unnecessary dependency.
16206         * modules/canonicalize-tests (Depends-on): Remove progname.
16207         * modules/chown-tests (Depends-on): Likewise.
16208         * modules/dirname-tests (Depends-on): Likewise.
16209         * modules/fdopendir-tests (Depends-on): Likewise.
16210         * modules/fdutimensat-tests (Depends-on): Likewise.
16211         * modules/hash-tests (Depends-on): Likewise.
16212         * modules/lchown-tests (Depends-on): Likewise.
16213         * modules/linkat-tests (Depends-on): Likewise.
16214         * modules/renameat-tests (Depends-on): Likewise.
16215         * modules/spawn-pipe-tests (Depends-on): Likewise.
16216         * modules/utimensat-tests (Depends-on): Likewise.
16217
16218 2011-06-17  Bruno Haible  <bruno@clisp.org>
16219
16220         spawn-pipe tests: Fix link error.
16221         * tests/test-spawn-pipe-child.c: Undefine fflush.
16222
16223 2011-06-17  Bruno Haible  <bruno@clisp.org>
16224
16225         Fix tests link errors.
16226         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16227         * modules/chown-tests (Makefile.am): Don't link test-chown with
16228         LIBINTL.
16229         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16230         LIBINTL.
16231         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16232         LIBINTL.
16233         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16234         LIBINTL.
16235
16236 2011-06-16  Bruno Haible  <bruno@clisp.org>
16237
16238         crypto/gc-sha1: Fix recent regression.
16239         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16240         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16241
16242         crypto/gc-md5: Fix recent regression.
16243         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16244
16245         crypto/gc-md4: Fix recent regression.
16246         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16247         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16248
16249         crypto/gc-arctwo: Fix recent regression.
16250         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16251         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16252
16253         crypto/gc-rijndael: Fix recent regression.
16254         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16255         (configure.ac): Invoke AC_LIBOBJ here.
16256         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16257         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16258
16259         crypto/gc-hmac-sha1: Fix recent regression.
16260         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16261         (configure.ac): Invoke AC_LIBOBJ here.
16262         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16263         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16264
16265         crypto/gc-hmac-md5: Fix recent regression.
16266         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16267         (configure.ac): Invoke AC_LIBOBJ here.
16268         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16269         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16270
16271         crypto/gc-des: Fix recent regression.
16272         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16273         (configure.ac): Invoke AC_LIBOBJ here.
16274         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16276
16277         crypto/gc-arcfour: Fix recent regression.
16278         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16279         (configure.ac): Invoke AC_LIBOBJ here.
16280         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16282
16283 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16284
16285         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16286         After the 2011-05-21 change, this macro requires
16287         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16288         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16289
16290 2011-06-16  Bruno Haible  <bruno@clisp.org>
16291
16292         fprintftime: Move AC_LIBOBJ invocations to module description.
16293         * m4/fprintftime.m4: Remove file.
16294         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16295         (configure.ac): Remove gl_FPRINTFTIME call.
16296         (Makefile.am): Augment lib_SOURCES.
16297         Reported by Jim Meyering.
16298
16299 2011-06-16  Bruno Haible  <bruno@clisp.org>
16300
16301         tmpfile-safer: Finish 2011-05-23 commit.
16302         * m4/stdio-safer.m4: Really remove file.
16303         Reported by Jim Meyering.
16304
16305 2011-06-16  Bruno Haible  <bruno@clisp.org>
16306
16307         syntax-check: Fix typo.
16308         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16309         printf-posix.m4.
16310         Reported by Jim Meyering.
16311
16312 2011-06-13  Jim Meyering  <meyering@redhat.com>
16313
16314         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16315         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16316
16317 2011-05-23  Bruno Haible  <bruno@clisp.org>
16318
16319         yesno: Move AC_LIBOBJ invocations to module description.
16320         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16321         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16322
16323 2011-05-23  Bruno Haible  <bruno@clisp.org>
16324
16325         xstrtol: Move AC_LIBOBJ invocations to module description.
16326         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16327         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16328
16329 2011-05-23  Bruno Haible  <bruno@clisp.org>
16330
16331         xstrtold: Move AC_LIBOBJ invocations to module description.
16332         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16333         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16334
16335 2011-05-23  Bruno Haible  <bruno@clisp.org>
16336
16337         xstrtod: Move AC_LIBOBJ invocations to module description.
16338         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16339         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16340
16341 2011-05-23  Bruno Haible  <bruno@clisp.org>
16342
16343         xnanosleep: Move AC_LIBOBJ invocations to module description.
16344         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16345         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16346
16347 2011-05-23  Bruno Haible  <bruno@clisp.org>
16348
16349         xgetcwd: Move AC_LIBOBJ invocations to module description.
16350         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16351         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16352
16353 2011-05-23  Bruno Haible  <bruno@clisp.org>
16354
16355         xalloc: Move AC_LIBOBJ invocations to module description.
16356         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16357         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16358
16359 2011-05-23  Bruno Haible  <bruno@clisp.org>
16360
16361         write-any-file: Move AC_LIBOBJ invocations to module description.
16362         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16363         invocation.
16364         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16365
16366 2011-05-23  Bruno Haible  <bruno@clisp.org>
16367
16368         utimens: Move AC_LIBOBJ invocations to module description.
16369         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16370         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16371
16372 2011-05-23  Bruno Haible  <bruno@clisp.org>
16373
16374         utimecmp: Move AC_LIBOBJ invocations to module description.
16375         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16376         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16377
16378 2011-05-23  Bruno Haible  <bruno@clisp.org>
16379
16380         userspec: Move AC_LIBOBJ invocations to module description.
16381         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16382         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16383
16384 2011-05-23  Bruno Haible  <bruno@clisp.org>
16385
16386         unlinkdir: Move AC_LIBOBJ invocations to module description.
16387         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16388         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16389
16390 2011-05-23  Bruno Haible  <bruno@clisp.org>
16391
16392         unistd-safer: Move AC_LIBOBJ invocations to module description.
16393         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16394         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16395
16396 2011-05-23  Bruno Haible  <bruno@clisp.org>
16397
16398         tempname: Move AC_LIBOBJ invocations to module description.
16399         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16400         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16401
16402 2011-05-23  Bruno Haible  <bruno@clisp.org>
16403
16404         strftime: Move AC_LIBOBJ invocations to module description.
16405         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16406         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16407
16408 2011-05-23  Bruno Haible  <bruno@clisp.org>
16409
16410         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16411         * m4/stdlib-safer.m4: Remove file.
16412         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16413         (configure.ac): Remove gl_STDLIB_SAFER call.
16414         (Makefile.am): Augment lib_SOURCES.
16415
16416 2011-05-23  Bruno Haible  <bruno@clisp.org>
16417
16418         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16419         * m4/stdio-safer.m4: Remove file.
16420         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16421         (configure.ac): Remove gl_TMPFILE_SAFER call.
16422         (Makefile.am): Augment lib_SOURCES.
16423
16424 2011-05-23  Bruno Haible  <bruno@clisp.org>
16425
16426         popen-safer: Move AC_LIBOBJ invocations to module description.
16427         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16428         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16429         (configure.ac): Remove gl_POPEN_SAFER call.
16430         (Makefile.am): Augment lib_SOURCES.
16431
16432 2011-05-23  Bruno Haible  <bruno@clisp.org>
16433
16434         freopen-safer: Move AC_LIBOBJ invocations to module description.
16435         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16436         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16437         (configure.ac): Remove gl_FREOPEN_SAFER call.
16438         (Makefile.am): Augment lib_SOURCES.
16439
16440 2011-05-23  Bruno Haible  <bruno@clisp.org>
16441
16442         fopen-safer: Move AC_LIBOBJ invocations to module description.
16443         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16444         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16445         (configure.ac): Remove gl_FOPEN_SAFER call.
16446         (Makefile.am): Augment lib_SOURCES.
16447
16448 2011-05-23  Bruno Haible  <bruno@clisp.org>
16449
16450         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16451         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16452         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16453
16454 2011-05-23  Bruno Haible  <bruno@clisp.org>
16455
16456         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16457         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16458         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16459
16460 2011-05-23  Bruno Haible  <bruno@clisp.org>
16461
16462         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16463         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16464         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16465
16466 2011-05-23  Bruno Haible  <bruno@clisp.org>
16467
16468         settime: Move AC_LIBOBJ invocations to module description.
16469         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16470         * modules/settime (Makefile.am): Augment lib_SOURCES.
16471
16472 2011-05-23  Bruno Haible  <bruno@clisp.org>
16473
16474         savedir: Move AC_LIBOBJ invocations to module description.
16475         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16476         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16477
16478 2011-05-23  Bruno Haible  <bruno@clisp.org>
16479
16480         save-cwd: Move AC_LIBOBJ invocations to module description.
16481         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16482         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16483
16484 2011-05-23  Bruno Haible  <bruno@clisp.org>
16485
16486         same: Move AC_LIBOBJ invocations to module description.
16487         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16488         * modules/same (Makefile.am): Augment lib_SOURCES.
16489
16490 2011-05-23  Bruno Haible  <bruno@clisp.org>
16491
16492         safe-write: Move AC_LIBOBJ invocations to module description.
16493         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16494         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16495         instead of gl_SAFE_WRITE.
16496         (Makefile.am): Augment lib_SOURCES.
16497
16498 2011-05-23  Bruno Haible  <bruno@clisp.org>
16499
16500         safe-read: Move AC_LIBOBJ invocations to module description.
16501         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16502         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16503         of gl_SAFE_READ.
16504         (Makefile.am): Augment lib_SOURCES.
16505
16506 2011-05-23  Bruno Haible  <bruno@clisp.org>
16507
16508         safe-alloc: Move AC_LIBOBJ invocations to module description.
16509         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16510         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16511
16512 2011-05-23  Bruno Haible  <bruno@clisp.org>
16513
16514         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16515         * m4/rijndael.m4: Remove file.
16516         * modules/crypto/rijndael (Files): Remove it.
16517         (configure.ac): Remove gl_RIJNDAEL call.
16518         (Makefile.am): Augment lib_SOURCES.
16519
16520 2011-05-23  Bruno Haible  <bruno@clisp.org>
16521
16522         readtokens: Move AC_LIBOBJ invocations to module description.
16523         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16524         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16525
16526 2011-05-23  Bruno Haible  <bruno@clisp.org>
16527
16528         read-file: Move AC_LIBOBJ invocations to module description.
16529         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16530         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16531         of gl_FUNC_READ_FILE.
16532         (Makefile.am): Augment lib_SOURCES.
16533
16534 2011-05-23  Bruno Haible  <bruno@clisp.org>
16535
16536         quotearg: Move AC_LIBOBJ invocations to module description.
16537         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16538         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16539
16540 2011-05-23  Bruno Haible  <bruno@clisp.org>
16541
16542         quote: Move AC_LIBOBJ invocations to module description.
16543         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16544         * modules/quote (Makefile.am): Augment lib_SOURCES.
16545
16546 2011-05-23  Bruno Haible  <bruno@clisp.org>
16547
16548         posixver: Move AC_LIBOBJ invocations to module description.
16549         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16550         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16551
16552 2011-05-23  Bruno Haible  <bruno@clisp.org>
16553
16554         posixtm: Move AC_LIBOBJ invocations to module description.
16555         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16556         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16557
16558 2011-05-23  Bruno Haible  <bruno@clisp.org>
16559
16560         physmem: Move AC_LIBOBJ invocations to module description.
16561         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16562         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16563
16564 2011-05-23  Bruno Haible  <bruno@clisp.org>
16565
16566         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16567         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16568         invocation.
16569         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16570
16571 2011-05-23  Bruno Haible  <bruno@clisp.org>
16572
16573         mpsort: Move AC_LIBOBJ invocations to module description.
16574         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16575         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16576
16577 2011-05-23  Bruno Haible  <bruno@clisp.org>
16578
16579         modechange: Move AC_LIBOBJ invocations to module description.
16580         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16581         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16582
16583 2011-05-23  Bruno Haible  <bruno@clisp.org>
16584
16585         mkdir-p: Move AC_LIBOBJ invocations to module description.
16586         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16587         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16588
16589 2011-05-23  Bruno Haible  <bruno@clisp.org>
16590
16591         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16592         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16593         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16594
16595 2011-05-23  Bruno Haible  <bruno@clisp.org>
16596
16597         mgetgroups: Move AC_LIBOBJ invocations to module description.
16598         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16599         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16600
16601 2011-05-23  Bruno Haible  <bruno@clisp.org>
16602
16603         memxor: Move AC_LIBOBJ invocations to module description.
16604         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16605         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16606
16607 2011-05-23  Bruno Haible  <bruno@clisp.org>
16608
16609         memcoll: Move AC_LIBOBJ invocations to module description.
16610         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16611         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16612
16613 2011-05-23  Bruno Haible  <bruno@clisp.org>
16614
16615         memcasecmp: Move AC_LIBOBJ invocations to module description.
16616         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16617         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16618
16619 2011-05-23  Bruno Haible  <bruno@clisp.org>
16620
16621         crypto/md5: Move AC_LIBOBJ invocations to module description.
16622         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16623         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16624
16625 2011-05-23  Bruno Haible  <bruno@clisp.org>
16626
16627         crypto/md4: Move AC_LIBOBJ invocations to module description.
16628         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16629         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16630
16631 2011-05-23  Bruno Haible  <bruno@clisp.org>
16632
16633         crypto/md2: Move AC_LIBOBJ invocations to module description.
16634         * m4/md2.m4: Remove file.
16635         * modules/crypto/md2 (Files): Remove it.
16636         (configure.ac): Remove gl_MD2 call.
16637         (Makefile.am): Augment lib_SOURCES.
16638
16639 2011-05-23  Bruno Haible  <bruno@clisp.org>
16640
16641         long-options: Move AC_LIBOBJ invocations to module description.
16642         * m4/long-options.m4: Remove file.
16643         * modules/long-options (Files): Remove it.
16644         (configure.ac): Remove gl_LONG_OPTIONS call.
16645         (Makefile.am): Augment lib_SOURCES.
16646
16647 2011-05-23  Bruno Haible  <bruno@clisp.org>
16648
16649         i-ring: Move AC_LIBOBJ invocations to module description.
16650         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16651         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16652
16653 2011-05-23  Bruno Haible  <bruno@clisp.org>
16654
16655         idcache: Move AC_LIBOBJ invocations to module description.
16656         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16657         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16658
16659 2011-05-23  Bruno Haible  <bruno@clisp.org>
16660
16661         human: Move AC_LIBOBJ invocations to module description.
16662         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16663         * modules/human (Makefile.am): Augment lib_SOURCES.
16664
16665 2011-05-23  Bruno Haible  <bruno@clisp.org>
16666
16667         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16668         * m4/hmac-sha1.m4: Remove file.
16669         * modules/crypto/hmac-sha1 (Files): Remove it.
16670         (configure.ac): Remove gl_HMAC_SHA1 call.
16671         (Makefile.am): Augment lib_SOURCES.
16672
16673 2011-05-23  Bruno Haible  <bruno@clisp.org>
16674
16675         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16676         * m4/hmac-md5.m4: Remove file.
16677         * modules/crypto/hmac-md5 (Files): Remove it.
16678         (configure.ac): Remove gl_HMAC_MD5 call.
16679         (Makefile.am): Augment lib_SOURCES.
16680
16681 2011-05-23  Bruno Haible  <bruno@clisp.org>
16682
16683         hash: Move AC_LIBOBJ invocations to module description.
16684         * m4/hash.m4: Remove file.
16685         * modules/hash (Files): Remove it.
16686         (configure.ac): Remove gl_HASH call.
16687         (Makefile.am): Augment lib_SOURCES.
16688
16689 2011-05-23  Bruno Haible  <bruno@clisp.org>
16690
16691         hard-locale: Move AC_LIBOBJ invocations to module description.
16692         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16693         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16694
16695 2011-05-23  Bruno Haible  <bruno@clisp.org>
16696
16697         getugroups: Move AC_LIBOBJ invocations to module description.
16698         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16699         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16700
16701 2011-05-23  Bruno Haible  <bruno@clisp.org>
16702
16703         gettime: Move AC_LIBOBJ invocations to module description.
16704         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16705         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16706
16707 2011-05-23  Bruno Haible  <bruno@clisp.org>
16708
16709         getndelim2: Move AC_LIBOBJ invocations to module description.
16710         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16711         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16712
16713 2011-05-23  Bruno Haible  <bruno@clisp.org>
16714
16715         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16716         * m4/gc-pbkdf2-sha1.m4: Remove file.
16717         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16718         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16719         (Makefile.am): Augment lib_SOURCES.
16720
16721 2011-05-23  Bruno Haible  <bruno@clisp.org>
16722
16723         fts: Move AC_LIBOBJ invocations to module description.
16724         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16725         * modules/fts (configure.ac): ... to here.
16726
16727 2011-05-23  Bruno Haible  <bruno@clisp.org>
16728
16729         file-type: Move AC_LIBOBJ invocations to module description.
16730         * m4/file-type.m4: Remove file.
16731         * modules/file-type (Files): Remove it.
16732         (configure.ac): Remove gl_FILE_TYPE call.
16733         (Makefile.am): Augment lib_SOURCES.
16734
16735 2011-05-23  Bruno Haible  <bruno@clisp.org>
16736
16737         filenamecat*: Respect rules for use of AC_LIBOBJ.
16738         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16739         Remove AC_LIBOBJ invocation.
16740         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16741         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16742
16743 2011-05-23  Bruno Haible  <bruno@clisp.org>
16744
16745         filemode: Move AC_LIBOBJ invocations to module description.
16746         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16747         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16748
16749 2011-05-23  Bruno Haible  <bruno@clisp.org>
16750
16751         openat-safer: Move AC_LIBOBJ invocations to module description.
16752         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16753         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16754
16755 2011-05-23  Bruno Haible  <bruno@clisp.org>
16756
16757         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16758         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16759         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16760
16761 2011-05-23  Bruno Haible  <bruno@clisp.org>
16762
16763         exclude: Move AC_LIBOBJ invocations to module description.
16764         * m4/exclude.m4: Remove file.
16765         * modules/exclude (Files): Remove it.
16766         (configure.ac): Remove gl_EXCLUDE call.
16767         (Makefile.am): Augment lib_SOURCES.
16768
16769 2011-05-23  Bruno Haible  <bruno@clisp.org>
16770
16771         dirname*: Respect rules for use of AC_LIBOBJ.
16772         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16773         invocations.
16774         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16775         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16776
16777 2011-05-23  Bruno Haible  <bruno@clisp.org>
16778
16779         dirent-safer: Move AC_LIBOBJ invocations to module description.
16780         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16781         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16782
16783 2011-05-23  Bruno Haible  <bruno@clisp.org>
16784
16785         crypto/des: Move AC_LIBOBJ invocations to module description.
16786         * m4/des.m4: Remove file.
16787         * modules/crypto/des (Files): Remove it.
16788         (configure.ac): Remove gl_DES call.
16789         (Makefile.am): Augment lib_SOURCES.
16790
16791 2011-05-23  Bruno Haible  <bruno@clisp.org>
16792
16793         cycle-check: Move AC_LIBOBJ invocations to module description.
16794         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16795         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16796
16797 2011-05-23  Bruno Haible  <bruno@clisp.org>
16798
16799         c-strtold: Move AC_LIBOBJ invocations to module description.
16800         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16801         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16802
16803 2011-05-23  Bruno Haible  <bruno@clisp.org>
16804
16805         c-strtod: Move AC_LIBOBJ invocations to module description.
16806         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16807         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16808
16809 2011-05-23  Bruno Haible  <bruno@clisp.org>
16810
16811         crc: Move AC_LIBOBJ invocations to module description.
16812         * m4/crc.m4: Remove file.
16813         * modules/crc (Files): Remove it.
16814         (configure.ac): Remove gl_CRC call.
16815         (Makefile.am): Augment lib_SOURCES.
16816
16817 2011-05-23  Bruno Haible  <bruno@clisp.org>
16818
16819         close-stream: Move AC_LIBOBJ invocations to module description.
16820         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16821         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16822
16823 2011-05-23  Bruno Haible  <bruno@clisp.org>
16824
16825         closeout: Move AC_LIBOBJ invocations to module description.
16826         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16827         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16828
16829 2011-05-23  Bruno Haible  <bruno@clisp.org>
16830
16831         closein: Move AC_LIBOBJ invocations to module description.
16832         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16833         * modules/closein (Makefile.am): Augment lib_SOURCES.
16834
16835 2011-05-23  Bruno Haible  <bruno@clisp.org>
16836
16837         cloexec: Move AC_LIBOBJ invocations to module description.
16838         * m4/cloexec.m4: Remove file.
16839         * modules/cloexec (Files): Remove it.
16840         (configure.ac): Remove gl_CLOEXEC call.
16841         (Makefile.am): Augment lib_SOURCES.
16842
16843 2011-05-23  Bruno Haible  <bruno@clisp.org>
16844
16845         check-version: Move AC_LIBOBJ invocations to module description.
16846         * m4/check-version.m4: Remove file.
16847         * modules/check-version (Files): Remove it.
16848         (configure.ac): Remove gl_CHECK_VERSION call.
16849         (Makefile.am): Augment lib_SOURCES.
16850
16851 2011-05-23  Bruno Haible  <bruno@clisp.org>
16852
16853         chdir-safer: Move AC_LIBOBJ invocations to module description.
16854         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16855         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16856
16857 2011-05-23  Bruno Haible  <bruno@clisp.org>
16858
16859         canonicalize: Move AC_LIBOBJ invocations to module description.
16860         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16861         AC_LIBOBJ invocation.
16862         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16863
16864 2011-05-23  Bruno Haible  <bruno@clisp.org>
16865
16866         canon-host: Move AC_LIBOBJ invocations to module description.
16867         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16868         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16869         instead of gl_CANON_HOST.
16870         (Makefile.am): Augment lib_SOURCES.
16871
16872 2011-05-23  Bruno Haible  <bruno@clisp.org>
16873
16874         backupfile: Move AC_LIBOBJ invocations to module description.
16875         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16876         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16877
16878 2011-05-23  Bruno Haible  <bruno@clisp.org>
16879
16880         argmatch: Move AC_LIBOBJ invocations to module description.
16881         * m4/argmatch.m4: Remove file.
16882         * modules/argmatch (Files): Remove it.
16883         (configure.ac): Remove gl_ARGMATCH call.
16884         (Makefile.am): Augment lib_SOURCES.
16885
16886 2011-05-23  Bruno Haible  <bruno@clisp.org>
16887
16888         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16889         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16890         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16891
16892 2011-05-23  Bruno Haible  <bruno@clisp.org>
16893
16894         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16895         * m4/arcfour.m4: Remove file.
16896         * modules/crypto/arcfour (Files): Remove it.
16897         (configure.ac): Remove gl_ARCFOUR call.
16898         (Makefile.am): Augment lib_SOURCES.
16899
16900 2011-05-22  Bruno Haible  <bruno@clisp.org>
16901
16902         write: Move AC_LIBOBJ invocations to module description.
16903         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16904         * modules/write (configure.ac): ... to here.
16905
16906 2011-05-22  Bruno Haible  <bruno@clisp.org>
16907
16908         wmemset: Move AC_LIBOBJ invocations to module description.
16909         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16910         here...
16911         * modules/wmemset (configure.ac): ... to here.
16912
16913 2011-05-22  Bruno Haible  <bruno@clisp.org>
16914
16915         wmemmove: Move AC_LIBOBJ invocations to module description.
16916         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16917         here...
16918         * modules/wmemmove (configure.ac): ... to here.
16919
16920 2011-05-22  Bruno Haible  <bruno@clisp.org>
16921
16922         wmemcpy: Move AC_LIBOBJ invocations to module description.
16923         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16924         here...
16925         * modules/wmemcpy (configure.ac): ... to here.
16926
16927 2011-05-22  Bruno Haible  <bruno@clisp.org>
16928
16929         wmemcmp: Move AC_LIBOBJ invocations to module description.
16930         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16931         here...
16932         * modules/wmemcmp (configure.ac): ... to here.
16933
16934 2011-05-22  Bruno Haible  <bruno@clisp.org>
16935
16936         wmemchr: Move AC_LIBOBJ invocations to module description.
16937         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16938         here...
16939         * modules/wmemchr (configure.ac): ... to here.
16940
16941 2011-05-22  Bruno Haible  <bruno@clisp.org>
16942
16943         wcswidth: Move AC_LIBOBJ invocations to module description.
16944         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16945         here...
16946         * modules/wcswidth (configure.ac): ... to here.
16947
16948 2011-05-22  Bruno Haible  <bruno@clisp.org>
16949
16950         wcwidth: Respect rules for use of AC_LIBOBJ.
16951         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16952         invocation from here...
16953         * modules/wcwidth (configure.ac): ... to here.
16954         (Depends-on): Update conditions.
16955
16956 2011-05-22  Bruno Haible  <bruno@clisp.org>
16957
16958         wctype: Move AC_LIBOBJ invocations to module description.
16959         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16960         invocation from here...
16961         * modules/wctype (configure.ac): ... to here.
16962         (Depends-on): Update conditions.
16963
16964 2011-05-22  Bruno Haible  <bruno@clisp.org>
16965
16966         wctrans: Move AC_LIBOBJ invocations to module description.
16967         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16968         invocation from here...
16969         * modules/wctrans (configure.ac): ... to here.
16970
16971 2011-05-22  Bruno Haible  <bruno@clisp.org>
16972
16973         wctomb: Move AC_LIBOBJ invocations to module description.
16974         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16975         invocations from here...
16976         * modules/wctomb (configure.ac): ... to here.
16977
16978 2011-05-22  Bruno Haible  <bruno@clisp.org>
16979
16980         wctob: Move AC_LIBOBJ invocations to module description.
16981         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16982         gl_PREREQ_WCTOB invocations from here...
16983         * modules/wctob (configure.ac): ... to here.
16984         (Depends-on): Update conditions.
16985
16986 2011-05-22  Bruno Haible  <bruno@clisp.org>
16987
16988         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16989         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16990         here...
16991         * modules/wcsxfrm (configure.ac): ... to here.
16992
16993 2011-05-22  Bruno Haible  <bruno@clisp.org>
16994
16995         wcstok: Move AC_LIBOBJ invocations to module description.
16996         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16997         * modules/wcstok (configure.ac): ... to here.
16998
16999 2011-05-22  Bruno Haible  <bruno@clisp.org>
17000
17001         wcsstr: Move AC_LIBOBJ invocations to module description.
17002         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17003         * modules/wcsstr (configure.ac): ... to here.
17004
17005 2011-05-22  Bruno Haible  <bruno@clisp.org>
17006
17007         wcsspn: Move AC_LIBOBJ invocations to module description.
17008         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17009         * modules/wcsspn (configure.ac): ... to here.
17010
17011 2011-05-22  Bruno Haible  <bruno@clisp.org>
17012
17013         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17014         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17015         gl_PREREQ_WCSRTOMBS invocations from here...
17016         * modules/wcsrtombs (configure.ac): ... to here.
17017
17018 2011-05-22  Bruno Haible  <bruno@clisp.org>
17019
17020         wcsrchr: Move AC_LIBOBJ invocations to module description.
17021         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17022         here...
17023         * modules/wcsrchr (configure.ac): ... to here.
17024
17025 2011-05-22  Bruno Haible  <bruno@clisp.org>
17026
17027         wcspbrk: Move AC_LIBOBJ invocations to module description.
17028         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17029         here...
17030         * modules/wcspbrk (configure.ac): ... to here.
17031
17032 2011-05-22  Bruno Haible  <bruno@clisp.org>
17033
17034         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17035         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17036         gl_PREREQ_WCSNRTOMBS invocations from here...
17037         * modules/wcsnrtombs (configure.ac): ... to here.
17038
17039 2011-05-22  Bruno Haible  <bruno@clisp.org>
17040
17041         wcsnlen: Move AC_LIBOBJ invocations to module description.
17042         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17043         here...
17044         * modules/wcsnlen (configure.ac): ... to here.
17045
17046 2011-05-22  Bruno Haible  <bruno@clisp.org>
17047
17048         wcsncpy: Move AC_LIBOBJ invocations to module description.
17049         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17050         here...
17051         * modules/wcsncpy (configure.ac): ... to here.
17052
17053 2011-05-22  Bruno Haible  <bruno@clisp.org>
17054
17055         wcsncmp: Move AC_LIBOBJ invocations to module description.
17056         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17057         here...
17058         * modules/wcsncmp (configure.ac): ... to here.
17059
17060 2011-05-22  Bruno Haible  <bruno@clisp.org>
17061
17062         wcsncat: Move AC_LIBOBJ invocations to module description.
17063         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17064         here...
17065         * modules/wcsncat (configure.ac): ... to here.
17066
17067 2011-05-22  Bruno Haible  <bruno@clisp.org>
17068
17069         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17070         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17071         from here...
17072         * modules/wcsncasecmp (configure.ac): ... to here.
17073
17074 2011-05-22  Bruno Haible  <bruno@clisp.org>
17075
17076         wcslen: Move AC_LIBOBJ invocations to module description.
17077         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17078         * modules/wcslen (configure.ac): ... to here.
17079
17080 2011-05-22  Bruno Haible  <bruno@clisp.org>
17081
17082         wcsdup: Move AC_LIBOBJ invocations to module description.
17083         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17084         * modules/wcsdup (configure.ac): ... to here.
17085
17086 2011-05-22  Bruno Haible  <bruno@clisp.org>
17087
17088         wcscspn: Move AC_LIBOBJ invocations to module description.
17089         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17090         here...
17091         * modules/wcscspn (configure.ac): ... to here.
17092
17093 2011-05-22  Bruno Haible  <bruno@clisp.org>
17094
17095         wcscpy: Move AC_LIBOBJ invocations to module description.
17096         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17097         * modules/wcscpy (configure.ac): ... to here.
17098
17099 2011-05-22  Bruno Haible  <bruno@clisp.org>
17100
17101         wcscoll: Move AC_LIBOBJ invocations to module description.
17102         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17103         here...
17104         * modules/wcscoll (configure.ac): ... to here.
17105
17106 2011-05-22  Bruno Haible  <bruno@clisp.org>
17107
17108         wcscmp: Move AC_LIBOBJ invocations to module description.
17109         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17110         * modules/wcscmp (configure.ac): ... to here.
17111
17112 2011-05-22  Bruno Haible  <bruno@clisp.org>
17113
17114         wcschr: Move AC_LIBOBJ invocations to module description.
17115         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17116         * modules/wcschr (configure.ac): ... to here.
17117
17118 2011-05-22  Bruno Haible  <bruno@clisp.org>
17119
17120         wcscat: Move AC_LIBOBJ invocations to module description.
17121         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17122         * modules/wcscat (configure.ac): ... to here.
17123
17124 2011-05-22  Bruno Haible  <bruno@clisp.org>
17125
17126         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17127         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17128         here...
17129         * modules/wcscasecmp (configure.ac): ... to here.
17130
17131 2011-05-22  Bruno Haible  <bruno@clisp.org>
17132
17133         wcrtomb: Move AC_LIBOBJ invocations to module description.
17134         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17135         invocations from here...
17136         * modules/wcrtomb (configure.ac): ... to here.
17137
17138 2011-05-22  Bruno Haible  <bruno@clisp.org>
17139
17140         wcpncpy: Move AC_LIBOBJ invocations to module description.
17141         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17142         here...
17143         * modules/wcpncpy (configure.ac): ... to here.
17144
17145 2011-05-22  Bruno Haible  <bruno@clisp.org>
17146
17147         wcpcpy: Move AC_LIBOBJ invocations to module description.
17148         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17149         * modules/wcpcpy (configure.ac): ... to here.
17150
17151 2011-05-22  Bruno Haible  <bruno@clisp.org>
17152
17153         waitpid: Move AC_LIBOBJ invocations to module description.
17154         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17155         invocation from here...
17156         * modules/waitpid (configure.ac): ... to here.
17157
17158 2011-05-22  Bruno Haible  <bruno@clisp.org>
17159
17160         utimensat: Move AC_LIBOBJ invocations to module description.
17161         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17162         here...
17163         * modules/utimensat (configure.ac): ... to here.
17164
17165 2011-05-22  Bruno Haible  <bruno@clisp.org>
17166
17167         usleep: Move AC_LIBOBJ invocations to module description.
17168         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17169         here...
17170         * modules/usleep (configure.ac): ... to here.
17171
17172 2011-05-22  Bruno Haible  <bruno@clisp.org>
17173
17174         unlockpt: Move AC_LIBOBJ invocations to module description.
17175         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17176         gl_PREREQ_UNLOCKPT invocations from here...
17177         * modules/unlockpt (configure.ac): ... to here.
17178
17179 2011-05-22  Bruno Haible  <bruno@clisp.org>
17180
17181         unlink: Respect rules for use of AC_LIBOBJ.
17182         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17183         * modules/unlink (configure.ac): ... to here.
17184
17185 2011-05-22  Bruno Haible  <bruno@clisp.org>
17186
17187         uname: Move AC_LIBOBJ invocations to module description.
17188         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17189         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17190         here...
17191         * modules/uname (configure.ac): ... to here.
17192
17193 2011-05-22  Bruno Haible  <bruno@clisp.org>
17194
17195         ttyname_r: Move AC_LIBOBJ invocations to module description.
17196         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17197         gl_PREREQ_TTYNAME_R invocations from here...
17198         * modules/ttyname_r (configure.ac): ... to here.
17199
17200 2011-05-22  Bruno Haible  <bruno@clisp.org>
17201
17202         tsearch: Move AC_LIBOBJ invocations to module description.
17203         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17204         invocations from here...
17205         * modules/tsearch (configure.ac): ... to here.
17206
17207 2011-05-22  Bruno Haible  <bruno@clisp.org>
17208
17209         towctrans: Move AC_LIBOBJ invocations to module description.
17210         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17211         AC_LIBOBJ invocation from here...
17212         * modules/towctrans (configure.ac): ... to here.
17213
17214 2011-05-22  Bruno Haible  <bruno@clisp.org>
17215
17216         tmpfile: Move AC_LIBOBJ invocations to module description.
17217         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17218         invocations from here...
17219         * modules/tmpfile (configure.ac): ... to here.
17220
17221 2011-05-22  Bruno Haible  <bruno@clisp.org>
17222
17223         times: Move AC_LIBOBJ invocations to module description.
17224         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17225         * modules/times (configure.ac): ... to here.
17226
17227 2011-05-22  Bruno Haible  <bruno@clisp.org>
17228
17229         time_r: Move AC_LIBOBJ invocations to module description.
17230         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17231         invocations from here...
17232         * modules/time_r (configure.ac): ... to here.
17233
17234 2011-05-22  Bruno Haible  <bruno@clisp.org>
17235
17236         timegm: Move AC_LIBOBJ invocations to module description.
17237         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17238         invocations from here...
17239         * modules/timegm (configure.ac): ... to here.
17240
17241 2011-05-22  Bruno Haible  <bruno@clisp.org>
17242
17243         tcgetsid: Move AC_LIBOBJ invocations to module description.
17244         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17245         and gl_PREREQ_TCGETSID invocations from here...
17246         * modules/tcgetsid (configure.ac): ... to here.
17247         (Depends-on): Update conditions.
17248
17249 2011-05-22  Bruno Haible  <bruno@clisp.org>
17250
17251         symlinkat: Move AC_LIBOBJ invocations to module description.
17252         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17253         here...
17254         * modules/symlinkat (configure.ac): ... to here.
17255
17256 2011-05-22  Bruno Haible  <bruno@clisp.org>
17257
17258         symlink: Move AC_LIBOBJ invocations to module description.
17259         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17260         here...
17261         * modules/symlink (configure.ac): ... to here.
17262
17263 2011-05-22  Bruno Haible  <bruno@clisp.org>
17264
17265         strverscmp: Move AC_LIBOBJ invocations to module description.
17266         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17267         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17268         from here...
17269         * modules/strverscmp (configure.ac): ... to here.
17270
17271 2011-05-22  Bruno Haible  <bruno@clisp.org>
17272
17273         strtok_r: Move AC_LIBOBJ invocations to module description.
17274         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17275         and gl_PREREQ_STRTOK_R invocations from here...
17276         * modules/strtok_r (configure.ac): ... to here.
17277         (Depends-on): Update conditions.
17278
17279 2011-05-22  Bruno Haible  <bruno@clisp.org>
17280
17281         strtoumax: Move AC_LIBOBJ invocations to module description.
17282         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17283         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17284         from here...
17285         * modules/strtoumax (configure.ac): ... to here.
17286
17287 2011-05-22  Bruno Haible  <bruno@clisp.org>
17288
17289         strtoimax: Move AC_LIBOBJ invocations to module description.
17290         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17291         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17292         from here...
17293         * modules/strtoimax (configure.ac): ... to here.
17294
17295 2011-05-22  Bruno Haible  <bruno@clisp.org>
17296
17297         strtoull: Move AC_LIBOBJ invocations to module description.
17298         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17299         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17300         from here...
17301         * modules/strtoull (configure.ac): ... to here.
17302
17303 2011-05-22  Bruno Haible  <bruno@clisp.org>
17304
17305         strtoll: Move AC_LIBOBJ invocations to module description.
17306         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17307         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17308         here...
17309         * modules/strtoll (configure.ac): ... to here.
17310
17311 2011-05-22  Bruno Haible  <bruno@clisp.org>
17312
17313         strtoul: Move AC_LIBOBJ invocations to module description.
17314         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17315         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17316         * modules/strtoul (configure.ac): ... to here.
17317
17318 2011-05-22  Bruno Haible  <bruno@clisp.org>
17319
17320         strtol: Move AC_LIBOBJ invocations to module description.
17321         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17322         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17323         * modules/strtol (configure.ac): ... to here.
17324
17325 2011-05-22  Bruno Haible  <bruno@clisp.org>
17326
17327         strtod: Move AC_LIBOBJ invocations to module description.
17328         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17329         invocations from here...
17330         * modules/strtod (configure.ac): ... to here.
17331
17332 2011-05-22  Bruno Haible  <bruno@clisp.org>
17333
17334         strstr*: Move AC_LIBOBJ invocations to module description.
17335         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17336         invocations from here...
17337         * modules/strstr-simple (configure.ac): ... to here.
17338         * modules/strstr (configure.ac): ... and here.
17339
17340 2011-05-22  Bruno Haible  <bruno@clisp.org>
17341
17342         strsignal: Move AC_LIBOBJ invocations to module description.
17343         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17344         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17345         * modules/strsignal (configure.ac): ... to here.
17346         (Depends-on): Update conditions.
17347
17348 2011-05-22  Bruno Haible  <bruno@clisp.org>
17349
17350         strsep: Move AC_LIBOBJ invocations to module description.
17351         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17353         here...
17354         * modules/strsep (configure.ac): ... to here.
17355
17356 2011-05-22  Bruno Haible  <bruno@clisp.org>
17357
17358         strptime: Move AC_LIBOBJ invocations to module description.
17359         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17360         gl_PREREQ_STRPTIME invocations from here...
17361         * modules/strptime (configure.ac): ... to here.
17362
17363 2011-05-22  Bruno Haible  <bruno@clisp.org>
17364
17365         strpbrk: Move AC_LIBOBJ invocations to module description.
17366         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17367         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17368         here...
17369         * modules/strpbrk (configure.ac): ... to here.
17370
17371 2011-05-22  Bruno Haible  <bruno@clisp.org>
17372
17373         strnlen: Move AC_LIBOBJ invocations to module description.
17374         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17375         invocations from here...
17376         * modules/strnlen (configure.ac): ... to here.
17377
17378 2011-05-22  Bruno Haible  <bruno@clisp.org>
17379
17380         strndup: Move AC_LIBOBJ invocations to module description.
17381         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17382         invocations from here...
17383         * modules/strndup (configure.ac): ... to here.
17384         (Depends-on): Update conditions.
17385
17386 2011-05-22  Bruno Haible  <bruno@clisp.org>
17387
17388         strncat: Move AC_LIBOBJ invocations to module description.
17389         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17390         invocations from here...
17391         * modules/strncat (configure.ac): ... to here.
17392
17393 2011-05-22  Bruno Haible  <bruno@clisp.org>
17394
17395         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17396         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17397         invocations from here...
17398         * modules/strdup (configure.ac): ... to here.
17399         * modules/strdup-posix (configure.ac): ... and here.
17400
17401 2011-05-22  Bruno Haible  <bruno@clisp.org>
17402
17403         strcspn: Move AC_LIBOBJ invocations to module description.
17404         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17405         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17406         here...
17407         * modules/strcspn (configure.ac): ... to here.
17408
17409 2011-05-22  Bruno Haible  <bruno@clisp.org>
17410
17411         strchrnul: Move AC_LIBOBJ invocations to module description.
17412         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17413         gl_PREREQ_STRCHRNUL invocations from here...
17414         * modules/strchrnul (configure.ac): ... to here.
17415
17416 2011-05-22  Bruno Haible  <bruno@clisp.org>
17417
17418         strcasestr*: Move AC_LIBOBJ invocations to module description.
17419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17420         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17421         * modules/strcasestr-simple (configure.ac): ... to here.
17422         * modules/strcasestr (configure.ac): ... and here.
17423
17424 2011-05-22  Bruno Haible  <bruno@clisp.org>
17425
17426         strcase: Move AC_LIBOBJ invocations to module description.
17427         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17428         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17429         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17430         gl_PREREQ_STRNCASECMP invocations from here...
17431         * modules/strcase (configure.ac): ... to here.
17432
17433 2011-05-22  Bruno Haible  <bruno@clisp.org>
17434
17435         stpncpy: Move AC_LIBOBJ invocations to module description.
17436         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17437         here...
17438         * modules/stpncpy (configure.ac): ... to here.
17439
17440 2011-05-22  Bruno Haible  <bruno@clisp.org>
17441
17442         stpcpy: Move AC_LIBOBJ invocations to module description.
17443         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17444         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17445         here...
17446         * modules/stpcpy (configure.ac): ... to here.
17447
17448 2011-05-21  Bruno Haible  <bruno@clisp.org>
17449
17450         stat: Move AC_LIBOBJ invocations to module description.
17451         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17452         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17453         here...
17454         * modules/stat (configure.ac): ... to here.
17455
17456 2011-05-21  Bruno Haible  <bruno@clisp.org>
17457
17458         sleep: Move AC_LIBOBJ invocations to module description.
17459         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17460         * modules/sleep (configure.ac): ... to here.
17461
17462 2011-05-21  Bruno Haible  <bruno@clisp.org>
17463
17464         signbit: Move AC_LIBOBJ invocations to module description.
17465         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17466         * modules/signbit (configure.ac): ... to here.
17467
17468 2011-05-21  Bruno Haible  <bruno@clisp.org>
17469
17470         sigprocmask: Move AC_LIBOBJ invocations to module description.
17471         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17472         gl_PREREQ_SIGPROMASK invocations from here...
17473         * modules/sigprocmask (configure.ac): ... to here.
17474
17475 2011-05-21  Bruno Haible  <bruno@clisp.org>
17476
17477         sigaction: Move AC_LIBOBJ invocations to module description.
17478         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17479         gl_PREREQ_SIGACTION invocations from here...
17480         * modules/sigaction (configure.ac): ... to here.
17481
17482 2011-05-21  Bruno Haible  <bruno@clisp.org>
17483
17484         sig2str: Move AC_LIBOBJ invocations to module description.
17485         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17486         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17487         here...
17488         * modules/sig2str (configure.ac): ... to here.
17489
17490 2011-05-21  Bruno Haible  <bruno@clisp.org>
17491
17492         setlocale: Move AC_LIBOBJ invocations to module description.
17493         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17494         gl_PREREQ_SETLOCALE invocations from here...
17495         * modules/setlocale (configure.ac): ... to here.
17496
17497 2011-05-21  Bruno Haible  <bruno@clisp.org>
17498
17499         unsetenv: Move AC_LIBOBJ invocations to module description.
17500         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17501         and gl_PREREQ_UNSETENV invocations from here...
17502         * modules/unsetenv (configure.ac): ... to here.
17503         (Depends-on): Update.
17504
17505 2011-05-21  Bruno Haible  <bruno@clisp.org>
17506
17507         setenv: Move AC_LIBOBJ invocations to module description.
17508         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17509         here...
17510         * modules/setenv (configure.ac): ... to here.
17511
17512 2011-05-21  Bruno Haible  <bruno@clisp.org>
17513
17514         selinux-h: Move AC_LIBOBJ invocations to module description.
17515         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17516         AC_LIBOBJ invocation from here...
17517         * modules/selinux-h (configure.ac): ... to here.
17518
17519 2011-05-21  Bruno Haible  <bruno@clisp.org>
17520
17521         select: Respect rules for use of AC_LIBOBJ.
17522         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17523         here...
17524         * modules/select (configure.ac): ... to here.
17525
17526 2011-05-21  Bruno Haible  <bruno@clisp.org>
17527
17528         scandir: Move AC_LIBOBJ invocations to module description.
17529         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17530         invocations from here...
17531         * modules/scandir (configure.ac): ... to here.
17532
17533 2011-05-21  Bruno Haible  <bruno@clisp.org>
17534
17535         rpmatch: Move AC_LIBOBJ invocations to module description.
17536         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17537         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17538         here...
17539         * modules/rpmatch (configure.ac): ... to here.
17540
17541 2011-05-21  Bruno Haible  <bruno@clisp.org>
17542
17543         rmdir: Respect rules for use of AC_LIBOBJ.
17544         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17545         * modules/rmdir (configure.ac): ... to here.
17546
17547 2011-05-21  Bruno Haible  <bruno@clisp.org>
17548
17549         renameat: Move AC_LIBOBJ invocations to module description.
17550         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17551         here...
17552         * modules/renameat (configure.ac): ... to here.
17553
17554 2011-05-21  Bruno Haible  <bruno@clisp.org>
17555
17556         rename: Respect rules for use of AC_LIBOBJ.
17557         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17558         here...
17559         * modules/rename (configure.ac): ... to here.
17560
17561 2011-05-21  Bruno Haible  <bruno@clisp.org>
17562
17563         remove: Move AC_LIBOBJ invocations to module description.
17564         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17565         here...
17566         * modules/remove (configure.ac): ... to here.
17567
17568 2011-05-21  Bruno Haible  <bruno@clisp.org>
17569
17570         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17571         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17572         macro.
17573         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17574         * modules/relocatable-lib (configure.ac): ... to here.
17575         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17576         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17577
17578 2011-05-21  Bruno Haible  <bruno@clisp.org>
17579
17580         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17581         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17582         here...
17583         * modules/relocatable-prog (configure.ac): ... to here.
17584
17585 2011-05-21  Bruno Haible  <bruno@clisp.org>
17586
17587         regex: Move AC_LIBOBJ invocations to module description.
17588         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17589         invocations from here...
17590         * modules/regex (configure.ac): ... to here.
17591
17592 2011-05-21  Bruno Haible  <bruno@clisp.org>
17593
17594         realloc-*: Move AC_LIBOBJ invocations to module description.
17595         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17596         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17597         AC_LIBOBJ invocations from here...
17598         * modules/realloc-gnu (configure.ac): ... to here.
17599         * modules/realloc-posix (configure.ac): ... and here.
17600
17601 2011-05-21  Bruno Haible  <bruno@clisp.org>
17602
17603         readutmp: Move AC_LIBOBJ invocations to module description.
17604         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17605         * modules/readutmp (configure.ac): ... to here.
17606
17607 2011-05-21  Bruno Haible  <bruno@clisp.org>
17608
17609         readlinkat: Move AC_LIBOBJ invocations to module description.
17610         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17611         here...
17612         * modules/readlinkat (configure.ac): ... to here.
17613
17614 2011-05-21  Bruno Haible  <bruno@clisp.org>
17615
17616         readlink: Move AC_LIBOBJ invocations to module description.
17617         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17618         gl_PREREQ_READLINK invocations from here...
17619         * modules/readlink (configure.ac): ... to here.
17620
17621 2011-05-21  Bruno Haible  <bruno@clisp.org>
17622
17623         readline: Move AC_LIBOBJ invocations to module description.
17624         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17625         gl_PREREQ_READLINE invocations from here...
17626         * modules/readline (configure.ac): ... to here.
17627
17628 2011-05-21  Bruno Haible  <bruno@clisp.org>
17629
17630         read: Move AC_LIBOBJ invocations to module description.
17631         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17632         * modules/read (configure.ac): ... to here.
17633
17634 2011-05-21  Bruno Haible  <bruno@clisp.org>
17635
17636         rawmemchr: Move AC_LIBOBJ invocations to module description.
17637         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17638         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17639         from here...
17640         * modules/rawmemchr (configure.ac): ... to here.
17641
17642 2011-05-21  Bruno Haible  <bruno@clisp.org>
17643
17644         random_r: Move AC_LIBOBJ invocations to module description.
17645         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17646         gl_PREREQ_RANDOM_R invocations from here...
17647         * modules/random_r (configure.ac): ... to here.
17648
17649 2011-05-21  Bruno Haible  <bruno@clisp.org>
17650
17651         pwrite: Move AC_LIBOBJ invocations to module description.
17652         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17653         * modules/pwrite (configure.ac): ... to here.
17654
17655 2011-05-21  Bruno Haible  <bruno@clisp.org>
17656
17657         putenv: Move AC_LIBOBJ invocations to module description.
17658         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17659         * modules/putenv (configure.ac): ... to here.
17660
17661 2011-05-21  Bruno Haible  <bruno@clisp.org>
17662
17663         login_tty: Move AC_LIBOBJ invocations to module description.
17664         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17665         * modules/login_tty (configure.ac): ... to here.
17666
17667 2011-05-21  Bruno Haible  <bruno@clisp.org>
17668
17669         openpty: Move AC_LIBOBJ invocations to module description.
17670         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17671         * modules/openpty (configure.ac): ... to here.
17672
17673 2011-05-21  Bruno Haible  <bruno@clisp.org>
17674
17675         forkpty: Move AC_LIBOBJ invocations to module description.
17676         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17677         * modules/forkpty (configure.ac): ... to here.
17678
17679 2011-05-21  Bruno Haible  <bruno@clisp.org>
17680
17681         ptsname: Move AC_LIBOBJ invocations to module description.
17682         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17683         invocations from here...
17684         * modules/ptsname (configure.ac): ... to here.
17685
17686 2011-05-21  Bruno Haible  <bruno@clisp.org>
17687
17688         pread: Move AC_LIBOBJ invocations to module description.
17689         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17690         * modules/pread (configure.ac): ... to here.
17691
17692 2011-05-21  Bruno Haible  <bruno@clisp.org>
17693
17694         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17695         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17696         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17697         * modules/posix_spawn (configure.ac): ... to here.
17698         * modules/posix_spawnp (configure.ac): ... and here.
17699
17700 2011-05-21  Bruno Haible  <bruno@clisp.org>
17701
17702         popen: Move AC_LIBOBJ invocations to module description.
17703         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17704         invocations from here...
17705         * modules/popen (configure.ac): ... to here.
17706
17707 2011-05-21  Bruno Haible  <bruno@clisp.org>
17708
17709         poll: Move AC_LIBOBJ invocations to module description.
17710         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17711         invocations from here...
17712         * modules/poll (configure.ac): ... to here.
17713
17714 2011-05-21  Bruno Haible  <bruno@clisp.org>
17715
17716         pipe-posix: Move AC_LIBOBJ invocations to module description.
17717         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17718         * modules/pipe-posix (configure.ac): ... to here.
17719
17720 2011-05-21  Bruno Haible  <bruno@clisp.org>
17721
17722         openat: Respect rules for use of AC_LIBOBJ.
17723         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17724         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17725         * modules/openat (configure.ac): ... to here.
17726
17727 2011-05-21  Bruno Haible  <bruno@clisp.org>
17728
17729         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17730         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17731         invocation from here...
17732         * modules/obstack-printf (configure.ac): ... to here.
17733         * modules/obstack-printf-posix (configure.ac): ... and here.
17734
17735 2011-05-21  Bruno Haible  <bruno@clisp.org>
17736
17737         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17738         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17739         from here...
17740         * modules/nl_langinfo (configure.ac): ... to here.
17741
17742 2011-05-21  Bruno Haible  <bruno@clisp.org>
17743
17744         nanosleep: Move AC_LIBOBJ invocations to module description.
17745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17746         gl_PREREQ_NANOSLEEP invocations from here...
17747         * modules/nanosleep (configure.ac): ... to here.
17748
17749 2011-05-21  Bruno Haible  <bruno@clisp.org>
17750
17751         mountlist: Move AC_LIBOBJ invocations to module description.
17752         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17753         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17754         * modules/mountlist (configure.ac): ... to here.
17755
17756 2011-05-21  Bruno Haible  <bruno@clisp.org>
17757
17758         mktime: Respect rules for use of AC_LIBOBJ.
17759         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17760         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17761         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17762         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17763         * modules/mktime (configure.ac): ... to here.
17764         * modules/mktime-internal (configure.ac): ... and here.
17765         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17766
17767 2011-05-21  Bruno Haible  <bruno@clisp.org>
17768
17769         mkstemps: Move AC_LIBOBJ invocations to module description.
17770         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17771         here...
17772         * modules/mkstemps (configure.ac): ... to here.
17773
17774 2011-05-21  Bruno Haible  <bruno@clisp.org>
17775
17776         mkstemp: Move AC_LIBOBJ invocations to module description.
17777         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17778         gl_PREREQ_MKSTEMP invocations from here...
17779         * modules/mkstemp (configure.ac): ... to here.
17780
17781 2011-05-21  Bruno Haible  <bruno@clisp.org>
17782
17783         mkostemps: Move AC_LIBOBJ invocations to module description.
17784         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17785         here...
17786         * modules/mkostemps (configure.ac): ... to here.
17787
17788 2011-05-21  Bruno Haible  <bruno@clisp.org>
17789
17790         mkostemp: Move AC_LIBOBJ invocations to module description.
17791         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17792         gl_PREREQ_MKOSTEMP invocations from here...
17793         * modules/mkostemp (configure.ac): ... to here.
17794
17795 2011-05-21  Bruno Haible  <bruno@clisp.org>
17796
17797         mknod: Move AC_LIBOBJ invocations to module description.
17798         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17799         * modules/mknod (configure.ac): ... to here.
17800
17801 2011-05-21  Bruno Haible  <bruno@clisp.org>
17802
17803         mkfifoat: Move AC_LIBOBJ invocations to module description.
17804         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17805         here...
17806         * modules/mkfifoat (configure.ac): ... to here.
17807
17808 2011-05-21  Bruno Haible  <bruno@clisp.org>
17809
17810         mkfifo: Respect rules for use of AC_LIBOBJ.
17811         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17812         here...
17813         * modules/mkfifo (configure.ac): ... to here.
17814
17815 2011-05-21  Bruno Haible  <bruno@clisp.org>
17816
17817         mkdtemp: Move AC_LIBOBJ invocations to module description.
17818         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17819         invocations from here...
17820         * modules/mkdtemp (configure.ac): ... to here.
17821
17822 2011-05-21  Bruno Haible  <bruno@clisp.org>
17823
17824         mkdir: Move AC_LIBOBJ invocations to module description.
17825         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17826         * modules/mkdir (configure.ac): ... to here.
17827
17828 2011-05-21  Bruno Haible  <bruno@clisp.org>
17829
17830         memset: Move AC_LIBOBJ invocations to module description.
17831         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17832         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17833         here...
17834         * modules/memset (configure.ac): ... to here.
17835
17836 2011-05-21  Bruno Haible  <bruno@clisp.org>
17837
17838         memrchr: Move AC_LIBOBJ invocations to module description.
17839         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17840         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17841         here...
17842         * modules/memrchr (configure.ac): ... to here.
17843
17844 2011-05-21  Bruno Haible  <bruno@clisp.org>
17845
17846         mempcpy: Move AC_LIBOBJ invocations to module description.
17847         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17848         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17849         here...
17850         * modules/mempcpy (configure.ac): ... to here.
17851
17852 2011-05-21  Bruno Haible  <bruno@clisp.org>
17853
17854         memmove: Move AC_LIBOBJ invocations to module description.
17855         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17856         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17857         here...
17858         * modules/memmove (configure.ac): ... to here.
17859
17860 2011-05-21  Bruno Haible  <bruno@clisp.org>
17861
17862         memmem*: Move AC_LIBOBJ invocations to module description.
17863         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17864         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17865         here...
17866         (gl_FUNC_MEMMEM): ... and here...
17867         * modules/memmem-simple (configure.ac): ... to here.
17868         * modules/memmem (configure.ac): ... and here.
17869
17870 2011-05-21  Bruno Haible  <bruno@clisp.org>
17871
17872         memcpy: Move AC_LIBOBJ invocations to module description.
17873         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17874         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17875         here...
17876         * modules/memcpy (configure.ac): ... to here.
17877
17878 2011-05-21  Bruno Haible  <bruno@clisp.org>
17879
17880         memcmp: Simplify autoconf macro.
17881         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17882         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17883         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17884
17885 2011-05-21  Bruno Haible  <bruno@clisp.org>
17886
17887         memcmp: Move AC_LIBOBJ invocations to module description.
17888         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17889         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17890         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17891         * modules/memcmp (configure.ac): ... to here.
17892         (Depends-on): Update conditions.
17893
17894 2011-05-21  Bruno Haible  <bruno@clisp.org>
17895
17896         memchr: Respect rules for use of AC_LIBOBJ.
17897         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17898         invocations from here...
17899         * modules/memchr (configure.ac): ... to here.
17900
17901 2011-05-21  Bruno Haible  <bruno@clisp.org>
17902
17903         mbtowc: Move AC_LIBOBJ invocations to module description.
17904         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17905         invocations from here...
17906         * modules/mbtowc (configure.ac): ... to here.
17907
17908 2011-05-21  Bruno Haible  <bruno@clisp.org>
17909
17910         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17911         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17912         gl_PREREQ_MBSRTOWCS invocations from here...
17913         * modules/mbsrtowcs (configure.ac): ... to here.
17914
17915 2011-05-21  Bruno Haible  <bruno@clisp.org>
17916
17917         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17918         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17919         gl_PREREQ_MBSNRTOWCS invocations from here...
17920         * modules/mbsnrtowcs (configure.ac): ... to here.
17921
17922 2011-05-21  Bruno Haible  <bruno@clisp.org>
17923
17924         mbsinit: Move AC_LIBOBJ invocations to module description.
17925         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17926         invocations from here...
17927         * modules/mbsinit (configure.ac): ... to here.
17928
17929 2011-05-21  Bruno Haible  <bruno@clisp.org>
17930
17931         mbrlen: Move AC_LIBOBJ invocations to module description.
17932         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17933         invocations from here...
17934         * modules/mbrlen (configure.ac): ... to here.
17935
17936 2011-05-21  Bruno Haible  <bruno@clisp.org>
17937
17938         mbrtowc: Respect rules for use of AC_LIBOBJ.
17939         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17940         invocations from here...
17941         * modules/mbrtowc (configure.ac): ... to here.
17942
17943 2011-05-21  Bruno Haible  <bruno@clisp.org>
17944
17945         malloc-*: Move AC_LIBOBJ invocations to module description.
17946         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17947         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17948         AC_LIBOBJ invocations from here...
17949         * modules/malloc-gnu (configure.ac): ... to here.
17950         * modules/malloc-posix (configure.ac): ... and here.
17951
17952 2011-05-21  Bruno Haible  <bruno@clisp.org>
17953
17954         lstat, openat: Respect rules for use of AC_LIBOBJ.
17955         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17956         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17957         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17958         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17959         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17960         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17961         here.
17962         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17963
17964 2011-05-21  Bruno Haible  <bruno@clisp.org>
17965
17966         lseek: Move AC_LIBOBJ invocations to module description.
17967         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17968         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17969         * modules/lseek (configure.ac): ... to here.
17970
17971 2011-05-21  Bruno Haible  <bruno@clisp.org>
17972
17973         linkat: Move AC_LIBOBJ invocations to module description.
17974         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17975         here...
17976         * modules/linkat (configure.ac): ... to here.
17977
17978 2011-05-21  Bruno Haible  <bruno@clisp.org>
17979
17980         link: Respect rules for use of AC_LIBOBJ.
17981         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17982         * modules/link (configure.ac): ... to here.
17983
17984 2011-05-21  Bruno Haible  <bruno@clisp.org>
17985
17986         lchown: Move AC_LIBOBJ invocations to module description.
17987         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17988         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17989         * modules/lchown (configure.ac): ... to here.
17990
17991 2011-05-21  Bruno Haible  <bruno@clisp.org>
17992
17993         iswctype: Move AC_LIBOBJ invocations to module description.
17994         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17995         here...
17996         * modules/iswctype (configure.ac): ... to here.
17997
17998 2011-05-21  Bruno Haible  <bruno@clisp.org>
17999
18000         iswblank: Move AC_LIBOBJ invocations to module description.
18001         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18002         here...
18003         * modules/iswblank (configure.ac): ... to here.
18004
18005 2011-05-21  Bruno Haible  <bruno@clisp.org>
18006
18007         atanl: Move AC_LIBOBJ invocations to module description.
18008         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18009         * modules/atanl (configure.ac): ... to here.
18010
18011 2011-05-21  Bruno Haible  <bruno@clisp.org>
18012
18013         acosl: Move AC_LIBOBJ invocations to module description.
18014         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18015         * modules/acosl (configure.ac): ... to here.
18016
18017 2011-05-21  Bruno Haible  <bruno@clisp.org>
18018
18019         asinl: Respect rules for use of AC_LIBOBJ.
18020         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18021         * modules/asinl (configure.ac): ... to here.
18022
18023 2011-05-21  Bruno Haible  <bruno@clisp.org>
18024
18025         tanl: Move AC_LIBOBJ invocations to module description.
18026         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18027         * modules/tanl (configure.ac): ... to here.
18028
18029 2011-05-21  Bruno Haible  <bruno@clisp.org>
18030
18031         cosl: Move AC_LIBOBJ invocations to module description.
18032         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18033         * modules/cosl (configure.ac): ... to here.
18034
18035 2011-05-21  Bruno Haible  <bruno@clisp.org>
18036
18037         sinl: Move AC_LIBOBJ invocations to module description.
18038         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18039         * modules/sinl (configure.ac): ... to here.
18040
18041 2011-05-21  Bruno Haible  <bruno@clisp.org>
18042
18043         logl: Move AC_LIBOBJ invocations to module description.
18044         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18045         * modules/logl (configure.ac): ... to here.
18046
18047 2011-05-21  Bruno Haible  <bruno@clisp.org>
18048
18049         expl: Move AC_LIBOBJ invocations to module description.
18050         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18051         * modules/expl (configure.ac): ... to here.
18052
18053 2011-05-21  Bruno Haible  <bruno@clisp.org>
18054
18055         roundl: Move AC_LIBOBJ invocations to module description.
18056         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18057         * modules/roundl (configure.ac): ... to here.
18058
18059 2011-05-21  Bruno Haible  <bruno@clisp.org>
18060
18061         round: Move AC_LIBOBJ invocations to module description.
18062         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18063         * modules/round (configure.ac): ... to here.
18064
18065 2011-05-21  Bruno Haible  <bruno@clisp.org>
18066
18067         roundf: Move AC_LIBOBJ invocations to module description.
18068         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18069         * modules/roundf (configure.ac): ... to here.
18070
18071 2011-05-21  Bruno Haible  <bruno@clisp.org>
18072
18073         truncl: Move AC_LIBOBJ invocations to module description.
18074         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18075         * modules/truncl (configure.ac): ... to here.
18076
18077 2011-05-21  Bruno Haible  <bruno@clisp.org>
18078
18079         trunc: Move AC_LIBOBJ invocations to module description.
18080         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18081         * modules/trunc (configure.ac): ... to here.
18082
18083 2011-05-21  Bruno Haible  <bruno@clisp.org>
18084
18085         truncf: Move AC_LIBOBJ invocations to module description.
18086         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18087         * modules/truncf (configure.ac): ... to here.
18088
18089 2011-05-21  Bruno Haible  <bruno@clisp.org>
18090
18091         ceill: Move AC_LIBOBJ invocations to module description.
18092         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18093         * modules/ceill (configure.ac): ... to here.
18094
18095 2011-05-21  Bruno Haible  <bruno@clisp.org>
18096
18097         ceil: Move AC_LIBOBJ invocations to module description.
18098         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18099         * modules/ceil (configure.ac): ... to here.
18100
18101 2011-05-21  Bruno Haible  <bruno@clisp.org>
18102
18103         ceilf: Move AC_LIBOBJ invocations to module description.
18104         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18105         * modules/ceilf (configure.ac): ... to here.
18106
18107 2011-05-21  Bruno Haible  <bruno@clisp.org>
18108
18109         floorl: Respect rules for use of AC_LIBOBJ.
18110         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18111         * modules/floorl (configure.ac): ... to here.
18112
18113 2011-05-21  Bruno Haible  <bruno@clisp.org>
18114
18115         floor: Respect rules for use of AC_LIBOBJ.
18116         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18117         * modules/floor (configure.ac): ... to here.
18118
18119 2011-05-21  Bruno Haible  <bruno@clisp.org>
18120
18121         floorf: Move AC_LIBOBJ invocations to module description.
18122         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18123         * modules/floorf (configure.ac): ... to here.
18124
18125 2011-05-20  Bruno Haible  <bruno@clisp.org>
18126
18127         sqrtl: Respect rules for use of AC_LIBOBJ.
18128         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18129         * modules/sqrtl (configure.ac): ... to here.
18130
18131 2011-05-20  Bruno Haible  <bruno@clisp.org>
18132
18133         ldexpl: Respect rules for use of AC_LIBOBJ.
18134         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18135         * modules/ldexpl (configure.ac): ... to here.
18136
18137 2011-05-20  Bruno Haible  <bruno@clisp.org>
18138
18139         frexpl*: Respect rules for use of AC_LIBOBJ.
18140         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18141         invocation from here...
18142         * modules/frexpl (configure.ac): ... to here.
18143         * modules/frexpl-nolibm (configure.ac): ... and here.
18144
18145 2011-05-20  Bruno Haible  <bruno@clisp.org>
18146
18147         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18148         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18149         invocation from here...
18150         * modules/frexp (configure.ac): ... to here.
18151         * modules/frexp-nolibm (configure.ac): ... and here.
18152
18153 2011-05-20  Bruno Haible  <bruno@clisp.org>
18154
18155         isnan: Respect rules for use of AC_LIBOBJ.
18156         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18157         invocations here.
18158         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18159         REPLACE_ISNAN.
18160         * modules/isnand (configure.ac): Likewise.
18161         * modules/isnanl (configure.ac): Likewise.
18162
18163 2011-05-20  Bruno Haible  <bruno@clisp.org>
18164
18165         isnanl*: Respect rules for use of AC_LIBOBJ.
18166         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18167         invocation from here...
18168         * modules/isnanl (configure.ac): ... to here.
18169         * modules/isnanl-nolibm (configure.ac): ... and here.
18170
18171 2011-05-20  Bruno Haible  <bruno@clisp.org>
18172
18173         isnand*: Move AC_LIBOBJ invocations to module description.
18174         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18175         invocation from here...
18176         * modules/isnand (configure.ac): ... to here.
18177         * modules/isnand-nolibm (configure.ac): ... and here.
18178
18179 2011-05-20  Bruno Haible  <bruno@clisp.org>
18180
18181         isnanf*: Move AC_LIBOBJ invocations to module description.
18182         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18183         invocation from here...
18184         * modules/isnanf (configure.ac): ... to here.
18185         * modules/isnanf-nolibm (configure.ac): ... and here.
18186
18187 2011-05-20  Bruno Haible  <bruno@clisp.org>
18188
18189         isnan*: Separate the AC_LIBOBJ invocations.
18190         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18191         AC_LIBOBJ invocation.
18192         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18193         here.
18194         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18195         AC_LIBOBJ invocation.
18196         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18197         here.
18198         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18199         AC_LIBOBJ invocation.
18200         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18201         here.
18202         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18203
18204 2011-05-08  Bruno Haible  <bruno@clisp.org>
18205
18206         isinf: Move AC_LIBOBJ invocations to module description.
18207         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18208         * modules/isinf (configure.ac): ... to here.
18209
18210 2011-05-08  Bruno Haible  <bruno@clisp.org>
18211
18212         isfinite: Move AC_LIBOBJ invocations to module description.
18213         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18214         * modules/isfinite (configure.ac): ... to here.
18215
18216 2011-05-08  Bruno Haible  <bruno@clisp.org>
18217
18218         isblank: Move AC_LIBOBJ invocations to module description.
18219         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18220         here...
18221         * modules/isblank (configure.ac): ... to here.
18222
18223 2011-05-08  Bruno Haible  <bruno@clisp.org>
18224
18225         isapipe: Move AC_LIBOBJ invocations to module description.
18226         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18227         gl_PREREQ_ISAPIPE invocations from here...
18228         * modules/isapipe (configure.ac): ... to here.
18229         (Depends-on): Update condition.
18230
18231 2011-05-08  Bruno Haible  <bruno@clisp.org>
18232
18233         ioctl: Move AC_LIBOBJ invocations to module description.
18234         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18235         invocations from here...
18236         * modules/ioctl (configure.ac): ... to here.
18237         (Depends-on): Update condition.
18238
18239 2011-05-08  Bruno Haible  <bruno@clisp.org>
18240
18241         imaxdiv: Move AC_LIBOBJ invocations to module description.
18242         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18243         invocations from here...
18244         * modules/imaxdiv (configure.ac): ... to here.
18245
18246 2011-05-08  Bruno Haible  <bruno@clisp.org>
18247
18248         imaxabs: Move AC_LIBOBJ invocations to module description.
18249         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18250         invocations from here...
18251         * modules/imaxabs (configure.ac): ... to here.
18252
18253 2011-05-08  Bruno Haible  <bruno@clisp.org>
18254
18255         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18257         AC_LIBOBJ invocations from here...
18258         * modules/getaddrinfo (configure.ac): ... to here.
18259         (Depends-on): Add conditions.
18260
18261 2011-05-08  Bruno Haible  <bruno@clisp.org>
18262
18263         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18264         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18265         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18266         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18267         (gl_PREREQ_INET_PTON): ... from here.
18268         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18269         gl_PREREQ_INET_PTON here.
18270         (Depends-on): Update condition.
18271
18272 2011-05-08  Bruno Haible  <bruno@clisp.org>
18273
18274         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18275         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18276         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18277         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18278         (gl_PREREQ_INET_NTOP): ... from here.
18279         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18280         gl_PREREQ_INET_NTOP here.
18281         (Depends-on): Update condition.
18282
18283 2011-05-08  Bruno Haible  <bruno@clisp.org>
18284
18285         iconv_open: Move AC_LIBOBJ invocations to module description.
18286         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18287         AC_LIBOBJ invocations from here...
18288         * modules/iconv_open (configure.ac): ... to here.
18289
18290 2011-05-08  Bruno Haible  <bruno@clisp.org>
18291
18292         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18293         If module 'iconv_open' is among the main modules and module
18294         'iconv_open-utf' is among the tests dependencies, then
18295         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18296         return the special iconv_t values. Therefore iconv() and iconv_close()
18297         must support these special iconv_t values, already in lib, not only in
18298         tests.
18299         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18300         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18301         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18302         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18303         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18304         (Depends-on): Add the dependencies of iconv_open-utf.
18305         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18306         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18307         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18308
18309 2011-05-08  Bruno Haible  <bruno@clisp.org>
18310
18311         group-member: Move AC_LIBOBJ invocations to module description.
18312         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18313         gl_PREREQ_GROUP_MEMBER invocations from here...
18314         * modules/group-member (configure.ac): ... to here.
18315
18316 2011-05-08  Bruno Haible  <bruno@clisp.org>
18317
18318         grantpt: Move AC_LIBOBJ invocations to module description.
18319         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18320         invocations from here...
18321         * modules/grantpt (configure.ac): ... to here.
18322
18323 2011-05-08  Bruno Haible  <bruno@clisp.org>
18324
18325         glob: Move AC_LIBOBJ invocations to module description.
18326         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18327         from here...
18328         * modules/glob (configure.ac): ... to here.
18329
18330 2011-05-08  Bruno Haible  <bruno@clisp.org>
18331
18332         getusershell: Move AC_LIBOBJ invocations to module description.
18333         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18334         Move AC_LIBOBJ invocation from here...
18335         * modules/getusershell (configure.ac): ... to here.
18336         (Depends-on): Update condition.
18337
18338 2011-05-08  Bruno Haible  <bruno@clisp.org>
18339
18340         gettimeofday: Move AC_LIBOBJ invocations to module description.
18341         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18342         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18343         gl_PREREQ_GETTIMEOFDAY invocations from here...
18344         * modules/gettimeofday (configure.ac): ... to here.
18345
18346 2011-05-08  Bruno Haible  <bruno@clisp.org>
18347
18348         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18349         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18350         just gl_FUNC_TZSET.
18351         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18352         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18353         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18354         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18355
18356 2011-05-08  Bruno Haible  <bruno@clisp.org>
18357
18358         getsubopt: Move AC_LIBOBJ invocations to module description.
18359         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18360         gl_PREREQ_GETSUBOPT invocations from here...
18361         * modules/getsubopt (configure.ac): ... to here.
18362
18363 2011-05-08  Bruno Haible  <bruno@clisp.org>
18364
18365         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18366         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18367         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18368         * modules/getpass-gnu (configure.ac): ... to here.
18369
18370 2011-05-08  Bruno Haible  <bruno@clisp.org>
18371
18372         getpass: Move AC_LIBOBJ invocations to module description.
18373         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18374         gl_PREREQ_GETPASS invocations from here...
18375         * modules/getpass (configure.ac): ... to here.
18376
18377 2011-05-08  Bruno Haible  <bruno@clisp.org>
18378
18379         getpagesize: Move AC_LIBOBJ invocations to module description.
18380         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18381         from here...
18382         * modules/getpagesize (configure.ac): ... to here.
18383
18384 2011-05-08  Bruno Haible  <bruno@clisp.org>
18385
18386         getopt: Move AC_LIBOBJ invocations to module description.
18387         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18388         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18389         invocations from here...
18390         * modules/getopt-gnu (configure.ac): ... to here.
18391         * modules/getopt-posix (configure.ac): ... and here.
18392         (Depends-on): Update condition.
18393
18394 2011-05-08  Bruno Haible  <bruno@clisp.org>
18395
18396         getopt, argp: Respect rules for use of AC_LIBOBJ.
18397         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18398         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18399         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18400         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18401
18402 2011-05-08  Bruno Haible  <bruno@clisp.org>
18403
18404         getlogin_r: Move AC_LIBOBJ invocations to module description.
18405         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18406         gl_PREREQ_GETLOGIN_R invocations from here...
18407         * modules/getlogin_r (configure.ac): ... to here.
18408
18409 2011-05-08  Bruno Haible  <bruno@clisp.org>
18410
18411         getlogin: Move AC_LIBOBJ invocations to module description.
18412         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18413         here...
18414         * modules/getlogin (configure.ac): ... to here.
18415
18416 2011-05-08  Bruno Haible  <bruno@clisp.org>
18417
18418         getloadavg: Move AC_LIBOBJ invocations to module description.
18419         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18420         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18421         * modules/getloadavg (configure.ac): ... to here.
18422
18423 2011-05-08  Bruno Haible  <bruno@clisp.org>
18424
18425         gethrxtime: Move AC_LIBOBJ invocations to module description.
18426         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18427         LIB_GETHRXTIME from here...
18428         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18429         invocations from here...
18430         * modules/gethrxtime (configure.ac): ... to here.
18431
18432 2011-05-08  Bruno Haible  <bruno@clisp.org>
18433
18434         gethostname: Move AC_LIBOBJ invocations to module description.
18435         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18436         gl_PREREQ_GETHOSTNAME invocations from here...
18437         * modules/gethostname (configure.ac): ... to here.
18438
18439 2011-05-08  Bruno Haible  <bruno@clisp.org>
18440
18441         getgroups: Move AC_LIBOBJ invocations to module description.
18442         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18443         here...
18444         * modules/getgroups (configure.ac): ... to here.
18445
18446 2011-05-08  Bruno Haible  <bruno@clisp.org>
18447
18448         getdtablesize: Move AC_LIBOBJ invocations to module description.
18449         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18450         invocation from here...
18451         * modules/getdtablesize (configure.ac): ... to here.
18452
18453 2011-05-08  Bruno Haible  <bruno@clisp.org>
18454
18455         getdomainname: Move AC_LIBOBJ invocations to module description.
18456         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18457         gl_PREREQ_GETDOMAINNAME invocations from here...
18458         * modules/getdomainname (configure.ac): ... to here.
18459
18460 2011-05-08  Bruno Haible  <bruno@clisp.org>
18461
18462         getline: Move AC_LIBOBJ invocations to module description.
18463         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18464         invocations from here...
18465         * modules/getline (configure.ac): ... to here.
18466
18467 2011-05-08  Bruno Haible  <bruno@clisp.org>
18468
18469         getline: Simplify.
18470         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18471         It's already handled through the module dependency.
18472
18473 2011-05-08  Bruno Haible  <bruno@clisp.org>
18474
18475         getdelim: Move AC_LIBOBJ invocations to module description.
18476         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18477         and gl_PREREQ_GETDELIM invocations from here...
18478         * modules/getdelim (configure.ac): ... to here.
18479         (Depends-on): Fix condition.
18480
18481 2011-05-08  Bruno Haible  <bruno@clisp.org>
18482
18483         getcwd: Move AC_LIBOBJ invocations to module description.
18484         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18485         invocations from here...
18486         * modules/getcwd (configure.ac): ... to here.
18487
18488 2011-05-08  Bruno Haible  <bruno@clisp.org>
18489
18490         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18491         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18492         here...
18493         * modules/getcwd-lgpl (configure.ac): ... to here.
18494
18495 2011-05-07  Bruno Haible  <bruno@clisp.org>
18496
18497         crypto/gc: Move AC_LIBOBJ invocations to module description.
18498         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18499         * modules/crypto/gc (configure.ac): ... to here.
18500
18501 2011-05-07  Bruno Haible  <bruno@clisp.org>
18502
18503         fwriting: Move AC_LIBOBJ invocations to module description.
18504         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18505         here...
18506         * modules/fwriting (configure.ac): ... to here.
18507
18508 2011-05-07  Bruno Haible  <bruno@clisp.org>
18509
18510         fwritable: Move AC_LIBOBJ invocations to module description.
18511         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18512         here...
18513         * modules/fwritable (configure.ac): ... to here.
18514
18515 2011-05-07  Bruno Haible  <bruno@clisp.org>
18516
18517         futimens: Move AC_LIBOBJ invocations to module description.
18518         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18519         here...
18520         * modules/futimens (configure.ac): ... to here.
18521
18522 2011-05-07  Bruno Haible  <bruno@clisp.org>
18523
18524         ftruncate: Move AC_LIBOBJ invocations to module description.
18525         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18526         gl_PREREQ_FTRUNCATE invocations from here...
18527         * modules/ftruncate (configure.ac): ... to here.
18528
18529 2011-05-07  Bruno Haible  <bruno@clisp.org>
18530
18531         fsync: Move AC_LIBOBJ invocations to module description.
18532         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18533         invocations from here...
18534         * modules/fsync (configure.ac): ... to here.
18535
18536 2011-05-07  Bruno Haible  <bruno@clisp.org>
18537
18538         fsusage: Move AC_LIBOBJ invocations to module description.
18539         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18540         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18541         * modules/fsusage (configure.ac): ... to here.
18542
18543 2011-05-07  Bruno Haible  <bruno@clisp.org>
18544
18545         freopen: Move AC_LIBOBJ invocations to module description.
18546         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18547         invocations from here...
18548         * modules/freopen (configure.ac): ... to here.
18549
18550 2011-05-07  Bruno Haible  <bruno@clisp.org>
18551
18552         free: Move AC_LIBOBJ invocations to module description.
18553         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18554         invocations from here...
18555         * modules/free (configure.ac): ... to here.
18556
18557 2011-05-07  Bruno Haible  <bruno@clisp.org>
18558
18559         freadable: Move AC_LIBOBJ invocations to module description.
18560         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18561         here...
18562         * modules/freadable (configure.ac): ... to here.
18563
18564 2011-05-07  Bruno Haible  <bruno@clisp.org>
18565
18566         fpurge: Move AC_LIBOBJ invocations to module description.
18567         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18568         invocations from here...
18569         * modules/fpurge (configure.ac): ... to here.
18570
18571 2011-05-07  Bruno Haible  <bruno@clisp.org>
18572
18573         fpending: Move AC_LIBOBJ invocations to module description.
18574         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18575         gl_FUNC_FPENDING.
18576         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18577         invocations from here...
18578         * modules/fpending (configure.ac): ... to here.
18579
18580 2011-05-07  Bruno Haible  <bruno@clisp.org>
18581
18582         fopen: Move AC_LIBOBJ invocations to module description.
18583         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18584         invocations from here...
18585         * modules/fopen (configure.ac): ... to here.
18586
18587 2011-05-07  Bruno Haible  <bruno@clisp.org>
18588
18589         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18590         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18591         gl_FUNC_FNMATCH_POSIX.
18592         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18593         invocations from here...
18594         * modules/fnmatch (configure.ac): ... to here.
18595         * modules/fnmatch-gnu (configure.ac): ... and here.
18596
18597 2011-05-07  Bruno Haible  <bruno@clisp.org>
18598
18599         flock: Move AC_LIBOBJ invocations to module description.
18600         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18601         invocations from here...
18602         * modules/flock (configure.ac): ... to here.
18603
18604 2011-05-07  Bruno Haible  <bruno@clisp.org>
18605
18606         fileblocks: Move AC_LIBOBJ invocations to module description.
18607         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18608         gl_PREREQ_FILEBLOCKS invocations from here...
18609         * modules/fileblocks (configure.ac): ... to here.
18610
18611 2011-05-06  Bruno Haible  <bruno@clisp.org>
18612
18613         fflush: Move AC_LIBOBJ invocations to module description.
18614         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18615         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18616         invocations from here...
18617         * modules/fflush (configure.ac): ... to here.
18618
18619 2011-05-06  Bruno Haible  <bruno@clisp.org>
18620
18621         fdopendir: Move AC_LIBOBJ invocations to module description.
18622         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18623         here...
18624         * modules/fdopendir (configure.ac): ... to here.
18625         (Depends-on): Improve conditions.
18626
18627 2011-05-06  Bruno Haible  <bruno@clisp.org>
18628
18629         _Exit: Move AC_LIBOBJ invocations to module description.
18630         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18631         invocations from here...
18632         * modules/_Exit (configure.ac): ... to here.
18633
18634 2011-05-21  Bruno Haible  <bruno@clisp.org>
18635
18636         euidaccess: Respect rules for use of AC_LIBOBJ.
18637         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18638         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18639         from here...
18640         * modules/euidaccess (configure.ac): ... to here.
18641
18642 2011-05-06  Bruno Haible  <bruno@clisp.org>
18643
18644         error: Move AC_LIBOBJ invocations to module description.
18645         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18646         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18647         invocations from here...
18648         * modules/error (configure.ac): ... to here.
18649
18650 2011-05-06  Bruno Haible  <bruno@clisp.org>
18651
18652         duplocale: Move AC_LIBOBJ invocations to module description.
18653         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18654         gl_PREREQ_DUPLOCALE invocations from here...
18655         * modules/duplocale (configure.ac): ... to here.
18656
18657 2011-05-05  Bruno Haible  <bruno@clisp.org>
18658
18659         dirfd: Move AC_LIBOBJ invocations to module description.
18660         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18661         gl_FUNC_DIRFD.
18662         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18663         here...
18664         * modules/dirfd (configure.ac): ... to here.
18665         (Depends-on): Fix condition.
18666
18667 2011-05-05  Bruno Haible  <bruno@clisp.org>
18668
18669         chown: Respect rules for use of AC_LIBOBJ.
18670         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18671         * modules/chown (configure.ac): ... to here.
18672
18673 2011-05-05  Bruno Haible  <bruno@clisp.org>
18674
18675         chdir-long: Move AC_LIBOBJ invocations to module description.
18676         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18677         gl_PREREQ_CHDIR_LONG invocations from here...
18678         * modules/chdir-long (configure.ac): ... to here.
18679
18680 2011-05-05  Bruno Haible  <bruno@clisp.org>
18681
18682         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18683         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18684         from here...
18685         * modules/canonicalize-lgpl (configure.ac): ... to here.
18686
18687 2011-05-05  Bruno Haible  <bruno@clisp.org>
18688
18689         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18690         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18691         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18692         REPLACE_CALLOC.
18693         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18694         * modules/calloc-gnu (configure.ac): Likewise.
18695
18696 2011-05-05  Bruno Haible  <bruno@clisp.org>
18697
18698         btowc: Move AC_LIBOBJ invocations to module description.
18699         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18700         invocations from here...
18701         * modules/btowc (configure.ac): ... to here.
18702
18703 2011-05-21  Bruno Haible  <bruno@clisp.org>
18704
18705         atexit: Move AC_LIBOBJ invocations to module description.
18706         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18707         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18708         here...
18709         * modules/atexit (configure.ac): ... to here.
18710
18711 2011-05-05  Bruno Haible  <bruno@clisp.org>
18712
18713         atoll: Move AC_LIBOBJ invocations to module description.
18714         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18715         invocations from here...
18716         * modules/atoll (configure.ac): ... to here.
18717
18718 2011-05-05  Bruno Haible  <bruno@clisp.org>
18719
18720         argz: Move AC_LIBOBJ invocations to module description.
18721         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18722         * modules/argz (configure.ac): ... to here.
18723
18724 2011-05-05  Bruno Haible  <bruno@clisp.org>
18725
18726         alphasort: Move AC_LIBOBJ invocations to module description.
18727         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18728         gl_PREREQ_ALPHASORT invocations from here...
18729         * modules/alphasort (configure.ac): ... to here.
18730
18731 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18732
18733         verify: new macro verify_expr; verify_true deprecated
18734         * NEWS: Mention this.
18735         * doc/verify.texi (Compile-time Assertions): Document this.
18736         * lib/verify.h (verify_true): Deprecate.
18737         (verify_expr): New macro.
18738         * tests/test-verify.c (function): Test verify_expr.
18739
18740 2011-06-14  Jim Meyering  <meyering@redhat.com>
18741
18742         init.sh: give more portable redirection-related advice in a comment
18743         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18744         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18745         for lots of discussion.  Stefano Lattarini suggested the solution
18746         of putting "9>&2" after the command.  Reported by Bruno Haible.
18747
18748 2011-06-13  Bruno Haible  <bruno@clisp.org>
18749
18750         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18751         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18752         'none'.
18753
18754 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18755
18756         ftoastr: use strtof only if HAVE_STRTOF
18757         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18759         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18760         * modules/ftoastr (configure.ac): Check for strtof.
18761
18762 2011-06-13  Bruno Haible  <bruno@clisp.org>
18763
18764         gnulib-tool: Addendum to 2011-06-08 commit.
18765         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18766         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18767
18768 2011-06-13  Bruno Haible  <bruno@clisp.org>
18769
18770         fseeko: Provide a non-inline replacement of fseek().
18771         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18772         * modules/fseeko (Depends-on): Add fseek.
18773         * modules/fseek (License): Change to LGPLv2+.
18774
18775 2011-06-13  Bruno Haible  <bruno@clisp.org>
18776
18777         ftello: Provide a non-inline replacement of ftell().
18778         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18779         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18780         not have ftello() (such as on mingw).
18781         * modules/ftello (Depends-on): Add ftell.
18782         * modules/ftell (License): Change to LGPLv2+.
18783
18784 2011-05-07  Bruno Haible  <bruno@clisp.org>
18785
18786         ftell: Move AC_LIBOBJ invocations to module description.
18787         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18788         * modules/ftell (configure.ac): ... to here.
18789
18790 2011-05-07  Bruno Haible  <bruno@clisp.org>
18791
18792         ftello: Respect rules for use of AC_LIBOBJ.
18793         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18794         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18795         here...
18796         * modules/ftello (configure.ac): ... to here.
18797
18798 2011-05-07  Bruno Haible  <bruno@clisp.org>
18799
18800         fseeko: Simplify.
18801         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18802         (gl_FUNC_FSEEKO): Inline it here.
18803
18804 2011-05-07  Bruno Haible  <bruno@clisp.org>
18805
18806         fseek: Move AC_LIBOBJ invocations to module description.
18807         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18808         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18809         * modules/fseek (configure.ac): ... to here.
18810
18811 2011-05-07  Bruno Haible  <bruno@clisp.org>
18812
18813         fseek: Respect rules for use of AC_LIBOBJ.
18814         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18815         here...
18816         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18817
18818 2011-05-07  Bruno Haible  <bruno@clisp.org>
18819
18820         fseeko: Respect rules for use of AC_LIBOBJ.
18821         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18822         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18823         here...
18824         * modules/fseeko (configure.ac): ... to here.
18825
18826 2011-06-13  Bruno Haible  <bruno@clisp.org>
18827
18828         gnulib-tool: Allow comments in the 'Depends-on' section.
18829         * doc/gnulib.texi (Module description): Mention comment syntax in the
18830         Depends-on section.
18831         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18832
18833 2011-06-13  Bruno Haible  <bruno@clisp.org>
18834
18835         file-set.h: guard __attibute__ use, now that it's not always defined
18836         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18837         versions that support it.  This fixes a coreutils build failure with
18838         the vendor cc on HP-UX 11.31.
18839
18840 2011-06-12  Bruno Haible  <bruno@clisp.org>
18841
18842         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18843         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18844         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18845         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18846         (acl, aclsort): New declarations.
18847         (aclv_nontrivial): New declaration.
18848         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18849         (file_has_acl): Read also the second kind of HP-UX ACLs.
18850         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18851         kind of HP-UX ACLs if the first kind fails.
18852         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18853         second kind of HP-UX ACLs.
18854         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18855         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18856         agree.
18857         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18858         hpuxjfs.
18859         Handle hpuxjfs.
18860         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18861         hpuxjfs.
18862         Handle hpuxjfs.
18863         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18864         (func_test_same_acls): Use both lsacl and getacl.
18865         Handle hpuxjfs.
18866         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18867         (func_test_same_acls): Use both lsacl and getacl.
18868         Handle hpuxjfs.
18869
18870 2011-06-12  Bruno Haible  <bruno@clisp.org>
18871
18872         acl: Complete the 2010-08-10 fix.
18873         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18874         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18875         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18876         explicitly.
18877         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18878         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18879
18880 2011-06-12  Bruno Haible  <bruno@clisp.org>
18881
18882         spawn-pipe tests: Comments.
18883         * tests/test-spawn-pipe-child.c (main): Update comment.
18884         Reported by James Youngman <jay@gnu.org>.
18885
18886 2011-06-11  James Youngman  <jay@gnu.org>
18887
18888         New module 'stat-size'.
18889         * modules/stat-size: New module.  Provides macros for accessing
18890         file size information in instances of struct stat.  Depends on the
18891         fileblocks module because it calls st_blocks.
18892         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18893         * doc/gnulib.texi: Include stat-size.texi.
18894         * doc/stat-size.texi: Documentation for this module.
18895         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18896         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18897         AC_STRUCT_ST_BLOCKS.
18898
18899 2011-06-09  Bruno Haible  <bruno@clisp.org>
18900
18901         thread: Support pthreads-win32.
18902         * lib/glthread/thread.h (gl_thread_self): Define differently on
18903         pthreads-win32.
18904         (gl_null_thread): New declaration.
18905         (gl_thread_self_pointer): New macro.
18906         * lib/glthread/thread.c (gl_null_thread): New constant.
18907         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18908         gl_thread_self.
18909         * tests/test-tls.c: Likewise.
18910         Suggested by Paul Eggert. Reported by Eric Blake.
18911
18912 2011-06-09  Bruno Haible  <bruno@clisp.org>
18913
18914         thread: Fix confusion between NULL and 0.
18915         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18916         Reported by Paul Eggert.
18917
18918 2011-06-09  Bruno Haible  <bruno@clisp.org>
18919
18920         spawn-pipe tests: Avoid test failure on HP-UX 11.
18921         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18922         is closed.
18923
18924 2011-06-09  Bruno Haible  <bruno@clisp.org>
18925
18926         acl tests: Fix compilation error on HP-UX 11.
18927         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18928
18929 2011-06-09  Bruno Haible  <bruno@clisp.org>
18930
18931         rmdir: Avoid test failure on HP-UX 10.20.
18932         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18933         EEXIST.
18934
18935 2011-06-08  Eric Blake  <eblake@redhat.com>
18936
18937         perror: fix test on mingw
18938         * modules/perror-tests (Depends-on): Add dup2.
18939
18940         strerror_r-posix: fix on MacOS
18941         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18942         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18943         logic bug.
18944         * lib/strerror_r.c (strerror_r): Fix the bug.
18945         * lib/strerror.c (strerror): Likewise.
18946         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18947         problem.
18948         * doc/posix-functions/strerror.texi (strerror): Likewise.
18949         * doc/posix-functions/perror.texi (perror): Likewise.
18950         * tests/test-strerror.c (main): Enhance test.
18951         * tests/test-strerror_r.c (main): Likewise.
18952
18953 2011-06-08  Bruno Haible  <bruno@clisp.org>
18954
18955         gnulib-tool: Better isolation between different gnulib-tool invocations.
18956         * gnulib-tool: New option --witness-c-macro.
18957         (witness_c_macro): New variable.
18958         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18959         AM_CPPFLAGS define it as a C macro.
18960         (func_emit_tests_Makefile_am): Likewise.
18961         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18962         read it from there.
18963         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18964         m4_define, not AC_DEFUN.
18965         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18966         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18967         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18968         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18969         s|...|...|, to substitute the values of the GNULIB_* module indicator
18970         variables.
18971         * modules/dirent (Makefile.am): Likewise.
18972         * modules/fcntl-h (Makefile.am): Likewise.
18973         * modules/iconv-h (Makefile.am): Likewise.
18974         * modules/langinfo (Makefile.am): Likewise.
18975         * modules/locale (Makefile.am): Likewise.
18976         * modules/math (Makefile.am): Likewise.
18977         * modules/netdb (Makefile.am): Likewise.
18978         * modules/poll-h (Makefile.am): Likewise.
18979         * modules/pty (Makefile.am): Likewise.
18980         * modules/search (Makefile.am): Likewise.
18981         * modules/signal (Makefile.am): Likewise.
18982         * modules/spawn (Makefile.am): Likewise.
18983         * modules/stdio (Makefile.am): Likewise.
18984         * modules/stdlib (Makefile.am): Likewise.
18985         * modules/string (Makefile.am): Likewise.
18986         * modules/sys_ioctl (Makefile.am): Likewise.
18987         * modules/sys_select (Makefile.am): Likewise.
18988         * modules/sys_socket (Makefile.am): Likewise.
18989         * modules/sys_stat (Makefile.am): Likewise.
18990         * modules/sys_times (Makefile.am): Likewise.
18991         * modules/sys_utsname (Makefile.am): Likewise.
18992         * modules/sys_wait (Makefile.am): Likewise.
18993         * modules/termios (Makefile.am): Likewise.
18994         * modules/time (Makefile.am): Likewise.
18995         * modules/unistd (Makefile.am): Likewise.
18996         * modules/wchar (Makefile.am): Likewise.
18997
18998 2011-06-08  Eric Blake  <eblake@redhat.com>
18999
19000         strerror: simplify replacement
19001         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19002         * modules/strerror (configure.ac): No prereqs needed here...
19003         * modules/strerror-override (configure.ac): ...but this needs it.
19004         (Files): Add file for needed prereq macro.
19005
19006 2011-06-08  Bruno Haible  <bruno@clisp.org>
19007
19008         strerror_r-posix: Tweaks.
19009         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19010         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19011         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19012         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19013         (gl_FUNC_STRERROR_R): ... to here.
19014         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19015
19016 2011-06-07  Eric Blake  <eblake@redhat.com>
19017
19018         perror: document fixed bugs
19019         * doc/posix-functions/perror.texi (perror): Document recent
19020         patches.
19021
19022 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19023
19024         stat-time: get_stat_birthtime failure is better-defined
19025         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19026         return a timestamp whose tv_sec and tv_nsec values are both -1.
19027         Previously, the spec said only that the tv_nsec value was negative.
19028         This upward-compatible change simplifies GNU tar a bit.
19029
19030 2011-06-07  Eric Blake  <eblake@redhat.com>
19031
19032         strerror_r-posix: work around cygwin 1.7.9
19033         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19034         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19035         bug without replacing strerror_r.
19036         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19037         strerror_r is buggy, but without requiring strerror_r compilation.
19038         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19039
19040         test-perror: relax test to ignore cygwin bug
19041         * tests/test-perror2.c (main): Relax test on requiring detection
19042         of stream errors, and use unbuffered stream.
19043         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19044         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19045         * doc/posix-functions/fputc.texi (fputc): Likewise.
19046         * doc/posix-functions/fputs.texi (fputs): Likewise.
19047         * doc/posix-functions/fputws.texi (fputws): Likewise.
19048         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19049         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19050         * doc/posix-functions/getopt.texi (getopt): Likewise.
19051         * doc/posix-functions/perror.texi (perror): Likewise.
19052         * doc/posix-functions/printf.texi (printf): Likewise.
19053         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19054         * doc/posix-functions/psignal.texi (psignal): Likewise.
19055         * doc/posix-functions/putc.texi (putc): Likewise.
19056         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19057         Likewise.
19058         * doc/posix-functions/putchar.texi (putchar): Likewise.
19059         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19060         Likewise.
19061         * doc/posix-functions/puts.texi (puts): Likewise.
19062         * doc/posix-functions/putwc.texi (putwc): Likewise.
19063         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19064         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19065         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19066         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19067         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19068         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19069         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19070         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19071
19072 2011-05-22  Bruno Haible  <bruno@clisp.org>
19073
19074         strerror: Move AC_LIBOBJ invocations to module description.
19075         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19076         gl_PREREQ_STRERROR invocations from here...
19077         * modules/strerror (configure.ac): ... to here.
19078
19079 2011-05-21  Bruno Haible  <bruno@clisp.org>
19080
19081         perror: Use common idiom.
19082         * modules/perror (configure.ac): Reorder statements.
19083
19084 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19085
19086         tests: fix usage message in 'mktempd_'
19087         * tests/init.sh (mktempd_): In the usage message, use literal
19088         'mktempd_', not '$ME' (which is even undefined), as the name of
19089         the subroutine.
19090
19091 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19092
19093         tests init: new function 'fatal_', for hard errors
19094         Before this patch, the only way offered by tests/init.sh to
19095         properly signal a hard error was the `framework_failure_'
19096         function.  But the error message issued by that function,
19097         as its name would suggest, refers to a set-up failure in the
19098         testsuite, while hard errors can obviously also be due to
19099         other reasons.  The best way to fix this inconsistency is to
19100         introduce a new function with a more general error message.
19101         * tests/init.sh (fatal_): New function.
19102
19103 2011-06-06  Eric Blake  <eblake@redhat.com>
19104
19105         canonicalize-lgpl: use common idiom
19106         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19107         over newer POSIX -Rf.
19108         Reported by Bruno Haible.
19109
19110         canonicalize-lgpl: work around AIX realpath bug
19111         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19112         * doc/posix-functions/realpath.texi (realpath): Document it.
19113         Reported by Bruno Haible.
19114
19115         strerror: work around FreeBSD bug
19116         * lib/strerror.c (strerror): Special case 0.
19117         Reported by Bruno Haible.
19118
19119         strerror-override: avoid bloating errno module
19120         * modules/errno (Files, configure.ac): Move replacement strings...
19121         * modules/strerror-override: ...to new module.
19122         * modules/strerror (Depends-on): Add strerror-override.
19123         * modules/strerror_r-posix (Depends-on): Likewise.
19124         * MODULES.html.sh: Document new module.
19125         Reported by Bruno Haible.
19126
19127 2011-06-06  Bruno Haible  <bruno@clisp.org>
19128
19129         spawn-pipe tests: Rename program.
19130         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19131         * tests/test-spawn-pipe-child.c: Update comment.
19132         * tests/test-spawn-pipe.sh: Update.
19133         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19134
19135         spawn-pipe tests: Link the child program only against libc.
19136         * tests/test-spawn-pipe-child.c: New file, extracted from
19137         tests/test-spawn-pipe.c.
19138         (main): Expect only one argument.
19139         (is_open): New function, copied from tests/test-pipe.c.
19140         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19141         (child_main): Remove function.
19142         (test_pipe): Pass only one argument to the child program.
19143         (main): Remove child process code. Expect the child program's name as
19144         first argument.
19145         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19146         argument.
19147         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19148         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19149         test-spawn-pipe-child against no libraries.
19150
19151 2011-06-06  Bruno Haible  <bruno@clisp.org>
19152
19153         careadlinkat: Avoid mismatch between ssize_t and int.
19154         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19155         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19156
19157 2011-06-06  Jim Meyering  <meyering@redhat.com>
19158
19159         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19160         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19161         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19162
19163 2011-06-05  Bruno Haible  <bruno@clisp.org>
19164
19165         ansi-c++-opt: Interoperability with libtool.
19166         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19167         set the variable to "no", not to ":".
19168         * NEWS: Mention the change.
19169
19170 2011-06-05  Bruno Haible  <bruno@clisp.org>
19171
19172         acl: Fix test failure on AIX 7.
19173         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19174         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19175
19176 2011-06-05  Bruno Haible  <bruno@clisp.org>
19177
19178         pipe-filter-ii: Fix test failure on AIX and IRIX.
19179         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19180         with EAGAIN, retry with a smaller buffer size.
19181
19182 2011-06-05  Bruno Haible  <bruno@clisp.org>
19183
19184         localename: Fix link dependencies.
19185         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19186         * modules/localename-tests (Makefile.am): Link test-localename with
19187         $(LIBTHREAD).
19188
19189 2011-06-05  Bruno Haible  <bruno@clisp.org>
19190
19191         error: Avoid gcc warning.
19192         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19193
19194 2011-06-05  Bruno Haible  <bruno@clisp.org>
19195
19196         unsetenv: Avoid gcc warning.
19197         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19198
19199 2011-06-05  Bruno Haible  <bruno@clisp.org>
19200
19201         setenv: Avoid gcc warning.
19202         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19203
19204 2011-06-05  Bruno Haible  <bruno@clisp.org>
19205
19206         sys_select: Ensure memset is declared also on AIX 7.
19207         * lib/sys_select.in.h: Include <string.h> also on AIX.
19208         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19209         self-contained also on AIX 7.1.
19210
19211 2011-06-04  Jim Meyering  <meyering@redhat.com>
19212
19213         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19214         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19215         function name, "error".
19216         (_gl_translatable_diag_func_re): New configurable variable.
19217
19218 2011-06-04  Bruno Haible  <bruno@clisp.org>
19219
19220         getopt: Avoid gcc warning.
19221         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19222
19223 2011-06-04  Bruno Haible  <bruno@clisp.org>
19224
19225         strerror_r: Fix comments.
19226         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19227         commit.
19228
19229 2011-06-04  Bruno Haible  <bruno@clisp.org>
19230
19231         perror: Fix compilation error.
19232         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19233         Undefine fprintf, not sprintf.
19234         * modules/perror (Depends-on): Remove intprops, verify.
19235
19236 2011-06-04  Bruno Haible  <bruno@clisp.org>
19237
19238         setlocale: Enable replacement on Cygwin 1.5.
19239         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19240         Cygwin 1.5.x.
19241         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19242         LC_CTYPE category also exists on Cygwin 1.5.x.
19243
19244 2011-06-04  Bruno Haible  <bruno@clisp.org>
19245
19246         strerror-override: Don't disable symbol renamings.
19247         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19248         * lib/strerror-override.c: Include config.h.
19249         (strerror_override): Don't undefine.
19250
19251 2011-06-03  Bruno Haible  <bruno@clisp.org>
19252
19253         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19254         * lib/localename.h: Update copyright header.
19255         * lib/localename.c: Likewise.
19256         * lib/relocatable.h: Likewise.
19257         * lib/relocatable.c: Likewise.
19258
19259 2011-06-02  Bruno Haible  <bruno@clisp.org>
19260
19261         doc: Fix a module name.
19262         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19263
19264 2011-06-02  Bruno Haible  <bruno@clisp.org>
19265
19266         pipe2: Remove dependency on 'nonblocking' module.
19267         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19268         O_NONBLOCK is defined by gnulib.
19269         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19270         is zero.
19271         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19272         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19273         defined by gnulib.
19274         (get_nonblocking_flag): New function.
19275         (main): Test O_NONBLOCK flag only if it is nonzero.
19276         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19277
19278 2011-06-03  Jim Meyering  <meyering@redhat.com>
19279
19280         maint: three new prohibit-header-without-use rules
19281         Prohibit use of cloexec.h, posixver.h, same.h without use.
19282         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19283         (sc_prohibit_posixver_without_use): Likewise.
19284         (sc_prohibit_same_without_use): Likewise.
19285
19286 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19287
19288         allocator: 'die' routine is now given requested size
19289         * lib/allocator.h (struct allocator.die): New size arg.
19290         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19291         If the actual problem is an ssize_t limitation, not a size_t or
19292         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19293
19294 2011-06-01  Eric Blake  <eblake@redhat.com>
19295
19296         strerror: drop strerror_r dependency
19297         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19298         * lib/strerror-override.c (strerror_override): ...to new file.
19299         * lib/strerror-override.h: Add prototype.
19300         * lib/strerror-impl.h: Delete.
19301         * lib/strerror.c (strerror): New implementation.
19302         * modules/errno (Files): Add new files.
19303         (configure.ac): Compile new file as appropriate.
19304         * modules/strerror (Files): Drop unused file.
19305         (Depends-on): Drop strerror_r-posix.
19306         * MODULES.html.sh: Document strerror_r-posix.
19307         Requested by Sam Steingold.
19308
19309         perror: call strerror_r directly
19310         * modules/perror (Files): Drop strerror-impl.h.
19311         * lib/perror.c (perror): Use our own stack buffer, rather than
19312         calling a wrapper that uses static storage.
19313         * doc/posix-functions/perror.texi (perror): Document a limitation
19314         of our replacement.
19315
19316         strerror_r: fix includes for FreeBSD
19317         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19318         since we use abort on some platforms.
19319         Reported by Matthias Bolte.
19320
19321 2011-05-31  Bruno Haible  <bruno@clisp.org>
19322
19323         Fix link errors in tests: openat-die uses gettext-h.
19324         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19325         against $(LIBINTL).
19326         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19327         against $(LIBINTL).
19328         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19329         $(LIBINTL).
19330         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19331         against $(LIBINTL).
19332         * modules/linkat-tests (Makefile.am): Link test-linkat against
19333         $(LIBINTL).
19334         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19335         $(LIBINTL).
19336         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19337         against $(LIBINTL).
19338         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19339         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19340         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19341         $(LIBINTL).
19342         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19343         $(LIBINTL).
19344         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19345         $(LIBINTL).
19346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19347
19348 2011-05-31  Bruno Haible  <bruno@clisp.org>
19349
19350         Fix link errors in tests: wait-process uses gettext-h.
19351         * modules/nonblocking-pipe-tests (Makefile.am): Set
19352         test_nonblocking_pipe_main_LDADD.
19353         * modules/nonblocking-socket-tests (Makefile.am): Link
19354         test-nonblocking-socket-main against $(LIBINTL).
19355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19356
19357 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19358
19359         assert-h: work around 'verify' incompatibility
19360         * lib/verify.h: Use @...@ directives, not ifdef.
19361         * modules/assert-h (assert.h): Implement the directives.
19362         (assert.h): Substitute the symbol-prefix more consistently.
19363
19364 2011-05-29  Jim Meyering  <meyering@redhat.com>
19365
19366         trim: remove three superfluous assignments
19367         * lib/trim.c (trim2): Remove three superfluous assignments
19368         and correct brace positioning.
19369
19370 2011-05-29  Bruno Haible  <bruno@clisp.org>
19371
19372         wctype-h: Avoid namespace pollution on Solaris 2.6.
19373         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19374         identifiers.
19375         * doc/posix-headers/wctype.texi: Mention the problem.
19376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19377
19378 2011-05-28  Jim Meyering  <meyering@redhat.com>
19379
19380         parse-datetime.y: accommodate -Wstrict-overflow
19381         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19382         placate -Wstrict-overflow.
19383
19384         trim: avoid a warning from -O2 -Wstrict-overflow
19385         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19386
19387 2011-05-29  Bruno Haible  <bruno@clisp.org>
19388
19389         gnulib-tool: Fix bug in yesterday's commit.
19390         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19391         twice.
19392
19393 2011-05-29  Bruno Haible  <bruno@clisp.org>
19394
19395         Allow multiple gnulib generated include files to be combined.
19396         * gnulib-tool (func_compute_include_guard_prefix): New function.
19397         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19398         ${gl_include_guard_prefix} references.
19399         (func_import, func_create_testdir): Invoke
19400         func_compute_include_guard_prefix.
19401         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19402         * lib/ctype.in.h: Likewise.
19403         * lib/dirent.in.h: Likewise.
19404         * lib/errno.in.h: Likewise.
19405         * lib/fcntl.in.h: Likewise.
19406         * lib/float.in.h: Likewise.
19407         * lib/getopt.in.h: Likewise.
19408         * lib/iconv.in.h: Likewise.
19409         * lib/langinfo.in.h: Likewise.
19410         * lib/locale.in.h: Likewise.
19411         * lib/math.in.h: Likewise.
19412         * lib/netdb.in.h: Likewise.
19413         * lib/netinet_in.in.h: Likewise.
19414         * lib/poll.in.h: Likewise.
19415         * lib/pthread.in.h: Likewise.
19416         * lib/pty.in.h: Likewise.
19417         * lib/sched.in.h: Likewise.
19418         * lib/se-selinux.in.h: Likewise.
19419         * lib/search.in.h: Likewise.
19420         * lib/signal.in.h: Likewise.
19421         * lib/spawn.in.h: Likewise.
19422         * lib/stdarg.in.h: Likewise.
19423         * lib/stddef.in.h: Likewise.
19424         * lib/stdint.in.h: Likewise.
19425         * lib/stdio.in.h: Likewise.
19426         * lib/stdlib.in.h: Likewise.
19427         * lib/string.in.h: Likewise.
19428         * lib/strings.in.h: Likewise.
19429         * lib/sys_file.in.h: Likewise.
19430         * lib/sys_ioctl.in.h: Likewise.
19431         * lib/sys_select.in.h: Likewise.
19432         * lib/sys_socket.in.h: Likewise.
19433         * lib/sys_stat.in.h: Likewise.
19434         * lib/sys_time.in.h: Likewise.
19435         * lib/sys_times.in.h: Likewise.
19436         * lib/sys_uio.in.h: Likewise.
19437         * lib/sys_utsname.in.h: Likewise.
19438         * lib/sys_wait.in.h: Likewise.
19439         * lib/sysexits.in.h: Likewise.
19440         * lib/termios.in.h: Likewise.
19441         * lib/time.in.h: Likewise.
19442         * lib/unistd.in.h: Likewise.
19443         * lib/wchar.in.h: Likewise.
19444         * lib/wctype.in.h: Likewise.
19445         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19446         * modules/ctype (Makefile.am): Likewise.
19447         * modules/dirent (Makefile.am): Likewise.
19448         * modules/errno (Makefile.am): Likewise.
19449         * modules/fcntl-h (Makefile.am): Likewise.
19450         * modules/float (Makefile.am): Likewise.
19451         * modules/getopt-posix (Makefile.am): Likewise.
19452         * modules/iconv-h (Makefile.am): Likewise.
19453         * modules/langinfo (Makefile.am): Likewise.
19454         * modules/locale (Makefile.am): Likewise.
19455         * modules/math (Makefile.am): Likewise.
19456         * modules/netdb (Makefile.am): Likewise.
19457         * modules/netinet_in (Makefile.am): Likewise.
19458         * modules/poll-h (Makefile.am): Likewise.
19459         * modules/pthread (Makefile.am): Likewise.
19460         * modules/pty (Makefile.am): Likewise.
19461         * modules/sched (Makefile.am): Likewise.
19462         * modules/search (Makefile.am): Likewise.
19463         * modules/selinux-h (Makefile.am): Likewise.
19464         * modules/signal (Makefile.am): Likewise.
19465         * modules/spawn (Makefile.am): Likewise.
19466         * modules/stdarg (Makefile.am): Likewise.
19467         * modules/stddef (Makefile.am): Likewise.
19468         * modules/stdint (Makefile.am): Likewise.
19469         * modules/stdio (Makefile.am): Likewise.
19470         * modules/stdlib (Makefile.am): Likewise.
19471         * modules/string (Makefile.am): Likewise.
19472         * modules/strings (Makefile.am): Likewise.
19473         * modules/sys_file (Makefile.am): Likewise.
19474         * modules/sys_ioctl (Makefile.am): Likewise.
19475         * modules/sys_select (Makefile.am): Likewise.
19476         * modules/sys_socket (Makefile.am): Likewise.
19477         * modules/sys_stat (Makefile.am): Likewise.
19478         * modules/sys_time (Makefile.am): Likewise.
19479         * modules/sys_times (Makefile.am): Likewise.
19480         * modules/sys_uio (Makefile.am): Likewise.
19481         * modules/sys_utsname (Makefile.am): Likewise.
19482         * modules/sys_wait (Makefile.am): Likewise.
19483         * modules/sysexits (Makefile.am): Likewise.
19484         * modules/termios (Makefile.am): Likewise.
19485         * modules/time (Makefile.am): Likewise.
19486         * modules/unistd (Makefile.am): Likewise.
19487         * modules/wchar (Makefile.am): Likewise.
19488         * modules/wctype-h (Makefile.am): Likewise.
19489         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19490
19491 2011-05-29  Bruno Haible  <bruno@clisp.org>
19492
19493         assert-h: Allow multiple gnulib generated replacements to coexist.
19494         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19495
19496 2011-05-29  Bruno Haible  <bruno@clisp.org>
19497
19498         argp: Allow coexistence with strerror_r-posix module.
19499         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19500         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19501         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19502         not the glibc signature.
19503
19504 2011-05-28  Bruno Haible  <bruno@clisp.org>
19505
19506         gnulib-tool: Alternative structure of testdirs, similar to --import.
19507         * gnulib-tool: New option --single-configure.
19508         (func_usage): Document it.
19509         (single_configure): New variable.
19510         (func_modules_transitive_closure_separately,
19511         func_modules_transitive_closure_separately,
19512         func_determine_use_libtests, func_modules_add_dummy_separately,
19513         func_modules_to_filelist_separately): New functions, extracted from
19514         func_import.
19515         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19516         (func_import): Use the new functions.
19517         (func_create_testdir): Set final_modules. Handle $single_configure =
19518         true case.
19519
19520 2011-05-28  Bruno Haible  <bruno@clisp.org>
19521
19522         getloadavg: Remove an unreliable safety check.
19523         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19524         getloadavg.c is in place.
19525         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19526         Reported by Sam Steingold <sds@gnu.org>.
19527
19528 2011-05-28  Bruno Haible  <bruno@clisp.org>
19529
19530         doc: Cleanup yet another file produced by texinfo.tex.
19531         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19532
19533 2011-05-28  Bruno Haible  <bruno@clisp.org>
19534
19535         Finish the conditional dependencies mechanism.
19536         * gnulib-tool: New option --no-conditional-dependencies.
19537         (func_usage): Document it. Don't mark --conditional-dependencies as
19538         experimental.
19539         (cond_dependencies): The possible values can now be true, false, empty.
19540         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19541         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19542         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19543
19544 2011-05-28  Bruno Haible  <bruno@clisp.org>
19545
19546         doc: Use a recent texinfo.tex.
19547         * doc/Makefile (tex_opts): New variable.
19548         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19549
19550 2011-05-28  Jim Meyering  <meyering@redhat.com>
19551
19552         intprops.h: adjust comment to match code change
19553         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19554         only once, it *may* have side effects.  Also fix an unrelated typo.
19555         (_GL_INT_SIGNED): Likewise.
19556
19557 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19558
19559         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19560
19561 2011-05-26  Bruno Haible  <bruno@clisp.org>
19562
19563         mbsrchr: Avoid collision with system function on Interix.
19564         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19565         Reported by Markus Duft <mduft@gentoo.org>.
19566
19567 2011-05-15  James Youngman  <jay@gnu.org>
19568
19569         getopt: for ambiguous options, enumerate the possibilities.
19570         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19571         the ambiguous options when an ambiguous prefix is given. This was
19572         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19573         glibc change was
19574         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19575
19576 2011-05-25  Eric Blake  <eblake@redhat.com>
19577
19578         getcwd: work around mingw bug
19579         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19580         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19581         Reported by Matthias Bolte.
19582
19583 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19584
19585         test-intprops: disable -Wtype-limits diagnostics
19586         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19587         diagnostics.  Otherwise, the integer overflow macros generate many
19588         diagnostics.  Reported by Jim Meyering in
19589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19590
19591         intprops: shorten, to pacify gcc -Woverlength-strings
19592         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19593         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19594         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19595         likely to run afoul of C compiler limits for string constant lengths.
19596         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19597
19598 2011-05-24  Eric Blake  <eblake@redhat.com>
19599
19600         docs: document recently fixed glibc printf bug
19601         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19602         * doc/posix-functions/printf.texi (printf): Likewise.
19603         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19604         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19605
19606         closein-tests: convert to init.sh
19607         * modules/closein-tests (Files): Add init.sh
19608         * tests/test-closein.sh Use it.
19609
19610         yesno-tests: convert to init.sh
19611         * modules/yesno-tests (Files): Add init.sh.
19612         * tests/test-yesno.sh: Use it.
19613
19614         atexit-tests: ensure reliable exit status
19615         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19616         Reported by Bruno Haible.
19617
19618 2011-05-24  Bruno Haible  <bruno@clisp.org>
19619
19620         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19621         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19622         gl_PREREQ_STRERROR_R invocations from here...
19623         * modules/strerror_r-posix (configure.ac): ... to here.
19624
19625 2011-05-24  Eric Blake  <eblake@redhat.com>
19626
19627         strerror_r: fix missing header
19628         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19629
19630         strerror_r: fix AIX test failures
19631         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19632         ERANGE failure.
19633
19634         strerror_r: fix Solaris test failures
19635         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19636         failures.
19637         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19638
19639         strerror_r: enforce POSIX recommendations
19640         * lib/strerror_r.c (safe_copy): New helper method.
19641         (strerror_r): Guarantee a non-empty string.
19642         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19643         recent POSIX rulings and to match our strerror guarantees.
19644         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19645
19646 2011-05-24  Jim Meyering  <meyering@redhat.com>
19647
19648         test-perror2.c: avoid warning about unused variable
19649         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19650
19651 2011-05-24  Eric Blake  <eblake@redhat.com>
19652
19653         perror: avoid spurious test failure on HP-UX
19654         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19655
19656         tests: fix logic bug in init.sh
19657         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19658         shell.
19659
19660 2011-05-24  Jim Meyering  <meyering@redhat.com>
19661
19662         utimensat: do not reference an out-of-scope buffer
19663         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19664         declared in an inner scope, yet "times" would be dereferenced outside
19665         the scope in which "ts" was valid.
19666         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19667         of ts[2] "out/up", so that the use of aliased "times" (via
19668         "times = ts;") does not end up referencing an out-of-scope "ts"
19669
19670         opendir-safer.c: don't clobber errno; don't close negative FD
19671         * lib/opendir-safer.c (opendir_safer):
19672         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19673         file descriptor, and more importantly, don't clobber the
19674         offending errno value with EINVAL.  Before, upon failure
19675         of dup_safer, we would pass the negative file descriptor to
19676         fdopendir, which would clobber errno.
19677
19678 2011-05-23  Bruno Haible  <bruno@clisp.org>
19679
19680         idcache: Fix module description.
19681         * modules/idcache (Include): Set to "idcache.h".
19682
19683 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19684
19685         gnulib-tool: fix portability problem with MacOS sed
19686         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19687         before the "}".  Problem reported by Leo in
19688         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19689         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19690         sed_extract_condition1, sed_extract_condition2.
19691
19692 2011-05-23  Bruno Haible  <bruno@clisp.org>
19693
19694         hash: Simplify autoconf macro.
19695         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19696
19697 2011-05-23  Bruno Haible  <bruno@clisp.org>
19698
19699         getugroups: Fix module description.
19700         * modules/getugroups (Include): Set to "getugroups.h".
19701
19702 2011-05-23  Bruno Haible  <bruno@clisp.org>
19703
19704         linkat: Simplify autoconf macro.
19705         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19706
19707 2011-05-23  Bruno Haible  <bruno@clisp.org>
19708             Eric Blake  <eblake@redhat.com>
19709
19710         linkat, renameat: Update dependencies.
19711         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19712         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19713         symlinkat.
19714
19715 2011-05-23  Jim Meyering  <meyering@redhat.com>
19716
19717         maint.mk: more tight_scope improvements
19718         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19719         (_gl_TS_headers): Define only in if-0'd block.
19720         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19721         sometimes we must *not* use it.  Adjust uses accordingly.
19722         (sc_tight_scope): Use much simpler grep-based test to determine
19723         whether we skip this rule.
19724
19725         maint.mk: generalize/improve the tight-scope rule
19726         * top/maint.mk: Emit a warning when the test is skipped.
19727         (_gl_TS_dir): Add $(srcdir)/ prefix.
19728         (_gl_TS_function_match): Simplify, rather than trying
19729         to enumerate common types.  Otherwise, it would fail to match an
19730         "extern unsigned char const *" declaration in idutils.
19731         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19732         a way to support use of that type of macro.
19733         (_gl_TS_var_match): Simplify regexp.
19734         (_gl_TS_obj_files): New configurable variable.
19735         (_gl_TS_headers): Likewise.
19736
19737 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19738
19739         verify: fix bug when gnulib <assert.h> is also included
19740         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19741         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19742         Perhaps there's a better way, but this fixes the immediate problem.
19743         Problem reported by Bruno Haible in
19744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19745
19746 2011-05-22  Bruno Haible  <bruno@clisp.org>
19747
19748         xgetcwd: Simplify autoconf macro.
19749         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19750
19751 2011-05-22  Bruno Haible  <bruno@clisp.org>
19752
19753         New module 'mktime-internal'.
19754         * modules/mktime-internal: New file.
19755         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19756         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19757         mktime_internal as a C macro if libc has __mktime_internal.
19758         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19759         conditions.
19760         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19761
19762 2011-05-22  Bruno Haible  <bruno@clisp.org>
19763
19764         timegm: Correct mktime replacement statements.
19765         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19766         defining mktime as a C macro. This completes a 2009-07-28 commit.
19767
19768 2011-05-22  Bruno Haible  <bruno@clisp.org>
19769
19770         timegm: Simplify autoconf macro.
19771         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19772
19773 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19774
19775         clock-time: change to LGPLv2+.
19776         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19777         BSD-like but we have no mark for that; this is good enough for now.
19778
19779 2011-05-21  Bruno Haible  <bruno@clisp.org>
19780
19781         strerror_r: Fix comments.
19782         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19783
19784 2011-05-21  Bruno Haible  <bruno@clisp.org>
19785
19786         relocatable-prog-wrapper: Fix possible link error.
19787         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19788         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19789         (gl_FUNC_SETENV): ... to here.
19790         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19791         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19792
19793 2011-05-21  Bruno Haible  <bruno@clisp.org>
19794
19795         relocatable-prog-wrapper: Assume strerror() exists.
19796         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19797         m4/strerror.m4.
19798         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19799         * lib/relocwrapper.c: Remove mention of strerror module.
19800         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19801         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19802         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19803         C macro.
19804
19805 2011-05-21  Bruno Haible  <bruno@clisp.org>
19806
19807         select: Simplify replacement idiom.
19808         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19809         Win32 platforms.
19810         * lib/sys_select.in.h (select): Simplify accordingly.
19811         * modules/select (Depends-on): Likewise.
19812
19813 2011-05-21  Bruno Haible  <bruno@clisp.org>
19814
19815         mkdir-p: Simplify autoconf macro.
19816         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19817         gl_FUNC_LCHOWN.
19818
19819 2011-05-21  Eric Blake  <eblake@redhat.com>
19820
19821         strerror_r: avoid clobbering strerror on cygwin
19822         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19823         fall back instead to sys_errlist.
19824         * modules/strerror (configure.ac): Add witness.
19825         * tests/test-strerror_r.c (main): Enhance test.
19826         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19827         * tests/test-perror2.c (main): Free memory before exit.
19828
19829 2011-05-21  Bruno Haible  <bruno@clisp.org>
19830
19831         mkdtemp: Use gnulib naming conventions.
19832         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19833         * modules/mkdtemp (configure.ac): Update.
19834
19835 2011-05-20  Eric Blake  <eblake@redhat.com>
19836
19837         strerror_r: avoid corrupting errno on Solaris
19838         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19839         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19840
19841         strerror_r: avoid compiler warning
19842         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19843
19844         strerror_r: simplify AIX code
19845         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19846
19847         test-perror: avoid spurious failure on FreeBSD
19848         * modules/perror-tests (Depends-on): Add strerror, now that
19849         strerror_r no longer pulls it in.
19850
19851 2011-05-20  Bruno Haible  <bruno@clisp.org>
19852
19853         strerror_r-posix: Remove unused dependencies.
19854         * modules/strerror_r-posix (Depends-on): Remove strerror.
19855         Reported by Eric Blake.
19856
19857 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19858
19859         intprops: remove assumption about A|B representation
19860         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19861         is a valid integer if both A and B are.  Although this is true for
19862         all known practical hosts, the C standard doesn't guarantee it,
19863         and the code need not assume it.  Also, this change may work around
19864         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19866
19867 2011-05-20  Eric Blake  <eblake@redhat.com>
19868
19869         perror: work around FreeBSD bug
19870         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19871         is broken.  Move AC_LIBOBJ...
19872         * modules/perror (configure.ac): Here.
19873         * doc/posix-functions/perror.texi (perror): Document this.
19874         * tests/test-perror2.c (main): Enhance test.
19875
19876         test-perror: check for strerror interactions
19877         * tests/macros.h (STREQ): Add macro.
19878         * modules/perror-tests (Files): Add second test.
19879         * tests/test-perror2.c (main): New file.
19880         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19881
19882         test-perror: rewrite to use init script
19883         * modules/perror-tests (Files): Add init.sh.
19884         * tests/test-perror.sh: Use temporary directory.
19885
19886 2011-05-20  Jim Meyering  <meyering@redhat.com>
19887
19888         maint: replace misused "a" with "an"
19889         * doc/intprops.texi: "a integer"
19890         * doc/regex.texi: "a explanation"
19891         * lib/alignof.h: "a object"
19892         * lib/argmatch.h: "a explanation"
19893         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19894         * lib/stdint.in.h: "a integer"
19895         * lib/userspec.c: "a owner"
19896         * doc/gnulib.texi: Fix "a idea", and reword.
19897
19898 2011-05-19  Jim Meyering  <meyering@redhat.com>
19899
19900         maint: correct misuse of "a" and "an"
19901         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19902         * lib/argp-help.c: "an docum...": s/an/a/
19903         * lib/argp-parse.c: "An vector": s/An/A/
19904         * lib/execute.c: "an native": s/an/a/
19905         * lib/spawn-pipe.c: Likewise.
19906         * lib/gc.h: "an Gc_rc": s/an/a/
19907         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19908         * lib/fts.c: "an stat.st_dev": s/an/a/
19909
19910 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19911
19912         intprops-tests: work around HP-UX 11.23 cc bug with constants
19913         * tests/test-intprops.c (VERIFY): New macro.
19914         (main): Use it, instead of verify, to work around the compiler bug; see
19915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19916
19917         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19918         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19919         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19920         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19921         (_GL_REMAINDER_OVERFLOW): Use it.
19922
19923         intprops-tests: revert unsigned part of previous change
19924         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19925         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19926         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19928
19929 2011-05-19  Bruno Haible  <bruno@clisp.org>
19930
19931         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19932         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19933         strerror_r() returned without filling the buffer.
19934         Reported by Eric Blake.
19935
19936 2011-05-19  Eric Blake  <eblake@redhat.com>
19937
19938         strerror_r: guarantee unchanged errno
19939         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19940         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19941         failure.
19942         * tests/test-strerror_r.c (main): Enhance test.
19943
19944 2011-05-19  Bruno Haible  <bruno@clisp.org>
19945
19946         strerror_r: Reorder #if blocks.
19947         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19948         for consistency with the previous commit.
19949
19950 2011-05-19  Bruno Haible  <bruno@clisp.org>
19951
19952         perror: Avoid clobbering the strerror buffer when possible.
19953         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19954         * lib/strerror.c: Include it.
19955         * modules/strerror (Files): Add lib/strerror-impl.h.
19956         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19957         (my_strerror): New function, defined through lib/strerror-impl.h.
19958         (perror): Use it instead of strerror.
19959         * modules/perror (Files): Add lib/strerror-impl.h.
19960         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19961
19962 2011-05-19  Eric Blake  <eblake@redhat.com>
19963
19964         strerror_r: fix on newer cygwin
19965         * lib/strerror_r.c (strerror_r): Cygwin now has
19966         __xpg_strerror_r, use it.
19967
19968 2011-05-19  Bruno Haible  <bruno@clisp.org>
19969
19970         strerror_r: Avoid clobbering the strerror buffer when possible.
19971         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19972         (sys_nerr, sys_errlist): New declarations.
19973         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19974         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19975         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19976
19977 2011-05-19  Bruno Haible  <bruno@clisp.org>
19978
19979         strerror_r: Fix test failure on mingw.
19980         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19981         EXTEND_STRERROR_R.
19982         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19983         macros from errno.in.h instead.
19984
19985 2011-05-19  Eric Blake  <eblake@redhat.com>
19986
19987         strerror: relax test for Solaris
19988         * tests/test-strerror.c (main): Permit Solaris behavior.
19989         * tests/test-strerror_r.c (main): Likewise.
19990
19991         strerror: enforce POSIX ruling on strerror(0)
19992         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19993         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19994         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19995         * doc/posix-functions/strerror.texi (strerror): Document it.
19996         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19997         * tests/test-strerror.c (main): Strengthen test.
19998         * tests/test-strerror_r.c (main): Likewise.
19999
20000 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20001
20002         intprop-tests: port to older and more-pedantic compilers
20003         * modules/intprops-tests (Files): Add tests/macros.h.
20004         * tests/test-intprops.c: Include macros.h.
20005         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20006         it's no longer documented to expand to an integer constant expression.
20007         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20008         argument is floating point, as it's no longer documented to expand
20009         to an integer constant expression in that case.
20010         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20011         compiler bugs reported by Bruno Haible.  See
20012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20013         (U0, U1): New constants, to work around the same bugs.  Also,
20014         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20015
20016         intprops: work around C compiler bugs
20017         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20018         bug in Sun C 5.11 2010/08/13 and other compilers; see
20019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20020
20021         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20022         * doc/intprops.texi (Integer Type Determination): Fix
20023         documentation for TYPE_IS_INTEGER: it returns an constant
20024         expression, not an integer constant expression.  Fix doc for
20025         TYPE_SIGNED: it returns an integer constant expression only if its
20026         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20027         hardly worth documented that way....)
20028
20029 2011-05-18  Bruno Haible  <bruno@clisp.org>
20030
20031         strerror_r: Avoid clobbering the strerror buffer when possible.
20032         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20033         Handle gnulib defined errno values here. When strerror() returns NULL
20034         or an empty string, return EINVAL.
20035         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20036         gnulib defined errno values here.
20037         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20038
20039 2011-05-18  Eric Blake  <eblake@redhat.com>
20040
20041         fnmatch: avoid compiler warning
20042         * lib/fnmatch_loop.c (FCT): Use correct type.
20043         Reported by Matthias Bolte.
20044
20045 2011-05-13  Jim Meyering  <meyering@redhat.com>
20046
20047         maint.mk: three new prohibit_<HDR>_without_use rules
20048         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20049         (sc_prohibit_stdio-safer_without_use): Likewise.
20050         (sc_prohibit_xfreopen_without_use): Likewise.
20051
20052 2011-05-17  Jim Meyering  <meyering@redhat.com>
20053
20054         announce-gen: fail if the NEWS delta is empty
20055         If there's nothing noteworthy in NEWS, then either you forgot
20056         or you shouldn't be releasing.
20057         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20058
20059 2011-05-17  Pádraig Brady <P@draigBrady.com>
20060
20061         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20062         reserved symbols starting with double underscore from the check.
20063
20064 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20065
20066         intprops: add doc
20067         * doc/intprops.texi: New file, documenting intprops.
20068         * doc/gnulib.texi (Particular Modules): Include it.
20069
20070         verify: add doc to gnulib manual and fix example
20071         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20072         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20073         (Compile-time Assertions): Fix example so it can't overflow.
20074
20075 2011-05-17  Jim Meyering  <meyering@redhat.com>
20076
20077         warnings.m4: don't usurp save_CPPFLAGS variable name
20078         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20079
20080         doc: fix typo
20081         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20082
20083 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20084             Bruno Haible  <bruno@clisp.org>
20085
20086         doc: Tweak recent change.
20087         * README (Portability guidelines): Tweak new text.
20088         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20089         Interix 6.1.
20090
20091 2011-05-16  Eric Blake  <eblake@redhat.com>
20092
20093         inttypes: avoid autoconf warning
20094         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20095         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20096
20097 2011-05-16  Sam Steingold <sds@gnu.org>
20098         and Eric Blake  <eblake@redhat.com>
20099
20100         vc-list-files: accept multiple directory operands
20101         * build-aux/vc-list-files: Iterate over all remaining operands.
20102
20103 2011-05-16  Bruno Haible  <bruno@clisp.org>
20104
20105         Fix confusion regarding deprecated modules.
20106         * modules/calloc (Status, Notice): Mark module as deprecated, not
20107         obsolete.
20108         * modules/fnmatch-posix (Status, Notice): Likewise.
20109         * modules/getdate (Status, Notice): Likewise.
20110         * modules/getopt (Status, Notice): Likewise.
20111         * modules/malloc (Status, Notice): Likewise.
20112         * modules/pipe (Status, Notice): Likewise.
20113         * modules/realloc (Status, Notice): Likewise.
20114         * modules/rename-dest-slash (Status, Notice): Likewise.
20115         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20116         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20117         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20118         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20119         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20120
20121 2011-05-16  Bruno Haible  <bruno@clisp.org>
20122
20123         doc: List the target platforms.
20124         * doc/gnulib-intro.texi (Target Platforms): New section.
20125         * doc/gnulib.texi (Introduction): Update menu.
20126         * README (Portability guidelines): Refer to the new section. Update
20127         statement about oldest supported environment. Remove rationale why
20128         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20129         unportable C89 function.
20130         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20131         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20132
20133 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20134
20135         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20136
20137 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20138
20139         intprops-tests: new module
20140         * modules/intprops-tests, tests/test-intprops.c: New files.
20141
20142         intprops: add safe, portable integer overflow checking
20143         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20144         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20145         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20146         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20147         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20148         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20149         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20150         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20151         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20152         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20153         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20154
20155 2011-05-12  James Youngman  <jay@gnu.org>
20156
20157         Add a test for glibc's Bugzilla bug #12378.
20158         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20159         doesn't allow the literal matching of a lone "[" (which is
20160         required by POSIX).
20161         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20162
20163 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20164
20165         Sync glibc change fixing Bugzilla bug #12378.
20166         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20167         beginning and fall back to matching as normal character if the
20168         string ends before the matching ']' is found.  This is what POSIX
20169         requires.
20170
20171 2011-05-13  Eric Blake  <eblake@redhat.com>
20172
20173         getcwd-lgpl: relax test for FreeBSD
20174         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20175         issue.
20176         * tests/test-getcwd-lgpl.c (main): Relax test.
20177         Reported by Matthias Bolte.
20178
20179 2011-05-11  Eric Blake  <eblake@redhat.com>
20180
20181         test-fflush: silence compiler warning
20182         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20183
20184 2011-05-11  Bruno Haible  <bruno@clisp.org>
20185
20186         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20187         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20188         * modules/canonicalize (Depends-on): Add 'nocrash'.
20189         * modules/canonicalize-lgpl (Depends-on): Likewise.
20190         * doc/posix-functions/realpath.texi: Update platforms list.
20191         Reported by Ryan Schmidt <ryandesign@macports.org>.
20192
20193 2011-05-11  Bruno Haible  <bruno@clisp.org>
20194
20195         group-member: Declare function in <unistd.h>.
20196         * lib/unistd.in.h (group_member): New declaration.
20197         * lib/group-member.h: Remove file.
20198         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20199         * tests/test-unistd-c++.cc: Check signature of group_member.
20200         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20201         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20202         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20203         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20204         HAVE_GROUP_MEMBER.
20205         * modules/group-member (Files): Remove lib/group-member.h.
20206         (Depends-on): Add unistd. Specify conditions.
20207         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20208         (Include): Change to <unistd.h>.
20209         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20210         HAVE_GROUP_MEMBER.
20211         * NEWS: Mention the change.
20212         * lib/euidaccess.c: Don't include group-member.h.
20213
20214 2011-05-11  Bruno Haible  <bruno@clisp.org>
20215
20216         group-member: Document module.
20217         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20218         module.
20219
20220 2011-05-11  Bruno Haible  <bruno@clisp.org>
20221
20222         fclose: Fix mistake earlier today.
20223         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20224
20225 2011-05-11  Eric Blake  <eblake@redhat.com>
20226
20227         fclose: preserve fflush errors
20228         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20229         Reported by Jim Meyering.
20230
20231         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20232         * build-aux/bootstrap (check_versions): When no specific version
20233         is required, merely check that the app produces an exit status
20234         that indicates its existence.
20235
20236         maint.mk: drop redundant check
20237         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20238         the same but better.
20239
20240 2011-05-11  Bruno Haible  <bruno@clisp.org>
20241
20242         fclose: Fix possible link error.
20243         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20244         unregister_shadow_fd. Improve comments.
20245         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20246         Eric Blake.
20247
20248 2011-05-11  Jim Meyering  <meyering@redhat.com>
20249
20250         maint.mk: improve "can not" detection and generalize rule name
20251         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20252         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20253         Use the same technique as in sc_prohibit_doubled_word, so that
20254         we recognize "can not" also when the words are separated by a newline.
20255         Suggested by Eric Blake.
20256         (perl_filename_lineno_text_): Define.  Factored out of...
20257         (prohibit_doubled_word_): ...here.  Use the new definition.
20258         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20259         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20260         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20261
20262 2011-05-10  Eric Blake  <eblake@redhat.com>
20263
20264         fclose: avoid double close race when possible
20265         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20266         all but WINDOWS_SOCKETS.
20267
20268 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20269
20270         openat: correct new comment
20271         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20272
20273 2011-05-10  Jim Meyering  <meyering@redhat.com>
20274
20275         openat: add comments
20276         * lib/openat-proc.c (openat_proc_name): Add comments,
20277         mostly from Eric Blake.
20278
20279 2011-05-09  Eric Blake  <eblake@redhat.com>
20280
20281         openat: reduce syscalls in first probe of /proc
20282         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20283         be a directory.  Simplify the probe for .. bugs.
20284         * modules/openat (Depends-on): Drop same-inode.
20285         Reported by Bastien ROUCARIES.
20286
20287 2011-05-09  Jim Meyering  <meyering@redhat.com>
20288
20289         maint.mk: change semantics/name of tight_scope variables
20290         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20291         Rename variables to align with semantics that make them more useful.
20292
20293         maint.mk: tweak new rule's name not to impinge
20294         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20295         (sc_tight_scope): Use new rule name rather than $@-0.
20296
20297         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20298         * top/maint.mk (sc_tight_scope): New rule.
20299         (sc_tight_scope-0): New rule, ifdef'd out.
20300         (_gl_TS_dir): Default.
20301         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20302         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20303
20304 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20305
20306         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20307         Haible <bruno@clisp.org>.
20308
20309 2011-05-08  Bruno Haible  <bruno@clisp.org>
20310
20311         Comments.
20312         * m4/isnanf.m4: Add comment.
20313         * m4/isnanl.m4: Likewise.
20314
20315 2011-05-08  Bruno Haible  <bruno@clisp.org>
20316
20317         glob: Remove obsolete macro.
20318         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20319
20320 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20321
20322         intprops: Sun C 5.11 supports __typeof__
20323         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20324         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20325         which is new.
20326         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20327
20328         intprops: switch to usual gnulib indenting and naming
20329         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20330         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20331
20332         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20333
20334 2011-05-08  Jim Meyering  <meyering@redhat.com>
20335
20336         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20337         * top/maint.mk (release-prep): Use make's --no-print-directory
20338         option when generating the announcement.  This eliminates the
20339         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20340         generated announcement template.
20341
20342 2011-05-08  Bruno Haible  <bruno@clisp.org>
20343
20344         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20345         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20346         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20347
20348 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20349
20350         ignore-value, verify: Omit include files from lib_SOURCES.
20351         * modules/ignore-value, modules/verify (Makefile.am):
20352         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20353         that leads Automake to duplicate use of am__objects_... variables
20354         in Makefile.in.  See
20355         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20356
20357 2011-05-07  Bruno Haible  <bruno@clisp.org>
20358
20359         fclose: Simplify autoconf macro.
20360         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20361         defined.
20362
20363 2011-05-07  Bruno Haible  <bruno@clisp.org>
20364
20365         canonicalize-lgpl: Fix autoconf macro ordering bug.
20366         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20367         gl_STDLIB_H_DEFAULTS.
20368
20369 2011-05-06  Eric Blake  <eblake@redhat.com>
20370
20371         maintainer-makefile: make sc_po_check easier to tune
20372         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20373         to probe for strings, such as an alternate location for gnulib.
20374
20375         fclose: guarantee behavior on seekable stdin
20376         * modules/fclose (Depends-on): Add fflush.
20377         * doc/posix-functions/fclose.texi (fclose): Document this.
20378         * tests/test-fclose.c (main): Make test for this unconditional.
20379
20380 2011-05-06  Bruno Haible  <bruno@clisp.org>
20381
20382         fflush, fpurge: Relicense under LGPLv2+.
20383         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20384         * modules/fpurge (License): Likewise.
20385         With permission from Eric Blake and Jim Meyering.
20386         Suggested by Eric Blake.
20387
20388 2011-05-06  Karl Berry  <karl@gnu.org>
20389
20390         * MODULES.html.sh (func_all_modules): remove exit.
20391
20392 2011-05-06  Jim Meyering  <meyering@redhat.com>
20393
20394         maint.mk: use info-gnu@ as the default only for a stable release
20395         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20396         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20397         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20398         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20399
20400 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20401
20402         assert-h: new module, which supports C1X-style static_assert
20403         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20404         * lib/verify.h: Revamp so that this can be copied into assert.h,
20405         while retaining the ability to use it standalone as before.
20406         Rename private identifiers so as not to encroach on the
20407         standard C namespace, since this is now used by assert.h.
20408         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20409         the old verify_true.
20410         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20411         the old verify_true.  Use _GL_VERIFY_TYPE.
20412         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20413         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20414         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20415         defined when this file is copied into the replacement assert.h.
20416         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20417         and _Static_assert is not built in.
20418         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20419         defined, and use the new macros mentioned above.
20420         * doc/posix-headers/assert.texi: Document this.
20421
20422 2011-05-05  Bruno Haible  <bruno@clisp.org>
20423
20424         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20425         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20426         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20427         gl_REPLACE_FCLOSE here.
20428         * modules/fflush (Depends-on): Remove fclose.
20429         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20430         combination with module 'fclose'.
20431
20432 2011-05-05  Bruno Haible  <bruno@clisp.org>
20433
20434         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20435         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20436         gl_FUNC_FFLUSH.
20437         (gl_FUNC_FFLUSH): Use it.
20438         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20439         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20440         gl_REPLACE_FSEEKO here.
20441
20442 2011-05-05  Bruno Haible  <bruno@clisp.org>
20443
20444         tzset: Relicense under LGPL.
20445         * modules/tzset (License): Change to LGPL.
20446         No agreement needed; it's a no-op.
20447
20448         strtoimax, strtoumax: Relicense under LGPL.
20449         * modules/strtoimax (License): Change to LGPL.
20450         * modules/strtoumax (License): Likewise.
20451         With permission from Jim Meyering, Paul Eggert:
20452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20454
20455         getgroups: Relicense under LGPL.
20456         * modules/getgroups (License): Change to LGPL.
20457         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20461
20462         nanosleep: Relicense under LGPL.
20463         * modules/nanosleep (License): Change to LGPL.
20464         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20465         Haible:
20466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20470
20471         futimens: Relicense under LGPL.
20472         * modules/futimens (License): Change to LGPL.
20473         With permission from Eric Blake:
20474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20475
20476         fflush: Relicense under LGPL.
20477         * modules/fflush (License): Change to LGPL.
20478         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20482
20483         tmpfile: Relicense under LGPL.
20484         * modules/tmpfile (License): Change to LGPL.
20485         With permission from Ben Pfaff:
20486         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20487
20488         isfinite: Relicense under LGPL.
20489         * modules/isfinite (License): Change to LGPL.
20490         With permission from Ben Pfaff, Bruno Haible:
20491         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20493
20494         acosl..tanl: Relicense under LGPL.
20495         * modules/acosl (License): Change to LGPL.
20496         * modules/asinl (License): Likewise.
20497         * modules/atanl (License): Likewise.
20498         * modules/cosl (License): Likewise.
20499         * modules/expl (License): Likewise.
20500         * modules/logl (License): Likewise.
20501         * modules/sinl (License): Likewise.
20502         * modules/sqrtl (License): Likewise.
20503         * modules/tanl (License): Likewise.
20504         Source code originally from glibc and Paolo Bonzini. Agreements:
20505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20507
20508 2011-05-05  Bruno Haible  <bruno@clisp.org>
20509
20510         signal: Define sighandler_t.
20511         * lib/signal.in.h (sighandler_t): New type.
20512         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20513         whether sighandler_t is defined.
20514         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20515         * modules/signal (Depends-on): Add extensions.
20516         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20517         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20518         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20519
20520 2011-05-05  Eric Blake  <eblake@redhat.com>
20521
20522         maint: remove useless REPLACE_*_H macros
20523         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20524         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20525         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20526         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20527         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20528         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20529         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20530         * m4/btowc.m4: Update callers.
20531         * m4/dirfd.m4: Likewise.
20532         * m4/duplocale.m4: Likewise.
20533         * m4/fchdir.m4: Likewise.
20534         * m4/fdopendir.m4: Likewise.
20535         * m4/inet_ntop.m4: Likewise.
20536         * m4/inet_pton.m4: Likewise.
20537         * m4/ioctl.m4: Likewise.
20538         * m4/mbrlen.m4: Likewise.
20539         * m4/mbrtowc.m4: Likewise.
20540         * m4/mbsinit.m4: Likewise.
20541         * m4/mbsnrtowcs.m4: Likewise.
20542         * m4/mbsrtowcs.m4: Likewise.
20543         * m4/poll.m4: Likewise.
20544         * m4/setlocale.m4: Likewise.
20545         * m4/wcrtomb.m4: Likewise.
20546         * m4/wcsnrtombs.m4: Likewise.
20547         * m4/wcsrtombs.m4: Likewise.
20548         * m4/wctob.m4: Likewise.
20549         * m4/wcwidth.m4: Likewise.
20550         * modules/posix_spawn: Likewise.
20551         * modules/posix_spawn_file_actions_addclose: Likewise.
20552         * modules/posix_spawn_file_actions_adddup2: Likewise.
20553         * modules/posix_spawn_file_actions_addopen: Likewise.
20554         * modules/posix_spawn_file_actions_destroy: Likewise.
20555         * modules/posix_spawn_file_actions_init: Likewise.
20556         * modules/posix_spawnattr_destroy: Likewise.
20557         * modules/posix_spawnattr_getflags: Likewise.
20558         * modules/posix_spawnattr_getpgroup: Likewise.
20559         * modules/posix_spawnattr_getschedparam: Likewise.
20560         * modules/posix_spawnattr_getschedpolicy: Likewise.
20561         * modules/posix_spawnattr_getsigdefault: Likewise.
20562         * modules/posix_spawnattr_getsigmask: Likewise.
20563         * modules/posix_spawnattr_init: Likewise.
20564         * modules/posix_spawnattr_setflags: Likewise.
20565         * modules/posix_spawnattr_setpgroup: Likewise.
20566         * modules/posix_spawnattr_setschedparam: Likewise.
20567         * modules/posix_spawnattr_setschedpolicy: Likewise.
20568         * modules/posix_spawnattr_setsigdefault: Likewise.
20569         * modules/posix_spawnattr_setsigmask: Likewise.
20570         * modules/posix_spawnp: Likewise.
20571
20572 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20573
20574         Add option to do-release-commit-and-tag to specify branch.
20575         * build-aux/do-release-commit-and-tag: Add --branch.
20576
20577 2011-05-03  Bruno Haible  <bruno@clisp.org>
20578
20579         Avoid unnecessary compilation units, through conditional dependencies.
20580         * modules/accept (Depends-on): Add conditions to the dependencies.
20581         * modules/acosl (Depends-on): Likewise.
20582         * modules/argz (Depends-on): Likewise.
20583         * modules/asinl (Depends-on): Likewise.
20584         * modules/atanl (Depends-on): Likewise.
20585         * modules/atoll (Depends-on): Likewise.
20586         * modules/bind (Depends-on): Likewise.
20587         * modules/btowc (Depends-on): Likewise.
20588         * modules/canonicalize-lgpl (Depends-on): Likewise.
20589         * modules/ceil (Depends-on): Likewise.
20590         * modules/ceilf (Depends-on): Likewise.
20591         * modules/ceill (Depends-on): Likewise.
20592         * modules/chdir-long (Depends-on): Likewise.
20593         * modules/chown (Depends-on): Likewise.
20594         * modules/close (Depends-on): Likewise.
20595         * modules/connect (Depends-on): Likewise.
20596         * modules/cosl (Depends-on): Likewise.
20597         * modules/dirfd (Depends-on): Likewise.
20598         * modules/dprintf (Depends-on): Likewise.
20599         * modules/dprintf-posix (Depends-on): Likewise.
20600         * modules/error (Depends-on): Likewise.
20601         * modules/euidaccess (Depends-on): Likewise.
20602         * modules/expl (Depends-on): Likewise.
20603         * modules/faccessat (Depends-on): Likewise.
20604         * modules/fchdir (Depends-on): Likewise.
20605         * modules/fclose (Depends-on): Likewise.
20606         * modules/fcntl (Depends-on): Likewise.
20607         * modules/fdopendir (Depends-on): Likewise.
20608         * modules/fflush (Depends-on): Likewise.
20609         * modules/floor (Depends-on): Likewise.
20610         * modules/floorf (Depends-on): Likewise.
20611         * modules/floorl (Depends-on): Likewise.
20612         * modules/fnmatch (Depends-on): Likewise.
20613         * modules/fopen (Depends-on): Likewise.
20614         * modules/fprintf-posix (Depends-on): Likewise.
20615         * modules/frexp (Depends-on): Likewise.
20616         * modules/frexp-nolibm (Depends-on): Likewise.
20617         * modules/frexpl (Depends-on): Likewise.
20618         * modules/frexpl-nolibm (Depends-on): Likewise.
20619         * modules/fseek (Depends-on): Likewise.
20620         * modules/fsusage (Depends-on): Likewise.
20621         * modules/ftell (Depends-on): Likewise.
20622         * modules/ftello (Depends-on): Likewise.
20623         * modules/futimens (Depends-on): Likewise.
20624         * modules/getcwd (Depends-on): Likewise.
20625         * modules/getcwd-lgpl (Depends-on): Likewise.
20626         * modules/getdelim (Depends-on): Likewise.
20627         * modules/getdomainname (Depends-on): Likewise.
20628         * modules/getgroups (Depends-on): Likewise.
20629         * modules/gethostname (Depends-on): Likewise.
20630         * modules/getline (Depends-on): Likewise.
20631         * modules/getlogin_r (Depends-on): Likewise.
20632         * modules/getopt-posix (Depends-on): Likewise.
20633         * modules/getpeername (Depends-on): Likewise.
20634         * modules/getsockname (Depends-on): Likewise.
20635         * modules/getsockopt (Depends-on): Likewise.
20636         * modules/getsubopt (Depends-on): Likewise.
20637         * modules/getusershell (Depends-on): Likewise.
20638         * modules/glob (Depends-on): Likewise.
20639         * modules/grantpt (Depends-on): Likewise.
20640         * modules/iconv_open (Depends-on): Likewise.
20641         * modules/iconv_open-utf (Depends-on): Likewise.
20642         * modules/inet_ntop (Depends-on): Likewise.
20643         * modules/inet_pton (Depends-on): Likewise.
20644         * modules/ioctl (Depends-on): Likewise.
20645         * modules/isapipe (Depends-on): Likewise.
20646         * modules/isfinite (Depends-on): Likewise.
20647         * modules/isinf (Depends-on): Likewise.
20648         * modules/lchown (Depends-on): Likewise.
20649         * modules/ldexpl (Depends-on): Likewise.
20650         * modules/link (Depends-on): Likewise.
20651         * modules/linkat (Depends-on): Likewise.
20652         * modules/listen (Depends-on): Likewise.
20653         * modules/logl (Depends-on): Likewise.
20654         * modules/lstat (Depends-on): Likewise.
20655         * modules/mbrlen (Depends-on): Likewise.
20656         * modules/mbrtowc (Depends-on): Likewise.
20657         * modules/mbsinit (Depends-on): Likewise.
20658         * modules/mbsnrtowcs (Depends-on): Likewise.
20659         * modules/mbsrtowcs (Depends-on): Likewise.
20660         * modules/mbtowc (Depends-on): Likewise.
20661         * modules/memcmp (Depends-on): Likewise.
20662         * modules/mkdir (Depends-on): Likewise.
20663         * modules/mkdtemp (Depends-on): Likewise.
20664         * modules/mkfifo (Depends-on): Likewise.
20665         * modules/mkfifoat (Depends-on): Likewise.
20666         * modules/mknod (Depends-on): Likewise.
20667         * modules/mkostemp (Depends-on): Likewise.
20668         * modules/mkostemps (Depends-on): Likewise.
20669         * modules/mkstemp (Depends-on): Likewise.
20670         * modules/mkstemps (Depends-on): Likewise.
20671         * modules/mktime (Depends-on): Likewise.
20672         * modules/nanosleep (Depends-on): Likewise.
20673         * modules/open (Depends-on): Likewise.
20674         * modules/openat (Depends-on): Likewise.
20675         * modules/perror (Depends-on): Likewise.
20676         * modules/poll (Depends-on): Likewise.
20677         * modules/popen (Depends-on): Likewise.
20678         * modules/posix_spawn (Depends-on): Likewise.
20679         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20680         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20681         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20682         * modules/posix_spawnp (Depends-on): Likewise.
20683         * modules/pread (Depends-on): Likewise.
20684         * modules/printf-posix (Depends-on): Likewise.
20685         * modules/ptsname (Depends-on): Likewise.
20686         * modules/putenv (Depends-on): Likewise.
20687         * modules/pwrite (Depends-on): Likewise.
20688         * modules/readline (Depends-on): Likewise.
20689         * modules/readlink (Depends-on): Likewise.
20690         * modules/readlinkat (Depends-on): Likewise.
20691         * modules/recv (Depends-on): Likewise.
20692         * modules/recvfrom (Depends-on): Likewise.
20693         * modules/regex (Depends-on): Likewise.
20694         * modules/remove (Depends-on): Likewise.
20695         * modules/rename (Depends-on): Likewise.
20696         * modules/renameat (Depends-on): Likewise.
20697         * modules/rmdir (Depends-on): Likewise.
20698         * modules/round (Depends-on): Likewise.
20699         * modules/roundf (Depends-on): Likewise.
20700         * modules/roundl (Depends-on): Likewise.
20701         * modules/rpmatch (Depends-on): Likewise.
20702         * modules/select (Depends-on): Likewise.
20703         * modules/send (Depends-on): Likewise.
20704         * modules/sendto (Depends-on): Likewise.
20705         * modules/setenv (Depends-on): Likewise.
20706         * modules/setlocale (Depends-on): Likewise.
20707         * modules/setsockopt (Depends-on): Likewise.
20708         * modules/shutdown (Depends-on): Likewise.
20709         * modules/sigaction (Depends-on): Likewise.
20710         * modules/signbit (Depends-on): Likewise.
20711         * modules/sigprocmask (Depends-on): Likewise.
20712         * modules/sinl (Depends-on): Likewise.
20713         * modules/sleep (Depends-on): Likewise.
20714         * modules/snprintf (Depends-on): Likewise.
20715         * modules/snprintf-posix (Depends-on): Likewise.
20716         * modules/socket (Depends-on): Likewise.
20717         * modules/sprintf-posix (Depends-on): Likewise.
20718         * modules/sqrtl (Depends-on): Likewise.
20719         * modules/stat (Depends-on): Likewise.
20720         * modules/strchrnul (Depends-on): Likewise.
20721         * modules/strdup-posix (Depends-on): Likewise.
20722         * modules/strerror (Depends-on): Likewise.
20723         * modules/strerror_r-posix (Depends-on): Likewise.
20724         * modules/strndup (Depends-on): Likewise.
20725         * modules/strnlen (Depends-on): Likewise.
20726         * modules/strptime (Depends-on): Likewise.
20727         * modules/strsep (Depends-on): Likewise.
20728         * modules/strsignal (Depends-on): Likewise.
20729         * modules/strstr-simple (Depends-on): Likewise.
20730         * modules/strtod (Depends-on): Likewise.
20731         * modules/strtoimax (Depends-on): Likewise.
20732         * modules/strtok_r (Depends-on): Likewise.
20733         * modules/strtoumax (Depends-on): Likewise.
20734         * modules/symlink (Depends-on): Likewise.
20735         * modules/symlinkat (Depends-on): Likewise.
20736         * modules/tanl (Depends-on): Likewise.
20737         * modules/tcgetsid (Depends-on): Likewise.
20738         * modules/tmpfile (Depends-on): Likewise.
20739         * modules/trunc (Depends-on): Likewise.
20740         * modules/truncf (Depends-on): Likewise.
20741         * modules/truncl (Depends-on): Likewise.
20742         * modules/uname (Depends-on): Likewise.
20743         * modules/unlink (Depends-on): Likewise.
20744         * modules/unlockpt (Depends-on): Likewise.
20745         * modules/unsetenv (Depends-on): Likewise.
20746         * modules/usleep (Depends-on): Likewise.
20747         * modules/utimensat (Depends-on): Likewise.
20748         * modules/vasprintf (Depends-on): Likewise.
20749         * modules/vdprintf (Depends-on): Likewise.
20750         * modules/vdprintf-posix (Depends-on): Likewise.
20751         * modules/vfprintf-posix (Depends-on): Likewise.
20752         * modules/vprintf-posix (Depends-on): Likewise.
20753         * modules/vsnprintf (Depends-on): Likewise.
20754         * modules/vsnprintf-posix (Depends-on): Likewise.
20755         * modules/vsprintf-posix (Depends-on): Likewise.
20756         * modules/wcrtomb (Depends-on): Likewise.
20757         * modules/wcscasecmp (Depends-on): Likewise.
20758         * modules/wcscspn (Depends-on): Likewise.
20759         * modules/wcsdup (Depends-on): Likewise.
20760         * modules/wcsncasecmp (Depends-on): Likewise.
20761         * modules/wcsnrtombs (Depends-on): Likewise.
20762         * modules/wcspbrk (Depends-on): Likewise.
20763         * modules/wcsrtombs (Depends-on): Likewise.
20764         * modules/wcsspn (Depends-on): Likewise.
20765         * modules/wcsstr (Depends-on): Likewise.
20766         * modules/wcstok (Depends-on): Likewise.
20767         * modules/wcswidth (Depends-on): Likewise.
20768         * modules/wctob (Depends-on): Likewise.
20769         * modules/wctomb (Depends-on): Likewise.
20770         * modules/wctype (Depends-on): Likewise.
20771         * modules/wcwidth (Depends-on): Likewise.
20772         * modules/write (Depends-on): Likewise.
20773
20774 2011-05-03  Bruno Haible  <bruno@clisp.org>
20775
20776         Support for conditional dependencies.
20777         * doc/gnulib.texi (Module description): Document the syntax of
20778         conditional dependencies.
20779         * gnulib-tool: New option --conditional-dependencies.
20780         (func_usage): Document it.
20781         (cond_dependencies): New variable.
20782         (func_get_automake_snippet_conditional,
20783         func_get_automake_snippet_unconditional): New functions, extracted from
20784         func_get_automake_snippet.
20785         (func_get_automake_snippet): Use them.
20786         (sed_first_32_chars): New variable.
20787         (func_module_shellfunc_name): New function.
20788         (func_module_shellvar_name): New function.
20789         (func_module_conditional_name): New function.
20790         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20791         func_cond_module_condition): New functions.
20792         (func_modules_transitive_closure): Add support for conditional
20793         dependencies.
20794         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20795         conditional automake snippet in an automake conditional.
20796         (func_emit_autoconf_snippets): Emit shell functions that contain the
20797         code for conditional modules.
20798         (func_import, func_create_testdir): Update specification.
20799
20800 2011-05-03  Eric Blake  <eblake@redhat.com>
20801
20802         test-getaddrinfo: report error information
20803         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20804
20805 2011-05-03  Jim Meyering  <meyering@redhat.com>
20806
20807         bootstrap: avoid build failure when $GZIP is set
20808         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20809         program name.  If defined at all, it is supposed to list gzip options.
20810         Reported by Alan Curry in http://debbugs.gnu.org/8609
20811
20812 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20813
20814         readme-release: new module with release instructions
20815         * modules/readme-release: New module.
20816         * top/README-release: New file, from coreutils, grep, diffutils.
20817         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20818
20819 2011-05-02  Eric Blake  <eblake@redhat.com>
20820
20821         fflush: also replace fclose when fixing fflush
20822         * modules/fflush (Depends-on): Add fclose.
20823         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20824         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20825         memstreams with no backing fd.
20826         * doc/posix-functions/fclose.texi (fclose): Document the use of
20827         fflush module to fix the bug.
20828         * tests/test-fclose.c (main): Relax test when fclose is used in
20829         isolation.
20830
20831         fclose: add some tests
20832         * modules/fclose-tests: New test module.
20833         * tests/test-fclose.c: New file.
20834         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20835
20836         fclose: reduced dependencies
20837         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20838         simpler lseek.
20839         * lib/fclose.c (rpl_fclose): Likewise.
20840         Reported by Simon Josefsson.
20841
20842         exit: drop remaining clients
20843         * modules/argmatch (Depends-on): Replace exit with stdlib.
20844         * modules/copy-file (Depends-on): Likewise.
20845         * modules/execute (Depends-on): Likewise.
20846         * modules/exitfail (Depends-on): Likewise.
20847         * modules/obstack (Depends-on): Likewise.
20848         * modules/pagealign_alloc (Depends-on): Likewise.
20849         * modules/pipe-filter-gi (Depends-on): Likewise.
20850         * modules/pipe-filter-ii (Depends-on): Likewise.
20851         * modules/savewd (Depends-on): Likewise.
20852         * modules/spawn-pipe (Depends-on): Likewise.
20853         * modules/wait-process (Depends-on): Likewise.
20854         * modules/xsetenv (Depends-on): Likewise.
20855         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20856         * modules/git-merge-changelog (Depends-on): Likewise.
20857         * modules/long-options (Depends-on): Likewise.
20858         * modules/pt_chown (Depends-on): Likewise.
20859         * modules/sysexits (Depends-on): Likewise.
20860
20861         freading: relax license from LGPLv3+ to LGPLv2+
20862         * modules/freading (License): Relax LGPL version.
20863
20864 2011-05-02  Bruno Haible  <bruno@clisp.org>
20865
20866         fchdir: Remove unused dependencies.
20867         * modules/fchdir (Depends-on): Remove include_next.
20868
20869 2011-05-02  Bruno Haible  <bruno@clisp.org>
20870
20871         gnulib-tool: Refactor.
20872         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20873         from func_emit_autoconf_snippets.
20874         (func_emit_autoconf_snippets): Use it.
20875
20876 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20877
20878         * NEWS: Document removal of 'exit'.
20879         * modules/exit: Remove file.
20880
20881 2011-05-01  Bruno Haible  <bruno@clisp.org>
20882
20883         Update DEPENDENCIES.
20884         * DEPENDENCIES (gettext): Recommend the newest release.
20885         Reported by Simon Josefsson.
20886
20887 2011-05-01  Bruno Haible  <bruno@clisp.org>
20888
20889         gnulib-tool: Reduce code duplication.
20890         * gnulib-tool (func_emit_autoconf_snippets): New function.
20891         (func_import, func_create_testdir): Use it.
20892
20893 2011-04-30  Eric Blake  <eblake@redhat.com>
20894
20895         fclose: don't fail on non-seekable input stream
20896         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20897         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20898         since fflush is allowed to fail in that case.
20899
20900 2011-04-30  Bruno Haible  <bruno@clisp.org>
20901
20902         dup3: cleanup
20903         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20904
20905 2011-04-30  Bruno Haible  <bruno@clisp.org>
20906
20907         netdb: Make it work in C++ mode.
20908         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20909         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20910         module.
20911         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20912         gl_MODULE_INDICATOR_FOR_TESTS.
20913         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20914         * modules/netdb-c++-tests: New file.
20915         * tests/test-netdb-c++.cc: New file.
20916
20917 2011-04-30  Bruno Haible  <bruno@clisp.org>
20918
20919         New modules 'vfscanf', 'vscanf'.
20920         * modules/vfscanf: New file.
20921         * modules/vscanf: New file.
20922         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20923         here.
20924         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20925         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20926
20927 2011-04-30  Bruno Haible  <bruno@clisp.org>
20928
20929         passfd: Add comments.
20930         * lib/passfd.c: Add comments about platforms.
20931
20932 2011-04-30  Bruno Haible  <bruno@clisp.org>
20933
20934         sys_uio: Make <sys/uio.h> self-contained.
20935         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20936         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20937
20938 2011-04-30  Bruno Haible  <bruno@clisp.org>
20939
20940         sys_socket: Ensure 'struct iovec' definition.
20941         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20942         <sys/socket.h>.
20943         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20944
20945 2011-04-30  Bruno Haible  <bruno@clisp.org>
20946
20947         sys_uio: Protect definition of 'struct iovec'.
20948         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20949         it as a C struct.
20950
20951 2011-04-30  Bruno Haible  <bruno@clisp.org>
20952
20953         manywarnings: fix indentation
20954         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20955
20956 2011-04-30  Pádraig Brady <P@draigBrady.com>
20957
20958         manywarnings: add -Wno-missing-field-initializers if needed.
20959         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20960         option if it's needed to allow initialization with { 0, }
20961
20962 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20963
20964         announce-gen: cosmetic improvement
20965         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20966
20967 2011-04-29  Jim Meyering  <meyering@redhat.com>
20968
20969         vc-list-files: indent with spaces, not TABs
20970         * build-aux/vc-list-files: Convert leading TABs to spaces,
20971         to match the style of most other files in gnulib.
20972
20973         announce-gen: indent with spaces, not TABs
20974         * build-aux/announce-gen: Convert all TABs to spaces, to match
20975         the style of most other files in gnulib.
20976
20977 2011-04-29  Eric Blake  <eblake@redhat.com>
20978
20979         quotearg: avoid uninitialized variable use
20980         * lib/quotearg.c (quoting_options_from_style): Initialize
20981         remaining fields, and ensure that custom styles are only used via
20982         quoting_options rather than quoting_style.
20983
20984 2011-04-29  Jim Meyering  <meyering@redhat.com>
20985
20986         maint.mk: remove unused VC-tag variable
20987         * top/maint.mk (VC-tag): Remove unused variable.
20988
20989 2011-04-29  Bruno Haible  <bruno@clisp.org>
20990
20991         netdb: fix gai_strerror replacements
20992         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20993         * modules/netdb: Substitute it.
20994
20995 2011-04-29  Jim Meyering  <meyering@redhat.com>
20996
20997         test-getcwd.c: avoid new set-but-not-used warning
20998         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20999         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21000         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21001         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21002
21003         test-hash.c: avoid a new shadowing warning
21004         * tests/test-hash.c (main): Don't shadow "dup".
21005
21006 2011-04-28  Eric Blake  <eblake@redhat.com>
21007
21008         getaddrinfo: fix gai_strerror signature
21009         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21010         and work around mingw with UNICODE defined.
21011         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21012         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21013         * modules/netdb (Makefile.am): Substitute it.
21014         * lib/netdb.in.h (gai_strerror): Declare replacement.
21015         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21016         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21017         the fix.
21018
21019         getsockopt: avoid compiler warning
21020         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21021         Reported by Matthias Bolte.
21022
21023         tests: drop unused link dependency
21024         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21025         * modules/dirent-safer-tests (Makefile.am): Likewise.
21026         * modules/fdopendir-tests (Makefile.am): Likewise.
21027         * modules/mkfifoat-tests (Makefile.am): Likewise.
21028         * modules/openat-safer-tests (Makefile.am): Likewise.
21029         * modules/openat-tests (Makefile.am): Likewise.
21030         * modules/readlinkat-tests (Makefile.am): Likewise.
21031         * modules/symlinkat-tests (Makefile.am): Likewise.
21032         * modules/linkat-tests (Makefile.am): Likewise.
21033         (Depends-on): Switch to filenamecat-lgpl.
21034         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21035         LIBINTL.
21036         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21037         * tests/test-linkat.c (main): Don't require xalloc.
21038
21039         hash, mgetgroups: drop xalloc dependency
21040         * lib/hash.c (includes): Adjust includes.
21041         * lib/mgetgroups.c (includes): Likewise.
21042         (xgetgroups): Move...
21043         * lib/xgetgroups.c: ...to new file.
21044         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21045         * modules/xgetgroups: New file, split from...
21046         * modules/mgetgroups: ...here.
21047         (Depends-on): Add xalloc-oversized.
21048         * modules/hash (Depends-on): Likewise.
21049         * modules/hash-tests (Depends-on): Drop xalloc.
21050         (test_hash_LDADD): Drop unused library.
21051         * tests/test-hash.c (main): Break xalloc dependency.
21052         (includes): Drop unused include.
21053
21054         xalloc-oversized: new module
21055         * modules/xalloc-oversized: New module.
21056         * modules/xalloc (Depends-on): Add it.
21057         * lib/xalloc.h (xalloc_oversized): Move...
21058         * lib/xalloc-oversized.h: ...into new file.
21059
21060         utimecmp: drop dependency on xmalloc
21061         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21062         due to memory pressure.
21063         * modules/utimecmp (Depends-on): Drop xalloc.
21064
21065 2011-04-27  Eric Blake  <eblake@redhat.com>
21066
21067         getcwd: fix mingw bugs
21068         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21069         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21070         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21071
21072 2011-04-27  Bruno Haible  <bruno@clisp.org>
21073
21074         mkstemps: Ensure declaration on MacOS X 10.5.
21075         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21076         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21077         MacOS X.
21078
21079 2011-04-27  Bruno Haible  <bruno@clisp.org>
21080
21081         mkstemp: More documentation.
21082         * doc/posix-functions/mkstemp.texi: Document header file problem on
21083         MacOS X.
21084
21085 2011-04-27  Bruno Haible  <bruno@clisp.org>
21086
21087         mkstemp: Tweak configure message when cross-compiling.
21088         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21089         result as a guess.
21090
21091 2011-04-27  Bruno Haible  <bruno@clisp.org>
21092
21093         clean-temp: Clarify what it does.
21094         * lib/clean-temp.h: Add more comments.
21095         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21096         module.
21097         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21098         * doc/glibc-functions/mkstemps.texi: Likewise.
21099         * doc/glibc-functions/mkostemps.texi: Likewise.
21100
21101 2011-04-27  Eric Blake  <eblake@redhat.com>
21102
21103         fchdir: avoid extra chdir and fix test
21104         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21105         getcwd-lgpl.
21106         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21107         have to be canonical.
21108         (canonicalize_file_name): Drop unused macro.
21109         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21110
21111         filenamecat-lgpl: fix licence
21112         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21113         when it was first created.
21114
21115         linkat, renameat: add missing dependency
21116         * modules/linkat (Depends-on): Require getcwd-lgpl.
21117         * modules/renameat (Depends-on): Likewise.
21118
21119         tests: reduce dependencies
21120         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21121         * tests/test-renameat.c (main): Likewise.
21122         * modules/linkat-tests (Depends-on): Relax dependency.
21123         * modules/renameat-tests (Depends-on): Likewise.
21124         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21125         dependency explicit.
21126
21127         save-cwd: reduce default dependency
21128         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21129         * lib/save-cwd.c: Update comments.
21130         * NEWS: Document the semantic change.
21131
21132         getcwd: enhance tests
21133         * tests/test-getcwd-lgpl.c: New file, taken from...
21134         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21135         repeat long path stress tests from m4 probe.
21136         * modules/getcwd-lgpl-tests: New module.
21137         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21138         * m4/getcwd-abort-bug.m4: Update comment.
21139         * m4/getcwd-path-max.m4: Likewise.
21140
21141         getcwd-lgpl: new module
21142         * modules/getcwd-lgpl: New module.
21143         * lib/getcwd-lgpl.c: New file.
21144         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21145         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21146         * modules/getcwd (configure.ac): Set C witness.
21147         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21148
21149         getcwd: tweak comments
21150         * m4/getcwd-abort-bug.m4: Fix comments.
21151         * m4/getcwd-path-max.m4: Likewise.
21152         * m4/getcwd.m4: Likewise.
21153
21154 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21155         and Eric Blake  <eblake@redhat.com>
21156
21157         mkstemp: replace if system version uses wrong permissions
21158         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21159         read/write mode bits set in file created by mkstemp.
21160         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21161
21162 2011-04-27  Eric Blake  <eblake@redhat.com>
21163
21164         passfd: avoid compiler warning
21165         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21166         Reported by Laine Stump.
21167
21168 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21169
21170         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21171         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21172
21173 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21174         and Eric Blake  <eblake@redhat.com>
21175
21176         mkstemp: mention clean-temp module
21177         * lib/mkstemp.c: Add comment.
21178         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21179
21180 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21181
21182         inttypes: also provide default values for 32-bit tests
21183         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21184         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21185
21186 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21187
21188         strtoumax: remove dependency on strtoimax
21189         This is like the strtoull change of yesterday.
21190         * modules/strtoumax (Files): Add lib/strtoimax.c.
21191         (Depends-on): Remove strtoimax and add verify.
21192
21193         inttypes-incomplete: new module
21194         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21195         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21196         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21197         of gl_INTTYPES_H.
21198         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21199         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21200         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21201         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21202         * modules/strtoumax, modules/xstrtol (Depends-on):
21203         Depend on inttypes-incomplete, not inttypes.
21204         * modules/inttypes-incomplete: New module, containing the contents
21205         of the old modules/inttypes module, except that the Files: section
21206         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21207         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21208         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21209         (Depends-on): Depend only on inttypes-incomplete.
21210         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21211
21212         inttypes: omit now-redundant strtoimax and strtoumax work
21213         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21214         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21215
21216         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21217         This supports apps that need pointers to strtoimax and strtoumax,
21218         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21219         nonexistent functions.  See
21220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21221         et seq.
21222         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21223         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21224         a macro.
21225         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21226
21227 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21228
21229         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21230
21231 2011-04-25  Bruno Haible  <bruno@clisp.org>
21232
21233         strtol, strtoul: Mark modules as obsolete.
21234         * modules/strtol (Status, Notice): New sections.
21235         * modules/strtoul (Status, Notice): New sections.
21236
21237 2011-04-25  Bruno Haible  <bruno@clisp.org>
21238
21239         strtod: Remove check for strtod, unless supporting old platforms.
21240         * modules/strtod-obsolete: New file.
21241         * m4/strtod-obsolete.m4: New file.
21242         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21243         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21244         * modules/strtod (Depends-on): Add strtod-obsolete.
21245         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21246
21247 2011-04-25  Bruno Haible  <bruno@clisp.org>
21248
21249         strcase: Make module obsolete.
21250         * modules/strcase (Status, Notice): New sections.
21251
21252 2011-04-25  Bruno Haible  <bruno@clisp.org>
21253
21254         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21255         * modules/dup2-obsolete: New file.
21256         * m4/dup2-obsolete.m4: New file.
21257         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21258         gl_FUNC_DUP2_OBSOLETE is not also defined.
21259         * modules/dup2 (Depends-on): Add dup2-obsolete.
21260         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21261
21262 2011-04-25  Bruno Haible  <bruno@clisp.org>
21263
21264         strnlen: Avoid memchr related link error on old obsolete platforms.
21265         * modules/memchr-obsolete: New file.
21266         * m4/memchr-obsolete.m4: New file.
21267         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21268         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21269         * modules/memchr (Depends-on): Add memchr-obsolete.
21270         * modules/strnlen (Depends-on): Likewise.
21271         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21272
21273 2011-04-25  Jim Meyering  <meyering@redhat.com>
21274
21275         maint.mk: makefile_at_at_check extend and clean up
21276         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21277         in addition to */Makefile.am.
21278         Exempt legitimate uses of @VAR@ notation, e.g.,
21279         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21280         Remove obsolete coreutils-specific comment.
21281         Prompted by discussion here:
21282         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21283
21284 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21285
21286         strtoul: remove dependency on strtol
21287         This is so that 'configure' need not check for strtol merely because
21288         the application needs strtoul.
21289         * modules/strtoul (Files): Add lib/strtol.c.
21290         (Depends-on): Remove strtol.
21291
21292         strtoull: remove dependency on strtoul
21293         This is like the strtoll change.
21294         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21295         (Depends-on): Remove strtoul.
21296
21297         strtoll: remove dependency on strtol
21298         This is so that 'configure' need not check for strtol merely because
21299         the application needs strtoll.
21300         * modules/strtoll (Files): Add lib/strtol.c.
21301         (Depends-on): Remove strtol.
21302
21303 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21304
21305         inttypes: Move some configure check to module 'imaxdiv'.
21306         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21307         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21308         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21309
21310 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21311
21312         inttypes: Move some configure check to module 'imaxabs'.
21313         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21314         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21315         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21316
21317 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21318
21319         inttypes: Remove configure tests that are not needed since 2009-12-31.
21320         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21321         gl_cv_header_working_inttypes_h.
21322
21323 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21324
21325         * modules/strnlen (Depends-on): Remove memchr.
21326         The strnlen implementation doesn't need the memchr module's fixes; see
21327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21328
21329         strtol: remove dependency on wchar
21330         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21331         * modules/strtol (Depends-on): Remove wchar.
21332
21333 2011-04-21  Eric Blake  <eblake@redhat.com>
21334
21335         passfd: fix test regression on Linux
21336         * modules/passfd-tests (configure.ac): Correct socketpair check.
21337
21338         passfd: speed up configure and drop unused code
21339         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21340         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21341         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21342         Instead of probing at configure for unix_scm_rights_bsd44_way,
21343         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21344         check to a struct member probe.
21345         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21346         (sendfd, recvfd): Update preprocessor checks.
21347         * modules/passfd (Files): Reflect rename, and drop unused file.
21348         (Depends-on): Drop unused dependency.
21349
21350         passfd: allow compilation on mingw
21351         * modules/sys_socket (Depends-on): Add sys_uio.
21352         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21353         iovec and a minimal struct msghdr.
21354         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21355         * tests/test-sys_socket.c (main): Enhance test.
21356         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21357         guaranteed to provide what we need.
21358         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21359         * modules/passfd-tests (Depends-on): Add sys_wait.
21360         * tests/test-passfd.c (main): Skip test on mingw, for now.
21361         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21362         partial 'struct msghdr' implementation.
21363
21364         sys_uio: new module
21365         * modules/sys_uio: New module.
21366         * modules/sys_uio-tests: Likewise.
21367         * lib/sys_uio.in.h: New file.
21368         * m4/sys_uio_h.m4: Likewise.
21369         * tests/test-sys_uio.c: Likewise.
21370         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21371         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21372
21373 2011-04-20  Jim Meyering  <meyering@redhat.com>
21374
21375         useless-if-before-free: avoid false-positive
21376         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21377         disjunct so that it too requires a terminating ";".  Without that,
21378         this script would identify as useless one statement from gcc that
21379         was not:
21380           if (aligned_ptr)
21381             free (((void **) aligned_ptr) [-1]);
21382
21383 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21384
21385         doc: update users.txt.
21386         * users.txt: Add barcode.
21387
21388 2011-04-19  Bruno Haible  <bruno@clisp.org>
21389
21390         ioctl: Remove link dependency on native Windows.
21391         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21392         (gl_close_fn, gl_ioctl_fn): New types.
21393         (struct fd_hook): Renamed from struct close_hook. Change type of
21394         private_close_fn field. Add private_ioctl_fn field.
21395         (close_hook_fn): Add parameter for primary close method.
21396         (execute_close_hooks, execute_all_close_hooks): Likewise.
21397         (ioctl_hook_fn): New type.
21398         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21399         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21400         argument.
21401         (unregister_fd_hook): Renamed from unregister_close_hook.
21402         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21403         Don't include <unistd.h>.
21404         (close): Remove undef.
21405         (anchor): Update.
21406         (execute_close_hooks): Add argument for primary close method.
21407         (execute_all_close_hooks): Likewise.
21408         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21409         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21410         argument. Allow each argument to be NULL.
21411         (unregister_fd_hook): Renamed from unregister_close_hook.
21412         * lib/close.c (rpl_close): Pass 'close' function pointer to
21413         execute_all_close_hooks.
21414         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21415         (primary_ioctl): New function.
21416         (ioctl): Don't call ioctlsocket here. Instead, call
21417         execute_all_ioctl_hooks.
21418         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21419         close method.
21420         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21421         (fd_sockets_hook): Renamed from close_sockets_hook.
21422         (gl_sockets_startup, gl_sockets_cleanup): Update.
21423         * modules/fd-hook: Renamed from modules/close-hook. Update.
21424         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21425         * modules/sockets (Depends-on): Likewise.
21426         * modules/ioctl (Depends-on): Add fd-hook.
21427         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21428         GNULIB_SOCKET.
21429
21430 2011-04-19  Bruno Haible  <bruno@clisp.org>
21431
21432         Move the support of O_NONBLOCK in open() to the 'open' module.
21433         * modules/nonblocking (Depends-on): Remove 'open'.
21434         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21435         gl_cv_have_open_O_NONBLOCK.
21436         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21437         O_NONBLOCK support.
21438         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21439
21440 2011-04-17  Bruno Haible  <bruno@clisp.org>
21441
21442         pipe2: Simplify code.
21443         * lib/pipe2.c (pipe2): Reduce code duplication.
21444
21445 2011-04-17  Bruno Haible  <bruno@clisp.org>
21446
21447         nonblocking: Add comment.
21448         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21449
21450 2011-04-17  Bruno Haible  <bruno@clisp.org>
21451
21452         nonblocking: Add tests for sockets.
21453         * tests/test-nonblocking-socket.sh: New file.
21454         * tests/test-nonblocking-socket-main.c: New file.
21455         * tests/test-nonblocking-socket-child.c: New file.
21456         * tests/test-nonblocking-socket.h: New file.
21457         * tests/socket-server.h: New file.
21458         * tests/socket-client.h: New file.
21459         * modules/nonblocking-socket-tests: New file.
21460         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21461
21462 2011-04-17  Bruno Haible  <bruno@clisp.org>
21463
21464         nonblocking: Add tests for pipes.
21465         * tests/test-nonblocking-pipe.sh: New file.
21466         * tests/test-nonblocking-pipe-main.c: New file.
21467         * tests/test-nonblocking-pipe-child.c: New file.
21468         * tests/test-nonblocking-pipe.h: New file.
21469         * tests/test-nonblocking-writer.h: New file.
21470         * tests/test-nonblocking-reader.h: New file.
21471         * tests/test-nonblocking-misc.h: New file.
21472         * modules/nonblocking-pipe-tests: New file.
21473         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21474
21475 2011-04-16  Bruno Haible  <bruno@clisp.org>
21476
21477         gettext: Clarify the needed programmer actions.
21478         * modules/gettext (Notice): New field.
21479         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21480
21481 2011-04-16  Bruno Haible  <bruno@clisp.org>
21482
21483         strchrnul: Tweak last commit.
21484         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21485         bug.
21486         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21487         as in _GL_FUNCDECL_SYS.
21488         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21489         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21490
21491 2011-04-15  Eric Blake  <eblake@redhat.com>
21492
21493         strchrnul: work around cygwin bug
21494         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21495         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21497         * modules/string (Makefile.am): Substitute it.
21498         * lib/string.in.h (strchrnul): Use it.
21499
21500 2011-04-15  Bruno Haible  <bruno@clisp.org>
21501
21502         Don't require lib/stdio-write.c when only module 'stdio' is used.
21503         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21504         invocation.
21505         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21506
21507 2011-04-14  Bruno Haible  <bruno@clisp.org>
21508
21509         Support non-blocking pipe I/O in read() on native Windows.
21510         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21511         (read): New declaration.
21512         * lib/read.c: New file.
21513         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21514         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21515         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21516         vscanf): New declarations.
21517         * lib/stdio-read.c: New file.
21518         * m4/read.m4: New file.
21519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21520         REPLACE_READ.
21521         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21522         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21523         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21524         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21525         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21526         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21527         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21528         * modules/read: New file.
21529         * modules/nonblocking (Files): Add lib/stdio-read.c.
21530         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21531         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21532         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21533         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21534         * modules/pread (Depends-on): Add read.
21535         * modules/safe-read (Depends-on): Likewise.
21536         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21537         gets, scanf, vfscanf, vscanf): Verify signatures.
21538         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21539         problem with non-blocking pipes.
21540         * doc/posix-functions/fgetc.texi: Likewise.
21541         * doc/posix-functions/fgets.texi: Likewise.
21542         * doc/posix-functions/fread.texi: Likewise.
21543         * doc/posix-functions/fscanf.texi: Likewise.
21544         * doc/posix-functions/getc.texi: Likewise.
21545         * doc/posix-functions/getchar.texi: Likewise.
21546         * doc/posix-functions/gets.texi: Likewise.
21547         * doc/posix-functions/scanf.texi: Likewise.
21548         * doc/posix-functions/vfscanf.texi: Likewise.
21549         * doc/posix-functions/vscanf.texi: Likewise.
21550
21551 2011-04-14  Bruno Haible  <bruno@clisp.org>
21552
21553         Support non-blocking pipe I/O in write() on native Windows.
21554         * lib/write.c (rpl_write): Split a write request that failed merely
21555         because the byte count was larger than the pipe buffer's size.
21556         * doc/posix-functions/write.texi: Mention the problem with large byte
21557         counts.
21558
21559 2011-04-14  Bruno Haible  <bruno@clisp.org>
21560
21561         wchar: Ensure that wchar_t gets defined on uClibc.
21562         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21563         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21564
21565 2011-04-13  Bruno Haible  <bruno@clisp.org>
21566
21567         safe-write, full-read: Avoid unnecessary compilation units.
21568         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21569         (Depends-on): Remove safe-read. Add ssize_t.
21570         * modules/full-read (Files): Add lib/full-write.c.
21571         (Depends-on): Add full-write.
21572
21573 2011-04-13  Bruno Haible  <bruno@clisp.org>
21574
21575         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21576         * modules/pwrite (Depends-on): Add 'write'.
21577
21578 2011-04-13  Bruno Haible  <bruno@clisp.org>
21579
21580         Support non-blocking pipe I/O in write() on native Windows.
21581         * lib/unistd.in.h (write): Enable replacement also if
21582         GNULIB_UNISTD_H_NONBLOCKING is 1.
21583         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21584         (rpl_write): When failing to write on a non-blocking pipe, change
21585         errno from ENOSPC to EAGAIN.
21586         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21587         putchar, puts, vfprintf, vprintf): Enable replacement also if
21588         GNULIB_STDIO_H_NONBLOCKING is 1.
21589         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21590         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21591         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21592         CALL_WITH_SIGPIPE_EMULATION.
21593         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21594         * m4/nonblocking.m4: New file.
21595         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21596         for non-blocking I/O support.
21597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21598         GNULIB_UNISTD_H_NONBLOCKING.
21599         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21600         required for non-blocking I/O support.
21601         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21602         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21603         lib/stdio-write.c, m4/asm-underscore.m4.
21604         (Depends-on): Add stdio, unistd.
21605         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21606         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21607         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21608         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21609         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21610         problem with non-blocking pipes.
21611         * doc/posix-functions/fputc.texi: Likewise.
21612         * doc/posix-functions/fputs.texi: Likewise.
21613         * doc/posix-functions/fwrite.texi: Likewise.
21614         * doc/posix-functions/printf.texi: Likewise.
21615         * doc/posix-functions/putc.texi: Likewise.
21616         * doc/posix-functions/putchar.texi: Likewise.
21617         * doc/posix-functions/puts.texi: Likewise.
21618         * doc/posix-functions/vfprintf.texi: Likewise.
21619         * doc/posix-functions/vprintf.texi: Likewise.
21620         * doc/posix-functions/write.texi: Likewise.
21621
21622 2011-04-10  Jim Meyering  <meyering@redhat.com>
21623
21624         maint.mk: prohibit doubled words
21625         Detect them also when they're separated by a newline.
21626         There are 3 ways to customize it:
21627           - disable the test on a per file basis, as usual with rules using
21628             $(VC_LIST_EXCEPT)
21629           - replace the default doubled-word-selecting regexp (affects all files)
21630           - ignore a particular file-vs-doubled-word match
21631         I nearly used that last one to ignore the "is is" match in
21632         coreutils' NEWS file, since the text was "ls -is is ..."
21633         To do that, I would have added this line to cfg.mk:
21634           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21635         but it would have ignored any "is is" match in NEWS.
21636         Low probability, but still...
21637         Instead, I changed the text, slightly:
21638           -  ls -is is now consistent with ls -lis in ignoring values returned
21639           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21640         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21641         (prohibit_doubled_word_): Define.
21642         (sc_prohibit_doubled_word): New rule.
21643         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21644
21645 2011-04-10  Jim Meyering  <meyering@redhat.com>
21646
21647         maint: fix doubled-word typo in comment
21648         * m4/gethostname.m4: s/is is/it is/
21649         * m4/getdomainname.m4: Likewise.
21650
21651 2011-04-10  Jim Meyering  <meyering@redhat.com>
21652
21653         maint: remove doubled word: s/it it/it/
21654         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21655
21656 2011-04-10  Jim Meyering  <meyering@redhat.com>
21657
21658         maint.mk: remove useless semicolon and backslash
21659         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21660         semicolon and backslash.
21661
21662 2011-04-10  Bruno Haible  <bruno@clisp.org>
21663
21664         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21665         * modules/stdint-tests (Depends-on): Add wchar.
21666
21667 2011-04-10  Jim Meyering  <meyering@redhat.com>
21668
21669         maint: remove doubled words in comments, e.g., s/a a/a/
21670         * lib/strptime.c (day_of_the_week): s/the the/the/
21671         * tests/test-chown.h (test_chown): s/a a/a/
21672
21673         test-chown.h: correct a cast
21674         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21675         when the destination is a stat.st_gid.
21676
21677 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21678
21679         getaddrinfo: Fix test for sa_len member.
21680         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21681         include <sys/types.h> before <sys/socket.h>.
21682
21683 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21684
21685         maint: change "can not" to "cannot"
21686         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21687         boundaries.
21688
21689 2011-04-09  Jim Meyering  <meyering@redhat.com>
21690
21691         maint: change "a a" to "a"
21692         * tests/test-lchown.h (test_lchown): s/a a/a/
21693
21694         maint.mk: prohibit \<the the\>
21695         * top/maint.mk (sc_prohibit_the_the): New rule.
21696
21697         maint: fix "the the" in comment
21698         * lib/count-one-bits.h: s/the the/the/
21699
21700         maint: change "can not" to "cannot"
21701         But do not change the occurrences in maintain.texi or in
21702         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21703         * doc/gnulib-tool.texi: s/can not/cannot/
21704         * doc/posix-functions/accept.texi (accept): Likewise.
21705         * doc/posix-functions/socket.texi (socket): Likewise.
21706         * lib/mbrtowc.c: Likewise.
21707
21708         maint.mk: prohibit use of "can not"
21709         * top/maint.mk (sc_prohibit_can_not): New rule.
21710         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21711
21712 2011-04-09  Bruno Haible  <bruno@clisp.org>
21713
21714         careadlinkat: Guard against misuse of careadlinkatcwd.
21715         * lib/careadlinkat.c: Include <stdlib.h>.
21716         (careadlinkatcwd): Check that the fd argument is as expected.
21717
21718 2011-04-09  Bruno Haible  <bruno@clisp.org>
21719
21720         careadlinkat: Use common coding style.
21721         * lib/careadlinkat.c: Move gnulib includes after system includes.
21722
21723 2011-04-09  Bruno Haible  <bruno@clisp.org>
21724
21725         careadlinkat: Clarify specification.
21726         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21727         (careadlinkatcwd): Add comment.
21728         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21729
21730 2011-04-09  Bruno Haible  <bruno@clisp.org>
21731
21732         areadlinkat: Avoid link error on many platforms.
21733         * modules/areadlinkat (Depends-on): Add areadlink.
21734
21735 2011-04-09  Bruno Haible  <bruno@clisp.org>
21736
21737         allocator, careadlinkat: Fix double-inclusion guard.
21738         * lib/allocator.h: Fix double-inclusion guard.
21739         * lib/careadlinkat.h: Likewise.
21740
21741 2011-04-09  Bruno Haible  <bruno@clisp.org>
21742
21743         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21744         * lib/relocwrapper.c: Update dependencies hierarchy.
21745         * build-aux/install-reloc: Update list of files to be compiled.
21746         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21747         lib/allocator.[hc].
21748
21749 2011-04-08  Eric Blake  <eblake@redhat.com>
21750
21751         strftime: silence gnulib-tool warning
21752         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21753
21754 2011-04-08  Bruno Haible  <bruno@clisp.org>
21755
21756         verify: Fix syntax error with GCC 4.6 in C++ mode.
21757         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21758         (HAVE_STATIC_ASSERT): New macro.
21759         (verify_true, verify): Use 'static_assert' if it is supported and
21760         '_Static_assert' is not supported.
21761
21762 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21763
21764         allocator: New module.
21765         * modules/allocator, lib/allocator.c: New files.
21766         * lib/allocator.h (stdlib_allocator): New decl.
21767         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21768         Remove.  Do not include <stdlib.h>.
21769         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21770         * modules/careadlinkat (Files): Remove lib/allocator.h.
21771         (Depends-on): Add allocator.
21772
21773         stdlib: let modules use system malloc, realloc
21774         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21775         if !_GL_USE_STDLIB_ALLOC.
21776         (malloc, realloc): Limit this change to a smaller scope.
21777
21778         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21779         (malloc, realloc): Don't #undef; no longer needed.
21780         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21781         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21782         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21783         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21784         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21785         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21786         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21787         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21788
21789         careadlinkat: rename members to avoid problem
21790         * lib/allocator.h (struct allocator): Rename members from
21791         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21792         and realloc are #define'd.  Reported by Eric Blake in
21793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21794         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21795
21796 2011-04-08  Eric Blake  <eblake@redhat.com>
21797
21798         nonblocking: reduce dependency
21799         * tests/test-nonblocking.c: Only test sockets when in use.
21800         * modules/nonblocking-tests (Depends-on): Drop socket.
21801         (Makefile.am): Link even if sockets are not present.
21802         * modules/pipe2-tests (Makefile.am): Likewise.
21803         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21804
21805         pipe2: fix O_NONBLOCK support on mingw
21806         * modules/pipe2 (Depends-on): Add nonblocking.
21807         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21808         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21809         * tests/test-nonblocking.c (main): Likewise.
21810         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21811
21812         fcntl-h: fix O_ACCMODE on cygwin
21813         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21814         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21815
21816         pipe-filter: drop O_NONBLOCK workarounds
21817         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21818         * modules/pipe-filter-ii (Depends-on): Likewise.
21819         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21820
21821         nonblocking: provide O_NONBLOCK for mingw
21822         * modules/nonblocking (Depends-on): Add open.
21823         (configure.ac): Set new witness macro.
21824         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21825         * modules/fcntl-h (Makefile.am): Substitute it.
21826         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21827         nonblocking module is in use.
21828         * lib/nonblocking.c: Adjust portability test.
21829         * lib/open.c (open): Don't let native open see gnulib flag.
21830         * tests/test-fcntl-h.c (main): Enhance test.
21831         * tests/test-open.h (test_open): Likewise.
21832         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21833
21834         careadlinkat: fix compilation error on mingw
21835         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21836         within struct allocator.
21837
21838 2011-04-06  Eric Blake  <eblake@redhat.com>
21839
21840         binary-io: relicense under LGPLv2+
21841         * modules/binary-io (License): Relax to LGPLv2+.
21842         Requested for libvirt, and required by pipe2.
21843
21844 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21845
21846         verify: use _Static_assert if available
21847         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21848         (verify_true, verify): Use it if available.  This generates better
21849         diagnostics with GCC 4.6.0 and later.
21850
21851 2011-04-05  Bruno Haible  <bruno@clisp.org>
21852
21853         Remove leftover generated .h files after config.status changed.
21854
21855         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21856         GL_GENERATE_ALLOCA_H.
21857         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21858         GL_GENERATE_ALLOCA_H evaluates to false.
21859
21860         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21861         GL_GENERATE_ARGZ_H.
21862         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21863         evaluates to false.
21864
21865         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21866         GL_GENERATE_BYTESWAP_H.
21867         * modules/byteswap (Makefile.am): Remove byteswap.h if
21868         GL_GENERATE_BYTESWAP_H evaluates to false.
21869
21870         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21871         GL_GENERATE_ERRNO_H.
21872         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21873         evaluates to false.
21874
21875         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21876         GL_GENERATE_FLOAT_H.
21877         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21878         evaluates to false.
21879
21880         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21881         GL_GENERATE_FNMATCH_H.
21882         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21883         GL_GENERATE_FNMATCH_H evaluates to false.
21884
21885         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21886         GL_GENERATE_GLOB_H.
21887         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21888         evaluates to false.
21889
21890         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21891         automake conditional GL_GENERATE_ICONV_H.
21892         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21893         evaluates to false.
21894
21895         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21896         GL_GENERATE_NETINET_IN_H.
21897         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21898         GL_GENERATE_NETINET_IN_H evaluates to false.
21899
21900         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21901         conditional GL_GENERATE_PTHREAD_H.
21902         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21903         * modules/pthread (Makefile.am): Remove pthread.h if
21904         GL_GENERATE_PTHREAD_H evaluates to false.
21905
21906         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21907         GL_GENERATE_SCHED_H.
21908         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21909         evaluates to false.
21910
21911         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21912         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21913         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21914         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21915
21916         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21917         GL_GENERATE_STDARG_H.
21918         * modules/stdarg (Makefile.am): Remove stdarg.h if
21919         GL_GENERATE_STDARG_H evaluates to false.
21920
21921         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21922         GL_GENERATE_STDBOOL_H.
21923         * modules/stdbool (Makefile.am): Remove stdbool.h if
21924         GL_GENERATE_STDBOOL_H evaluates to false.
21925
21926         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21927         conditional GL_GENERATE_STDDEF_H.
21928         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21929         * modules/stddef (Makefile.am): Remove stddef.h if
21930         GL_GENERATE_STDDEF_H evaluates to false.
21931
21932         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21933         GL_GENERATE_STDINT_H.
21934         * modules/stdint (Makefile.am): Remove stdint.h if
21935         GL_GENERATE_STDINT_H evaluates to false.
21936
21937         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21938         GL_GENERATE_SYSEXITS_H.
21939         * modules/sysexits (Makefile.am): Remove sysexits.h if
21940         GL_GENERATE_SYSEXITS_H evaluates to false.
21941
21942         Reported by Karl Berry and Ralf Wildenhues.
21943
21944 2011-04-05  Bruno Haible  <bruno@clisp.org>
21945
21946         Ensure to rebuild generated .h files when config.status has changed.
21947         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21948         config.status.
21949         * modules/ctype (Makefile.am): Likewise.
21950         * modules/dirent (Makefile.am): Likewise.
21951         * modules/errno (Makefile.am): Likewise.
21952         * modules/fcntl-h (Makefile.am): Likewise.
21953         * modules/float (Makefile.am): Likewise.
21954         * modules/getopt-posix (Makefile.am): Likewise.
21955         * modules/glob (Makefile.am): Likewise.
21956         * modules/iconv-h (Makefile.am): Likewise.
21957         * modules/inttypes (Makefile.am): Likewise.
21958         * modules/langinfo (Makefile.am): Likewise.
21959         * modules/locale (Makefile.am): Likewise.
21960         * modules/math (Makefile.am): Likewise.
21961         * modules/netdb (Makefile.am): Likewise.
21962         * modules/netinet_in (Makefile.am): Likewise.
21963         * modules/poll-h (Makefile.am): Likewise.
21964         * modules/pthread (Makefile.am): Likewise.
21965         * modules/pty (Makefile.am): Likewise.
21966         * modules/sched (Makefile.am): Likewise.
21967         * modules/search (Makefile.am): Likewise.
21968         * modules/selinux-h (Makefile.am): Likewise.
21969         * modules/signal (Makefile.am): Likewise.
21970         * modules/spawn (Makefile.am): Likewise.
21971         * modules/stdarg (Makefile.am): Likewise.
21972         * modules/stdbool (Makefile.am): Likewise.
21973         * modules/stddef (Makefile.am): Likewise.
21974         * modules/stdint (Makefile.am): Likewise.
21975         * modules/stdio (Makefile.am): Likewise.
21976         * modules/stdlib (Makefile.am): Likewise.
21977         * modules/string (Makefile.am): Likewise.
21978         * modules/strings (Makefile.am): Likewise.
21979         * modules/sys_file (Makefile.am): Likewise.
21980         * modules/sys_ioctl (Makefile.am): Likewise.
21981         * modules/sys_select (Makefile.am): Likewise.
21982         * modules/sys_socket (Makefile.am): Likewise.
21983         * modules/sys_stat (Makefile.am): Likewise.
21984         * modules/sys_time (Makefile.am): Likewise.
21985         * modules/sys_times (Makefile.am): Likewise.
21986         * modules/sys_utsname (Makefile.am): Likewise.
21987         * modules/sys_wait (Makefile.am): Likewise.
21988         * modules/sysexits (Makefile.am): Likewise.
21989         * modules/termios (Makefile.am): Likewise.
21990         * modules/time (Makefile.am): Likewise.
21991         * modules/unistd (Makefile.am): Likewise.
21992         * modules/wchar (Makefile.am): Likewise.
21993         * modules/wctype-h (Makefile.am): Likewise.
21994         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21995
21996 2011-04-05  Bruno Haible  <bruno@clisp.org>
21997
21998         pipe2: Relicense under LGPLv2+.
21999         * modules/pipe2 (License): Change to LGPLv2+.
22000         Requested by Eric Blake, for libvirt.
22001
22002 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22003
22004         bootstrap: compute gnulib_extra_files after updating build_aux
22005         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22006         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22007
22008 2011-04-05  Eric Blake  <eblake@redhat.com>
22009
22010         bootstrap: preserve git whitelist item sorting
22011         * build-aux/bootstrap (sort_patterns): New function.
22012         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22013
22014 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22015
22016         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22017         sc_space_tab check.
22018
22019 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22020
22021         areadlink, areadlinkat: rewrite in terms of careadlinkat
22022         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22023         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22024         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22025         (malloc, realloc): Remove #undefs.
22026         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22027         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22028         readlink, ssize_t, stdint, unistd.
22029         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22030         areadlink, stdint.
22031
22032         careadlinkat: new module
22033         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22034         * modules/careadlinkat: New files, written by me with
22035         a review and feedback from Ben Pfaff in
22036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22037
22038 2011-04-01  Bruno Haible  <bruno@clisp.org>
22039
22040         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22041         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22042         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22043         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22044         Reported by Bruce Korb <bruce.korb@gmail.com>.
22045
22046 2011-04-01  Bruno Haible  <bruno@clisp.org>
22047
22048         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22049         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22050         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22051         * modules/wcpcpy (Depends-on): Add extensions.
22052         * modules/wcpncpy (Depends-on): Likewise.
22053         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22054         systems.
22055         * doc/posix-functions/wcpncpy.texi: Likewise.
22056         * doc/posix-functions/wcwidth.texi: Likewise.
22057
22058 2011-03-31  Eric Blake  <eblake@redhat.com>
22059
22060         nonblocking: fix mingw test failures
22061         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22062         non-blocking flag on regular file.
22063         (get_nonblocking_flag): Set errno on invalid fd.
22064         * tests/test-nonblocking.c (main): Avoid test failure on
22065         directories if fchdir is not active.
22066         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22067
22068 2011-03-31  Bruno Haible  <bruno@clisp.org>
22069
22070         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22071         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22072         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22073         Reported by Simon Josefsson <simon@josefsson.org>.
22074
22075 2011-03-31  Bruno Haible  <bruno@clisp.org>
22076         and Eric Blake  <eblake@redhat.com>
22077
22078         nonblocking: new module
22079         * modules/nonblocking: New module.
22080         * modules/nonblocking-tests: Likewise.
22081         * lib/nonblocking.h: New file.
22082         * lib/nonblocking.c: Likewise.
22083         * tests/test-nonblocking.c: New test.
22084         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22085
22086 2011-03-30  Bruno Haible  <bruno@clisp.org>
22087
22088         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22089         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22090         instead of 'printf' format for GCC >= 4.4.
22091         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22092         (fprintf, printf, vfprintf, vprintf): Declare with
22093         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22094         the system's vfprintf() function.
22095         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22096
22097 2011-03-30  Eric Blake  <eblake@redhat.com>
22098
22099         passfd: fix scoping bug
22100         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22101         before sendmsg/recvmsg.
22102
22103         passfd: standardize coding conventions
22104         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22105         can be learned at compile time.
22106         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22107         ifdefs.
22108         (sendfd, recvfd): Follow gnulib code conventions.
22109
22110         passfd: fix incorrect sendmsg arguments
22111         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22112         incorrect msg_controllen value.
22113         * modules/passfd-tests (Depends-on): Check for alarm.
22114         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22115         Reported by Bastien ROUCARIES.
22116
22117 2011-03-30  Bruno Haible  <bruno@clisp.org>
22118
22119         c-strcasestr: Relicense under LGPLv2+.
22120         * modules/c-strcasestr (License): Change to LGPLv2+.
22121         Requested by Eric Blake, for libvirt.
22122
22123 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22124
22125         * users.txt: Add libidn2.  Fix libtasn1 link.
22126
22127 2011-03-30  Jim Meyering  <meyering@redhat.com>
22128
22129         tests: readlink* ("",... fails with EINVAL on newer kernels
22130         readlink and readlinkat have typically failed with ENOENT for
22131         the invalid, empty file name,  "".  However, with the advent
22132         of linux-2.6.39, they fail with EINVAL.
22133         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22134         when operating on the empty file name.
22135         * tests/test-readlink.h (test_readlink): Likewise.
22136
22137 2011-03-29  Bruno Haible  <bruno@clisp.org>
22138
22139         Relicense some modules under LGPLv2+, for libidn2.
22140         * modules/array-mergesort (License): Change to LGPLv2+.
22141         * modules/c-strcaseeq (License): Likewise.
22142         * modules/striconveh (License): Likewise.
22143         * modules/striconveha (License): Likewise.
22144         * modules/uniconv/base (License): Likewise.
22145         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22146         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22147         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22148         * modules/unictype/base (License): Likewise.
22149         * modules/unictype/bidiclass-of (License): Likewise.
22150         * modules/unictype/category-M (License): Likewise.
22151         * modules/unictype/category-none (License): Likewise.
22152         * modules/unictype/category-of (License): Likewise.
22153         * modules/unictype/category-test (License): Likewise.
22154         * modules/unictype/category-test-withtable (License): Likewise.
22155         * modules/unictype/combining-class (License): Likewise.
22156         * modules/unictype/joiningtype-of (License): Likewise.
22157         * modules/unictype/scripts (License): Likewise.
22158         * modules/uninorm/base (License): Likewise.
22159         * modules/uninorm/canonical-decomposition (License): Likewise.
22160         * modules/uninorm/composition (License): Likewise.
22161         * modules/uninorm/decompose-internal (License): Likewise.
22162         * modules/uninorm/decomposition-table (License): Likewise.
22163         * modules/uninorm/nfc (License): Likewise.
22164         * modules/uninorm/nfd (License): Likewise.
22165         * modules/uninorm/u32-normalize (License): Likewise.
22166         * modules/unistr/base (License): Likewise.
22167         * modules/unistr/u32-cpy (License): Likewise.
22168         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22169         * modules/unistr/u32-to-u8 (License): Likewise.
22170         * modules/unistr/u32-uctomb (License): Likewise.
22171         * modules/unistr/u8-check (License): Likewise.
22172         * modules/unistr/u8-mblen (License): Likewise.
22173         * modules/unistr/u8-mbtouc (License): Likewise.
22174         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22175         * modules/unistr/u8-mbtoucr (License): Likewise.
22176         * modules/unistr/u8-prev (License): Likewise.
22177         * modules/unistr/u8-strlen (License): Likewise.
22178         * modules/unistr/u8-to-u32 (License): Likewise.
22179         * modules/unistr/u8-uctomb (License): Likewise.
22180         * modules/unitypes (License): Likewise.
22181         Requested by Simon Josefsson.
22182
22183 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22184
22185         lib-symbol-visibility: Add a notice.
22186         * modules/lib-symbol-visibility (Notice): New field.
22187
22188 2011-03-29  Bruno Haible  <bruno@clisp.org>
22189
22190         getaddrinfo: Doc fix.
22191         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22192         section "fixed in Gnulib".
22193
22194 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22195
22196         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22197         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22198
22199 2011-03-26  Bruno Haible  <bruno@clisp.org>
22200
22201         unictype/property-byname: Reduce the number of load-time relocations.
22202         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22203         (UC_PROPERTY_INDEX_*): New enumeration values.
22204         (uc_property_byname): Convert an index from the lookup table to an
22205         uc_property_t.
22206         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22207         values.
22208
22209 2011-03-26  Bruno Haible  <bruno@clisp.org>
22210
22211         unictype/property-byname: Allow omitted word separators and aliases.
22212         * lib/unictype/pr_byname.gperf: Add property names without word
22213         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22214         for 'space'.
22215
22216 2011-03-26  Bruno Haible  <bruno@clisp.org>
22217
22218         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22219         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22220         also hyphens to space.
22221         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22222         without spaces.
22223         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22224
22225 2011-03-26  Bruno Haible  <bruno@clisp.org>
22226
22227         unictype/joiningtype-byname: Recognize long names as well.
22228         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22229         a long name.
22230         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22231         unictype/joiningtype_byname.h.
22232         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22233         * lib/unictype/joiningtype_byname.gperf: New file.
22234         * modules/unictype/joiningtype-byname (Files): Add
22235         lib/unictype/joiningtype_byname.gperf.
22236         (Depends-on): Add gperf.
22237         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22238         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22239         long names.
22240
22241         Tests for module 'unictype/joiningtype-longname'.
22242         * modules/unictype/joiningtype-longname-tests: New file.
22243         * tests/unictype/test-joiningtype_longname.c: New file.
22244
22245         New module 'unictype/joiningtype-longname'.
22246         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22247         * lib/unictype/joiningtype_longname.c: New file.
22248         * modules/unictype/joiningtype-longname: New file.
22249         * modules/unictype/joiningtype-all (Depends-on): Add
22250         unictype/joiningtype-longname.
22251
22252 2011-03-26  Bruno Haible  <bruno@clisp.org>
22253
22254         unictype/bidiclass-byname: Recognize long names as well.
22255         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22256         name.
22257         * lib/unictype/bidi_byname.c: Include <string.h>,
22258         unictype/bidi_byname.h.
22259         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22260         * lib/unictype/bidi_byname.gperf: New file.
22261         * modules/unictype/bidiclass-byname (Files): Add
22262         lib/unictype/bidi_byname.gperf.
22263         (Depends-on): Add gperf.
22264         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22265         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22266         long names.
22267
22268         Tests for module 'unictype/bidiclass-longname'.
22269         * modules/unictype/bidiclass-longname-tests: New file.
22270         * tests/unictype/test-bidi_longname.c: New file.
22271
22272         New module 'unictype/bidiclass-longname'.
22273         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22274         * lib/unictype/bidi_longname.c: New file.
22275         * modules/unictype/bidiclass-longname: New file.
22276         * modules/unictype/bidiclass-all (Depends-on): Add
22277         unictype/bidiclass-longname.
22278
22279 2011-03-26  Bruno Haible  <bruno@clisp.org>
22280
22281         unictype/bidi*: Rename modules.
22282         * modules/unictype/bidiclass-all: Renamed from
22283         modules/unictype/bidicategory-all.
22284         * modules/unictype/bidiclass-name: Renamed from
22285         modules/unictype/bidiclass-name.
22286         (Description): Update.
22287         * modules/unictype/bidiclass-name-tests: Renamed from
22288         modules/unictype/bidicategory-name-tests.
22289         * modules/unictype/bidiclass-byname: Renamed from
22290         modules/unictype/bidicategory-byname.
22291         (Description): Update.
22292         * modules/unictype/bidiclass-byname-tests: Renamed from
22293         modules/unictype/bidicategory-byname-tests.
22294         * modules/unictype/bidiclass-of: Renamed from
22295         modules/unictype/bidicategory-of.
22296         (Description): Update.
22297         * modules/unictype/bidiclass-of-tests: Renamed from
22298         modules/unictype/bidicategory-of-tests.
22299         * modules/unictype/bidiclass-test: Renamed from
22300         modules/unictype/bidicategory-test.
22301         (Description): Update.
22302         * modules/unictype/bidiclass-test-tests: Renamed from
22303         modules/unictype/bidicategory-test-tests.
22304         * modules/unictype/bidicategory-all: New file, a simple redirection.
22305         * modules/unictype/bidicategory-name: Likewise.
22306         * modules/unictype/bidicategory-byname: Likewise.
22307         * modules/unictype/bidicategory-of: Likewise.
22308         * modules/unictype/bidicategory-test: Likewise.
22309         * modules/unictype/property-bidi-* (Dependencies): Update.
22310         * lib/unictype/bidi_*.c: Update comment.
22311
22312 2011-03-26  Bruno Haible  <bruno@clisp.org>
22313
22314         unictype/bidi*: Rename functions, part 2.
22315         * modules/unictype/bidicategory-name (configure.ac): Update required
22316         libunistring version.
22317         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22318
22319 2011-03-25  Bruno Haible  <bruno@clisp.org>
22320
22321         New module 'unictype/combining-class-all'.
22322         * modules/unictype/combining-class-all: New file.
22323
22324         Tests for module 'unictype/combining-class-byname'.
22325         * modules/unictype/combining-class-byname-tests: New file.
22326         * tests/unictype/test-combiningclass_byname.c: New file.
22327
22328         New module 'unictype/combining-class-byname'.
22329         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22330         * lib/unictype/combiningclass_byname.c: New file.
22331         * lib/unictype/combiningclass_byname.gperf: New file.
22332         * modules/unictype/combining-class-byname: New file.
22333
22334         Tests for module 'unictype/combining-class-longname'.
22335         * modules/unictype/combining-class-longname-tests: New file.
22336         * tests/unictype/test-combiningclass_longname.c: New file.
22337
22338         New module 'unictype/combining-class-longname'.
22339         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22340         * lib/unictype/combiningclass_longname.c: New file.
22341         * modules/unictype/combining-class-longname: New file.
22342
22343         Tests for module 'unictype/combining-class-name'.
22344         * modules/unictype/combining-class-name-tests: New file.
22345         * tests/unictype/test-combiningclass_name.c: New file.
22346
22347         New module 'unictype/combining-class-name'.
22348         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22349         * lib/unictype/combiningclass_name.c: New file.
22350         * modules/unictype/combining-class-name: New file.
22351
22352 2011-03-25  Bruno Haible  <bruno@clisp.org>
22353
22354         unictype/combining-class: Rename source files.
22355         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22356         of unictype/combining.h.
22357         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22358         Update.
22359         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22360         * modules/unictype/combining-class (Description): Fix.
22361         (Files, Makefile.am): Update.
22362         * tests/unictype/test-combiningclass.c: Renamed from
22363         tests/unictype/test-combining.c.
22364         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22365
22366 2011-03-25  Bruno Haible  <bruno@clisp.org>
22367
22368         unictype: Update list of canonical combining classes.
22369         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22370
22371 2011-03-25  Bruno Haible  <bruno@clisp.org>
22372
22373         unictype/category-byname: Recognize long names as well.
22374         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22375         a long name.
22376         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22377         unictype/categ_byname.h.
22378         (UC_CATEGORY_INDEX_*): New enumeration values.
22379         (uc_general_category_byname): Use uc_general_category_lookup and
22380         convert from index to value.
22381         * lib/unictype/categ_byname.gperf: New file.
22382         * modules/unictype/category-byname (Files): Add
22383         lib/unictype/categ_byname.gperf.
22384         (Depends-on): Add gperf.
22385         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22386         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22387         long names.
22388
22389         Tests for module 'unictype/category-longname'.
22390         * modules/unictype/category-longname-tests: New file.
22391         * tests/unictype/test-categ_longname.c: New file.
22392
22393         New module 'unictype/category-longname'.
22394         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22395         * lib/unictype/categ_longname.c: New file.
22396         * modules/unictype/category-longname: New file.
22397         * modules/unictype/category-all (Depends-on): Add it.
22398
22399 2011-03-25  Bruno Haible  <bruno@clisp.org>
22400
22401         Tests for module 'unictype/category-LC'.
22402         * modules/unictype/category-LC-tests: New file.
22403         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22404
22405         New module 'unictype/category-LC'.
22406         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22407         (UC_CATEGORY_LC): New declaration.
22408         (UC_CASED_LETTER): New macro.
22409         * lib/gen-uni-tables.c (is_category_LC): New function.
22410         (output_categories): Also handle category LC.
22411         (UC_CATEGORY_MASK_LC): New enumeration value.
22412         (general_category_byname): Also handle category LC.
22413         * lib/unictype/categ_LC.c: New file.
22414         * lib/unictype/categ_LC.h: New file, automatically generated.
22415         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22416         category LC.
22417         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22418         * modules/unictype/category-LC: New file.
22419         * modules/unictype/category-byname (Depends-on): Add
22420         unictype/category-LC.
22421         * modules/unictype/category-all (Depends-on): Likewise.
22422
22423 2011-03-25  Eric Blake  <eblake@redhat.com>
22424
22425         xmalloc: revert yesterday's regression
22426         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22427         realloc's underlying behavior (allowing allocation of zero-size
22428         objects, especially if malloc-gnu is also in use).
22429
22430 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22431
22432         maint.mk: add missing version to VC-tag
22433         * top/maint.mk: git tag was missing actual tag name; add it.
22434
22435         valgrind: do leak checking, and exit with code 1 on error (not 0)
22436         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22437         to VALGRIND.
22438
22439 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22440
22441         posix-modules: say what it does.
22442         * posix-modules: Add a line to the --help output saying what it does.
22443
22444 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22445
22446         xmalloc: Do not leak if underlying realloc is C99 compatible.
22447         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22448         This avoids a leak on C99-based systems.  See
22449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22450
22451 2011-03-24  Eric Blake  <eblake@redhat.com>
22452
22453         realloc: document portability problem
22454         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22455         passing 0 size to realloc.
22456
22457 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22458
22459         doc: update users.txt
22460         * users.txt: Add cvsps, tmpwatch
22461
22462 2011-03-23  Matt Rice  <ratmice@gmail.com>
22463
22464         doc: update users.txt
22465         * users.txt: Add gdb.
22466
22467 2011-03-23  Jim Meyering  <meyering@redhat.com>
22468
22469         doc: update users.txt
22470         Looking through matches up to the following URL (there are still
22471         several more pages), I found several projects that use gnulib:
22472         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22473         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22474         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22475
22476 2011-03-22  Bruno Haible  <bruno@clisp.org>
22477
22478         unictype/bidi*: Rename functions.
22479         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22480         uc_bidi_class, uc_is_bidi_class): New declarations.
22481         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22482         uc_bidi_category_byname.
22483         (uc_bidi_category_byname): New function.
22484         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22485         u_bidi_category_name.
22486         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22487         (uc_bidi_category_name): New function.
22488         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22489         uc_bidi_category.
22490         (uc_bidi_category): New function.
22491         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22492         uc_is_bidi_category. Invoke uc_bidi_class.
22493         (uc_is_bidi_category): New function.
22494         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22495         instead of uc_bidi_category_byname.
22496         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22497         instead of uc_bidi_category_name.
22498         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22499         uc_bidi_category.
22500         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22501         instead of uc_is_bidi_category.
22502
22503 2011-03-21  Bruno Haible  <bruno@clisp.org>
22504
22505         New module 'unictype/joininggroup-all'.
22506         * modules/unictype/joininggroup-all: New file.
22507
22508         Tests for module 'unictype/joininggroup-of'.
22509         * modules/unictype/joininggroup-of-tests: New file.
22510         * tests/unictype/test-joininggroup_of.c: New file.
22511         * tests/unictype/test-joininggroup_of.h: New file, automatically
22512         generated by gen-uni-tables.
22513
22514         New module 'unictype/joininggroup-of'.
22515         * modules/unictype/joininggroup-of: New file.
22516         * lib/unictype/joininggroup_of.c: New file.
22517         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22518         gen-uni-tables.
22519
22520         Tests for module 'unictype/joininggroup-byname'.
22521         * modules/unictype/joininggroup-byname-tests: New file.
22522         * tests/unictype/test-joininggroup_byname.c: New file.
22523
22524         New module 'unictype/joininggroup-byname'.
22525         * modules/unictype/joininggroup-byname: New file.
22526         * lib/unictype/joininggroup_byname.c: New file.
22527         * lib/unictype/joininggroup_byname.gperf: New file.
22528
22529         Tests for module 'unictype/joininggroup-name'.
22530         * modules/unictype/joininggroup-name-tests: New file.
22531         * tests/unictype/test-joininggroup_name.c: New file.
22532
22533         New module 'unictype/joininggroup-name'.
22534         * modules/unictype/joininggroup-name: New file.
22535         * lib/unictype/joininggroup_name.c: New file.
22536         * lib/unictype/joininggroup_name.h: New file.
22537
22538         New module 'unictype/joiningtype-all'.
22539         * modules/unictype/joiningtype-all: New file.
22540
22541         Tests for module 'unictype/joiningtype-of'.
22542         * modules/unictype/joiningtype-of-tests: New file.
22543         * tests/unictype/test-joiningtype_of.c: New file.
22544         * tests/unictype/test-joiningtype_of.h: New file, automatically
22545         generated by gen-uni-tables.
22546
22547         New module 'unictype/joiningtype-of'.
22548         * modules/unictype/joiningtype-of: New file.
22549         * lib/unictype/joiningtype_of.c: New file.
22550         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22551         gen-uni-tables.
22552
22553         Tests for module 'unictype/joiningtype-byname'.
22554         * modules/unictype/joiningtype-byname-tests: New file.
22555         * tests/unictype/test-joiningtype_byname.c: New file.
22556
22557         New module 'unictype/joiningtype-byname'.
22558         * modules/unictype/joiningtype-byname: New file.
22559         * lib/unictype/joiningtype_byname.c: New file.
22560
22561         Tests for module 'unictype/joiningtype-name'.
22562         * modules/unictype/joiningtype-name-tests: New file.
22563         * tests/unictype/test-joiningtype_name.c: New file.
22564
22565         New module 'unictype/joiningtype-name'.
22566         * modules/unictype/joiningtype-name: New file.
22567         * lib/unictype/joiningtype_name.c: New file.
22568
22569         unictype: Add support for Arabic shaping properties.
22570         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22571         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22572         declarations.
22573         (UC_JOINING_GROUP_*): New enumeration values.
22574         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22575         declarations.
22576         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22577         (unicode_joining_type): New variable.
22578         (UC_JOINING_GROUP_*): New enumeration values.
22579         (unicode_joining_group): New variable.
22580         (fill_arabicshaping, joining_type_as_c_identifier,
22581         output_joining_type_test, output_joining_type,
22582         joining_group_as_c_identifier, output_joining_group_test,
22583         output_joining_group): New functions.
22584         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22585         fill_arabicshaping and output_joining_type_test, output_joining_type,
22586         output_joining_group_test, output_joining_group.
22587         Reported by Simon Josefsson.
22588
22589 2011-03-21  Jim Meyering  <meyering@redhat.com>
22590
22591         strftime: fix a bug in yesterday's change
22592         * lib/strftime.c (add): Accommodate width's initial value of -1.
22593         Otherwise, nstrftime would copy uninitialized data into
22594         the result buffer.
22595
22596 2011-03-21  Jim Meyering  <meyering@redhat.com>
22597
22598         tests: add strftime-tests module
22599         * tests/test-strftime.c: New file.
22600         * modules/strftime-tests: New module.
22601
22602 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22603
22604         strftime: don't assume a byte count fits in 'int'
22605         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22606         found this problem by static analysis, using gcc -Wstrict-overflow
22607         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22608         on an integer overflow having undefined behavior, but it turns out
22609         that the argument is a size, which might not fit in 'int' anyway,
22610
22611 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22612
22613         stdio: don't require ignore_value around fwrite
22614
22615         This patch works around libc bug 11959
22616         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22617         Without this patch, applications must often write
22618         ignore_value (fwrite (...)) even though the ignore_value is
22619         not helpful here.  It's common to write many objects, using
22620         fwrite/printf/etc., and then use ferror to detect output error.
22621
22622         I considered making this patch optional, but decided against it,
22623         because libc is obviously being inconsistent here: there is no
22624         reason libc should insist that user code must inspect fwrite
22625         return's value without also insisting that it inspect printf's,
22626         putchar's, etc.  If user code wants to have a strict style where
22627         all these functions' values are checked (so that ferror need not
22628         be checked), we could add support for that style in a new gnulib
22629         module, but in the meantime it's better to be consistent and to
22630         support common usage.
22631
22632         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22633         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22634         that we are compiling in checking mode, and if not C++, and
22635         if not already wrapping fwrite for some other reason.
22636         (fwrite): #define to rpl_fwrite if the latter is defined.
22637
22638 2011-03-20  Bruno Haible  <bruno@clisp.org>
22639
22640         verror: Fix compilation error introduced on 2011-02-13.
22641         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22642         instead of __attribute__.
22643         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22644
22645 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22646             Bruno Haible  <bruno@clisp.org>
22647
22648         socklen: do not depend on sys_socket
22649         While trying to modify Emacs to use gnulib's socklen module,
22650         I discovered a circular dependency: socklen depends on sys_socket
22651         and vice versa.  Emacs can use socklen, but it does not need
22652         sys_socket because it has its own substitute for sys/socket.h.
22653         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22654         gl_TYPE_SOCKLEN_T.
22655         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22656         gl_PREREQ_SYS_H_SOCKET.
22657         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22658         gl_PREREQ_SYS_H_SOCKET.
22659         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22660         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22661         * modules/socklen (Depends-on): Do not depend on sys_socket.
22662         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22663
22664 2011-03-20  Jim Meyering  <meyering@redhat.com>
22665
22666         maint.mk: sort file names *after* new transformation
22667         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22668         prefix would have led to an unwarranted failure in GNU parted.
22669         Sort after that transformation.
22670
22671 2011-03-19  Jim Meyering  <meyering@redhat.com>
22672
22673         maint.mk: fix po-file syntax-check rule
22674         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22675         Patch by Bruno Haible.
22676
22677 2011-03-19  Bruno Haible  <bruno@clisp.org>
22678
22679         socklen: Update comment.
22680         * m4/socklen.m4: Update comment about platforms.
22681
22682 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22683             Bruno Haible  <bruno@clisp.org>
22684
22685         inet_ntop, inet_pton: Simplify.
22686         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22687         documented to provide socklen_t and we already depend on sys_socket.
22688         * modules/inet_pton (Depends-on): Likewise.
22689         * lib/arpa_inet.in.h: Adjust comment.
22690
22691 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22692             Bruno Haible  <bruno@clisp.org>
22693
22694         netdb: Simplify.
22695         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22696         documented to provide socklen_t and we already depend on sys_socket.
22697         * lib/netdb.in.h: Adjust comment.
22698
22699 2011-03-19  Bruno Haible  <bruno@clisp.org>
22700
22701         sys_socket, netdb: Document problem with socklen_t.
22702         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22703         platforms.
22704         * doc/posix-headers/netdb.texi: Likewise.
22705
22706 2011-03-18  Eric Blake  <eblake@redhat.com>
22707
22708         maint.mk: let po check work in VPATH build
22709         * top/maint.mk (po_file): Allow cfg.mk override.
22710         (sc_po_check): Allow VPATH use.
22711         Reported by Jiri Denemark.
22712
22713 2011-03-16  Jim Meyering  <meyering@redhat.com>
22714
22715         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22716         Before, you would have had to create one .x-sc_ file per rule in order
22717         to exempt offending files.  Now, you may instead use a Make variable --
22718         usually defined in cfg.mk -- whose name identifies the affected rule.
22719         * top/maint.mk (_sc_excl): Define.
22720         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22721         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22722
22723 2011-03-13  Bruno Haible  <bruno@clisp.org>
22724
22725         ignore-value tests: Avoid warnings.
22726         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22727         empty for gcc < 3.4.
22728
22729 2011-03-13  Bruno Haible  <bruno@clisp.org>
22730
22731         passfd: Fix link error on Solaris.
22732         * modules/passfd (Description): Correct.
22733         (Depends-on): Add socketlib.
22734         (Link): New section.
22735         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22736
22737 2011-03-13  Bruno Haible  <bruno@clisp.org>
22738
22739         passfd: Fix link error on AIX 5.2.
22740         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22741
22742 2011-03-13  Bruno Haible  <bruno@clisp.org>
22743
22744         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22745         * lib/sys_socket.in.h: Include <stddef.h>.
22746         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22747         CMSG_FIRSTHDR. Remove unused variable.
22748
22749 2011-03-13  Bruno Haible  <bruno@clisp.org>
22750
22751         passfd: Fix compilation error on OpenBSD.
22752         * lib/passfd.c: Include <sys/uio.h>.
22753
22754 2011-03-13  Bruno Haible  <bruno@clisp.org>
22755
22756         passfd test: Fix warnings.
22757         * tests/test-passfd.c: Include <sys/wait.h>.
22758         (main): Fix typo.
22759
22760 2011-03-13  Bruno Haible  <bruno@clisp.org>
22761
22762         passfd module, part 4, tweaks.
22763         * tests/test-passfd.c: Reorder includes.
22764         (main): Fix perror and printf calls.
22765
22766 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22767
22768         passfd module, part 4.
22769         * modules/passfd-tests: New file.
22770         * tests/test-passfd.c: New file.
22771
22772 2011-03-13  Jim Meyering  <meyering@redhat.com>
22773
22774         Makefile: rely on GNU make; derive syntax-check rule names
22775         Rather than requiring that each sc_ rule be listed as a dependent
22776         of "check", use features of GNU make to derive the list.
22777         * Makefile (syntax-check-rules): Define.
22778         (check): Depend on the new variable, not the hard-coded list.
22779
22780 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22781             Bruno Haible  <bruno@clisp.org>
22782
22783         passfd module, part 3.
22784         * lib/passfd.h (recvfd): Add a flags argument.
22785         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22786         (recvfd): Add a flags argument.
22787         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22788         exists.
22789         * modules/passfd (Depends-on): Add cloexec.
22790         Suggested by Eric Blake.
22791
22792 2011-03-13  Bruno Haible  <bruno@clisp.org>
22793
22794         passfd module, part 2, tweaks.
22795         * modules/passfd (Files): Reorder.
22796         (Depends-on): Remove errno.
22797         (Include): Remove <sys/socket.h>, <sys/un.h>.
22798         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22799         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22800         specification header. Include <sys/socket.h> always. Don't include
22801         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22802         (sendfd): Clarify that it sets errno when it fails.
22803         (recvfd): Fix specification.
22804
22805 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22806
22807         passfd module, part 2.
22808         * modules/passfd: New file.
22809         * lib/passfd.h: New file.
22810         * lib/passfd.c: New file.
22811
22812 2011-03-12  Bruno Haible  <bruno@clisp.org>
22813
22814         wcswidth, mbswidth: Avoid integer overflow.
22815         * lib/wcswidth.c: Include <limits.h>.
22816         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22817         * lib/mbswidth.c: Include <limits.h>.
22818         (mbsnwidth): Avoid 'int' overflow.
22819         Reported by Jim Meyering.
22820
22821 2011-03-12  Bruno Haible  <bruno@clisp.org>
22822
22823         futimens, utimensat: Avoid endless recursion on Solaris 10.
22824         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22825         Solaris.
22826         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22827         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22828
22829 2011-03-11  Jim Meyering  <meyering@redhat.com>
22830
22831         maint.mk: relax a regexp to accommodate other formatting styles
22832         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22833         between "ngettext" and the following "(".
22834
22835 2011-03-11  Pádraig Brady <P@draigBrady.com>
22836
22837         maint.mk: suppress a false positive warning
22838         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22839         diagnostics are marked with ngettext.
22840
22841 2011-03-10  Eric Blake  <eblake@redhat.com>
22842
22843         wchar: add explicit dependencies, for Tru64
22844         * modules/mbmemcasecoll (Depends-on): Add wchar.
22845         * modules/mbtowc (Depends-on): Likewise.
22846         * modules/vasnprintf (Depends-on): Likewise.
22847         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22848         * modules/wctomb (Depends-on): Likewise.
22849         Reported by Peter O'Gorman.
22850
22851 2011-03-08  Bruno Haible  <bruno@clisp.org>
22852
22853         passfd module, part 1, tweaks.
22854         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22855         Improve indentation. Improve AC_MSG_CHECKING messages.
22856         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22857         gl_SOCKET_FAMILIES.
22858
22859 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22860
22861         passfd module, part 1.
22862         * m4/afunix.m4: New file.
22863         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22864         sockets.
22865
22866 2011-03-08  Bruno Haible  <bruno@clisp.org>
22867
22868         regex-quote: New API.
22869         * lib/regex-quote.h: Include <stdbool.h>.
22870         (struct regex_quote_spec): New type.
22871         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22872         New declarations.
22873         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22874         'const struct regex_quote_spec *' argument.
22875         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22876         (pcre_special): New constant.
22877         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22878         New functions.
22879         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22880         'const struct regex_quote_spec *' argument.
22881         * modules/regex-quote (Depends-on): Add stdbool.
22882         * tests/test-regex-quote.c (check): Update for new API. Add test for
22883         anchored results.
22884         * NEWS: Mention the API change.
22885         Reported by Reuben Thomas and Eric Blake.
22886
22887 2011-03-06  Bruno Haible  <bruno@clisp.org>
22888
22889         regex-quote: Fix creation of POSIX extended regular expressions.
22890         * lib/regex-quote.c (ere_special): Add grouping and alternation
22891         operators.
22892
22893 2011-03-05  Bruno Haible  <bruno@clisp.org>
22894
22895         doc: Improve doc regarding autopoint vs. gnulib.
22896         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22897         disable autopoint while running autoreconf.
22898         Suggested by Ralf Wildenhues.
22899
22900 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22901
22902         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22903         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22904
22905 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22906
22907         parse-duration: remove xalloc.h dependency
22908         * lib/parse-duration.c (parse_period): handle NULL return from
22909         strdup instead of calling xstrdup().
22910         * modules/parse-duration: remove "xalloc" dependency
22911
22912 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22913
22914         bootstrap: honor m4_base when running aclocal
22915         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22916
22917 2011-03-02  Jim Meyering  <meyering@redhat.com>
22918
22919         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22920         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22921         on request from Matt Booth.
22922
22923 2011-03-01  Eric Blake  <eblake@redhat.com>
22924
22925         test-link: work on Hurd
22926         * tests/test-link.h (test_link): Hurd rejects linking directories
22927         with EISDIR instead of the POSIX-mandated EPERM.
22928
22929 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22930
22931         stdio: simplify by moving files to printf-posix, sigpipe
22932         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22933         since this symbol is needed only if printf is replaced.
22934         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22935         Require gl_ASM_SYMBOL_PREFIX.
22936         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22937         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22938         (Depends-on): Add 'raise'.
22939         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22940         * modules/stdio (Files): Remove lib/stdio-write.c,
22941         m4/asm-underscore.m4.
22942         (Depends-on): Remove 'raise'.
22943
22944         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22945         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22946         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22947         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22948
22949 2011-02-28  Bruno Haible  <bruno@clisp.org>
22950
22951         localcharset: Assume ANSI C behaviour of free().
22952         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22953         calling free().
22954         Suggested by Simon Josefsson <simon@josefsson.org>.
22955
22956 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22957             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22958             Bruno Haible  <bruno@clisp.org>  (tiny change)
22959
22960         On Cygwin, use /proc file system instead of win32 API.
22961         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22962         Win32 file names.
22963         (DllMain): Simplify by removing Cygwin specific code.
22964         (find_shared_library_fullname): Use Linux specific implementation also
22965         for Cygwin.
22966         (get_shared_library_fullname): Update accordingly.
22967         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22968         Win32 file names.
22969         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22970         Cygwin specific code.
22971
22972 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22973             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22974
22975         Fix OpenMP flag detection for various Fortran compilers.
22976         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22977         OpenMP-conditional compilation construct, to force compile
22978         failure with missing OpenMP flag.
22979         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22980
22981 2011-02-25  Eric Blake  <eblake@redhat.com>
22982
22983         strstr: expand test coverage
22984         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22985         compilation.
22986         * tests/test-memmem.c (main): Duplicate tests.
22987         * tests/test-strcasestr.c (main): Likewise.
22988         * tests/test-c-strcasestr.c (main): Likewise.
22989
22990 2011-02-25  Jim Meyering  <meyering@redhat.com>
22991
22992         maint.mk: detect missing-NL-at-EOF, too
22993         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22994         it also detects when a file lacks a newline at EOF.
22995         (require_exactly_one_NL_at_EOF_): Renamed from
22996         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22997         since people may well have .x-sc_... file names tied to the
22998         existing name.  Suggested by Eric Blake.
22999
23000 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23001
23002         dirname: move m4/dos.m4 functionality into lib/dosname.h
23003
23004         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23005         extracts symbols from it, puts them into config.h; but it's much
23006         easier to use the symbols directly.  filename.h already does this,
23007         but it disagrees with dos.m4 in some respects.  This patch
23008         introduces a different include file dosname.h that packages up
23009         dos.m4, and then later we can work on merging filename.h and
23010         dosname.h.  Applications that need only the easy-to-configure
23011         symbols should consider including dosname.h rather than dirname.h.
23012         * NEWS: Mention incompatible changes.
23013         * m4/dos.m4: Remove.
23014         * lib/dosname.h, modules/dosname: New files.
23015         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23016         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23017         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23018         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23019         Include dosname.h, not dirname.h.
23020         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23021         Include dosname.h, for definitions of symbols like ISSLASH
23022         that used to be in config.h.
23023         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23024         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23025         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23026         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23027         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23028         * modules/rmdir (Files): Likewise.
23029         * modules/stat (Files): Likewise.
23030         * modules/unlink (Files): Likewise.
23031         * modules/dirname-lgpl (Depends-on): Add dosname.
23032         * modules/lstat (Depends-on): Likewise.
23033         * modules/openat (Depends-on): Likewise.
23034         * modules/rmdir (Depends-on): Likewise.
23035         * modules/savewd (Depends-on): Likewise.
23036         * modules/stat (Depends-on): Likewise.
23037         * modules/unlink (Depends-on): Likewise.
23038         * modules/openat (Depends-on): Remove dirname-lgpl.
23039         * modules/savewd (Depends-on): Likewise.
23040         * tests/test-dirname.c: Do not use removed symbols like
23041         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23042         the remaining symbols, e.g., ISSLASH ('\\').
23043
23044 2011-02-25  Eric Blake  <eblake@redhat.com>
23045
23046         strstr: revert patches that introduced bug and pessimization
23047         * lib/str-two-way.h: Add another reference.
23048         (two_way_short_needle, two_way_long_needle): Revert changes from
23049         2011-02-24; they pessimize search speed.
23050         (critical_factorization): Partially revert changes from
23051         2010-06-22; they violate the requirement that the left half of the
23052         needle be smaller than the period of the needle.
23053
23054 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23055
23056         filenamecat: remove unnecessary dependency on dirname-lgpl
23057         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23058         is no direct dependency, just an indirect one via filenamecat-lgpl.
23059
23060         remove: remove unnecessary use of m4/dos.m4
23061         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23062         * modules/remove (FILES): Remove m4/dos.m4.
23063
23064         * lib/openat-proc.c: Don't include dirname.h; not needed.
23065
23066         backupfile: remove unnecessary use of m4/dos.m4
23067         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23068         of its symbols are used by the backupfile code.  backupfile.c does
23069         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23070         for the rare case of programs that want all their backup file
23071         names to live within 8+3 limits, and dos.m4 doesn't address that.
23072         * modules/backupfile (Files): Remove m4/dos.m4.
23073
23074 2011-02-24  Jim Meyering  <meyering@redhat.com>
23075
23076         strstr: fix a bug whereby strstr would mistakenly return NULL
23077         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23078         in period calculation.
23079         (two_way_long_needle): Likewise.
23080         The original problem was reported by Mike Stump in
23081         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23082         Ralf Wildenhues provided the short needle and haystack.
23083         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23084         Add a more involved test to trigger the bug in two_way_long_needle.
23085
23086 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23087
23088         gnulib-tool: remove use of bold display in help screen
23089         * gnulib-tool (func_usage): Do not use bold display anymore in the
23090         help screen.  That was just meant to be a temporary emphasis for a
23091         backward-incompatible change.
23092
23093 2011-02-23  Bruno Haible  <bruno@clisp.org>
23094
23095         Fix misindentation of preprocessor directives.
23096         * lib/argp-namefrob.h: Reindent preprocessor directives.
23097         * lib/getopt_int.h (struct _getopt_data): Likewise.
23098         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23099         * lib/vasnprintf.c (decode_long_double): Likewise.
23100         * tests/test-argmatch.c: Insert blank lines, for clarity.
23101         * tests/test-exclude.c: Likewise.
23102
23103 2011-02-22  Bruno Haible  <bruno@clisp.org>
23104
23105         ioctl: Fix for MacOS X in 64-bit mode.
23106         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23107         value.
23108         Suggested by Eric Blake.
23109         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23110
23111 2011-02-22  Jim Meyering  <meyering@redhat.com>
23112
23113         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23114         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23115         in lib/.
23116
23117 2011-02-22  Eric Blake  <eblake@redhat.com>
23118
23119         maint: avoid any CDPATH issue
23120         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23121
23122         maint: adjust cpp indentation for my modules, as well
23123         * Makefile (sc_cpp_indent_check): Add my name.
23124         * lib/fbufmode.c: Filter through cppi.
23125         * lib/fpurge.c: Likewise.
23126         * lib/freadable.c: Likewise.
23127         * lib/freading.c: Likewise.
23128         * lib/fwritable.c: Likewise.
23129         * lib/fwriting.c: Likewise.
23130         * lib/sigaction.c: Likewise.
23131
23132 2011-02-22  Jim Meyering  <meyering@redhat.com>
23133
23134         maint: adjust cpp indentation to reflect nesting depth
23135         I.e., in a block of code that begins with an unnested "#if",
23136         put one space between the "#" in column 1 and following token.
23137         For example,
23138         -#include <sys/vfs.h>
23139         +# include <sys/vfs.h>
23140         Do this only in .c files that are part of a module I maintain.
23141         * lib/linkat.c: Filter through cppi.
23142         * lib/nanosleep.c: Likewise.
23143         * lib/openat.c: Likewise.
23144         * lib/openat-die.c: Likewise.
23145         * lib/dup3.c: Likewise.
23146         * lib/fchownat.c: Likewise.
23147         * lib/flock.c: Likewise.
23148         * lib/fsync.c: Likewise.
23149         * lib/fts.c: Likewise.
23150         * lib/getpass.c: Likewise.
23151         * lib/gettimeofday.c: Likewise.
23152         * lib/userspec.c: Likewise.
23153         * Makefile (sc_cpp_indent_check): New rule, to check this.
23154
23155 2011-02-22  Bruno Haible  <bruno@clisp.org>
23156
23157         New module 'wctomb'.
23158         * lib/stdlib.in.h (wctomb): New declaration.
23159         * lib/wctomb.c: New file.
23160         * lib/wctomb-impl.h: New file.
23161         * m4/wctomb.m4: New file.
23162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23163         REPLACE_WCTOMB.
23164         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23165         REPLACE_WCTOMB.
23166         * modules/wctomb: New file.
23167         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23168         * doc/posix-functions/wctomb.texi: Mention the new module.
23169         * modules/wctob (Depends-on): Add wctomb.
23170
23171 2011-02-22  Bruno Haible  <bruno@clisp.org>
23172
23173         New module 'mbtowc'.
23174         * lib/stdlib.in.h (mbtowc): New declaration.
23175         * lib/mbtowc.c: New file.
23176         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23177         * m4/mbtowc.m4: New file.
23178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23179         REPLACE_MBTOWC.
23180         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23181         REPLACE_MBTOWC.
23182         * modules/mbtowc: New file.
23183         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23184         * doc/posix-functions/mbtowc.texi: Mention the new module.
23185         * modules/btowc (Depends-on): Add mbtowc.
23186
23187 2011-02-22  Bruno Haible  <bruno@clisp.org>
23188
23189         wcrtomb: Add more tests for native Windows platforms.
23190         * tests/test-wcrtomb-w32-1.sh: New file.
23191         * tests/test-wcrtomb-w32-2.sh: New file.
23192         * tests/test-wcrtomb-w32-3.sh: New file.
23193         * tests/test-wcrtomb-w32-4.sh: New file.
23194         * tests/test-wcrtomb-w32-5.sh: New file.
23195         * tests/test-wcrtomb-w32.c: New file.
23196         * modules/wcrtomb-tests (Files): Add them.
23197         (Makefile.am): Arrange to run these tests.
23198         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23199         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23200
23201 2011-02-20  Bruno Haible  <bruno@clisp.org>
23202
23203         wcrtomb: Enhance test.
23204         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23205
23206 2011-02-20  Bruno Haible  <bruno@clisp.org>
23207
23208         mbrtowc: Tiny optimization.
23209         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23210
23211 2011-02-20  Jim Meyering  <meyering@redhat.com>
23212
23213         test-exclude.c: remove unmatched #endif
23214         * tests/test-exclude.c: Remove stray #endif, left over from
23215         the change of a week ago.
23216
23217 2011-02-19  Jim Meyering  <meyering@redhat.com>
23218
23219         git-version-gen: skip "-dirty" check when appropriate
23220         * build-aux/git-version-gen: Don't run any git commands when the
23221         version string comes from .tarball-version.  Prior to this, we
23222         would run git update-index --refresh even from a just-unpacked
23223         tarball directory, and that could affect a .git/ directory in a
23224         parent of the build directory.  Reported by Mike Frysinger.
23225
23226 2011-02-19  Bruno Haible  <bruno@clisp.org>
23227
23228         unictype/property-byname: Reduce the size of the 'data' segment.
23229         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23230
23231 2011-02-19  Bruno Haible  <bruno@clisp.org>
23232
23233         unictype/scripts: Reduce the size of the 'data' segment.
23234         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23235         '%pic'.
23236         * lib/unictype/scripts_byname.gperf: Regenerated.
23237
23238 2011-02-19  Bruno Haible  <bruno@clisp.org>
23239
23240         stdint: Update documentation.
23241         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23242
23243 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23244
23245         stdint: omit redundant check for wchar.h
23246         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23247         always tests whether wchar.h exists, so remove the now-redundant test.
23248
23249 2011-02-18  Bruno Haible  <bruno@clisp.org>
23250
23251         stdint: Cut dependency to module 'wchar'.
23252         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23253         include the necessary prerequisites.
23254         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23255         * modules/stdint (Depends-on): Remove wchar.
23256         (Makefile.am): Substitute HAVE_WCHAR_H.
23257         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23258
23259 2011-02-18  Eric Blake  <eblake@redhat.com>
23260
23261         longlong: skip, rather than fail, on cross-compilation
23262         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23263         when cross-compiling; regression from 2011-02-16.
23264
23265 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23266
23267         * NEWS: Mention 2011-02-08 change to stdlib.
23268
23269 2011-02-17  Bruno Haible  <bruno@clisp.org>
23270
23271         getloadavg: Add comments about platforms.
23272         * m4/getloadavg.m4: Add comment.
23273         * lib/getloadavg.c: Likewise.
23274
23275 2011-02-17  Bruno Haible  <bruno@clisp.org>
23276
23277         getloadavg: Fix link error on Solaris 2.6.
23278         * modules/getloadavg (Link): New section.
23279         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23280         linking test-getloadavg.
23281         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23282         getloadavg.
23283
23284 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23285
23286         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23287         It was 'int', but this doesn't match the IRIX 6.5 manual.
23288         Suggested by Bruno Haible in
23289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23290
23291 2011-02-17  Bruno Haible  <bruno@clisp.org>
23292
23293         havelib: Fix comments.
23294         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23295         change.
23296
23297 2011-02-17  Bruno Haible  <bruno@clisp.org>
23298
23299         havelib: Update config.rpath.
23300         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23301
23302 2011-02-17  Bruno Haible  <bruno@clisp.org>
23303
23304         getloadavg test: Add some plausibility checks.
23305         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23306         is improbable.
23307
23308 2011-02-16  Eric Blake  <eblake@redhat.com>
23309
23310         maintainer-makefile: make syntax-check a no-op from tarballs
23311         * top/maint.mk (no-vc-detected): New rule.
23312         (local-checks-available): Use it to avoid hanging if someone tries
23313         'make syntax-check' from a tarball.  Also append to any non-syntax
23314         checks already defined in cfg.mk.
23315
23316 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23317
23318         longlong: tune, particularly for common case of c99
23319
23320         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23321         or running anything if c99, or if unsigned long long int does not
23322         work.  In either case, we know the answer without further tests.
23323         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23324         it at most once, and use its results for both long long int and
23325         unsigned long long int.  This is more likely to be efficient in
23326         the common case where the program wants to check for both long
23327         long int and unsigned long long int.
23328         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23329         since the answer is already known.
23330
23331 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23332
23333         getloadavg: set errno
23334         * lib/getloadavg.c: Set errno when returning -1.  If no other
23335         error number looks appropriate, set it to ENOSYS if the getloadavg
23336         looks like it can't possibly ever work, ENOTSUP otherwise.
23337         Suggested by Bruno Haible in
23338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23339
23340         getloadavg: trim unused parts and speed up 'configure'
23341         * NEWS: Document this.
23342         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23343         always compiled if getloadavg is absent.
23344         Move test code to ...
23345         * tests/test-getloadavg.c: New file, containing previous
23346         contents of test from lib/getloadavg.c.  It also contains
23347         suggestions by Bruno Haible in
23348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23349         * modules/getloadavg-tests: New file.
23350         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23351         Do tests in the same order as they're needed for getloadavg.c.
23352         Omit setgid-related tests that generate symbols KMEM_GROUP,
23353         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23354         Do only the tests that are needed to see whether the system has
23355         getloadavg, moving the other tests into ...
23356         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23357         NLIST_NAME_UNION; nobody should be using it.  Do not define
23358         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23359         relevant, as the user of this module shouldn't care how getloadavg
23360         is implemented.
23361
23362         getloadavg: omit unused var
23363         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23364
23365 2011-02-15  Jim Meyering  <meyering@redhat.com>
23366
23367         doc: update users.txt
23368         * users.txt: Update iwhd's URL.
23369
23370 2011-02-13  Bruno Haible  <bruno@clisp.org>
23371
23372         Consistent macro naming for macros that use GCC __attribute__.
23373         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23374         _ATTRIBUTE_NONNULL_.
23375         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23376         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23377         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23378         ATTRIBUTE_DEPRECATED.
23379         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23380         ATTRIBUTE_NORETURN.
23381         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23382         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23383         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23384         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23385         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23386         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23387         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23388         ATTRIBUTE_SENTINEL.
23389         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23390         ATTRIBUTE_RETURN_CHECK.
23391         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23392         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23393         ATTRIBUTE_NORETURN.
23394         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23395         Reported by Paul Eggert.
23396
23397 2011-02-13  Bruno Haible  <bruno@clisp.org>
23398
23399         Don't interfere with a program's definition of __attribute__.
23400         * lib/argp.h (__attribute__): Remove definition.
23401         (_GL_ATTRIBUTE_FORMAT): New macro.
23402         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23403         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23404         (_GL_ATTRIBUTE_FORMAT): New macro.
23405         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23406         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23407         GCC 3 or newer.
23408         * lib/error.h (__attribute__): Remove definition.
23409         (_GL_ATTRIBUTE_FORMAT): New macro.
23410         (error, error_at_line): Use it.
23411         * lib/hash.h (__attribute__): Remove definition.
23412         (ATTRIBUTE_WUR): Update definition. Define always.
23413         * lib/openat.h (__attribute__): Remove definition.
23414         (ATTRIBUTE_NORETURN): Update definition. Define always.
23415         * lib/sigpipe-die.h (__attribute__): Remove definition.
23416         (ATTRIBUTE_NORETURN): Update definition. Define always.
23417         * lib/vasnprintf.h (__attribute__): Remove definition.
23418         (_GL_ATTRIBUTE_FORMAT): New macro.
23419         (asnprintf, vasnprintf): Use it.
23420         * lib/xalloc.h (__attribute__): Remove definition.
23421         (ATTRIBUTE_NORETURN): Update definition. Define always.
23422         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23423         * lib/xmemdup0.h (__attribute__): Remove definition.
23424         (ATTRIBUTE_NORETURN): Update definition. Define always.
23425         * lib/xprintf.h (__attribute__): Remove definition.
23426         (_GL_ATTRIBUTE_FORMAT): New macro.
23427         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23428         * lib/xstrtol.h (__attribute__): Remove definition.
23429         (ATTRIBUTE_NORETURN): Update definition. Define always.
23430         * lib/xvasprintf.h (__attribute__): Remove definition.
23431         (_GL_ATTRIBUTE_FORMAT): New macro.
23432         (xasprintf, xvasprintf): Use it.
23433         * tests/test-argmatch.c (__attribute__): Remove definition.
23434         (ATTRIBUTE_NORETURN): Update definition. Define always.
23435         * tests/test-exclude.c (__attribute__): Remove definition.
23436         (ATTRIBUTE_NORETURN): Update definition. Define always.
23437         Reported by Paul Eggert.
23438
23439 2011-02-13  Bruno Haible  <bruno@clisp.org>
23440
23441         mbrtowc: Add more tests for native Windows platforms.
23442         * tests/test-mbrtowc-w32-1.sh: New file.
23443         * tests/test-mbrtowc-w32-2.sh: New file.
23444         * tests/test-mbrtowc-w32-3.sh: New file.
23445         * tests/test-mbrtowc-w32-4.sh: New file.
23446         * tests/test-mbrtowc-w32-5.sh: New file.
23447         * tests/test-mbrtowc-w32.c: New file.
23448         * modules/mbrtowc-tests (Files): Add them.
23449         (Makefile.am): Arrange to run these tests.
23450         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23451         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23452
23453 2011-02-13  Bruno Haible  <bruno@clisp.org>
23454
23455         mbrtowc: Work around native Windows bug.
23456         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23457         guess when no suitable locale for testing was found.
23458         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23459
23460 2011-02-13  Bruno Haible  <bruno@clisp.org>
23461
23462         mbsinit: Work around mingw bug.
23463         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23464         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23465         Windows.
23466         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23467
23468 2011-02-13  Bruno Haible  <bruno@clisp.org>
23469
23470         mbsinit: Don't crash for a NULL argument.
23471         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23472         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23473
23474 2011-02-13  Bruno Haible  <bruno@clisp.org>
23475
23476         Don't interfere with a program's definition of __attribute__.
23477         * lib/stdio.in.h (__attribute__): Remove definition.
23478         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23479         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23480         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23481         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23482         * lib/string.in.h (__attribute__): Remove definition.
23483         Reported by Paul Eggert.
23484
23485 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23486
23487         stdlib: don't get in the way of non-GCC __attribute__
23488         See thread starting at
23489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23490         Revert previous stdlib change, installing the following instead:
23491         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23492         to get in the way of a non-GCC compiler that supports __attribute__.
23493         (_GL_ATTRIBUTE_RETURN): New macro.
23494         (_Exit): Use it instead of __attribute__.
23495
23496 2011-02-12  Bruno Haible  <bruno@clisp.org>
23497
23498         quotearg test: Avoid test failure on mingw.
23499         * tests/test-quotearg.sh: Convert the locale identifier from native
23500         Windows syntax to Unix syntax.
23501
23502 2011-02-12  Bruno Haible  <bruno@clisp.org>
23503
23504         setlocale: Prefer gnulib's override over libintl's override.
23505         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23506         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23507         GNULIB_defined_setlocale is set.
23508
23509 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23510
23511         stdlib: support non-GCC __attribute__
23512
23513         Fix a serious and tricky problem encountered when attempting to
23514         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23515         5.5, but it crashed due to memory corruption on Solaris 10 with
23516         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23517         bits that are otherwise zero.  This tagging is optional inside
23518         Emacs but is preferred and is used when __attribute__ ((__aligned
23519         (8))) works, as it does with both recent-enough GCC and with Sun C
23520         5.11.  However, Sun C 5.11 is not GCC and does not #define
23521         __GNUC__ and __GNUC_MINOR__.
23522
23523         When I added the getloadavg module to Emacs, it brought in
23524         stdlib.in.h, which contained this fragment:
23525
23526            #ifndef __attribute__
23527            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23528            #  define __attribute__(Spec)   /* empty */
23529            # endif
23530            #endif
23531
23532         When files that include <stdlib.h> were compiled with Sun C 5.11,
23533         the above code disabled __attribute__ ((__aligned (8))), which
23534         caused variables to not be properly aligned, which eventually led
23535         to the pointer corruption mentioned above.  (This was a bit hard
23536         to diagnose, unfortunately.)
23537
23538         Several "#define __attribute__(X) /* empty */" code snippets need
23539         to be eradicated from Gnulib to work with non-GCC compilers that
23540         support __attribute__.  The Autoconf way to do this is to test for
23541         each kind of attribute that we want support for, and selectively
23542         enable that in source code.
23543
23544         Fix this problem just for stdlib.h, by adding a test for the
23545         __noreturn__ attribute, and change stdlib.in.h to use that test
23546         when needed.  This technique can be easily generalized to the
23547         other *.in.h files and attributes, and a similar technique can be
23548         used for *.h and *.c files.  This patch is enough to solve the
23549         problem for Emacs + getloadavg, and I thought I'd publish it for
23550         feedback before undertaking further, similar fixes in other
23551         modules.
23552
23553         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23554         because it's not needed for stdlib.h.  It merely substitutes the
23555         value directly into stdlib.h.  We may well need to #define it, or
23556         similar symbols, for other modules, but it's nice to also have an
23557         option to not #define it for applications like Emacs that do not
23558         need it.
23559
23560         * lib/stdlib.in.h (__attribute__): Do not #define.
23561         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23562         be defined only if the _Exit module is also used.
23563         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23565         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23566         platforms.
23567         * modules/_Exit (Files): Add m4/attribute.m4.
23568         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23569         * m4/attribute.m4: New file.
23570
23571 2011-02-12  Bruno Haible  <bruno@clisp.org>
23572
23573         wcsrtombs: Work around bug on native Windows.
23574         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23575         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23576         instead of len.
23577         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23578
23579 2011-02-12  Bruno Haible  <bruno@clisp.org>
23580
23581         mbsrtowcs: Work around bug on native Windows.
23582         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23583         against mingw bug.
23584         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23585
23586 2011-02-12  Bruno Haible  <bruno@clisp.org>
23587
23588         Avoid setlocale bugs in tests.
23589         * modules/btowc (Dependencies): Add setlocale.
23590         * modules/c-strcase (Dependencies): Likewise.
23591         * modules/mbmemcasecmp (Dependencies): Likewise.
23592         * modules/mbmemcasecoll (Dependencies): Likewise.
23593         * modules/mbrtowc (Dependencies): Likewise.
23594         * modules/mbscasecmp (Dependencies): Likewise.
23595         * modules/mbscasestr (Dependencies): Likewise.
23596         * modules/mbschr (Dependencies): Likewise.
23597         * modules/mbscspn (Dependencies): Likewise.
23598         * modules/mbsinit (Dependencies): Likewise.
23599         * modules/mbsncasecmp (Dependencies): Likewise.
23600         * modules/mbsnrtowcs (Dependencies): Likewise.
23601         * modules/mbspbrk (Dependencies): Likewise.
23602         * modules/mbspcasecmp (Dependencies): Likewise.
23603         * modules/mbsrchr (Dependencies): Likewise.
23604         * modules/mbsrtowcs (Dependencies): Likewise.
23605         * modules/mbsspn (Dependencies): Likewise.
23606         * modules/mbsstr (Dependencies): Likewise.
23607         * modules/nl_langinfo (Dependencies): Likewise.
23608         * modules/quotearg (Dependencies): Likewise.
23609         * modules/unicase/locale-language (Dependencies): Likewise.
23610         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23611         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23612         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23613         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23614         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23615         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23616         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23617         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23618         * modules/vasnprintf-posix (Dependencies): Likewise.
23619         * modules/wcrtomb (Dependencies): Likewise.
23620         * modules/wcsnrtombs (Dependencies): Likewise.
23621         * modules/wcsrtombs (Dependencies): Likewise.
23622
23623 2011-02-12  Bruno Haible  <bruno@clisp.org>
23624
23625         setlocale: Workaround native Windows bug.
23626         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23627         succeeds but sets LC_CTYPE to "C", report a failure.
23628         * tests/test-setlocale2.sh: New file.
23629         * tests/test-setlocale2.c: New file.
23630         * modules/setlocale-tests (Files): Add the new files.
23631         (Makefile.am): Enable test-setlocale2.sh test.
23632         * doc/posix-functions/setlocale.texi: Mention workaround.
23633
23634 2011-02-11  Bruno Haible  <bruno@clisp.org>
23635
23636         Tests for module 'setlocale'.
23637         * modules/setlocale-tests: New file.
23638         * tests/test-setlocale1.sh: New file.
23639         * tests/test-setlocale1.c: New file.
23640
23641         New module 'setlocale'.
23642         * lib/locale.in.h (setlocale): New declaration.
23643         * lib/setlocale.c: New file, based on
23644         gettext/gettext-runtime/intl/setlocale.c.
23645         * m4/setlocale.m4: New file.
23646         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23647         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23648         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23649         REPLACE_SETLOCALE.
23650         * modules/setlocale: New file.
23651         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23652         * doc/posix-functions/setlocale.texi: Mention the new module.
23653
23654 2011-02-11  Bruno Haible  <bruno@clisp.org>
23655
23656         Prepare for locale dependent tests on mingw.
23657         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23658         because it has the wrong locale encoding.
23659         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23660         French_France.1252 instead of "fr".
23661         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23662         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23663         because it has the wrong locale encoding.
23664         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23665         native Windows, try Turkish_Turkey.65001.
23666         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23667         Chinese_China.54936.
23668
23669         Prepare for locale dependent tests on mingw.
23670         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23671         differently.
23672         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23673         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23674         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23675         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23676
23677 2011-02-11  Eric Blake  <eblake@redhat.com>
23678
23679         strptime: avoid compiler warnings
23680         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23681         compiler warnings about dead code.
23682         Reported by Daniel P. Berrange.
23683
23684 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23685
23686         doc: update users.txt
23687         * users.txt: Add rcs.
23688
23689 2011-02-10  John W. Eaton  <jwe@gnu.org>
23690
23691         doc: update users.txt
23692         * users.txt: Add octave.
23693
23694 2011-02-10  Jim Meyering  <meyering@redhat.com>
23695
23696         doc: update users.txt
23697         * users.txt: Add iwhd.
23698
23699 2011-02-09  Bruno Haible  <bruno@clisp.org>
23700
23701         gnulib-tool: Make copyright notice adjustment more robust.
23702         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23703         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23704         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23705         License".
23706         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23707
23708 2011-02-06  Bruno Haible  <bruno@clisp.org>
23709
23710         New module 'towctrans'.
23711         * modules/towctrans: New file.
23712         * lib/wctype.in.h (towctrans): New declaration.
23713         * lib/towctrans.c: New file.
23714         * lib/towctrans-impl.h: New file.
23715         * m4/towctrans.m4: New file.
23716         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23717         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23718         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23719         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23720         * doc/posix-functions/towctrans.texi: Mention the new module.
23721
23722 2011-02-06  Bruno Haible  <bruno@clisp.org>
23723
23724         New module 'wctrans'.
23725         * modules/wctrans: New file.
23726         * lib/wctype.in.h (wctrans): New declaration.
23727         * lib/wctrans.c: New file.
23728         * lib/wctrans-impl.h: New file.
23729         * m4/wctrans.m4: New file.
23730         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23731         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23732         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23733         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23734         * doc/posix-functions/wctrans.texi: Mention the new module.
23735
23736 2011-02-06  Bruno Haible  <bruno@clisp.org>
23737
23738         New module 'iswctype'.
23739         * modules/iswctype: New file.
23740         * lib/wctype.in.h (iswctype): New declaration.
23741         * lib/iswctype.c: New file.
23742         * lib/iswctype-impl.h: New file.
23743         * m4/iswctype.m4: New file.
23744         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23745         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23746         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23747         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23748         * doc/posix-functions/iswctype.texi: Mention the new module and the
23749         HP-UX 11.00 problem.
23750
23751 2011-02-06  Bruno Haible  <bruno@clisp.org>
23752
23753         New module 'wctype'.
23754         * modules/wctype: Change to represent the wctype() substitute.
23755         * lib/wctype.in.h (wctype): New declaration.
23756         * lib/wctype.c: New file.
23757         * lib/wctype-impl.h: New file.
23758         * m4/wctype.m4: New file.
23759         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23760         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23761         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23762         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23763         * doc/posix-functions/wctype.texi: Mention the new module and the
23764         HP-UX 11.00 problem.
23765
23766 2011-02-06  Bruno Haible  <bruno@clisp.org>
23767
23768         wctype-h: Ensure wctype_t and wctrans_t are defined.
23769         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23770         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23771         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23772         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23773         HAVE_WCTRANS_T.
23774         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23775
23776 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23777
23778         flock: fix license typo
23779
23780         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23781         omitted.
23782
23783 2011-02-08  Bruno Haible  <bruno@clisp.org>
23784
23785         Split large sed scripts, for HP-UX sed.
23786         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23787         to avoid HP-UX limit of 99 commands, in the near future.
23788         * modules/stdlib (Makefile.am): Likewise.
23789         * modules/unistd (Makefile.am): Likewise.
23790         * modules/wchar (Makefile.am): Likewise.
23791         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23792         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23793         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23794
23795 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23796             Bruno Haible  <bruno@clisp.org>
23797
23798         stdlib: improve random_r modularization
23799         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23800         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23801         you also need the random_r module to get this material right.
23802         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23803         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23804         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23805
23806 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23807
23808         stdlib: don't depend on stdint
23809         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23810         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23811         be independent of whether stdint.h is needed.
23812         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23813         here, instead of ...
23814         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23815         struct random_data should be using the random_r module, not just
23816         the stdlib module (which wouldn't make sense: what package needs
23817         just struct random_data without also needing random_r?).
23818         * modules/stdlib (Depends-on): Remove stdint.
23819
23820         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23821         See the thread rooted at
23822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23823         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23824         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23825         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23826         __VMS)); previously it was always included (via fcntl--.h).
23827         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23828         hand; this is good enough for load averages.  Also, do not use
23829         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23830         flags directly if available and don't bother otherwise.  (Packages
23831         that need the extra reliability should use the modules that define
23832         these flags on older platforms that lack them.)
23833         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23834         fcntl-safer.
23835
23836 2011-02-08  Jim Meyering  <meyering@redhat.com>
23837
23838         di-set.h, ino-map.h: add multiple-inclusion guard
23839         Technically, the guard is required only for ino-map.h, due to its
23840         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23841         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23842         * lib/ino-map.h: Likewise.
23843
23844 2011-02-06  Bruno Haible  <bruno@clisp.org>
23845
23846         iswblank: Ensure declaration on glibc systems.
23847         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23848         * modules/iswblank (Dependencies): Add 'extensions'.
23849         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23850
23851 2011-02-06  Bruno Haible  <bruno@clisp.org>
23852
23853         New module 'iswblank'.
23854         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23855         * modules/iswblank: New file.
23856         * modules/wctype-h (Files): Remove lib/iswblank.c.
23857         (Makefile.am): Substitute GNULIB_ISWBLANK.
23858         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23859         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23860         (gl_WCTYPE_H_DEFAULTS): New macro.
23861         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23862         * modules/iswblank-tests: New file.
23863         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23864         * tests/test-wctype-h.c (main): Remove iswblank tests.
23865         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23866         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23867         of 'wctype-h'.
23868         * NEWS: Mention the change.
23869         * modules/mbchar (Depends-on): Add iswblank.
23870
23871 2011-02-08  Bruno Haible  <bruno@clisp.org>
23872
23873         di-set tests: Refactor.
23874         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23875         unnecessary includes.
23876         (ASSERT): Remove macro.
23877         (main): Make C90 compliant by avoiding variable declaration after
23878         statement.
23879         * modules/di-set-tests (Files): Add tests/macros.h.
23880
23881 2011-02-08  Bruno Haible  <bruno@clisp.org>
23882
23883         ino-map tests: Refactor.
23884         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23885         unnecessary includes.
23886         (ASSERT): Remove macro.
23887         (main): Make C90 compliant by avoiding variable declaration after
23888         statement.
23889         * modules/ino-map-tests (Files): Add tests/macros.h.
23890
23891 2011-02-08  Jim Meyering  <meyering@redhat.com>
23892
23893         di-set: add "const" to a cast
23894         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23895         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23896
23897 2011-02-06  Bruno Haible  <bruno@clisp.org>
23898
23899         Rename module 'wctype' to 'wctype-h'.
23900         * modules/wctype-h: Renamed from modules/wctype.
23901         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23902         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23903         (Files, Depends-on, Makefile.am): Update.
23904         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23905         (Files, Makefile.am): Update.
23906         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23907         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23908         * doc/posix-headers/wctype.texi: Update.
23909         * doc/posix-functions/iswalnum.texi: Update.
23910         * doc/posix-functions/iswalpha.texi: Update.
23911         * doc/posix-functions/iswblank.texi: Update.
23912         * doc/posix-functions/iswcntrl.texi: Update.
23913         * doc/posix-functions/iswdigit.texi: Update.
23914         * doc/posix-functions/iswgraph.texi: Update.
23915         * doc/posix-functions/iswlower.texi: Update.
23916         * doc/posix-functions/iswprint.texi: Update.
23917         * doc/posix-functions/iswpunct.texi: Update.
23918         * doc/posix-functions/iswspace.texi: Update.
23919         * doc/posix-functions/iswupper.texi: Update.
23920         * doc/posix-functions/iswxdigit.texi: Update.
23921         * doc/posix-functions/towlower.texi: Update.
23922         * doc/posix-functions/towupper.texi: Update.
23923         * NEWS: Mention the change.
23924         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23925         * modules/mbchar (Dependencies): Likewise.
23926         * modules/mbswidth (Dependencies): Likewise.
23927         * modules/quotearg (Dependencies): Likewise.
23928         * modules/regex (Dependencies): Likewise.
23929         * modules/wcscasecmp (Dependencies): Likewise.
23930         * modules/wcsncasecmp (Dependencies): Likewise.
23931         * modules/wcwidth (Dependencies): Likewise.
23932
23933 2011-02-06  Bruno Haible  <bruno@clisp.org>
23934
23935         New module 'wcswidth'.
23936         * modules/wcswidth: New file.
23937         * lib/wchar.in.h (wcswidth): New declaration.
23938         * lib/wcswidth.c: New file.
23939         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23940         * m4/wcswidth.m4: New file.
23941         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23942         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23943         REPLACE_WCSWIDTH.
23944         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23945         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23946         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23947         * doc/posix-functions/wcswidth.texi: Mention the new module.
23948
23949 2011-02-06  Bruno Haible  <bruno@clisp.org>
23950
23951         New module 'wcstok'.
23952         * modules/wcstok: New file.
23953         * lib/wchar.in.h (wcstok): New declaration.
23954         * lib/wcstok.c: New file.
23955         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23956         * m4/wcstok.m4: New file.
23957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23960         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23961         * doc/posix-functions/wcstok.texi: Mention the new module.
23962
23963 2011-02-06  Bruno Haible  <bruno@clisp.org>
23964
23965         New module 'wcsstr'.
23966         * modules/wcsstr: New file.
23967         * lib/wchar.in.h (wcsstr): New declaration.
23968         * lib/wcsstr.c: New file.
23969         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23970         * m4/wcsstr.m4: New file.
23971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23973         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23974         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23975         * doc/posix-functions/wcsstr.texi: Mention the new module.
23976
23977 2011-02-06  Bruno Haible  <bruno@clisp.org>
23978
23979         New module 'wcspbrk'.
23980         * modules/wcspbrk: New file.
23981         * lib/wchar.in.h (wcspbrk): New declaration.
23982         * lib/wcspbrk.c: New file.
23983         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23984         * m4/wcspbrk.m4: New file.
23985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23988         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23989         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23990
23991 2011-02-06  Bruno Haible  <bruno@clisp.org>
23992
23993         New module 'wcsspn'.
23994         * modules/wcsspn: New file.
23995         * lib/wchar.in.h (wcsspn): New declaration.
23996         * lib/wcsspn.c: New file.
23997         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23998         * m4/wcsspn.m4: New file.
23999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24002         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24003         * doc/posix-functions/wcsspn.texi: Mention the new module.
24004
24005 2011-02-06  Bruno Haible  <bruno@clisp.org>
24006
24007         New module 'wcscspn'.
24008         * modules/wcscspn: New file.
24009         * lib/wchar.in.h (wcscspn): New declaration.
24010         * lib/wcscspn.c: New file.
24011         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24012         * m4/wcscspn.m4: New file.
24013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24015         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24016         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24017         * doc/posix-functions/wcscspn.texi: Mention the new module.
24018
24019 2011-02-06  Bruno Haible  <bruno@clisp.org>
24020
24021         New module 'wcsrchr'.
24022         * modules/wcsrchr: New file.
24023         * lib/wchar.in.h (wcsrchr): New declaration.
24024         * lib/wcsrchr.c: New file.
24025         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24026         * m4/wcsrchr.m4: New file.
24027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24029         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24030         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24031         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24032
24033 2011-02-06  Bruno Haible  <bruno@clisp.org>
24034
24035         New module 'wcschr'.
24036         * modules/wcschr: New file.
24037         * lib/wchar.in.h (wcschr): New declaration.
24038         * lib/wcschr.c: New file.
24039         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24040         * m4/wcschr.m4: New file.
24041         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24042         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24043         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24044         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24045         * doc/posix-functions/wcschr.texi: Mention the new module.
24046
24047 2011-02-06  Bruno Haible  <bruno@clisp.org>
24048
24049         New module 'wcsdup'.
24050         * modules/wcsdup: New file.
24051         * lib/wchar.in.h (wcsdup): New declaration.
24052         * lib/wcsdup.c: New file.
24053         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24054         * m4/wcsdup.m4: New file.
24055         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24056         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24057         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24058         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24059         * doc/posix-functions/wcsdup.texi: Mention the new module.
24060
24061 2011-02-06  Bruno Haible  <bruno@clisp.org>
24062
24063         New module 'wcsxfrm'.
24064         * modules/wcsxfrm: New file.
24065         * lib/wchar.in.h (wcsxfrm): New declaration.
24066         * lib/wcsxfrm.c: New file.
24067         * lib/wcsxfrm-impl.h: New file.
24068         * m4/wcsxfrm.m4: New file.
24069         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24070         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24071         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24072         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24073         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24074
24075 2011-02-06  Bruno Haible  <bruno@clisp.org>
24076
24077         New module 'wcscoll'.
24078         * modules/wcscoll: New file.
24079         * lib/wchar.in.h (wcscoll): New declaration.
24080         * lib/wcscoll.c: New file.
24081         * lib/wcscoll-impl.h: New file.
24082         * m4/wcscoll.m4: New file.
24083         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24084         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24085         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24086         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24087         * doc/posix-functions/wcscoll.texi: Mention the new module.
24088
24089 2011-02-06  Bruno Haible  <bruno@clisp.org>
24090
24091         New module 'wcsncasecmp'.
24092         * modules/wcsncasecmp: New file.
24093         * lib/wchar.in.h (wcsncasecmp): New declaration.
24094         * lib/wcsncasecmp.c: New file.
24095         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24096         * m4/wcsncasecmp.m4: New file.
24097         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24098         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24099         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24100         HAVE_WCSNCASECMP.
24101         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24102         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24103
24104 2011-02-06  Bruno Haible  <bruno@clisp.org>
24105
24106         New module 'wcscasecmp'.
24107         * modules/wcscasecmp: New file.
24108         * lib/wchar.in.h (wcscasecmp): New declaration.
24109         * lib/wcscasecmp.c: New file.
24110         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24111         * m4/wcscasecmp.m4: New file.
24112         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24113         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24114         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24115         HAVE_WCSCASECMP.
24116         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24117         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24118
24119 2011-02-05  Bruno Haible  <bruno@clisp.org>
24120
24121         New module 'wcsncmp'.
24122         * modules/wcsncmp: New file.
24123         * lib/wchar.in.h (wcsncmp): New declaration.
24124         * lib/wcsncmp.c: New file.
24125         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24126         * m4/wcsncmp.m4: New file.
24127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24130         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24131         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24132
24133 2011-02-05  Bruno Haible  <bruno@clisp.org>
24134
24135         New module 'wcscmp'.
24136         * modules/wcscmp: New file.
24137         * lib/wchar.in.h (wcscmp): New declaration.
24138         * lib/wcscmp.c: New file.
24139         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24140         * m4/wcscmp.m4: New file.
24141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24144         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24145         * doc/posix-functions/wcscmp.texi: Mention the new module.
24146
24147 2011-02-05  Bruno Haible  <bruno@clisp.org>
24148
24149         New module 'wcsncat'.
24150         * modules/wcsncat: New file.
24151         * lib/wchar.in.h (wcsncat): New declaration.
24152         * lib/wcsncat.c: New file.
24153         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24154         * m4/wcsncat.m4: New file.
24155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24158         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24159         * doc/posix-functions/wcsncat.texi: Mention the new module.
24160
24161 2011-02-05  Bruno Haible  <bruno@clisp.org>
24162
24163         New module 'wcscat'.
24164         * modules/wcscat: New file.
24165         * lib/wchar.in.h (wcscat): New declaration.
24166         * lib/wcscat.c: New file.
24167         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24168         * m4/wcscat.m4: New file.
24169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24171         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24172         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24173         * doc/posix-functions/wcscat.texi: Mention the new module.
24174
24175 2011-02-05  Bruno Haible  <bruno@clisp.org>
24176
24177         New module 'wcpncpy'.
24178         * modules/wcpncpy: New file.
24179         * lib/wchar.in.h (wcpncpy): New declaration.
24180         * lib/wcpncpy.c: New file.
24181         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24182         * m4/wcpncpy.m4: New file.
24183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24185         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24186         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24187         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24188
24189 2011-02-05  Bruno Haible  <bruno@clisp.org>
24190
24191         New module 'wcsncpy'.
24192         * modules/wcsncpy: New file.
24193         * lib/wchar.in.h (wcsncpy): New declaration.
24194         * lib/wcsncpy.c: New file.
24195         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24196         * m4/wcsncpy.m4: New file.
24197         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24198         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24199         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24200         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24201         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24202
24203 2011-02-05  Bruno Haible  <bruno@clisp.org>
24204
24205         New module 'wcpcpy'.
24206         * modules/wcpcpy: New file.
24207         * lib/wchar.in.h (wcpcpy): New declaration.
24208         * lib/wcpcpy.c: New file.
24209         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24210         * m4/wcpcpy.m4: New file.
24211         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24212         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24213         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24214         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24215         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24216
24217 2011-02-05  Bruno Haible  <bruno@clisp.org>
24218
24219         New module 'wcscpy'.
24220         * modules/wcscpy: New file.
24221         * lib/wchar.in.h (wcscpy): New declaration.
24222         * lib/wcscpy.c: New file.
24223         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24224         * m4/wcscpy.m4: New file.
24225         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24226         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24227         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24228         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24229         * doc/posix-functions/wcscpy.texi: Mention the new module.
24230
24231 2011-02-05  Bruno Haible  <bruno@clisp.org>
24232
24233         New module 'wcsnlen'.
24234         * modules/wcsnlen: New file.
24235         * lib/wchar.in.h (wcsnlen): New declaration.
24236         * lib/wcsnlen.c: New file.
24237         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24238         * m4/wcsnlen.m4: New file.
24239         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24240         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24241         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24242         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24243         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24244
24245 2011-02-05  Bruno Haible  <bruno@clisp.org>
24246
24247         New module 'wcslen'.
24248         * modules/wcslen: New file.
24249         * lib/wchar.in.h (wcslen): New declaration.
24250         * lib/wcslen.c: New file.
24251         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24252         * m4/wcslen.m4: New file.
24253         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24254         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24255         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24256         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24257         * doc/posix-functions/wcslen.texi: Mention the new module.
24258
24259 2011-02-05  Bruno Haible  <bruno@clisp.org>
24260
24261         New module 'wmemset'.
24262         * modules/wmemset: New file.
24263         * lib/wchar.in.h (wmemset): New declaration.
24264         * lib/wmemset.c: New file.
24265         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24266         * m4/wmemset.m4: New file.
24267         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24268         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24269         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24270         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24271         * doc/posix-functions/wmemset.texi: Mention the new module.
24272
24273 2011-02-05  Bruno Haible  <bruno@clisp.org>
24274
24275         New module 'wmemmove'.
24276         * modules/wmemmove: New file.
24277         * lib/wchar.in.h (wmemmove): New declaration.
24278         * lib/wmemmove.c: New file.
24279         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24280         * m4/wmemmove.m4: New file.
24281         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24282         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24283         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24284         HAVE_WMEMMOVE.
24285         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24286         * doc/posix-functions/wmemmove.texi: Mention the new module.
24287
24288 2011-02-05  Bruno Haible  <bruno@clisp.org>
24289
24290         New module 'wmemcpy'.
24291         * modules/wmemcpy: New file.
24292         * lib/wchar.in.h (wmemcpy): New declaration.
24293         * lib/wmemcpy.c: New file.
24294         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24295         * m4/wmemcpy.m4: New file.
24296         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24297         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24298         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24299         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24300         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24301
24302 2011-02-05  Bruno Haible  <bruno@clisp.org>
24303
24304         New module 'wmemcmp'.
24305         * modules/wmemcmp: New file.
24306         * lib/wchar.in.h (wmemcmp): New declaration.
24307         * lib/wmemcmp.c: New file.
24308         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24309         * m4/wmemcmp.m4: New file.
24310         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24311         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24312         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24313         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24314         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24315
24316 2011-02-07  Jim Meyering  <meyering@redhat.com>
24317
24318         di-set, ino-map: new modules, from coreutils
24319         * lib/di-set.c: New file.
24320         * lib/di-set.h: Likewise.
24321         * lib/ino-map.c: Likewise.
24322         * lib/ino-map.h: Likewise.
24323         * modules/di-set: Likewise.
24324         * modules/di-set-tests: Likewise.
24325         * modules/ino-map: Likewise.
24326         * modules/ino-map-tests: Likewise.
24327         * tests/test-di-set.c: Likewise.
24328         * tests/test-ino-map.c: Likewise.
24329
24330 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24331
24332         getloadavg: merge minor changes from Emacs
24333
24334         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24335         (getloadavg): Use memset, not bzero.
24336
24337         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24338         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24339         clash (bug#86).
24340
24341 2010-11-14  Bruno Haible  <bruno@clisp.org>
24342
24343         Allow multiple gnulib generated replacements to coexist.
24344         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24345         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24346         * lib/langinfo.in.h (nl_item): Likewise.
24347         * lib/math.in.h (_NaN, NAN): Likewise.
24348         * lib/netdb.in.h (struct addrinfo): Likewise.
24349         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24350         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24351         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24352         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24353         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24354         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24355         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24356         pthread_mutexattr_init, pthread_mutexattr_settype,
24357         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24358         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24359         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24360         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24361         * lib/sched.in.h (struct sched_param): Likewise.
24362         * lib/se-selinux.in.h (security_class_t, security_context_t,
24363         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24364         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24365         lsetfilecon, fsetfilecon, security_check_context,
24366         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24367         Likewise.
24368         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24369         Likewise.
24370         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24371         _gl_function_taking_int_returning_void_t, union sigval,
24372         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24373         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24374         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24375         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24376         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24377         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24378         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24379         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24380         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24381         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24382         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24383         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24384         socklen_t, rpl_fd_isset): Likewise.
24385         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24386         * lib/sys_time.in.h (struct timeval): Likewise.
24387         * lib/sys_times.in.h (struct tms): Likewise.
24388         * lib/sys_utsname.in.h (struct utsname):
24389         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24390         * lib/unistd.in.h (getpagesize): Likewise.
24391         * lib/wchar.in.h (mbstate_t): Likewise.
24392         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24393         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24394         towlower, towupper): Likewise.
24395         Reported by Sam Steingold <sds@gnu.org>.
24396
24397 2011-02-05  Eric Blake  <eblake@redhat.com>
24398
24399         unsetenv: work around Haiku issues
24400         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24401         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24402
24403 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24404
24405         libposix: avoid calling error() within libposix
24406         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24407         is defined.
24408
24409 2011-02-05  Eric Blake  <eblake@redhat.com>
24410
24411         strerror_r-posix: port to cygwin
24412         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24413         implementation.
24414         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24415         * tests/test-strerror_r.c (main): Fix test.
24416         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24417         issue.
24418
24419 2011-02-05  Bruno Haible  <bruno@clisp.org>
24420
24421         New module 'wmemchr'.
24422         * modules/wmemchr: New file.
24423         * lib/wchar.in.h (wmemchr): New declaration.
24424         * lib/wmemchr.c: New file.
24425         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24426         * m4/wmemchr.m4: New file.
24427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24429         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24430         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24431         * doc/posix-functions/wmemchr.texi: Mention the new module.
24432
24433 2011-02-04  Eric Blake  <eblake@redhat.com>
24434
24435         fdopendir: detect FreeBSD bug
24436         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24437         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24438
24439 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24440
24441         stdbool: do not define HAVE_STDBOOL_H
24442         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24443         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24444         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24445         imported from the latest Autoconf git.  It was motivated by Emacs,
24446         which uses gnulib but does not need HAVE_STDBOOL_H.
24447
24448 2011-02-04  Bruno Haible  <bruno@clisp.org>
24449
24450         wcsnrtombs: Prepare for new module wwcsnrtombs.
24451         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24452         * lib/wcsnrtombs.c: Include it.
24453         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24454
24455         wcsrtombs: Prepare for new module wwcsrtombs.
24456         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24457         * lib/wcsrtombs.c: Include it.
24458         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24459
24460         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24461         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24462         * lib/mbsnrtowcs.c: Include it.
24463         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24464
24465         mbsrtowcs: Prepare for new module mbsrtowwcs.
24466         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24467         * lib/mbsrtowcs.c: Include it.
24468         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24469
24470 2011-02-04  Bruno Haible  <bruno@clisp.org>
24471
24472         vasnprintf: Reduce use of malloc for small format strings.
24473         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24474         (arguments): Add room for the first 7 arguments.
24475         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24476         (char_directives, u8_directives, u16_directives, u32_directives): Add
24477         room for the first 7 directives.
24478         * lib/printf-parse.c: Include <string.h>.
24479         (PRINTF_PARSE): Change memory handling code so that it uses the first
24480         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24481         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24482         Reported by Pádraig Brady <P@draigbrady.com>.
24483
24484 2011-01-31  Eric Blake  <eblake@redhat.com>
24485
24486         dup2: work around Haiku bug
24487         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24488         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24489         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24490         * tests/test-dup2.c (main): Enhance test.
24491
24492 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24493
24494         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24495         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24496         declared by eglibc 2.11.2.
24497         * lib/stdio.in.h: Likewise.
24498
24499 2011-01-31  Eric Blake  <eblake@redhat.com>
24500
24501         ignore-value: add missing test dependency
24502         * tests/test-ignore-value.c: Revert previous change; stdio.h
24503         provides off_t.
24504         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24505
24506 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24507
24508         mktime: clarify long_int width checking
24509         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24510         the top level, to make it clearer that the assumption about
24511         long_int width is being checked.  See
24512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24513
24514 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24515
24516         ignore-value: Fix self-test.
24517         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24518
24519 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24520
24521         TYPE_MAXIMUM: avoid theoretically undefined behavior
24522         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24523         negative number, which the C Standard says has undefined behavior.
24524         In practice this is not a problem, but might as well do it by the book.
24525         Reported by Rich Felker and Eric Blake; see
24526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24527         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24528         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24529         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24530         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24531         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24532         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24533
24534         mktime: #undef mktime before #defining it
24535         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24536
24537         mktime: systematically normalize tm_isdst comparisons
24538         * lib/mktime.c (isdst_differ): New function.
24539         (__mktime_internal): Use it systematically for all isdst comparisons.
24540         This completes the fix for libc BZ #6723, and removes the need for
24541         normalizing tm_isdst.  See
24542         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24543         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24544
24545         mktime: fix some integer overflow issues and sidestep the rest
24546
24547         This was prompted by a bug report by Benjamin Lindner for MinGW
24548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24549         His bug is due to signed integer overflow (0 - INT_MIN), and I
24550         I scanned through mktime.c looking for other integer overflow
24551         problems, fixing all the bugs I found.
24552
24553         Although the C Standard says the resulting code is still not safe
24554         in the presence of integer overflow, in practice it should be good
24555         enough for all real-world two's-complement implementations, except
24556         for debugging environments that deliberately trap on integer
24557         overflow (e.g., gcc -ftrapv).
24558
24559         * lib/mktime.c (WRAPV): New macro.
24560         (SHR): Also check that long_int and time_t shift right in the
24561         usual way, before using the fast-but-unportable method.
24562         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24563         used.  The code already assumed two's complement, so there's
24564         no need to test for alternatives.  All uses removed.
24565         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24566         the C standard.  Problem reported by Rich Felker in
24567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24568         (twos_complement_arithmetic): Also check long_int and time_t.
24569         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24570         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24571         (__mktime_internal): Avoid integer overflow with unary subtraction
24572         in two instances where -1 - X is an adequate replacement for -X,
24573         since the calculations are approximate.
24574
24575 2011-01-29  Eric Blake  <eblake@redhat.com>
24576
24577         mktime: avoid infinite loop
24578         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24579         type; behavior is still undefined but portable to all known targets.
24580         Reported by Rich Felker.
24581
24582 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24583
24584         rename, unlink, same-inode: Relicense.
24585         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24586         * modules/unlink (License): Likewise.
24587         * modules/same-inode (License): Likewise.
24588
24589 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24590
24591         mktime: avoid problems on NetBSD 5 / i386
24592         * lib/mktime.c (long_int): New type.  This works around a problem
24593         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24594         but time_t is 64 bits, and where I expect the existing code is
24595         wrong in some cases.
24596         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24597         (ydhms_diff): Bring back the compile-time check for wide-enough
24598         year and yday.
24599
24600         mktime: fix misspelling in comment
24601         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24602         This merges all recent glibc changes of importance.
24603
24604 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24605
24606         move-if-change: cope with concurrent mv of identical file.
24607         * build-aux/move-if-change (CMPPROG): Accept environment
24608         variable as an override for `cmp'.
24609         (usage): Document CMPPROG.
24610         Adjust comparison to drop stdout.  Cope with failure of mv if
24611         the target file exists and is identical to the source, for
24612         parallel builds.
24613         Report from H.J. Lu against binutils in PR binutils/12283.
24614
24615 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24616
24617         * users.txt: Mention sharutils.
24618
24619 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24620
24621         * users.txt: Mention OATH Toolkit.
24622
24623 2011-01-27  Bruno Haible  <bruno@clisp.org>
24624
24625         Prepare for supporting FreeBSD 10.
24626         * build-aux/config.libpath: Remove handling of freebsd1*.
24627
24628 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24629
24630         Prepare for supporting FreeBSD 10.
24631         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24632         match FreeBSD 10.0.
24633
24634 2011-01-27  Bruno Haible  <bruno@clisp.org>
24635
24636         vma-iter, get-rusage-as: Add OpenBSD support.
24637         * modules/vma-iter (configure.ac): Test for mquery.
24638         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24639         * lib/vma-iter.c: Include <sys/mman.h>.
24640         (vma_iterate): Add an implementation based on mquery().
24641         * lib/resource-ext.h (get_rusage_as): Update comments.
24642         * lib/get-rusage-as.c: Likewise.
24643         * lib/get-rusage-data.c: Likewise.
24644
24645 2011-01-26  Karl Berry  <karl@gnu.org>
24646
24647         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24648         variables to make it easier to override the makeinfo program used.
24649
24650 2011-01-26  Eric Blake  <eblake@redhat.com>
24651
24652         fcntl: work around Haiku F_DUPFD bugs
24653         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24654         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24655         cloexec bit on duplication.
24656         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24657
24658 2011-01-26  Bruno Haible  <bruno@clisp.org>
24659
24660         Enable memory leak tests on AIX.
24661         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24662         * tests/test-fprintf-posix3.c (main): Likewise.
24663
24664 2011-01-26  Bruno Haible  <bruno@clisp.org>
24665
24666         Tests for module 'get-rusage-data'.
24667         * modules/get-rusage-data-tests: New file.
24668         * tests/test-get-rusage-data.c: New file.
24669
24670         New module 'get-rusage-data'.
24671         * lib/resource-ext.h (get_rusage_data): New declaration.
24672         * lib/get-rusage-data.c: New file.
24673         * modules/get-rusage-data: New file.
24674
24675 2011-01-25  Bruno Haible  <bruno@clisp.org>
24676
24677         get-rusage-as: Allow for easier testing.
24678         * lib/resource-ext.h (get_rusage_as): Add comment.
24679         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24680         (main): New function for interactive testing.
24681
24682 2011-01-25  Bruno Haible  <bruno@clisp.org>
24683
24684         vma-iter: Treat Haiku like BeOS.
24685         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24686         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24687
24688 2011-01-25  Eric Blake  <eblake@redhat.com>
24689
24690         c-stack: fix regression on cygwin when libsigsegv is present
24691         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24692
24693 2011-01-24  Bruno Haible  <bruno@clisp.org>
24694
24695         vma-iter: Avoid empty intervals.
24696         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24697         on an empty interval.
24698
24699 2011-01-24  Jim Meyering  <meyering@redhat.com>
24700
24701         u64: remove unnecessary #include
24702         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24703
24704 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24705
24706         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24707         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24708
24709 2011-01-23  Bruno Haible  <bruno@clisp.org>
24710
24711         New module 'vma-iter'.
24712         * lib/vma-iter.h: New file.
24713         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24714         * modules/vma-iter: New file.
24715         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24716         for get_rusage_as_via_iterator.
24717         (vma_iterate_callback): New function.
24718         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24719         * modules/get-rusage-as (Depends-on): Add vma-iter.
24720
24721 2011-01-23  Bruno Haible  <bruno@clisp.org>
24722
24723         uninorm: Tweak includes.
24724         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24725         Reported by Jim Meyering.
24726
24727 2011-01-23  Bruno Haible  <bruno@clisp.org>
24728
24729         get-rusage-as: Improve on NetBSD.
24730         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24731         /proc, like on FreeBSD.
24732
24733 2011-01-23  Jim Meyering  <meyering@redhat.com>
24734
24735         xreadlink.h: remove unnecessary #include
24736         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24737
24738         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24739         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24740
24741 2011-01-23  Bruno Haible  <bruno@clisp.org>
24742
24743         get-rusage-as: Fix bug.
24744         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24745         original limit when aborting the first loop.
24746
24747 2011-01-23  Bruno Haible  <bruno@clisp.org>
24748
24749         wctype: Ensure valid C syntax.
24750         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24751         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24752
24753 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24754
24755         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24757         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24758         as they are needed only for configure's test case.
24759         This removes two unnecessary symbols from config.h.
24760
24761         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24762         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24763         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24764         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24765         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24766         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24767         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24768         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24769         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24770         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24771         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24772         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24773         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24774         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24775         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24776         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24777         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24778         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24779
24780 2011-01-21  Eric Blake  <eblake@redhat.com>
24781
24782         maintainer-makefile: work with older git for submodule check
24783         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24784         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24785         Reported by Matthias Bolte.
24786
24787         bootstrap: minor portability fixes
24788         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24789         (usage): Omit leading capital and trailing . on help phrases, per
24790         GNU Coding Standards.
24791         (check_versions, top level): Prefix messages with script name.
24792
24793 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24794
24795         bootstrap: support --no-git option
24796         * build-aux/bootstrap: Add --no-git option, to be used when
24797         --gnulib-srcdir points to the exact desired checkout.
24798
24799 2011-01-21  Eric Blake  <eblake@redhat.com>
24800
24801         strerror_r-posix: work with glibc 2.13
24802         * lib/strerror_r.c (strerror_r): Fix return type.
24803
24804 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24805             Bruno Haible  <bruno@clisp.org>
24806
24807         uN_strstr: New unit tests.
24808         * modules/unistr/u8-strstr-tests: New file.
24809         * modules/unistr/u16-strstr-tests: New file.
24810         * modules/unistr/u32-strstr-tests: New file.
24811         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24812         * tests/unistr/test-u8-strstr.c: New file.
24813         * tests/unistr/test-u16-strstr.c: New file.
24814         * tests/unistr/test-u32-strstr.c: New file.
24815
24816 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24817             Bruno Haible  <bruno@clisp.org>
24818
24819         Make uN_strstr functions O(n) worst-case.
24820         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24821         16-bit and 32-bit unit cases, use the unibyte algorithm from
24822         lib/mbsstr.c.
24823         * lib/unistr/u8-strstr.c: Include <string.h>.
24824         (UNIT_IS_UINT8_T): New macro.
24825         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24826         (U_STRLEN, U_STRNLEN): New macros.
24827         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24828         (U_STRLEN, U_STRNLEN): New macros.
24829         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24830         (configure.ac): Update required libunistring version.
24831         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24832         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24833         malloca.
24834         (configure.ac): Update required libunistring version.
24835         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24836         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24837         malloca.
24838         (configure.ac): Update required libunistring version.
24839
24840 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24841             Bruno Haible  <bruno@clisp.org>
24842
24843         Prepare for faster uN_strstr functions.
24844         * lib/str-kmp.h: Support definable UNITs.
24845         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24846         needle_len argument.
24847         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24848         * lib/mbscasestr.c (mbscasestr): Likewise.
24849
24850 2011-01-21  Pádraig Brady <P@draigBrady.com>
24851
24852         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24853         * tests/test-malloca.c (main): Unset the environment variable
24854         to greatly speed up the test.
24855         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24856         * modules/malloca-tests: Depend on unsetenv.
24857
24858 2011-01-21  Pádraig Brady <P@draigBrady.com>
24859
24860         ignore-value: remove stdint dependency
24861         * lib/ignore-value.h: Remove <stdint.h>
24862         * modules/ignore-value: Remove stdint dependency.
24863
24864 2011-01-21  Jim Meyering  <meyering@redhat.com>
24865
24866         maint.mk: adjust variable name to be consistent with other gl_ vars
24867         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24868         to be lower case.
24869
24870 2011-01-20  Jim Meyering  <meyering@redhat.com>
24871
24872         maint.mk: make "check" depend on public-submodule-commit by default
24873         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24874
24875 2011-01-20  Bruno Haible  <bruno@clisp.org>
24876
24877         mbfile, mbiter: Complete change from 2008-12-21.
24878         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24879         * m4/mbiter.m4 (gl_MBITER): Likewise.
24880
24881 2011-01-20  Jim Meyering  <meyering@redhat.com>
24882
24883         init.sh: insert space between each function name and "()"
24884         * tests/init.sh: Make it a little easier to see that a function's
24885         name is "warn_", and not "warn" when looking at the first part of
24886         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24887
24888 2011-01-20  Jim Meyering  <meyering@redhat.com>
24889
24890         mountlist: clean up code formatting
24891         * lib/mountlist.c (read_file_system_list): Split a long line,
24892         correct bracing style, use NULL in place of "(struct statfs *)0",
24893         don't parenthesize return value, add spaces around "=" and after
24894         ";-in-for-stmt".
24895
24896 2011-01-14  Markus Duft <mduft@gentoo.org>
24897
24898         mountlist: add support for Interix
24899         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24900         Apply statvfs to all entries of /dev/fs.
24901         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24902         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24903
24904 2011-01-20  Jim Meyering  <meyering@redhat.com>
24905
24906         maint.mk: improve the public-submodule-commit rule
24907         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24908         to suppress printing of its commands... unless V=1.
24909         Add git submodule's --quiet option to suppress printing of e.g.,
24910         "Entering gnulib" output.
24911         "cd" into $(srcdir) before running git submodule.
24912
24913 2011-01-20  Bruno Haible  <bruno@clisp.org>
24914
24915         include_next: Fix bug introduced on 2011-01-18.
24916         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24917         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24918         ac_cv_header_... variable if the second argument is not 'check'.
24919         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24920         gl_NEXT_HEADERS_INTERNAL.
24921
24922 2011-01-20  Bruno Haible  <bruno@clisp.org>
24923
24924         Allow the user to avoid the GNULIB_TEST_* macros.
24925         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24926         Suggested by Paul Eggert.
24927
24928 2011-01-14  Jim Meyering  <meyering@redhat.com>
24929
24930         bootstrap: avoid failure when there is no .gitmodules file
24931         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24932         has been assigned to, even when its value is the empty string.
24933         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24934         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24935         Reported by John W. Eaton <jwe@gnu.org>.
24936
24937 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24938
24939         assume <ctype.h>, ..., <time.h> exist
24940         For years gnulib has been assuming the existence of the headers
24941         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24942         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24943         them, since they don't appear to be needed.
24944         * README (Portability guidelines): Document this.
24945         * lib/flock.c: Assume <fcntl.h> exists.
24946         * lib/regex_internal.h: Assume <locale.h> exists.
24947         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24948         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24949         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24950         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24951         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24952         * m4/regex.m4 (gl_REGEX): Likewise.
24953         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24954         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24955         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24956         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24957         * tests/test-argp.c: Likewise.
24958         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24959
24960         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24961         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24962         AA_APPLE_UNIVERSAL_BUILD.  See
24963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24964         * NEWS: Document this.
24965
24966 2011-01-19  Eric Blake  <eblake@redhat.com>
24967
24968         c-stack: assume stack overflow if SA_SIGINFO unsupported
24969         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24970         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24971         sigaction will work.
24972         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24973         behavior match Linux.
24974         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24975
24976         stdbool-tests: accommodate Haiku
24977         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24978
24979         binary-io: fix O_TEXT on Haiku
24980         * modules/binary-io (Depends-on): Add fcntl-h.
24981         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24982         than blindly undefining O_TEXT.
24983         Reported by Scott McCreary.
24984
24985 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24986
24987         include_next: do not check for standard headers like stddef.h
24988
24989         I found this problem when modifying Emacs to use gnulib.
24990         I noticed that it added HAVE_STDDEF_H to config.h, even though
24991         gnulib always assumes <stddef.h> exists as per README and this
24992         symbol is unnecessary.
24993         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24994         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24995         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24996         faster for headers like stddef.h that are known to exist.
24997         (gl_CHECK_NEXT_HEADERS): Use it.
24998         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24999         rather than gl_CHECK_NEXT_HEADERS.
25000         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25001         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25002
25003 2011-01-18  Eric Blake  <eblake@redhat.com>
25004
25005         ansi-c++-opt: skip C++ dependency style if C++ is unused
25006         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25007         tests when we know C++ compilation is not desired.
25008         Reported by Scott McCreary.
25009
25010 2011-01-18  Bruno Haible  <bruno@clisp.org>
25011
25012         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25013         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25014         (main): Perform test also when getrlimit and setrlimit don't exist or
25015         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25016         limiting the address space size using setrlimit, compare the address
25017         space size before and after the the test.
25018         * tests/test-dprintf-posix2.c: Likewise.
25019         * tests/test-fprintf-posix3.sh: Update skip messages.
25020         * tests/test-dprintf-posix2.sh: Likewise.
25021         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25022         * modules/dprintf-posix-tests (Depends-on): Likewise.
25023         Reported by Bruce Korb <bkorb@gnu.org> and
25024         Gary V. Vaughan <gary@gnu.org>.
25025
25026 2011-01-18  Bruno Haible  <bruno@clisp.org>
25027
25028         get-rusage-as: Improvement for Cygwin.
25029         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25030         areas that are merely reserved.
25031
25032 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25033
25034         strftime: remove dependencies on multibyte modules
25035
25036         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25037         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25038         only if __osf__ is defined, and I suspect OSF doesn't need these
25039         other modules.  If my guess is wrong, we'll need to come up with a
25040         variant of strftime that doesn't need the multibyte modules.
25041
25042         I discovered this problem when attempting modify Emacs to use the
25043         strftime module.  With the previous gnulib, this caused Emacs to
25044         need 31 new files, ranging from lib/config.charset to
25045         m4/wint_t.m4.  This was overkill and I expect would be offputting
25046         to the Emacs maintainers.  After this change, only 6 new files are
25047         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25048         stdbool.m4, and tm_gmtoff.m4.
25049
25050         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25051         Suggested by Bruno Haible in
25052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25053         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25054         and do not check for wchar.h.
25055         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25056         (Depends-on): Remove mbrlen, mbsinit, wchar.
25057
25058 2011-01-18  Bruno Haible  <bruno@clisp.org>
25059
25060         Tests for module 'get-rusage-as'.
25061         * modules/get-rusage-as-tests: New file.
25062         * tests/test-get-rusage-as.c: New file.
25063
25064         New module 'get-rusage-as'.
25065         * modules/get-rusage-as: New file.
25066         * lib/resource-ext.h: New file.
25067         * lib/get-rusage-as.c: New file.
25068
25069 2011-01-17  Eric Blake  <eblake@redhat.com>
25070
25071         sigaction: relax license from LGPLv3+ to LGPLv2+
25072         * modules/sigaction (License): Relax to LGPLv2+.
25073
25074 2011-01-14  Bruno Haible  <bruno@clisp.org>
25075
25076         filemode: Make function declarations usable in C++ mode.
25077         * lib/filemode.h: Enclose function declarations in extern "C" block.
25078         Reported by John W. Eaton <jwe@gnu.org>.
25079
25080 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25081
25082         save-cwd: no longer include "xgetcwd.h"
25083         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25084         This avoids a compilation failure in projects that use save-cwd
25085         without also using the xgetcwd module.
25086
25087 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25088
25089         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25090         This is so that a program like Emacs, which needs only dtoastr,
25091         does not have to bother with distributing and compiling ftoastr
25092         and ldtoastr.
25093         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25094         * modules/dtoastr, modules/ldtoastr: New files.
25095         * modules/ftoastr: Now works just for 'float'.
25096         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25097         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25098         dtoastr.c, ldtoastr.c.
25099
25100 2011-01-11  Jim Meyering  <meyering@redhat.com>
25101
25102         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25103         There is no need to work around the lack of the fchdir function,
25104         since gnulib can now provide a replacement when required.
25105         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25106         * modules/save-cwd (Depends-on): Add fchdir.
25107
25108 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25109
25110         openat, save-cwd: avoid xmalloc
25111
25112         This removes a direct (but undocumented) dependency of openat on
25113         xalloc, along with an indirect dependency via save-cwd.  It also
25114         removes a dependency of save-cwd on xgetcwd, and thereby
25115         indirectly on xalloc.  This change causes the openat substitute
25116         to fall back on save_cwd when memory is tight, and for save_cwd to
25117         fail instead of dying when memory is tight, but that's good enough.
25118         Problem and initial idea for fix reported by Bastien Roucaries in
25119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25120
25121         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25122         xalloc.h (for xmalloc).
25123         (openat_proc_name): Use malloc, not xmalloc.
25124         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25125         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25126
25127         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25128         This avoids heap allocation for file names whose lengths are in
25129         the range 512..1023, with the upper bound increasing to at most
25130         4031 depending on the platform's PATH_MAX.  (We do not want
25131         pathmax.h here as it might supply a non-constant PATH_MAX.)
25132         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25133         Perhaps they should be moved to malloca.h?
25134         (OPENAT_BUFFER_SIZE): Use them.
25135
25136 2011-01-10  Bruno Haible  <bruno@clisp.org>
25137
25138         doc: Update users.txt.
25139         * users.txt: Add recutils.
25140
25141 2011-01-09  Karl Berry  <karl@gnu.org>
25142
25143         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25144
25145         * doc/configmake.texi: New file.
25146         * doc/gnulib.texi: Include it.
25147         * modules/configmake: Move documentation from here.
25148
25149 2011-01-09  Bruno Haible  <bruno@clisp.org>
25150
25151         Update to Unicode 6.0.0.
25152         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25153         (get_lbp): Update for Unicode 6.0.0.
25154         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25155         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25156         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25157         U+11001, U+11038..U+11046. Remove U+06DE.
25158         (uc_width): Fix bounds of planes.
25159         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25160         lib/uniwidth/width.c.
25161         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25162         trailing whitespace removed.
25163         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25164         without comments, but with the original copyright notice.
25165         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25166         * lib/unicase/ignorable.h: Likewise.
25167         * lib/unicase/tocasefold.h: Likewise.
25168         * lib/unicase/tolower.h: Likewise.
25169         * lib/unicase/totitle.h: Likewise.
25170         * lib/unicase/toupper.h: Likewise.
25171         * lib/unictype/bidi_of.h: Likewise.
25172         * lib/unictype/blocks.h: Likewise.
25173         * lib/unictype/categ_C.h: Likewise.
25174         * lib/unictype/categ_Cn.h: Likewise.
25175         * lib/unictype/categ_L.h: Likewise.
25176         * lib/unictype/categ_Ll.h: Likewise.
25177         * lib/unictype/categ_Lm.h: Likewise.
25178         * lib/unictype/categ_Lo.h: Likewise.
25179         * lib/unictype/categ_Lu.h: Likewise.
25180         * lib/unictype/categ_M.h: Likewise.
25181         * lib/unictype/categ_Mc.h: Likewise.
25182         * lib/unictype/categ_Me.h: Likewise.
25183         * lib/unictype/categ_Mn.h: Likewise.
25184         * lib/unictype/categ_N.h: Likewise.
25185         * lib/unictype/categ_Nd.h: Likewise.
25186         * lib/unictype/categ_No.h: Likewise.
25187         * lib/unictype/categ_P.h: Likewise.
25188         * lib/unictype/categ_Po.h: Likewise.
25189         * lib/unictype/categ_S.h: Likewise.
25190         * lib/unictype/categ_Sc.h: Likewise.
25191         * lib/unictype/categ_Sk.h: Likewise.
25192         * lib/unictype/categ_Sm.h: Likewise.
25193         * lib/unictype/categ_So.h: Likewise.
25194         * lib/unictype/categ_of.h: Likewise.
25195         * lib/unictype/combining.h: Likewise.
25196         * lib/unictype/ctype_alnum.h: Likewise.
25197         * lib/unictype/ctype_alpha.h: Likewise.
25198         * lib/unictype/ctype_graph.h: Likewise.
25199         * lib/unictype/ctype_lower.h: Likewise.
25200         * lib/unictype/ctype_print.h: Likewise.
25201         * lib/unictype/ctype_punct.h: Likewise.
25202         * lib/unictype/ctype_upper.h: Likewise.
25203         * lib/unictype/decdigit.h: Likewise.
25204         * lib/unictype/digit.h: Likewise.
25205         * lib/unictype/numeric.h: Likewise.
25206         * lib/unictype/pr_alphabetic.h: Likewise.
25207         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25208         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25209         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25210         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25211         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25212         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25213         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25214         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25215         * lib/unictype/pr_case_ignorable.h: Likewise.
25216         * lib/unictype/pr_cased.h: Likewise.
25217         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25218         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25219         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25220         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25221         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25222         * lib/unictype/pr_combining.h: Likewise.
25223         * lib/unictype/pr_composite.h: Likewise.
25224         * lib/unictype/pr_currency_symbol.h: Likewise.
25225         * lib/unictype/pr_decimal_digit.h: Likewise.
25226         * lib/unictype/pr_deprecated.h: Likewise.
25227         * lib/unictype/pr_format_control.h: Likewise.
25228         * lib/unictype/pr_grapheme_base.h: Likewise.
25229         * lib/unictype/pr_grapheme_extend.h: Likewise.
25230         * lib/unictype/pr_grapheme_link.h: Likewise.
25231         * lib/unictype/pr_id_continue.h: Likewise.
25232         * lib/unictype/pr_id_start.h: Likewise.
25233         * lib/unictype/pr_ideographic.h: Likewise.
25234         * lib/unictype/pr_lowercase.h: Likewise.
25235         * lib/unictype/pr_math.h: Likewise.
25236         * lib/unictype/pr_numeric.h: Likewise.
25237         * lib/unictype/pr_other_alphabetic.h: Likewise.
25238         * lib/unictype/pr_other_id_continue.h: Likewise.
25239         * lib/unictype/pr_other_math.h: Likewise.
25240         * lib/unictype/pr_punctuation.h: Likewise.
25241         * lib/unictype/pr_sentence_terminal.h: Likewise.
25242         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25243         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25244         * lib/unictype/pr_unified_ideograph.h: Likewise.
25245         * lib/unictype/pr_uppercase.h: Likewise.
25246         * lib/unictype/pr_xid_continue.h: Likewise.
25247         * lib/unictype/pr_xid_start.h: Likewise.
25248         * lib/unictype/scripts.h: Likewise.
25249         * lib/unictype/scripts_byname.gperf: Likewise.
25250         * lib/unictype/sy_java_ident.h: Likewise.
25251         * lib/unigbrk/gbrkprop.h: Likewise.
25252         * lib/unilbrk/lbrkprop1.h: Likewise.
25253         * lib/unilbrk/lbrkprop2.h: Likewise.
25254         * lib/uninorm/decomposition-table2.h: Likewise.
25255         * lib/uniwbrk/wbrkprop.h: Likewise.
25256         * tests/unicase/test-cased.c: Likewise.
25257         * tests/unicase/test-ignorable.c: Likewise.
25258         * tests/unicase/test-uc_tolower.c: Likewise.
25259         * tests/unicase/test-uc_totitle.c: Likewise.
25260         * tests/unicase/test-uc_toupper.c: Likewise.
25261         * tests/unictype/test-categ_C.c: Likewise.
25262         * tests/unictype/test-categ_Cn.c: Likewise.
25263         * tests/unictype/test-categ_L.c: Likewise.
25264         * tests/unictype/test-categ_Ll.c: Likewise.
25265         * tests/unictype/test-categ_Lm.c: Likewise.
25266         * tests/unictype/test-categ_Lo.c: Likewise.
25267         * tests/unictype/test-categ_Lu.c: Likewise.
25268         * tests/unictype/test-categ_M.c: Likewise.
25269         * tests/unictype/test-categ_Mc.c: Likewise.
25270         * tests/unictype/test-categ_Me.c: Likewise.
25271         * tests/unictype/test-categ_Mn.c: Likewise.
25272         * tests/unictype/test-categ_N.c: Likewise.
25273         * tests/unictype/test-categ_Nd.c: Likewise.
25274         * tests/unictype/test-categ_No.c: Likewise.
25275         * tests/unictype/test-categ_P.c: Likewise.
25276         * tests/unictype/test-categ_Po.c: Likewise.
25277         * tests/unictype/test-categ_S.c: Likewise.
25278         * tests/unictype/test-categ_Sc.c: Likewise.
25279         * tests/unictype/test-categ_Sk.c: Likewise.
25280         * tests/unictype/test-categ_Sm.c: Likewise.
25281         * tests/unictype/test-categ_So.c: Likewise.
25282         * tests/unictype/test-ctype_alnum.c: Likewise.
25283         * tests/unictype/test-ctype_alpha.c: Likewise.
25284         * tests/unictype/test-ctype_graph.c: Likewise.
25285         * tests/unictype/test-ctype_lower.c: Likewise.
25286         * tests/unictype/test-ctype_print.c: Likewise.
25287         * tests/unictype/test-ctype_punct.c: Likewise.
25288         * tests/unictype/test-ctype_upper.c: Likewise.
25289         * tests/unictype/test-decdigit.h: Likewise.
25290         * tests/unictype/test-digit.h: Likewise.
25291         * tests/unictype/test-numeric.h: Likewise.
25292         * tests/unictype/test-pr_alphabetic.c: Likewise.
25293         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25294         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25295         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25296         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25297         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25298         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25299         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25300         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25301         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25302         * tests/unictype/test-pr_cased.c: Likewise.
25303         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25304         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25305         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25306         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25307         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25308         * tests/unictype/test-pr_combining.c: Likewise.
25309         * tests/unictype/test-pr_composite.c: Likewise.
25310         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25311         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25312         * tests/unictype/test-pr_deprecated.c: Likewise.
25313         * tests/unictype/test-pr_format_control.c: Likewise.
25314         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25315         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25316         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25317         * tests/unictype/test-pr_id_continue.c: Likewise.
25318         * tests/unictype/test-pr_id_start.c: Likewise.
25319         * tests/unictype/test-pr_ideographic.c: Likewise.
25320         * tests/unictype/test-pr_lowercase.c: Likewise.
25321         * tests/unictype/test-pr_math.c: Likewise.
25322         * tests/unictype/test-pr_numeric.c: Likewise.
25323         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25324         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25325         * tests/unictype/test-pr_other_math.c: Likewise.
25326         * tests/unictype/test-pr_punctuation.c: Likewise.
25327         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25328         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25329         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25330         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25331         * tests/unictype/test-pr_uppercase.c: Likewise.
25332         * tests/unictype/test-pr_xid_continue.c: Likewise.
25333         * tests/unictype/test-pr_xid_start.c: Likewise.
25334         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25335         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25336         changes.
25337         * lib/unictype/categ_Cc.h: Likewise.
25338         * lib/unictype/categ_Cf.h: Likewise.
25339         * lib/unictype/categ_Co.h: Likewise.
25340         * lib/unictype/categ_Cs.h: Likewise.
25341         * lib/unictype/categ_Lt.h: Likewise.
25342         * lib/unictype/categ_Nl.h: Likewise.
25343         * lib/unictype/categ_Pc.h: Likewise.
25344         * lib/unictype/categ_Pd.h: Likewise.
25345         * lib/unictype/categ_Pe.h: Likewise.
25346         * lib/unictype/categ_Pf.h: Likewise.
25347         * lib/unictype/categ_Pi.h: Likewise.
25348         * lib/unictype/categ_Ps.h: Likewise.
25349         * lib/unictype/categ_Z.h: Likewise.
25350         * lib/unictype/categ_Zl.h: Likewise.
25351         * lib/unictype/categ_Zp.h: Likewise.
25352         * lib/unictype/categ_Zs.h: Likewise.
25353         * lib/unictype/ctype_blank.h: Likewise.
25354         * lib/unictype/ctype_cntrl.h: Likewise.
25355         * lib/unictype/ctype_digit.h: Likewise.
25356         * lib/unictype/ctype_space.h: Likewise.
25357         * lib/unictype/ctype_xdigit.h: Likewise.
25358         * lib/unictype/mirror.h: Likewise.
25359         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25360         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25361         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25362         * lib/unictype/pr_bidi_control.h: Likewise.
25363         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25364         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25365         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25366         * lib/unictype/pr_bidi_pdf.h: Likewise.
25367         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25368         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25369         * lib/unictype/pr_dash.h: Likewise.
25370         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25371         * lib/unictype/pr_diacritic.h: Likewise.
25372         * lib/unictype/pr_extender.h: Likewise.
25373         * lib/unictype/pr_hex_digit.h: Likewise.
25374         * lib/unictype/pr_hyphen.h: Likewise.
25375         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25376         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25377         * lib/unictype/pr_ignorable_control.h: Likewise.
25378         * lib/unictype/pr_iso_control.h: Likewise.
25379         * lib/unictype/pr_join_control.h: Likewise.
25380         * lib/unictype/pr_left_of_pair.h: Likewise.
25381         * lib/unictype/pr_line_separator.h: Likewise.
25382         * lib/unictype/pr_logical_order_exception.h: Likewise.
25383         * lib/unictype/pr_non_break.h: Likewise.
25384         * lib/unictype/pr_not_a_character.h: Likewise.
25385         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25386         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25387         * lib/unictype/pr_other_id_start.h: Likewise.
25388         * lib/unictype/pr_other_lowercase.h: Likewise.
25389         * lib/unictype/pr_other_uppercase.h: Likewise.
25390         * lib/unictype/pr_paired_punctuation.h: Likewise.
25391         * lib/unictype/pr_paragraph_separator.h: Likewise.
25392         * lib/unictype/pr_pattern_syntax.h: Likewise.
25393         * lib/unictype/pr_pattern_white_space.h: Likewise.
25394         * lib/unictype/pr_private_use.h: Likewise.
25395         * lib/unictype/pr_quotation_mark.h: Likewise.
25396         * lib/unictype/pr_radical.h: Likewise.
25397         * lib/unictype/pr_soft_dotted.h: Likewise.
25398         * lib/unictype/pr_space.h: Likewise.
25399         * lib/unictype/pr_titlecase.h: Likewise.
25400         * lib/unictype/pr_variation_selector.h: Likewise.
25401         * lib/unictype/pr_white_space.h: Likewise.
25402         * lib/unictype/pr_zero_width.h: Likewise.
25403         * lib/unictype/sy_c_ident.h: Likewise.
25404         * lib/unictype/sy_c_whitespace.h: Likewise.
25405         * lib/unictype/sy_java_whitespace.h: Likewise.
25406         * lib/uninorm/composition-table.gperf: Likewise.
25407         * lib/uninorm/decomposition-table1.h: Likewise.
25408         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25409         LB8.
25410         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25411         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25412         * modules/unictype/*: Bump version number of expected libunistring
25413         version.
25414
25415 2011-01-09  Bruno Haible  <bruno@clisp.org>
25416
25417         Update to Unicode 5.2.0.
25418         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25419         trailing whitespace removed.
25420
25421 2011-01-09  Bruno Haible  <bruno@clisp.org>
25422
25423         New Unicode character properties, from Unicode 5.2.0.
25424         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25425         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25426         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25427         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25428         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25429         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25430         uc_is_property_cased, uc_is_property_case_ignorable,
25431         uc_is_property_changes_when_lowercased,
25432         uc_is_property_changes_when_uppercased,
25433         uc_is_property_changes_when_titlecased,
25434         uc_is_property_changes_when_casefolded,
25435         uc_is_property_changes_when_casemapped): New declarations.
25436         * lib/unictype/pr_byname.gperf: Add the new properties.
25437         * modules/unictype/property-byname (Depends-on): Depend on the new
25438         properties modules.
25439         * modules/unictype/property-all (Depends-on): Likewise.
25440         * MODULES.html.sh (Unicode string functions): Add
25441         unictype/property-case-ignorable, unictype/property-cased,
25442         unictype/property-changes-when-casefolded,
25443         unictype/property-changes-when-casemapped,
25444         unictype/property-changes-when-lowercased,
25445         unictype/property-changes-when-titlecased,
25446         unictype/property-changes-when-uppercased.
25447
25448         New module 'unictype/property-changes-when-casemapped'.
25449         * modules/unictype/property-changes-when-casemapped: New file.
25450         * lib/unictype/pr_changes_when_casemapped.c: New file.
25451         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25452         generated by gen-uni-tables.
25453         * modules/unictype/property-changes-when-casemapped-tests: New file.
25454         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25455         automatically generated by gen-uni-tables.
25456
25457         New module 'unictype/property-changes-when-casefolded'.
25458         * modules/unictype/property-changes-when-casefolded: New file.
25459         * lib/unictype/pr_changes_when_casefolded.c: New file.
25460         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25461         generated by gen-uni-tables.
25462         * modules/unictype/property-changes-when-casefolded-tests: New file.
25463         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25464         automatically generated by gen-uni-tables.
25465
25466         New module 'unictype/property-changes-when-titlecased'.
25467         * modules/unictype/property-changes-when-titlecased: New file.
25468         * lib/unictype/pr_changes_when_titlecased.c: New file.
25469         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25470         generated by gen-uni-tables.
25471         * modules/unictype/property-changes-when-titlecased-tests: New file.
25472         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25473         automatically generated by gen-uni-tables.
25474
25475         New module 'unictype/property-changes-when-uppercased'.
25476         * modules/unictype/property-changes-when-uppercased: New file.
25477         * lib/unictype/pr_changes_when_uppercased.c: New file.
25478         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25479         generated by gen-uni-tables.
25480         * modules/unictype/property-changes-when-uppercased-tests: New file.
25481         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25482         automatically generated by gen-uni-tables.
25483
25484         New module 'unictype/property-changes-when-lowercased'.
25485         * modules/unictype/property-changes-when-lowercased: New file.
25486         * lib/unictype/pr_changes_when_lowercased.c: New file.
25487         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25488         generated by gen-uni-tables.
25489         * modules/unictype/property-changes-when-lowercased-tests: New file.
25490         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25491         automatically generated by gen-uni-tables.
25492
25493         New module 'unictype/property-case-ignorable'.
25494         * modules/unictype/property-case-ignorable: New file.
25495         * lib/unictype/pr_case_ignorable.c: New file.
25496         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25497         by gen-uni-tables.
25498         * modules/unictype/property-case-ignorable-tests: New file.
25499         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25500         generated by gen-uni-tables.
25501
25502         New module 'unictype/property-cased'.
25503         * modules/unictype/property-cased: New file.
25504         * lib/unictype/pr_cased.c: New file.
25505         * lib/unictype/pr_cased.h: New file, automatically generated by
25506         gen-uni-tables.
25507         * modules/unictype/property-cased-tests: New file.
25508         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25509         gen-uni-tables.
25510
25511 2011-01-09  Bruno Haible  <bruno@clisp.org>
25512
25513         Update to Unicode 5.2.0.
25514         * lib/gen-uni-tables.c (output_predicate, output_category,
25515         output_combclass, output_bidi_category, output_decimal_digit_test,
25516         output_decimal_digit, output_digit_test, output_digit,
25517         output_numeric_test, output_numeric, output_mirror, output_scripts,
25518         output_scripts_byname, output_blocks, output_ident_category): Fix
25519         comment header.
25520         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25521         get_wbp.
25522         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25523         items.
25524         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25525         Changes_When_Lowercased, Changes_When_Uppercased,
25526         Changes_When_Titlecased, Changes_When_Casefolded,
25527         Changes_When_Casemapped.
25528         (is_property_alphabetic, is_property_default_ignorable_code_point):
25529         Update for Unicode 5.2.0.
25530         (is_property_cased, is_property_case_ignorable,
25531         is_property_changes_when_lowercased,
25532         is_property_changes_when_uppercased,
25533         is_property_changes_when_titlecased,
25534         is_property_changes_when_casefolded,
25535         is_property_changes_when_casemapped): New functions.
25536         (output_properties): Output also the properties cased, case_ignorable,
25537         changes_when_lowercased, changes_when_uppercased,
25538         changes_when_titlecased, changes_when_casefolded,
25539         changes_when_casemapped.
25540         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25541         Unicode TR#11 revision 17 -> 19.
25542         (LBP_CP): New enumeration value.
25543         (LBP_*): Adjust values accordingly.
25544         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25545         TR#14 revision 22 -> 24.
25546         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25547         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25548         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25549         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25550         is_WBP_MIDLETTER.
25551         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25552         the code1 and code2 of each composition rule.
25553         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25554         * lib/unicase/ignorable.h: Likewise.
25555         * lib/unicase/tocasefold.h: Likewise.
25556         * lib/unicase/tolower.h: Likewise.
25557         * lib/unicase/totitle.h: Likewise.
25558         * lib/unicase/toupper.h: Likewise.
25559         * lib/unictype/bidi_of.h: Likewise.
25560         * lib/unictype/blocks.h: Likewise.
25561         * lib/unictype/categ_C.h: Likewise.
25562         * lib/unictype/categ_Cf.h: Likewise.
25563         * lib/unictype/categ_Cn.h: Likewise.
25564         * lib/unictype/categ_L.h: Likewise.
25565         * lib/unictype/categ_Ll.h: Likewise.
25566         * lib/unictype/categ_Lm.h: Likewise.
25567         * lib/unictype/categ_Lo.h: Likewise.
25568         * lib/unictype/categ_Lu.h: Likewise.
25569         * lib/unictype/categ_M.h: Likewise.
25570         * lib/unictype/categ_Mc.h: Likewise.
25571         * lib/unictype/categ_Mn.h: Likewise.
25572         * lib/unictype/categ_N.h: Likewise.
25573         * lib/unictype/categ_Nd.h: Likewise.
25574         * lib/unictype/categ_Nl.h: Likewise.
25575         * lib/unictype/categ_No.h: Likewise.
25576         * lib/unictype/categ_P.h: Likewise.
25577         * lib/unictype/categ_Pd.h: Likewise.
25578         * lib/unictype/categ_Po.h: Likewise.
25579         * lib/unictype/categ_S.h: Likewise.
25580         * lib/unictype/categ_Sc.h: Likewise.
25581         * lib/unictype/categ_So.h: Likewise.
25582         * lib/unictype/categ_of.h: Likewise.
25583         * lib/unictype/combining.h: Likewise.
25584         * lib/unictype/ctype_alnum.h: Likewise.
25585         * lib/unictype/ctype_alpha.h: Likewise.
25586         * lib/unictype/ctype_graph.h: Likewise.
25587         * lib/unictype/ctype_lower.h: Likewise.
25588         * lib/unictype/ctype_print.h: Likewise.
25589         * lib/unictype/ctype_punct.h: Likewise.
25590         * lib/unictype/ctype_upper.h: Likewise.
25591         * lib/unictype/decdigit.h: Likewise.
25592         * lib/unictype/digit.h: Likewise.
25593         * lib/unictype/numeric.h: Likewise.
25594         * lib/unictype/pr_alphabetic.h: Likewise.
25595         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25596         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25597         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25598         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25599         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25600         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25601         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25602         * lib/unictype/pr_combining.h: Likewise.
25603         * lib/unictype/pr_composite.h: Likewise.
25604         * lib/unictype/pr_currency_symbol.h: Likewise.
25605         * lib/unictype/pr_dash.h: Likewise.
25606         * lib/unictype/pr_decimal_digit.h: Likewise.
25607         * lib/unictype/pr_deprecated.h: Likewise.
25608         * lib/unictype/pr_diacritic.h: Likewise.
25609         * lib/unictype/pr_extender.h: Likewise.
25610         * lib/unictype/pr_grapheme_base.h: Likewise.
25611         * lib/unictype/pr_grapheme_extend.h: Likewise.
25612         * lib/unictype/pr_grapheme_link.h: Likewise.
25613         * lib/unictype/pr_id_continue.h: Likewise.
25614         * lib/unictype/pr_id_start.h: Likewise.
25615         * lib/unictype/pr_ideographic.h: Likewise.
25616         * lib/unictype/pr_ignorable_control.h: Likewise.
25617         * lib/unictype/pr_logical_order_exception.h: Likewise.
25618         * lib/unictype/pr_lowercase.h: Likewise.
25619         * lib/unictype/pr_numeric.h: Likewise.
25620         * lib/unictype/pr_other_alphabetic.h: Likewise.
25621         * lib/unictype/pr_punctuation.h: Likewise.
25622         * lib/unictype/pr_sentence_terminal.h: Likewise.
25623         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25624         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25625         * lib/unictype/pr_unified_ideograph.h: Likewise.
25626         * lib/unictype/pr_uppercase.h: Likewise.
25627         * lib/unictype/pr_xid_continue.h: Likewise.
25628         * lib/unictype/pr_xid_start.h: Likewise.
25629         * lib/unictype/pr_zero_width.h: Likewise.
25630         * lib/unictype/scripts.h: Likewise.
25631         * lib/unictype/scripts_byname.gperf: Likewise.
25632         * lib/unictype/sy_java_ident.h: Likewise.
25633         * lib/unigbrk/gbrkprop.h: Likewise.
25634         * lib/unilbrk/lbrkprop1.h: Likewise.
25635         * lib/unilbrk/lbrkprop2.h: Likewise.
25636         * lib/unilbrk/lbrktables.h: Likewise.
25637         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25638         LBP_CP. Implement rule LB30.
25639         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25640         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25641         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25642         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25643         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25644         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25645         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25646         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25647         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25648         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25649         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25650         bits instead of 16 bits in the code1 and code2 of each composition
25651         rule.
25652         (uc_composition): Update for Unicode 5.2.0.
25653         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25654         * lib/uninorm/decomposition-table2.h: Likewise.
25655         * lib/uniwbrk/wbrkprop.h: Likewise.
25656         * tests/unicase/test-cased.c: Likewise.
25657         * tests/unicase/test-ignorable.c: Likewise.
25658         * tests/unicase/test-uc_tolower.c: Likewise.
25659         * tests/unicase/test-uc_totitle.c: Likewise.
25660         * tests/unicase/test-uc_toupper.c: Likewise.
25661         * tests/unictype/test-categ_C.c: Likewise.
25662         * tests/unictype/test-categ_Cf.c: Likewise.
25663         * tests/unictype/test-categ_Cn.c: Likewise.
25664         * tests/unictype/test-categ_L.c: Likewise.
25665         * tests/unictype/test-categ_Ll.c: Likewise.
25666         * tests/unictype/test-categ_Lm.c: Likewise.
25667         * tests/unictype/test-categ_Lo.c: Likewise.
25668         * tests/unictype/test-categ_Lu.c: Likewise.
25669         * tests/unictype/test-categ_M.c: Likewise.
25670         * tests/unictype/test-categ_Mc.c: Likewise.
25671         * tests/unictype/test-categ_Mn.c: Likewise.
25672         * tests/unictype/test-categ_N.c: Likewise.
25673         * tests/unictype/test-categ_Nd.c: Likewise.
25674         * tests/unictype/test-categ_Nl.c: Likewise.
25675         * tests/unictype/test-categ_No.c: Likewise.
25676         * tests/unictype/test-categ_P.c: Likewise.
25677         * tests/unictype/test-categ_Pd.c: Likewise.
25678         * tests/unictype/test-categ_Po.c: Likewise.
25679         * tests/unictype/test-categ_S.c: Likewise.
25680         * tests/unictype/test-categ_Sc.c: Likewise.
25681         * tests/unictype/test-categ_So.c: Likewise.
25682         * tests/unictype/test-ctype_alnum.c: Likewise.
25683         * tests/unictype/test-ctype_alpha.c: Likewise.
25684         * tests/unictype/test-ctype_graph.c: Likewise.
25685         * tests/unictype/test-ctype_lower.c: Likewise.
25686         * tests/unictype/test-ctype_print.c: Likewise.
25687         * tests/unictype/test-ctype_punct.c: Likewise.
25688         * tests/unictype/test-ctype_upper.c: Likewise.
25689         * tests/unictype/test-decdigit.h: Likewise.
25690         * tests/unictype/test-digit.h: Likewise.
25691         * tests/unictype/test-numeric.h: Likewise.
25692         * tests/unictype/test-pr_alphabetic.c: Likewise.
25693         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25694         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25695         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25696         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25697         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25698         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25699         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25700         * tests/unictype/test-pr_combining.c: Likewise.
25701         * tests/unictype/test-pr_composite.c: Likewise.
25702         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25703         * tests/unictype/test-pr_dash.c: Likewise.
25704         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25705         * tests/unictype/test-pr_deprecated.c: Likewise.
25706         * tests/unictype/test-pr_diacritic.c: Likewise.
25707         * tests/unictype/test-pr_extender.c: Likewise.
25708         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25709         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25710         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25711         * tests/unictype/test-pr_id_continue.c: Likewise.
25712         * tests/unictype/test-pr_id_start.c: Likewise.
25713         * tests/unictype/test-pr_ideographic.c: Likewise.
25714         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25715         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25716         * tests/unictype/test-pr_lowercase.c: Likewise.
25717         * tests/unictype/test-pr_numeric.c: Likewise.
25718         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25719         * tests/unictype/test-pr_punctuation.c: Likewise.
25720         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25721         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25722         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25723         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25724         * tests/unictype/test-pr_uppercase.c: Likewise.
25725         * tests/unictype/test-pr_xid_continue.c: Likewise.
25726         * tests/unictype/test-pr_xid_start.c: Likewise.
25727         * tests/unictype/test-pr_zero_width.c: Likewise.
25728         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25729         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25730         changed behaviour: line breaking is now disallowed between a letter
25731         or '=' and '('.
25732         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25733         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25734         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25735         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25736         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25737         lib/uniwidth/width.c.
25738         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25739         without comments, but with the original copyright notice.
25740         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25741         changes.
25742         * lib/unictype/categ_Cc.h: Likewise.
25743         * lib/unictype/categ_Co.h: Likewise.
25744         * lib/unictype/categ_Cs.h: Likewise.
25745         * lib/unictype/categ_Lt.h: Likewise.
25746         * lib/unictype/categ_Me.h: Likewise.
25747         * lib/unictype/categ_Pc.h: Likewise.
25748         * lib/unictype/categ_Pe.h: Likewise.
25749         * lib/unictype/categ_Pf.h: Likewise.
25750         * lib/unictype/categ_Pi.h: Likewise.
25751         * lib/unictype/categ_Ps.h: Likewise.
25752         * lib/unictype/categ_Sk.h: Likewise.
25753         * lib/unictype/categ_Sm.h: Likewise.
25754         * lib/unictype/categ_Z.h: Likewise.
25755         * lib/unictype/categ_Zl.h: Likewise.
25756         * lib/unictype/categ_Zp.h: Likewise.
25757         * lib/unictype/categ_Zs.h: Likewise.
25758         * lib/unictype/ctype_blank.h: Likewise.
25759         * lib/unictype/ctype_cntrl.h: Likewise.
25760         * lib/unictype/ctype_digit.h: Likewise.
25761         * lib/unictype/ctype_space.h: Likewise.
25762         * lib/unictype/ctype_xdigit.h: Likewise.
25763         * lib/unictype/mirror.h: Likewise.
25764         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25765         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25766         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25767         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25768         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25769         * lib/unictype/pr_bidi_control.h: Likewise.
25770         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25771         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25772         * lib/unictype/pr_bidi_pdf.h: Likewise.
25773         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25774         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25775         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25776         * lib/unictype/pr_format_control.h: Likewise.
25777         * lib/unictype/pr_hex_digit.h: Likewise.
25778         * lib/unictype/pr_hyphen.h: Likewise.
25779         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25780         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25781         * lib/unictype/pr_iso_control.h: Likewise.
25782         * lib/unictype/pr_join_control.h: Likewise.
25783         * lib/unictype/pr_left_of_pair.h: Likewise.
25784         * lib/unictype/pr_line_separator.h: Likewise.
25785         * lib/unictype/pr_math.h: Likewise.
25786         * lib/unictype/pr_non_break.h: Likewise.
25787         * lib/unictype/pr_not_a_character.h: Likewise.
25788         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25789         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25790         * lib/unictype/pr_other_id_continue.h: Likewise.
25791         * lib/unictype/pr_other_id_start.h: Likewise.
25792         * lib/unictype/pr_other_lowercase.h: Likewise.
25793         * lib/unictype/pr_other_math.h: Likewise.
25794         * lib/unictype/pr_other_uppercase.h: Likewise.
25795         * lib/unictype/pr_paired_punctuation.h: Likewise.
25796         * lib/unictype/pr_paragraph_separator.h: Likewise.
25797         * lib/unictype/pr_pattern_syntax.h: Likewise.
25798         * lib/unictype/pr_pattern_white_space.h: Likewise.
25799         * lib/unictype/pr_private_use.h: Likewise.
25800         * lib/unictype/pr_quotation_mark.h: Likewise.
25801         * lib/unictype/pr_radical.h: Likewise.
25802         * lib/unictype/pr_soft_dotted.h: Likewise.
25803         * lib/unictype/pr_space.h: Likewise.
25804         * lib/unictype/pr_titlecase.h: Likewise.
25805         * lib/unictype/pr_variation_selector.h: Likewise.
25806         * lib/unictype/pr_white_space.h: Likewise.
25807         * lib/unictype/sy_c_ident.h: Likewise.
25808         * lib/unictype/sy_c_whitespace.h: Likewise.
25809         * lib/unictype/sy_java_whitespace.h: Likewise.
25810         * modules/uni*/*: Bump version number of expected libunistring version.
25811         Reported by Simon Josefsson.
25812
25813 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25814
25815         useless-if-before-free: fix typo in --help and make the internal,
25816         automatic version date update process work once again.
25817         --help output contained a NUL character instead of the
25818         backslash-zero that was intended.  Also, the "must lie within
25819         the first 8 lines" line is on line 9, and hence not getting
25820         automatically updated.
25821         * build-aux/useless-if-before-free: Fix the former by adding a
25822         backslash, and the latter by condensing the three lines of what-it-does
25823         to a single line, leaving one line of slack for the future.
25824
25825 2011-01-09  Bruno Haible  <bruno@clisp.org>
25826
25827         uniwidth/width: Fix width of U+1D173..U+1D17A.
25828         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25829         symbolic_width, output_width_property_test): New functions.
25830         (main): Invoke output_nonspacing_property, output_width_property_test.
25831         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25832         U+1D173..U+1D17A.
25833         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25834         1.
25835         * modules/uniwidth/*: Bump version number of expected libunistring
25836         version.
25837         * modules/unilbrk/*: Likewise.
25838
25839 2011-01-08  Bruno Haible  <bruno@clisp.org>
25840
25841         uninorm tests: Preserve copyright of Unicode data file.
25842         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25843         Mention modifications.
25844
25845 2011-01-08  Bruno Haible  <bruno@clisp.org>
25846
25847         gen-uni-tables: Prepare for Unicode 5.2.0.
25848         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25849         (debug_output_lbp, output_lbp): Update.
25850
25851 2011-01-08  Bruno Haible  <bruno@clisp.org>
25852
25853         unilbrk: Clarify gen-uni-tables.c code.
25854         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25855         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25856         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25857
25858 2011-01-07  Bruno Haible  <bruno@clisp.org>
25859
25860         strtod: Restore errno when successfully parsing Infinity or NaN.
25861         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25862         restore the original errno.
25863
25864 2011-01-07  Bruno Haible  <bruno@clisp.org>
25865
25866         remove test: Avoid failure on HP-UX 11.
25867         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25868
25869 2011-01-07  Bruno Haible  <bruno@clisp.org>
25870
25871         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25872         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25873         error code.
25874
25875 2011-01-07  Pádraig Brady <P@draigBrady.com>
25876
25877         ignore-value: fixup comments, and add Eric Blake
25878         as an author since he rewrote the macros.
25879         * lib/ignore-value.h (ignore_value):  State that
25880         we now support aggregates.  Also specify exactly
25881         when the GCC warn_unused_result feature was added.
25882
25883 2011-01-06  Eric Blake  <eblake@redhat.com>
25884
25885         ignore-value: support aggregate types
25886         * lib/ignore-value.h (ignore_value): Provide separate gcc
25887         definition.
25888         * modules/ignore-value-tests: New test module.
25889         * tests/test-ignore-value.c: New test.
25890
25891         maint.mk: improve sc_prohibit_strcmp regex
25892         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25893         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25894         definition of STRNEQ.
25895
25896         signal: work around Haiku issue with SIGBUS
25897         * lib/siglist.h: Add comment.
25898         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25899         strsignal's favoring of SIGSEGV.
25900         * tests/test-signal.c (main): Avoid test failure.
25901         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25902         Reported by Scott McCreary.
25903
25904         maint.mk: add pre-release check to ensure submodule commits are public
25905         * top/maint.mk (public-submodule-commit): New rule.
25906         (submodule-checks): New variable.
25907         (alpha beta stable): Depend on the variable.
25908
25909 2011-01-05  Pádraig Brady <P@draigBrady.com>
25910         and Jim Meyering  <meyering@redhat.com>
25911
25912         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25913         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25914         (ATTRIBUTE_DEPRECATED): Define.
25915         (_ignore_case): New function.
25916         (ignore_value): New macro, to replace the old function.
25917         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25918         * modules/ignore-value (Depends-on): Add stdint.
25919
25920 2011-01-04  Eric Blake  <eblake@redhat.com>
25921
25922         doc: regenerate INSTALL
25923         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25924         @firstparagraphindent support, now that autoconf dropped it.
25925         (INSTALL_PRELUDE): Reinstate old macro.
25926         * doc/install.texi: Resync from autoconf.
25927         * doc/INSTALL: Reflect recent autoconf update.
25928         * doc/INSTALL.ISO: Likewise.
25929         * doc/INSTALL.UTF-8: Likewise.
25930         Reported by Karl Berry.
25931
25932 2011-01-04  Bruce Korb  <address@hidden>
25933
25934         git-version-gen: avoid a sub-shell
25935         * build-aux/git-version-gen: Redirect stderr in `...` via
25936         "exec 2>...", rather than via an added sub-shell.
25937
25938 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25939
25940         git-version-gen: use (...) rather than sh -c '...'
25941         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25942         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25943
25944 2011-01-03  Jim Meyering  <meyering@redhat.com>
25945
25946         git-version-gen: convert leading TABs to spaces
25947         * build-aux/git-version-gen: Expand leading TABs.
25948
25949         git-version-gen: handle failed "git rev-list"
25950         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25951         from git and proceeding as if it had succeeded but printed no SHA1
25952         checksums, suppress the diagnostic and handle the failure.
25953         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25954
25955         git-version-gen: include command name in one more diagnostic
25956         * build-aux/git-version-gen: When the required .tarball-version file
25957         was missing or unreadable, you might see the diagnostic from "cat",
25958         but no trace of the name of the invoking script.  Now, you still see
25959         the diagnostic from cat, but also get one from "git-version-gen: ".
25960         Inspired by a patch from Bruce Korb.
25961
25962         update-copyright: adjust test to match changed code
25963         * tests/test-update-copyright.sh: Change test's expected output
25964         to match new actual output.
25965
25966 2011-01-02  Bruno Haible  <bruno@clisp.org>
25967
25968         getlogin_r: Avoid test failure on HP-UX 11.
25969         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25970         ERANGE when the second argument is zero.
25971         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25972         portability problem.
25973
25974 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25975
25976         * build-aux/update-copyright: doc Simon's changes
25977
25978 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25979
25980         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25981         environment variable.
25982
25983 2011-01-02  Bruno Haible  <bruno@clisp.org>
25984
25985         unigbrk: Avoid gcc warnings.
25986         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25987         unused variable.
25988         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25989         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25990         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25991         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25992         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25993         Change type of first argument to 'const char *'.
25994         (main): Remove unused variable.
25995         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25996         type of first argument to 'const char *'.
25997         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25998         Likewise.
25999         (main): Change type of variable 's'.
26000         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26001         to 'int'.
26002
26003 2011-01-02  Bruno Haible  <bruno@clisp.org>
26004
26005         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26006         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26007         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26008         bug.
26009         * lib/pwrite.c: Undo 2010-12-31 patch.
26010         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26011
26012 2011-01-02  Bruno Haible  <bruno@clisp.org>
26013
26014         pread: Fix test whether it works.
26015         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26016
26017 2011-01-02  Bruno Haible  <bruno@clisp.org>
26018
26019         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26020         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26021         ends in "6". Don't require a specific month name. Try also the locale
26022         names found on HP-UX 11 and Solaris 7.
26023
26024 2011-01-02  Bruno Haible  <bruno@clisp.org>
26025
26026         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26027         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26028         C linkage.
26029         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26030
26031 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26032
26033         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26034         for consistency, since the "cluster" term is not used elsewhere.
26035         * lib/unigbrk.in.h: Update name.
26036         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26037         * lib/unigbrk/u16-grapheme-next.c: Update name.
26038         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26039         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26040         * lib/unigbrk/u32-grapheme-next.c: Update name.
26041         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26042         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26043         * lib/unigbrk/u8-grapheme-next.c: Update name.
26044         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26045         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26046         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26047         Suggested by Bruno Haible.
26048
26049 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26050
26051         Remove module 'u8-grapheme-len' as too redundant with
26052         'u8-grapheme-next'.
26053         * modules/unigbrk/u8-grapheme-len: Delete file.
26054         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26055         * lib/unigbrk.in.h: Remove prototype for deleted function.
26056         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26057         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26058
26059         Remove module 'u16-grapheme-len' as too redundant with
26060         'u16-grapheme-next'.
26061         * modules/unigbrk/u16-grapheme-len: Delete file.
26062         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26063         * lib/unigbrk.in.h: Remove prototype for deleted function.
26064         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26065         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26066
26067         Remove module 'u32-grapheme-len' as too redundant with
26068         'u32-grapheme-next'.
26069         * modules/unigbrk/u32-grapheme-len: Delete file.
26070         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26071         * lib/unigbrk.in.h: Remove prototype for deleted function.
26072         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26073         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26074
26075         Suggested by Bruno Haible.
26076
26077 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26078
26079         * unigbrk.in.h: Fix typo: "ben" => "been".
26080         Reported by Bruno Haible.
26081
26082 2011-01-01  Jim Meyering  <meyering@redhat.com>
26083
26084         maint: update almost all copyright ranges to include 2011
26085         Run the new "make update-copyright" rule.
26086
26087 2011-01-01  Jim Meyering  <meyering@redhat.com>
26088
26089         maint: update-copyright: exempt doc/INSTALL*
26090         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26091         since they are generated.  Suggested by Bruno Haible.
26092
26093 2011-01-01  Jim Meyering  <meyering@redhat.com>
26094
26095         maint: refine the update-copyright rule
26096         * Makefile (update-copyright): Also exclude any file that includes
26097         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26098         code that merely generates the comment.
26099
26100 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26101
26102         New module 'u8-grapheme-len'.
26103         * modules/unigbrk/u8-grapheme-len: New file.
26104         * modules/unigbrk/u8-grapheme-len-tests: New file.
26105         * lib/unigbrk.in.h: Add prototype for new function.
26106         * lib/unigbrk/u8-grapheme-len.c: New file.
26107         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26108
26109         New module 'u16-grapheme-len'.
26110         * modules/unigbrk/u16-grapheme-len: New file.
26111         * modules/unigbrk/u16-grapheme-len-tests: New file.
26112         * lib/unigbrk.in.h: Add prototype for new function.
26113         * lib/unigbrk/u16-grapheme-len.c: New file.
26114         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26115
26116         New module 'u32-grapheme-len'.
26117         * modules/unigbrk/u32-grapheme-len: New file.
26118         * modules/unigbrk/u32-grapheme-len-tests: New file.
26119         * lib/unigbrk.in.h: Add prototype for new function.
26120         * lib/unigbrk/u32-grapheme-len.c: New file.
26121         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26122
26123         New module 'u8-grapheme-next'.
26124         * modules/unigbrk/u8-grapheme-next: New file.
26125         * modules/unigbrk/u8-grapheme-next-tests: New file.
26126         * lib/unigbrk.in.h: Add prototype for new function.
26127         * lib/unigbrk/u8-grapheme-next.c: New file.
26128         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26129
26130         New module 'u16-grapheme-next'.
26131         * modules/unigbrk/u16-grapheme-next: New file.
26132         * modules/unigbrk/u16-grapheme-next-tests: New file.
26133         * lib/unigbrk.in.h: Add prototype for new function.
26134         * lib/unigbrk/u16-grapheme-next.c: New file.
26135         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26136
26137         New module 'u32-grapheme-next'.
26138         * modules/unigbrk/u32-grapheme-next: New file.
26139         * modules/unigbrk/u32-grapheme-next-tests: New file.
26140         * lib/unigbrk.in.h: Add prototype for new function.
26141         * lib/unigbrk/u32-grapheme-next.c: New file.
26142         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26143
26144         New module 'u8-grapheme-prev'.
26145         * modules/unigbrk/u8-grapheme-prev: New file.
26146         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26147         * lib/unigbrk.in.h: Add prototype for new function.
26148         * lib/unigbrk/u8-grapheme-prev.c: New file.
26149         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26150
26151         New module 'u16-grapheme-prev'.
26152         * modules/unigbrk/u16-grapheme-prev: New file.
26153         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26154         * lib/unigbrk.in.h: Add prototype for new function.
26155         * lib/unigbrk/u16-grapheme-prev.c: New file.
26156         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26157
26158         New module 'u32-grapheme-prev'.
26159         * modules/unigbrk/u32-grapheme-prev: New file.
26160         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26161         * lib/unigbrk.in.h: Add prototype for new function.
26162         * lib/unigbrk/u32-grapheme-prev.c: New file.
26163         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26164
26165         New module 'u8-grapheme-breaks'.
26166         * modules/unigbrk/u8-grapheme-breaks: New file.
26167         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26168         * lib/unigbrk.in.h: Add prototype for new function.
26169         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26170         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26171
26172         New module 'u16-grapheme-breaks'.
26173         * modules/unigbrk/u16-grapheme-breaks: New file.
26174         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26175         * lib/unigbrk.in.h: Add prototype for new function.
26176         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26177         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26178
26179         New module 'u32-grapheme-breaks'.
26180         * modules/unigbrk/u32-grapheme-breaks: New file.
26181         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26182         * lib/unigbrk.in.h: Add prototype for new function.
26183         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26184         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26185
26186         New module 'ulc-grapheme-breaks'.
26187         * modules/unigbrk/ulc-grapheme-breaks: New file.
26188         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26189         * m4/locale-ar.m4: New file.
26190         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26191         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26192         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26193
26194 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26195
26196         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26197         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26198         modified how this file was generated before I initially submitted
26199         the module, but failed to regenerate it.  This meant that several
26200         of the level2 entries were wrong.
26201         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26202         Remove the division-by-2 that is folded into the table now that
26203         gbrkprop.h has been regenerated properly.  Now -1 entries are
26204         handled correctly.
26205
26206         New module 'unigbrk/uc-gbrk-prop-tests'.
26207         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26208         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26209         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26210         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26211
26212 2011-01-01  Bruno Haible  <bruno@clisp.org>
26213
26214         Avoid use of hexadecimal escapes.
26215         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26216         instead of hexadecimal escapes.
26217
26218 2011-01-01  Jim Meyering  <meyering@redhat.com>
26219
26220         maint: new rule to update copyright year ranges
26221         * Makefile (update-copyright): New rule.
26222
26223         maint: indent with TABs in Makefile
26224         * Makefile: Expand leading sequences of spaces to TABs
26225
26226         version-etc: update the copyright year it reports
26227         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26228
26229 2010-12-31  Bruno Haible  <bruno@clisp.org>
26230
26231         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26232         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26233         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26234         zero.
26235
26236 2010-12-31  Bruno Haible  <bruno@clisp.org>
26237
26238         pwrite: Work around HP-UX 11.11 bug.
26239         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26240         works and set REPLACE_PWRITE if not.
26241         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26242         function.
26243         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26244
26245 2010-12-31  Bruno Haible  <bruno@clisp.org>
26246
26247         pread: Work around HP-UX 11 bugs.
26248         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26249         and set REPLACE_PREAD if not.
26250         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26251
26252 2010-12-31  Eric Blake  <eblake@redhat.com>
26253
26254         nl_langinfo: fix YESEXPR on Irix 6.5
26255         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26256         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26257         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26258         it.
26259
26260 2010-12-31  Bruno Haible  <bruno@clisp.org>
26261
26262         iconv: Document HP-UX 11 bug.
26263         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26264
26265 2010-12-31  Bruno Haible  <bruno@clisp.org>
26266
26267         ldexpl: Fix link error on HP-UX 11.
26268         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26269         LDEXPL_LIBM, using $ISNANL_LIBM.
26270
26271 2010-12-31  Eric Blake  <eblake@redhat.com>
26272
26273         ftello: avoid compilation failure with SunStudio c89
26274         * lib/ftello.c (ftello): Use lseek, not llseek.
26275
26276         tests: avoid failing coreutils tests on cygwin
26277         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26278         (create_exe_shims_): Return 0 when skipping.
26279
26280 2010-12-31  Bruno Haible  <bruno@clisp.org>
26281
26282         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26283         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26284
26285 2010-12-31  Bruno Haible  <bruno@clisp.org>
26286
26287         waitpid: Fix link error in C++ mode.
26288         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26289
26290 2010-12-31  Bruno Haible  <bruno@clisp.org>
26291
26292         isnan: Use GCC built-ins when possible.
26293         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26294         __builtin_isnan.
26295         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26296         (isnan): Define using GCC built-ins for GCC >= 4.0.
26297
26298 2010-12-31  Bruno Haible  <bruno@clisp.org>
26299
26300         isnand: Fix mistake.
26301         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26302         __builtin_isnand.
26303
26304 2010-12-31  Bruno Haible  <bruno@clisp.org>
26305
26306         open: Avoid C++ error on HP-UX 11.
26307         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26308
26309 2010-12-31  Bruno Haible  <bruno@clisp.org>
26310
26311         time_r: Add missing declarations on HP-UX 11.
26312         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26313         instead of HAVE_LOCALTIME_R.
26314         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26315         HAVE_LOCALTIME_R always.
26316         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26317         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26318         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26319         HAVE_LOCALTIME_R.
26320         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26321         * doc/posix-functions/localtime_r.texi: Likewise.
26322
26323 2010-12-29  Eric Blake  <eblake@redhat.com>
26324
26325         mountlist: tweak previous commit
26326         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26327         Reported by Paul Eggert.
26328
26329         mountlist: fix local drive detection on cygwin
26330         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26331         that works for cygwin.
26332
26333 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26334
26335         ftoastr, snprintf: ftoastr + snprintf module
26336         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26337         since the snprintf module now should be good enough here.
26338         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26339         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26340         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26341         GNULIB_SNPRINTF only for the test directory, and the latter
26342         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26343         seems to suffice by itself.
26344
26345 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26346
26347         alloca: one step towards thread-safety
26348         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26349         need for a static variable.  All callers changed.  This does not
26350         make the alloca replacement thread-safe, but it's one step.
26351
26352         tests: minor indenting change
26353         * tests/init.sh: Sync from coreutils housekeeping patch
26354         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26355         to keep lines within 80 columns.
26356
26357 2010-12-28  Jim Meyering  <meyering@redhat.com>
26358
26359         regex: don't infloop on persistent failing calloc
26360         * lib/regexec.c (build_trtable): Return failure indication upon
26361         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26362         In glibc, this was fixed for version 2.13:
26363         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26364
26365 2010-12-28  Bruno Haible  <bruno@clisp.org>
26366             Paul Eggert <eggert@cs.ucla.edu>
26367
26368         linkat: Make implementation robust against system behaviour variations.
26369         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26370         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26371         way, and to -2 if it needs a generic runtime test.
26372         * lib/linkat.c (solaris_optimized_link_immediate,
26373         solaris_optimized_link_follow): New functions.
26374         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26375         (check_same_link): Use it.
26376
26377 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26378
26379         New module 'unigbrk/base'.
26380         * modules/unigbrk/base: New file.
26381         * lib/unigbrk.in.h: New file.
26382
26383         New module 'unigbrk/uc-gbrk-prop'.
26384         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26385         * modules/unigbrk/uc-gbrk-prop: New file.
26386         * lib/unigbrk/gbrkprop.h: New file.
26387         * lib/unigbrk/uc-gbrk-prop.c: New file.
26388
26389         New module 'unigbrk/uc-is-grapheme-break'.
26390         * modules/unigbrk/uc-is-grapheme-break: New file.
26391         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26392         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26393         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26394         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26395         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26396
26397         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26398
26399 2010-12-27  Bruno Haible  <bruno@clisp.org>
26400
26401         linkat test: Avoid failure on Solaris 11 2010-11.
26402         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26403
26404 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26405
26406         utimens: work around glibc rounding bug on more platforms
26407         * lib/utimens.c (fdutimens): Work around rounding bug even if
26408         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26409         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26410
26411 2010-12-27  Bruno Haible  <bruno@clisp.org>
26412
26413         select tests: Improve comments.
26414         * tests/test-select.c (do_select): Add comments.
26415
26416 2010-12-27  Bruno Haible  <bruno@clisp.org>
26417
26418         select tests: Safer way of handling timeout.
26419         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26420         at every invocation.
26421
26422 2010-12-27  Bruno Haible  <bruno@clisp.org>
26423
26424         select tests: Use 'bool' where appropriate.
26425         * tests/test-select.c (connect_to_socket): Change argument type to
26426         'bool'.
26427
26428 2010-12-27  Bruno Haible  <bruno@clisp.org>
26429
26430         select tests: Use existing modules.
26431         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26432         (configure.ac): Don't test for unistd.h.
26433         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26434         declared in <unistd.h>.
26435
26436 2010-12-27  Bruno Haible  <bruno@clisp.org>
26437
26438         mbrtowc: Work around a Solaris 7 bug.
26439         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26440         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26441         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26442         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26443         MBRTOWC_NULL_ARG1_BUG.
26444         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26445         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26446         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26447         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26448
26449 2010-12-27  Jim Meyering  <meyering@redhat.com>
26450
26451         read-file.c: tweak syntax
26452         * lib/read-file.c (fread_file): Remove space after "*" in function
26453         definitions.
26454
26455 2010-12-27  Bruno Haible  <bruno@clisp.org>
26456
26457         times test: Avoid gcc warnings on OSF/1.
26458         * tests/test-times.c (main): Cast printf arguments from clock_t to
26459         'long int'.
26460
26461 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26462
26463         utimens: work around glibc rounding bug on older Linux kernels
26464         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26465         on Linux with a glibc whose utimes might not work, then work
26466         around a longstanding glibc bug involving rounding rather than
26467         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26468         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26469
26470 2010-12-26  Bruno Haible  <bruno@clisp.org>
26471
26472         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26473         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26474         _GL_CXXALIAS_SYS.
26475         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26476
26477 2010-12-26  Bruno Haible  <bruno@clisp.org>
26478
26479         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26480         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26481         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26482         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26483         looking for the declaration.
26484         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26485         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26486         problem.
26487         * doc/posix-functions/inet_pton.texi: Likewise.
26488
26489 2010-12-26  Bruno Haible  <bruno@clisp.org>
26490
26491         arpa_inet: Use the common idioms with C++ support.
26492         * lib/arpa_inet.in.h: Include c++defs.h.
26493         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26494         support.
26495         * modules/arpa_inet (Depends-on): Add c++defs.
26496         (Makefile.am): Substitute the contents of c++defs.h.
26497         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26498         * modules/arpa_inet-c++-tests: New file.
26499         * tests/test-arpa_inet-c++.cc: New file.
26500
26501 2010-12-25  Bruno Haible  <bruno@clisp.org>
26502
26503         Fix more C++ link errors on Solaris 8.
26504         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26505         $(LIB_EACCESS).
26506         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26507         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26508         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26509         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26510         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26511
26512 2010-12-25  Bruno Haible  <bruno@clisp.org>
26513
26514         printf-posix: Fix link error when a non-GCC compiler is used.
26515         * lib/stdio.in.h (printf): When not using GCC, override printf
26516         correctly.
26517         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26518
26519 2010-12-25  Bruno Haible  <bruno@clisp.org>
26520
26521         strerror_r-posix: Update doc.
26522         * doc/posix-functions/strerror_r.texi: Update doc about the return
26523         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26524
26525 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26526
26527         utimens: simplify the logic of the previous change
26528         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26529         This should not affect whether the test succeeds or fails.
26530
26531         utimens: configure better on hosts with NFS clock skew
26532         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26533         uses the clock of the local host.  It might use the clock of the
26534         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26535         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26536
26537 2010-12-25  Bruno Haible  <bruno@clisp.org>
26538
26539         ptsname test: Avoid failure on Solaris.
26540         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26541         open a pseudo-terminal; don't use BSD-style ptys.
26542         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26543
26544 2010-12-25  Bruno Haible  <bruno@clisp.org>
26545
26546         ptsname: Avoid ERANGE failure on some systems.
26547         * lib/ptsname.c (buffer): Increase size.
26548
26549 2010-12-25  Bruno Haible  <bruno@clisp.org>
26550
26551         rename, renameat: Avoid test failures at NFS mounted locations.
26552         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26553         so that subsequent mkdir calls succeed.
26554
26555 2010-12-25  Bruno Haible  <bruno@clisp.org>
26556
26557         iswblank: Fix C++ link error on Solaris 8.
26558         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26559         _GL_FUNCDECL_SYS.
26560
26561 2010-12-25  Bruno Haible  <bruno@clisp.org>
26562
26563         unistd: Fix C++ link error on Solaris 8.
26564         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26565
26566 2010-12-25  Bruno Haible  <bruno@clisp.org>
26567
26568         readlink doc: Mention an old glibc bug.
26569         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26570
26571 2010-12-25  Bruno Haible  <bruno@clisp.org>
26572
26573         fcntl-h: Fix for use of C++ on glibc systems.
26574         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26575         also on glibc systems in C++ mode.
26576         Reported by Gary V. Vaughan <gary@gnu.org>.
26577
26578 2010-12-25  Bruno Haible  <bruno@clisp.org>
26579
26580         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26581         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26582
26583 2010-12-25  Bruno Haible  <bruno@clisp.org>
26584
26585         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26586         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26587         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26588         test whether truncl works according to ISO C 99 with IEC 60559.
26589         * m4/truncl-ieee.m4: New file.
26590         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26591         m4/signbit.m4.
26592         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26593
26594 2010-12-25  Bruno Haible  <bruno@clisp.org>
26595
26596         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26597         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26598         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26599         test whether ceill works according to ISO C 99 with IEC 60559.
26600         * m4/ceill-ieee.m4: New file.
26601         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26602         m4/signbit.m4.
26603         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26604
26605 2010-12-25  Bruno Haible  <bruno@clisp.org>
26606
26607         Ensure all prerequisites of <wchar.h> are included.
26608         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26609         before <wchar.h>.
26610         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26611         gl_MBRLEN_NUL_RETVAL): Likewise.
26612         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26613         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26614         AC_FUNC_MBRTOWC): Likewise.
26615         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26616         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26617         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26618         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26619         Likewise.
26620         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26621         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26622         (gl_WCHAR_H): Improve comments.
26623         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26624
26625 2010-12-25  Bruno Haible  <bruno@clisp.org>
26626
26627         strtok_r: Fix C syntax error in autoconf macro.
26628         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26629         characters in test program.
26630
26631 2010-12-24  Bruno Haible  <bruno@clisp.org>
26632
26633         ceil, trunc, round: Fix gcc warnings.
26634         * lib/ceil.c (MIN): Undefine before redefining.
26635         * lib/trunc.c (MIN): Likewise.
26636         * lib/round.c (MIN): Likewise.
26637         Include <math.h> first.
26638
26639 2010-12-24  Bruno Haible  <bruno@clisp.org>
26640
26641         select tests: Avoid failures on OSF/1 5.1.
26642         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26643         failure of closing the last socket; it may fail with ECONNRESET.
26644
26645 2010-12-24  Eric Blake  <eblake@redhat.com>
26646
26647         stdint: avoid HP-UX 10.20 preprocessor bug
26648         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26649         than #if.
26650         * tests/test-floor2.c (main): Likewise.
26651         Reported by Peter O'Gorman.
26652
26653         pipe: make obsoletion transition easier
26654         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26655         * modules/pipe (Files): Include revived file.
26656         (Include): Drop reference, to mirror getdate's behavior.
26657
26658 2010-12-24  Bruno Haible  <bruno@clisp.org>
26659
26660         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26661         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26662         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26663         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26664
26665 2010-12-24  Bruno Haible  <bruno@clisp.org>
26666
26667         gethostname: Ensure declaration on NonStop Kernel.
26668         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26669         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26670
26671 2010-12-24  Bruno Haible  <bruno@clisp.org>
26672
26673         sys_select: Ensure all necessary types on NonStop Kernel.
26674         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26675         include <sys/time.h>.
26676         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26677         NonStop Kernel.
26678         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26679
26680 2010-12-24  Bruno Haible  <bruno@clisp.org>
26681
26682         sys_select: Remove unneeded include.
26683         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26684         have <sys/select.h>.
26685
26686 2010-12-24  Bruno Haible  <bruno@clisp.org>
26687
26688         gethostname: Provide a fallback for HOST_NAME_MAX.
26689         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26690         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26691         instead.
26692         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26693
26694 2010-12-24  Bruno Haible  <bruno@clisp.org>
26695
26696         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26697         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26698         (SA_RESTART): Likewise.
26699         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26700
26701 2010-12-24  Bruno Haible  <bruno@clisp.org>
26702
26703         signal: Define NSIG.
26704         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26705         * tests/test-signal.c (nsig): New variable.
26706         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26707
26708 2010-12-24  Bruno Haible  <bruno@clisp.org>
26709
26710         rename, renameat: Avoid test failures on OSF/1 5.1.
26711         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26712         alternative error codes.
26713         * tests/test-renameat.c (main): Likewise.
26714
26715 2010-12-24  Bruno Haible  <bruno@clisp.org>
26716
26717         *printf: Detect large precisions bug on Solaris 10/SPARC.
26718         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26719         by Paul Eggert.
26720         * tests/test-snprintf-posix.h (test_function): Add this test code here
26721         too.
26722         * tests/test-sprintf-posix.h (test_function): Likewise.
26723         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26724         * tests/test-vasprintf-posix.c (test_function): Likewise.
26725         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26726         around by gnulib.
26727         * doc/posix-functions/printf.texi: Likewise.
26728         * doc/posix-functions/snprintf.texi: Likewise.
26729         * doc/posix-functions/sprintf.texi: Likewise.
26730         * doc/posix-functions/vfprintf.texi: Likewise.
26731         * doc/posix-functions/vprintf.texi: Likewise.
26732         * doc/posix-functions/vsnprintf.texi: Likewise.
26733         * doc/posix-functions/vsprintf.texi: Likewise.
26734         * doc/posix-functions/dprintf.texi: Undo last commit.
26735         * doc/posix-functions/vdprintf.texi: Likewise.
26736
26737 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26738
26739         tests: port test-fdutimensat.c to Solaris 8
26740         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26741         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26742         On Solaris 8, it fails with errno == ENOSYS, because there is no
26743         futimens (so it can't use the fd), and there is no lutimens (so it
26744         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26745
26746         vsnprintf: make more consistent with snprintf; doc fixes
26747
26748         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26749         the byte count return problem was promoted from the snprintf-posix
26750         to the snprintf module.
26751         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26752         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26753         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26754         * tests/test-snprintf.c (main): Check the byte count returned.
26755         * tests/test-vsnprintf.c (main): Likewise.
26756
26757 2010-12-23  Eric Blake  <eblake@redhat.com>
26758
26759         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26760         * modules/sigpipe (License): Relax license.
26761
26762 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26763
26764         doc: document Solaris printf bug with large float precisions
26765         * doc/posix-functions/dprintf.texi (dprintf):
26766         * doc/posix-functions/fprintf.texi (fprintf):
26767         * doc/posix-functions/printf.texi (printf):
26768         * doc/posix-functions/snprintf.texi (snprintf):
26769         * doc/posix-functions/sprintf.texi (sprintf):
26770         * doc/posix-functions/vdprintf.texi (vdprintf):
26771         * doc/posix-functions/vfprintf.texi (vfprintf):
26772         * doc/posix-functions/vprintf.texi (vprintf):
26773         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26774         * doc/posix-functions/vsprintf.texi (vsprintf):
26775         Mention that these functions mishandle large floating point
26776         precisions on Solaris 10.  The same bug is also present in Solaris
26777         8, and I assume earlier.  This causes "cd gnulib-tests; make
26778         check" to fail on Solaris 8 (and I assume, later) when building
26779         the latest coreutils, in test-vasprintf-posix's call to
26780         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26781         the wide flavors (e.g., wprintf) so this patch just updates the
26782         documentation for the narrow ones.
26783
26784         test-posixtm.c: add two tests
26785         * tests/test-posixtm.c: Add two tests, to highlight the
26786         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26787         around this bug; this is merely to document it.
26788
26789 2010-12-22  Bruno Haible  <bruno@clisp.org>
26790
26791         getlogin_r: Work around portability problem on OSF/1.
26792         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26793         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26794         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26795         test for a truncated result.
26796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26797         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26798         * modules/getlogin_r (Depends-on): Add memchr.
26799         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26800
26801 2010-12-22  Bruno Haible  <bruno@clisp.org>
26802
26803         ptsname: Avoid test failure on OSF/1 5.1.
26804         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26805         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26806         (same_slave): New function.
26807         (main): Use it to compare ptsname's result with the expected file name.
26808
26809 2010-12-22  Bruno Haible  <bruno@clisp.org>
26810
26811         Port extended stdio modules to HP NonStop Kernel.
26812         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26813         macros.
26814         * lib/fbufmode.c: Update comments.
26815         * lib/fflush.c: Likewise.
26816         * lib/fpurge.c: Likewise.
26817         * lib/freadable.c: Likewise.
26818         * lib/freadahead.c: Likewise.
26819         * lib/freading.c: Likewise.
26820         * lib/freadptr.c: Likewise.
26821         * lib/freadseek.c: Likewise.
26822         * lib/fseeko.c: Likewise.
26823         * lib/fseterr.c: Likewise.
26824         * lib/fwritable.c: Likewise.
26825         * lib/fwriting.c: Likewise.
26826         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26827
26828 2010-12-22  Bruno Haible  <bruno@clisp.org>
26829
26830         ttyname_r: Work around bug on OSF/1 5.1.
26831         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26832         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26833         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26834         present.
26835         * lib/ttyname_r.c (ttyname_r): Update comments.
26836
26837 2010-12-22  Bruno Haible  <bruno@clisp.org>
26838
26839         round: Implement result sign according to IEEE 754.
26840         * lib/round.c (MIN, MINUS_ZERO): New macros.
26841         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26842         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26843         * tests/test-round-ieee.c (main): Likewise.
26844         * tests/test-roundl-ieee.c (main): Likewise.
26845
26846         trunc: Implement result sign according to IEEE 754.
26847         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26848         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26849         * tests/test-trunc2.c: Include minus-zero.h.
26850         (MINUS_ZERO): New macro.
26851         (trunc_reference): Keep in sync with lib/trunc.c.
26852         * tests/test-truncf2.c: Include minus-zero.h.
26853         (MINUS_ZERO): New macro.
26854         (truncf_reference): Keep in sync with lib/trunc.c.
26855         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26856         * tests/test-trunc-ieee.c (main): Likewise.
26857         * tests/test-truncl-ieee.c (main): Likewise.
26858
26859         ceil: Implement result sign according to IEEE 754.
26860         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26861         (FUNC): Return -0.0 for -1 < x < 0.
26862         * tests/test-ceil2.c: Include minus-zero.h.
26863         (MINUS_ZERO): New macro.
26864         (ceil_reference): Keep in sync with lib/ceil.c.
26865         * tests/test-ceilf2.c: Include minus-zero.h.
26866         (MINUS_ZERO): New macro.
26867         (ceilf_reference): Keep in sync with lib/ceil.c.
26868         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26869         * tests/test-ceil-ieee.c (main): Likewise.
26870         * tests/test-ceill-ieee.c (main): Likewise.
26871
26872         floor: Implement result sign according to IEEE 754.
26873         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26874         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26875         * tests/test-floorf2.c (floorf_reference): Likewise.
26876         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26877         * tests/test-floor-ieee.c (main): Likewise.
26878         * tests/test-floorl-ieee.c (main): Likewise.
26879
26880 2010-12-22  Bruno Haible  <bruno@clisp.org>
26881
26882         getaddrinfo: Update doc.
26883         * doc/posix-functions/gai_strerror.texi: Return type is also different
26884         on AIX and HP-UX.
26885
26886 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26887
26888         getaddrinfo, inet_ntop: Update doc for Solaris.
26889         * doc/posix-functions/gai_strerror.texi: Return type is also an
26890         issue on Solaris 9 and earlier.
26891         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26892         on Solaris 10 and earlier.
26893
26894 2010-12-21  Bruno Haible  <bruno@clisp.org>
26895
26896         New module 'roundl-ieee'.
26897         * modules/roundl-ieee: New file.
26898         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26899         test whether roundl works according to ISO C 99 with IEC 60559.
26900         * m4/roundl-ieee.m4: New file.
26901         * modules/roundl-ieee-tests: New file.
26902         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26903         * tests/test-roundl.c (main): Remove signbit tests.
26904         * modules/roundl-tests (Depends-on): Remove signbit.
26905         * doc/posix-functions/roundl.texi: Mention the new module.
26906
26907 2010-12-21  Bruno Haible  <bruno@clisp.org>
26908
26909         New module 'truncl-ieee'.
26910         * modules/truncl-ieee: New file.
26911         * modules/truncl-ieee-tests: New file.
26912         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26913         * tests/test-truncl.c (main): Remove signbit tests.
26914         * modules/truncl-tests (Depends-on): Remove signbit.
26915         * doc/posix-functions/truncl.texi: Mention the new module.
26916
26917 2010-12-21  Bruno Haible  <bruno@clisp.org>
26918
26919         New module 'ceill-ieee'.
26920         * modules/ceill-ieee: New file.
26921         * modules/ceill-ieee-tests: New file.
26922         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26923         * tests/test-ceill.c (main): Remove signbit tests.
26924         * modules/ceill-tests (Depends-on): Remove signbit.
26925         * doc/posix-functions/ceill.texi: Mention the new module.
26926
26927 2010-12-21  Bruno Haible  <bruno@clisp.org>
26928
26929         New module 'floorl-ieee'.
26930         * modules/floorl-ieee: New file.
26931         * modules/floorl-ieee-tests: New file.
26932         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26933         * tests/test-floorl.c (main): Remove signbit tests.
26934         * modules/floorl-tests (Depends-on): Remove signbit.
26935         * doc/posix-functions/floorl.texi: Mention the new module.
26936
26937 2010-12-21  Bruno Haible  <bruno@clisp.org>
26938
26939         New module 'round-ieee'.
26940         * modules/round-ieee: New file.
26941         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26942         whether round works according to ISO C 99 with IEC 60559.
26943         * m4/round-ieee.m4: New file.
26944         * modules/round-ieee-tests: New file.
26945         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26946         * tests/test-round1.c (main): Remove signbit tests.
26947         * modules/round-tests (Depends-on): Remove 'signbit'.
26948         * doc/posix-functions/round.texi: Mention the new module.
26949
26950 2010-12-21  Bruno Haible  <bruno@clisp.org>
26951
26952         New module 'trunc-ieee'.
26953         * modules/trunc-ieee: New file.
26954         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26955         whether trunc works according to ISO C 99 with IEC 60559.
26956         * m4/trunc-ieee.m4: New file.
26957         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26959         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26960         * modules/trunc-ieee-tests: New file.
26961         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26962         * tests/test-trunc1.c (main): Remove signbit tests.
26963         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26964         * doc/posix-functions/trunc.texi: Mention the new module.
26965
26966 2010-12-21  Bruno Haible  <bruno@clisp.org>
26967
26968         New module 'ceil-ieee'.
26969         * modules/ceil-ieee: New file.
26970         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26971         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26972         ISO C 99 with IEC 60559.
26973         * m4/ceil-ieee.m4: New file.
26974         * modules/ceil (Files): Add lib/ceil.c.
26975         (Depends-on): Add 'float'.
26976         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26977         * lib/math.in.h (ceil): New declaration.
26978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26979         REPLACE_CEIL.
26980         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26981         * modules/ceil-ieee-tests: New file.
26982         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26983         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26984         * doc/posix-functions/ceil.texi: Mention the new module.
26985
26986 2010-12-21  Bruno Haible  <bruno@clisp.org>
26987
26988         New module 'floor-ieee'.
26989         * modules/floor-ieee: New file.
26990         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26991         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26992         ISO C 99 with IEC 60559.
26993         * m4/floor-ieee.m4: New file.
26994         * modules/floor (Files): Add lib/floor.c.
26995         (Depends-on): Add 'float'.
26996         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26997         * lib/math.in.h (floor): New declaration.
26998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26999         REPLACE_FLOOR.
27000         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27001         * modules/floor-ieee-tests: New file.
27002         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27003         * tests/test-math-c++.cc: Check the signature of 'floor'.
27004         * doc/posix-functions/floor.texi: Mention the new module.
27005
27006 2010-12-21  Bruno Haible  <bruno@clisp.org>
27007
27008         New module 'roundf-ieee'.
27009         * modules/roundf-ieee: New file.
27010         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27011         test whether roundf works according to ISO C 99 with IEC 60559.
27012         * m4/roundf-ieee.m4: New file.
27013         * modules/roundf-ieee-tests: New file.
27014         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27015         * tests/test-roundf1.c (main): Remove signbit tests.
27016         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27017         * doc/posix-functions/roundf.texi: Mention the new module.
27018
27019 2010-12-21  Bruno Haible  <bruno@clisp.org>
27020
27021         New module 'truncf-ieee'.
27022         * modules/truncf-ieee: New file.
27023         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27024         test whether truncf works according to ISO C 99 with IEC 60559.
27025         * m4/truncf-ieee.m4: New file.
27026         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27028         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27029         * modules/truncf-ieee-tests: New file.
27030         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27031         * tests/test-truncf1.c (main): Remove signbit tests.
27032         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27033         * doc/posix-functions/truncf.texi: Mention the new module.
27034
27035 2010-12-21  Bruno Haible  <bruno@clisp.org>
27036
27037         New module 'ceilf-ieee'.
27038         * modules/ceilf-ieee: New file.
27039         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27040         test whether ceilf works according to ISO C 99 with IEC 60559.
27041         * m4/ceilf-ieee.m4: New file.
27042         * modules/ceilf-ieee-tests: New file.
27043         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27044         * tests/test-ceilf1.c (main): Remove signbit tests.
27045         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27046         * doc/posix-functions/ceilf.texi: Mention the new module.
27047
27048 2010-12-21  Bruno Haible  <bruno@clisp.org>
27049
27050         New module 'floorf-ieee'.
27051         * modules/floorf-ieee: New file.
27052         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27053         test whether floorf works according to ISO C 99 with IEC 60559.
27054         * m4/floorf-ieee.m4: New file.
27055         * modules/floorf-ieee-tests: New file.
27056         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27057         * tests/test-floorf1.c (main): Remove signbit tests.
27058         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27059         * doc/posix-functions/floorf.texi: Mention the new module.
27060
27061 2010-12-21  Bruno Haible  <bruno@clisp.org>
27062
27063         Support for minus zero in autoconf macros.
27064         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27065         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27066         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27067         * tests/minus-zero.h: Update comments.
27068
27069 2010-12-21  Bruno Haible  <bruno@clisp.org>
27070
27071         Tests for module 'ceil'.
27072         * modules/ceil-tests: New file.
27073         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27074         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27075
27076 2010-12-21  Bruno Haible  <bruno@clisp.org>
27077
27078         Tests for module 'floor'.
27079         * modules/floor-tests: New file.
27080         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27081         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27082
27083 2010-12-21  Bruno Haible  <bruno@clisp.org>
27084
27085         math: Fix indentation.
27086         * lib/math.in.h (floorf): Fix indentation.
27087
27088 2010-12-21  Bruno Haible  <bruno@clisp.org>
27089
27090         Fix cross-compilation guesses on Solaris.
27091         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27092         not match "solaris2.10".
27093         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27094         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27095         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27096
27097 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27098
27099         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27100         This fixes a problem observed with the latest coreutils snapshot
27101         that caused a test to fail on Solaris 8.  src/csplit.c's call
27102         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27103         earlier, instead of returning the number of bytes that would have
27104         been generated; this causes csplit to incorrectly report memory
27105         exhaustion.
27106         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27107         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27108         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27109         comments to match.
27110         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27111         Fix typo in matching older versions of Solaris: "solaris2.10"
27112         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27113         only for guessing while cross-compiling.
27114         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27115
27116 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27117
27118         ftoastr: fix comment again
27119         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27120         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27121         Also, simplify example a bit by using flags = 0.
27122
27123 2010-12-20  Bruno Haible  <bruno@clisp.org>
27124
27125         round*, trunc*: Update documentation regarding glibc.
27126         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27127         * doc/posix-functions/round.texi: Likewise.
27128         * doc/posix-functions/roundl.texi: Likewise.
27129         * doc/posix-functions/truncf.texi: Likewise.
27130         * doc/posix-functions/trunc.texi: Likewise.
27131         * doc/posix-functions/truncl.texi: Likewise.
27132
27133 2010-12-20  Bruno Haible  <bruno@clisp.org>
27134
27135         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27136         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27137         * doc/posix-functions/round.texi: Likewise.
27138         * doc/posix-functions/roundl.texi: Likewise.
27139
27140 2010-12-20  Bruno Haible  <bruno@clisp.org>
27141
27142         ttyname_r: Add missing declaration on HP-UX 11.
27143         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27144         HAVE_TTYNAME_R.
27145         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27146         declared. Set HAVE_TTYNAME_R always.
27147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27148         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27149         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27150         HAVE_TTYNAME_R.
27151         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27152
27153 2010-12-20  Bruno Haible  <bruno@clisp.org>
27154
27155         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27156         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27157         * doc/posix-functions/getlogin_r.texi: Likewise.
27158         * tests/test-getlogin.c: Include <errno.h>.
27159         (main): Avoid test failure on HP-UX 11.11.
27160         * tests/test-getlogin_r.c (main): Likewise.
27161
27162 2010-12-20  Bruno Haible  <bruno@clisp.org>
27163
27164         getlogin_r: Add missing declaration on HP-UX 11.
27165         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27166         declared also when it exists as a function.
27167         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27168
27169 2010-12-20  Bruno Haible  <bruno@clisp.org>
27170
27171         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27172         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27173         through wcrtomb.
27174
27175 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27176
27177         ftoastr: fix comment
27178         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27180
27181 2010-12-19  Bruno Haible  <bruno@clisp.org>
27182
27183         isnan: Ensure it is a macro.
27184         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27185         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27186         Solaris.
27187
27188 2010-12-19  Bruno Haible  <bruno@clisp.org>
27189
27190         ldexpl test: Fix link error on OSF/1 5.1.
27191         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27192
27193 2010-12-19  Bruno Haible  <bruno@clisp.org>
27194
27195         wctype: Make it work in C++ mode on OSF/1 5.1.
27196         * lib/wctype.in.h (iswblank): Declare but not define here.
27197         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27198         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27199         * modules/wctype (Files): Add lib/iswblank.c.
27200
27201 2010-12-19  Bruno Haible  <bruno@clisp.org>
27202
27203         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27204         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27205         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27206
27207 2010-12-19  Bruno Haible  <bruno@clisp.org>
27208
27209         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27210         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27211         _POSIX_PII_SOCKET.
27212         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27213         * doc/posix-functions/recvfrom.texi: Likewise.
27214         * doc/posix-functions/send.texi: Likewise.
27215         * doc/posix-functions/sendto.texi: Likewise.
27216
27217 2010-12-19  Bruno Haible  <bruno@clisp.org>
27218
27219         tcgetsid: Add missing declaration on OSF/1 5.1.
27220         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27221         HAVE_TCGETSID.
27222         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27223         Don't set HAVE_TCGETSID.
27224         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27225         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27226         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27227         HAVE_TCGETSID.
27228         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27229
27230 2010-12-19  Bruno Haible  <bruno@clisp.org>
27231
27232         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27233         * lib/stdio.in.h: During the include_next statement, let recursive
27234         includes of this file include only the system header file.
27235
27236 2010-12-19  Bruno Haible  <bruno@clisp.org>
27237
27238         iconv_open: Fix regression from 2010-12-04.
27239         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27240         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27241
27242 2010-12-19  Bruno Haible  <bruno@clisp.org>
27243
27244         stdbool test: Avoid a gcc warning.
27245         * tests/test-stdbool.c (main): Fail if e1 is false.
27246         Reported by Jim Meyering.
27247
27248 2010-12-19  Jim Meyering  <meyering@redhat.com>
27249
27250         setenv: restore to working order
27251         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27252         mistakenly removed.
27253         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27254         HAVE_SETENV.
27255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27256         HAVE_SETENV.
27257
27258 2010-12-19  Bruno Haible  <bruno@clisp.org>
27259
27260         Document some different function declarations on OSF/1 5.1.
27261         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27262         * doc/posix-functions/inet_ntop.texi: Likewise.
27263         * doc/posix-functions/gethostname.texi: Likewise.
27264         * lib/unistd.in.h (gethostname): Update comment.
27265
27266 2010-12-19  Bruno Haible  <bruno@clisp.org>
27267
27268         doc: Mention vasprintf-posix module.
27269         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27270         the 'vasprintf-posix' module.
27271         * doc/glibc-functions/vasprintf.texi: Likewise.
27272
27273 2010-12-19  Bruno Haible  <bruno@clisp.org>
27274
27275         unsetenv: Add missing declaration on OSF/1 5.1.
27276         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27277         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27278         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27280         not HAVE_UNSETENV.
27281         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27282         HAVE_UNSETENV.
27283         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27284
27285 2010-12-19  Bruno Haible  <bruno@clisp.org>
27286
27287         setenv: Add missing declaration on OSF/1 5.1.
27288         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27289         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27290         declared. Don't set HAVE_SETENV.
27291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27292         not HAVE_SETENV.
27293         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27294         HAVE_SETENV.
27295         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27296
27297 2010-12-19  Bruno Haible  <bruno@clisp.org>
27298
27299         nl_langinfo tests: Avoid gcc warning.
27300         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27301
27302 2010-12-19  Bruno Haible  <bruno@clisp.org>
27303
27304         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27305         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27306         _GL_CXXALIAS_SYS.
27307
27308 2010-12-19  Bruno Haible  <bruno@clisp.org>
27309
27310         stdbool: Relax test.
27311         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27312         address to 'bool' work in static initializer, for compilers other than
27313         GCC.
27314
27315 2010-12-19  Bruno Haible  <bruno@clisp.org>
27316
27317         ftello: Add missing declaration on OSF/1 5.1.
27318         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27319         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27321         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27322         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27323
27324 2010-12-19  Bruno Haible  <bruno@clisp.org>
27325
27326         fseeko: Add missing declaration on OSF/1 5.1.
27327         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27328         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27330         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27331         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27332
27333 2010-12-19  Bruno Haible  <bruno@clisp.org>
27334
27335         fchdir: Add missing declaration on OSF/1 5.1.
27336         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27339         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27340         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27341
27342 2010-12-19  Bruno Haible  <bruno@clisp.org>
27343
27344         relocatable-prog-wrapper: Separate from relocatable-prog.
27345         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27346         uninstall-relocwrapper rule here.
27347         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27348         Reported by Ian Beckwith <ianb@erislabs.net>.
27349
27350 2010-12-19  Bruno Haible  <bruno@clisp.org>
27351
27352         unistr/u8-mbsnlen: Add missing dependency.
27353         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27354         Reported by Ian Beckwith <ianb@erislabs.net>.
27355
27356 2010-12-19  Bruno Haible  <bruno@clisp.org>
27357
27358         iconv: Make it possible again to use this module without 'iconv-h'.
27359         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27360         if it is not defined.
27361         Reported by Ian Beckwith <ianb@erislabs.net>.
27362
27363 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27364
27365         acl: port to Solaris 8 when copying from tmpfs to ufs
27366         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27367         error number.  Problem observed on Solaris 8 with latest
27368         coreutils, with "mv A B", where A is on a tmpfs file system and B
27369         is on a ufs file system.  This caused coreutils' mv/part-symlink
27370         test to fail.
27371
27372         tests: set fail=0 at start
27373         * tests/init.sh (setup_): Move fail=0 initialization here ...
27374         (mktempd_): ... from here, so that tests can rely on fail being
27375         set to 0 initially.  This fixes a problem in coreutils; see:
27376         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27377
27378 2010-12-18  Bruno Haible  <bruno@clisp.org>
27379
27380         memmem-simple: Stylistic changes.
27381         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27382         Fix preprocessor directive indentation.
27383
27384 2010-12-15  Pádraig Brady <P@draigBrady.com>
27385
27386         memmem, memmem-simple: reorganize and expand empty needle check
27387         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27388         functional checks to memmem-simple so that one has a fully functional
27389         memmem by using just this module.
27390         Restrict the performance only check to the memmem module.
27391         Also expand the empty needle check to ensure the correct
27392         pointer is returned, not just a non NULL pointer.
27393         * doc/glibc-functions/memmem.texi: Rearrange the portability
27394         documentation to correlate with the rearranged checks.
27395         Clarify exactly how the memmem and memmem-simple modules
27396         relate to each other.
27397
27398 2010-12-15  Pádraig Brady <P@draigBrady.com>
27399             Bruno Haible  <bruno@clisp.org>
27400
27401         Improve cross-compilation guesses for uClibc.
27402         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27403         that uClibc does not have the glibc bug.
27404         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27405         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27406
27407 2010-12-14  Eric Blake  <eblake@redhat.com>
27408
27409         configmake: provide fallbacks for oldest supported autotools
27410         * m4/configmake.m4: New file.
27411         * modules/configmake (Files): Ship it.
27412         (configure.ac): Use it to guarantee fallbacks.
27413
27414 2010-12-13  Pádraig Brady <P@draigBrady.com>
27415
27416         read-file: Improve handling of large files
27417         * lib/read-file.c (fread_file): Minimize realloc()s
27418         for regular files, and better manage sizes around SIZE_MAX.
27419
27420 2010-12-13  Eric Blake  <eblake@redhat.com>
27421
27422         cloexec, fcntl: relax license
27423         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27424         consent from all contributors.
27425         * modules/fcntl (License): Likewise.
27426
27427 2010-12-10  Bruno Haible  <bruno@clisp.org>
27428
27429         Tests for module 'pipe-posix'.
27430         * modules/pipe-posix-tests: New file.
27431         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27432
27433 2010-12-10  Bruno Haible  <bruno@clisp.org>
27434
27435         pipe-posix: Make it work in C++ mode.
27436         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27437         (pipe): Use common idiom, not a macro definition.
27438         * lib/pipe.c: New file.
27439         * m4/pipe.m4: New file.
27440         * modules/pipe-posix (Description): Enhance.
27441         (Files): Add lib/pipe.c, m4/pipe.m4.
27442         (configure.ac): Invoke gl_FUNC_PIPE.
27443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27444         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27445         * tests/test-unistd-c++.cc: Check the signature of pipe.
27446
27447 2010-12-10  Bruno Haible  <bruno@clisp.org>
27448
27449         Rename module 'pipe' to 'spawn-pipe'.
27450         * modules/spawn-pipe: New file, renamed from modules/pipe.
27451         (Files, configure.ac, Makefile.am): Update.
27452         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27453         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27454         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27455         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27456         "spawn-pipe.h" instead of "pipe.h".
27457         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27458         to gl_SPAWN_PIPE.
27459         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27460         (Files, Makefile.am): Update.
27461         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27462         Update.
27463         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27464         Include "spawn-pipe.h" instead of "pipe.h".
27465         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27466         * lib/javacomp.c: Likewise.
27467         * lib/javaversion.c: Likewise.
27468         * lib/pipe-filter-gi.c: Likewise.
27469         * lib/pipe-filter-ii.c: Likewise.
27470         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27471         * modules/javacomp (Depends-on): Likewise.
27472         * modules/javaversion (Depends-on): Likewise.
27473         * modules/pipe-filter-gi (Depends-on): Likewise.
27474         * modules/pipe-filter-ii (Depends-on): Likewise.
27475         * MODULES.html.sh (Executing programs): Update.
27476         * NEWS: Mention the change.
27477
27478 2010-12-10  Eric Blake  <eblake@redhat.com>
27479
27480         pipe-posix: new module
27481         * modules/pipe-posix: New file.
27482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27483         (gl_UNISTD_H): Check for declaration.
27484         * modules/unistd (Makefile.am): Substitute it.
27485         * lib/unistd.in.h (pipe): Provide it for mingw.
27486         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27487         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27488
27489 2010-12-07  Bruno Haible  <bruno@clisp.org>
27490
27491         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27492         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27493         u8_strcmp_gnu.
27494         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27495
27496 2010-12-06  Bruno Haible  <bruno@clisp.org>
27497
27498         Update internal documentation.
27499         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27500
27501 2010-12-04  Bruno Haible  <bruno@clisp.org>
27502
27503         Put more information about failed tests into the test return codes.
27504         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27505         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27506         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27507         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27508         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27509         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27510         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27511         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27512         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27514         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27515         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27516         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27517         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27518         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27519         returns a bit mask.
27520         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27521         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27522         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27523         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27524         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27525         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27526         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27528         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27529         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27530         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27531         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27532         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27533         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27534         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27535         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27536         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27537         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27538         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27539         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27540         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27541         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27542         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27543         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27544         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27545         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27546         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27547         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27548         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27549         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27550         gl_PRINTF_PRECISION): Likewise.
27551         * m4/regex.m4 (gl_REGEX): Likewise.
27552         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27553         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27554         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27555         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27556         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27558         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27559         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27560         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27561         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27562         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27563         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27564         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27565         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27566         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27567         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27568         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27569         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27570         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27571         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27572         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27573         enumerated value.
27574         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27575
27576 2010-12-04  Bruno Haible  <bruno@clisp.org>
27577
27578         Update for Solaris 11 2010-11.
27579         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27580         Express, released in November 2010.
27581
27582 2010-12-04  Bruno Haible  <bruno@clisp.org>
27583
27584         nproc: Relax license.
27585         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27586         and Paul Eggert.
27587         Requested by Ludovic Courtès <ludo@gnu.org>.
27588
27589 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27590
27591         utimecmp: fine-grained src to nearby coarse-grained dest
27592
27593         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27594         and the source is on a file system with higher-resolution time
27595         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27596         not work, and the time stamps are close together, the algorithm to
27597         determine the exact resolution from the read-back mtime was buggy:
27598         it had a "!=" where it should have had an "==".  This bug has been
27599         in the code ever since it was introduced to gnulib.
27600         Problem reported by Dan Jacobson in
27601         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27602
27603 2010-11-30  Bruno Haible  <bruno@clisp.org>
27604
27605         strerror_r-posix: Fix autoconf test.
27606         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27607
27608 2010-11-28  Bruno Haible  <bruno@clisp.org>
27609             Paul Eggert  <eggert@cs.ucla.edu>
27610
27611         Tests for module 'getdomainname'.
27612         * modules/getdomainname-tests: New file.
27613         * tests/test-getdomainname.c: New file, based on
27614         tests/test-gethostname.c.
27615
27616 2010-11-28  Bruno Haible  <bruno@clisp.org>
27617             Paul Eggert  <eggert@cs.ucla.edu>
27618
27619         getdomainname: Use the system function when possible.
27620         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27621         (getdomainname): Replace if needed. Provide the declaration if it is
27622         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27623         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27624         (getdomainname): When the system has getdomainname, call the system
27625         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27626         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27627         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27628         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27629         the function if its second argument is of type 'int' or if it is found
27630         in libnsl.
27631         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27632         <sys/systeminfo.h> and sysinfo().
27633         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27635         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27636         HAVE_GETDOMAINNAME.
27637         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27638         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27639         * doc/glibc-functions/getdomainname.texi: Document the problems with
27640         the getdomainname declaration.
27641
27642 2010-11-28  Bruno Haible  <bruno@clisp.org>
27643
27644         sys_socket: Ensure ss_family field on AIX.
27645         * lib/sys_socket.in.h (ss_family): New macro definition.
27646         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27647         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27648         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27649         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27650         * modules/sys_socket (Makefile.am): Substitute
27651         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27652         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27653
27654 2010-11-27  Bruno Haible  <bruno@clisp.org>
27655
27656         readline: Improve configure output.
27657         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27658         "checking for readline..." result understandable.
27659
27660 2010-11-27  Bruno Haible  <bruno@clisp.org>
27661
27662         *printf-posix: Detect a bug on Solaris 10/x86.
27663         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27664         for floating-point output.
27665         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27666         directive.
27667         * tests/test-snprintf-posix.h (test_function): Likewise.
27668         * tests/test-sprintf-posix.h (test_function): Likewise.
27669         * tests/test-vasprintf-posix.c (test_function): Likewise.
27670         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27671         * doc/posix-functions/printf.texi: Likewise.
27672         * doc/posix-functions/snprintf.texi: Likewise.
27673         * doc/posix-functions/sprintf.texi: Likewise.
27674         * doc/posix-functions/vfprintf.texi: Likewise.
27675         * doc/posix-functions/vprintf.texi: Likewise.
27676         * doc/posix-functions/vsnprintf.texi: Likewise.
27677         * doc/posix-functions/vsprintf.texi: Likewise.
27678         * doc/glibc-functions/obstack_printf.texi: Likewise.
27679         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27680
27681 2010-11-27  Bruno Haible  <bruno@clisp.org>
27682
27683         Fix link error when module libunistring-optional is in use.
27684         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27685         * modules/striconveha-tests (Makefile.am): Likewise.
27686
27687 2010-11-27  Bruno Haible  <bruno@clisp.org>
27688
27689         regex: Mention link dependencies.
27690         * modules/regex (Link): New section.
27691         * modules/rpmatch (Link): Likewise.
27692         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27693
27694 2010-11-27  Bruno Haible  <bruno@clisp.org>
27695
27696         ftoastr: Fix compilation error on Solaris.
27697         * lib/ftoastr.c: Include <config.h>.
27698
27699 2010-11-27  Bruno Haible  <bruno@clisp.org>
27700
27701         getloadavg: Update documentation.
27702         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27703
27704 2010-11-27  Bruno Haible  <bruno@clisp.org>
27705
27706         sys_socket: Fix test whether the functions are declared.
27707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27708         not <sys/select.h>.
27709
27710 2010-11-27  Bruno Haible  <bruno@clisp.org>
27711
27712         getpass: Make sure to get system declaration on some platforms.
27713         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27714         gl_USE_SYSTEM_EXTENSIONS.
27715         * modules/getpass (Depends-on): Add extensions.
27716
27717 2010-11-26  Bruno Haible  <bruno@clisp.org>
27718
27719         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27720         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27721         'iconv' module is present.
27722         (ICONV_CONST): New macro.
27723         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27724         ICONV_CONST.
27725         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27726         set ICONV_CONST.
27727         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27728         here.
27729         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27730         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27731         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27732         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27733         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27734         present.
27735
27736 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27737
27738         ftoastr: comment fix
27739         * lib/ftoastr.c: "little" -> "little or no" in comment
27740
27741 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27742
27743         stdint: port to GCC 4.3 + OSX + Octave
27744         On this platform, stdint.h is buggy and defines int64_t to long
27745         long int.  The replacement defined it to long int, causing
27746         problems with C++ style name mangling.  Instead, trust the system
27747         definition if INT64_MAX is defined, and likewise for the unsigned
27748         variant.   Problem reported by Jarno Rajahalme in
27749         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27750         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27751         and don't mess with int64_t and INT64_MAX in this case.
27752         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27753
27754 2010-11-24  Bruno Haible  <bruno@clisp.org>
27755
27756         doc: Corrections regarding MacOS X 10.4 and 10.5.
27757         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27758         MacOS X.
27759         Reported by Simon Josefsson.
27760
27761 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27762
27763         Uninstall ".bin" files installed by relocwrapper.
27764         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27765         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27766         unless it is already there.
27767
27768 2010-11-21  Bruno Haible  <bruno@clisp.org>
27769
27770         Update for NetBSD 5.0.
27771         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27772         NetBSD; the test fails on NetBSD 5.0.
27773         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27774         about NetBSD.
27775
27776 2010-11-21  Bruno Haible  <bruno@clisp.org>
27777
27778         Update for HP-UX 11.23 and HP-UX 11.31.
27779         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27780         HP-UX.
27781
27782 2010-11-21  Bruno Haible  <bruno@clisp.org>
27783
27784         Update for MacOS X 10.5.
27785         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27786         MacOS X; the test fails on MacOS X 10.5.8.
27787         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27788         about MacOS X.
27789
27790 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27791
27792         bootstrap: add bootstrap_sync option.
27793         See discussion at
27794         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27795         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27796         * build-aux/bootstrap: Accept --bootstrap-sync to update
27797         bootstrap if it is not identical to the local gnulib's
27798         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27799         enable this by default.  Accept --no-bootstrap-sync to disable
27800         it.
27801
27802 2010-11-20  Bruno Haible  <bruno@clisp.org>
27803
27804         Ensure that <features.h> is included before __GLIBC__ is tested.
27805         * lib/printf-parse.h: Include <features.h>.
27806         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27807         Reported by Mike Frysinger <vapier@gentoo.org>.
27808
27809         Ensure that <features.h> is included before __GLIBC__ is tested.
27810         * lib/wchar.in.h: Include <features.h>.
27811         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27812         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27813         Reported by Mike Frysinger <vapier@gentoo.org>.
27814
27815         Ensure that <features.h> is included before __GLIBC__ is tested.
27816         * lib/arpa_inet.in.h: Include <features.h>.
27817         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27818         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27819         Reported by Mike Frysinger <vapier@gentoo.org>.
27820
27821         Ensure that <features.h> is included before __GLIBC__ is tested.
27822         * build-aux/link-warning.h: Include <features.h>.
27823         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27824         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27825         Reported by Mike Frysinger <vapier@gentoo.org>.
27826
27827         Ensure that <features.h> is included before __GLIBC__ is tested.
27828         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27829         Reported by Mike Frysinger <vapier@gentoo.org>.
27830
27831 2010-11-20  Bruno Haible  <bruno@clisp.org>
27832
27833         memmem: Fix autoconf test.
27834         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27835
27836 2010-11-20  Bruno Haible  <bruno@clisp.org>
27837
27838         Port to uClibc.
27839         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27840         * lib/fcntl.in.h: Likewise.
27841         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27842         * lib/mbrtowc.c (mbrtowc): Likewise.
27843         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27844         * lib/strerror_r.c: Likewise.
27845         * lib/unistr/u8-strnlen.c: Likewise.
27846         * lib/vasnprintf.c (decimal_point_char): Likewise.
27847         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27848         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27849         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27850         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27851         * tests/test-sigaction.c (handler, main): Likewise.
27852         * lib/freading.h: Treat uClibc like a non-glibc platform.
27853         * lib/freading.c: Likewise.
27854         * lib/gettext.h: Likewise.
27855         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27856         Likewise.
27857         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27858         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27859         * lib/propername.c (proper_name_utf8): Likewise.
27860         * lib/spawn.in.h: Likewise.
27861         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27862         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27863         mem_cd_iconveh_internal): Likewise.
27864         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27865         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27866         strstr, strcasestr): Likewise.
27867         * lib/unicodeio.c (unicode_to_mb): Likewise.
27868         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27869         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27870         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27871         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27872         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27873         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27874         * lib/unistr/u8-stpncpy.c: Likewise.
27875         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27876         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27877         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27878         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27879         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27880         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27881         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27882         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27884         Likewise.
27885         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27886         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27887         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27888         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27889         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27890         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27891         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27892         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27893         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27894         * tests/test-striconveha.c (main): Likewise.
27895         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27896         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27897         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27898         * doc/posix-functions/getline.texi: Likewise.
27899         Reported by Mike Frysinger <vapier@gentoo.org>.
27900
27901 2010-11-20  Bruno Haible  <bruno@clisp.org>
27902
27903         nproc: Fix condition.
27904         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27905         HAVE_PTHREAD_AFFINITY_NP.
27906
27907 2010-11-20  Bruno Haible  <bruno@clisp.org>
27908
27909         Fix a comment.
27910         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27911
27912 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27913
27914         ftoastr: don't assume snprintf
27915         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27916         Implement a subset of snprintf here, by using sprintf safely.
27917         * modules/ftoastr (Depends-on): Remove snprintf.
27918
27919 2010-11-19  Jim Meyering  <meyering@redhat.com>
27920
27921         test-rename.h: fix compilation failure
27922         * tests/test-rename.h (test_rename): Add omitted "}".
27923
27924 2010-11-17  Jim Meyering  <meyering@redhat.com>
27925
27926         maint.mk: add a URL discussing the no-@acronym policy
27927         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27928
27929 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27930
27931         ftoastr: depend on snprintf, improve comments
27932         * lib/ftoastr.c: Also mention Loitsch's draft.
27933         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27934         needed in the current implementation, but it might simplify
27935         speeding up the code later.
27936         * modules/ftoastr: Depend on snprintf; this improves portability.
27937         Suggested by Bruno Haible in the same email.
27938
27939         ftoastr: port to hosts lacking strtof and strtold
27940         Problem reported by Bruno Haible in
27941         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27942         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27943         environment and strtold (and presumably strtof) are not available.
27944         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27945         (configure.ac): Require gl_C99_STRTOLD.
27946
27947 2010-11-18  Bruno Haible  <bruno@clisp.org>
27948
27949         c-strtold: Avoid link error on AIX 7.
27950         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27951         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27952         (gl_C_STRTOLD): Test whether strtold_l exists.
27953         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27954
27955 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27956
27957         intprops: new macro INT_BITS_STRLEN_BOUND
27958         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27959         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27960         not exposed.  Also, it uses a slightly tighter bound than before;
27961         though this makes no practical difference, we might as well be as
27962         tight as we easily can.
27963
27964         ftoastr: new module, for lossless conversion of floats to short strings
27965         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27966         * modules/ftoastr: New files.
27967
27968 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27969
27970         bootstrap: port to Solaris sed
27971         * build-aux/bootstrap (get_version): Port to Solaris sed.
27972         See Ralf Wildenhues's note in
27973         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27974
27975 2010-11-14  Jim Meyering  <meyering@redhat.com>
27976
27977         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27978         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27979         and move definition closer to sole use.
27980
27981 2010-11-13  Jim Meyering  <meyering@redhat.com>
27982
27983         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27984         Now we require at least autoconf-2.59, which means the work-around
27985         is no longer needed.
27986         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27987         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27988         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27989         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27990         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27991
27992 2010-11-13  Bruno Haible  <bruno@clisp.org>
27993
27994         rename, renameat: Avoid test failures at NFS mounted locations.
27995         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27996         functions.
27997         (test_rename): Use assert_nonexistent.
27998         * tests/test-rename.c: Include <dirent.h>.
27999         * tests/test-renameat.c: Likewise.
28000         Reported by Gary V. Vaughan <gary@gnu.org>.
28001
28002         rename, renameat: Document Linux bug with NFS
28003         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28004         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28005         * doc/posix-functions/renameat.texi: Likewise.
28006         Suggested by Eric Blake.
28007
28008 2010-11-13  Bruno Haible  <bruno@clisp.org>
28009
28010         rename test: Add comments.
28011         * tests/test-rename.h (test_rename): Add structure and comments.
28012
28013 2010-11-13  Eric Blake  <eblake@redhat.com>
28014
28015         maintainer-makefile: cover a few more files
28016         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28017         scripts generated within C files, for libvirt.
28018
28019 2010-11-13  Bruno Haible  <bruno@clisp.org>
28020
28021         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28022         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28023         character, return the number of bytes that belong together, not always
28024         1.
28025         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28026         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28027         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28028         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28029         number of bytes of an invalid character.
28030         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28031         (main): Invoke it.
28032         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28033         results.
28034         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28035         malformed byte sequences.
28036         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28037         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28038         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28039         Reported by Ben Pfaff and Paolo Bonzini.
28040
28041 2010-11-13  Bruno Haible  <bruno@clisp.org>
28042
28043         openat: Work around glibc bug with fchownat() and empty file names.
28044         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28045         (gl_FUNC_FCHOWNAT): Invoke it.
28046         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28047         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28048         Reported by Gary V. Vaughan <gary@gnu.org>.
28049
28050 2010-11-13  Bruno Haible  <bruno@clisp.org>
28051
28052         openat: Ensure autoconf macro ordering.
28053         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28054         gl_USE_SYSTEM_EXTENSIONS.
28055         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28056
28057 2010-11-13  Bruno Haible  <bruno@clisp.org>
28058
28059         Update comments.
28060         * lib/unistr/u8-check.c: Update file name in comments.
28061         * lib/unistr/u8-mblen.c: Likewise.
28062         * lib/unistr/u8-prev.c: Likewise.
28063         * lib/unistr/u8-strmblen.c: Likewise.
28064         * lib/unistr/u8-strmbtouc.c: Likewise.
28065
28066 2010-11-13  Jim Meyering  <meyering@redhat.com>
28067
28068         tests: avoid test failure on Solaris 10 due to lack of PATH export
28069         * tests/test-update-copyright.sh: Don't forget to export PATH.
28070
28071         init.sh: ensure that IFS is defined, just in case...
28072         * tests/init.sh (setup_): Ensure that IFS is defined,
28073         so that saving and restoring it works as expected.  This
28074         appears to be useful at least for an old version of dash
28075         from a long time ago (RH 6).  See here for details:
28076         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28077
28078         maint.mk: tighten "test a == b" check
28079         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28080         test to files that contain something like #!/bin/sh.
28081         Without this, coreutils would get two false positives in
28082         the comments of C source files.
28083
28084 2010-11-12  Eric Blake  <eblake@redhat.com>
28085
28086         bootstrap: fix typo in previous attempt
28087         * build-aux/bootstrap (buildreq): Correct the grouping.
28088         Reported by Paul Eggert.
28089
28090         maintainer-makefile: prohibit test x == x
28091         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28092         Based on a report by Matthias Bolte.
28093
28094         bootstrap: allow FreeBSD gzip
28095         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28096         which has no '.' and goes to stderr.
28097         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28098         Reported by Matthias Bolte.
28099
28100         maintainer-makefile: check for i18n setup
28101         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28102         will likely work.
28103
28104 2010-11-12  Bruno Haible  <bruno@clisp.org>
28105
28106         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28107         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28108         * lib/nanosleep.c (nanosleep): Likewise.
28109
28110 2010-11-11  Bruno Haible  <bruno@clisp.org>
28111
28112         fcntl-h: Fix for use of C++ on glibc systems.
28113         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28114         also on glibc systems in C++ mode.
28115         Reported by Gary V. Vaughan <gary@gnu.org>.
28116
28117 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28118
28119         mknod: avoid false failure with dash
28120         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28121
28122 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28123
28124         unlink: Fix "is it should" typo in diagnostic.
28125         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28126         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28127
28128 2010-11-11  Bruno Haible  <bruno@clisp.org>
28129
28130         Tests for module 'strerror_r-posix'.
28131         * modules/strerror_r-posix-tests: New file.
28132         * tests/test-strerror_r.c: New file.
28133         * tests/test-string-c++.cc: Check the signature of strerror_r.
28134
28135         New module 'strerror_r-posix'.
28136         * lib/string.in.h (strerror_r): New declaration.
28137         * lib/strerror_r.c: New file.
28138         * m4/strerror_r.m4: New file.
28139         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28140         of strerror_r.
28141         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28142         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28143         * modules/strerror_r-posix: New file.
28144         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28145         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28146         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28147         portability problems.
28148
28149 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28150
28151         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28152         line is also considered for output. Quoted function name in shell
28153         command, so temporary files for functions like MyClass::operator()
28154         are removed correctly without errors.
28155
28156 2010-11-09  Bruno Haible  <bruno@clisp.org>
28157
28158         * doc/posix-functions/strerror.texi: List more failing platforms.
28159
28160         * doc/posix-functions/strerror.texi: Add a comment.
28161
28162 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28163
28164         fdopendir: fix bug on MacOS X when low on file descriptors
28165
28166         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28167         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28168         All callers changed.
28169         (fdopendir): Invoke save_cwd at the top level, not after using
28170         multiple dup() calls to use up file descriptors.  Then retry
28171         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28172         less than the maximum number of open file descriptors, because
28173         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28174         on Mac OS X 10.6.4 for tar 1.24
28175         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28176         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28177         and for tar 1.25
28178         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28179
28180 2010-11-07  Bruno Haible  <bruno@clisp.org>
28181
28182         vasnprintf: Support I flag on glibc systems.
28183         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28184         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28185         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28186         snprintf function.
28187         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28188         glibc systems.
28189         * tests/test-vasnprintf-posix3.c: New file.
28190         * modules/vasnprintf-posix-tests (Files): Add it.
28191         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28192
28193 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28194
28195         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28196         * MODULES.html.sh: For compiler warnings, use name
28197         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28198
28199 2010-11-05  Eric Blake  <eblake@redhat.com>
28200
28201         ceil, floor: avoid spurious failure with icc
28202         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28203         [denormals-as-zero] when optimizing without -mieee-fp option.
28204         * tests/test-floorf2.c (floorf_reference): Likewise.
28205         * tests/test-ceilf1.c (dummy): New function.
28206         (main): Use it to outsmart icc's optimization.
28207         * tests/test-floorf1.c (dummy, main): Likewise.
28208
28209         tests: require working signbit
28210         * modules/ceilf-tests (Depends-on): Add signbit.
28211         * modules/ceill-tests (Depends-on): Likewise.
28212         * modules/floorf-tests (Depends-on): Likewise.
28213         * modules/floorl-tests (Depends-on): Likewise.
28214         * modules/round-tests (Depends-on): Likewise.
28215         * modules/roundf-tests (Depends-on): Likewise.
28216         * modules/roundl-tests (Depends-on): Likewise.
28217         * modules/trunc-tests (Depends-on): Likewise.
28218         * modules/truncf-tests (Depends-on): Likewise.
28219         * modules/truncl-tests (Depends-on): Likewise.
28220
28221         strtod: work around icc bug
28222         * lib/strtod.c (minus_zero): Define to working value.
28223         (strtod): Use it to avoid icc bug.
28224
28225         copysign: enhance tests
28226         * modules/copysign-tests (Files): Add minus-zero.h.
28227         * tests/test-copysign.c (main): Also test zeros.
28228
28229 2010-11-04  Eric Blake  <eblake@redhat.com>
28230
28231         ceil, floor, round, trunc: enhance tests of -0
28232         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28233         * tests/test-ceill.c (main): Likewise.
28234         * tests/test-floorf1.c (main): Likewise.
28235         * tests/test-floorl.c (main): Likewise.
28236         * tests/test-round1.c (main): Likewise.
28237         * tests/test-roundf1.c (main): Likewise.
28238         * tests/test-roundl.c (main): Likewise.
28239         * tests/test-trunc1.c (main): Likewise.
28240         * tests/test-truncf1.c (main): Likewise.
28241         * tests/test-truncl.c (main): Likewise.
28242
28243 2010-11-04  Eric Blake  <eblake@redhat.com>
28244
28245         frexp, tests: work around ICC bug with -zero
28246         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28247         works with more compilers.
28248         * tests/minus-zero.h: New file.
28249         * modules/ceilf-tests (Files): Include it.
28250         * modules/ceill-tests (Files): Likewise.
28251         * modules/floorf-tests (Files): Likewise.
28252         * modules/floorl-tests (Files): Likewise.
28253         * modules/frexp-nolibm-tests (Files): Likewise.
28254         * modules/frexp-tests (Files): Likewise.
28255         * modules/frexpl-nolibm-tests (Files): Likewise.
28256         * modules/frexpl-tests (Files): Likewise.
28257         * modules/isnan-tests (Files): Likewise.
28258         * modules/isnand-nolibm-tests (Files): Likewise.
28259         * modules/isnand-tests (Files): Likewise.
28260         * modules/isnanf-nolibm-tests (Files): Likewise.
28261         * modules/isnanf-tests (Files): Likewise.
28262         * modules/isnanl-nolibm-tests (Files): Likewise.
28263         * modules/isnanl-tests (Files): Likewise.
28264         * modules/round-tests (Files): Likewise.
28265         * modules/roundf-tests (Files): Likewise.
28266         * modules/roundl-tests (Files): Likewise.
28267         * modules/ldexpl-tests (Files): Likewise.
28268         * modules/signbit-tests (Files): Likewise.
28269         * modules/snprintf-posix-tests (Files): Likewise.
28270         * modules/sprintf-posix-tests (Files): Likewise.
28271         * modules/strtod-tests (Files): Likewise.
28272         * modules/trunc-tests (Files): Likewise.
28273         * modules/truncf-tests (Files): Likewise.
28274         * modules/truncl-tests (Files): Likewise.
28275         * modules/vsnprintf-posix-tests (Files): Likewise.
28276         * modules/vsprintf-posix-tests (Files): Likewise.
28277         * modules/vasnprintf-posix-tests (Files): Likewise.
28278         * modules/vasprintf-posix-tests (Files): Likewise.
28279         * tests/test-ceilf1.c (main): Use it.
28280         * tests/test-ceill.c (main): Likewise.
28281         * tests/test-floorf1.c (main): Likewise.
28282         * tests/test-floorl.c (main): Likewise.
28283         * tests/test-frexp.c (main): Likewise.
28284         * tests/test-frexpl.c (main): Likewise.
28285         * tests/test-isnan.c (main): Likewise.
28286         * tests/test-isnand.h (main): Likewise.
28287         * tests/test-isnanf.h (main): Likewise.
28288         * tests/test-isnanl.h (main): Likewise.
28289         * tests/test-ldexpl.c (main): Likewise.
28290         * tests/test-round.c (main): Likewise.
28291         * tests/test-roundf.c (main): Likewise.
28292         * tests/test-roundl.c (main): Likewise.
28293         * tests/test-signbit.c (test_signbitf, test_signbitd)
28294         (test_signbitl): Likewise.
28295         * tests/test-snprintf-posix.h (test_function): Likewise.
28296         * tests/test-sprintf-posix.h (test_function): Likewise.
28297         * tests/test-strtod.c (main): Likewise.
28298         * tests/test-trunc1.c (main): Likewise.
28299         * tests/test-truncf1.c (main): Likewise.
28300         * tests/test-truncl.c (main): Likewise.
28301
28302         isnanl: work around icc bug
28303         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28304
28305 2010-11-03  Eric Blake  <eblake@redhat.com>
28306
28307         tests: fix compiler warnings
28308         * tests/test-getopt.h (test_getopt): Fix condition.
28309         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28310         * tests/test-pipe2.c (main): Likewise.
28311         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28312
28313         utimens: fix broken m4 test
28314         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28315
28316 2010-10-28  Bruno Haible  <bruno@clisp.org>
28317
28318         posix_spawn*, getdtablesize: Relax license.
28319         * modules/posix_spawn (License): Change to LGPLv2+.
28320         * modules/posix_spawnp (License): Likewise.
28321         * modules/posix_spawn-internal (License): Likewise.
28322         * modules/posix_spawnattr_init (License): Likewise.
28323         * modules/posix_spawnattr_getflags (License): Likewise.
28324         * modules/posix_spawnattr_setflags (License): Likewise.
28325         * modules/posix_spawnattr_getpgroup (License): Likewise.
28326         * modules/posix_spawnattr_setpgroup (License): Likewise.
28327         * modules/posix_spawnattr_getschedparam (License): Likewise.
28328         * modules/posix_spawnattr_setschedparam (License): Likewise.
28329         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28330         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28331         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28332         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28333         * modules/posix_spawnattr_getsigmask (License): Likewise.
28334         * modules/posix_spawnattr_setsigmask (License): Likewise.
28335         * modules/posix_spawnattr_destroy (License): Likewise.
28336         * modules/posix_spawn_file_actions_init (License): Likewise.
28337         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28338         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28339         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28340         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28341         * modules/getdtablesize (License): Likewise.
28342         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28343
28344 2010-10-26  Bruno Haible  <bruno@clisp.org>
28345
28346         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28347         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28348         Cygwin and mingw.
28349         Suggested by Eric Blake.
28350
28351 2010-10-26  Bruno Haible  <bruno@clisp.org>
28352
28353         stdio: Work around compilation error due to renameat() on Solaris 10.
28354         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28355         * lib/renameat.c: Don't include <unistd.h> here.
28356         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28357         Reported by Paul Eggert and Eric Blake.
28358
28359 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28360
28361         renameat: port to Solaris 10, which declares renameat in unistd.h
28362
28363         * lib/renameat.c: Include unistd.h before stdio.h, because
28364         Solaris 10 declares renameat in unistd.h.  Problem encountered
28365         when building GNU tar 1.24 on Solaris 10.
28366
28367 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28368
28369         fdopendir: fix C89 compilation
28370         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28371         compilers.
28372
28373 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28374
28375         inttostr: simplify by removing unnecessary redundancy
28376         * lib/anytostr.c: Don't include verify.h.
28377         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28378         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28379         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28380         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28381         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28382         Likewise.
28383         * modules/inttostr (Depends-on): Remove 'verify'.
28384
28385 2010-10-23  Bruno Haible  <bruno@clisp.org>
28386
28387         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28388         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28389         Reported by Eric Blake.
28390
28391 2010-10-23  Bruno Haible  <bruno@clisp.org>
28392
28393         Tests: Fix LOCALE_JA on MirBSD 10.
28394         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28395         to an UTF-8 locale.
28396         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28397         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28398         Reported by Eric Blake.
28399
28400 2010-10-21  Bruno Haible  <bruno@clisp.org>
28401
28402         nl_langinfo test: Avoid test failure on NetBSD 5.
28403         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28404         Reported by Eric Blake.
28405
28406 2010-10-21  Eric Blake  <eblake@redhat.com>
28407
28408         c-stack: work around libsigsegv 2.8 bug
28409         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28410         overflow on at least PowerPC64.
28411
28412 2010-10-17  Bruno Haible  <bruno@clisp.org>
28413
28414         userspec: Drop redundant file.
28415         * modules/userspec (Files): Remove lib/inttostr.h.
28416
28417 2010-10-17  Bruno Haible  <bruno@clisp.org>
28418
28419         nl_langinfo tests: Silence some warnings.
28420         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28421         Reported by Jim Meyering.
28422
28423 2010-10-17  Bruno Haible  <bruno@clisp.org>
28424
28425         Make use of GCC's attribute __alloc_size__.
28426         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28427         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28428         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28429         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28430         __alloc_size__.
28431         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28432         Suggested by Jim Meyering.
28433
28434 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28435
28436         bootstrap: anchor .gitignore entries.
28437         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28438         with...
28439         (insert_vc_ignore): ... this new function, which prepends `/' to
28440         all .gitignore entries before passing them to
28441         insert_sorted_if_absent.
28442
28443 2010-10-16  Bruno Haible  <bruno@clisp.org>
28444
28445         nextafter: Fix configure check.
28446         * modules/nextafter (configure.ac): Correct expected prototype.
28447
28448 2010-10-16  Bruno Haible  <bruno@clisp.org>
28449
28450         termios: Update documentation.
28451         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28452
28453 2010-10-16  Bruno Haible  <bruno@clisp.org>
28454
28455         tests: Make them compile with TinyCC.
28456         * tests/test-strstr.c (main): Remove parentheses around array
28457         initializer.
28458
28459 2010-10-15  Eric Blake  <eblake@redhat.com>
28460
28461         ignore-value: make header idempotent
28462         * lib/ignore-value.h: Add double-inclusion guards.
28463         Reported by Stefan Berger.
28464
28465 2010-10-15  Jim Meyering  <meyering@redhat.com>
28466
28467         GNUmakefile: handle "stable" target, not "major"
28468         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28469         lists in maint.mk and announce-gen.  Without this, "make stable"
28470         would fail to ensure that $(VERSION) is up to date.
28471
28472 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28473
28474         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28475         & co.
28476
28477 2010-10-14  Bruno Haible  <bruno@clisp.org>
28478
28479         vasnprintf: Don't set errno to 0.
28480         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28481         block that sets it to 0.
28482         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28483
28484 2010-10-14  Bruno Haible  <bruno@clisp.org>
28485
28486         socketlib: Fix.
28487         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28488         gl_PREREQ_SYS_H_WINSOCK2.
28489         Reported by Ian Beckwith <ianb@erislabs.net>.
28490
28491 2010-10-13  Jim Meyering  <meyering@redhat.com>
28492
28493         test-select-stdin.c: avoid warn_unused_result warnings
28494         * tests/test-select-stdin.c: Include "macros.h".
28495         ASSERT that read and fflush succeed.
28496
28497 2010-10-13  Jim Meyering  <meyering@redhat.com>
28498
28499         git-version-gen: do require git-VC'd files in cwd
28500         * build-aux/git-version-gen: Reject a git version string
28501         if there are no commits associated with the current directory.
28502         This avoids an unlikely false-positive (unrelated dir whose parent
28503         repository also contains a tag matching v*), as pointed out
28504         by Giuseppe Scrivano in
28505         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28506
28507 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28508
28509         argv-iter: omit nonconforming declaration
28510         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28511         enum arg_iter_err declaration, which doesn't conform to C99.
28512         Solaris 10 cc warns about this.
28513
28514 2010-10-13  Eric Blake  <eblake@redhat.com>
28515
28516         termios: fix compilation on mingw
28517         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28518         (gl_TERMIOS_H): Adjust it on mingw.
28519         * modules/termios (Makefile.am): Substitute new key.
28520         * lib/termios.in.h (includes): Make include_next conditional.
28521         * doc/posix-headers/termios.texi (termios.h): Update
28522         documentation.
28523         Reported by Daniel P. Berrange.
28524
28525 2010-10-13  Jim Meyering  <meyering@redhat.com>
28526
28527         git-version-gen: don't require that .git/ be in the current dir
28528         * build-aux/git-version-gen: Adjust this script so that it works
28529         when run from any working directory beneath the top-level .git/-
28530         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28531         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28532
28533         test-select: avoid warn_unused_result warnings
28534         * tests/test-select.c: Include "macros.h".
28535         ASSERT that each call to read, write, and pipe succeeds.
28536         While not technically required, also check each "close".
28537         * modules/select-tests (Files): Add tests/macros.h.
28538
28539         test-symlinkat: remove declaration of unused local
28540         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28541
28542         test-inttostr: avoid shadowing warnings
28543         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28544         and use malloc rather than the stack for the same reason as
28545         mentioned in the comment justifying the other allocation.
28546
28547 2010-10-11  Bruno Haible  <bruno@clisp.org>
28548
28549         stdlib: Allow multiple gnulib generated replacements to coexist.
28550         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28551         Reported by Sam Steingold <sds@gnu.org>.
28552
28553 2010-10-11  Jim Meyering  <meyering@redhat.com>
28554
28555         fix a documentation typo
28556         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28557
28558 2010-10-11  Eric Blake  <eblake@redhat.com>
28559
28560         futimens: work around Solaris 11 bug
28561         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28562         * tests/test-futimens.h (test_futimens): Enhance, rather than
28563         weaken test.
28564         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28565
28566 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28567
28568         Indentation.
28569         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28570         higher-level operators more to the left.
28571
28572 2010-10-11  Jim Meyering  <meyering@redhat.com>
28573
28574         test-futimens: avoid unwarranted test failure on Solaris 5.11
28575         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28576         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28577         because it tries to dereference the NULL name argument.
28578
28579 2010-10-11  Bruno Haible  <bruno@clisp.org>
28580
28581         Indentation.
28582         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28583         indentation.
28584
28585 2010-10-11  Jim Meyering  <meyering@redhat.com>
28586
28587         spawn.in.h: make indentation consistent with parentheses
28588         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28589         Make indentation consistent with parentheses.
28590
28591 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28592
28593         Fix mismatched parens in previous commit
28594         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28595         parens.
28596
28597 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28598
28599         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28600
28601         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28602         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28603         * lib/malloca.c: Include "verify.h".
28604         (verify1): Remove, replacing with a verify call.
28605         * lib/relocwrapper.c (verify1): Likewise.
28606         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28607         Likewise.
28608         * modules/malloca (Depends-on): Add 'verify'.
28609         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28610         * modules/vasnprintf (Depends-on): Add 'verify'.
28611         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28612         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28613         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28614         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28615         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28616         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28617         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28618
28619         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28620
28621         Formerly the style was sometimes 2*X - 1, because the C standard
28622         was wrongly thought to disallow ?: in integral constant expressions.
28623         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28624         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28625         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28626         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28627         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28628         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28629         verify that time_t cannot be floating.
28630
28631 2010-10-08  Eric Blake  <eblake@redhat.com>
28632
28633         time: enforce recent POSIX ruling that time_t is integral
28634         * lib/time.in.h (__time_t_must_be_integral): Detect any
28635         problematic systems, allowing the rest of gnulib to assume POSIX.
28636
28637 2010-10-08  Jim Meyering  <meyering@redhat.com>
28638
28639         fdopendir: fix a bug on systems lacking openat and /proc support
28640         OpenBSD 4.7 is one such system.  The most noticeable effect was
28641         failure of any application making nontrivial use of fts: rm, du,
28642         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28643           ./rm: traversal failed: `a': Bad file descriptor
28644         Debugging that, you see that even though FD 6 was closed just
28645         prior to the opendir call in fd_clone_opendir, its resulting
28646         dir->dd_fd was 8, rather than the expected value of 6:
28647
28648         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28649         93                close (fd);
28650         (gdb) n
28651         94                dir = fd_clone_opendir (dupfd);
28652         (gdb) n
28653         95                saved_errno = errno;
28654         (gdb) p dir->dd_fd
28655         $11 = 8
28656
28657         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28658         The problem is that on OpenBSD, fd_clone_opendir has to resort
28659         to using the old-style save/restore CWD mechanism, due to its
28660         lack of openat/proc support, and *that* would steal the FD (6)
28661         that opendir was supposed to use.
28662
28663         The fix is to squirrel away the desired FD so that save_cwd uses a
28664         different one, and then free the dest FD right before calling opendir.
28665         That guarantees opendir will use the required file descriptor.
28666
28667         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28668
28669 2010-10-08  Bruno Haible  <bruno@clisp.org>
28670
28671         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28672         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28673
28674 2010-10-08  Bruno Haible  <bruno@clisp.org>
28675
28676         nanosleep: Make replacement POSIX compliant.
28677         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28678         is out of range.
28679         Reported by Jim Meyering.
28680
28681 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28682
28683         bootstrap: add hook for altering gnulib.mk, for Bison
28684         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28685         the Bison bootstrapping process can rewrite file names and variables
28686         in this file before later parts of 'bootstrap' use the file.
28687         Bison wants to include lib/gnulib.mk from the top-level makefile,
28688         so it needs the file names in this file to be relative to the top
28689         level, not relative to lib; plus it needs variable names to be
28690         rewritten.
28691         (slurp): Use the new function.
28692
28693         bootstrap: reformat for readability
28694         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28695
28696 2010-10-08  Eric Blake  <eblake@redhat.com>
28697
28698         docs: update cygwin progress
28699         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28700         1.7.7.
28701         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28702         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28703         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28704         * doc/posix-functions/carg.texi (carg): Likewise.
28705         * doc/posix-functions/cargf.texi (cargf): Likewise.
28706         * doc/posix-functions/casin.texi (casin): Likewise.
28707         * doc/posix-functions/casinf.texi (casinf): Likewise.
28708         * doc/posix-functions/casinh.texi (casinh): Likewise.
28709         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28710         * doc/posix-functions/catan.texi (catan): Likewise.
28711         * doc/posix-functions/catanf.texi (catanf): Likewise.
28712         * doc/posix-functions/catanh.texi (catanh): Likewise.
28713         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28714         * doc/posix-functions/ccos.texi (ccos): Likewise.
28715         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28716         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28717         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28718         * doc/posix-functions/cexp.texi (cexp): Likewise.
28719         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28720         * doc/posix-functions/cimag.texi (cimag): Likewise.
28721         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28722         * doc/posix-functions/clog.texi (clog): Likewise.
28723         * doc/posix-functions/clogf.texi (clogf): Likewise.
28724         * doc/posix-functions/conj.texi (conj): Likewise.
28725         * doc/posix-functions/conjf.texi (conjf): Likewise.
28726         * doc/posix-functions/cpow.texi (cpow): Likewise.
28727         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28728         * doc/posix-functions/cproj.texi (cproj): Likewise.
28729         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28730         * doc/posix-functions/creal.texi (creal): Likewise.
28731         * doc/posix-functions/crealf.texi (crealf): Likewise.
28732         * doc/posix-functions/csin.texi (csin): Likewise.
28733         * doc/posix-functions/csinf.texi (csinf): Likewise.
28734         * doc/posix-functions/csinh.texi (csinh): Likewise.
28735         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28736         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28737         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28738         * doc/posix-functions/ctan.texi (ctan): Likewise.
28739         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28740         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28741         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28742         * doc/posix-headers/complex.texi (complex.h): Likewise.
28743
28744 2010-10-07  Jim Meyering  <meyering@redhat.com>
28745
28746         parse-datetime: avoid compilation failure on OpenBSD 4.7
28747         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28748         This works around a compilation failure on OpenBSD 4.7:
28749         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28750
28751 2010-10-07  Eric Blake  <eblake@redhat.com>
28752
28753         docs: update cygwin progress
28754         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28755         1.7.6.
28756         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28757         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28758         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28759         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28760         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28761         Likewise.
28762         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28763         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28764         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28765         Likewise.
28766         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28767         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28768         Likewise.
28769         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28770         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28771         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28772         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28773         Likewise.
28774         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28775         Likewise.
28776         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28777
28778         docs: update parse-datetime history
28779         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28780         documentation of this function's history and alternatives.
28781
28782         cygwin: use more robust version check
28783         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28784         exclude an eventual cygwin 1.9.1.
28785         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28787         (gl_FUNC_STRCASESTR): Likewise.
28788         Reported by Bruno Haible.
28789
28790 2010-10-06  Bruno Haible  <bruno@clisp.org>
28791
28792         string, sys_select: Avoid #including large headers unless necessary.
28793         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28794         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28795         OSF/1, BeOS, Haiku.
28796         Reported by Jim Meyering.
28797
28798 2010-10-05  Eric Blake  <eblake@redhat.com>
28799
28800         memmem, strstr, strcasestr: fix bug with long periodic needle
28801         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28802         periodic needle having false positive.
28803         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28804         and cygwin 1.7.7.
28805         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28806         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28807         (gl_FUNC_STRCASESTR): Likewise.
28808         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28809         * tests/test-memmem.c (main): Expose the bug.
28810         * tests/test-strcasestr.c (main): Likewise.
28811         * tests/test-strstr.c (main): Likewise.
28812         * tests/test-c-strcasestr.c (main): Likewise.
28813         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28814         * doc/posix-functions/strstr.texi (strstr): Likewise.
28815         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28816         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28817
28818 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28819
28820         parse-datetime: do some more renaming
28821         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28822         parse_datetime, not get_date.  Mention the renaming.
28823         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28824         in comments.
28825         * m4/bison.m4: Likewise.
28826
28827 2010-10-05  Eric Blake  <eblake@redhat.com>
28828
28829         parse-datetime: better name than get_date
28830         * NEWS: Reword the deprecation notice.
28831         * modules/get_date: Rename to modules/parse-datetime.
28832         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28833         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28834         * lib/get_date.y: Rename to lib/parse-datetime.y.
28835         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28836         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28837         * doc/getdate.texi: Provide fallback wrapper.
28838         * lib/getdate.h: Move guts, and wrap...
28839         * lib/parse-datetime.h: ...new file.
28840         * lib/parse-datetime.y (get_date): Rename...
28841         (parse_datetime): ...to this.
28842         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28843         (gl_PARSE_DATETIME): ...to this.
28844         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28845         documentation.
28846         * modules/getdate (Files): Provide fallback docs and header.
28847         (Notice, Depends-on): Update references.
28848         * tests/test-parse-datetime.c: Likewise.
28849         * DEPENDENCIES: Likewise.
28850         * MODULES.html.sh (Date and time <time.h>): Likewise.
28851         * doc/parse-datetime.texi (Date input formats)
28852         (Authors of parse_datetime): Likewise.
28853         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28854         (Include): Likewise.
28855         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28856         * gnulib-tool: Likewise.
28857         * m4/bison.m4 (gl_BISON): Likewise.
28858         Suggested by Bruno Haible.
28859
28860 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28861
28862         more ports to Solaris tr, which needs [] around ranges
28863         * gnulib-tool: Solaris tr needs [] around ranges.
28864         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28865         * tests/test-pipe-filter-gi1.c (main): Likewise.
28866         * tests/test-pipe-filter-ii1.c (main): Likewise.
28867
28868 2010-10-05  Eric Blake  <eblake@redhat.com>
28869
28870         bootstrap: fix Solaris regression
28871         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28872         around ranges.
28873         Reported by Pádraig Brady.
28874
28875         bootstrap: work with pkg-config
28876         * build-aux/bootstrap (check_versions): Also transliterate - in
28877         prerequisite name.
28878         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28879         prerequisites that were already found, to avoid confusion.
28880         Reported by Justin Clift.
28881
28882         faccessat: remove unused wrappers
28883         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28884         presence of these wrappers dragged in -lgen on Solaris.
28885         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28886
28887 2010-10-05  Jim Meyering  <meyering@redhat.com>
28888
28889         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28890         * Makefile (sc_pragma_columns): New syntax-check rule.
28891
28892 2010-10-04  Bruno Haible  <bruno@clisp.org>
28893
28894         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28895         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28896         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28897         Reported by Bruce Korb and Eric Blake.
28898
28899 2010-10-04  Bruno Haible  <bruno@clisp.org>
28900
28901         threadlib: Make option --with-libpth-prefix work.
28902         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28903         use $LIBPTH, not just -lpth.
28904
28905 2010-10-04  Bruno Haible  <bruno@clisp.org>
28906
28907         Avoid line length limitation from HP NonStop system header files.
28908         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28909         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28910         * lib/ctype.in.h: Likewise.
28911         * lib/dirent.in.h: Likewise.
28912         * lib/errno.in.h: Likewise.
28913         * lib/fcntl.in.h: Likewise.
28914         * lib/float.in.h: Likewise.
28915         * lib/getopt.in.h: Likewise.
28916         * lib/iconv.in.h: Likewise.
28917         * lib/inttypes.in.h: Likewise.
28918         * lib/langinfo.in.h: Likewise.
28919         * lib/locale.in.h: Likewise.
28920         * lib/math.in.h: Likewise.
28921         * lib/netdb.in.h: Likewise.
28922         * lib/netinet_in.in.h: Likewise.
28923         * lib/poll.in.h: Likewise.
28924         * lib/pthread.in.h: Likewise.
28925         * lib/pty.in.h: Likewise.
28926         * lib/sched.in.h: Likewise.
28927         * lib/se-selinux.in.h: Likewise.
28928         * lib/search.in.h: Likewise.
28929         * lib/signal.in.h: Likewise.
28930         * lib/spawn.in.h: Likewise.
28931         * lib/stdarg.in.h: Likewise.
28932         * lib/stddef.in.h: Likewise.
28933         * lib/stdint.in.h: Likewise.
28934         * lib/stdio.in.h: Likewise.
28935         * lib/stdlib.in.h: Likewise.
28936         * lib/string.in.h: Likewise.
28937         * lib/strings.in.h: Likewise.
28938         * lib/sys_file.in.h: Likewise.
28939         * lib/sys_ioctl.in.h: Likewise.
28940         * lib/sys_select.in.h: Likewise.
28941         * lib/sys_socket.in.h: Likewise.
28942         * lib/sys_stat.in.h: Likewise.
28943         * lib/sys_time.in.h: Likewise.
28944         * lib/sys_times.in.h: Likewise.
28945         * lib/sys_utsname.in.h: Likewise.
28946         * lib/sys_wait.in.h: Likewise.
28947         * lib/sysexits.in.h: Likewise.
28948         * lib/termios.in.h: Likewise.
28949         * lib/time.in.h: Likewise.
28950         * lib/unistd.in.h: Likewise.
28951         * lib/wchar.in.h: Likewise.
28952         * lib/wctype.in.h: Likewise.
28953         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28954         * modules/ctype (Makefile.am): Likewise.
28955         * modules/dirent (Makefile.am): Likewise.
28956         * modules/errno (Makefile.am): Likewise.
28957         * modules/fcntl-h (Makefile.am): Likewise.
28958         * modules/float (Makefile.am): Likewise.
28959         * modules/getopt-posix (Makefile.am): Likewise.
28960         * modules/iconv-h (Makefile.am): Likewise.
28961         * modules/inttypes (Makefile.am): Likewise.
28962         * modules/langinfo (Makefile.am): Likewise.
28963         * modules/locale (Makefile.am): Likewise.
28964         * modules/math (Makefile.am): Likewise.
28965         * modules/netdb (Makefile.am): Likewise.
28966         * modules/netinet_in (Makefile.am): Likewise.
28967         * modules/poll-h (Makefile.am): Likewise.
28968         * modules/pthread (Makefile.am): Likewise.
28969         * modules/pty (Makefile.am): Likewise.
28970         * modules/sched (Makefile.am): Likewise.
28971         * modules/search (Makefile.am): Likewise.
28972         * modules/selinux-h (Makefile.am): Likewise.
28973         * modules/signal (Makefile.am): Likewise.
28974         * modules/spawn (Makefile.am): Likewise.
28975         * modules/stdarg (Makefile.am): Likewise.
28976         * modules/stddef (Makefile.am): Likewise.
28977         * modules/stdint (Makefile.am): Likewise.
28978         * modules/stdio (Makefile.am): Likewise.
28979         * modules/stdlib (Makefile.am): Likewise.
28980         * modules/string (Makefile.am): Likewise.
28981         * modules/strings (Makefile.am): Likewise.
28982         * modules/sys_file (Makefile.am): Likewise.
28983         * modules/sys_ioctl (Makefile.am): Likewise.
28984         * modules/sys_select (Makefile.am): Likewise.
28985         * modules/sys_socket (Makefile.am): Likewise.
28986         * modules/sys_stat (Makefile.am): Likewise.
28987         * modules/sys_time (Makefile.am): Likewise.
28988         * modules/sys_times (Makefile.am): Likewise.
28989         * modules/sys_utsname (Makefile.am): Likewise.
28990         * modules/sys_wait (Makefile.am): Likewise.
28991         * modules/sysexits (Makefile.am): Likewise.
28992         * modules/termios (Makefile.am): Likewise.
28993         * modules/time (Makefile.am): Likewise.
28994         * modules/unistd (Makefile.am): Likewise.
28995         * modules/wchar (Makefile.am): Likewise.
28996         * modules/wctype (Makefile.am): Likewise.
28997
28998 2010-10-04  Bruno Haible  <bruno@clisp.org>
28999
29000         read-file tests: Avoid a test failure on NonStop Kernel.
29001         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29002         a regular file.
29003         Reported by Joachim Schmitz <schmitz@hp.com>.
29004
29005 2010-10-03  Bruno Haible  <bruno@clisp.org>
29006
29007         gnulib-tool: Fixes for --create-testdir with --libtool.
29008         * gnulib-tool (func_get_automake_snippet): Don't augment
29009         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29010         an executable.
29011         (func_create_testdir): Handle module 'alloca' like func_import.
29012         Reported by Bruce Korb <bruce.korb@gmail.com>.
29013
29014 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29015
29016         Avoid some lines longer than 80 characters.
29017         * lib/stdint.in.h: Break long comment lines.
29018         * lib/math.in.h: Likewise.
29019         (_GL_NUM_UINT_WORDS): New macro, for readability.
29020         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29021         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29022         * lib/stdlib.in.h: Likewise.
29023         * lib/spawn.in.h: Likewise.
29024         * lib/sys_socket.in.h: Update an URL.
29025         * lib/sys_stat.in.h: Break long line.
29026
29027 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29028
29029         Improve pmccabe2html.
29030         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29031         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29032         when the sources change. Remove the line in the HTML about "Used
29033         ranges" (which implied that there might be other unused ranges),
29034         rename "Resume" to "Summary" (easier to understand for more users).
29035         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29036         styles, and some unnecessary blank lines.
29037
29038 2010-10-03  Bruno Haible  <bruno@clisp.org>
29039             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29040
29041         acl: Add support for ACLs on NonStop Kernel.
29042         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29043         Check whether the function aclsort() exists.
29044         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29045         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29046         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29047         (acl_nontrivial [HAVE_ACLSORT]: New function.
29048         (file_has_acl): Implement for NonStop Kernel.
29049         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29050         (qset_acl): Implement for NonStop Kernel.
29051         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29052         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29053         (main): Implement for NonStop Kernel.
29054         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29055         Kernel. Handle this flavor.
29056         * tests/test-set-mode-acl.sh: Likewise.
29057         * tests/test-copy-acl.sh: Likewise.
29058         * tests/test-copy-file.sh: Likewise.
29059
29060 2010-10-03  Bruno Haible  <bruno@clisp.org>
29061
29062         Info about ACLs on NonStop Kernel.
29063         * doc/acl-resources.txt: Add info about NonStop Kernel.
29064         References by Joachim Schmitz <schmitz@hp.com>.
29065
29066 2010-10-02  Bruno Haible  <bruno@clisp.org>
29067
29068         Define missing EDQUOT on NonStop Kernel.
29069         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29070         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29071         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29072         missing.
29073         * doc/posix-headers/errno.texi: Mention the NSK bug.
29074         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29075         Reported by Joachim Schmitz <schmitz@hp.com>.
29076
29077 2010-10-02  Bruno Haible  <bruno@clisp.org>
29078
29079         Update doc for POSIX:2008.
29080         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29081         Update URL of POSIX specification.
29082
29083 2010-10-02  Bruno Haible  <bruno@clisp.org>
29084
29085         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29086         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29087         from gnulib, not from Automake.
29088
29089 2010-10-02  Bruno Haible  <bruno@clisp.org>
29090
29091         New module 'system-posix'.
29092         * modules/system-posix: New file.
29093         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29094         module is present.
29095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29096         GNULIB_SYSTEM_POSIX.
29097         * modules/stdlib (Depends-on): Remove sys_wait.
29098         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29099         * doc/posix-functions/system.texi: Mention the new module.
29100         * doc/posix-headers/stdlib.texi: Likewise.
29101         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29102         define test_sys_wait_macros to a no-op.
29103         Reported by Sam Steingold <sds@gnu.org>.
29104
29105 2010-09-30  Bruno Haible  <bruno@clisp.org>
29106
29107         More renaming from 'getdate' to 'get_date'.
29108         * doc/get_date.texi: Renamed from doc/getdate.texi.
29109         * modules/get_date (Files): Update.
29110         * MODULES.html.sh (Date and time <time.h>): Update.
29111         * DEPENDENCIES: Update.
29112         * gnulib-tool: Update comment.
29113         * m4/bison.m4 (gl_BISON): Likewise.
29114         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29115
29116 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29117
29118         bootstrap: support ACLOCAL_FLAGS during aclocal
29119         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29120         can add additional -I dir for third-party .m4 files.
29121
29122 2010-09-30  Eric Blake  <eblake@redhat.com>
29123
29124         bootstrap: use glibtoolize on MacOS
29125         * build-aux/bootstrap (check_versions): Convert libtool into
29126         libtoolize.
29127         (tool search): Move libtool check earlier, and look for
29128         glibtoolize for MacOS.
29129         (gnulib_tool_options): Auto-add --libtool when appropriate.
29130         Reported by Justin Clift.
29131
29132         poll: fix typo that broke test on MacOS
29133         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29134         Reported by Justin Clift.
29135
29136         getdate: rename to get_date
29137         Note: getdate.h is not renamed, to minimize client impact.
29138         * modules/getdate: Mark obsolete.  Move old contents...
29139         * modules/get_date: ...to new module name.
29140         * modules/getdate-tests: Move...
29141         * modules/get_date-tests: ...here.
29142         * m4/getdate.m4: Move...
29143         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29144         * lib/getdate.y: Move...
29145         * lib/get_date.y: ...here.
29146         * tests/test-getdate.c: Move...
29147         * tests/test-get_date.c: ...here.
29148         * doc/posix-functions/getdate.texi (getdate): Update name.
29149         * NEWS: Mention the change.
29150
29151 2010-09-29  Bruno Haible  <bruno@clisp.org>
29152
29153         Separate the module 'waitpid' from the module 'sys_wait'.
29154         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29155         present.
29156         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29157         gl_MODULE_INDICATOR_FOR_TESTS.
29158         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29159         * modules/sys_wait (Depends-on): Remove waitpid.
29160         (Makefile.am): Substitute GNULIB_WAITPID.
29161         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29162         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29163         signature only if the 'waitpid' module is present.
29164         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29165         * NEWS: Mention the change.
29166         * modules/grantpt (Depends-on): Add waitpid.
29167         * modules/wait-process (Depends-on): Likewise.
29168
29169 2010-09-29  Bruno Haible  <bruno@clisp.org>
29170
29171         More tests for module 'sys_wait'.
29172         * modules/sys_wait-c++-tests: New file.
29173         * tests/test-sys_wait-c++.cc: New file.
29174         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29175         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29176
29177 2010-09-29  Bruno Haible  <bruno@clisp.org>
29178
29179         New module 'waitpid'.
29180         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29181         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29182         Don't include <process.h>.
29183         (waitpid): Declare only, using modern idiom.
29184         * m4/waitpid.m4: New file.
29185         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29186         * modules/waitpid: New file.
29187         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29188         (Makefile.am): Update.
29189         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29190
29191 2010-09-28  Bruno Haible  <bruno@clisp.org>
29192
29193         poll: Assume ANSI C.
29194         * lib/poll.c (poll): Use an ANSI C declaration.
29195
29196 2010-09-28  Bruno Haible  <bruno@clisp.org>
29197
29198         poll-h: Create poll.h on all platforms.
29199         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29200         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29201         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29202         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29203         (gl_REPLACE_POLL_H): Don't set POLL_H.
29204         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29205         * modules/poll-h (Depends-on): Add include_next.
29206         (Makefile.am): Create poll.h unconditionally. Substitute also
29207         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29208
29209 2010-09-28  Bruno Haible  <bruno@clisp.org>
29210
29211         Tests for module 'poll-h'.
29212         * modules/poll-h-c++-tests: New file.
29213         * tests/test-poll-h-c++.cc: New file.
29214
29215         Tests for module 'poll-h'.
29216         * modules/poll-h-tests: New file.
29217         * tests/test-poll-h.c: New file.
29218
29219 2010-09-28  Bruno Haible  <bruno@clisp.org>
29220
29221         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29222         * modules/poll-h (Depends-on): Add 'extensions'.
29223
29224 2010-09-28  Bruno Haible  <bruno@clisp.org>
29225
29226         New module 'poll-h'.
29227         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29228         (poll): Use modern idiom.
29229         * modules/poll-h: New file.
29230         * modules/poll (Files): Remove lib/poll.in.h.
29231         (Depends-on): Add poll-h.
29232         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29233         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29234         * m4/poll_h.m4: New file.
29235         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29236         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29237         and invoke gl_REPLACE_POLL_H.
29238         * lib/poll.c: Use common idiom.
29239         * tests/test-poll.c: Likewise.
29240         * doc/posix-headers/poll.texi: Mention the poll-h module.
29241         Suggested by Eric Blake.
29242
29243 2010-09-26  Bruno Haible  <bruno@clisp.org>
29244
29245         sys_wait: Implement WSTOPSIG.
29246         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29247         Reported by Simon Josefsson.
29248
29249 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29250
29251         stdlib, sys_wait: Avoid compilation error on mingw.
29252         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29253
29254 2010-09-26  Bruno Haible  <bruno@clisp.org>
29255
29256         stdlib tests: Avoid code duplication.
29257         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29258         * modules/sys_wait-tests (Files): Likewise.
29259         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29260         * tests/test-stdlib.c: Include test-sys_wait.h.
29261         (main): Invoke test_sys_wait_macros.
29262         * tests/test-sys_wait.c: Include test-sys_wait.h.
29263         (main): Invoke test_sys_wait_macros.
29264
29265 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29266
29267         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29268         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29269         sure Windows sockets are working before calling getaddrinfo.
29270         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29271         * doc/gnulib.texi (Windows sockets): Fix typo.
29272
29273 2010-09-25  Bruno Haible  <bruno@clisp.org>
29274
29275         Tests for module 'regex-quote'.
29276         * modules/regex-quote-tests: New file.
29277         * tests/test-regex-quote.c: New file.
29278
29279         New module 'regex-quote'.
29280         * lib/regex-quote.h: New file.
29281         * lib/regex-quote.c: New file.
29282         * modules/regex-quote: New file.
29283         Suggested by Reuben Thomas <rrt@sc3d.org>.
29284
29285 2010-09-24  Bruno Haible  <bruno@clisp.org>
29286
29287         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29288         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29289
29290 2010-09-23  Bruno Haible  <bruno@clisp.org>
29291
29292         setenv: Relax license.
29293         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29294         Blake.
29295         Requested by Eric Blake.
29296
29297 2010-09-22  Bruno Haible  <bruno@clisp.org>
29298
29299         termios: Relax license.
29300         * modules/termios (License): Change to LGPLv2+.
29301         Requested by Eric Blake.
29302
29303 2010-09-22  Bruno Haible  <bruno@clisp.org>
29304
29305         threadlib: Allow the package to change the default to 'no'.
29306         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29307         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29308         Reported by Paul Eggert.
29309
29310 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29311             Bruno Haible  <bruno@clisp.org>
29312
29313         Fix endless loop in mbmemcasecoll.
29314         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29315         byte.
29316         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29317
29318 2010-09-22  Bruno Haible  <bruno@clisp.org>
29319
29320         Tests for module 'memcoll'.
29321         * modules/memcoll-tests: New file.
29322         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29323
29324         memcoll, xmemcoll: Clarify size vs. length.
29325         * modules/memcoll.c (memcoll0): Clarify specification.
29326         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29327         passed to collate_error.
29328
29329 2010-09-22  Bruno Haible  <bruno@clisp.org>
29330
29331         Tests for module 'memcasecmp'.
29332         * modules/memcasecmp-tests: New file.
29333         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29334
29335 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29336
29337         * lib/pthread.in.h: Add split double-inclusion guard, and include
29338         system <pthread.h> if there is one.  Use @@-style as in other
29339         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29340         pthread.h doesn't.
29341         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29342         (pthread_mutexattr_settype, pthread_mutex_trylock):
29343         New static inline functions, if there's no system <pthread.h>.
29344         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29345         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29346         Approximate with mutexes if the system lacks spinlocks, as in
29347         MacOS.
29348         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29349         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29350         @@-style.  Check for spinlocks separately.
29351         (gl_PTHREAD_DEFAULTS): New macro.
29352         * modules/pthread: Redo to use a more typical style for in.h files.
29353
29354 2010-09-21  Eric Blake  <eblake@redhat.com>
29355
29356         net_if: enhance tests
29357         * tests/test-net_if.c (main): Move signature checks earlier.
29358         Print failures to stderr.
29359         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29360         Document the bug that we do not yet fix.
29361
29362 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29363
29364         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29365         about gnulib, not GSS.
29366
29367 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29368
29369         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29370         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29371         for Emacs.
29372         * build-aux/pmccabe2html: Make Makefile.am example code more
29373         cut-and-paste friendly.
29374
29375 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29376
29377         * tests/test-net_if.c: New file.
29378         * modules/net_if-tests: New file.
29379
29380 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29381
29382         pthread: add pthread_spin_destroy
29383         * lib/pthread.in.h (pthread_spin_destroy): New function.
29384
29385 2010-09-19  Bruno Haible  <bruno@clisp.org>
29386
29387         gnulib-tool: Fix --help output.
29388         * gnulib-tool (func_usage): Fix help message.
29389         Reported by Reuben Thomas <rrt@sc3d.org>.
29390
29391 2010-09-18  Jim Meyering  <meyering@redhat.com>
29392
29393         maint.mk: avoid unexpanded \n in two diagnostics
29394         * top/maint.mk (sc_prohibit_always_true_header_tests):
29395         Don't use a literal \n in a halt=... assignment.  It would not be
29396         expanded, and the two \n bytes would appear in the diagnostic output
29397         rather than the desired newline.  Use halt=$$(printf ... instead.
29398         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29399
29400 2010-09-18  Bruno Haible  <bruno@clisp.org>
29401
29402         netinet_in: Doc tweak.
29403         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29404         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29405
29406 2010-09-18  Jim Meyering  <meyering@redhat.com>
29407
29408         init.sh: correct an outdated comment
29409         * tests/init.sh (create_exe_shims_):  s/function/alias/
29410
29411         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29412         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29413         a file named "*.exe" is removed between the glob expansion and the
29414         processing of that oddly named file.
29415
29416 2010-09-17  Eric Blake  <eblake@redhat.com>
29417
29418         mirbsd: add some more support
29419         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29420         in BSD family.
29421         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29422         devices as OpenBSD.
29423         * m4/host-os.m4 (mirbsd): Add MirBSD.
29424
29425         tests: fix unportable assumption on sys/wait.h
29426         * tests/test-sys_wait.c (main): Relax test.
29427         * tests/test-stdlib.c (main): Likewise.
29428
29429         init.sh: accommodate directory with no .exes
29430         * tests/init.sh: Accomodate directory containing only scripts.
29431
29432         tests: avoid compiler warning
29433         * tests/test-stdlib.c (main): Use the variable.
29434
29435         fdutimens, fdutimensat: update signature, again
29436         * lib/utimens.h (gl_futimens): Delete, and move signature...
29437         (fdutimens): ...here.
29438         (fdutimensat): Rearrange signature.
29439         (lutimensat): Rename variable for clarity.
29440         * lib/fdutimensat.c (fdutimensat): Update signature.
29441         * lib/utimens.c (fdutimens): Likewise.
29442         (gl_futimens): Delete.
29443         (utimens, lutimens): Update callers.
29444         * lib/futimens.c (futimens): Likewise.
29445         * tests/test-fdutimensat.c: Likewise.
29446         * tests/test-utimens.c: Likewise.
29447         * tests/test-futimens.h: Update comment.
29448         * NEWS: Mention this.
29449         Suggested by Paul Eggert.
29450
29451 2010-09-17  Bruno Haible  <bruno@clisp.org>
29452
29453         Take over the maintenance of some older macros from Autoconf.
29454         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29455         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29456         GNU Autoconf.
29457         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29458         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29459
29460 2010-09-17  Eric Blake  <eblake@redhat.com>
29461
29462         fdutimensat: drop atflag validation
29463         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29464         with valid fd, to close a race scenario where futimens is
29465         unsupported and FILE was replaced by a symlink.
29466         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29467         accordingly.
29468         Suggested by Paul Eggert.
29469
29470 2010-09-16  Bruno Haible  <bruno@clisp.org>
29471
29472         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29473         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29474
29475 2010-09-16  Bruno Haible  <bruno@clisp.org>
29476
29477         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29478         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29479         login_tty exists.
29480         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29481
29482 2010-09-16  Bruno Haible  <bruno@clisp.org>
29483
29484         login_tty: Make the replacement code work on BSD systems.
29485         * lib/login_tty.c: Include <sys/ioctl.h>.
29486         (login_tty): Use ioctl TIOCSCTTY when available.
29487         * modules/login_tty (Depends-on): Add sys_ioctl.
29488         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29489
29490 2010-09-16  Bruno Haible  <bruno@clisp.org>
29491
29492         login_tty: Stricter unit test.
29493         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29494         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29495         and tcgetsid() after login_tty.
29496         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29497
29498 2010-09-16  Bruno Haible  <bruno@clisp.org>
29499
29500         New module 'tcgetsid'.
29501         * lib/tcgetsid.c: New file.
29502         * m4/tcgetsid.m4: New file.
29503         * modules/tcgetsid: New file.
29504         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29505         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29506         GNULIB_TCGETSID, HAVE_TCGETSID.
29507         * lib/termios.in.h: Include <sys/types.h>.
29508         (tcgetsid): New declaration.
29509         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29510         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29511         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29512         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29513
29514 2010-09-16  Bruno Haible  <bruno@clisp.org>
29515
29516         Tests for module 'termios'.
29517         * modules/termios-c++-tests: New file.
29518         * modules/termios-tests: New file.
29519         * tests/test-termios-c++.cc: New file.
29520         * tests/test-termios.c: New file.
29521
29522         New module 'termios'.
29523         * modules/termios: New file.
29524         * lib/termios.in.h: New file.
29525         * m4/termios_h.m4: New file.
29526         * doc/posix-headers/termios.texi: Mention the new module.
29527
29528 2010-09-16  Eric Blake  <eblake@redhat.com>
29529
29530         fdutimensat: add an atflag parameter
29531         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29532         * lib/utimens.h (fdutimensat): Update prototype.
29533         * tests/test-fdutimensat.c: Adjust test to match.
29534         * NEWS: Document the change.
29535         Suggested by Paul Eggert.
29536
29537 2010-09-16  Bruno Haible  <bruno@clisp.org>
29538
29539         Fix typos in comments.
29540         * lib/striconveh.h: Fix typo in comment.
29541         * lib/login_tty.c (login_tty): Likewise.
29542
29543 2010-09-15  Bruno Haible  <bruno@clisp.org>
29544
29545         stdlib: clarify MirBSD WEXITSTATUS bug
29546         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29547         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29548
29549 2010-09-15  Eric Blake  <eblake@redhat.com>
29550
29551         stdlib: work around MirBSD WEXITSTATUS bug
29552         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29553         * modules/stdlib (Depends-on): Add sys_wait.
29554         * tests/test-sys_wait.c (main): Enhance test.
29555         * tests/test-stdlib.c (main): Likewise.
29556         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29557
29558         docs: mention MacOS issue with WEXITSTATUS(constant)
29559         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29560         issue.
29561         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29562
29563         strnlen: add tests
29564         * modules/strnlen-tests: New file.
29565         * tests/test-strnlen.c: Likewise.
29566
29567 2010-09-14  Bruno Haible  <bruno@clisp.org>
29568
29569         unistr/base: Avoid link errors when module 'libunistring' is also used.
29570         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29571         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29572         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29573         Declare also when HAVE_LIBUNISTRING is set.
29574         Reported by Pádraig Brady <P@draigbrady.com>.
29575
29576 2010-09-14  Eric Blake  <eblake@redhat.com>
29577
29578         test-rawmemchr: make more robust
29579         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29580         (Depends-on, configure.ac): Add needed prerequisites to use it.
29581         * modules/memchr-tests (Files, Depends-on, configure.ac):
29582         Likewise, to avoid implicit reliance on memchr module prereqs.
29583         * tests/test-memchr.c (main): Ensure proper masking.
29584         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29585         reads.
29586
29587         memchr: detect glibc Alpha bug
29588         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29589         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29590         Alpha.
29591         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29592         * tests/test-memchr.c (main): Enhance test.
29593         Reported by Nelson H. F. Beebe.
29594
29595 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29596
29597         fts, getcwd, glob: audit for dirfd returning -1
29598         * lib/fts.c (opendir): Remove #define; no longer used.
29599         (opendirat): New arg PDIR_FD.  All callers changed.
29600         (fts_build, _opendir2): Use new opendirat to avoid the need for
29601         dirfd, or for checking whether dirfd returns a negative value.
29602         Don't use opendir; always use openat followed by fdopendir.
29603         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29604         it.
29605         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29606         returns -1 here.
29607         * modules/fts (Depends-on): Remove dirfd.
29608         * modules/getcwd (Depends-on): Likewise.
29609
29610 2010-09-13  Eric Blake  <eblake@redhat.com>
29611
29612         float: fix broken MirBSD header
29613         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29614         * doc/posix-headers/float.texi (float.h): Document it.
29615
29616 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29617
29618         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29619         * lib/fts.c (opendirat): New arg extra_flags.
29620         (__opendir2): Use it to avoid following symlinks when opening
29621         a directory, if symlinks are not supposed to be followed.  See
29622         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29623
29624         fdopendir: preserve argument fd before returning
29625         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29626         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29627         (fdopendir): Use them, arranging for FD to be open to the same
29628         directory that it was when it started.  (It might be temporarily
29629         closed while fdopendir is running, so this not thread- or
29630         signal-safe.)  Be careful to do the right thing even when file
29631         descriptors are scarce and dup fails with errno == EMFILE.  See
29632         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29633
29634 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29635
29636         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29637         * NEWS: Document change.
29638         * m4/regex.m4: Disable test for regoff_t size.
29639
29640 2010-09-13  Jim Meyering  <meyering@redhat.com>
29641
29642         fts: don't operate on an invalid file descriptor after failed dup
29643         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29644         negative file descriptor.
29645
29646 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29647
29648         savedir: add streamsavedir, deprecate fdsavedir
29649         * NEWS: Mention deprecation of fdsavedir.
29650         * lib/savedir.c (streamsavedir): New extern function, whose name
29651         ends in "savedir" to be consistent with the others.  This differs
29652         from savedirstream in that it doesn't close its argument.  The
29653         next version of GNU tar will use this instead of fdsavedir, to
29654         avoid some race conditions and conserve file descriptors.
29655         (savedirstream): Reimplement as a wrapper around streamsavedir.
29656         (fdsavedir): Add a comment deprecating this function.  As far as
29657         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29658         * lib/savedir.h (streamsavedir): New decl.
29659         (fdsavedir): Add a comment deprecating this.
29660
29661 2010-09-10  Bruno Haible  <bruno@clisp.org>
29662
29663         langinfo: Fix last commit.
29664         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29665         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29666         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29667
29668 2010-09-10  Bruno Haible  <bruno@clisp.org>
29669
29670         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29671         * lib/progreloc.c (O_EXEC): Define fallback.
29672
29673 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29674
29675         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29676         * NEWS: Document recent changes to fcntl-h.
29677         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29678         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29679         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29680         Similarly for O_SEARCH; this last was already true, but not documented.
29681         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29682         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29683         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29684         Likewise.
29685         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29686         is zero, not whether it is defined.
29687         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29688         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29689         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29690
29691 2010-09-10  Bruno Haible  <bruno@clisp.org>
29692
29693         langinfo, nl_langinfo: Fix for IRIX 5.3.
29694         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29695         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29696         HAVE_LANGINFO_YESEXPR.
29697         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29698         HAVE_LANGINFO_YESEXPR.
29699         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29700         HAVE_LANGINFO_T_FMT_AMPM is 0.
29701         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29702         HAVE_LANGINFO_YESEXPR is 0.
29703         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29704         NOEXPR.
29705         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29706         * doc/posix-functions/nl_langinfo.texi: Likewise.
29707         Reported by Eric Blake.
29708
29709 2010-09-10  Bruno Haible  <bruno@clisp.org>
29710
29711         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29712         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29713         on FreeBSD 8.0 and OpenBSD 4.6.
29714         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29715         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29716         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29717         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29718         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29719         ac_includes_default.
29720         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29721
29722 2010-09-09  Eric Blake  <eblake@redhat.com>
29723
29724         strsignal: work around NetBSD bug
29725         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29726         * lib/string.in.h (includes): Likewise.
29727         * doc/posix-functions/strsignal.texi (strsignal): Document the
29728         bug.
29729         Reported by Nelson H. F. Beebe.
29730
29731         gnulib-tool: work with NetBSD /bin/sh
29732         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29733         (func_get_description, func_get_comment, func_get_status)
29734         (func_get_notice, func_get_applicability, func_get_filelist)
29735         (func_get_dependencies, func_get_autoconf_early_snippet)
29736         (func_get_autoconf_snippet, func_get_automake_snippet)
29737         (func_get_include_directive, func_get_link_directive)
29738         (func_get_license, func_get_maintainer, func_import): Avoid
29739         shell syntax errors from parsing syntax extensions.
29740
29741 2010-09-09  Bruno Haible  <bruno@clisp.org>
29742
29743         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29744         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29745         a reliable way to determine whether the 'alias' command works.
29746
29747 2010-09-08  Jim Meyering  <meyering@redhat.com>
29748
29749         init.sh: penalize a set-x-impaired shell; don't disqualify it
29750         * tests/init.sh: Too many shells corrupt application stderr when
29751         you set -x, so we can't afford to disqualify them, since at least
29752         on Irix-6.5, that would disqualify all bourne shells.
29753         Instead, use a two-pass approach.
29754         On the first pass, try to find a shell that meets the stricter
29755         condition that set -x does not corrupt stderr.
29756         If no shell meets the stricter condition, retest each candidate
29757         shell, but without that extra condition.  Finally, when
29758         VERBOSE=yes is requested and set -x might cause trouble, simply
29759         issue a warning and refrain from enabling debug output.
29760
29761 2010-09-08  Eric Blake  <eblake@redhat.com>
29762
29763         unsetenv: fix OpenBSD bug
29764         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29765         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29766         documentation.
29767         Reported by Jim Meyering.
29768
29769         strtod: work around IRIX 6.5 bug
29770         * lib/strtod.c (strtod): Reparse number on shorter string if
29771         exponent parse was invalid.
29772         * tests/test-strtod.c (main): Add check for "0x1p 2".
29773         Reported by Tom G. Christensen.
29774
29775         getopt: optimize previous patch
29776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29777         empty variable.  Speed up awk script.
29778         Reported by Paolo Bonzini.
29779
29780 2010-09-08  Jim Meyering  <meyering@redhat.com>
29781
29782         test.sh: disqualify shells for which set -x corrupts stderr
29783         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29784         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29785         appear in stderr output.  For example, this command:
29786             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29787         prints "P=1" on those two systems:
29788
29789 2010-09-08  Bruno Haible  <bruno@clisp.org>
29790
29791         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29792         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29793         commands, because some shells ignore redirections when there is an
29794         error in the command lookup.
29795         Reported by Eric Blake.
29796
29797 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29798
29799         * lib/regex.h: Fix a mention of `regex_compile' (should be
29800         `re_compile_pattern').
29801         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29802         (re_set_registers): Correct name of parameter in comment.
29803
29804         * doc/regex.texi: Add documentation for missing syntax flags.
29805         Remove commented-out documentation of defunct syntax option
29806         RE_NO_EMPTY_ALTS.
29807         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29808         Add documentation of re_set_registers.
29809         Document trick to re-use a pattern buffer by setting fastmap manually.
29810         Update documentation of struct re_pattern_buffer per public members.
29811         Uncomment documentation of equivalence class operators and
29812         collating symbol operators, since they are now implemented,
29813         Explain leftmost-longest matching in relation to alternatives.
29814         Tidy documentation of substring matching.
29815         Remove POSIX documentation, which is done better in
29816         glibc, and refer the reader there. Keep BSD API documentation, as
29817         that is not readily available elsewhere.
29818
29819 2010-09-07  Eric Blake  <eblake@redhat.com>
29820
29821         getopt: handle POSIXLY_CORRECT set but not exported
29822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29823         export state of POSIXLY_CORRECT, due to bash set -o posix.
29824         Reported by Dustin J. Mitchell.
29825
29826 2010-09-05  Bruno Haible  <bruno@clisp.org>
29827
29828         gnulib-tool: Highlight the changed options.
29829         * gnulib-tool (func_usage): Display the --import, --add-import,
29830         --remove-import explanations in bold font.
29831
29832 2010-09-06  Karl Berry  <karl@gnu.org>
29833
29834         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29835
29836 2010-09-05  Bruno Haible  <bruno@clisp.org>
29837
29838         uniwidth/width: Update comment.
29839         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29840         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29841
29842 2010-09-05  Bruno Haible  <bruno@clisp.org>
29843
29844         isinf, isnan: Relax license.
29845         * modules/isinf (License): Change from GPL to LGPL, with consent from
29846         Ben Pfaff.
29847         * modules/isnan (License): Likewise.
29848         Requested by Ludovic Courtès.
29849
29850 2010-09-04  Bruno Haible  <bruno@clisp.org>
29851
29852         gnulib-tool: Help migration from --import to --add-import or --update.
29853         * gnulib-tool: Emit a verbose error message when --import is used
29854         without any module name.
29855
29856 2010-09-04  Bruno Haible  <bruno@clisp.org>
29857
29858         Update doc about gnulib-tool.
29859         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29860         'gnulib-tool --update' in more detail.
29861         Reported by Eric Blake.
29862
29863 2010-09-04  Bruno Haible  <bruno@clisp.org>
29864
29865         gnulib-tool: Change --import. New options --add/remove-import.
29866         * gnulib-tool: New options --add-import, --remove-import.
29867         (func_usage): Document them.
29868         (have_associative): Define always.
29869         (func_import): In import mode, don't merge the specified settings with
29870         the cached settings. Implement remove-import mode.
29871         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29872         Explain when to use them versus --import.
29873         (Simple update): Use --add-import instead of --import.
29874         * NEWS: Mention the change.
29875
29876 2010-09-04  Bruno Haible  <bruno@clisp.org>
29877
29878         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29879         separate gnulib.mk.
29880
29881 2010-09-04  Bruno Haible  <bruno@clisp.org>
29882
29883         gnulib-tool: Don't talk about CVS any more.
29884         * gnulib-tool (func_usage, func_import): Write "version control"
29885         instead of CVS.
29886
29887 2010-09-04  Jim Meyering  <meyering@redhat.com>
29888
29889         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29890         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29891         false positives (whose names may be ill-chosen) when searching
29892         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29893         would cause a false-positive.
29894
29895         avoid coreutils "make distcheck" failure
29896         Coreutils tests with an absolute build directory name that contains
29897         a space.  Not quoting this directory name caused a failure.
29898         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29899         * tests/test-vc-list-files-cvs.sh: Likewise.
29900
29901 2010-09-04  Bruno Haible  <bruno@clisp.org>
29902
29903         gnulib-tool: Avoid error when run in a package without Makefile.am.
29904         * gnulib-tool: When collecting the m4dirs in a package that does not
29905         have a Makefile.am, eliminate those directories that contain no
29906         gnulib-cache.m4. Fix expression that counts these directories.
29907
29908 2010-09-04  Bruno Haible  <bruno@clisp.org>
29909
29910         update-copyright test: Improve output when perl is missing or too old.
29911         * tests/test-update-copyright.sh: Move test of Perl version down after
29912         the test whether Perl exists. Provide an explanation relating Perl's
29913         error message to Automake's SKIP: message.
29914
29915 2010-09-04  Bruno Haible  <bruno@clisp.org>
29916
29917         Don't augment PATH in TESTS_ENVIRONMENT.
29918         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29919         set abs_aux_dir instead of augmenting PATH.
29920         * modules/vc-list-files-tests (Makefile.am): Likewise.
29921         * tests/test-update-copyright.sh: Augment PATH here.
29922         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29923         path_prepend_.
29924         * tests/test-vc-list-files-git.sh: Likewise.
29925
29926 2010-09-04  Jim Meyering  <meyering@redhat.com>
29927
29928         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29929         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29930
29931 2010-09-04  Bruno Haible  <bruno@clisp.org>
29932
29933         strdup: Fix compilation error in C++ mode.
29934         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29935         the macro.
29936
29937 2010-09-04  Bruno Haible  <bruno@clisp.org>
29938
29939         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29940         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29941         macro into a function.
29942         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29943
29944 2010-09-04  Bruno Haible  <bruno@clisp.org>
29945
29946         Set PATH_SEPARATOR the same way autoconf does.
29947         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29948         the value of PATH_SEPARATOR the same way autoconf-generated configure
29949         scripts do.
29950         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29951         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29952
29953 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29954
29955         Set PATH_SEPARATOR the same way autoconf does.
29956         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29957         the same way autoconf-generated configure scripts do.
29958         * posix-modules: Likewise.
29959
29960 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29961
29962         hash: fix safe_hasher const typo
29963         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29964         const; otherwise, there is a type error later.
29965
29966 2010-09-02  Jim Meyering  <meyering@redhat.com>
29967
29968         test-update-copyright.sh: require perl 5.8.0
29969         * tests/test-update-copyright.sh: Require 5.8.0,
29970         which Tom G. Christensen has confirmed is adequate,
29971         while 5.6.1 is not.
29972
29973 2010-09-02  Eric Blake  <eblake@redhat.com>
29974
29975         tests: init.sh improvements for re-exec'ing with zsh
29976         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29977         -vx through shell re-exec.
29978         Reported by Tom G. Christensen.
29979
29980         wctype: fix typo in previous commit
29981         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29982         Reported by Ludovic Courtès.
29983
29984 2010-09-02  Jim Meyering  <meyering@redhat.com>
29985
29986         test-update-copyright.sh: skip test if Perl is too old
29987         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29988         Reported by Tom G. Christensen.
29989
29990 2010-09-02  Bruno Haible  <bruno@clisp.org>
29991
29992         wctype: Avoid compilation error on IRIX 6.5.30.
29993         * lib/wctype.in.h (iswblank): Declare with a replacement if
29994         REPLACE_ISWBLANK is set.
29995         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29996         declared. Set REPLACE_ISWBLANK.
29997         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29998         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29999         * doc/posix-headers/wctype.texi: Likewise.
30000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30001
30002 2010-09-01  Bruno Haible  <bruno@clisp.org>
30003
30004         New module 'socketlib'.
30005         * modules/socketlib: New file.
30006         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30007         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30008         * modules/sockets (Depends-on): Add socketlib.
30009         Suggested by Sam Steingold <sds@gnu.org>.
30010
30011 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30012
30013         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30014
30015         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30016         when one needs search access to a directory but not read access.
30017         On systems where it is available, it works in some cases where
30018         O_RDONLY does not, namely on directories that are searchable but
30019         not readable, and which need only to be searchable.  If O_SEARCH
30020         is not available, fall back to the traditional method of using
30021         O_RDONLY.
30022
30023         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30024         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30025         when opening a directory that needs only to be searchable.
30026         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30027         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30028         * lib/openat-proc.c (openat_proc_name): Likewise.
30029         * lib/openat.c (openat_needs_fchdir): Likewise.
30030         * lib/save-cwd.c (save_cwd): Likewise.
30031         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30032
30033 2010-08-28  Bruno Haible  <bruno@clisp.org>
30034
30035         New module 'host-cpu-c-abi'.
30036         * modules/host-cpu-c-abi: New file.
30037         * m4/host-cpu-c-abi.m4: New file, based on part of
30038         clisp/src/m4/general.m4.
30039         Requested by Sam Steingold <sds@gnu.org>.
30040
30041 2010-08-31  Eric Blake  <eblake@redhat.com>
30042         and Jim Meyering  <meyering@redhat.com>
30043
30044         hash: factor, and guard against misbehaving hasher function
30045         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30046         of table->hasher's return value.  Also protect against a hash value
30047         so large that adding it to table->bucket results in a NULL pointer.
30048         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30049         Use it in place of open-coded check-and-abort.
30050
30051 2010-08-30  Bruno Haible  <bruno@clisp.org>
30052
30053         hash: silence spurious clang warning
30054         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30055         Reported by Eric Blake.
30056
30057 2010-08-30  Eric Blake  <eblake@redhat.com>
30058
30059         strstr, memmem, strcasestr: avoid leaked shell message
30060         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30061         FreeBSD.
30062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30063         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30064
30065         tests: silence clang warning
30066         * tests/test-malloca.c (do_allocation): Avoid dead store.
30067
30068 2010-08-29  Bruno Haible  <bruno@clisp.org>
30069
30070         gettext: Fix recent mistake.
30071         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30072
30073 2010-08-29  Bruno Haible  <bruno@clisp.org>
30074
30075         selinux-h: Offer a --without-selinux option.
30076         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30077         --without-selinux was specified, skip all tests and define
30078         HAVE_SELINUX_SELINUX_H to 0.
30079         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30080         set LIB_SELINUX to empty.
30081         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30082         gl_LIBSELINUX. If --without-selinux was specified, replace
30083         selinux/context.h.
30084         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30085
30086 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30087             Bruno Haible  <bruno@clisp.org>
30088
30089         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30090         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30091         of HAVE_REALLOC.
30092         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30093         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30094         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30095         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30096
30097 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30098             Bruno Haible  <bruno@clisp.org>
30099
30100         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30101         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30102         HAVE_CALLOC.
30103         * lib/xmalloc.c: Update accordingly.
30104         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30105         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30106         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30107
30108 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30109             Bruno Haible  <bruno@clisp.org>
30110
30111         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30112         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30113         HAVE_MALLOC.
30114         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30115         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30116         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30117
30118 2010-08-29  Bruno Haible  <bruno@clisp.org>
30119
30120         Update modules list.
30121         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30122         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30123         (String handling <string.h>): Add astrxfrm.
30124         (File system functions): Add readlinkat.
30125
30126 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30127
30128         Tests for module 'realloc-gnu'.
30129         * modules/realloc-gnu-tests: New file.
30130         * tests/test-realloc-gnu.c: New file.
30131
30132         Tests for module 'calloc-gnu'.
30133         * modules/calloc-gnu-tests: New file.
30134         * tests/test-calloc-gnu.c: New file.
30135
30136         Tests for module 'malloc-gnu'.
30137         * modules/malloc-gnu-tests: New file.
30138         * tests/test-malloc-gnu.c: New file.
30139
30140 2010-08-28  Bruno Haible  <bruno@clisp.org>
30141
30142         Rename module 'realloc' -> 'realloc-gnu'.
30143         * modules/realloc-gnu: New file, copied from modules/realloc.
30144         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30145         obsolete.
30146         * modules/mgetgroups (Depends-on): Update.
30147         * doc/posix-functions/realloc.texi: Update.
30148         * NEWS: Mention the change.
30149
30150         Rename module 'calloc' -> 'calloc-gnu'.
30151         * modules/calloc-gnu: New file, copied from modules/calloc.
30152         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30153         obsolete.
30154         * doc/posix-functions/calloc.texi: Update.
30155         * NEWS: Mention the change.
30156
30157         Rename module 'malloc' -> 'malloc-gnu'.
30158         * modules/malloc-gnu: New file, copied from modules/malloc.
30159         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30160         obsolete.
30161         * modules/argp (Depends-on): Update.
30162         * modules/regex (Depends-on): Update.
30163         * doc/posix-functions/malloc.texi: Update.
30164         * NEWS: Mention the change.
30165
30166 2010-08-28  Eric Blake  <eblake@redhat.com>
30167
30168         pread, pwrite: add missing dependency
30169         * modules/pread (Depends-on): Add extensions.
30170         * modules/pwrite (Depends-on): Likewise.
30171
30172 2010-08-28  Bruno Haible  <bruno@clisp.org>
30173
30174         unistr/u*-strchr: Fix tests dependencies.
30175         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30176         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30177         Reported by Ian Beckwith <ianb@erislabs.net>.
30178
30179 2010-08-28  Bruno Haible  <bruno@clisp.org>
30180
30181         read-file: Don't occupy too much unused memory.
30182         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30183
30184 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30185             Eric Blake  <eblake@redhat.com>
30186             Bruno Haible  <bruno@clisp.org>
30187
30188         read-file: Avoid memory reallocations with regular files.
30189         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30190         (fread_file): With regular files, use the remaining length as the
30191         initial buffer size.  Check against overflow.
30192         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30193         sys_stat.
30194
30195 2010-08-28  Bruno Haible  <bruno@clisp.org>
30196
30197         ftello: Relax license.
30198         * modules/ftello (License): Relax to LGPLv2+.
30199         Reported by Eric Blake.
30200
30201 2010-08-28  Bruno Haible  <bruno@clisp.org>
30202
30203         Avoid relocwrapper link errors due to gnulib replacement functions.
30204         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30205         function.
30206         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30207
30208 2010-08-28  Bruno Haible  <bruno@clisp.org>
30209
30210         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30211         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30212         defined.
30213         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30214         Suggested by Eric Blake.
30215
30216 2010-08-28  Bruno Haible  <bruno@clisp.org>
30217
30218         sys_socket, netdb: Ensure socklen_t gets defined.
30219         * modules/sys_socket (Depends-on): Add socklen.
30220         * modules/netdb (Depends-on): Likewise.
30221         * modules/getaddrinfo (Depends-on): Remove socklen.
30222         * modules/getsockopt (Depends-on): Likewise.
30223         * modules/setsockopt (Depends-on): Likewise.
30224         * tests/test-sys_socket.c: Check that socklen_t is defined.
30225         * tests/test-netdb.c: Likewise.
30226         * m4/socklen.m4: Update comments.
30227         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30228
30229 2010-08-27  Eric Blake  <eblake@redhat.com>
30230
30231         login_tty: add missing dependency
30232         * modules/login_tty (Depends-on): Add pty.
30233
30234 2010-08-26  Eric Blake  <eblake@redhat.com>
30235
30236         lib-symbol-versions: fix m4 quoting
30237         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30238         format for AC_LINK_IFELSE.
30239
30240         glob: fix compile test
30241         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30242
30243         btowc: fix missing file
30244         * modules/btowc (Files): Also ship locale-fr.m4.
30245
30246         lseek: fix link test
30247         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30248         AC_LINK_IFELSE.
30249
30250         include_next: silence autoconf 2.68 warning
30251         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30252         AC_COMPILE_IFELSE as special.
30253         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30254         autoconf < 2.68.
30255
30256         acl: fix compilation test
30257         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30258         AC_COMPILE_IFELSE.
30259
30260 2010-08-26  Bruno Haible  <bruno@clisp.org>
30261
30262         Modernize AC_TRY_RUN invocations.
30263         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30264         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30265         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30266         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30267         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30268         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30269         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30270         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30271         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30272         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30273         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30274         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30275         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30276         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30277         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30278         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30279         gl_MBRLEN_NUL_RETVAL): Likewise.
30280         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30281         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30282         Likewise.
30283         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30284         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30285         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30286         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30287         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30288         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30289         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30290         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30291         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30292         Likewise.
30293         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30294         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30295         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30296         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30297         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30298         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30299         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30300         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30301         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30303
30304 2010-08-26  Bruno Haible  <bruno@clisp.org>
30305
30306         Modernize AC_TRY_LINK invocations.
30307         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30308         AC_TRY_LINK.
30309         * m4/argp.m4 (gl_ARGP): Likewise.
30310         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30311         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30312         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30313         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30314         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30315         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30316         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30317         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30318         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30319         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30320         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30321         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30322         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30323         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30324         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30325         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30326         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30327         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30328         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30329         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30330         Likewise.
30331         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30332         Likewise.
30333         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30334         Likewise.
30335         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30336         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30337         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30338         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30339         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30340         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30341         * m4/servent.m4 (gl_SERVENT): Likewise.
30342         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30343         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30344         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30345         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30346         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30347         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30348         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30349         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30350         * modules/tsearch-tests (configure.ac): Likewise.
30351
30352 2010-08-26  Bruno Haible  <bruno@clisp.org>
30353
30354         Modernize AC_TRY_COMPILE invocations.
30355         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30356         AC_TRY_COMPILE.
30357         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30358         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30359         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30360         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30361         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30362         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30363         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30364         * m4/lock.m4 (gl_LOCK): Likewise.
30365         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30366         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30367         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30368         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30369         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30370         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30371         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30372         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30373         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30374         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30375         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30376         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30377         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30378         extraneous semicolon.
30379
30380 2010-08-26  Jim Meyering  <meyering@redhat.com>
30381
30382         stat-time: relax license LGPL
30383         * modules/stat-time (License): Change from GPL to LGPL,
30384         with consent from all contributors, for use in libguile.
30385         Requested by Ludovic Courtès.
30386
30387 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30388
30389         poll: return immediately on POLLHUP.
30390         * lib/poll.c (poll): Always set timeout before wait_timeout is
30391         computed.
30392
30393 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30394
30395         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30396         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30397         rmdir ("dir/.//"), unlinkat.
30398
30399 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30400
30401         stdbool: avoid spurious failure with modern xlc
30402         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30403
30404 2010-08-24  Bruno Haible  <bruno@clisp.org>
30405
30406         getloadavg: simplify code
30407         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30408         gl_have_func. Update comments.
30409
30410 2010-08-24  Eric Blake  <eblake@redhat.com>
30411
30412         getloadavg: don't define SVR4 on cygwin
30413         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30414         only define SVR4 when -lkvm is required.
30415         Reported by Yaakov Selkowitz.
30416
30417 2010-08-24  Bruno Haible  <bruno@clisp.org>
30418
30419         priv-set: fix comment
30420         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30421
30422 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30423
30424         priv-set: fix comments
30425         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30426         to match code, as suggested by David Bartley in:
30427         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30428
30429 2010-08-23  Eric Blake  <eblake@redhat.com>
30430
30431         stdbool: avoid rejecting clang
30432         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30433         * tests/test-stdbool.c: Enable more tests if using the system
30434         <stdbool.h> instead of the gnulib replacement.
30435         (main): Move xlc bug test to a runtime test for all compilers.
30436         Reported by Anders Kaseorg.
30437
30438         argz: fix shell quoting issue
30439         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30440         Reported by Charles Wilson.
30441
30442 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30443             Erik Faye-Lund <kusmabite@gmail.com>
30444
30445         poll, select: handle ERROR_BROKEN_PIPE.
30446         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30447         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30448         * lib/select.c (win32_compute_revents): Do not mark a pipe
30449         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30450
30451 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30452
30453         fts: allow compilation with C++
30454         * lib/fts_.h: Specify extern "C" linkage with C++.
30455
30456 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30457
30458         Fix gnulib-tool sed script de-commentation for AIX sed.
30459         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30460         sed.
30461
30462 2010-08-17  Eric Blake  <eblake@redhat.com>
30463
30464         test-stddef: test for (some) offsetof bugs
30465         * tests/test-stddef.c: Enhance test to ensure correct type of
30466         offsetof.
30467         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30468         that we are not fixing at this time.
30469
30470 2010-08-15  Bruno Haible  <bruno@clisp.org>
30471
30472         stpncpy: Allow stpncpy to be defined as a macro.
30473         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30474         if it's already correctly declared.
30475         * lib/string.in.h (stpncpy): Undefine before redefining.
30476         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30477
30478 2010-08-14  Bruno Haible  <bruno@clisp.org>
30479
30480         Rename module 'memxfrm' to 'amemxfrm'.
30481         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30482         (amemxfrm): Renamed from memxfrm.
30483         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30484         (amemxfrm): Renamed from memxfrm.
30485         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30486         * NEWS: Mention the change.
30487         * MODULES.html.sh (String handling <string.h>): Update.
30488         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30489         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30490         * lib/unicase/u16-casexfrm.c: Likewise.
30491         * lib/unicase/u32-casexfrm.c: Likewise.
30492         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30493         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30494         * lib/uninorm/u16-normxfrm.c: Likewise.
30495         * lib/uninorm/u32-normxfrm.c: Likewise.
30496         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30497         memxfrm.
30498         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30499         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30500         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30501         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30502         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30503         Suggested by Paul Eggert.
30504
30505 2010-08-14  Bruno Haible  <bruno@clisp.org>
30506
30507         Tests for module 'astrxfrm'.
30508         * modules/astrxfrm-tests: New file.
30509         * tests/test-astrxfrm.c: New file.
30510
30511         New module 'astrxfrm'.
30512         * lib/astrxfrm.h: New file.
30513         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30514         * modules/astrxfrm: New file.
30515
30516 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30517
30518         regex: Tweak doc.
30519         * doc/regex.texi (Overview): Don't mention regex.c.
30520         (GNU Regular Expression Compiling): Likewise.
30521         (Match-end-of-line Operator): Mention 'not_eol'.
30522
30523 2010-08-14  Brian Gough  <bjg@gnu.org>
30524             Bruno Haible  <bruno@clisp.org>
30525
30526         git-merge-changelog: add doc relating to use with bzr and hg.
30527         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30528
30529 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30530
30531         pthread: fix pthread.h creation for srcdir != builddir
30532         * modules/pthread (Makefile.am): Fix the rule to work also in a
30533         non-srcdir build.
30534
30535 2010-08-13  Karl Berry  <karl@gnu.org>
30536
30537         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30538         * doc/posix-*/*: force line break before @url of POSIX
30539         specifications.
30540         Suggested by Werner Lemberg.
30541
30542 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30543
30544         strtod: fix const diagnostic
30545         * lib/strtod.c (strtod): Don't assign const char * to char *,
30546         as this elicits a warning from GCC when warnings are enabled.
30547
30548 2010-08-10  Pádraig Brady <P@draigbrady.com>
30549         and Eric Blake  <eblake@redhat.com>
30550
30551         copy-acl: ignore ENOTSUP on HP-UX
30552         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30553         so that it is available for HP-UX.
30554         * lib/copy-acl.c (qcopy_acl): Use it.
30555         Reported by Patrick M. Callahan.
30556
30557 2010-08-10  Eric Blake  <eblake@redhat.com>
30558
30559         open, chown: relax license
30560         * modules/open (License): Change to LGPLv2+, with consent by all
30561         authors, for use in augeas.
30562         * modules/chown (License): Likewise.
30563         * modules/lchown (Likewise): Likewise.
30564         Requested by Adam Stokes.
30565
30566 2010-08-09  Karl Berry  <karl@gnu.org>
30567
30568         * build-aux/ar-lib: new file, import from Automake.
30569         * config/srclist.txt: autocheck for updates.
30570
30571 2010-08-09  Eric Blake  <eblake@redhat.com>
30572
30573         readlinkat: adjust client modules
30574         * modules/areadlinkat (Depends-on): Use readlinkat, not
30575         symlinkat.
30576         * modules/areadlinkat-with-size (Depends-on): Likewise.
30577
30578         mknod: be more vocal about danger of running tests as root
30579         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30580         root, since that is just asking for problems.
30581         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30582
30583         readlinkat: split into its own module
30584         * modules/symlinkat: Split readlinkat...
30585         * modules/readlinkat: ...into separate module.
30586         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30587         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30588         * lib/symlinkat.c (readlinkat): Move...
30589         * lib/readlinkat.c: ...into new file.
30590         * modules/symlinkat-tests: Split readlinkat test...
30591         * modules/readlinkat-tests: ...into separate module.
30592         * tests/test-symlinkat.c: Split...
30593         * tests/test-readlinkat.c: ...into new file.
30594         * NEWS: Document the split.
30595         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30596         * lib/unistd.in.h (readlinkat): Likewise.
30597         Suggested by Bruno Haible.
30598
30599 2010-08-08  Bruno Haible  <bruno@clisp.org>
30600
30601         memxfrm: Speed up.
30602         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30603         that usually only one call to strxfrm is necessary for each string
30604         part.
30605         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30606
30607 2010-08-07  Karl Berry  <karl@gnu.org>
30608
30609         * doc/posix-headers/limits.texi,
30610         * doc/posix-functions/malloc.texi,
30611         * doc/posix-functions/strsignal.texi: missing @item.
30612         * doc/ld-version-script.texi: spurious leading i.
30613         * doc/regex.texi (Interval Operators): no commas inside @var.
30614
30615 2010-08-01  Bruno Haible  <bruno@clisp.org>
30616
30617         Integrate the regex documentation.
30618         * doc/gnulib.texi: Define 'cn' index.
30619         (Regular expressions): New a chapter that includes regex.texi and
30620         regexprops-generic.texi.
30621         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30622         syntax.
30623
30624         Whitespace cleanup.
30625         * doc/regex.texi: Remove trailing spaces.
30626
30627         Add regex documentation.
30628         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30629         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30630         Written by Kathy A. Hargreaves and Karl Berry.
30631
30632 2010-08-01  Bruno Haible  <bruno@clisp.org>
30633
30634         link: Update documentation.
30635         * doc/posix-functions/link.texi: Update regarding Solaris.
30636
30637 2010-07-31  Bruno Haible  <bruno@clisp.org>
30638
30639         Update modules list.
30640         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30641         (String handling <string.h>): Add memcmp2, memxfrm.
30642         (Container data structures): Add xlist, xsublist, xoset.
30643         (Core language properties): Add alignof, unused-parameter.
30644         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30645         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30646         (Unibyte characters <ctype.h>): New section.
30647         (String handling <string.h>): New section.
30648         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30649         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30650         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30651         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30652         tan, tanh, tanl, y0, y1, yn.
30653         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30654         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30655         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30656         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30657         unlockpt, vdprintf, vdprintf-posix.
30658         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30659         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30660         xconcat-filename.
30661         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30662         getdtablesize, pipe2, pipe2-safer.
30663         (Security): New section.
30664         (Networking functions): Add accept4.
30665         (Signal handling): Add sigpipe.
30666         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30667         mbmemcasecoll.
30668         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30669         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30670         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30671         pipe-filter-ii.
30672         (Misc): Add argp-version-etc, login_tty, parse-duration.
30673
30674 2010-07-31  Bruno Haible  <bruno@clisp.org>
30675
30676         Improve doc in MODULES.html.
30677         * modules/linkat (Description): Add the word "function".
30678         * modules/mkfifo (Description): Likewise.
30679         * modules/mknod (Description): Likewise.
30680         * modules/remove (Description): Likewise.
30681         * modules/renameat (Description): Likewise.
30682         * modules/stat (Description): Likewise.
30683         * modules/symlink (Description): Likewise.
30684         * modules/unlink (Description): Likewise.
30685
30686 2010-07-31  Bruno Haible  <bruno@clisp.org>
30687
30688         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30689         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30690         option --enable/disable-c++ instead of --enable/disable-cxx.
30691         * NEWS: Mention the change.
30692
30693 2010-07-31  Bruno Haible  <bruno@clisp.org>
30694
30695         readlink, areadlink: Relax test a bit.
30696         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30697         alternative to ENOTDIR.
30698         * tests/test-areadlink.h (test_areadlink): Likewise.
30699         Reported by Rainer Tammer.
30700
30701 2010-07-31  Bruno Haible  <bruno@clisp.org>
30702
30703         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30704         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30705         character, perform the search using U_STRCHR.
30706         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30707         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30708         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30709         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30710         Suggested by Paolo Bonzini.
30711
30712 2010-07-31  Bruno Haible  <bruno@clisp.org>
30713
30714         unistr/u*-strstr: Fix dependencies.
30715         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30716         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30717         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30718
30719 2010-07-31  Bruno Haible  <bruno@clisp.org>
30720
30721         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30722         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30723         the beginning of the loop.
30724         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30725         cases in 'switch' statement.
30726
30727         unistr/u8-strchr: Fix several bugs.
30728         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30729         the string. When not found, return NULL, not a pointer near the end.
30730
30731         More tests for unistr/u8-strchr.
30732         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30733         that the function does not read past the first occurrence of the byte
30734         being searched.
30735         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30736         * tests/unistr/test-u16-strchr.c (main): New function.
30737         * tests/unistr/test-u32-strchr.c (main): New function.
30738
30739 2010-07-31  Bruno Haible  <bruno@clisp.org>
30740
30741         posix-modules: Ignore backup files of documentation files.
30742         * posix-modules: grep only through files named *.texi.
30743
30744 2010-07-31  Bruno Haible  <bruno@clisp.org>
30745
30746         symlinkat: Fix documentation.
30747         * doc/posix-functions/readlinkat.texi: Fix module name.
30748
30749 2010-07-31  Bruno Haible  <bruno@clisp.org>
30750
30751         fchownat: Replace also when chown has the trailing slash bug.
30752         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30753         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30754         introduced on 2010-04-10.
30755         Reported by Rainer Tammer.
30756
30757 2010-07-31  Bruno Haible  <bruno@clisp.org>
30758
30759         linkat: Work around AIX 7.1 bug.
30760         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30761         whether linkat handles trailing slash correctly. If not, replace linkat
30762         and define LINKAT_TRAILING_SLASH_BUG.
30763         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30764         check whether (fd1,file1) points to a directory if file1 or file2 ends
30765         in a slash. Code taken from lib/link.c.
30766         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30767         Reported by Rainer Tammer.
30768
30769 2010-07-31  Bruno Haible  <bruno@clisp.org>
30770
30771         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30772         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30773         This disables an xlc optimization that was causing wrong test results.
30774         Reported by Rainer Tammer.
30775
30776 2010-07-31  Bruno Haible  <bruno@clisp.org>
30777
30778         iconv: Work around AIX 6.1..7.1 bug.
30779         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30780         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30781         cross-compiling, guess no on all versions of AIX.
30782         Reported by Rainer Tammer.
30783
30784 2010-07-31  Bruno Haible  <bruno@clisp.org>
30785
30786         readlink: Relax test a bit.
30787         * tests/test-readlink.h (test_readlink): Allow different errno value
30788         when readlink is called with a file name that ends in / and refers to
30789         a file.
30790         Suggested by Eric Blake.
30791         Reported by Rainer Tammer.
30792
30793 2010-07-31  Bruno Haible  <bruno@clisp.org>
30794
30795         copysign: Does not require -lm on glibc systems.
30796         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30797         gl_COMMON_DOUBLE_MATHFUNC.
30798         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30799
30800 2010-07-31  Bruno Haible  <bruno@clisp.org>
30801
30802         duplocale: Work around AIX 7.1 bug.
30803         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30804         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30805         * lib/duplocale.c (rpl_duplocale): Update comment.
30806         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30807         Reported by Rainer Tammer.
30808
30809 2010-07-30  Bruno Haible  <bruno@clisp.org>
30810
30811         dirfd: Avoid link error on AIX 7.1.
30812         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30813         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30814         exist, set REPLACE_DIRFD.
30815         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30816         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30817         * doc/posix-functions/dirfd.texi: Update.
30818         Reported by Rainer Tammer.
30819
30820 2010-07-30  Eric Blake  <eblake@redhat.com>
30821
30822         strtod: next round of AIX fixes
30823         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30824         exponent.
30825         * tests/test-strtod.c (main): Enhance tests.
30826         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30827         Reported by Rainer Tammer.
30828
30829         futimens: fix configure check
30830         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30831         Reported by Bruno Haible.
30832
30833 2010-07-30  Bruno Haible  <bruno@clisp.org>
30834
30835         getline: Update regarding AIX.
30836         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30837         Reported by Rainer Tammer.
30838
30839 2010-07-30  Bruno Haible  <bruno@clisp.org>
30840
30841         wcwidth: Drop replacement on AIX 7.
30842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30843         AIX 7.
30844         Reported by Rainer Tammer.
30845
30846 2010-07-30  Bruno Haible  <bruno@clisp.org>
30847
30848         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30849         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30850         a 'char *'.
30851         Reported by Rainer Tammer.
30852
30853 2010-07-30  Bruno Haible  <bruno@clisp.org>
30854
30855         unlink: Update regarding AIX.
30856         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30857         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30858         Reported by Rainer Tammer.
30859
30860 2010-07-30  Bruno Haible  <bruno@clisp.org>
30861
30862         symlink: Update regarding AIX.
30863         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30864         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30865         Reported by Rainer Tammer.
30866
30867 2010-07-30  Bruno Haible  <bruno@clisp.org>
30868
30869         strndup: Update regarding AIX.
30870         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30871         AIX 7.
30872         Reported by Rainer Tammer.
30873
30874 2010-07-30  Bruno Haible  <bruno@clisp.org>
30875
30876         stat: Update regarding AIX.
30877         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30878         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30879         Reported by Rainer Tammer.
30880
30881 2010-07-30  Bruno Haible  <bruno@clisp.org>
30882
30883         truncl: Fix autoconf test.
30884         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30885         whether truncl works.
30886         Reported by Rainer Tammer.
30887
30888 2010-07-30  Bruno Haible  <bruno@clisp.org>
30889
30890         round: Update regarding AIX.
30891         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30892         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30893         Reported by Rainer Tammer.
30894
30895 2010-07-30  Bruno Haible  <bruno@clisp.org>
30896
30897         rename: Update regarding AIX.
30898         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30899         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30900         Reported by Rainer Tammer.
30901
30902 2010-07-30  Bruno Haible  <bruno@clisp.org>
30903
30904         printf.m4: Update regarding AIX.
30905         * m4/printf.m4: Update comments regarding AIX.
30906         Reported by Rainer Tammer.
30907
30908 2010-07-30  Bruno Haible  <bruno@clisp.org>
30909
30910         iconv: Update regarding AIX.
30911         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30912         AIX 7.
30913         Reported by Rainer Tammer.
30914
30915 2010-07-30  Bruno Haible  <bruno@clisp.org>
30916
30917         getopt: Update regarding AIX.
30918         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30919         no on AIX.
30920         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30921         Reported by Rainer Tammer.
30922
30923 2010-07-30  Bruno Haible  <bruno@clisp.org>
30924
30925         ldexpl; Update regarding AIX.
30926         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30927         on AIX 7.
30928         Reported by Rainer Tammer.
30929
30930 2010-07-30  Bruno Haible  <bruno@clisp.org>
30931
30932         frexpl: Update regarding AIX.
30933         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30934         on AIX 7.
30935         Reported by Rainer Tammer.
30936
30937 2010-07-30  Bruno Haible  <bruno@clisp.org>
30938
30939         open, fopen: Update regarding AIX.
30940         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30941         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30942         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30943         * doc/posix-functions/fopen.texi: Likewise.
30944         Reported by Rainer Tammer.
30945
30946 2010-07-30  Bruno Haible  <bruno@clisp.org>
30947
30948         chown: Update doc regarding AIX.
30949         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30950         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30951         Reported by Rainer Tammer.
30952
30953 2010-07-30  Eric Blake  <eblake@redhat.com>
30954
30955         strtod: fix bug in replacement function on AIX
30956         * lib/strtod.c (strtod): Special case broken "0x" parse in
30957         underlying strtod.
30958         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30959         * doc/posix-functions/strtod.texi (strtod): Likewise.
30960         Reported by Rainer Tammer.
30961
30962 2010-07-30  Bruno Haible  <bruno@clisp.org>
30963
30964         mbrlen: Fix cross-compilation guess for AIX.
30965         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30966         guess. Leftover from 2008-12-22.
30967
30968 2010-07-30  Bruno Haible  <bruno@clisp.org>
30969
30970         mbrtowc: Fix cross-compilation guess for AIX.
30971         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30972         guess. Leftover from 2008-12-21.
30973
30974 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30975
30976         init.sh: work around trap limitation of some shells
30977         * tests/init.sh (setup_): Move exit trap outside of shell function.
30978
30979 2010-07-29  Eric Blake  <eblake@redhat.com>
30980
30981         strtod: aid debugging
30982         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30983         understanding why strtod is rejected.
30984
30985 2010-07-28  Bruno Haible  <bruno@clisp.org>
30986
30987         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30988         * lib/unistr/u8-chr.c: Include <string.h>.
30989         * tests/unistr/test-u8-chr.c: Likewise.
30990         * tests/unistr/test-u16-chr.c: Likewise.
30991         * tests/unistr/test-u32-chr.c: Likewise.
30992         * tests/unistr/test-u8-strchr.c: Likewise.
30993         * tests/unistr/test-u16-strchr.c: Likewise.
30994         * tests/unistr/test-u32-strchr.c: Likewise.
30995         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30996         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30997         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30998         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30999
31000 2010-07-28  Bruno Haible  <bruno@clisp.org>
31001
31002         Use spaces for indentation, not tabs.
31003         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31004
31005 2010-07-27  Bruno Haible  <bruno@clisp.org>
31006
31007         mbspcasecmp: Fix function specification.
31008         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31009         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31010         Reported by Eric Blake <eblake@redhat.com>.
31011
31012 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31013
31014         timespec: use cast and not conditional, as truncation isn't possible
31015         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31016         instead of a conditional.  Comment about the situation in more detail.
31017         This undoes most of the 2009-10-29 patch.
31018
31019 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31020
31021         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31022         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31023         * lib/unistr/u8-strchr.c: Likewise.
31024         * modules/unistr/u8-chr: Depend on memchr.
31025
31026         unistr/u*-strchr: add tests
31027         * modules/unistr/u8-strchr-tests: New file.
31028         * modules/unistr/u16-strchr-tests: New file.
31029         * modules/unistr/u32-strchr-tests: New file.
31030         * tests/unistr/test-strchr.h: New file.
31031         * tests/unistr/test-u8-strchr.c: New file.
31032         * tests/unistr/test-u16-strchr.c: New file.
31033         * tests/unistr/test-u32-strchr.c: New file.
31034
31035         unistr/u*-chr: test multibyte sequences more
31036         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31037         test vector.
31038         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31039         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31040         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31041
31042         unistr/u*-chr: test multibyte sequences
31043         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31044
31045         unistr/u*-chr: prepare for multibyte tests
31046         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31047         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31048         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31049         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31050         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31051         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31052
31053 2010-07-18  Bruno Haible  <bruno@clisp.org>
31054
31055         unistr/u8-strchr: Optimize non-ASCII argument case.
31056         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31057         because the first byte often matches anyway.
31058         Reported by Pádraig Brady <P@draigbrady.com>.
31059
31060 2010-07-15  Karl Berry  <karl@gnu.org>
31061
31062         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31063
31064 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31065
31066         getcwd: on Solaris, work better if ancestors are inaccessible
31067         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31068         buffer and size, try again with a large buffer.  This works better
31069         on Solaris, since its getcwd succeeds even if the path to the root
31070         is inaccessible, and this is helpful in common cases such as .zfs
31071         hidden directories.  Problem reported by J Chapman Flack in
31072         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31073         Use system getcwd if it's declared, not merely if it's partly
31074         working; use the partly-working test only to avoid needless effort
31075         if the system getcwd fails.
31076         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31077         comment that was already obsolete and is now even more obsolete.
31078         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31079         now might call strdup.
31080
31081 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31082
31083         pthread: Add enough so that coreutils/src/sort.c compiles.
31084         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31085         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31086         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31087         Include <sys/types.h>, in case it defines pthread_t.
31088         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31089         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31090         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31091         (pthread_rwlockattr_t, pthread_spinlock_t):
31092         New typedefs, if HAVE_PTHREAD_T is not defined.
31093         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31094         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31095         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31096         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31097         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31098         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31099         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31100         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31101         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31102         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31103         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31104         New macros.
31105         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31106         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31107         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31108         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31109         (pthread_spin_unlock): New dummy functions.
31110         (pthread_create): Return EAGAIN; don't set errno.
31111         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31112         require AC_C_INLINE.
31113         * modules/pthread (Depends-on): Add sched, time.
31114         (pthread.h): Use AM_V_GEN.
31115
31116 2010-07-13  Bruno Haible  <bruno@clisp.org>
31117
31118         striconveh: Don't malloc memory if the result buffer is sufficient.
31119         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31120         buffer if its size is sufficient.
31121         Reported by Ludovic Courtès <ludo@gnu.org>.
31122
31123 2010-07-13  Bruno Haible  <bruno@clisp.org>
31124
31125         strtod: Add safety check.
31126         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31127
31128 2010-07-12  Bruno Haible  <bruno@clisp.org>
31129
31130         Unify tests that set gl_cv_func_ldexpl_no_libm.
31131         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31132         gl_FUNC_LDEXPL.
31133         (gl_FUNC_LDEXPL): Invoke it.
31134         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31135
31136 2010-07-12  Bruno Haible  <bruno@clisp.org>
31137
31138         Unify tests that set gl_cv_func_ldexp_no_libm.
31139         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31140         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31141         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31142         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31143         * modules/strtod (Files): Add m4/ldexp.m4.
31144
31145 2010-07-12  Bruno Haible  <bruno@clisp.org>
31146
31147         Unify tests that set gl_cv_func_frexpl_no_libm.
31148         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31149         gl_FUNC_FREXPL_NO_LIBM.
31150         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31151         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31152
31153 2010-07-12  Bruno Haible  <bruno@clisp.org>
31154
31155         Unify tests that set gl_cv_func_frexp_no_libm.
31156         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31157         gl_FUNC_FREXP_NO_LIBM.
31158         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31159         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31160
31161 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31162
31163         memcoll: clarify sizes versus lengths, document better, and tweak perf
31164         * lib/memcoll.c (strcoll_loop, memcoll0):
31165         Improve quality of descriptive comments.  Name variables
31166         consistently as to whether they are lengths (which do not include
31167         terminating null) versus sizes (which do).
31168         * lib/xmemcoll.c (xmemcoll0): Likewise.
31169         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31170         returned when s1size == 0; this is easier to compile and saves
31171         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31172
31173 2010-07-12  Bruno Haible  <bruno@clisp.org>
31174
31175         Tests for module '_Exit'.
31176         * modules/_Exit-tests: New file.
31177         * tests/test-_Exit.sh: New file.
31178         * tests/test-_Exit.c: New file.
31179
31180         New module '_Exit'.
31181         * lib/stdlib.in.h (__attribute__): New macro.
31182         (_Exit): New declaration.
31183         * lib/_Exit.c: New file.
31184         * m4/_Exit.m4: New file.
31185         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31186         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31187         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31188         * modules/_Exit: New file.
31189         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31190         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31191
31192 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31193
31194         strtod: make it more-accurate typically, and don't require libm
31195         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31196         Include limits.h.  Don't include string.h.
31197         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31198         (locale_isspace): New function, so that no casts are needed to
31199         check whether *s is a space.
31200         (ldexp): Provide an unused dummy if not available.
31201         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31202         (strtod): Use them.  This implementation prefers to use the
31203         underlying strtod if available, falling back on our own code
31204         only to fix known bugs.  This is more likely to produce an
31205         accurate result.  Also, it avoids the use of libm functions.
31206         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31207         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31208         was absent, but it caused a test failure with coreutils.
31209         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31210         with libm.
31211         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31212         * modules/strtod-tests (Makefile.am): Likewise.
31213
31214 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31215             Bruno Haible  <bruno@clisp.org>
31216
31217         unistr/u8-strchr: Optimize ASCII argument case.
31218         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31219
31220 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31221
31222         (x)memcoll: minor tweaks
31223         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31224         is after the type that it qualifies.
31225         (memcoll0): Likewise.
31226         * lib/memcoll.h (memcoll0): Likewise.
31227         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31228         * lib/xmemcoll.h (xmemcoll0): Likewise.
31229         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31230         differs from memcoll in that the NUL byte is part of the argument.
31231         Omit the abort-checks, as performance is a real issue here.  Plus,
31232         the checks were wrong anyway (an off-by-one error).  Omit local
31233         variable 'diff', as it's a bit clearer that way.
31234         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31235         no longer needed.
31236
31237 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31238
31239         (x)memcoll: speedup when input is known to be NUL delimited
31240         * lib/memcoll.c: Include stdlib.
31241         (memcoll0): New function.
31242         (strcoll_loop): New function, refactored for use in both memcoll
31243         and memcoll0.
31244         * lib/memcoll.h (memcoll0): Add prototype.
31245         * lib/xmemcoll.c (xmemcoll0): New function.
31246         (collate_error): New function, refactored for use in both xmemcoll
31247         and xmemcoll0.
31248         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31249         * m4/memcoll.m4: add inline invocation.
31250
31251 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31252
31253         * build-aux/bootstrap: Remove any local translations
31254         from the translation project synchronization directory,
31255         so that local only translations are not distributed.
31256
31257 2010-07-04  Bruno Haible  <bruno@clisp.org>
31258
31259         fsusage: Clarify which code applies to which platforms.
31260         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31261         platform.
31262         * lib/fsusage.c (get_fs_usage): Likewise.
31263
31264 2010-07-04  Bruno Haible  <bruno@clisp.org>
31265
31266         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31267         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31268         Reported by Martin Lambers <marlam@marlam.de>.
31269
31270 2010-07-04  Jim Meyering  <meyering@redhat.com>
31271
31272         hash: once again explicitly disallow insertion of NULL
31273         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31274         inserting a NULL pointer cannot work with these functions.
31275         Add a comment with details.
31276         This reverts part of the 2010-07-01 commit, 5bef1a35
31277         "hash: extend module to deal with non-pointer keys".
31278
31279 2010-07-01  Bruno Haible  <bruno@clisp.org>
31280
31281         stdbool: Update doc.
31282         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31283         Info from Christian Weisgerber <naddy@mips.inka.de>.
31284
31285 2010-07-01  Jim Meyering  <meyering@redhat.com>
31286
31287         hash: extend module to deal with non-pointer keys
31288         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31289         but that allows insertion of non-pointer entries.
31290         Do not disallow an ENTRY value of NULL.
31291         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31292         * lib/hash.h (hash_insert0): Declare.
31293
31294 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31295
31296         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31297         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31298         not present (i.e. with autoconf 2.59 and when using gettextize, not
31299         gnulib), require AC_GNU_SOURCE instead.
31300
31301 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31302
31303         idpriv-drop: Fix tests.
31304         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31305         not to the test-idpriv-droptemp program.
31306
31307 2010-06-29  Bruno Haible  <bruno@clisp.org>
31308
31309         string: Fix syntax error with g++ 2.96.
31310         * lib/string.in.h (__pure__): Remove definition.
31311         (_GL_ATTRIBUTE_PURE): New macro.
31312         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31313         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31314         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31315
31316 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31317
31318         unitypes: Fix bug introduced on 2010-05-18.
31319         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31320
31321 2010-06-22  Eric Blake  <eblake@redhat.com>
31322
31323         memmem: slight optimization
31324         * lib/str-two-way.h (critical_factorization): Update comments.
31325         Reduce work during factorization phase.
31326         Reported by Carlos Bueno <carlos@bueno.org>.
31327
31328 2010-06-21  Bruno Haible  <bruno@clisp.org>
31329
31330         Fix HAVE_CALLOC_POSIX misnomer.
31331         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31332         !HAVE_CALLOC_POSIX.
31333         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31334         HAVE_CALLOC_POSIX.
31335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31336         instead of HAVE_CALLOC_POSIX.
31337         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31338         HAVE_CALLOC_POSIX.
31339
31340         Use modern idiom for calloc() replacement.
31341         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31342         AC_FUNC_CALLOC.
31343         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31344         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31345         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31346         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31347         (gl_REPLACE_CALLOC): New macro.
31348
31349 2010-06-21  Bruno Haible  <bruno@clisp.org>
31350
31351         Fix HAVE_REALLOC_POSIX misnomer.
31352         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31353         !HAVE_REALLOC_POSIX.
31354         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31355         HAVE_REALLOC_POSIX.
31356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31357         instead of HAVE_REALLOC_POSIX.
31358         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31359         HAVE_REALLOC_POSIX.
31360
31361         Use modern idiom for realloc() replacement.
31362         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31363         AC_FUNC_REALLOC.
31364         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31365         Autoconf's AC_FUNC_REALLOC.
31366         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31367         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31368         (gl_REPLACE_REALLOC): New macro.
31369         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31370
31371 2010-06-21  Bruno Haible  <bruno@clisp.org>
31372
31373         Fix HAVE_MALLOC_POSIX misnomer.
31374         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31375         !HAVE_MALLOC_POSIX.
31376         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31377         HAVE_MALLOC_POSIX.
31378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31379         instead of HAVE_MALLOC_POSIX.
31380         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31381         HAVE_MALLOC_POSIX.
31382
31383         Use modern idiom for malloc() replacement.
31384         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31385         AC_FUNC_MALLOC.
31386         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31387         Autoconf's AC_FUNC_MALLOC.
31388         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31389         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31390         (gl_REPLACE_MALLOC): New macro.
31391         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31392
31393 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31394
31395         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31396         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31397         This macro takes 3 arguments, not 4.
31398
31399 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31400
31401         ipv6: fix detection under mingw
31402         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31403         in6_addr.
31404
31405 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31406
31407         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31408         that strtod() works when cross-compiling to a glibc version known
31409         to work.
31410
31411 2010-06-15  Bruno Haible  <bruno@clisp.org>
31412
31413         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31414
31415 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31416
31417         select: Correct timeout.
31418         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31419
31420 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31421
31422         git-version-gen: init shell var to avoid env var influence
31423         * build-aux/git-version-gen (v): Init shell var to empty.
31424
31425 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31426
31427         priv-set: Don't assume that priv.h exists merely because getppriv does.
31428         See Jan Andersen's bug report about AIX 5L in
31429         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31430         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31431         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31432         * lib/priv-set.h: Likewise.
31433         * tests/test-priv-set.c: Likewise.
31434
31435 2010-06-13  Bruno Haible  <bruno@clisp.org>
31436
31437         relocatable: Make it easier to test whether to install wrappers.
31438         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31439         RELOCATABLE_VIA_WRAPPER.
31440
31441 2010-06-13  Bruno Haible  <bruno@clisp.org>
31442
31443         gnulib-tool: Display specified modules and dependencies differently.
31444         * gnulib-tool (func_show_module_list): New function.
31445         (func_import, func_create_testdir): Invoke it.
31446         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31447
31448 2010-06-13  Bruno Haible  <bruno@clisp.org>
31449
31450         gnulib-tool: Align code of func_import and func_create_testdir.
31451         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31452         specified_modules.
31453
31454 2010-06-12  Jim Meyering  <meyering@redhat.com>
31455
31456         test-inttostr: avoid spurious failure on Solaris 9
31457         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31458         to accept "%ju".  Reported by Bruno Haible.
31459
31460 2010-06-11  Jim Meyering  <meyering@redhat.com>
31461
31462         test-sys_socket: mark variables as used more readably
31463         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31464         as "used" explicitly via (void) statement casts.  This is more
31465         readable than using them in an artificial return expression.
31466         Suggestion from Bruno Haible.
31467
31468 2010-06-11  Bruno Haible  <bruno@clisp.org>
31469
31470         Avoid some more warnings from "gcc -Wwrite-strings".
31471         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31472         to 'const char *'.
31473         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31474         * tests/test-c-strcasestr.c (main): Likewise.
31475         * tests/test-mbscasestr1.c (main): Likewise.
31476         * tests/test-mbscasestr2.c (main): Likewise.
31477         * tests/test-memmem.c (main): Likewise.
31478         * tests/test-strstr.c (main): Likewise.
31479         * tests/test-strcasestr.c (main): Likewise.
31480
31481 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31482
31483         init.sh: change framework_failure_ to fail with status 99, not 1
31484         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31485         automake's parallel-tests rule that this is an unexpected failure,
31486         even if the test is listed in XFAIL_TESTS.
31487
31488 2010-06-11  Jim Meyering  <meyering@redhat.com>
31489
31490         test-inttostr: avoid warnings about 4-6KB literal strings
31491         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31492         Include "macros.h", for its definition of ASSERT.
31493         (CK): s/assert/ASSERT/
31494         * modules/inttostr-tests (Files): Add macros.h.
31495
31496         init.sh: don't use $ME_ or skip_ before they are defined
31497         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31498         their first uses.  Also hoist their companions: warn_, fail_,
31499         framework_failure_, $stderr_fileno.  Prompted by a patch from
31500         Stefano Lattarini.
31501
31502         test-sys_socket: avoid set-but-not-used warnings from gcc
31503         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31504         avoid warning about set-but-not-used variables.
31505
31506         test-xvasprintf: avoid 'const' discard warnings
31507         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31508         "const" when assigning from literal strings.
31509         (test_xasprintf): Add "void" in function argument list to placate
31510         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31511
31512         tests: avoid compilation warnings in argmatch and exclude tests...
31513         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31514         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31515         Since it always exits, declare with the "noreturn" attribute.
31516         * tests/test-argmatch.c: Likewise.
31517
31518         tests: avoid 'const' discard warnings in mbsstr tests
31519         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31520         * tests/test-mbsstr2.c (main): Likewise.
31521
31522         test-verify: avoid warning from gcc's -Wmissing-declarations
31523         * tests/test-verify.c (function): Declare to be static.
31524
31525         test-inttostr.c: include <string.h> for use of strcmp
31526         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31527
31528         test-linkat: avoid failed assertion on "other" architectures
31529         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31530         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31531         sparc: https://bugs.launchpad.net/bugs/591968
31532
31533 2010-06-11  Jim Meyering  <meyering@redhat.com>
31534
31535         printf.m4: avoid autoconf's "Expanded Before Required" warning
31536         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31537         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31538         autoconf warning.
31539
31540 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31541
31542         Replacement header templates are now named with ".in", not "_".
31543         * doc/gnulib-intro.texi: Correct.
31544
31545 2010-06-10  Jim Meyering  <meyering@redhat.com>
31546
31547         inttostr-tests: depend on snprintf, not snprintf-posix
31548         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31549         snprintf-posix, to avoid this aclocal failure:
31550           missing file gnulib-tests/vasnprintf.c
31551           configure.ac:45: error: expected source file, required through \
31552           AC_LIBSOURCES, not found
31553
31554 2010-06-10  Jim Meyering  <meyering@redhat.com>
31555
31556         inttostr: add a new function, inttostr, and tests
31557         The namesake function was not available.  The existence of the
31558         template file, inttostr.c makes its addition nontrivial.
31559         * lib/anytostr.c: Rename from inttostr.c.
31560         (anytostr): Rename from inttostr.
31561         * lib/inttostr.c: New file.
31562         * modules/inttostr (Files): Add anytostr.c.
31563         (Makefile.am): Set lib_SOURCES instead of ...
31564         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31565         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31566         * lib/offtostr.c: Likewise.
31567         * lib/uinttostr.c: Likewise.
31568         * lib/umaxtostr.c: Likewise.
31569         * modules/inttostr-tests: New file.
31570         * tests/test-inttostr.c: New file.  Test these functions.
31571
31572 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31573             Bruno Haible  <bruno@clisp.org>
31574
31575         Add "Extending Gnulib" chapter to manual.
31576         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31577         chapter.
31578         (Extending Gnulib): New chapter.
31579         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31580         chapter.
31581
31582 2010-06-09  Bruno Haible  <bruno@clisp.org>
31583
31584         Avoid relocwrapper link errors due to gnulib replacement functions.
31585         * lib/areadlink.c: Use the system's malloc, realloc functions.
31586         (areadlink): Set errno to ENOMEM explicitly.
31587         * modules/areadlink (Depends-on): Remove malloc-posix.
31588         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31589
31590 2010-06-09  Bruno Haible  <bruno@clisp.org>
31591
31592         Avoid relocwrapper link errors due to gnulib replacement functions.
31593         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31594         * lib/malloca.c: Likewise.
31595         * lib/relocatable.c: Likewise.
31596         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31597         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31598         * lib/setenv.c: Use the system's malloc, realloc functions.
31599         * lib/strerror.c: Use the system's sprintf function.
31600         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31601
31602 2010-06-04  Bruno Haible  <bruno@clisp.org>
31603
31604         Prefer documented low-level autoconf macro names.
31605         * m4/lib-link.m4: Use m4_translit instead of translit.
31606         * m4/environ.m4: Likewise.
31607         * m4/mathfunc.m4: Likewise.
31608         * m4/onceonly.m4: Likewise.
31609         * m4/stdint.m4: Likewise.
31610         Suggested by Eric Blake.
31611
31612 2010-06-04  Martin Lambers  <marlam@marlam.de>
31613             Bruno Haible  <bruno@clisp.org>
31614
31615         havelib: Allow library names with '+' characters.
31616         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31617         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31618
31619 2010-06-09  Bruno Haible  <bruno@clisp.org>
31620
31621         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31622         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31623         realloc failed.
31624
31625 2010-06-08  Peter Simons  <simons@cryp.to>
31626
31627         maint.mk: make the news-check rule more configurable
31628         * top/maint.mk (news-check-lines-spec): New variable.
31629         (news-check): Use "sed -n 1,10p" in place of "head".
31630
31631 2010-06-07  Jim Meyering  <meyering@redhat.com>
31632
31633         do-release-commit-and-tag: fix typo in --help
31634         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31635
31636         regex: avoid new dead-code warning with gcc-4.6.0
31637         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31638         if-block containing a while-loop.  It's been unused for at least
31639         5 years.
31640
31641 2010-06-05  Bruno Haible  <bruno@clisp.org>
31642
31643         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31644         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31645
31646 2010-06-04  Bruno Haible  <bruno@clisp.org>
31647
31648         Update to GNU gettext 0.18.1.
31649         * modules/gettext (configure.ac): Require gettext infrastructure from
31650         version 0.18.1.
31651
31652 2010-06-03  Bruno Haible  <bruno@clisp.org>
31653
31654         Don't use AC_LIBOBJ with file names in subdirectories.
31655         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31656         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31657         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31658         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31659         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31660         gl_LIBUNISTRING_LIBSOURCE.
31661         (Makefile.am): Augment lib_SOURCES here, conditionally.
31662         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31663
31664 2010-06-03  Bruno Haible  <bruno@clisp.org>
31665
31666         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31667         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31668         expansion does not end with a newline.
31669         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31670         unnecessary newline.
31671
31672 2010-06-03  Bruno Haible  <bruno@clisp.org>
31673
31674         Reduce dependencies.
31675         * tests/test-quotearg.h: New file, extracted from
31676         tests/test-quotearg.c.
31677         * tests/test-quotearg-simple.c: New file, extracted from
31678         tests/test-quotearg.c.
31679         * tests/test-quotearg.c: Don't include <ctype.h>.
31680         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31681         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31682         use_quote_double_quotes, use_quotearg_colon): Moved to
31683         tests/test-quotearg.h.
31684         (results_g, flag_results, custom_quotes, custom_results): Moved
31685         to tests/test-quotearg-simple.c.
31686         (main): Moved the part that does not depend on gettext to
31687         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31688         performed.
31689         * modules/quotearg-simple: New file.
31690         * modules/quotearg-simple-tests: New file.
31691         * modules/quotearg (Depends-on): Add quotearg-simple.
31692         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31693         (Files): Add tests/test-quotearg.h.
31694         Reported by Paolo Bonzini.
31695
31696 2010-06-03  Bruno Haible  <bruno@clisp.org>
31697
31698         Reduce dependencies.
31699         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31700
31701 2010-06-03  Bruno Haible  <bruno@clisp.org>
31702
31703         time: Undefine more broken macros.
31704         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31705         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31706         Reported by Eric Blake.
31707
31708 2010-06-03  Bruno Haible  <bruno@clisp.org>
31709
31710         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31711         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31712         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31713         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31714         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31715         Reported by Ludovic Courtès <ludo@gnu.org>.
31716
31717 2010-06-02  Eric Blake  <eblake@redhat.com>
31718
31719         time: work with mingw + pthreads-win32 library
31720         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31721         if timespec is defined only in pthread.h.
31722         * modules/time (Makefile.am): Substitute it.
31723         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31724         <pthread.h>, when needed.
31725         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31726         from the library.
31727
31728 2010-05-31  Bruno Haible  <bruno@clisp.org>
31729
31730         Avoid expanding two macros in the wrong order.
31731         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31732         gl_LIBUNISTRING if it is defined.
31733         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31734         autoconf >= 2.64.
31735         Reported by Ludovic Courtès <ludo@gnu.org>.
31736
31737 2010-05-27  Jim Meyering  <meyering@redhat.com>
31738
31739         maint.mk: also prohibit "#undef" of always-defined symbols
31740         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31741         Allow more than one space before the symbol name.
31742         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31743         the regexp uses alternation.
31744
31745 2010-05-26  Eric Blake  <eblake@redhat.com>
31746
31747         maint.mk: avoid echo -e
31748         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31749         Convert all uses of echo -* to printf.
31750         Reported by Matthias Bolte.
31751
31752 2010-05-25  Bruno Haible  <bruno@clisp.org>
31753
31754         Update to GNU gettext 0.18, part 2.
31755         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31756         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31757
31758 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31759
31760         Add missing include in test-pwrite.c.
31761         * tests/test-pwrite.c: Include string.h, for strcmp.
31762
31763 2010-05-24  Bruno Haible  <bruno@clisp.org>
31764
31765         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31766
31767 2010-05-24  Bruno Haible  <bruno@clisp.org>
31768
31769         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31770         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31771         iconveh_error argument.
31772         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31773         U_STRCONV_TO_LOCALE.
31774         * lib/unistr/u16-strcoll.c: Likewise.
31775         * lib/unistr/u32-strcoll.c: Likewise.
31776         * modules/unistr/u8-strcoll (Depends-on): Add
31777         uniconv/u8-strconv-to-enc, localcharset. Remove
31778         uniconv/u8-strconv-to-locale.
31779         (configure.ac): Bump version number.
31780         * modules/unistr/u16-strcoll (Depends-on): Add
31781         uniconv/u16-strconv-to-enc, localcharset. Remove
31782         uniconv/u16-strconv-to-locale.
31783         (configure.ac): Bump version number.
31784         * modules/unistr/u32-strcoll (Depends-on): Add
31785         uniconv/u32-strconv-to-enc, localcharset. Remove
31786         uniconv/u32-strconv-to-locale.
31787         (configure.ac): Bump version number.
31788
31789 2010-05-24  Bruno Haible  <bruno@clisp.org>
31790
31791         Avoid a test failure on NetBSD 5.0.
31792         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31793         an iconv() bug.
31794
31795 2010-05-24  Bruno Haible  <bruno@clisp.org>
31796
31797         Adjust #include directive style.
31798         * modules/regex (Includes): Recommend to write <regex.h>.
31799
31800 2010-05-24  Bruno Haible  <bruno@clisp.org>
31801
31802         regex: Don't require alloca.
31803         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31804         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31805         only inside if (0).
31806
31807 2010-05-23  Jim Meyering  <meyering@redhat.com>
31808
31809         test-renameat.c: include <sys/stat.h>
31810         * tests/test-renameat.c: Include <sys/stat.h>; required for
31811         definition of S_IS* macros.
31812
31813 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31814
31815         Update maintainer documentation for 'relocatable-prog' module.
31816         * doc/relocatable-maint.texi: Update.
31817         Comments by Bruno Haible.
31818
31819 2010-05-23  Bruno Haible  <bruno@clisp.org>
31820
31821         git-merge-changelog: Enable --split-merged-entry by default.
31822         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31823         (usage): Don't mention this option any more.
31824         Reported by Ralf Wildenhues.
31825
31826 2010-05-23  Jim Meyering  <meyering@redhat.com>
31827
31828         test-pwrite: do not leave behind a test file named "out"
31829         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31830         The trivial-looking use of init.sh is really necessary.
31831         It ensures that the temporary file, "out", is created in
31832         a temporary directory, and removed upon termination.
31833         * tests/test-pwrite.sh: Re-add file.
31834         * modules/pwrite-tests: Reference it.
31835
31836 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31837
31838         Fix output redirection buglet in init.sh.
31839         * tests/init.sh: Fix redirection of stderr.
31840
31841 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31842
31843         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31844
31845 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31846
31847         * modules/valgrind-tests: New file.
31848         * m4/valgrind-tests.m4: New file.
31849         * doc/valgrind-tests.texi: New file.
31850         * doc/gnulib.texi (Running self-tests under valgrind): New
31851         section.
31852
31853 2010-05-19  Bruno Haible  <bruno@clisp.org>
31854
31855         Clean up dead code in recent commit.
31856         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31857         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31858         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31859         Suggested by Paolo Bonzini.
31860
31861 2010-05-19  Bruno Haible  <bruno@clisp.org>
31862
31863         Avoid valgrind error reports from libunistring.
31864         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31865         * modules/libunistring (Files): Add it.
31866         * modules/libunistring-optional (Files): Likewise.
31867
31868 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31869             Bruno Haible  <bruno@clisp.org>
31870
31871         New module 'libunistring-optional'.
31872         * modules/libunistring-optional: New file.
31873         * m4/libunistring-base.m4: New file.
31874         * m4/libunistring-optional.m4: New file.
31875         * lib/unicase.in.h: Renamed from lib/unicase.h.
31876         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31877         * lib/unictype.in.h: Renamed from lib/unictype.h.
31878         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31879         * lib/uniname.in.h: Renamed from lib/uniname.h.
31880         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31881         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31882         * lib/unistr.in.h: Renamed from lib/unistr.h.
31883         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31884         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31885         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31886         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31887         gl_LIBUNISTRING. If the library was found, determine the installed
31888         version and set LIBUNISTRING_VERSION.
31889         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31890         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31891         handle a configuration option --with-included-libunistring.
31892         * modules/libunistring (Files): Add m4/absolute-header.m4.
31893         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31894         Add m4/libunistring-base.m4.
31895         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31896         (Makefile.am): Build unicase.h from unicase.in.h.
31897         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31898         Add m4/libunistring-base.m4.
31899         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31900         (Makefile.am): Build uniconv.h from uniconv.in.h.
31901         * modules/unictype/base (Files): Use unictype.in.h instead of
31902         unictype.h. Add m4/libunistring-base.m4.
31903         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31904         (Makefile.am): Build unictype.h from unictype.in.h.
31905         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31906         Add m4/libunistring-base.m4.
31907         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31908         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31909         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31910         Add m4/libunistring-base.m4.
31911         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31912         (Makefile.am): Build uniname.h from uniname.in.h.
31913         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31914         Add m4/libunistring-base.m4.
31915         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31916         (Makefile.am): Build uninorm.h from uninorm.in.h.
31917         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31918         unistdio.h. Add m4/libunistring-base.m4.
31919         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31920         (Makefile.am): Build unistdio.h from unistdio.in.h.
31921         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31922         Add m4/libunistring-base.m4.
31923         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31924         (Makefile.am): Build unistr.h from unistr.in.h.
31925         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31926         Add m4/libunistring-base.m4.
31927         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31928         (Makefile.am): Build unitypes.h from unitypes.in.h.
31929         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31930         Add m4/libunistring-base.m4.
31931         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31932         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31933         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31934         uniwidth.h. Add m4/libunistring-base.m4.
31935         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31936         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31937         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31938         instead of augmenting lib_SOURCES.
31939         * modules/unicase/empty-suffix-context: Likewise.
31940         * modules/unicase/locale-language: Likewise.
31941         * modules/unicase/tolower: Likewise.
31942         * modules/unicase/totitle: Likewise.
31943         * modules/unicase/toupper: Likewise.
31944         * modules/unicase/u8-casecmp: Likewise.
31945         * modules/unicase/u8-casecoll: Likewise.
31946         * modules/unicase/u8-casefold: Likewise.
31947         * modules/unicase/u8-casexfrm: Likewise.
31948         * modules/unicase/u8-ct-casefold: Likewise.
31949         * modules/unicase/u8-ct-tolower: Likewise.
31950         * modules/unicase/u8-ct-totitle: Likewise.
31951         * modules/unicase/u8-ct-toupper: Likewise.
31952         * modules/unicase/u8-is-cased: Likewise.
31953         * modules/unicase/u8-is-casefolded: Likewise.
31954         * modules/unicase/u8-is-lowercase: Likewise.
31955         * modules/unicase/u8-is-titlecase: Likewise.
31956         * modules/unicase/u8-is-uppercase: Likewise.
31957         * modules/unicase/u8-prefix-context: Likewise.
31958         * modules/unicase/u8-suffix-context: Likewise.
31959         * modules/unicase/u8-tolower: Likewise.
31960         * modules/unicase/u8-totitle: Likewise.
31961         * modules/unicase/u8-toupper: Likewise.
31962         * modules/unicase/u16-casecmp: Likewise.
31963         * modules/unicase/u16-casecoll: Likewise.
31964         * modules/unicase/u16-casefold: Likewise.
31965         * modules/unicase/u16-casexfrm: Likewise.
31966         * modules/unicase/u16-ct-casefold: Likewise.
31967         * modules/unicase/u16-ct-tolower: Likewise.
31968         * modules/unicase/u16-ct-totitle: Likewise.
31969         * modules/unicase/u16-ct-toupper: Likewise.
31970         * modules/unicase/u16-is-cased: Likewise.
31971         * modules/unicase/u16-is-casefolded: Likewise.
31972         * modules/unicase/u16-is-lowercase: Likewise.
31973         * modules/unicase/u16-is-titlecase: Likewise.
31974         * modules/unicase/u16-is-uppercase: Likewise.
31975         * modules/unicase/u16-prefix-context: Likewise.
31976         * modules/unicase/u16-suffix-context: Likewise.
31977         * modules/unicase/u16-tolower: Likewise.
31978         * modules/unicase/u16-totitle: Likewise.
31979         * modules/unicase/u16-toupper: Likewise.
31980         * modules/unicase/u32-casecmp: Likewise.
31981         * modules/unicase/u32-casecoll: Likewise.
31982         * modules/unicase/u32-casefold: Likewise.
31983         * modules/unicase/u32-casexfrm: Likewise.
31984         * modules/unicase/u32-ct-casefold: Likewise.
31985         * modules/unicase/u32-ct-tolower: Likewise.
31986         * modules/unicase/u32-ct-totitle: Likewise.
31987         * modules/unicase/u32-ct-toupper: Likewise.
31988         * modules/unicase/u32-is-cased: Likewise.
31989         * modules/unicase/u32-is-casefolded: Likewise.
31990         * modules/unicase/u32-is-lowercase: Likewise.
31991         * modules/unicase/u32-is-titlecase: Likewise.
31992         * modules/unicase/u32-is-uppercase: Likewise.
31993         * modules/unicase/u32-prefix-context: Likewise.
31994         * modules/unicase/u32-suffix-context: Likewise.
31995         * modules/unicase/u32-tolower: Likewise.
31996         * modules/unicase/u32-totitle: Likewise.
31997         * modules/unicase/u32-toupper: Likewise.
31998         * modules/unicase/ulc-casecmp: Likewise.
31999         * modules/unicase/ulc-casecoll: Likewise.
32000         * modules/unicase/ulc-casexfrm: Likewise.
32001         * modules/uniconv/u8-conv-from-enc: Likewise.
32002         * modules/uniconv/u8-conv-to-enc: Likewise.
32003         * modules/uniconv/u8-strconv-from-enc: Likewise.
32004         * modules/uniconv/u8-strconv-from-locale: Likewise.
32005         * modules/uniconv/u8-strconv-to-enc: Likewise.
32006         * modules/uniconv/u8-strconv-to-locale: Likewise.
32007         * modules/uniconv/u16-conv-from-enc: Likewise.
32008         * modules/uniconv/u16-conv-to-enc: Likewise.
32009         * modules/uniconv/u16-strconv-from-enc: Likewise.
32010         * modules/uniconv/u16-strconv-from-locale: Likewise.
32011         * modules/uniconv/u16-strconv-to-enc: Likewise.
32012         * modules/uniconv/u16-strconv-to-locale: Likewise.
32013         * modules/uniconv/u32-conv-from-enc: Likewise.
32014         * modules/uniconv/u32-conv-to-enc: Likewise.
32015         * modules/uniconv/u32-strconv-from-enc: Likewise.
32016         * modules/uniconv/u32-strconv-from-locale: Likewise.
32017         * modules/uniconv/u32-strconv-to-enc: Likewise.
32018         * modules/uniconv/u32-strconv-to-locale: Likewise.
32019         * modules/unictype/bidicategory-byname: Likewise.
32020         * modules/unictype/bidicategory-name: Likewise.
32021         * modules/unictype/bidicategory-of: Likewise.
32022         * modules/unictype/bidicategory-test: Likewise.
32023         * modules/unictype/block-list: Likewise.
32024         * modules/unictype/block-test: Likewise.
32025         * modules/unictype/category-C: Likewise.
32026         * modules/unictype/category-Cc: Likewise.
32027         * modules/unictype/category-Cf: Likewise.
32028         * modules/unictype/category-Cn: Likewise.
32029         * modules/unictype/category-Co: Likewise.
32030         * modules/unictype/category-Cs: Likewise.
32031         * modules/unictype/category-L: Likewise.
32032         * modules/unictype/category-Ll: Likewise.
32033         * modules/unictype/category-Lm: Likewise.
32034         * modules/unictype/category-Lo: Likewise.
32035         * modules/unictype/category-Lt: Likewise.
32036         * modules/unictype/category-Lu: Likewise.
32037         * modules/unictype/category-M: Likewise.
32038         * modules/unictype/category-Mc: Likewise.
32039         * modules/unictype/category-Me: Likewise.
32040         * modules/unictype/category-Mn: Likewise.
32041         * modules/unictype/category-N: Likewise.
32042         * modules/unictype/category-Nd: Likewise.
32043         * modules/unictype/category-Nl: Likewise.
32044         * modules/unictype/category-No: Likewise.
32045         * modules/unictype/category-P: Likewise.
32046         * modules/unictype/category-Pc: Likewise.
32047         * modules/unictype/category-Pd: Likewise.
32048         * modules/unictype/category-Pe: Likewise.
32049         * modules/unictype/category-Pf: Likewise.
32050         * modules/unictype/category-Pi: Likewise.
32051         * modules/unictype/category-Po: Likewise.
32052         * modules/unictype/category-Ps: Likewise.
32053         * modules/unictype/category-S: Likewise.
32054         * modules/unictype/category-Sc: Likewise.
32055         * modules/unictype/category-Sk: Likewise.
32056         * modules/unictype/category-Sm: Likewise.
32057         * modules/unictype/category-So: Likewise.
32058         * modules/unictype/category-Z: Likewise.
32059         * modules/unictype/category-Zl: Likewise.
32060         * modules/unictype/category-Zp: Likewise.
32061         * modules/unictype/category-Zs: Likewise.
32062         * modules/unictype/category-and: Likewise.
32063         * modules/unictype/category-and-not: Likewise.
32064         * modules/unictype/category-byname: Likewise.
32065         * modules/unictype/category-name: Likewise.
32066         * modules/unictype/category-none: Likewise.
32067         * modules/unictype/category-of: Likewise.
32068         * modules/unictype/category-or: Likewise.
32069         * modules/unictype/category-test: Likewise.
32070         * modules/unictype/combining-class: Likewise.
32071         * modules/unictype/ctype-alnum: Likewise.
32072         * modules/unictype/ctype-alpha: Likewise.
32073         * modules/unictype/ctype-blank: Likewise.
32074         * modules/unictype/ctype-cntrl: Likewise.
32075         * modules/unictype/ctype-digit: Likewise.
32076         * modules/unictype/ctype-graph: Likewise.
32077         * modules/unictype/ctype-lower: Likewise.
32078         * modules/unictype/ctype-print: Likewise.
32079         * modules/unictype/ctype-punct: Likewise.
32080         * modules/unictype/ctype-space: Likewise.
32081         * modules/unictype/ctype-upper: Likewise.
32082         * modules/unictype/ctype-xdigit: Likewise.
32083         * modules/unictype/decimal-digit: Likewise.
32084         * modules/unictype/digit: Likewise.
32085         * modules/unictype/mirror: Likewise.
32086         * modules/unictype/numeric: Likewise.
32087         * modules/unictype/property-alphabetic: Likewise.
32088         * modules/unictype/property-ascii-hex-digit: Likewise.
32089         * modules/unictype/property-bidi-arabic-digit: Likewise.
32090         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32091         * modules/unictype/property-bidi-block-separator: Likewise.
32092         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32093         * modules/unictype/property-bidi-common-separator: Likewise.
32094         * modules/unictype/property-bidi-control: Likewise.
32095         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32096         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32097         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32098         * modules/unictype/property-bidi-european-digit: Likewise.
32099         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32100         * modules/unictype/property-bidi-left-to-right: Likewise.
32101         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32102         * modules/unictype/property-bidi-other-neutral: Likewise.
32103         * modules/unictype/property-bidi-pdf: Likewise.
32104         * modules/unictype/property-bidi-segment-separator: Likewise.
32105         * modules/unictype/property-bidi-whitespace: Likewise.
32106         * modules/unictype/property-byname: Likewise.
32107         * modules/unictype/property-combining: Likewise.
32108         * modules/unictype/property-composite: Likewise.
32109         * modules/unictype/property-currency-symbol: Likewise.
32110         * modules/unictype/property-dash: Likewise.
32111         * modules/unictype/property-decimal-digit: Likewise.
32112         * modules/unictype/property-default-ignorable-code-point: Likewise.
32113         * modules/unictype/property-deprecated: Likewise.
32114         * modules/unictype/property-diacritic: Likewise.
32115         * modules/unictype/property-extender: Likewise.
32116         * modules/unictype/property-format-control: Likewise.
32117         * modules/unictype/property-grapheme-base: Likewise.
32118         * modules/unictype/property-grapheme-extend: Likewise.
32119         * modules/unictype/property-grapheme-link: Likewise.
32120         * modules/unictype/property-hex-digit: Likewise.
32121         * modules/unictype/property-hyphen: Likewise.
32122         * modules/unictype/property-id-continue: Likewise.
32123         * modules/unictype/property-id-start: Likewise.
32124         * modules/unictype/property-ideographic: Likewise.
32125         * modules/unictype/property-ids-binary-operator: Likewise.
32126         * modules/unictype/property-ids-trinary-operator: Likewise.
32127         * modules/unictype/property-ignorable-control: Likewise.
32128         * modules/unictype/property-iso-control: Likewise.
32129         * modules/unictype/property-join-control: Likewise.
32130         * modules/unictype/property-left-of-pair: Likewise.
32131         * modules/unictype/property-line-separator: Likewise.
32132         * modules/unictype/property-logical-order-exception: Likewise.
32133         * modules/unictype/property-lowercase: Likewise.
32134         * modules/unictype/property-math: Likewise.
32135         * modules/unictype/property-non-break: Likewise.
32136         * modules/unictype/property-not-a-character: Likewise.
32137         * modules/unictype/property-numeric: Likewise.
32138         * modules/unictype/property-other-alphabetic: Likewise.
32139         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32140         * modules/unictype/property-other-grapheme-extend: Likewise.
32141         * modules/unictype/property-other-id-continue: Likewise.
32142         * modules/unictype/property-other-id-start: Likewise.
32143         * modules/unictype/property-other-lowercase: Likewise.
32144         * modules/unictype/property-other-math: Likewise.
32145         * modules/unictype/property-other-uppercase: Likewise.
32146         * modules/unictype/property-paired-punctuation: Likewise.
32147         * modules/unictype/property-paragraph-separator: Likewise.
32148         * modules/unictype/property-pattern-syntax: Likewise.
32149         * modules/unictype/property-pattern-white-space: Likewise.
32150         * modules/unictype/property-private-use: Likewise.
32151         * modules/unictype/property-punctuation: Likewise.
32152         * modules/unictype/property-quotation-mark: Likewise.
32153         * modules/unictype/property-radical: Likewise.
32154         * modules/unictype/property-sentence-terminal: Likewise.
32155         * modules/unictype/property-soft-dotted: Likewise.
32156         * modules/unictype/property-space: Likewise.
32157         * modules/unictype/property-terminal-punctuation: Likewise.
32158         * modules/unictype/property-test: Likewise.
32159         * modules/unictype/property-titlecase: Likewise.
32160         * modules/unictype/property-unassigned-code-value: Likewise.
32161         * modules/unictype/property-unified-ideograph: Likewise.
32162         * modules/unictype/property-uppercase: Likewise.
32163         * modules/unictype/property-variation-selector: Likewise.
32164         * modules/unictype/property-white-space: Likewise.
32165         * modules/unictype/property-xid-continue: Likewise.
32166         * modules/unictype/property-xid-start: Likewise.
32167         * modules/unictype/property-zero-width: Likewise.
32168         * modules/unictype/scripts: Likewise.
32169         * modules/unictype/syntax-c-ident: Likewise.
32170         * modules/unictype/syntax-c-whitespace: Likewise.
32171         * modules/unictype/syntax-java-ident: Likewise.
32172         * modules/unictype/syntax-java-whitespace: Likewise.
32173         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32174         * modules/unilbrk/u8-width-linebreaks: Likewise.
32175         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32176         * modules/unilbrk/u16-width-linebreaks: Likewise.
32177         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32178         * modules/unilbrk/u32-width-linebreaks: Likewise.
32179         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32180         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32181         * modules/uniname/uniname: Likewise.
32182         * modules/uninorm/canonical-decomposition: Likewise.
32183         * modules/uninorm/composition: Likewise.
32184         * modules/uninorm/decomposing-form: Likewise.
32185         * modules/uninorm/decomposition: Likewise.
32186         * modules/uninorm/filter: Likewise.
32187         * modules/uninorm/nfc: Likewise.
32188         * modules/uninorm/nfd: Likewise.
32189         * modules/uninorm/nfkc: Likewise.
32190         * modules/uninorm/nfkd: Likewise.
32191         * modules/uninorm/u8-normalize: Likewise.
32192         * modules/uninorm/u8-normcmp: Likewise.
32193         * modules/uninorm/u8-normcoll: Likewise.
32194         * modules/uninorm/u8-normxfrm: Likewise.
32195         * modules/uninorm/u16-normalize: Likewise.
32196         * modules/uninorm/u16-normcmp: Likewise.
32197         * modules/uninorm/u16-normcoll: Likewise.
32198         * modules/uninorm/u16-normxfrm: Likewise.
32199         * modules/uninorm/u32-normalize: Likewise.
32200         * modules/uninorm/u32-normcmp: Likewise.
32201         * modules/uninorm/u32-normcoll: Likewise.
32202         * modules/uninorm/u32-normxfrm: Likewise.
32203         * modules/unistdio/u8-asnprintf: Likewise.
32204         * modules/unistdio/u8-asprintf: Likewise.
32205         * modules/unistdio/u8-snprintf: Likewise.
32206         * modules/unistdio/u8-sprintf: Likewise.
32207         * modules/unistdio/u8-u8-asnprintf: Likewise.
32208         * modules/unistdio/u8-u8-asprintf: Likewise.
32209         * modules/unistdio/u8-u8-snprintf: Likewise.
32210         * modules/unistdio/u8-u8-sprintf: Likewise.
32211         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32212         * modules/unistdio/u8-u8-vasprintf: Likewise.
32213         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32214         * modules/unistdio/u8-u8-vsprintf: Likewise.
32215         * modules/unistdio/u8-vasnprintf: Likewise.
32216         * modules/unistdio/u8-vasprintf: Likewise.
32217         * modules/unistdio/u8-vsnprintf: Likewise.
32218         * modules/unistdio/u8-vsprintf: Likewise.
32219         * modules/unistdio/u16-asnprintf: Likewise.
32220         * modules/unistdio/u16-asprintf: Likewise.
32221         * modules/unistdio/u16-snprintf: Likewise.
32222         * modules/unistdio/u16-sprintf: Likewise.
32223         * modules/unistdio/u16-u16-asnprintf: Likewise.
32224         * modules/unistdio/u16-u16-asprintf: Likewise.
32225         * modules/unistdio/u16-u16-snprintf: Likewise.
32226         * modules/unistdio/u16-u16-sprintf: Likewise.
32227         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32228         * modules/unistdio/u16-u16-vasprintf: Likewise.
32229         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32230         * modules/unistdio/u16-u16-vsprintf: Likewise.
32231         * modules/unistdio/u16-vasnprintf: Likewise.
32232         * modules/unistdio/u16-vasprintf: Likewise.
32233         * modules/unistdio/u16-vsnprintf: Likewise.
32234         * modules/unistdio/u16-vsprintf: Likewise.
32235         * modules/unistdio/u32-asnprintf: Likewise.
32236         * modules/unistdio/u32-asprintf: Likewise.
32237         * modules/unistdio/u32-snprintf: Likewise.
32238         * modules/unistdio/u32-sprintf: Likewise.
32239         * modules/unistdio/u32-u32-asnprintf: Likewise.
32240         * modules/unistdio/u32-u32-asprintf: Likewise.
32241         * modules/unistdio/u32-u32-snprintf: Likewise.
32242         * modules/unistdio/u32-u32-sprintf: Likewise.
32243         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32244         * modules/unistdio/u32-u32-vasprintf: Likewise.
32245         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32246         * modules/unistdio/u32-u32-vsprintf: Likewise.
32247         * modules/unistdio/u32-vasnprintf: Likewise.
32248         * modules/unistdio/u32-vasprintf: Likewise.
32249         * modules/unistdio/u32-vsnprintf: Likewise.
32250         * modules/unistdio/u32-vsprintf: Likewise.
32251         * modules/unistdio/ulc-asnprintf: Likewise.
32252         * modules/unistdio/ulc-asprintf: Likewise.
32253         * modules/unistdio/ulc-fprintf: Likewise.
32254         * modules/unistdio/ulc-snprintf: Likewise.
32255         * modules/unistdio/ulc-sprintf: Likewise.
32256         * modules/unistdio/ulc-vasnprintf: Likewise.
32257         * modules/unistdio/ulc-vasprintf: Likewise.
32258         * modules/unistdio/ulc-vfprintf: Likewise.
32259         * modules/unistdio/ulc-vsnprintf: Likewise.
32260         * modules/unistdio/ulc-vsprintf: Likewise.
32261         * modules/unistr/u8-check: Likewise.
32262         * modules/unistr/u8-chr: Likewise.
32263         * modules/unistr/u8-cmp: Likewise.
32264         * modules/unistr/u8-cmp2: Likewise.
32265         * modules/unistr/u8-cpy: Likewise.
32266         * modules/unistr/u8-cpy-alloc: Likewise.
32267         * modules/unistr/u8-endswith: Likewise.
32268         * modules/unistr/u8-mblen: Likewise.
32269         * modules/unistr/u8-mbsnlen: Likewise.
32270         * modules/unistr/u8-mbtouc: Likewise.
32271         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32272         * modules/unistr/u8-mbtoucr: Likewise.
32273         * modules/unistr/u8-move: Likewise.
32274         * modules/unistr/u8-next: Likewise.
32275         * modules/unistr/u8-prev: Likewise.
32276         * modules/unistr/u8-set: Likewise.
32277         * modules/unistr/u8-startswith: Likewise.
32278         * modules/unistr/u8-stpcpy: Likewise.
32279         * modules/unistr/u8-stpncpy: Likewise.
32280         * modules/unistr/u8-strcat: Likewise.
32281         * modules/unistr/u8-strchr: Likewise.
32282         * modules/unistr/u8-strcmp: Likewise.
32283         * modules/unistr/u8-strcoll: Likewise.
32284         * modules/unistr/u8-strcpy: Likewise.
32285         * modules/unistr/u8-strcspn: Likewise.
32286         * modules/unistr/u8-strdup: Likewise.
32287         * modules/unistr/u8-strlen: Likewise.
32288         * modules/unistr/u8-strmblen: Likewise.
32289         * modules/unistr/u8-strmbtouc: Likewise.
32290         * modules/unistr/u8-strncat: Likewise.
32291         * modules/unistr/u8-strncmp: Likewise.
32292         * modules/unistr/u8-strncpy: Likewise.
32293         * modules/unistr/u8-strnlen: Likewise.
32294         * modules/unistr/u8-strpbrk: Likewise.
32295         * modules/unistr/u8-strrchr: Likewise.
32296         * modules/unistr/u8-strspn: Likewise.
32297         * modules/unistr/u8-strstr: Likewise.
32298         * modules/unistr/u8-strtok: Likewise.
32299         * modules/unistr/u8-to-u16: Likewise.
32300         * modules/unistr/u8-to-u32: Likewise.
32301         * modules/unistr/u8-uctomb: Likewise.
32302         * modules/unistr/u16-check: Likewise.
32303         * modules/unistr/u16-chr: Likewise.
32304         * modules/unistr/u16-cmp: Likewise.
32305         * modules/unistr/u16-cmp2: Likewise.
32306         * modules/unistr/u16-cpy: Likewise.
32307         * modules/unistr/u16-cpy-alloc: Likewise.
32308         * modules/unistr/u16-endswith: Likewise.
32309         * modules/unistr/u16-mblen: Likewise.
32310         * modules/unistr/u16-mbsnlen: Likewise.
32311         * modules/unistr/u16-mbtouc: Likewise.
32312         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32313         * modules/unistr/u16-mbtoucr: Likewise.
32314         * modules/unistr/u16-move: Likewise.
32315         * modules/unistr/u16-next: Likewise.
32316         * modules/unistr/u16-prev: Likewise.
32317         * modules/unistr/u16-set: Likewise.
32318         * modules/unistr/u16-startswith: Likewise.
32319         * modules/unistr/u16-stpcpy: Likewise.
32320         * modules/unistr/u16-stpncpy: Likewise.
32321         * modules/unistr/u16-strcat: Likewise.
32322         * modules/unistr/u16-strchr: Likewise.
32323         * modules/unistr/u16-strcmp: Likewise.
32324         * modules/unistr/u16-strcoll: Likewise.
32325         * modules/unistr/u16-strcpy: Likewise.
32326         * modules/unistr/u16-strcspn: Likewise.
32327         * modules/unistr/u16-strdup: Likewise.
32328         * modules/unistr/u16-strlen: Likewise.
32329         * modules/unistr/u16-strmblen: Likewise.
32330         * modules/unistr/u16-strmbtouc: Likewise.
32331         * modules/unistr/u16-strncat: Likewise.
32332         * modules/unistr/u16-strncmp: Likewise.
32333         * modules/unistr/u16-strncpy: Likewise.
32334         * modules/unistr/u16-strnlen: Likewise.
32335         * modules/unistr/u16-strpbrk: Likewise.
32336         * modules/unistr/u16-strrchr: Likewise.
32337         * modules/unistr/u16-strspn: Likewise.
32338         * modules/unistr/u16-strstr: Likewise.
32339         * modules/unistr/u16-strtok: Likewise.
32340         * modules/unistr/u16-to-u32: Likewise.
32341         * modules/unistr/u16-to-u8: Likewise.
32342         * modules/unistr/u16-uctomb: Likewise.
32343         * modules/unistr/u32-check: Likewise.
32344         * modules/unistr/u32-chr: Likewise.
32345         * modules/unistr/u32-cmp: Likewise.
32346         * modules/unistr/u32-cmp2: Likewise.
32347         * modules/unistr/u32-cpy: Likewise.
32348         * modules/unistr/u32-cpy-alloc: Likewise.
32349         * modules/unistr/u32-endswith: Likewise.
32350         * modules/unistr/u32-mblen: Likewise.
32351         * modules/unistr/u32-mbsnlen: Likewise.
32352         * modules/unistr/u32-mbtouc: Likewise.
32353         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32354         * modules/unistr/u32-mbtoucr: Likewise.
32355         * modules/unistr/u32-move: Likewise.
32356         * modules/unistr/u32-next: Likewise.
32357         * modules/unistr/u32-prev: Likewise.
32358         * modules/unistr/u32-set: Likewise.
32359         * modules/unistr/u32-startswith: Likewise.
32360         * modules/unistr/u32-stpcpy: Likewise.
32361         * modules/unistr/u32-stpncpy: Likewise.
32362         * modules/unistr/u32-strcat: Likewise.
32363         * modules/unistr/u32-strchr: Likewise.
32364         * modules/unistr/u32-strcmp: Likewise.
32365         * modules/unistr/u32-strcoll: Likewise.
32366         * modules/unistr/u32-strcpy: Likewise.
32367         * modules/unistr/u32-strcspn: Likewise.
32368         * modules/unistr/u32-strdup: Likewise.
32369         * modules/unistr/u32-strlen: Likewise.
32370         * modules/unistr/u32-strmblen: Likewise.
32371         * modules/unistr/u32-strmbtouc: Likewise.
32372         * modules/unistr/u32-strncat: Likewise.
32373         * modules/unistr/u32-strncmp: Likewise.
32374         * modules/unistr/u32-strncpy: Likewise.
32375         * modules/unistr/u32-strnlen: Likewise.
32376         * modules/unistr/u32-strpbrk: Likewise.
32377         * modules/unistr/u32-strrchr: Likewise.
32378         * modules/unistr/u32-strspn: Likewise.
32379         * modules/unistr/u32-strstr: Likewise.
32380         * modules/unistr/u32-strtok: Likewise.
32381         * modules/unistr/u32-to-u16: Likewise.
32382         * modules/unistr/u32-to-u8: Likewise.
32383         * modules/unistr/u32-uctomb: Likewise.
32384         * modules/uniwbrk/u8-wordbreaks: Likewise.
32385         * modules/uniwbrk/u16-wordbreaks: Likewise.
32386         * modules/uniwbrk/u32-wordbreaks: Likewise.
32387         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32388         * modules/uniwbrk/wordbreak-property: Likewise.
32389         * modules/uniwidth/u8-strwidth: Likewise.
32390         * modules/uniwidth/u8-width: Likewise.
32391         * modules/uniwidth/u16-strwidth: Likewise.
32392         * modules/uniwidth/u16-width: Likewise.
32393         * modules/uniwidth/u32-strwidth: Likewise.
32394         * modules/uniwidth/u32-width: Likewise.
32395         * modules/uniwidth/width: Likewise.
32396         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32397         with $(LIBUNISTRING).
32398         * modules/unicase/ignorable-tests: Likewise.
32399         * modules/unicase/locale-language-tests: Likewise.
32400         * modules/unicase/tolower-tests: Likewise.
32401         * modules/unicase/totitle-tests: Likewise.
32402         * modules/unicase/toupper-tests: Likewise.
32403         * modules/unicase/u8-casecmp-tests: Likewise.
32404         * modules/unicase/u8-casecoll-tests: Likewise.
32405         * modules/unicase/u8-casefold-tests: Likewise.
32406         * modules/unicase/u8-is-cased-tests: Likewise.
32407         * modules/unicase/u8-is-casefolded-tests: Likewise.
32408         * modules/unicase/u8-is-lowercase-tests: Likewise.
32409         * modules/unicase/u8-is-titlecase-tests: Likewise.
32410         * modules/unicase/u8-is-uppercase-tests: Likewise.
32411         * modules/unicase/u8-tolower-tests: Likewise.
32412         * modules/unicase/u8-totitle-tests: Likewise.
32413         * modules/unicase/u8-toupper-tests: Likewise.
32414         * modules/unicase/u16-casecmp-tests: Likewise.
32415         * modules/unicase/u16-casecoll-tests: Likewise.
32416         * modules/unicase/u16-casefold-tests: Likewise.
32417         * modules/unicase/u16-is-cased-tests: Likewise.
32418         * modules/unicase/u16-is-casefolded-tests: Likewise.
32419         * modules/unicase/u16-is-lowercase-tests: Likewise.
32420         * modules/unicase/u16-is-titlecase-tests: Likewise.
32421         * modules/unicase/u16-is-uppercase-tests: Likewise.
32422         * modules/unicase/u16-tolower-tests: Likewise.
32423         * modules/unicase/u16-totitle-tests: Likewise.
32424         * modules/unicase/u16-toupper-tests: Likewise.
32425         * modules/unicase/u32-casecmp-tests: Likewise.
32426         * modules/unicase/u32-casecoll-tests: Likewise.
32427         * modules/unicase/u32-casefold-tests: Likewise.
32428         * modules/unicase/u32-is-cased-tests: Likewise.
32429         * modules/unicase/u32-is-casefolded-tests: Likewise.
32430         * modules/unicase/u32-is-lowercase-tests: Likewise.
32431         * modules/unicase/u32-is-titlecase-tests: Likewise.
32432         * modules/unicase/u32-is-uppercase-tests: Likewise.
32433         * modules/unicase/u32-tolower-tests: Likewise.
32434         * modules/unicase/u32-totitle-tests: Likewise.
32435         * modules/unicase/u32-toupper-tests: Likewise.
32436         * modules/unicase/ulc-casecmp-tests: Likewise.
32437         * modules/unicase/ulc-casecoll-tests: Likewise.
32438         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32439         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32440         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32441         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32442         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32443         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32444         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32445         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32446         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32447         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32448         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32449         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32450         * modules/unictype/bidicategory-byname-tests: Likewise.
32451         * modules/unictype/bidicategory-name-tests: Likewise.
32452         * modules/unictype/bidicategory-of-tests: Likewise.
32453         * modules/unictype/bidicategory-test-tests: Likewise.
32454         * modules/unictype/block-list-tests: Likewise.
32455         * modules/unictype/block-of-tests: Likewise.
32456         * modules/unictype/block-test-tests: Likewise.
32457         * modules/unictype/category-C-tests: Likewise.
32458         * modules/unictype/category-Cc-tests: Likewise.
32459         * modules/unictype/category-Cf-tests: Likewise.
32460         * modules/unictype/category-Cn-tests: Likewise.
32461         * modules/unictype/category-Co-tests: Likewise.
32462         * modules/unictype/category-Cs-tests: Likewise.
32463         * modules/unictype/category-L-tests: Likewise.
32464         * modules/unictype/category-Ll-tests: Likewise.
32465         * modules/unictype/category-Lm-tests: Likewise.
32466         * modules/unictype/category-Lo-tests: Likewise.
32467         * modules/unictype/category-Lt-tests: Likewise.
32468         * modules/unictype/category-Lu-tests: Likewise.
32469         * modules/unictype/category-M-tests: Likewise.
32470         * modules/unictype/category-Mc-tests: Likewise.
32471         * modules/unictype/category-Me-tests: Likewise.
32472         * modules/unictype/category-Mn-tests: Likewise.
32473         * modules/unictype/category-N-tests: Likewise.
32474         * modules/unictype/category-Nd-tests: Likewise.
32475         * modules/unictype/category-Nl-tests: Likewise.
32476         * modules/unictype/category-No-tests: Likewise.
32477         * modules/unictype/category-P-tests: Likewise.
32478         * modules/unictype/category-Pc-tests: Likewise.
32479         * modules/unictype/category-Pd-tests: Likewise.
32480         * modules/unictype/category-Pe-tests: Likewise.
32481         * modules/unictype/category-Pf-tests: Likewise.
32482         * modules/unictype/category-Pi-tests: Likewise.
32483         * modules/unictype/category-Po-tests: Likewise.
32484         * modules/unictype/category-Ps-tests: Likewise.
32485         * modules/unictype/category-S-tests: Likewise.
32486         * modules/unictype/category-Sc-tests: Likewise.
32487         * modules/unictype/category-Sk-tests: Likewise.
32488         * modules/unictype/category-Sm-tests: Likewise.
32489         * modules/unictype/category-So-tests: Likewise.
32490         * modules/unictype/category-Z-tests: Likewise.
32491         * modules/unictype/category-Zl-tests: Likewise.
32492         * modules/unictype/category-Zp-tests: Likewise.
32493         * modules/unictype/category-Zs-tests: Likewise.
32494         * modules/unictype/category-and-not-tests: Likewise.
32495         * modules/unictype/category-and-tests: Likewise.
32496         * modules/unictype/category-byname-tests: Likewise.
32497         * modules/unictype/category-name-tests: Likewise.
32498         * modules/unictype/category-none-tests: Likewise.
32499         * modules/unictype/category-of-tests: Likewise.
32500         * modules/unictype/category-or-tests: Likewise.
32501         * modules/unictype/category-test-withtable-tests: Likewise.
32502         * modules/unictype/combining-class-tests: Likewise.
32503         * modules/unictype/ctype-alnum-tests: Likewise.
32504         * modules/unictype/ctype-alpha-tests: Likewise.
32505         * modules/unictype/ctype-blank-tests: Likewise.
32506         * modules/unictype/ctype-cntrl-tests: Likewise.
32507         * modules/unictype/ctype-digit-tests: Likewise.
32508         * modules/unictype/ctype-graph-tests: Likewise.
32509         * modules/unictype/ctype-lower-tests: Likewise.
32510         * modules/unictype/ctype-print-tests: Likewise.
32511         * modules/unictype/ctype-punct-tests: Likewise.
32512         * modules/unictype/ctype-space-tests: Likewise.
32513         * modules/unictype/ctype-upper-tests: Likewise.
32514         * modules/unictype/ctype-xdigit-tests: Likewise.
32515         * modules/unictype/decimal-digit-tests: Likewise.
32516         * modules/unictype/digit-tests: Likewise.
32517         * modules/unictype/mirror-tests: Likewise.
32518         * modules/unictype/numeric-tests: Likewise.
32519         * modules/unictype/property-alphabetic-tests: Likewise.
32520         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32521         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32522         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32523         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32524         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32525         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32526         * modules/unictype/property-bidi-control-tests: Likewise.
32527         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32528         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32529         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32530         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32531         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32532         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32533         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32534         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32535         * modules/unictype/property-bidi-pdf-tests: Likewise.
32536         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32537         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32538         * modules/unictype/property-byname-tests: Likewise.
32539         * modules/unictype/property-combining-tests: Likewise.
32540         * modules/unictype/property-composite-tests: Likewise.
32541         * modules/unictype/property-currency-symbol-tests: Likewise.
32542         * modules/unictype/property-dash-tests: Likewise.
32543         * modules/unictype/property-decimal-digit-tests: Likewise.
32544         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32545         * modules/unictype/property-deprecated-tests: Likewise.
32546         * modules/unictype/property-diacritic-tests: Likewise.
32547         * modules/unictype/property-extender-tests: Likewise.
32548         * modules/unictype/property-format-control-tests: Likewise.
32549         * modules/unictype/property-grapheme-base-tests: Likewise.
32550         * modules/unictype/property-grapheme-extend-tests: Likewise.
32551         * modules/unictype/property-grapheme-link-tests: Likewise.
32552         * modules/unictype/property-hex-digit-tests: Likewise.
32553         * modules/unictype/property-hyphen-tests: Likewise.
32554         * modules/unictype/property-id-continue-tests: Likewise.
32555         * modules/unictype/property-id-start-tests: Likewise.
32556         * modules/unictype/property-ideographic-tests: Likewise.
32557         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32558         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32559         * modules/unictype/property-ignorable-control-tests: Likewise.
32560         * modules/unictype/property-iso-control-tests: Likewise.
32561         * modules/unictype/property-join-control-tests: Likewise.
32562         * modules/unictype/property-left-of-pair-tests: Likewise.
32563         * modules/unictype/property-line-separator-tests: Likewise.
32564         * modules/unictype/property-logical-order-exception-tests: Likewise.
32565         * modules/unictype/property-lowercase-tests: Likewise.
32566         * modules/unictype/property-math-tests: Likewise.
32567         * modules/unictype/property-non-break-tests: Likewise.
32568         * modules/unictype/property-not-a-character-tests: Likewise.
32569         * modules/unictype/property-numeric-tests: Likewise.
32570         * modules/unictype/property-other-alphabetic-tests: Likewise.
32571         * modules/unictype/property-other-default-ignorable-code-point-tests:
32572         Likewise.
32573         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32574         * modules/unictype/property-other-id-continue-tests: Likewise.
32575         * modules/unictype/property-other-id-start-tests: Likewise.
32576         * modules/unictype/property-other-lowercase-tests: Likewise.
32577         * modules/unictype/property-other-math-tests: Likewise.
32578         * modules/unictype/property-other-uppercase-tests: Likewise.
32579         * modules/unictype/property-paired-punctuation-tests: Likewise.
32580         * modules/unictype/property-paragraph-separator-tests: Likewise.
32581         * modules/unictype/property-pattern-syntax-tests: Likewise.
32582         * modules/unictype/property-pattern-white-space-tests: Likewise.
32583         * modules/unictype/property-private-use-tests: Likewise.
32584         * modules/unictype/property-punctuation-tests: Likewise.
32585         * modules/unictype/property-quotation-mark-tests: Likewise.
32586         * modules/unictype/property-radical-tests: Likewise.
32587         * modules/unictype/property-sentence-terminal-tests: Likewise.
32588         * modules/unictype/property-soft-dotted-tests: Likewise.
32589         * modules/unictype/property-space-tests: Likewise.
32590         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32591         * modules/unictype/property-test-tests: Likewise.
32592         * modules/unictype/property-titlecase-tests: Likewise.
32593         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32594         * modules/unictype/property-unified-ideograph-tests: Likewise.
32595         * modules/unictype/property-uppercase-tests: Likewise.
32596         * modules/unictype/property-variation-selector-tests: Likewise.
32597         * modules/unictype/property-white-space-tests: Likewise.
32598         * modules/unictype/property-xid-continue-tests: Likewise.
32599         * modules/unictype/property-xid-start-tests: Likewise.
32600         * modules/unictype/property-zero-width-tests: Likewise.
32601         * modules/unictype/scripts-tests: Likewise.
32602         * modules/unictype/syntax-c-ident-tests: Likewise.
32603         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32604         * modules/unictype/syntax-java-ident-tests: Likewise.
32605         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32606         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32607         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32608         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32609         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32610         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32611         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32612         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32613         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32614         * modules/uniname/uniname-tests: Likewise.
32615         * modules/uninorm/canonical-decomposition-tests: Likewise.
32616         * modules/uninorm/compat-decomposition-tests: Likewise.
32617         * modules/uninorm/composition-tests: Likewise.
32618         * modules/uninorm/decomposing-form-tests: Likewise.
32619         * modules/uninorm/decomposition-tests: Likewise.
32620         * modules/uninorm/filter-tests: Likewise.
32621         * modules/uninorm/nfc-tests: Likewise.
32622         * modules/uninorm/nfd-tests: Likewise.
32623         * modules/uninorm/nfkc-tests: Likewise.
32624         * modules/uninorm/nfkd-tests: Likewise.
32625         * modules/uninorm/u8-normcmp-tests: Likewise.
32626         * modules/uninorm/u8-normcoll-tests: Likewise.
32627         * modules/uninorm/u16-normcmp-tests: Likewise.
32628         * modules/uninorm/u16-normcoll-tests: Likewise.
32629         * modules/uninorm/u32-normcmp-tests: Likewise.
32630         * modules/uninorm/u32-normcoll-tests: Likewise.
32631         * modules/unistdio/u8-asnprintf-tests: Likewise.
32632         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32633         * modules/unistdio/u8-vasprintf-tests: Likewise.
32634         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32635         * modules/unistdio/u8-vsprintf-tests: Likewise.
32636         * modules/unistdio/u16-asnprintf-tests: Likewise.
32637         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32638         * modules/unistdio/u16-vasprintf-tests: Likewise.
32639         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32640         * modules/unistdio/u16-vsprintf-tests: Likewise.
32641         * modules/unistdio/u32-asnprintf-tests: Likewise.
32642         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32643         * modules/unistdio/u32-vasprintf-tests: Likewise.
32644         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32645         * modules/unistdio/u32-vsprintf-tests: Likewise.
32646         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32647         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32648         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32649         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32650         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32651         * modules/unistr/u8-check-tests: Likewise.
32652         * modules/unistr/u8-chr-tests: Likewise.
32653         * modules/unistr/u8-cmp-tests: Likewise.
32654         * modules/unistr/u8-cmp2-tests: Likewise.
32655         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32656         * modules/unistr/u8-cpy-tests: Likewise.
32657         * modules/unistr/u8-mblen-tests: Likewise.
32658         * modules/unistr/u8-mbsnlen-tests: Likewise.
32659         * modules/unistr/u8-mbtouc-tests: Likewise.
32660         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32661         * modules/unistr/u8-mbtoucr-tests: Likewise.
32662         * modules/unistr/u8-move-tests: Likewise.
32663         * modules/unistr/u8-next-tests: Likewise.
32664         * modules/unistr/u8-prev-tests: Likewise.
32665         * modules/unistr/u8-set-tests: Likewise.
32666         * modules/unistr/u8-stpcpy-tests: Likewise.
32667         * modules/unistr/u8-stpncpy-tests: Likewise.
32668         * modules/unistr/u8-strcat-tests: Likewise.
32669         * modules/unistr/u8-strcmp-tests: Likewise.
32670         * modules/unistr/u8-strcoll-tests: Likewise.
32671         * modules/unistr/u8-strcpy-tests: Likewise.
32672         * modules/unistr/u8-strdup-tests: Likewise.
32673         * modules/unistr/u8-strlen-tests: Likewise.
32674         * modules/unistr/u8-strmblen-tests: Likewise.
32675         * modules/unistr/u8-strmbtouc-tests: Likewise.
32676         * modules/unistr/u8-strncat-tests: Likewise.
32677         * modules/unistr/u8-strncmp-tests: Likewise.
32678         * modules/unistr/u8-strncpy-tests: Likewise.
32679         * modules/unistr/u8-strnlen-tests: Likewise.
32680         * modules/unistr/u8-to-u16-tests: Likewise.
32681         * modules/unistr/u8-to-u32-tests: Likewise.
32682         * modules/unistr/u8-uctomb-tests: Likewise.
32683         * modules/unistr/u16-check-tests: Likewise.
32684         * modules/unistr/u16-chr-tests: Likewise.
32685         * modules/unistr/u16-cmp-tests: Likewise.
32686         * modules/unistr/u16-cmp2-tests: Likewise.
32687         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32688         * modules/unistr/u16-cpy-tests: Likewise.
32689         * modules/unistr/u16-mblen-tests: Likewise.
32690         * modules/unistr/u16-mbsnlen-tests: Likewise.
32691         * modules/unistr/u16-mbtouc-tests: Likewise.
32692         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32693         * modules/unistr/u16-mbtoucr-tests: Likewise.
32694         * modules/unistr/u16-move-tests: Likewise.
32695         * modules/unistr/u16-next-tests: Likewise.
32696         * modules/unistr/u16-prev-tests: Likewise.
32697         * modules/unistr/u16-set-tests: Likewise.
32698         * modules/unistr/u16-stpcpy-tests: Likewise.
32699         * modules/unistr/u16-stpncpy-tests: Likewise.
32700         * modules/unistr/u16-strcat-tests: Likewise.
32701         * modules/unistr/u16-strcmp-tests: Likewise.
32702         * modules/unistr/u16-strcoll-tests: Likewise.
32703         * modules/unistr/u16-strcpy-tests: Likewise.
32704         * modules/unistr/u16-strdup-tests: Likewise.
32705         * modules/unistr/u16-strlen-tests: Likewise.
32706         * modules/unistr/u16-strmblen-tests: Likewise.
32707         * modules/unistr/u16-strmbtouc-tests: Likewise.
32708         * modules/unistr/u16-strncat-tests: Likewise.
32709         * modules/unistr/u16-strncmp-tests: Likewise.
32710         * modules/unistr/u16-strncpy-tests: Likewise.
32711         * modules/unistr/u16-strnlen-tests: Likewise.
32712         * modules/unistr/u16-to-u32-tests: Likewise.
32713         * modules/unistr/u16-to-u8-tests: Likewise.
32714         * modules/unistr/u16-uctomb-tests: Likewise.
32715         * modules/unistr/u32-check-tests: Likewise.
32716         * modules/unistr/u32-chr-tests: Likewise.
32717         * modules/unistr/u32-cmp-tests: Likewise.
32718         * modules/unistr/u32-cmp2-tests: Likewise.
32719         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32720         * modules/unistr/u32-cpy-tests: Likewise.
32721         * modules/unistr/u32-mblen-tests: Likewise.
32722         * modules/unistr/u32-mbsnlen-tests: Likewise.
32723         * modules/unistr/u32-mbtouc-tests: Likewise.
32724         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32725         * modules/unistr/u32-mbtoucr-tests: Likewise.
32726         * modules/unistr/u32-move-tests: Likewise.
32727         * modules/unistr/u32-next-tests: Likewise.
32728         * modules/unistr/u32-prev-tests: Likewise.
32729         * modules/unistr/u32-set-tests: Likewise.
32730         * modules/unistr/u32-stpcpy-tests: Likewise.
32731         * modules/unistr/u32-stpncpy-tests: Likewise.
32732         * modules/unistr/u32-strcat-tests: Likewise.
32733         * modules/unistr/u32-strcmp-tests: Likewise.
32734         * modules/unistr/u32-strcoll-tests: Likewise.
32735         * modules/unistr/u32-strcpy-tests: Likewise.
32736         * modules/unistr/u32-strdup-tests: Likewise.
32737         * modules/unistr/u32-strlen-tests: Likewise.
32738         * modules/unistr/u32-strmblen-tests: Likewise.
32739         * modules/unistr/u32-strmbtouc-tests: Likewise.
32740         * modules/unistr/u32-strncat-tests: Likewise.
32741         * modules/unistr/u32-strncmp-tests: Likewise.
32742         * modules/unistr/u32-strncpy-tests: Likewise.
32743         * modules/unistr/u32-strnlen-tests: Likewise.
32744         * modules/unistr/u32-to-u16-tests: Likewise.
32745         * modules/unistr/u32-to-u8-tests: Likewise.
32746         * modules/unistr/u32-uctomb-tests: Likewise.
32747         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32748         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32749         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32750         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32751         * modules/uniwidth/u8-strwidth-tests: Likewise.
32752         * modules/uniwidth/u8-width-tests: Likewise.
32753         * modules/uniwidth/u16-strwidth-tests: Likewise.
32754         * modules/uniwidth/u16-width-tests: Likewise.
32755         * modules/uniwidth/u32-strwidth-tests: Likewise.
32756         * modules/uniwidth/u32-width-tests: Likewise.
32757         * modules/uniwidth/width-tests: Likewise.
32758
32759 2010-05-18  Richard Jones  <rjones@redhat.com>
32760
32761         doc: users.txt: list hivex
32762         * users.txt: Add hivex.
32763
32764 2010-05-18  Richard Jones  <rjones@redhat.com>
32765
32766         doc: users.txt: list febootstrap
32767         * users.txt: Add febootstrap.
32768
32769 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32770
32771         bootstrap: fix an error when gnulib is not used as a git submodule
32772         * build-aux/bootstrap (gnulib_path): If its length is zero then
32773         assign "gnulib" to it.
32774         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32775
32776 2010-05-16  Bruno Haible  <bruno@clisp.org>
32777
32778         Avoid autoconf warnings about AM_ICONV.
32779         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32780         2.64.
32781
32782 2010-05-16  Bruno Haible  <bruno@clisp.org>
32783
32784         absolute-header: Make the macro usable in more situations.
32785         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32786         from gl_ABSOLUTE_HEADER.
32787         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32788
32789 2010-05-16  James Youngman  <jay@gnu.org>
32790
32791         doc: update users.txt
32792         * users.txt: Add CSSC.
32793
32794 2010-05-16  Jim Meyering  <meyering@redhat.com>
32795
32796         init.sh: fix an error in the previous change; add more comments
32797         * tests/init.sh: Compare exit code in loop against 9, not 2.
32798         Patch by Bruno Haible.
32799         Make the two tests more similar by adding an empty "then" clause.
32800         Add comments.
32801
32802         init.sh: avoid unnecessary shell re-exec
32803         * tests/init.sh: Improve the re-exec-required check to first test the
32804         current shell.  If it passes the test, do not search for a shell that
32805         does pass, and do not re-exec.  This test is particularly contorted to
32806         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32807         of $(...) evokes a syntax error and causes immediate shell exit with
32808         status 2.  Bruno Haible reported that the re-exec made it impossible
32809         to single-step through any init.sh-using script.
32810
32811 2010-05-16  Bruno Haible  <bruno@clisp.org>
32812
32813         Fix collision between gnulib's and libintl's printf replacements.
32814         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32815         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32816         (printf): When using GNU C, map the __printf__ function to rpl_printf
32817         via __asm__. When not using GNU C, define rpl_printf instead of
32818         __printf__.
32819         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32820         commit.
32821         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32822         commit.
32823         * m4/asm-underscore.m4: New file.
32824         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32825         * modules/stdio (Files): Add m4/asm-underscore.m4.
32826         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32827         Reported by Ben Pfaff.
32828
32829 2010-05-16  Bruno Haible  <bruno@clisp.org>
32830
32831         verify: Avoid skipping the test on openSUSE 11.0.
32832         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32833
32834 2010-05-13  Bruno Haible  <bruno@clisp.org>
32835
32836         Avoid useless warnings from G++.
32837         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32838         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32839         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32840
32841 2010-05-11  Jim Meyering  <meyering@redhat.com>
32842
32843         maint.mk: tweak preceding change
32844         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32845         regexps tighter by anchoring at EOL, and make the new group "shy"
32846         for slightly decreased overhead.
32847
32848 2010-05-11  Eric Blake  <eblake@redhat.com>
32849
32850         maint.mk: gnulib doesn't guarantee NSIG
32851         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32852
32853 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32854
32855         test-pwrite.c: Remove unused variable declaration.
32856         * tests/test-pwrite.c (main): Remove read_buf declaration.
32857
32858         Remove useless test-pwrite.sh file.
32859         * tests/test-pwrite.sh: Delete file.
32860         * modules/pwrite-tests: Remove references.
32861         Reported by Bruno Haible.
32862
32863 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32864
32865         init.sh: fix a typo
32866         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32867
32868 2010-05-10  Jim Meyering  <meyering@redhat.com>
32869
32870         maint.mk: avoid using a temporary file in the always-defined-macros check
32871         * top/maint.mk (.re-defmac): Remove rule.
32872         (gl_trap_): Remove definition.
32873         (sc_prohibit_always-defined_macros): Rewrite not to create and
32874         depend on a temporary file.  Instead, depend on GNU grep's ability
32875         to read a list of regular expressions from stdin when given "-f -".
32876
32877 2010-05-09  Bruno Haible  <bruno@clisp.org>
32878
32879         Update to GNU gettext 0.18, part 1.
32880         * m4/gettext.m4: Update to GNU gettext 0.18.
32881         * m4/intl.m4: Likewise.
32882         * m4/po.m4: Likewise.
32883         * modules/gettext (Files): Add m4/fcntl-o.m4.
32884         (configure.ac): Require gettext infrastructure from version 0.18.
32885
32886 2010-05-09  Jim Meyering  <meyering@redhat.com>
32887
32888         init.sh: enable MALLOC_PERTURB_
32889         * tests/init.sh: Enable glibc's malloc-perturbing option.
32890
32891         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32892         With my recent change in init.sh from the two-line form:
32893             -#   : ${srcdir=.}
32894             -#   . "$srcdir/init.sh"; path_prepend_ .
32895             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32896         I noticed that using the one-line form would cause this test
32897         to fail with a false-positive, or to stop working altogether,
32898         depending on whether help-version changed or all the tests did.
32899         * top/maint.mk (_hv_regex): Remove this definition.
32900         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32901         (_hv_regex_strong): Use a stronger regex to check for conformance.
32902         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32903         Give a separate diagnostic for lack of conforming use.
32904
32905         maint.mk: prohibit definition of symbols defined by gnulib
32906         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32907         definition of symbols defined by gnulib.
32908
32909 2010-05-09  Bruno Haible  <bruno@clisp.org>
32910
32911         acl: Avoid test failure on Cygwin-hosted mingw.
32912         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32913
32914 2010-05-09  Bruno Haible  <bruno@clisp.org>
32915
32916         error: Use system's fcntl function.
32917         * lib/error.c (fcntl): Undefine.
32918
32919 2010-05-09  Jim Meyering  <meyering@redhat.com>
32920
32921         verify: adjust formatting to be more consistent
32922         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32923         argument-list '('s, and after one comma.
32924
32925 2010-05-09  Bruno Haible  <bruno@clisp.org>
32926
32927         error: More reliable output on mingw.
32928         * lib/error.c: Include <windows.h>.
32929         (is_open): New function.
32930         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32931         defined.
32932
32933 2010-05-09  Bruno Haible  <bruno@clisp.org>
32934
32935         vasnprintf: Fix syntax errors in libintl build on mingw.
32936         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32937         pad_ourselves and prec_ourselves after use.
32938
32939 2010-05-08  Bruno Haible  <bruno@clisp.org>
32940
32941         * lib/config.charset: Update comments for Cygwin 1.7.
32942         * lib/localcharset.c: Likewise.
32943
32944 2010-05-07  Jim Meyering  <meyering@redhat.com>
32945
32946         init.sh: improve comments
32947         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32948         . "${srcdir=.}/init.sh"; path_prepend_ .
32949         Add a note about path_prepend_ and the alternative of using
32950         TESTS_ENVIRONMENT.
32951
32952 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32953
32954         exclude: Unescape hashed patterns in wildcard mode.
32955         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32956         to the hash list.
32957         * tests/test-exclude8.sh: New test case.
32958         * modules/exclude-tests: Add new test.
32959
32960 2010-05-05  Eric Blake  <eblake@redhat.com>
32961
32962         verify: automate tests
32963         * modules/verify-tests: New module.
32964         * tests/test-verify.sh: New file.
32965         * tests/test-verify.c: Guard each negative test with a unique id.
32966         Also avoid warning about unused left hand of comma expressions.
32967
32968 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32969
32970         Further improvements to verify.h, suggested by Eric Blake.
32971         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32972         the GL_* versions, to avoid collision with OpenGL.
32973         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32974         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32975         than testing merely whether it's defined.
32976
32977         Modify verify.h to pacify gcc -Wredundant_decls.
32978         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32979         These use the prefix "GL_" since they're likely to be useful elsewhere.
32980         We may need to break them out into a different .h file.
32981         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32982         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32983         of verify_function__.
32984
32985 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32986
32987         Tests for module pwrite.
32988         * modules/pwrite-tests: New file.
32989         * tests/test-pwrite.sh: New file.
32990         * tests/test-pwrite.c: New file.
32991
32992         New module pwrite.
32993         * lib/unistd.in.h (pwrite): New declaration.
32994         * lib/pwrite.c: New file, from glibc with modifications.
32995         * m4/pwrite.m4: New file.
32996         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32997         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32998         REPLACE_PWRITE.
32999         * modules/pwrite: New file.
33000         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33001         REPLACE_PWRITE.
33002         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33003         * doc/posix-functions/pwrite.texi: Mention the new module.
33004
33005 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33006
33007         pread: Update documentation.
33008         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33009
33010 2010-05-04  Eric Blake  <eblake@redhat.com>
33011
33012         docs: update cygwin progress
33013         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33014         this bug.
33015         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33016         Added in cygwin 1.7.2.
33017         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33018         Likewise.
33019         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33020         Likewise.
33021         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33022         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33023         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33024         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33025         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33026         Mention nproc module.
33027         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33028         bug in cygwin 1.7.5 addition.
33029         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33030         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33031         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33032         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33033         1.7.5.
33034         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33035         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33036         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33037         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33038         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33039         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33040         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33041         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33042         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33043         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33044         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33045         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33046         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33047         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33048         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33049         Likewise.
33050         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33051         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33052         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33053         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33054         Likewise.
33055         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33056         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33057         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33058         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33059         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33060         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33061         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33062         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33063         Likewise.
33064         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33065         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33066         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33067         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33068         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33069         Likewise.
33070         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33071         Likewise.
33072         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33073         Likewise.
33074         * doc/glibc-functions/xdrrec_endofrecord.texi
33075         (xdrrec_endofrecord): Likewise.
33076         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33077         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33078         Likewise.
33079         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33080         Likewise.
33081
33082 2010-05-04  Jim Meyering  <meyering@redhat.com>
33083
33084         gendocs.sh: make its "-s FILE" option more useful
33085         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33086         $PACKAGE to reflect the probably-different basename of "FILE".
33087
33088 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33089
33090         bootstrap: don't ignore download_po_files failure
33091         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33092         failure.
33093
33094 2010-05-03  Jim Meyering  <meyering@redhat.com>
33095
33096         maint.mk: allow to pass options to gendocs.sh
33097         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33098         (gendocs_options_): New overridable variable.
33099
33100         gnu-web-doc-update: don't ignore configure or build failure
33101         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33102
33103         announce-gen: backslash-escape '@'s in --help output
33104         * build-aux/announce-gen: Fix syntax errors.
33105
33106         maint.mk, announce-gen: allow project-specific announcement mail headers
33107         * top/maint.mk (translation_project_): Define default.
33108         (announcement_Cc_, announcement_mail_headers_): Likewise.
33109         (announcement): Invoke announce-gen with new --mail-headers option.
33110         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33111
33112         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33113         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33114         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33115         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33116         line in the "err2" output file when running "make check" in verbose
33117         mode (i.e., with set -x enabled).
33118
33119 2010-05-03  Bruno Haible  <bruno@clisp.org>
33120
33121         wctob: Fix for weird platforms.
33122         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33123         argument value.
33124
33125 2010-05-03  Jim Meyering  <meyering@redhat.com>
33126
33127         maint.mk: prohibit unwarranted use of <strings.h>
33128         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33129         strings.h in a file that does not also use strcasecmp, strncasecmp,
33130         ffs or ffsll.
33131
33132         maint.mk: remove obsolete comments
33133         * top/maint.mk: Remove stale, commented-out rules.
33134
33135 2010-05-02  Bruno Haible  <bruno@clisp.org>
33136
33137         wcwidth: Declare also when it's aliased.
33138         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33139         macro.
33140
33141 2010-05-02  Bruno Haible  <bruno@clisp.org>
33142
33143         Fix regression from 2010-04-25.
33144         * gnulib-tool (func_modules_transitive_closure): Check the status of
33145         all modules, not only of the tests that are of the form foo-tests where
33146         foo is a module.
33147
33148 2010-05-02  Bruno Haible  <bruno@clisp.org>
33149
33150         wctob: Work around nasty Cygwin 1.7.2 bug.
33151         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33152         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33153
33154 2010-05-01  Bruno Haible  <bruno@clisp.org>
33155
33156         fpurge: Sharper test.
33157         * tests/test-fpurge.c (main): Add one more ftell check.
33158         * modules/fpurge-tests (Depends-on): Add ftell.
33159         Suggested by Eric Blake.
33160
33161 2010-05-01  Bruno Haible  <bruno@clisp.org>
33162
33163         ftello: Another test.
33164         * tests/test-ftello3.c: New file.
33165         * modules/ftello-tests (Files): Add it.
33166         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33167         MOSTLYCLEANFILES.
33168
33169         ftell: Another test.
33170         * tests/test-ftell3.c: New file.
33171         * modules/ftell-tests (Files): Add it.
33172         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33173         MOSTLYCLEANFILES.
33174
33175 2010-05-01  Bruno Haible  <bruno@clisp.org>
33176
33177         ftell, ftello: Work around Solaris bug.
33178         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33179         * lib/ftello.c: Include stdio-impl.h.
33180         (ftello): On Solaris, when _IOWRT is set, compute the result without
33181         looking at _IOREAD.
33182         * modules/ftello (Files): Add lib/stdio-impl.h.
33183         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33184         * doc/posix-functions/ftello.texi: Likewise.
33185         Reported by Eric Blake.
33186
33187 2010-05-01  Bruno Haible  <bruno@clisp.org>
33188
33189         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33190         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33191         the _IOWRT flag is also set.
33192
33193 2010-05-01  Bruno Haible  <bruno@clisp.org>
33194
33195         Fix doc about a HP-UX stdio bug.
33196         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33197         * doc/posix-functions/ftello.texi: Likewise.
33198
33199 2010-05-01  Bruno Haible  <bruno@clisp.org>
33200
33201         lseek test: Fix failure on Solaris.
33202         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33203         output.
33204
33205 2010-04-30  Jim Meyering  <meyering@redhat.com>
33206
33207         bootstrap: don't ignore failure to generate po*/Makevars
33208         * build-aux/bootstrap (with_gettext): Don't ignore failure
33209         to create po/Makevars or runtime-po/Makevars.
33210
33211 2010-04-29  Eric Blake  <eblake@redhat.com>
33212
33213         headers: relax license to LGPLv2+
33214         * modules/fcntl-h (License): Relax license.
33215         * modules/getopt-posix (License): Likewise.
33216         * modules/locale (License): Likewise.
33217         * modules/math (License): Likewise.
33218         * modules/pty (License): Likewise.
33219         * modules/sched (License): Likewise.
33220         * modules/search (License): Likewise.
33221         * modules/spawn (License): Likewise.
33222         * modules/stdarg (License): Likewise.
33223         * modules/sysexits (License): Likewise.
33224
33225 2010-04-29  Jim Meyering  <meyering@redhat.com>
33226
33227         inttypes: relax license to LGPLv2+
33228         * modules/inttypes (License): Relax license.
33229
33230 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33231
33232         * top/maint.mk (indent): Run twice to produce idempotent results.
33233
33234 2010-04-28  Bruno Haible  <bruno@clisp.org>
33235
33236         getdate: Generate getdate.c in the source directory.
33237         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33238         MOSTLYCLEANFILES.
33239         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33240
33241 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33242
33243         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33244         is not declared as a const *; avoid warnings in that case.
33245
33246 2010-04-28  Eric Blake  <eblake@redhat.com>
33247
33248         canonicalize-lgpl: avoid compiler warning
33249         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33250         declaration' / 'extraneous semicolon' warning with some compilers.
33251         Reported by Andreas Gruenbacher.
33252
33253 2010-04-28  Jim Meyering  <meyering@redhat.com>
33254
33255         init.sh: ensure a more reliable exit status when exiting via trap
33256         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33257         Inspired by patches from Dmitry V. Levin.
33258         Also trap on signal 3 (SIGQUIT).
33259
33260 2010-04-27  Bruno Haible  <bruno@clisp.org>
33261
33262         Update doc about utimes().
33263         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33264         'utimens' module.
33265         Reported by Andreas Gruenbacher <agruen@suse.de>.
33266
33267 2010-04-27  Eric Blake  <eblake@redhat.com>
33268
33269         full-read, full-write: relax license
33270         * modules/full-read (License): Drop to LGPLv2+.
33271         * modules/full-write (License): Likewise.
33272         * modules/safe-read (License): Likewise.
33273         * modules/safe-write (License): Likewise.
33274
33275         pthread: mention library for linking
33276         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33277
33278 2010-04-27  Jim Meyering  <meyering@redhat.com>
33279
33280         maint.mk: fix a bug introduced in last change
33281         * top/maint.mk (gl_assured_headers_): Now that all names are on
33282         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33283         is not anchored to end of word, it should be adequate.
33284
33285         maint.mk: avoid side-effect in latest syntax-check
33286         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33287         to run commands via $(shell...), and hence to incur cost only when
33288         the new rule is actually run.
33289
33290         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33291         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33292         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33293         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33294         (gl_assured_headers_, az_, AZ_): Define.
33295         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33296
33297 2010-04-26  Jim Meyering  <jim@meyering.net>
33298             Bruno Haible  <bruno@clisp.org>
33299
33300         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33301         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33302         Prompted by an exchange with Gilles Espinasse.
33303
33304 2010-04-26  Jim Meyering  <meyering@redhat.com>
33305
33306         git-version-gen: aesthetic tweak
33307         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33308         so that the command remains on a single line.
33309
33310 2010-04-26  Eric Blake  <eblake@redhat.com>
33311
33312         git-version-gen: allow use on EBCDIC hosts
33313         * build-aux/git-version-gen (dirty): Use literal rather than tying
33314         ourselves to ascii.
33315         Reported by Steve Goetze.
33316
33317 2010-04-25  Bruno Haible  <bruno@clisp.org>
33318
33319         netdb: Add support for GNULIB_POSIXCHECK.
33320         * lib/netdb.in.h: Include warn-on-use.h.
33321         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33322         functions are used when GNULIB_POSIXCHECK is defined and the
33323         getaddrinfo module is not in use.
33324         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33325         freeaddrinfo, gai_strerror, getnameinfo are declared.
33326         * modules/netdb (Depends-on): Add warn-on-use.
33327         (Makefile.am): Include warn-on-use.h in netdb.h.
33328
33329 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33330
33331         build: avoid "make check" failure without .git/ directory
33332         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33333         there is no .git/ directory.
33334
33335 2010-04-25  Bruno Haible  <bruno@clisp.org>
33336
33337         ptsname: Fix misuse of ttyname_r.
33338         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33339         of errno.
33340
33341 2010-04-25  Bruno Haible  <bruno@clisp.org>
33342
33343         ttyname_r: Make it work on Solaris 10.
33344         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33345         if the system function has the POSIX declaration. Test whether the
33346         function fails if the buffer is less than 128 bytes large.
33347         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33348         system's ttyname_r function. Provide a reasonably large buffer.
33349         * modules/ttyname_r (Depends-on): Add extensions.
33350         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33351
33352 2010-04-25  Bruno Haible  <bruno@clisp.org>
33353
33354         Use the 'extensions' module for some more functions on Solaris.
33355         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33356         module.
33357         * doc/posix-functions/ctime_r.texi: Likewise.
33358         * doc/posix-functions/getgrgid_r.texi: Likewise.
33359         * doc/posix-functions/getgrnam_r.texi: Likewise.
33360         * doc/posix-functions/getpwnam_r.texi: Likewise.
33361         * doc/posix-functions/getpwuid_r.texi: Likewise.
33362         * doc/posix-functions/readdir_r.texi: Likewise.
33363         * doc/posix-functions/sigwait.texi: Likewise.
33364         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33365         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33366
33367 2010-04-25  Bruno Haible  <bruno@clisp.org>
33368
33369         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33370         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33371         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33372         * lib/ttyname_r.c: Include <limits.h>.
33373         (ttyname_r): Define using the system's ttyname_r function, if it exists
33374         and not on Solaris.
33375         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33376         set.
33377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33378         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33379         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33380         Reported by Simon Josefsson.
33381
33382 2010-04-25  Bruno Haible  <bruno@clisp.org>
33383
33384         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33385         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33386         * doc/posix-functions/ctime_r.texi: Likewise.
33387         * doc/posix-functions/getgrgid_r.texi: Likewise.
33388         * doc/posix-functions/getgrnam_r.texi: Likewise.
33389         * doc/posix-functions/getlogin_r.texi: Likewise.
33390         * doc/posix-functions/getpwnam_r.texi: Likewise.
33391         * doc/posix-functions/getpwuid_r.texi: Likewise.
33392         * doc/posix-functions/readdir_r.texi: Likewise.
33393         * doc/posix-functions/sigwait.texi: Likewise.
33394         * doc/posix-functions/ttyname_r.texi: Likewise.
33395         Reported by Simon Josefsson.
33396
33397 2010-04-25  Bruno Haible  <bruno@clisp.org>
33398
33399         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33400         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33401         also to --create-testdir.
33402         (func_acceptable): Don't consider the status of *-tests modules here.
33403         (func_modules_transitive_closure): Consider it here, before including a
33404         test module.
33405         (func_import, func_create_testdir): Set inc_all_direct_tests,
33406         inc_all_indirect_tests.
33407         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33408         --create-testdir and --create-megatestdir.
33409
33410 2010-04-25  Bruno Haible  <bruno@clisp.org>
33411
33412         gnulib-tool: Add --without-*-tests options.
33413         * gnulib-tool (func_usage): Document the --without-*-tests options.
33414         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33415         excl_unportable_tests): New variables.
33416         Fail if they are specified with --import or --update.
33417         (func_acceptable): Respect the excl_*_tests variables.
33418         (func_import): Set the excl_*_tests variables to empty.
33419
33420 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33421             Bruno Haible  <bruno@clisp.org>
33422
33423         Work around a MacOS X 10.4 bug with openpty.
33424         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33425         * tests/test-openpty.c (main): Close the master side explicitly.
33426
33427 2010-04-25  Bruno Haible  <bruno@clisp.org>
33428
33429         strnlen: Fix a C++ test error on MacOS X and Solaris.
33430         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33431         the function is not declared.
33432         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33433         Simon Josefsson.
33434
33435 2010-04-24  Bruno Haible  <bruno@clisp.org>
33436
33437         Avoid a gcc warning.
33438         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33439         of correct type for %08lx directive.
33440         Reported by Eric Blake.
33441
33442 2010-04-24  Bruno Haible  <bruno@clisp.org>
33443
33444         vasnprintf: Correct errno value in case of out-of-memory.
33445         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33446         or sprintf. Use the errno value from SNPRINTF or sprintf.
33447         Reported by Ian Beckwith <ianb@erislabs.net>.
33448
33449 2010-04-24  Bruno Haible  <bruno@clisp.org>
33450
33451         ansi-c++-opt: Find correct compiler when cross-compiling.
33452         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33453         AC_CHECK_PROGS.
33454         Reported by Simon Josefsson.
33455
33456 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33457
33458         vc-list-files: Add support for subversion
33459         * build-aux/vc-list-files: Use "svn list" to generate the list of
33460         files controlled by subversion.
33461
33462 2010-04-23  Jim Meyering  <meyering@redhat.com>
33463
33464         vc-list-files tests: convert to use init.sh
33465         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33466         path_prepend_.
33467         Use Exit, not exit.
33468         Use skip_ rather than open coding it.
33469         Remove trap set-up and compare definitions.
33470         * tests/test-vc-list-files-git.sh: Likewise.
33471         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33472
33473 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33474
33475         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33476         backup files.
33477
33478 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33479
33480         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33481
33482 2010-04-20  Eric Blake  <eblake@redhat.com>
33483
33484         tests: be robust to ignored SIGPIPE
33485         * tests/test-select-in.sh: Consume all output.
33486         * tests/test-lseek.sh: Check correct exit status, while avoiding
33487         EPIPE.
33488
33489 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33490             Bruno Haible  <bruno@clisp.org>
33491
33492         visibility: Don't use -fvisibility if it leads to a warning.
33493         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33494         yes, don't pretend that visibility works if it leads to a warning.
33495         Reported by Mike Gran <spk121@yahoo.com>.
33496
33497 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33498
33499         * build-aux/bootstrap: Use "git -h" for testing for supported options
33500         instead of "git --help".  The short-form option only shows a summary,
33501         and doesn't layout the full man page.  Grep for the full option name
33502         in the summary, too.
33503
33504 2010-04-19  Bruno Haible  <bruno@clisp.org>
33505
33506         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33507         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33508         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33509         mention of RELOCATABLE_STRIP.
33510         Reported by Sylvain Beucler <beuc@beuc.net>.
33511
33512 2010-04-19  Bruno Haible  <bruno@clisp.org>
33513
33514         * lib/diffseq.h: Fix typo in comment.
33515         Reported by Eric Blake.
33516
33517 2010-04-19  Bruno Haible  <bruno@clisp.org>
33518
33519         ioctl: Move autoconf macro to a .m4 file.
33520         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33521         * modules/ioctl (Files): Add it.
33522         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33523         Reported by Ian Beckwith <ianb@erislabs.net>.
33524
33525 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33526             Bruno Haible  <bruno@clisp.org>
33527
33528         diffseq: Accommodate use-case with abstract arrays.
33529         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33530         is not defined.
33531         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33532         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33533
33534 2010-04-18  Bruno Haible  <bruno@clisp.org>
33535
33536         * doc/posix-headers/stdbool.texi: More precise wording.
33537
33538 2010-04-17  Jim Meyering  <meyering@redhat.com>
33539
33540         maint.mk: use gnu-style indentation in an embedded perl script
33541         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33542         Rename variable: s/two/last_two_bytes/
33543
33544 2010-04-16  Eric Blake  <eblake@redhat.com>
33545
33546         test-stdbool: skip test that fails with Solaris CC
33547         * tests/test-stdbool.c (f): Skip test that causes compilation
33548         error under buggy C++ compiler.
33549         * lib/stdbool.in.h: Document the limitation.
33550         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33551
33552         setenv: allow compilation with C++
33553         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33554         register keyword.
33555
33556         stdint: allow test to pass with C++
33557         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33558
33559         getopt: allow compilation with C++
33560         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33561         struct.
33562         * lib/getopt.c (_getopt_internal_r): Use correct type.
33563         Reported by Dagobert Michelson, via Joel E. Denny.
33564
33565 2010-04-16  Bruno Haible  <bruno@clisp.org>
33566
33567         Override netdb.h always.
33568         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33569         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33570         Reported by Ludovic Courtès <ludo@gnu.org>.
33571
33572 2010-04-15  Bruno Haible  <bruno@clisp.org>
33573
33574         openpty: Fix mistake from 2010-03-21.
33575         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33576         Reported by Simon Josefsson.
33577
33578 2010-04-15  Eric Blake  <eblake@redhat.com>
33579
33580         test-forkpty: fix expected signature
33581         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33582         Reported by Simon Josefsson.
33583
33584 2010-04-15  Jim Meyering  <meyering@redhat.com>
33585
33586         maint.mk: texinfo_suffix_re_: correct the default regexp
33587         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33588
33589         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33590         make it configurable via texinfo_suffix_re_.
33591
33592 2010-04-14  Eric Blake  <eblake@redhat.com>
33593
33594         strtok_r: relax license to LGPLv2+
33595         * modules/strtok_r (License): Relax license.
33596         Reported by Matthias Bolte.
33597
33598 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33599
33600         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33601         version 1.4.4 by default instead of requiring the libgcrypt
33602         version used during build.  This makes it possible to use the
33603         application with older but still binary compatible libgcrypt
33604         versions.
33605
33606 2010-04-13  Eric Blake  <eblake@redhat.com>
33607
33608         getopt-gnu: match recent glibc fixes and posix ruling
33609         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33610         '+' handling, when requesting extensions.
33611         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33612         'W;' handling.
33613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33614         * doc/posix-functions/getopt.texi (getopt): Document this.
33615         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33616         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33617         Likewise.
33618
33619         getopt: merge bug fixes from glibc
33620         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33621         diagnostics.  Honor '+:' correctly.  Reject ';'.
33622
33623         getopt-posix: detect MacOS bug
33624         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33625         optind when missing a required argument.
33626         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33627         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33628         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33629         Likewise.
33630
33631         getopt-posix: avoid spurious failure on Solaris
33632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33633         an indicator that setting optind=1 is sufficient for reset.
33634
33635         getopt-posix: avoid spurious failure on FreeBSD
33636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33637         in POSIX mode, since the m4 test uses it.
33638
33639         gnulib-tool: silence warning on BSD sh
33640         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33641
33642 2010-04-13  Jim Meyering  <meyering@redhat.com>
33643
33644         doc: users.txt: GNU patch now uses gnulib
33645         * users.txt: Add patch.
33646
33647 2010-04-12  Jim Meyering  <meyering@redhat.com>
33648
33649         maint.mk: generate more concise timing data for syntax-check rules
33650         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33651         " done" from each line that reports a syntax-check test duration.
33652
33653 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33654
33655         git-version-gen: use "git update-index..." rather than "git status"
33656         * build-aux/git-version-gen: Use git update-index --refresh, not
33657         "git status".  With some versions of git, "git status" would fail
33658         to update the index and result in an unwarranted "-dirty" suffix.
33659
33660 2010-04-11  Jim Meyering  <meyering@redhat.com>
33661
33662         openat: correct formatting (no semantic change)
33663         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33664         Suggested by Bruno Haible.
33665
33666 2010-04-11  Bruno Haible  <bruno@clisp.org>
33667
33668         Stricter declaration checking in testdirs.
33669         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33670         If for_tests is true, augment AM_CPPFLAGS to define
33671         GNULIB_STRICT_CHECKING.
33672         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33673         GNULIB_STRICT_CHECKING is defined, verify that the function is
33674         declared.
33675
33676 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33677             Bruno Haible  <bruno@clisp.org>
33678
33679         libunistring: Improve configure output.
33680         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33681         Don't say "consider installing GNU libunistring" when checking again
33682         with libiconv.
33683
33684 2010-04-11  Bruno Haible  <bruno@clisp.org>
33685
33686         libunistring: Correct value of $LTLIBUNISTRING.
33687         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33688         correct the value of $LTLIBUNISTRING.
33689
33690 2010-04-11  Bruno Haible  <bruno@clisp.org>
33691
33692         havelib: Add static libraries to LIBS in the right order.
33693         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33694         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33695
33696 2010-04-11  Bruno Haible  <bruno@clisp.org>
33697
33698         libunistring: Detect libunistring also when it depends on libiconv.
33699         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33700         the second AC_LIB_HAVE_LINKFLAGS invocation.
33701
33702 2010-04-11  James Youngman  <jay@gnu.org>
33703
33704         close-stream: declare local scalars to be "const"
33705         * lib/close-stream.c (close_stream): Make boolean variables const
33706         to document the fact that we set but do not change them.
33707
33708 2010-04-11  Bruno Haible  <bruno@clisp.org>
33709
33710         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33711
33712 2010-04-11  Jim Meyering  <meyering@redhat.com>
33713
33714         maint.mk: don't include dist-check.mk
33715         * top/maint.mk: Remove bogus include directive.
33716
33717         maint.mk: improve empty-line-at-EOF check
33718         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33719         solution, rather than tail+Perl-based one.  The latter would read
33720         a few kilobytes from the end of each file, and did not handle empty
33721         files properly.
33722
33723         maint.mk: print the elapsed time for each syntax-check rule
33724         * top/maint.mk (sc_m_rules_): Save start time in a file.
33725         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33726         (local-check): Interpose the .z rules
33727
33728 2010-04-11  Jim Meyering  <meyering@redhat.com>
33729
33730         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33731         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33732         empty file with one that ends in an empty line.
33733
33734 2010-04-10  Bruno Haible  <bruno@clisp.org>
33735
33736         mkdir: Make it work on mingw64.
33737         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33738         * lib/mkdir.c: Update comment.
33739         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33740
33741 2010-04-10  Bruno Haible  <bruno@clisp.org>
33742
33743         Don't override improved macro from newer autoconf.
33744         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33745         autoconf >= 2.62.
33746         Reported by Joel E. Denny <jdenny@clemson.edu>.
33747
33748 2010-04-10  Jim Meyering  <meyering@redhat.com>
33749
33750         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33751         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33752
33753         maint.mk: correct a diagnostic
33754         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33755         in diagnostic; now use $prohibit.
33756
33757 2010-04-10  Bruno Haible  <address@hidden>
33758
33759         fchownat: Fix a C++ test error on Solaris 8.
33760         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33761         the function does not exist.
33762
33763 2010-04-10  Bruno Haible  <bruno@clisp.org>
33764
33765         vasnprintf: Add more tests.
33766         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33767         (test_function): Test converting an invalid wide string.
33768
33769         vasnprintf: Correct handling of unconvertible wide string arguments.
33770         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33771         VASNPRINTF.
33772         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33773         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33774         smaller than the expected maximum need for the directive. Set errno to
33775         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33776         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33777         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33778         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33779         * modules/vasnprintf (Files): Add m4/printf.m4.
33780         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33781
33782 2010-04-10  Bruno Haible  <bruno@clisp.org>
33783
33784         vasnprintf: Fix crash in %ls directive.
33785         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33786         string is passed as argument to %ls, with no precision and no width.
33787         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33788
33789 2010-04-10  Bruno Haible  <bruno@clisp.org>
33790
33791         vasnprintf: Fix multiple test failures on mingw.
33792         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33793         _snprintf, or snwprintf, not _snwprintf.
33794
33795 2010-04-10  Bruno Haible  <bruno@clisp.org>
33796
33797         write: Fix a C++ test error on mingw.
33798         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33799
33800 2010-04-10  Bruno Haible  <bruno@clisp.org>
33801
33802         vasnprintf test: Reduce code duplication.
33803         * tests/test-vasnprintf.c (test_function): New function, extracted from
33804         test_vasnprintf.
33805         (test_vasnprintf, test_asnprintf): Invoke it.
33806
33807 2010-04-10  Bruno Haible  <bruno@clisp.org>
33808
33809         strnlen: Fix warning in C++ mode on MacOS X.
33810         * lib/string.in.h (strnlen): Use the modern idiom.
33811         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33812         defining strnlen as a macro already in <config.h>.
33813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33814         REPLACE_STRNLEN.
33815         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33816         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33817
33818 2010-04-08  James Youngman  <jay@gnu.org>
33819
33820         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33821         the example.
33822
33823 2010-04-09  Jim Meyering  <meyering@redhat.com>
33824
33825         maint.mk: print better diagnostic when there is no $(_hv_file)
33826         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33827         announce that when $(_hv_file) (aka help-version) does not exist.
33828
33829         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33830         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33831         not try to interpret its random input bytes.  Jarno Rajahalme reported
33832         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33833         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33834         (mktempd_): Likewise, just in case.
33835
33836         ftruncate: add two years to projected module removal date: 2012
33837         * m4/ftruncate.m4: Adjust comments.
33838
33839         ftruncate: mark module as obsolete; even MinGW provides it, now
33840         * modules/ftruncate (Status): Obsolete.
33841         (Notice): Say that.
33842         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33843         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33844
33845 2010-04-08  Bruno Haible  <bruno@clisp.org>
33846
33847         Fix side effects from tests-related modules.
33848         * modules/dprintf-posix (Comment): New section.
33849         * modules/fprintf-posix (Comment): Likewise.
33850         * modules/obstack-printf-posix (Comment): Likewise.
33851         * modules/printf-posix (Comment): Likewise.
33852         * modules/snprintf-posix (Comment): Likewise.
33853         * modules/sprintf-posix (Comment): Likewise.
33854         * modules/vasnprintf-posix (Comment): Likewise.
33855         * modules/vasprintf-posix (Comment): Likewise.
33856         * modules/vdprintf-posix (Comment): Likewise.
33857         * modules/vfprintf-posix (Comment): Likewise.
33858         * modules/vprintf-posix (Comment): Likewise.
33859         * modules/vsnprintf-posix (Comment): Likewise.
33860         * modules/vsprintf-posix (Comment): Likewise.
33861         * modules/xprintf-posix (Comment): Likewise.
33862         * modules/xvasprintf-posix (Comment): Likewise.
33863         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33864         * modules/floorf-tests (Depends-on): Likewise.
33865         * modules/round-tests (Depends-on): Likewise.
33866         * modules/roundf-tests (Depends-on): Likewise.
33867         * modules/trunc-tests (Depends-on): Likewise.
33868         * modules/truncf-tests (Depends-on): Likewise.
33869         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33870         'fprintf-posix' module is not present.
33871         * tests/test-floorf2.c (check): Likewise.
33872         * tests/test-trunc2.c (check): Likewise.
33873         * tests/test-truncf2.c (check): Likewise.
33874         * tests/test-round2.c (equal): Likewise.
33875         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33876
33877 2010-04-07  Karl Berry  <karl@gnu.org>
33878
33879         * config/srclist.txt,
33880         * config/srclistvars.sh,
33881         * config/srclist-update: doc fixes.
33882
33883 2010-04-07  Jim Meyering  <meyering@redhat.com>
33884
33885         maint.mk: add a PATH crosschecking syntax-check rule
33886         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33887         Useful if you use a test like the one in help-version (coreutils,
33888         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33889         printed by prog --version.
33890
33891 2010-04-06  Bruno Haible  <bruno@clisp.org>
33892
33893         Fix link error on mingw.
33894         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33895         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33896
33897 2010-04-06  Bruno Haible  <bruno@clisp.org>
33898
33899         Assume rmdir exists.
33900         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33901
33902 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33903
33904         doc: update users.txt
33905         * users.txt: Add gcal.
33906
33907 2010-04-06  Jim Meyering  <meyering@redhat.com>
33908
33909         init.sh: simply unset TMPDIR rather than risking env -i
33910         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33911         although it probably works fine on all Unix-based systems, some
33912         systems (Cygwin?) cannot tolerate a totally cleared environment.
33913         Suggestion from Eric Blake.
33914
33915 2010-04-06  Jim Meyering  <meyering@redhat.com>
33916
33917         init.sh: portability fix: use env's POSIX-specified -i option not -u
33918         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33919         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33920
33921 2010-04-05  Bruno Haible  <bruno@clisp.org>
33922
33923         btowc: Work around Cygwin 1.7.2 bug.
33924         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33925         does not map NUL to 0.
33926         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33927
33928 2010-04-05  Bruno Haible  <bruno@clisp.org>
33929
33930         Make the multithread modules work on Cygwin 1.7.2.
33931         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33932         imported symbols can be declared weak, so that it returns "no" on
33933         Cygwin 1.7.2.
33934
33935 2010-04-05  Bruno Haible  <bruno@clisp.org>
33936
33937         Use the module 'strncat'.
33938         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33939
33940         Tests for module 'strncat'.
33941         * modules/strncat-tests: New file.
33942         * tests/test-strncat.c: New file.
33943
33944         New module 'strncat'.
33945         * lib/string.in.h (strncat): New declaration.
33946         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33947         * m4/strncat.m4: New file, based on m4/memchr.m4.
33948         * modules/strncat: New file.
33949         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33950         is declared.
33951         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33952         REPLACE_STRNCAT.
33953         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33954         REPLACE_STRNCAT.
33955         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33956         module.
33957         * tests/test-string-c++.cc: Check signature of strncat.
33958
33959 2010-04-05  Jim Meyering  <meyering@redhat.com>
33960
33961         xstrtoumax-tests: convert to use init.sh
33962         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33963         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33964         Use Exit, not exit.
33965         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33966
33967         xstrtoimax-tests: convert to use init.sh
33968         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33969         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33970         Use Exit, not exit.
33971         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33972
33973 2010-04-05  Bruno Haible  <bruno@clisp.org>
33974
33975         sys_socket: Avoid #define replacements in C++ mode.
33976         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33977         warning to the function if possible, rather than #defining the symbol
33978         to a dysfunctional alias.
33979
33980 2010-04-05  Bruno Haible  <bruno@clisp.org>
33981
33982         fseeko: Fix C++ test error on mingw.
33983         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33984         gl_FUNC_FSEEKO.
33985         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33986         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33987         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33988         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33989
33990 2010-04-05  Bruno Haible  <bruno@clisp.org>
33991
33992         duplocale: Improve test output.
33993         * tests/test-duplocale.c (main): Print reason for skipped test.
33994
33995 2010-04-05  Bruno Haible  <bruno@clisp.org>
33996
33997         Assume rmdir exists.
33998         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33999         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34000
34001 2010-04-05  Bruno Haible  <bruno@clisp.org>
34002
34003         Fix link error on Solaris 8 with cc.
34004         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34005
34006 2010-04-05  Bruno Haible  <bruno@clisp.org>
34007
34008         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34009         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34010
34011 2010-04-05  Bruno Haible  <bruno@clisp.org>
34012
34013         vasprintf: Update documentation.
34014         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34015
34016 2010-04-05  Bruno Haible  <bruno@clisp.org>
34017
34018         ptsname: Improve test.
34019         * tests/test-ptsname.c (main): Also try the various master names of BSD
34020         systems.
34021
34022 2010-04-05  Bruno Haible  <bruno@clisp.org>
34023
34024         memchr: Avoid a possible C++ test error.
34025         * lib/string.in.h (memchr): Provide declaration if function is missing.
34026         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34027         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34029         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34030
34031 2010-04-05  Bruno Haible  <bruno@clisp.org>
34032
34033         strtok_r: Improve idiom.
34034         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34035         AC_LIBOBJ is used.
34036
34037 2010-04-05  Bruno Haible  <bruno@clisp.org>
34038
34039         strdup: Improve idiom.
34040         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34041         AC_LIBOBJ is used.
34042         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34043         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34044         when AC_LIBOBJ is used.
34045
34046 2010-04-05  Bruno Haible  <bruno@clisp.org>
34047
34048         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34049         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34050         don't set REPLACE_MBSINIT to 1.
34051         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34052         don't set REPLACE_MBRTOWC to 1.
34053         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34054         exist, don't set REPLACE_MBSRTOWCS to 1.
34055         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34056         exist, don't set REPLACE_MBSNRTOWCS to 1.
34057         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34058         don't set REPLACE_WCRTOMB to 1.
34059         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34060         exist, don't set REPLACE_WCSRTOMBS to 1.
34061         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34062         exist, don't set REPLACE_WCSNRTOMBS to 1.
34063
34064 2010-04-05  Bruno Haible  <bruno@clisp.org>
34065
34066         ldexpl: Improve idiom.
34067         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34068         make sure to set HAVE_DECL_LDEXPL to 0.
34069
34070 2010-04-05  Jim Meyering  <meyering@redhat.com>
34071
34072         xstrtol-tests: convert to use init.sh
34073         * modules/xstrtol-tests (Files): Add tests/init.sh.
34074         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34075         Use Exit, not exit.
34076         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34077
34078         atexit-tests: convert to use init.sh
34079         * modules/atexit-tests (Files): Add tests/init.sh.
34080         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34081         Use Exit, not exit.
34082         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34083
34084         init.sh: fix typo
34085         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34086
34087         init.sh: make it easier for a test script to write to the tty, ...
34088         when using automake's parallel-tests mode.
34089         * tests/init.sh (stderr_fileno_): Define overridable variable.
34090         (warn_): New function, to use it.
34091         (fail_, skip_, framework_failure_): Use warn_.
34092
34093 2010-04-04  Bruno Haible  <bruno@clisp.org>
34094
34095         btowc: Avoid warning.
34096         * lib/btowc.c: Include <stdlib.h>.
34097         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34098
34099 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34100             Bruno Haible  <bruno@clisp.org>
34101
34102         wchar: Port to NetBSD 1.5.
34103         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34104         * lib/wctype.in.h (WEOF): Likewise.
34105
34106 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34107             Bruno Haible  <bruno@clisp.org>
34108
34109         Port extended stdio to NetBSD 1.5.
34110         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34111         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34112         older.
34113
34114 2010-04-04  Bruno Haible  <bruno@clisp.org>
34115
34116         string: Remove unused substitution.
34117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34118         HAVE_DECL_STRERROR.
34119         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34120
34121 2010-04-04  Bruno Haible  <bruno@clisp.org>
34122
34123         strtod: Avoid a possible C++ test error.
34124         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34125         set REPLACE_STRTOD.
34126
34127 2010-04-04  Bruno Haible  <bruno@clisp.org>
34128
34129         strerror: Update documentation.
34130         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34131
34132 2010-04-04  Bruno Haible  <bruno@clisp.org>
34133
34134         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34135         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34136         _GL_CXXALIAS_SYS_CAST.
34137
34138 2010-04-04  Bruno Haible  <bruno@clisp.org>
34139
34140         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34141         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34142         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34143         REPLACE_FREXPL to 1.
34144         * doc/posix-functions/frexpl.texi: Update documentation.
34145
34146 2010-04-04  Bruno Haible  <bruno@clisp.org>
34147
34148         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34149         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34150
34151 2010-04-04  Bruno Haible  <bruno@clisp.org>
34152
34153         Implement nanosleep for native Windows.
34154         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34155
34156 2010-04-04  Bruno Haible  <bruno@clisp.org>
34157
34158         math: Fix some C++ test errors on Solaris 8.
34159         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34160
34161 2010-04-04  Bruno Haible  <bruno@clisp.org>
34162
34163         math: Fix some C++ test errors on Cygwin.
34164         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34165         truncl): Provide declaration if the system does not have it.
34166         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34167         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34168         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34169         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34170         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34171         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34172         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34173         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34174         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34175         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34176         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34177         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34178         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34179         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34180         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34181         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34183         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34184         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34185         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34186         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34187         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34188
34189 2010-04-04  Bruno Haible  <bruno@clisp.org>
34190
34191         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34192         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34193         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34194         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34195         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34196         * m4/isinf.m4 (gl_ISINF): Likewise.
34197         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34198
34199 2010-04-04  Bruno Haible  <bruno@clisp.org>
34200
34201         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34202         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34203
34204 2010-04-04  Bruno Haible  <bruno@clisp.org>
34205
34206         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34207         * modules/tmpfile (configure.ac): Update.
34208
34209         tmpfile: Fix C++ test error on mingw.
34210         * lib/stdio.in.h (tmpfile): New declaration.
34211         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34212         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34213         * modules/tmpfile (Depends-on): Add stdio.
34214         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34215         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34216         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34217         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34218         REPLACE_TMPFILE.
34219         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34220
34221 2010-04-04  Bruno Haible  <bruno@clisp.org>
34222
34223         ioctl: Fix C++ test error on mingw.
34224         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34225         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34226         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34227
34228 2010-04-03  Bruno Haible  <bruno@clisp.org>
34229
34230         wcwidth: Fix C++ test error on mingw.
34231         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34233         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34234
34235 2010-04-03  Bruno Haible  <bruno@clisp.org>
34236
34237         nanosleep: Fix C++ test error on mingw.
34238         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34239         * lib/time.in.h (nanosleep): Use modern idiom.
34240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34241         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34242         REPLACE_NANOSLEEP to 1.
34243         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34244         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34245
34246 2010-04-03  Bruno Haible  <bruno@clisp.org>
34247
34248         strptime: Fix C++ test error on mingw.
34249         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34250         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34251         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34252         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34253         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34254         not REPLACE_STRPTIME.
34255         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34256         REPLACE_STRPTIME.
34257
34258 2010-04-03  Bruno Haible  <bruno@clisp.org>
34259
34260         timegm: Fix C++ test error on mingw.
34261         * lib/time.in.h (timegm): Use modern idiom.
34262         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34263         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34264         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34265         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34266
34267 2010-04-03  Bruno Haible  <bruno@clisp.org>
34268
34269         timegm: Assume declaration if function exists.
34270         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34271         if it exists. Don't clobber ac_cv_func_timegm.
34272
34273 2010-04-03  Bruno Haible  <bruno@clisp.org>
34274
34275         time_r: Fix C++ test error on mingw.
34276         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34277         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34278         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34279         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34280         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34281
34282 2010-04-03  Bruno Haible  <bruno@clisp.org>
34283
34284         time_r: Minor updates.
34285         * modules/time_r (Description): Mention the provided functions.
34286         * lib/time_r.c: Don't include <string.h>.
34287         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34288         * doc/posix-functions/localtime_r.texi: Likewise.
34289
34290 2010-04-03  Bruno Haible  <bruno@clisp.org>
34291
34292         time: Fix regression introduced on 2010-03-08.
34293         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34294         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34295
34296 2010-04-03  Jim Meyering  <meyering@redhat.com>
34297
34298         maint.mk: don't silently disable project-specific syntax-check rules
34299         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34300         that they need to convert their project-specific syntax-check rules
34301         to use the new _sc_search_regexp.
34302
34303 2010-04-03  Bruno Haible  <bruno@clisp.org>
34304
34305         fchdir: Fix regression introduced on 2010-03-08.
34306         * lib/unistd.in.h (fchdir): Fix declaration.
34307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34309         REPLACE_FCHDIR.
34310         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34311         REPLACE_FCHDIR.
34312
34313 2010-04-03  Bruno Haible  <bruno@clisp.org>
34314
34315         getpagesize: Fix C++ test error on mingw.
34316         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34317         system does not declare the function.
34318         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34319         declared.
34320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34321         HAVE_DECL_GETPAGESIZE.
34322         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34323
34324 2010-04-03  Bruno Haible  <bruno@clisp.org>
34325
34326         stdio: Make C++ tests work on mingw.
34327         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34328         does not declare the function.
34329
34330 2010-04-03  Bruno Haible  <bruno@clisp.org>
34331
34332         ftello: Fix C++ test error on mingw.
34333         * lib/stdio.in.h (ftello): Use modern idiom.
34334         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34335         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34336         is missing and that it needs to be replaced.
34337         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34339         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34340
34341 2010-04-03  Bruno Haible  <bruno@clisp.org>
34342
34343         fseeko: Fix C++ test error on mingw.
34344         * lib/stdio.in.h (fseeko): Use modern idiom.
34345         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34346         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34347         is missing and that it needs to be replaced.
34348         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34350         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34351
34352 2010-04-03  Bruno Haible  <bruno@clisp.org>
34353
34354         mkstemp: Fix C++ test error on mingw.
34355         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34356         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34357         function is missing and that it needs to be replaced.
34358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34359         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34360
34361 2010-04-03  Bruno Haible  <bruno@clisp.org>
34362
34363         stpncpy: Fix C++ test error on mingw.
34364         * lib/string.in.h (stpncpy): Use modern idiom.
34365         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34366         function is missing and that it needs to be replaced.
34367         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34368         REPLACE_STPNCPY.
34369         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34370
34371 2010-04-03  Bruno Haible  <bruno@clisp.org>
34372
34373         sys_stat: Fix C++ test error on mingw.
34374         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34375         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34376
34377 2010-04-03  Bruno Haible  <bruno@clisp.org>
34378
34379         pty: Update doc.
34380         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34381
34382 2010-04-03  Bruno Haible  <bruno@clisp.org>
34383
34384         unistd: Fix C++ test error on mingw.
34385         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34386
34387 2010-04-03  Bruno Haible  <bruno@clisp.org>
34388
34389         Update doc regarding mingw.
34390         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34391         * doc/glibc-functions/login_tty.texi: Likewise.
34392         * doc/glibc-functions/forkpty.texi: Likewise.
34393
34394 2010-04-03  Bruno Haible  <bruno@clisp.org>
34395
34396         stdlib: Avoid compilation failure of c-strtold on mingw.
34397         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34398
34399 2010-04-03  Bruno Haible  <bruno@clisp.org>
34400
34401         locale: Make C++ tests work on Cygwin and mingw.
34402         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34403         cannot provide the function.
34404         Reported by Simon Josefsson.
34405
34406 2010-04-03  Bruno Haible  <bruno@clisp.org>
34407
34408         localename: Port to MacOS X 10.6.
34409         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34410         memory layout of the locales in MacOS X 10.6 as well.
34411         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34412
34413 2010-04-02  Bruno Haible  <bruno@clisp.org>
34414
34415         gnulib-tool: Ensure that long-running tests are executed last.
34416         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34417         running tests after the one for the other tests.
34418
34419 2010-04-02  Bruno Haible  <bruno@clisp.org>
34420
34421         gnulib-tool: Ensure the tests in the main directory are executed first.
34422         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34423         start with the current directory.
34424
34425 2010-04-02  Bruno Haible  <bruno@clisp.org>
34426
34427         Tests for module 'havelib', moved here from GNU gettext.
34428         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34429         modifications.
34430         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34431         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34432         with modifications.
34433         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34434         modifications.
34435         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34436         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34437         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34438         with modifications.
34439         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34440         with modifications.
34441         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34442         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34443         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34444         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34445         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34446         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34447         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34448         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34449         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34450         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34451         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34452         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34453         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34454         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34455         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34456         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34457         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34458         with modifications.
34459         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34460         with modifications.
34461         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34462         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34463         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34464         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34465         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34466         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34467         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34468         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34469         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34470         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34471         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34472         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34473         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34474         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34475         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34476         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34477         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34478         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34479         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34480         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34481         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34482         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34483         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34484         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34485         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34486         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34487         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34488         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34489         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34490         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34491         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34492         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34493         * tests/havelib/rpathx/rpathx.c: New file, from
34494         gettext/autoconf-lib-link.
34495         * tests/havelib/rpathx/Makefile.am: New file, from
34496         gettext/autoconf-lib-link.
34497         * tests/havelib/rpathx/configure.ac: New file, from
34498         gettext/autoconf-lib-link with modifications.
34499         * tests/havelib/rpathy/rpathy.c: New file, from
34500         gettext/autoconf-lib-link.
34501         * tests/havelib/rpathy/Makefile.am: New file, from
34502         gettext/autoconf-lib-link.
34503         * tests/havelib/rpathy/configure.ac: New file, from
34504         gettext/autoconf-lib-link with modifications.
34505         * tests/havelib/rpathz/rpathz.c: New file, from
34506         gettext/autoconf-lib-link.
34507         * tests/havelib/rpathz/Makefile.am: New file, from
34508         gettext/autoconf-lib-link.
34509         * tests/havelib/rpathz/configure.ac: New file, from
34510         gettext/autoconf-lib-link with modifications.
34511         * tests/havelib/rpathlx/usex.c: New file, from
34512         gettext/autoconf-lib-link.
34513         * tests/havelib/rpathlx/Makefile.am: New file, from
34514         gettext/autoconf-lib-link.
34515         * tests/havelib/rpathlx/configure.ac: New file, from
34516         gettext/autoconf-lib-link with modifications.
34517         * tests/havelib/rpathly/usey.c: New file, from
34518         gettext/autoconf-lib-link.
34519         * tests/havelib/rpathly/Makefile.am: New file, from
34520         gettext/autoconf-lib-link.
34521         * tests/havelib/rpathly/configure.ac: New file, from
34522         gettext/autoconf-lib-link with modifications.
34523         * tests/havelib/rpathlz/usez.c: New file, from
34524         gettext/autoconf-lib-link.
34525         * tests/havelib/rpathlz/Makefile.am: New file, from
34526         gettext/autoconf-lib-link.
34527         * tests/havelib/rpathlz/configure.ac: New file, from
34528         gettext/autoconf-lib-link with modifications.
34529         * tests/havelib/rpathlyx/usey.c: New file, from
34530         gettext/autoconf-lib-link.
34531         * tests/havelib/rpathlyx/Makefile.am: New file, from
34532         gettext/autoconf-lib-link.
34533         * tests/havelib/rpathlyx/configure.ac: New file, from
34534         gettext/autoconf-lib-link with modifications.
34535         * tests/havelib/rpathlzyx/usez.c: New file, from
34536         gettext/autoconf-lib-link.
34537         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34538         gettext/autoconf-lib-link.
34539         * tests/havelib/rpathlzyx/configure.ac: New file, from
34540         gettext/autoconf-lib-link with modifications.
34541         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34542         with modifications.
34543
34544 2010-04-02  Bruno Haible  <bruno@clisp.org>
34545
34546         gnulib-tool: Create distributed built sources also for the tests.
34547         * gnulib-tool (func_create_testdir): Also generate distributed built
34548         sources in the tests directory.
34549
34550 2010-04-02  Bruno Haible  <bruno@clisp.org>
34551
34552         gnulib-tool: Obey user's environment variables.
34553         * gnulib-tool (func_create_testdir): When creating built sources,
34554         respect the environment variables for autoconf, automake, etc. given by
34555         the user.
34556
34557 2010-04-02  Bruno Haible  <bruno@clisp.org>
34558
34559         gnulib-tool: Provide the value of --m4-base to modules.
34560         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34561         of gl_m4_base.
34562
34563 2010-04-02  Eric Blake  <eblake@redhat.com>
34564
34565         maint.mk: fix some fallout
34566         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34567         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34568
34569 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34570
34571         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34572         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34573         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34574         (sc_cast_of_x_alloc_return_value): Likewise.
34575         (sc_cast_of_alloca_return_value): Likewise.
34576         (sc_space_tab): Likewise.
34577         (sc_prohibit_atoi_atof): Likewise.
34578         (sc_prohibit_magic_number_exit): Likewise.
34579         (sc_error_exit_success): Likewise.
34580         (sc_file_system): Likewise.
34581         (sc_prohibit_have_config_h): Likewise.
34582         (sc_require_config_h): Likewise.
34583         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34584         (sc_obsolete_symbols): Likewise.
34585         (sc_changelog): Likewise.
34586         (sc_program_name): Likewise.
34587         (sc_the_the): Likewise.
34588         (sc_trailing_blank): Likewise.
34589         (sc_two_space_separator_in_usage): Likewise.
34590         (sc_useless_cpp_parens): Likewise.
34591         (sc_GPL_version): Likewise.
34592         (sc_GFDL_version): Likewise.
34593         (sc_texinfo_acronym): Likewise.
34594         (sc_prohibit_cvs_keyword): Likewise.
34595         (sc_prohibit_stat_st_blocks): Likewise.
34596         (sc_prohibit_S_IS_definition): Likewise.
34597         (sc_redundant_const): Likewise.
34598         (sc_makefile_TAB_only_indentation): Likewise.
34599         (sc_m4_quote_check): Likewise.
34600         (sc_makefile_path_separator_check): Likewise.
34601         (sc_copyright_check): Likewise.
34602         (sc_Wundef_boolean): Likewise.
34603         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34604
34605         maint.mk: match 0 or more whitespace-before-function-call '('
34606         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34607         that have zero or two-and-more spaces between the function name
34608         and the open parenthesis.
34609         (sc_error_message_warn_fatal): Likewise.
34610         (sc_error_message_uppercase): Likewise.
34611         (sc_error_message_period): Likewise.
34612
34613 2010-03-31  Eric Blake  <eblake@redhat.com>
34614
34615         maint.mk: check for [ as well as test
34616         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34617         Based on a libvirt report by Matthias Bolte.
34618
34619         gnumakefile: don't squelch _version output
34620         * top/GNUmakefile (_version): Create one-shot dependency rather
34621         than using $(shell) when version must be regenerated.
34622         (_autoreconf): Run verbosely, by default.
34623
34624         sys_time: avoid compiler warnings
34625         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34626         unconditional, fixing regression from 2010-03-29.
34627         Reported by Simon Josefsson.
34628
34629 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34630
34631         maint.mk: s/_header_without_use/_sc_header_without_use/
34632         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34633         (sc_prohibit_assert_without_use): Use the new name.
34634         (sc_prohibit_close_stream_without_use): Likewise.
34635         (sc_prohibit_getopt_without_use): Likewise.
34636         (sc_prohibit_quotearg_without_use): Likewise.
34637         (sc_prohibit_quote_without_use): Likewise.
34638         (sc_prohibit_long_options_without_use): Likewise.
34639         (sc_prohibit_inttostr_without_use): Likewise.
34640         (sc_prohibit_ignore_value_without_use): Likewise.
34641         (sc_prohibit_error_without_use): Likewise.
34642         (sc_prohibit_xalloc_without_use): Likewise.
34643         (sc_prohibit_hash_without_use): Likewise.
34644         (sc_prohibit_hash_pjw_without_use): Likewise.
34645         (sc_prohibit_safe_read_without_use): Likewise.
34646         (sc_prohibit_argmatch_without_use): Likewise.
34647         (sc_prohibit_canonicalize_without_use): Likewise.
34648         (sc_prohibit_root_dev_ino_without_use): Likewise.
34649         (sc_prohibit_openat_without_use): Likewise.
34650         (sc_prohibit_c_ctype_without_use): Likewise.
34651         (sc_prohibit_signal_without_use): Likewise.
34652         (sc_prohibit_intprops_without_use): Likewise.
34653
34654 2010-03-30  Eric Blake  <eblake@redhat.com>
34655
34656         maint: improve module indicators
34657         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34658         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34659         columns, and avoid extra macro expansion.
34660
34661         fdopendir: work around FreeBSD bug
34662         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34663         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34664         * modules/dirent (Makefile.am): Substitute it.
34665         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34666         declaration.
34667         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34668         fix.
34669         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34670
34671 2010-03-29  Bruno Haible  <bruno@clisp.org>
34672
34673         Emit #pragma system_header after the inclusion guard, not before.
34674         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34675         guard that spans the entire file, not before. This enables an
34676         optimization in GCC's preprocessor.
34677         * lib/ctype.in.h: Likewise.
34678         * lib/dirent.in.h: Likewise.
34679         * lib/errno.in.h: Likewise.
34680         * lib/float.in.h: Likewise.
34681         * lib/getopt.in.h: Likewise.
34682         * lib/iconv.in.h: Likewise.
34683         * lib/langinfo.in.h: Likewise.
34684         * lib/locale.in.h: Likewise.
34685         * lib/math.in.h: Likewise.
34686         * lib/netdb.in.h: Likewise.
34687         * lib/netinet_in.in.h: Likewise.
34688         * lib/pty.in.h: Likewise.
34689         * lib/sched.in.h: Likewise.
34690         * lib/se-selinux.in.h: Likewise.
34691         * lib/search.in.h: Likewise.
34692         * lib/spawn.in.h: Likewise.
34693         * lib/stdarg.in.h: Likewise.
34694         * lib/stdint.in.h: Likewise.
34695         * lib/string.in.h: Likewise.
34696         * lib/strings.in.h: Likewise.
34697         * lib/sys_file.in.h: Likewise.
34698         * lib/sys_ioctl.in.h: Likewise.
34699         * lib/sys_time.in.h: Likewise.
34700         * lib/sys_times.in.h: Likewise.
34701         * lib/sys_utsname.in.h: Likewise.
34702         * lib/sys_wait.in.h: Likewise.
34703         * lib/sysexits.in.h: Likewise.
34704         * lib/wctype.in.h: Likewise.
34705
34706 2010-03-28  James Youngman  <jay@gnu.org>
34707
34708         save-cwd: don't leak a file descriptor when the caller execs.
34709         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34710         saved file descriptor.
34711         * modules/save-cwd (Depends-on): Depend on cloexec.
34712
34713 2010-03-29  Bruno Haible  <bruno@clisp.org>
34714
34715         Remove vestiges of fts-lgpl module.
34716         * lib/fts_.h: Assume GNULIB_FTS is 1.
34717         * lib/fts.c: Likewise.
34718         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34719
34720 2010-03-28  Bruno Haible  <bruno@clisp.org>
34721
34722         Fix definition of tests witness macro.
34723         * gnulib-tool (func_import): Fix definition of witness macro.
34724
34725 2010-03-28  Bruno Haible  <bruno@clisp.org>
34726
34727         Fix ioctl's protoype on glibc systems.
34728         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34729         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34730         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34731         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34732         signature. If not, arrange to replace the ioctl function.
34733         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34734         REPLACE_IOCTL.
34735         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34736         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34737         Reported by Ludovic Courtès <ludo@gnu.org>.
34738
34739 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34740
34741         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34742         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34743         made it so grep -r --include=GLOB* ... did not work.
34744
34745 2010-03-26  Jim Meyering  <meyering@redhat.com>
34746             Eric Blake  <eblake@redhat.com>
34747
34748         maint.mk: prohibit use of test's -o and -a operators
34749         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34750
34751 2010-03-28  Bruno Haible  <bruno@clisp.org>
34752
34753         Remove unused GNULIB_XYZ macro definitions.
34754         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34755         invocation.
34756
34757 2010-03-28  Bruno Haible  <bruno@clisp.org>
34758
34759         Mark privileged tests modules.
34760         * modules/idpriv-drop-tests (Status): New section.
34761         * modules/idpriv-droptemp-tests (Status): New section.
34762
34763 2010-03-28  Bruno Haible  <bruno@clisp.org>
34764
34765         Split C++ tests into separate tests modules.
34766         * modules/dirent-c++-tests: New file, extracted from
34767         modules/dirent-tests.
34768         * modules/dirent-tests: Depend on it.
34769         * modules/fcntl-h-c++-tests: New file, extracted from
34770         modules/fcntl-h-tests.
34771         * modules/fcntl-h-tests: Depend on it.
34772         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34773         * modules/glob-tests: Depend on it.
34774         * modules/iconv-h-c++-tests: New file, extracted from
34775         modules/iconv-h-tests.
34776         * modules/iconv-h-tests: Depend on it.
34777         * modules/langinfo-c++-tests: New file, extracted from
34778         modules/langinfo-tests.
34779         * modules/langinfo-tests: Depend on it.
34780         * modules/locale-c++-tests: New file, extracted from
34781         modules/locale-tests.
34782         * modules/locale-tests: Depend on it.
34783         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34784         * modules/math-tests: Depend on it.
34785         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34786         * modules/pty-tests: Depend on it.
34787         * modules/search-c++-tests: New file, extracted from
34788         modules/search-tests.
34789         * modules/search-tests: Depend on it.
34790         * modules/signal-c++-tests: New file, extracted from
34791         modules/signal-tests.
34792         * modules/signal-tests: Depend on it.
34793         * modules/spawn-c++-tests: New file, extracted from
34794         modules/spawn-tests.
34795         * modules/spawn-tests: Depend on it.
34796         * modules/stdio-c++-tests: New file, extracted from
34797         modules/stdio-tests.
34798         * modules/stdio-tests: Depend on it.
34799         * modules/stdlib-c++-tests: New file, extracted from
34800         modules/stdlib-tests.
34801         * modules/stdlib-tests: Depend on it.
34802         * modules/string-c++-tests: New file, extracted from
34803         modules/string-tests.
34804         * modules/string-tests: Depend on it.
34805         * modules/sys_ioctl-c++-tests: New file, extracted from
34806         modules/sys_ioctl-tests.
34807         * modules/sys_ioctl-tests: Depend on it.
34808         * modules/sys_select-c++-tests: New file, extracted from
34809         modules/sys_select-tests.
34810         * modules/sys_select-tests: Depend on it.
34811         * modules/sys_socket-c++-tests: New file, extracted from
34812         modules/sys_socket-tests.
34813         * modules/sys_socket-tests: Depend on it.
34814         * modules/sys_stat-c++-tests: New file, extracted from
34815         modules/sys_stat-tests.
34816         * modules/sys_stat-tests: Depend on it.
34817         * modules/sys_time-c++-tests: New file, extracted from
34818         modules/sys_time-tests.
34819         * modules/sys_time-tests: Depend on it.
34820         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34821         * modules/time-tests: Depend on it.
34822         * modules/unistd-c++-tests: New file, extracted from
34823         modules/unistd-tests.
34824         * modules/unistd-tests: Depend on it.
34825         * modules/wchar-c++-tests: New file, extracted from
34826         modules/wchar-tests.
34827         * modules/wchar-tests: Depend on it.
34828         * modules/wctype-c++-tests: New file, extracted from
34829         modules/wctype-tests.
34830         * modules/wctype-tests: Depend on it.
34831         Reported by Simon Josefsson.
34832
34833 2010-03-28  Bruno Haible  <bruno@clisp.org>
34834
34835         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34836         * gnulib-tool (func_exists_module): New function, extracted from
34837         func_verify_module.
34838         (func_verify_module): Use it.
34839         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34840         'foo' only if 'foo' exists.
34841         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34842         module.
34843
34844 2010-03-28  Bruno Haible  <bruno@clisp.org>
34845
34846         gnulib-tool: Add support for special categories of tests.
34847         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34848         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34849         (func_usage): Document them.
34850         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34851         inc_unportable_tests, inc_all_tests): New variables.
34852         (func_acceptable): Consider these variables.
34853         (func_modules_transitive_closure): Make it work when the 'Status' field
34854         consists of multiple words.
34855         (func_import): Store and restore the values of inc_cxx_tests,
34856         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34857         inc_all_tests in gnulib-comp.m4.
34858         (func_create_testdir): Set inc_all_tests to true.
34859         * doc/gnulib.texi (Extra tests modules): New section.
34860         Suggested by Jim Meyering.
34861
34862 2010-03-28  Bruno Haible  <bruno@clisp.org>
34863
34864         ansi-c++-opt: Allow turning off the C++ build by default.
34865         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34866         gl_CXX_CHOICE_DEFAULT_NO is defined.
34867         Requested by Eric Blake.
34868
34869 2010-03-28  Bruno Haible  <bruno@clisp.org>
34870
34871         unistd: Avoid #define replacements in C++ mode.
34872         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34873         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34874         setsockopt, shutdown, select): In C++, attach a warning to the function
34875         if possible, rather than #defining the symbol to a dysfunctional alias.
34876         Reported by John W. Eaton <jwe@gnu.org>.
34877
34878 2010-03-28  Bruno Haible  <bruno@clisp.org>
34879
34880         Fix link errors on mingw.
34881         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34882         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34883         $(LIBSOCKET).
34884         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34885         $(LIBSOCKET).
34886
34887 2010-03-28  Bruno Haible  <bruno@clisp.org>
34888             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34889
34890         lib-ignore: Determine different options for different compilers.
34891         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34892         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34893         Add comments.
34894         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34895         * NEWS: Mention the change.
34896
34897 2010-03-27  Bruno Haible  <bruno@clisp.org>
34898
34899         Remove unused GNULIB_XYZ macro definitions.
34900         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34901         * modules/fseek (configure.ac): Likewise.
34902         * modules/ioctl (configure.ac): Likewise.
34903         * modules/open (configure.ac): Likewise.
34904         * modules/stdlib-safer (configure.ac): Likewise.
34905
34906 2010-03-27  Bruno Haible  <bruno@clisp.org>
34907
34908         Add a remark about certain modules.
34909         * modules/malloc (Comment): New section.
34910         * modules/realloc (Comment): Likewise.
34911         * modules/sigpipe (Comment): Likewise.
34912
34913 2010-03-27  Bruno Haible  <bruno@clisp.org>
34914
34915         Resolve conflict between the two kinds of module indicators.
34916         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34917         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34918         * modules/canonicalize (configure.ac): Invoke
34919         gl_MODULE_INDICATOR_FOR_TESTS.
34920         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34921         GNULIB_XYZ.
34922         * tests/test-dirent-c++.cc: Likewise.
34923         * tests/test-dirent-safer.c: Likewise.
34924         * tests/test-dup2.c: Likewise.
34925         * tests/test-fchdir.c: Likewise.
34926         * tests/test-fcntl-h-c++.cc: Likewise.
34927         * tests/test-getopt.c: Likewise.
34928         * tests/test-getopt.h: Likewise.
34929         * tests/test-langinfo-c++.cc: Likewise.
34930         * tests/test-locale-c++.cc: Likewise.
34931         * tests/test-math-c++.cc: Likewise.
34932         * tests/test-pty-c++.cc: Likewise.
34933         * tests/test-search-c++.cc: Likewise.
34934         * tests/test-signal-c++.cc: Likewise.
34935         * tests/test-spawn-c++.cc: Likewise.
34936         * tests/test-stdio-c++.cc: Likewise.
34937         * tests/test-stdlib-c++.cc: Likewise.
34938         * tests/test-string-c++.cc: Likewise.
34939         * tests/test-sys_ioctl-c++.cc: Likewise.
34940         * tests/test-sys_select-c++.cc: Likewise.
34941         * tests/test-sys_socket-c++.cc: Likewise.
34942         * tests/test-sys_stat-c++.cc: Likewise.
34943         * tests/test-sys_time-c++.cc: Likewise.
34944         * tests/test-time-c++.cc: Likewise.
34945         * tests/test-unistd-c++.cc: Likewise.
34946         * tests/test-wchar-c++.cc: Likewise.
34947         * tests/uninorm/test-u8-nfc.c: Likewise.
34948         * tests/uninorm/test-u8-nfd.c: Likewise.
34949         * tests/uninorm/test-u8-nfkc.c: Likewise.
34950         * tests/uninorm/test-u8-nfkd.c: Likewise.
34951         * tests/uninorm/test-u16-nfc.c: Likewise.
34952         * tests/uninorm/test-u16-nfd.c: Likewise.
34953         * tests/uninorm/test-u16-nfkc.c: Likewise.
34954         * tests/uninorm/test-u16-nfkd.c: Likewise.
34955         * tests/uninorm/test-u32-nfc.c: Likewise.
34956         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34957         * tests/uninorm/test-u32-nfd.c: Likewise.
34958         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34959         * tests/uninorm/test-u32-nfkc.c: Likewise.
34960         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34961         * tests/uninorm/test-u32-nfkd.c: Likewise.
34962         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34963         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34964
34965 2010-03-27  Bruno Haible  <bruno@clisp.org>
34966
34967         Distinguish two kinds of module indicators.
34968         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34969         gl_MODULE_INDICATOR.
34970         (gl_MODULE_INDICATOR): New macro.
34971         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34972         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34973         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34974         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34975         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34976         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34977         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34978         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34979         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34980         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34981         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34982         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34983         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34984         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34985         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34986         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34987         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34988         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34989         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34990         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34991         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34992         * modules/cloexec (configure.ac): Likewise.
34993         * modules/getopt-gnu (configure.ac): Likewise.
34994         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34995         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34996         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34997         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34998
34999 2010-03-27  Bruno Haible  <bruno@clisp.org>
35000
35001         New module description field 'Comment'.
35002         * gnulib-tool: New option --extract-comment.
35003         (func_usage): Document it.
35004         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35005         (func_get_comment): New function.
35006         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35007
35008 2010-03-27  Bruno Haible  <bruno@clisp.org>
35009
35010         Addendum to 2010-02-07 commit.
35011         * gnulib-tool (func_usage): Document --extract-applicability option.
35012
35013 2010-03-27  Bruno Haible  <bruno@clisp.org>
35014
35015         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35016         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35017         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35018         rather than link errors.
35019
35020 2010-03-27  Bruno Haible  <bruno@clisp.org>
35021
35022         Avoid side effects from tests-related modules on the compilation of lib.
35023         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35024         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35025         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35026         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35027         macro.
35028         (func_import): Define a witness macro. Assign it a value that depends
35029         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35030         tests-related modules.
35031         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35032         Reported by Jim Meyering.
35033
35034 2010-03-27  Bruno Haible  <bruno@clisp.org>
35035
35036         Factorize common .m4 code.
35037         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35038         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35039         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35040         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35041         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35042         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35043         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35044         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35045         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35046         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35047         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35048         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35049         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35050         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35051         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35052         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35053         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35054         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35056         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35057         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35058         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35059         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35060         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35061         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35062         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35063         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35064         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35065         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35066         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35067         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35068         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35069
35070 2010-03-27  Bruno Haible  <bruno@clisp.org>
35071
35072         Fix a compilation error on Cygwin with g++ >= 4.3.
35073         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35074         if it is undefined or if we alias it to chmod.
35075         (lstat): Don't warn about the use of this function if it is undefined
35076         or if we alias it to stat.
35077         Reported by Simon Josefsson.
35078
35079 2010-03-27  Bruno Haible  <bruno@clisp.org>
35080
35081         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35082         * modules/getlogin (configure.ac): Update.
35083
35084         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35085         * modules/getlogin_r (configure.ac): Update.
35086
35087         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35089         * modules/inet_ntop (configure.ac): Update.
35090
35091         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35092         * modules/inet_pton (configure.ac): Update.
35093
35094         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35095         * modules/mbslen (configure.ac): Update.
35096
35097         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35098         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35099         * modules/forkpty (configure.ac): Update.
35100         * modules/openpty (configure.ac): Update.
35101
35102 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35103
35104         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35105         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35106
35107 2010-03-25  Eric Blake  <eblake@redhat.com>
35108
35109         maint: use pragma consistently across replacement headers
35110         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35111         * lib/dirent.in.h (system_header): Likewise.
35112         * lib/errno.in.h (system_header): Likewise.
35113         * lib/float.in.h (system_header): Likewise.
35114         * lib/getopt.in.h (system_header): Likewise.
35115         * lib/iconv.in.h (system_header): Likewise.
35116         * lib/inttypes.in.h (system_header): Likewise.
35117         * lib/langinfo.in.h (system_header): Likewise.
35118         * lib/locale.in.h (system_header): Likewise.
35119         * lib/math.in.h (system_header): Likewise.
35120         * lib/netdb.in.h (system_header): Likewise.
35121         * lib/netinet_in.in.h (system_header): Likewise.
35122         * lib/pty.in.h (system_header): Likewise.
35123         * lib/sched.in.h (system_header): Likewise.
35124         * lib/se-selinux.in.h (system_header): Likewise.
35125         * lib/search.in.h (system_header): Likewise.
35126         * lib/spawn.in.h (system_header): Likewise.
35127         * lib/stdarg.in.h (system_header): Likewise.
35128         * lib/stdint.in.h (system_header): Likewise.
35129         * lib/string.in.h (system_header): Likewise.
35130         * lib/strings.in.h (system_header): Likewise.
35131         * lib/sys_file.in.h (system_header): Likewise.
35132         * lib/sys_ioctl.in.h (system_header): Likewise.
35133         * lib/sys_socket.in.h (system_header): Likewise.
35134         * lib/sys_times.in.h (system_header): Likewise.
35135         * lib/sys_utsname.in.h (system_header): Likewise.
35136         * lib/sys_wait.in.h (system_header): Likewise.
35137         * lib/sysexits.in.h (system_header): Likewise.
35138         * lib/unistd.in.h (system_header): Likewise.
35139         * lib/wctype.in.h (system_header): Likewise.
35140
35141         arpa/inet: fix mingw compilation warning
35142         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35143         Reported by Matthew Bolte.
35144
35145 2010-03-25  Bruno Haible  <bruno@clisp.org>
35146
35147         Avoid collision between gnulib wrapper and libintl wrapper.
35148         * lib/printf.c (printf): Don't define if a printf wrapper is already
35149         defined in intl/printf.c.
35150         Reported by Michel Boaventura <michel@michelboaventura.com>.
35151
35152 2010-03-25  Bruno Haible  <bruno@clisp.org>
35153
35154         Use ANSI C.
35155         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35156
35157 2010-03-25  Bruno Haible  <bruno@clisp.org>
35158
35159         Minor formatting changes.
35160         * lib/acosl.c: Insert space before function argument list.
35161         * lib/argz.c: Likewise.
35162         * lib/asinl.c: Likewise.
35163         * lib/expl.c: Likewise.
35164         * lib/gen-uni-tables.c: Likewise.
35165         * lib/gettext.h: Likewise.
35166         * lib/glthread/lock.h: Likewise.
35167         * lib/tanl.c: Likewise.
35168         * lib/uniname/uniname.c: Likewise.
35169         * tests/test-idpriv-drop.c: Likewise.
35170         * tests/test-idpriv-droptemp.c: Likewise.
35171         * tests/test-lock.c: Likewise.
35172         * tests/test-tls.c: Likewise.
35173         * lib/argp-help.c: Insert space before function-like macro argument
35174         list.
35175         * lib/memcmp.c: Likewise.
35176         * tests/test-base64.c: Likewise.
35177         * lib/localename.c: Insert space before sizeof's argument list.
35178         * lib/safe-alloc.h: Likewise.
35179         * lib/file-set.h: Insert space before macro argument list.
35180         * tests/test-argp.c: Likewise.
35181         * lib/argp-namefrob.h: Insert space before function parameter list.
35182         * lib/getaddrinfo.c: Likewise.
35183         * lib/netdb.in.h: Likewise.
35184         * lib/parse-duration.h: Likewise.
35185         * lib/parse-duration.c: Likewise.
35186         * lib/poll.c: Likewise.
35187         * lib/select.c: Likewise.
35188         * lib/trim.h: Likewise.
35189         * tests/test-usleep.c: Likewise.
35190         * lib/ldexpl.c: Insert space before function parameter list and before
35191         function argument list.
35192         * lib/logl.c: Likewise.
35193         * lib/sqrtl.c: Likewise.
35194         * lib/trim.c: Likewise.
35195         * lib/cosl.c: Use GNU style indentation. Insert space before function
35196         argument list.
35197         * lib/sinl.c: Likewise.
35198         * lib/tsearch.c: Insert space after 'for'.
35199         Reported by Jim Meyering.
35200
35201 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35202
35203         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35204         config header before grepping, as it's not present before
35205         autoreconf/configure are run.  Reported by Simon Josefsson.
35206
35207 2010-03-23  Bruno Haible  <bruno@clisp.org>
35208
35209         pt_chown: Make it work with automake < 1.11.
35210         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35211         Reported by Simon Josefsson.
35212
35213 2010-03-23  Bruno Haible  <bruno@clisp.org>
35214
35215         pt_chown: Don't depend on GPLed modules.
35216         * lib/pt_chown.c: Don't include idpriv.h.
35217         (main): Don't drop privileges.
35218         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35219         Reported by Simon Josefsson.
35220
35221 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35222
35223         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35224         suggestions from karl@freefriends.org (Karl Berry).
35225
35226 2010-03-22  Eric Blake  <eblake@redhat.com>
35227
35228         gethostname: further tweaks
35229         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35230         are overriding gethostname.
35231         Suggested by Bruno Haible.
35232
35233 2010-03-21  Bruno Haible  <bruno@clisp.org>
35234
35235         Fix comments.
35236         * lib/forkpty.c (rpl_forkpty): Fix comment.
35237         * lib/openpty.c (rpl_openpty): Likewise.
35238         Reported by Eric Blake.
35239
35240 2010-03-22  Eric Blake  <eblake@redhat.com>
35241
35242         gethostname: fix build on mingw
35243         * lib/unistd.in.h (includes): Work around fact that mingw
35244         <winsock2.h> re-includes <unistd.h>, by avoiding any
35245         redeclarations if we are being included by <winsock2.h>.
35246         Reported by Matthias Bolte.
35247
35248 2010-03-21  Bruno Haible  <bruno@clisp.org>
35249
35250         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35251         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35252         modifications.
35253         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35254         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35255         provide the replacement.
35256         * modules/forkpty (Depends-on): Add openpty, login_tty.
35257         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35258         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35259         * doc/glibc-functions/forkpty.texi: More supported platforms.
35260         * config/srclist.txt: Add forkpty.c (commented).
35261
35262 2010-03-21  Bruno Haible  <bruno@clisp.org>
35263
35264         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35265         (Makefile.am): Verify that PTY_LIB is defined.
35266
35267         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35268
35269 2010-03-21  Bruno Haible  <bruno@clisp.org>
35270
35271         Tests for module 'login_tty'.
35272         * modules/login_tty-tests: New file.
35273         * tests/test-login_tty.c: New file.
35274
35275         New module 'login_tty'.
35276         * lib/login_tty.c: New file.
35277         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35278         * modules/login_tty: New file.
35279         * doc/glibc-functions/login_tty.texi: Mention the new module.
35280
35281 2010-03-21  Bruno Haible  <bruno@clisp.org>
35282
35283         login_tty: Documentation.
35284         * doc/glibc-functions/login_tty.texi: New file.
35285         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35286
35287 2010-03-21  Bruno Haible  <bruno@clisp.org>
35288
35289         pty: Consistent macro naming.
35290         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35291         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35292         * modules/pty (configure.ac): Update.
35293
35294 2010-03-21  Bruno Haible  <bruno@clisp.org>
35295
35296         Tests for openpty: Make stricter.
35297         * tests/test-openpty.c (main): Add test of canonical processing and
35298         erase.
35299         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35300
35301         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35302         * lib/openpty.c (openpty): New replacement function.
35303         * lib/pty.in.h: Include <termios.h>.
35304         (openpty): Update declaration. Add comments.
35305         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35306         is not declared, arrange to provide the replacement. Check for _getpty
35307         and posix_openpt.
35308         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35309         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35310         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35311         * modules/pty-tests (test_pty_c___LDADD): New variable.
35312         * doc/glibc-functions/openpty.texi: More supported platforms.
35313
35314 2010-03-21  Bruno Haible  <bruno@clisp.org>
35315
35316         setenv: Tweaks.
35317         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35318         the test program.
35319         * doc/posix-functions/setenv.texi: Update platforms list.
35320
35321 2010-03-21  Bruno Haible  <bruno@clisp.org>
35322
35323         New module 'unlockpt'.
35324         * lib/unlockpt.c: New file, from glibc with modifications.
35325         * m4/unlockpt.m4: New file.
35326         * modules/unlockpt: New file.
35327         * lib/stdlib.in.h (unlockpt): New declaration.
35328         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35329         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35330         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35331         HAVE_UNLOCKPT.
35332         * doc/posix-functions/unlockpt.texi: Mention the new module.
35333         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35334         * config/srclist.txt: Add unlockpt.c (commented).
35335
35336 2010-03-21  Jim Meyering  <meyering@redhat.com>
35337
35338         maint.mk: prohibit inclusion of "intprops.h" without use
35339         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35340
35341 2010-03-21  Bruno Haible  <bruno@clisp.org>
35342
35343         New module 'grantpt'.
35344         * lib/grantpt.c: New file, from glibc with modifications.
35345         * m4/grantpt.m4: New file.
35346         * modules/grantpt: New file.
35347         * lib/stdlib.in.h (grantpt): New declaration.
35348         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35349         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35350         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35351         HAVE_GRANTPT.
35352         * doc/posix-functions/grantpt.texi: Mention the new module.
35353         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35354         * config/srclist.txt: Add grantpt.c (commented).
35355
35356 2010-03-21  Bruno Haible  <bruno@clisp.org>
35357
35358         New module 'pt_chown'.
35359         * lib/pt_chown.c: New file, from glibc with modifications.
35360         * lib/pty-private.h: New file, from glibc with modifications.
35361         * modules/pt_chown: New file.
35362         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35363
35364 2010-03-21  Bruno Haible  <bruno@clisp.org>
35365
35366         Tests for module 'ptsname'.
35367         * modules/ptsname-tests: New file.
35368         * tests/test-ptsname.c: New file.
35369
35370         New module 'ptsname'.
35371         * lib/ptsname.c: New file, from glibc with modifications.
35372         * m4/ptsname.m4: New file.
35373         * modules/ptsname: New file.
35374         * lib/stdlib.in.h (ptsname): New declaration.
35375         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35376         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35377         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35378         HAVE_PTSNAME.
35379         * doc/posix-functions/ptsname.texi: Mention the new module.
35380         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35381         * config/srclist.txt: Add ptsname.c (commented).
35382
35383 2010-03-21  Bruno Haible  <bruno@clisp.org>
35384
35385         Tests for module 'ttyname_r'.
35386         * modules/ttyname_r-tests: New file.
35387         * tests/test-ttyname_r.c: New file.
35388
35389         New module 'ttyname_r'.
35390         * lib/ttyname_r.c: New file.
35391         * m4/ttyname_r.m4: New file.
35392         * modules/ttyname_r: New file.
35393         * lib/unistd.in.h (ttyname_r): New declaration.
35394         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35395         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35396         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35397         HAVE_TTYNAME_R.
35398         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35399         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35400
35401 2010-03-20  Bruno Haible  <bruno@clisp.org>
35402
35403         signal: Undefine macro definitions in C++ mode.
35404         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35405         sigfillset): Undefine macro definitions from the system header in C++
35406         mode.
35407         Reported by John W. Eaton <jwe@gnu.org>.
35408
35409 2010-03-20  Bruno Haible  <bruno@clisp.org>
35410
35411         Ensure no #include statements inside extern "C" { ... }.
35412         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35413         contain #include statements.
35414         * lib/time.in.h: Likewise.
35415
35416 2010-03-20  Bruno Haible  <bruno@clisp.org>
35417
35418         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35419         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35420         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35421         Reported by John W. Eaton <jwe@gnu.org>.
35422
35423 2010-03-20  Bruno Haible  <bruno@clisp.org>
35424
35425         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35426         Reported by Jim Meyering.
35427
35428 2010-03-20  Bruno Haible  <bruno@clisp.org>
35429
35430         pipe: Set errno upon failure.
35431         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35432         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35433         errno value in error message.
35434
35435 2010-03-20  Bruno Haible  <bruno@clisp.org>
35436             Jim Meyering  <meyering@redhat.com>
35437
35438         lchown: Avoid "unused variable" warning.
35439         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35440
35441 2010-03-20  Bruno Haible  <bruno@clisp.org>
35442
35443         Work around unlink() bug on MacOS X 10.5.6.
35444         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35445         attempting to unlink a parent directory.
35446         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35447         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35448         activate for the replacement function.
35449         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35450
35451 2010-03-20  Bruno Haible  <bruno@clisp.org>
35452
35453         Fix link errors on Solaris 8.
35454         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35455         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35456
35457 2010-03-19  Jim Meyering  <meyering@redhat.com>
35458
35459         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35460         The _LIBC implementation of build_range_exp correctly honors the
35461         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35462         However, the non-_LIBC implementation would ignore that syntax-bit
35463         flag and return REG_ERANGE unconditionally.
35464         This change makes it honor that flag.
35465         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35466         Make two pointer parameters "const".
35467         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35468         (parse_bracket_exp): Update caller.
35469
35470         regex.m4: correct the reversed range endpoint ([b-a]) test
35471         * m4/regex.m4: When requiring that [b-a] evoke failure,
35472         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35473         test pass once again for x86-based systems.
35474
35475 2010-03-19  Bruno Haible  <bruno@clisp.org>
35476
35477         scandir: Fix link error on Solaris 8.
35478         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35479         macros.
35480
35481 2010-03-19  Bruno Haible  <bruno@clisp.org>
35482
35483         getusershell: Fix documentation.
35484         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35485         module.
35486         * doc/glibc-functions/setusershell.texi: Likewise.
35487
35488         getusershell: Provide declaration, missing on Solaris 9.
35489         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35490         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35491         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35492         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35494         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35495         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35496         HAVE_GETUSERSHELL.
35497         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35498
35499 2010-03-19  Bruno Haible  <bruno@clisp.org>
35500
35501         wctype: Provide iswblank function.
35502         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35503         exists and is fine.
35504         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35505         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35506         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35507         * doc/posix-functions/iswblank.texi: Update.
35508
35509 2010-03-19  Bruno Haible  <bruno@clisp.org>
35510
35511         Tests of module 'pty' in C++ mode.
35512         * modules/pty-tests: New file.
35513         * tests/test-pty-c++.cc: New file.
35514         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35515
35516 2010-03-19  Eric Blake  <eblake@redhat.com>
35517
35518         logb: fix documentation
35519         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35520         1.5 declaration bug.
35521
35522         forkpty, openpty: prefer glibc's const-safe prototype
35523         * lib/forkpty.c (rpl_forkpty): New file.
35524         * lib/openpty.c (rpl_openpty): Likewise.
35525         * modules/forkpty (Files): Distribute it.
35526         * modules/openpty (Files): Likewise.
35527         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35528         check...
35529         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35530         replacement for for non-const BSD signature.
35531         * modules/pty (Makefile.am): Substitute witnesses.
35532         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35533         * tests/test-forkpty.c: Update signature check.
35534         * tests/test-openpty.c: Likewise.
35535         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35536         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35537
35538         forkpty, openpty: split functions into new modules
35539         * modules/pty (Makefile.am): Substitute new witnesses.
35540         (Libraries): Move library detection...
35541         * modules/forkpty: ...into new module.
35542         * modules/openpty: Another new module.
35543         * modules/pty-tests: Rename and split...
35544         * modules/forkpty-tests: ...to this...
35545         * modules/openpty-tests: ...and this.
35546         * tests/test-pty.c: Rename and split...
35547         * tests/test-forkpty.c: ...to this...
35548         * tests/test-openpty.c: ...and this.
35549         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35550         (gl_PTY): Split library searching...
35551         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35552         (gl_FORKPTY, gl_OPENPTY): New macros.
35553         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35554         * NEWS: Mention the split.
35555         * MODULES.html.sh (Misc): Document the modules.
35556         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35557         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35558
35559         pty: improve replacement header
35560         * lib/pty.in.h: New file.
35561         * modules/pty (Files): Ship it.
35562         (Makefile.am): Always build replacement.
35563         * m4/pty.m4: Rename...
35564         * m4/pty_h.m4: ...to this.
35565         (gl_PTY): Modernize setting of witness macros; update check of
35566         forkpty to take proper advantage of cache.
35567         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35568
35569         getopt: avoid compiler warning
35570         * lib/getopt.c (attribute_hidden): Remove unused macro.
35571
35572 2010-03-18  Bruno Haible  <bruno@clisp.org>
35573
35574         Fix link errors on Solaris 8.
35575         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35576         * modules/search-tests (test_search_c___LDADD): Likewise.
35577         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35578         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35579         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35580         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35581         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35582         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35583         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35584
35585 2010-03-18  Bruno Haible  <bruno@clisp.org>
35586
35587         Fix bug introduced on 2010-03-14.
35588         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35589         (gl_SPAWN_H): Require it.
35590         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35591         Reported by Simon Josefsson.
35592
35593 2010-03-18  Bruno Haible  <bruno@clisp.org>
35594
35595         Fix typo introduced on 2009-12-31.
35596         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35597         posix_spawn_file_actions_adddup2.
35598
35599 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35600         and Eric Blake  <eblake@redhat.com>
35601
35602         test-vc-list-files-git: make more robust
35603         * tests/test-vc-list-files-git.sh: Unset problematic environment
35604         variables.  Chain commands together.
35605
35606 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35607
35608         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35609         `AC_CHECK_DECL' invocation.
35610
35611 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35612
35613         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35614         appears before executable statements. Suggested by Petr Sumbera
35615         <Petr.Sumbera@Sun.COM>.
35616
35617 2010-03-14  Bruno Haible  <bruno@clisp.org>
35618
35619         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35620         portability problems. Instead use a simpler test.
35621         (main): Check that invalid arguments are rejected only on Linux.
35622
35623 2010-03-14  Bruno Haible  <bruno@clisp.org>
35624
35625         Fix bug introduced on 2009-12-31.
35626         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35627         gl_PREREQ_SYS_H_WINSOCK2 always.
35628         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35629         SYS_SOCKET_H variable.
35630         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35631         Update comments.
35632         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35633         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35634         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35635         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35636         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35637
35638 2010-03-14  Bruno Haible  <bruno@clisp.org>
35639
35640         Fix values returned by sinl, cosl.
35641         * lib/trigl.h: Add specification comments.
35642         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35643         that combines the values from the precomputed table with the values of
35644         the Chebyshev polynomials.
35645
35646 2010-03-14  Bruno Haible  <bruno@clisp.org>
35647
35648         Fix compilation error when modules 'posix_spawn[p]' are not used.
35649         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35650         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35651
35652 2010-03-14  Bruno Haible  <bruno@clisp.org>
35653
35654         Fix compilation error on mingw when module 'time_r' is not used.
35655         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35656         is 1.
35657         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35658         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35659         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35660         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35661
35662 2010-03-14  Bruno Haible  <bruno@clisp.org>
35663
35664         Fix compilation error with Sun C.
35665         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35666         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35667         instead of GCC specific ULONG_LONG_MAX.
35668         * lib/xstrtoll.c: Likewise.
35669         * lib/xstrtoull.c: Likewise.
35670
35671 2010-03-13  Bruno Haible  <bruno@clisp.org>
35672
35673         Allow the user to disable C++ code and tests.
35674         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35675         (gl_PROG_ANSI_CXX): Require it.
35676
35677 2010-03-13  Bruno Haible  <bruno@clisp.org>
35678
35679         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35680         cases.
35681
35682 2010-03-13  Bruno Haible  <bruno@clisp.org>
35683
35684         Test that gnulib does not break the standard C++ headers.
35685         * tests/test-locale-c++2.cc: New file.
35686         * modules/locale-tests (Files): Add it.
35687         (Makefile.am): Compile it for test-locale-c++.
35688         * tests/test-math-c++2.cc: New file.
35689         * modules/math-tests (Files): Add it.
35690         (Makefile.am): Compile it for test-math-c++.
35691         * tests/test-signal-c++2.cc: New file.
35692         * modules/signal-tests (Files): Add it.
35693         (Makefile.am): Compile it for test-signal-c++.
35694         * tests/test-stdio-c++2.cc: New file.
35695         * modules/stdio-tests (Files): Add it.
35696         (Makefile.am): Compile it for test-stdio-c++.
35697         * tests/test-stdlib-c++2.cc: New file.
35698         * modules/stdlib-tests (Files): Add it.
35699         (Makefile.am): Compile it for test-stdlib-c++.
35700         * tests/test-string-c++2.cc: New file.
35701         * modules/string-tests (Files): Add it.
35702         (Makefile.am): Compile it for test-string-c++.
35703         * tests/test-time-c++2.cc: New file.
35704         * modules/time-tests (Files): Add it.
35705         (Makefile.am): Compile it for test-time-c++.
35706         Reported by John W. Eaton <jwe@gnu.org>.
35707
35708 2010-03-13  Bruno Haible  <bruno@clisp.org>
35709
35710         * gnulib-tool (func_usage): Clarify which options are available for
35711         --create-testdir and --create-megatestdir.
35712
35713 2010-03-13  Bruno Haible  <bruno@clisp.org>
35714
35715         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35716         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35717         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35718         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35719         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35720         when appropriate.
35721         Reported by Jim Meyering.
35722
35723 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35724
35725         * gnulib-tool (func_import): Explain origin of code.
35726
35727 2010-03-12  Bruno Haible  <bruno@clisp.org>
35728
35729         Fix problem with automake's definition of CXXLINK.
35730         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35731         Reported by Simon Josefsson and Ludovic Courtès.
35732
35733 2010-03-12  Bruno Haible  <bruno@clisp.org>
35734
35735         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35736         stable releases.
35737
35738 2010-03-11  Bruno Haible  <bruno@clisp.org>
35739
35740         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35741         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35742         whether the system provides one variant or multiple variants of the
35743         function.
35744         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35745         C++ compilers.
35746         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35747         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35748         Reported by Jim Meyering.
35749
35750 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35751
35752         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35753
35754 2010-03-08  Bruno Haible  <bruno@clisp.org>
35755
35756         gnulib-tool: Add support for --libtool in --create-testdir.
35757         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35758         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35759
35760 2010-03-08  Eric Blake  <eblake@redhat.com>
35761
35762         gnulib-tool.texi: mention possibility of git submodule
35763         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35764         submodules.
35765         * doc/.gitignore: Ignore another generated file.
35766
35767 2010-03-08  Karl Berry  <karl@gnu.org>
35768
35769         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35770         of committing gnulib files while skipping others.
35771
35772 2010-03-07  Bruno Haible  <bruno@clisp.org>
35773
35774         Tests of module 'wctype' in C++ mode.
35775         * tests/test-wctype-c++.cc: New file.
35776         * modules/wctype-tests (Files): Add it and tests/signature.h.
35777         (Depends-on): Add ansi-c++-opt.
35778         (Makefile.am): Arrange to compile and run test-wctype-c++.
35779
35780         Tests of module 'wchar' in C++ mode.
35781         * tests/test-wchar-c++.cc: New file.
35782         * modules/wchar-tests (Files): Add it and tests/signature.h.
35783         (Depends-on): Add ansi-c++-opt.
35784         (Makefile.am): Arrange to compile and run test-wchar-c++.
35785         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35786         gl_MODULE_INDICATOR.
35787
35788         Tests of module 'unistd' in C++ mode.
35789         * tests/test-unistd-c++.cc: New file.
35790         * modules/unistd-tests (Files): Add it and tests/signature.h.
35791         (Depends-on): Add ansi-c++-opt.
35792         (Makefile.am): Arrange to compile and run test-unistd-c++.
35793         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35794         gl_MODULE_INDICATOR.
35795
35796         Tests of module 'time' in C++ mode.
35797         * tests/test-time-c++.cc: New file.
35798         * modules/time-tests (Files): Add it and tests/signature.h.
35799         (Depends-on): Add ansi-c++-opt.
35800         (Makefile.am): Arrange to compile and run test-time-c++.
35801         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35802
35803         Tests of module 'sys_time' in C++ mode.
35804         * tests/test-sys_time-c++.cc: New file.
35805         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35806         (Depends-on): Add ansi-c++-opt.
35807         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35808         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35809         gl_MODULE_INDICATOR.
35810
35811         Tests of module 'sys_stat' in C++ mode.
35812         * tests/test-sys_stat-c++.cc: New file.
35813         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35814         (Depends-on): Add ansi-c++-opt.
35815         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35816         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35817         gl_MODULE_INDICATOR.
35818
35819         Tests of module 'sys_socket' in C++ mode.
35820         * tests/test-sys_socket-c++.cc: New file.
35821         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35822         (Depends-on): Add ansi-c++-opt.
35823         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35824         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35825         gl_MODULE_INDICATOR.
35826
35827         Tests of module 'sys_select' in C++ mode.
35828         * tests/test-sys_select-c++.cc: New file.
35829         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35830         (Depends-on): Add ansi-c++-opt.
35831         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35832         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35833         gl_MODULE_INDICATOR.
35834
35835         Tests of module 'sys_ioctl' in C++ mode.
35836         * tests/test-sys_ioctl-c++.cc: New file.
35837         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35838         (Depends-on): Add ansi-c++-opt.
35839         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35840         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35841         gl_MODULE_INDICATOR.
35842
35843         Tests of module 'string' in C++ mode.
35844         * tests/test-string-c++.cc: New file.
35845         * modules/string-tests (Files): Add it and tests/signature.h.
35846         (Depends-on): Add ansi-c++-opt.
35847         (Makefile.am): Arrange to compile and run test-string-c++.
35848         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35849         gl_MODULE_INDICATOR.
35850
35851         Tests of module 'stdlib' in C++ mode.
35852         * tests/test-stdlib-c++.cc: New file.
35853         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35854         (Depends-on): Add ansi-c++-opt.
35855         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35856         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35857         gl_MODULE_INDICATOR.
35858
35859         Tests of module 'stdio' in C++ mode.
35860         * tests/test-stdio-c++.cc: New file.
35861         * modules/stdio-tests (Files): Add it and tests/signature.h.
35862         (Depends-on): Add ansi-c++-opt.
35863         (Makefile.am): Arrange to compile and run test-stdio-c++.
35864         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35865         gl_MODULE_INDICATOR.
35866
35867         Tests of module 'spawn' in C++ mode.
35868         * tests/test-spawn-c++.cc: New file.
35869         * modules/spawn-tests (Files): Add it and tests/signature.h.
35870         (Depends-on): Add ansi-c++-opt.
35871         (Makefile.am): Arrange to compile and run test-spawn-c++.
35872         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35873         gl_MODULE_INDICATOR.
35874
35875         Tests of module 'signal' in C++ mode.
35876         * tests/test-signal-c++.cc: New file.
35877         * modules/signal-tests (Files): Add it and tests/signature.h.
35878         (Depends-on): Add ansi-c++-opt.
35879         (Makefile.am): Arrange to compile and run test-signal-c++.
35880         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35881         gl_MODULE_INDICATOR.
35882
35883         Tests of module 'search' in C++ mode.
35884         * tests/test-search-c++.cc: New file.
35885         * modules/search-tests (Files): Add it and tests/signature.h.
35886         (Depends-on): Add ansi-c++-opt.
35887         (Makefile.am): Arrange to compile and run test-search-c++.
35888         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35889         gl_MODULE_INDICATOR.
35890
35891         Tests of module 'math' in C++ mode.
35892         * tests/test-math-c++.cc: New file.
35893         * modules/math-tests (Files): Add it and tests/signature.h.
35894         (Depends-on): Add ansi-c++-opt.
35895         (Makefile.am): Arrange to compile and run test-math-c++.
35896         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35897
35898         Tests of module 'locale' in C++ mode.
35899         * tests/test-locale-c++.cc: New file.
35900         * modules/locale-tests (Files): Add it and tests/signature.h.
35901         (Depends-on): Add ansi-c++-opt.
35902         (Makefile.am): Arrange to compile and run test-locale-c++.
35903         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35904         gl_MODULE_INDICATOR.
35905
35906         Tests of module 'langinfo' in C++ mode.
35907         * tests/test-langinfo-c++.cc: New file.
35908         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35909         (Depends-on): Add ansi-c++-opt.
35910         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35911         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35912         gl_MODULE_INDICATOR.
35913
35914         Tests of module 'iconv-h' in C++ mode.
35915         * tests/test-iconv-h-c++.cc: New file.
35916         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35917         (Depends-on): Add ansi-c++-opt.
35918         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35919
35920         Tests of module 'glob' in C++ mode.
35921         * tests/test-glob-c++.cc: New file.
35922         * modules/glob-tests (Files): Add it.
35923         (Depends-on): Add ansi-c++-opt.
35924         (Makefile.am): Arrange to compile and run test-glob-c++.
35925
35926         Tests of module 'fcntl-h' in C++ mode.
35927         * tests/test-fcntl-h-c++.cc: New file.
35928         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35929         (Depends-on): Add ansi-c++-opt.
35930         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35931         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35932         gl_MODULE_INDICATOR.
35933
35934         Tests of module 'dirent' in C++ mode.
35935         * tests/test-dirent-c++.cc: New file.
35936         * modules/dirent-tests (Files): Add it and tests/signature.h.
35937         (Depends-on): Add ansi-c++-opt.
35938         (Makefile.am): Arrange to compile and run test-dirent-c++.
35939         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35940         gl_MODULE_INDICATOR.
35941
35942         New module 'ansi-c++-opt'.
35943         * modules/ansi-c++-opt: New file.
35944         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35945
35946         Document C++ namespace mode.
35947         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35948
35949         wctype: Avoid #define replacements in C++ mode.
35950         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35951         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35952         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35953         In C++, define a namespaced alias symbol.
35954         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35955         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35956         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35957         rule.
35958
35959         wchar: Avoid #define replacements in C++ mode.
35960         * lib/wchar.in.h: Include c++defs.h.
35961         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35962         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35963         symbol.
35964         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35965         * modules/wchar (Depends-on): Add c++defs.
35966         (Makefile.am): Update wchar.h rule.
35967
35968         unistd: Avoid #define replacements in C++ mode.
35969         * lib/unistd.in.h: Include c++defs.h.
35970         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35971         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35972         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35973         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35974         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35975         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35976         symbol.
35977         (environ): Update.
35978         * modules/unistd (Depends-on): Add c++defs.
35979         (Makefile.am): Update unistd.h rule.
35980
35981         time: Avoid #define replacements in C++ mode.
35982         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35983         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35984         define a namespaced alias symbol.
35985         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35986         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35987         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35988         * modules/time (Depends-on): Add c++defs, warn-on-use.
35989         (Makefile.am): Update time.h rule.
35990         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35991         * modules/nanosleep (configure.ac): Likewise.
35992         * modules/strptime (configure.ac): Likewise.
35993         * modules/timegm (configure.ac): Likewise.
35994
35995         sys_time: Avoid #define replacements in C++ mode.
35996         * lib/sys_time.in.h: Include c++defs.h.
35997         (gettimeofday): In C++, define a namespaced alias symbol.
35998         * modules/sys_time (Depends-on): Add c++defs.
35999         (Makefile.am): Update sys/time.h rule.
36000
36001         sys_stat: Avoid #define replacements in C++ mode.
36002         * lib/sys_stat.in.h: Include c++defs.h.
36003         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36004         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36005         namespaced alias symbol.
36006         In C++, define a namespaced alias symbol.
36007         * modules/sys_stat (Depends-on): Add c++defs.
36008         (Makefile.am): Update sys/stat.h rule.
36009
36010         sys_socket: Avoid #define replacements in C++ mode.
36011         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36012         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36013         definitions also when the system has a <sys/socket.h>.
36014         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36015         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36016         In C++, define a namespaced alias symbol.
36017         * modules/sys_socket (Depends-on): Add c++defs.
36018         (Makefile.am): Update sys/socket.h rule.
36019
36020         sys_select: Avoid #define replacements in C++ mode.
36021         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36022         definitions also when the system has a <sys/select.h>.
36023         (select): In C++, define a namespaced alias symbol.
36024         * modules/sys_select (Depends-on): Add c++defs.
36025         (Makefile.am): Update sys/select.h rule.
36026
36027         sys_ioctl: Avoid #define replacements in C++ mode.
36028         * lib/sys_ioctl.in.h: Include c++defs.h.
36029         (ioctl): In C++, define a namespaced alias symbol.
36030         * modules/sys_ioctl (Depends-on): Add c++defs.
36031         (Makefile.am): Update sys/ioctl.h rule.
36032
36033         string: Avoid #define replacements in C++ mode.
36034         * lib/string.in.h: Include c++defs.h.
36035         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36036         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36037         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36038         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36039         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36040         * modules/string (Depends-on): Add c++defs.
36041         (Makefile.am): Update string.h rule.
36042
36043         stdlib: Avoid #define replacements in C++ mode.
36044         * lib/stdlib.in.h: Include c++defs.h.
36045         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36046         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36047         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36048         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36049         symbol.
36050         * modules/stdlib (Depends-on): Add c++defs.
36051         (Makefile.am): Update stdlib.h rule.
36052
36053         stdio: Avoid #define replacements in C++ mode.
36054         * lib/stdio.in.h: Include c++defs.h.
36055         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36056         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36057         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36058         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36059         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36060         namespaced alias symbol.
36061         * modules/stdio (Depends-on): Add c++defs.
36062         (Makefile.am): Update stdio.h rule.
36063
36064         spawn: Avoid #define replacements in C++ mode.
36065         * lib/spawn.in.h: Include c++defs.h.
36066         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36067         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36068         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36069         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36070         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36071         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36072         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36073         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36074         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36075         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36076         In C++, define a namespaced alias symbol.
36077         * modules/spawn (Depends-on): Add c++defs.
36078         (Makefile.am): Update spawn.h rule.
36079
36080         signal: Avoid #define replacements in C++ mode.
36081         * lib/signal.in.h: Include c++defs.h.
36082         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36083         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36084         namespaced alias symbol.
36085         * modules/signal (Depends-on): Add c++defs.
36086         (Makefile.am): Update signal.h rule.
36087
36088         search: Avoid #define replacements in C++ mode.
36089         * lib/search.in.h: Include c++defs.h.
36090         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36091         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36092         symbol.
36093         * modules/search (Depends-on): Add c++defs.
36094         (Makefile.am): Update search.h rule.
36095
36096         math: Avoid #define replacements in C++ mode.
36097         * lib/math.in.h: Include c++defs.h.
36098         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36099         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36100         trunc, truncl): In C++, define a namespaced alias symbol.
36101         * modules/math (Depends-on): Add c++defs.
36102         (Makefile.am): Update math.h rule.
36103
36104         locale: Avoid #define replacements in C++ mode.
36105         * lib/locale.in.h: Include c++defs.h.
36106         (duplocale): In C++, define a namespaced alias symbol.
36107         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36108         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36109         * modules/locale (Depends-on): Add c++defs.
36110         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36111
36112         langinfo: Avoid #define replacements in C++ mode.
36113         * lib/langinfo.in.h: Include c++defs.h.
36114         (nl_langinfo): In C++, define a namespaced alias symbol.
36115         * modules/langinfo (Depends-on): Add c++defs.
36116         (Makefile.am): Update langinfo.h rule.
36117
36118         iconv-h: Avoid #define replacements in C++ mode.
36119         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36120         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36121         symbol.
36122         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36123         whenever iconv is present.
36124         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36125         (Makefile.am): Update iconv.h rule.
36126
36127         glob: Avoid #define replacements in C++ mode.
36128         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36129         (_gl_glob_errfunc_fn): New type.
36130         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36131         symbol.
36132         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36133         (Makefile.am): Update glob.h rule.
36134
36135         fcntl-h: Avoid #define replacements in C++ mode.
36136         * lib/fcntl.in.h: Include c++defs.h.
36137         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36138         * modules/fcntl-h (Depends-on): Add c++defs.
36139         (Makefile.am): Update fcntl.h rule.
36140
36141         dirent: Avoid #define replacements in C++ mode.
36142         * lib/dirent.in.h: Include c++defs.h.
36143         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36144         namespaced alias symbol.
36145         (dirfd): Update declaration.
36146         * modules/dirent (Depends-on): Add c++defs.
36147         (Makefile.am): Update dirent.h rule.
36148
36149         ctype: Make it usable in C++ code.
36150         * lib/ctype.in.h: Include c++defs.h.
36151         (isblank): Declare as extern "C".
36152         * modules/ctype (Depends-on): Add c++defs.
36153         (Makefile.am): Update ctype.h rule.
36154
36155         New module 'c++defs'.
36156         * modules/c++defs: New file.
36157         * build-aux/c++defs.h: New file.
36158         Reported by John W. Eaton <jwe@gnu.org>.
36159
36160 2010-03-07  Bruno Haible  <bruno@clisp.org>
36161
36162         logb: Provide missing declaration for Cygwin.
36163         * lib/math.in.h (logb): New declaration.
36164         * m4/logb.m4: New file.
36165         * modules/logb (Files): Add m4/logb.m4.
36166         (Depends-on): Add math.
36167         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36168         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36170         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36171         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36172
36173 2010-03-07  Bruno Haible  <bruno@clisp.org>
36174
36175         Fix test-cond link error.
36176         * tests/test-cond.c: Include <stdio.h>.
36177
36178 2010-03-07  Bruno Haible  <bruno@clisp.org>
36179
36180         Fix test-dirent-safer link error.
36181         * modules/dirent-safer-tests (Makefile.am): Define
36182         test_dirent_safer_LDADD.
36183
36184 2010-03-07  Bruno Haible  <bruno@clisp.org>
36185
36186         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36187         among default module list.
36188
36189 2010-03-07  Bruno Haible  <bruno@clisp.org>
36190
36191         Fix link error on platforms with GNU libiconv.
36192         * modules/unistr/u8-strcoll-tests (Makefile): Define
36193         test_u8_strcoll_LDADD.
36194         * modules/unistr/u16-strcoll-tests (Makefile): Define
36195         test_u16_strcoll_LDADD.
36196         * modules/unistr/u32-strcoll-tests (Makefile): Define
36197         test_u32_strcoll_LDADD.
36198
36199 2010-03-07  Bruno Haible  <bruno@clisp.org>
36200
36201         Use POSIX declarations for socket functions.
36202         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36203         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36204         rpl_sendto): Change declaration to match POSIX.
36205         * lib/connect.c (rpl_connect): Likewise.
36206         * lib/accept.c (rpl_accept): Likewise.
36207         * lib/bind.c (rpl_bind): Likewise.
36208         * lib/getpeername.c (rpl_getpeername): Likewise.
36209         * lib/getsockname.c (rpl_getsockname): Likewise.
36210         * lib/recv.c (rpl_recv): Likewise.
36211         * lib/send.c (rpl_send): Likewise.
36212         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36213         * lib/sendto.c (rpl_sendto): Likewise.
36214
36215 2010-03-06  Bruno Haible  <bruno@clisp.org>
36216
36217         Clarify access, euidaccess, faccessat.
36218         * doc/posix-functions/faccessat.texi: Mention security problem under
36219         "Other problems", not "Portability problems".
36220         * doc/posix-functions/access.texi: Likewise. Mention a related security
36221         problem.
36222         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36223         * lib/euidaccess.c: Add comments about platforms.
36224         * lib/unistd.in.h (access, euidaccess): Add warnings.
36225
36226 2010-03-07  Bruno Haible  <bruno@clisp.org>
36227
36228         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36229         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36230         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36231         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36232         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36233         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36234         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36235         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36236         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36237         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36238         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36239         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36240         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36241         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36242         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36243         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36244         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36245         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36246         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36247         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36248         Likewise.
36249         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36250         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36251         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36252         Likewise.
36253         * tests/test-spawn.c (main): Make it work when
36254         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36255
36256 2010-03-07  Bruno Haible  <bruno@clisp.org>
36257
36258         Fix incorrect Makefile.am generation in German locale.
36259         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36260         Execute sed command with character range in C locale.
36261
36262 2010-03-06  Bruno Haible  <bruno@clisp.org>
36263
36264         Tests for module 'iconv-h'.
36265         * modules/iconv-h-tests: New file.
36266         * tests/test-iconv-h.c: New file.
36267
36268         New module 'iconv-h'.
36269         * modules/iconv-h: New file.
36270         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36271         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36272         (configure.ac): Remove gl_ICONV_H.
36273         (Makefile.am): Remove rule for iconv.h.
36274
36275 2010-03-06  Bruno Haible  <bruno@clisp.org>
36276
36277         More consistent naming of *.m4 files.
36278         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36279         * modules/wctype (Files): Update.
36280
36281         More consistent naming of *.m4 files.
36282         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36283         * modules/wchar (Files): Update.
36284
36285 2010-03-06  Jim Meyering  <meyering@redhat.com>
36286
36287         euidaccess: relax license to LGPLv2+
36288         * modules/euidaccess (License): Relax to LGPLv2+.
36289
36290 2010-03-06  Bruno Haible  <bruno@clisp.org>
36291
36292         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36293         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36294         (Makefile.am): Augment lib_SOURCES instead.
36295
36296 2010-03-04  Jim Meyering  <meyering@redhat.com>
36297
36298         utime: remove obsolete module
36299         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36300         unnecessary for years, and has been marked as obsolete for 10 months.
36301         * modules/utime: Remove file.
36302         * lib/utime.c: Remove file.
36303         * m4/utime.m4: Remove file.
36304         * m4/utimes-null.m4: Remove file.
36305         * doc/posix-functions/utime.texi (utime): Remove reference to
36306         the module.  Move the sole "fixed by gnulib" item into the
36307         "problems not fixed by Gnulib" list.
36308         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36309
36310 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36311
36312         * modules/exit (License): Relax license to LGPLv2+.
36313         (Status): Mark as obsolete.
36314         * NEWS: Mention deprecated 'exit' module.
36315         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36316         of now obsolete 'exit'.
36317
36318 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36319
36320         fts-lgpl: remove unused module
36321         * modules/fts-lgpl: Remove.
36322         * MODULES.html.sh (func_all_modules): Adjust.
36323         * check-module (find_included_lib_files): Adjust.
36324         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36325
36326 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36327
36328         copy-acl: enhance Solaris ACL error handling
36329         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36330         * lib/set-mode-acl.c (qset_acl): Likewise.
36331
36332 2010-03-02  Bruno Haible  <bruno@clisp.org>
36333
36334         spawn: Don't override the system defined values on FreeBSD 8.
36335         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36336         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36337         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36338         if HAVE_POSIX_SPAWN is 1.
36339         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36340
36341 2010-03-01  Bruno Haible  <bruno@clisp.org>
36342
36343         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36344         regarding Automake.
36345
36346 2010-02-25  Bruno Haible  <bruno@clisp.org>
36347
36348         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36349         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36350         setting, not afterwards.
36351         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36352
36353 2010-02-24  Eric Blake  <eblake@redhat.com>
36354
36355         bootstrap, git-version-gen: use timestamp
36356         * build-aux/git-version-gen (scriptversion): Force UTC.
36357         * build-aux/bootstrap (scriptversion): New variable.
36358
36359         bootstrap: allow older git
36360         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36361         older than 1.6.4.  Requested by the libvirt project.
36362
36363 2010-02-23  Eric Blake  <eblake@redhat.com>
36364
36365         warn-on-use: work with old autoconf
36366         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36367         AS_VAR semantics of autoconf 2.60.
36368         Reported by Bruno Haible.
36369
36370         bootstrap: improve some comments
36371         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36372         clarification comments.
36373
36374         gettimeofday: provide correct function
36375         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36376         when replacement is declared, otherwise provide gettimeofday.
36377         Reported by Michael Goffioul.
36378
36379 2010-02-23  Jim Meyering  <meyering@redhat.com>
36380
36381         lib-ignore: relax license to "unlimited", not LGPLv2+
36382         * modules/lib-ignore (License): Relax to "unlimited".
36383
36384 2010-02-23  Jim Meyering  <meyering@redhat.com>
36385
36386         lib-ignore: relax license to LGPLv2+
36387         * modules/lib-ignore (License): Relax to LGPLv2+.
36388
36389 2010-02-22  Eric Blake  <eblake@redhat.com>
36390
36391         lseek: avoid bash 3.2 broken pipe bug
36392         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36393         warning from bash 3.2.
36394         Reported by Ben Pfaff, with analysis from Bruno Haible.
36395
36396         bootstrap: support non-FSF copyright holder
36397         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36398         bootstrap.conf override of COPYRIGHT_HOLDER.
36399         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36400
36401         bootstrap: interoperate with gettext 0.14.1
36402         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36403
36404         bootstrap: allow for alternate submodule location
36405         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36406         hardcoding submodule location.
36407         (gnulib_mk): Allow direct use of Makefile.am.
36408
36409         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36410         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36411         rather than reconfiguring where the submodule points.
36412
36413         gettimeofday: restore support for platforms that lack function
36414         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36415         replacement if function is missing.
36416         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36417         * modules/sys_time (Makefile.am): Substitute it.
36418         * lib/sys_time.in.h (gettimeofday): Check it.
36419         Reported by Michael Goffioul.
36420
36421 2010-02-21  Bruno Haible  <bruno@clisp.org>
36422
36423         * lib/stdio.in.h (obstack_printf): Fix typo.
36424
36425 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36426
36427         vc-list-files: use bzr ls's -R option
36428         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36429         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36430
36431 2010-02-21  Jim Meyering  <meyering@redhat.com>
36432
36433         init.sh: fix EXEEXT shims to work also for names like test-prog
36434         * tests/init.sh: Re-exec a better shell, when needed.
36435         If the current shell lacks support for posix $(...), an init.sh-using
36436         test will now try to find a shell that supports that.  If EXEEXT is
36437         nonempty, we also require support for hyphen-in-alias-name and shell
36438         substitutions like ${var#glob}.  Failure to find such a shell results
36439         in a skipped test.
36440
36441 2010-02-21  Bruno Haible  <bruno@clisp.org>
36442
36443         Really work around around "broken pipe" error message from bash 3.2.
36444         * gnulib-tool (func_reset_sigpipe): Remove function.
36445         (echo): In bash 3.2, define to a function that uses printf.
36446         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36447
36448 2010-02-20  Bruno Haible  <bruno@clisp.org>
36449
36450         Restore support for automake 1.9.6 with autoconf 2.61.
36451         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36452         Reported by James Youngman <jay@gnu.org>.
36453
36454 2010-02-20  Bruno Haible  <bruno@clisp.org>
36455
36456         Improve *printf warning condition.
36457         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36458         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36459         and the function is overridden due to SIGPIPE emulation.
36460
36461 2010-02-20  Bruno Haible  <bruno@clisp.org>
36462
36463         * lib/stdio.in.h: Tweak comments.
36464
36465 2010-02-19  Bruno Haible  <bruno@clisp.org>
36466
36467         Make it easier to find modules. New gnulib-tool option '--find'.
36468         * gnulib-tool: New option --find.
36469         (func_usage): Document it.
36470         (func_sanitize_modulelist): New function, extracted from
36471         func_all_modules.
36472         (func_all_modules): Invoke it.
36473         * doc/gnulib-tool.texi (Which modules?): New node.
36474
36475 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36476
36477         * lib/sys_select.in.h: Provide select replacement even if
36478         sys/select.h exists on a system, for Interix.
36479
36480 2010-02-18  Jim Meyering  <meyering@redhat.com>
36481
36482         init.sh: don't use $(...) just yet
36483         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36484         to accommodate e.g., Solaris' /bin/sh.
36485
36486 2010-02-17  Bruno Haible  <bruno@clisp.org>
36487
36488         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36489         Reported by Ludovic Courtès <ludo@gnu.org>.
36490
36491 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36492
36493         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36494         linking with -lintl.
36495
36496 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36497
36498         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36499         if not provided by the system's netdb.h.  Reported by
36500         ludo@gnu.org (Ludovic Courtès).
36501
36502 2010-02-15  Jim Meyering  <meyering@redhat.com>
36503
36504         init.sh: improve portability and efficiency
36505         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36506         "dummy" in a for loop.
36507         Use '!', not '^' to select the complement of a character set used
36508         in a "case" statement.
36509         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36510         Suggestions from Eric Blake.
36511
36512         init.sh: automatically accommodate programs with the .exe suffix
36513         Automatically arrange for an invocation of "prog" to execute the
36514         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36515         may use the simpler "prog", yet still work when built on a system
36516         that requires specifying the added suffix.
36517         Do this by constructing a function named "prog" that invokes
36518         "prog.exe" for each .exe file in selected directories.
36519         * tests/init.sh (find_exe_basenames_): New function.
36520         (create_exe_shim_functions_): New function.
36521         (path_prepend_): Use it.
36522
36523         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36524         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36525         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36526
36527 2010-02-14  Jim Meyering  <meyering@redhat.com>
36528
36529         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36530         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36531         (sc_prohibit_hash_pjw_without_use): New rule.
36532
36533         maint.mk: allow the default upload destination dir to be overridden
36534         * top/maint.mk (upload_dest_dir_): Define with a default that
36535         preserves the status quo.
36536         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36537         Reported by Peter Simons.
36538
36539         maint.mk: prohibit inclusion of "hash.h" without_use
36540         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36541
36542 2010-02-10  Jim Meyering  <meyering@redhat.com>
36543
36544         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36545         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36546
36547 2010-02-09  Eric Blake  <ebb9@byu.net>
36548         and Bruno Haible  <bruno@clisp.org>
36549
36550         obstack-printf-posix: ensure declaration
36551         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36552         extracted from gl_FUNC_OBSTACK_PRINTF.
36553         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36554         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36555         Likewise.
36556         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36557         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36558         0.
36559
36560 2010-02-08  Bruno Haible  <bruno@clisp.org>
36561
36562         gnulib-tool: Fix typo in 2010-02-07 commit.
36563         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36564         Reported by Eric Blake.
36565
36566 2010-02-07  Bruno Haible  <bruno@clisp.org>
36567
36568         gnulib-tool: Fix up caching patches.
36569         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36570         option --no-cache. Use associative arrays when supported by the shell.
36571         (sed_comments): New variable.
36572         (modcache): Renamed from do_cache.
36573         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36574         abbreviate unnecessarily.
36575         (have_associative): New variable.
36576         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36577         way also for ksh and zsh.
36578         (func_init_sed_convert_to_cache_statements): New function, extracted
36579         from func_cache_lookup_module. Add support for associative arrays.
36580         Don't set the c_MODULE_cached variable here. Ignore all lines before
36581         the first field header. Remove only the final newline, not all trailing
36582         newlines. Support empty fields correctly. Limit the use of 'eval' to
36583         assignments.
36584         (func_get_description, func_get_status, func_get_notice,
36585         func_get_applicability, func_get_filelist, func_get_dependencies,
36586         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36587         func_get_automake_snippet, func_get_include_directive,
36588         func_get_link_directive, func_get_license, func_get_maintainer):
36589         Update documentation. List the unoptimized code first. Add support for
36590         associative arrays. Limit the use of 'eval' to assignments.
36591         (func_get_applicability): Undo stylistic pessimisations.
36592         (func_get_automake_snippet, func_get_include_directive): Reduce code
36593         duplication.
36594         (func_modules_transitive_closure, func_modules_add_dummy,
36595         func_modules_notice, func_modules_to_filelist, func_add_file,
36596         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36597         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36598         func_create_testdir, func_create_megatestdir): Update documentation.
36599
36600 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36601
36602         * gnulib-tool (func_cache_lookup_module): Store the module name
36603         belonging to the cache variable; error out if two different
36604         module names map to the same cache variable name.
36605
36606 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36607
36608         gnulib-tool: Make caching optional.
36609         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36610         Update matching short versions of --no-changelog.
36611         (func_usage): Update.
36612         (sed_extract_cache_prog): Renamed from ...
36613         (sed_extract_prog): ... this; revert to old extraction script.
36614         (func_get_description, func_get_status)
36615         (func_get_notice, func_get_applicability, func_get_filelist)
36616         (func_get_dependencies, func_get_autoconf_early_snippet)
36617         (func_get_autoconf_snippet, func_get_automake_snippet)
36618         (func_get_include_directive, func_get_link_directive)
36619         (func_get_license, func_get_maintainer): If $do_cache is false,
36620         use old, non-caching extraction scripts.
36621         Suggestion by Bruno Haible.
36622
36623 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36624
36625         gnulib-tool: cache module metainformation.
36626         * gnulib-tool (sed_extract_prog): Match newline before each
36627         header, and rewrite header to a shell variable suffix.
36628         (func_cache_var, func_cache_lookup_module): New functions,
36629         to turn a module name into a cache variable prefix, and to
36630         look up and cache module metainformation.
36631         (func_get_description, func_get_status)
36632         (func_get_notice, func_get_applicability, func_get_filelist)
36633         (func_get_dependencies, func_get_autoconf_early_snippet)
36634         (func_get_autoconf_snippet, func_get_automake_snippet)
36635         (func_get_include_directive, func_get_link_directive)
36636         (func_get_license, func_get_maintainer): Use
36637         func_cache_lookup_module.
36638
36639 2010-02-07  Bruno Haible  <bruno@clisp.org>
36640
36641         fnctl: Fix missing dependency.
36642         * modules/fcntl (Depends-on): Add getdtablesize.
36643         Reported by John W. Eaton <jwe@gnu.org>.
36644
36645 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36646
36647         Argp: fix recognition of short alias options.
36648
36649         * lib/argp-parse.c (convert_options): Fix improper use of
36650         `|' between character values.
36651         * tests/test-argp.c (group1_option): New alias option
36652         --read (-r).
36653         (group1_parser): Special handling for 'r'.
36654         (test15): New test case.
36655         (test_fun): Add test15.
36656         * tests/test-argp-2.sh: Update expected --help and --usage
36657         outputs.
36658
36659 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36660
36661         * tests/test-argp.c: Fix indentation.
36662
36663 2010-02-04  Eric Blake  <ebb9@byu.net>
36664
36665         gettimeofday: expose type of second argument
36666         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36667         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36668         * tests/test-gettimeofday.c: Use it to silence warning.
36669         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36670         the issue.
36671
36672 2010-02-03  Jim Meyering  <meyering@redhat.com>
36673
36674         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36675         * lib/regcomp.c (TYPE_SIGNED): Define.
36676         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36677
36678         regcomp.c: avoid a new -Wshadow warning
36679         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36680
36681 2010-02-01  Jim Meyering  <meyering@redhat.com>
36682
36683         removing useless parentheses in cpp #define directives
36684         For motivation, see commit c0221df4, "define STREQ(a,b)
36685         consistently, removing useless parentheses"
36686         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36687         * lib/mountlist.c (MNT_IGNORE): Likewise.
36688         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36689
36690 2010-02-01  Eric Blake  <ebb9@byu.net>
36691
36692         sys_time: use link-warning
36693         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36694         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36695         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36696         * modules/sys_time (Depends-on): Add warn-on-use.
36697         (Makefile.am): Always build replacement.
36698         (configure.ac): Update substitutions.
36699         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36700         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36701         bother with SYS_TIME_H.
36702         * modules/gettimeofday (configure.ac): Declare indicator.
36703         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36704         in use.
36705
36706         closein-tests: silence compiler warning
36707         * tests/test-closein.c (main): Ignore fread result.
36708         * modules/closein-tests (Depends-on): Add ignore-value.
36709
36710         tests: silence warning about system return
36711         * tests/test-areadlink-with-size.c (main): Ignore system result.
36712         * tests/test-areadlink.c (main): Likewise.
36713         * tests/test-areadlinkat-with-size.c (main): Likewise.
36714         * tests/test-areadlinkat.c (main): Likewise.
36715         * tests/test-canonicalize-lgpl.c (main): Likewise.
36716         * tests/test-canonicalize.c (main): Likewise.
36717         * tests/test-chown.c (main): Likewise.
36718         * tests/test-fchownat.c (main): Likewise.
36719         * tests/test-fdutimensat.c (main): Likewise.
36720         * tests/test-fstatat.c (main): Likewise.
36721         * tests/test-futimens.c (main): Likewise.
36722         * tests/test-lchown.c (main): Likewise.
36723         * tests/test-link.c (main): Likewise.
36724         * tests/test-linkat.c (main): Likewise.
36725         * tests/test-lstat.c (main): Likewise.
36726         * tests/test-mkdir.c (main): Likewise.
36727         * tests/test-mkdirat.c (main): Likewise.
36728         * tests/test-mkfifo.c (main): Likewise.
36729         * tests/test-mkfifoat.c (main): Likewise.
36730         * tests/test-mknod.c (main): Likewise.
36731         * tests/test-readlink.c (main): Likewise.
36732         * tests/test-remove.c (main): Likewise.
36733         * tests/test-rename.c (main): Likewise.
36734         * tests/test-renameat.c (main): Likewise.
36735         * tests/test-rmdir.c (main): Likewise.
36736         * tests/test-symlink.c (main): Likewise.
36737         * tests/test-symlinkat.c (main): Likewise.
36738         * tests/test-unlink.c (main): Likewise.
36739         * tests/test-unlinkat.c (main): Likewise.
36740         * tests/test-utimens.c (main): Likewise.
36741         * tests/test-utimensat.c (main): Likewise.
36742         * modules/areadlink-tests (Depends-on): Add ignore-value.
36743         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36744         * modules/areadlinkat-tests (Depends-on): Likewise.
36745         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36746         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36747         * modules/canonicalize-tests (Depends-on): Likewise.
36748         * modules/chown-tests (Depends-on): Likewise.
36749         * modules/fdutimensat-tests (Depends-on): Likewise.
36750         * modules/futimens-tests (Depends-on): Likewise.
36751         * modules/lchown-tests (Depends-on): Likewise.
36752         * modules/link-tests (Depends-on): Likewise.
36753         * modules/linkat-tests (Depends-on): Likewise.
36754         * modules/lstat-tests (Depends-on): Likewise.
36755         * modules/mkdir-tests (Depends-on): Likewise.
36756         * modules/mkfifo-tests (Depends-on): Likewise.
36757         * modules/mkfifoat-tests (Depends-on): Likewise.
36758         * modules/mknod-tests (Depends-on): Likewise.
36759         * modules/openat-tests (Depends-on): Likewise.
36760         * modules/readlink-tests (Depends-on): Likewise.
36761         * modules/remove-tests (Depends-on): Likewise.
36762         * modules/rename-tests (Depends-on): Likewise.
36763         * modules/renameat-tests (Depends-on): Likewise.
36764         * modules/rmdir-tests (Depends-on): Likewise.
36765         * modules/symlink-tests (Depends-on): Likewise.
36766         * modules/symlinkat-tests (Depends-on): Likewise.
36767         * modules/unlink-tests (Depends-on): Likewise.
36768         * modules/utimens-tests (Depends-on): Likewise.
36769         * modules/utimensat-tests (Depends-on): Likewise.
36770
36771 2010-01-31  Bruno Haible  <bruno@clisp.org>
36772
36773         Perform the same test for many <math.h> functions.
36774         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36775         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36776         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36777         of gl_MATHFUNC.
36778         * modules/acos (configure.ac): Likewise.
36779         * modules/asin (configure.ac): Likewise.
36780         * modules/atan (configure.ac): Likewise.
36781         * modules/atan2 (configure.ac): Likewise.
36782         * modules/cbrt (configure.ac): Likewise.
36783         * modules/copysign (configure.ac): Likewise.
36784         * modules/cos (configure.ac): Likewise.
36785         * modules/cosh (configure.ac): Likewise.
36786         * modules/erf (configure.ac): Likewise.
36787         * modules/erfc (configure.ac): Likewise.
36788         * modules/exp (configure.ac): Likewise.
36789         * modules/fmod (configure.ac): Likewise.
36790         * modules/hypot (configure.ac): Likewise.
36791         * modules/j0 (configure.ac): Likewise.
36792         * modules/j1 (configure.ac): Likewise.
36793         * modules/jn (configure.ac): Likewise.
36794         * modules/lgamma (configure.ac): Likewise.
36795         * modules/log (configure.ac): Likewise.
36796         * modules/log10 (configure.ac): Likewise.
36797         * modules/log1p (configure.ac): Likewise.
36798         * modules/pow (configure.ac): Likewise.
36799         * modules/remainder (configure.ac): Likewise.
36800         * modules/sin (configure.ac): Likewise.
36801         * modules/sinh (configure.ac): Likewise.
36802         * modules/tan (configure.ac): Likewise.
36803         * modules/tanh (configure.ac): Likewise.
36804         * modules/y0 (configure.ac): Likewise.
36805         * modules/y1 (configure.ac): Likewise.
36806         * modules/yn (configure.ac): Likewise.
36807         Suggested by Paolo Bonzini.
36808
36809 2010-01-31  Bruno Haible  <bruno@clisp.org>
36810
36811         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36812
36813 2010-01-31  Bruno Haible  <bruno@clisp.org>
36814
36815         Work around getdelim() bug on FreeBSD 8.0.
36816         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36817         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36818         not work.
36819         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36820         is 1.
36821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36822         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36823         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36824         a non-zero size.
36825         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36826
36827 2010-01-31  Bruno Haible  <bruno@clisp.org>
36828
36829         Work around getline() bug on FreeBSD 8.0.
36830         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36831         and a non-zero size.
36832         * tests/test-getline.c (main): Likewise.
36833         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36834         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36835
36836 2010-01-28  Eric Blake  <ebb9@byu.net>
36837
36838         regex: fix build failure
36839         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36840         platforms.
36841
36842 2010-01-28  Jim Meyering  <meyering@redhat.com>
36843
36844         regex: do not ignore memory allocation failure
36845         * lib/regex_internal.c (create_cd_newstate): Detect
36846         re_node_set_init_copy failure.   Extracted from glibc commit
36847         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36848
36849         regex: sync more white-space changes from libc
36850         * lib/regex_internal.c: White-space only changes.
36851         * lib/regexec.c: Likewise.
36852
36853         regex: add many uses of __attribute_warn_unused_result__
36854         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36855         * lib/regexec.c: Likewise.
36856         Extracted from a messy glibc commit.
36857
36858         regcomp.c: spelling and merge-artifact from glibc
36859         * lib/regcomp.c: Merge remainder of glibc's
36860         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36861
36862         regcomp.c: sync white-space changes from glibc
36863         * lib/regcomp.c: Merge to accommodate white space
36864         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36865
36866         regcomp.c: do not ignore internal return values
36867         * lib/regcomp.c: Do not ignore internal return values.
36868         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36869         but without its white-space changes and spelling fixes.
36870
36871         regex_internal.h: define __attribute_warn_unused_result__
36872         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36873
36874         maint: add a syntax-check rule to check for vulnerable Makefile.in
36875         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36876
36877 2010-01-27  Jim Meyering  <meyering@redhat.com>
36878
36879         ncftpput-ftp: clean up spaces
36880         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36881         Remove trailing blanks.
36882
36883 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36884
36885         * build-aux/git-version-gen: Fix copyright statement.
36886         * build-aux/gnupload: Likewise.
36887         * tests/test-arcfour.c: Likewise.
36888         * tests/test-arctwo.c: Likewise.
36889         * tests/test-count-one-bits.c: Likewise.
36890         * tests/test-crc.c: Likewise.
36891         * tests/test-des.c: Likewise.
36892         * tests/test-gc-arcfour.c: Likewise.
36893         * tests/test-gc-arctwo.c: Likewise.
36894         * tests/test-gc-des.c: Likewise.
36895         * tests/test-gc-hmac-md5.c: Likewise.
36896         * tests/test-gc-hmac-sha1.c: Likewise.
36897         * tests/test-gc-md2.c: Likewise.
36898         * tests/test-gc-md4.c: Likewise.
36899         * tests/test-gc-md5.c: Likewise.
36900         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36901         * tests/test-gc-rijndael.c: Likewise.
36902         * tests/test-gc-sha1.c: Likewise.
36903         * tests/test-gc.c: Likewise.
36904         * tests/test-gethostname.c: Likewise.
36905         * tests/test-gettimeofday.c: Likewise.
36906         * tests/test-hash.c: Likewise.
36907         * tests/test-hmac-md5.c: Likewise.
36908         * tests/test-hmac-sha1.c: Likewise.
36909         * tests/test-md2.c: Likewise.
36910         * tests/test-md4.c: Likewise.
36911         * tests/test-md5.c: Likewise.
36912         * tests/test-memchr.c: Likewise.
36913         * tests/test-memchr2.c: Likewise.
36914         * tests/test-memcmp.c: Likewise.
36915         * tests/test-memmem.c: Likewise.
36916         * tests/test-memrchr.c: Likewise.
36917         * tests/test-rawmemchr.c: Likewise.
36918         * tests/test-read-file.c: Likewise.
36919         * tests/test-rijndael.c: Likewise.
36920         * tests/test-sockets.c: Likewise.
36921         * tests/test-strchrnul.c: Likewise.
36922         * tests/test-strstr.c: Likewise.
36923         * tests/test-strtod.c: Likewise.
36924         * build-aux/ncftpput-ftp: Likewise.
36925
36926 2010-01-26  Eric Blake  <ebb9@byu.net>
36927
36928         ignore-value: update recommended header name
36929         * modules/ignore-value (Include): Only use <> for headers that
36930         exist in glibc.
36931
36932 2010-01-26  Jim Meyering  <meyering@redhat.com>
36933
36934         test-userspec.c: avoid compiler warnings
36935         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36936         and "initialization discards qualifiers..." warnings.
36937         Put the first "uid" in its own scope, and make char* members "const".
36938
36939 2010-01-25  Bruno Haible  <bruno@clisp.org>
36940
36941         gnulib-tool: Make warning diagnostics consistent.
36942         * gnulib-tool (func_warning): New function.
36943         Use it everywhere where gnulib-tool produces output to stderr and it is
36944         not a fatal error.
36945
36946 2010-01-25  Bruno Haible  <bruno@clisp.org>
36947
36948         Fix test dependencies.
36949         * modules/xstrtol-tests (Depends-on): Add inttypes.
36950         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36951
36952 2010-01-25 Pádraig Brady <P@draigBrady.com>
36953
36954         syntax-check: detect incorrect boolean macro values in config.h
36955         * modules/maintainer-makefile (configure.ac): Parameterize the location
36956         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36957         The logic is from Eric Blake and the location indicated by Jim Meyering.
36958         Note the more natural CONFIG_HEADER name is prohibited by automake
36959         for backwards compatibility reasons.
36960         * top/maint.mk (sc_Wundef_boolean): New rule.
36961
36962 2010-01-25  Jim Meyering  <meyering@redhat.com>
36963
36964         bootstrap: detect MacOS 10.6's shasum, too
36965         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36966         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36967
36968 2010-01-23  Jim Meyering  <meyering@redhat.com>
36969
36970         xstrtoll: new module
36971         * modules/xstrtoll: New file.
36972         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36973         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36974         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36975         ./configure fails if you use this module and lack "long long".
36976         * modules/xstrtoll-tests: New module.
36977         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36978         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36979         new init.sh-based test framework.
36980
36981 2010-01-24  Bruno Haible  <bruno@clisp.org>
36982
36983         Tests for module 'yn'.
36984         * modules/yn-tests: New file.
36985         * tests/test-yn.c: New file.
36986
36987         Tests for module 'y1'.
36988         * modules/y1-tests: New file.
36989         * tests/test-y1.c: New file.
36990
36991         Tests for module 'y0'.
36992         * modules/y0-tests: New file.
36993         * tests/test-y0.c: New file.
36994
36995         Tests for module 'tanh'.
36996         * modules/tanh-tests: New file.
36997         * tests/test-tanh.c: New file.
36998
36999         Tests for module 'tan'.
37000         * modules/tan-tests: New file.
37001         * tests/test-tan.c: New file.
37002
37003         Tests for module 'sqrt'.
37004         * modules/sqrt-tests: New file.
37005         * tests/test-sqrt.c: New file.
37006
37007         Tests for module 'sinh'.
37008         * modules/sinh-tests: New file.
37009         * tests/test-sinh.c: New file.
37010
37011         Tests for module 'sin'.
37012         * modules/sin-tests: New file.
37013         * tests/test-sin.c: New file.
37014
37015         Tests for module 'rint'.
37016         * modules/rint-tests: New file.
37017         * tests/test-rint.c: New file.
37018
37019         Tests for module 'remainder'.
37020         * modules/remainder-tests: New file.
37021         * tests/test-remainder.c: New file.
37022
37023         Tests for module 'pow'.
37024         * modules/pow-tests: New file.
37025         * tests/test-pow.c: New file.
37026
37027         Tests for module 'nextafter'.
37028         * modules/nextafter-tests: New file.
37029         * tests/test-nextafter.c: New file.
37030
37031         Tests for module 'modf'.
37032         * modules/modf-tests: New file.
37033         * tests/test-modf.c: New file.
37034
37035         Tests for module 'logb'.
37036         * modules/logb-tests: New file.
37037         * tests/test-logb.c: New file.
37038
37039         Tests for module 'log1p'.
37040         * modules/log1p-tests: New file.
37041         * tests/test-log1p.c: New file.
37042
37043         Tests for module 'log10'.
37044         * modules/log10-tests: New file.
37045         * tests/test-log10.c: New file.
37046
37047         Tests for module 'log'.
37048         * modules/log-tests: New file.
37049         * tests/test-log.c: New file.
37050
37051         Tests for module 'lgamma'.
37052         * modules/lgamma-tests: New file.
37053         * tests/test-lgamma.c: New file.
37054
37055         Tests for module 'ldexp'.
37056         * modules/ldexp-tests: New file.
37057         * tests/test-ldexp.c: New file.
37058
37059         Tests for module 'jn'.
37060         * modules/jn-tests: New file.
37061         * tests/test-jn.c: New file.
37062
37063         Tests for module 'j1'.
37064         * modules/j1-tests: New file.
37065         * tests/test-j1.c: New file.
37066
37067         Tests for module 'j0'.
37068         * modules/j0-tests: New file.
37069         * tests/test-j0.c: New file.
37070
37071         Tests for module 'hypot'.
37072         * modules/hypot-tests: New file.
37073         * tests/test-hypot.c: New file.
37074
37075         Tests for module 'fmod'.
37076         * modules/fmod-tests: New file.
37077         * tests/test-fmod.c: New file.
37078
37079         Tests for module 'fabs'.
37080         * modules/fabs-tests: New file.
37081         * tests/test-fabs.c: New file.
37082
37083         Tests for module 'exp'.
37084         * modules/exp-tests: New file.
37085         * tests/test-exp.c: New file.
37086
37087         Tests for module 'erfc'.
37088         * modules/erfc-tests: New file.
37089         * tests/test-erfc.c: New file.
37090
37091         Tests for module 'erf'.
37092         * modules/erf-tests: New file.
37093         * tests/test-erf.c: New file.
37094
37095         Tests for module 'cosh'.
37096         * modules/cosh-tests: New file.
37097         * tests/test-cosh.c: New file.
37098
37099         Tests for module 'cos'.
37100         * modules/cos-tests: New file.
37101         * tests/test-cos.c: New file.
37102
37103         Tests for module 'copysign'.
37104         * modules/copysign-tests: New file.
37105         * tests/test-copysign.c: New file.
37106
37107         Tests for module 'cbrt'.
37108         * modules/cbrt-tests: New file.
37109         * tests/test-cbrt.c: New file.
37110
37111         Tests for module 'atan2'.
37112         * modules/atan2-tests: New file.
37113         * tests/test-atan2.c: New file.
37114
37115         Tests for module 'atan'.
37116         * modules/atan-tests: New file.
37117         * tests/test-atan.c: New file.
37118
37119         Tests for module 'asin'.
37120         * modules/asin-tests: New file.
37121         * tests/test-asin.c: New file.
37122
37123         Tests for module 'acos'.
37124         * modules/acos-tests: New file.
37125         * tests/test-acos.c: New file.
37126
37127 2010-01-24  Bruno Haible  <bruno@clisp.org>
37128
37129         Fix tests for common <math.h> functions.
37130         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37131         code snippet that references the function pointer, rather than merely
37132         calling the function. Substitute the FUNC_LIBM variable.
37133         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37134         * modules/acos (configure.ac): Likewise.
37135         * modules/asin (configure.ac): Likewise.
37136         * modules/atan (configure.ac): Likewise.
37137         * modules/atan2 (configure.ac): Likewise.
37138         * modules/cbrt (configure.ac): Likewise.
37139         * modules/copysign (configure.ac): Likewise.
37140         * modules/cos (configure.ac): Likewise.
37141         * modules/cosh (configure.ac): Likewise.
37142         * modules/erf (configure.ac): Likewise.
37143         * modules/erfc (configure.ac): Likewise.
37144         * modules/exp (configure.ac): Likewise.
37145         * modules/fabs (configure.ac): Likewise.
37146         * modules/fmod (configure.ac): Likewise.
37147         * modules/hypot (configure.ac): Likewise.
37148         * modules/j0 (configure.ac): Likewise.
37149         * modules/j1 (configure.ac): Likewise.
37150         * modules/jn (configure.ac): Likewise.
37151         * modules/ldexp (configure.ac): Likewise.
37152         * modules/lgamma (configure.ac): Likewise.
37153         * modules/log (configure.ac): Likewise.
37154         * modules/log10 (configure.ac): Likewise.
37155         * modules/log1p (configure.ac): Likewise.
37156         * modules/logb (configure.ac): Likewise.
37157         * modules/modf (configure.ac): Likewise.
37158         * modules/nextafter (configure.ac): Likewise.
37159         * modules/pow (configure.ac): Likewise.
37160         * modules/remainder (configure.ac): Likewise.
37161         * modules/rint (configure.ac): Likewise.
37162         * modules/sin (configure.ac): Likewise.
37163         * modules/sinh (configure.ac): Likewise.
37164         * modules/tan (configure.ac): Likewise.
37165         * modules/tanh (configure.ac): Likewise.
37166         * modules/y0 (configure.ac): Likewise.
37167         * modules/y1 (configure.ac): Likewise.
37168         * modules/yn (configure.ac): Likewise.
37169
37170 2010-01-24  Bruno Haible  <bruno@clisp.org>
37171
37172         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37173         * tests/test-acosl.c (x): New variable.
37174         (main): Store argument in x and fetch it from x.
37175         * tests/test-asinl.c (x): New variable.
37176         (main): Store argument in x and fetch it from x.
37177         * tests/test-atanl.c (x): New variable.
37178         (main): Store argument in x and fetch it from x.
37179         * tests/test-cosl.c (x): New variable.
37180         (main): Store argument in x and fetch it from x.
37181         * tests/test-expl.c (x): New variable.
37182         (main): Store argument in x and fetch it from x.
37183         * tests/test-logl.c (x): New variable.
37184         (main): Store argument in x and fetch it from x.
37185         * tests/test-sinl.c (x): New variable.
37186         (main): Store argument in x and fetch it from x.
37187         * tests/test-sqrtl.c (x): New variable.
37188         (main): Store argument in x and fetch it from x.
37189         * tests/test-tanl.c (x): New variable.
37190         (main): Store argument in x and fetch it from x.
37191
37192 2010-01-24  Bruno Haible  <bruno@clisp.org>
37193
37194         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37195         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37196         assignments to the initial TESTS_ENVIRONMENT.
37197         * doc/gnulib.texi (Unit test modules): Document it.
37198         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37199         TESTS_ENVIRONMENT.
37200         * modules/btowc-tests (Makefile.am): Likewise.
37201         * modules/c-stack-tests (Makefile.am): Likewise.
37202         * modules/c-strcase-tests (Makefile.am): Likewise.
37203         * modules/copy-file-tests (Makefile.am): Likewise.
37204         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37205         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37206         * modules/mbrtowc-tests (Makefile.am): Likewise.
37207         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37208         * modules/mbscasestr-tests (Makefile.am): Likewise.
37209         * modules/mbschr-tests (Makefile.am): Likewise.
37210         * modules/mbscspn-tests (Makefile.am): Likewise.
37211         * modules/mbsinit-tests (Makefile.am): Likewise.
37212         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37213         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37214         * modules/mbspbrk-tests (Makefile.am): Likewise.
37215         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37216         * modules/mbsrchr-tests (Makefile.am): Likewise.
37217         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37218         * modules/mbsspn-tests (Makefile.am): Likewise.
37219         * modules/mbsstr-tests (Makefile.am): Likewise.
37220         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37221         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37222         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37223         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37224         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37225         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37226         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37227         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37228         * modules/wcrtomb-tests (Makefile.am): Likewise.
37229         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37230         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37231         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37232         assignments from TESTS_ENVIRONMENT.
37233         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37234         augmentation.
37235         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37236         * modules/atexit-tests (Makefile.am): Likewise.
37237         * modules/binary-io-tests (Makefile.am): Likewise.
37238         * modules/closein-tests (Makefile.am): Likewise.
37239         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37240         * modules/exclude-tests (Makefile.am): Likewise.
37241         * modules/fflush-tests (Makefile.am): Likewise.
37242         * modules/fpending-tests (Makefile.am): Likewise.
37243         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37244         * modules/freadahead-tests (Makefile.am): Likewise.
37245         * modules/freadptr-tests (Makefile.am): Likewise.
37246         * modules/freadseek-tests (Makefile.am): Likewise.
37247         * modules/fseek-tests (Makefile.am): Likewise.
37248         * modules/fseeko-tests (Makefile.am): Likewise.
37249         * modules/ftell-tests (Makefile.am): Likewise.
37250         * modules/ftello-tests (Makefile.am): Likewise.
37251         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37252         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37253         * modules/lseek-tests (Makefile.am): Likewise.
37254         * modules/parse-duration-tests (Makefile.am): Likewise.
37255         * modules/perror-tests (Makefile.am): Likewise.
37256         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37257         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37258         * modules/pipe-tests (Makefile.am): Likewise.
37259         * modules/pread-tests (Makefile.am): Likewise.
37260         * modules/printf-posix-tests (Makefile.am): Likewise.
37261         * modules/select-tests (Makefile.am): Likewise.
37262         * modules/sigpipe-tests (Makefile.am): Likewise.
37263         * modules/tsearch-tests (Makefile.am): Likewise.
37264         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37265         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37266         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37267         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37268         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37269         * modules/version-etc-tests (Makefile.am): Likewise.
37270         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37271         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37272         * modules/xalloc-die-tests (Makefile.am): Likewise.
37273         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37274         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37275         * modules/xstrtol-tests (Makefile.am): Likewise.
37276         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37277         * modules/yesno-tests (Makefile.am): Likewise.
37278         Suggested by Jim Meyering.
37279
37280 2010-01-24  Bruno Haible  <bruno@clisp.org>
37281
37282         More documentation.
37283         * doc/gnulib.texi (Writing modules): New chapter.
37284         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37285         the new chapter.
37286
37287 2010-01-24  Jim Meyering  <meyering@redhat.com>
37288
37289         maint.mk: do not prepend "./" after filtering
37290         * top/maint.mk (_prepend_srcdir_prefix): New variable
37291         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37292         "./" when $(srcdir) is ".".
37293
37294         define STREQ(a,b) consistently, removing useless parentheses
37295         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37296         since the only risk is that "a" or "b" contains an unparenthesized
37297         comma, but if either did that, STREQ would have 3 or more arguments.
37298         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37299         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37300         * lib/hash-triple.c (STREQ): Likewise.
37301         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37302         * lib/getugroups.c (STREQ): Likewise.
37303
37304 2010-01-23  Jim Meyering  <meyering@redhat.com>
37305
37306         maint.mk: fix syntax-check in a non-srcdir build directory
37307         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37308         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37309
37310 2010-01-22  Jim Meyering  <meyering@redhat.com>
37311
37312         userspec: add unit tests
37313         * tests/test-userspec.c: New file.
37314         * modules/userspec-tests: Likewise.
37315
37316 2010-01-21  Jim Meyering  <meyering@redhat.com>
37317
37318         maint.mk: handle source file names containing "." robustly
37319         * top/maint.mk (_dot_escaped_srcdir): Define.
37320         (VC_LIST): Use it in LHS of sed substitution.
37321
37322 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37323
37324         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37325         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37326         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37327         from a non-srcdir build.
37328
37329 2010-01-20  Eric Blake  <ebb9@byu.net>
37330
37331         warn-on-use: use instead of link-warning
37332         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37333         * modules/unistd (Depends-on, Makefile.am): Likewise.
37334         * modules/arpa_inet (Depends-on): Replace link-warning with
37335         warn-on-use.
37336         (Makefile.am): Update rules accordingly.
37337         * modules/ctype (Depends-on, Makefile.am): Likewise.
37338         * modules/dirent (Depends-on, Makefile.am): Likewise.
37339         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37340         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37341         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37342         * modules/locale (Depends-on, Makefile.am): Likewise.
37343         * modules/math (Depends-on, Makefile.am): Likewise.
37344         * modules/search (Depends-on, Makefile.am): Likewise.
37345         * modules/signal (Depends-on, Makefile.am): Likewise.
37346         * modules/spawn (Depends-on, Makefile.am): Likewise.
37347         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37348         * modules/string (Depends-on, Makefile.am): Likewise.
37349         * modules/strings (Depends-on, Makefile.am): Likewise.
37350         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37351         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37352         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37353         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37354         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37355         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37356         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37357         * modules/wchar (Depends-on, Makefile.am): Likewise.
37358         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37359         should be poisoned.
37360         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37361         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37362         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37363         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37364         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37365         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37366         * m4/math_h.m4 (gl_MATH_H): Likewise.
37367         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37368         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37369         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37370         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37371         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37372         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37373         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37374         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37375         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37376         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37378         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37379         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37380         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37381         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37382         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37383         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37384         GL_LINK_WARNING.
37385         * lib/ctype.in.h: Likewise.
37386         * lib/dirent.in.h: Likewise.
37387         * lib/fcntl.in.h: Likewise.
37388         * lib/inttypes.in.h: Likewise.
37389         * lib/langinfo.in.h: Likewise.
37390         * lib/locale.in.h: Likewise.
37391         * lib/math.in.h: Likewise.
37392         * lib/search.in.h: Likewise.
37393         * lib/signal.in.h: Likewise.
37394         * lib/spawn.in.h: Likewise.
37395         * lib/stdio.in.h: Likewise.
37396         * lib/stdlib.in.h: Likewise.
37397         * lib/string.in.h: Likewise.
37398         * lib/strings.in.h: Likewise.
37399         * lib/sys_file.in.h: Likewise.
37400         * lib/sys_ioctl.in.h: Likewise.
37401         * lib/sys_select.in.h: Likewise.
37402         * lib/sys_socket.in.h: Likewise.
37403         * lib/sys_stat.in.h: Likewise.
37404         * lib/sys_times.in.h: Likewise.
37405         * lib/sys_utsname.in.h: Likewise.
37406         * lib/unistd.in.h: Likewise.
37407         * lib/wchar.in.h: Likewise.
37408
37409 2010-01-20  Bruno Haible  <bruno@clisp.org>
37410
37411         Avoid duplicate -lm.
37412         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37413         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37414         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37415         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37416         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37417         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37418         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37419         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37420         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37421         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37422         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37423         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37424         Reported by Paolo Bonzini.
37425
37426 2010-01-19  Bruno Haible  <bruno@clisp.org>
37427
37428         langinfo, nl_langinfo: Relicense under LGPLv2+.
37429         * modules/langinfo (License): Change to LGPLv2+.
37430         * modules/nl_langinfo (License): Likewise.
37431         Patch by David Lutterkort <lutter@redhat.com>.
37432
37433 2010-01-19  Bruno Haible  <bruno@clisp.org>
37434
37435         Avoid compilation error with cc on OSF/1 5.1.
37436         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37437         statement, not before.
37438         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37439
37440 2010-01-18  Bruno Haible  <bruno@clisp.org>
37441
37442         Avoid a link error due to the __printf__ symbol.
37443         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37444         and 2.6.x.
37445         (__format__, __printf__): Remove definitions.
37446         * lib/argp-fmtstream.h: Likewise.
37447         * lib/argp.h: Likewise.
37448         * lib/error.h: Likewise.
37449         * lib/vasnprintf.h: Likewise.
37450         * lib/xprintf.h: Likewise.
37451         * lib/xvasprintf.h: Likewise.
37452         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37453
37454 2010-01-18  Bruno Haible  <bruno@clisp.org>
37455
37456         Tests for module 'tanl'.
37457         * modules/tanl-tests: New file.
37458         * tests/test-tanl.c: New file.
37459
37460         Tests for module 'sqrtl'.
37461         * modules/sqrtl-tests: New file.
37462         * tests/test-sqrtl.c: New file.
37463
37464         Tests for module 'sinl'.
37465         * modules/sinl-tests: New file.
37466         * tests/test-sinl.c: New file.
37467
37468         Tests for module 'logl'.
37469         * modules/logl-tests: New file.
37470         * tests/test-logl.c: New file.
37471
37472         Tests for module 'expl'.
37473         * modules/expl-tests: New file.
37474         * tests/test-expl.c: New file.
37475
37476         Tests for module 'cosl'.
37477         * modules/cosl-tests: New file.
37478         * tests/test-cosl.c: New file.
37479
37480         Tests for module 'atanl'.
37481         * modules/atanl-tests: New file.
37482         * tests/test-atanl.c: New file.
37483
37484         Tests for module 'asinl'.
37485         * modules/asinl-tests: New file.
37486         * tests/test-asinl.c: New file.
37487
37488         Tests for module 'acosl'.
37489         * modules/acosl-tests: New file.
37490         * tests/test-acosl.c: New file.
37491
37492         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37493         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37494         tanl): Use the standard gnulib idiom.
37495         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37496         * lib/sinl.c: Likewise.
37497         * lib/tanl.c: Don't include trigl.c.
37498         (kernel_tanl): Make static.
37499         * lib/sincosl.c: Include trigl.h first.
37500         * lib/trigl.c: Likewise.
37501         * m4/acosl.m4: New file.
37502         * m4/asinl.m4: New file.
37503         * m4/atanl.m4: New file.
37504         * m4/cosl.m4: New file.
37505         * m4/expl.m4: New file.
37506         * m4/logl.m4: New file.
37507         * m4/sinl.m4: New file.
37508         * m4/sqrtl.m4: New file.
37509         * m4/tanl.m4: New file.
37510         * m4/mathl.m4: Remove file.
37511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37512         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37513         Don't initialize GNULIB_MATHL.
37514         * modules/acosl: New file.
37515         * modules/asinl: New file.
37516         * modules/atanl: New file.
37517         * modules/cosl: New file.
37518         * modules/expl: New file.
37519         * modules/logl: New file.
37520         * modules/sinl: New file.
37521         * modules/sqrtl: New file.
37522         * modules/tanl: New file.
37523         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37524         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37525         substitute GNULIB_MATHL.
37526         * modules/mathl: Rewritten.
37527         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37528         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37529         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37530         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37531         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37532         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37533         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37534         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37535         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37536
37537 2010-01-18  Bruno Haible  <bruno@clisp.org>
37538
37539         sqrt: Make gl_FUNC_SQRT requirable.
37540         * m4/sqrt.m4: New file.
37541         * modules/sqrt (Files): Add it.
37542         (configure.ac): Invoke gl_FUNC_SQRT.
37543
37544 2010-01-18  Bruno Haible  <bruno@clisp.org>
37545
37546         New modules for common <math.h> functions.
37547         * m4/mathfunc.m4: New file.
37548         * modules/acos: New file.
37549         * modules/asin: New file.
37550         * modules/atan: New file.
37551         * modules/atan2: New file.
37552         * modules/cbrt: New file.
37553         * modules/copysign: New file.
37554         * modules/cos: New file.
37555         * modules/cosh: New file.
37556         * modules/erf: New file.
37557         * modules/erfc: New file.
37558         * modules/exp: New file.
37559         * modules/fabs: New file.
37560         * modules/fmod: New file.
37561         * modules/hypot: New file.
37562         * modules/j0: New file.
37563         * modules/j1: New file.
37564         * modules/jn: New file.
37565         * modules/ldexp: New file.
37566         * modules/lgamma: New file.
37567         * modules/log: New file.
37568         * modules/log10: New file.
37569         * modules/log1p: New file.
37570         * modules/logb: New file.
37571         * modules/modf: New file.
37572         * modules/nextafter: New file.
37573         * modules/pow: New file.
37574         * modules/remainder: New file.
37575         * modules/rint: New file.
37576         * modules/sin: New file.
37577         * modules/sinh: New file.
37578         * modules/sqrt: New file.
37579         * modules/tan: New file.
37580         * modules/tanh: New file.
37581         * modules/y0: New file.
37582         * modules/y1: New file.
37583         * modules/yn: New file.
37584         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37585         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37586         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37587         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37588         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37589         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37590         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37591         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37592         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37593         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37594         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37595         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37596         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37597         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37598         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37599         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37600         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37601         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37602         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37603         * doc/posix-functions/log.texi: Mention the 'log' module.
37604         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37605         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37606         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37607         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37608         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37609         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37610         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37611         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37612         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37613         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37614         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37615         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37616         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37617         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37618         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37619         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37620
37621 2010-01-18  Jim Meyering  <meyering@redhat.com>
37622
37623         ignore-value: relax license to LGPLv2+
37624         * modules/ignore-value (License): Relax to LGPLv2+.
37625
37626         getdate: don't leak when TZ contains two or more '"'s
37627         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37628         double quote in TZ after the first one.
37629
37630         readtokens: do not leak internal token_lengths buffer
37631         * lib/readtokens.c (readtokens): Free the local, lengths,
37632         when the supplied "token_lengths" parameter is NULL.
37633
37634 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37635
37636         Fix a couple of missing LIBTHREAD link failures on AIX.
37637         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37638         $(LIBTHREAD).
37639         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37640
37641         Link test-poll against INET_PTON_LIB.
37642         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37643         for inet_pton on Solaris 10.
37644
37645 2010-01-17  Bruno Haible  <bruno@clisp.org>
37646
37647         unistdio/*-sprintf: Fix typo in module description.
37648         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37649         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37650         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37651         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37652         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37653         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37654         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37655         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37656
37657 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37658
37659         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37660         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37661         variables in shell case patterns, for AIX and HP-UX ksh.
37662
37663         Split large sed scripts, for HP-UX sed.
37664         * modules/stdio: Split sed scripts around 50 sed commands,
37665         to avoid HP-UX limit of 99 commands, in the near future.
37666         * modules/string: Likewise.
37667         * modules/unistd: Likewise.
37668
37669         gnulib-tool: avoid writing in the current directory.
37670         * gnulib-tool (func_emit_lib_Makefile_am)
37671         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37672         not in the current directory, so concurrent gnulib-tool
37673         instances do not interfere.
37674
37675 2010-01-16  Jim Meyering  <meyering@redhat.com>
37676
37677         doc: update users.txt
37678         * users.txt: Add grep.
37679         (diffutils, gzip): Update URLs.
37680
37681 2010-01-12  Bruno Haible  <bruno@clisp.org>
37682
37683         posix_spawn: Avoid test failure on Cygwin.
37684         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37685         characters.
37686         Reported by Simon Josefsson.
37687
37688 2010-01-12  Bruno Haible  <bruno@clisp.org>
37689
37690         * tests/test-cond.c (main): When skipping the test, show the reason.
37691
37692 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37693
37694         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37695
37696 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37697
37698         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37699         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37700
37701 2010-01-12  Eric Blake  <ebb9@byu.net>
37702
37703         build: guarantee AS_VAR_IF
37704         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37705         (gl_AS_VAR_IF): Move...
37706         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37707         Reported by Simon Josefsson.
37708
37709 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37710
37711         * lib/stdio.in.h: Fix typo.
37712
37713 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37714
37715         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37716         libgpg-error.
37717
37718 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37719
37720         * tests/test-xalloc-die.sh: Use $EXEEXT.
37721
37722 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37723             Bruno Haible  <bruno@clisp.org>
37724
37725         getlogin, getlogin_r: Avoid test failure.
37726         * tests/test-getlogin.c: Include <stdio.h>.
37727         (main): Skip the test when the function fails because stdin is not a
37728         tty.
37729         * tests/test-getlogin_r.c: Include <stdio.h>.
37730         (main): Skip the test when the function fails because stdin is not a
37731         tty.
37732
37733 2010-01-11  Eric Blake  <ebb9@byu.net>
37734
37735         tests: avoid more large file warnings
37736         * tests/test-fflush.c: Avoid warning about ftell use.
37737         * tests/test-fseek.c: Avoid warning about fseek use.
37738
37739 2010-01-10  Bruno Haible  <bruno@clisp.org>
37740
37741         nproc: Work better on Linux when /proc and /sys are not mounted.
37742         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37743         as lower bound when, on glibc/Linux systems,
37744         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37745         Suggested by Pádraig Brady <P@draigbrady.com>.
37746         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37747
37748         nproc: Refactor.
37749         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37750         extracted from num_processors.
37751         (num_processors): Call it.
37752
37753 2010-01-11  Jim Meyering  <meyering@redhat.com>
37754
37755         utimecmp: avoid new warning from upcoming gcc-4.5.0
37756         * lib/utimecmp.c (BILLION): Define using #define rather than an
37757         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37758
37759 2010-01-11  Eric Blake  <ebb9@byu.net>
37760
37761         math: add portability warnings for classification macros
37762         * modules/math (Depends-on): Add warn-on-use.
37763         (Makefile.am): Provide new substitutions.
37764         * m4/math_h.m4 (gl_MATH_H): Require inline.
37765         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37766         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37767         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37768         implement warnings.
37769
37770         unistd: warn on use of environ without module
37771         * modules/unistd (Depends-on): Add warn-on-use.
37772         (Makefile.am): Provide new substitutions.
37773         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37774         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37775
37776         stdio: warn on suspicious uses
37777         * modules/stdio (Depends-on): Add warn-on-use.
37778         (Makefile.am): Provide new substitutions.
37779         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37780         fseeko.
37781         * lib/stdio.in.h (gets): Always warn on use.
37782         (fseek, ftell): Adjust when warnings are issued, and honor
37783         _GL_NO_LARGE_FILES as a way to silence the warning.
37784         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37785         any warning about large file offsets.
37786         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37787         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37788         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37789         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37790         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37791         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37792         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37793         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37794
37795         warn-on-use: new module
37796         * modules/warn-on-use: New file.
37797         * build-aux/warn-on-use.h: Likewise.
37798         * m4/warn-on-use.m4: Likewise.
37799         * MODULES.html.sh (Support for building): Mention it.
37800
37801 2010-01-10  Bruno Haible  <bruno@clisp.org>
37802
37803         Tests for module 'unistr/u32-strdup'.
37804         * modules/unistr/u32-strdup-tests: New file.
37805         * tests/unistr/test-u32-strdup.c: New file.
37806
37807         Tests for module 'unistr/u16-strdup'.
37808         * modules/unistr/u16-strdup-tests: New file.
37809         * tests/unistr/test-u16-strdup.c: New file.
37810
37811         Tests for module 'unistr/u8-strdup'.
37812         * modules/unistr/u8-strdup-tests: New file.
37813         * tests/unistr/test-u8-strdup.c: New file.
37814         * tests/unistr/test-strdup.h: New file.
37815
37816         Tests for module 'unistr/u32-strncmp'.
37817         * modules/unistr/u32-strncmp-tests: New file.
37818         * tests/unistr/test-u32-strncmp.c: New file.
37819
37820         Tests for module 'unistr/u16-strncmp'.
37821         * modules/unistr/u16-strncmp-tests: New file.
37822         * tests/unistr/test-u16-strncmp.c: New file.
37823
37824         Tests for module 'unistr/u8-strncmp'.
37825         * modules/unistr/u8-strncmp-tests: New file.
37826         * tests/unistr/test-u8-strncmp.c: New file.
37827         * tests/unistr/test-strncmp.h: New file.
37828
37829         Tests for module 'unistr/u32-strcoll'.
37830         * modules/unistr/u32-strcoll-tests: New file.
37831         * tests/unistr/test-u32-strcoll.c: New file.
37832
37833         Tests for module 'unistr/u16-strcoll'.
37834         * modules/unistr/u16-strcoll-tests: New file.
37835         * tests/unistr/test-u16-strcoll.c: New file.
37836
37837         Tests for module 'unistr/u8-strcoll'.
37838         * modules/unistr/u8-strcoll-tests: New file.
37839         * tests/unistr/test-u8-strcoll.c: New file.
37840
37841         Tests for module 'unistr/u32-strcmp'.
37842         * modules/unistr/u32-strcmp-tests: New file.
37843         * tests/unistr/test-u32-strcmp.c: New file.
37844         * tests/unistr/test-u32-strcmp.h: New file.
37845
37846         Tests for module 'unistr/u16-strcmp'.
37847         * modules/unistr/u16-strcmp-tests: New file.
37848         * tests/unistr/test-u16-strcmp.c: New file.
37849         * tests/unistr/test-u16-strcmp.h: New file.
37850
37851         Tests for module 'unistr/u8-strcmp'.
37852         * modules/unistr/u8-strcmp-tests: New file.
37853         * tests/unistr/test-u8-strcmp.c: New file.
37854         * tests/unistr/test-u8-strcmp.h: New file.
37855         * tests/unistr/test-strcmp.h: New file.
37856
37857         Tests for module 'unistr/u32-strncat'.
37858         * modules/unistr/u32-strncat-tests: New file.
37859         * tests/unistr/test-u32-strncat.c: New file.
37860
37861         Tests for module 'unistr/u16-strncat'.
37862         * modules/unistr/u16-strncat-tests: New file.
37863         * tests/unistr/test-u16-strncat.c: New file.
37864
37865         Tests for module 'unistr/u8-strncat'.
37866         * modules/unistr/u8-strncat-tests: New file.
37867         * tests/unistr/test-u8-strncat.c: New file.
37868         * tests/unistr/test-strncat.h: New file.
37869
37870         Tests for module 'unistr/u32-strcat'.
37871         * modules/unistr/u32-strcat-tests: New file.
37872         * tests/unistr/test-u32-strcat.c: New file.
37873
37874         Tests for module 'unistr/u16-strcat'.
37875         * modules/unistr/u16-strcat-tests: New file.
37876         * tests/unistr/test-u16-strcat.c: New file.
37877
37878         Tests for module 'unistr/u8-strcat'.
37879         * modules/unistr/u8-strcat-tests: New file.
37880         * tests/unistr/test-u8-strcat.c: New file.
37881         * tests/unistr/test-strcat.h: New file.
37882
37883         Tests for module 'unistr/u32-stpncpy'.
37884         * modules/unistr/u32-stpncpy-tests: New file.
37885         * tests/unistr/test-u32-stpncpy.c: New file.
37886
37887         Tests for module 'unistr/u16-stpncpy'.
37888         * modules/unistr/u16-stpncpy-tests: New file.
37889         * tests/unistr/test-u16-stpncpy.c: New file.
37890
37891         Tests for module 'unistr/u8-stpncpy'.
37892         * modules/unistr/u8-stpncpy-tests: New file.
37893         * tests/unistr/test-u8-stpncpy.c: New file.
37894         * tests/unistr/test-stpncpy.h: New file.
37895
37896         Tests for module 'unistr/u32-strncpy'.
37897         * modules/unistr/u32-strncpy-tests: New file.
37898         * tests/unistr/test-u32-strncpy.c: New file.
37899
37900         Tests for module 'unistr/u16-strncpy'.
37901         * modules/unistr/u16-strncpy-tests: New file.
37902         * tests/unistr/test-u16-strncpy.c: New file.
37903
37904         Tests for module 'unistr/u8-strncpy'.
37905         * modules/unistr/u8-strncpy-tests: New file.
37906         * tests/unistr/test-u8-strncpy.c: New file.
37907         * tests/unistr/test-strncpy.h: New file.
37908
37909         Tests for module 'unistr/u32-stpcpy'.
37910         * modules/unistr/u32-stpcpy-tests: New file.
37911         * tests/unistr/test-u32-stpcpy.c: New file.
37912
37913         Tests for module 'unistr/u16-stpcpy'.
37914         * modules/unistr/u16-stpcpy-tests: New file.
37915         * tests/unistr/test-u16-stpcpy.c: New file.
37916
37917         Tests for module 'unistr/u8-stpcpy'.
37918         * modules/unistr/u8-stpcpy-tests: New file.
37919         * tests/unistr/test-u8-stpcpy.c: New file.
37920         * tests/unistr/test-stpcpy.h: New file.
37921
37922         Tests for module 'unistr/u32-strcpy'.
37923         * modules/unistr/u32-strcpy-tests: New file.
37924         * tests/unistr/test-u32-strcpy.c: New file.
37925
37926         Tests for module 'unistr/u16-strcpy'.
37927         * modules/unistr/u16-strcpy-tests: New file.
37928         * tests/unistr/test-u16-strcpy.c: New file.
37929
37930         Tests for module 'unistr/u8-strcpy'.
37931         * modules/unistr/u8-strcpy-tests: New file.
37932         * tests/unistr/test-u8-strcpy.c: New file.
37933         * tests/unistr/test-strcpy.h: New file.
37934
37935         Tests for module 'unistr/u32-strnlen'.
37936         * modules/unistr/u32-strnlen-tests: New file.
37937         * tests/unistr/test-u32-strnlen.c: New file.
37938
37939         Tests for module 'unistr/u16-strnlen'.
37940         * modules/unistr/u16-strnlen-tests: New file.
37941         * tests/unistr/test-u16-strnlen.c: New file.
37942
37943         Tests for module 'unistr/u8-strnlen'.
37944         * modules/unistr/u8-strnlen-tests: New file.
37945         * tests/unistr/test-u8-strnlen.c: New file.
37946         * tests/unistr/test-strnlen.h: New file.
37947
37948         Tests for module 'unistr/u32-strlen'.
37949         * modules/unistr/u32-strlen-tests: New file.
37950         * tests/unistr/test-u32-strlen.c: New file.
37951
37952         Tests for module 'unistr/u16-strlen'.
37953         * modules/unistr/u16-strlen-tests: New file.
37954         * tests/unistr/test-u16-strlen.c: New file.
37955
37956         Tests for module 'unistr/u8-strlen'.
37957         * modules/unistr/u8-strlen-tests: New file.
37958         * tests/unistr/test-u8-strlen.c: New file.
37959
37960         Tests for module 'unistr/u32-prev'.
37961         * modules/unistr/u32-prev-tests: New file.
37962         * tests/unistr/test-u32-prev.c: New file.
37963
37964         Tests for module 'unistr/u16-prev'.
37965         * modules/unistr/u16-prev-tests: New file.
37966         * tests/unistr/test-u16-prev.c: New file.
37967
37968         Tests for module 'unistr/u8-prev'.
37969         * modules/unistr/u8-prev-tests: New file.
37970         * tests/unistr/test-u8-prev.c: New file.
37971
37972         Tests for module 'unistr/u32-next'.
37973         * modules/unistr/u32-next-tests: New file.
37974         * tests/unistr/test-u32-next.c: New file.
37975
37976         Tests for module 'unistr/u16-next'.
37977         * modules/unistr/u16-next-tests: New file.
37978         * tests/unistr/test-u16-next.c: New file.
37979
37980         Tests for module 'unistr/u8-next'.
37981         * modules/unistr/u8-next-tests: New file.
37982         * tests/unistr/test-u8-next.c: New file.
37983
37984         Tests for module 'unistr/u32-strmbtouc'.
37985         * modules/unistr/u32-strmbtouc-tests: New file.
37986         * tests/unistr/test-u32-strmbtouc.c: New file.
37987
37988         Tests for module 'unistr/u16-strmbtouc'.
37989         * modules/unistr/u16-strmbtouc-tests: New file.
37990         * tests/unistr/test-u16-strmbtouc.c: New file.
37991
37992         Tests for module 'unistr/u8-strmbtouc'.
37993         * modules/unistr/u8-strmbtouc-tests: New file.
37994         * tests/unistr/test-u8-strmbtouc.c: New file.
37995
37996         Tests for module 'unistr/u32-strmblen'.
37997         * modules/unistr/u32-strmblen-tests: New file.
37998         * tests/unistr/test-u32-strmblen.c: New file.
37999
38000         Tests for module 'unistr/u16-strmblen'.
38001         * modules/unistr/u16-strmblen-tests: New file.
38002         * tests/unistr/test-u16-strmblen.c: New file.
38003
38004         Tests for module 'unistr/u8-strmblen'.
38005         * modules/unistr/u8-strmblen-tests: New file.
38006         * tests/unistr/test-u8-strmblen.c: New file.
38007
38008         Tests for module 'unistr/u32-cpy-alloc'.
38009         * modules/unistr/u32-cpy-alloc-tests: New file.
38010         * tests/unistr/test-u32-cpy-alloc.c: New file.
38011
38012         Tests for module 'unistr/u16-cpy-alloc'.
38013         * modules/unistr/u16-cpy-alloc-tests: New file.
38014         * tests/unistr/test-u16-cpy-alloc.c: New file.
38015
38016         Tests for module 'unistr/u8-cpy-alloc'.
38017         * modules/unistr/u8-cpy-alloc-tests: New file.
38018         * tests/unistr/test-u8-cpy-alloc.c: New file.
38019         * tests/unistr/test-cpy-alloc.h: New file.
38020
38021         Tests for module 'unistr/u32-mbsnlen'.
38022         * modules/unistr/u32-mbsnlen-tests: New file.
38023         * tests/unistr/test-u32-mbsnlen.c: New file.
38024
38025         Tests for module 'unistr/u16-mbsnlen'.
38026         * modules/unistr/u16-mbsnlen-tests: New file.
38027         * tests/unistr/test-u16-mbsnlen.c: New file.
38028
38029         Tests for module 'unistr/u8-mbsnlen'.
38030         * modules/unistr/u8-mbsnlen-tests: New file.
38031         * tests/unistr/test-u8-mbsnlen.c: New file.
38032
38033         Tests for module 'unistr/u32-chr'.
38034         * modules/unistr/u32-chr-tests: New file.
38035         * tests/unistr/test-u32-chr.c: New file.
38036
38037         Tests for module 'unistr/u16-chr'.
38038         * modules/unistr/u16-chr-tests: New file.
38039         * tests/unistr/test-u16-chr.c: New file.
38040
38041         Tests for module 'unistr/u8-chr'.
38042         * modules/unistr/u8-chr-tests: New file.
38043         * tests/unistr/test-u8-chr.c: New file.
38044         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38045
38046         Tests for module 'unistr/u32-cmp2'.
38047         * modules/unistr/u32-cmp2-tests: New file.
38048         * tests/unistr/test-u32-cmp2.c: New file.
38049
38050         Tests for module 'unistr/u16-cmp2'.
38051         * modules/unistr/u16-cmp2-tests: New file.
38052         * tests/unistr/test-u16-cmp2.c: New file.
38053
38054         Tests for module 'unistr/u8-cmp2'.
38055         * modules/unistr/u8-cmp2-tests: New file.
38056         * tests/unistr/test-u8-cmp2.c: New file.
38057         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38058
38059         Tests for module 'unistr/u32-cmp'.
38060         * modules/unistr/u32-cmp-tests: New file.
38061         * tests/unistr/test-u32-cmp.c: New file.
38062
38063         Tests for module 'unistr/u16-cmp'.
38064         * modules/unistr/u16-cmp-tests: New file.
38065         * tests/unistr/test-u16-cmp.c: New file.
38066
38067         Tests for module 'unistr/u8-cmp'.
38068         * modules/unistr/u8-cmp-tests: New file.
38069         * tests/unistr/test-u8-cmp.c: New file.
38070         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38071
38072         Tests for module 'unistr/u32-set'.
38073         * modules/unistr/u32-set-tests: New file.
38074         * tests/unistr/test-u32-set.c: New file.
38075
38076         Tests for module 'unistr/u16-set'.
38077         * modules/unistr/u16-set-tests: New file.
38078         * tests/unistr/test-u16-set.c: New file.
38079
38080         Tests for module 'unistr/u8-set'.
38081         * modules/unistr/u8-set-tests: New file.
38082         * tests/unistr/test-u8-set.c: New file.
38083         * tests/unistr/test-set.h: New file.
38084
38085         Tests for module 'unistr/u32-move'.
38086         * modules/unistr/u32-move-tests: New file.
38087         * tests/unistr/test-u32-move.c: New file.
38088
38089         Tests for module 'unistr/u16-move'.
38090         * modules/unistr/u16-move-tests: New file.
38091         * tests/unistr/test-u16-move.c: New file.
38092
38093         Tests for module 'unistr/u8-move'.
38094         * modules/unistr/u8-move-tests: New file.
38095         * tests/unistr/test-u8-move.c: New file.
38096         * tests/unistr/test-move.h: New file.
38097
38098         Tests for module 'unistr/u32-cpy'.
38099         * modules/unistr/u32-cpy-tests: New file.
38100         * tests/unistr/test-u32-cpy.c: New file.
38101
38102         Tests for module 'unistr/u16-cpy'.
38103         * modules/unistr/u16-cpy-tests: New file.
38104         * tests/unistr/test-u16-cpy.c: New file.
38105
38106         Tests for module 'unistr/u8-cpy'.
38107         * modules/unistr/u8-cpy-tests: New file.
38108         * tests/unistr/test-u8-cpy.c: New file.
38109         * tests/unistr/test-cpy.h: New file.
38110
38111 2010-01-09  Bruno Haible  <bruno@clisp.org>
38112
38113         Tests for module 'unistr/u32-uctomb'.
38114         * modules/unistr/u32-uctomb-tests: New file.
38115         * tests/unistr/test-u32-uctomb.c: New file.
38116
38117         Tests for module 'unistr/u16-uctomb'.
38118         * modules/unistr/u16-uctomb-tests: New file.
38119         * tests/unistr/test-u16-uctomb.c: New file.
38120
38121         Tests for module 'unistr/u8-uctomb'.
38122         * modules/unistr/u8-uctomb-tests: New file.
38123         * tests/unistr/test-u8-uctomb.c: New file.
38124
38125         Tests for module 'unistr/u32-mbtoucr'.
38126         * modules/unistr/u32-mbtoucr-tests: New file.
38127         * tests/unistr/test-u32-mbtoucr.c: New file.
38128
38129         Tests for module 'unistr/u16-mbtoucr'.
38130         * modules/unistr/u16-mbtoucr-tests: New file.
38131         * tests/unistr/test-u16-mbtoucr.c: New file.
38132
38133         Tests for module 'unistr/u8-mbtoucr'.
38134         * modules/unistr/u8-mbtoucr-tests: New file.
38135         * tests/unistr/test-u8-mbtoucr.c: New file.
38136
38137         Tests for module 'unistr/u32-mbtouc'.
38138         * modules/unistr/u32-mbtouc-tests: New file.
38139         * tests/unistr/test-u32-mbtouc.c: New file.
38140
38141         Tests for module 'unistr/u16-mbtouc'.
38142         * modules/unistr/u16-mbtouc-tests: New file.
38143         * tests/unistr/test-u16-mbtouc.c: New file.
38144
38145         Tests for module 'unistr/u8-mbtouc'.
38146         * modules/unistr/u8-mbtouc-tests: New file.
38147         * tests/unistr/test-u8-mbtouc.c: New file.
38148
38149         Tests for module 'unistr/u32-mbtouc-unsafe'.
38150         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38151         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38152         * tests/unistr/test-u32-mbtouc.h: New file.
38153
38154         Tests for module 'unistr/u16-mbtouc-unsafe'.
38155         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38156         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38157         * tests/unistr/test-u16-mbtouc.h: New file.
38158
38159         Tests for module 'unistr/u8-mbtouc-unsafe'.
38160         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38161         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38162         * tests/unistr/test-u8-mbtouc.h: New file.
38163
38164         Tests for module 'unistr/u32-mblen'.
38165         * modules/unistr/u32-mblen-tests: New file.
38166         * tests/unistr/test-u32-mblen.c: New file.
38167
38168         Tests for module 'unistr/u16-mblen'.
38169         * modules/unistr/u16-mblen-tests: New file.
38170         * tests/unistr/test-u16-mblen.c: New file.
38171
38172         Tests for module 'unistr/u8-mblen'.
38173         * modules/unistr/u8-mblen-tests: New file.
38174         * tests/unistr/test-u8-mblen.c: New file.
38175
38176         Tests for module 'unistr/u32-to-u16'.
38177         * modules/unistr/u32-to-u16-tests: New file.
38178         * tests/unistr/test-u32-to-u16.c: New file.
38179
38180         Tests for module 'unistr/u32-to-u8'.
38181         * modules/unistr/u32-to-u8-tests: New file.
38182         * tests/unistr/test-u32-to-u8.c: New file.
38183
38184         Tests for module 'unistr/u16-to-u32'.
38185         * modules/unistr/u16-to-u32-tests: New file.
38186         * tests/unistr/test-u16-to-u32.c: New file.
38187
38188         Tests for module 'unistr/u16-to-u8'.
38189         * modules/unistr/u16-to-u8-tests: New file.
38190         * tests/unistr/test-u16-to-u8.c: New file.
38191
38192         Tests for module 'unistr/u8-to-u32'.
38193         * modules/unistr/u8-to-u32-tests: New file.
38194         * tests/unistr/test-u8-to-u32.c: New file.
38195
38196         Tests for module 'unistr/u8-to-u16'.
38197         * modules/unistr/u8-to-u16-tests: New file.
38198         * tests/unistr/test-u8-to-u16.c: New file.
38199
38200         Tests for module 'unistr/u32-check'.
38201         * modules/unistr/u32-check-tests: New file.
38202         * tests/unistr/test-u32-check.c: New file.
38203
38204         Tests for module 'unistr/u16-check'.
38205         * modules/unistr/u16-check-tests: New file.
38206         * tests/unistr/test-u16-check.c: New file.
38207
38208         Tests for module 'unistr/u8-check'.
38209         * modules/unistr/u8-check-tests: New file.
38210         * tests/unistr/test-u8-check.c: New file.
38211
38212         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38213         (category_equals): New function.
38214         (main): Add more tests.
38215         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38216
38217         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38218
38219 2010-01-10  Bruno Haible  <bruno@clisp.org>
38220
38221         unistr/u*-strcoll: Try harder to distinguish different strings.
38222         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38223         compare s1 and s2 to see if they are different.
38224
38225 2010-01-10  Bruno Haible  <bruno@clisp.org>
38226
38227         unistr/u*-stpncpy: Fix the return value.
38228         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38229         description of the return value consistent with stpncpy in glibc.
38230         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38231         written non-NUL unit.
38232
38233 2010-01-10  Bruno Haible  <bruno@clisp.org>
38234
38235         unistr/u*-next: Add missing dependencies.
38236         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38237         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38238         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38239
38240 2010-01-10  Bruno Haible  <bruno@clisp.org>
38241
38242         unistr/u8-mbsnlen: Fix return value for incomplete character.
38243         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38244         u8_mblen.
38245         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38246         Remove unistr/u8-mblen.
38247         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38248         u16_mblen.
38249         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38250         Remove unistr/u16-mblen.
38251
38252 2010-01-10  Bruno Haible  <bruno@clisp.org>
38253
38254         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38255         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38256         Reported by Brian Gough <bjg@gnu.org> and
38257         Chris Clayton <chris2553@googlemail.com> via
38258         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38259
38260 2010-01-09  Bruno Haible  <bruno@clisp.org>
38261
38262         unistr/u16-to-u32: Reject invalid input.
38263         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38264         u16_mbtouc.
38265         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38266         Remove unistr/u16-mbtouc.
38267
38268         unistr/u16-to-u8: Reject invalid input.
38269         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38270         u16_mbtouc.
38271         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38272         Remove unistr/u16-mbtouc.
38273
38274         unistr/u8-to-u32: Reject invalid input.
38275         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38276         u8_mbtouc.
38277         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38278         Remove unistr/u8-mbtouc.
38279
38280         unistr/u8-to-u16: Reject invalid input.
38281         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38282         u8_mbtouc.
38283         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38284         Remove unistr/u8-mbtouc.
38285
38286 2010-01-09  Bruno Haible  <bruno@clisp.org>
38287
38288         Tests for module 'getlogin'.
38289         * modules/getlogin-tests: New file.
38290         * tests/test-getlogin.c: New file.
38291
38292         New module 'getlogin'.
38293         * lib/unistd.in.h (getlogin): New declaration.
38294         * lib/getlogin.c: New file.
38295         * m4/getlogin.m4: New file.
38296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38297         HAVE_GETLOGIN.
38298         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38299         HAVE_GETLOGIN.
38300         * modules/getlogin: New file.
38301         * doc/posix-functions/getlogin.texi: Mention the new module.
38302         Reported by John W. Eaton <jwe@gnu.org>.
38303
38304 2010-01-09  Bruno Haible  <bruno@clisp.org>
38305
38306         getlogin_r: Support for native Windows.
38307         * lib/getlogin_r.c: Include <windows.h>
38308         (getlogin_r): Implement for native Windows.
38309         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38310         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38311         via John W. Eaton <jwe@gnu.org>.
38312
38313 2010-01-09  Bruno Haible  <bruno@clisp.org>
38314
38315         getlogin_r: Small fixes.
38316         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38317         succeeds.
38318         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38319         before testing whether getlogin_r is declared. No need to set
38320         HAVE_DECL_GETLOGIN_R to 1.
38321         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38322
38323 2010-01-09  Bruno Haible  <bruno@clisp.org>
38324
38325         * lib/unistd.in.h (getlogin_r): Add comment.
38326
38327 2010-01-09  Bruno Haible  <bruno@clisp.org>
38328
38329         Tests for module 'getlogin_r'.
38330         * modules/getlogin_r-tests: New file.
38331         * tests/test-getlogin_r.c: New file.
38332
38333 2010-01-09  Jim Meyering  <meyering@redhat.com>
38334
38335         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38336         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38337         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38338
38339 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38340
38341         * lib/dup2.c (rpl_dup2): Improve comment.
38342
38343 2010-01-08  Eric Blake  <ebb9@byu.net>
38344
38345         maint.mk: allow packages to add makefile @@ exceptions
38346         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38347         (sc_makefile_check): Rename...
38348         (sc_makefile_at_at_check): ...to this, and use hook.
38349
38350         dup2: work around mingw bug
38351         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38352         Reported by Simon Josefsson.
38353
38354 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38355
38356         glob: Fix C++ compilation.
38357         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38358         C++.
38359
38360 2010-01-07  Bruno Haible  <bruno@clisp.org>
38361
38362         Fix indentation of wctype.in.h, broken since 2007-01-06.
38363         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38364
38365 2010-01-07  Bruno Haible  <bruno@clisp.org>
38366
38367         mbslen: Avoid collision with system function.
38368         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38369         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38370         * m4/mbslen.m4: New file.
38371         * modules/mbslen (Files): Add it.
38372         (configure.ac): Invoke gl_MBSLEN.
38373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38374         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38375         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38376         via Ian Beckwith <ianb@erislabs.net>.
38377
38378 2010-01-07  Bruno Haible  <bruno@clisp.org>
38379
38380         dirent: Document the last fix.
38381         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38382
38383 2010-01-07  Bruno Haible  <bruno@clisp.org>
38384
38385         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38386         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38387         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38388         va_list are defined.
38389         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38390         Reported by Eric Blake.
38391
38392 2010-01-07  Bruno Haible  <bruno@clisp.org>
38393
38394         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38395         * modules/xlist (Depends-on): Add 'list',
38396         * modules/xoset (Depends-on): Add 'oset'.
38397         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38398
38399 2010-01-07  Bruno Haible  <bruno@clisp.org>
38400
38401         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38402         * doc/posix-functions/strncasecmp.texi: Likewise.
38403
38404 2010-01-07  Bruno Haible  <bruno@clisp.org>
38405
38406         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38407
38408 2010-01-07  John W. Eaton  <jwe@octave.org>
38409
38410         wctype: allow C++ use
38411         * lib/wctype.in.h: Add extern "C" block for C++.
38412
38413 2010-01-06  Eric Blake  <ebb9@byu.net>
38414
38415         maint.mk: detect incorrect GFDL usage
38416         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38417
38418 2010-01-06  Jim Meyering  <meyering@redhat.com>
38419         and Eric Blake  <ebb9@byu.net>
38420
38421         maint.mk: ignore multi-line copyright in NEWS
38422         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38423
38424 2010-01-06  Eric Blake  <ebb9@byu.net>
38425
38426         select: add missing dependency
38427         * modules/select-tests (Depends-on): Move sockets dependency...
38428         * modules/select (Depends-on): ...here.
38429         Reported by Ian Beckwith.
38430
38431         doc: regenerate INSTALL
38432         * doc/INSTALL: Reflect recent autoconf update.
38433         * doc/INSTALL.ISO: Likewise.
38434         * doc/INSTALL.UTF-8: Likewise.
38435
38436         pread: fix compilation on glibc
38437         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38438         Reported by Ralf Wildenhues.
38439
38440         dirent: fix test failure
38441         * lib/dirent.in.h (includes): Guarantee ino_t.
38442         Reported by Ralf Wildenhues.
38443
38444 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38445
38446         linkat, renameat: avoid bad free
38447         * lib/at-func2.c (at_func2): Fix typo.
38448         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38449
38450 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38451
38452         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38453         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38454         to avoid failure of symlink test later.
38455
38456 2010-01-06  Eric Blake  <ebb9@byu.net>
38457
38458         stdio, unistd: guarantee ssize_t
38459         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38460         2008 are exposed when needed.
38461         * lib/stdio.in.h (includes): Likewise.
38462         Reported by Ralf Wildenhues.
38463
38464 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38465
38466         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38467         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38468         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38469
38470 2010-01-06  Jim Meyering  <meyering@redhat.com>
38471
38472         readtokens: this module *does* require xalloc.h
38473         It uses only functions that were omitted by the old syntax-check rule.
38474         * lib/readtokens.c: Include "xalloc.h" once again.
38475         * modules/readtokens (Depends-on): Add xalloc.
38476         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38477
38478 2010-01-05  Eric Blake  <ebb9@byu.net>
38479
38480         maint: support 'make announcement' from a VPATH build
38481         * top/maint.mk (announcement): Look for correct NEWS file.
38482
38483 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38484
38485         utimens (fdutimens): ignore a negative FD, per contract
38486         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38487         when we have a valid file descriptor.  Otherwise, using a brand
38488         new glibc (with just-patched futimens that now fails with EBADF)
38489         would cause this function to fail with ENOSYS.
38490         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38491         See also http://bugzilla.redhat.com/552320.
38492
38493 2010-01-05  Eric Blake  <ebb9@byu.net>
38494
38495         strcase: document what it provides
38496         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38497         gnulib module.
38498         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38499         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38500
38501 2010-01-05  Jim Meyering  <meyering@redhat.com>
38502
38503         maint: remove useless inclusions of "xalloc.h"
38504         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38505         * lib/readtokens.c: Likewise.
38506         * lib/same.c: Likewise.
38507         * modules/getloadavg (Depends-on): Remove xalloc.
38508         * modules/readtokens: Likewise.
38509         * modules/same: Likewise.
38510
38511         maint.mk: include 4 more function names in alloca.h-checking regexp
38512         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38513         regexp.  Before, we would give a false-positive (saying alloca.h
38514         is included unnecessarily) when the only uses involved omitted symbols.
38515
38516         xalloc.h: use consistent formatting
38517         * lib/xalloc.h: Move declarations to start in the first column.
38518
38519 2010-01-05  Eric Blake  <ebb9@byu.net>
38520
38521         mkdir: avoid xalloc
38522         * lib/mkdir.c (includes): Drop unused header.
38523         Reported by John W. Eaton.
38524
38525 2010-01-04  Jim Meyering  <meyering@redhat.com>
38526
38527         nl_langinfo: avoid configure-time syntax error
38528         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38529         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38530         the empty string.  Don't let that provoke a shell syntax error.
38531
38532         regcomp, regexec, fnmatch: avoid array bounds read error
38533         * lib/regcomp.c (build_equiv_class): From glibc:
38534         Use only the low 24 bits of a findidx return value as an index
38535         into the weights array.  Patch by Ulrich Drepper:
38536         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38537         * lib/regexec.c (check_node_accept_bytes): Likewise.
38538         * lib/fnmatch_loop.c (FCT): Likewise.
38539
38540         regcomp: skip collseq lookup when there are no rules
38541         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38542         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38543
38544         regcomp: recognize ill-formed { } expressions
38545         * lib/regcomp.c (parse_dup_op): From glibc:
38546         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38547
38548         regcomp: fix typo in comment
38549         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38550         s/satisfy/satisfies/.
38551
38552         regcomp: sync from glibc: remove dead store
38553         * lib/regcomp.c (duplicate_node_closure): Remove useless
38554         search_duplicated_node call and dead store.
38555
38556         regcomp: sync from glibc; always use nl_langinfo
38557         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38558         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38559         * modules/regex (Depends-on): Add nl_langinfo.
38560
38561 2010-01-04  Eric Blake  <ebb9@byu.net>
38562
38563         fdopendir: fix configure test
38564         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38565
38566 2010-01-01  Bruno Haible  <bruno@clisp.org>
38567
38568         wchar: Remove unused configure check.
38569         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38570
38571 2010-01-01  Eric Blake  <ebb9@byu.net>
38572
38573         headers: make check of system header explicit
38574         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38575         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38576         ourselves.
38577         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38578         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38579         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38580         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38581         internals.
38582         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38583         missing.
38584         Suggested by Bruno Haible.
38585
38586 2010-01-01  Jim Meyering  <meyering@redhat.com>
38587
38588         ChangeLog: tweak to eliminate unnecessary copyright line
38589         * ChangeLog: Remove a copyright line that was mistakenly updated
38590         by today's update-copyright run.  Reported by Eric Blake.
38591
38592         test-update-copyright: don't let envvar setting cause test failure
38593         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38594
38595 2010-01-01  Bruno Haible  <bruno@clisp.org>
38596
38597         localename: Avoid gcc warning.
38598         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38599         function if it is not used.
38600
38601 2010-01-01  Jim Meyering  <meyering@redhat.com>
38602
38603         update nearly all FSF copyright year lists to include 2010
38604         Use the same procedure as for 2009, outlined in
38605         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38606
38607         version-etc: set COPYRIGHT_YEAR to 2010
38608         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38609
38610 2009-12-31  Eric Blake  <ebb9@byu.net>
38611
38612         doc: correct availability of cygwin 1.5.x getopt
38613         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38614         variables.
38615         * doc/posix-functions/opterr.texi (opterr): Likewise.
38616         * doc/posix-functions/optind.texi (optind): Likewise.
38617         * doc/posix-functions/optopt.texi (optopt): Likewise.
38618         * doc/posix-functions/tzname.texi (tzname): Likewise.
38619
38620         openat: update maintainer
38621         * modules/openat (Maintainer): Add myself.
38622
38623         utimens: avoid shadowing warning
38624         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38625         buffers into one, to avoid shadowing, as well as avoiding a
38626         redundant stat.
38627         Reported by Jim Meyering.
38628
38629         test-dup2: avoid compiler warning
38630         * tests/test-dup2.c (is_inheritable): Only define if used.
38631
38632 2010-01-01  Bruno Haible  <bruno@clisp.org>
38633
38634         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38635         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38636         defined, use wctomb instead of wcrtomb.
38637
38638 2010-01-01  Bruno Haible  <bruno@clisp.org>
38639
38640         iconv: Reject native Solaris iconv.
38641         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38642         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38643
38644 2009-12-31  Bruno Haible  <bruno@clisp.org>
38645
38646         * tests/test-signal.c (main): Remove test of 'SIG'.
38647
38648 2009-12-31  Bruno Haible  <bruno@clisp.org>
38649
38650         spawn: Fix incomplete fix.
38651         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38652         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38653         warnings for GNULIB_POSIXCHECK again.
38654         Reported by Eric Blake.
38655
38656 2009-12-31  Bruno Haible  <bruno@clisp.org>
38657
38658         Avoid namespace pollution on glibc systems.
38659         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38660         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38661         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38662         glibc systems.
38663
38664 2009-12-31  Bruno Haible  <bruno@clisp.org>
38665
38666         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38667         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38668         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38669         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38670         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38671         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38672         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38673
38674 2009-12-31  Bruno Haible  <bruno@clisp.org>
38675
38676         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38677         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38678         afterwards.
38679
38680 2009-12-31  Bruno Haible  <bruno@clisp.org>
38681
38682         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38683         SYS_UTSNAME_H.
38684
38685 2009-12-31  Bruno Haible  <bruno@clisp.org>
38686
38687         spawn: Fix misapplied patch.
38688         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38689         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38690         warnings for GNULIB_POSIXCHECK.
38691
38692 2009-12-31  Bruno Haible  <bruno@clisp.org>
38693
38694         times: Update after sys_times changed.
38695         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38696         * modules/times (Files): Add it.
38697         (configure.ac): Invoke gl_FUNC_TIMES.
38698
38699 2009-12-31  Bruno Haible  <bruno@clisp.org>
38700
38701         Use AC_C_INLINE where necessary.
38702         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38703         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38704         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38705         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38706         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38707         * m4/mbiter.m4 (gl_MBITER): Likewise.
38708         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38709         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38710         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38711         * modules/u64 (configure.ac): Likewise.
38712
38713 2009-12-31  Bruno Haible  <bruno@clisp.org>
38714
38715         Use AC_C_INLINE instead of module 'inline' where possible.
38716         * modules/inline (Description): Clarify purpose.
38717         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38718         * modules/count-one-bits (Depends-on): Remove inline.
38719         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38720         * modules/openat (Depends-on): Remove inline.
38721         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38722         instead of depending on module 'inline'.
38723         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38724         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38725         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38726         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38727         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38728         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38729         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38730         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38731         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38732         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38733         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38734         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38735         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38736         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38737         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38738         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38739         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38740         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38741         Likewise.
38742         * modules/unictype/property-ascii-hex-digit (Depends-on,
38743         configure.ac): Likewise.
38744         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38745         configure.ac): Likewise.
38746         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38747         configure.ac): Likewise.
38748         * modules/unictype/property-bidi-block-separator (Depends-on,
38749         configure.ac): Likewise.
38750         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38751         configure.ac): Likewise.
38752         * modules/unictype/property-bidi-common-separator (Depends-on,
38753         configure.ac): Likewise.
38754         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38755         Likewise.
38756         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38757         configure.ac): Likewise.
38758         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38759         configure.ac): Likewise.
38760         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38761         configure.ac): Likewise.
38762         * modules/unictype/property-bidi-european-digit (Depends-on,
38763         configure.ac): Likewise.
38764         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38765         configure.ac): Likewise.
38766         * modules/unictype/property-bidi-left-to-right (Depends-on,
38767         configure.ac): Likewise.
38768         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38769         configure.ac): Likewise.
38770         * modules/unictype/property-bidi-other-neutral (Depends-on,
38771         configure.ac): Likewise.
38772         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38773         Likewise.
38774         * modules/unictype/property-bidi-segment-separator (Depends-on,
38775         configure.ac): Likewise.
38776         * modules/unictype/property-bidi-whitespace (Depends-on,
38777         configure.ac): Likewise.
38778         * modules/unictype/property-combining (Depends-on, configure.ac):
38779         Likewise.
38780         * modules/unictype/property-composite (Depends-on, configure.ac):
38781         Likewise.
38782         * modules/unictype/property-currency-symbol (Depends-on,
38783         configure.ac): Likewise.
38784         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38785         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38786         Likewise.
38787         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38788         configure.ac): Likewise.
38789         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38790         Likewise.
38791         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38792         Likewise.
38793         * modules/unictype/property-extender (Depends-on, configure.ac):
38794         Likewise.
38795         * modules/unictype/property-format-control (Depends-on, configure.ac):
38796         Likewise.
38797         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38798         Likewise.
38799         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38800         Likewise.
38801         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38802         Likewise.
38803         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38804         Likewise.
38805         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38806         Likewise.
38807         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38808         Likewise.
38809         * modules/unictype/property-id-start (Depends-on, configure.ac):
38810         Likewise.
38811         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38812         Likewise.
38813         * modules/unictype/property-ids-binary-operator (Depends-on,
38814         configure.ac): Likewise.
38815         * modules/unictype/property-ids-trinary-operator (Depends-on,
38816         configure.ac): Likewise.
38817         * modules/unictype/property-ignorable-control (Depends-on,
38818         configure.ac): Likewise.
38819         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38820         Likewise.
38821         * modules/unictype/property-join-control (Depends-on, configure.ac):
38822         Likewise.
38823         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38824         Likewise.
38825         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38826         Likewise.
38827         * modules/unictype/property-logical-order-exception (Depends-on,
38828         configure.ac): Likewise.
38829         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38830         Likewise.
38831         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38832         * modules/unictype/property-non-break (Depends-on, configure.ac):
38833         Likewise.
38834         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38835         Likewise.
38836         * modules/unictype/property-numeric (Depends-on, configure.ac):
38837         Likewise.
38838         * modules/unictype/property-other-alphabetic (Depends-on,
38839         configure.ac): Likewise.
38840         * modules/unictype/property-other-default-ignorable-code-point
38841         (Depends-on, configure.ac): Likewise.
38842         * modules/unictype/property-other-grapheme-extend (Depends-on,
38843         configure.ac): Likewise.
38844         * modules/unictype/property-other-id-continue (Depends-on,
38845         configure.ac): Likewise.
38846         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38847         Likewise.
38848         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38849         Likewise.
38850         * modules/unictype/property-other-math (Depends-on, configure.ac):
38851         Likewise.
38852         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38853         Likewise.
38854         * modules/unictype/property-paired-punctuation (Depends-on,
38855         configure.ac): Likewise.
38856         * modules/unictype/property-paragraph-separator (Depends-on,
38857         configure.ac): Likewise.
38858         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38859         Likewise.
38860         * modules/unictype/property-pattern-white-space (Depends-on,
38861         configure.ac): Likewise.
38862         * modules/unictype/property-private-use (Depends-on, configure.ac):
38863         Likewise.
38864         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38865         Likewise.
38866         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38867         Likewise.
38868         * modules/unictype/property-radical (Depends-on, configure.ac):
38869         Likewise.
38870         * modules/unictype/property-sentence-terminal (Depends-on,
38871         configure.ac): Likewise.
38872         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38873         Likewise.
38874         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38875         * modules/unictype/property-terminal-punctuation (Depends-on,
38876         configure.ac): Likewise.
38877         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38878         Likewise.
38879         * modules/unictype/property-unassigned-code-value (Depends-on,
38880         configure.ac): Likewise.
38881         * modules/unictype/property-unified-ideograph (Depends-on,
38882         configure.ac): Likewise.
38883         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38884         Likewise.
38885         * modules/unictype/property-variation-selector (Depends-on,
38886         configure.ac): Likewise.
38887         * modules/unictype/property-white-space (Depends-on, configure.ac):
38888         Likewise.
38889         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38890         Likewise.
38891         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38892         Likewise.
38893         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38894         Likewise.
38895         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38896         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38897         Likewise.
38898
38899 2009-12-31  Bruno Haible  <bruno@clisp.org>
38900
38901         Remove unnecessary AC_C_INLINE invocation.
38902         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38903         since 2009-08-21.
38904
38905 2009-12-31  Jim Meyering  <meyering@redhat.com>
38906
38907         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38908         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38909         With this change, we can all remove the gpg_key_ID = ... definition
38910         from our respective cfg.mk files.
38911
38912         maint.mk: create announcement template in ~/, not in /tmp
38913         * top/maint.mk (emit_upload_commands): Adjust.
38914         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38915         Remove temporary file, .ci-msg.
38916
38917 2009-12-31  Eric Blake  <ebb9@byu.net>
38918
38919         link-warning: always build headers with link warnings
38920         * modules/arpa_inet (Makefile.am): Always build replacement
38921         header.
38922         * modules/ctype (Makefile.am): Likewise.
38923         * modules/dirent (Makefile.am): Likewise.
38924         * modules/inttypes (Makefile.am): Likewise.
38925         * modules/langinfo (Makefile.am): Likewise.
38926         * modules/locale (Makefile.am): Likewise.
38927         * modules/spawn (Makefile.am): Likewise.
38928         * modules/sys_file (Makefile.am): Likewise.
38929         * modules/sys_ioctl (Makefile.am): Likewise.
38930         * modules/sys_select (Makefile.am): Likewise.
38931         * modules/sys_socket (Makefile.am): Likewise.
38932         * modules/sys_times (Makefile.am): Likewise.
38933         * modules/sys_utsname (Makefile.am): Likewise.
38934         * modules/sys_wait (Makefile.am): Likewise.
38935         * modules/wchar (Makefile.am): Likewise.
38936         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38937         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38938         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38939         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38940         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38941         Likewise.
38942         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38943         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38944         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38945         Likewise.
38946         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38947         Likewise.
38948         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38949         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38950         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38951         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38952         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38953         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38954         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38955         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38956         (gl_WCHAR_H_DEFAULTS): Likewise.
38957
38958 2009-12-31  Eric Blake  <ebb9@byu.net>
38959
38960         signal, spawn: use link warnings
38961         * lib/signal.in.h (sigset_t): Make unconditional.
38962         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38963         (sigpending, sigprocmask, sigaction): Add link warnings.
38964         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38965         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38966         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38967         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38968         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38969         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38970         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38971         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38972         (posix_spawn_file_actions_destroy)
38973         (posix_spawn_file_actions_addopen)
38974         (posix_spawn_file_actions_addclose)
38975         (posix_spawn_file_actions_adddup2): Likewise.
38976         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38977         * tests/test-signal.c (main): Enhance test.
38978
38979         spawn: improve wrapper support
38980         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38981         (gl_SPAWN_H_DEFAULTS): New defaults.
38982         * modules/spawn (Makefile.am): Substitute them.
38983         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38984         Only declare if missing or broken.
38985
38986         sys_times, sys_utsname: use include_next
38987         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38988         header.
38989         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38990         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38991         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38992         * modules/sys_times (Depends-on): Add include_next.
38993         (Makefile.am): Substitute additional values.
38994         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38995         * lib/sys_times.in.h (includes): Include native header, if
38996         available.
38997         * lib/sys_utsname.in.h (includes): Likewise.
38998         * tests/test-sys_times.c (main): Enhance test.
38999
39000         fdutimensat: revert prior patch
39001         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39002         utimens.h.
39003         Reported by Bruno Haible.
39004
39005 2009-12-30  Eric Blake  <ebb9@byu.net>
39006
39007         sys_wait: drop link-warning dependency
39008         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39009         link-warning efforts.
39010         * lib/sys_wait.in.h: Likewise.
39011
39012         fdutimensat: remove bogus dependency
39013         * modules/fdutimensat (Depends-on): Drop inline.
39014
39015         unistd: fix typo
39016         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39017
39018 2009-12-30  Bruno Haible  <bruno@clisp.org>
39019
39020         Fix compilation error with Solaris cc.
39021         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39022         * lib/unicase/u16-is-invariant.c: Likewise.
39023         * lib/unicase/u32-is-invariant.c: Likewise.
39024         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39025
39026 2009-12-30  Bruno Haible  <bruno@clisp.org>
39027
39028         Fix test crash.
39029         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39030         locales.
39031         Reported by Simon Josefsson <simon@josefsson.org>.
39032
39033 2009-12-30  Bruno Haible  <bruno@clisp.org>
39034
39035         Fix compilation error on most platforms.
39036         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39037         Reported by Simon Josefsson <simon@josefsson.org>
39038         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39039
39040 2009-12-30  Eric Blake  <ebb9@byu.net>
39041
39042         futimens, utimensat: work around ntfs-3g bug
39043         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39044         a ctime bug is present, and expand workaround to cover ntfs-3g.
39045         * lib/utimens.c (fdutimens, lutimens): Likewise.
39046         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39047         (validate_timespec): Adjust return value.
39048         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39049         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39050         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39051
39052 2009-12-29  Eric Blake  <ebb9@byu.net>
39053
39054         link-warning: make usage consistent
39055         * modules/ctype (Depends-on): Add link-warning.
39056         (Makefile.am): Update rules accordingly.
39057         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39058         * modules/locale (Depends-on, Makefile.am): Likewise.
39059         * modules/sys_file (Makefile.am): Likewise.
39060         * modules/getopt-posix (Makefile.am): Delete unused link warning
39061         efforts.
39062         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39063         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39064         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39065         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39066
39067         stdio: remove unused variables
39068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39069         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39070         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39071
39072         tests: test more substitute headers
39073         * modules/ctype-tests: New file.
39074         * modules/dirent-tests: Likewise.
39075         * modules/spawn-tests: Likewise.
39076         * modules/sys_file-tests: Likewise.
39077         * modules/sys_ioctl-tests: Likewise.
39078         * modules/sys_wait-tests: Likewise.
39079         * tests/test-ctype.c: Likewise.
39080         * tests/test-dirent.c: Likewise.
39081         * tests/test-spawn.c: Likewise.
39082         * tests/test-sys_file.c: Likewise.
39083         * tests/test-sys_ioctl.c: Likewise.
39084         * tests/test-sys_wait.c: Likewise.
39085         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39086         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39087         whether or not flock is in use.
39088
39089         tests: remove License section from module
39090         * modules/arpa_inet-tests: Remove unneeded section.
39091         * modules/byteswap-tests: Likewise.
39092         * modules/ceilf-tests: Likewise.
39093         * modules/ceill-tests: Likewise.
39094         * modules/crypto/des-tests: Likewise.
39095         * modules/crypto/gc-arcfour-tests: Likewise.
39096         * modules/crypto/gc-arctwo-tests: Likewise.
39097         * modules/crypto/gc-des-tests: Likewise.
39098         * modules/crypto/gc-hmac-md5-tests: Likewise.
39099         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39100         * modules/crypto/gc-md2-tests: Likewise.
39101         * modules/crypto/gc-md4-tests: Likewise.
39102         * modules/crypto/gc-md5-tests: Likewise.
39103         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39104         * modules/crypto/gc-rijndael-tests: Likewise.
39105         * modules/crypto/gc-sha1-tests: Likewise.
39106         * modules/crypto/gc-tests: Likewise.
39107         * modules/crypto/md2-tests: Likewise.
39108         * modules/crypto/md4-tests: Likewise.
39109         * modules/fcntl-h-tests: Likewise.
39110         * modules/floorf-tests: Likewise.
39111         * modules/floorl-tests: Likewise.
39112         * modules/frexp-nolibm-tests: Likewise.
39113         * modules/frexp-tests: Likewise.
39114         * modules/frexpl-nolibm-tests: Likewise.
39115         * modules/frexpl-tests: Likewise.
39116         * modules/getaddrinfo-tests: Likewise.
39117         * modules/inttypes-tests: Likewise.
39118         * modules/isfinite-tests: Likewise.
39119         * modules/isinf-tests: Likewise.
39120         * modules/ldexpl-tests: Likewise.
39121         * modules/locale-tests: Likewise.
39122         * modules/math-tests: Likewise.
39123         * modules/netdb-tests: Likewise.
39124         * modules/netinet_in-tests: Likewise.
39125         * modules/printf-frexp-tests: Likewise.
39126         * modules/printf-frexpl-tests: Likewise.
39127         * modules/priv-set-tests: Likewise.
39128         * modules/random_r-tests: Likewise.
39129         * modules/round-tests: Likewise.
39130         * modules/roundf-tests: Likewise.
39131         * modules/roundl-tests: Likewise.
39132         * modules/search-tests: Likewise.
39133         * modules/select-tests: Likewise.
39134         * modules/signal-tests: Likewise.
39135         * modules/stdbool-tests: Likewise.
39136         * modules/stddef-tests: Likewise.
39137         * modules/stdint-tests: Likewise.
39138         * modules/stdio-tests: Likewise.
39139         * modules/stdlib-tests: Likewise.
39140         * modules/string-tests: Likewise.
39141         * modules/strings-tests: Likewise.
39142         * modules/sys_select-tests: Likewise.
39143         * modules/sys_socket-tests: Likewise.
39144         * modules/sys_stat-tests: Likewise.
39145         * modules/sys_time-tests: Likewise.
39146         * modules/sys_utsname-tests: Likewise.
39147         * modules/sysexits-tests: Likewise.
39148         * modules/time-tests: Likewise.
39149         * modules/trunc-tests: Likewise.
39150         * modules/truncf-tests: Likewise.
39151         * modules/truncl-tests: Likewise.
39152         * modules/tsearch-tests: Likewise.
39153         * modules/unistd-tests: Likewise.
39154         * modules/wchar-tests: Likewise.
39155         * modules/wctype-tests: Likewise.
39156
39157         tests: fix license on several tests
39158         * tests/test-des.c: Update to GPLv3+.
39159         * tests/test-flock.c: Likewise.
39160         * tests/test-fsync.c: Likewise.
39161         * tests/test-futimens.h: Likewise.
39162         * tests/test-gc-arcfour.c: Likewise.
39163         * tests/test-gc-arctwo.c: Likewise.
39164         * tests/test-gc-des.c: Likewise.
39165         * tests/test-gc-hmac-md5.c: Likewise.
39166         * tests/test-gc-hmac-sha1.c: Likewise.
39167         * tests/test-gc-md2.c: Likewise.
39168         * tests/test-gc-md4.c: Likewise.
39169         * tests/test-gc-md5.c: Likewise.
39170         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39171         * tests/test-gc-rijndael.c: Likewise.
39172         * tests/test-gc-sha1.c: Likewise.
39173         * tests/test-gc.c: Likewise.
39174         * tests/test-getcwd.c: Likewise.
39175         * tests/test-link.c: Likewise.
39176         * tests/test-link.h: Likewise.
39177         * tests/test-lutimens.h: Likewise.
39178         * tests/test-md2.c: Likewise.
39179         * tests/test-md4.c: Likewise.
39180         * tests/test-mkdir.h: Likewise.
39181         * tests/test-rename.c: Likewise.
39182         * tests/test-rename.h: Likewise.
39183         * tests/test-safe-alloc.c: Likewise.
39184         * tests/test-utimens-common.h: Likewise.
39185         * tests/test-utimens.h: Likewise.
39186
39187         maint: sync license texts
39188         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39189         * doc/gpl-3.0.texi: Revert copyright year update.
39190         * doc/lgpl-3.0.texi: Likewise.
39191
39192 2009-12-29  Jim Meyering  <meyering@redhat.com>
39193
39194         update nearly all FSF copyright year lists to include 2009
39195         The files named by the following are exempted:
39196             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39197               test -f "$dst" && { echo "$dst"; continue; }
39198               test -d "$dst" || continue
39199               echo "$dst"/$(basename "$src")
39200             done > exempt
39201             git ls-files tests/unictype >> exempt
39202         In the remaining files, convert to all-interval notation if
39203         - there is already at least one year interval like 2000-2003
39204         - the file is maintained by me
39205         - the file is in lib/uni*/, where that style already prevails
39206         Otherwise, use update-copyright's default.
39207
39208 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39209         and Eric Blake  <ebb9@byu.net>
39210
39211         tests: don't require debug system() to pass
39212         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39213         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39214         * tests/test-unlink.h (test_unlink_func): Likewise.
39215         * tests/test-fstatat.c (main): ...into callers.
39216         * tests/test-lstat.c (main): Likewise.
39217         * tests/test-rmdir.c (main): Likewise.
39218         * tests/test-unlink.c (main): Likewise.
39219         * tests/test-unlinkat.c (main): Likewise.
39220         * tests/test-areadlink-with-size.c (main): Don't require a
39221         debug-only system call to pass, aiding cross-testing to mingw.
39222         * tests/test-areadlink.c (main): Likewise.
39223         * tests/test-areadlinkat-with-size.c (main): Likewise.
39224         * tests/test-areadlinkat.c (main): Likewise.
39225         * tests/test-canonicalize-lgpl.c (main): Likewise.
39226         * tests/test-canonicalize.c (main): Likewise.
39227         * tests/test-chown.c (main): Likewise.
39228         * tests/test-fchownat.c (main): Likewise.
39229         * tests/test-lchown.c (main): Likewise.
39230         * tests/test-fdutimensat.c (main): Likewise.
39231         * tests/test-futimens.c (main): Likewise.
39232         * tests/test-link.c (main): Likewise.
39233         * tests/test-linkat.c (main): Likewise.
39234         * tests/test-mkdir.c (main): Likewise.
39235         * tests/test-mkdirat.c (main): Likewise.
39236         * tests/test-mkfifo.c (main): Likewise.
39237         * tests/test-mkfifoat.c (main): Likewise.
39238         * tests/test-mknod.c (main): Likewise.
39239         * tests/test-readlink.c (main): Likewise.
39240         * tests/test-remove.c (main): Likewise.
39241         * tests/test-rename.c (main): Likewise.
39242         * tests/test-renameat.c (main): Likewise.
39243         * tests/test-symlink.c (main): Likewise.
39244         * tests/test-symlinkat.c (main): Likewise.
39245         * tests/test-utimens.c (main): Likewise.
39246         * tests/test-utimensat.c (main): Likewise.
39247
39248 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39249
39250         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39251         on $(UNUSED_PARAMETER_H) to avoid build failure.
39252
39253 2009-12-28  Jim Meyering  <meyering@redhat.com>
39254
39255         update-copyright: you may specify a max. line length other than 72
39256         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39257
39258         maint: use consistent FSF copyright line syntax
39259         * lib/posixtm.c: Add missing comma in FSF copyright line.
39260         * lib/posixtm.h: Likewise.
39261         * lib/getugroups.c: Add missing ", Inc.".
39262
39263         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39264         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39265         FSF copyright line.  Remove trailing blanks.
39266
39267 2009-12-28  Eric Blake  <ebb9@byu.net>
39268
39269         test-dup2: reduce dependencies
39270         * modules/cloexec (Configure.ac): Set witness.
39271         * modules/dup2-tests (Depends-on): Drop cloexec.
39272         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39273         not present.
39274         Suggested by Bruno Haible.
39275
39276 2009-12-26  Bruno Haible  <bruno@clisp.org>
39277
39278         Remove an unneeded dependency.
39279         * modules/fseterr (Depends-on): Remove dup2.
39280
39281 2009-12-26  Eric Blake  <ebb9@byu.net>
39282
39283         tests: use macros.h in more places
39284         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39285         (ASSERT_STREAM): Provide default of stderr.
39286         * tests/test-dirent-safer.c: Include macros.h, using alternate
39287         stream for assertions.
39288         * tests/test-dup-safer.c: Likewise.
39289         * tests/test-freopen-safer.c: Likewise.
39290         * tests/test-getopt.c: Likewise.
39291         * tests/test-openat-safer.c: Likewise.
39292         * tests/test-pipe.c: Likewise.
39293         * tests/test-popen-safer.c: Likewise.
39294         * modules/dirent-safer-tests (Files): Include macros.h.
39295         * modules/unistd-safer-tests (Files): Likewise.
39296         * modules/freopen-safer-tests (Files): Likewise.
39297         * modules/getopt-posix-tests (Files): Likewise.
39298         * modules/openat-safer-tests (Files): Likewise.
39299         * modules/pipe-tests (Files): Likewise.
39300
39301 2009-12-26  Bruno Haible  <bruno@clisp.org>
39302
39303         javacomp: Portability fix.
39304         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39305         that it also works on Solaris.
39306
39307 2009-12-26  Bruno Haible  <bruno@clisp.org>
39308
39309         localename: Fix storage allocation of gl_locale_name_thread's result.
39310         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39311         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39312         all platforms that have 'uselocale'.
39313         (gl_locale_name_thread_unsafe): New function, extracted from
39314         gl_locale_name_thread.
39315         (gl_locale_name_thread): Call struniq on all platforms that have
39316         'uselocale'.
39317         * tests/test-localename.c (test_locale_name_thread): Check that the
39318         resulting strings are permanently allocated.
39319         * modules/localename-tests (Depends-on): Add strdup.
39320
39321 2009-12-26  Bruno Haible  <bruno@clisp.org>
39322
39323         * tests/test-localename.c (categories): Fill in the strings.
39324
39325 2009-12-26  Jim Meyering  <meyering@redhat.com>
39326
39327         isdir: complete the removal of m4/isdir.m4
39328         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39329
39330         isdir: clean up, since at least grep still uses it
39331         * lib/isdir.c: Include "isdir.h".
39332         (S_ISDIR): Remove now-unneeded definition.
39333         * modules/isdir (Files): Add lib/isdir.h.
39334         * lib/isdir.h: New file, with declaration.
39335         * m4/isdir.m4: Remove file -- unneeded.
39336
39337 2009-12-25  Bruno Haible  <bruno@clisp.org>
39338
39339         selinux-h: Make generated .h files standalone.
39340         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39341         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39342         * lib/se-selinux.in.h: Likewise.
39343         * modules/selinux-h (Depends-on): Add unused-parameter.
39344         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39345         selinux/selinux.h and selinux/context.h.
39346         Suggested by Eric Blake.
39347
39348 2009-12-25  Bruno Haible  <bruno@clisp.org>
39349
39350         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39351         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39352         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39353         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39354         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39355
39356 2009-12-24  Bruno Haible  <bruno@clisp.org>
39357
39358         openat: Fix warning.
39359         * lib/openat-proc.c: Include <unistd.h>.
39360
39361 2009-12-24  Bruno Haible  <bruno@clisp.org>
39362
39363         New module 'unused-parameter'.
39364         * build-aux/unused-parameter.h: New file, extracted from earlier
39365         gnulib-common.m4.
39366         * modules/unused-parameter: New file.
39367         * lib/unistr.h: Include unused-parameter.h.
39368         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39369         _GL_UNUSED.
39370         * modules/unistr/base (Depends-on): Add unused-parameter.
39371
39372 2009-12-24  Bruno Haible  <bruno@clisp.org>
39373
39374         Add missing dependencies to 'extensions' module.
39375         * m4/extensions.m4: Add comment.
39376         * modules/accept4 (Depends-on): Add extensions.
39377         * modules/dup3 (Depends-on): Likewise.
39378         * modules/fcntl (Depends-on): Likewise.
39379         * modules/futimens (Depends-on): Likewise.
39380         * modules/mknod (Depends-on): Likewise.
39381         * modules/pipe2 (Depends-on): Likewise.
39382         * modules/stat-time (Depends-on): Likewise.
39383         * modules/strcasestr-simple (Depends-on): Likewise.
39384         * modules/strsignal (Depends-on): Likewise.
39385         * modules/utimensat (Depends-on): Likewise.
39386         * modules/localcharset (Depends-on): Likewise. Needed because of
39387         gl_FCNTL_O_FLAGS.
39388         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39389         AC_TYPE_MBSTATE_T.
39390         * modules/wcsnrtombs (Depends-on): Likewise.
39391         * modules/wcsrtombs (Depends-on): Likewise.
39392
39393 2009-12-24  Bruno Haible  <bruno@clisp.org>
39394
39395         binary-io: Avoid gcc warning due to SET_BINARY.
39396         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39397         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39398
39399 2009-12-24  Bruno Haible  <bruno@clisp.org>
39400
39401         Avoid future namespace pollution on glibc systems.
39402         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39403         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39404         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39405         glibc systems.
39406
39407 2009-12-24  Bruno Haible  <bruno@clisp.org>
39408
39409         Refactor common macros used in tests.
39410         * tests/macros.h: New file.
39411         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39412         and/or <stdlib.h>, if appropriate.
39413         (ASSERT, SIZEOF): Remove macros.
39414         * tests/test-areadlink-with-size.c: Likewise.
39415         * tests/test-areadlinkat.c: Likewise.
39416         * tests/test-areadlinkat-with-size.c: Likewise.
39417         * tests/test-argmatch.c: Likewise.
39418         * tests/test-argv-iter.c: Likewise.
39419         * tests/test-array-mergesort.c: Likewise.
39420         * tests/test-array_list.c: Likewise.
39421         * tests/test-array_oset.c: Likewise.
39422         * tests/test-avltree_list.c: Likewise.
39423         * tests/test-avltree_oset.c: Likewise.
39424         * tests/test-avltreehash_list.c: Likewise.
39425         * tests/test-base64.c: Likewise.
39426         * tests/test-binary-io.c: Likewise.
39427         * tests/test-bitrotate.c: Likewise.
39428         * tests/test-btowc.c: Likewise.
39429         * tests/test-byteswap.c: Likewise.
39430         * tests/test-c-ctype.c: Likewise.
39431         * tests/test-c-stack.c: Likewise.
39432         * tests/test-c-strcasecmp.c: Likewise.
39433         * tests/test-c-strcasestr.c: Likewise.
39434         * tests/test-c-strncasecmp.c: Likewise.
39435         * tests/test-c-strstr.c: Likewise.
39436         * tests/test-canonicalize-lgpl.c: Likewise.
39437         * tests/test-canonicalize.c: Likewise.
39438         * tests/test-carray_list.c: Likewise.
39439         * tests/test-ceilf1.c: Likewise.
39440         * tests/test-ceilf2.c: Likewise.
39441         * tests/test-ceill.c: Likewise.
39442         * tests/test-chown.c: Likewise.
39443         * tests/test-cloexec.c: Likewise.
39444         * tests/test-copy-acl.c: Likewise.
39445         * tests/test-copy-file.c: Likewise.
39446         * tests/test-count-one-bits.c: Likewise.
39447         * tests/test-dprintf-posix.c: Likewise.
39448         * tests/test-dup2.c: Likewise.
39449         * tests/test-dup3.c: Likewise.
39450         * tests/test-duplocale.c: Likewise.
39451         * tests/test-fbufmode.c: Likewise.
39452         * tests/test-fchdir.c: Likewise.
39453         * tests/test-fchownat.c: Likewise.
39454         * tests/test-fcntl-safer.c: Likewise.
39455         * tests/test-fcntl.c: Likewise.
39456         * tests/test-fdopendir.c: Likewise.
39457         * tests/test-fdutimensat.c: Likewise.
39458         * tests/test-fflush2.c: Likewise.
39459         * tests/test-file-has-acl.c: Likewise.
39460         * tests/test-filevercmp.c: Likewise.
39461         * tests/test-flock.c: Likewise.
39462         * tests/test-floorf1.c: Likewise.
39463         * tests/test-floorf2.c: Likewise.
39464         * tests/test-floorl.c: Likewise.
39465         * tests/test-fnmatch.c: Likewise.
39466         * tests/test-fopen.h: Likewise.
39467         * tests/test-fpending.c: Likewise.
39468         * tests/test-fprintf-posix.c: Likewise.
39469         * tests/test-fpurge.c: Likewise.
39470         * tests/test-freadable.c: Likewise.
39471         * tests/test-freadahead.c: Likewise.
39472         * tests/test-freading.c: Likewise.
39473         * tests/test-freadptr.c: Likewise.
39474         * tests/test-freadptr2.c: Likewise.
39475         * tests/test-freadseek.c: Likewise.
39476         * tests/test-freopen.c: Likewise.
39477         * tests/test-frexp.c: Likewise.
39478         * tests/test-frexpl.c: Likewise.
39479         * tests/test-fseek.c: Likewise.
39480         * tests/test-fseeko.c: Likewise.
39481         * tests/test-fstatat.c: Likewise.
39482         * tests/test-fstrcmp.c: Likewise.
39483         * tests/test-fsync.c: Likewise.
39484         * tests/test-ftell.c: Likewise.
39485         * tests/test-ftello.c: Likewise.
39486         * tests/test-func.c: Likewise.
39487         * tests/test-futimens.c: Likewise.
39488         * tests/test-fwritable.c: Likewise.
39489         * tests/test-fwriting.c: Likewise.
39490         * tests/test-getcwd.c: Likewise.
39491         * tests/test-getdate.c: Likewise.
39492         * tests/test-getdelim.c: Likewise.
39493         * tests/test-getdtablesize.c: Likewise.
39494         * tests/test-getgroups.c: Likewise.
39495         * tests/test-getline.c: Likewise.
39496         * tests/test-getndelim2.c: Likewise.
39497         * tests/test-glob.c: Likewise.
39498         * tests/test-hash.c: Likewise.
39499         * tests/test-i-ring.c: Likewise.
39500         * tests/test-iconv-utf.c: Likewise.
39501         * tests/test-iconv.c: Likewise.
39502         * tests/test-idpriv-drop.c: Likewise.
39503         * tests/test-idpriv-droptemp.c: Likewise.
39504         * tests/test-inet_ntop.c: Likewise.
39505         * tests/test-inet_pton.c: Likewise.
39506         * tests/test-isblank.c: Likewise.
39507         * tests/test-isfinite.c: Likewise.
39508         * tests/test-isinf.c: Likewise.
39509         * tests/test-isnan.c: Likewise.
39510         * tests/test-isnand.h: Likewise.
39511         * tests/test-isnanf.h: Likewise.
39512         * tests/test-isnanl.h: Likewise.
39513         * tests/test-lchown.c: Likewise.
39514         * tests/test-ldexpl.c: Likewise.
39515         * tests/test-link.c: Likewise.
39516         * tests/test-linkat.c: Likewise.
39517         * tests/test-linked_list.c: Likewise.
39518         * tests/test-linkedhash_list.c: Likewise.
39519         * tests/test-localename.c: Likewise.
39520         * tests/test-lseek.c: Likewise.
39521         * tests/test-lstat.c: Likewise.
39522         * tests/test-mbmemcasecmp.c: Likewise.
39523         * tests/test-mbmemcasecoll.c: Likewise.
39524         * tests/test-mbrtowc.c: Likewise.
39525         * tests/test-mbscasecmp.c: Likewise.
39526         * tests/test-mbscasestr1.c: Likewise.
39527         * tests/test-mbscasestr2.c: Likewise.
39528         * tests/test-mbscasestr3.c: Likewise.
39529         * tests/test-mbscasestr4.c: Likewise.
39530         * tests/test-mbschr.c: Likewise.
39531         * tests/test-mbscspn.c: Likewise.
39532         * tests/test-mbsinit.c: Likewise.
39533         * tests/test-mbsncasecmp.c: Likewise.
39534         * tests/test-mbsnrtowcs.c: Likewise.
39535         * tests/test-mbspbrk.c: Likewise.
39536         * tests/test-mbspcasecmp.c: Likewise.
39537         * tests/test-mbsrchr.c: Likewise.
39538         * tests/test-mbsrtowcs.c: Likewise.
39539         * tests/test-mbsspn.c: Likewise.
39540         * tests/test-mbsstr1.c: Likewise.
39541         * tests/test-mbsstr2.c: Likewise.
39542         * tests/test-mbsstr3.c: Likewise.
39543         * tests/test-memchr.c: Likewise.
39544         * tests/test-memchr2.c: Likewise.
39545         * tests/test-memcmp.c: Likewise.
39546         * tests/test-memmem.c: Likewise.
39547         * tests/test-memrchr.c: Likewise.
39548         * tests/test-mkdir.c: Likewise.
39549         * tests/test-mkdirat.c: Likewise.
39550         * tests/test-mkfifo.c: Likewise.
39551         * tests/test-mkfifoat.c: Likewise.
39552         * tests/test-mknod.c: Likewise.
39553         * tests/test-nanosleep.c: Likewise.
39554         * tests/test-nl_langinfo.c: Likewise.
39555         * tests/test-obstack-printf.c: Likewise.
39556         * tests/test-open.c: Likewise.
39557         * tests/test-openat.c: Likewise.
39558         * tests/test-pipe-filter-gi1.c: Likewise.
39559         * tests/test-pipe-filter-gi2-main.c: Likewise.
39560         * tests/test-pipe-filter-ii1.c: Likewise.
39561         * tests/test-pipe-filter-ii2-main.c: Likewise.
39562         * tests/test-pipe2.c: Likewise.
39563         * tests/test-popen.h: Likewise.
39564         * tests/test-posixtm.c: Likewise.
39565         * tests/test-pread.c: Likewise.
39566         * tests/test-printf-frexp.c: Likewise.
39567         * tests/test-printf-frexpl.c: Likewise.
39568         * tests/test-printf-posix.c: Likewise.
39569         * tests/test-priv-set.c: Likewise.
39570         * tests/test-quotearg.c: Likewise.
39571         * tests/test-random_r.c: Likewise.
39572         * tests/test-rawmemchr.c: Likewise.
39573         * tests/test-rbtree_list.c: Likewise.
39574         * tests/test-rbtree_oset.c: Likewise.
39575         * tests/test-rbtreehash_list.c: Likewise.
39576         * tests/test-readlink.c: Likewise.
39577         * tests/test-remove.c: Likewise.
39578         * tests/test-rename.c: Likewise.
39579         * tests/test-renameat.c: Likewise.
39580         * tests/test-rmdir.c: Likewise.
39581         * tests/test-round1.c: Likewise.
39582         * tests/test-roundf1.c: Likewise.
39583         * tests/test-roundl.c: Likewise.
39584         * tests/test-safe-alloc.c: Likewise.
39585         * tests/test-sameacls.c: Likewise.
39586         * tests/test-set-mode-acl.c: Likewise.
39587         * tests/test-setenv.c: Likewise.
39588         * tests/test-sigaction.c: Likewise.
39589         * tests/test-signbit.c: Likewise.
39590         * tests/test-sleep.c: Likewise.
39591         * tests/test-snprintf-posix.c: Likewise.
39592         * tests/test-snprintf.c: Likewise.
39593         * tests/test-sprintf-posix.c: Likewise.
39594         * tests/test-stat-time.c: Likewise.
39595         * tests/test-stat.c: Likewise.
39596         * tests/test-strcasestr.c: Likewise.
39597         * tests/test-strchrnul.c: Likewise.
39598         * tests/test-strerror.c: Likewise.
39599         * tests/test-striconv.c: Likewise.
39600         * tests/test-striconveh.c: Likewise.
39601         * tests/test-striconveha.c: Likewise.
39602         * tests/test-strsignal.c: Likewise.
39603         * tests/test-strstr.c: Likewise.
39604         * tests/test-strtod.c: Likewise.
39605         * tests/test-strverscmp.c: Likewise.
39606         * tests/test-symlink.c: Likewise.
39607         * tests/test-symlinkat.c: Likewise.
39608         * tests/test-trunc1.c: Likewise.
39609         * tests/test-trunc2.c: Likewise.
39610         * tests/test-truncf1.c: Likewise.
39611         * tests/test-truncf2.c: Likewise.
39612         * tests/test-truncl.c: Likewise.
39613         * tests/test-uname.c: Likewise.
39614         * tests/test-unlink.c: Likewise.
39615         * tests/test-unlinkat.c: Likewise.
39616         * tests/test-unsetenv.c: Likewise.
39617         * tests/test-usleep.c: Likewise.
39618         * tests/test-utimens.c: Likewise.
39619         * tests/test-utimensat.c: Likewise.
39620         * tests/test-vasnprintf-posix.c: Likewise.
39621         * tests/test-vasnprintf-posix2.c: Likewise.
39622         * tests/test-vasnprintf.c: Likewise.
39623         * tests/test-vasprintf-posix.c: Likewise.
39624         * tests/test-vasprintf.c: Likewise.
39625         * tests/test-vdprintf-posix.c: Likewise.
39626         * tests/test-vfprintf-posix.c: Likewise.
39627         * tests/test-vprintf-posix.c: Likewise.
39628         * tests/test-vsnprintf-posix.c: Likewise.
39629         * tests/test-vsnprintf.c: Likewise.
39630         * tests/test-vsprintf-posix.c: Likewise.
39631         * tests/test-wcrtomb.c: Likewise.
39632         * tests/test-wcsnrtombs.c: Likewise.
39633         * tests/test-wcsrtombs.c: Likewise.
39634         * tests/test-wctype.c: Likewise.
39635         * tests/test-wcwidth.c: Likewise.
39636         * tests/test-xfprintf-posix.c: Likewise.
39637         * tests/test-xmemdup0.c: Likewise.
39638         * tests/test-xprintf-posix.c: Likewise.
39639         * tests/test-xvasprintf.c: Likewise.
39640         * tests/unicase/test-locale-language.c: Likewise.
39641         * tests/unicase/test-mapping-part1.h: Likewise.
39642         * tests/unicase/test-predicate-part1.h: Likewise.
39643         * tests/unicase/test-u8-casecmp.c: Likewise.
39644         * tests/unicase/test-u8-casecoll.c: Likewise.
39645         * tests/unicase/test-u8-casefold.c: Likewise.
39646         * tests/unicase/test-u8-is-cased.c: Likewise.
39647         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39648         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39649         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39650         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39651         * tests/unicase/test-u8-tolower.c: Likewise.
39652         * tests/unicase/test-u8-totitle.c: Likewise.
39653         * tests/unicase/test-u8-toupper.c: Likewise.
39654         * tests/unicase/test-u16-casecmp.c: Likewise.
39655         * tests/unicase/test-u16-casecoll.c: Likewise.
39656         * tests/unicase/test-u16-casefold.c: Likewise.
39657         * tests/unicase/test-u16-is-cased.c: Likewise.
39658         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39659         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39660         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39661         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39662         * tests/unicase/test-u16-tolower.c: Likewise.
39663         * tests/unicase/test-u16-totitle.c: Likewise.
39664         * tests/unicase/test-u16-toupper.c: Likewise.
39665         * tests/unicase/test-u32-casecmp.c: Likewise.
39666         * tests/unicase/test-u32-casecoll.c: Likewise.
39667         * tests/unicase/test-u32-casefold.c: Likewise.
39668         * tests/unicase/test-u32-is-cased.c: Likewise.
39669         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39670         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39671         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39672         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39673         * tests/unicase/test-u32-tolower.c: Likewise.
39674         * tests/unicase/test-u32-totitle.c: Likewise.
39675         * tests/unicase/test-u32-toupper.c: Likewise.
39676         * tests/unicase/test-ulc-casecmp.c: Likewise.
39677         * tests/unicase/test-ulc-casecoll.c: Likewise.
39678         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39679         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39680         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39681         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39682         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39683         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39684         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39685         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39686         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39687         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39688         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39689         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39690         * tests/unictype/test-bidi_byname.c: Likewise.
39691         * tests/unictype/test-bidi_name.c: Likewise.
39692         * tests/unictype/test-bidi_of.c: Likewise.
39693         * tests/unictype/test-bidi_test.c: Likewise.
39694         * tests/unictype/test-block_list.c: Likewise.
39695         * tests/unictype/test-block_of.c: Likewise.
39696         * tests/unictype/test-block_test.c: Likewise.
39697         * tests/unictype/test-categ_and.c: Likewise.
39698         * tests/unictype/test-categ_and_not.c: Likewise.
39699         * tests/unictype/test-categ_byname.c: Likewise.
39700         * tests/unictype/test-categ_name.c: Likewise.
39701         * tests/unictype/test-categ_none.c: Likewise.
39702         * tests/unictype/test-categ_of.c: Likewise.
39703         * tests/unictype/test-categ_or.c: Likewise.
39704         * tests/unictype/test-categ_test_withtable.c: Likewise.
39705         * tests/unictype/test-combining.c: Likewise.
39706         * tests/unictype/test-decdigit.c: Likewise.
39707         * tests/unictype/test-digit.c: Likewise.
39708         * tests/unictype/test-mirror.c: Likewise.
39709         * tests/unictype/test-numeric.c: Likewise.
39710         * tests/unictype/test-pr_byname.c: Likewise.
39711         * tests/unictype/test-pr_test.c: Likewise.
39712         * tests/unictype/test-predicate-part1.h: Likewise.
39713         * tests/unictype/test-scripts.c: Likewise.
39714         * tests/unictype/test-sy_c_ident.c: Likewise.
39715         * tests/unictype/test-sy_java_ident.c: Likewise.
39716         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39717         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39718         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39719         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39720         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39721         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39722         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39723         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39724         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39725         * tests/uninorm/test-compat-decomposition.c: Likewise.
39726         * tests/uninorm/test-composition.c: Likewise.
39727         * tests/uninorm/test-decomposing-form.c: Likewise.
39728         * tests/uninorm/test-decomposition.c: Likewise.
39729         * tests/uninorm/test-u8-nfc.c: Likewise.
39730         * tests/uninorm/test-u8-nfd.c: Likewise.
39731         * tests/uninorm/test-u8-nfkc.c: Likewise.
39732         * tests/uninorm/test-u8-nfkd.c: Likewise.
39733         * tests/uninorm/test-u8-normcmp.c: Likewise.
39734         * tests/uninorm/test-u8-normcoll.c: Likewise.
39735         * tests/uninorm/test-u16-nfc.c: Likewise.
39736         * tests/uninorm/test-u16-nfd.c: Likewise.
39737         * tests/uninorm/test-u16-nfkc.c: Likewise.
39738         * tests/uninorm/test-u16-nfkd.c: Likewise.
39739         * tests/uninorm/test-u16-normcmp.c: Likewise.
39740         * tests/uninorm/test-u16-normcoll.c: Likewise.
39741         * tests/uninorm/test-u32-nfc.c: Likewise.
39742         * tests/uninorm/test-u32-nfd.c: Likewise.
39743         * tests/uninorm/test-u32-nfkc.c: Likewise.
39744         * tests/uninorm/test-u32-nfkd.c: Likewise.
39745         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39746         * tests/uninorm/test-u32-normcmp.c: Likewise.
39747         * tests/uninorm/test-u32-normcoll.c: Likewise.
39748         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39749         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39750         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39751         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39752         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39753         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39754         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39755         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39756         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39757         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39758         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39759         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39760         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39761         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39762         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39763         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39764         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39765         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39766         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39767         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39768         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39769         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39770         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39771         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39772         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39773         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39774         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39775         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39776         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39777         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39778         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39779         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39780         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39781         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39782         * tests/uniwidth/test-u8-width.c: Likewise.
39783         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39784         * tests/uniwidth/test-u16-width.c: Likewise.
39785         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39786         * tests/uniwidth/test-u32-width.c: Likewise.
39787         * tests/uniwidth/test-uc_width.c: Likewise.
39788         * tests/uniwidth/test-uc_width2.c: Likewise.
39789         * modules/acl-tests (Files): Add tests/macros.h.
39790         * modules/areadlink-tests (Files): Likewise.
39791         * modules/areadlink-with-size-tests (Files): Likewise.
39792         * modules/areadlinkat-tests (Files): Likewise.
39793         * modules/areadlinkat-with-size-tests (Files): Likewise.
39794         * modules/argmatch-tests (Files): Likewise.
39795         * modules/argv-iter-tests (Files): Likewise.
39796         * modules/array-list-tests (Files): Likewise.
39797         * modules/array-mergesort-tests (Files): Likewise.
39798         * modules/array-oset-tests (Files): Likewise.
39799         * modules/avltree-list-tests (Files): Likewise.
39800         * modules/avltree-oset-tests (Files): Likewise.
39801         * modules/avltreehash-list-tests (Files): Likewise.
39802         * modules/base64-tests (Files): Likewise.
39803         * modules/binary-io-tests (Files): Likewise.
39804         * modules/bitrotate-tests (Files): Likewise.
39805         * modules/btowc-tests (Files): Likewise.
39806         * modules/byteswap-tests (Files): Likewise.
39807         * modules/c-ctype-tests (Files): Likewise.
39808         * modules/c-stack-tests (Files): Likewise.
39809         * modules/c-strcase-tests (Files): Likewise.
39810         * modules/c-strcasestr-tests (Files): Likewise.
39811         * modules/c-strstr-tests (Files): Likewise.
39812         * modules/canonicalize-lgpl-tests (Files): Likewise.
39813         * modules/canonicalize-tests (Files): Likewise.
39814         * modules/carray-list-tests (Files): Likewise.
39815         * modules/ceilf-tests (Files): Likewise.
39816         * modules/ceill-tests (Files): Likewise.
39817         * modules/chown-tests (Files): Likewise.
39818         * modules/cloexec-tests (Files): Likewise.
39819         * modules/copy-file-tests (Files): Likewise.
39820         * modules/count-one-bits-tests (Files): Likewise.
39821         * modules/dprintf-posix-tests (Files): Likewise.
39822         * modules/dup2-tests (Files): Likewise.
39823         * modules/dup3-tests (Files): Likewise.
39824         * modules/duplocale-tests (Files): Likewise.
39825         * modules/fbufmode-tests (Files): Likewise.
39826         * modules/fchdir-tests (Files): Likewise.
39827         * modules/fcntl-safer-tests (Files): Likewise.
39828         * modules/fcntl-tests (Files): Likewise.
39829         * modules/fdopendir-tests (Files): Likewise.
39830         * modules/fdutimensat-tests (Files): Likewise.
39831         * modules/fflush-tests (Files): Likewise.
39832         * modules/filevercmp-tests (Files): Likewise.
39833         * modules/flock-tests (Files): Likewise.
39834         * modules/floorf-tests (Files): Likewise.
39835         * modules/floorl-tests (Files): Likewise.
39836         * modules/fnmatch-tests (Files): Likewise.
39837         * modules/fopen-safer-tests (Files): Likewise.
39838         * modules/fopen-tests (Files): Likewise.
39839         * modules/fpending-tests (Files): Likewise.
39840         * modules/fprintf-posix-tests (Files): Likewise.
39841         * modules/fpurge-tests (Files): Likewise.
39842         * modules/freadable-tests (Files): Likewise.
39843         * modules/freadahead-tests (Files): Likewise.
39844         * modules/freading-tests (Files): Likewise.
39845         * modules/freadptr-tests (Files): Likewise.
39846         * modules/freadseek-tests (Files): Likewise.
39847         * modules/freopen-tests (Files): Likewise.
39848         * modules/frexp-nolibm-tests (Files): Likewise.
39849         * modules/frexp-tests (Files): Likewise.
39850         * modules/frexpl-nolibm-tests (Files): Likewise.
39851         * modules/frexpl-tests (Files): Likewise.
39852         * modules/fseek-tests (Files): Likewise.
39853         * modules/fseeko-tests (Files): Likewise.
39854         * modules/fstrcmp-tests (Files): Likewise.
39855         * modules/fsync-tests (Files): Likewise.
39856         * modules/ftell-tests (Files): Likewise.
39857         * modules/ftello-tests (Files): Likewise.
39858         * modules/func-tests (Files): Likewise.
39859         * modules/futimens-tests (Files): Likewise.
39860         * modules/fwritable-tests (Files): Likewise.
39861         * modules/fwriting-tests (Files): Likewise.
39862         * modules/getcwd-tests (Files): Likewise.
39863         * modules/getdate-tests (Files): Likewise.
39864         * modules/getdelim-tests (Files): Likewise.
39865         * modules/getdtablesize-tests (Files): Likewise.
39866         * modules/getgroups-tests (Files): Likewise.
39867         * modules/getline-tests (Files): Likewise.
39868         * modules/getndelim2-tests (Files): Likewise.
39869         * modules/glob-tests (Files): Likewise.
39870         * modules/hash-tests (Files): Likewise.
39871         * modules/i-ring-tests (Files): Likewise.
39872         * modules/iconv-tests (Files): Likewise.
39873         * modules/iconv_open-utf-tests (Files): Likewise.
39874         * modules/idpriv-drop-tests (Files): Likewise.
39875         * modules/idpriv-droptemp-tests (Files): Likewise.
39876         * modules/inet_ntop-tests (Files): Likewise.
39877         * modules/inet_pton-tests (Files): Likewise.
39878         * modules/isblank-tests (Files): Likewise.
39879         * modules/isfinite-tests (Files): Likewise.
39880         * modules/isinf-tests (Files): Likewise.
39881         * modules/isnan-tests (Files): Likewise.
39882         * modules/isnand-nolibm-tests (Files): Likewise.
39883         * modules/isnand-tests (Files): Likewise.
39884         * modules/isnanf-nolibm-tests (Files): Likewise.
39885         * modules/isnanf-tests (Files): Likewise.
39886         * modules/isnanl-nolibm-tests (Files): Likewise.
39887         * modules/isnanl-tests (Files): Likewise.
39888         * modules/lchown-tests (Files): Likewise.
39889         * modules/ldexpl-tests (Files): Likewise.
39890         * modules/link-tests (Files): Likewise.
39891         * modules/linkat-tests (Files): Likewise.
39892         * modules/linked-list-tests (Files): Likewise.
39893         * modules/linkedhash-list-tests (Files): Likewise.
39894         * modules/localename-tests (Files): Likewise.
39895         * modules/lseek-tests (Files): Likewise.
39896         * modules/lstat-tests (Files): Likewise.
39897         * modules/mbmemcasecmp-tests (Files): Likewise.
39898         * modules/mbmemcasecoll-tests (Files): Likewise.
39899         * modules/mbrtowc-tests (Files): Likewise.
39900         * modules/mbscasecmp-tests (Files): Likewise.
39901         * modules/mbscasestr-tests (Files): Likewise.
39902         * modules/mbschr-tests (Files): Likewise.
39903         * modules/mbscspn-tests (Files): Likewise.
39904         * modules/mbsinit-tests (Files): Likewise.
39905         * modules/mbsncasecmp-tests (Files): Likewise.
39906         * modules/mbsnrtowcs-tests (Files): Likewise.
39907         * modules/mbspbrk-tests (Files): Likewise.
39908         * modules/mbspcasecmp-tests (Files): Likewise.
39909         * modules/mbsrchr-tests (Files): Likewise.
39910         * modules/mbsrtowcs-tests (Files): Likewise.
39911         * modules/mbsspn-tests (Files): Likewise.
39912         * modules/mbsstr-tests (Files): Likewise.
39913         * modules/memchr-tests (Files): Likewise.
39914         * modules/memchr2-tests (Files): Likewise.
39915         * modules/memcmp-tests (Files): Likewise.
39916         * modules/memmem-tests (Files): Likewise.
39917         * modules/memrchr-tests (Files): Likewise.
39918         * modules/mkdir-tests (Files): Likewise.
39919         * modules/mkfifo-tests (Files): Likewise.
39920         * modules/mkfifoat-tests (Files): Likewise.
39921         * modules/mknod-tests (Files): Likewise.
39922         * modules/nanosleep-tests (Files): Likewise.
39923         * modules/nl_langinfo-tests (Files): Likewise.
39924         * modules/obstack-printf-tests (Files): Likewise.
39925         * modules/open-tests (Files): Likewise.
39926         * modules/openat-tests (Files): Likewise.
39927         * modules/pipe-filter-gi-tests (Files): Likewise.
39928         * modules/pipe-filter-ii-tests (Files): Likewise.
39929         * modules/pipe2-tests (Files): Likewise.
39930         * modules/popen-safer-tests (Files): Likewise.
39931         * modules/popen-tests (Files): Likewise.
39932         * modules/posixtm-tests (Files): Likewise.
39933         * modules/pread-tests (Files): Likewise.
39934         * modules/printf-frexp-tests (Files): Likewise.
39935         * modules/printf-frexpl-tests (Files): Likewise.
39936         * modules/printf-posix-tests (Files): Likewise.
39937         * modules/priv-set-tests (Files): Likewise.
39938         * modules/quotearg-tests (Files): Likewise.
39939         * modules/random_r-tests (Files): Likewise.
39940         * modules/rawmemchr-tests (Files): Likewise.
39941         * modules/rbtree-list-tests (Files): Likewise.
39942         * modules/rbtree-oset-tests (Files): Likewise.
39943         * modules/rbtreehash-list-tests (Files): Likewise.
39944         * modules/readlink-tests (Files): Likewise.
39945         * modules/remove-tests (Files): Likewise.
39946         * modules/rename-tests (Files): Likewise.
39947         * modules/renameat-tests (Files): Likewise.
39948         * modules/rmdir-tests (Files): Likewise.
39949         * modules/round-tests (Files): Likewise.
39950         * modules/roundf-tests (Files): Likewise.
39951         * modules/roundl-tests (Files): Likewise.
39952         * modules/safe-alloc-tests (Files): Likewise.
39953         * modules/setenv-tests (Files): Likewise.
39954         * modules/sigaction-tests (Files): Likewise.
39955         * modules/signbit-tests (Files): Likewise.
39956         * modules/sleep-tests (Files): Likewise.
39957         * modules/snprintf-posix-tests (Files): Likewise.
39958         * modules/snprintf-tests (Files): Likewise.
39959         * modules/sprintf-posix-tests (Files): Likewise.
39960         * modules/stat-tests (Files): Likewise.
39961         * modules/stat-time-tests (Files): Likewise.
39962         * modules/strcasestr-tests (Files): Likewise.
39963         * modules/strchrnul-tests (Files): Likewise.
39964         * modules/strerror-tests (Files): Likewise.
39965         * modules/striconv-tests (Files): Likewise.
39966         * modules/striconveh-tests (Files): Likewise.
39967         * modules/striconveha-tests (Files): Likewise.
39968         * modules/strsignal-tests (Files): Likewise.
39969         * modules/strstr-tests (Files): Likewise.
39970         * modules/strtod-tests (Files): Likewise.
39971         * modules/strverscmp-tests (Files): Likewise.
39972         * modules/symlink-tests (Files): Likewise.
39973         * modules/symlinkat-tests (Files): Likewise.
39974         * modules/trunc-tests (Files): Likewise.
39975         * modules/truncf-tests (Files): Likewise.
39976         * modules/truncl-tests (Files): Likewise.
39977         * modules/uname-tests (Files): Likewise.
39978         * modules/unicase/cased-tests (Files): Likewise.
39979         * modules/unicase/ignorable-tests (Files): Likewise.
39980         * modules/unicase/locale-language-tests (Files): Likewise.
39981         * modules/unicase/tolower-tests (Files): Likewise.
39982         * modules/unicase/totitle-tests (Files): Likewise.
39983         * modules/unicase/toupper-tests (Files): Likewise.
39984         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39985         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39986         * modules/unicase/u8-casefold-tests (Files): Likewise.
39987         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39988         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39989         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39990         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39991         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39992         * modules/unicase/u8-tolower-tests (Files): Likewise.
39993         * modules/unicase/u8-totitle-tests (Files): Likewise.
39994         * modules/unicase/u8-toupper-tests (Files): Likewise.
39995         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39996         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39997         * modules/unicase/u16-casefold-tests (Files): Likewise.
39998         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39999         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40000         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40001         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40002         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40003         * modules/unicase/u16-tolower-tests (Files): Likewise.
40004         * modules/unicase/u16-totitle-tests (Files): Likewise.
40005         * modules/unicase/u16-toupper-tests (Files): Likewise.
40006         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40007         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40008         * modules/unicase/u32-casefold-tests (Files): Likewise.
40009         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40010         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40011         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40012         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40013         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40014         * modules/unicase/u32-tolower-tests (Files): Likewise.
40015         * modules/unicase/u32-totitle-tests (Files): Likewise.
40016         * modules/unicase/u32-toupper-tests (Files): Likewise.
40017         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40018         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40019         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40020         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40021         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40022         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40023         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40024         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40025         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40026         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40027         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40028         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40029         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40030         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40031         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40032         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40033         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40034         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40035         * modules/unictype/block-list-tests (Files): Likewise.
40036         * modules/unictype/block-of-tests (Files): Likewise.
40037         * modules/unictype/block-test-tests (Files): Likewise.
40038         * modules/unictype/category-C-tests (Files): Likewise.
40039         * modules/unictype/category-Cc-tests (Files): Likewise.
40040         * modules/unictype/category-Cf-tests (Files): Likewise.
40041         * modules/unictype/category-Cn-tests (Files): Likewise.
40042         * modules/unictype/category-Co-tests (Files): Likewise.
40043         * modules/unictype/category-Cs-tests (Files): Likewise.
40044         * modules/unictype/category-L-tests (Files): Likewise.
40045         * modules/unictype/category-Ll-tests (Files): Likewise.
40046         * modules/unictype/category-Lm-tests (Files): Likewise.
40047         * modules/unictype/category-Lo-tests (Files): Likewise.
40048         * modules/unictype/category-Lt-tests (Files): Likewise.
40049         * modules/unictype/category-Lu-tests (Files): Likewise.
40050         * modules/unictype/category-M-tests (Files): Likewise.
40051         * modules/unictype/category-Mc-tests (Files): Likewise.
40052         * modules/unictype/category-Me-tests (Files): Likewise.
40053         * modules/unictype/category-Mn-tests (Files): Likewise.
40054         * modules/unictype/category-N-tests (Files): Likewise.
40055         * modules/unictype/category-Nd-tests (Files): Likewise.
40056         * modules/unictype/category-Nl-tests (Files): Likewise.
40057         * modules/unictype/category-No-tests (Files): Likewise.
40058         * modules/unictype/category-P-tests (Files): Likewise.
40059         * modules/unictype/category-Pc-tests (Files): Likewise.
40060         * modules/unictype/category-Pd-tests (Files): Likewise.
40061         * modules/unictype/category-Pe-tests (Files): Likewise.
40062         * modules/unictype/category-Pf-tests (Files): Likewise.
40063         * modules/unictype/category-Pi-tests (Files): Likewise.
40064         * modules/unictype/category-Po-tests (Files): Likewise.
40065         * modules/unictype/category-Ps-tests (Files): Likewise.
40066         * modules/unictype/category-S-tests (Files): Likewise.
40067         * modules/unictype/category-Sc-tests (Files): Likewise.
40068         * modules/unictype/category-Sk-tests (Files): Likewise.
40069         * modules/unictype/category-Sm-tests (Files): Likewise.
40070         * modules/unictype/category-So-tests (Files): Likewise.
40071         * modules/unictype/category-Z-tests (Files): Likewise.
40072         * modules/unictype/category-Zl-tests (Files): Likewise.
40073         * modules/unictype/category-Zp-tests (Files): Likewise.
40074         * modules/unictype/category-Zs-tests (Files): Likewise.
40075         * modules/unictype/category-and-not-tests (Files): Likewise.
40076         * modules/unictype/category-and-tests (Files): Likewise.
40077         * modules/unictype/category-byname-tests (Files): Likewise.
40078         * modules/unictype/category-name-tests (Files): Likewise.
40079         * modules/unictype/category-none-tests (Files): Likewise.
40080         * modules/unictype/category-of-tests (Files): Likewise.
40081         * modules/unictype/category-or-tests (Files): Likewise.
40082         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40083         * modules/unictype/combining-class-tests (Files): Likewise.
40084         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40085         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40086         * modules/unictype/ctype-blank-tests (Files): Likewise.
40087         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40088         * modules/unictype/ctype-digit-tests (Files): Likewise.
40089         * modules/unictype/ctype-graph-tests (Files): Likewise.
40090         * modules/unictype/ctype-lower-tests (Files): Likewise.
40091         * modules/unictype/ctype-print-tests (Files): Likewise.
40092         * modules/unictype/ctype-punct-tests (Files): Likewise.
40093         * modules/unictype/ctype-space-tests (Files): Likewise.
40094         * modules/unictype/ctype-upper-tests (Files): Likewise.
40095         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40096         * modules/unictype/decimal-digit-tests (Files): Likewise.
40097         * modules/unictype/digit-tests (Files): Likewise.
40098         * modules/unictype/mirror-tests (Files): Likewise.
40099         * modules/unictype/numeric-tests (Files): Likewise.
40100         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40101         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40102         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40103         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40104         Likewise.
40105         * modules/unictype/property-bidi-block-separator-tests (Files):
40106         Likewise.
40107         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40108         Likewise.
40109         * modules/unictype/property-bidi-common-separator-tests (Files):
40110         Likewise.
40111         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40112         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40113         Likewise.
40114         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40115         Likewise.
40116         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40117         Likewise.
40118         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40119         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40120         Likewise.
40121         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40122         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40123         Likewise.
40124         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40125         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40126         * modules/unictype/property-bidi-segment-separator-tests (Files):
40127         Likewise.
40128         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40129         * modules/unictype/property-byname-tests (Files): Likewise.
40130         * modules/unictype/property-combining-tests (Files): Likewise.
40131         * modules/unictype/property-composite-tests (Files): Likewise.
40132         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40133         * modules/unictype/property-dash-tests (Files): Likewise.
40134         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40135         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40136         Likewise.
40137         * modules/unictype/property-deprecated-tests (Files): Likewise.
40138         * modules/unictype/property-diacritic-tests (Files): Likewise.
40139         * modules/unictype/property-extender-tests (Files): Likewise.
40140         * modules/unictype/property-format-control-tests (Files): Likewise.
40141         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40142         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40143         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40144         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40145         * modules/unictype/property-hyphen-tests (Files): Likewise.
40146         * modules/unictype/property-id-continue-tests (Files): Likewise.
40147         * modules/unictype/property-id-start-tests (Files): Likewise.
40148         * modules/unictype/property-ideographic-tests (Files): Likewise.
40149         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40150         * modules/unictype/property-ids-trinary-operator-tests (Files):
40151         Likewise.
40152         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40153         * modules/unictype/property-iso-control-tests (Files): Likewise.
40154         * modules/unictype/property-join-control-tests (Files): Likewise.
40155         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40156         * modules/unictype/property-line-separator-tests (Files): Likewise.
40157         * modules/unictype/property-logical-order-exception-tests (Files):
40158         Likewise.
40159         * modules/unictype/property-lowercase-tests (Files): Likewise.
40160         * modules/unictype/property-math-tests (Files): Likewise.
40161         * modules/unictype/property-non-break-tests (Files): Likewise.
40162         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40163         * modules/unictype/property-numeric-tests (Files): Likewise.
40164         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40165         * modules/unictype/property-other-default-ignorable-code-point-tests
40166         (Files): Likewise.
40167         * modules/unictype/property-other-grapheme-extend-tests (Files):
40168         Likewise.
40169         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40170         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40171         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40172         * modules/unictype/property-other-math-tests (Files): Likewise.
40173         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40174         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40175         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40176         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40177         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40178         * modules/unictype/property-private-use-tests (Files): Likewise.
40179         * modules/unictype/property-punctuation-tests (Files): Likewise.
40180         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40181         * modules/unictype/property-radical-tests (Files): Likewise.
40182         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40183         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40184         * modules/unictype/property-space-tests (Files): Likewise.
40185         * modules/unictype/property-terminal-punctuation-tests (Files):
40186         Likewise.
40187         * modules/unictype/property-test-tests (Files): Likewise.
40188         * modules/unictype/property-titlecase-tests (Files): Likewise.
40189         * modules/unictype/property-unassigned-code-value-tests (Files):
40190         Likewise.
40191         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40192         * modules/unictype/property-uppercase-tests (Files): Likewise.
40193         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40194         * modules/unictype/property-white-space-tests (Files): Likewise.
40195         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40196         * modules/unictype/property-xid-start-tests (Files): Likewise.
40197         * modules/unictype/property-zero-width-tests (Files): Likewise.
40198         * modules/unictype/scripts-tests (Files): Likewise.
40199         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40200         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40201         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40202         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40203         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40204         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40205         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40206         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40207         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40208         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40209         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40210         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40211         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40212         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40213         * modules/uninorm/composition-tests (Files): Likewise.
40214         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40215         * modules/uninorm/decomposition-tests (Files): Likewise.
40216         * modules/uninorm/filter-tests (Files): Likewise.
40217         * modules/uninorm/nfc-tests (Files): Likewise.
40218         * modules/uninorm/nfd-tests (Files): Likewise.
40219         * modules/uninorm/nfkc-tests (Files): Likewise.
40220         * modules/uninorm/nfkd-tests (Files): Likewise.
40221         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40222         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40223         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40224         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40225         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40226         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40227         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40228         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40229         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40230         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40231         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40232         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40233         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40234         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40235         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40236         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40237         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40238         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40239         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40240         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40241         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40242         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40243         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40244         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40245         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40246         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40247         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40248         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40249         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40250         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40251         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40252         * modules/uniwidth/u8-width-tests (Files): Likewise.
40253         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40254         * modules/uniwidth/u16-width-tests (Files): Likewise.
40255         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40256         * modules/uniwidth/u32-width-tests (Files): Likewise.
40257         * modules/uniwidth/width-tests (Files): Likewise.
40258         * modules/unlink-tests (Files): Likewise.
40259         * modules/unsetenv-tests (Files): Likewise.
40260         * modules/usleep-tests (Files): Likewise.
40261         * modules/utimens-tests (Files): Likewise.
40262         * modules/utimensat-tests (Files): Likewise.
40263         * modules/vasnprintf-posix-tests (Files): Likewise.
40264         * modules/vasnprintf-tests (Files): Likewise.
40265         * modules/vasprintf-posix-tests (Files): Likewise.
40266         * modules/vasprintf-tests (Files): Likewise.
40267         * modules/vdprintf-posix-tests (Files): Likewise.
40268         * modules/vfprintf-posix-tests (Files): Likewise.
40269         * modules/vprintf-posix-tests (Files): Likewise.
40270         * modules/vsnprintf-posix-tests (Files): Likewise.
40271         * modules/vsnprintf-tests (Files): Likewise.
40272         * modules/vsprintf-posix-tests (Files): Likewise.
40273         * modules/wcrtomb-tests (Files): Likewise.
40274         * modules/wcsnrtombs-tests (Files): Likewise.
40275         * modules/wcsrtombs-tests (Files): Likewise.
40276         * modules/wctype-tests (Files): Likewise.
40277         * modules/wcwidth-tests (Files): Likewise.
40278         * modules/xmemdup0-tests (Files): Likewise.
40279         * modules/xprintf-posix-tests (Files): Likewise.
40280         * modules/xvasprintf-tests (Files): Likewise.
40281
40282 2009-12-24  Eric Blake  <ebb9@byu.net>
40283
40284         test-nanosleep: fix typo
40285         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40286         patch.
40287         Reported by Bruno Haible.
40288
40289 2009-12-24  Bruno Haible  <bruno@clisp.org>
40290
40291         Reduce namespace pollution on glibc systems.
40292         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40293         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40294         systems.
40295         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40296         <getopt.h> on glibc systems.
40297         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40298         systems.
40299         * lib/fcntl.c: Include <unistd.h> here instead.
40300
40301 2009-12-24  Bruno Haible  <bruno@clisp.org>
40302
40303         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40304
40305 2009-12-24  Eric Blake  <ebb9@byu.net>
40306
40307         tests: add signature checks
40308         * tests/signature.h (SIGNATURE_CHECK): New file.
40309         * modules/atexit-tests (Files): Use it.
40310         * modules/btowc-tests (Files): Likewise.
40311         * modules/canonicalize-lgpl-tests (Files): Likewise.
40312         * modules/ceilf-tests (Files): Likewise.
40313         * modules/ceill-tests (Files): Likewise.
40314         * modules/chown-tests (Files): Likewise.
40315         * modules/dprintf-posix-tests (Files): Likewise.
40316         * modules/dup2-tests (Files): Likewise.
40317         * modules/dup3-tests (Files): Likewise.
40318         * modules/duplocale-tests (Files): Likewise.
40319         * modules/fchdir-tests (Files): Likewise.
40320         * modules/fcntl-tests (Files): Likewise.
40321         * modules/fdopendir-tests (Files): Likewise.
40322         * modules/fflush-tests (Files): Likewise.
40323         * modules/flock-tests (Files): Likewise.
40324         * modules/floorf-tests (Files): Likewise.
40325         * modules/floorl-tests (Files): Likewise.
40326         * modules/fnmatch-tests (Files): Likewise.
40327         * modules/fopen-tests (Files): Likewise.
40328         * modules/fprintf-posix-tests (Files): Likewise.
40329         * modules/freopen-tests (Files): Likewise.
40330         * modules/frexp-nolibm-tests (Files): Likewise.
40331         * modules/frexp-tests (Files): Likewise.
40332         * modules/frexpl-nolibm-tests (Files): Likewise.
40333         * modules/frexpl-tests (Files): Likewise.
40334         * modules/fseek-tests (Files): Likewise.
40335         * modules/fseeko-tests (Files): Likewise.
40336         * modules/fsync-tests (Files): Likewise.
40337         * modules/ftell-tests (Files): Likewise.
40338         * modules/ftello-tests (Files): Likewise.
40339         * modules/futimens-tests (Files): Likewise.
40340         * modules/getaddrinfo-tests (Files): Likewise.
40341         * modules/getcwd-tests (Files): Likewise.
40342         * modules/getdelim-tests (Files): Likewise.
40343         * modules/getdtablesize-tests (Files): Likewise.
40344         * modules/getgroups-tests (Files): Likewise.
40345         * modules/gethostname-tests (Files): Likewise.
40346         * modules/getline-tests (Files): Likewise.
40347         * modules/getopt-posix-tests (Files): Likewise.
40348         * modules/gettimeofday-tests (Files): Likewise.
40349         * modules/glob-tests (Files): Likewise.
40350         * modules/iconv-tests (Files): Likewise.
40351         * modules/inet_ntop-tests (Files): Likewise.
40352         * modules/inet_pton-tests (Files): Likewise.
40353         * modules/isblank-tests (Files): Likewise.
40354         * modules/lchown-tests (Files): Likewise.
40355         * modules/ldexpl-tests (Files): Likewise.
40356         * modules/link-tests (Files): Likewise.
40357         * modules/linkat-tests (Files): Likewise.
40358         * modules/lseek-tests (Files): Likewise.
40359         * modules/lstat-tests (Files): Likewise.
40360         * modules/mbrtowc-tests (Files): Likewise.
40361         * modules/mbsinit-tests (Files): Likewise.
40362         * modules/mbsnrtowcs-tests (Files): Likewise.
40363         * modules/mbsrtowcs-tests (Files): Likewise.
40364         * modules/memchr-tests (Files): Likewise.
40365         * modules/memcmp-tests (Files): Likewise.
40366         * modules/memmem-tests (Files): Likewise.
40367         * modules/memrchr-tests (Files): Likewise.
40368         * modules/mkdir-tests (Files): Likewise.
40369         * modules/mkfifo-tests (Files): Likewise.
40370         * modules/mkfifoat-tests (Files): Likewise.
40371         * modules/mknod-tests (Files): Likewise.
40372         * modules/nanosleep-tests (Files): Likewise.
40373         * modules/nl_langinfo-tests (Files): Likewise.
40374         * modules/obstack-printf-tests (Files): Likewise.
40375         * modules/open-tests (Files): Likewise.
40376         * modules/openat-tests (Files): Likewise.
40377         * modules/perror-tests (Files): Likewise.
40378         * modules/pipe2-tests (Files): Likewise.
40379         * modules/poll-tests (Files): Likewise.
40380         * modules/popen-tests (Files): Likewise.
40381         * modules/posix_spawn-tests (Files): Likewise.
40382         * modules/posix_spawnp-tests (Files): Likewise.
40383         * modules/pread-tests (Files): Likewise.
40384         * modules/printf-posix-tests (Files): Likewise.
40385         * modules/pty-tests (Files): Likewise.
40386         * modules/random_r-tests (Files): Likewise.
40387         * modules/rawmemchr-tests (Files): Likewise.
40388         * modules/readlink-tests (Files): Likewise.
40389         * modules/remove-tests (Files): Likewise.
40390         * modules/rename-tests (Files): Likewise.
40391         * modules/renameat-tests (Files): Likewise.
40392         * modules/rmdir-tests (Files): Likewise.
40393         * modules/round-tests (Files): Likewise.
40394         * modules/roundf-tests (Files): Likewise.
40395         * modules/roundl-tests (Files): Likewise.
40396         * modules/select-tests (Files): Likewise.
40397         * modules/setenv-tests (Files): Likewise.
40398         * modules/sigaction-tests (Files): Likewise.
40399         * modules/sleep-tests (Files): Likewise.
40400         * modules/snprintf-posix-tests (Files): Likewise.
40401         * modules/snprintf-tests (Files): Likewise.
40402         * modules/sprintf-posix-tests (Files): Likewise.
40403         * modules/stat-tests (Files): Likewise.
40404         * modules/strcasestr-tests (Files): Likewise.
40405         * modules/strchrnul-tests (Files): Likewise.
40406         * modules/strerror-tests (Files): Likewise.
40407         * modules/strsignal-tests (Files): Likewise.
40408         * modules/strstr-tests (Files): Likewise.
40409         * modules/strtod-tests (Files): Likewise.
40410         * modules/strverscmp-tests (Files): Likewise.
40411         * modules/symlink-tests (Files): Likewise.
40412         * modules/symlinkat-tests (Files): Likewise.
40413         * modules/times-tests (Files): Likewise.
40414         * modules/trunc-tests (Files): Likewise.
40415         * modules/truncf-tests (Files): Likewise.
40416         * modules/truncl-tests (Files): Likewise.
40417         * modules/tsearch-tests (Files): Likewise.
40418         * modules/uname-tests (Files): Likewise.
40419         * modules/unlink-tests (Files): Likewise.
40420         * modules/unsetenv-tests (Files): Likewise.
40421         * modules/usleep-tests (Files): Likewise.
40422         * modules/utimensat-tests (Files): Likewise.
40423         * modules/vasprintf-tests (Files): Likewise.
40424         * modules/vdprintf-posix-tests (Files): Likewise.
40425         * modules/vfprintf-posix-tests (Files): Likewise.
40426         * modules/vprintf-posix-tests (Files): Likewise.
40427         * modules/vsnprintf-posix-tests (Files): Likewise.
40428         * modules/vsnprintf-tests (Files): Likewise.
40429         * modules/vsprintf-posix-tests (Files): Likewise.
40430         * modules/wcrtomb-tests (Files): Likewise.
40431         * modules/wcsnrtombs-tests (Files): Likewise.
40432         * modules/wcsrtombs-tests (Files): Likewise.
40433         * modules/wcwidth-tests (Files): Likewise.
40434         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40435         * tests/test-isinf.c (isinf): Likewise.
40436         * tests/test-isnan.c (isnan): Likewise.
40437         * tests/test-signbit.c (signbit): Likewise.
40438         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40439         declaration, either as macro or with correct signature.
40440         (select): Ensure function under test is declared with correct
40441         signature in correct header.
40442         * tests/test-atexit.c (atexit): Likewise.
40443         * tests/test-btowc.c (btowc): Likewise.
40444         * tests/test-canonicalize-lgpl.c (realpath)
40445         (canonicalize_file_name): Likewise.
40446         * tests/test-ceilf1.c (ceilf): Likewise.
40447         * tests/test-ceill.c (ceill): Likewise.
40448         * tests/test-chown.c (chown): Likewise.
40449         * tests/test-dprintf-posix.c (dprintf): Likewise.
40450         * tests/test-dup2.c (dup2): Likewise.
40451         * tests/test-dup3.c (dup3): Likewise.
40452         * tests/test-duplocale.c (duplocale): Likewise.
40453         * tests/test-fchdir.c (fchdir): Likewise.
40454         * tests/test-fchownat.c (fchownat): Likewise.
40455         * tests/test-fcntl.c (fcntl): Likewise.
40456         * tests/test-fdopendir.c (fdopendir): Likewise.
40457         * tests/test-fflush.c (fflush): Likewise.
40458         * tests/test-flock.c (flock): Likewise.
40459         * tests/test-floorf1.c (floorf): Likewise.
40460         * tests/test-floorl.c (floorl): Likewise.
40461         * tests/test-fnmatch.c (fnmatch): Likewise.
40462         * tests/test-fopen.c (fopen): Likewise.
40463         * tests/test-fprintf-posix.c (fprintf): Likewise.
40464         * tests/test-freopen.c (freopen): Likewise.
40465         * tests/test-frexp.c (frexp): Likewise.
40466         * tests/test-frexpl.c (frexpl): Likewise.
40467         * tests/test-fseek.c (fseek): Likewise.
40468         * tests/test-fseeko.c (fseeko): Likewise.
40469         * tests/test-fstatat.c (fstatat): Likewise.
40470         * tests/test-fsync.c (fsync): Likewise.
40471         * tests/test-ftell.c (ftell): Likewise.
40472         * tests/test-ftello.c (ftello): Likewise.
40473         * tests/test-futimens.c (futimens): Likewise.
40474         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40475         (gai_strerror): Likewise.
40476         * tests/test-getcwd.c (getcwd): Likewise.
40477         * tests/test-getdelim.c (getdelim): Likewise.
40478         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40479         * tests/test-getgroups.c (getgroups): Likewise.
40480         * tests/test-gethostname.c (gethostname): Likewise.
40481         * tests/test-getline.c (getline): Likewise.
40482         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40483         Likewise.
40484         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40485         * tests/test-glob.c (glob, globfree): Likewise.
40486         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40487         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40488         * tests/test-inet_pton.c (inet_pton): Likewise.
40489         * tests/test-isblank.c (isblank): Likewise.
40490         * tests/test-lchown.c (lchown): Likewise.
40491         * tests/test-ldexpl.c (ldexpl): Likewise.
40492         * tests/test-link.c (link): Likewise.
40493         * tests/test-linkat.c (linkat): Likewise.
40494         * tests/test-lseek.c (lseek): Likewise.
40495         * tests/test-lstat.c (lstat): Likewise.
40496         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40497         * tests/test-mbsinit.c (mbsinit): Likewise.
40498         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40499         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40500         * tests/test-memchr.c (memchr): Likewise.
40501         * tests/test-memcmp.c (memcmp): Likewise.
40502         * tests/test-memmem.c (memmem): Likewise.
40503         * tests/test-memrchr.c (memrchr): Likewise.
40504         * tests/test-mkdir.c (mkdir): Likewise.
40505         * tests/test-mkdirat.c (mkdirat): Likewise.
40506         * tests/test-mkfifo.c (mkfifo): Likewise.
40507         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40508         * tests/test-mknod.c (mknod): Likewise.
40509         * tests/test-nanosleep.c (nanosleep): Likewise.
40510         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40511         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40512         Likewise.
40513         * tests/test-open.c (open): Likewise.
40514         * tests/test-openat.c (openat): Likewise.
40515         * tests/test-perror.c (perror): Likewise.
40516         * tests/test-pipe2.c (pipe2): Likewise.
40517         * tests/test-poll.c (poll): Likewise.
40518         * tests/test-popen.c (popen, pclose): Likewise.
40519         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40520         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40521         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40522         (posix_spawn_file_actions_destroy)
40523         (posix_spawn_file_actions_addclose)
40524         (posix_spawn_file_actions_addopen)
40525         (posix_spawn_file_actions_adddup2): Likewise.
40526         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40527         * tests/test-pread.c (pread): Likewise.
40528         * tests/test-printf-posix.c (printf): Likewise.
40529         * tests/test-pty.c (openpty, forkpty): Likewise.
40530         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40531         (random_r): Likewise.
40532         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40533         * tests/test-readlink.c (readlink): Likewise.
40534         * tests/test-remove.c (remove): Likewise.
40535         * tests/test-rename.c (rename): Likewise.
40536         * tests/test-renameat.c (renameat): Likewise.
40537         * tests/test-rmdir.c (rmdir): Likewise.
40538         * tests/test-round1.c (round): Likewise.
40539         * tests/test-roundf1.c (roundf): Likewise.
40540         * tests/test-roundl.c (roundl): Likewise.
40541         * tests/test-setenv.c (setenv): Likewise.
40542         * tests/test-sigaction.c (sigaction): Likewise.
40543         * tests/test-sleep.c (sleep): Likewise.
40544         * tests/test-snprintf.c (snprintf): Likewise.
40545         * tests/test-sprintf-posix.c (sprintf): Likewise.
40546         * tests/test-stat.c (stat): Likewise.
40547         * tests/test-stpncpy.c (stpncpy): Likewise.
40548         * tests/test-strcasestr.c (strcasestr): Likewise.
40549         * tests/test-strchrnul.c (strchrnul): Likewise.
40550         * tests/test-strerror.c (strerror): Likewise.
40551         * tests/test-strsignal.c (strsignal): Likewise.
40552         * tests/test-strstr.c (strstr): Likewise.
40553         * tests/test-strtod.c (strtod): Likewise.
40554         * tests/test-strverscmp.c (strverscmp): Likewise.
40555         * tests/test-symlink.c (symlink): Likewise.
40556         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40557         * tests/test-times.c (times): Likewise.
40558         * tests/test-trunc1.c (trunc): Likewise.
40559         * tests/test-truncf1.c (truncf): Likewise.
40560         * tests/test-truncl.c (truncl): Likewise.
40561         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40562         Likewise.
40563         * tests/test-uname.c (uname): Likewise.
40564         * tests/test-unlink.c (unlink): Likewise.
40565         * tests/test-unlinkat.c (unlinkat): Likewise.
40566         * tests/test-unsetenv.c (unsetenv): Likewise.
40567         * tests/test-usleep.c (usleep): Likewise.
40568         * tests/test-utimensat.c (utimensat): Likewise.
40569         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40570         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40571         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40572         * tests/test-vprintf-posix.c (vprintf): Likewise.
40573         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40574         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40575         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40576         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40577         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40578         * tests/test-wcwidth.c (wcwidth): Likewise.
40579
40580         build: pull in conditional headers during GNULIB_POSIXCHECK
40581         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40582         definitions from any conditionally-included headers.
40583         * lib/stdlib.in.h (includes): Likewise.
40584         * lib/unistd.in.h (includes): Likewise.
40585
40586 2009-12-24  Bruno Haible  <bruno@clisp.org>
40587
40588         * tests/test-argv-iter.c: Include header file being tested immediately
40589         after config.h.
40590         * tests/test-base64.c: Likewise.
40591         * tests/test-flock.c: Likewise.
40592         * tests/test-fsync.c: Likewise.
40593         * tests/test-getdate.c: Likewise.
40594         * tests/test-getndelim2.c: Likewise.
40595         * tests/test-isfinite.c: Likewise.
40596         * tests/test-isinf.c: Likewise.
40597         * tests/test-strerror.c: Likewise.
40598         * tests/test-strsignal.c: Likewise.
40599
40600 2009-12-23  Eric Blake  <ebb9@byu.net>
40601
40602         unistd: work around cygwin bug
40603         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40604         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40605         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40606
40607 2009-12-23  Bruno Haible  <bruno@clisp.org>
40608
40609         localename: More tests.
40610         * tests/test-localename.c (SIZEOF): New macro.
40611         (categories): New variable.
40612         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40613         test_locale_name_default): Add test w.r.t. thread locale.
40614         (test_locale_name_thread): New function.
40615         (main): Invoke it.
40616
40617         localename: Make aware of thread locale.
40618         * lib/localename.h (gl_locale_name_thread): New declaration.
40619         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40620         behaviour with respect to thread locale.
40621         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40622         <langinfo.h>, glthread/lock.h.
40623         (SIZE_BITS): New macro.
40624         (string_hash): New function.
40625         (struct hash_node): New type.
40626         (HASH_TABLE_SIZE): New macro.
40627         (struniq_hash_table, struniq_lock): New variables.
40628         (struniq): New function.
40629         (gl_locale_name_thread): New function.
40630         (gl_locale_name): Invoke it.
40631         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40632         * modules/localename (Depends-on): Add lock.
40633         Reported by Mike Gran <spk121@yahoo.com>.
40634
40635 2009-12-23  Eric Blake  <ebb9@byu.net>
40636
40637         va-args: new module
40638         * modules/va-args: New file.
40639         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40640         * MODULES.html.sh (Core language properties): Mention it.
40641
40642         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40643         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40644         named alias for __attribute__((__unused__)).
40645         * lib/chown.c: Update client.
40646         * lib/fchmodat.c: Likewise.
40647         * lib/fts.c: Likewise.
40648         * lib/getdate.y: Likewise.
40649         * lib/getgroups.c: Likewise.
40650         * lib/getopt.c: Likewise.
40651         * lib/getugroups.c: Likewise.
40652         * lib/mkdir.c: Likewise.
40653         * lib/mkfifo.c: Likewise.
40654         * lib/mkfifoat.c: Likewise.
40655         * lib/mknod.c: Likewise.
40656         * lib/mknodat.c: Likewise.
40657         * lib/readlink.c: Likewise.
40658         * lib/se-context.in.h: Likewise.
40659         * lib/se-selinux.in.h: Likewise.
40660         * lib/sockets.c: Likewise.
40661         * lib/symlink.c: Likewise.
40662         * lib/symlinkat.c: Likewise.
40663         * lib/unicodeio.c: Likewise.
40664         * lib/unistr.h: Likewise.
40665         * tests/test-areadlink.c: Likewise.
40666         * tests/test-areadlinkat.c: Likewise.
40667         * tests/test-filenamecat.c: Likewise.
40668         * tests/test-fseeko.c: Likewise.
40669         * tests/test-ftello.c: Likewise.
40670         * tests/test-getdate.c: Likewise.
40671         * tests/test-getgroups.c: Likewise.
40672         * tests/test-gethostname.c: Likewise.
40673         * tests/test-quotearg.c: Likewise.
40674         * tests/test-version-etc.c: Likewise.
40675         * tests/test-xalloc-die.c: Likewise.
40676         * tests/test-xfprintf-posix.c: Likewise.
40677         * tests/test-xprintf-posix.c: Likewise.
40678         * tests/test-xvasprintf.c: Likewise.
40679
40680         tests: avoid compiler warnings
40681         * tests/test-fcntl.c (main): Delete unused parameters.
40682         * tests/test-freopen-safer.c (main): Likewise.
40683         * tests/test-xalloc-die.c (main): Mark unused parameters.
40684         * tests/test-fseeko.c (main): Likewise.
40685         * tests/test-ftello.c (main): Likewise.
40686         * tests/test-nanosleep.c (main): Avoid declaration warning.
40687         * tests/test-sleep.c (main): Likewise.
40688         * tests/test-unsetenv.c (main): Silence warning about string
40689         literal.
40690         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40691
40692 2009-12-23  Bruno Haible  <bruno@clisp.org>
40693
40694         * tests/test-localename.c (test_locale_name): New function, extracted
40695         from main. Also test mixed situations.
40696         (test_locale_name_posix, test_locale_name_environ,
40697         test_locale_name_default): New functions.
40698         (main): Invoke them all.
40699         * modules/localename-tests (configure.ac): Test for newlocale.
40700
40701 2009-12-23  Bruno Haible  <bruno@clisp.org>
40702
40703         unistd: Ensure getcwd gets declared before being overridden.
40704         * lib/unistd.in.h: Conditionally include <io.h>.
40705
40706 2009-12-22  Bruno Haible  <bruno@clisp.org>
40707
40708         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40709         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40710         (gl_WCHAR_H): Invoke it.
40711         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40712         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40713         Reported by Karl Berry <karl@freefriends.org>.
40714
40715 2009-12-22  Eric Blake  <ebb9@byu.net>
40716
40717         math, unistd: avoid redundant includes
40718         * lib/math.in.h (isnan): No need to re-include <math.h>.
40719         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40720
40721         getsubopt: work around cygwin bug
40722         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40723         avoid conflicting with system getsubopt.
40724         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40725         bug.
40726
40727         getopt: synchronize from glibc
40728         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40729         parameter order.  Adjust all callers.
40730         (_getopt_internal_r, main): Adjust quoting in error messages.
40731         Drop considerations for outdated POSIX 1003.2 error message.
40732         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40733         callers.
40734         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40735
40736         test-getopt: test stderr behavior
40737         * modules/getopt-posix-tests (Depends-on): Add dup2.
40738         * tests/test-getopt.c (ASSERT): Avoid stderr.
40739         (main): Move stderr to a temporary file.
40740         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40741         Instead, add parameter to inform caller if output occurred.
40742         (test_getopt): Adjust all existing tests to expect silence, and
40743         add new tests of leading ":".
40744         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40745         glibc shortcomings with leading "-:" or "+:" in optstring.
40746         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40747         Likewise.
40748         * doc/posix-functions/getopt.texi (getopt): Likewise.
40749
40750         test-getopt: enhance test
40751         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40752         supports optind=0.
40753         * tests/test-getopt.c (OPTIND_MIN): Move...
40754         * tests/test-getopt.h (OPTIND_MIN): ...here.
40755         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40756         Require that optind=0 works, since modern BSD supports it in
40757         addition to optreset, and since coreutils expects it.
40758         (test_getopt_long_only): New test.
40759         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40760         glibc shortcomings with 'W;', and enforcement of optind=0.
40761         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40762         Likewise.
40763
40764 2009-12-21  Bruno Haible  <bruno@clisp.org>
40765
40766         localename: Improvements for MacOS X and Cygwin.
40767         * lib/localename.h (gl_locale_name_environ): New declaration.
40768         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40769         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40770         (gl_locale_name_posix): Invoke it.
40771         (gl_locale_name_default): Add comments. Use Windows native API also on
40772         Cygwin.
40773
40774 2009-12-21  Bruno Haible  <bruno@clisp.org>
40775
40776         Update list of Win32 locale ids.
40777         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40778         (LANG_SAMI): Renamed from LANG_SAAMI.
40779         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40780         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40781         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40782         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40783         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40784         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40785         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40786         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40787         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40788         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40789         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40790         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40791         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40792         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40793         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40794         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40795         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40796         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40797         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40798         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40799         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40800         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40801         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40802         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40803         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40804         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40805         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40806         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40807         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40808         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40809         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40810         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40811         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40812         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40813         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40814         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40815         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40816         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40817         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40818         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40819         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40820         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40821         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40822         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40823         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40824         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40825         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40826         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40827         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40828         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40829         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40830         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40831         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40832         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40833         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40834         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40835         Add more languages and countries for Sami, Sorbian. Add more countries
40836         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40837         for Pashto. Change country for Syriac, Tswana.
40838
40839 2009-12-21  Eric Blake  <ebb9@byu.net>
40840
40841         test-utimens: avoid spurious failure
40842         * tests/test-chown.h (nap): Factor...
40843         * tests/nap.h: ...into new file.
40844         * tests/test-lchown.h (nap): Avoid duplication.
40845         * tests/test-utimens-common.h (nap): Use shared implementation,
40846         necessary on file systems with 1-second resolution.
40847         * modules/chown-tests (Files): Include new file.
40848         * modules/fdutimensat-tests (Files): Likewise.
40849         * modules/futimens-tests (Files): Likewise.
40850         * modules/lchown-tests (Files): Likewise.
40851         * modules/openat-tests (Files): Likewise.
40852         * modules/utimens-tests (Files): Likewise.
40853         * modules/utimensat-tests (Files): Likewise.
40854
40855 2009-12-19  Eric Blake  <ebb9@byu.net>
40856
40857         futimens, utimensat: work around Linux bug
40858         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40859         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40860         * lib/utimensat.c (rpl_utimensat): Work around it.
40861         * lib/futimens.c (rpl_futimens): Adjust comment.
40862
40863         utimens: work around Linux ctime bug
40864         * lib/utimens.c (detect_ctime_bug): New helper function.
40865         (update_timespec): Differentiate between workaround needed for
40866         this bug vs. what is needed for systems that lack utimensat.
40867         (fdutimens, lutimens): Work around bug.
40868
40869         utimens: check for ctime update
40870         * tests/test-utimens-common.h (check_ctime): Define.
40871         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40872         * tests/test-futimens.h (test_futimens): Likewise.
40873         * tests/test-lutimens.h (test_lutimens): Likewise.
40874         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40875         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40876
40877 2009-12-19  Bruno Haible  <bruno@clisp.org>
40878
40879         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40880         * tests/test-dprintf-posix2.sh: New file.
40881         * tests/test-dprintf-posix2.c: New file.
40882         * modules/dprintf-posix-tests (Files): Add them.
40883         (configure.ac): Check for getrlimit and setrlimit.
40884         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40885
40886 2009-12-19  Bruno Haible  <bruno@clisp.org>
40887
40888         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40889         * tests/test-fprintf-posix3.sh: New file.
40890         * tests/test-fprintf-posix3.c: New file.
40891         * modules/fprintf-posix-tests (Files): Add them.
40892         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40893
40894 2009-12-19  Eric Blake  <ebb9@byu.net>
40895
40896         dirfd: fix prototype
40897         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40898         * lib/dirfd.c (dirfd): Likewise.
40899
40900         canonicalize: reduce memory usage
40901         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40902         allocation to size.
40903         Reported by Solar Designer <solar@openwall.com>.
40904
40905 2009-12-19  Bruno Haible  <bruno@clisp.org>
40906
40907         New module attribute 'Applicability'.
40908         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40909         * gnulib-tool: New option --extract-applicability.
40910         (func_usage): Document it.
40911         (sed_extract_prog): Recognize it.
40912         (func_get_applicability): New function.
40913         (func_import): Generalize handling of 'link-warning' module.
40914         * modules/link-warning (Applicability): New section.
40915         * modules/arg-nonnull (Applicability): New section.
40916         Repoted by Simon Josefsson <simon@josefsson.org>.
40917
40918 2009-12-19  Bruno Haible  <bruno@clisp.org>
40919
40920         fflush: tweak
40921         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40922         * lib/fseeko.c (rpl_fseeko): Likewise.
40923
40924 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40925
40926         * lib/gl_list.h: Fix typo in comment.
40927
40928 2009-12-16  Eric Blake  <ebb9@byu.net>
40929
40930         fcntl: use to simplify other modules
40931         * modules/cloexec (Depends-on): Add fcntl.
40932         * modules/fchdir (Depends-on): Likewise.
40933         * modules/fd-safer-flag (Depends-on): Likewise.
40934         * modules/unistd-safer (Depends-on): Likewise.
40935         * modules/dup3 (configure.ac): Set module indicator.
40936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40937         missing.
40938         * lib/fchdir.c (_gl_register_dup): Fix comment.
40939         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40940         * lib/dup-safer.c (dup_safer): Likewise.
40941         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40942         * lib/dup3.c (dup3): Likewise.
40943         * tests/test-fchdir.c (main): Enhance test.
40944         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40945
40946         fcntl: port portions of fcntl to mingw
40947         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40948         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40949         replacement for mingw.
40950         * modules/fcntl (Description): Update.
40951         (Depends-on): Add dup2.
40952         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40953         * modules/fcntl-h (Makefile.am): Substitute it.
40954         * lib/fcntl.in.h (fcntl): Update declaration.
40955         (F_DUPFD, F_GETFD): New macros, when needed.
40956         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40957         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40958         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40959         we now guarantee.
40960
40961         fcntl: work around cygwin bug in F_DUPFD
40962         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40963         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40964         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40965         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40966         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40967
40968         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40969         * modules/fcntl (Files): List new files.
40970         (configure.ac): Run a test.
40971         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40972         * lib/fcntl.c (rpl_fcntl): Likewise.
40973         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40974         (gl_FCNTL_H): Always replace fcntl.h.
40975         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40976         * lib/fcntl.in.h (fcntl): Declare replacement.
40977         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40978         needed, plus a witness.
40979         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40980         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40981         * tests/test-fcntl.c: New file.
40982         * modules/fcntl-tests: Likewise.
40983
40984         binary-io: avoid potential compilation warning
40985         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40986         directives.
40987
40988         fflush: avoid compilation error on NetBSD
40989         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40990         between off_t and fpos_t, since the latter is sometimes a struct.
40991         * lib/fseeko.c (rpl_fseeko): Likewise.
40992         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40993
40994 2009-12-15  Eric Blake  <ebb9@byu.net>
40995
40996         fcntl-h, stdio, sys_ioctl: fix declarations
40997         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40998         function must not take arguments.
40999         * lib/sys_ioctl.in.h (ioctl): Likewise.
41000         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41001         (open): Add a link warning.
41002
41003 2009-12-15  Jim Meyering  <meyering@redhat.com>
41004
41005         areadlink, areadlink-with-size: relax license to LGPLv2+
41006         * modules/areadlink (License): Relax to LGPLv2+.
41007         * modules/areadlink-with-size (License): Likewise.
41008
41009 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41010             Bruno Haible  <bruno@clisp.org>
41011
41012         *printf: Fix memory leak.
41013         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41014         * lib/vfprintf.c (vfprintf): Likewise.
41015         * lib/dprintf.c (dprintf): Likewise.
41016         * lib/vdprintf.c (vdprintf): Likewise.
41017
41018 2009-12-14  Eric Blake  <ebb9@byu.net>
41019
41020         accept4: adjust module dependencies
41021         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41022
41023         utimens: one more try at avoiding compiler warning
41024         * lib/utimens.c (lutimens): Lower scope of result.
41025
41026 2009-12-13  Bruno Haible  <bruno@clisp.org>
41027
41028         Move the malloc checking from module 'list' to new module 'xlist'.
41029         * modules/xlist: New file.
41030         * lib/gl_xlist.h: New file.
41031         * lib/gl_xlist.c: New file.
41032         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41033         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41034         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41035         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41036         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41037         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41038         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41039         gl_sortedlist_nx_add): New declarations.
41040         (struct gl_list_implementation): Rename and change methods accordingly.
41041         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41042         (gl_list_nx_create): Renamed from gl_list_create.
41043         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41044         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41045         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41046         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41047         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41048         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41049         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41050         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41051         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41052         gl_list_create_empty.
41053         (gl_list_nx_create): Renamed from gl_list_create.
41054         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41055         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41056         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41057         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41058         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41059         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41060         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41061         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41062         * lib/gl_array_list.c: Don't include xalloc.h.
41063         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41064         NULL upon out-of-memory.
41065         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41066         out-of-memory.
41067         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41068         Change return type to 'int'.
41069         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41070         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41071         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41072         upon out-of-memory.
41073         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41074         upon out-of-memory.
41075         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41076         upon out-of-memory.
41077         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41078         upon out-of-memory.
41079         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41080         out-of-memory.
41081         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41082         Update.
41083         (gl_array_list_implementation): Update.
41084         * lib/gl_carray_list.c: Don't include xalloc.h.
41085         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41086         Return NULL upon out-of-memory.
41087         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41088         out-of-memory.
41089         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41090         Change return type to 'int'.
41091         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41092         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41093         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41094         upon out-of-memory.
41095         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41096         upon out-of-memory.
41097         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41098         out-of-memory.
41099         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41100         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41101         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41102         Update.
41103         (gl_carray_list_implementation): Update.
41104         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41105         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41106         gl_linked_create_empty. Return NULL upon out-of-memory.
41107         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41108         out-of-memory.
41109         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41110         Change return type to 'int'. Return -1 upon out-of-memory.
41111         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41112         out-of-memory.
41113         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41114         upon out-of-memory.
41115         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41116         upon out-of-memory.
41117         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41118         NULL upon out-of-memory.
41119         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41120         upon out-of-memory.
41121         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41122         out-of-memory.
41123         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41124         Update.
41125         * lib/gl_linked_list.c: Don't include xalloc.h.
41126         (gl_linked_list_implementation): Update.
41127         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41128         (add_to_bucket): Change return type to 'int'.
41129         (gl_linkedhash_list_implementation): Update.
41130         * lib/gl_anytree_list1.h (free_subtree): New function.
41131         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41132         gl_tree_create_empty. Return NULL upon out-of-memory.
41133         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41134         Change return type to 'int'. Return -1 upon out-of-memory.
41135         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41136         out-of-memory.
41137         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41138         (gl_tree_remove_node): New function, moved here from
41139         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41140         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41141         Update.
41142         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41143         malloc, not xmalloc. Return NULL upon out-of-memory.
41144         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41145         out-of-memory.
41146         (gl_tree_remove_node_from_tree): New function, extracted from
41147         gl_tree_remove_node.
41148         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41149         upon out-of-memory.
41150         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41151         out-of-memory.
41152         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41153         upon out-of-memory.
41154         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41155         upon out-of-memory.
41156         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41157         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41158         not xmalloc. Return NULL upon out-of-memory.
41159         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41160         out-of-memory.
41161         (gl_tree_remove_node_from_tree): New function, extracted from
41162         gl_tree_remove_node.
41163         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41164         upon out-of-memory.
41165         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41166         out-of-memory.
41167         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41168         upon out-of-memory.
41169         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41170         upon out-of-memory.
41171         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41172         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41173         gl_anytree_list1.h before gl_anyavltree_list2.h.
41174         (gl_avltree_list_implementation): Update.
41175         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41176         gl_anytree_list1.h before gl_anyavltree_list2.h.
41177         (gl_rbtree_list_implementation): Update.
41178         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41179         Change return type to 'int'. Return -1 upon out-of-memory. Use
41180         __builtin_expect.
41181         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41182         (gl_avltreehash_list_implementation): Update.
41183         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41184         (gl_rbtreehash_list_implementation): Update.
41185         * modules/array-list (Depends-on): Remove xalloc.
41186         * modules/carray-list (Depends-on): Likewise.
41187         * modules/linked-list (Depends-on): Likewise.
41188         * modules/linkedhash-list (Depends-on): Likewise.
41189         * modules/avltree-list (Depends-on): Likewise.
41190         * modules/rbtree-list (Depends-on): Likewise.
41191         * modules/avltreehash-list (Depends-on): Likewise.
41192         * modules/rbtreehash-list (Depends-on): Likewise.
41193
41194         * modules/xsublist: New file.
41195         * lib/gl_xsublist.h: New file.
41196         * lib/gl_xsublist.c: New file.
41197         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41198         (gl_sublist_nx_create): New declaration.
41199         * lib/gl_sublist.c: Don't include xalloc.h.
41200         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41201         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41202         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41203         Change return type to 'int'. Return -1 upon out-of-memory.
41204         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41205         upon out-of-memory.
41206         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41207         NULL upon out-of-memory.
41208         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41209         upon out-of-memory.
41210         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41211         NULL upon out-of-memory.
41212         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41213         NULL upon out-of-memory.
41214         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41215         upon out-of-memory.
41216         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41217         (gl_sublist_list_implementation): Update.
41218         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41219         upon out-of-memory.
41220         * modules/sublist (Depends-on): Remove xalloc.
41221
41222         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41223         * tests/test-carray_list.c: Likewise.
41224         * tests/test-linked_list.c: Likewise.
41225         * tests/test-linkedhash_list.c: Likewise.
41226         * tests/test-avltree_list.c: Likewise.
41227         * tests/test-rbtree_list.c: Likewise.
41228         * tests/test-avltreehash_list.c: Likewise.
41229         * tests/test-rbtreehash_list.c: Likewise.
41230         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41231         * modules/carray-list-tests (Makefile.am): Likewise.
41232         * modules/linked-list-tests (Makefile.am): Likewise.
41233         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41234         * modules/avltree-list-tests (Makefile.am): Likewise.
41235         * modules/rbtree-list-tests (Makefile.am): Likewise.
41236         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41237         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41238
41239         * NEWS: Mention the changes.
41240
41241         * lib/clean-temp.c: Include gl_xlist.h.
41242         * modules/clean-temp (Depends-on): Add xlist.
41243
41244         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41245         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41246
41247         * tests/test-array_oset.c: Include gl_xlist.h.
41248         * modules/array-oset-tests (Depends-on): Add xlist.
41249
41250         Reported by José E. Marchesi <jemarch@gnu.org>.
41251
41252 2009-12-13  Bruno Haible  <bruno@clisp.org>
41253
41254         Move the malloc checking from module 'oset' to new module 'xoset'.
41255         * modules/xoset: New file.
41256         * lib/gl_xoset.h: New file.
41257         * lib/gl_xoset.c: New file.
41258         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41259         declarations.
41260         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41261         (struct gl_oset_implementation): Rename and change methods accordingly.
41262         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41263         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41264         'int'. Mark as __warn_unused_result__.
41265         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41266         gl_oset_create_empty.
41267         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41268         'int'.
41269         * lib/gl_array_oset.c: Don't include xalloc.h.
41270         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41271         malloc, not xmalloc.
41272         (grow): Change return type to 'int'. Don't call xalloc_die.
41273         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41274         to 'int'.
41275         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41276         'int'.
41277         (gl_array_oset_implementation): Update.
41278         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41279         gl_tree_create_empty.
41280         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41281         'int'.
41282         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41283         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41284         xmalloc.
41285         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41286         not xmalloc.
41287         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41288         xmalloc.
41289         (gl_avltree_oset_implementation): Update.
41290         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41291         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41292         xmalloc.
41293         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41294         not xmalloc.
41295         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41296         xmalloc.
41297         (gl_rbtree_oset_implementation): Update.
41298         * modules/array-oset (Depends-on): Remove xalloc.
41299         * modules/avltree-oset (Depends-on): Likewise.
41300         * modules/rbtree-oset (Depends-on): Likewise.
41301         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41302         * tests/test-avltree_oset.c: Likewise.
41303         * tests/test-rbtree_oset.c: Likewise.
41304         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41305         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41306         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41307         * NEWS: Mention the change.
41308
41309 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41310
41311         maint.mk: allow a project to override release-prep commands
41312         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41313         commands into a new rule.
41314         (release-prep): New rule.
41315         (release-prep-hook): New overridable variable.
41316
41317 2009-12-13  Bruno Haible  <bruno@clisp.org>
41318
41319         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41320
41321 2009-12-13  Jim Meyering  <meyering@redhat.com>
41322
41323         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41324         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41325
41326 2009-12-12  Bruno Haible  <bruno@clisp.org>
41327
41328         duplocale: Tweak.
41329         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41330
41331 2009-12-12  Karl Berry  <karl@gnu.org>
41332
41333         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41334
41335 2009-12-12  Bruno Haible  <bruno@clisp.org>
41336
41337         * m4/po.m4: Undo incorrect untabification.
41338
41339 2009-12-12  Bruno Haible  <bruno@clisp.org>
41340
41341         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41342         * modules/c-strtod (Depends-on): Add locale.
41343         * modules/c-strtold (Depends-on): Likewise.
41344
41345 2009-12-12  Bruno Haible  <bruno@clisp.org>
41346
41347         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41348
41349 2009-12-11  Eric Blake  <ebb9@byu.net>
41350
41351         setenv: relax requirement in light of POSIX ruling
41352         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41353         not NULL.
41354         * tests/test-setenv.c (main): Relax test.
41355         * tests/test-unsetenv.c (main): Likewise.
41356         * doc/posix-functions/setenv.texi (setenv): Document this.
41357         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41358
41359 2009-12-11  Bruno Haible  <bruno@clisp.org>
41360
41361         New module 'fd-safer-flag'.
41362         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41363         * lib/dup-safer.c (dup_safer_flag): Remove function.
41364         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41365         * lib/fd-safer.c (fd_safer_flag): Remove function.
41366         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41367         * modules/cloexec (configure.ac): Drop indicator macro.
41368         * modules/fd-safer-flag: New file.
41369         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41370         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41371         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41372
41373 2009-12-11  Bruno Haible  <bruno@clisp.org>
41374
41375         Tests for module 'nl_langinfo'.
41376         * modules/nl_langinfo-tests: New file.
41377         * tests/test-nl_langinfo.sh: New file.
41378         * tests/test-nl_langinfo.c: New file.
41379
41380         New module 'nl_langinfo'.
41381         * lib/nl_langinfo.c: New file.
41382         * m4/nl_langinfo.m4: New file.
41383         * modules/nl_langinfo: New file.
41384         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41385
41386 2009-12-11  Bruno Haible  <bruno@clisp.org>
41387
41388         Tests for module 'langinfo'.
41389         * modules/langinfo-tests: New file.
41390         * tests/test-langinfo.c: New file.
41391
41392         New module 'langinfo'.
41393         * lib/langinfo.in.h: New file.
41394         * m4/langinfo_h.m4: New file.
41395         * modules/langinfo: New file.
41396         * doc/posix-headers/langinfo.texi: Mention the new module.
41397
41398 2009-12-11  Bruno Haible  <bruno@clisp.org>
41399
41400         * lib/config.charset: Untabify.
41401
41402 2009-12-11  Bruno Haible  <bruno@clisp.org>
41403
41404         * modules/unistd-safer (configure.ac): Drop indicator macro.
41405
41406 2009-12-11  Bruno Haible  <bruno@clisp.org>
41407
41408         Move pipe2-safer code to its own file.
41409         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41410         * lib/pipe-safer.c (pipe2_safer): Remove function.
41411         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41412         (Makefile.am): Add it to lib_SOURCES.
41413
41414 2009-12-10  Bruno Haible  <bruno@clisp.org>
41415
41416         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41417
41418 2009-12-10  Bruno Haible  <bruno@clisp.org>
41419
41420         Declare which arguments expect non-NULL values, for GCC and clang.
41421         * build-aux/arg-nonnull.h: New file.
41422         * modules/arg-nonnull: New file.
41423         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41424         (inet_ntop, inet_pton): Use it.
41425         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41426         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41427         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41428         (open, openat): Use it.
41429         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41430         (fnmatch): Use it.
41431         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41432         (getopt, getopt_long, getopt_long_only): Use it.
41433         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41434         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41435         Use it.
41436         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41437         (iconv_open): Use it.
41438         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41439         (strtoimax, strtoumax): Use it.
41440         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41441         (duplocale): Use it.
41442         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41443         (frexp, frexpl): Use it.
41444         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41445         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41446         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41447         (tsearch, tfind, tdelete, twalk): Use it.
41448         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41449         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41450         sigpending): Use it.
41451         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41452         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41453         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41454         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41455         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41456         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41457         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41458         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41459         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41460         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41461         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41462         Use it.
41463         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41464         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41465         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41466         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41467         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41468         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41469         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41470         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41471         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41472         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41473         strtoull, unsetenv): Use it.
41474         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41475         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41476         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41477         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41478         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41479         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41480         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41481         (strcasecmp, strncasecmp): Use it.
41482         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41483         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41484         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41485         rpl_setsockopt): Use it.
41486         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41487         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41488         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41489         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41490         (gettimeofday): Use it.
41491         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41492         (times): Use it.
41493         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41494         (uname): Use it.
41495         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41496         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41497         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41498         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41499         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41500         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41501         unlinkat, write): Use it.
41502         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41503         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41504         * lib/argv-iter.h: Include arg-nonnull.h.
41505         (_ATTRIBUTE_NONNULL_): Remove macro.
41506         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41507         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41508         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41509         optimization.
41510         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41511         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41512         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41513         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41514         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41515         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41516         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41517         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41518         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41519         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41520         * modules/dirent (Depends-on): Add arg-nonnull.
41521         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41522         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41523         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41524         * modules/fnmatch (Depends-on): Add arg-nonnull.
41525         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41526         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41527         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41528         * modules/glob (Depends-on): Add arg-nonnull.
41529         (Makefile.am): Insert arg-nonnull.h into glob.h.
41530         * modules/iconv_open (Depends-on): Add arg-nonnull.
41531         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41532         * modules/inttypes (Depends-on): Add arg-nonnull.
41533         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41534         * modules/locale (Depends-on): Add arg-nonnull.
41535         (Makefile.am): Insert arg-nonnull.h into locale.h.
41536         * modules/math (Depends-on): Add arg-nonnull.
41537         (Makefile.am): Insert arg-nonnull.h into math.h.
41538         * modules/netdb (Depends-on): Add arg-nonnull.
41539         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41540         * modules/search (Depends-on): Add arg-nonnull.
41541         (Makefile.am): Insert arg-nonnull.h into search.h.
41542         * modules/signal (Depends-on): Add arg-nonnull.
41543         (Makefile.am): Insert arg-nonnull.h into signal.h.
41544         * modules/spawn (Depends-on): Add arg-nonnull.
41545         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41546         * modules/stdio (Depends-on): Add arg-nonnull.
41547         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41548         * modules/stdlib (Depends-on): Add arg-nonnull.
41549         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41550         * modules/string (Depends-on): Add arg-nonnull.
41551         (Makefile.am): Insert arg-nonnull.h into string.h.
41552         * modules/strings (Depends-on): Add arg-nonnull.
41553         (Makefile.am): Insert arg-nonnull.h into strings.h.
41554         * modules/sys_socket (Depends-on): Add arg-nonnull.
41555         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41556         * modules/sys_stat (Depends-on): Add arg-nonnull.
41557         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41558         * modules/sys_time (Depends-on): Add arg-nonnull.
41559         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41560         * modules/sys_times (Depends-on): Add arg-nonnull.
41561         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41562         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41563         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41564         * modules/time (Depends-on): Add arg-nonnull.
41565         (Makefile.am): Insert arg-nonnull.h into time.h.
41566         * modules/unistd (Depends-on): Add arg-nonnull.
41567         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41568         * modules/wchar (Depends-on): Add arg-nonnull.
41569         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41570         * modules/argv-iter (Depends-on): Add arg-nonnull.
41571         * tests/test-canonicalize.c (null_ptr): New function.
41572         (main): Use it.
41573         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41574         (main): Use it.
41575         * tests/test-memmem.c (null_ptr): New function.
41576         (main): Use it.
41577         Reported by Jim Meyering.
41578
41579 2009-12-10  Bruno Haible  <bruno@clisp.org>
41580
41581         Use spaces for indentation, not tabs.
41582         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41583         * m4/*.m4: Untabify.
41584         * build-aux/*.h: Untabify.
41585         * tests/**/*.[hc]: Untabify.
41586         * README: New section "Indent with spaces, not TABs", based on
41587         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41588         * NEWS: Mention the change.
41589
41590 2009-12-10  Bruno Haible  <bruno@clisp.org>
41591
41592         pty test: Fix link error.
41593         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41594         test_pty_LDADD.
41595
41596 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41597
41598         * modules/pty: New file.
41599         * modules/pty-tests: New file.
41600         * m4/pty.m4: New file.
41601         * tests/test-pty.c: New file.
41602         * doc/glibc-headers/pty.texi: Modified.
41603         * doc/glibc-functions/forkpty.texi: Modified.
41604         * doc/glibc-functions/openpty.texi: Modified.
41605
41606 2009-12-10  Bruno Haible  <bruno@clisp.org>
41607
41608         Avoid syntax error in C++ mode.
41609         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41610
41611 2009-12-10  Bruno Haible  <bruno@clisp.org>
41612
41613         Use sed with option -e.
41614         * gnulib-tool (func_version, func_emit_copyright_notice,
41615         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41616         option -e to sed.
41617         * modules/link-warning (Makefile.am): Likewise.
41618
41619 2009-12-10  Jim Meyering  <meyering@redhat.com>
41620
41621         mgetgroups: do not write bytes beyond end of malloc'd buffer
41622         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41623         username, we call getgroups with a one-element-shorter buffer,
41624         but still told it the length was original, max_n_groups.
41625
41626 2009-12-09  Eric Blake  <ebb9@byu.net>
41627
41628         cloexec: relax license
41629         * modules/cloexec (Maintainer): Add myself.
41630         (License): Use LGPL, not GPL.
41631
41632         link-warning: optimize generation
41633         * modules/link-warning (Makefile.am): Reduce process usage.
41634
41635 2009-12-09  Bruno Haible  <bruno@clisp.org>
41636
41637         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41638         workaround was added on 2009-11-17.
41639
41640 2009-12-09  Jim Meyering  <meyering@redhat.com>
41641             Bruno Haible  <bruno@clisp.org>
41642
41643         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41644         * modules/link-warning (Makefile.am): Make the comment-removing sed
41645         command more robust in the face of bootstrap-prepended comment lines.
41646
41647 2009-12-09  Bruno Haible  <bruno@clisp.org>
41648
41649         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41650         most one group.
41651
41652 2009-12-09  Simon Josefsson <simon@josefsson.org>
41653             Bruno Haible  <bruno@clisp.org>
41654
41655         * build-aux/link-warning.h: Add copyright notice.
41656         * modules/link-warning (Makefile.am): Generate link-warning.h from
41657         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41658         * NEWS: Mention change in link-warning module.
41659         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41660         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41661         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41662         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41663         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41664         * modules/math (Makefile.am): Add dependency to math.h.
41665         * modules/search (Makefile.am): Add dependency to search.h.
41666         * modules/signal (Makefile.am): Add dependency to signal.h.
41667         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41668         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41669         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41670         * modules/string (Makefile.am): Add dependency to string.h.
41671         * modules/strings (Makefile.am): Add dependency to strings.h.
41672         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41673         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41674         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41675         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41676         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41677         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41678         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41679         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41680         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41681
41682 2009-12-09  Bruno Haible  <bruno@clisp.org>
41683
41684         fchdir: Optimize away rpl_fstat when possible.
41685         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41686         REPLACE_OPEN_DIRECTORY.
41687         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41688
41689 2009-12-09  Bruno Haible  <bruno@clisp.org>
41690
41691         * lib/fchdir.c: Update comment.
41692
41693 2009-12-09  Bruno Haible  <bruno@clisp.org>
41694
41695         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41696
41697 2009-12-08  Eric Blake  <ebb9@byu.net>
41698
41699         fchdir: avoid memory leak on re-registration.
41700         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41701
41702 2009-12-08  Jim Meyering  <meyering@redhat.com>
41703
41704         init.sh: avoid Solaris 10 /bin/sh portability problem
41705         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41706         sourced script:
41707           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41708           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41709           bar
41710         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41711         and two tests used that idiom.
41712         * tests/init.sh: Update suggested usage comments.
41713         (path_prepend_): New function, to be used in place
41714         of the --src-path=DIR option.
41715         (setup_): Move PATH-prepending code into path_prepend_.
41716         * tests/test-pread.sh: Adapt to new usage.
41717         * tests/test-xalloc-die.sh: Likewise.
41718
41719 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41720
41721         * doc/gnulib.texi (Glibc pty.h): Add.
41722         * doc/glibc-functions/forkpty.texi: Add.
41723         * doc/glibc-functions/openpty.texi: Add.
41724         Suggested by Bruno Haible.
41725
41726 2009-12-08  Eric Blake  <ebb9@byu.net>
41727
41728         fchdir: fix logic bugs
41729         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41730         * tests/test-fchdir.c (main): Enhance test.
41731         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41732         is in use.
41733
41734         dup2: fix logic bugs
41735         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41736         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41737         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41738         exists.
41739         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41740
41741 2009-12-07  Eric Blake  <ebb9@byu.net>
41742
41743         unlink: fix m4 detection
41744         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41745
41746         unistd-safer: add unit test
41747         * modules/unistd-safer-tests: New file.
41748         * tests/test-dup-safer.c: Likewise.
41749         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41750         * tests/test-dup2.c (setmode): Likewise.
41751         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41752
41753         cloexec: preserve text vs. binary across dup_cloexec
41754         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41755         mode.
41756         * modules/dup2-tests (Depends-on): Add binary-io.
41757         * modules/cloexec-tests (Depends-on): Likewise.
41758         * tests/test-dup2.c (setmode, is_mode): New helpers.
41759         (main): Add tests that translation mode is preserved.
41760         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41761         Reported by Bruno Haible.
41762
41763         mgetgroups: reduce duplicate listings
41764         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41765         resulting array.
41766         * tests/test-chown.h (test_chown): Simplify client.
41767         * tests/test-lchown.h (test_lchown): Likewise.
41768
41769 2009-12-06  Bruno Haible  <bruno@clisp.org>
41770
41771         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41772         value.
41773
41774 2009-12-06  Bruno Haible  <bruno@clisp.org>
41775
41776         * lib/progname.c: Include stdio.h, stdlib.h.
41777         (set_program_name): Reject a NULL argument.
41778
41779 2009-12-05  Eric Blake  <ebb9@byu.net>
41780
41781         pipe2-safer: new module
41782         * modules/pipe2-safer: New file.
41783         * lib/unistd-safer.h (pipe2_safer): New prototype.
41784         * lib/unistd--.h (pipe2): New wrapper.
41785         * lib/pipe-safer.c (pipe2_safer): New function.
41786         * modules/pipe (Depends-on): Add pipe2-safer.
41787         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41788
41789         stdlib-safer: preserve cloexec flag for mkostemp[s]
41790         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41791         fd_safer_flag.
41792
41793         unistd-safer: allow preservation of cloexec status via flag
41794         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41795         prototypes.
41796         * lib/dup-safer.c (dup_safer_flag): New function.
41797         * lib/fd-safer.c (fd_safer_flag): Likewise.
41798         * modules/cloexec (configure.ac): Set witness.
41799
41800         test-dup2: enhance test
41801         * modules/dup2-tests (Depends-on): Add cloexec.
41802         * tests/test-dup2.c (main): Enhance test.
41803
41804         cloexec: add dup_cloexec
41805         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41806         header and comments.
41807         * lib/cloexec.c (set_cloexec_flag): Add comments.
41808         (dup_cloexec): New function, with mingw implementation borrowed
41809         from...
41810         * lib/w32spawn.h (dup_noinherit): ...here.
41811         * modules/execute (Depends-on): Add cloexec.
41812         * modules/pipe (Depends-on): Likewise.
41813         * modules/cloexec (Depends-on): Add dup2.
41814         * modules/cloexec-tests (Files): New file.
41815         * tests/test-cloexec.c: Likewise.
41816
41817         test-xalloc-die: fix test for mingw
41818         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41819         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41820         directory and .exe suffix off argv[0] output.
41821
41822         test-fseeko: fix test for mingw
41823         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41824         than undefining fseek, so test will pass on mingw.
41825
41826 2009-12-05  Bruno Haible  <bruno@clisp.org>
41827
41828         * lib/progname.h (set_program_name): Clarify specification.
41829         * lib/progname.c (set_program_name): Likewise.
41830         Reported by Jim Meyering.
41831
41832 2009-12-05  Jim Meyering  <meyering@redhat.com>
41833
41834         maint.mk: backslash-escape parens in default regexp
41835         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41836         backslash-escape the literal parentheses.
41837
41838         maint.mk: news-date-check: use grep -E
41839         * top/maint.mk (today): Define a Make variable, not a...
41840         (news-date-check): ...shell variable.
41841         (news-date-regexp): Use the Make variable.
41842         Use grep's -E option.  Change the failing diagnostic to mention
41843         the variable, $(news-date-regexp).
41844
41845 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41846
41847         maintainer-makefile: allow customization of NEWS entry format
41848         * top/maint.mk (news-date-regexp): New overridable variable.
41849         (news-date-check): Use it.
41850
41851 2009-12-04  Eric Blake  <ebb9@byu.net>
41852
41853         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41854         * lib/mgetgroups.h (xgetgroups): New prototype.
41855         * lib/mgetgroups.c (xgetgroups): New wrapper.
41856         (mgetgroups): Handle ENOSYS.
41857         * modules/mgetgroups (Depends-on): Add realloc.
41858         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41859
41860         mgetgroups: avoid argument promotion issues with -1
41861         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41862         for invalid gid_t.
41863         * tests/test-chown.h (getegid, test_chown): Likewise.
41864         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41865
41866 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41867
41868         exclude: Fix header file problems.
41869         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41870
41871 2009-12-01  Jim Meyering  <meyering@redhat.com>
41872
41873         fts: fts_open: do not let an empty string cause immediate failure
41874         This is required in support of GNU rm, for which the command
41875         "rm A '' B" must process and remove both A and B, in spite of
41876         the empty string argument.
41877         * lib/fts.c (fts_open): Do not let the presence of an empty string
41878         cause fts_open to fail immediately.  Most fts-using tools must be
41879         able to process all arguments, in order, and can be expected to
41880         diagnose such arguments themselves.
41881
41882 2009-11-30  Eric Blake  <ebb9@byu.net>
41883
41884         utimens: fix compilation error
41885         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41886         Declare variable at right scope.
41887
41888 2009-11-29  Jim Meyering  <meyering@redhat.com>
41889
41890         bootstrap: handle perl-5.11's changed --version output
41891         * build-aux/bootstrap (get_version): Handle perl separately,
41892         since perl-5.11's --version output is different.
41893
41894 2009-11-28  Jim Meyering  <meyering@redhat.com>
41895
41896         userspec: depend on the inttostr module, too
41897         * modules/userspec (Depends-on): Add inttostr.
41898
41899         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41900         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41901         number of MAXUID when it evaluates to (uid_t) -1.
41902         Likewise for group ID.  Reported by Matt McCutchen in
41903         <http://savannah.gnu.org/bugs/?28113>
41904
41905         userspec: reformat to use spaces, not TABs
41906         * lib/userspec.c: Expand TABs to spaces.
41907         Add Emacs' "indent-tabs-mode: nil" hint.
41908
41909 2009-11-27  Eric Blake  <ebb9@byu.net>
41910
41911         getopt-gnu: flush out another BSD bug
41912         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41913         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41914         flush out BSD bug.
41915         * tests/test-getopt.h (test_getopt): End lists with NULL.
41916         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41917         (test_getopt_long_posix): Enhance test.
41918         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41919         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41920         getopt-gnu.
41921         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41922         Likewise.
41923
41924 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41925
41926         * modules/idpriv-droptemp-tests (Notice): Fix text.
41927
41928 2009-11-27  Jim Meyering  <meyering@redhat.com>
41929
41930         test-xalloc-die: avoid spurious failure due to libtool argv difference
41931         In a libtool-enabled project, this test would fail due to a difference
41932         in the emitted program name, e.g.,
41933         -test-xalloc-die: memory exhausted
41934         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41935         Use program to avoid that.
41936         * modules/xalloc-die-tests (Depends-on): Add progname.
41937         * tests/test-xalloc-die.c: Include progname.h".
41938         (program_name): Remove decl.
41939         (main): Call set_program_name.
41940         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41941
41942 2009-11-26  Richard Jones  <rjones@redhat.com>
41943
41944         w32sock: leave win32 error in place.
41945         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41946
41947 2009-11-26  Eric Blake  <ebb9@byu.net>
41948
41949         init.sh: suggest to use skip_ and fail_ functions in comments
41950         * tests/init.sh: Add a sentence.
41951
41952 2009-11-25  Bruno Haible  <bruno@clisp.org>
41953
41954         init.sh: add documentation in comments
41955         * tests/init.sh: Add some developer and user documentation.
41956
41957 2009-11-26  Jim Meyering  <meyering@redhat.com>
41958
41959         init.sh: accommodate even those who specify bogus srcdir manually
41960         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41961         configure-time tests to be sanitized, so that there is no need to
41962         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41963         (with no double quotes) suffices.  However, since tests may be
41964         invoked manually, and since you may explicitly set srcdir to the
41965         name of a directory containing spaces, do quote its uses here.
41966         * tests/test-pread.sh: Likewise.
41967         Suggested by Bruno Haible.
41968
41969         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41970         * tests/test-pread.sh: Write no data into the pipe, because
41971         test-pread actually reads none.  This avoids a diagnostic,
41972         "bash: echo: write error: Broken pipe", that arises in the unusual
41973         event something is ignoring SIGPIPE, and might be interpreted
41974         as some sort of failure.  Reported by Bruno Haible.
41975
41976 2009-11-25  Jim Meyering  <meyering@redhat.com>
41977
41978         test-pread: cover failure with ESPIPE and EINVAL
41979         * tests/test-pread.c (main): Test for failure, too.
41980         * tests/test-pread.sh: Invoke with stdin on a pipe.
41981         Suggested by Eric Blake.
41982
41983         pread: improvement and fix
41984         * modules/pread (Depends-on): Depend on lseek, for portability to
41985         e.g., mingw.  Suggested by Eric Blake.
41986         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41987
41988         unistd.in.h: correct declaration of pread
41989         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41990         Reported by Richard W.M. Jones.
41991
41992         test-pread.sh: distribute the test script
41993         * modules/pread-tests (Files): Include test-pread.sh.
41994
41995         test-pread.sh: clean up
41996         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41997         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41998         That is unnecessary, since it's always ".".
41999         Suggestion from Eric Blake.
42000
42001         test-pread.sh: make executable
42002         * tests/test-pread.sh: Set executable bit.
42003         Reported by Eric Blake.
42004
42005         correct typo in test-pread.sh
42006         * tests/test-pread.sh: Add #! line.
42007
42008         test pread
42009         * tests/test-pread.c: New file.
42010         * tests/test-pread.sh: Likewise.
42011         * modules/pread-tests: Likewise.
42012
42013         pread: new module
42014         * modules/pread: New file.
42015         * lib/unistd.in.h (pread): Define/declare.
42016         * lib/pread.c (pread): New file.
42017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42018         * modules/unistd (Makefile.am): Substitute witnesses.
42019         * doc/posix-functions/pread.texi (pread): Update.
42020         * MODULES.html.sh: Add pread.
42021
42022 2009-11-25  Jim Meyering  <meyering@redhat.com>
42023
42024         tests/init.sh: new file to be used via most *.sh tests
42025         * tests/init.sh: New file.
42026
42027 2009-11-25  Eric Blake  <ebb9@byu.net>
42028
42029         utimens: work around older Linux failure with symlinks
42030         * lib/utimens.c (lutimensat_works_really): New variable.
42031         (fdutimens, lutimens): Use it to manage kernels that support
42032         nanosecond times on files, but not on symlinks.
42033         Reported by OndÅ™ej Vašík.
42034
42035         utimes: fix configure grammar
42036         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42037
42038 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42039
42040         regex: Fix fastmap for multibyte character ranges.
42041         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42042         characters when a multibyte character range is included.
42043
42044 2009-11-22  Andy Wingo  <wingo@pobox.com>
42045
42046         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42047         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42048
42049 2009-11-24  Bruno Haible  <bruno@clisp.org>
42050
42051         doc: Most *_l functions exist in MacOS X 10.5.
42052         * doc/posix-functions/duplocale.texi: Update platforms list.
42053         * doc/posix-functions/freelocale.texi: Likewise.
42054         * doc/posix-functions/newlocale.texi: Likewise.
42055         * doc/posix-functions/uselocale.texi: Likewise.
42056         * doc/posix-functions/isalnum_l.texi: Likewise.
42057         * doc/posix-functions/isalpha_l.texi: Likewise.
42058         * doc/posix-functions/isblank_l.texi: Likewise.
42059         * doc/posix-functions/iscntrl_l.texi: Likewise.
42060         * doc/posix-functions/isdigit_l.texi: Likewise.
42061         * doc/posix-functions/isgraph_l.texi: Likewise.
42062         * doc/posix-functions/islower_l.texi: Likewise.
42063         * doc/posix-functions/isprint_l.texi: Likewise.
42064         * doc/posix-functions/ispunct_l.texi: Likewise.
42065         * doc/posix-functions/isspace_l.texi: Likewise.
42066         * doc/posix-functions/isupper_l.texi: Likewise.
42067         * doc/posix-functions/iswalnum_l.texi: Likewise.
42068         * doc/posix-functions/iswalpha_l.texi: Likewise.
42069         * doc/posix-functions/iswblank_l.texi: Likewise.
42070         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42071         * doc/posix-functions/iswctype_l.texi: Likewise.
42072         * doc/posix-functions/iswdigit_l.texi: Likewise.
42073         * doc/posix-functions/iswgraph_l.texi: Likewise.
42074         * doc/posix-functions/iswlower_l.texi: Likewise.
42075         * doc/posix-functions/iswprint_l.texi: Likewise.
42076         * doc/posix-functions/iswpunct_l.texi: Likewise.
42077         * doc/posix-functions/iswspace_l.texi: Likewise.
42078         * doc/posix-functions/iswupper_l.texi: Likewise.
42079         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42080         * doc/posix-functions/isxdigit_l.texi: Likewise.
42081         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42082         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42083         * doc/posix-functions/strcoll_l.texi: Likewise.
42084         * doc/posix-functions/strfmon_l.texi: Likewise.
42085         * doc/posix-functions/strftime_l.texi: Likewise.
42086         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42087         * doc/posix-functions/strxfrm_l.texi: Likewise.
42088         * doc/posix-functions/tolower_l.texi: Likewise.
42089         * doc/posix-functions/toupper_l.texi: Likewise.
42090         * doc/posix-functions/towctrans_l.texi: Likewise.
42091         * doc/posix-functions/towlower_l.texi: Likewise.
42092         * doc/posix-functions/towupper_l.texi: Likewise.
42093         * doc/posix-functions/wcscoll_l.texi: Likewise.
42094         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42095         * doc/posix-functions/wctrans_l.texi: Likewise.
42096         * doc/posix-functions/wctype_l.texi: Likewise.
42097         * doc/glibc-functions/strptime_l.texi: Likewise.
42098         * doc/glibc-functions/strtod_l.texi: Likewise.
42099         * doc/glibc-functions/strtof_l.texi: Likewise.
42100         * doc/glibc-functions/strtol_l.texi: Likewise.
42101         * doc/glibc-functions/strtold_l.texi: Likewise.
42102         * doc/glibc-functions/strtoll_l.texi: Likewise.
42103         * doc/glibc-functions/strtoul_l.texi: Likewise.
42104         * doc/glibc-functions/strtoull_l.texi: Likewise.
42105         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42106         * doc/glibc-functions/wcstod_l.texi: Likewise.
42107         * doc/glibc-functions/wcstof_l.texi: Likewise.
42108         * doc/glibc-functions/wcstol_l.texi: Likewise.
42109         * doc/glibc-functions/wcstold_l.texi: Likewise.
42110         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42111         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42112         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42113
42114 2009-11-24  Bruno Haible  <bruno@clisp.org>
42115
42116         duplocale: Fix logic bug.
42117         * lib/duplocale.c: Don't include <langinfo.h>.
42118         (_NL_LOCALE_NAME): Remove macro.
42119         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42120         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42121
42122 2009-11-23  Jim Meyering  <meyering@redhat.com>
42123
42124         test-update-copyright: don't hard-code /usr/bin/perl
42125         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42126         perl to print the current year.  Gilles Espinasse reported that
42127         the replaced use of perl was hard-coded as /usr/bin/perl.
42128
42129 2009-11-23  Bruno Haible  <bruno@clisp.org>
42130
42131         duplocale: Add support for glibc 2.3.x.
42132         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42133
42134 2009-11-22  Bruno Haible  <bruno@clisp.org>
42135
42136         vasnprintf: Tiny optimization.
42137         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42138         MacOS X.
42139
42140 2009-11-22  Bruno Haible  <bruno@clisp.org>
42141
42142         Tests for module 'duplocale'.
42143         * modules/duplocale-tests: New file.
42144         * tests/test-duplocale.c: New file.
42145
42146         New module 'duplocale'.
42147         * m4/duplocale.m4: New file.
42148         * lib/locale.in.h (duplocale): New declaration.
42149         * lib/duplocale.c: New file.
42150         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42151         gl_LOCALE_H_DEFAULTS): New macros.
42152         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42153         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42154         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42155         REPLACE_DUPLOCALE.
42156         * modules/duplocale: New file.
42157         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42158
42159 2009-11-22  Bruno Haible  <bruno@clisp.org>
42160
42161         * modules/locale-tests (configure.ac): Test for newlocale function.
42162         * tests/test-locale.c: When the system has extended locale functions,
42163         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42164
42165         locale: Make locale_t available when possible.
42166         * lib/locale.in.h: Include <xlocale.h> when it exists.
42167         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42168         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42169         * modules/locale (Depends-on): Add extensions.
42170         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42171         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42172
42173 2009-11-22  Bruno Haible  <bruno@clisp.org>
42174
42175         Add comments.
42176         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42177         invocation.
42178         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42179         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42180         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42181
42182 2009-11-22  Bruno Haible  <bruno@clisp.org>
42183
42184         error: account for the possibility of freopen (stdout).
42185         * lib/error.c: Include <unistd.h>.
42186         (flush_stdout): New function, extracted from error and error_at_line.
42187         Determine stdout's fd dynamically.
42188         (error, error_at_line): Invoke flush_stdout.
42189         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42190         * modules/error (Depends-on): Add unistd.
42191
42192 2009-11-22  Bruno Haible  <bruno@clisp.org>
42193
42194         diffseq: Add comment.
42195         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42196
42197 2009-11-22  Jim Meyering  <meyering@redhat.com>
42198
42199         c-stack: avoid defining an unused static function
42200         * lib/c-stack.c (find_stack_direction): Do not define this function
42201         when it will not be used.
42202
42203         diffseq: avoid spurious gcc warnings
42204         * lib/diffseq.h (IF_LINT2): Define.
42205         (compareseq): Use it to initialize two members of "part".
42206         This avoids two used-uninitialized warnings.
42207
42208 2009-11-21  Jim Meyering  <meyering@redhat.com>
42209
42210         c-stack: avoid "ignoring return value of `write'" warning
42211         * lib/c-stack.c: Include "ignore-value.h".
42212         (die): Explicitly ignore each write return value.
42213         * modules/c-stack (Depends-on): Add ignore-value.
42214
42215 2009-11-21  Bruno Haible  <bruno@clisp.org>
42216
42217         diffseq: reduce scope of variable 'best'.
42218         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42219         variable, earlier used for two different purposes.
42220
42221 2009-11-21  Jim Meyering  <meyering@redhat.com>
42222
42223         diffseq: remove useless assignment to "best"
42224         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42225         assignment.  At that point "best" is already guaranteed to be zero.
42226
42227 2009-11-20  Eric Blake  <ebb9@byu.net>
42228
42229         build: mention ftp redirector in release announcements
42230         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42231         values that used to come from cfg.mk; mention FTP redirect URL.
42232         * build-aux/announce-gen: Mention the mirror list.
42233         Suggested by Karl Berry.
42234
42235         nanosleep: improve port to mingw
42236         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42238         LIB_NANOSLEEP, but only when needed.
42239         * modules/select (Link): Document LIBSOCKET.
42240         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42241         enough.
42242
42243         nanosleep: work around cygwin bug
42244         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42245         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42246         bug.
42247         (getnow): Delete, not needed.
42248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42249         LIB_CLOCK_GETTIME.
42250         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42251         clock-time, gettime.
42252         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42253         bug.
42254         * modules/nanosleep-tests: New test.
42255         * tests/test-nanosleep.c: New file.
42256
42257         sleep: work around cygwin bug
42258         * lib/sleep.c (rpl_sleep): Work around the bug.
42259         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42260         (gl_PREREQ_SLEEP): Delete unused macro.
42261         * modules/sleep (Depends-on): Add verify.
42262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42263         * modules/unistd (Makefile.am): Substitute witness.
42264         * lib/unistd.in.h (sleep): Update prototype.
42265         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42266         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42267         * modules/sleep-tests (Depends-on): Check for alarm.
42268
42269 2009-11-20  Jim Meyering  <meyering@redhat.com>
42270
42271         maint.mk: improve sc_prohibit_magic_number_exit
42272         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42273         so it does not match uses like System.exit(1).
42274         Add comments showing how to correct all offenders.
42275
42276 2009-11-19  Eric Blake  <ebb9@byu.net>
42277
42278         xalloc-die-tests: add missing library
42279         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42280
42281         test-xvasprintf: silence compiler warnings
42282         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42283         empty string from gcc.
42284
42285 2009-11-19  Jim Meyering  <meyering@redhat.com>
42286
42287         xfreopen: new module, from coreutils
42288         * modules/xfreopen: New module.
42289         * lib/xfreopen.c: New file.
42290         * lib/xfreopen.h: New file.
42291         * MODULES.html.sh (File stream based Input/Output"): Add it.
42292
42293 2009-11-19  Eric Blake  <ebb9@byu.net>
42294
42295         manywarnings: depend on warnings
42296         * modules/manywarnings (Depends-on): Add warnings.
42297
42298         build: avoid compiler warnings
42299         * lib/select.c (rpl_select): Delete unused variable.
42300         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42301
42302 2009-11-18  Eric Blake  <ebb9@byu.net>
42303
42304         tests: avoid false negative with --with-packager
42305         * tests/test-version-etc.sh: Discard packager information.
42306         * tests/test-argp-version-etc-1.sh: Likewise.
42307         Reported by Mike Frysinger.
42308
42309         utimens: fix regression on Solaris
42310         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42311         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42312         can only change fd timestamps via futimesat.  Instead, use an
42313         additional witness macro to avoid BSD bug.
42314         Reported by Jim Meyering.
42315
42316 2009-11-17  Eric Blake  <ebb9@byu.net>
42317
42318         usleep: use it to simplify tests
42319         * modules/stat-time-tests (Depends-on): Add usleep.
42320         (configure.ac): Drop usleep check.
42321         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42322         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42323         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42324         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42325         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42326         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42327         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42328         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42329         Likewise.
42330         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42331         * tests/test-lchown.h (nap): Likewise.
42332         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42333         * tests/test-stat-time.c (nap): Likewise.
42334         * tests/test-utimens-common.h (nap): Update comments.
42335
42336         usleep: new module
42337         * modules/usleep: New file.
42338         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42339         * lib/usleep.c (usleep): Likewise.
42340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42341         * modules/unistd (Makefile.am): Substitute witnesses.
42342         * lib/unistd.in.h (usleep): Add declaration.
42343         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42344         * MODULES.html.sh (Date and time): Likewise.
42345         * modules/usleep-tests (Depends-on): New test.
42346         * tests/test-usleep.c: New file.
42347
42348         chown: work around OpenBSD bug
42349         * lib/chown.c (rpl_chown): Work around the bug.
42350         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42351         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42352         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42353         * modules/chown (Depends-on): Add stdbool.
42354         * modules/lchown (Depends-on): Likewise.
42355         * doc/posix-functions/chown.texi (chown): Document the bug.
42356         * doc/posix-functions/lchown.texi (lchown): Likewise.
42357         * tests/test-lchown.h (test_chown): Relax test.
42358
42359         mkstemp: avoid conflict with C++ keyword template
42360         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42361         * lib/mkostemp.c (mkostemp): Likewise.
42362         * lib/mkostemps.c (mkostemps): Likewise.
42363         * lib/mkstemp.c (mkstemp): Likewise.
42364         * lib/mkstemps.c (mkstemps): Likewise.
42365
42366         xalloc-die-tests: optimize
42367         * tests/test-xalloc-die.sh: Reduce number of processes.
42368
42369 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42370
42371         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42372         patch from ludo@gnu.org (Ludovic Courtès).
42373
42374 2009-11-17  Jim Meyering  <meyering@redhat.com>
42375
42376         version-etc: use proper license string
42377         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42378         * modules/version-etc-fsf: Likewise.
42379
42380 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42381
42382         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42383         printed to stdout.  Deal with EOL differences.
42384
42385 2009-11-17  Eric Blake  <ebb9@byu.net>
42386
42387         unsetenv: work around Solaris bug
42388         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42389         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42390         Reported by Jim Meyering.
42391
42392         vasnprintf: avoid compiler warnings
42393         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42394         variables.
42395         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42396
42397 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42398
42399         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42400         settings since xalloc-die is no longer the self test,
42401         xalloc-die.sh is.
42402
42403 2009-11-17  Jim Meyering  <meyering@redhat.com>
42404
42405         test-xalloc-die.sh: make the code agree with the commit log
42406         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42407         at the end, just in case you happen to have a test-xalloc-die
42408         program in some other PATH directory.
42409
42410         test-xalloc-die.sh: fix a portability bug
42411         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42412         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42413         Otherwise, argv[0] (as often seen in diagnostics) would be too
42414         system-dependent, sometimes with, and sometimes without the leading "./".
42415
42416         version-etc-fsf: relax license to LGPLv3+
42417         * modules/version-etc-fsf (License): Relax license.
42418
42419 2009-11-16  Eric Blake  <ebb9@byu.net>
42420
42421         xalloc-die-tests: avoid printing null pointer
42422         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42423         shell script.
42424         * tests/test-xalloc-die.c (program_name): Declare.
42425         * tests/test-xalloc-die.sh (tmpfiles): New file.
42426
42427         setenv, unsetenv: work around various bugs
42428         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42429         (setenv) [HAVE_SETENV]: Work around bugs.
42430         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42431         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42432         for bugs.
42433         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42434         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42436         * modules/stdlib (Makefile.am): Update substitutions.
42437         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42438         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42439         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42440         * modules/setenv-tests: New test.
42441         * modules/unsetenv-tests: Likewise.
42442         * tests/test-setenv.c: New file.
42443         * tests/test-unsetenv.c: Likewise.
42444
42445 2009-11-16  Jim Meyering  <meyering@redhat.com>
42446
42447         version-etc: relax license to LGPLv3+
42448         * modules/version-etc (License): Relax license.
42449
42450         better AC_REQUIRE expanded-before-required-warning avoidance
42451         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42452         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42453         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42454         which is no longer needed.
42455
42456 2009-11-16  Eric Blake  <ebb9@byu.net>
42457
42458         test-freading: clean up temporary file
42459         * tests/test-freading.c (main): Remove file on success, and use
42460         ASSERT more liberally.
42461         Reported by Jim Meyering.
42462
42463 2009-11-16  Jim Meyering  <meyering@redhat.com>
42464
42465         avoid new AC_REQUIRE expanded-before-required warnings
42466         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42467         merely using it.
42468         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42469         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42470
42471 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42472
42473         * tests/test-xalloc-die.c: New file.
42474         * modules/xalloc-die-tests: New file.
42475         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42476         XFAIL_TESTS so it can be appended by modules.
42477
42478 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42479
42480         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42481         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42482
42483 2009-11-14  Eric Blake  <ebb9@byu.net>
42484
42485         fnmatch: avoid compiler warning
42486         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42487         to silence compiler warning about mismatch signedness in ?:.
42488         Reported by Robert Millan.
42489
42490         intprops: add double-inclusion guard
42491         * lib/intprops.h: Allow idempotent includes.
42492         Suggested by Bruce Korb.
42493
42494         openat: detect Solaris fchownat bug
42495         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42496         penalizing glibc chownat when only lchownat is broken.
42497         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42498         trailing slash bugs.
42499         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42500         * modules/openat-tests (Files): Include more files.
42501         (Depends-on): Add mgetgroups, sleep, stat-time.
42502         (configure.ac): Add additional checks.
42503         (Makefile.am): Build new test.
42504         * tests/test-fchownat.c: New file.
42505
42506         lchown: detect Solaris and FreeBSD bug
42507         * lib/lchown.c (rpl_lchown): Work around bug.
42508         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42510         * modules/unistd (Makefile.am): Populate it.
42511         * lib/unistd.in.h (lchown): Update declaration.
42512         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42513         * modules/lchown-tests: New file.
42514         * tests/test-lchown.h (test_lchown): Likewise.
42515         * tests/test-lchown.c (main): Likewise.
42516
42517         chown: detect Solaris and FreeBSD bug
42518         * lib/chown.c (rpl_chown): Work around bug.
42519         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42520         (gl_PREREQ_CHOWN): Delete.
42521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42522         * modules/unistd (Makefile.am): Populate it.
42523         * lib/unistd.in.h (chown): Update declaration.
42524         * lib/lchown.c (chown): Update client.
42525         * modules/lchown (Depends-on): Add lstat.
42526         * doc/posix-functions/chown.texi (chown): Document the bug.
42527         * doc/posix-functions/getgroups.texi (getgroups): Document
42528         getgroups pitfall.
42529         * modules/chown-tests: New file.
42530         * tests/test-chown.h (test_chown): Likewise.
42531         * tests/test-chown.c (main): Likewise.
42532
42533 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42534
42535         gnulib-tool: correctly detect absence of m4 directories
42536         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42537
42538 2009-11-14  Jim Meyering  <meyering@redhat.com>
42539
42540         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42541         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42542
42543 2009-11-14  John W. Eaton  <jwe@gnu.org>
42544
42545         strftime.h: wrap function declaration in extern "C" block
42546         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42547
42548 2009-11-13  Eric Blake  <ebb9@byu.net>
42549
42550         getgroups: avoid compiler warning
42551         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42552
42553         getgroups: work around FreeBSD bug
42554         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42555         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42556         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42557         * tests/test-getgroups.c (main): Fix buffer overrun.
42558
42559         getgroups: avoid compilation failure
42560         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42561         * modules/getgroups (Depends-on): Add stdint.
42562
42563 2009-11-13  Jim Meyering  <meyering@redhat.com>
42564
42565         test-getgroups: avoid compilation failure
42566         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42567
42568 2009-11-13  Eric Blake  <ebb9@byu.net>
42569
42570         mgetgroups: new module, taken from coreutils
42571         * modules/mgetgroups: New file.
42572         * lib/mgetgroups.h: Likewise.
42573         * lib/mgetgroups.c (mgetgroups): Likewise.
42574         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42575         * MODULES.html.sh (Users and groups): Mention it.
42576
42577         getgroups: don't expose GETGROUPS_T to user
42578         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42579         an element at a time if GETGROUPS_T is wrong size.
42580         * lib/getugroups.h (getugroups): Change signature.
42581         * lib/unistd.in.h (getgroups): Likewise.
42582         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42583         signature needs fixing.
42584         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42585         AC_TYPE_GETGROUPS.
42586         * modules/group-member (Depends-on): Add getgroups.
42587         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42588         (group_member): Rely on getgroups replacement.
42589         * lib/getugroups.c (getugroups): Use gid_t.
42590         * tests/test-getgroups.c (main): Likewise.
42591         * NEWS: Mention the signature change.
42592         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42593         problem with signature.
42594         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42595         GETGROUPS_T is still useful for setgroups.
42596
42597         getgroups, getugroups: provide stubs for mingw
42598         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42599         * lib/getugroups.c (getugroups): Likewise.
42600         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42601         function.  Modernize replacement scheme.
42602         (gl_PREREQ_GETGROUPS): Delete.
42603         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42604         * modules/getgroups (configure.ac): Declare witness.
42605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42606         * modules/unistd (Depends-on): Substitute witness.
42607         * lib/unistd.in.h (getgroups): Declare replacement.
42608
42609         getgroups: avoid calling exit
42610         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42611         drop xalloc.
42612         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42613         dependencies.
42614         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42615         exiting, in the rare case of malloc failure.
42616
42617         getgroups: fix logic error
42618         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42619         has more than 20 groups.
42620         * modules/getgroups-tests: New test.
42621         * tests/test-getgroups.c: New file.
42622
42623 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42624
42625         * tests/test-base64.c: Improve.
42626
42627 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42628
42629         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42630         Blake <ebb9@byu.net>.
42631
42632 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42633
42634         * tests/test-xvasprintf.c: Add %s%s related checks.
42635
42636 2009-11-12  Eric Blake  <ebb9@byu.net>
42637
42638         version-etc: match standards.texi style
42639         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42640         and use <> only for URLs.
42641
42642 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42643
42644         fts: do not fail on a submount during traversal
42645         * lib/fts.c (fts_build): Read the stat info again after opening
42646         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42647         Original report at http://bugzilla.redhat.com/501848.
42648
42649 2009-11-12  Jim Meyering  <meyering@redhat.com>
42650
42651         bootstrap: sync from coreutils
42652         * build-aux/bootstrap (bootstrap_epilogue): New function.
42653         Use git_modules_config in one more place.  This make bootstrap's
42654         --gnulib-srcdir option more useful for testing.
42655
42656         bootstrap: generalize autoheader check
42657         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42658         AC_CONFIG_HEADERS.
42659
42660 2009-11-11  Eric Blake  <ebb9@byu.net>
42661
42662         mkfifoat: use new modules for Solaris and BSD bugs
42663         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42664         * lib/mkfifoat.c (mknodat): Split...
42665         * lib/mknodat.c (mknodat): ...into new file.
42666         * modules/mkfifoat (Files): Ship new file.
42667         (Depends-on): Add mkfifo, mknod.
42668         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42669         (Depends-on): Add symlink.
42670         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42671         redundant with test_mkfifo.h.
42672         (do_mkfifoat, do_mknodat): New helpers.
42673
42674         mknod: new module
42675         * modules/mknod: New file.
42676         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42677         * lib/mknod.c (mknod): Likewise.
42678         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42679         defaults.
42680         * modules/sys_stat (Makefile.am): Substitute them.
42681         * lib/sys_stat.in.h (mknod): Declare replacement.
42682         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42683         Document it.
42684         * doc/posix-functions/mknod.texi (mknod): Likewise.
42685         * modules/mknod-tests: New test.
42686         * tests/test-mknod.c: Likewise.
42687
42688         mkfifo: new module
42689         * modules/mkfifo: New file.
42690         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42691         * lib/mkfifo.c (mkfifo): Likewise.
42692         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42693         defaults.
42694         * modules/sys_stat (Makefile.am): Substitute them.
42695         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42696         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42697         Document it.
42698         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42699         * modules/mkfifo-tests: New test.
42700         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42701         from test-mkfifoat.c.
42702         * tests/test-mkfifo.c: New file.
42703
42704         readlink: detect FreeBSD bug
42705         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42706         slash on symlink.
42707         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42708         * tests/test-readlink.h (test_readlink): Enhance test.
42709
42710         symlink: detect FreeBSD bug
42711         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42712         slash on symlink.
42713         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42714         * tests/test-symlink.h (test_symlink): Enhance test.
42715
42716 2009-11-10  Eric Blake  <ebb9@byu.net>
42717
42718         link: detect FreeBSD bug
42719         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42720         symlink.
42721         * doc/posix-functions/link.texi (link): Document the bug.
42722         * tests/test-link.h (test_link): Enhance test.
42723         * tests/test-linkat.c (main): Update caller.
42724
42725         unlink, remove: detect FreeBSD bug
42726         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42727         slash on symlink.
42728         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42729         * doc/posix-functions/remove.texi (remove): Likewise.
42730         * tests/test-unlink.h (test_unlink): Enhance test.
42731         * tests/test-remove.c (main): Likewise.
42732
42733 2009-11-09  Eric Blake  <ebb9@byu.net>
42734
42735         rename: detect FreeBSD bug
42736         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42737         slash on symlink.
42738         * modules/renameat-tests (Depends-on): Add filenamecat.
42739         * tests/test-rename.h (test_rename): Allow one more errno.
42740         * tests/test-renameat.c (main): Likewise.
42741         * doc/posix-functions/rename.texi (rename): Document the bug.
42742
42743         open: detect FreeBSD bug
42744         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42745         symlink.
42746         * doc/posix-functions/open.texi (open): Document the bug.
42747         * doc/posix-functions/utimes.texi (utimes): Likewise.
42748         * tests/test-open.h (test_open): Add parameters, and test symlink
42749         handling.
42750         * tests/test-open.c (main): Adjust caller.
42751         * tests/test-fcntl-safer.c (main): Likewise.
42752         * modules/open-tests (Depends-on): Add stdbool, symlink.
42753         * modules/fcntl-safer-tests (Depends-on): Likewise.
42754         * tests/test-openat.c (main): Add test-open tests.
42755
42756         stat: detect FreeBSD bug
42757         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42758         symlink.
42759         * doc/posix-functions/stat.texi (stat): Document the bug.
42760         * tests/test-stat.h (test_stat_func): Add argument.
42761         * tests/test-stat.c (main): Adjust caller.
42762         * tests/test-fstatat.c (main): Likewise.
42763         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42764         Reported by Jim Meyering.
42765
42766 2009-11-09  James Youngman  <jay@gnu.org>
42767
42768         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42769         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42770
42771 2009-11-08  Jim Meyering  <meyering@redhat.com>
42772
42773         utimens: remove invalid futimesat call
42774         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42775         It used the file descriptor of the target file as the DIR_FD
42776         parameter and NULL as the file name.  That caused failure with
42777         errno == EFAULT on FreeBSD-8.0-rc2
42778
42779 2009-11-07  Eric Blake  <ebb9@byu.net>
42780
42781         fflush, freadseek: use fseeko, not fseek
42782         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42783         (clear_ungetc_buffer): Avoid potential problems on large files.
42784         * lib/freadseek.c (freadseek): Likewise.
42785         * modules/freadseek (Depends-on): Add fseeko.
42786         * modules/fseek (configure.ac): Set a witness.
42787         * tests/test-fflush.c (main): Use fseeko.
42788         * tests/test-fpurge.c (fseek): Disable link warning.
42789         * tests/test-freadable.c (fseek): Likewise.
42790         * tests/test-freading.c (fseek): Likewise.
42791         * tests/test-fseeko.c (fseek): Likewise.
42792         * tests/test-ftell.c (fseek): Likewise.
42793         * tests/test-ftello.c (fseek): Likewise.
42794         * tests/test-fwritable.c (fseek): Likewise.
42795         * tests/test-fwriting.c (fseek): Likewise.
42796
42797 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42798
42799         * modules/memchr (Depends-on): Drop getpagesize dependency.
42800
42801 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42802
42803         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42804         Reported by Ludovic Courtès.
42805         * build-aux/pmccabe2html: Improve example usage.
42806         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42807
42808 2009-11-06  Jim Meyering  <meyering@redhat.com>
42809
42810         do-release-commit-and-tag: New module.
42811         Automate the release-commit and tag process.
42812         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42813         * modules/do-release-commit-and-tag: New file.
42814         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42815
42816 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42817
42818         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42819         because test-select.c uses inet_pton.
42820
42821 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42822
42823         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42824         GETADDRINFO_LIB.  Bump serial number.
42825         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42826         Suggested by Eric Blake <ebb9@byu.net>.
42827
42828 2009-11-05  Eric Blake  <ebb9@byu.net>
42829
42830         strtod: detect darwin bug
42831         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42832         Reported by Leo Davis.
42833
42834         freopen-safer: new module
42835         * modules/freopen-safer: New module.
42836         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42837         * lib/freopen-safer.c (freopen_safer): New file.
42838         * lib/stdio-safer.h (freopen_safer): New declaration.
42839         * lib/stdio--.h (freopen): New override.
42840         * MODULES.html.sh (File stream based Input/Output): Mention it.
42841         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42842         freopen-safer module.
42843         * doc/posix-functions/stderr.texi (stderr): Likewise.
42844         * doc/posix-functions/stdin.texi (stdin): Likewise.
42845         * doc/posix-functions/stdout.texi (stdout): Likewise.
42846         * modules/freopen-safer-tests: New test.
42847         * tests/test-reopen-safer.c: New file.
42848
42849 2009-11-05  Jim Meyering  <meyering@redhat.com>
42850
42851         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42852         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42853
42854 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42855
42856         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42857
42858 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42859
42860         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42861
42862 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42863
42864         Fix link error.
42865         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42866         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42867
42868 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42869
42870         * tests/test-func.c: Also test value of __func__.
42871
42872 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42873
42874         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42875         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42876
42877 2009-11-05  Bruno Haible  <bruno@clisp.org>
42878
42879         Fix link error.
42880         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42881         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42882         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42883
42884 2009-11-05  Bruno Haible  <bruno@clisp.org>
42885
42886         Tests for module 'inet_pton'.
42887         * modules/inet_pton-tests: New file.
42888         * tests/test-inet_pton.c: New file.
42889
42890 2009-11-05  Bruno Haible  <bruno@clisp.org>
42891
42892         Tests for module 'inet_ntop'.
42893         * modules/inet_ntop-tests: New file.
42894         * tests/test-inet_ntop.c: New file.
42895
42896 2009-11-04  Eric Blake  <ebb9@byu.net>
42897
42898         stdlib-safer: wrap all mkstemp variants
42899         * modules/mkostemp (configure.ac): Set witness.
42900         * modules/mkostemps (configure.ac): Likewise.
42901         * modules/mkstemps (configure.ac): Likewise.
42902         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42903         (mkstemps_safer): Wrap more functions.
42904         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42905         wrapping.
42906         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42907         (mkstemps_safer): Implement the wrappers.
42908
42909         mkstemps, mkostemps: new modules
42910         * modules/mkostemps: New module.
42911         * modules/mkstemps: Likewise.
42912         * lib/mkostemps.c (mkostemps): New file.
42913         * lib/mkstemps.c (mkstemps): Likewise.
42914         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42915         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42917         * modules/stdlib (Makefile.am): Substitute them.
42918         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42919         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42920         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42921         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42922         * MODULES.html.sh (File system functions): Mention them.
42923
42924         tempname: resync from glibc
42925         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42926         same values for __GT_FILE as glibc.  Abort even when assertions
42927         are disabled.
42928         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42929         match its value otherwise.  Allow idempotent inclusion.
42930         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42931         * lib/mkostemp.c (mkostemp): Likewise.
42932         * lib/mkstemp.c (mkstemp): Likewise.
42933         * lib/tmpfile.c (tmpfile): Likewise.
42934         * NEWS: Document this.
42935
42936         utimens: fix use of futimens on older Linux
42937         * lib/utimens.c (fdutimens): Use updated, rather than original,
42938         timespec to avoid bug in older Linux kernel.
42939         Reported by Simon Josefsson.
42940
42941 2009-11-04  Bruno Haible  <bruno@clisp.org>
42942
42943         Make num_processors more flexible and consistent.
42944         * lib/nproc.h (enum nproc_query): New type.
42945         (num_processors): Add a 'query' argument.
42946         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42947         (num_processors): Add a 'query' argument. Test the value of the
42948         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42949         mingw, count the number of CPUs available for the current process.
42950         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42951         Check for sched_getaffinity and sched_getaffinity_np.
42952         * modules/nproc (Depends-on): Add c-ctype, extensions.
42953         * NEWS: Mention the change.
42954
42955 2009-11-03  Bruno Haible  <bruno@clisp.org>
42956
42957         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42958
42959 2009-11-03  Jim Meyering  <meyering@redhat.com>
42960
42961         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42962         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42963         if it is defined.
42964
42965 2009-11-02  Eric Blake  <ebb9@byu.net>
42966
42967         mktime, timegm: share common declaration
42968         * lib/mktime-internal.h: New file.
42969         * lib/mktime.c: Use it rather than open-coding a declaration.
42970         * lib/timegm.c: Likewise.
42971         * modules/mktime (Files): Ship it.
42972         * modules/timegm (Files): Likewise.
42973         Suggested by Bruno Haible.
42974
42975         test-update-copyright: update test to match script changes
42976         * tests/test-update-copyright.sh: Avoid hard-coding perl
42977         location.  Don't update *.bak created by earlier runs.
42978
42979 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42980             Simon Josefsson  <simon@josefsson.org>
42981             Bruno Haible  <bruno@clisp.org>
42982
42983         Fix link error on Solaris 8.
42984         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42985         also in libnsl. Define also INET_PTON_LIB.
42986         * modules/inet_pton (Link): New section.
42987
42988 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42989             Bruno Haible  <bruno@clisp.org>
42990
42991         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42992         * modules/inet_ntop (Link): New section.
42993         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42994
42995 2009-11-02  Eric Blake  <ebb9@byu.net>
42996
42997         maint: avoid compiler warnings in m4 macros
42998         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42999         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43000
43001 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43002
43003         * m4/pmccabe2html.m4: Remove file.
43004         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43005         function.  Change maintainer.
43006         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43007         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43008         Courtès).
43009
43010 2009-10-31  Eric Blake  <ebb9@byu.net>
43011
43012         fseeko: fix m4 regression
43013         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43014         regression from 2009-10-27.
43015         Reported by Ralf Wildenhues.
43016
43017 2009-10-31  Jim Meyering  <meyering@redhat.com>
43018
43019         inttostr: aesthetics and improved (compile-time) safety
43020         Define inttype_is_signed rather than inttype_is_unsigned,
43021         since the sole use is via "#if inttype_is_signed".
43022         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43023         inttype_is_unsigned.
43024         * lib/offtostr.c (inttype_is_signed): Likewise.
43025         * lib/uinttostr.c (inttype_is_signed): Likewise.
43026         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43027         * lib/inttostr.c (inttostr): Use verify to cross-check the
43028         inttype_is_signed value and the signedness of the actual type.
43029         * modules/inttostr (Depends-on): Add verify.
43030
43031 2009-10-30  Eric Blake  <ebb9@byu.net>
43032
43033         build: avoid compiler warnings
43034         * lib/fchmodat.c (lchmod): Mark unused variables.
43035         * lib/getopt.c (_getopt_initialize): Likewise.
43036         * lib/mktime.c (__mktime_internal): Provide prototype.
43037         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43038         older gcc that do not understand #pragma GCC diagnostic.
43039         * lib/uinttostr.c (inttype_is_unsigned): Define.
43040         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43041
43042 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43043
43044         stat: fix compilation on AIX
43045         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43046         only see struct stat64.
43047
43048 2009-10-30  Eric Blake  <ebb9@byu.net>
43049
43050         exclude: make more robust
43051         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43052         rather than masking a coding bug.
43053         Suggested by Bruno Haible.
43054
43055 2009-10-30  Jim Meyering  <meyering@redhat.com>
43056
43057         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43058         Rather than putting #!/usr/bin/perl on the first line,
43059         start with a variant of what's recommended by "man perlrun" that
43060         invokes the first "perl" program from your shell's search path.
43061         * build-aux/gitlog-to-changelog: Replace #!... as above.
43062         Add a "Local Variables" perl mode setting.
43063         Prompted by a patch from Ludovic Courtès.
43064         Improved by Eric Blake.
43065         * build-aux/useless-if-before-free: Likewise.
43066         * build-aux/announce-gen: Likewise.
43067         * build-aux/update-copyright: Likewise.
43068
43069 2009-10-29  Eric Blake  <ebb9@byu.net>
43070
43071         filenamecat-lgpl: adjust clients
43072         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43073         filenamecat.
43074         * modules/renameat (Depends-on): Likewise.
43075
43076         filenamecat: split into filenamecat-lgpl
43077         * modules/filenamecat-lgpl: New module.
43078         * modules/filenamecat (Files): Move library-safe files into
43079         filenamecat-lgpl.
43080         (Depends-on): Add filenamecat-lgpl.
43081         (configure.ac): Declare witness.
43082         * lib/filenamecat.h (file_name_concat): Only declare when using
43083         GPL module.
43084         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43085         Move...
43086         * lib/filenamecat-lgpl.c: ...into new file.
43087         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43088         (gl_FILE_NAME_CONCAT): Use it.
43089         * MODULES.html.sh (File system functions): Mention new module.
43090
43091         argp: avoid memory leak
43092         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43093         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43094         base_name, since the latter malloc()s and can call exit().
43095         Leak introduced 2006-07-03.
43096
43097         dirname-lgpl: adjust clients that don't need full dirname
43098         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43099         * modules/filenamecat (Depends-on): Likewise.
43100         * modules/linkat (Depends-on): Likewise.
43101         * modules/mkancesdirs (Depends-on): Likewise.
43102         * modules/mkdir (Depends-on): Likewise.
43103         * modules/openat (Depends-on): Likewise.
43104         * modules/savewd (Depends-on): Likewise.
43105         * modules/rename (Depends-on): Likewise.
43106         (License): Relax license.
43107         * modules/mkdir-tests (Depends-on): Drop progname.
43108         (Makefile.am): Delete unneeded LDADD.
43109         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43110
43111         dirname: split into dirname-lgpl
43112         * modules/dirname-lgpl: New module.
43113         * modules/dirname (Files): Move library-safe files into
43114         dirname-lgpl.
43115         (Depends-on): Add dirname-lgpl.
43116         (configure.ac): Declare witness.
43117         * modules/double-slash-root (License): Relax license.
43118         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43119         module.
43120         * lib/dirname.c (dir_len, mdir_name): Move...
43121         * lib/dirname-lgpl.c: ...into new file.
43122         * lib/basename.c (last_component, base_len): Move...
43123         * lib/basename-lgpl.c: ...into new file.
43124         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43125         (gl_DIRNAME): Use it.
43126         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43127         Mention new module.
43128         * modules/dirname-tests (Depends-on): Add progname.
43129         * tests/test-dirname.c (program_name): Delete.
43130
43131         mkdir: make safe for libraries
43132         * modules/mkdir (Depends-on): Drop xalloc.
43133         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43134         exit.
43135
43136         tests: avoid some compiler warnings
43137         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43138         literals.
43139         * tests/test-memchr.c (main): Avoid type mismatch.
43140         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43141         * tests/test-base64.c (main): Likewise.
43142         * tests/test-getdelim.c (main): Likewise.
43143         * tests/test-gethostname.c (main): Likewise.
43144         * tests/test-getline.c (main): Likewise.
43145         * tests/test-netinet_in.c (main): Likewise.
43146         * tests/test-select.c (open_server_socket, main): Likewise.
43147         * tests/test-select-stdin.c (main): Likewise.
43148         * tests/test-sockets.c (main): Likewise.
43149         * tests/test-strsignal.c (main): Likewise.
43150         * tests/test-sys_select.c (main): Likewise.
43151         * tests/test-sys_socket.c (main): Likewise.
43152         * tests/test-u64.c (main): Likewise.
43153         * tests/test-xfprintf-posix.c (main): Likewise.
43154         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43155
43156         sockets: avoid compiler warning
43157         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43158
43159         maint: detect usage(1) and other suspicious exits
43160         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43161
43162 2009-10-29  Jim Meyering  <meyering@redhat.com>
43163
43164         timespec: long-to-int truncation could make timespec_cmp malfunction
43165         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43166         a multiple of 2^32 nanoseconds as no difference.
43167
43168 2009-10-28  Jim Meyering  <meyering@redhat.com>
43169
43170         fprintftime: wrap macro code argument in "do {...} while(0)"
43171         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43172         cpy macro must be a statement that can be followed by a semicolon.
43173         Now that the else clause contains a comment and is hence longer
43174         than one line, I require curly braces.  That in turn requires
43175         that we wrap this code block in the standard do...while(0).
43176
43177         fprintftime: remove stray semicolon from previous change
43178         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43179
43180         fprintftime: avoid a warning about ignored fwrite return value
43181         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43182         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43183         that is unsafe.
43184         * modules/fprintftime (Depends-on): Add ignore-value.
43185
43186         exclude: avoid an unwarranted warning
43187         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43188
43189 2009-10-27  Eric Blake  <ebb9@byu.net>
43190
43191         fseek: avoid compilation failure when fflush is replaced
43192         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43193         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43194         module is in use.
43195         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43196         module is not in use; since REPLACE_FSEEK worked otherwise.
43197         (GNULIB_FTELLO): Likewise for ftell.
43198         Reported by Ian Beckwith and others.
43199
43200 2009-10-27  Bruno Haible  <bruno@clisp.org>
43201
43202         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43203         Reported by Jim Meyering.
43204
43205 2009-10-27  Jim Meyering  <jim@meyering.net>
43206             Bruno Haible  <bruno@clisp.org>
43207
43208         Avoid warning despite dropping the return value of fwrite.
43209         * lib/unicodeio.c: Include ignore-value.h.
43210         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43211         * modules/unicodeio (Depends-on): Add ignore-value.
43212
43213 2009-10-26  Eric Blake  <ebb9@byu.net>
43214
43215         areadlinkat: fix fallback path
43216         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43217         pointer and zero.
43218
43219 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43220
43221         Use a better IO block size for modern systems
43222         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43223         * lib/md2.c: Likewise.
43224         * lib/md4.c: Likewise.
43225         * lib/md5.c: Likewise.
43226         * lib/sha1.c: Likewise.
43227         * lib/sha256.c: Likewise.
43228         * lib/sha512.c: Likewise.
43229
43230 2009-10-22  Eric Blake  <ebb9@byu.net>
43231
43232         tests: avoid several compiler warnings
43233         * tests/test-getcwd.c (main): Avoid buffer underflow.
43234         * tests/test-getdate.c (main): String literals are not safe with
43235         putenv, so use setenv.  Declare unused argument.
43236         * modules/getdate-tests (Depends-on): Add setenv.
43237         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43238         problems with string literals in char *.
43239         * tests/test-hash.c (main): Avoid shadowing declaration.
43240         (insert_new): Treat string literals as char const *.
43241         * tests/test-getopt.h (test_getopt): Likewise.
43242         (getopt_loop): Alter types to minimize casting elsewhere.
43243         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43244         (test_getopt_long_posix): Likewise.
43245         (do_getopt_long): Add wrapper to minimize casting.
43246         * tests/test-atexit.c (clear_temp_file): Use void.
43247         * tests/test-areadlink-with-size.c (main): Declare unused
43248         arguments.
43249         * tests/test-areadlink.c (main): Likewise.
43250         * tests/test-areadlinkat-with-size.c (main): Likewise.
43251         * tests/test-areadlinkat.c (main): Likewise.
43252         * tests/test-canonicalize-lgpl.c (main): Likewise.
43253         * tests/test-canonicalize.c (main): Likewise.
43254         * tests/test-dirent-safer.c (main): Likewise.
43255         * tests/test-dirname.c (main): Likewise.
43256         * tests/test-dup2.c (main): Likewise.
43257         * tests/test-fchdir.c (main): Likewise.
43258         * tests/test-fcntl-h.c (main): Likewise.
43259         * tests/test-fcntl-safer.c (main): Likewise.
43260         * tests/test-fdopendir.c (main): Likewise.
43261         * tests/test-fdutimensat.c (main): Likewise.
43262         * tests/test-fflush.c (main): Likewise.
43263         * tests/test-filenamecat.c (main): Likewise.
43264         * tests/test-filevercmp.c (main): Likewise.
43265         * tests/test-fopen-safer.c (main): Likewise.
43266         * tests/test-fopen.c (main): Likewise.
43267         * tests/test-fpending.c (main): Likewise.
43268         * tests/test-fpurge.c (main): Likewise.
43269         * tests/test-freading.c (main): Likewise.
43270         * tests/test-fstatat.c (main): Likewise.
43271         * tests/test-fsync.c (main): Likewise.
43272         * tests/test-futimens.c (main): Likewise.
43273         * tests/test-getndelim2.c (main): Likewise.
43274         * tests/test-gettimeofday.c (main): Likewise.
43275         * tests/test-getopt.c (main): Likewise.
43276         * tests/test-i-ring.c (main): Likewise.
43277         * tests/test-inttypes.c (main): Likewise.
43278         * tests/test-link.c (main): Likewise.
43279         * tests/test-lstat.c (main): Likewise.
43280         * tests/test-math.c (main): Likewise.
43281         * tests/test-md5.c (main): Likewise.
43282         * tests/test-memchr2.c (main): Likewise.
43283         * tests/test-memrchr.c (main): Likewise.
43284         * tests/test-mkdir.c (main): Likewise.
43285         * tests/test-mkdirat.c (main): Likewise.
43286         * tests/test-mkfifoat.c (main): Likewise.
43287         * tests/test-open.c (main): Likewise.
43288         * tests/test-openat-safer.c (main): Likewise.
43289         * tests/test-openat.c (main): Likewise.
43290         * tests/test-quotearg.c (main): Likewise.
43291         * tests/test-rawmemchr.c (main): Likewise.
43292         * tests/test-readlink.c (main): Likewise.
43293         * tests/test-remove.c (main): Likewise.
43294         * tests/test-rename.c (main): Likewise.
43295         * tests/test-renameat.c (main): Likewise.
43296         * tests/test-rmdir.c (main): Likewise.
43297         * tests/test-sha1.c (main): Likewise.
43298         * tests/test-signal.c (main): Likewise.
43299         * tests/test-sigaction.c (main): Likewise.
43300         * tests/test-stat.c (main): Likewise.
43301         * tests/test-stat-time.c (main): Likewise.
43302         * tests/test-stddef.c (main): Likewise.
43303         * tests/test-stdint.c (main): Likewise.
43304         * tests/test-stdio.c (main): Likewise.
43305         * tests/test-stdlib.c (main): Likewise.
43306         * tests/test-strchrnul.c (main): Likewise.
43307         * tests/test-strerror.c (main): Likewise.
43308         * tests/test-string.c (main): Likewise.
43309         * tests/test-strtod.c (main): Likewise.
43310         * tests/test-strverscmp.c (main): Likewise.
43311         * tests/test-symlink.c (main): Likewise.
43312         * tests/test-symlinkat.c (main): Likewise.
43313         * tests/test-sys_stat.c (main): Likewise.
43314         * tests/test-sys_time.c (main): Likewise.
43315         * tests/test-time.c (main): Likewise.
43316         * tests/test-unistd.c (main): Likewise.
43317         * tests/test-unlink.c (main): Likewise.
43318         * tests/test-unlinkat.c (main): Likewise.
43319         * tests/test-utimens.c (main): Likewise.
43320         * tests/test-utimensat.c (main): Likewise.
43321         * tests/test-version-etc.c (main): Likewise.
43322         * tests/test-wchar.c (main): Likewise.
43323         * tests/test-wctype.c (main): Likewise.
43324         * tests/test-xprintf-posix.c (main): Likewise.
43325         * tests/test-posixtm.c (main): Likewise.
43326         (STREQ): Delete unused macro.
43327         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43328         shadowed variables.
43329         * tests/test-memchr.c (main): Likewise.
43330
43331 2009-10-21  Eric Blake  <ebb9@byu.net>
43332
43333         areadlinkat: avoid failure on older glibc
43334         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43335         rather than mis-comparing 0 against FUNC_RESULT of char*.
43336
43337 2009-10-21  Bruno Haible  <bruno@clisp.org>
43338
43339         * modules/stpncpy (License): Relicense under LGPLv2+.
43340         Reported by David Lutterkort <lutter@redhat.com>.
43341
43342 2009-10-20  Eric Blake  <ebb9@byu.net>
43343
43344         utimensat: work around Solaris 9 bug
43345         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43346         has trailing slash bugs.
43347         * tests/test-lutimens.h (test_lutimens): Enhance test.
43348         * tests/test-utimens.h (test_utimens): Likewise.
43349         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43350         * doc/posix-functions/utimes.texi (utimes): Likewise.
43351         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43352         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43353         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43354         * doc/posix-functions/futimens.texi (futimens): Likewise.
43355
43356         fdutimensat: new module
43357         * modules/fdutimensat: New file.
43358         * lib/fdutimensat.c (fdutimensat): Likewise.
43359         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43360         * MODULES.html.sh (File system functions): Mention module.
43361         * modules/fdutimensat-tests: New test.
43362         * tests/test-fdutimensat.c: Likewise.
43363
43364         doc: regenerate INSTALL
43365         * doc/INSTALL: Reflect recent autoconf update.
43366         * doc/INSTALL.ISO: Likewise.
43367         * doc/INSTALL.UTF-8: Likewise.
43368
43369 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43370
43371         acl: warn if ACL support is not detected
43372         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43373
43374 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43375
43376         * lib/nproc.h: Add extern "C" block for C++.
43377
43378 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43379             Bruno Haible  <bruno@clisp.org>
43380
43381         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43382         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43383         * doc/posix-functions/isalpha.texi: Likewise.
43384         * doc/posix-functions/isblank.texi: Likewise.
43385         * doc/posix-functions/iscntrl.texi: Likewise.
43386         * doc/posix-functions/isdigit.texi: Likewise.
43387         * doc/posix-functions/isgraph.texi: Likewise.
43388         * doc/posix-functions/islower.texi: Likewise.
43389         * doc/posix-functions/isprint.texi: Likewise.
43390         * doc/posix-functions/ispunct.texi: Likewise.
43391         * doc/posix-functions/isspace.texi: Likewise.
43392         * doc/posix-functions/isupper.texi: Likewise.
43393         * doc/posix-functions/isxdigit.texi: Likewise.
43394
43395 2009-10-18  Bruno Haible  <bruno@clisp.org>
43396
43397         Tests for module 'isblank'.
43398         * modules/isblank-tests: New file.
43399         * tests/test-isblank.c: New file.
43400
43401         New module 'isblank'.
43402         * lib/isblank.c: New file.
43403         * m4/isblank.m4: New file.
43404         * modules/isblank: New file.
43405         * doc/posix-functions/isblank.texi: Mention the new module.
43406
43407 2009-10-18  Bruno Haible  <bruno@clisp.org>
43408
43409         New module 'ctype'.
43410         * lib/ctype.in.h: New file.
43411         * m4/ctype.m4: New file.
43412         * modules/ctype: New file.
43413         * doc/posix-headers/ctype.texi: Mention the new module.
43414
43415 2009-10-18  Jim Meyering  <meyering@redhat.com>
43416
43417         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43418         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43419         right after its initialization, rather than farther down.
43420         Keeping these in close proximity makes it easier to ensure
43421         that each such variable is initialized.  E.g.,
43422
43423             LIB_CLOCK_GETTIME=
43424             AC_SUBST([LIB_CLOCK_GETTIME])
43425
43426         This change also increments these serial numbers.
43427         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43428         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43429         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43430
43431 2009-10-18  Bruno Haible  <bruno@clisp.org>
43432
43433         Don't let environment variables perturb build.
43434         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43435         (gl_PREREQ_GETHRXTIME): ... not here.
43436
43437 2009-10-18  Bruno Haible  <bruno@clisp.org>
43438
43439         Avoid symlink attack in localcharset module.
43440         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43441         (O_NOFOLLOW): Define fallback.
43442         (get_charset_aliases): Don't open the file if it is a symbolic link.
43443         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43444         gl_FCNTL_H.
43445         (gl_FCNTL_H): Require it.
43446         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43447         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43448         Reported by Fergal Glynn <fglynn@veracode.com>.
43449
43450 2009-10-18  Bruno Haible  <bruno@clisp.org>
43451
43452         Implement nproc for mingw.
43453         * lib/nproc.c: Include <windows.h>
43454         (num_processors): On native Windows platforms, try GetSystemInfo.
43455
43456 2009-10-18  Bruno Haible  <bruno@clisp.org>
43457
43458         Implement nproc for IRIX.
43459         * lib/nproc.c: Include <sys/sysmp.h>.
43460         (num_processors): On IRIX systems, try sysmp.
43461         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43462
43463 2009-10-18  Bruno Haible  <bruno@clisp.org>
43464
43465         Implement nproc for HP-UX.
43466         * lib/nproc.c: Include <sys/pstat.h>
43467         (num_processors): On HP-UX systems, try pstat_getdynamic.
43468         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43469         pstat_getdynamic.
43470
43471 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43472             Bruno Haible  <bruno@clisp.org>
43473
43474         Implement nproc for NetBSD, OpenBSD.
43475         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43476         (ARRAY_SIZE): New macro.
43477         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43478         * m4/nproc.m4: New file.
43479         * modules/nproc (Files): Add m4/nproc.m4.
43480         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43481         (Makefile.am): Instead, augment lib_SOURCES.
43482
43483 2009-10-18  Bruno Haible  <bruno@clisp.org>
43484
43485         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43486         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43487         sys/param.h.
43488
43489 2009-10-16  Eric Blake  <ebb9@byu.net>
43490
43491         utimensat: new module
43492         * modules/utimensat: New file.
43493         * lib/utimensat.c (utimensat): Likewise.
43494         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43495         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43496         so we can work around Linux bugs.
43497         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43498         * modules/sys_stat (Makefile.am): Substitute them.
43499         * lib/sys_stat.in.h (utimensat): Declare it.
43500         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43501         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43502         * modules/utimensat-tests: New test.
43503         * tests/test-utimensat.c: Likewise.
43504
43505         utimens: let lutimens work on non-symlinks
43506         * lib/utimens.c (lutimens): Fall back to utimens rather than
43507         failing with ENOSYS, when file is not a symlink.
43508         (utimens): Reduce redirection.
43509         * tests/test-lutimens.h (test_lutimens): Update test to cover
43510         non-symlinks.
43511         * tests/test-utimens.h (test_utimens): Update test to cover
43512         symlinks.
43513         * tests/test-utimens.c (main): Update caller.
43514
43515         utimens: cache whether utimensat syscall works
43516         * lib/utimens.c (utimensat_works_really): New cache variable.
43517         (fdutimens, lutimens): Use it to avoid failing syscall.
43518
43519         test-stat-time, test-utimens: improve portability
43520         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43521         ext4 on alpha, and for cygwin.
43522         * tests/test-utimens-common.h: New file.
43523         (nap): Factor delays into single function.
43524         * tests/test-lutimens.h (test_lutimens): Use new header.
43525         * tests/test-futimens.h (test_futimens): Likewise.
43526         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43527         timestamps to occur from same machine, as was done previously for
43528         test_utimens.
43529         * modules/utimens-tests (Files): Ship new file.
43530         * modules/futimens-tests (Files): Likewise.
43531         Reported in part by Jim Meyering.
43532
43533         sys_stat: sort replacement declarations
43534         * lib/sys_stat.in.h: Sort declarations.
43535         * lib/futimens.c (futimens): Fix typo.
43536
43537 2009-10-15  Jim Meyering  <meyering@redhat.com>
43538
43539         don't let environment settings perturb build
43540         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43541         could cause a configure-time and/or build-time malfunction.
43542         Typically, a configure-time function-in-library test is performed
43543         via code like this:
43544
43545           LIB_VAR=
43546           AC_SUBST([LIB_VAR])
43547           prefix_saved_LIBS=$LIBS
43548             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43549                        [test "$ac_cv_search_FUNC" = "none required" ||
43550                         LIB_VAR=$ac_cv_search_FUNC])
43551           LIBS=$prefix_saved_LIBS
43552
43553         However, in each of the files affected by this change, the LIB_VAR=
43554         initialization was omitted.  Thus, when set in the environment, its
43555         value would propagate into generated Makefiles when FUNC is not found
43556         in LIB_NAME.
43557         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43558         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43560
43561 2009-10-14  Eric Blake  <ebb9@byu.net>
43562
43563         fchdir: avoid infinite recursion in mingw
43564         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43565         recursing.
43566
43567         test-stat-time: port to mingw
43568         * tests/test-stat-time.c (force_unlink): Return a value.
43569         (test_ctime) [W32]: Fix compilation error.
43570         (nap): Don't call usleep with too large an argument.  Use
43571         force_unlink.
43572         * doc/pastposix-functions/usleep.texi (usleep): Document the
43573         portability issue.
43574
43575 2009-10-13  Jim Meyering  <meyering@redhat.com>
43576
43577         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43578         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43579         * modules/pipe-filter-ii: Likewise.
43580         * modules/sys_socket-tests: Likewise.
43581         * modules/tsearch-tests: Likewise.
43582         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43583         (check): Depend on it.
43584
43585 2009-10-12  Eric Blake  <ebb9@byu.net>
43586
43587         utimens-tests: port to NFS file systems
43588         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43589         comparisons to avoid spurious failures from timestamp drift
43590         between NFS machines.
43591
43592 2009-10-12  Eric Blake  <ebb9@byu.net>
43593
43594         stat-time-tests: minor cleanups
43595         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43596         * tests/test-stat-time.c (nap): Separate assignment from call.
43597         Suggested by Paolo Bonzini and Bruno Haible.
43598
43599         sys_stat: guarantee struct timespec
43600         * lib/sys_stat.in.h (includes): Always include <time.h>
43601         * modules/sys_stat (Depends-on): Add time.
43602         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43603         mode_t permission values.
43604         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43605         get at subsecond timestamps.
43606
43607 2009-10-10  Eric Blake  <ebb9@byu.net>
43608
43609         futimens: new module
43610         * modules/futimens: New file.
43611         * lib/futimens.c (futimens): Likewise.
43612         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43613         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43614         we can work around Linux bugs.
43615         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43616         * modules/sys_stat (Makefile.am): Substitute them.
43617         * lib/sys_stat.in.h (futimens): Declare it.
43618         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43619         * doc/posix-functions/futimens.texi (futimens): Likewise.
43620         * modules/futimens-tests: New test.
43621         * tests/test-futimens.c: Likewise.
43622
43623         utimens: introduce fdutimens
43624         * lib/utimens.h (fdutimens): New prototype.
43625         * lib/utimens.c (gl_futimens): Move guts...
43626         (fdutimens): ...to new interface.
43627         * tests/test-utimens.c (do_fdutimens): Use it.
43628
43629         utimens: add UTIME_NOW and UTIME_OMIT support
43630         * lib/utimens.c (validate_timespec, update_timespec): New helper
43631         functions.
43632         (gl_futimens, lutimens): Use them.
43633         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43634         stdbool, sys_stat.
43635         (Link): Mention resulting library dependency.
43636         * modules/utimecmp (Link): Likewise.
43637         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43638         (Makefile.am): Pick up library dependency.
43639         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43640         definition.
43641         * tests/test-sys_stat.c: Test the definitions.
43642         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43643         * NEWS: Document library dependency.
43644
43645         utimecmp: support symlink timestamps
43646         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43647         hashing when possible.  Use pathconf when available.
43648         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43649         * modules/utimecmp (Depends-on): Add lstat.
43650
43651         utimens: add lutimens interface
43652         * lib/utimens.c (lutimens): New function.
43653         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43654         * lib/utimens.h (lutimens): Declare new interface.
43655         * tests/test-utimens.c (main): Enhance test.
43656         * tests/test-lutimens.h (test_lutimens): New file.
43657         * modules/utimens-tests (Files): Distribute it.
43658         (Depends-on): Add symlink.
43659         (configure.ac): Check for usleep.
43660
43661         utimens: validate futimens usage
43662         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43663         fewer syscalls on failure later on.  Avoid compiler warning on
43664         mingw.
43665         * modules/utimens (Depends-on): Add dup2.
43666
43667         utimens: add test
43668         * modules/utimens-tests: New test.
43669         * tests/test-utimens.h: New file.
43670         * tests/test-futimens.h: Likewise.
43671         * tests/test-utimens.c: Likewise.
43672
43673         doc: mention timestamp portability issues
43674         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43675         instead.
43676         * doc/posix-functions/utime.texi (utime): Likewise.
43677         * doc/posix-functions/utimes.texi (utimes): Likewise.
43678         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43679         instead.
43680         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43681         module.
43682         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43683         Mention weakness with symlink timestamps.
43684         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43685         to utimensat/futimens instead.
43686         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43687
43688         test-dup2: enhance test
43689         * tests/test-dup2.c (main): Also check AT_FDCWD.
43690
43691         test-stat-time: avoid more spurious failures
43692         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43693         xfs; and avoid race if the two timestamps cross quantization edge.
43694
43695         relocatable: prefer 'file system' over 'filesystem'
43696         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43697         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43698         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43699         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43700         * lib/relocatable.c (compute_curr_prefix): Likewise.
43701
43702 2009-10-10  Jim Meyering  <meyering@redhat.com>
43703
43704         stat-time-tests: check for the usleep function
43705         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43706
43707 2009-10-10  Bruno Haible  <bruno@clisp.org>
43708
43709         * modules/xnanosleep: Put the Link section after the Include section.
43710
43711 2009-10-09  Eric Blake  <ebb9@byu.net>
43712
43713         dup2: work around FreeBSD 6.1 bug
43714         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43715         * doc/posix-functions/dup2.texi (dup2): Document it.
43716         Reported by Nelson H. F. Beebe and Jim Meyering.
43717
43718         test-stat-time: port to buggy NFS clients
43719         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43720         (test_ctime): Also skip test if mtime and ctime are skewed.
43721
43722         maint: prefer 'file system' over 'filesystem'
43723         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43724         * doc/posix-functions/lstat.texi (lstat): Likewise.
43725         * lib/file-has-acl.c (file_has_acl): Likewise.
43726         * lib/fwriteerror.c [TEST]: Likewise.
43727         * tests/test-areadlink.h (test_areadlink): Likewise.
43728         * tests/test-areadlinkat-with-size.c (main): Likewise.
43729         * tests/test-areadlinkat.c (main): Likewise.
43730         * tests/test-canonicalize-lgpl.c (main): Likewise.
43731         * tests/test-canonicalize.c (main): Likewise.
43732         * tests/test-fstatat.c (main): Likewise.
43733         * tests/test-linkat.c (main): Likewise.
43734         * tests/test-lstat.h (test_lstat_func): Likewise.
43735         * tests/test-mkdir.h (test_mkdir): Likewise.
43736         * tests/test-readlink.h (test_readlink): Likewise.
43737         * tests/test-remove.c (main): Likewise.
43738         * tests/test-rename.h (test_rename): Likewise.
43739         * tests/test-renameat.c (main): Likewise.
43740         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43741         * tests/test-symlink.h (test_symlink): Likewise.
43742         * tests/test-symlinkat.c (main): Likewise.
43743         * tests/test-unlink.h (test_unlink_func): Likewise.
43744         * tests/test-unlinkat.c (main): Likewise.
43745
43746         maint: make realtime library usage explicit
43747         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43748         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43749         * modules/settime (Link): Likewise.
43750         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43751
43752         test-stat-time: speed up execution
43753         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43754         warning on mingw.
43755         (nap): New helper function.
43756         (prepare_test): Use it to reduce sleep time.
43757         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43758         execution.
43759         * modules/stat-time-tests (configure.ac): Check for usleep.
43760
43761 2009-10-09  Jim Meyering  <meyering@redhat.com>
43762
43763         selinux-h: always use getfilecon wrappers
43764         * lib/getfilecon.c: New file.
43765         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43766         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43767         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43768         (fgetfilecon): Provide a stub.
43769         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43770         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43771         file unconditionally.
43772         When <selinux/selinux.h> is found, arrange to use wrappers.
43773         * modules/selinux-h (Files): Add getfilecon.c.
43774         (Makefile.am): Substitute include-next-related bits
43775         into the now-always-generated selinux/selinux.h file.
43776         * doc/glibc-functions/lgetfilecon.texi: New file.
43777         * doc/glibc-functions/fgetfilecon.texi: New file.
43778         * doc/glibc-functions/getfilecon.texi: New file.
43779         * doc/glibc-functions/getfilecon-desc.texi: New file.
43780         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43781         which to pull in the new files.
43782         * MODULES.html.sh (Misc): Add selinux-h.
43783
43784 2009-10-08  Jim Meyering  <meyering@redhat.com>
43785
43786         unistd: fix comment typo
43787         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43788
43789 2009-10-08  Eric Blake  <ebb9@byu.net>
43790
43791         areadlink: use SIZE_MAX consistently
43792         * modules/areadlink (Depends-on): Add stdint.
43793         * modules/areadlink-with-size (Depends-on): Likewise.
43794         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43795         gives NULL; drop sys/types, since unistd gives size_t; and add
43796         stdint for SIZE_MAX.
43797         (SIZE_MAX): Rely on headers.
43798         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43799         and add stdint.
43800         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43801         (SIZE_MAX): Likewise.
43802         (INITIAL_BUF_SIZE): Turn into enum.
43803         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43804
43805 2009-10-08  Jim Meyering  <meyering@redhat.com>
43806
43807         areadlinkat: avoid compilation failure
43808         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43809         Fix typo in comment.
43810
43811 2009-10-07  Eric Blake  <ebb9@byu.net>
43812
43813         areadlinkat-with-size: new module
43814         * modules/areadlinkat-with-size: New module.
43815         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43816         * lib/areadlink.h (areadlinkat): Declare it.
43817         * MODULES.html.sh (File system functions): Mention it.
43818         * modules/areadlinkat-with-size-tests: New test.
43819         * tests/test-areadlinkat-with-size.c: New file.
43820
43821         xreadlinkat: new module
43822         * modules/xreadlinkat: New module.
43823         * lib/xreadlinkat.c (xreadlinkat): New file.
43824         * lib/xreadlink.h (xreadlinkat): Declare it.
43825         * MODULES.html.sh (File system functions): Mention it.
43826
43827         areadlinkat: new module
43828         * lib/at-func.c (FUNC_FAIL): New define.
43829         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43830         * modules/areadlinkat: New module.
43831         * lib/linkat.c (areadlinkat): Move...
43832         * lib/areadlinkat.c (areadlinkat): ...to new file.
43833         * lib/areadlink.h (areadlinkat): Declare it.
43834         * modules/linkat (Depends-on): Add areadlinkat.
43835         * MODULES.html.sh (File system functions): Mention it.
43836         * modules/areadlinkat-tests: New test.
43837         * tests/test-areadlinkat.c: New file.
43838
43839         areadlink, areadlink-with-size: add tests
43840         * modules/areadlink-tests: New test.
43841         * modules/areadlink-with-size-tests: Likewise.
43842         * tests/test-areadlink.h: New file.
43843         * tests/test-areadlink.c: Likewise.
43844         * tests/test-areadlink-with-size.c: Likewise.
43845
43846         maint: minor cleanups
43847         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43848         _UNUSED_PARAMETER_ instead.
43849         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43850         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43851         * modules/linkat-tests (Files): Distribute test-link.h.
43852
43853         openat, utimens: whitespace cleanup
43854         * lib/openat.c: Prefer space throughout, rather than mix of 8
43855         spaces vs. tabs.
43856         * lib/at-func.c: Likewise.
43857         * lib/utimens.c: Likewise.
43858
43859         openat: avoid using wrong fd
43860         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43861         working directory chooses same fd.
43862         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43863
43864         mkdir, mkdirat: fix cygwin 1.5.x bug
43865         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43866         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43867         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43868         bug.
43869         (gl_PREREQ_MKDIR): Delete unused macro.
43870         * modules/mkdir (Files): Track file rename.
43871         (configure.ac): Update macro name.
43872         * modules/openat (Depends-on): Add mkdir.
43873         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43874
43875         mkdir, mkdirat: add tests
43876         * modules/mkdir-tests: New test.
43877         * tests/test-mkdir.h: New file.
43878         * tests/test-mkdir.c: Likewise.
43879         * tests/test-mkdirat.c: Likewise.
43880         * modules/openat-tests (Files): Add new files.
43881         (Makefile.am): Run new test.
43882
43883 2009-10-06  Eric Blake  <ebb9@byu.net>
43884
43885         doc: tweak *at function documentation
43886         * doc/posix-functions/faccessat.texi (faccessat): Mention
43887         known issue with replacement.
43888         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43889         * doc/posix-functions/linkat.texi (linkat): Likewise.
43890         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43891         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43892         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43893         * doc/posix-functions/renameat.texi (renameat): Likewise.
43894         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43895
43896         openat: fix GNU/Hurd bug in unlinkat
43897         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43898         broken.
43899         * doc/posix-functions/unlink.texi (unlink): Document this.
43900         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43901
43902         fdopendir: fix GNU/Hurd bug
43903         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43904         allowing non-directory fds.
43905         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43906         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43907         * modules/dirent (Makefile.am): Substitute it.
43908         * lib/dirent.in.h (fdopendir): Declare replacement.
43909         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43910         * tests/test-fdopendir.c (main): Test something other than
43911         /dev/null, since on Hurd that behaves like a directory.
43912
43913         test-symlink: port to GNU/Hurd
43914         * tests/test-symlink.h (test_symlink): Relax expected errno.
43915
43916         doc: tweak more cygwin information
43917         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43918         now compatible with glibc.
43919         * doc/posix-functions/getopt.texi (getopt): Likewise.
43920
43921         getopt-gnu: add another test
43922         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43923         guarantee behavior relied on by m4.
43924         * tests/test-getopt.c (main): Use it.
43925         * modules/getopt-posix-tests (Depends-on): Add setenv.
43926         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43927
43928         getopt: fix compilation on darwin
43929         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43930         include.
43931         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43932         Reported by Ludovic Courtès.
43933
43934 2009-10-06  Bruno Haible  <bruno@clisp.org>
43935
43936         * modules/size_max (Description): Discourage its use.
43937         Reported by Simon Josefsson.
43938
43939 2009-10-06  Jim Meyering  <meyering@redhat.com>
43940
43941         linkat: avoid compilation failure
43942         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43943
43944 2009-10-05  Eric Blake  <ebb9@byu.net>
43945
43946         linkat: support Linux 2.6.17
43947         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43948         linkat on Linux, but allow cache variable override.
43949         * lib/linkat.c (rpl_linkat): Define override.
43950         * modules/linkat (Depends-on): Add symlinkat.
43951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43952         * modules/unistd (Makefile.am): Substitute it.
43953         * lib/unistd.in.h (linkat): Declare replacement.
43954         Reported by Pádraig Brady.
43955
43956         quotearg: port test to systems with C.UTF-8 locale
43957         * tests/test-quotearg.c (struct result_strings): Add another
43958         member, differentiating between C.ASCII and C.UTF-8 handling.
43959         (compare_strings): Add parameter.
43960         (main): Adjust all callers.
43961
43962         getopt: avoid clash with FreeBSD _getopt_internal
43963         * lib/getopt.in.h (_getopt_internal): Override the name.
43964         * lib/getopt_int.h (includes): Pick up any overrides.
43965         Reported by Reuben Thomas.
43966
43967         hash: allow C89 compilation
43968         * lib/hash.c (check_tuning): Move declaration before statement.
43969         Reported by Reuben Thomas.
43970
43971 2009-10-05  Karl Berry  <karl@gnu.org>
43972
43973         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43974
43975 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43976             Bruno Haible  <bruno@clisp.org>
43977
43978         * lib/uname.c (uname): Use a table-driven algorithm to compute
43979         Windows NT versions.
43980
43981 2009-10-04  Bruno Haible  <bruno@clisp.org>
43982
43983         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43984         program_invocation_short_name.
43985         * modules/progname (configure.ac): Test for presence of
43986         program_invocation_short_name.
43987         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43988
43989 2009-10-04  Bruno Haible  <bruno@clisp.org>
43990
43991         * lib/progname.c (set_program_name): Fix comment.
43992         Reported by Jim Meyering.
43993
43994 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43995             Bruno Haible  <bruno@clisp.org>
43996
43997         * lib/uname.c: Include <string.h>.
43998         (uname): Do only one call to GetVersionEx in the common case.
43999
44000 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44001             Bruno Haible  <bruno@clisp.org>
44002
44003         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44004         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44005         (uname): Add support for Windows CE and various non-x86 CPU types.
44006
44007 2009-10-03  Bruno Haible  <bruno@clisp.org>
44008
44009         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44010         invocation to tests/configure.ac.
44011         Reported by Ian Beckwith <ianb@erislabs.net>.
44012
44013 2009-10-02  Eric Blake  <ebb9@byu.net>
44014
44015         fchdir: avoid compiler warning
44016         * lib/fchdir.c (canonicalize_file_name)
44017         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44018
44019         test-open: support mingw errno values
44020         * tests/test-open.h (test_open): Relax test.
44021         * tests/test-fopen.h (test_fopen): Likewise.
44022         * tests/test-openat-safer.c (main): Likewise.
44023
44024         open: fix opening directory on mingw
44025         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44026
44027         test-open: on GNU/Hurd, /dev/null is a directory
44028         * tests/test-fopen.h (main): Rename...
44029         (test_fopen): ...to this.  Use a guaranteed non-directory when
44030         confirming open behavior on trailing slash.
44031         * tests/test-openat-safer.c (main): Likewise.
44032         * tests/test-open.h (main): Likewise....
44033         (test_open): ...to this.
44034         * tests/test-fopen.c (main): Adjust caller.
44035         * tests/test-fopen-safer.c (main): Likewise.
44036         * tests/test-open.c (main): Likewise.
44037         * tests/test-fcntl-safer.c (main): Likewise.
44038         Reported by Samuel Thibault.
44039
44040         rename, fchdir: don't ignore chdir failure
44041         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44042         * lib/rename.c (rpl_rename) [W32]: Likewise.
44043         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44044         an empty destination directory if source cannot be renamed,
44045         although there is still possibility for failure.
44046         * doc/posix-functions/rename.texi (rename): Document the race.
44047         Reported by Jim Meyering.
44048
44049         maint: cleanup whitespace in recent commits
44050         * lib/rename.c (rpl_rename): Remove tabs.
44051         * tests/test-link.h (test_link): Likewise.
44052         * lib/fchdir.c (get_name): Likewise.
44053         Reported by Jim Meyering.
44054
44055 2009-10-02  Ben Pfaff  <blp@gnu.org>
44056
44057         relocatable-prog-wrapper: Add missing dependency on
44058         double-slash-root.
44059         * modules/relocatable-prog-wrapper: Add dependency.
44060         Reported by Ian Beckwith <ianb@erislabs.net>.
44061
44062 2009-10-02  Eric Blake  <ebb9@byu.net>
44063
44064         renameat: fix Solaris bugs
44065         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44066         needed fixing.
44067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44068         * modules/stdio (Makefile.am): Substitute it.
44069         * lib/stdio.in.h (renameat): Declare replacement.
44070         * lib/renameat.c (rpl_renameat): Implement fix.
44071
44072         renameat: new module
44073         * modules/renameat: New file.
44074         * lib/renameat.c (renameat): Likewise.
44075         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44077         * modules/stdio (Makefile.am): Substitute them.
44078         * lib/stdio.in.h (renameat): Declare it.
44079         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44080         * doc/posix-functions/renameat.texi (renameat): Likewise.
44081         * modules/renameat-tests: New test.
44082         * tests/test-renameat.c: Likewise.
44083
44084         rename: fix mingw bugs
44085         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44086         directory overwrite bugs.
44087
44088         rename: fix another cygwin 1.5 bug
44089         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44090         checks.
44091         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44092         unnecessary cygwin workarounds.  Also work around bug with moving
44093         full directory onto an empty one.
44094         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44095
44096         rename-dest-slash: merge into rename module
44097         * modules/rename-dest-slash (Status): Mark obsolete.
44098         (Depends-on): Add rename.
44099         (Files): Let rename do it all.
44100         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44101         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44102         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44103         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44104         * lib/rename.c (rpl_rename): Update comments.
44105
44106         rename: fix cygwin 1.5.x bugs
44107         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44108         * lib/rename.c (rpl_rename): Work around them.
44109         * modules/rename (Depends-on): Add same-inode.
44110
44111         rename: fix Solaris 10 bug
44112         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44113         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44114         was the only bug.
44115
44116         rename: fix Solaris 9 bug
44117         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44118         on non-directory.  Avoid calling exit.
44119         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44120         strdup.
44121         * modules/rename-tests (Depends-on): Drop lstat.
44122         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44123         (gl_PREREQ_RENAME): Delete unused macro.
44124
44125         rename-dest-slash: fix NetBSD bug
44126         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44127         links.
44128         * modules/rename-dest-slash (Depends-on): Add same-inode.
44129
44130         rename-tests: new test, exposes several platform bugs
44131         * modules/rename-tests: New file.
44132         * tests/test-rename.h: Likewise.
44133         * tests/test-rename.c: Likewise.
44134         * doc/posix-functions/rename.texi (rename): Improve documentation,
44135         including bugs that will eventually be fixed in gnulib.
44136
44137 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44138
44139         * lib/uname.c: Include <stdlib.h>
44140         (uname): Assume version info is available.
44141
44142 2009-10-02  Jim Meyering  <meyering@redhat.com>
44143
44144         gnu-web-doc-update: correct --help output
44145         * build-aux/gnu-web-doc-update: Make --help output relevant.
44146
44147         gnu-web-doc-update: add standard options
44148         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44149
44150         gnu-web-doc-update: New module.
44151         Use this script to automatically update the on-line web documentation
44152         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44153         * modules/gnu-web-doc-update: New file, from coreutils.
44154         * build-aux/gnu-web-doc-update: New script.
44155
44156 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44157
44158         link: LoadLibrary is not needed.
44159         * lib/link.c: Use GetModuleHandle.
44160
44161 2009-10-01  Eric Blake  <ebb9@byu.net>
44162
44163         getopt: bump serial number
44164         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44165         change.
44166
44167         tests: tighten link, rmdir, and remove tests
44168         * tests/test-link.h (includes): No need to use <config.h> here.
44169         Clean up if directory hard link was created, otherwise test for
44170         trailing '.'.
44171         * tests/test-linkat.c (main): Simplify.
44172         * tests/test-remove.c (main): Enhance test for trailing '.'.
44173         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44174
44175 2009-10-01  Jim Meyering  <meyering@redhat.com>
44176
44177         maint.mk: requiring "make major" was annoying, for a "minor" release.
44178         What is intended is "stable", to contrast with alpha and beta,
44179         so require "make stable", not "make major".
44180         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44181         (get_tool_versions): Likewise.
44182         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44183
44184 2009-09-30  Ben Pfaff  <blp@gnu.org>
44185
44186         Fix broken build of replacement for Windows tmpfile().
44187         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44188         flags argument added along with the 'mkostemp' module.
44189
44190 2009-09-28  Bruno Haible  <bruno@clisp.org>
44191
44192         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44193         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44194         to 'remove_elt'.
44195         (gl_list_remove): Update.
44196         * lib/gl_list.c (gl_list_remove): Update.
44197         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44198         to 'remove_elt'.
44199         (gl_oset_remove): Update.
44200         * lib/gl_list.c (gl_oset_remove): Update.
44201         Reported by Eric Blake.
44202
44203 2009-09-28  Eric Blake  <ebb9@byu.net>
44204
44205         doc: mention yet more cygwin 1.7 status
44206         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44207         cygwin.
44208         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44209         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44210
44211         argp: fix test failure
44212         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44213         that are not upper-case.  Pass correct range to tolower.
44214
44215 2009-09-27  Jim Meyering  <meyering@redhat.com>
44216
44217         test-yesno: work around sparc-dash here-document infelicity
44218         Without this change, the literal \177 byte in a here document
44219         would make dash 0.5.5.1-3 access uninitialized memory.
44220         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44221         Instead, use a marker, "@", and filter through tr to create the desired
44222         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44223
44224 2009-09-27  Bruno Haible  <bruno@clisp.org>
44225
44226         Disable untested support for new flavours of ACLs on AIX.
44227         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44228         progress.
44229         * lib/set-mode-acl.c (qset_acl): Likewise.
44230
44231 2008-12-07  Bruno Haible  <bruno@clisp.org>
44232
44233         Add support for new flavours of ACLs on AIX. (Untested.)
44234         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44235         (file_has_acl): Add support for newer AIX.
44236         * lib/set-mode-acl.c (qset_acl): Likewise.
44237         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44238         Rainer Tammer <tammer@tammer.net>.
44239
44240 2009-09-26  Eric Blake  <ebb9@byu.net>
44241
44242         argp: fix compilation of getopt
44243         * lib/getopt.in.h (includes): Use different guard than glibc.
44244         Reported by Sergey Poznyakoff.
44245
44246         doc: mention more cygwin 1.7 status
44247         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44248         bug.
44249         * doc/posix-functions/execl.texi (execl): Likewise.
44250         * doc/posix-functions/execle.texi (execle): Likewise.
44251         * doc/posix-functions/execlp.texi (execlp): Likewise.
44252         * doc/posix-functions/execv.texi (execv): Likewise.
44253         * doc/posix-functions/execve.texi (execve): Likewise.
44254         * doc/posix-functions/execvp.texi (execvp): Likewise.
44255         * doc/glibc-functions/canonicalize_file_name.texi
44256         (canonicalize_file_name): Cygwin 1.7 now provides this.
44257         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44258         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44259         on AT_SYMLINK_NOFOLLOW.
44260
44261 2009-09-24  Eric Blake  <ebb9@byu.net>
44262
44263         test-linkat: make test more robust
44264         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44265
44266         getopt: fix inclusion guards for cygwin
44267         * modules/getopt-posix (Depends-on): Add include-next.
44268         (Makefile.am): Substitute more items in replacement header.
44269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44270         <getopt.h>.
44271         * lib/getopt.in.h (includes): Use split inclusion guard, and
44272         prefer <getopt.h> over include <unistd.h> when one is present.
44273         (option): Also override name of 'struct option'.
44274
44275         same-inode: revert prior change; it is not yet ready
44276         * NEWS: Undo mention of this change.
44277         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44278         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44279         * lib/cycle-check.c (cycle_check): Likewise.
44280         * lib/same.c (same_name): Likewise.
44281         * lib/at-func2.c (at_func2): Likewise.
44282
44283 2009-09-23  Eric Blake  <ebb9@byu.net>
44284
44285         linkat: new module
44286         * modules/linkat: New file.
44287         * lib/at-func2.c (at_func2): Likewise.
44288         * lib/linkat.c (linkat): Likewise.
44289         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44290         * lib/openat-priv.h (at_func2): Add declaration.
44291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44292         * modules/unistd (Makefile.am): Substitute them.
44293         * lib/unistd.in.h (linkat): Declare it.
44294         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44295         * doc/posix-functions/linkat.texi (linkat): Likewise.
44296         * doc/posix-functions/link.texi (link): Tweak wording.
44297         * tests/test-link.c (main): Move guts...
44298         * tests/test-link.h (test_link): ...into new file.
44299         * modules/linkat-tests: New test.
44300         * tests/test-linkat.c: Likewise.
44301         * modules/link-tests (Files): Ship new file.
44302         (Depends-on): Add stdbool.
44303
44304         dirname: add library-safe mdir_name
44305         * lib/dirname.h (mdir_name): New prototype.
44306         * lib/dirname.c (dir_name): Move guts...
44307         (mdir_name): ...to new function that avoids xalloc_die.
44308
44309         fchdir: another mingw fix
44310         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44311         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44312         on mingw (where it has not yet been ported), and make it optional
44313         elsewhere.
44314         (_gl_register_fd): Use it.
44315
44316         same-inode: make SAME_INODE tri-state, to port to mingw
44317         * NEWS: Mention this change.
44318         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44319         st_ino always being 0.
44320         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44321         * lib/cycle-check.c (cycle_check): Likewise.
44322         * lib/same.c (same_name): Likewise.
44323
44324         lstat: avoid mingw compilation error
44325         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44326         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44327         lstat ourselves.
44328         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44329         was adequate.
44330         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44331         the checks for lstat.
44332         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44333
44334         link: fix test failure on Solaris 9
44335         * lib/link.c (rpl_link): Don't assume link will catch bogus
44336         trailing slash on source.
44337
44338         test-symlinkat: enhance test
44339         * tests/test-readlink.c (main): Move guts...
44340         * tests/test-readlink.h (test_readlink): ...into new file.
44341         * tests/test-symlink.c (main): Move guts...
44342         * tests/test-symlink.h (test_symlink): ...into new file.
44343         * tests/test-symlinkat.c (main): Use new files for further
44344         coverage.
44345         (do_symlink, do_readlink): New helper functions.
44346         * modules/symlink-tests (Files): Ship new file.
44347         (Depends-on): Add stdbool.
44348         * modules/readlink-tests (Files): Ship new file.
44349         (Depends-on): Add stdbool.
44350         * modules/symlinkat-tests (Files): Use new files.
44351
44352 2009-09-23  Eric Blake  <ebb9@byu.net>
44353
44354         readlink: document portability issue with symlink length
44355         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44356         systems have bogus st_size on symlinks, and mention the
44357         areadlink-with-size module.
44358         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44359         * doc/posix-functions/readlink.texi (readlink): Mention the
44360         areadlink module, and ERANGE failure.
44361         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44362         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44363
44364         readlink: fix Solaris 9 bug with trailing slash
44365         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44366         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44367         * doc/posix-functions/readlink.texi (readlink): Document this.
44368         * modules/readlink-tests: New test.
44369         * tests/test-readlink.c: Likewise.
44370
44371         readlink: fix cygwin 1.5.x bug with return type
44372         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44373         * lib/unistd.in.h (readlink): Use ssize_t.
44374         * lib/readlink.c (readlink): Likewise.
44375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44376         * modules/unistd (Makefile.am): Substitute it.
44377         * lib/unistd.in.h (readlink): Declare replacement.
44378         * doc/posix-functions/readlink.texi (readlink): Document this.
44379
44380         symlink: use throughout gnulib
44381         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44382         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44383         symlink is not used.
44384         * modules/symlinkat (Depends-on): Add symlink.
44385         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44386         * modules/canonicalize-tests (Depends-on): Likewise.
44387         * modules/lstat-tests (Depends-on): Likewise.
44388         * modules/openat-tests (Depends-on): Likewise.
44389         * modules/remove-tests (Depends-on): Likewise.
44390         * modules/rmdir-tests (Depends-on): Likewise.
44391         * modules/unlink-tests (Depends-on): Likewise.
44392         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44393         * tests/test-canonicalize.c (symlink): Likewise.
44394         * tests/test-fstatat.c (symlink): Likewise.
44395         * tests/test-lstat.c (symlink): Likewise.
44396         * tests/test-remove.c (symlink): Likewise.
44397         * tests/test-rmdir.c (symlink): Likewise.
44398         * tests/test-unlink.c (symlink): Likewise.
44399         * tests/test-unlinkat.c (symlink): Likewise.
44400
44401         symlink: new module, for Solaris 9 bug
44402         * modules/symlink: New file.
44403         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44404         * lib/symlink.c: Likewise.
44405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44406         * modules/unistd (Makefile.am): Substitute them.
44407         * lib/unistd.in.h (symlink): Declare replacement.
44408         * MODULES.html.sh (File system functions): Mention it.
44409         * doc/posix-functions/symlink.texi (symlink): Likewise.
44410         * modules/symlink-tests: New test.
44411         * tests/test-symlink.c: Likewise.
44412
44413 2009-09-23  Bruno Haible  <bruno@clisp.org>
44414
44415         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44416         when needed.
44417         Test case: gnulib-tool --import --with-tests atexit inttypes.
44418         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44419
44420 2009-09-23  Bruno Haible  <bruno@clisp.org>
44421
44422         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44423         subcommand, not in a subshell.
44424
44425 2009-09-22  Eric Blake  <ebb9@byu.net>
44426
44427         unistd: sort replacement declarations
44428         * lib/unistd.in.h: Sort declarations.
44429
44430         open, openat: minor optimization
44431         * lib/open.c (open): If open succeeded, len is non-zero.
44432         * lib/openat.c (rpl_openat): Likewise.
44433
44434         link-follow: ensure correct result
44435         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44436         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44437         distinguish between possible failures.
44438
44439 2009-09-21  Eric Blake  <ebb9@byu.net>
44440
44441         fts: avoid compiler warning
44442         * lib/fts.c (dirent_inode_sort_may_be_useful)
44443         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44444
44445 2009-09-19  Bruno Haible  <bruno@clisp.org>
44446
44447         * lib/progreloc.c (canonicalize_file_name): New declaration.
44448
44449 2009-09-19  Eric Blake  <ebb9@byu.net>
44450
44451         link: fix quoting
44452         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44453
44454         openat: fix openat bugs on Solaris 9
44455         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44456         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44457         * modules/openat (Depends-on): Add open.
44458         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44459         * modules/fcntl-h (Makefile.am): Substitute it.
44460         * lib/fcntl.in.h (openat): Declare replacement.
44461         * doc/posix-functions/openat.texi (openat): Document this.
44462
44463         openat: move fstatat and unlinkat into correct files
44464         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44465         compiled.
44466         * lib/openat.c (fstatat, unlinkat): Move...
44467         * lib/fstatat.c (fstatat): ...into correct files.
44468         * lib/unlinkat.c (unlinkat): Likewise.
44469
44470         openat: fix unlinkat bugs on Solaris 9
44471         * lib/unlinkat.c (unlinkat): New file.
44472         * modules/openat (Depends-on): Add unlink.
44473         (Files): Distribute it.
44474         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44475         trailing slash behavior is broken.
44476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44477         * modules/unistd (Makefile.am): Substitute it.
44478         * lib/unistd.in.h (unlinkat): Declare replacement.
44479         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44480
44481         openat: fix fstatat bugs on Solaris 9
44482         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44483         stat.
44484         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44485
44486         test-unlinkat: enhance test, to expose Solaris 9 bug
44487         * tests/test-unlink.c (main): Factor guts...
44488         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44489         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44490         * tests/test-rmdir.c (main): Adjust caller.
44491         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44492         (unlinker): New helper function.
44493         (rmdirat): Enhance check.
44494         * modules/rmdir-tests (Depends-on): Add stdbool.
44495         * modules/unlink-tests (Depends-on): Likewise.
44496         (Files): Add test-unlink.h.
44497         * modules/openat-tests (Files): Likewise.
44498         (Depends-on): Add unlinkdir.
44499
44500         test-fstatat: new test, to expose Solaris 9 bugs
44501         * tests/test-stat.c (main): Factor guts...
44502         * tests/test-stat.h (test_stat_func): ...into new file.
44503         * tests/test-lstat.c (main): Factor guts...
44504         * tests/test-lstat.h (test_lstat_func): ...into new file.
44505         * tests/test-fstatat.c: New file.
44506         * modules/stat-tests (Files): Add test-stat.h.
44507         * modules/lstat-tests (Files): Add test-lstat.h.
44508         (Depends-on): Add stdbool.
44509         * modules/openat-tests (Depends-on): Add pathmax.
44510         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44511         (Makefile.am): Run new test.
44512
44513         remove: new module, for mingw and Solaris 9 bugs
44514         * modules/remove: New file.
44515         * lib/remove.c: Likewise.
44516         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44518         * modules/stdio (Makefile.am): Use them.
44519         * lib/stdio.in.h (remove): Declare replacement.
44520         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44521         * doc/posix-functions/remove.texi (remove): Likewise.
44522         * modules/remove-tests: New test.
44523         * tests/test-remove.c: Likewise.
44524
44525         unlink: new module, for Solaris 9 bug
44526         * modules/unlink: New file.
44527         * lib/unlink.c: Likewise.
44528         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44530         * modules/unistd (Makefile.am): Use them.
44531         * lib/unistd.in.h (stat): Declare replacement.
44532         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44533         * doc/posix-functions/unlink.texi (unlink): Likewise.
44534         * modules/unlink-tests: New test.
44535         * tests/test-unlink.c: Likewise.
44536
44537         lstat: fix Solaris 9 bug
44538         * lib/lstat.c (lstat): Also check for trailing slash on
44539         non-symlink, non-directories.  Use stat module to simplify logic.
44540         * doc/posix-functions/lstat.texi (lstat): Document it.
44541         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44542         (configure.ac): Check for symlink.
44543         * tests/test-lstat.c (main): Add more tests.
44544
44545         stat: add as dependency to other modules
44546         * modules/chown (Depends-on): Add stat.
44547         * modules/euidaccess (Depends-on): Likewise.
44548         * modules/fchdir (Depends-on): Likewise.
44549         * modules/isdir (Depends-on): Likewise.
44550         * modules/link (Depends-on): Likewise.
44551         * modules/lstat (Depends-on): Likewise.
44552         * modules/mkdir-p (Depends-on): Likewise.
44553         * modules/modechange (Depends-on): Likewise.
44554         * modules/open (Depends-on): Likewise.
44555         * modules/readlink (Depends-on): Likewise.
44556         * modules/same (Depends-on): Likewise.
44557
44558         stat: fix Solaris 9 bug
44559         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44560         slash.
44561         * lib/stat.c (rpl_stat): Work around it.
44562         * doc/posix-functions/stat.texi (stat): Update documentation.
44563
44564         stat: new module, for mingw bug
44565         * modules/stat: New file.
44566         * lib/stat.c: Likewise.
44567         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44568         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44569         * modules/sys_stat (Makefile.am): Use them.
44570         * lib/sys_stat.in.h (stat): Declare replacement.
44571         * lib/openat.c (fstatat): Deal with lstat and stat being function
44572         macros.
44573         * modules/openat (Depends-on): Add inline.
44574         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44575         * doc/posix-functions/stat.texi (stat): Likewise.
44576         * modules/stat-tests: New test.
44577         * tests/test-stat.c: Likewise.
44578
44579 2009-09-19  Jim Meyering  <meyering@redhat.com>
44580
44581         syntax-check: detect unnecessary inclusion of canonicalize.h
44582         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44583
44584 2009-09-19  Eric Blake  <ebb9@byu.net>
44585
44586         canonicalize-lgpl: adjust clients to use correct header
44587         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44588         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44589         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44590         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44591         * lib/progreloc.c (includes): Likewise.
44592
44593 2009-09-19  Jim Meyering  <meyering@redhat.com>
44594
44595         test-posixtm.c: correct a comment
44596         * tests/test-posixtm.c: Correct first-line comment.
44597         Spotted by Eric Blake.
44598
44599 2009-09-16  Jim Meyering  <meyering@redhat.com>
44600
44601         posixtm-tests: make T const-correct; add a test case
44602         * tests/test-posixtm.c (T): Declare const.
44603         Add a test for -(2^31+1).
44604         Remove useless can-succeed-only-in-2002 test.
44605
44606         posixtm-tests: adjust the sole failing test
44607         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44608         expected output matches what mktime now produces.  Cross-checked via
44609         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44610
44611         posixtm: move #ifdef'd tests into a new module
44612         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44613         * tests/test-posixtm.c: ... this new file.
44614         * modules/posixtm-tests: New module.
44615
44616 2009-09-19  Eric Blake  <ebb9@byu.net>
44617
44618         openat: simplify use of at-func.c
44619         * lib/at-func.c (includes): Include prerequisites here, to
44620         simplify requirements on client files.
44621         * lib/openat-priv.h: Add double-inclusion guard.
44622         * lib/faccessat.c (includes): Simplify.
44623         * lib/fchmodat.c (includes): Likewise.
44624         * lib/fchownat.c (includes): Likewise.
44625         * lib/mkdirat.c (includes): Likewise.
44626         * lib/mkfifoat.c (includes): Likewise.
44627         * lib/symlinkat.c (includes): Likewise.
44628
44629         openat: allow return of fd 0
44630         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44631         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44632         unistd-safer.
44633         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44634         <fcntl.h>; this module does not leak fds.
44635         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44636         must be allowed to return 0, leaving openat_safer to add the
44637         safety.
44638         (openat_permissive): Avoid writing to just-opened fd 2 if
44639         restoring the current directory fails.
44640         * lib/openat-die.c (openat_restore_fail): Add comment.
44641         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44642         (save_cwd): Guarantee safe fd, but without use of open_safer.
44643         * tests/test-openat.c: New test.
44644         * modules/openat-tests (Files, Makefile.am): Distribute and build
44645         new file.
44646
44647         relocatable-prog-wrapper: fix build
44648         * modules/relocatable-prog-wrapper (Files): Update name of
44649         canonicalize m4 file, broken on 2009-09-17.
44650         Reported by emad hajjar <aleppos@hotmail.com>.
44651
44652 2009-09-19  Bruno Haible  <bruno@clisp.org>
44653
44654         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44655         * lib/safe-alloc.c: Likewise.
44656         Reported by Ian Beckwith <ianb@erislabs.net>.
44657
44658 2009-09-18  Bruno Haible  <bruno@clisp.org>
44659
44660         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44661         Reported by <erobles@sensacd.com.mx>.
44662
44663 2009-09-17  Eric Blake  <ebb9@byu.net>
44664
44665         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44666         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44667         slashes when checking if last component is missing.
44668         * tests/test-canonicalize.c (main): Test this.
44669
44670         canonicalize, canonicalize-lgpl: honor // if distinct from /
44671         * modules/canonicalize (Files): Add double-slash-root.m4.
44672         * modules/canonicalize-lgpl (Files): Likewise.
44673         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44674         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44675         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44676         fallback definition.
44677         (canonicalize_filename_mode): Use it to protect //.
44678         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44679         (__realpath): Likewise.
44680         * tests/test-canonicalize.c (main): Test this.
44681         * tests/test-canonicalize-lgpl.c (main): Likewise.
44682         * modules/canonicalize-tests (Depends-on): Add same-inode.
44683         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44684
44685         canonicalize-lgpl: fix glibc bug with trailing slash
44686         * m4/canonicalize-lgpl.m4: Move contents...
44687         * m4/canonicalize.m4: ...here.
44688         (gl_CANONICALIZE_LGPL): Factor realpath check...
44689         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44690         glibc 2.3.5 bug, fixed 2005-04-27.
44691         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44692         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44693         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44694         * modules/canonicalize-lgpl (Files): Manage file rename.
44695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44696         * modules/stdlib (Makefile.am): Substitute witness.
44697         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44698         is needed.
44699         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44700         replacement is required.
44701         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44702         * doc/glibc-functions/canonicalize_file_name.texi
44703         (canonicalize_file_name): Document this.
44704         * doc/posix-functions/realpath.texi (realpath): Likewise.
44705
44706         canonicalize-lgpl: reject non-directory with trailing slash
44707         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44708         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44709         catches failures in glibc 2.3.5.
44710         * tests/test-canonicalize.c (main): Likewise.
44711
44712         canonicalize-lgpl: use native realpath if it works
44713         * lib/canonicalize-lgpl.c (realpath): Guard with
44714         FUNC_REALPATH_WORKS.
44715         * lib/stdlib.in.h (realpath): Make declaration optional based on
44716         HAVE_REALPATH.
44717         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44718         native realpath works.
44719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44720         * modules/stdlib (Makefile.am): Substitute witness.
44721
44722         canonicalize, canonicalize-lgpl: use <stdlib.h>
44723         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44724         (Include): Mention <stdlib.h>.
44725         (configure.ac): Mention functions we provide.
44726         * modules/canonicalize (configure.ac): Likewise.
44727         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44728         realpath if canonicalize_file_name is missing.
44729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44730         * modules/stdlib (Makefile.am): Substitute witnesses.
44731         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44732         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44733         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44734         * NEWS: Document this.
44735         * doc/glibc-functions/canonicalize_file_name.texi
44736         (canonicalize_file_name): Likewise.
44737         * doc/posix-functions/realpath.texi (realpath): Likewise.
44738         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44739
44740         test-canonicalize: consolidate into single C program
44741         * tests/test-canonicalize.sh: Delete; move setup into...
44742         * tests/test-canonicalize.c (main): ...the program, making it
44743         easier to run in debugger.  Add some tests.
44744         * modules/canonicalize-tests (Files): Remove unused file.
44745         (Depends-on): Add progname.
44746         (configure.ac, Makefile.am): Simplify.
44747
44748         test-canonicalize-lgpl: consolidate into single C program
44749         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44750         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44751         easier to run in debugger.  Add some tests.
44752         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44753         (configure.ac, Makefile.am): Simplify.
44754
44755         canonicalize: avoid resolvepath
44756         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44757         unnecessary checks.
44758         * lib/canonicalize.c (includes): Simplify.
44759         (canonicalize_file_name): Drop resolvepath implementation.
44760         * modules/canonicalize (Depends-on): Drop filenamecat.
44761
44762         canonicalize: don't lose errno
44763         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44764         over calls to free.
44765
44766         canonicalize: simplify errno handling
44767         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44768         assignment.
44769
44770         canonicalize, canonicalize-lgpl: update module dependencies
44771         * modules/canonicalize (Depends-on): Add extensions, lstat,
44772         pathmax, stdlib.
44773         (Files): Drop pathmax.h.
44774         (configure.ac): Adjust macro name.
44775         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44776         lstat, stdlib, sys_stat.
44777         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44778         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44779         extensions.
44780         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44781         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44782         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44783         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44784         declaration, if available.
44785         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44786         we can rely on the readlink module.
44787         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44788         (includes): Use <unistd.h> unconditionally.
44789
44790 2009-09-17  Eric Blake  <ebb9@byu.net>
44791
44792         maint: make Include sections of modules consistent
44793         * modules/alloca: Use only header name; no need to list #include.
44794         * modules/alloca-opt: Likewise.
44795         * modules/arpa_inet: Likewise.
44796         * modules/canon-host: Likewise.
44797         * modules/configmake: Likewise.
44798         * modules/dirent: Likewise.
44799         * modules/eealloc: Likewise.
44800         * modules/environ: Likewise.
44801         * modules/fchdir: Likewise.
44802         * modules/fcntl: Likewise.
44803         * modules/fcntl-h: Likewise.
44804         * modules/gethrxtime: Likewise.
44805         * modules/gettime: Likewise.
44806         * modules/ignore-value: Likewise.
44807         * modules/inet_ntop: Likewise.
44808         * modules/inet_pton: Likewise.
44809         * modules/inttypes: Likewise.
44810         * modules/isnand-nolibm: Likewise.
44811         * modules/isnanf-nolibm: Likewise.
44812         * modules/mbchar: Likewise.
44813         * modules/mbfile: Likewise.
44814         * modules/mbiter: Likewise.
44815         * modules/mbuiter: Likewise.
44816         * modules/netdb: Likewise.
44817         * modules/netinet_in: Likewise.
44818         * modules/nproc: Likewise.
44819         * modules/pagealign_alloc: Likewise.
44820         * modules/poll: Likewise.
44821         * modules/printf-frexp: Likewise.
44822         * modules/pthread: Likewise.
44823         * modules/putenv: Likewise.
44824         * modules/random_r: Likewise.
44825         * modules/relocatable-prog: Likewise.
44826         * modules/search: Likewise.
44827         * modules/select: Likewise.
44828         * modules/selinux-h: Likewise.
44829         * modules/settime: Likewise.
44830         * modules/signal: Likewise.
44831         * modules/size_max: Likewise.
44832         * modules/socklen: Likewise.
44833         * modules/ssize_t: Likewise.
44834         * modules/stdarg: Likewise.
44835         * modules/stdbool: Likewise.
44836         * modules/stddef: Likewise.
44837         * modules/stdint: Likewise.
44838         * modules/stdio: Likewise.
44839         * modules/stdlib: Likewise.
44840         * modules/string: Likewise.
44841         * modules/strings: Likewise.
44842         * modules/sys_file: Likewise.
44843         * modules/sys_ioctl: Likewise.
44844         * modules/sys_select: Likewise.
44845         * modules/sys_socket: Likewise.
44846         * modules/sys_stat: Likewise.
44847         * modules/sys_time: Likewise.
44848         * modules/sys_times: Likewise.
44849         * modules/sys_utsname: Likewise.
44850         * modules/sys_wait: Likewise.
44851         * modules/sysexits: Likewise.
44852         * modules/time: Likewise.
44853         * modules/times: Likewise.
44854         * modules/tmpfile: Likewise.
44855         * modules/trim: Likewise.
44856         * modules/unistd: Likewise.
44857         * modules/wchar: Likewise.
44858         * modules/wctype: Likewise.
44859
44860 2009-09-17  Bruno Haible  <bruno@clisp.org>
44861
44862         Make getdate.y compile on QNX and NetBSD 5 / i386.
44863         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44864         TIME_T_FITS_IN_LONG_INT.
44865         * lib/getdate.y (long_time_t): New type.
44866         (relative_time): Change type of 'seconds' field to long_time_t.
44867         (get_date): Update types of local variables. Check against overflow
44868         during conversion from long_time_t to time_t.
44869         Reported by Matt Kraai <kraai@ftbfs.org>
44870         and Hasso Tepper <hasso@netbsd.org>.
44871
44872 2009-09-17  Bruno Haible  <bruno@clisp.org>
44873
44874         * modules/COPYING: Update copyright years.
44875         * modules/README: Likeiwse.
44876         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44877         Reported by Ian Beckwith <ianb@erislabs.net>.
44878
44879 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44880
44881         * users.txt: Update references for gnuit package.
44882
44883 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44884
44885         * m4/getdelim.m4: Fix typo in copyright line.
44886
44887 2009-09-17  Bruno Haible  <bruno@clisp.org>
44888
44889         * lib/atoll.c: Use the standard header with GPL copyright.
44890         * lib/argz.in.h: Likewise.
44891         * lib/glob.c: Likewise.
44892         * lib/glob-libc.h: Likewise.
44893         * lib/random_r.c: Likewise.
44894         * lib/siglist.h: Likewise.
44895         * lib/strsignal.c: Likewise.
44896         Reported by Ian Beckwith <ianb@erislabs.net>.
44897
44898 2009-09-17  Eric Blake  <ebb9@byu.net>
44899
44900         rmdir: ensure correct dependency order
44901         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44902
44903 2009-09-17  Bruno Haible  <bruno@clisp.org>
44904
44905         Disable assertion that fails on NetBSD 5 / i386.
44906         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44907         Reported by Sam Steingold <sds@gnu.org>
44908         and Hasso Tepper <hasso@netbsd.org>.
44909
44910 2009-09-16  Eric Blake  <ebb9@byu.net>
44911
44912         unlinkdir: port to mingw
44913         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44914         on which no one can unlink a directory.
44915
44916         stdlib: sort witness names
44917         * modules/stdlib (Makefile.am): Sort replacements.
44918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44919         * lib/stdlib.in.h: Likewise.
44920
44921         parse-duration-tests: avoid link failure
44922         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44923         LIBINTL.
44924         Reported by Tom G. Christensen.
44925
44926         openat-tests: ensure unlinkat behaves like rmdir
44927         * tests/test-rmdir.c (main): Factor guts...
44928         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44929         * modules/rmdir-tests (Files): Ship new file.
44930         * modules/openat-tests: New test.
44931         * tests/test-unlinkat.c: Likewise.
44932
44933         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44934         * modules/rmdir-errno (Status, Notice): Now obsolete.
44935
44936         rmdir: work around cygwin 1.5.x and mingw bugs
44937         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44938         * lib/rmdir.c (rmdir): Work around it.
44939         * modules/rmdir (Status, Notice): No longer obsolete.
44940         (Files): Add dos.m4.
44941         (Depends-on): Add unistd.
44942         (configure.ac): Set witnesses.
44943         (License): Relax to LGPLv2+.
44944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44945         * modules/unistd (Makefile.am): Substitute witnesses.
44946         * lib/unistd.in.h (rmdir): Declare replacement.
44947         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44948         * modules/rmdir-tests: New tests.
44949         * tests/test-rmdir.c: Likewise.
44950
44951 2009-09-15  Eric Blake  <ebb9@byu.net>
44952
44953         fchdir: improve use of replacement functions
44954         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44955         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44956         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44957         REPLACE_CLOSEDIR.
44958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44959         * modules/sys_stat (Makefile.am): Substitute correct witness.
44960         * modules/dirent (Makefile.am): Likewise.
44961         * modules/unistd (Makefile.am): Likewise.
44962         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44963         * lib/unistd.in.h (dup): Likewise.
44964         * lib/sys_stat.in.h (fstat): Likewise.
44965
44966         maint: ignore gnulib-tool temp files
44967         * .gitignore: Ignore files created during gnulib-tool --test.
44968
44969 2009-09-13  Jim Meyering  <meyering@redhat.com>
44970
44971         posixtm: don't reject a time that specify "60" as the number of seconds
44972         * lib/posixtm.c (posixtime): The code to reject invalid dates
44973         would also reject a time specified with the .60 suffix.
44974         But POSIX allows that, in order to accommodate leap seconds.
44975         So don't reject it.
44976         (main): Adjust tests accordingly.
44977         * modules/posixtm (Depends-on): Add stpcpy.
44978
44979 2009-09-11  Jim Meyering  <meyering@redhat.com>
44980
44981         announce-gen: include [$release_type] in emitted Subject:
44982         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44983         e.g., [stable] in the emitted Subject: line.
44984
44985 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44986
44987         Remove obsolete macros from several modules.
44988         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44989         obsolete Autoconf macros with their modern counterparts.
44990         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44991         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44992         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44993         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44994         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44995         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44996         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44997         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44998         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44999         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45000         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45001         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45002         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45003         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45004         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45005         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45006         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45007         * m4/time_r.m4 (gl_TIME_R): Likewise.
45008         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45009         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45010         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45011
45012         Fix copyright header in build-aux scripts.
45013         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45014         recommendation.
45015         * build-aux/ncftpput-ftp: Likewise.
45016         * build-aux/update-copyright: Likewise.
45017
45018 2009-09-09  Eric Blake  <ebb9@byu.net>
45019
45020         test-link: allow Linux choice of errno
45021         * tests/test-link.c (main): Relax test for alternate error.
45022
45023         strndup: fix improper m4 caching
45024         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45025         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45026         (gl_PREREQ_STRNDUP): Delete.
45027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45028         * modules/string (Makefile.am): Substitute it.
45029         * lib/string.in.h (strndup): Modernize prototype.
45030
45031         getcwd: port to mingw
45032         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45033         different from the POSIX assumptions made throughout the getcwd
45034         module; fortunately, the mingw getcwd does not need replacement.
45035         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45036         * modules/getcwd-tests: New test.
45037         * tests/test-getcwd.c: Likewise.
45038
45039         link: fix platform bugs
45040         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45041         * lib/link.c (link): Work around them.  Fix related mingw bug.
45042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45043         * modules/unistd (Makefile.am): Substitute it.
45044         * lib/unistd.in.h (link): Declare replacement.
45045         * doc/posix-functions/link.texi (link): Document this.
45046         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45047
45048         test-link: consolidate into single C program, test more cases
45049         * tests/test-link.sh: Delete.
45050         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45051         at least Cygwin and Solaris.
45052         * modules/link-tests (Files): Remove unused file.
45053         (Depends-on): Add errno, sys_stat.
45054         (Makefile.am): Simplify.
45055
45056 2009-09-08  Bruno Haible  <bruno@clisp.org>
45057
45058         Work around towlower, towupper bug on mingw.
45059         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45060         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45061         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45062         * doc/posix-functions/towupper.texi: Likewise.
45063         Reported by Eric Blake.
45064
45065 2009-09-08  Jim Meyering  <meyering@redhat.com>
45066
45067         build: don't try to run autoheader if we don't use it
45068         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45069         is not used in configure.ac.
45070
45071 2009-09-08  Eric Blake  <ebb9@byu.net>
45072
45073         euidaccess: fix compilation error
45074         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45075
45076         rawmemchr: relax license
45077         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45078         okay.
45079         Reported by Jim Meyering.
45080
45081         mkfifoat: new module
45082         * modules/mkfifoat: New file.
45083         * lib/mkfifoat.c: Likewise.
45084         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45085         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45086         * modules/sys_stat (Makefile.am): Use them.
45087         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45088         * MODULES.html.sh (File system functions): Mention module.
45089         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45090         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45091         * modules/mkfifoat-tests: New test.
45092         * tests/test-mkfifoat.c: Likewise.
45093
45094         strchrnul: relax license
45095         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45096         okay.
45097         Reported by Jim Meyering.
45098
45099 2009-09-08  Eric Blake  <ebb9@byu.net>
45100
45101         fstatat: fix compilation on Solaris
45102         * lib/fstatat.c (includes): Add fcntl.h.
45103         Reported by Pádraig Brady.
45104
45105 2009-09-07  Eric Blake  <ebb9@byu.net>
45106
45107         rename: modernize replacement
45108         * modules/rename (Depends-on): Add stdio.
45109         (configure.ac): Declare witness.
45110         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45111         stdio take care of replacement.
45112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45113         * modules/stdio (Makefile.am): Substitute them.
45114         * lib/stdio.in.h (rename): Declare replacement.
45115         * lib/rename.c (includes): Allow cross-compilation to non-windows
45116         machines.
45117         * doc/posix-functions/rename.texi (rename): Improve
45118         documentation.
45119
45120         stdio: sort witness names
45121         * modules/stdio (Makefile.am): Sort replacements.
45122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45123         * lib/stdio.in.h: Likewise.
45124
45125         getcwd: minor cleanups
45126         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45127         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45128
45129         openat: provide more convenience names
45130         * modules/faccessat (configure.ac): Add C witness.
45131         * lib/unistd.in.h (readlinkat): Fix typo.
45132         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45133         convenience wrappers.
45134         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45135         wrappers in syntax checks.
45136
45137 2009-09-06  Eric Blake  <ebb9@byu.net>
45138
45139         doc: fix comments in recent patches
45140         * lib/faccessat.c: Mention correct function.
45141         * lib/fchmodat.c: Likewise.
45142         * lib/fchownat.c: Likewise.
45143         * lib/symlinkat.c: Likewise.
45144         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45145         constants.
45146
45147         faccessat, symlinkat: continue cleanup of previous patch
45148         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45149         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45150         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45152         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45153         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45154         set.
45155
45156 2009-09-06  Bruno Haible  <bruno@clisp.org>
45157
45158         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45159         (fstatat): Declare if GNULIB_FSTATAT is set.
45160         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45161         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45162         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45163         * modules/fcntl-h (Files): Remove m4/openat.m4.
45164         * modules/sys_stat (Files): Remove m4/openat.m4.
45165         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45166         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45167         * modules/unistd (Files): Remove m4/openat.m4.
45168         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45169         GNULIB_OPENAT.
45170         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45171         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45173         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45174         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45175         gl_OPENAT_DEFAULTS.
45176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45177         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45178         Don't require gl_OPENAT_DEFAULTS.
45179         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45180         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45181         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45182         (gl_OPENAT_DEFAULTS): Remove macro.
45183
45184 2009-09-06  Bruno Haible  <bruno@clisp.org>
45185
45186         * modules/openat (configure.ac): Remove unneeded witness.
45187
45188 2009-09-06  Bruno Haible  <bruno@clisp.org>
45189
45190         Set errno to ENOSYS when a function is entirely unsupported.
45191         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45192         EOPNOTSUPP.
45193         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45194         * modules/chown (Depends-on): Remove errno.
45195
45196 2009-09-06  Bruno Haible  <bruno@clisp.org>
45197
45198         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45199
45200 2009-09-06  Bruno Haible  <bruno@clisp.org>
45201
45202         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45203
45204 2009-09-06  Ben Pfaff  <blp@gnu.org>
45205             Bruno Haible  <bruno@clisp.org>
45206
45207         Work around a glibc bug in strtok_r.
45208         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45209         Undefine if UNDEFINE_STRTOK_R is set.
45210         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45212         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45213         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45214         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45215         UNDEFINE_STRTOK_R.
45216         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45217
45218 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45219
45220         exclude: minor fix
45221         * lib/exclude.c: Include wctype.h
45222
45223 2009-09-06  Akim Demaille  <demaille@gostai.com>
45224
45225         bootstrap: improve error message
45226         * build-aux/bootstrap (find_tool): Upon failure, report the list
45227         of candidates.
45228         Honor the initial value of the envvar.
45229
45230 2009-09-05  Eric Blake  <ebb9@byu.net>
45231
45232         symlinkat: new module
45233         * modules/symlinkat: New file.
45234         * lib/symlinkat.c: Likewise.
45235         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45237         * modules/unistd (Makefile.am): Use them.
45238         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45239         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45240         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45241         * MODULES.html.sh (File system functions): Mention module.
45242         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45243         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45244         * modules/symlinkat-tests: New test.
45245         * tests/test-symlinkat.c: Likewise.
45246
45247         test-openat-safer: add more checks
45248         * tests/test-openat-safer.c (main): Check more code paths.
45249
45250 2009-09-05  Jim Meyering  <meyering@redhat.com>
45251
45252         syntax-check: detect unnecessary inclusion of openat.h
45253         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45254
45255 2009-09-05  Bruno Haible  <bruno@clisp.org>
45256
45257         Support towlower, towupper.
45258         * doc/posix-functions/towlower.texi: Mention module wctype.
45259         * doc/posix-functions/towupper.texi: Likewise.
45260         * lib/wctype.in.h (towlower, towupper): New functions.
45261         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45262         (ASSERT): New macro.
45263         (e): New variable.
45264         (main): Test also towlower, towupper. Test WEOF argument.
45265         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45266
45267 2009-09-05  Bruno Haible  <bruno@clisp.org>
45268
45269         Fix conversion behaviour when the input is invalid.
45270         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45271         mark occurring in first pass of indirect conversion.
45272         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45273         input.
45274         Found by clang's static analyzer.
45275
45276 2009-09-05  Bruno Haible  <bruno@clisp.org>
45277
45278         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45279         where direct conversion is possible.
45280
45281 2009-09-04  Eric Blake  <ebb9@byu.net>
45282
45283         openat: fail with ENOENT on empty name
45284         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45285         buffer.
45286
45287         link-follow: fix logic bug in prior patch
45288         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45289         reversed sense of yes and no in prior patch.  Avoid confusing
45290         compilation failure with desired semantics.
45291
45292         link-follow: accommodate mingw and cross-compilation
45293         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45294         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45295         cross-compilation results to -1, to make linkat easier to
45296         implement when cross-compiling.  Trivially support mingw.
45297         * modules/link-follow (configure.ac): Call new name.
45298         * NEWS: Mention this.
45299
45300 2009-09-03  Eric Blake  <ebb9@byu.net>
45301
45302         faccessat: compile replacement
45303         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45304         needed.
45305
45306         fts: fix compilation error
45307         * lib/fts.c (includes): Re-add "openat.h", for
45308         openat_needs_fchdir.
45309
45310         faccessat: new module
45311         * modules/faccessat: New file.
45312         * lib/faccessat.c: Likewise.
45313         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45315         * modules/unistd (Makefile.am): Use it.
45316         * lib/unistd.in.h (faccessat): Declare it.
45317         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45318         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45319         * MODULES.html.sh (File system functions): Mention it.
45320         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45321         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45322
45323         euidaccess: prefer POSIX over non-standard implementation
45324         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45325         * lib/euidaccess.c (euidaccess): Use it if available.
45326
45327         openat: make template easier to use
45328         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45329         AT_FUNC_F2 to be undefined.
45330         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45331         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45332         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45333         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45334         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45335         Likewise.
45336         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45337         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45338         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45339         Likewise.
45340
45341         openat: declare in POSIX headers
45342         * NEWS: Mention this.
45343         * modules/openat (configure.ac): Declare witnesses.
45344         (Depends-on): Add fcntl-h, sys_stat, unistd.
45345         (Include): Mention correct headers.
45346         * modules/fcntl-h (Depends-on): Add link-warning.
45347         (Files): Add openat.m4.
45348         (Makefile.am): Substitute witnesses.
45349         * modules/sys_stat (Files, Makefile.am): Likewise.
45350         * modules/unistd (Files, Makefile.am): Likewise.
45351         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45352         (gl_OPENAT_DEFAULTS): New macro.
45353         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45355         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45356         (SYS_STAT_H): Remove unused variable.
45357         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45358         * lib/fcntl--.h (includes): Remove unneeded header.
45359         * lib/openat-safer.c (includes): Likewise.
45360         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45361         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45362         appropriate headers.
45363         (__OPENAT_PREFIX): Delete.
45364         * lib/fcntl.in.h (openat): Provide declaration.
45365         (AT_FDCWD): Fix Solaris bug.
45366         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45367         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45368         * lib/fchmodat.c (includes):  Adjust to find declaration.
45369         * lib/fchownat.c (includes): Likewise.
45370         * lib/mkdirat.c (includes): Likewise.
45371         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45372         still visible.
45373
45374 2009-09-02  Eric Blake  <ebb9@byu.net>
45375
45376         errno: use consistently
45377         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45378         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45379         * lib/canonicalize.c (ELOOP): Likewise.
45380         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45381         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45382         * lib/lchown.c (EOPNOTSUPP): Likewise.
45383         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45384         * lib/savewd.c (ESTALE): Likewise.
45385         * lib/settime.c (ENOSYS): Likewise.
45386         * lib/utimens.c (ENOSYS): Likewise.
45387         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45388         * lib/chdir-safer.c (ELOOP): Likewise.
45389         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45390         * modules/c-stack (Depends-on): Add errno.
45391         * modules/canonicalize (Depends-on): Likewise.
45392         * modules/chdir-safer (Depends-on): Likewise.
45393         * modules/fdopendir (Depends-on): Likewise.
45394         * modules/inet_ntop (Depends-on): Likewise.
45395         * modules/inet_pton (Depends-on): Likewise.
45396         * modules/lchown (Depends-on): Likewise.
45397         * modules/openat (Depends-on): Likewise.
45398         * modules/savewd (Depends-on): Likewise.
45399         * modules/settime (Depends-on): Likewise.
45400         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45401
45402         fts: avoid leaking fds
45403         * modules/fts (Depends-on): Add cloexec.
45404         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45405         flag.
45406
45407         fts: make directory fds more robust
45408         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45409         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45410
45411         backupfile, chdir-long, fts, savedir: make safer
45412         * lib/backupfile.c (includes): Use "dirent--.h", since
45413         numbered_backup can write to stderr during readdir.
45414         * lib/savedir.c (includes): Likewise.
45415         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45416         emulation can write to stderr on failure.
45417         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45418         * lib/getcwd.c: Document why opendir_safer is unused.
45419         * lib/glob.c: Likewise.
45420         * lib/scandir.c: Likewise.
45421         * lib/openat-proc.c: Likewise, for open_safer.
45422         * modules/backupfile (Depends-on): Add dirent-safer.
45423         * modules/savedir (Depends-on): Likewise.
45424         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45425         * modules/chdir-long (Depends-on): Add openat-safer.
45426
45427         openat-safer: new module
45428         * modules/openat-safer: New file.
45429         * lib/openat-safer.c: Likewise.
45430         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45431         * lib/fcntl-safer.h (openat_safer): Declare.
45432         * lib/fcntl--.h (openat): Override.
45433         * MODULES.html.sh (File descriptor based I/O): Mention it.
45434         * lib/openat.h: Add double-inclusion guards.
45435         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45436         "fcntl--.h", so we can implement openat.
45437         * modules/openat-safer-tests: New test.
45438         * tests/test-openat-safer.c: New file.
45439
45440         dirent-safer: new module
45441         * modules/dirent-safer: New file.
45442         * lib/dirent--.h: Likewise.
45443         * lib/dirent-safer.h: Likewise.
45444         * lib/opendir-safer.c: Likewise.
45445         * m4/dirent-safer.m4: Likewise.
45446         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45447         * modules/dirent-safer-tests: New test.
45448         * tests/test-dirent-safer.c: New file.
45449         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45450
45451         fdopendir: optimize on mingw
45452         * lib/unistd.in.h (_gl_directory_name): New prototype.
45453         * lib/fchdir.c (_gl_directory_name): Implement it.
45454         (fchdir): Use it to simplify implementation.
45455         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45456         fchdir, when available, to avoid calling [f]chdir().
45457
45458         fdopendir: split into its own module
45459         * lib/openat.c (fdopendir): Move...
45460         * lib/fdopendir.c: ...into new file.
45461         * modules/fdopendir: New module.
45462         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45463         * modules/openat (Depends-on): Add fdopendir.
45464         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45465         fdopendir here.
45466         * modules/savedir (Depends-on): Only need fdopendir, not full
45467         openat.
45468         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45469         * lib/openat.h (fdopendir): Drop prototype.
45470         * lib/dirent.in.h (fdopendir): Provide prototype.
45471         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45472         * modules/dirent (Makefile.am): Substitute them.
45473         * MODULES.html.sh (File system functions): Mention it.
45474         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45475         * modules/fdopendir-tests: New file.
45476         * tests/test-fdopendir.c: Likewise.
45477
45478         fchdir: use more consistent macro convention
45479         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45480         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45481         REPLACE_FCHDIR, rather than relying on config.h macros.
45482         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45483         inside a single make-time REPLACE_FCHDIR block, rather than using
45484         the config.h FCHDIR_REPLACEMENT.
45485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45486         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45487         Manage fstat replacement.
45488         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45489         REPLACE_FCHDIR.
45490         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45491         (Makefile.am): Substitute REPLACE_FCHDIR.
45492         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45493         FCHDIR_REPLACEMENT.
45494         * lib/dup-safer.c (dup_safer): Likewise.
45495         * lib/dup2.c (rpl_dup2): Likewise.
45496         * lib/dup3.c (rpl_dup3): Likewise.
45497         * lib/open.c (rpl_open): Likewise.
45498
45499         fchdir: simplify error handling, and support dup3
45500         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45501         stdbool, malloc-posix, realloc-posix.
45502         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45503         (ensure_dirs_slot): Return false on allocation failure.
45504         (rpl_dup2): Delete.
45505         (_gl_register_dup): New function.
45506         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45507         (_gl_register_fd): Close fd on allocation failure.
45508         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45509         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45510         prototype.
45511         (rpl_dup2_fchdir): Delete prototype.
45512         * lib/open.c (open): Update caller.
45513         * lib/dup2.c (dup2): Track fchdir metadata.
45514         * lib/dup3.c (dup3): Likewise.
45515         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45516         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45517
45518 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45519
45520         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45521         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45522         don't pass arguments to AC_OUTPUT.
45523
45524 2009-09-02  Bruno Haible  <bruno@clisp.org>
45525
45526         * modules/mkdtemp (License): Relicense under LGPLv2+.
45527         Reported by Paolo Bonzini.
45528
45529 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45530
45531         Replace uses of obsolete autoconf macros in Jim's modules.
45532         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45533         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45534         can evoke a warning from autoconf when run with -Wobsolete
45535         enabled.  They were declared obsolete for good reasons (see
45536         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45537         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45538         should not continue using the deprecated macros.
45539         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45540         obsolete Autoconf macros with modern counterparts.
45541         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45542         * m4/dos.m4 (gl_AC_DOS): Likewise.
45543         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45544         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45545         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45546         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45547         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45548         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45549         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45550         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45551         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45552         Likewise.
45553         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45554         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45555         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45556         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45557         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45558         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45559
45560 2009-09-01  Eric Blake  <ebb9@byu.net>
45561
45562         fchdir: fix off-by-one bug in previous patch
45563         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45564         (_gl_unregister_fd): Delete useless if.
45565
45566 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45567
45568         maint.mk: sort the list of syntax-check rules
45569         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45570         easier to get a sense of progress when the rules are run sequentially
45571         and take a long time.
45572
45573 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45574
45575         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45576         * modules/netinet_in: Likewise.
45577         * modules/sys_file: Likewise.
45578         * modules/sys_ioctl: Likewise.
45579         * modules/sys_select: Likewise.
45580         * modules/sys_socket: Likewise.
45581         * modules/sys_stat: Likewise.
45582         * modules/sys_time: Likewise.
45583         * modules/sys_times: Likewise.
45584         * modules/sys_utsname: Likewise.
45585         * modules/sys_wait: Likewise.
45586
45587 2009-09-01  Jim Meyering  <meyering@redhat.com>
45588
45589         fts: help ensure that return values are not ignored
45590         * lib/fts_.h (__GNUC_PREREQ): Define.
45591         (__attribute_warn_unused_result__): Define.
45592         (fts_children, fts_close, fts_open, fts_read): Declare with
45593         __attribute_warn_unused_result__.
45594
45595         fts: fts_close now fails also when closing a dir file descriptor fails
45596         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45597         and propagate to caller, along with errno.
45598
45599         announce-gen: correct formatting in --help output
45600         * build-aux/announce-gen (usage): Move the one-line description in
45601         --help output "up", to where it belongs, just after Usage:.
45602
45603 2009-08-31  Eric Blake  <ebb9@byu.net>
45604
45605         fchdir: port to mingw
45606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45607         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45608         opened, then use a substitute.
45609         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45610         replacement.
45611         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45612         (_gl_register_fd): No need to check stat if open already filters
45613         all directories.
45614         (fchdir): Fix error condition to match POSIX.
45615         * modules/fchdir (Depends-on): Add sys_stat.
45616         * doc/posix-functions/open.texi (open): Document the limitation.
45617         * modules/fchdir-tests: New file.
45618         * tests/test-fchdir.c: Likewise.
45619
45620         canonicalize: allow cross-testing from cygwin to mingw
45621         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45622         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45623         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45624         Likewise.
45625         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45626         target does not support symlinks.
45627         * tests/test-canonicalize-lgpl.sh: Likewise.
45628
45629         chown: avoid compilation warning on mingw
45630         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45631         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45632         mingw.
45633         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45634         * modules/chown (Depends-on): Add errno.
45635
45636 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45637
45638         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45639         command.
45640
45641 2009-08-31  Jim Meyering  <meyering@redhat.com>
45642
45643         canonicalize: remove useless initialization
45644         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45645         initialization of local, "end".
45646
45647 2009-08-30  Bruno Haible  <bruno@clisp.org>
45648
45649         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45650         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45651         ENOSYS.
45652
45653 2009-08-30  Bruno Haible  <bruno@clisp.org>
45654
45655         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45656         /usr/xpg4/bin/tr when it exists.
45657         * tests/test-pipe-filter-gi1.sh: Likewise.
45658
45659 2009-08-30  Bruno Haible  <bruno@clisp.org>
45660
45661         Work around deficient /usr/bin/id program on Solaris.
45662         * tests/test-file-has-acl.sh (ID): New variable.
45663         * tests/test-set-mode-acl.sh (ID): Likewise.
45664         * tests/test-copy-acl.sh (ID): Likewise.
45665         * tests/test-copy-file.sh (ID): Likewise.
45666
45667 2009-08-30  Bruno Haible  <bruno@clisp.org>
45668
45669         New module 'xstriconveh'.
45670         * lib/xstriconveh.h: New file.
45671         * lib/xstriconveh.c: New file.
45672         * modules/xstriconveh: New file.
45673
45674 2009-08-30  Bruno Haible  <bruno@clisp.org>
45675
45676         Make it easier to use mem_cd_iconveh.
45677         * lib/striconveh.h (iconveh_t): New type.
45678         (iconveh_open, iconveh_close): New declarations.
45679         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45680         with a single 'const iconveh_t *' argument.
45681         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45682         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45683         with a single 'const iconveh_t *' argument.
45684         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45685         * tests/test-striconveh.c (main): Update.
45686         * NEWS: Mention the change.
45687
45688 2009-08-30  Bruno Haible  <bruno@clisp.org>
45689
45690         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45691         problem.
45692
45693 2009-08-30  Bruno Haible  <bruno@clisp.org>
45694
45695         Work around iconv_open problem on Solaris.
45696         * lib/iconv_open-solaris.gperf: New file.
45697         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45698         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45699         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45700         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45701         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45702         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45703
45704 2009-08-29  Jim Meyering  <meyering@redhat.com>
45705
45706         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45707         * top/maint.mk (cvs-check): Remove target; it was just an alias
45708         to the better-named vc-diff-check.
45709         (maintainer-distcheck): Remove rule.  It was used only from
45710         the (alpha/beta/major) target, and all of its commands but one
45711         were coreutils-specific.
45712         (vc-dist): Remove rule.
45713         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45714         Run vc-diff-check, not vc-dist.
45715         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45716
45717 2009-08-27  Bruno Haible  <bruno@clisp.org>
45718
45719         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45720         of 0.
45721
45722 2009-08-27  Bruno Haible  <bruno@clisp.org>
45723
45724         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45725         compilers.
45726         * doc/func.texi: Document the SunPRO C bug.
45727
45728 2009-08-27  Bruno Haible  <bruno@clisp.org>
45729
45730         Fix link error on Solaris.
45731         * tests/test-parse-duration.c (xstrdup): Remove function.
45732
45733 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45734
45735         ignore-value: handle pointer types, too
45736         * lib/ignore-value.h (__attribute__): Remove definition.
45737         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45738         of a more concise and more-often effective "(void) i" statement.
45739         (ignore_ptr): New function to suppress warnings from functions that
45740         return pointers, and to make it explicit that one function doesn't
45741         handle all cases.
45742
45743 2009-08-25  Bruno Haible  <bruno@clisp.org>
45744
45745         dup2: work around a Linux bug.
45746         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45747         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45748         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45749         Reported by Simon Josefsson.
45750
45751 2009-08-25  Jim Meyering  <meyering@redhat.com>
45752
45753         libguestfs uses gnulib
45754         * users.txt: Add libguestfs.
45755
45756 2009-08-24  Eric Blake  <ebb9@byu.net>
45757
45758         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45759         * lib/pipe2.c (includes): Add binary-io.h.
45760         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45761
45762 2009-08-24  Bruno Haible  <bruno@clisp.org>
45763
45764         Tolerate declared but missing accept4 syscall.
45765         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45766         available.
45767         * lib/sys_socket.in.h (accept4): If the function is already present,
45768         override it.
45769         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45770         * modules/accept4 (Makefile.am): Compile accept4.c always.
45771         Reported by Paolo Bonzini and Eric Blake.
45772
45773 2009-08-23  Bruno Haible  <bruno@clisp.org>
45774
45775         New module 'accept4'.
45776         * lib/sys_socket.in.h (accept4): New declaration.
45777         * lib/accept4.c: New file.
45778         * m4/accept4.m4: New file.
45779         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45780         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45781         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45782         HAVE_ACCEPT4.
45783         * modules/accept4: New file.
45784         * doc/glibc-functions/accept4.texi: Mention the new module.
45785
45786 2009-08-24  Jim Meyering  <meyering@redhat.com>
45787
45788         progname: also set global program_invocation_name, when possible
45789         Before this change, a libtool-enabled program that calls glibc's
45790         error function would report the program name as
45791         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45792         * modules/progname (configure.ac): Check for a declaration of
45793         program_invocation_name.
45794         * lib/progname.c:  Include <errno.h>.
45795         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45796         Set program_invocation_name.
45797
45798 2009-08-23  Bruno Haible  <bruno@clisp.org>
45799
45800         * lib/dup3.c: Include <string.h>.
45801
45802 2009-08-23  Bruno Haible  <bruno@clisp.org>
45803
45804         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45805         * lib/pipe2.c (pipe2): Likewise.
45806         Suggested by Eric Blake.
45807
45808 2009-08-23  Bruno Haible  <bruno@clisp.org>
45809
45810         Tolerate declared but missing dup3 syscall.
45811         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45812         * lib/unistd.in.h (dup3): If the function is already present,
45813         override it.
45814         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45815         * modules/dup3 (Makefile.am): Compile dup3.c always.
45816         Reported by Paolo Bonzini.
45817
45818 2009-08-23  Bruno Haible  <bruno@clisp.org>
45819
45820         Tolerate declared but missing pipe2 syscall.
45821         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45822         available.
45823         * lib/unistd.in.h (pipe2): If the function is already present,
45824         override it.
45825         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45826         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45827         Reported by Paolo Bonzini.
45828
45829 2009-08-23  Bruno Haible  <bruno@clisp.org>
45830
45831         * lib/pipe2.c (pipe2): Move #ifs inside function.
45832
45833 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45834
45835         quotearg: document limitations of quote_these_too
45836         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45837         those limitations are created.
45838         * lib/quotearg.h (set_char_quoting): Document that digits and
45839         letters that are special after backslash are not permitted.
45840         (quotearg_char): Cross-reference set_char_quoting documentation.
45841
45842 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45843
45844         quotearg: implement custom_quoting_style
45845         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45846         right_quote fields.
45847         (set_custom_quoting): New public function.
45848         (quotearg_buffer_restyled): Add left_quote and right_quote
45849         arguments, handle them very much like locale quoting, and update
45850         all uses.
45851         (quotearg_n_custom): New public function.
45852         (quotearg_n_custom_mem): New public function.
45853         (quotearg_custom): New public function.
45854         (quotearg_custom_mem): New public function.
45855         * lib/quotearg.h: Prototype and document new public functions.
45856         (enum quoting_style): For escape_quoting_style and
45857         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45858         ignored even though they're otherwise like c_quoting_style.
45859         Add custom_quoting_style member and document with comparison to
45860         clocale_quoting_style.
45861         * tests/test-quotearg.c (custom_quotes): New array.
45862         (custom_results): New array.
45863         (main): Extend to test custom quoting.
45864
45865 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45866
45867         quotearg: fix right quote escaping when it's in quote_these_too
45868         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45869         quote, be sure to prepend only one backslash.
45870         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45871         (main): Test it.
45872
45873 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45874
45875         quotearg-tests: test escaping of embedded locale quotes
45876         * tests/test-quotearg.c (struct result_strings): Add member for
45877         new input.
45878         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45879         (inputs): Add new input.
45880         (results_g): Add expected results.
45881         (flag_results): Likewise.
45882         (locale_results): Likewise.
45883         (compare_strings): Check those.
45884
45885 2009-08-23  Bruno Haible  <bruno@clisp.org>
45886
45887         Tests for module 'dup3'.
45888         * modules/dup3-tests: New file.
45889         * tests/test-dup3.c: New file.
45890
45891         New module 'dup3'.
45892         * lib/unistd.in.h (dup3): New declaration.
45893         * lib/dup3.c: New file.
45894         * m4/dup3.m4: New file.
45895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45896         HAVE_DUP3.
45897         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45898         * modules/dup3: New file.
45899         * doc/glibc-functions/dup3.texi: Mention the new module.
45900
45901 2009-08-23  Bruno Haible  <bruno@clisp.org>
45902
45903         Tweak the dup2 test.
45904         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45905         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45906         the test file is still empty. Fix argument order of lseek.
45907
45908 2009-08-23  Bruno Haible  <bruno@clisp.org>
45909
45910         Avoid test link errors when the modules getopt-gnu, gettext are used.
45911         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45913
45914 2009-08-23  Bruno Haible  <bruno@clisp.org>
45915
45916         Fix getdtablesize() on mingw.
45917         * lib/getdtablesize.c (getdtablesize): Implement differently.
45918         * lib/unistd.in.h (getdtablesize): Improve comment.
45919
45920 2009-08-23  Bruno Haible  <bruno@clisp.org>
45921
45922         New module 'mkostemp'.
45923         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45924         * lib/stdlib.in.h (mksotemp): New declaration.
45925         * lib/mkostemp.c: New file, from glibc with modifications.
45926         * lib/tempname.h (GT_FILE): Remove outdated comment.
45927         (gen_tempname): Add flags argument.
45928         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45929         (__GT_FILE): Map to 1.
45930         (small_open, large_open): Remove macros.
45931         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45932         * lib/mkstemp.c (mkstemp): Update.
45933         * lib/mkdtemp.c (mkdtemp): Likewise.
45934         * m4/mkostemp.m4: New file.
45935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45936         HAVE_MKOSTEMP.
45937         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45938         HAVE_MKOSTEMP.
45939         * modules/mkostemp: New file, based on modules/mkstemp.
45940         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45941         * NEWS: Mention the change.
45942
45943 2009-08-23  Bruno Haible  <bruno@clisp.org>
45944
45945         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45946         Reported by Eric Blake.
45947
45948 2009-08-23  Bruno Haible  <bruno@clisp.org>
45949
45950         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45951         Reported by Eric Blake.
45952
45953 2009-08-23  Bruno Haible  <bruno@clisp.org>
45954
45955         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45956         * modules/pipe2 (Depends-on): Likewise.
45957
45958 2009-08-23  Eric Blake  <ebb9@byu.net>
45959
45960         fcntl-h: add O_TTY_INIT support
45961         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45962         * tests/test-fcntl-h.c (o): Test it.
45963         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45964
45965         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45966         * modules/fcntl: Move <fcntl.h> header replacement...
45967         * modules/fcntl-h: ...to new name, so as not to collide with
45968         like-named function.
45969         * tests/test-fcntl.c: Rename...
45970         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45971         * modules/fcntl-tests: Rename...
45972         * modules/fcntl-h-tests: ...to this.  Update test file name.
45973         * modules/chdir-long (Depends-on): Update clients.
45974         * modules/chdir-safer (Depends-on): Likewise.
45975         * modules/fcntl-safer (Depends-on): Likewise.
45976         * modules/fts (Depends-on): Likewise.
45977         * modules/mkancesdirs (Depends-on): Likewise.
45978         * modules/mkdir-p (Depends-on): Likewise.
45979         * modules/open (Depends-on): Likewise.
45980         * modules/savewd (Depends-on): Likewise.
45981         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45982         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45983
45984 2009-08-22  Bruno Haible  <bruno@clisp.org>
45985
45986         * modules/binary-io (License): Relicense under LGPL.
45987         * modules/pipe2 (License): Likewise.
45988
45989 2009-08-22  Bruno Haible  <bruno@clisp.org>
45990
45991         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45992         return value.
45993         * lib/pipe-filter-gi.c (filter_init): Likewise.
45994         Reported by Eric Blake.
45995
45996 2009-08-22  Bruno Haible  <bruno@clisp.org>
45997
45998         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45999         * modules/pipe (Depends-on): Add pipe2.
46000
46001 2009-08-22  Bruno Haible  <bruno@clisp.org>
46002
46003         Tests for module 'pipe2'.
46004         * modules/pipe2-tests: New file.
46005         * tests/test-pipe2.c: New file.
46006
46007         New module 'pipe2'.
46008         * lib/unistd.in.h (pipe2): New declaration.
46009         * lib/pipe2.c: New file.
46010         * m4/pipe2.m4: New file.
46011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46012         HAVE_PIPE2.
46013         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46014         * modules/pipe2: New file.
46015         * doc/glibc-functions/pipe2.texi: Mention the new module.
46016
46017 2009-08-22  Bruno Haible  <bruno@clisp.org>
46018
46019         Reference some new glibc functions.
46020         * doc/glibc-functions/accept4.texi: New file.
46021         * doc/glibc-functions/dup3.texi: New file.
46022         * doc/glibc-functions/mkostemp.texi: New file.
46023         * doc/glibc-functions/pipe2.texi: New file.
46024         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46025         (Glibc sys/socket.h): Refer to accept4.
46026         (Glibc unistd.h): Refer to dup3, pipe2.
46027         Reported by Eric Blake.
46028
46029 2009-08-22  Jim Meyering  <meyering@redhat.com>
46030             Bruno Haible  <bruno@clisp.org>
46031
46032         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46033         This makes it so packages using automake-1.11's silent-rules option
46034         can print e.g., a single "GEN    configmake.h" line, rather than
46035         the 30+ statements that perform the job.  If you want to see the
46036         actual commands, you can still run "make V=1".
46037         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46038         so that make output is abbreviated when those variables are defined
46039         appropriately.
46040         * modules/argz: Likewise.
46041         * modules/arpa_inet: Likewise.
46042         * modules/byteswap: Likewise.
46043         * modules/configmake: Likewise.
46044         * modules/dirent: Likewise.
46045         * modules/errno: Likewise.
46046         * modules/fcntl: Likewise.
46047         * modules/float: Likewise.
46048         * modules/fnmatch: Likewise.
46049         * modules/getopt-posix: Likewise.
46050         * modules/glob: Likewise.
46051         * modules/iconv_open: Likewise.
46052         * modules/inttypes: Likewise.
46053         * modules/localcharset: Likewise.
46054         * modules/locale: Likewise.
46055         * modules/math: Likewise.
46056         * modules/netdb: Likewise.
46057         * modules/netinet_in: Likewise.
46058         * modules/poll: Likewise.
46059         * modules/posix_spawnp-tests: Likewise.
46060         * modules/sched: Likewise.
46061         * modules/search: Likewise.
46062         * modules/selinux-h: Likewise.
46063         * modules/signal: Likewise.
46064         * modules/spawn: Likewise.
46065         * modules/stdarg: Likewise.
46066         * modules/stdbool: Likewise.
46067         * modules/stddef: Likewise.
46068         * modules/stdint: Likewise.
46069         * modules/stdio: Likewise.
46070         * modules/stdlib: Likewise.
46071         * modules/string: Likewise.
46072         * modules/strings: Likewise.
46073         * modules/sys_file: Likewise.
46074         * modules/sys_ioctl: Likewise.
46075         * modules/sys_select: Likewise.
46076         * modules/sys_socket: Likewise.
46077         * modules/sys_stat: Likewise.
46078         * modules/sys_time: Likewise.
46079         * modules/sys_times: Likewise.
46080         * modules/sys_utsname: Likewise.
46081         * modules/sys_wait: Likewise.
46082         * modules/sysexits: Likewise.
46083         * modules/time: Likewise.
46084         * modules/unistd: Likewise.
46085         * modules/wchar: Likewise.
46086         * modules/wctype: Likewise.
46087
46088 2009-08-22  Jim Meyering  <meyering@redhat.com>
46089
46090         announce-gen: detect write failure
46091         * build-aux/announce-gen: Add Coda at end.
46092         Remove equivalent-but-more-verbose block at top.
46093
46094 2009-08-19  Akim Demaille  <demaille@gostai.com>
46095
46096         bootstrap: --help to stdout.
46097         * bootstrap (usage): Don't send --help to stderr.
46098         Use a here doc instead of a long string.
46099
46100 2009-08-21  Eric Blake  <ebb9@byu.net>
46101
46102         test-popen-safer: split from test-popen
46103         * tests/test-popen.c (main): Move...
46104         * tests/test-popen.h: ...into new file.
46105         * tests/test-popen-safer2.c: New file.
46106         * modules/popen-tests (Files): Add test-popen.h.
46107         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46108         Suggested by Bruno Haible.
46109
46110         test-fcntl-safer: split from test-open
46111         * tests/test-open.c (main): Move...
46112         * tests/test-open.h: ...into new file.
46113         * tests/test-fcntl-safer.c: New file.
46114         * modules/open-tests (Files): Add test-open.h.
46115         * modules/fcntl-safer-tests: New file.
46116         Suggested by Bruno Haible.
46117
46118         test-fopen-safer: split from test-fopen
46119         * tests/test-fopen.c (main): Move...
46120         * tests/test-fopen.h: ...into new file.
46121         * tests/test-fopen-safer.c: New file.
46122         * modules/fopen-tests (Files): Add test-fopen.h.
46123         * modules/fopen-safer-tests: New file.
46124         Suggested by Bruno Haible.
46125
46126 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46127
46128         popen-safer: test O_CLOEXEC at run-time.
46129         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46130
46131 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46132
46133         fcntl: move more flags to the header
46134         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46135         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46136         * lib/fcntl.in.h: Do both things here.
46137
46138 2009-08-21  Jim Meyering  <meyering@redhat.com>
46139
46140         consistently remove $@-t before redirecting to it
46141         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46142         * modules/alloca-opt: Likewise.
46143         * modules/byteswap: Likewise.
46144         * modules/fnmatch: Likewise.
46145         * modules/getopt-posix: Likewise.
46146         * modules/glob: Likewise.
46147         * modules/poll: Likewise.
46148         * modules/posix_spawnp-tests: Likewise.
46149         * modules/sys_socket: Likewise.
46150         * modules/sysexits: Likewise.
46151
46152 2009-08-21  Eric Blake  <ebb9@byu.net>
46153
46154         popen: simplify access to original popen
46155         * lib/popen.c (rpl_popen): No need to worry about popen being a
46156         macro.
46157         Reported by Bruno Haible.
46158
46159 2009-08-20  Eric Blake  <ebb9@byu.net>
46160
46161         build: avoid some compiler warnings
46162         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46163         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46164         type.
46165         (new_exclude_segment, excluded_file_pattern_p)
46166         (excluded_file_name_p): Reduce scope.
46167         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46168         old-style declaration.
46169
46170 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46171
46172         * tests/test-exclude1.sh: Handle Windows EOL.
46173         * tests/test-exclude2.sh: Likewise.
46174         * tests/test-exclude3.sh: Likewise.
46175         * tests/test-exclude4.sh: Likewise.
46176         * tests/test-exclude5.sh: Likewise.
46177         * tests/test-exclude6.sh: Likewise.
46178         * tests/test-exclude7.sh: Likewise.
46179
46180 2009-08-19  Akim Demaille  <demaille@gostai.com>
46181
46182         bootstrap: find sha1sum when named gsha1sum.
46183         * bootstrap (find_tool): New.
46184         ($SHA1SUM): New.
46185         Use it.
46186
46187 2009-08-20  Jim Meyering  <meyering@redhat.com>
46188
46189         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46190         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46191         expression that converts "." in a file name to "\." in the resulting
46192         regexp.  Start with a dummy statement, so that prior shell variable
46193         definitions are expanded portably.  Reported by Simon Josefsson.
46194
46195 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46196
46197         Fix polling for writeability of a screen buffer.
46198         * lib/poll.c: Distinguish input and screen buffers for the
46199         Win32 implementation.
46200         * lib/select.c: Likewise.
46201
46202 2009-08-19  Eric Blake  <ebb9@byu.net>
46203
46204         popen-safer: prevent popen from clobbering std descriptors
46205         * modules/popen-safer: New file.
46206         * lib/popen-safer.c: Likewise.
46207         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46208         * lib/stdio--.h (popen): Provide override.
46209         * lib/stdio-safer.h (popen_safer): Provide declaration.
46210         * tests/test-popen.c (includes): Partially test this.
46211         * modules/popen-safer-tests: New file, for more tests.
46212         * tests/test-popen-safer.c: Likewise.
46213         * MODULES.html.sh (file stream based Input/Output): Mention it.
46214
46215         tests: test some of the *-safer modules
46216         * modules/fopen-safer (Depends-on): Add fopen.
46217         * modules/fcntl-safer (Depends-on): Add fcntl.
46218         * modules/stdlib-safer (Depends-on): Add stdlib.
46219         (configure.ac): Set indicator.
46220         * modules/unistd-safer (configure.ac): Likewise.
46221         * modules/tmpfile-safer (configure.ac): Likewise.
46222         (Depends-on): Add tmpfile.
46223         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46224         active.
46225         * tests/test-fopen.c (includes): Test safer versions when they are
46226         in use.
46227         * tests/test-open.c (includes): Likewise.
46228
46229         popen: fix cygwin 1.5 bug when stdin closed
46230         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46231         * modules/popen: New file.
46232         * modules/popen-tests: Likewise.
46233         * tests/test-popen.c: Likewise.
46234         * m4/popen.m4: Likewise.
46235         * lib/popen.c: Likewise.
46236         * lib/stdio.in.h (popen): New declaration.
46237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46238         * modules/stdio (Makefile.am): Likewise.
46239         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46240
46241 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46242
46243         maint.mk: give full control over update-copyright exclusions
46244         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46245         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46246         (update-copyright): Don't force inclusion of top-level
46247         ChangeLog.  Don't force exclusion of all COPYING files, but make
46248         them the default exclusion instead.
46249
46250 2009-08-16  Bruno Haible  <bruno@clisp.org>
46251
46252         Fix test failures on Solaris 10.
46253         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46254         tests when Solaris iconv() is used.
46255         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46256         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46257         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46258         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46259         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46260
46261 2009-08-16  Bruno Haible  <bruno@clisp.org>
46262
46263         Fix test failures on Solaris 10.
46264         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46265         'tr' program and pass it as first argument.
46266         * tests/test-pipe-filter-gi1.sh: Likewise.
46267         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46268         program as first argument.
46269         * tests/test-pipe-filter-gi1.c (main): Likewise.
46270
46271 2009-08-16  Eric Blake  <ebb9@byu.net>
46272
46273         fpurge: fix previous commits
46274         * modules/fpurge (Makefile.am): Make replacement conditional,
46275         partially reverting 2007-04-29 change; missed in previous
46276         attempt.
46277         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46278         is missing.
46279
46280 2009-08-16  Bruno Haible  <bruno@clisp.org>
46281
46282         Clarify fpurge's effect on the file position.
46283         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46284         * tests/test-fpurge.c (main): Make a second pass for checking the file
46285         position.
46286
46287 2009-08-16  Bruno Haible  <bruno@clisp.org>
46288
46289         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46290         declaration of fpurge is missing.
46291         * tests/test-fpurge.c (main): Check that the file has not more contents
46292         than expected. Close the file before removing it.
46293
46294 2009-08-15  Eric Blake  <ebb9@byu.net>
46295
46296         fpurge: don't wrap working cygwin implementation
46297         * lib/fpurge.c (fpurge): Fix comment typo.
46298         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46299         1.7 to avoid replacement.
46300         * tests/test-fpurge.c (main): Enhance test.
46301
46302 2009-08-15  Eric Blake  <ebb9@byu.net>
46303         and Jim Meyering  <meyering@redhat.com>
46304
46305         test-update-copyright: skip if perl is insufficient
46306         * tests/test-update-copyright.sh: Failure to run maintainer tool
46307         should not cause testsuite failure on cygwin 1.5.
46308
46309 2009-08-14  Eric Blake  <ebb9@byu.net>
46310
46311         doc: mention more functions added in cygwin 1.7.0
46312         * doc/posix-headers/limits.texi (limits.h): Update for recent
46313         cygwin additions.
46314         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46315         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46316         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46317         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46318         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46319
46320 2009-08-14  Eric Blake  <ebb9@byu.net>
46321
46322         maint.mk: simplify update-copyright rule
46323         * top/maint.mk (update-copyright-local): Delete, and document how
46324         to do it in cfg.mk instead.
46325         (update-copyright-exclude-regexp): Delete, and document how to do
46326         it in .x-update-copyright instead.
46327         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46328         exclude ChangeLog.
46329
46330 2009-08-14  Bruno Haible  <bruno@clisp.org>
46331
46332         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46333
46334 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46335
46336         maint.mk: support update-copyright-env
46337         * top/maint.mk (update-copyright-env): Define place-holder.
46338         (update-copyright): Expand $(update-copyright-env) before
46339         invoking update-copyright.
46340
46341 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46342
46343         update-copyright: implement forced reformatting
46344         * build-aux/update-copyright: Implement and document
46345         UPDATE_COPYRIGHT_FORCE.
46346         * tests/test-update-copyright.sh: Test it.
46347
46348 2009-08-14  Eric Blake  <ebb9@byu.net>
46349         and Bruno Haible  <bruno@clisp.org>
46350
46351         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46352         * tests/test-locale.c: Revert previous patch related to NULL.
46353         * tests/test-stdio.c: Likewise.
46354         * tests/test-stdlib.c: Likewise.
46355         * tests/test-string.c: Likewise.
46356         * tests/test-unistd.c: Likewise.
46357         * modules/time-tests (Depends-on): Add verify.
46358         * modules/wchar-tests (Depends-on): Likewise.
46359         * tests/test-time.c: Test for NULL compliance.
46360         * tests/test-wchar.c: Likewise.
46361         * modules/locale (Depends-on): Add stddef.
46362         * modules/stdio (Depends-on): Likewise.
46363         * modules/stdlib (Depends-on): Likewise.
46364         * modules/string (Depends-on): Likewise.
46365         * modules/time (Depends-on): Likewise.
46366         * modules/unistd (Depends-on): Likewise.
46367         * modules/wchar (Depends-on): Likewise.
46368         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46369         * lib/stdlib.in.h (includes): Likewise.
46370         * lib/string.in.h (includes): Likewise.
46371         * lib/time.in.h (includes): Likewise.
46372         * lib/unistd.in.h (includes): Likewise.
46373         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46374         replaced.
46375         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46376         * m4/stddef_h.m4: New file.
46377         * modules/stddef: Likewise.
46378         * lib/stddef.in.h: Likewise.
46379         * modules/stddef-tests: Likewise.
46380         * tests/test-stddef.c: Likewise.
46381         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46382         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46383         * doc/posix-headers/locale.texi (locale.h): Likewise.
46384         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46385         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46386         * doc/posix-headers/string.texi (string.h): Likewise.
46387         * doc/posix-headers/time.texi (time.h): Likewise.
46388         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46389         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46390
46391 2009-08-14  Eric Blake  <ebb9@byu.net>
46392
46393         doc: improve git diff of texinfo files
46394         * .gitattributes: Add rule for *.texi files, with hint on how to
46395         use it.
46396         Copied from m4, and based on a report by Bruno Haible.
46397
46398 2009-08-14  Bruno Haible  <bruno@clisp.org>
46399
46400         Disable multithread support by default on Cygwin 1.5.x for real.
46401         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46402
46403 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46404
46405         update-copyright: much ado about intervals
46406         * build-aux/update-copyright: Implement and document
46407         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46408         of copyright year intervals.
46409         Also, document UPDATE_COPYRIGHT_YEAR.
46410         * tests/test-update-copyright.sh: Test it.
46411
46412         update-copyright: convert 2-digit to 4-digit years
46413         * build-aux/update-copyright: Implement and document.
46414         * tests/test-update-copyright.sh: Update.
46415
46416 2009-08-14  Jim Meyering  <meyering@redhat.com>
46417
46418         test-exclude: avoid coreutils "make check" failure
46419         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46420         just as in test-argmatch.c.
46421
46422 2009-08-13  Eric Blake  <ebb9@byu.net>
46423
46424         test-dup2: fix bad assumption
46425         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46426         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46427
46428         test-version-etc: fix CRLF portability issue
46429         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46430         recognize \r.
46431         * tests/test-argp-version-etc-1.sh: Likewise.
46432
46433         getopt: update client modules
46434         * modules/argp (Depends-on): Use getopt-gnu.
46435         * modules/git-merge-changelog (Depends-on): Likewise.
46436         * modules/long-options (Depends-on): Likewise.
46437         * modules/xstrtol (Depends-on): Likewise.
46438
46439 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46440
46441         * tests/test-version-etc.sh: Don't fail on different
46442         project/version.  Don't fail on CRLF differences.  Rewrite to use
46443         multiple -e instead of multiple sed forks, suggested by Eric Blake
46444         <ebb9@byu.net>.
46445         * tests/test-argp-version-etc-1.sh: Likewise.
46446
46447 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46448
46449         * tests/test-version-etc.sh: Don't fail on different
46450         project/version.
46451
46452 2009-08-12  Bruno Haible  <bruno@clisp.org>
46453
46454         Tests for modules 'getopt-posix', 'getopt-gnu'.
46455         * modules/getopt-posix-tests: New file.
46456         * tests/test-getopt.c: New file.
46457         * tests/test-getopt.h: New file.
46458         * tests/test-getopt_long.h: New file.
46459
46460         New modules 'getopt-posix', 'getopt-gnu'.
46461         * modules/getopt-gnu: New file, renamed from modules/getopt.
46462         * modules/getopt-posix: New file.
46463         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46464         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46465         (gl_GETOPT): Remove macro.
46466         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46467         Disable the test against BSD systems that declare optreset. Test
46468         against mingw bug. Test against lack of support of optional arguments
46469         on many platforms.
46470         * doc/glibc-headers/getopt.texi: Update module name and list of
46471         relevant platforms.
46472         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46473         'getopt-gnu' and more portability problems.
46474         * NEWS: Mention the changes.
46475
46476 2009-08-12  Bruno Haible  <bruno@clisp.org>
46477
46478         Ensure that optarg etc. get declared by <unistd.h>.
46479         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46480         AC_USE_SYSTEM_EXTENSIONS.
46481         * modules/getopt (Depends-on): Add 'extensions'.
46482
46483 2009-08-12  Bruno Haible  <bruno@clisp.org>
46484
46485         Avoid test link errors.
46486         * modules/pipe-filter-ii-tests (Makefile.am): Define
46487         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46488         * modules/pipe-filter-gi-tests (Makefile.am): Define
46489         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46491
46492 2009-08-12  Bruno Haible  <bruno@clisp.org>
46493
46494         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46495         gl_GETOPT_SUBSTITUTE before.
46496         (gl_GETOPT): Use it.
46497         * m4/argp.m4 (gl_ARGP): Update.
46498         Reported by Sergey Poznyakoff.
46499
46500         * m4/getopt.m4: Reorder macros.
46501         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46502         (gl_GETOPT_SUBSTITUTE): Remove macro.
46503
46504 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46505
46506         Minor improvement in gitlog-to-changelog
46507
46508         * build-aux/gitlog-to-changelog: New option `--format' makes
46509         output format string configurable.
46510
46511 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46512
46513         Optimize exclude: use hash tables for non-wildcard patterns.
46514
46515         * lib/exclude.c: Include hash.h and mbuiter.h
46516         (struct exclude_pattern, exclude_segment): New data types.
46517         (struct exclude): Rewrite.
46518         (fnmatch_pattern_has_wildcards): New function.
46519         (new_exclude_segment, free_exclude_segment): New functions.
46520         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46521         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46522         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46523         * modules/exclude: Depend on hash and mbuiter.
46524
46525         * modules/exclude-tests: New file.
46526         * tests/test-exclude.c: New file.
46527         * tests/test-exclude1.sh: New file.
46528         * tests/test-exclude2.sh: New file.
46529         * tests/test-exclude3.sh: New file.
46530         * tests/test-exclude4.sh: New file.
46531         * tests/test-exclude5.sh: New file.
46532         * tests/test-exclude6.sh: New file.
46533         * tests/test-exclude7.sh: New file.
46534
46535 2009-08-12  Bruno Haible  <bruno@clisp.org>
46536
46537         Ensure that getopt() gets declared by <unistd.h>.
46538         * lib/unistd.in.h: Conditionally include getopt.h.
46539         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46540         Set GNULIB_UNISTD_H_GETOPT.
46541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46542         GNULIB_UNISTD_H_GETOPT.
46543         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46544
46545 2009-08-12  Bruno Haible  <bruno@clisp.org>
46546
46547         Clarify logic.
46548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46549         gl_replace_getopt instead of GETOPT_H.
46550
46551 2009-08-12  Bruno Haible  <bruno@clisp.org>
46552
46553         * m4/getopt.m4: Add comments.
46554
46555 2009-08-12  Bruno Haible  <bruno@clisp.org>
46556
46557         Disable multithread support by default on Cygwin 1.5.x.
46558         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46559         set gl_use_threads=no if not specified otherwise.
46560
46561 2009-08-11  Bruno Haible  <bruno@clisp.org>
46562
46563         Avoid compilation error on NetBSD 5.0.
46564         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46565         * tests/test-stdio.c: Likewise.
46566         * tests/test-stdlib.c: Likewise.
46567         * tests/test-string.c: Likewise.
46568         * tests/test-unistd.c: Likewise.
46569         Reported by Greg Troxel <gdt@ir.bbn.com>
46570         at <https://savannah.gnu.org/support/?106973>.
46571
46572 2009-08-11  Bruno Haible  <bruno@clisp.org>
46573
46574         * modules/dup2-tests (Depends-on): Remove close.
46575
46576         Undo 2009-07-19 commit.
46577         * modules/acl-tests (Depends-on): Remove close.
46578         * modules/binary-io-tests (Depends-on): Likewise.
46579         * modules/closein-tests (Depends-on): Likewise.
46580         * modules/flock-tests (Depends-on): Likewise.
46581         * modules/fsync-tests (Depends-on): Likewise.
46582         * modules/lseek-tests (Depends-on): Likewise.
46583         * modules/pipe-tests (Depends-on): Likewise.
46584         * modules/posix_spawn-tests (Depends-on): Likewise.
46585         * modules/posix_spawnp-tests (Depends-on): Likewise.
46586         * modules/stat-time-tests (Depends-on): Likewise.
46587         * modules/yesno-tests (Depends-on): Likewise.
46588
46589 2009-08-10  Bruno Haible  <bruno@clisp.org>
46590
46591         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46592
46593 2009-08-10  Bruno Haible  <bruno@clisp.org>
46594
46595         Fix a gcc warning.
46596         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46597
46598 2009-08-10  Bruno Haible  <bruno@clisp.org>
46599
46600         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46601         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46602         not only the first time.
46603         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46604         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46605         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46606         is 1, not only the the first time.
46607
46608 2009-08-10  Bruno Haible  <bruno@clisp.org>
46609
46610         Make it possible to use module 'gethostname' without module 'close'.
46611         * lib/unistd.in.h (close): Evoke a link error only if
46612         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46614         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46615         * modules/unistd (Makefile.am): Substitute
46616         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46617         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46618         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46619         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46620         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46621         * modules/sys_ioctl (Makefile.am): Substitute
46622         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46623         * modules/socket (configure.ac): On native Windows, set
46624         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46625         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46626         Reported by Sam Steingold <sds@gnu.org>.
46627
46628 2009-08-10  Bruno Haible  <bruno@clisp.org>
46629
46630         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46631         * modules/ioctl (configure.ac): Likewise.
46632
46633 2009-08-10  Bruno Haible  <bruno@clisp.org>
46634
46635         Avoid collision between gnulib wrapper and libintl wrapper.
46636         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46637         already defined in intl/printf.c.
46638         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46639         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46640
46641 2009-08-09  Bruno Haible  <bruno@clisp.org>
46642
46643         Make <sys/select.h> really self-contained, also on Solaris 10.
46644         * lib/sys_select.in.h: Include <string.h>.
46645         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46646         Solaris 10 problem.
46647         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46648         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46649         Reported by Jim Meyering.
46650
46651 2009-08-09  Bruno Haible  <bruno@clisp.org>
46652
46653         Avoid warnings from 'aclocal' that are due to a use of macro name
46654         AM_XGETTEXT_OPTION that is not defined in automake.
46655         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46656         automake.
46657         * modules/error (configure.ac): Likewise.
46658         * modules/propername (configure.ac): Likewise.
46659         * modules/vasprintf (configure.ac): Likewise.
46660         * modules/verror (configure.ac): Likewise.
46661         * modules/xprintf (configure.ac): Likewise.
46662         * modules/xvasprintf (configure.ac): Likewise.
46663
46664 2009-08-08  Bruno Haible  <bruno@clisp.org>
46665
46666         Avoid compilation error in C++ mode.
46667         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46668         Reported by Sam Steingold <sds@gnu.org>.
46669
46670 2009-08-08  Bruno Haible  <bruno@clisp.org>
46671
46672         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46673         for the various Unix platforms.
46674         * doc/posix-headers/limits.texi: Update platforms list regarding
46675         HOST_NAME_MAX.
46676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46677
46678 2009-08-07  Jim Meyering  <meyering@redhat.com>
46679
46680         selinux-at: fix typo in a comment
46681         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46682         Spotted by Paolo Bonzini.
46683
46684         selinux-at: remove redundant m4 code, add documentation
46685         * modules/selinux-at (configure.ac): Remove redundant code.
46686         LIB_SELINUX is already set via the dependent module, selinux-h.
46687         (Include): Add quotes around selinux-at.h.
46688         * lib/selinux-at.h: Add documentation.
46689         Reported by Bruno Haible in
46690         http://marc.info/?l=gnulib-bug&m=124958988300749
46691
46692 2009-08-07  Bruno Haible  <bruno@clisp.org>
46693
46694         Avoid link error on MacOS X 10.3 and 10.4.
46695         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46696         on non-ELF systems.
46697         * lib/argp-pv.c (argp_program_version): Likewise.
46698         Reported by Simon Josefsson.
46699
46700 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46701
46702         * tests/test-version-etc.sh: Use $EXEEXT.
46703
46704 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46705
46706         update-copyright: update documentation to point to maint.mk
46707         * build-aux/update-copyright: Here.
46708
46709 2009-08-06  Jim Meyering  <meyering@redhat.com>
46710
46711         maint.mk: support update-copyright-local
46712         * top/maint.mk (update-copyright-local): Define place-holder.
46713         (update-copyright): Depend on $(update-copyright-local).
46714
46715 2009-08-06  Jim Meyering  <meyering@redhat.com>
46716
46717         selinux-at: new module
46718         Initially written for coreutils, this module will soon be
46719         used by findutils, too.
46720         * MODULES.html.sh [Misc]: Add selinux-at.
46721         * lib/selinux-at.h: New file, from coreutils.
46722         * lib/selinux-at.c: Likewise.
46723         * modules/selinux-at: Likewise.
46724         (License): Change from LGPL to GPL, since it depends
46725         on the GPL'd openat module.
46726
46727         doc: update README
46728         * README: Remove references to cogito.
46729         Remove cvs-repo-updating instructions from 2007.
46730         Don't imply that CVS is better if you have limited disk space.
46731
46732 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46733
46734         update-copyright: support C-style comments
46735         * build-aux/update-copyright: Implement and document.
46736         * tests/test-update-copyright.sh: Test.
46737
46738 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46739
46740         update-copyright: support omitted "(C)"
46741         * build-aux/update-copyright: Implement and document.  Also,
46742         allow variable whitespace before "(C)".
46743         * tests/test-update-copyright.sh: Test.
46744
46745 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46746
46747         update-copyright: don't trip on non-FSF copyright statements
46748         * build-aux/update-copyright: Fix so that the first correctly
46749         formatted FSF copyright statement is recognized no matter what
46750         appears before it.  Update documentation.
46751         * tests/test-update-copyright.sh: Test that.
46752
46753 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46754
46755         update-copyright: clean up code a little
46756         * build-aux/update-copyright: Append "_re" to the name of any
46757         variable holding a regular expression.
46758         Replace "old" and "new" with "stmt" in variable names.
46759         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46760         handled correctly.
46761         Format code more consistently.
46762
46763 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46764
46765         update-copyright-tests: improve portability
46766         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46767         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46768
46769 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46770
46771         update-copyright: support @copyright{} and &copy;
46772         * build-aux/update-copyright: Implement and document.
46773         * tests/test-update-copyright.sh: Test.
46774
46775 2009-08-04  Jim Meyering  <meyering@redhat.com>
46776
46777         update-copyright-tests: correctly test EOL=\r\n handling
46778         * tests/test-update-copyright.sh: Put \r at the end of some lines
46779         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46780
46781         maint.mk: make update-copyright exclusion list more configurable
46782         * top/maint.mk (update-copyright): Default to excluding COPYING,
46783         but allow an override, in case someone does want to update that file.
46784
46785         maint.mk: don't update copyright date in COPYING
46786         * top/maint.mk (update-copyright): Exclude COPYING.
46787
46788         maint.mk: add a copyright-updating rule
46789         * top/maint.mk (update-copyright): New rule.
46790         Derived from coreutils/Makefile.am.
46791
46792         update-copyright: rename some variables
46793         * build-aux/update-copyright: Rename a few variables for clarity.
46794         Tweak syntax.  List Joel E. Denny as coauthor.
46795
46796 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46797
46798         update-copyright: fix bug for 2-digit last year and add tests
46799         * build-aux/update-copyright: Fix bug.
46800         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46801         specified.
46802         * modules/update-copyright-tests: New
46803         * tests/test-update-copyright.sh: New.
46804
46805 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46806
46807         update-copyright: handle leading tabs in line prefix
46808         * build-aux/update-copyright: Count leading tabs as 8 spaces
46809         when computing margin.  This helps with the formatting of
46810         ChangeLogs, for example.
46811         Fix documentation a little.
46812
46813 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46814
46815         update-copyright: support EOL=\r\n
46816         * build-aux/update-copyright: Implement that.
46817
46818 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46819
46820         update-copyright: automatically format copyright statements
46821         * build-aux/update-copyright: Implement that.
46822         Also, be a little more predictable and safer by always failing
46823         when the full copyright format is not perfectly recognized as an
46824         unbroken whole.  Discussed at
46825         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46826         Rewrite documentation.
46827
46828 2009-08-03  Bruno Haible  <bruno@clisp.org>
46829
46830         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46831
46832 2009-08-02  Bruno Haible  <bruno@clisp.org>
46833
46834         Tests for module 'uname'.
46835         * modules/uname-tests: New file.
46836         * tests/test-uname.c: New file.
46837
46838         New module 'uname'.
46839         * lib/uname.c: New file.
46840         * m4/uname.m4: New file.
46841         * modules/uname: New file.
46842         * doc/posix-functions/uname.texi: Mention the new module.
46843
46844 2009-08-02  Bruno Haible  <bruno@clisp.org>
46845
46846         Tests for module 'sys_utsname'.
46847         * modules/sys_utsname-tests: New file.
46848         * tests/test-sys_utsname.c: New file.
46849
46850         New module 'sys_utsname'.
46851         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46852         * m4/sys_utsname_h.m4: New file.
46853         * modules/sys_utsname: New file.
46854         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46855
46856 2009-08-02  Bruno Haible  <bruno@clisp.org>
46857
46858         Implicitly initialize the sockets library.
46859         * lib/gethostname.c: Include sockets.h.
46860         (rpl_gethostname): Invoke gl_sockets_startup.
46861         * lib/socket.c: Include sockets.h.
46862         (rpl_socket): Invoke gl_sockets_startup.
46863         * modules/gethostname (Depends-on): Add sockets.
46864         * modules/socket (Depends-on): Likewise.
46865         * tests/test-poll.c: Don't include sockets.h.
46866         (main): Don't invoke gl_sockets_startup.
46867         * tests/test-select.c: Don't include sockets.h.
46868         (main): Don't invoke gl_sockets_startup.
46869
46870 2009-08-02  Bruno Haible  <bruno@clisp.org>
46871
46872         Allow multiple calls to gl_sockets_startup.
46873         * lib/sockets.c (initialized_sockets_version): New variable.
46874         (gl_sockets_startup): Do nothing if already called for this or a higher
46875         version.
46876         (gl_sockets_cleanup): Reset initialized_sockets_version.
46877
46878 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46879
46880         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46881         different project/version.
46882
46883 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46884             Bruno Haible  <bruno@clisp.org>
46885
46886         Tests for module 'pipe-filter-gi'.
46887         * modules/pipe-filter-gi-tests: New file.
46888         * tests/test-pipe-filter-gi1.sh: New file.
46889         * tests/test-pipe-filter-gi1.c: New file.
46890         * tests/test-pipe-filter-gi2.sh: New file.
46891         * tests/test-pipe-filter-gi2-main.c: New file.
46892         * tests/test-pipe-filter-gi2-child.c: New file.
46893
46894         New module 'pipe-filter-gi'.
46895         * lib/pipe-filter-gi.c: New file.
46896         * modules/pipe-filter-gi: New file.
46897
46898 2009-08-02  Bruno Haible  <bruno@clisp.org>
46899             Paolo Bonzini  <bonzini@gnu.org>
46900
46901         Tests for module 'pipe-filter-ii'.
46902         * modules/pipe-filter-ii-tests: New file.
46903         * tests/test-pipe-filter-ii1.sh: New file.
46904         * tests/test-pipe-filter-ii1.c: New file.
46905         * tests/test-pipe-filter-ii2.sh: New file.
46906         * tests/test-pipe-filter-ii2-main.c: New file.
46907         * tests/test-pipe-filter-ii2-child.c: New file.
46908
46909         New module 'pipe-filter-ii'.
46910         * lib/pipe-filter.h: New file.
46911         * lib/pipe-filter-ii.c: New file.
46912         * lib/pipe-filter-aux.h: New file.
46913         * modules/pipe-filter-ii: New file.
46914
46915 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46916
46917         * lib/gc-libgcrypt.c: Change copyright to FSF.
46918         * lib/gc-gnulib.c: Likewise.
46919
46920 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46921
46922         * lib/gethostname.c: Include limits.h.
46923
46924 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46925             Bruno Haible  <bruno@clisp.org>
46926
46927         Ensure HOST_NAME_MAX as part of the gethostname module.
46928         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46929         define also HOST_NAME_MAX.
46930         * tests/test-gethostname.c: Include <limits.h>.
46931         (main): Check also HOST_NAME_MAX.
46932         * doc/posix-headers/limits.texi: Document the mingw problem.
46933
46934 2009-08-02  Bruno Haible  <bruno@clisp.org>
46935
46936         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46937         Add comments.
46938
46939 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46940
46941         * lib/gethostname.c: Add Windows wrapper.
46942         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46943         * modules/gethostname: Depend on sys_socket & errno, for also
46944         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46945         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46946
46947 2009-07-31  Jim Meyering  <meyering@redhat.com>
46948
46949         getloadavg: fix symbol name in comment
46950         * lib/getloadavg.c: Correct a typo I introduced when adding
46951         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46952         Matt Kraai spotted the problem.
46953
46954 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46955
46956         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46957         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46958         code also if ! defined N_NAME_POINTER.
46959         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46960         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46961         but the n_name member is a 12-byte array.
46962
46963 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46964
46965         update-copyright: generalize comment handling
46966         * build-aux/update-copyright: Handle copyright statements
46967         within more comment styles.
46968         Document usage.
46969         Report any file with an external copyright holder or parse failure.
46970
46971 2009-07-29  Jim Meyering  <meyering@redhat.com>
46972
46973         mktime: correct setting of REPLACE_MKTIME
46974         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46975
46976         update-copyright: new module
46977         * modules/update-copyright: New file.
46978         * build-aux/update-copyright: New file.
46979         * MODULES.html.sh (maint+release support): Add update-copyright.
46980
46981 2009-07-27  Bruno Haible  <bruno@clisp.org>
46982
46983         Fix compilation error when <ctime> is used and mktime is replaced.
46984         * lib/time.in.h (mktime): New declaration.
46985         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46986         REPLACE_MKTIME instead of defining mktime in config.h.
46987         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46988         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46989         Reported by Ross McFarland <rwmcfa1@neces.com>.
46990
46991 2009-07-27  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46994         Reported by Matt Kraai <mkraai@beckman.com>.
46995
46996 2009-07-25  Jim Meyering  <meyering@redhat.com>
46997
46998         maint.mk: avoid warnings about missing files
46999         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47000         diagnostic when .prev-version does not exist.
47001         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47002         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47003         nonexistent cfg.mk.
47004         Suggestions from Simon Josefsson.
47005
47006 2009-07-25  Bruno Haible  <bruno@clisp.org>
47007
47008         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47009         defined as macros. Needed on QNX 6.4.1.
47010         Reported by Matt Kraai <mkraai@beckman.com>.
47011
47012 2009-07-23  Jim Meyering  <meyering@redhat.com>
47013
47014         maint.mk: invoke "make dist" with a working value of XZ_OPT
47015         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47016
47017 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47018
47019         Make fseeko.c compile on QNX.
47020         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47021
47022 2009-07-22  Peter Simons  <simons@cryp.to>
47023
47024         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47025         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47026         * lib/md4.h: Likewise.
47027         * lib/md5.h: Likewise.
47028         * lib/sha1.h: Likewise.
47029         * lib/sha256.h: Likewise.
47030         * lib/sha512.h: Likewise.
47031
47032         tests-sha1: don't assign literal string to 'char *' variable
47033         * tests/test-sha1.c (main): Declare locals with "const" to match
47034         attributes of the right hand side.
47035
47036 2009-07-21  Eric Blake  <ebb9@byu.net>
47037
47038         dup2: fix more mingw problems
47039         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47040         fd to itself.
47041         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47042         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47043         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47044         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47045         care of mingw bugs.
47046
47047 2009-07-21  Jim Meyering  <meyering@redhat.com>
47048
47049         vc-list-files: avoid failure when /bin/sh is dash
47050         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47051         On some Debian based systems, /bin/sh is a symlink to dash, and running
47052         this command would omit the "/" following each 'tests' prefix:
47053           dash -x build-aux/vc-list-files -C . tests
47054         That is because bash and dash work differently:
47055           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47056           bash ok
47057           dash odd
47058
47059 2009-07-21  Eric Blake  <ebb9@byu.net>
47060
47061         dup2-tests: test previous patch
47062         * modules/dup2-tests: New file.
47063         * tests/test-dup2.c: Likewise.
47064         * tests/test-open.c (main): Avoid unspecified behavior.
47065         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47066         test.
47067
47068         dup2: work around mingw and cygwin 1.5 bug
47069         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47071         * modules/unistd (Makefile.am): Substitute it.
47072         * lib/unistd.in.h (dup2): Declare the replacement.
47073         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47074         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47075         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47076         * modules/execute (Depends-on): Add dup2.
47077         * modules/fseterr (Depends-on): Likewise.
47078         * modules/pipe (Depends-on): Likewise.
47079         * modules/posix_spawn-internal (Depends-on): Likewise.
47080
47081 2009-07-21  Bruno Haible  <bruno@clisp.org>
47082
47083         * modules/.gitattributes: New file.
47084
47085 2009-07-20  Bruno Haible  <bruno@clisp.org>
47086
47087         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47088         (main): Use it.
47089
47090 2009-07-20  Eric Blake  <ebb9@byu.net>
47091
47092         test-pipe: make a bit more robust.
47093         * tests/test-pipe.c (myerr): Allow error messages regardless of
47094         what we do to stderr.
47095         (test_pipe): Rearrange to avoid deadlock.
47096         (child_main): Try a larger read, to ensure we avoided deadlock.
47097         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47098         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47099         if misused.
47100
47101 2009-07-19  Jim Meyering  <meyering@redhat.com>
47102
47103         fts: avoid false-positive cycle-detection
47104         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47105         for each new command line argument.
47106
47107 2009-07-19  Bruno Haible  <bruno@clisp.org>
47108
47109         Fix build error on mingw with the modules sys_select and unistd.
47110         * modules/acl-tests (Depends-on): Add close.
47111         * modules/binary-io-tests (Depends-on): Likewise.
47112         * modules/closein-tests (Depends-on): Likewise.
47113         * modules/flock-tests (Depends-on): Likewise.
47114         * modules/fsync-tests (Depends-on): Likewise.
47115         * modules/lseek-tests (Depends-on): Likewise.
47116         * modules/pipe-tests (Depends-on): Likewise.
47117         * modules/posix_spawn-tests (Depends-on): Likewise.
47118         * modules/posix_spawnp-tests (Depends-on): Likewise.
47119         * modules/stat-time-tests (Depends-on): Likewise.
47120         * modules/yesno-tests (Depends-on): Likewise.
47121
47122 2009-07-19  Bruno Haible  <bruno@clisp.org>
47123
47124         Unify conditionals.
47125         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47126         macros, not at the compiler macros.
47127         * lib/pipe.c: Likewise.
47128         * lib/execute.c: Likewise.
47129         * lib/spawni.c: Likewise.
47130
47131 2009-07-19  Bruno Haible  <bruno@clisp.org>
47132
47133         Fix handling of closed stdin/stdout/stderr on mingw.
47134         * lib/w32spawn.h: Include unistd.h.
47135         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47136         file descriptor with O_NOINHERIT flag.
47137         (fd_safer_noinherit): New function, based on fd-safer.c.
47138         (dup_safer_noinherit): New function, based on dup-safer.c.
47139         (undup_safer_noinherit): New function.
47140         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47141         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47142         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47143         instead of fd_safer.
47144         * tests/test-pipe.c: Include <windows.h>.
47145         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47146         result.
47147
47148         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47149         from main.
47150         (test_pipe): Pass an extra argument for disambiguation.
47151         (main): Invoke parent_main or child_main.
47152
47153         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47154         consistently.
47155
47156 2009-07-18  Eric Blake  <ebb9@byu.net>
47157
47158         test-pipe: fix mingw build
47159         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47160
47161 2009-07-18  Bruno Haible  <bruno@clisp.org>
47162
47163         * modules/pipe-tests (Makefile.am): Fix typo.
47164
47165 2009-07-18  Eric Blake  <ebb9@byu.net>
47166
47167         error: fix mingw build
47168         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47169         Reported by Bruno Haible.
47170
47171         error: avoid undefined use of stdout
47172         * lib/error.c (error, error_at_line): Check that fd 1 is open
47173         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47174         is handling faults and the close_stdout module wants to report the
47175         detection of closed stdout as an error.
47176
47177 2009-07-17  Eric Blake  <ebb9@byu.net>
47178
47179         pipe: be robust in face of closed fds
47180         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47181         should cause child to misbehave.
47182         * modules/pipe-tests: New module.
47183         * tests/test-pipe.c: New file.
47184         * tests/test-pipe.sh: New file.
47185         Reported by Akim Demaille.
47186
47187 2009-07-14  Bruno Haible  <bruno@clisp.org>
47188
47189         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47190         Reported by anonymous kc.
47191
47192 2009-07-07  Jim Meyering  <meyering@redhat.com>
47193
47194         maint.mk: don't look for translatable strings in *.m4 or *.mk
47195         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47196         when searching for translatable strings.
47197
47198 2009-07-05  Jim Meyering  <meyering@redhat.com>
47199
47200         remove superfluous parentheses in STREQ definition
47201         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47202         * lib/getugroups.c (STREQ): Likewise.
47203         * lib/fnmatch.c (STREQ): Likewise.
47204         Spotted by Bruno Haible.
47205
47206 2009-07-04  Jim Meyering  <meyering@redhat.com>
47207
47208         argv-iter: new module
47209         * MODULES.html.sh: Add argv-iter.
47210         * lib/argv-iter.c, lib/argv-iter.h: New files.
47211         * modules/argv-iter: New file.
47212         * modules/argv-iter-tests: New file.
47213         * tests/test-argv-iter.c: Test it.
47214
47215 2009-07-04  Bruno Haible  <bruno@clisp.org>
47216
47217         Fix assertion.
47218         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47219         contains more exact copies of a given entry than file2, leave the extra
47220         copies unpaired rather than aborting.
47221         Reported by Eric Blake.
47222
47223 2009-07-02  Bruno Haible  <bruno@clisp.org>
47224
47225         Speedup git-merge-changelog for git cherry-pick.
47226         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47227         (entries_mapping_get): New function, extracted from compute_mapping.
47228         (entries_mapping_reverse_get): New function.
47229         (compute_mapping): Add a 'full' argument. Return the result in a
47230         'struct entries_mapping'.
47231         (main): Update. Access the mappings through entries_mapping_get.
47232         Reported by Eric Blake.
47233
47234 2009-07-02  Bruno Haible  <bruno@clisp.org>
47235
47236         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47237         best_i.
47238
47239 2009-07-02  Bruno Haible  <bruno@clisp.org>
47240
47241         Speed up approximate search for matching ChangeLog entries.
47242         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47243         argument. Call fstrcmp_bounded instead of fstrcmp.
47244         (compute_mapping, try_split_merged_entry, main): Update callers.
47245
47246 2009-07-02  Bruno Haible  <bruno@clisp.org>
47247
47248         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47249
47250 2009-06-30  Bruno Haible  <bruno@clisp.org>
47251
47252         Reduce the number of uc_is_cased calls.
47253         * lib/unicase.h (casing_suffix_context_t): Add
47254         'first_char_except_ignorable' field.
47255         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47256         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47257         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47258         Update initializer.
47259         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47260         case-ignorable characters.
47261         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47262         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47263         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47264         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47265         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47266
47267 2009-06-30  Bruno Haible  <bruno@clisp.org>
47268
47269         Tests for module 'unicase/ignorable'.
47270         * modules/unicase/ignorable-tests: New file.
47271         * tests/unicase/test-ignorable.c: New file, generated by
47272         gen-uni-tables.
47273
47274         Tests for module 'unicase/cased'.
47275         * modules/unicase/cased-tests: New file.
47276         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47277         * tests/unicase/test-predicate-part1.h: New file, derived from
47278         tests/unictype/test-predicate-part1.h.
47279         * tests/unicase/test-predicate-part2.h: New file, same as
47280         tests/unictype/test-predicate-part2.h.
47281
47282         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47283         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47284         (output_casing_properties): New function.
47285         (main): Call it.
47286         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47287         * lib/unicase/cased.c: Include unictype/bitmap.h.
47288         (uc_is_cased): Define through a bitmap lookup.
47289         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47290         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47291         (uc_is_case_ignorable): Define through a bitmap lookup.
47292         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47293         lib/unictype/bitmap.h.
47294         (Depends-on): Add inline. Clean up.
47295         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47296         lib/unictype/bitmap.h.
47297         (Depends-on): Add inline. Clean up.
47298         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47299         recognition.
47300         * tests/unicase/test-u16-tolower.c (main): Likewise.
47301         * tests/unicase/test-u32-tolower.c (main): Likewise.
47302
47303 2009-06-30  Bruno Haible  <bruno@clisp.org>
47304
47305         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47306         * lib/unicase/u16-casemap.c: Likewise.
47307         * lib/unicase/u32-casemap.c: Likewise.
47308
47309 2009-06-29  Bruno Haible  <bruno@clisp.org>
47310
47311         Define u32_casefold as a wrapper around u32_ct_casefold.
47312         * lib/unicase/u32-casefold.c: Update.
47313         * modules/unicase/u32-casefold (Depends-on): Add
47314         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47315         unicase/empty-suffix-context. Clean up.
47316
47317         Define u16_casefold as a wrapper around u16_ct_casefold.
47318         * lib/unicase/u16-casefold.c: Update.
47319         * modules/unicase/u16-casefold (Depends-on): Add
47320         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47321         unicase/empty-suffix-context. Clean up.
47322
47323         Define u8_casefold as a wrapper around u8_ct_casefold.
47324         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47325         * lib/unicase/u8-casefold.c: Update.
47326         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47327         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47328
47329         Define u32_totitle as a wrapper around u32_ct_totitle.
47330         * lib/unicase/u32-totitle.c: Update.
47331         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47332         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47333
47334         Define u16_totitle as a wrapper around u16_ct_totitle.
47335         * lib/unicase/u16-totitle.c: Update.
47336         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47337         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47338
47339         Define u8_totitle as a wrapper around u8_ct_totitle.
47340         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47341         functions.
47342         (FUNC): Delegate to U_CT_TOTITLE.
47343         * lib/unicase/u8-totitle.c: Update.
47344         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47345         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47346
47347         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47348         invocation.
47349         * modules/unicase/u32-tolower (Depends-on): Add
47350         unicase/empty-prefix-context, unicase/empty-suffix-context.
47351
47352         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47353         invocation.
47354         * modules/unicase/u16-tolower (Depends-on): Add
47355         unicase/empty-prefix-context, unicase/empty-suffix-context.
47356
47357         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47358         * modules/unicase/u8-tolower (Depends-on): Add
47359         unicase/empty-prefix-context, unicase/empty-suffix-context.
47360
47361         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47362         invocation.
47363         * modules/unicase/u32-toupper (Depends-on): Add
47364         unicase/empty-prefix-context, unicase/empty-suffix-context.
47365
47366         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47367         invocation.
47368         * modules/unicase/u16-toupper (Depends-on): Add
47369         unicase/empty-prefix-context, unicase/empty-suffix-context.
47370
47371         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47372         * modules/unicase/u8-toupper (Depends-on): Add
47373         unicase/empty-prefix-context, unicase/empty-suffix-context.
47374
47375         New module 'unicase/u32-ct-casefold'.
47376         * lib/unicase/u32-ct-casefold.c: New file.
47377         * modules/unicase/u32-ct-casefold: New file.
47378
47379         New module 'unicase/u16-ct-casefold'.
47380         * lib/unicase/u16-ct-casefold.c: New file.
47381         * modules/unicase/u16-ct-casefold: New file.
47382
47383         New module 'unicase/u8-ct-casefold'.
47384         * lib/unicase/u8-ct-casefold.c: New file.
47385         * lib/unicase/u-ct-casefold.h: New file, derived from
47386         lib/unicase/u-casefold.h.
47387         * modules/unicase/u8-ct-casefold: New file.
47388
47389         New module 'unicase/u32-ct-totitle'.
47390         * lib/unicase/u32-ct-totitle.c: New file.
47391         * modules/unicase/u32-ct-totitle: New file.
47392
47393         New module 'unicase/u16-ct-totitle'.
47394         * lib/unicase/u16-ct-totitle.c: New file.
47395         * modules/unicase/u16-ct-totitle: New file.
47396
47397         New module 'unicase/u8-ct-totitle'.
47398         * lib/unicase/u8-ct-totitle.c: New file.
47399         * lib/unicase/u-ct-totitle.h: New file, derived from
47400         lib/unicase/u-totitle.h.
47401         * modules/unicase/u8-ct-totitle: New file.
47402
47403         New module 'unicase/u32-ct-tolower'.
47404         * lib/unicase/u32-ct-tolower.c: New file.
47405         * modules/unicase/u32-ct-tolower: New file.
47406
47407         New module 'unicase/u16-ct-tolower'.
47408         * lib/unicase/u16-ct-tolower.c: New file.
47409         * modules/unicase/u16-ct-tolower: New file.
47410
47411         New module 'unicase/u8-ct-tolower'.
47412         * lib/unicase/u8-ct-tolower.c: New file.
47413         * modules/unicase/u8-ct-tolower: New file.
47414
47415         New module 'unicase/u32-ct-toupper'.
47416         * lib/unicase/u32-ct-toupper.c: New file.
47417         * modules/unicase/u32-ct-toupper: New file.
47418
47419         New module 'unicase/u16-ct-toupper'.
47420         * lib/unicase/u16-ct-toupper.c: New file.
47421         * modules/unicase/u16-ct-toupper: New file.
47422
47423         New module 'unicase/u8-ct-toupper'.
47424         * lib/unicase/u8-ct-toupper.c: New file.
47425         * modules/unicase/u8-ct-toupper: New file.
47426
47427         Add context arguments to u*_casemap functions.
47428         * lib/unicase/unicasemap.h: Include unicase.h.
47429         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47430         suffix_context arguments.
47431         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47432         functions.
47433         (FUNC): Add prefix_context and suffix_context arguments. Use
47434         uc_is_cased and uc_is_case_ignorable.
47435         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47436         * lib/unicase/u16-casemap.c: Likewise.
47437         * lib/unicase/u32-casemap.c: Likewise.
47438         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47439         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47440         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47441         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47442         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47443         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47444
47445         New module 'unicase/u32-suffix-context'.
47446         * lib/unicase/u32-suffix-context.c: New file.
47447         * modules/unicase/u32-suffix-context: New file.
47448
47449         New module 'unicase/u16-suffix-context'.
47450         * lib/unicase/u16-suffix-context.c: New file.
47451         * modules/unicase/u16-suffix-context: New file.
47452
47453         New module 'unicase/u8-suffix-context'.
47454         * lib/unicase/u8-suffix-context.c: New file.
47455         * lib/unicase/u-suffix-context.h: New file.
47456         * modules/unicase/u8-suffix-context: New file.
47457
47458         New module 'unicase/empty-suffix-context'.
47459         * lib/unicase/empty-suffix-context.c: New file.
47460         * modules/unicase/empty-suffix-context: New file.
47461
47462         New module 'unicase/u32-prefix-context'.
47463         * lib/unicase/u32-prefix-context.c: New file.
47464         * modules/unicase/u32-prefix-context: New file.
47465
47466         New module 'unicase/u16-prefix-context'.
47467         * lib/unicase/u16-prefix-context.c: New file.
47468         * modules/unicase/u16-prefix-context: New file.
47469
47470         New module 'unicase/u8-prefix-context'.
47471         * lib/unicase/u8-prefix-context.c: New file.
47472         * lib/unicase/u-prefix-context.h: New file.
47473         * lib/unicase/context.h: New file.
47474         * modules/unicase/u8-prefix-context: New file.
47475
47476         New module 'unicase/empty-prefix-context'.
47477         * lib/unicase/empty-prefix-context.c: New file.
47478         * modules/unicase/empty-prefix-context: New file.
47479
47480         New module 'unicase/ignorable'.
47481         * lib/unicase/ignorable.c: New file.
47482         * modules/unicase/ignorable: New file.
47483
47484         New module 'unicase/cased'.
47485         * lib/unicase/caseprop.h: New file.
47486         * lib/unicase/cased.c: New file.
47487         * modules/unicase/cased: New file.
47488
47489         New functions for case mapping of substrings.
47490         * lib/unicase.h (casing_prefix_context_t): New type.
47491         (unicase_empty_prefix_context): New variable.
47492         (u8_casing_prefix_context, u16_casing_prefix_context,
47493         u32_casing_prefix_context, u8_casing_prefixes_context,
47494         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47495         declarations.
47496         (casing_suffix_context_t): New type.
47497         (unicase_empty_suffix_context): New variable.
47498         (u8_casing_suffix_context, u16_casing_suffix_context,
47499         u32_casing_suffix_context, u8_casing_suffixes_context,
47500         u16_casing_suffixes_context, u32_casing_suffixes_context,
47501         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47502         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47503         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47504         declarations.
47505
47506 2009-06-28  Jim Meyering  <meyering@redhat.com>
47507
47508         boostrap: indent only with spaces
47509         * build-aux/bootstrap: Indent only with spaces, never TABs.
47510
47511         bootstrap: split long lines
47512         * build-aux/bootstrap: Keep line length < 80.
47513
47514         bootstrap: sync from coreutils
47515         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47516         just as autoreconf does.  Verify a list of prerequisite
47517         package-name,version-number pairs if defined in bootstrap.conf.
47518         Refer to README-prereq, if prerequisites are not satisfied.
47519
47520 2009-06-27  Eric Blake  <ebb9@byu.net>
47521
47522         tests: add test for bogus NULL definition
47523         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47524         * tests/test-stdlib.c: Likewise.
47525         * tests/test-string.c: Likewise.
47526         * tests/test-locale.c: Likewise.
47527         * tests/test-unistd.c: Likewise.
47528         * modules/stdio-tests (Depends-on): Add verify.
47529         * modules/stdlib-tests (Depends-on): Likewise.
47530         * modules/string-tests (Depends-on): Likewise.
47531         * modules/locale-tests (Depends-on): Likewise.
47532         * modules/unistd-tests (Depends-on): Likewise.
47533
47534 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47535
47536         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47537         self-explaining comment.
47538         * m4/selinux-selinux-h: Update serial.
47539         (gl_LIBSELINUX): New macro, adding a warning for missing development
47540         packages to code extracted from...
47541         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47542         Add warning for missing development packages here, too.
47543
47544 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47545
47546         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47547
47548 2009-06-25  Eric Blake  <ebb9@byu.net>
47549
47550         version-etc: fix regression
47551         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47552         gcc.
47553         (version_etc): Use it, to catch bugs with trailing NULL.
47554         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47555         (version_etc_va): Fix logic bug.
47556         * modules/version-etc-tests: Add test.
47557         * tests/test-version-etc.c: New file.
47558         * tests/test-version-etc.sh: Likewise.
47559
47560 2009-06-25  Sam Steingold  <sds@gnu.org>
47561
47562         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47563         mbtowc declaration.
47564
47565 2009-06-25  Eric Blake  <ebb9@byu.net>
47566
47567         fpurge: migrate into <stdio.h>
47568         * lib/fpurge.h: Delete...
47569         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47570         * lib/fpurge.c (fpurge): Change declaring header.
47571         * modules/fpurge (Files): Drop deleted file.
47572         (Depends-on): Add stdio.
47573         (configure.ac): Set witness.
47574         * modules/stdio (Makefile.am): Support fpurge macros.
47575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47576         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47577         * lib/fflush.c: Update client.
47578         * tests/test-fpurge.c: Likewise.
47579         * NEWS: Mention the change.
47580
47581 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47582
47583         * lib/argp-version-etc.c (program_authors): Add const
47584         qualifier.
47585         * lib/version-etc.c: Fix typos in the comments.
47586         * modules/argp-version-etc: Depends on version-etc.
47587
47588 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47589
47590         argp-version-etc: new module.
47591
47592         * lib/argp-version-etc.c: New file.
47593         * lib/argp-version-etc.h: New file.
47594         * modules/argp-version-etc: New file.
47595         * modules/argp-version-etc-tests: New file.
47596         * tests/test-argp-version-etc.c: New test.
47597         * tests/test-argp-version-etc-1.sh: New test.
47598
47599 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47600
47601         Provide additional interfaces and documentation for version-etc
47602         module.
47603
47604         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47605         interfaces.
47606         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47607         prototypes.
47608
47609 2009-06-24  Bruno Haible  <bruno@clisp.org>
47610
47611         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47612         HAVE_LIB${NAME} macro.
47613         Reported by Sam Steingold <sds@gnu.org>.
47614
47615 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47616
47617         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47618         needed.
47619
47620 2009-06-21  Bruno Haible  <bruno@clisp.org>
47621
47622         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47623         work.
47624         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47625         together with LIB${NAME}, LTLIB${NAME}.
47626         Reported by Sam Steingold <sds@gnu.org>.
47627
47628 2009-06-20  Jim Meyering  <meyering@redhat.com>
47629
47630         tests: make sc_require_test_exit_idiom more generic
47631         * top/maint.mk (Exit_witness_file): New overridable variable.
47632         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47633         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47634
47635 2009-06-19  Jim Meyering  <meyering@redhat.com>
47636
47637         hash: reverse order of src/dst parameters in an internal interface
47638         * lib/hash.c (transfer_entries): Reverse order of parameters to
47639         put DST before SRC.  Adjust callers.
47640
47641         tests: test-hash: avoid wholesale duplication
47642         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47643         Instead, use a loop and add a single conditional.
47644
47645         tests: test-hash: allow seed selection via a command line argument
47646         * tests/test-hash.c (get_seed): New function.
47647         (main): Use it.
47648
47649 2009-06-19  Eric Blake  <ebb9@byu.net>
47650
47651         hash: avoid memory leak on allocation failure
47652         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47653         failure.  Factor repeated algorithm...
47654         (transfer_entries): ...into new helper routine.
47655         (hash_delete): React to hash_rehash return value.
47656
47657         hash: reduce memory pressure in hash_rehash no-op case
47658         * lib/hash.c (next_prime): Avoid overflow.
47659         (hash_initialize): Factor bucket size computation...
47660         (compute_bucket_size): ...into new helper function.
47661         (hash_rehash): Use new function and open coding to reduce memory
47662         pressure, and avoid a memory leak in USE_OBSTACK code.
47663         Reported by Jim Meyering.
47664
47665 2009-06-18  Eric Blake  <ebb9@byu.net>
47666
47667         hash: make rotation more obvious
47668         * modules/hash (Depends-on): Add bitrotate and stdint.
47669         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47670         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47671         (SIZE_MAX): Rely on headers for definition.
47672         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47673         (raw_hasher): Use rotr_sz.
47674         Suggested by Jim Meyering.
47675
47676         hash: fix memory leak in last patch
47677         * lib/hash.c (hash_rehash): Avoid memory leak.
47678
47679         hash: avoid no-op rehashing
47680         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47681
47682         hash: provide default callback functions
47683         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47684         (hash_initialize): Use them as defaults.
47685         * tests/test-hash.c (main): Test this.
47686
47687         hash: minor optimization
47688         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47689         when possible.
47690         (hash_initialize): Document this promise.
47691         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47692         * tests/test-hash.c (hash_compare_strings): Test this.
47693
47694 2009-06-18  Bruno Haible  <bruno@clisp.org>
47695
47696         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47697         going to be replaced anyway.
47698
47699 2009-06-18  Bruno Haible  <bruno@clisp.org>
47700
47701         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47702         in one place.
47703         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47704         be replaced anyway.
47705
47706 2009-06-18  Eric Blake  <ebb9@byu.net>
47707
47708         hash: check for resize before insertion
47709         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47710         threshold before insertion, so that a pathological hash_rehash
47711         that fills every bucket can still trigger another rehash.
47712
47713 2009-06-18  Jim Meyering  <meyering@redhat.com>
47714
47715         hash-tests: add a loop around the small tests
47716         * tests/test-hash.c (main): Repeat small tests with selected
47717         small initial table sizes.
47718
47719 2009-06-17  Eric Blake  <ebb9@byu.net>
47720
47721         hash: minor cleanups
47722         * lib/hash.h (hash_entry): Make opaque, by moving...
47723         * lib/hash.c (hash_entry): ...here.
47724         (hash_insert): Clarify restrictions on what can be inserted.
47725         (hash_get_next): Clarify when it is safe to remove an element
47726         during traversal.
47727         (check_tuning): Skip verification when tuning is known safe.
47728         (hash_initialize): Clarify restrictions on tuning.
47729
47730 2009-06-17  Jim Meyering  <jim@meyering.net>
47731         and Eric Blake  <ebb9@byu.net>
47732
47733         hash-tests: new module
47734         * modules/hash-tests: New file.
47735         * tests/test-hash.c: New file.
47736
47737 2009-06-17  Eric Blake  <ebb9@byu.net>
47738
47739         strstr-simple: document new module
47740         * MODULES.html.sh: Document new module.
47741
47742         strstr, strcasestr: replace on platforms with broken memchr
47743         * modules/strstr: Split into...
47744         * modules/strstr-simple: ...new module that does not care about
47745         performance, but does care about glibc bug.
47746         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47747         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47748         if platform memchr is broken, per Debian bug 521737.
47749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47750         memchr.
47751         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47752         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47753         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47754         * modules/mountlist (Depends-on): Add strstr-simple.
47755         * modules/gen-uni-tables (Depends-on): Likewise.
47756         * modules/argz (Depends-on): Add strstr.
47757
47758 2009-06-17  Bruno Haible  <bruno@clisp.org>
47759
47760         * modules/posix_spawn-internal (Depends-on): Add errno.
47761
47762 2009-06-17  Bruno Haible  <bruno@clisp.org>
47763
47764         Define missing ESTALE on Interix 3.5.
47765         * lib/errno.in.h (ESTALE): Assign a value if missing.
47766         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47767         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47768         missing.
47769         * doc/posix-headers/errno.texi: Mention the Interix bug.
47770         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47771
47772 2009-06-15  Eric Blake  <ebb9@byu.net>
47773
47774         memchr, memchr2: add valgrind exception
47775         * lib/memchr.valgrind: New file.
47776         * lib/memchr2.valgrind: New file.
47777         * modules/memchr (Files): Distribute valgrind file.
47778         * modules/memchr2 (Files): Likewise.
47779
47780         docs: memchr is no longer obsolete
47781         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47782         * lib/string.in.h (memchr): Simplify logic.
47783
47784 2009-06-14  Jim Meyering  <meyering@redhat.com>
47785
47786         link-follow: fix the "checking..." message to not mention trailing slash
47787         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47788         never considered trailing slashes.
47789
47790 2009-06-14  Bruno Haible  <bruno@clisp.org>
47791
47792         * m4/memchr.m4: Mention also the bug on IA-64.
47793         * doc/posix-functions/memchr.texi: Likewise.
47794
47795 2009-06-12  Eric Blake  <ebb9@byu.net>
47796
47797         memchr: detect broken x86_64 and alpha implementations
47798         * modules/memchr-tests (Depends-on): Move mmap detection...
47799         * modules/memchr (Depends-on): ...here.
47800         (configure.ac): Set indicator.
47801         * lib/string.in.h (memchr): Declare replacement.
47802         * modules/string (Makefile.am): Trigger replacement.
47803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47804         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47805         bugs.
47806         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47807         * modules/getpagesize (License): Relax license.
47808
47809 2009-06-11  Bruno Haible  <bruno@clisp.org>
47810
47811         * lib/idpriv.h: Add more references.
47812
47813 2009-06-08  Bruno Haible  <bruno@clisp.org>
47814
47815         Tests for module 'idpriv-droptemp'.
47816         * modules/idpriv-droptemp-tests: New file.
47817         * tests/test-idpriv-droptemp.sh: New file.
47818         * tests/test-idpriv-droptemp.su.sh: New file.
47819         * tests/test-idpriv-droptemp.c: New file.
47820
47821         New module 'idpriv-droptemp'.
47822         * lib/idpriv-droptemp.c: New file.
47823         * modules/idpriv-droptemp: New file.
47824
47825 2009-06-08  Bruno Haible  <bruno@clisp.org>
47826
47827         Tests for module 'idpriv-drop'.
47828         * modules/idpriv-drop-tests: New file.
47829         * tests/test-idpriv-drop.sh: New file.
47830         * tests/test-idpriv-drop.su.sh: New file.
47831         * tests/test-idpriv-drop.c: New file.
47832
47833         New module 'idpriv-drop'.
47834         * lib/idpriv.h: New file.
47835         * lib-idpriv-drop.c: New file.
47836         * m4/idpriv.m4: New file.
47837         * modules/idpriv-drop: New file.
47838
47839 2009-06-08  Bruno Haible  <bruno@clisp.org>
47840
47841         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47842         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47843         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47844         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47845         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47846         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47847         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47848
47849 2009-06-08  Eric Blake  <ebb9@byu.net>
47850
47851         test-strstr: use memory fence, when possible
47852         * tests/test-strstr.c (main): Use memory fence, in order to be
47853         more likely to trigger Debian bug 521737.
47854         * modules/strstr-tests (Files): Pull in additional files.
47855
47856         memchr: no longer obsolete, for wider field testing
47857         * modules/memchr (Status, Notice): Delete, this module is no
47858         longer obsolete.
47859         * modules/vasnprintf (Depends-on): Add memchr.
47860
47861 2009-06-07  Jim Meyering  <meyering@redhat.com>
47862
47863         hash: declare some functions with the warn_unused_result attribute
47864         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47865
47866 2009-06-07  Bruno Haible  <bruno@clisp.org>
47867
47868         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47869         Reported by Eric Blake.
47870
47871 2009-06-06  Eric Blake  <ebb9@byu.net>
47872
47873         test-alignof: fix typo with long double
47874         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47875         compiler error.
47876
47877 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47878
47879         Escape non-texinfo { and }s.
47880         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47881         markup error.
47882
47883 2009-06-04  Jim Meyering  <meyering@redhat.com>
47884
47885         gitlog-to-changelog: don't infloop on an empty commit log
47886         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47887         Reported by Boris Petersen <transacid@centerim.org>.
47888
47889 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47890
47891         version-etc: extend for packagers
47892         Add three new configure options, intended for packagers:
47893           --with-packager="packager name"
47894           --with-packager-version="packager-specific version"
47895           --with-packager-bug-reports="packager bug reporting"
47896         An example with coreutils:
47897           $ ./configure \
47898             --with-packager=Gentoo \
47899             --with-packager-bug-report=http://bugs.gentoo.org/ \
47900             --with-packager-version="patchset 1.6"
47901           $ ./src/ls --version | head -n2
47902           ls (GNU coreutils) 7.1-dirty
47903           Packaged by Gentoo (patchset 1.6)
47904         Note that the bug reporting info via --help doesn't show up because
47905         coreutils uses its own custom emit_bug_reporting_address() implementation
47906         in src/system.h.  If it didn't, it'd look like:
47907           $ ./src/ls --help | tail -n4
47908           Report bugs to <bug-coreutils@gnu.org>.
47909           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47910           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47911           General help using GNU software: <http://www.gnu.org/gethelp/>.
47912         * lib/version-etc.c: Print new information, if provided.
47913         * m4/version-etc.m4: New file.
47914         * modules/version-etc (Files): Add m4/version-etc.m4.
47915         (configure.ac): Add gl_VERSION_ETC.
47916
47917 2009-05-31  Bruno Haible  <bruno@clisp.org>
47918
47919         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47920         and 'int64_t'.
47921         * modules/alignof-tests (Dependencies): Add stdint.
47922         Reported by Eric Blake.
47923
47924 2009-05-31  Bruno Haible  <bruno@clisp.org>
47925
47926         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47927         restriction due to compiler bugs.
47928         Reported by Eric Blake.
47929
47930 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47931             Bruno Haible  <bruno@clisp.org>
47932
47933         Fix test-alignof failure.
47934         * lib/alignof.h (alignof_slot): New macro.
47935         (alignof_type): New macro, with the same semantics as the previous
47936         'alignof'.
47937         (alignof): Alias to alignof_slot.
47938         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47939         check that the results are usable as constant expressions.
47940
47941 2009-05-31  Bruno Haible  <bruno@clisp.org>
47942
47943         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47944         * tests/test-memchr.c (main): Check that memchr does not read past the
47945         first occurrence of the byte.
47946         * tests/test-strstr.c (main): Update comment.
47947         Suggested by Eric Blake.
47948
47949 2009-05-30  Bruno Haible  <bruno@clisp.org>
47950
47951         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47952         detail how to use dumpbin.
47953         Reported by David Byron <dbyron@dbyron.com>.
47954
47955 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47956
47957         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47958
47959 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47960
47961         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47962
47963 2009-05-28  Bruno Haible  <bruno@clisp.org>
47964
47965         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47966         build-aux/ files.
47967
47968 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47969
47970         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47971
47972 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47973
47974         * gnulib-tool (sed_transform_main_lib_file)
47975         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47976         regexps.
47977
47978 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47979
47980         * tests/test-strstr.c: Add another self-test.
47981         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47982         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47983
47984 2009-05-23  Bruno Haible  <bruno@clisp.org>
47985
47986         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47987         change.
47988
47989 2009-05-21  Bruno Haible  <bruno@clisp.org>
47990
47991         Simplify use of mode_t varargs.
47992         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47993         uses 'mode_t' or 'int'.
47994         * lib/openat.c (openat): Likewise.
47995         * lib/open-safer.c (open_safer): Likewise.
47996         * m4/mode_t.m4: New file.
47997         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47998         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47999         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48000         * modules/open (Files): Add m4/mode_t.m4.
48001         * modules/openat (Files): Likewise.
48002         * modules/fcntl-safer (Files): Likewise.
48003         Suggested by Eric Blake.
48004
48005 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48006
48007         * doc/glibc-functions/fallocate.texi: New file.
48008         * doc/gnulib.texi: Include it.
48009
48010 2009-05-21  Eric Blake  <ebb9@byu.net>
48011             Bruno Haible  <bruno@clisp.org>
48012
48013         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48014         invocations.
48015         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48016
48017 2009-05-21  Eric Blake  <ebb9@byu.net>
48018             Bruno Haible  <bruno@clisp.org>
48019
48020         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48021         include_next. Fix of 2008-11-20 commit.
48022         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48023         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48024         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48025         NEXT_MATH_H.
48026         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48027         instead of NEXT_MATH_H.
48028
48029 2009-05-21  Bruno Haible  <bruno@clisp.org>
48030
48031         Avoid redefinition warnings for SIZE_MAX.
48032         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48033         Reported by Simon Josefsson.
48034
48035 2009-05-21  Bruno Haible  <bruno@clisp.org>
48036
48037         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48038         AC_CACHE_VAL.
48039
48040 2009-05-20  Bruno Haible  <bruno@clisp.org>
48041
48042         Make zeroptr.h work on mingw.
48043         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48044         mprotect.
48045         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48046         * modules/memchr2-tests (configure.ac): Likewise.
48047         * modules/memcmp-tests (configure.ac): Likewise.
48048         * modules/memmem-tests (configure.ac): Likewise.
48049         * modules/memrchr-tests (configure.ac): Likewise.
48050         Reported by Simon Josefsson.
48051
48052 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48053
48054         * tests/test-glob.c: Include string.h for strcmp prototype.
48055
48056 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48057
48058         * modules/getdelim (Depends-on): Add explicit stdint, although it
48059         was implicitly already pulled in via realloc-posix.
48060         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48061
48062 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48063
48064         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48065         G. Christensen" <tgc@jupiterrise.com>.
48066         * m4/sys_socket_h.m4: Check for sa_family_t.
48067         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48068         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48069         * tests/test-sys_socket.c: Check that sa_family_t works.
48070
48071 2009-05-18  Eric Blake  <ebb9@byu.net>
48072
48073         maint.mk: allow gnulib_dir in VPATH build
48074         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48075
48076 2009-05-15  Jim Meyering  <meyering@redhat.com>
48077
48078         maint.mk: Give gnulib_dir a default definition.
48079         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48080         Thus, most packages no longer need to specify this variable in cfg.mk
48081
48082 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48083
48084         rename.m4: fix typos that would make non-mingw cross-configure fail
48085         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48086
48087 2009-05-13  Eric Blake  <ebb9@byu.net>
48088
48089         mmap-anon: avoid out-of-order autoconf expansion
48090         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48091         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48092         * modules/memchr-tests (Depends-on): Add extensions.
48093         * modules/memchr2-tests (Depends-on): Add extensions.
48094         * modules/memcmp-tests (Depends-on): Add extensions.
48095         * modules/memmem-tests (Depends-on): Add extensions.
48096         * modules/memrchr-tests (Depends-on): Add extensions.
48097
48098 2009-05-13  Bruno Haible  <bruno@clisp.org>
48099
48100         Make some tests ISO C 99 compliant.
48101         * tests/zerosize-ptr.h: New file.
48102         * tests/test-memchr.c: Include zerosize-ptr.h.
48103         (main): Use a zero-size object pointer instead of NULL.
48104         * tests/test-memchr2.c: Include zerosize-ptr.h.
48105         (main): Use a zero-size object pointer instead of NULL.
48106         * tests/test-memcmp.c: Include zerosize-ptr.h.
48107         (main): Use a zero-size object pointer instead of NULL.
48108         * tests/test-memmem.c: Include zerosize-ptr.h.
48109         (main): Use a zero-size object pointer instead of NULL.
48110         * tests/test-memrchr.c: Include zerosize-ptr.h.
48111         (main): Use a zero-size object pointer instead of NULL.
48112         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48113         m4/mmap-anon.m4.
48114         (Depends-on): Add getpagesize.
48115         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48116         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48117         m4/mmap-anon.m4.
48118         (Depends-on): Add getpagesize.
48119         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48120         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48121         m4/mmap-anon.m4.
48122         (Depends-on): Add getpagesize.
48123         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48124         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48125         m4/mmap-anon.m4.
48126         (Depends-on): Add getpagesize.
48127         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48128         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48129         m4/mmap-anon.m4.
48130         (Depends-on): Add getpagesize.
48131         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48132
48133 2009-05-12  Bruno Haible  <bruno@clisp.org>
48134
48135         Tests for module 'alignof'.
48136         * modules/alignof-tests: New file.
48137         * tests/test-alignof.c: New file.
48138
48139 2009-05-12  Bruno Haible  <bruno@clisp.org>
48140
48141         Fix alignof macro.
48142         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48143         vendor compilers that are always correct.
48144
48145 2009-05-12  Bruno Haible  <bruno@clisp.org>
48146
48147         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48148         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48149         not whether its fully works.
48150
48151 2009-05-12  Bruno Haible  <bruno@clisp.org>
48152
48153         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48154
48155 2009-05-12  Jim Meyering  <meyering@redhat.com>
48156
48157         * top/maint.mk: Adjust backslash alignment.
48158
48159 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48160
48161         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48162
48163 2009-05-11  Eric Blake  <ebb9@byu.net>
48164
48165         argp: avoid undefined behavior
48166         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48167         macros.
48168
48169 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48170
48171         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48172         user.name to prevent git commit from complaining.
48173
48174 2009-05-10  Bruno Haible  <bruno@clisp.org>
48175
48176         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48177         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48178         it rewrites every file name only once.
48179         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48180
48181 2009-05-08  Bruno Haible  <bruno@clisp.org>
48182
48183         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48184         instead of 'max'.
48185
48186 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48187
48188         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48189         sockaddr_storage test.
48190
48191 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48192
48193         * modules/sys_socket (Makefile.am): Substitute
48194         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48195         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48196         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48197         * tests/test-sys_socket.c: Check sockaddr_storage.
48198
48199 2009-05-08  Bruno Haible  <bruno@clisp.org>
48200
48201         New module 'alignof'.
48202         * lib/alignof.h: New file.
48203         * modules/alignof: New file.
48204
48205 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48206             Bruno Haible  <bruno@clisp.org>
48207
48208         Fix test-file-has-acl on FreeBSD.
48209         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48210         mask is implicitly added.
48211         * tests/test-file-has-acl.c: Include <signal.h>.
48212         (main): Terminate the test after 5 seconds.
48213         * modules/acl-tests (configure.ac): Check for alarm function.
48214
48215 2009-05-04  Bruno Haible  <bruno@clisp.org>
48216
48217         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48218         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48219         * modules/errno (configure.ac): Drop AC_REQUIRE.
48220         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48221         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48222
48223 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48224
48225         * modules/glob-tests: New module.
48226         * tests/test-glob.c: Add.
48227
48228 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48229
48230         * modules/fnmatch-tests: New module.
48231         * tests/test-fnmatch.c: Add.
48232
48233 2009-05-04  Eric Blake  <ebb9@byu.net>
48234
48235         maint: make the new no-submodule-changes rule VPATH-safe
48236         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48237
48238 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48239             Bruno Haible  <bruno@clisp.org>
48240
48241         acl: Fix infinite loop on FreeBSD.
48242         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48243         of return value from acl_get_entry.
48244         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48245         Likewise.
48246
48247 2009-05-03  Bruno Haible  <bruno@clisp.org>
48248
48249         * lib/acl-internal.h (acl_entries): Clarify return value.
48250         * lib/acl_entries.c (acl_entries): Likewise.
48251
48252 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48253
48254         Bug fix in acl module.
48255         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48256
48257 2009-05-03  Bruno Haible  <bruno@clisp.org>
48258
48259         Create gperf-generated file in the source dir, not in the build dir.
48260         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48261         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48262         * modules/unicase/locale-language (unicase/locale-languages.h):
48263         Likewise.
48264         * modules/unicase/special-casing (unicase/special-casing-table.h):
48265         Likewise.
48266         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48267         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48268         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48269         Reported by Ralf Wildenhues.
48270
48271 2009-05-03  Bruno Haible  <bruno@clisp.org>
48272
48273         * modules/fnmatch (Description, configure.ac): Taken from
48274         fnmatch-posix.
48275         * modules/fnmatch-posix: Turn into a symbolic reference to the
48276         'fnmatch' module, and deprecate.
48277         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48278
48279 2009-05-03  Bruno Haible  <bruno@clisp.org>
48280
48281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48282         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48283         Reported by Ralf Wildenhues.
48284
48285 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48286
48287         * m4/fnmatch.m4: Fix fnmatch re-define.
48288
48289 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48290
48291         priv-set: new module and tests; adapt write-any-file
48292         * lib/priv-set.c: New file.
48293         * lib/priv-set.h: New file.
48294         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48295         * lib/write-any-file.c: Simplify by using priv-set module.
48296         * m4/priv-set.m4: New file.
48297         * modules/priv-set: New file.
48298         * modules/unlinkdir: Add dependency on priv-set module.
48299         * modules/write-any-file: Likewise.
48300
48301         Tests for module 'priv-set'.
48302         * modules/priv-set-tests: New file.
48303         * tests/test-priv-set.c: New file.
48304
48305 2009-05-03  Jim Meyering  <meyering@redhat.com>
48306             Bruno Haible  <bruno@clisp.org>
48307
48308         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48309         use the converted UTF-8 variant of the name instead.
48310
48311 2009-05-03  Jim Meyering  <meyering@redhat.com>
48312
48313         tests: tighten some getdate tests
48314         * tests/test-getdate.c (main): Tighten tests: require equality,
48315         not just greater than.  Set TZ envvar to UTC0.
48316
48317 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48318
48319         getdate: correctly interpret "next monday" when run on a Monday
48320         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48321         that e.g., "next tues" (when run on a tuesday) results in a date
48322         that is one week in the future, and not today's date.
48323         I.e., add a week when the wday is the same as the current one.
48324         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48325         and earlier by Martin Bernreuther and Jan Minář.
48326         * tests/test-getdate.c (main): Check that "next DAY" is always in
48327         the future and that "last DAY" is always in the past.
48328
48329 2009-05-02  Jim Meyering  <meyering@redhat.com>
48330
48331         build: ensure that a release build fails when a submodule is unclean
48332         * top/maint.mk (no-submodule-changes): New rule.
48333         (alpha beta major): Depend on it.
48334
48335 2009-05-02  Bruno Haible  <bruno@clisp.org>
48336
48337         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48338         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48339         shell variable gl_fnmatch_required to detect which variant is
48340         requested.
48341         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48342         gl_FUNC_FNMATCH_POSIX.
48343         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48344         exclude fnmatch-posix.
48345
48346 2009-05-02  Bruno Haible  <bruno@clisp.org>
48347
48348         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48349         * modules/mbsrtowcs (License): Change to LGPLv2+.
48350         * modules/strnlen1 (License): Likewise.
48351         Reported by Simon Josefsson.
48352
48353 2009-05-02  Bruno Haible  <bruno@clisp.org>
48354
48355         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48356         "cross".
48357         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48358         gnulib-tool was called with option --source-base=lib.
48359
48360 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48361
48362         Use automake *-local hooks without commands, for extensibility.
48363         * modules/localcharset (Makefile.am): Rename install-exec-local
48364         rule to install-exec-localcharset, and make it a prerequisite of
48365         install-exec-local.  Likewise, rename the uninstall-local rule to
48366         uninstall-localcharset, and make it a prerequisite of the former.
48367
48368 2009-05-01  Bruno Haible  <bruno@clisp.org>
48369
48370         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48371         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48372         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48373         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48374         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48375         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48376         m4/locale-zh.m4, m4/codeset.m4.
48377
48378         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48379         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48380         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48381         m4/locale-zh.m4.
48382
48383         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48384         REPLACE_WCRTOMB if mbstate_t must be replaced.
48385         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48386         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48387
48388 2009-05-01  Bruno Haible  <bruno@clisp.org>
48389
48390         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48391         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48392         dngettext, dcngettext, textdomain, bindtextdomain,
48393         bind_textdomain_codeset): Undefine before redefining.
48394
48395 2009-04-30  Bruno Haible  <bruno@clisp.org>
48396
48397         Fix bug introduced on 2009-04-25.
48398         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48399         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48400         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48401         is defined.
48402         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48403         is defined.
48404         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48405         is defined.
48406         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48407
48408 2009-04-28  Bruno Haible  <bruno@clisp.org>
48409
48410         Comment tweaks.
48411         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48412         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48413         * lib/unicase.h (u*_casexfrm): Likewise.
48414         Reported by Paolo Bonzini.
48415
48416 2009-04-28  Bruno Haible  <bruno@clisp.org>
48417
48418         Fix a compilation error.
48419         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48420         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48421         Reported by Jim Meyering.
48422
48423 2009-04-27  Bruno Haible  <bruno@clisp.org>
48424
48425         New module 'libunistring'.
48426         * modules/libunistring: New file.
48427         * m4/libunistring.m4: New file.
48428         * MODULES.html.sh (Unicode string functions): Add it.
48429
48430 2009-04-27  Eric Blake  <ebb9@byu.net>
48431
48432         maint.mk: allow package-specific header to provide <config.h>
48433         * top/maint.mk (sc_require_config_h): New variable.
48434         (sc_require_config_h, sc_require_config_h_first): Use it.
48435
48436 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48437
48438         * top/maint.mk (sc_avoid_if_before_free): Except
48439         useless-if-before-free script.
48440
48441 2009-04-27  Eric Blake  <ebb9@byu.net>
48442
48443         maintainer-makefile: depend on all required helper scripts
48444         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48445         useless-if-before-free.
48446         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48447         version, rather than assuming gnulib checkout is available.
48448         Reported by Simen Josefsson.
48449
48450 2009-04-26  Bruno Haible  <bruno@clisp.org>
48451
48452         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48453         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48454         "../" or "..".
48455
48456 2009-04-26  Bruno Haible  <bruno@clisp.org>
48457
48458         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48459         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48460         AC_LIB_HAVE_LINKFLAGS.
48461
48462 2009-04-26  Bruno Haible  <bruno@clisp.org>
48463
48464         Simplify calling convention of u*_conv_from_encoding.
48465         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48466         u32_conv_from_encoding): Expect a resultbuf argument and return the
48467         result directly as a pointer.
48468         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48469         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48470         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48471         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48472         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48473         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48474         Update.
48475         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48476         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48477         * lib/vasnprintf.c (VASNPRINTF): Update.
48478         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48479         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48480         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48481         * NEWS: Mention the change.
48482
48483 2009-04-26  Bruno Haible  <bruno@clisp.org>
48484
48485         Simplify calling convention of u*_conv_to_encoding.
48486         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48487         u32_conv_to_encoding): Expect a resultbuf argument and return the
48488         result directly as a pointer.
48489         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48490         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48491         freeing scaled_offsets if mem_iconveha failed.
48492         * lib/unicase/u-casexfrm.h (FUNC): Update.
48493         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48494         * lib/vasnprintf.c (VASNPRINTF): Update.
48495         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48496         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48497         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48498         * NEWS: Mention the change.
48499
48500 2009-04-26  Bruno Haible  <bruno@clisp.org>
48501
48502         Avoid test failures on AIX and OSF/1.
48503         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48504         malloc(0).
48505         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48506         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48507         Likewise.
48508         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48509         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48510         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48511         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48512         * doc/posix-functions/malloc.texi: Document the portability problem
48513         related to malloc(0).
48514
48515 2009-04-26  Bruno Haible  <bruno@clisp.org>
48516
48517         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48518         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48519         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48520
48521 2009-04-25  Bruno Haible  <bruno@clisp.org>
48522
48523         Avoid link error when creating a namespace clean library.
48524         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48525         as macro with arguments if already defined as an alias.
48526         * lib/signbitf.c (gl_signbitf): Don't undefine.
48527         * lib/signbitd.c (gl_signbitd): Don't undefine.
48528         * lib/signbitl.c (gl_signbitl): Don't undefine.
48529
48530 2009-04-25  Jim Meyering  <meyering@redhat.com>
48531
48532         vc-list-files: fix another quoting bug
48533         * build-aux/vc-list-files: Avoid sed backslash expansion
48534         of pathological directory names.
48535
48536 2009-04-25  Eric Blake  <ebb9@byu.net>
48537
48538         vc-list-files: fix shell quoting error
48539         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48540         timestamp.
48541
48542 2009-04-25  Jim Meyering  <meyering@redhat.com>
48543
48544         vc-list-files: restore lost functionality with subdir argument
48545         * build-aux/vc-list-files: When given a non-"." sub-directory
48546         argument, substitute the $dir/ prefix back onto each resulting name.
48547         Otherwise, coreutils' root_tests check would fail.
48548
48549 2009-04-24  Eric Blake  <ebb9@byu.net>
48550
48551         vc-list-files: ignore git symlinks
48552         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48553         than ls-files, to ignore git symlinks.
48554
48555         maint.mk: import improvements from m4
48556         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48557         (move_if_change): Delete unused macro.
48558         (news-date-check, vc-diff-check): Support VPATH builds.
48559         (announcement): Likewise.  Split --bootstrap-tools list...
48560         (boostrap-tools): ...into separate list, which can be overridden
48561         in cfg.mk.
48562         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48563         requiring dependency on useless-if-before-free module.
48564         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48565         Support VPATH builds.
48566
48567 2009-04-24  Jim Meyering  <meyering@redhat.com>
48568
48569         maint.mk: remove coreutils-specific rules and variables
48570         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48571         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48572         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48573
48574         maint.mk: remove obsolete rule
48575         * top/maint.mk (rel-check): Remove rule.
48576         (WGET, WGETFLAGS): Remove now-unused variables.
48577
48578 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48579
48580         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48581         consistency.
48582
48583         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48584         '$(PATH_SEPARATOR)' instead of ':'.
48585
48586 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48587
48588         * lib/getopt1.c (main): Use 'const' for static array.
48589
48590 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48591
48592         * top/maint.mk: Sync with coreutils.
48593         * NEWS: Explain incompatibilities.
48594
48595 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48596             Bruno Haible  <bruno@clisp.org>
48597
48598         Fix cross-compilation results.
48599         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48600         statement, as third argument of AC_TRY_RUN.
48601         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48602         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48603         Likewise.
48604         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48605         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48606         Likewise.
48607         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48608         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48609         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48610
48611 2009-04-20  Bruno Haible  <bruno@clisp.org>
48612
48613         Avoid test failure on mingw.
48614         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48615
48616 2009-04-20  Bruno Haible  <bruno@clisp.org>
48617
48618         Avoid compilation error on mingw.
48619         * modules/localename-tests (Depends-on): Add locale.
48620
48621 2009-04-19  Bruno Haible  <bruno@clisp.org>
48622
48623         Support for building a shared library on Windows platforms.
48624         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48625         (main): Test the presence of UNINORM_NFC here.
48626         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48627         (main): Test the presence of UNINORM_NFD here.
48628         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48629         (main): Test the presence of UNINORM_NFKC here.
48630         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48631         (main): Test the presence of UNINORM_NFKD here.
48632
48633 2009-04-19  Bruno Haible  <bruno@clisp.org>
48634
48635         Avoid a compiler warning.
48636         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48637         Change type of variable 'sequence'.
48638
48639 2009-04-19  Bruno Haible  <bruno@clisp.org>
48640
48641         * modules/configmake (Makefile.am): When the contents of configmake.h
48642         does not change, arrange to preserve its modification time.
48643
48644 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48645
48646         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48647         gettext domain.
48648
48649 2009-04-16  Jim Meyering  <meyering@redhat.com>
48650
48651         useless-if-before-free: improve conversion code
48652         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48653         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48654
48655 2009-04-14  Bruno Haible  <bruno@clisp.org>
48656
48657         * modules/fcntl (Depends-on): Add extensions.
48658         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48659
48660 2009-04-12  Ben Pfaff  <blp@gnu.org>
48661
48662         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48663         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48664
48665 2009-03-20  Ben Pfaff  <blp@gnu.org>
48666
48667         Make rename replace existing destinations on Windows.
48668         * m4/rename.m4: Add test for Mingw.
48669         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48670         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48671         * doc/posix-functions/rename.texi: Document.
48672
48673 2009-04-10  Bruno Haible  <bruno@clisp.org>
48674
48675         New include file "iconveh.h".
48676         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48677         * lib/striconveh.h: Include it.
48678         (enum iconv_ilseq_handler): Remove definition.
48679         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48680         striconveh.h.
48681         * lib/striconveha.c: Include striconveh.h.
48682         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48683         * modules/striconveh (Files): Add lib/iconveh.h.
48684         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48685         lib/striconveh.h.
48686
48687 2009-04-10  Bruno Haible  <bruno@clisp.org>
48688
48689         * lib/uniconv.h: Update comment.
48690
48691 2009-04-10  Bruno Haible  <bruno@clisp.org>
48692
48693         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48694         always.
48695         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48696         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48697         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48698         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48699         "unistring-notinline.h", so that the function gets defined always.
48700         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48701         * lib/unistr/u8-uctomb.c: Likewise.
48702         * lib/unistr/u16-mbtouc.c: Likewise.
48703         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48704         * lib/unistr/u16-uctomb.c: Likewise.
48705         * lib/unistr/u32-mbtouc.c: Likewise.
48706         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48707         * lib/unistr/u32-uctomb.c: Likewise.
48708
48709 2009-04-10  Bruno Haible  <bruno@clisp.org>
48710
48711         Mark 'utime' obsolete.
48712         * modules/utime (Status, Notice): New sections.
48713         Suggested by Jim Meyering.
48714
48715         Fix cross-compile guess for utime test.
48716         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48717         autoconf.
48718         * doc/posix-functions/utime.texi: Give more precisions.
48719         Reported by Jan <ipif@ymail.com>.
48720
48721 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48722
48723         filevercmp: correct today's change
48724         * lib/filevercmp.c: Also handle coreutils' test inputs.
48725         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48726
48727         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48728         for reporting it.
48729         * lib/filevercmp.c: Special handle for "", "." and "..".
48730         * tests/test-filevercmp.c: Enlarge the set suite.
48731
48732 2009-04-07  Jim Meyering  <meyering@redhat.com>
48733
48734         useless-if-before-free: show how to remove braced useless free, too
48735         * build-aux/useless-if-before-free: still only in a comment, though.
48736
48737 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48738
48739         maint.mk: import changes to syntax-check macros from coreutils
48740         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48741         Use them in the relevant macros.
48742
48743 2009-04-06  Bruno Haible  <bruno@clisp.org>
48744
48745         Fix unportable use of bit-fields.
48746         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48747         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48748         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48749
48750 2009-04-06  Bruno Haible  <bruno@clisp.org>
48751
48752         Avoid test failures on AIX and OSF/1.
48753         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48754         that malloc(0) = NULL.
48755         * tests/unicase/test-u8-tolower.c (check): Likewise.
48756         * tests/unicase/test-u8-totitle.c (check): Likewise.
48757         * tests/unicase/test-u8-toupper.c (check): Likewise.
48758         * tests/unicase/test-u16-casefold.c (check): Likewise.
48759         * tests/unicase/test-u16-tolower.c (check): Likewise.
48760         * tests/unicase/test-u16-totitle.c (check): Likewise.
48761         * tests/unicase/test-u16-toupper.c (check): Likewise.
48762         * tests/unicase/test-u32-casefold.c (check): Likewise.
48763         * tests/unicase/test-u32-tolower.c (check): Likewise.
48764         * tests/unicase/test-u32-totitle.c (check): Likewise.
48765         * tests/unicase/test-u32-toupper.c (check): Likewise.
48766         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48767         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48768         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48769         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48770         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48771         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48772         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48773         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48774         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48775         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48776         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48777         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48778
48779 2009-04-05  Bruno Haible  <bruno@clisp.org>
48780
48781         Work around an autoconf limitation.
48782         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48783         comment line if it would be longer than 3 KB.
48784
48785 2009-04-05  Bruno Haible  <bruno@clisp.org>
48786
48787         Avoid test failure with libiconv-1.13.
48788         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48789         of the expected test results.
48790
48791 2009-04-05  Bruno Haible  <bruno@clisp.org>
48792
48793         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48794         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48795         that it should be installed.
48796
48797 2009-04-05  Bruno Haible  <bruno@clisp.org>
48798
48799         * gnulib-tool: New option --copy-file.
48800         (func_usage): Document it.
48801         (func_dest_tmpfilename): Moved out of func_import.
48802         (func_add_file, func_update_file): New functions, extracted from
48803         func_import.
48804         (func_import): Update.
48805
48806 2009-04-05  Karl Berry  <karl@gnu.org>
48807
48808         * README: prominently mention gnulib-tool.
48809         Rearrange sections so getting the code is near the top.
48810
48811 2009-04-05  Bruno Haible  <bruno@clisp.org>
48812
48813         * lib/unicase.h: Mention u*_cmp2.
48814         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48815         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48816         * lib/unicase/ulc-casecmp.c: Likewise.
48817         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48818         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48819         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48820         unistr/u8-cmp.
48821         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48822         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48823         unistr/u16-cmp.
48824         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48825         unistr/u32-cmp.
48826
48827         * lib/uninorm.h: Mention u*_cmp2.
48828         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48829         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48830         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48831         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48832         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48833         unistr/u8-cmp.
48834         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48835         unistr/u16-cmp.
48836         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48837         unistr/u32-cmp.
48838
48839         New module 'unistr/u32-cmp2'.
48840         * lib/unistr/u32-cmp2.c: New file.
48841         * modules/unistr/u32-cmp2: New file.
48842
48843         New module 'unistr/u16-cmp2'.
48844         * lib/unistr/u16-cmp2.c: New file.
48845         * modules/unistr/u16-cmp2: New file.
48846
48847         New module 'unistr/u8-cmp2'.
48848         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48849         * lib/unistr/u8-cmp2.c: New file.
48850         * lib/unistr/u-cmp2.h: New file.
48851         * modules/unistr/u8-cmp2: New file.
48852
48853 2009-04-05  Bruno Haible  <bruno@clisp.org>
48854
48855         * lib/unictype.h (uc_property_is_valid): New macro.
48856         * tests/unictype/test-pr_byname.c (main): Use it.
48857
48858         * lib/unistr.h: Doc fixes.
48859         * lib/uniconv.h: Doc fixes.
48860         * lib/unictype.h: Doc fixes.
48861
48862 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48863
48864         Port coreutils 7.2 to Solaris 8.
48865
48866         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48867         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48868         for Solaris 8.  This is a bit of a hack, as it means it's the
48869         caller's responsibility to add -lnsl if needed, but most likely it
48870         won't be needed since only getaddrinfo uses this and getaddrinfo
48871         isn't needed on Solaris 8.
48872
48873         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48874         problem to Solaris 8 encountered with coreutils 7.2, which
48875         resulted in a message "fnmatch.c:292: warning: passing argument 4
48876         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48877         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48878
48879 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48880
48881         * m4/ld-version-script.m4: Add FIXME comment.
48882
48883 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48884
48885         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48886         SOVERSION variable.
48887
48888 2009-04-02  Bruno Haible  <bruno@clisp.org>
48889
48890         * Makefile (info, html, dvi, pdf): Combine the rules.
48891         Suggested by Jim Meyering.
48892
48893 2009-04-01  Bruno Haible  <bruno@clisp.org>
48894
48895         * Makefile (info, html, dvi, pdf): New targets.
48896         Reported by Reuben Thomas <rrt@sc3d.org>.
48897
48898 2009-04-01  Bruno Haible  <bruno@clisp.org>
48899
48900         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48901         can be put into PATH.
48902         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48903
48904 2009-04-01  Bruno Haible  <bruno@clisp.org>
48905
48906         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48907
48908 2009-04-01  Bruno Haible  <bruno@clisp.org>
48909
48910         Rename module 'visibility'.
48911         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48912         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48913         * doc/gnulib.texi: Update.
48914         * MODULES.html.sh (Misc): Update.
48915         * NEWS: Mention the change.
48916
48917 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48918
48919         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48920         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48921         Eric Blake <ebb9@byu.net> for review.
48922         * MODULES.html.sh: Add lib-msvc-compat.
48923         * doc/gnulib.texi: Link to new section.
48924         * m4/ld-output-def.m4: New file.
48925         * doc/ld-output-def.texi: New file.
48926
48927 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48928
48929         Rename ld-version-script to lib-symbol-versions.  Suggested by
48930         Bruno Haible <bruno@clisp.org>.
48931         * modules/ld-version-script: Renamed to lib-symbol-versions.
48932         * doc/ld-version-script.texi: Fix module name.
48933         * MODULES.html.sh: Add lib-symbol-versions.
48934
48935 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48936
48937         * modules/u64-tests: New file.
48938         * tests/test-u64.c: New file.
48939
48940 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48941
48942         * MODULES.html.sh: Mention u64.
48943         * modules/u64: New module.
48944         * modules/crypto/sha512: Depend on u64 module instead of providing
48945         u64.h.
48946
48947 2009-03-27  Eric Blake  <ebb9@byu.net>
48948
48949         test-strerror: make debugging EAI_SYSTEM easier
48950         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48951         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48952         failure was EAI_SYSTEM.
48953
48954 2009-03-25  Bruno Haible  <bruno@clisp.org>
48955
48956         Fix a problem with --enable-relocatable on Solaris 7.
48957         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48958         since 2008-02-24.
48959
48960 2009-03-25  Eric Blake  <ebb9@byu.net>
48961
48962         test-sockets: avoid gcc warning
48963         * tests/test-sockets.c (main): Silence compiler warning.
48964
48965 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48966
48967         New modules nproc, pthread, contributed by Glen Lenker.
48968
48969         * MODULES.html.sh: Add pthread, nproc.
48970         * lib/nproc.c: New file.
48971         * lib/nproc.h: New file.
48972         * lib/pthread.in.h: New file.
48973         * m4/pthread.m4: New file.
48974         * modules/nproc: New file.
48975         * modules/pthread: New file.
48976
48977 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48978
48979         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48980         New variable.
48981
48982 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48983
48984         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48985         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48986         * tests/test-filevercmp.c: Add tests for backup suffixes.
48987
48988 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48989
48990         * modules/stdlib (Depends-on): Add stdint, needed when defining
48991         struct random_data on, for example, HP-UX 10.20.  Reported by
48992         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48993
48994 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48995
48996         * lib/readline.c (readline): Call fflush on stdout after printing
48997         prompt.
48998
48999 2009-03-20  Bruno Haible  <bruno@clisp.org>
49000
49001         Remove dependency from 'close' module to -lws2_32 on native Windows.
49002         * lib/close-hook.h: New file.
49003         * lib/close-hook.c: New file.
49004         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49005         w32sock.h.
49006         (_gl_close_fd_maybe_socket): Remove function.
49007         (rpl_close): Invoke execute_all_close_hooks instead of
49008         _gl_close_fd_maybe_socket.
49009         * lib/sockets.c: Include close-hook.h, w32sock.h.
49010         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49011         (close_sockets_hook): New variable.
49012         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49013         (gl_sockets_cleanup): Unregister it.
49014         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49015         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49016         * modules/close-hook: New file.
49017         * modules/close (Files): Remove lib/w32sock.h.
49018         (Depends-on): Add close-hook.
49019         (Link): Remove section.
49020         * modules/sockets (Files): Add lib/w32sock.h.
49021         (Depends-on): Add close-hook.
49022         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49023         invocation.
49024         * NEWS: Mention that LIB_CLOSE is gone.
49025
49026 2009-03-23  Eric Blake  <ebb9@byu.net>
49027
49028         signal-tests: test previous patch
49029         * tests/test-signal.c: New file.
49030         * modules/signal-tests: Likewise.
49031
49032         signal.h: always support 'volatile sig_atomic_t'
49033         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49034         (gl_SIGNAL_H_DEFAULTS): Add a default.
49035         * modules/signal (Makefile.am): Substitute if needed.
49036         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49037         users can blindly add volatile.
49038         * doc/posix-headers/signal.texi (signal.h): Document it.
49039         Reported by Matthew Woehlke.
49040
49041 2009-03-23  Jim Meyering  <meyering@redhat.com>
49042
49043         pathmax: PATH_MAX: use pathconf only when available
49044         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49045         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49046         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49047         This avoids a link failure in a PSP cross-compilation environment
49048         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49049
49050         * lib/vasnprintf.c (divide): Fix typo in comment.
49051
49052 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49053
49054         * gnulib-tool (func_filter_filelist): Fix comment.
49055
49056 2009-03-20  Bruno Haible  <bruno@clisp.org>
49057
49058         Make sockets.h self-contained.
49059         * lib/sockets.c: Include sockets.h first.
49060         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49061
49062 2009-03-19  Eric Blake  <ebb9@byu.net>
49063
49064         doc: mention more functions added in cygwin 1.7.0
49065         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49066         addition.
49067         * doc/posix-functions/log2f.texi: Likewise.
49068
49069 2009-03-19  Jim Meyering  <meyering@redhat.com>
49070
49071         fsusage: avoid syntax error due to statement-before-declaration
49072         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49073         after all declarations.  Reported by Matthew Woehlke in
49074         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49075
49076 2009-03-18  Eric Blake  <ebb9@byu.net>
49077
49078         build-aux/compile: sync from automake
49079         * build-aux/compile: New file, from automake.
49080         * config/srclist.txt: Mention build-aux/compile.
49081
49082 2009-03-17  Bruno Haible  <bruno@clisp.org>
49083
49084         * lib/git-merge-changelog.c: Fix typo in comment.
49085         Reported by Reuben Thomas <rrt@sc3d.org>.
49086
49087 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49088
49089         * m4/regex.m4: update and improve help for
49090         --without-included-regex.
49091
49092 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49093
49094         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49095         failure on missing include files.
49096
49097 2009-03-17  Eric Blake  <ebb9@byu.net>
49098
49099         doc: mention more functions added in cygwin 1.7.0
49100         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49101         addition.
49102         * doc/posix-functions/fwscanf.texi: Likewise.
49103         * doc/posix-functions/swprintf.texi: Likewise.
49104         * doc/posix-functions/swscanf.texi: Likewise.
49105         * doc/posix-functions/vfwprintf.texi: Likewise.
49106         * doc/posix-functions/vfwscanf.texi: Likewise.
49107         * doc/posix-functions/vswprintf.texi: Likewise.
49108         * doc/posix-functions/vswscanf.texi: Likewise.
49109         * doc/posix-functions/vwprintf.texi: Likewise.
49110         * doc/posix-functions/vwscanf.texi: Likewise.
49111         * doc/posix-functions/wcscasecmp.texi: Likewise.
49112         * doc/posix-functions/wcsdup.texi: Likewise.
49113         * doc/posix-functions/wcsftime.texi: Likewise.
49114         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49115         * doc/posix-functions/wprintf.texi: Likewise.
49116         * doc/posix-functions/wscanf.texi: Likewise.
49117         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49118
49119 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49120
49121         maint.mk: really add $(AM_MAKEFLAGS)
49122         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49123         was inadvertently omitted in the last commit.
49124         Spotted by Bruno Haible.
49125
49126         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49127         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49128         $(AM_MAKEFLAGS)' rather than plain `make'.
49129
49130         gnulib-tool: execute $MAKE not make
49131         * gnulib-tool: Default $MAKE to 'make'.
49132         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49133         than make.  Initialize $MAKE in the do-autobuild script.
49134
49135         gnulib-tool: use $MAKE not make in generated files
49136         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49137         make, in generated files.  Initialize $MAKE in the do-autobuild
49138         script.
49139
49140         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49141
49142         GNUmakefile: disable parallelism only for multiple, recursive targets
49143         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49144         additions in the Makefile.
49145         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49146         by Automake.
49147         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49148         are listed on the command line and at least one of them is
49149         listed in $(ALL_RECURSIVE_TARGETS).
49150
49151 2009-03-14  Bruno Haible  <bruno@clisp.org>
49152
49153         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49154         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49155         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49156         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49157         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49158         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49159         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49160         unistr/u8-uctomb.
49161         * modules/unistr/u8-strchr (Depends-on): Likewise.
49162         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49163         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49164         unistr/u16-uctomb.
49165         * modules/unistr/u16-strchr (Depends-on): Likewise.
49166         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49167
49168 2009-03-12  Bruno Haible  <bruno@clisp.org>
49169
49170         Work around select() bug on Interix 3.5.
49171         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49172         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49173         * m4/select.m4: New file.
49174         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49175         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49176         * modules/select (Files): Add m4/select.m4.
49177         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49178         * modules/nanosleep (Depends-on): Add select.
49179         * modules/poll (Depends-on): Likewise.
49180         * doc/posix-functions/select.texi: Mention the Interix bug.
49181         Reported by Markus Duft <mduft@gentoo.org>.
49182
49183         * lib/select.c: Renamed from lib/winsock-select.c.
49184         * modules/select (Files): Add lib/select.c, remove
49185         lib/winsock-select.c.
49186         (configure.ac): Update.
49187
49188 2009-03-12  Jim Meyering  <meyering@redhat.com>
49189
49190         avoid gcc warnings about unused macro definitions
49191         * lib/readtokens.c (STREQ): Remove unused definition.
49192         * lib/xmalloc.c (SIZE_MAX): Likewise.
49193         * lib/openat-die.c (N_): Likewise.
49194         * lib/mountlist.c (SIZE_MAX): Remove definition.
49195         Instead, include <stdint.h>.
49196         * lib/readutmp.c: Likewise.
49197         * modules/readutmp (Depends-on): Add stdint.
49198         * modules/mountlist (Depends-on): Add stdint.
49199         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49200
49201 2009-03-10  Bruno Haible  <bruno@clisp.org>
49202
49203         Tests for module 'mbmemcasecoll'.
49204         * modules/mbmemcasecoll-tests: New file.
49205         * tests/test-mbmemcasecoll1.sh: New file.
49206         * tests/test-mbmemcasecoll2.sh: New file.
49207         * tests/test-mbmemcasecoll3.sh: New file.
49208         * tests/test-mbmemcasecoll.c: New file.
49209
49210         New module 'mbmemcasecoll'.
49211         * lib/mbmemcasecoll.h: New file.
49212         * lib/mbmemcasecoll.c: New file.
49213         * modules/mbmemcasecoll: New file.
49214
49215         * tests/test-mbmemcasecmp.h: New file, extracted from
49216         tests/test-mbmemcasecmp.c.
49217         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49218         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49219         (main): Update.
49220         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49221
49222 2009-03-09  Bruno Haible  <bruno@clisp.org>
49223
49224         Tests for module 'mbmemcasecmp'.
49225         * modules/mbmemcasecmp-tests: New file.
49226         * tests/test-mbmemcasecmp1.sh: New file.
49227         * tests/test-mbmemcasecmp2.sh: New file.
49228         * tests/test-mbmemcasecmp3.sh: New file.
49229         * tests/test-mbmemcasecmp.c: New file.
49230
49231         New module 'mbmemcasecmp'.
49232         * lib/mbmemcasecmp.h: New file.
49233         * lib/mbmemcasecmp.c: New file.
49234         * modules/mbmemcasecmp: New file.
49235
49236 2009-03-09  Bruno Haible  <bruno@clisp.org>
49237
49238         Tests for module 'unicase/ulc-casecoll'.
49239         * modules/unicase/ulc-casecoll-tests: New file.
49240         * tests/unicase/test-ulc-casecoll1.sh: New file.
49241         * tests/unicase/test-ulc-casecoll2.sh: New file.
49242         * tests/unicase/test-ulc-casecoll.c: New file.
49243
49244         New module 'unicase/ulc-casecoll'.
49245         * lib/unicase.h (ulc_casecoll): New declaration.
49246         * lib/unicase/ulc-casecoll.c: New file.
49247         * modules/unicase/ulc-casecoll: New file.
49248
49249         New module 'unicase/ulc-casexfrm'.
49250         * lib/unicase.h (ulc_casexfrm): New declaration.
49251         * lib/unicase/ulc-casexfrm.c: New file.
49252         * modules/unicase/ulc-casexfrm: New file.
49253
49254 2009-03-09  Bruno Haible  <bruno@clisp.org>
49255
49256         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49257         invocations.
49258
49259         * m4/mbscasecmp.m4: Remove file.
49260         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49261         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49262
49263         * m4/mbscasestr.m4: Remove file.
49264         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49265         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49266
49267         * m4/mbschr.m4: Remove file.
49268         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49269         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49270
49271         * m4/mbscspn.m4: Remove file.
49272         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49273         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49274
49275         * m4/mbslen.m4: Remove file.
49276         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49277         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49278
49279         * m4/mbsncasecmp.m4: Remove file.
49280         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49281         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49282
49283         * m4/mbsnlen.m4: Remove file.
49284         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49285         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49286
49287         * m4/mbspbrk.m4: Remove file.
49288         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49289         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49290
49291         * m4/mbspcasecmp.m4: Remove file.
49292         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49293         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49294
49295         * m4/mbsrchr.m4: Remove file.
49296         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49297         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49298
49299         * m4/mbssep.m4: Remove file.
49300         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49301         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49302
49303         * m4/mbsspn.m4: Remove file.
49304         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49305         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49306
49307         * m4/mbsstr.m4: Remove file.
49308         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49309         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49310
49311         * m4/mbstok_r.m4: Remove file.
49312         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49313         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49314
49315         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49316
49317         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49318         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49319
49320         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49321
49322 2009-03-08  Bruno Haible  <bruno@clisp.org>
49323
49324         Tests for module 'unicase/ulc-casecmp'.
49325         * modules/unicase/ulc-casecmp-tests: New file.
49326         * tests/unicase/test-ulc-casecmp1.sh: New file.
49327         * tests/unicase/test-ulc-casecmp2.sh: New file.
49328         * tests/unicase/test-ulc-casecmp.c: New file.
49329
49330         New module 'unicase/ulc-casecmp'.
49331         * lib/unicase.h (ulc_casecmp): New declaration.
49332         * lib/unicase/ulc-casecmp.c: New file.
49333         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49334         'const SRC_UNIT *'.
49335         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49336         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49337         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49338         * modules/unicase/ulc-casecmp: New file.
49339
49340         Tests for module 'unicase/u32-is-cased'.
49341         * modules/unicase/u32-is-cased-tests: New file.
49342         * tests/unicase/test-u32-is-cased.c: New file.
49343
49344         Tests for module 'unicase/u16-is-cased'.
49345         * modules/unicase/u16-is-cased-tests: New file.
49346         * tests/unicase/test-u16-is-cased.c: New file.
49347
49348         Tests for module 'unicase/u8-is-cased'.
49349         * modules/unicase/u8-is-cased-tests: New file.
49350         * tests/unicase/test-u8-is-cased.c: New file.
49351         * tests/unicase/test-is-cased.h: New file.
49352
49353         New module 'unicase/u32-is-cased'.
49354         * lib/unicase/u32-is-cased.c: New file.
49355         * modules/unicase/u32-is-cased: New file.
49356
49357         New module 'unicase/u16-is-cased'.
49358         * lib/unicase/u16-is-cased.c: New file.
49359         * modules/unicase/u16-is-cased: New file.
49360
49361         New module 'unicase/u8-is-cased'.
49362         * lib/unicase/u8-is-cased.c: New file.
49363         * lib/unicase/u-is-cased.h: New file.
49364         * modules/unicase/u8-is-cased: New file.
49365
49366         Tests for module 'unicase/u32-is-casefolded'.
49367         * modules/unicase/u32-is-casefolded-tests: New file.
49368         * tests/unicase/test-u32-is-casefolded.c: New file.
49369
49370         Tests for module 'unicase/u16-is-casefolded'.
49371         * modules/unicase/u16-is-casefolded-tests: New file.
49372         * tests/unicase/test-u16-is-casefolded.c: New file.
49373
49374         Tests for module 'unicase/u8-is-casefolded'.
49375         * modules/unicase/u8-is-casefolded-tests: New file.
49376         * tests/unicase/test-u8-is-casefolded.c: New file.
49377         * tests/unicase/test-is-casefolded.h: New file.
49378
49379         New module 'unicase/u32-is-casefolded'.
49380         * lib/unicase/u32-is-casefolded.c: New file.
49381         * modules/unicase/u32-is-casefolded: New file.
49382
49383         New module 'unicase/u16-is-casefolded'.
49384         * lib/unicase/u16-is-casefolded.c: New file.
49385         * modules/unicase/u16-is-casefolded: New file.
49386
49387         New module 'unicase/u8-is-casefolded'.
49388         * lib/unicase/u8-is-casefolded.c: New file.
49389         * modules/unicase/u8-is-casefolded: New file.
49390
49391         Tests for module 'unicase/u32-is-titlecase'.
49392         * modules/unicase/u32-is-titlecase-tests: New file.
49393         * tests/unicase/test-u32-is-titlecase.c: New file.
49394
49395         Tests for module 'unicase/u16-is-titlecase'.
49396         * modules/unicase/u16-is-titlecase-tests: New file.
49397         * tests/unicase/test-u16-is-titlecase.c: New file.
49398
49399         Tests for module 'unicase/u8-is-titlecase'.
49400         * modules/unicase/u8-is-titlecase-tests: New file.
49401         * tests/unicase/test-u8-is-titlecase.c: New file.
49402         * tests/unicase/test-is-titlecase.h: New file.
49403
49404         New module 'unicase/u32-is-titlecase'.
49405         * lib/unicase/u32-is-titlecase.c: New file.
49406         * modules/unicase/u32-is-titlecase: New file.
49407
49408         New module 'unicase/u16-is-titlecase'.
49409         * lib/unicase/u16-is-titlecase.c: New file.
49410         * modules/unicase/u16-is-titlecase: New file.
49411
49412         New module 'unicase/u8-is-titlecase'.
49413         * lib/unicase/u8-is-titlecase.c: New file.
49414         * modules/unicase/u8-is-titlecase: New file.
49415
49416         Tests for module 'unicase/u32-is-lowercase'.
49417         * modules/unicase/u32-is-lowercase-tests: New file.
49418         * tests/unicase/test-u32-is-lowercase.c: New file.
49419
49420         Tests for module 'unicase/u16-is-lowercase'.
49421         * modules/unicase/u16-is-lowercase-tests: New file.
49422         * tests/unicase/test-u16-is-lowercase.c: New file.
49423
49424         Tests for module 'unicase/u8-is-lowercase'.
49425         * modules/unicase/u8-is-lowercase-tests: New file.
49426         * tests/unicase/test-u8-is-lowercase.c: New file.
49427         * tests/unicase/test-is-lowercase.h: New file.
49428
49429         New module 'unicase/u32-is-lowercase'.
49430         * lib/unicase/u32-is-lowercase.c: New file.
49431         * modules/unicase/u32-is-lowercase: New file.
49432
49433         New module 'unicase/u16-is-lowercase'.
49434         * lib/unicase/u16-is-lowercase.c: New file.
49435         * modules/unicase/u16-is-lowercase: New file.
49436
49437         New module 'unicase/u8-is-lowercase'.
49438         * lib/unicase/u8-is-lowercase.c: New file.
49439         * modules/unicase/u8-is-lowercase: New file.
49440
49441         Tests for module 'unicase/u32-is-uppercase'.
49442         * modules/unicase/u32-is-uppercase-tests: New file.
49443         * tests/unicase/test-u32-is-uppercase.c: New file.
49444
49445         Tests for module 'unicase/u16-is-uppercase'.
49446         * modules/unicase/u16-is-uppercase-tests: New file.
49447         * tests/unicase/test-u16-is-uppercase.c: New file.
49448
49449         Tests for module 'unicase/u8-is-uppercase'.
49450         * modules/unicase/u8-is-uppercase-tests: New file.
49451         * tests/unicase/test-u8-is-uppercase.c: New file.
49452         * tests/unicase/test-is-uppercase.h: New file.
49453
49454         New module 'unicase/u32-is-uppercase'.
49455         * lib/unicase/u32-is-uppercase.c: New file.
49456         * modules/unicase/u32-is-uppercase: New file.
49457
49458         New module 'unicase/u16-is-uppercase'.
49459         * lib/unicase/u16-is-uppercase.c: New file.
49460         * modules/unicase/u16-is-uppercase: New file.
49461
49462         New module 'unicase/u8-is-uppercase'.
49463         * lib/unicase/u8-is-uppercase.c: New file.
49464         * modules/unicase/u8-is-uppercase: New file.
49465
49466         New module 'unicase/u32-is-invariant'.
49467         * lib/unicase/u32-is-invariant.c: New file.
49468         * modules/unicase/u32-is-invariant: New file.
49469
49470         New module 'unicase/u16-is-invariant'.
49471         * lib/unicase/u16-is-invariant.c: New file.
49472         * modules/unicase/u16-is-invariant: New file.
49473
49474         New module 'unicase/u8-is-invariant'.
49475         * lib/unicase/u8-is-invariant.c: New file.
49476         * lib/unicase/invariant.h: New file.
49477         * lib/unicase/u-is-invariant.h: New file.
49478         * modules/unicase/u8-is-invariant: New file.
49479
49480         Tests for module 'unicase/u32-casecoll'.
49481         * modules/unicase/u32-casecoll-tests: New file.
49482         * tests/unicase/test-u32-casecoll.c: New file.
49483
49484         Tests for module 'unicase/u16-casecoll'.
49485         * modules/unicase/u16-casecoll-tests: New file.
49486         * tests/unicase/test-u16-casecoll.c: New file.
49487
49488         Tests for module 'unicase/u8-casecoll'.
49489         * modules/unicase/u8-casecoll-tests: New file.
49490         * tests/unicase/test-u8-casecoll.c: New file.
49491
49492         New module 'unicase/u32-casecoll'.
49493         * lib/unicase/u32-casecoll.c: New file.
49494         * modules/unicase/u32-casecoll: New file.
49495
49496         New module 'unicase/u16-casecoll'.
49497         * lib/unicase/u16-casecoll.c: New file.
49498         * modules/unicase/u16-casecoll: New file.
49499
49500         New module 'unicase/u8-casecoll'.
49501         * lib/unicase/u8-casecoll.c: New file.
49502         * lib/unicase/u-casecoll.h: New file.
49503         * modules/unicase/u8-casecoll: New file.
49504
49505         New module 'unicase/u32-casexfrm'.
49506         * lib/unicase/u32-casexfrm.c: New file.
49507         * modules/unicase/u32-casexfrm: New file.
49508
49509         New module 'unicase/u16-casexfrm'.
49510         * lib/unicase/u16-casexfrm.c: New file.
49511         * modules/unicase/u16-casexfrm: New file.
49512
49513         New module 'unicase/u8-casexfrm'.
49514         * lib/unicase/u8-casexfrm.c: New file.
49515         * lib/unicase/u-casexfrm.h: New file.
49516         * modules/unicase/u8-casexfrm: New file.
49517
49518         Tests for module 'unicase/u32-casecmp'.
49519         * modules/unicase/u32-casecmp-tests: New file.
49520         * tests/unicase/test-u32-casecmp.c: New file.
49521
49522         Tests for module 'unicase/u16-casecmp'.
49523         * modules/unicase/u16-casecmp-tests: New file.
49524         * tests/unicase/test-u16-casecmp.c: New file.
49525
49526         Tests for module 'unicase/u8-casecmp'.
49527         * modules/unicase/u8-casecmp-tests: New file.
49528         * tests/unicase/test-u8-casecmp.c: New file.
49529         * tests/unicase/test-casecmp.h: New file.
49530
49531         New module 'unicase/u32-casecmp'.
49532         * lib/unicase/u32-casecmp.c: New file.
49533         * modules/unicase/u32-casecmp: New file.
49534
49535         New module 'unicase/u16-casecmp'.
49536         * lib/unicase/u16-casecmp.c: New file.
49537         * modules/unicase/u16-casecmp: New file.
49538
49539         New module 'unicase/u8-casecmp'.
49540         * lib/unicase/u8-casecmp.c: New file.
49541         * lib/unicase/u-casecmp.h: New file.
49542         * modules/unicase/u8-casecmp: New file.
49543
49544         Tests for module 'unicase/u32-casefold'.
49545         * modules/unicase/u32-casefold-tests: New file.
49546         * tests/unicase/test-u32-casefold.c: New file.
49547
49548         Tests for module 'unicase/u16-casefold'.
49549         * modules/unicase/u16-casefold-tests: New file.
49550         * tests/unicase/test-u16-casefold.c: New file.
49551
49552         Tests for module 'unicase/u8-casefold'.
49553         * modules/unicase/u8-casefold-tests: New file.
49554         * tests/unicase/test-u8-casefold.c: New file.
49555
49556         New module 'unicase/u32-casefold'.
49557         * lib/unicase/u32-casefold.c: New file.
49558         * modules/unicase/u32-casefold: New file.
49559
49560         New module 'unicase/u16-casefold'.
49561         * lib/unicase/u16-casefold.c: New file.
49562         * modules/unicase/u16-casefold: New file.
49563
49564         New module 'unicase/u8-casefold'.
49565         * lib/unicase/u8-casefold.c: New file.
49566         * lib/unicase/u-casefold.h: New file.
49567         * modules/unicase/u8-casefold: New file.
49568
49569         New module 'unicase/tocasefold'.
49570         * lib/unicase/casefold.h: New file.
49571         * lib/unicase/tocasefold.c: New file.
49572         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49573         * modules/unicase/tocasefold: New file.
49574
49575         Tests for module 'unicase/u32-totitle'.
49576         * modules/unicase/u32-totitle-tests: New file.
49577         * tests/unicase/test-u32-totitle.c: New file.
49578
49579         Tests for module 'unicase/u16-totitle'.
49580         * modules/unicase/u16-totitle-tests: New file.
49581         * tests/unicase/test-u16-totitle.c: New file.
49582
49583         Tests for module 'unicase/u8-totitle'.
49584         * modules/unicase/u8-totitle-tests: New file.
49585         * tests/unicase/test-u8-totitle.c: New file.
49586
49587         New module 'unicase/u32-totitle'.
49588         * lib/unicase/u32-totitle.c: New file.
49589         * modules/unicase/u32-totitle: New file.
49590
49591         New module 'unicase/u16-totitle'.
49592         * lib/unicase/u16-totitle.c: New file.
49593         * modules/unicase/u16-totitle: New file.
49594
49595         New module 'unicase/u8-totitle'.
49596         * lib/unicase/u8-totitle.c: New file.
49597         * lib/unicase/u-totitle.h: New file.
49598         * modules/unicase/u8-totitle: New file.
49599
49600         Tests for module 'unicase/u32-tolower'.
49601         * modules/unicase/u32-tolower-tests: New file.
49602         * tests/unicase/test-u32-tolower.c: New file.
49603
49604         Tests for module 'unicase/u16-tolower'.
49605         * modules/unicase/u16-tolower-tests: New file.
49606         * tests/unicase/test-u16-tolower.c: New file.
49607
49608         Tests for module 'unicase/u8-tolower'.
49609         * modules/unicase/u8-tolower-tests: New file.
49610         * tests/unicase/test-u8-tolower.c: New file.
49611
49612         New module 'unicase/u32-tolower'.
49613         * lib/unicase/u32-tolower.c: New file.
49614         * modules/unicase/u32-tolower: New file.
49615
49616         New module 'unicase/u16-tolower'.
49617         * lib/unicase/u16-tolower.c: New file.
49618         * modules/unicase/u16-tolower: New file.
49619
49620         New module 'unicase/u8-tolower'.
49621         * lib/unicase/u8-tolower.c: New file.
49622         * modules/unicase/u8-tolower: New file.
49623
49624         Tests for module 'unicase/u32-toupper'.
49625         * modules/unicase/u32-toupper-tests: New file.
49626         * tests/unicase/test-u32-toupper.c: New file.
49627
49628         Tests for module 'unicase/u16-toupper'.
49629         * modules/unicase/u16-toupper-tests: New file.
49630         * tests/unicase/test-u16-toupper.c: New file.
49631
49632         Tests for module 'unicase/u8-toupper'.
49633         * modules/unicase/u8-toupper-tests: New file.
49634         * tests/unicase/test-u8-toupper.c: New file.
49635
49636         New module 'unicase/u32-toupper'.
49637         * lib/unicase/u32-toupper.c: New file.
49638         * modules/unicase/u32-toupper: New file.
49639
49640         New module 'unicase/u16-toupper'.
49641         * lib/unicase/u16-toupper.c: New file.
49642         * modules/unicase/u16-toupper: New file.
49643
49644         New module 'unicase/u8-toupper'.
49645         * lib/unicase/u8-toupper.c: New file.
49646         * modules/unicase/u8-toupper: New file.
49647
49648         New module 'unicase/u32-casemap'.
49649         * lib/unicase/u32-casemap.c: New file.
49650         * modules/unicase/u32-casemap: New file.
49651
49652         New module 'unicase/u16-casemap'.
49653         * lib/unicase/u16-casemap.c: New file.
49654         * modules/unicase/u16-casemap: New file.
49655
49656         New module 'unicase/u8-casemap'.
49657         * lib/unicase/unicasemap.h: New file.
49658         * lib/unicase/u8-casemap.c: New file.
49659         * lib/unicase/u-casemap.h: New file.
49660         * modules/unicase/u8-casemap: New file.
49661
49662         New module 'unicase/special-casing'.
49663         * lib/unicase/special-casing.h: New file.
49664         * lib/unicase/special-casing.c: New file.
49665         * lib/unicase/special-casing-table.gperf: New file, generated by
49666         gen-uni-tables.c.
49667         * modules/unicase/special-casing: New file.
49668
49669         Tests for module 'unicase/locale-language'.
49670         * modules/unicase/locale-language-tests: New file.
49671         * tests/unicase/test-locale-language.sh: New file.
49672         * tests/unicase/test-locale-language.c: New file.
49673
49674         New module 'unicase/locale-language'.
49675         * lib/unicase/locale-language.c: New file.
49676         * lib/unicase/locale-languages.gperf: New file.
49677         * modules/unicase/locale-language: New file.
49678
49679         Generate more tables for case conversion and case folding.
49680         * lib/gen-uni-tables.c (SCC_*): New enum items.
49681         (struct special_casing_rule): New type.
49682         (casing_rules, num_casing_rules, allocated_casing_rules): New
49683         variables.
49684         (add_casing_rule, fill_casing_rules): New functions.
49685         (struct casefold_rule): New type.
49686         (casefolding_rules, num_casefolding_rules,
49687         allocated_casefolding_rules): New variables.
49688         (fill_casefolding_rules): New function.
49689         (unicode_casefold): New variable.
49690         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49691         sort_casing_rules, output_casing_rules): New functions.
49692         (main): Accept to more arguments: SpecialCasing.txt and
49693         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49694         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49695         Output mapping for casefolding.
49696
49697         * lib/unicase.h: Include stdbool.h, uninorm.h.
49698         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49699         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49700         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49701         arguments.
49702         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49703         resultp arguments.
49704         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49705         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49706         resultp arguments.
49707         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49708         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49709         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49710         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49711         declarations.
49712         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49713
49714 2009-03-08  Bruno Haible  <bruno@clisp.org>
49715
49716         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49717         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49718         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49719         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49720
49721 2009-03-07  Bruno Haible  <bruno@clisp.org>
49722
49723         Adjust u*_normcmp, u*_normcoll API.
49724         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49725         u16_normcoll, u32_normcoll): Change failure conventions.
49726         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49727         errno and return -1.
49728         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49729
49730 2009-03-07  Bruno Haible  <bruno@clisp.org>
49731
49732         Tests for module 'uninorm/u32-normcoll'.
49733         * modules/uninorm/u32-normcoll-tests: New file.
49734         * tests/uninorm/test-u32-normcoll.c: New file.
49735
49736         Tests for module 'uninorm/u16-normcoll'.
49737         * modules/uninorm/u16-normcoll-tests: New file.
49738         * tests/uninorm/test-u16-normcoll.c: New file.
49739
49740         Tests for module 'uninorm/u8-normcoll'.
49741         * modules/uninorm/u8-normcoll-tests: New file.
49742         * tests/uninorm/test-u8-normcoll.c: New file.
49743
49744 2009-03-07  Bruno Haible  <bruno@clisp.org>
49745
49746         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49747         tests/uninorm/test-u32-normcmp.c.
49748         * tests/uninorm/test-u32-normcmp.c: Include it.
49749         (test_nonascii): New function, extracted from main. Add some more
49750         tests.
49751         (main): Invoke test_ascii and test_nonascii.
49752         * modules/uninorm/u32-normcmp-tests (Files): Add
49753         tests/uninorm/test-u32-normcmp.h.
49754         (Depends-on): Remove uninorm/u32-normcmp.
49755
49756         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49757         tests/uninorm/test-u16-normcmp.c.
49758         * tests/uninorm/test-u16-normcmp.c: Include it.
49759         (test_nonascii): New function, extracted from main. Add some more
49760         tests.
49761         (main): Invoke test_ascii and test_nonascii.
49762         * modules/uninorm/u16-normcmp-tests (Files): Add
49763         tests/uninorm/test-u16-normcmp.h.
49764         (Depends-on): Remove uninorm/u16-normcmp.
49765
49766         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49767         tests/uninorm/test-u8-normcmp.c.
49768         * tests/uninorm/test-u8-normcmp.c: Include it.
49769         (test_nonascii): New function, extracted from main. Add some more
49770         tests.
49771         (main): Invoke test_ascii and test_nonascii.
49772         * modules/uninorm/u8-normcmp-tests (Files): Add
49773         tests/uninorm/test-u8-normcmp.h.
49774         (Depends-on): Remove uninorm/u8-normcmp.
49775
49776 2009-03-07  Bruno Haible  <bruno@clisp.org>
49777
49778         New module 'uninorm/u32-normcoll'.
49779         * lib/uninorm/u32-normcoll.c: New file.
49780         * modules/uninorm/u32-normcoll: New file.
49781
49782         New module 'uninorm/u16-normcoll'.
49783         * lib/uninorm/u16-normcoll.c: New file.
49784         * modules/uninorm/u16-normcoll: New file.
49785
49786         New module 'uninorm/u8-normcoll'.
49787         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49788         declarations.
49789         * lib/uninorm/u8-normcoll.c: New file.
49790         * lib/uninorm/u-normcoll.h: New file.
49791         * modules/uninorm/u8-normcoll: New file.
49792
49793         New module 'uninorm/u32-normxfrm'.
49794         * lib/uninorm/u32-normxfrm.c: New file.
49795         * modules/uninorm/u32-normxfrm: New file.
49796
49797         New module 'uninorm/u16-normxfrm'.
49798         * lib/uninorm/u16-normxfrm.c: New file.
49799         * modules/uninorm/u16-normxfrm: New file.
49800
49801         New module 'uninorm/u8-normxfrm'.
49802         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49803         declarations.
49804         * lib/uninorm/u8-normxfrm.c: New file.
49805         * lib/uninorm/u-normxfrm.h: New file.
49806         * modules/uninorm/u8-normxfrm: New file.
49807
49808 2009-03-07  Bruno Haible  <bruno@clisp.org>
49809
49810         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49811         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49812         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49813
49814 2009-03-07  Bruno Haible  <bruno@clisp.org>
49815
49816         New module 'memxfrm'.
49817         * lib/memxfrm.h: New file.
49818         * lib/memxfrm.c: New file.
49819         * modules/memxfrm: New file.
49820
49821 2009-03-07  Bruno Haible  <bruno@clisp.org>
49822
49823         New module 'memcmp2'.
49824         * lib/memcmp2.h: New file.
49825         * lib/memcmp2.c: New file.
49826         * modules/memcmp2: New file.
49827
49828 2009-03-07  Bruno Haible  <bruno@clisp.org>
49829
49830         Tests for module 'uninorm/decomposing-form'.
49831         * modules/uninorm/decomposing-form-tests: New file.
49832         * tests/uninorm/test-decomposing-form.c: New file.
49833
49834         New module 'uninorm/decomposing-form'.
49835         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49836         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49837         Add 'decomposing_variant' field.
49838         * lib/uninorm/decomposing-form.c: New file.
49839         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49840         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49841         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49842         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49843         * modules/uninorm/decomposing-form: New file.
49844         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49845         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49846
49847 2009-03-07  Bruno Haible  <bruno@clisp.org>
49848
49849         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49850         strings.
49851
49852 2009-03-06  Bruno Haible  <bruno@clisp.org>
49853
49854         Tests for module 'uninorm/u32-normcmp'.
49855         * tests/uninorm/test-u32-normcmp.c: New file.
49856         * modules/uninorm/u32-normcmp-tests: New file.
49857
49858         Tests for module 'uninorm/u16-normcmp'.
49859         * tests/uninorm/test-u16-normcmp.c: New file.
49860         * modules/uninorm/u16-normcmp-tests: New file.
49861
49862         Tests for module 'uninorm/u8-normcmp'.
49863         * tests/uninorm/test-u8-normcmp.c: New file.
49864         * modules/uninorm/u8-normcmp-tests: New file.
49865
49866         New module 'uninorm/u32-normcmp'.
49867         * lib/uninorm/u32-normcmp.c: New file.
49868         * modules/uninorm/u32-normcmp: New file.
49869
49870         New module 'uninorm/u16-normcmp'.
49871         * lib/uninorm/u16-normcmp.c: New file.
49872         * modules/uninorm/u16-normcmp: New file.
49873
49874         New module 'uninorm/u8-normcmp'.
49875         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49876         declarations.
49877         * lib/uninorm/u8-normcmp.c: New file.
49878         * lib/uninorm/u-normcmp.h: New file.
49879         * modules/uninorm/u8-normcmp: New file.
49880
49881 2009-03-06  Bruno Haible  <bruno@clisp.org>
49882
49883         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49884         Reported by Eric Blake.
49885
49886 2009-03-06  Eric Blake  <ebb9@byu.net>
49887             Bruno Haible  <bruno@clisp.org>
49888
49889         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49890         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49891         condition.
49892         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49893         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49894         condition.
49895         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49896
49897 2009-03-06  Eric Blake  <ebb9@byu.net>
49898
49899         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49900         to avoid compiler warnings.
49901         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49902
49903 2009-03-05  Bruno Haible  <bruno@clisp.org>
49904
49905         * tests/test-ftell.c (main): Disable test beyond end of file on
49906         FreeMiNT.
49907         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49908
49909 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49910
49911         * lib/filevercmp.c: Move hidden files up in ordering.
49912         * tests/test-filevercmp.c: Add tests for hidden files.
49913
49914 2009-03-04  Bruno Haible  <bruno@clisp.org>
49915
49916         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49917         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49918         AM_CFLAGS.
49919         Reported by Simon Josefsson.
49920
49921 2009-03-03  Bruno Haible  <bruno@clisp.org>
49922
49923         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49924         Reported by Simon Josefsson.
49925
49926         * doc/ld-version-script.texi: Update node reference.
49927
49928 2009-03-03  Bruno Haible  <bruno@clisp.org>
49929
49930         * modules/visibility (License): Change to 'unlimited'.
49931         Suggested by Simon Josefsson.
49932
49933 2009-03-03  Jim Meyering  <meyering@redhat.com>
49934
49935         unlinkdir: cannot_unlink_dir may modify process state
49936         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49937         it's neither thread-safe nor appropriate for use in a library.
49938
49939 2009-03-03  Eric Blake  <ebb9@byu.net>
49940
49941         test-closein: silence test under Darwin
49942         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49943         care if it dies from EPIPE or EBADF.
49944
49945 2009-03-03  Bruno Haible  <bruno@clisp.org>
49946
49947         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49948         earlier.
49949         * doc/visibility.texi: Fix @node and @section.
49950
49951 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49952
49953         * doc/gnulib.texi: Link to sections for ld version script and
49954         visibility.
49955         * doc/visibility.texi: Add @node and @section.
49956         * modules/ld-version-script: New module.
49957         * m4/ld-version-script.m4: New file.
49958         * doc/ld-version-script.texi: New file.
49959
49960 2009-03-02  David Lutterkort  <lutter@redhat.com>
49961
49962         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49963         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49964
49965 2009-03-02  Bruno Haible  <bruno@clisp.org>
49966
49967         * doc/visibility.texi: Mention libtool's -export-symbols option.
49968
49969 2009-03-02  Jim Meyering  <meyering@redhat.com>
49970
49971         announce-gen: new option: --no-print-checksums
49972         * build-aux/announce-gen (usage): Describe it.
49973         (print_checksums): Print a newline here, not in the [*] footnote.
49974         (main): Honor it.
49975
49976 2009-03-01  Bruno Haible  <bruno@clisp.org>
49977
49978         Use socklen_t in the native Windows replacements prototypes.
49979         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49980         instead of 'int'.
49981         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49982         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49983         * modules/getsockopt (Depends-on): Add socklen.
49984         * modules/setsockopt (Depends-on): Add socklen.
49985
49986 2009-03-01  Bruno Haible  <bruno@clisp.org>
49987
49988         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49989         least 4.2.
49990
49991 2009-03-01  Eric Blake  <ebb9@byu.net>
49992             Bruno Haible  <bruno@clisp.org>
49993
49994         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49995         error messages.
49996         * lib/wait-process.c (wait_subprocess): Omit error message about
49997         deadly signal sent to the child of termsigp != NULL.
49998
49999 2009-03-01  Eric Blake  <ebb9@byu.net>
50000
50001         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50002
50003 2009-03-01  Bruno Haible  <bruno@clisp.org>
50004
50005         Avoid a gcc warning.
50006         * tests/test-sched.c (b): Make global.
50007         Reported by Eric Blake.
50008
50009 2009-01-19  Martin Lambers  <marlam@marlam.de>
50010
50011         Provide POSIX semantics for socket timeout options on W32.
50012         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50013         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50014         * modules/setsockopt: Depend on sys_time module for struct timeval.
50015         * modules/getsockopt: Depend on sys_time module for struct timeval.
50016
50017 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50018
50019         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50020         __USE_GNU, for consistency with netdb.in.h.
50021         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50022
50023 2009-03-01  Bruno Haible  <bruno@clisp.org>
50024
50025         More support for FreeMiNT.
50026         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50027         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50028
50029 2009-03-01  Bruno Haible  <bruno@clisp.org>
50030
50031         More support for FreeMiNT.
50032         * lib/fpurge.c (fpurge): Correct last commit.
50033         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50034
50035 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50036
50037         Fix unportable awk script in vc-list-files.
50038         * build-aux/vc-list-files: In the replacement awk script, use
50039         substr with a second argument of 1, not zero.
50040         Report by Simon Josefsson.
50041
50042 2009-02-28  Bruno Haible  <bruno@clisp.org>
50043
50044         More support for FreeMiNT.
50045         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50046         to FreeMiNT today.
50047         * lib/fwriting.c (fwriting): Likewise.
50048         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50049
50050 2009-02-28  Bruno Haible  <bruno@clisp.org>
50051
50052         * tests/test-freadseek.c (main): Disable test beyond end of file on
50053         FreeMiNT.
50054         * tests/test-ftello.c (main): Likewise.
50055         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50056
50057 2009-02-28  Bruno Haible  <bruno@clisp.org>
50058
50059         Add tentative support for FreeMiNT.
50060         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50061         * lib/fpurge.c (fpurge): Likewise.
50062         * lib/freadable.c (freadable): Likewise.
50063         * lib/freading.c (freading): Likewise.
50064         * lib/freadptr.c (freadptr): Likewise.
50065         * lib/freadseek.c (freadptrinc): Likewise.
50066         * lib/fseeko.c (rpl_fseeko): Likewise.
50067         * lib/fseterr.c (fseterr): Likewise.
50068         * lib/fwritable.c (fwritable): Likewise.
50069         * lib/fwriting.c (fwriting): Likewise.
50070         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50071         Hourihane.
50072         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50073
50074 2009-02-28  Bruno Haible  <bruno@clisp.org>
50075
50076         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50077         SIGCHLD.
50078         Reported by Jim Meyering.
50079
50080 2009-02-28  Bruno Haible  <bruno@clisp.org>
50081
50082         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50083         Mention the results of these tests on various platforms.
50084         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50085         order.
50086         * doc/posix-functions/printf.texi: Likewise.
50087         * doc/posix-functions/snprintf.texi: Likewise.
50088         * doc/posix-functions/sprintf.texi: Likewise.
50089         * doc/posix-functions/vfprintf.texi: Likewise.
50090         * doc/posix-functions/vprintf.texi: Likewise.
50091         * doc/posix-functions/vsnprintf.texi: Likewise.
50092         * doc/posix-functions/vsprintf.texi: Likewise.
50093         * doc/glibc-functions/obstack_printf.texi: Likewise.
50094         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50095
50096 2009-02-28  Bruno Haible  <bruno@clisp.org>
50097
50098         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50099         Reported by Loïc Minier <lool@dooz.org>.
50100
50101 2009-02-27  Bruno Haible  <bruno@clisp.org>
50102
50103         * gnulib-tool (func_import): Make the sed expression used to create the
50104         sed script for updating the .gitignore file POSIX compliant.
50105         Reported by Eric Blake.
50106
50107 2009-02-27  Bruno Haible  <bruno@clisp.org>
50108
50109         * gnulib-tool (sed): Don't alias as "sed --posix".
50110         Reported by Eric Blake.
50111
50112 2009-02-27  Bruno Haible  <bruno@clisp.org>
50113
50114         Avoid test link errors.
50115         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50116         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50117         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50118         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50120
50121 2009-02-27  Bruno Haible  <bruno@clisp.org>
50122
50123         Avoid spurious "(cached)" in configure output.
50124         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50125         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50126         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50127         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50128         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50129         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50130         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50131         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50132         Reported by Eric Blake.
50133
50134 2009-02-27  Eric Blake  <ebb9@byu.net>
50135
50136         printf: fix regression in previous patch
50137         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50138
50139 2009-02-27  Bruno Haible  <bruno@clisp.org>
50140
50141         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50142         value.
50143         * lib/stdint.in.h: Likewise.
50144         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50145
50146 2009-02-27  Eric Blake  <ebb9@byu.net>
50147
50148         doc: mention more functions added in cygwin 1.7.0
50149         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50150         addition.
50151         * doc/posix-functions/open_wmemstream.texi: Likewise.
50152         * doc/posix-functions/wcsnlen.texi: Likewise.
50153         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50154         * doc/posix-functions/wcstod.texi: Likewise.
50155         * doc/posix-functions/wcstof.texi: Likewise.
50156         * doc/posix-functions/wcstoimax.texi: Likewise.
50157         * doc/posix-functions/wcstok.texi: Likewise.
50158         * doc/posix-functions/wcstoumax.texi: Likewise.
50159
50160         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50161         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50162         * doc/posix-functions/fprintf.texi: Update.
50163         * doc/posix-functions/printf.texi: Update.
50164         * doc/posix-functions/snprintf.texi: Update.
50165         * doc/posix-functions/sprintf.texi: Update.
50166         * doc/posix-functions/vfprintf.texi: Update.
50167         * doc/posix-functions/vprintf.texi: Update.
50168         * doc/posix-functions/vsnprintf.texi: Update.
50169         * doc/posix-functions/vsprintf.texi: Update.
50170         * doc/glibc-functions/obstack_printf.texi: Update.
50171         * doc/glibc-functions/obstack_vprintf.texi: Update.
50172
50173 2009-02-26  Eric Blake  <ebb9@byu.net>
50174
50175         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50176         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50177         compilation bug by using runtime conversion.
50178         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50179         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50180         * modules/ceill-tests (Files): Use nan.h.
50181         * modules/floorl-tests (Files): Likewise.
50182         * modules/frexpl-tests (Files): Likewise.
50183         * modules/isnanl-tests (Files): Likewise.
50184         * modules/ldexpl-tests (Files): Likewise.
50185         * modules/roundl-tests (Files): Likewise.
50186         * modules/truncl-tests (Files): Likewise.
50187         * tests/test-ceill.c (main): Use a working NaN.
50188         * tests/test-floorl.c (main): Likewise.
50189         * tests/test-frexpl.c (main): Likewise.
50190         * tests/test-isnan.c (test_long_double): Likewise.
50191         * tests/test-isnanl.h (main): Likewise.
50192         * tests/test-ldexpl.h (main): Likewise.
50193         * tests/test-roundl.h (main): Likewise.
50194         * tests/test-truncl.h (main): Likewise.
50195         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50196
50197 2009-02-26  Eric Blake  <ebb9@byu.net>
50198             Bruno Haible  <bruno@clisp.org>
50199
50200         Work around a *printf bug with %ls on Solaris.
50201         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50202         precision is specified, sprintf stops converting the wide string
50203         argument when the number of bytes that have been produced by this
50204         conversion equals or exceeds the precision.
50205         * doc/posix-functions/fprintf.texi: Update.
50206         * doc/posix-functions/printf.texi: Update.
50207         * doc/posix-functions/snprintf.texi: Update.
50208         * doc/posix-functions/sprintf.texi: Update.
50209         * doc/posix-functions/vfprintf.texi: Update.
50210         * doc/posix-functions/vprintf.texi: Update.
50211         * doc/posix-functions/vsnprintf.texi: Update.
50212         * doc/posix-functions/vsprintf.texi: Update.
50213         * doc/glibc-functions/obstack_printf.texi: Update.
50214         * doc/glibc-functions/obstack_vprintf.texi: Update.
50215
50216 2009-02-26  Eric Blake  <ebb9@byu.net>
50217
50218         stdlib: favor compiler check of random.h
50219         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50220         to avoid an ObjC random.h installed by Swarm.
50221
50222 2009-02-26  Bruno Haible  <bruno@clisp.org>
50223
50224         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50225         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50226         Reported by Gary V. Vaughan <gary@gnu.org>.
50227
50228 2009-02-26  Bruno Haible  <bruno@clisp.org>
50229
50230         Fix *printf behaviour regarding the %ls directive.
50231         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50232         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50233         NEED_PRINTF_DIRECTIVE_LS.
50234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50235         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50236         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50237         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50238         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50239         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50240         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50241         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50242         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50243         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50244         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50245         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50246         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50248         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50249         * doc/posix-functions/fprintf.texi: Update.
50250         * doc/posix-functions/printf.texi: Update.
50251         * doc/posix-functions/snprintf.texi: Update.
50252         * doc/posix-functions/sprintf.texi: Update.
50253         * doc/posix-functions/vfprintf.texi: Update.
50254         * doc/posix-functions/vprintf.texi: Update.
50255         * doc/posix-functions/vsnprintf.texi: Update.
50256         * doc/posix-functions/vsprintf.texi: Update.
50257         * doc/glibc-functions/obstack_printf.texi: Update.
50258         * doc/glibc-functions/obstack_vprintf.texi: Update.
50259         Reported by Eric Blake.
50260
50261 2009-02-25  Bruno Haible  <bruno@clisp.org>
50262
50263         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50264         with known value.
50265         Reported by Gary V. Vaughan <gary@gnu.org>.
50266
50267 2009-02-25  Bruno Haible  <bruno@clisp.org>
50268
50269         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50270         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50271         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50272         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50273         Reported by Gary V. Vaughan <gary@gnu.org>.
50274
50275 2009-02-25  Bruno Haible  <bruno@clisp.org>
50276
50277         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50278         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50279         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50280         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50281         Reported by Gary V. Vaughan <gary@gnu.org>.
50282
50283 2009-02-25  Eric Blake  <ebb9@byu.net>
50284
50285         tests: skip fseek/ftell tests if ungetc is broken
50286         * m4/ungetc.m4: New file.
50287         * modules/fseek-tests: Split test, so ungetc dependency is
50288         separate from rest of test.
50289         * modules/fseeko-tests: Likewise.
50290         * modules/ftell-tests: Likewise.
50291         * modules/ftello-tests: Likewise.
50292         * tests/test-fseek.c (main): Isolate ungetc dependency.
50293         * tests/test-fseeko.c (main): Likewise.
50294         * tests/test-ftell.c (main): Likewise.
50295         * tests/test-ftello.c (main): Likewise.
50296         * tests/test-fseek2.sh: New file.
50297         * tests/test-fseeko2.sh: Likewise.
50298         * tests/test-ftell2.sh: Likewise.
50299         * tests/test-ftello2.sh: Likewise.
50300
50301 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
50302
50303         test-getaddrinfo: fix usage of skip return code 77
50304         * tests/test-gettaddrinfo.c: Return skip code 77 only
50305         for first occurrence of skip (4x77 is not 77)
50306
50307 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50308
50309         strtod: avoid C99 decl-after-statement
50310         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50311
50312 2009-02-24  Eric Blake  <ebb9@byu.net>
50313
50314         strtod: detect HP-UX 11.31 bug
50315         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50316         Reported by Gary V. Vaughan.
50317
50318 2009-02-23  Bruno Haible  <bruno@clisp.org>
50319
50320         Fix invalid read past end of memory block.
50321         * lib/vasnprintf.c (DCHAR_SET): Define.
50322         (local_wcslen): Define only when needed.
50323         (local_strnlen, local_wcsnlen): New functions.
50324         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50325         directives that involve a conversion ourselves.
50326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50327         wcsnlen, mbrtowc, wcrtomb.
50328         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50329         * tests/test-vasprintf-posix.c (test_function): Likewise.
50330         * tests/test-snprintf-posix.h (test_function): Likewise.
50331         * tests/test-sprintf-posix.h (test_function): Likewise.
50332         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50333
50334 2009-02-22  Bruno Haible  <bruno@clisp.org>
50335
50336         Implement new clarified decomposition of Hangul syllables.
50337         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50338         of type LTV, return only a pairwise decomposition.
50339         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50340         Likewise.
50341         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50342         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50343         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50344
50345 2009-02-22  Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50348         zero-length results and shrink excess allocated memory.
50349         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50350         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50351         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50352         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50353         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50354         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50355         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50356         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50357         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50358         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50359         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50360         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50361
50362 2009-02-21  Bruno Haible  <bruno@clisp.org>
50363
50364         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50365         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50366         spaces after a period. Put a space between a macro name and its
50367         argument list. Trivial rewordings.
50368         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50369         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50370         (main): Return 0 explicitly.
50371
50372 2009-02-21  Bruno Haible  <bruno@clisp.org>
50373
50374         Tests for module 'uninorm/filter'.
50375         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50376         * modules/uninorm/filter-tests: New file.
50377
50378         New module 'uninorm/filter'.
50379         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50380         uninorm_filter_flush, uninorm_filter_free): New declarations.
50381         * lib/uninorm/uninorm-filter.c: New file.
50382         * modules/uninorm/filter: New file.
50383
50384 2009-02-21  Bruno Haible  <bruno@clisp.org>
50385
50386         Tests for module 'uninorm/nfkc'.
50387         * tests/uninorm/test-nfkc.c: New file.
50388         * tests/uninorm/test-u8-nfkc.c: New file.
50389         * tests/uninorm/test-u16-nfkc.c: New file.
50390         * tests/uninorm/test-u32-nfkc.c: New file.
50391         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50392         * tests/uninorm/test-u32-nfkc-big.c: New file.
50393         * modules/uninorm/nfkc-tests: New file.
50394
50395         New module 'uninorm/nfkc'.
50396         * lib/uninorm/nfkc.c: New file.
50397         * modules/uninorm/nfkc: New file.
50398
50399         Tests for module 'uninorm/nfkd'.
50400         * tests/uninorm/test-nfkd.c: New file.
50401         * tests/uninorm/test-u8-nfkd.c: New file.
50402         * tests/uninorm/test-u16-nfkd.c: New file.
50403         * tests/uninorm/test-u32-nfkd.c: New file.
50404         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50405         * tests/uninorm/test-u32-nfkd-big.c: New file.
50406         * modules/uninorm/nfkd-tests: New file.
50407
50408         New module 'uninorm/nfkd'.
50409         * lib/uninorm/nfkd.c: New file.
50410         * modules/uninorm/nfkd: New file.
50411
50412         Tests for module 'uninorm/nfc'.
50413         * tests/uninorm/test-nfc.c: New file.
50414         * tests/uninorm/test-u8-nfc.c: New file.
50415         * tests/uninorm/test-u16-nfc.c: New file.
50416         * tests/uninorm/test-u32-nfc.c: New file.
50417         * tests/uninorm/test-u32-nfc-big.sh: New file.
50418         * tests/uninorm/test-u32-nfc-big.c: New file.
50419         * modules/uninorm/nfc-tests: New file.
50420
50421         New module 'uninorm/nfc'.
50422         * lib/uninorm/nfc.c: New file.
50423         * modules/uninorm/nfc: New file.
50424
50425         Tests for module 'uninorm/nfd'.
50426         * tests/uninorm/test-nfd.c: New file.
50427         * tests/uninorm/test-u8-nfd.c: New file.
50428         * tests/uninorm/test-u16-nfd.c: New file.
50429         * tests/uninorm/test-u32-nfd.c: New file.
50430         * tests/uninorm/test-u32-nfd-big.sh: New file.
50431         * tests/uninorm/test-u32-nfd-big.c: New file.
50432         * tests/uninorm/test-u32-normalize-big.h: New file.
50433         * tests/uninorm/test-u32-normalize-big.c: New file.
50434         * tests/uninorm/NormalizationTest.txt: New file, created from
50435         Unicode 5.1.0 NormalizationTest.txt.
50436         * modules/uninorm/nfd-tests: New file.
50437
50438         New module 'uninorm/nfd'.
50439         * lib/uninorm/nfd.c: New file.
50440         * modules/uninorm/nfd: New file.
50441
50442         New module 'uninorm/u32-normalize'.
50443         * lib/uninorm/u32-normalize.c: New file.
50444         * modules/uninorm/u32-normalize: New file.
50445
50446         New module 'uninorm/u16-normalize'.
50447         * lib/uninorm/u16-normalize.c: New file.
50448         * modules/uninorm/u16-normalize: New file.
50449
50450         New module 'uninorm/u8-normalize'.
50451         * lib/uninorm/u8-normalize.c: New file.
50452         * lib/uninorm/normalize-internal.h: New file.
50453         * lib/uninorm/u-normalize-internal.h: New file.
50454         * modules/uninorm/u8-normalize: New file.
50455
50456         New module 'uninorm/decompose-internal'.
50457         * lib/uninorm/decompose-internal.c: New file.
50458         * modules/uninorm/decompose-internal: New file.
50459
50460         Tests for module 'uninorm/composition'.
50461         * tests/uninorm/test-composition.c: New file.
50462         * modules/uninorm/composition-tests: New file.
50463
50464         New module 'uninorm/composition'.
50465         * lib/uninorm/composition.c: New file.
50466         * lib/uninorm/composition-table.gperf: New file, generated by
50467         gen-uni-tables.
50468         * modules/uninorm/composition: New file.
50469
50470         Tests for module 'uninorm/compat-decomposition'.
50471         * tests/uninorm/test-compat-decomposition.c: New file.
50472         * modules/uninorm/compat-decomposition-tests: New file.
50473
50474         New module 'uninorm/compat-decomposition'.
50475         * lib/uninorm/decompose-internal.h: New file.
50476         * lib/uninorm/compat-decomposition.c: New file.
50477         * modules/uninorm/compat-decomposition: New file.
50478
50479         Tests for module 'uninorm/canonical-decomposition'.
50480         * tests/uninorm/test-canonical-decomposition.c: New file.
50481         * modules/uninorm/canonical-decomposition-tests: New file.
50482
50483         New module 'uninorm/canonical-decomposition'.
50484         * lib/uninorm/canonical-decomposition.c: New file.
50485         * modules/uninorm/canonical-decomposition: New file.
50486
50487         Tests for module 'uninorm/decomposition'.
50488         * tests/uninorm/test-decomposition.c: New file.
50489         * modules/uninorm/decomposition-tests: New file.
50490
50491         New module 'uninorm/decomposition'.
50492         * lib/uninorm/decomposition.c: New file.
50493         * modules/uninorm/decomposition: New file.
50494
50495         New module 'uninorm/decomposition-table'.
50496         * lib/uninorm/decomposition-table.h: New file.
50497         * lib/uninorm/decomposition-table.c: New file.
50498         * lib/uninorm/decomposition-table1.h: New file, generated by
50499         gen-uni-tables.
50500         * lib/uninorm/decomposition-table2.h: New file, generated by
50501         gen-uni-tables.
50502         * modules/uninorm/decomposition-table: New file.
50503
50504         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50505         (UC_DECOMP_*): New enumeration items.
50506         (get_decomposition): New function.
50507         (struct decomp_table): New type.
50508         (output_decomposition, output_decomposition_tables): New functions.
50509         (unicode_composition_exclusions): New variable.
50510         (fill_composition_exclusions, debug_output_composition_tables): New
50511         functions.
50512         (main): Accept one more argument. Invoke fill_composition_exclusions.
50513         Output decomposition and composition tables.
50514
50515         New module 'uninorm/base'.
50516         * lib/uninorm.h: New file.
50517         * lib/unictype.h: Update comment.
50518         * modules/uninorm/base: New file.
50519
50520 2009-02-21  David Lutterkort  <lutter@redhat.com>
50521
50522         Tests for module 'safe-alloc'.
50523         * tests/test-safe-alloc.c: New file.
50524         * modules/safe-alloc-tests: New file.
50525
50526         New module 'safe-alloc'.
50527         * lib/safe-alloc.h: New file.
50528         * lib/safe-alloc.c: New file.
50529         * m4/safe-alloc.m4: New file.
50530         * modules/safe-alloc: New file.
50531         * doc/safe-alloc.texi: New file.
50532         * doc/gnulib.texi: Include it.
50533         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50534         safe-alloc.
50535
50536 2009-02-18  Bruno Haible  <bruno@clisp.org>
50537
50538         Fix link error on non-glibc systems.
50539         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50540         variable.
50541         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50542
50543 2009-02-18  Jim Meyering  <meyering@redhat.com>
50544
50545         fts: avoid used-uninitialized error due to recent change
50546         * lib/fts.c (fts_read): Guard uses of the new member,
50547         parent->fts_n_dirs_remaining, since it's not relevant for
50548         the parent of a directory specified on the command-line.
50549
50550 2009-02-17  James Youngman  <jay@gnu.org>
50551             Bruno Haible  <bruno@clisp.org>
50552
50553         * m4/include_next.m4: Reformulate comment.
50554
50555 2009-02-16  Jim Meyering  <meyering@redhat.com>
50556
50557         fts: add #if guards so that the fts_lgpl module still builds
50558         * lib/fts.c: Guard just-added hash-table-using parts with
50559         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50560         Reported by Simon Josefsson.
50561
50562 2009-02-15  Bruno Haible  <bruno@clisp.org>
50563
50564         * modules/array-mergesort-tests: New file.
50565         * tests/test-array-mergesort.c: New file.
50566
50567         New module 'array-mergesort'.
50568         * modules/array-mergesort: New file.
50569         * lib/array-mergesort.h: New file.
50570
50571 2009-02-15  Bruno Haible  <bruno@clisp.org>
50572
50573         Fix 2009-02-07 commit.
50574         * lib/gen-uni-tables.c (output_predicate, output_category,
50575         output_combclass, output_bidi_category, output_decimal_digit,
50576         output_digit, output_numeric, output_mirror, output_scripts,
50577         output_ident_category, output_simple_mapping): Fix format directives.
50578         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50579
50580 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50581
50582         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50583         fixes are available from IBM.
50584
50585 2009-02-13  Jim Meyering  <meyering@redhat.com>
50586
50587         fts: arrange not to stat non-directories in more cases
50588         This makes GNU find (when it doesn't need to stat each file)
50589         *much* more efficient at traversing reiserfs file systems.
50590         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50591         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50592         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50593         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50594         (leaf_optimization_applies): New function.
50595         (LCO_hash, LCO_compare): New helper functions.
50596         (link_count_optimize_ok): New function.
50597         (fts_stat): Initialize new member (if dir).
50598         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50599         we've just stat'ed a directory.  Skip the stat call when possible.
50600         ---
50601         Note this AFS-related exchange:
50602         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50603         and note find's pioctl call in find/fstype.c.
50604         But that is necessary only if you want to enable the
50605         optimization for AFS, and for now, I don't.
50606
50607         fts: move a function definition "up" (no semantic change)
50608         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50609         "up" to precede upcoming use of a related function.
50610
50611 2009-02-11  Jim Meyering  <meyering@redhat.com>
50612
50613         fts: correct internal computation of nlinks (optimization-related)
50614         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50615         whether the current entry is a directory, so don't test it.
50616
50617 2009-02-10  Bruno Haible  <bruno@clisp.org>
50618
50619         Tests for module 'uniwbrk/ulc-wordbreaks'.
50620         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50621         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50622         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50623
50624         Tests for module 'uniwbrk/u32-wordbreaks'.
50625         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50626         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50627
50628         Tests for module 'uniwbrk/u16-wordbreaks'.
50629         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50630         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50631
50632         Tests for module 'uniwbrk/u8-wordbreaks'.
50633         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50634         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50635
50636 2009-02-10  Bruno Haible  <bruno@clisp.org>
50637
50638         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50639         property.
50640         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50641         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50642         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50643
50644 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50645
50646         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50647         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50648
50649 2009-02-10  Bruno Haible  <bruno@clisp.org>
50650
50651         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50652         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50653         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50654         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50655         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50656         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50657
50658 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50659
50660         * lib/sockets.h (gl_fd_to_handle): New function.
50661
50662         * tests/test-sockets.c: Call gl_fd_to_handle.
50663
50664 2009-02-09  Bruno Haible  <bruno@clisp.org>
50665
50666         * doc/havelib.texi: Document the conventions on bi-arch systems.
50667
50668 2009-02-08  Bruno Haible  <bruno@clisp.org>
50669
50670         Document the AC_LIB_LINKFLAGS macro.
50671         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50672         * doc/gnulib.texi: Include it.
50673
50674 2009-02-08  Bruno Haible  <bruno@clisp.org>
50675
50676         Fix wrong order of sections, compared to TOC.
50677         * doc/gnulib.texi: Include relocatable-maint.texi after the
50678         "Regular expressions" node, not before.
50679
50680 2009-02-08  Bruno Haible  <bruno@clisp.org>
50681
50682         Tests for module 'unicase/totitle'.
50683         * modules/unicase/totitle-tests: New file.
50684
50685         Tests for module 'unicase/tolower'.
50686         * modules/unicase/tolower-tests: New file.
50687
50688         Tests for module 'unicase/toupper'.
50689         * modules/unicase/toupper-tests: New file.
50690         * tests/unicase/test-mapping-part1.h: New file.
50691         * tests/unicase/test-mapping-part2.h: New file.
50692
50693         New module 'unicase/totitle'.
50694         * modules/unicase/totitle: New file.
50695         * lib/unicase/totitle.c: New file.
50696
50697         New module 'unicase/tolower'.
50698         * modules/unicase/tolower: New file.
50699         * lib/unicase/tolower.c: New file.
50700
50701         New module 'unicase/toupper'.
50702         * modules/unicase/toupper: New file.
50703         * lib/unicase/toupper.c: New file.
50704         * lib/unicase/simple-mapping.h: New file.
50705
50706         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50707         (mapping_table): New structure.
50708         (output_simple_mapping): New function.
50709         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50710         * modules/gen-uni-tables (Description): Update.
50711         * lib/unicase/toupper.h: New file, automatically generated by
50712         gen-uni-tables.
50713         * lib/unicase/tolower.h: New file, automatically generated by
50714         gen-uni-tables.
50715         * lib/unicase/totitle.h: New file, automatically generated by
50716         gen-uni-tables.
50717         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50718         gen-uni-tables.
50719         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50720         gen-uni-tables.
50721         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50722         gen-uni-tables.
50723
50724         New module 'unicase/base'.
50725         * modules/unicase/base: New file.
50726         * lib/unicase.h: New file.
50727
50728 2009-02-08  Bruno Haible  <bruno@clisp.org>
50729
50730         New module 'uniwbrk/ulc-wordbreaks'.
50731         * modules/uniwbrk/ulc-wordbreaks: New file.
50732         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50733
50734         New module 'uniwbrk/u32-wordbreaks'.
50735         * modules/uniwbrk/u32-wordbreaks: New file.
50736         * lib/uniwbrk/u32-wordbreaks.c: New file.
50737
50738         New module 'uniwbrk/u16-wordbreaks'.
50739         * modules/uniwbrk/u16-wordbreaks: New file.
50740         * lib/uniwbrk/u16-wordbreaks.c: New file.
50741
50742         New module 'uniwbrk/u8-wordbreaks'.
50743         * modules/uniwbrk/u8-wordbreaks: New file.
50744         * lib/uniwbrk/u8-wordbreaks.c: New file.
50745         * lib/uniwbrk/u-wordbreaks.h: New file.
50746
50747         New module 'uniwbrk/table'.
50748         * modules/uniwbrk/table: New file.
50749         * lib/uniwbrk/wbrktable.h: New file.
50750         * lib/uniwbrk/wbrktable.c: New file.
50751
50752         New module 'uniwbrk/wordbreak-property'.
50753         * modules/uniwbrk/wordbreak-property: New file.
50754         * lib/uniwbrk/wordbreak-property.c: New file.
50755
50756         * lib/gen-uni-tables.c (WBP_*): New enum items.
50757         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50758         (unicode_org_wbp): New variable.
50759         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50760         New functions.
50761         (wbp_table): New structure.
50762         (output_wbp, output_wbrk_tables): New functions.
50763         (main): Accept additional argument. Invoke fill_org_wbp,
50764         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50765         output_wbrk_tables.
50766         * modules/gen-uni-tables (Description): Update.
50767         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50768         gen-uni-tables.
50769
50770         New module 'uniwbrk/base'.
50771         * modules/uniwbrk/base: New file.
50772         * lib/uniwbrk.h: New file.
50773
50774 2009-02-08  Bruno Haible  <bruno@clisp.org>
50775
50776         Update to Unicode 5.1.0.
50777         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50778         U+2185..U+2188.
50779         (is_property_default_ignorable_code_point): Don't include characters
50780         of category Cc or Cs and not-a-characters.
50781         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50782         U+0D79, U+109E, U+109F, U+A60C.
50783         * lib/unictype/bidi_of.h: Regenerated.
50784         * lib/unictype/blocks.h: Regenerated.
50785         * lib/unictype/categ_C.h: Regenerated.
50786         * lib/unictype/categ_Cf.h: Regenerated.
50787         * lib/unictype/categ_Cn.h: Regenerated.
50788         * lib/unictype/categ_L.h: Regenerated.
50789         * lib/unictype/categ_Ll.h: Regenerated.
50790         * lib/unictype/categ_Lm.h: Regenerated.
50791         * lib/unictype/categ_Lo.h: Regenerated.
50792         * lib/unictype/categ_Lu.h: Regenerated.
50793         * lib/unictype/categ_M.h: Regenerated.
50794         * lib/unictype/categ_Mc.h: Regenerated.
50795         * lib/unictype/categ_Me.h: Regenerated.
50796         * lib/unictype/categ_Mn.h: Regenerated.
50797         * lib/unictype/categ_N.h: Regenerated.
50798         * lib/unictype/categ_Nd.h: Regenerated.
50799         * lib/unictype/categ_Nl.h: Regenerated.
50800         * lib/unictype/categ_No.h: Regenerated.
50801         * lib/unictype/categ_P.h: Regenerated.
50802         * lib/unictype/categ_Pd.h: Regenerated.
50803         * lib/unictype/categ_Pe.h: Regenerated.
50804         * lib/unictype/categ_Pf.h: Regenerated.
50805         * lib/unictype/categ_Pi.h: Regenerated.
50806         * lib/unictype/categ_Po.h: Regenerated.
50807         * lib/unictype/categ_Ps.h: Regenerated.
50808         * lib/unictype/categ_S.h: Regenerated.
50809         * lib/unictype/categ_Sk.h: Regenerated.
50810         * lib/unictype/categ_Sm.h: Regenerated.
50811         * lib/unictype/categ_So.h: Regenerated.
50812         * lib/unictype/categ_of.h: Regenerated.
50813         * lib/unictype/combining.h: Regenerated.
50814         * lib/unictype/ctype_alnum.h: Regenerated.
50815         * lib/unictype/ctype_alpha.h: Regenerated.
50816         * lib/unictype/ctype_graph.h: Regenerated.
50817         * lib/unictype/ctype_lower.h: Regenerated.
50818         * lib/unictype/ctype_print.h: Regenerated.
50819         * lib/unictype/ctype_punct.h: Regenerated.
50820         * lib/unictype/ctype_upper.h: Regenerated.
50821         * lib/unictype/decdigit.h: Regenerated.
50822         * lib/unictype/digit.h: Regenerated.
50823         * lib/unictype/mirror.h: Regenerated.
50824         * lib/unictype/numeric.h: Regenerated.
50825         * lib/unictype/pr_alphabetic.h: Regenerated.
50826         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50827         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50828         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50829         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50830         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50831         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50832         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50833         * lib/unictype/pr_combining.h: Regenerated.
50834         * lib/unictype/pr_dash.h: Regenerated.
50835         * lib/unictype/pr_decimal_digit.h: Regenerated.
50836         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50837         * lib/unictype/pr_deprecated.h: Regenerated.
50838         * lib/unictype/pr_diacritic.h: Regenerated.
50839         * lib/unictype/pr_extender.h: Regenerated.
50840         * lib/unictype/pr_format_control.h: Regenerated.
50841         * lib/unictype/pr_grapheme_base.h: Regenerated.
50842         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50843         * lib/unictype/pr_grapheme_link.h: Regenerated.
50844         * lib/unictype/pr_id_continue.h: Regenerated.
50845         * lib/unictype/pr_id_start.h: Regenerated.
50846         * lib/unictype/pr_ideographic.h: Regenerated.
50847         * lib/unictype/pr_ignorable_control.h: Regenerated.
50848         * lib/unictype/pr_lowercase.h: Regenerated.
50849         * lib/unictype/pr_math.h: Regenerated.
50850         * lib/unictype/pr_numeric.h: Regenerated.
50851         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50852         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50853         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50854         * lib/unictype/pr_other_id_continue.h: Regenerated.
50855         * lib/unictype/pr_other_lowercase.h: Regenerated.
50856         * lib/unictype/pr_other_math.h: Regenerated.
50857         * lib/unictype/pr_punctuation.h: Regenerated.
50858         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50859         * lib/unictype/pr_soft_dotted.h: Regenerated.
50860         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50861         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50862         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50863         * lib/unictype/pr_uppercase.h: Regenerated.
50864         * lib/unictype/pr_xid_continue.h: Regenerated.
50865         * lib/unictype/pr_xid_start.h: Regenerated.
50866         * lib/unictype/pr_zero_width.h: Regenerated.
50867         * lib/unictype/scripts.h: Regenerated.
50868         * lib/unictype/scripts_byname.gperf: Regenerated.
50869         * lib/unictype/sy_java_ident.h: Regenerated.
50870         * lib/unilbrk/lbrkprop1.h: Regenerated.
50871         * lib/unilbrk/lbrkprop2.h: Regenerated.
50872         * tests/unictype/test-categ_C.c: Regenerated.
50873         * tests/unictype/test-categ_Cf.c: Regenerated.
50874         * tests/unictype/test-categ_Cn.c: Regenerated.
50875         * tests/unictype/test-categ_L.c: Regenerated.
50876         * tests/unictype/test-categ_Ll.c: Regenerated.
50877         * tests/unictype/test-categ_Lm.c: Regenerated.
50878         * tests/unictype/test-categ_Lo.c: Regenerated.
50879         * tests/unictype/test-categ_Lu.c: Regenerated.
50880         * tests/unictype/test-categ_M.c: Regenerated.
50881         * tests/unictype/test-categ_Mc.c: Regenerated.
50882         * tests/unictype/test-categ_Me.c: Regenerated.
50883         * tests/unictype/test-categ_Mn.c: Regenerated.
50884         * tests/unictype/test-categ_N.c: Regenerated.
50885         * tests/unictype/test-categ_Nd.c: Regenerated.
50886         * tests/unictype/test-categ_Nl.c: Regenerated.
50887         * tests/unictype/test-categ_No.c: Regenerated.
50888         * tests/unictype/test-categ_P.c: Regenerated.
50889         * tests/unictype/test-categ_Pd.c: Regenerated.
50890         * tests/unictype/test-categ_Pe.c: Regenerated.
50891         * tests/unictype/test-categ_Pf.c: Regenerated.
50892         * tests/unictype/test-categ_Pi.c: Regenerated.
50893         * tests/unictype/test-categ_Po.c: Regenerated.
50894         * tests/unictype/test-categ_Ps.c: Regenerated.
50895         * tests/unictype/test-categ_S.c: Regenerated.
50896         * tests/unictype/test-categ_Sk.c: Regenerated.
50897         * tests/unictype/test-categ_Sm.c: Regenerated.
50898         * tests/unictype/test-categ_So.c: Regenerated.
50899         * tests/unictype/test-ctype_alnum.c: Regenerated.
50900         * tests/unictype/test-ctype_alpha.c: Regenerated.
50901         * tests/unictype/test-ctype_graph.c: Regenerated.
50902         * tests/unictype/test-ctype_lower.c: Regenerated.
50903         * tests/unictype/test-ctype_print.c: Regenerated.
50904         * tests/unictype/test-ctype_punct.c: Regenerated.
50905         * tests/unictype/test-ctype_upper.c: Regenerated.
50906         * tests/unictype/test-decdigit.h: Regenerated.
50907         * tests/unictype/test-digit.h: Regenerated.
50908         * tests/unictype/test-numeric.h: Regenerated.
50909         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50910         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50911         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50912         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50913         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50914         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50915         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50916         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50917         * tests/unictype/test-pr_combining.c: Regenerated.
50918         * tests/unictype/test-pr_dash.c: Regenerated.
50919         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50920         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50921         * tests/unictype/test-pr_deprecated.c: Regenerated.
50922         * tests/unictype/test-pr_diacritic.c: Regenerated.
50923         * tests/unictype/test-pr_extender.c: Regenerated.
50924         * tests/unictype/test-pr_format_control.c: Regenerated.
50925         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50926         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50927         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50928         * tests/unictype/test-pr_id_continue.c: Regenerated.
50929         * tests/unictype/test-pr_id_start.c: Regenerated.
50930         * tests/unictype/test-pr_ideographic.c: Regenerated.
50931         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50932         * tests/unictype/test-pr_lowercase.c: Regenerated.
50933         * tests/unictype/test-pr_math.c: Regenerated.
50934         * tests/unictype/test-pr_numeric.c: Regenerated.
50935         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50936         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50937         Regenerated.
50938         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50939         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50940         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50941         * tests/unictype/test-pr_other_math.c: Regenerated.
50942         * tests/unictype/test-pr_punctuation.c: Regenerated.
50943         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50944         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50945         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50946         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50947         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50948         * tests/unictype/test-pr_uppercase.c: Regenerated.
50949         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50950         * tests/unictype/test-pr_xid_start.c: Regenerated.
50951         * tests/unictype/test-pr_zero_width.c: Regenerated.
50952
50953         Update to Unicode 5.1.0.
50954         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50955         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50956         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50957         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50958         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50959         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50960         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50961         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50962         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50963         (nonspacing_table_ind): Update.
50964         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50965
50966         Update to Unicode 5.1.0.
50967         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50968         code transform.
50969         * lib/uniname/uniname.c (unicode_character_name,
50970         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50971         * lib/uniname/uninames.h: Regenerated.
50972         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50973
50974 2009-02-07  Bruno Haible  <bruno@clisp.org>
50975
50976         Merge gen-ctype and gen-lbrk into a single program.
50977         * lib/gen-uni-tables.c: New file, incorporating
50978         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50979         Add directory prefixes to the names of the generated files.
50980         * lib/unictype/gen-ctype.c: Remove file.
50981         * lib/unilbrk/gen-lbrk.c: Remove file.
50982         * modules/gen-uni-tables: New file.
50983         * modules/unictype/gen-ctype: Remove file.
50984         * modules/unilbrk/gen-lbrk: Remove file.
50985
50986 2009-02-07  Bruno Haible  <bruno@clisp.org>
50987
50988         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50989
50990         New module 'unistr/u32-strcoll'.
50991         * modules/unistr/u32-strcoll: New file.
50992         * lib/unistr/u32-strcoll.c: New file.
50993
50994         New module 'unistr/u16-strcoll'.
50995         * modules/unistr/u16-strcoll: New file.
50996         * lib/unistr/u16-strcoll.c: New file.
50997
50998         New module 'unistr/u8-strcoll'.
50999         * modules/unistr/u8-strcoll: New file.
51000         * lib/unistr/u8-strcoll.c: New file.
51001         * lib/unistr/u-strcoll.h: New file.
51002
51003 2009-02-07  Bruno Haible  <bruno@clisp.org>
51004
51005         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51006         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51007         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51008         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51009         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51010         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51011
51012 2009-02-07  Bruno Haible  <bruno@clisp.org>
51013
51014         Make 64-bit clean.
51015         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51016         output_combclass, output_bidi_category, output_decimal_digit,
51017         output_digit, output_numeric, output_mirror, output_scripts,
51018         output_ident_category): Use proper width specifier in format strings.
51019
51020 2009-02-07  Bruno Haible  <bruno@clisp.org>
51021
51022         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51023         failure behaviour.
51024
51025 2009-02-07  Jim Meyering  <meyering@redhat.com>
51026
51027         regex: avoid compilation failure with upcoming gcc-4.4
51028         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51029         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51030         "... error: integer overflow in preprocessor expression".
51031
51032 2009-02-05  Ben Pfaff  <blp@gnu.org>
51033
51034         Fix link errors on Windows when close module is used.
51035         * modules/close: Add $(LIB_CLOSE) to Link section.
51036         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51037         $(LIB_CLOSE) on Windows.
51038
51039 2009-02-05  Jim Meyering  <meyering@redhat.com>
51040
51041         still avoid unused-parameter warnings, but do it cleanly
51042         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51043         (get_fs_usage): Cast to void instead.
51044         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51045         (dev_from_mount_options, read_file_system_list): Cast to void.
51046         Prompted by Bruno Haible.
51047
51048 2009-02-04  Jim Meyering  <meyering@redhat.com>
51049
51050         fsusage.c: correct copyright year
51051         * lib/fsusage.c: Reflect year in which the change is pushed into
51052
51053         avoid misc. warnings
51054         * lib/fsusage.c (UNUSED_PARAM): Define.
51055         (get_fs_usage): Mark parameter "disk" as unused.
51056         * lib/getugroups.c (getgrent): Use "void" in prototype.
51057         * lib/mountlist.c: Mark unused parameters.
51058         (read_file_system_list): Declare a local with "const".
51059         * lib/nanosleep.c (getnow): Declare static.
51060         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51061
51062         dirfd: set errno upon failure
51063         * lib/dirfd.c: Include <errno.h>.
51064         Set errno to ENOTSUP when returning -1.
51065         * modules/dirfd (Depends-on): Add errno.
51066         Suggested by John Kodis <kodis@comcast.net>.
51067
51068 2009-02-01  Bruno Haible  <bruno@clisp.org>
51069
51070         Don't assume sizeof (long) >= sizeof (void *).
51071         * lib/memcmp.c: Include stdint.h.
51072         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51073         srcp2 to 'const byte *'.
51074         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51075         types to uintptr_t.
51076         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51077         * modules/memcmp (Depends-on): Add stdint.
51078         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51079
51080 2009-01-30  Eric Blake  <ebb9@byu.net>
51081
51082         fix more require-before-expand issues
51083         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51084         expand, AC_PROG_AWK.
51085         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51086
51087 2009-01-28  Eric Blake  <ebb9@byu.net>
51088
51089         version-etc: use consistent URL formatting
51090         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51091         Improve formatting.  Use fputs for string without %.
51092
51093 2009-01-28  Jim Meyering  <meyering@redhat.com>
51094
51095         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51096         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51097         "underquoted definition of NAME" from autoconf-2.59.
51098
51099 2009-01-28  Bruno Haible  <bruno@clisp.org>
51100
51101         * doc/gnulib.texi: Add "Obsolete modules" to index.
51102
51103 2009-01-28  Jim Meyering  <meyering@redhat.com>
51104
51105         useless-if-before-free: recognize more variants
51106         * build-aux/useless-if-before-free: Also recognize e.g.,
51107         if (NULL != p) free (p);
51108
51109 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51110
51111         test-getaddrinfo: skip (don't fail) this test when there's no network
51112         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51113         on the presumption that it means you lack network access.
51114
51115 2009-01-26  Jim Meyering  <meyering@redhat.com>
51116
51117         fflush: avoid warnings on modern systems
51118         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51119         pos and result, into scopes where they're used.
51120
51121 2009-01-26  Eric Blake  <ebb9@byu.net>
51122
51123         Silence warning reintroduced by recent extensions patch.
51124         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51125         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51126         autoconf.
51127
51128         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51129         * m4/00gnulib.m4: New file.
51130         * gnulib-tool (func_get_filelist): Always use it.
51131         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51132         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51133
51134 2009-01-25  Bruno Haible  <bruno@clisp.org>
51135
51136         Make test-quotearg work on MacOS X and AIX.
51137         * tests/test-quotearg.sh: New file.
51138         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51139         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51140         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51141         include <libintl.h>.
51142         (fake_locale): Remove variable.
51143         (gettext, dgettext, dcgettext): Remove functions.
51144         (main): Instead of setting a fake locale, set a real locale. Call
51145         textdomain and bindtextdomain.
51146         * modules/quotearg-tests (Files): Add the new files.
51147         (Depends-on): Add gettext, setenv, unsetenv.
51148         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51149         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51150         Augment TESTS_ENVIRONMENT.
51151
51152 2009-01-25  Bruno Haible  <bruno@clisp.org>
51153
51154         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51155         fr_FR.ISO8859-1 locale on MacOS X.
51156         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51157         ja_JP.eucJP locale on MacOS X.
51158         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51159         zh_CN.GB18030 locale on MacOS X.
51160
51161 2009-01-25  Bruno Haible  <bruno@clisp.org>
51162
51163         Avoid link errors on MacOS X 10.3.
51164         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51165         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51166
51167 2009-01-25  Bruno Haible  <bruno@clisp.org>
51168
51169         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51170         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51171         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51172         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51173         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51174         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51175         posix_spawnattr_init, posix_spawnattr_setsigmask,
51176         posix_spawnattr_setflags, posix_spawnattr_destroy.
51177
51178         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51179         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51180         * modules/execute (Files): Remove m4/posix_spawn.m4.
51181         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51182         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51183         posix_spawnattr_init, posix_spawnattr_setsigmask,
51184         posix_spawnattr_setflags, posix_spawnattr_destroy.
51185
51186 2009-01-25  Bruno Haible  <bruno@clisp.org>
51187
51188         * lib/glthread/threadlib.c: Include <stdlib.h>.
51189
51190 2009-01-25  Bruno Haible  <bruno@clisp.org>
51191
51192         * lib/glthread/threadlib.c (dummy): New declaration.
51193
51194 2009-01-25  Bruno Haible  <bruno@clisp.org>
51195
51196         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51197         multibyte characters also for the GB18030 encoding. Don't crash when
51198         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51199
51200 2009-01-25  Bruno Haible  <bruno@clisp.org>
51201
51202         Avoid redefining 'struct random_data' on OSF/1 5.1.
51203         * lib/stdlib.in.h: Include <random.h> if it exists.
51204         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51205         HAVE_RANDOM_H. Include <random.h> when testing whether
51206         'struct random_data' exists.
51207         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51208
51209 2009-01-25  Bruno Haible  <bruno@clisp.org>
51210
51211         Don't install charset.alias on MacOS X >= 10.3.
51212         * lib/localcharset.c (DARWIN7): New macro.
51213         (get_charset_aliases): Hardcode the result for Darwin7.
51214         * modules/localcharset (install-exec-local): Don't install
51215         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51216
51217 2009-01-25  Bruno Haible  <bruno@clisp.org>
51218
51219         Don't install charset.alias on mingw and Cygwin.
51220         * modules/localcharset (install-exec-local): Don't install
51221         charset.alias on mingw and Cygwin, if the file does not yet exist.
51222         The result for these platforms is hardcoded in localcharset.c.
51223
51224 2009-01-25  Bruno Haible  <bruno@clisp.org>
51225
51226         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51227         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51228         before requiring AC_USE_SYSTEM_EXTENSIONS.
51229
51230 2009-01-25  Jim Meyering  <meyering@redhat.com>
51231
51232         c-strtod: avoid warnings
51233         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51234         "assignment discards qualifiers from pointer target type" warnings.
51235
51236 2009-01-24  Bruno Haible  <bruno@clisp.org>
51237
51238         Add support for non-UTF-8 locales on MacOS X.
51239         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51240         canonical encodings. For Darwin 7 and newer, don't map traditional
51241         encodings to UTF-8.
51242         Reported by Vincent Lefevre <vincent@vinc17.org>
51243         at <http://savannah.gnu.org/bugs/?25235>.
51244
51245 2009-01-24  Bruno Haible  <bruno@clisp.org>
51246
51247         * doc/gnulib.texi (Obsolete modules): New section.
51248         Reported by Mike Frysinger <vapier@gentoo.org>.
51249
51250 2009-01-24  Bruno Haible  <bruno@clisp.org>
51251
51252         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51253         (%.dvi): New rule.
51254
51255 2009-01-24  Bruno Haible  <bruno@clisp.org>
51256
51257         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51258         Reported by Eric Blake.
51259
51260 2009-01-24  Bruno Haible  <bruno@clisp.org>
51261
51262         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51263         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51264         Reported by Gary V. Vaughan <gary@gnu.org>.
51265
51266 2009-01-24  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51269
51270 2009-01-23  Bruno Haible  <bruno@clisp.org>
51271
51272         Make c-strtod, c-strtold usable in libraries.
51273         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51274         (C_STRTOD): Call strdup instead of xstrdup.
51275         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51276         * modules/c-strtold (Depends-on): Likewise.
51277         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51278         * NEWS: Mention the change.
51279         Reported by Michael Gold <mgold@ncf.ca>.
51280
51281 2009-01-23  Jim Meyering  <meyering@redhat.com>
51282
51283         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51284         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51285         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51286
51287 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51288
51289         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51290         GNU CoreUtils.
51291         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51292         * modules/version-etc (Description): Update.
51293
51294 2009-01-22  Bruno Haible  <bruno@clisp.org>
51295
51296         Cache the C locale object.
51297         * lib/c-strtod.c (c_locale_cache): New variable.
51298         (c_locale): New function.
51299         (C_STRTOD): Use it, and don't call freelocale.
51300         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51301         Suggested by Paolo Bonzini.
51302
51303 2009-01-21  Bruno Haible  <bruno@clisp.org>
51304
51305         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51306         conditions other than overflow.
51307
51308 2009-01-21  Bruno Haible  <bruno@clisp.org>
51309
51310         * lib/c-strtod.c: Include errno.h.
51311         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51312         value from STRTOD_L and STRTOD.
51313
51314 2009-01-21  Bruno Haible  <bruno@clisp.org>
51315         and Jim Meyering  <meyering@redhat.com>
51316
51317         nanosleep: skip configure test (fail it) for apple universal builds
51318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51319         universal builds, assume that nanosleep does not work.
51320         * modules/nanosleep (Depends-on): Add multiarch.
51321
51322         mktime: skip configure test (fail it) for apple universal builds
51323         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51324         universal builds, assume that mktime does not work.
51325         * modules/mktime (Depends-on): Add multiarch.
51326
51327 2009-01-21  Eric Blake  <ebb9@byu.net>
51328
51329         multiarch: avoid expand-before-require warning
51330         * modules/multiarch (configure.ac): Require, rather than expand,
51331         gl_MULTIARCH.
51332         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51333         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51334         enforce that all clients require it.  Partial reversion of
51335         2008-12-29 patch.
51336
51337         error: avoid expand-before-require warning
51338         * modules/errno (configure.ac): Require, rather than expand,
51339         gl_HEADER_ERRNO_H.
51340         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51341         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51342         enforce that all clients require it.
51343
51344         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51345         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51346         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51347         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51348
51349 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51350
51351         Revert:
51352         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51353
51354         regex: do not depend on obsolete modules.
51355         * modules/regex: Remove memcmp and memmove.
51356
51357 2009-01-20  Bruno Haible  <bruno@clisp.org>
51358
51359         Make the 'link' module link on Windows NT 4.
51360         * lib/link.c (_WIN32_WINNT): Don't define.
51361         (CreateHardLinkFuncType): New type.
51362         (CreateHardLinkFunc, initialized): New variables.
51363         (initialize): New function.
51364         (link): Invoke CreateHardLink indirectly through the function pointer.
51365
51366 2009-01-20  Bruno Haible  <bruno@clisp.org>
51367
51368         Fix compilation failure on mingw.
51369         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51370
51371 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51372
51373         * doc/c-strtod.texi: Mention a couple of restrictions.
51374
51375 2009-01-20  Jim Meyering  <meyering@redhat.com>
51376
51377         gettimeofday: move more declarations out of functions
51378         * lib/gettimeofday.c: Move extern declarations of tzset and
51379         gmtime out of containing functions.  Prompted by Bruno Haible.
51380
51381 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51382
51383         regex: do not depend on obsolete modules.
51384         * modules/regex: Remove memcmp and memmove.
51385
51386 2009-01-19  Bruno Haible  <bruno@clisp.org>
51387
51388         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51389         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51390         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51391         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51392         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51393
51394 2009-01-19  Bruno Haible  <bruno@clisp.org>
51395
51396         * tests/test-link.c: Include <errno.h>.
51397         (main): Exit with code 77 when a hard link cannot be created due to
51398         the file system.
51399         * tests/test-link.sh: Skip test when a hard link cannot be created due
51400         to the file system.
51401         Suggested by Eric Blake.
51402
51403 2009-01-19  Martin Lambers  <marlam@marlam.de>
51404
51405         * modules/link-tests: New file.
51406         * tests/test-link.sh: New file.
51407         * tests/test-link.c: New file.
51408
51409 2009-01-19  Eric Blake  <ebb9@byu.net>
51410
51411         doc: mention another function added in cygwin 1.7.0
51412         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51413         Another new function in cygwin 1.7.
51414
51415 2009-01-19  Bruno Haible  <bruno@clisp.org>
51416
51417         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51418         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51419         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51420         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51421         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51422         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51423         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51424         * m4/md4.m4 (gl_MD4): Likewise.
51425         * m4/md5.m4 (gl_MD5): Likewise.
51426         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51427         * m4/sha1.m4 (gl_SHA1): Likewise.
51428         * m4/sha256.m4 (gl_SHA256): Likewise.
51429         * m4/sha512.m4 (gl_SHA512): Likewise.
51430
51431 2009-01-19  Bruno Haible  <bruno@clisp.org>
51432
51433         * modules/uniname/uniname-tests (Depends-on): Add progname.
51434         * tests/uniname/test-uninames.c: Include progname.h.
51435         (main): Call set_program_name.
51436
51437         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51438         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51439         (main): Call set_program_name.
51440
51441         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51442         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51443         (main): Call set_program_name.
51444
51445         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51446         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51447         (main): Call set_program_name.
51448
51449         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51450         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51451         (main): Call set_program_name.
51452
51453         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51454         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51455         (main): Call set_program_name.
51456
51457         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51458         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51459         (main): Call set_program_name.
51460
51461         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51462         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51463         (main): Call set_program_name.
51464
51465         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51466         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51467         (main): Call set_program_name.
51468
51469 2009-01-19  Eric Blake  <ebb9@byu.net>
51470
51471         test-unistd: test previous patch
51472         * tests/test-unistd.c: Test *_FILENO macros.
51473
51474         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51475         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51476         Guarantee a definition.
51477         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51478         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51479         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51480         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51481         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51482         Likewise.
51483         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51484         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51485         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51486         Likewise.
51487         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51488         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51489         (STDERR_FILENO): Likewise.
51490         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51491         (STDERR_FILENO): Likewise.
51492         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51493         (STDERR_FILENO): Likewise.
51494         Reported by Elbert Pol.
51495
51496 2009-01-19  Eric Blake  <ebb9@byu.net>
51497
51498         doc: mention more functions added in cygwin 1.7.0
51499         * doc/posix-functions/abort.texi (abort): Update wording related
51500         to cygwin.
51501         * doc/posix-functions/daylight.texi (daylight): Likewise.
51502         * doc/posix-functions/optarg.texi (optarg): Likewise.
51503         * doc/posix-functions/optarg.texi (opterr): Likewise.
51504         * doc/posix-functions/optarg.texi (optind): Likewise.
51505         * doc/posix-functions/optarg.texi (optopt): Likewise.
51506         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51507         worked in 1.5.x, and was withdrawn in 1.7.
51508         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51509         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51510         cygwin versions.
51511         * doc/posix-functions/perror.texi (perror): Likewise.
51512         * doc/posix-functions/printf.texi (printf): Likewise.
51513         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51514         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51515         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51516         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51517         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51518         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51519         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51520         Likewise.
51521         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51522         Likewise.
51523         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51524         this function.
51525         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51526         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51527         Likewise.
51528         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51529         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51530         * doc/posix-functions/confstr.texi (confstr): Likewise.
51531         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51532         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51533         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51534         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51535         * doc/posix-functions/fputws.texi (fputws): Likewise.
51536         * doc/posix-functions/fwide.texi (fwide): Likewise.
51537         * doc/posix-functions/getwc.texi (getwc): Likewise.
51538         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51539         * doc/posix-functions/putwc.texi (putwc): Likewise.
51540         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51541         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51542         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51543         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51544         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51545         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51546         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51547         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51548         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51549         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51550         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51551
51552 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51553
51554         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51555         * lib/ioctl.c: Include <sys/ioctl.h>.
51556
51557 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51558
51559         * modules/getdate-tests (Depends-on): Add progname.
51560         * tests/test-getdate.c: Use progname module, to avoid link errors
51561         on non-glibc systems.
51562
51563 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51564
51565         * modules/filenamecat-tests (Depends-on): Add progname.
51566         * modules/fstrcmp-tests (Depends-on): Likewise.
51567
51568         * tests/test-filenamecat.c: Use progname module, to avoid link
51569         errors on non-glibc systems.
51570         * tests/test-fstrcmp.c: Likewise.
51571
51572 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51573
51574         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51575         * lib/gettimeofday.c: Move extern declaration out of function.
51576
51577 2009-01-18  Bruno Haible  <bruno@clisp.org>
51578
51579         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51580         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51581         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51582
51583 2009-01-18  Bruno Haible  <bruno@clisp.org>
51584
51585         * lib/strftime.c (MEMPCPY): Remove unused macro.
51586         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51587
51588 2009-01-18  Martin Lambers  <marlam@marlam.de>
51589
51590         New module 'link'.
51591         * lib/unistd.in.h (link): New declaration.
51592         * lib/link.c: New file.
51593         * m4/link.m4: New file.
51594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51595         HAVE_LINK.
51596         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51597         * modules/link: New file.
51598         * doc/posix-functions/link.texi: Mention the new module.
51599
51600 2009-01-18  Bruno Haible  <bruno@clisp.org>
51601
51602         * tests/test-avltree_list.c (main): Call set_program_name.
51603         * tests/test-avltree_oset.c (main): Likewise.
51604         * tests/test-obstack-printf.c: Include progname.h.
51605         (main): Call set_program_name.
51606         * tests/test-quotearg.c: Include progname.h.
51607         (main): Call set_program_name.
51608         * tests/test-xmemdup0.c: Include progname.h.
51609         (main): Call set_program_name.
51610
51611 2009-01-18  Bruno Haible  <bruno@clisp.org>
51612
51613         New module 'alphasort'.
51614         * lib/dirent.in.h (alphasort): New declaration.
51615         * lib/alphasort.c: New file, from glibc with modifications.
51616         * m4/alphasort.m4: New file.
51617         * modules/alphasort: New file.
51618         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51619         HAVE_ALPHASORT.
51620         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51621         HAVE_ALPHASORT.
51622         * doc/posix-functions/alphasort.texi: Mention the new module and the
51623         portability problems.
51624
51625 2009-01-18  Bruno Haible  <bruno@clisp.org>
51626
51627         New module 'scandir'.
51628         * lib/dirent.in.h (scandir): New declaration.
51629         * lib/scandir.c: New file, from glibc with modifications.
51630         * m4/scandir.m4: New file.
51631         * modules/scandir: New file.
51632         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51633         HAVE_SCANDIR.
51634         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51635         HAVE_SCANDIR.
51636         * doc/posix-functions/scandir.texi: Mention the new module and the
51637         portability problems.
51638
51639 2009-01-17  Bruno Haible  <bruno@clisp.org>
51640
51641         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51642         Update documentation.
51643         (func_remove_suffix): Escape all dots in the suffix. Update
51644         documentation.
51645         (func_filter_filelist): Update documentation.
51646         Reported by Ralf Wildenhues.
51647
51648 2009-01-17  Bruno Haible  <bruno@clisp.org>
51649
51650         * modules/dprintf-posix-tests: New file.
51651         * tests/test-dprintf-posix.sh: New file.
51652         * tests/test-dprintf-posix.c: New file.
51653
51654         New modules 'dprintf', 'dprintf-posix'.
51655         * lib/stdio.in.h (dprintf): New declaration.
51656         * lib/dprintf.c: New file.
51657         * m4/dprintf.m4: New file.
51658         * m4/dprintf-posix.m4: New file.
51659         * modules/dprintf: New file.
51660         * modules/dprintf-posix: New file.
51661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51662         HAVE_DPRINTF, REPLACE_DPRINTF.
51663         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51664         HAVE_DPRINTF, REPLACE_DPRINTF.
51665         * doc/posix-functions/dprintf.texi: Mention the new modules.
51666
51667 2009-01-17  Bruno Haible  <bruno@clisp.org>
51668
51669         * modules/vdprintf-posix-tests: New file.
51670         * tests/test-vdprintf-posix.sh: New file.
51671         * tests/test-vdprintf-posix.c: New file.
51672
51673         New modules 'vdprintf', 'vdprintf-posix'.
51674         * lib/stdio.in.h (vdprintf): New declaration.
51675         * lib/vdprintf.c: New file.
51676         * m4/vdprintf.m4: New file.
51677         * m4/vdprintf-posix.m4: New file.
51678         * modules/vdprintf: New file.
51679         * modules/vdprintf-posix: New file.
51680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51681         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51682         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51683         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51684         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51685
51686 2009-01-17  Bruno Haible  <bruno@clisp.org>
51687
51688         Fix replacement of fopen on mingw.
51689         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51690         mingw.
51691
51692 2009-01-17  Bruno Haible  <bruno@clisp.org>
51693
51694         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51695         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51696
51697 2009-01-17  Bruno Haible  <bruno@clisp.org>
51698
51699         Avoid test-fflush2.sh failure on mingw.
51700         * tests/test-fflush2.c: Include binary-io.h.
51701         (main): Put standard input into binary mode.
51702         * modules/fflush-tests (Depends-on): Add binary-io.
51703
51704 2009-01-17  Bruno Haible  <bruno@clisp.org>
51705
51706         * lib/wchar.in.h: In another particular situation, include only the
51707         system's <wchar.h> file.
51708         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51709         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51710         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51711
51712 2009-01-17  Bruno Haible  <bruno@clisp.org>
51713
51714         Support for stripping executables in --enable-relocatable.
51715         * build-aux/install-reloc: Expect one more argument, or an environment
51716         variable RELOC_STRIP_PROG. If set, strip the destination program and
51717         its wrapper.
51718         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51719         RELOC_STRIP_PROG.
51720         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51721         to set RELOCATABLE_STRIP.
51722         * NEWS: Mention the new Makefile requirement.
51723
51724 2009-01-17  Bruno Haible  <bruno@clisp.org>
51725
51726         * build-aux/install-reloc: Remove debugging information left over by
51727         C compiler on MacOS X.
51728
51729 2009-01-17  Bruno Haible  <bruno@clisp.org>
51730
51731         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51732         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51733         _NSGetExecutablePath.
51734
51735 2009-01-16  Jim Meyering  <meyering@redhat.com>
51736
51737         strerror: avoid warnings about discarding "const"
51738         * lib/strerror.c (rpl_strerror): Instead of returning a const
51739         string from each and every "case", use a variable, and add a single
51740         cast after the switch.
51741
51742 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51743
51744         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51745
51746 2009-01-16  Bruno Haible  <bruno@clisp.org>
51747
51748         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51749         array initializer syntax that also works in C++ mode.
51750         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51751
51752 2009-01-16  Jim Meyering  <meyering@redhat.com>
51753
51754         poll: suppress a warning
51755         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51756         to ignore "...unsigned expression < 0 is always false" warnings.
51757
51758 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51759
51760         poll: remove declarations of unused variables
51761         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51762         sockbuf and optlen.
51763
51764 2009-01-15  Bruno Haible  <bruno@clisp.org>
51765
51766         Make fflush-after-ungetc POSIX compliant on BSD systems.
51767         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51768         (clear_ungetc_buffer): Implement also for other systems.
51769         (rpl_fflush): On glibc systems, invoke
51770         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51771         clear_ungetc_buffer after fetching the stream's position, not before.
51772
51773 2009-01-15  Bruno Haible  <bruno@clisp.org>
51774
51775         Make fflush-after-ungetc POSIX compliant on glibc systems.
51776         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51777         after ungetc.
51778         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51779         (rpl_fflush): On glibc systems, simply call the system's fflush
51780         function after clearing the ungetc buffer.
51781         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51782         Instead, lseek only to the end of file, then use the system's fseeko
51783         for the rest. On glibc systems, reset the EOF indicator bit.
51784
51785 2009-01-15  Jim Meyering  <meyering@redhat.com>
51786
51787         openmp.m4: revert quote-adding change, for portability to older autoconf
51788         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51789         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51790         Simon Josefsson noticed the problem when using autoconf-2.61.
51791
51792 2009-01-15  Bruno Haible  <bruno@clisp.org>
51793
51794         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51795         * tests/test-fflush2.c (ASSERT): Always fail.
51796         (main): Add two tests for fflush() after ungetc(), taking into account
51797         the Austin Group's clarification.
51798         Suggested by Eric Blake.
51799
51800 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51801
51802         mktime.m4: remove K&R-style function prototypes
51803         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51804         for the Sun C++ compiler.
51805
51806 2009-01-14  Bruno Haible  <bruno@clisp.org>
51807
51808         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51809         while including <wchar.h>.
51810         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51811         the system's <wchar.h> file.
51812         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51813
51814 2009-01-14  Bruno Haible  <bruno@clisp.org>
51815
51816         * m4/csharp.m4: Don't mention gettext on the serial number line.
51817         * m4/csharpexec.m4: Likewise.
51818         * m4/eaccess.m4: Likewise.
51819         * m4/javaexec.m4: Likewise.
51820         * m4/sig_atomic_t.m4: Likewise.
51821         * m4/tmpdir.m4: Likewise.
51822         * m4/intldir.m4: Bump gettext version.
51823         * m4/lib-ld.m4: Likewise.
51824
51825 2009-01-14  Bruno Haible  <bruno@clisp.org>
51826
51827         * lib/progname.c (set_program_name): Add more comments.
51828         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51829
51830 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51831
51832         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51833         were sys/stat.h does not define it.
51834
51835 2009-01-14  Jim Meyering  <meyering@redhat.com>
51836
51837         many *.m4 files: improve m4 quoting
51838         99% of this change was performed by running the following commands:
51839         git ls-files | grep '\.m4$' | xargs perl -pi \
51840           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51841           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51842           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51843           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51844         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51845         The remainder were to add Copyright dates, increment serial numbers,
51846         undo some changes in comments, exclude m4/intl.m4, and add quotes
51847         around the "1" in ",1" where the unusual spacing prohibited the
51848         above regexps from doing the job.  For more details, see
51849         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51850         * m4/acl.m4: Modified.
51851         * m4/afs.m4: Likewise.
51852         * m4/alloca.m4: Likewise.
51853         * m4/argp.m4: Likewise.
51854         * m4/argz.m4: Likewise.
51855         * m4/atexit.m4: Likewise.
51856         * m4/bison-i18n.m4: Likewise.
51857         * m4/bison.m4: Likewise.
51858         * m4/byteswap.m4: Likewise.
51859         * m4/c-stack.m4: Likewise.
51860         * m4/c-strtod.m4: Likewise.
51861         * m4/calloc.m4: Likewise.
51862         * m4/canonicalize-lgpl.m4: Likewise.
51863         * m4/chown.m4: Likewise.
51864         * m4/clock_time.m4: Likewise.
51865         * m4/codeset.m4: Likewise.
51866         * m4/copy-file.m4: Likewise.
51867         * m4/csharp.m4: Likewise.
51868         * m4/csharpcomp.m4: Likewise.
51869         * m4/csharpexec.m4: Likewise.
51870         * m4/d-ino.m4: Likewise.
51871         * m4/d-type.m4: Likewise.
51872         * m4/dirfd.m4: Likewise.
51873         * m4/double-slash-root.m4: Likewise.
51874         * m4/eaccess.m4: Likewise.
51875         * m4/eealloc.m4: Likewise.
51876         * m4/environ.m4: Likewise.
51877         * m4/errno_h.m4: Likewise.
51878         * m4/euidaccess.m4: Likewise.
51879         * m4/execute.m4: Likewise.
51880         * m4/fatal-signal.m4: Likewise.
51881         * m4/fchdir.m4: Likewise.
51882         * m4/fcntl_h.m4: Likewise.
51883         * m4/fileblocks.m4: Likewise.
51884         * m4/filenamecat.m4: Likewise.
51885         * m4/findprog.m4: Likewise.
51886         * m4/flexmember.m4: Likewise.
51887         * m4/fnmatch.m4: Likewise.
51888         * m4/fopen.m4: Likewise.
51889         * m4/fpending.m4: Likewise.
51890         * m4/fprintf-posix.m4: Likewise.
51891         * m4/free.m4: Likewise.
51892         * m4/frexp.m4: Likewise.
51893         * m4/frexpl.m4: Likewise.
51894         * m4/fsusage.m4: Likewise.
51895         * m4/ftruncate.m4: Likewise.
51896         * m4/gc-camellia.m4: Likewise.
51897         * m4/gc-random.m4: Likewise.
51898         * m4/gc.m4: Likewise.
51899         * m4/getaddrinfo.m4: Likewise.
51900         * m4/getcwd-abort-bug.m4: Likewise.
51901         * m4/getcwd-path-max.m4: Likewise.
51902         * m4/getdate.m4: Likewise.
51903         * m4/getdomainname.m4: Likewise.
51904         * m4/getgroups.m4: Likewise.
51905         * m4/gethostname.m4: Likewise.
51906         * m4/gethrxtime.m4: Likewise.
51907         * m4/getline.m4: Likewise.
51908         * m4/getloadavg.m4: Likewise.
51909         * m4/getndelim2.m4: Likewise.
51910         * m4/getpass.m4: Likewise.
51911         * m4/gettext.m4: Likewise.
51912         * m4/gettime.m4: Likewise.
51913         * m4/gettimeofday.m4: Likewise.
51914         * m4/gnulib-common.m4: Likewise.
51915         * m4/group-member.m4: Likewise.
51916         * m4/host-os.m4: Likewise.
51917         * m4/iconv.m4: Likewise.
51918         * m4/iconv_open.m4: Likewise.
51919         * m4/inet_ntop.m4: Likewise.
51920         * m4/inet_pton.m4: Likewise.
51921         * m4/inline.m4: Likewise.
51922         * m4/intldir.m4: Likewise.
51923         * m4/intlmacosx.m4: Likewise.
51924         * m4/intmax.m4: Likewise.
51925         * m4/intmax_t.m4: Likewise.
51926         * m4/inttypes.m4: Likewise.
51927         * m4/inttypes_h.m4: Likewise.
51928         * m4/inttypes-pri.m4: Likewise.
51929         * m4/isapipe.m4: Likewise.
51930         * m4/isnand.m4: Likewise.
51931         * m4/isnanf.m4: Likewise.
51932         * m4/isnanl.m4: Likewise.
51933         * m4/javacomp.m4: Likewise.
51934         * m4/javaexec.m4: Likewise.
51935         * m4/jm-winsz1.m4: Likewise.
51936         * m4/jm-winsz2.m4: Likewise.
51937         * m4/lchown.m4: Likewise.
51938         * m4/lcmessage.m4: Likewise.
51939         * m4/ldexpl.m4: Likewise.
51940         * m4/lib-ld.m4: Likewise.
51941         * m4/lib-link.m4: Likewise.
51942         * m4/libsigsegv.m4: Likewise.
51943         * m4/link-follow.m4: Likewise.
51944         * m4/localcharset.m4: Likewise.
51945         * m4/locale-fr.m4: Likewise.
51946         * m4/locale-ja.m4: Likewise.
51947         * m4/locale-tr.m4: Likewise.
51948         * m4/locale-zh.m4: Likewise.
51949         * m4/lock.m4: Likewise.
51950         * m4/longlong.m4: Likewise.
51951         * m4/ls-mntd-fs.m4: Likewise.
51952         * m4/lstat.m4: Likewise.
51953         * m4/malloc.m4: Likewise.
51954         * m4/mathl.m4: Likewise.
51955         * m4/mbrtowc.m4: Likewise.
51956         * m4/mbstate_t.m4: Likewise.
51957         * m4/mbswidth.m4: Likewise.
51958         * m4/memchr.m4: Likewise.
51959         * m4/memcmp.m4: Likewise.
51960         * m4/memcpy.m4: Likewise.
51961         * m4/memmem.m4: Likewise.
51962         * m4/memmove.m4: Likewise.
51963         * m4/mempcpy.m4: Likewise.
51964         * m4/memrchr.m4: Likewise.
51965         * m4/memset.m4: Likewise.
51966         * m4/minmax.m4: Likewise.
51967         * m4/mkdir-slash.m4: Likewise.
51968         * m4/mkdtemp.m4: Likewise.
51969         * m4/mktime.m4: Likewise.
51970         * m4/mmap-anon.m4: Likewise.
51971         * m4/mountlist.m4: Likewise.
51972         * m4/nanosleep.m4: Likewise.
51973         * m4/nls.m4: Likewise.
51974         * m4/nocrash.m4: Likewise.
51975         * m4/open.m4: Likewise.
51976         * m4/openat.m4: Likewise.
51977         * m4/openmp.m4: Likewise.
51978         * m4/pathmax.m4: Likewise.
51979         * m4/perl.m4: Likewise.
51980         * m4/physmem.m4: Likewise.
51981         * m4/pipe.m4: Likewise.
51982         * m4/po.m4: Likewise.
51983         * m4/poll.m4: Likewise.
51984         * m4/posixtm.m4: Likewise.
51985         * m4/posixver.m4: Likewise.
51986         * m4/printf-frexp.m4: Likewise.
51987         * m4/printf-frexpl.m4: Likewise.
51988         * m4/printf-posix.m4: Likewise.
51989         * m4/printf-posix-rpl.m4: Likewise.
51990         * m4/printf.m4: Likewise.
51991         * m4/progtest.m4: Likewise.
51992         * m4/putenv.m4: Likewise.
51993         * m4/readline.m4: Likewise.
51994         * m4/readlink.m4: Likewise.
51995         * m4/readutmp.m4: Likewise.
51996         * m4/realloc.m4: Likewise.
51997         * m4/regex.m4: Likewise.
51998         * m4/relocatable.m4: Likewise.
51999         * m4/relocatable-lib.m4: Likewise.
52000         * m4/rename-dest-slash.m4: Likewise.
52001         * m4/rename.m4: Likewise.
52002         * m4/rmdir-errno.m4: Likewise.
52003         * m4/rmdir.m4: Likewise.
52004         * m4/roundf.m4: Likewise.
52005         * m4/roundl.m4: Likewise.
52006         * m4/rpmatch.m4: Likewise.
52007         * m4/save-cwd.m4: Likewise.
52008         * m4/selinux-selinux-h.m4: Likewise.
52009         * m4/setenv.m4: Likewise.
52010         * m4/settime.m4: Likewise.
52011         * m4/sig2str.m4: Likewise.
52012         * m4/sig_atomic_t.m4: Likewise.
52013         * m4/signalblocking.m4: Likewise.
52014         * m4/signbit.m4: Likewise.
52015         * m4/sigpipe.m4: Likewise.
52016         * m4/sockets.m4: Likewise.
52017         * m4/sockpfaf.m4: Likewise.
52018         * m4/st_dm_mode.m4: Likewise.
52019         * m4/stat-time.m4: Likewise.
52020         * m4/stdbool.m4: Likewise.
52021         * m4/stdint.m4: Likewise.
52022         * m4/stdint_h.m4: Likewise.
52023         * m4/stpcpy.m4: Likewise.
52024         * m4/stpncpy.m4: Likewise.
52025         * m4/strcase.m4: Likewise.
52026         * m4/strchrnul.m4: Likewise.
52027         * m4/strcspn.m4: Likewise.
52028         * m4/strdup.m4: Likewise.
52029         * m4/strftime.m4: Likewise.
52030         * m4/strndup.m4: Likewise.
52031         * m4/strnlen.m4: Likewise.
52032         * m4/strpbrk.m4: Likewise.
52033         * m4/strptime.m4: Likewise.
52034         * m4/strsep.m4: Likewise.
52035         * m4/strtod.m4: Likewise.
52036         * m4/strtoimax.m4: Likewise.
52037         * m4/strtok_r.m4: Likewise.
52038         * m4/strtol.m4: Likewise.
52039         * m4/strtoll.m4: Likewise.
52040         * m4/strtoul.m4: Likewise.
52041         * m4/strtoull.m4: Likewise.
52042         * m4/strtoumax.m4: Likewise.
52043         * m4/strverscmp.m4: Likewise.
52044         * m4/threadlib.m4: Likewise.
52045         * m4/timegm.m4: Likewise.
52046         * m4/tm_gmtoff.m4: Likewise.
52047         * m4/tmpdir.m4: Likewise.
52048         * m4/tmpfile.m4: Likewise.
52049         * m4/tzset.m4: Likewise.
52050         * m4/uintmax_t.m4: Likewise.
52051         * m4/unlinkdir.m4: Likewise.
52052         * m4/unlocked-io.m4: Likewise.
52053         * m4/uptime.m4: Likewise.
52054         * m4/userspec.m4: Likewise.
52055         * m4/utimbuf.m4: Likewise.
52056         * m4/utime.m4: Likewise.
52057         * m4/utimes-null.m4: Likewise.
52058         * m4/utimes.m4: Likewise.
52059         * m4/vararrays.m4: Likewise.
52060         * m4/vasnprintf.m4: Likewise.
52061         * m4/vfprintf-posix.m4: Likewise.
52062         * m4/vprintf-posix.m4: Likewise.
52063         * m4/wait-process.m4: Likewise.
52064         * m4/wchar_t.m4: Likewise.
52065         * m4/wint_t.m4: Likewise.
52066         * m4/write-any-file.m4: Likewise.
52067         * m4/yield.m4: Likewise.
52068
52069 2009-01-13  Bruno Haible  <bruno@clisp.org>
52070
52071         Avoid test-copy-file.sh failures when ACL support insufficient.
52072         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52073         TESTS_ENVIRONMENT.
52074         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52075         Reported by Jim Meyering.
52076
52077 2009-01-13  Bruno Haible  <bruno@clisp.org>
52078
52079         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52080         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52081         * modules/unistdio/u8-printf-parse (Files): Likewise.
52082         * modules/unistdio/u32-printf-parse (Files): Likewise.
52083         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52084
52085 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52086
52087         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52088         and m4/inttypes_h.m4 too.
52089
52090 2009-01-12  Eric Blake  <ebb9@byu.net>
52091
52092         tests: IRIX 6.2 cc can't compile -0.0 into .data
52093         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52094         rather than at compile-time.
52095         * tests/test-floorl.c (minus_zero): Likewise.
52096         * tests/test-frexpl.c (minus_zero): Likewise.
52097         * tests/test-isnan.c (minus_zerol): Likewise.
52098         * tests/test-isnanl.h (minus_zero): Likewise.
52099         * tests/test-ldexpl.c (minus_zero): Likewise.
52100         * tests/test-roundl.c (minus_zero): Likewise.
52101         * tests/test-signbit.c (minus_zerol): Likewise.
52102         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52103         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52104         * tests/test-truncl.c (minus_zero): Likewise.
52105         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52106         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52107         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52108
52109 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52110
52111         regex: fix glibc bug 9697
52112         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52113         handling.
52114
52115 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52116
52117         regex: fix glibc bug 697
52118         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52119         being NULL also if there are no backreferences.
52120
52121 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52122
52123         regex: merge glibc changes
52124         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52125         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52126         re_string_skip_chars, re_string_reconstruct): Likewise.
52127         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52128
52129 2009-01-07  Jim Meyering  <meyering@redhat.com>
52130
52131         poll: filter through cppi
52132         * lib/poll.c: Indent cpp directives to reflect nesting.
52133
52134 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52135
52136         poll: don't return uninitialized
52137         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52138
52139 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52140
52141         avoid compile failure on AIX 6.1
52142         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52143         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52144
52145 2009-01-04  Jim Meyering  <meyering@redhat.com>
52146
52147         remove duplicate inclusion of <stdio.h>
52148         * tests/test-fprintf-posix.c: Likewise.
52149         * tests/test-printf-posix.c: Likewise.
52150         * tests/test-snprintf-posix.c: Likewise.
52151         * tests/test-sprintf-posix.c: Likewise.
52152         * tests/test-vasprintf-posix.c: Likewise.
52153         * tests/test-vfprintf-posix.c: Likewise.
52154         * tests/test-vprintf-posix.c: Likewise.
52155         * tests/test-vsnprintf-posix.c: Likewise.
52156         * tests/test-vsprintf-posix.c: Likewise.
52157
52158 2009-01-03  Jim Meyering  <meyering@redhat.com>
52159
52160         gnulib-tool: fix sed-based filtering
52161         * gnulib-tool (func_filter_filelist): Remove extra backslash
52162         in sed_fff_filter definition.
52163
52164 2009-01-02  Jim Meyering  <meyering@redhat.com>
52165
52166         strftime: avoid compilation failure on Solaris 2.6
52167         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52168         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52169         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52170         be available.  Reported by Tom G. Christensen.  Details in
52171         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52172
52173 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52174             Bruno Haible  <bruno@clisp.org>
52175
52176         Speed up gnulib-tool by doing more string processing through shell
52177         built-ins.
52178         * gnulib-tool (fast_func_append): New variable.
52179         (func_remove_prefix, func_remove_suffix): New functions.
52180         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52181         (func_filter_filelist): New function.
52182         (func_get_dependencies): Use func_remove_suffix instead of sed.
52183         (func_get_automake_snippet): Use func_filter_filelist instead of a
52184         subshell and sed invocation.
52185
52186 2009-01-01  Bruno Haible  <bruno@clisp.org>
52187
52188         Fix a security bug.
52189         * gnulib-tool (func_import, import, update): Don't allow the characters
52190         '"', '$', '`', '\' in macro arguments that become part of commands that
52191         are evaluated.
52192
52193 2009-01-01  Bruno Haible  <bruno@clisp.org>
52194
52195         * gnulib-tool (func_reset_sigpipe): Add more comments.
52196
52197 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52198
52199         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52200         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52201         already know the answer.
52202
52203 2009-01-01  Jim Meyering  <meyering@redhat.com>
52204
52205         * lib/version-etc.c (version_etc_va): Update copyright year.
52206
52207 2008-12-30  Bruno Haible  <bruno@clisp.org>
52208
52209         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52210         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52211         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52212
52213 2008-12-29  Eric Blake  <ebb9@byu.net>
52214
52215         multiarch: avoid autoconf AC_REQUIRE bug
52216         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52217         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52218         2.63 and older.
52219         Reported by Bruno Haible, and analyzed in
52220         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52221
52222 2008-12-29  Bruno Haible  <bruno@clisp.org>
52223
52224         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52225         files in subdirectories correctly.
52226         Reported by Ralf Wildenhues.
52227
52228 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52229
52230         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52231         rather than 'join FILE -', for Solaris join.
52232
52233 2008-12-29  Bruno Haible  <bruno@clisp.org>
52234
52235         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52236         quoting.
52237         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52238         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52239         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52240         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52241         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52242         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52243         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52244         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52245         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52246         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52247         * m4/nls.m4 (AM_NLS): Likewise.
52248         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52249         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52250         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52251         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52252         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52253         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52254         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52255         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52256         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52257         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52258         * m4/xsize.m4 (gl_XSIZE): Likewise.
52259         Suggested by Jim Meyering.
52260
52261 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52262
52263         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52264         * lib/parse-duration.c: use a switch instead of cascading if's.
52265
52266 2008-12-29  Eric Blake  <ebb9@byu.net>
52267
52268         wchar.h: supply WEOF on Irix 5.3
52269         * lib/wchar.in.h (wint_t): Also supply WEOF.
52270         * lib/wctype.in.h (wint_t): Likewise.
52271         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52272         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52273         Reported by Tom G. Christensen.
52274
52275 2008-12-26  Bruno Haible  <bruno@clisp.org>
52276
52277         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52278         i486, i586, i686.
52279
52280 2008-12-26  Bruno Haible  <bruno@clisp.org>
52281
52282         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52283
52284 2008-12-26  Bruno Haible  <bruno@clisp.org>
52285
52286         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52287         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52288         not __STDC_CONSTANT_MACROS.
52289         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52290
52291 2008-12-25  Bruno Haible  <bruno@clisp.org>
52292
52293         Add support for universal builds to vasnprintf.
52294         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52295         universal builds, guess no.
52296         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52297         * modules/vasprintf-posix (Depends-on): Likewise.
52298         * modules/fprintf-posix (Depends-on): Likewise.
52299         * modules/vfprintf-posix (Depends-on): Likewise.
52300         * modules/snprintf-posix (Depends-on): Likewise.
52301         * modules/vsnprintf-posix (Depends-on): Likewise.
52302         * modules/sprintf-posix (Depends-on): Likewise.
52303         * modules/vsprintf-posix (Depends-on): Likewise.
52304         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52305         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52306         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52307         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52308         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52309         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52310         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52311
52312         Add support for universal builds to <inttypes.h>.
52313         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52314         _SCNu64_PREFIX): In Apple
52315         universal builds, define directly, using _LP64.
52316         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52317         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52318         * modules/inttypes (Depends-on): Add multiarch.
52319         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52320
52321         Add support for universal builds to <stdint.h>.
52322         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52323         universal builds, define directly, using _LP64.
52324         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52325         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52326         and size_t.
52327         * modules/stdint (Depends-on): Add multiarch.
52328         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52329
52330         New module 'multiarch'.
52331         * modules/multiarch: New file.
52332         * m4/multiarch.m4: New file.
52333
52334 2008-12-25  Bruno Haible  <bruno@clisp.org>
52335
52336         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52337
52338 2008-12-25  Bruno Haible  <bruno@clisp.org>
52339
52340         * modules/btowc (License): Relicense under LGPLv2+.
52341         * modules/mbsinit (License): Likewise.
52342         * modules/mbrtowc (License): Likewise.
52343         * modules/wcrtomb (License): Likewise.
52344         * modules/streq (License): Likewise.
52345         Reported by David Lutterkort <lutter@redhat.com>.
52346
52347 2008-12-23  Bruno Haible  <bruno@clisp.org>
52348
52349         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52350
52351 2008-12-23  Bruno Haible  <bruno@clisp.org>
52352
52353         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52354         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52355         GETADDRINFO_LIB, not in LIBS.
52356         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52357         * modules/canon-host (Link): Likewise.
52358         * NEWS: Mention the change.
52359         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52360         GETADDRINFO_LIB.
52361
52362 2008-12-22  Bruno Haible  <bruno@clisp.org>
52363
52364         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52365         * doc/posix-functions/iswalpha_l.texi: Likewise.
52366         * doc/posix-functions/iswblank_l.texi: Likewise.
52367         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52368         * doc/posix-functions/iswctype_l.texi: Likewise.
52369         * doc/posix-functions/iswdigit_l.texi: Likewise.
52370         * doc/posix-functions/iswgraph_l.texi: Likewise.
52371         * doc/posix-functions/iswlower_l.texi: Likewise.
52372         * doc/posix-functions/iswprint_l.texi: Likewise.
52373         * doc/posix-functions/iswpunct_l.texi: Likewise.
52374         * doc/posix-functions/iswspace_l.texi: Likewise.
52375         * doc/posix-functions/iswupper_l.texi: Likewise.
52376         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52377         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52378         * doc/posix-functions/open_wmemstream.texi: Likewise.
52379         * doc/posix-functions/swscanf.texi: Likewise.
52380         * doc/posix-functions/towctrans_l.texi: Likewise.
52381         * doc/posix-functions/towlower.texi: Likewise.
52382         * doc/posix-functions/towlower_l.texi: Likewise.
52383         * doc/posix-functions/towupper.texi: Likewise.
52384         * doc/posix-functions/towupper_l.texi: Likewise.
52385         * doc/posix-functions/vfwprintf.texi: Likewise.
52386         * doc/posix-functions/vfwscanf.texi: Likewise.
52387         * doc/posix-functions/vswscanf.texi: Likewise.
52388         * doc/posix-functions/vwprintf.texi: Likewise.
52389         * doc/posix-functions/vwscanf.texi: Likewise.
52390         * doc/posix-functions/wcpcpy.texi: Likewise.
52391         * doc/posix-functions/wcpncpy.texi: Likewise.
52392         * doc/posix-functions/wcscasecmp.texi: Likewise.
52393         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52394         * doc/posix-functions/wcscoll_l.texi: Likewise.
52395         * doc/posix-functions/wcsdup.texi: Likewise.
52396         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52397         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52398         * doc/posix-functions/wcsnlen.texi: Likewise.
52399         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52400         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52401         * doc/posix-functions/wctrans_l.texi: Likewise.
52402         * doc/posix-functions/wctype_l.texi: Likewise.
52403         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52404         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52405         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52406         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52407         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52408         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52409         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52410         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52411         * doc/glibc-functions/wcschrnul.texi: Likewise.
52412         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52413         * doc/glibc-functions/wcstod_l.texi: Likewise.
52414         * doc/glibc-functions/wcstof_l.texi: Likewise.
52415         * doc/glibc-functions/wcstol_l.texi: Likewise.
52416         * doc/glibc-functions/wcstold_l.texi: Likewise.
52417         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52418         * doc/glibc-functions/wcstoq.texi: Likewise.
52419         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52420         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52421         * doc/glibc-functions/wcstouq.texi: Likewise.
52422         * doc/glibc-functions/wmempcpy.texi: Likewise.
52423
52424 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52425             Eric Blake  <ebb9@byu.net>
52426             Paolo Bonzini  <bonzini@gnu.org>
52427             Bruno Haible  <bruno@clisp.org>
52428
52429         Make c-stack work on Haiku.
52430         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52431         (c_stack_action): Use SA_ONSTACK flag.
52432
52433 2008-12-22  Bruno Haible  <bruno@clisp.org>
52434
52435         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52436
52437 2008-12-22  Bruno Haible  <bruno@clisp.org>
52438
52439         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52440         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52441         being overridden.
52442         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52443         New macros.
52444         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52445         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52446         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52447         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52448
52449 2008-12-22  Bruno Haible  <bruno@clisp.org>
52450
52451         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52452         from test code.
52453
52454 2008-12-22  Eric Blake  <ebb9@byu.net>
52455
52456         Avoid gcc warnings on cygwin.
52457         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52458         Avoid unused variable.
52459         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52460         Likewise.
52461
52462 2008-12-22  Bruno Haible  <bruno@clisp.org>
52463
52464         Remove HAVE_MBRTOWC conditionals.
52465         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52466         (mbscasecmp): Assume mbrtowc function.
52467         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52468         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52469         * lib/mbschr.c: Include mbuiter.h unconditionally.
52470         (mbschr): Assume mbrtowc function.
52471         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52472         (mbscspn): Assume mbrtowc function.
52473         * lib/mbslen.c: Include mbuiter.h unconditionally.
52474         (mbslen): Assume mbrtowc function.
52475         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52476         (mbsncasecmp): Assume mbrtowc function.
52477         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52478         (mbsnlen): Assume mbrtowc function.
52479         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52480         (mbspbrk): Assume mbrtowc function.
52481         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52482         (mbspcasecmp): Assume mbrtowc function.
52483         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52484         (mbsrchr): Assume mbrtowc function.
52485         * lib/mbssep.c: Include mbuiter.h unconditionally.
52486         (mbssep): Assume mbrtowc function.
52487         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52488         (mbsspn): Assume mbrtowc function.
52489         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52490         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52491         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52492         (mbstok_r): Assume mbrtowc function.
52493         * lib/propername.c: Include mbuiter.h unconditionally.
52494         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52495         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52496         (trim2): Assume mbrtowc function.
52497         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52498         (mbsnwidth): Assume mbrtowc function.
52499         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52500         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52501         fallback definitions.
52502         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52503
52504 2008-12-22  Bruno Haible  <bruno@clisp.org>
52505
52506         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52507
52508 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52509
52510         * modules/regex: Request emulations for the mb*/wc* functions we need.
52511         * m4/regex.m4: Don't look for those functions here.
52512         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52513
52514 2008-12-22  Bruno Haible  <bruno@clisp.org>
52515
52516         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52517
52518 2008-12-21  Bruno Haible  <bruno@clisp.org>
52519
52520         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52521         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52522         (Include): Remove conditionalization.
52523         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52524         (Include): Remove conditionalization.
52525         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52526         (Include): Remove conditionalization.
52527         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52528         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52529         * NEWS: Mention the change.
52530         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52531         via Sergey Poznyakoff <gray@gnu.org.ua>.
52532
52533 2008-12-21  Bruno Haible  <bruno@clisp.org>
52534
52535         * MODULES.html.sh (Extended multibyte and wide character utilities
52536         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52537         wcrtomb, wcsrtombs.
52538         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52539         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52540         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52541         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52542
52543 2008-12-21  Bruno Haible  <bruno@clisp.org>
52544
52545         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52546
52547 2008-12-21  Bruno Haible  <bruno@clisp.org>
52548
52549         * modules/wcsnrtombs-tests: New file.
52550         * tests/test-wcsnrtombs1.sh: New file.
52551         * tests/test-wcsnrtombs2.sh: New file.
52552         * tests/test-wcsnrtombs3.sh: New file.
52553         * tests/test-wcsnrtombs4.sh: New file.
52554         * tests/test-wcsnrtombs.c: New file.
52555
52556         New module 'wcsnrtombs'.
52557         * lib/wchar.in.h (wcsnrtombs): New declaration.
52558         * lib/wcsnrtombs.c: New file.
52559         * lib/wcsrtombs-state.c: New file.
52560         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52561         (internal_state): Remove variable.
52562         * m4/wcsnrtombs.m4: New file.
52563         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52564         compilation units.
52565         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52566         HAVE_WCSNRTOMBS.
52567         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52568         HAVE_WCSNRTOMBS.
52569         * modules/wcsnrtombs: New file.
52570         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52571         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52572
52573 2008-12-21  Bruno Haible  <bruno@clisp.org>
52574
52575         * modules/wcsrtombs-tests: New file.
52576         * tests/test-wcsrtombs1.sh: New file.
52577         * tests/test-wcsrtombs2.sh: New file.
52578         * tests/test-wcsrtombs3.sh: New file.
52579         * tests/test-wcsrtombs4.sh: New file.
52580         * tests/test-wcsrtombs.c: New file.
52581
52582         New module 'wcsrtombs'.
52583         * lib/wchar.in.h (wcsrtombs): New declaration.
52584         * lib/wcsrtombs.c: New file.
52585         * m4/wcsrtombs.m4: New file.
52586         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52587         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52589         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52590         * modules/wcsrtombs: New file.
52591         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52592         bugs.
52593
52594 2008-12-21  Bruno Haible  <bruno@clisp.org>
52595
52596         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52597         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52598         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52599         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52600         if not correct.
52601         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52602         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52603         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52604         m4/locale-zh.m4, m4/codeset.m4.
52605         * doc/posix-functions/wcrtomb.texi: Document the bug.
52606
52607 2008-12-21  Bruno Haible  <bruno@clisp.org>
52608
52609         Work around a btowc() bug on IRIX 6.5.
52610         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52611         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52612         REPLACE_WTOBC if not.
52613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52614         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52615         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52616
52617 2008-12-21  Bruno Haible  <bruno@clisp.org>
52618
52619         * modules/wcrtomb-tests: New file.
52620         * tests/test-wcrtomb.sh: New file.
52621         * tests/test-wcrtomb.c: New file.
52622
52623         New module 'wcrtomb'.
52624         * lib/wchar.in.h (wcrtomb): New declaration.
52625         * lib/wcrtomb.c: New file.
52626         * m4/wcrtomb.m4: New file.
52627         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52628         HAVE_WCRTOMB.
52629         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52630         HAVE_WCRTOMB.
52631         * modules/wcrtomb: New file.
52632         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52633
52634 2008-12-21  Bruno Haible  <bruno@clisp.org>
52635
52636         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52637         * modules/mbsrtowcs (Files): Likewise.
52638         * modules/wctob (Files): Likewise.
52639         * modules/c-strcase-tests (Files): Likewise.
52640         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52641         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52642         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52643         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52644         * modules/vasnprintf-posix-tests (Files): Likewise.
52645
52646 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52647
52648         gitlog-to-changelog: pass all command-line arguments to git-log
52649         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52650         it is sometimes convenient to filter the commits in various ways.
52651         gitlog-to-changelog only allows --since to specify a start date,
52652         but git-log itself supports many other filtering mechanisms.
52653         At the moment, I want to filter by branch name.  Rather than
52654         adding a --branch option to gitlog-to-changelog, it seems more
52655         flexible to simply pass all options directly to git-log and let
52656         git do the work.  Notice that this effectively makes --since a
52657         redundant option for gitlog-to-changelog, but removing it would
52658         require current usage to change since calls would then require
52659         an additional '--'.
52660
52661 2008-12-21  Bruno Haible  <bruno@clisp.org>
52662
52663         * modules/mbsnrtowcs-tests: New file.
52664         * tests/test-mbsnrtowcs1.sh: New file.
52665         * tests/test-mbsnrtowcs2.sh: New file.
52666         * tests/test-mbsnrtowcs3.sh: New file.
52667         * tests/test-mbsnrtowcs4.sh: New file.
52668         * tests/test-mbsnrtowcs.c: New file.
52669
52670         New module 'mbsnrtowcs'.
52671         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52672         * lib/mbsnrtowcs.c: New file.
52673         * lib/mbsrtowcs-state.c: New file.
52674         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52675         (internal_state): Remove variable.
52676         * m4/mbsnrtowcs.m4: New file.
52677         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52678         compilation units.
52679         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52680         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52681         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52682         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52683         * modules/mbsnrtowcs: New file.
52684         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52685         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52686         portability problem.
52687
52688 2008-12-21  Bruno Haible  <bruno@clisp.org>
52689
52690         Work around mbsrtowcs bug.
52691         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52692         (gl_FUNC_MBSRTOWCS): Invoke it.
52693         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52694         m4/locale-zh.m4.
52695         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52696
52697 2008-12-21  Bruno Haible  <bruno@clisp.org>
52698
52699         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52700
52701 2008-12-21  Bruno Haible  <bruno@clisp.org>
52702
52703         Update doc for AIX.
52704         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52705         16-bit wchar_t type.
52706         * doc/posix-functions/btowc.texi: Likewise.
52707         * doc/posix-functions/fgetwc.texi: Likewise.
52708         * doc/posix-functions/fgetws.texi: Likewise.
52709         * doc/posix-functions/fputwc.texi: Likewise.
52710         * doc/posix-functions/fputws.texi: Likewise.
52711         * doc/posix-functions/fwide.texi: Likewise.
52712         * doc/posix-functions/fwprintf.texi: Likewise.
52713         * doc/posix-functions/fwscanf.texi: Likewise.
52714         * doc/posix-functions/getwchar.texi: Likewise.
52715         * doc/posix-functions/getwc.texi: Likewise.
52716         * doc/posix-functions/iswalnum.texi: Likewise.
52717         * doc/posix-functions/iswalpha.texi: Likewise.
52718         * doc/posix-functions/iswblank.texi: Likewise.
52719         * doc/posix-functions/iswcntrl.texi: Likewise.
52720         * doc/posix-functions/iswctype.texi: Likewise.
52721         * doc/posix-functions/iswdigit.texi: Likewise.
52722         * doc/posix-functions/iswgraph.texi: Likewise.
52723         * doc/posix-functions/iswlower.texi: Likewise.
52724         * doc/posix-functions/iswprint.texi: Likewise.
52725         * doc/posix-functions/iswpunct.texi: Likewise.
52726         * doc/posix-functions/iswspace.texi: Likewise.
52727         * doc/posix-functions/iswupper.texi: Likewise.
52728         * doc/posix-functions/iswxdigit.texi: Likewise.
52729         * doc/posix-functions/mbrtowc.texi: Likewise.
52730         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52731         * doc/posix-functions/mbstowcs.texi: Likewise.
52732         * doc/posix-functions/mbtowc.texi: Likewise.
52733         * doc/posix-functions/putwchar.texi: Likewise.
52734         * doc/posix-functions/putwc.texi: Likewise.
52735         * doc/posix-functions/swprintf.texi: Likewise.
52736         * doc/posix-functions/tolower.texi: Likewise.
52737         * doc/posix-functions/toupper.texi: Likewise.
52738         * doc/posix-functions/towctrans.texi: Likewise.
52739         * doc/posix-functions/ungetwc.texi: Likewise.
52740         * doc/posix-functions/vswprintf.texi: Likewise.
52741         * doc/posix-functions/wcrtomb.texi: Likewise.
52742         * doc/posix-functions/wcscat.texi: Likewise.
52743         * doc/posix-functions/wcschr.texi: Likewise.
52744         * doc/posix-functions/wcscmp.texi: Likewise.
52745         * doc/posix-functions/wcscoll.texi: Likewise.
52746         * doc/posix-functions/wcscpy.texi: Likewise.
52747         * doc/posix-functions/wcscspn.texi: Likewise.
52748         * doc/posix-functions/wcsftime.texi: Likewise.
52749         * doc/posix-functions/wcslen.texi: Likewise.
52750         * doc/posix-functions/wcsncat.texi: Likewise.
52751         * doc/posix-functions/wcsncmp.texi: Likewise.
52752         * doc/posix-functions/wcsncpy.texi: Likewise.
52753         * doc/posix-functions/wcspbrk.texi: Likewise.
52754         * doc/posix-functions/wcsrchr.texi: Likewise.
52755         * doc/posix-functions/wcsrtombs.texi: Likewise.
52756         * doc/posix-functions/wcsspn.texi: Likewise.
52757         * doc/posix-functions/wcsstr.texi: Likewise.
52758         * doc/posix-functions/wcstod.texi: Likewise.
52759         * doc/posix-functions/wcstof.texi: Likewise.
52760         * doc/posix-functions/wcstoimax.texi: Likewise.
52761         * doc/posix-functions/wcstok.texi: Likewise.
52762         * doc/posix-functions/wcstold.texi: Likewise.
52763         * doc/posix-functions/wcstoll.texi: Likewise.
52764         * doc/posix-functions/wcstol.texi: Likewise.
52765         * doc/posix-functions/wcstombs.texi: Likewise.
52766         * doc/posix-functions/wcstoull.texi: Likewise.
52767         * doc/posix-functions/wcstoul.texi: Likewise.
52768         * doc/posix-functions/wcstoumax.texi: Likewise.
52769         * doc/posix-functions/wcswidth.texi: Likewise.
52770         * doc/posix-functions/wcsxfrm.texi: Likewise.
52771         * doc/posix-functions/wctob.texi: Likewise.
52772         * doc/posix-functions/wctomb.texi: Likewise.
52773         * doc/posix-functions/wctrans.texi: Likewise.
52774         * doc/posix-functions/wctype.texi: Likewise.
52775         * doc/posix-functions/wcwidth.texi: Likewise.
52776         * doc/posix-functions/wmemchr.texi: Likewise.
52777         * doc/posix-functions/wmemcmp.texi: Likewise.
52778         * doc/posix-functions/wmemcpy.texi: Likewise.
52779         * doc/posix-functions/wmemmove.texi: Likewise.
52780         * doc/posix-functions/wmemset.texi: Likewise.
52781         * doc/posix-functions/wprintf.texi: Likewise.
52782         * doc/posix-functions/wscanf.texi: Likewise.
52783
52784 2008-12-21  Bruno Haible  <bruno@clisp.org>
52785
52786         Update doc for HP-UX 11.11.
52787         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52788         in HP-UX version 11.00, not in all versions of HP-UX 11.
52789         * doc/posix-functions/fwide.texi: Likewise.
52790         * doc/posix-functions/fwprintf.texi: Likewise.
52791         * doc/posix-functions/fwscanf.texi: Likewise.
52792         * doc/posix-functions/inet_ntop.texi: Likewise.
52793         * doc/posix-functions/inet_pton.texi: Likewise.
52794         * doc/posix-functions/mbrlen.texi: Likewise.
52795         * doc/posix-functions/mbrtowc.texi: Likewise.
52796         * doc/posix-functions/mbsinit.texi: Likewise.
52797         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52798         * doc/posix-functions/swprintf.texi: Likewise.
52799         * doc/posix-functions/swscanf.texi: Likewise.
52800         * doc/posix-functions/towctrans.texi: Likewise.
52801         * doc/posix-functions/vfwprintf.texi: Likewise.
52802         * doc/posix-functions/vswprintf.texi: Likewise.
52803         * doc/posix-functions/vwprintf.texi: Likewise.
52804         * doc/posix-functions/wcrtomb.texi: Likewise.
52805         * doc/posix-functions/wcsrtombs.texi: Likewise.
52806         * doc/posix-functions/wcsstr.texi: Likewise.
52807         * doc/posix-functions/wctob.texi: Likewise.
52808         * doc/posix-functions/wctrans.texi: Likewise.
52809         * doc/posix-functions/wmemchr.texi: Likewise.
52810         * doc/posix-functions/wmemcmp.texi: Likewise.
52811         * doc/posix-functions/wmemcpy.texi: Likewise.
52812         * doc/posix-functions/wmemmove.texi: Likewise.
52813         * doc/posix-functions/wmemset.texi: Likewise.
52814         * doc/posix-functions/wprintf.texi: Likewise.
52815         * doc/posix-functions/wscanf.texi: Likewise.
52816
52817 2008-12-21  Bruno Haible  <bruno@clisp.org>
52818
52819         Work around a portability problem.
52820         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52821         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52822
52823 2008-12-20  Bruno Haible  <bruno@clisp.org>
52824
52825         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52826         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52827         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52828         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52829         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52830
52831         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52832         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52833         set.
52834         (GNULIB_defined_mbstate_t): New macro.
52835         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52836         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52837         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52838         reuses the system's mbrtowc function but works around the bugs.
52839         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52840         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52841         macros.
52842         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52843         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52844         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52845         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52846         REPLACE_MBSINIT if mbsinit needs to be overridden.
52847         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52848         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52849         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52850         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52851         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52852         m4/locale-zh.m4.
52853         (Depends): Add mbsinit.
52854         * modules/mbsinit (Depends): Add mbrtowc.
52855         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52856
52857 2008-12-20  Bruno Haible  <bruno@clisp.org>
52858
52859         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52860         so that there are no conversion errors on AIX.
52861         * tests/test-mbsrtowcs.c (main): LIkewise.
52862
52863 2008-12-20  Bruno Haible  <bruno@clisp.org>
52864
52865         Work around wctob bug on Solaris <= 9.
52866         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52867         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52869         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52870         * modules/wctob (Files): Add m4/locale-fr.m4.
52871         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52872
52873 2008-12-20  Bruno Haible  <bruno@clisp.org>
52874
52875         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52876         /dev/null.
52877         * tests/test-select-in.sh: Likewise.
52878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52879
52880 2008-12-20  Bruno Haible  <bruno@clisp.org>
52881
52882         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52883         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52884         Cygwin 1.5.x.
52885
52886 2008-12-20  Bruno Haible  <bruno@clisp.org>
52887
52888         Ensure mbstate_t is defined on HP-UX 11.11.
52889         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52890         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52891         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52892         AC_USE_SYSTEM_EXTENSIONS.
52893         * modules/fnmatch (Depends-on): Add extensions.
52894         * modules/mbrlen (Depends-on): Likewise.
52895         * modules/mbrtowc (Depends-on): Likewise.
52896         * modules/mbsinit (Depends-on): Likewise.
52897         * modules/mbsrtowcs (Depends-on): Likewise.
52898         * modules/mbswidth (Depends-on): Likewise.
52899         * modules/quotearg (Depends-on): Likewise.
52900         * modules/strftime (Depends-on): Likewise.
52901
52902 2008-12-20  Bruno Haible  <bruno@clisp.org>
52903
52904         Ensure wctob is declared on IRIX 6.5.
52905         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52906         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52907         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52908         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52909         of HAVE_WCTOB.
52910         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52911         HAVE_WCTOB.
52912         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52913
52914 2008-12-19  Bruno Haible  <bruno@clisp.org>
52915
52916         * modules/mbsrtowcs-tests: New file.
52917         * tests/test-mbsrtowcs1.sh: New file.
52918         * tests/test-mbsrtowcs2.sh: New file.
52919         * tests/test-mbsrtowcs3.sh: New file.
52920         * tests/test-mbsrtowcs4.sh: New file.
52921         * tests/test-mbsrtowcs.c: New file.
52922
52923         New module 'mbsrtowcs'.
52924         * lib/wchar.in.h (mbsrtowcs): New declaration.
52925         * lib/mbsrtowcs.c: New file.
52926         * m4/mbsrtowcs.m4: New file.
52927         * modules/mbsrtowcs: New file.
52928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52929         HAVE_MBSRTOWCS.
52930         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52931         HAVE_MBSRTOWCS.
52932         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52933
52934 2008-12-19  Bruno Haible  <bruno@clisp.org>
52935
52936         New module 'mbrlen'.
52937         * lib/wchar.in.h (mbrlen): New declaration.
52938         * lib/mbrlen.c: New file.
52939         * m4/mbrlen.m4: New file.
52940         * modules/mbrlen: New file.
52941         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52942         HAVE_MBRLEN.
52943         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52944         HAVE_MBRLEN.
52945         * doc/posix-functions/mbrlen.texi: Document the new module.
52946
52947 2008-12-19  Bruno Haible  <bruno@clisp.org>
52948
52949         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52950         * modules/mbrtowc (Depends-on): Add verify.
52951         Suggested by Paul Eggert.
52952
52953 2008-12-18  Bruno Haible  <bruno@clisp.org>
52954
52955         * modules/mbsinit-tests: New file.
52956         * tests/test-mbsinit.sh: New file.
52957         * tests/test-mbsinit.c: New file.
52958
52959 2008-12-18  Bruno Haible  <bruno@clisp.org>
52960
52961         * modules/mbrtowc-tests: New file.
52962         * tests/test-mbrtowc1.sh: New file.
52963         * tests/test-mbrtowc2.sh: New file.
52964         * tests/test-mbrtowc3.sh: New file.
52965         * tests/test-mbrtowc4.sh: New file.
52966         * tests/test-mbrtowc.c: New file.
52967
52968         New module 'mbrtowc'.
52969         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52970         mbsinit and mbrtowc.
52971         (mbrtowc): New declaration.
52972         * lib/mbrtowc.c: New file.
52973         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52974         * modules/mbrtowc: New file.
52975         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52976         HAVE_MBRTOWC.
52977         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52978         HAVE_MBRTOWC.
52979         * doc/posix-functions/mbrtowc.texi: Document the new module.
52980
52981 2008-12-18  Bruno Haible  <bruno@clisp.org>
52982
52983         New module 'wctob'.
52984         * lib/wchar.in.h (wctob): New declaration.
52985         * lib/wctob.c: New file.
52986         * m4/wctob.m4: New file.
52987         * modules/wctob: New file.
52988         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52989         HAVE_WCTOB.
52990         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52991         * doc/posix-functions/wctob.texi: Document the new module.
52992
52993 2008-12-18  Bruno Haible  <bruno@clisp.org>
52994
52995         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52996         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52997
52998 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52999
53000         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53001         G. Christensen" <tgc@jupiterrise.com>.
53002
53003         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53004         G. Christensen" <tgc@jupiterrise.com>.
53005
53006         * lib/flock.c: Need to include string.h.  Reported by "Tom
53007         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53008         <ebb9@byu.net>.
53009
53010 2008-12-18  Bruno Haible  <bruno@clisp.org>
53011
53012         * m4/locale-ja.m4: New file, from GNU gettext.
53013
53014 2008-12-17  Bruno Haible  <bruno@clisp.org>
53015
53016         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53017         Suggested by Eric Blake.
53018
53019 2008-12-17  Bruno Haible  <bruno@clisp.org>
53020
53021         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53022
53023 2008-12-17  Bruno Haible  <bruno@clisp.org>
53024
53025         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53026         * modules/mbsinit (Depends-on): Add verify.
53027         Suggested by Paul Eggert.
53028
53029 2008-12-17  Bruno Haible  <bruno@clisp.org>
53030
53031         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53032         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53033         gl_FUNC_MBRTOWC.
53034         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53035         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53036         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53037         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53038         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53039         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53040         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53041         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53042         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53043         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53044         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53045         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53046         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53047         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53048         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53049         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53050         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53051         * modules/trim (configure.ac): Likewise.
53052
53053 2008-12-17  Bruno Haible  <bruno@clisp.org>
53054
53055         * modules/btowc-tests: New file.
53056         * tests/test-btowc1.sh: New file.
53057         * tests/test-btowc2.sh: New file.
53058         * tests/test-btowc.c: New file.
53059
53060         New module 'btowc'.
53061         * lib/wchar.in.h (btowc): New declaration.
53062         * lib/btowc.c: New file.
53063         * m4/btowc.m4: New file.
53064         * modules/btowc: New file.
53065         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53066         HAVE_BTOWC.
53067         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53068         * doc/posix-functions/btowc.texi: Document the new module.
53069
53070 2008-12-17  Bruno Haible  <bruno@clisp.org>
53071
53072         New module 'mbsinit'.
53073         * lib/wchar.in.h (mbsinit): New declaration.
53074         * lib/mbsinit.c: New file.
53075         * m4/mbsinit.m4: New file.
53076         * modules/mbsinit: New file.
53077         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53078         HAVE_MBSINIT.
53079         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53080         HAVE_MBSINIT.
53081         * doc/posix-functions/mbsinit.texi: Document the new module.
53082
53083 2008-12-16  Bruno Haible  <bruno@clisp.org>
53084
53085         * lib/unistd.in.h: Add comment.
53086         * tests/test-environ.c: Don't include <stdlib.h>.
53087
53088 2008-12-16  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/parse-duration.h (parse_duration): Document return value
53091         convention.
53092         * lib/parse-duration.c: Include specification header first. Add
53093         comments.
53094         (_): Remove macro.
53095         (parse_year_month_day, parse_hour_minute_second): Move side effects
53096         outside of strchr call.
53097         (parse_non_iso8601): Move side effects outside of isspace call.
53098         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53099         call.
53100
53101 2008-12-16  Bruno Haible  <bruno@clisp.org>
53102
53103         * tests/test-parse-duration.sh: Produce no output when the test
53104         succeeds.
53105
53106 2008-12-16  Bruno Haible  <bruno@clisp.org>
53107
53108         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53109         expressions.
53110
53111 2008-12-15  Bruno Haible  <bruno@clisp.org>
53112
53113         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53114         * doc/glibc-functions/flistxattr.texi: Likewise.
53115         * doc/glibc-functions/fopencookie.texi: Likewise.
53116         * doc/glibc-functions/fremovexattr.texi: Likewise.
53117         * doc/glibc-functions/fsetxattr.texi: Likewise.
53118         * doc/glibc-functions/getxattr.texi: Likewise.
53119         * doc/glibc-functions/lgetxattr.texi: Likewise.
53120         * doc/glibc-functions/listxattr.texi: Likewise.
53121         * doc/glibc-functions/llistxattr.texi: Likewise.
53122         * doc/glibc-functions/lremovexattr.texi: Likewise.
53123         * doc/glibc-functions/lsetxattr.texi: Likewise.
53124         * doc/glibc-functions/removexattr.texi: Likewise.
53125         * doc/glibc-functions/setxattr.texi: Likewise.
53126         * doc/posix-functions/open_memstream.texi: Likewise.
53127
53128 2008-12-15  Eric Blake  <ebb9@byu.net>
53129
53130         Update doc for cygwin 1.7.
53131         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53132         functions.
53133         * doc/posix-functions/fchmodat.texi: Likewise.
53134         * doc/posix-functions/fchownat.texi: Likewise.
53135         * doc/posix-functions/fdopendir.texi: Likewise.
53136         * doc/posix-functions/fmemopen.texi: Likewise.
53137         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53138         * doc/posix-functions/fstatat.texi: Likewise.
53139         * doc/posix-functions/futimens.texi: Likewise.
53140         * doc/posix-functions/gai_strerror.texi: Likewise.
53141         * doc/posix-functions/getaddrinfo.texi: Likewise.
53142         * doc/posix-functions/getnameinfo.texi: Likewise.
53143         * doc/posix-functions/if_freenameindex.texi: Likewise.
53144         * doc/posix-functions/if_indextoname.texi: Likewise.
53145         * doc/posix-functions/if_nameindex.texi: Likewise.
53146         * doc/posix-functions/if_nametoindex.texi: Likewise.
53147         * doc/posix-functions/insque.texi: Likewise.
53148         * doc/posix-functions/linkat.texi: Likewise.
53149         * doc/posix-functions/llrint.texi: Likewise.
53150         * doc/posix-functions/llrintf.texi: Likewise.
53151         * doc/posix-functions/llrintl.texi: Likewise.
53152         * doc/posix-functions/lockf.texi: Likewise.
53153         * doc/posix-functions/lrintl.texi: Likewise.
53154         * doc/posix-functions/mkdirat.texi: Likewise.
53155         * doc/posix-functions/mkfifoat.texi: Likewise.
53156         * doc/posix-functions/mknodat.texi: Likewise.
53157         * doc/posix-functions/mq_close.texi: Likewise.
53158         * doc/posix-functions/mq_getattr.texi: Likewise.
53159         * doc/posix-functions/mq_notify.texi: Likewise.
53160         * doc/posix-functions/mq_open.texi: Likewise.
53161         * doc/posix-functions/mq_receive.texi: Likewise.
53162         * doc/posix-functions/mq_send.texi: Likewise.
53163         * doc/posix-functions/mq_setattr.texi: Likewise.
53164         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53165         * doc/posix-functions/mq_timedsend.texi: Likewise.
53166         * doc/posix-functions/mq_unlink.texi: Likewise.
53167         * doc/posix-functions/open_memstream.texi: Likewise.
53168         * doc/posix-functions/openat.texi: Likewise.
53169         * doc/posix-functions/posix_fadvise.texi: Likewise.
53170         * doc/posix-functions/posix_fallocate.texi: Likewise.
53171         * doc/posix-functions/posix_madvise.texi: Likewise.
53172         * doc/posix-functions/posix_memalign.texi: Likewise.
53173         * doc/posix-functions/posix_openpt.texi: Likewise.
53174         * doc/posix-functions/readlinkat.texi: Likewise.
53175         * doc/posix-functions/remque.texi: Likewise.
53176         * doc/posix-functions/renameat.texi: Likewise.
53177         * doc/posix-functions/rintl.texi: Likewise.
53178         * doc/posix-functions/sem_unlink.texi: Likewise.
53179         * doc/posix-functions/shm_open.texi: Likewise.
53180         * doc/posix-functions/shm_unlink.texi: Likewise.
53181         * doc/posix-functions/signgam.texi: Likewise.
53182         * doc/posix-functions/sigset.texi: Likewise.
53183         * doc/posix-functions/stpcpy.texi: Likewise.
53184         * doc/posix-functions/stpncpy.texi: Likewise.
53185         * doc/posix-functions/strerror.texi: Likewise.
53186         * doc/posix-functions/strtod.texi: Likewise.
53187         * doc/posix-functions/symlinkat.texi: Likewise.
53188         * doc/posix-functions/unlinkat.texi: Likewise.
53189         * doc/posix-functions/utimensat.texi: Likewise.
53190         * doc/glibc-functions/bindresvport.texi: Likewise.
53191         * doc/glibc-functions/dn_expand.texi: Likewise.
53192         * doc/glibc-functions/exp10.texi: Likewise.
53193         * doc/glibc-functions/exp10f.texi: Likewise.
53194         * doc/glibc-functions/fgetxattr.texi: Likewise.
53195         * doc/glibc-functions/flistxattr.texi: Likewise.
53196         * doc/glibc-functions/fopencookie.texi: Likewise.
53197         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53198         * doc/glibc-functions/fremovexattr.texi: Likewise.
53199         * doc/glibc-functions/fsetxattr.texi: Likewise.
53200         * doc/glibc-functions/getifaddrs.texi: Likewise.
53201         * doc/glibc-functions/getxattr.texi: Likewise.
53202         * doc/glibc-functions/lgetxattr.texi: Likewise.
53203         * doc/glibc-functions/listxattr.texi: Likewise.
53204         * doc/glibc-functions/llistxattr.texi: Likewise.
53205         * doc/glibc-functions/lremovexattr.texi: Likewise.
53206         * doc/glibc-functions/lsetxattr.texi: Likewise.
53207         * doc/glibc-functions/pow10.texi: Likewise.
53208         * doc/glibc-functions/pow10f.texi: Likewise.
53209         * doc/glibc-functions/rcmd_af.texi: Likewise.
53210         * doc/glibc-functions/removexattr.texi: Likewise.
53211         * doc/glibc-functions/res_init.texi: Likewise.
53212         * doc/glibc-functions/res_mkquery.texi: Likewise.
53213         * doc/glibc-functions/res_query.texi: Likewise.
53214         * doc/glibc-functions/res_querydomain.texi: Likewise.
53215         * doc/glibc-functions/res_send.texi: Likewise.
53216         * doc/glibc-functions/rresvport_af.texi: Likewise.
53217         * doc/glibc-functions/setxattr.texi: Likewise.
53218         * doc/glibc-functions/strcasestr.texi: Likewise.
53219
53220 2008-12-15  Bruno Haible  <bruno@clisp.org>
53221
53222         Fix compilation error on OSF/1 4.0.
53223         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53224         <sys/time.h>, simply delegate to the system header.
53225         Reported by Daniel Richard G. <oss@teragram.com>.
53226
53227 2008-12-15  Bruno Haible  <bruno@clisp.org>
53228
53229         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53230         * doc/posix-functions/fchmodat.texi: Likewise.
53231         * doc/posix-functions/fchownat.texi: Likewise.
53232         * doc/posix-functions/fdopendir.texi: Likewise.
53233         * doc/posix-functions/fstatat.texi: Likewise.
53234         * doc/posix-functions/mkdirat.texi: Likewise.
53235         * doc/posix-functions/unlinkat.texi: Likewise.
53236
53237 2008-12-14  Bruno Haible  <bruno@clisp.org>
53238
53239         Update doc for POSIX:2008.
53240         * doc/posix-functions/faccessat.texi: New file.
53241         * doc/posix-functions/fchmodat.texi: New file.
53242         * doc/posix-functions/fchownat.texi: New file.
53243         * doc/posix-functions/fdopendir.texi: New file.
53244         * doc/posix-functions/fstatat.texi: New file.
53245         * doc/posix-functions/futimens.texi: New file.
53246         * doc/posix-functions/linkat.texi: New file.
53247         * doc/posix-functions/mkdirat.texi: New file.
53248         * doc/posix-functions/mkfifoat.texi: New file.
53249         * doc/posix-functions/mknodat.texi: New file.
53250         * doc/posix-functions/open_wmemstream.texi: New file.
53251         * doc/posix-functions/openat.texi: New file.
53252         * doc/posix-functions/psiginfo.texi: New file.
53253         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53254         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53255         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53256         * doc/posix-functions/readlinkat.texi: New file.
53257         * doc/posix-functions/renameat.texi: New file.
53258         * doc/posix-functions/strerror_l.texi: New file.
53259         * doc/posix-functions/symlinkat.texi: New file.
53260         * doc/posix-functions/unlinkat.texi: New file.
53261         * doc/posix-functions/utimensat.texi: New file.
53262         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53263
53264 2008-12-14  Bruno Haible  <bruno@clisp.org>
53265
53266         Update doc for POSIX:2008.
53267         * doc/posix-functions/alphasort.texi: Renamed from
53268         doc/glibc-functions/alphasort.texi.
53269         * doc/posix-functions/dirfd.texi: Renamed from
53270         doc/glibc-functions/dirfd.texi.
53271         * doc/posix-functions/dprintf.texi: Renamed from
53272         doc/glibc-functions/dprintf.texi.
53273         * doc/posix-functions/duplocale.texi: Renamed from
53274         doc/glibc-functions/duplocale.texi.
53275         * doc/posix-functions/fexecve.texi: Renamed from
53276         doc/glibc-functions/fexecve.texi.
53277         * doc/posix-functions/fmemopen.texi: Renamed from
53278         doc/glibc-functions/fmemopen.texi.
53279         * doc/posix-functions/freelocale.texi: Renamed from
53280         doc/glibc-functions/freelocale.texi.
53281         * doc/posix-functions/getdate_err.texi: Renamed from
53282         doc/glibc-functions/getdate_err.texi.
53283         * doc/posix-functions/isalnum_l.texi: Renamed from
53284         doc/glibc-functions/isalnum_l.texi.
53285         * doc/posix-functions/isalpha_l.texi: Renamed from
53286         doc/glibc-functions/isalpha_l.texi.
53287         * doc/posix-functions/isblank_l.texi: Renamed from
53288         doc/glibc-functions/isblank_l.texi.
53289         * doc/posix-functions/iscntrl_l.texi: Renamed from
53290         doc/glibc-functions/iscntrl_l.texi.
53291         * doc/posix-functions/isdigit_l.texi: Renamed from
53292         doc/glibc-functions/isdigit_l.texi.
53293         * doc/posix-functions/isgraph_l.texi: Renamed from
53294         doc/glibc-functions/isgraph_l.texi.
53295         * doc/posix-functions/islower_l.texi: Renamed from
53296         doc/glibc-functions/islower_l.texi.
53297         * doc/posix-functions/isprint_l.texi: Renamed from
53298         doc/glibc-functions/isprint_l.texi.
53299         * doc/posix-functions/ispunct_l.texi: Renamed from
53300         doc/glibc-functions/ispunct_l.texi.
53301         * doc/posix-functions/isspace_l.texi: Renamed from
53302         doc/glibc-functions/isspace_l.texi.
53303         * doc/posix-functions/isupper_l.texi: Renamed from
53304         doc/glibc-functions/isupper_l.texi.
53305         * doc/posix-functions/iswalnum_l.texi: Renamed from
53306         doc/glibc-functions/iswalnum_l.texi.
53307         * doc/posix-functions/iswalpha_l.texi: Renamed from
53308         doc/glibc-functions/iswalpha_l.texi.
53309         * doc/posix-functions/iswblank_l.texi: Renamed from
53310         doc/glibc-functions/iswblank_l.texi.
53311         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53312         doc/glibc-functions/iswcntrl_l.texi.
53313         * doc/posix-functions/iswctype_l.texi: Renamed from
53314         doc/glibc-functions/iswctype_l.texi.
53315         * doc/posix-functions/iswdigit_l.texi: Renamed from
53316         doc/glibc-functions/iswdigit_l.texi.
53317         * doc/posix-functions/iswgraph_l.texi: Renamed from
53318         doc/glibc-functions/iswgraph_l.texi.
53319         * doc/posix-functions/iswlower_l.texi: Renamed from
53320         doc/glibc-functions/iswlower_l.texi.
53321         * doc/posix-functions/iswprint_l.texi: Renamed from
53322         doc/glibc-functions/iswprint_l.texi.
53323         * doc/posix-functions/iswpunct_l.texi: Renamed from
53324         doc/glibc-functions/iswpunct_l.texi.
53325         * doc/posix-functions/iswspace_l.texi: Renamed from
53326         doc/glibc-functions/iswspace_l.texi.
53327         * doc/posix-functions/iswupper_l.texi: Renamed from
53328         doc/glibc-functions/iswupper_l.texi.
53329         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53330         doc/glibc-functions/iswxdigit_l.texi.
53331         * doc/posix-functions/isxdigit_l.texi: Renamed from
53332         doc/glibc-functions/isxdigit_l.texi.
53333         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53334         doc/glibc-functions/mbsnrtowcs.texi.
53335         * doc/posix-functions/mkdtemp.texi: Renamed from
53336         doc/glibc-functions/mkdtemp.texi.
53337         * doc/posix-functions/newlocale.texi: Renamed from
53338         doc/glibc-functions/newlocale.texi.
53339         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53340         doc/glibc-functions/nl_langinfo_l.texi.
53341         * doc/posix-functions/open_memstream.texi: Renamed from
53342         doc/glibc-functions/open_memstream.texi.
53343         * doc/posix-functions/opterr.texi: Renamed from
53344         doc/glibc-functions/opterr.texi.
53345         * doc/posix-functions/optind.texi: Renamed from
53346         doc/glibc-functions/optind.texi.
53347         * doc/posix-functions/optopt.texi: Renamed from
53348         doc/glibc-functions/optopt.texi.
53349         * doc/posix-functions/psignal.texi: Renamed from
53350         doc/glibc-functions/psignal.texi.
53351         * doc/posix-functions/scandir.texi: Renamed from
53352         doc/glibc-functions/scandir.texi.
53353         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53354         doc/glibc-functions/sched_get_priority_min.texi.
53355         * doc/posix-functions/signgam.texi: Renamed from
53356         doc/glibc-functions/signgam.texi.
53357         * doc/posix-functions/stpcpy.texi: Renamed from
53358         doc/glibc-functions/stpcpy.texi.
53359         * doc/posix-functions/stpncpy.texi: Renamed from
53360         doc/glibc-functions/stpncpy.texi.
53361         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53362         doc/glibc-functions/strcasecmp_l.texi.
53363         * doc/posix-functions/strcoll_l.texi: Renamed from
53364         doc/glibc-functions/strcoll_l.texi.
53365         * doc/posix-functions/strfmon_l.texi: Renamed from
53366         doc/glibc-functions/strfmon_l.texi.
53367         * doc/posix-functions/strftime_l.texi: Renamed from
53368         doc/glibc-functions/strftime_l.texi.
53369         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53370         doc/glibc-functions/strncasecmp_l.texi.
53371         * doc/posix-functions/strndup.texi: Renamed from
53372         doc/glibc-functions/strndup.texi.
53373         * doc/posix-functions/strnlen.texi: Renamed from
53374         doc/glibc-functions/strnlen.texi.
53375         * doc/posix-functions/strsignal.texi: Renamed from
53376         doc/glibc-functions/strsignal.texi.
53377         * doc/posix-functions/strxfrm_l.texi: Renamed from
53378         doc/glibc-functions/strxfrm_l.texi.
53379         * doc/posix-functions/timer_gettime.texi: Renamed from
53380         doc/glibc-functions/timer_gettime.texi.
53381         * doc/posix-functions/tolower_l.texi: Renamed from
53382         doc/glibc-functions/tolower_l.texi.
53383         * doc/posix-functions/toupper_l.texi: Renamed from
53384         doc/glibc-functions/toupper_l.texi.
53385         * doc/posix-functions/towctrans_l.texi: Renamed from
53386         doc/glibc-functions/towctrans_l.texi.
53387         * doc/posix-functions/towlower_l.texi: Renamed from
53388         doc/glibc-functions/towlower_l.texi.
53389         * doc/posix-functions/towupper_l.texi: Renamed from
53390         doc/glibc-functions/towupper_l.texi.
53391         * doc/posix-functions/uselocale.texi: Renamed from
53392         doc/glibc-functions/uselocale.texi.
53393         * doc/posix-functions/vdprintf.texi: Renamed from
53394         doc/glibc-functions/vdprintf.texi.
53395         * doc/posix-functions/wcpcpy.texi:
53396         Renamed from doc/glibc-functions/wcpcpy.texi.
53397         * doc/posix-functions/wcpncpy.texi: Renamed from
53398         doc/glibc-functions/wcpncpy.texi.
53399         * doc/posix-functions/wcscasecmp.texi: Renamed from
53400         doc/glibc-functions/wcscasecmp.texi.
53401         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53402         doc/glibc-functions/wcscasecmp_l.texi.
53403         * doc/posix-functions/wcscoll_l.texi: Renamed from
53404         doc/glibc-functions/wcscoll_l.texi.
53405         * doc/posix-functions/wcsdup.texi: Renamed from
53406         doc/glibc-functions/wcsdup.texi.
53407         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53408         doc/glibc-functions/wcsncasecmp.texi.
53409         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53410         doc/glibc-functions/wcsncasecmp_l.texi.
53411         * doc/posix-functions/wcsnlen.texi: Renamed from
53412         doc/glibc-functions/wcsnlen.texi.
53413         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53414         doc/glibc-functions/wcsnrtombs.texi.
53415         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53416         doc/glibc-functions/wcsxfrm_l.texi.
53417         * doc/posix-functions/wctrans_l.texi: Renamed from
53418         doc/glibc-functions/wctrans_l.texi.
53419         * doc/posix-functions/wctype_l.texi: Renamed from
53420         doc/glibc-functions/wctype_l.texi.
53421         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53422         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53423         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53424         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53425         these subsections.
53426         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53427         Remove sections.
53428
53429 2008-12-14  Bruno Haible  <bruno@clisp.org>
53430
53431         Update doc for POSIX:2008.
53432         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53433
53434 2008-12-14  Bruno Haible  <bruno@clisp.org>
53435
53436         Update doc for POSIX:2008.
53437         * doc/pastposix-functions/bcmp.texi: Renamed from
53438         doc/posix-functions/bcmp.texi.
53439         * doc/pastposix-functions/bcopy.texi: Renamed from
53440         doc/posix-functions/bcopy.texi.
53441         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53442         doc/posix-functions/bsd_signal.texi.
53443         * doc/pastposix-functions/bzero.texi: Renamed from
53444         doc/posix-functions/bzero.texi.
53445         * doc/pastposix-functions/ecvt.texi: Renamed from
53446         doc/posix-functions/ecvt.texi.
53447         * doc/pastposix-functions/fcvt.texi: Renamed from
53448         doc/posix-functions/fcvt.texi.
53449         * doc/pastposix-functions/ftime.texi: Renamed from
53450         doc/posix-functions/ftime.texi.
53451         * doc/pastposix-functions/gcvt.texi: Renamed from
53452         doc/posix-functions/gcvt.texi.
53453         * doc/pastposix-functions/getcontext.texi: Renamed from
53454         doc/posix-functions/getcontext.texi.
53455         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53456         doc/posix-functions/gethostbyaddr.texi.
53457         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53458         doc/posix-functions/gethostbyname.texi.
53459         * doc/pastposix-functions/getwd.texi: Renamed from
53460         doc/posix-functions/getwd.texi.
53461         * doc/pastposix-functions/h_errno.texi: Renamed from
53462         doc/posix-functions/h_errno.texi.
53463         * doc/pastposix-functions/index.texi: Renamed from
53464         doc/posix-functions/index.texi.
53465         * doc/pastposix-functions/makecontext.texi: Renamed from
53466         doc/posix-functions/makecontext.texi.
53467         * doc/pastposix-functions/mktemp.texi: Renamed from
53468         doc/posix-functions/mktemp.texi.
53469         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53470         doc/posix-functions/pthread_attr_getstackaddr.texi.
53471         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53472         doc/posix-functions/pthread_attr_setstackaddr.texi.
53473         * doc/pastposix-functions/rindex.texi: Renamed from
53474         doc/posix-functions/rindex.texi.
53475         * doc/pastposix-functions/scalb.texi: Renamed from
53476         doc/posix-functions/scalb.texi.
53477         * doc/pastposix-functions/setcontext.texi: Renamed from
53478         doc/posix-functions/setcontext.texi.
53479         * doc/pastposix-functions/swapcontext.texi: Renamed from
53480         doc/posix-functions/swapcontext.texi.
53481         * doc/pastposix-functions/ualarm.texi: Renamed from
53482         doc/posix-functions/ualarm.texi.
53483         * doc/pastposix-functions/usleep.texi: Renamed from
53484         doc/posix-functions/usleep.texi.
53485         * doc/pastposix-functions/vfork.texi: Renamed from
53486         doc/posix-functions/vfork.texi.
53487         * doc/pastposix-functions/wcswcs.texi: Renamed from
53488         doc/posix-functions/wcswcs.texi.
53489         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53490         (Function Substitutes): Update.
53491
53492 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53493
53494         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53495         m4/strerror.m4.
53496
53497 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53498             Bruno Haible  <bruno@clisp.org>
53499
53500         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53501
53502 2008-12-13  Bruno Haible  <bruno@clisp.org>
53503
53504         * modules/strtoull (Depends-on): Remove unistd.
53505
53506 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53507
53508         * modules/strtoull (Depends-on): Add stdlib.
53509
53510 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53511
53512         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53513
53514 2008-12-10  Jim Meyering  <meyering@redhat.com>
53515
53516         gl_ASSERT: don't say assertions are disabled when they're not
53517         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53518         "checking whether to enable assertions... no", when they are in
53519         fact enabled.  This is solely a bug in the output of configure.
53520         In spite of saying "no", NDEBUG was not defined in that case.
53521         Also, as noted by Eric Blake, leave assertions enabled upon
53522         --enable-assert=INVALID.
53523
53524 2008-12-10  Bruno Haible  <bruno@clisp.org>
53525
53526         Change MODULES.html to refer to POSIX:2008 where possible.
53527         * MODULES.html.sh (POSIX2008_URL): New variable.
53528         (posix_headers): Remove sys/timeb, ucontext.
53529         (posix2001_headers): New variable.
53530         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53531         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53532         index, makecontext, mktemp, pthread_attr_getstackaddr,
53533         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53534         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53535         (posix2001_functions): New variable.
53536         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53537         otherwise.
53538
53539 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53540
53541         add missing include to parse-duration.c
53542         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53543         * modules/parse-duration (Depends-on): Add xalloc.
53544
53545         fix sed script reading maint.mk
53546         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53547         (syntax-check-rules): Use it.
53548
53549 2008-12-09  Bruno Haible  <bruno@clisp.org>
53550
53551         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53552         MacOS X 10.4/PowerPC.
53553         Reported by Simon Josefsson.
53554
53555 2008-12-08  Jim Meyering  <meyering@redhat.com>
53556
53557         work around mingw's lack of some S_IF definitions
53558         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53559         Reported by Simon Josefsson.
53560
53561 2008-12-08  Bruno Haible  <bruno@clisp.org>
53562
53563         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53564         applied to variables. Needed on MacOS X 10.4/PowerPC.
53565         Reported by Simon Josefsson.
53566
53567 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53568         and Eric Blake  <ebb9@byu.net>
53569
53570         assert: honor --enable-assert
53571         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53572         order to honor --enable-assert, rather than treating it as a
53573         synonym for --disable-assert.
53574
53575 2008-12-08  Jim Meyering  <meyering@redhat.com>
53576
53577         * lib/posixtm.c: Remove now-useless declaration of mktime.
53578
53579         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53580
53581 2008-12-07  Bruno Haible  <bruno@clisp.org>
53582
53583         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53584         test_once): Mark functions as static.
53585         * tests/test-tls.c (test_tls): Likewise.
53586
53587 2008-12-07  Bruno Haible  <bruno@clisp.org>
53588
53589         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53590         iconv_register_autodetect.
53591
53592 2008-12-07  Jim Meyering  <meyering@redhat.com>
53593
53594         posixtm.c: avoid a warning
53595         * lib/posixtm.c (posixtime): Don't initialize tm0.
53596         It's no longer needed to placate gcc4's -Wuninitialized,
53597         and the attempt to placate would elicit a new warning.
53598
53599         unicodeio.c: mark unused parameters
53600         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53601         (fallback_failure_callback): Likewise.
53602
53603 2008-12-07  Bruno Haible  <bruno@clisp.org>
53604
53605         * gnulib-tool (func_create_testdir): When building the tests
53606         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53607         Reported by Simon Josefsson.
53608
53609 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53610
53611         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53612
53613 2008-12-06  Bruno Haible  <bruno@clisp.org>
53614
53615         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53616         Suggested by Eric Blake.
53617
53618 2008-12-06  Bruno Haible  <bruno@clisp.org>
53619
53620         Fix a c-stack test failure on MacOS X.
53621         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53622         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53623         handler for SIGBUS as well.
53624         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53625         install a signal handler for SIGBUS as well.
53626         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53627
53628 2008-12-06  Bruno Haible  <bruno@clisp.org>
53629
53630         Advocacy documentation.
53631         * doc/gnulib-intro.texi (Benefits): New section.
53632         * doc/gnulib.texi: Update.
53633
53634 2008-12-06  Bruno Haible  <bruno@clisp.org>
53635
53636         Document the 'manywarnings' module.
53637         * doc/manywarnings.texi: New file.
53638         * doc/gnulib.texi: Include it.
53639
53640 2008-12-05  Eric Blake  <ebb9@byu.net>
53641
53642         tests: silence some gcc warnings
53643         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53644         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53645         type mismatches.
53646
53647 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53648             Bruno Haible  <bruno@clisp.org>
53649
53650         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53651
53652 2008-11-29  Jim Meyering  <meyering@redhat.com>
53653
53654         unicodeio.c: mark unused parameters
53655         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53656         (fallback_failure_callback): Likewise.
53657
53658         fts: fix a thinko
53659         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53660         (set_stat_type): Return S_IF*-valued "type" directly.
53661         Prompted by James Youngman's spotting a related bug.
53662         Confirmed by further testing through find.
53663
53664         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53665         * lib/fts.c (D_TYPE): Define.
53666         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53667         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53668         (s_ifmt_shift_bits): New function.
53669         (set_stat_type): New function.
53670         (fts_build): When not calling fts_stat, call set_stat_type
53671         to propagate dirent.d_type info to fts_read caller.
53672         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53673         fts_statp->st_mode type information may be valid.
53674
53675 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53676
53677         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53678         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53679         <sds@gnu.org>.
53680
53681 2008-11-20  Bruno Haible  <bruno@clisp.org>
53682
53683         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53684         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53685         INCLUDE_NEXT.
53686         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53687         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53688         * modules/math (Makefile.am): Substitute
53689         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53690         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53691
53692 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53693             Bruno Haible  <bruno@clisp.org>
53694
53695         * lib/stdint.in.h: Define all type macros so that their expansion is
53696         a single typedef'ed token. Fixes a compilation failure in Boost which
53697         does "using ::int8_t;".
53698
53699 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53700
53701         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53702         gl_MANYWARN_ALL_GCC.
53703         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53704         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53705         * modules/manywarnings: New file.
53706         * MODULES.html.sh: Mention manywarnings module.
53707
53708 2008-11-18  Bruno Haible  <bruno@clisp.org>
53709
53710         * doc/gnulib-tool.texi (Unit tests): New section.
53711
53712 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53713
53714         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53715         paths like 'lib/po/foo.po'.
53716
53717 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53718
53719         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53720         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53721
53722 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53723
53724         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53725         parameter works.
53726
53727 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53728
53729         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53730
53731 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53732
53733         * modules/parse-duration-tests: New file.
53734         * tests/test-parse-duration.sh: New file.
53735         * tests/test-parse-duration.c: New file.
53736
53737         New module 'parse-duration'.
53738         * lib/parse-duration.h: New file.
53739         * lib/parse-duration.c: New file.
53740         * modules/parse-duration: New file.
53741
53742 2008-11-17  Bruno Haible  <bruno@clisp.org>
53743
53744         * tests/test-select-out.sh: Comment out the first pipe test.
53745         Reported by Simon Josefsson.
53746
53747 2008-11-17  Bruno Haible  <bruno@clisp.org>
53748
53749         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53750         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53751         gl_HOSTENT.
53752
53753 2008-11-17  Bruno Haible  <bruno@clisp.org>
53754
53755         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53756         -lnetwork and -lnet. Needed for Haiku and BeOS.
53757
53758 2008-11-16  Bruno Haible  <bruno@clisp.org>
53759
53760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53761
53762 2008-11-16  Bruno Haible  <bruno@clisp.org>
53763
53764         Avoid test failure on Haiku.
53765         * tests/test-fsync.c: Include <errno.h>.
53766         (main): Don't require that fsync (0) fails.
53767
53768 2008-11-15  Bruno Haible  <bruno@clisp.org>
53769
53770         New module 'hostent'.
53771         * modules/hostent: New file.
53772         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53773
53774 2008-11-15  Bruno Haible  <bruno@clisp.org>
53775
53776         New module 'servent'.
53777         * modules/servent: New file.
53778         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53779
53780 2008-11-15  Bruno Haible  <bruno@clisp.org>
53781
53782         Avoid generating same test program with two different rules.
53783         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53784         test-frexp to test-frexp-nolibm.
53785         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53786         test-frexpl to test-frexpl-nolibm.
53787
53788 2008-11-15  Bruno Haible  <bruno@clisp.org>
53789
53790         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53791         $(FREXPL_LIBM).
53792
53793 2008-11-15  Bruno Haible  <bruno@clisp.org>
53794
53795         * lib/netdb.in.h: Activate the definitions also when the system's
53796         <netdb.h> has 'struct addrinfo'.
53797         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53798         EAI_OVERFLOW or AI_NUMERICSERV.
53799         * doc/posix-headers/netdb.texi: Document the problem.
53800
53801 2008-11-15  Bruno Haible  <bruno@clisp.org>
53802
53803         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53804
53805         Make the 'sched' module work on platforms where <sched.h> exists but
53806         is incomplete (such as Haiku).
53807         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53808         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53809         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53810         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53811         HAVE_STRUCT_SCHED_PARAM.
53812         * modules/sched (Depends-on): Add include_next.
53813         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53814         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53815         * doc/posix-headers/sched.texi: Document the issue.
53816
53817 2008-11-13  Jim Meyering  <meyering@redhat.com>
53818
53819         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53820         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53821         test would fail due to the difference in the Report bugs to ...
53822         line.  The expected address is empty, "<>", while the actual
53823         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53824
53825 2008-11-12  Bruno Haible  <bruno@clisp.org>
53826
53827         lstat: don't compile lstat.c on systems lacking lstat
53828         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53829         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53830         Reported by Daniel P. Berrange via Jim Meyering.
53831
53832 2008-11-12  Jim Meyering  <meyering@redhat.com>
53833
53834         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53835
53836 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53837
53838         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53839         instead.
53840
53841 2008-11-12  Bruno Haible  <bruno@clisp.org>
53842
53843         * lib/unicodeio.c: Include unistr.h.
53844         (utf8_wctomb): Remove function.
53845         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53846
53847 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53848
53849         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53850         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53851         <bruno@clisp.org>.
53852         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53853
53854 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53855
53856         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53857         * doc/gnulib.texi: Add section for warnings.
53858
53859 2008-11-11  Bruno Haible  <bruno@clisp.org>
53860
53861         * lib/sockets.h: Add a comment.
53862
53863 2008-11-11  Karl Berry  <karl@gnu.org>
53864
53865         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53866
53867 2008-11-11  Eric Blake  <ebb9@byu.net>
53868
53869         fdl.texi: avoid git symlinks
53870         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53871
53872 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53873
53874         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53875
53876 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53877
53878         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53879         (gl_WARN_ADD): Substitute $2 if literal.
53880
53881 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53882
53883         * m4/warning.m4: Remove.
53884
53885 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53886
53887         * m4/warnings.m4: Almost complete rewrite. :-)
53888
53889 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53890
53891         * modules/warnings: New module.
53892         * m4/warnings.m4: New file.
53893         * MODULES.html.sh: Mention warnings module.
53894         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53895         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53896
53897 2008-11-10  Eric Blake  <ebb9@byu.net>
53898
53899         fdl.texi: make a symlink to the latest version
53900         * doc/standards.texi: Revert today's earlier change.
53901         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53902         * doc/fdl.texi: ...and replace this with a symlink to the newer
53903         fdl-1.3.texi.
53904
53905 2008-11-10  Bruno Haible  <bruno@clisp.org>
53906
53907         * tests/test-select-fd.c (main): Accept the result file name as fourth
53908         argument.
53909         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53910         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53911
53912 2008-11-10  Bruno Haible  <bruno@clisp.org>
53913
53914         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53915         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53916         as autoconf-substituted macros.
53917         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53918         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53919         gl_NETDB_H_DEFAULTS. Set these variables.
53920         * modules/netdb (Makefile.am): Substitute these variables.
53921
53922 2008-11-10  Eric Blake  <ebb9@byu.net>
53923
53924         standards.texi: include correct file for FDL 1.3
53925         * doc/standards.texi (GNU Free Documentation License): Change
53926         include file to pull in FDL 1.3, not 1.2.
53927
53928         fdl.texi: revert accidental change to license
53929         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53930
53931 2008-11-10  Bruno Haible  <bruno@clisp.org>
53932
53933         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53934         cross-compiling guesses also when the native compile gives no result.
53935
53936 2008-11-10  Bruno Haible  <bruno@clisp.org>
53937
53938         * lib/spawni.c (__spawni): Force variable into the stack.
53939
53940 2008-11-10  Bruno Haible  <bruno@clisp.org>
53941
53942         Add support for Haiku.
53943         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53944         glibc and BeOS, but also on Haiku.
53945         * lib/fpurge.c (fpurge): Likewise.
53946         * lib/freadable.c (freadable): Likewise.
53947         * lib/freadahead.c (freadahead): Likewise.
53948         * lib/freading.c (freading): Likewise.
53949         * lib/freadptr.c (freadptr): Likewise.
53950         * lib/freadseek.c (freadptrinc): Likewise.
53951         * lib/fseeko.c (rpl_fseeko): Likewise.
53952         * lib/fseterr.c (fseterr): Likewise.
53953         * lib/fwritable.c (fwritable): Likewise.
53954         * lib/fwriting.c (fwriting): Likewise.
53955         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53956
53957 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53958
53959         * lib/config.charset: Treat Haiku like BeOS.
53960
53961 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53962
53963         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53964         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53965
53966 2008-11-08  Bruno Haible  <bruno@clisp.org>
53967
53968         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53969         AC_CACHE_CHECK.
53970
53971 2008-11-08  Bruno Haible  <bruno@clisp.org>
53972
53973         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53974
53975 2008-11-08  Bruno Haible  <bruno@clisp.org>
53976
53977         * tests/test-select-fd.c: New file.
53978         * tests/test-select-in.sh: New file.
53979         * tests/test-select-out.sh: New file.
53980         * tests/test-select-stdin.c: New file.
53981         * modules/select-tests (Files): Add the new files.
53982         (Depends-on): Add gettimeofday.
53983         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53984         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53985         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53986
53987 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53988             Bruno Haible  <bruno@clisp.org>
53989
53990         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53991
53992 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53993
53994         * build-aux/pmccabe2html: Added support for C++ source files.
53995
53996 2008-11-05  Ben Pfaff  <blp@gnu.org>
53997
53998         Fix lib/close.c build on Windows.
53999         * modules/close (Files): Add lib/w32sock.h.
54000
54001 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54002
54003         Accept Bison's NEWS format.
54004         * build-aux/announce-gen (print_news_deltas): Tweak
54005         $re_prefix.
54006
54007 2008-11-04  Bruno Haible  <bruno@clisp.org>
54008
54009         * modules/random_r (Maintainer): Add glibc.
54010
54011 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54012
54013         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54014         by karl@freefriends.org (Karl Berry).
54015         * doc/alloca.texi: Likewise.
54016         * doc/c-ctype.texi: Likewise.
54017         * doc/c-strcase.texi: Likewise.
54018         * doc/c-strcaseeq.texi: Likewise.
54019         * doc/c-strcasestr.texi: Likewise.
54020         * doc/c-strstr.texi: Likewise.
54021         * doc/c-strtod.texi: Likewise.
54022         * doc/c-strtold.texi: Likewise.
54023         * doc/ctime.texi: Likewise.
54024         * doc/error.texi: Likewise.
54025         * doc/fdl.texi: Likewise.
54026         * doc/gcd.texi: Likewise.
54027         * doc/getdate.texi: Likewise.
54028         * doc/gnulib-intro.texi: Likewise.
54029         * doc/gnulib-tool.texi: Likewise.
54030         * doc/gnulib.texi: Likewise.
54031         * doc/inet_ntoa.texi: Likewise.
54032         * doc/maintain.texi: Likewise.
54033         * doc/make-stds.texi: Likewise.
54034         * doc/quote.texi: Likewise.
54035         * doc/regexprops-generic.texi: Likewise.
54036         * doc/standards.texi: Likewise.
54037         * doc/verify.texi: Likewise.
54038         * doc/visibility.texi: Likewise.
54039         * doc/gnulib.texi (GNU Free Documentation License): Include
54040         fdl-1.3.texi instead of fdl.texi.
54041
54042 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54043
54044         * doc/fdl-1.3.texi: New file, from
54045         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54046         * modules/fdl-1.3: Add.
54047         * MODULES.html.sh: Add fdl-1.3.
54048
54049 2008-11-03  Bruno Haible  <bruno@clisp.org>
54050
54051         Make determination of absolute name of header file work with AIX xlc.
54052         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54053         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54054         preprocessing.
54055         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54056         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54057
54058 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54059
54060         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54061         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54062         <ludo@gnu.org>.
54063
54064 2008-11-02  Bruno Haible  <bruno@clisp.org>
54065
54066         Mark 'strpbrk' obsolete.
54067         * modules/strpbrk (Status, Notice): New sections.
54068         * modules/strtok_r (Depends-on): Add strpbrk.
54069
54070 2008-11-02  Bruno Haible  <bruno@clisp.org>
54071
54072         Mark 'strdup' obsolete.
54073         * modules/strdup (Status, Notice): New sections.
54074         * modules/findprog (Depends-on): Add strdup.
54075         * modules/getaddrinfo (Depends-on): Likewise.
54076         * modules/localename (Depends-on): Likewise.
54077         * modules/relocatable-lib (Depends-on): Likewise.
54078         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54079         * modules/relocatable-prog (Depends-on): Likewise.
54080         * modules/trim (Depends-on): Likewise.
54081         * modules/unictype/gen-ctype (Depends-on): Likewise.
54082         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54083
54084 2008-11-02  Bruno Haible  <bruno@clisp.org>
54085
54086         Mark 'strcspn' obsolete.
54087         * modules/strcspn (Status, Notice): New sections.
54088
54089 2008-11-02  Bruno Haible  <bruno@clisp.org>
54090
54091         Mark 'rmdir' obsolete.
54092         * modules/rmdir (Status, Notice): New sections.
54093         * modules/clean-temp (Depends-on): Add rmdir.
54094         * modules/openat (Depends-on): Likewise.
54095
54096 2008-11-02  Bruno Haible  <bruno@clisp.org>
54097
54098         Mark 'raise' obsolete.
54099         * modules/raise (Status, Notice): New sections.
54100         (Include): Specify <signal.h>.
54101         * modules/stdio (Depends-on): Add raise.
54102         * modules/write (Depends-on): Likewise.
54103
54104 2008-11-02  Bruno Haible  <bruno@clisp.org>
54105
54106         Mark 'memset' obsolete.
54107         * modules/memset (Status, Notice): New sections.
54108
54109 2008-11-02  Bruno Haible  <bruno@clisp.org>
54110
54111         Mark 'memmove' obsolete.
54112         * modules/memmove (Status, Notice): New sections.
54113         * modules/argp (Depends-on): Add memmove.
54114         * modules/argz (Depends-on): Likewise.
54115         * modules/canonicalize (Depends-on): Likewise.
54116         * modules/canonicalize-lgpl (Depends-on): Likewise.
54117         * modules/fts (Depends-on): Likewise.
54118         * modules/getcwd (Depends-on): Likewise.
54119         * modules/human (Depends-on): Likewise.
54120         * modules/regex (Depends-on): Likewise.
54121         * modules/striconveh (Depends-on): Likewise.
54122         * modules/trim (Depends-on): Likewise.
54123         * modules/unistr/u8-move (Depends-on): Likewise.
54124         * modules/unistr/u16-move (Depends-on): Likewise.
54125         * modules/unistr/u32-move (Depends-on): Likewise.
54126
54127 2008-11-02  Bruno Haible  <bruno@clisp.org>
54128
54129         Mark 'memcpy' obsolete.
54130         * modules/memcpy (Status, Notice): New sections.
54131
54132 2008-11-02  Bruno Haible  <bruno@clisp.org>
54133
54134         Mark 'memcmp' obsolete.
54135         * modules/memcmp (Status, Notice): New sections.
54136         * modules/argmatch (Depends-on): Add memchr.
54137         * modules/backupfile (Depends-on): Likewise.
54138         * modules/c-strcasestr (Depends-on): Likewise.
54139         * modules/crypto/des (Depends-on): Likewise.
54140         * modules/csharpcomp (Depends-on): Likewise.
54141         * modules/fnmatch (Depends-on): Likewise.
54142         * modules/git-merge-changelog (Depends-on): Likewise.
54143         * modules/isnand (Depends-on): Likewise.
54144         * modules/isnand-nolibm (Depends-on): Likewise.
54145         * modules/isnanf (Depends-on): Likewise.
54146         * modules/isnanf-nolibm (Depends-on): Likewise.
54147         * modules/isnanl (Depends-on): Likewise.
54148         * modules/isnanl-nolibm (Depends-on): Likewise.
54149         * modules/mbchar (Depends-on): Likewise.
54150         * modules/memcoll (Depends-on): Likewise.
54151         * modules/quotearg (Depends-on): Likewise.
54152         * modules/regex (Depends-on): Likewise.
54153         * modules/relocatable-prog (Depends-on): Likewise.
54154         * modules/same (Depends-on): Likewise.
54155         * modules/signbit (Depends-on): Likewise.
54156         * modules/strcasestr-simple (Depends-on): Likewise.
54157         * modules/unictype/gen-ctype (Depends-on): Likewise.
54158         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54159         * modules/uniname/uniname (Depends-on): Likewise.
54160         * modules/unistr/u8-cmp (Depends-on): Likewise.
54161
54162 2008-11-02  Bruno Haible  <bruno@clisp.org>
54163
54164         Mark 'memchr' obsolete.
54165         * modules/memchr (Status, Notice): New sections.
54166         * modules/argp (Depends-on): Add memchr.
54167         * modules/base64 (Depends-on): Likewise.
54168         * modules/c-strcasestr (Depends-on): Likewise.
54169         * modules/chdir-long (Depends-on): Likewise.
54170         * modules/fnmatch (Depends-on): Likewise.
54171         * modules/getsubopt (Depends-on): Likewise.
54172         * modules/git-merge-changelog (Depends-on): Likewise.
54173         * modules/glob (Depends-on): Likewise.
54174         * modules/strcasestr-simple (Depends-on): Likewise.
54175         * modules/strnlen (Depends-on): Likewise.
54176
54177 2008-11-02  Bruno Haible  <bruno@clisp.org>
54178
54179         Mark 'atexit' obsolete.
54180         * modules/atexit (Status, Notice): New sections.
54181         * modules/chdir-long (Depends-on): Add atexit.
54182         * modules/wait-process (Depends-on): Likewise.
54183
54184 2008-11-02  Bruno Haible  <bruno@clisp.org>
54185
54186         * gnulib-tool: New option --with-obsolete.
54187         (func_usage): Document it.
54188         (func_modules_transitive_closure): Drop obsolete dependencies if
54189         incobsolete is not true.
54190         (func_import): Read and save the incobsolete variable to the cache.
54191
54192 2008-11-02  Bruno Haible  <bruno@clisp.org>
54193
54194         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54195         * gnulib-tool: New option --extract-status.
54196         (func_usage): Document it.
54197         (sed_extract_prog): Recognize it.
54198         (func_get_status): New function.
54199
54200 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54201
54202         * modules/sockets (License): Change from LGPL to LGPLv2+.
54203
54204 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54205
54206         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54207
54208 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54209
54210         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54211         Mention times and sys_times.
54212         * modules/sys_times, modules/sys_times-tests: New modules.
54213         * modules/times, modules/times-tests: Likewise
54214         * m4/sys_times_h.m4: New file.
54215         * lib/sys_times.in.h: Likewise
54216         * lib/times.c: Likewise.
54217         * tests/test-sys_times.c: Likewise.
54218         * tests/test-times.c: Likewise.
54219         * doc/posix-headers/sys_times.texi: Update.
54220         * doc/posix-functions/times.texi: Update.
54221
54222 2008-10-28  Jim Meyering  <meyering@redhat.com>
54223
54224         * modules/tempname (Depends-on): Add lstat.
54225
54226         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54227
54228 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54229
54230         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54231         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54232         using idiom used elsewhere in gnulib.
54233
54234 2008-10-27  Jim Meyering  <meyering@redhat.com>
54235
54236         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54237
54238 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54239
54240         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54241         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54242         programs.
54243         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54244
54245 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54246
54247         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54248
54249 2008-10-27  Bruno Haible  <bruno@clisp.org>
54250
54251         * tests/test-lstat.c: Include <stdio.h>.
54252
54253 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54254
54255         * modules/lstat-tests: New module.
54256         * tests/test-lstat.c: New file.
54257
54258 2008-10-26  Jim Meyering  <meyering@redhat.com>
54259
54260         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54261
54262 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54263             Bruno Haible  <bruno@clisp.org>
54264
54265         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54266         * modules/configmake (Include): Add a note that the include must come
54267         after all system headers.
54268         * lib/javaversion.c: Include configmake.h after all other includes.
54269
54270 2008-10-26  Bruno Haible  <bruno@clisp.org>
54271
54272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54273         HAVE_STRUCT_RANDOM_DATA to 1.
54274         (gl_STDLIB_H): Simplify.
54275
54276 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54277
54278         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54279         substitute HAVE_STRUCT_RANDOM_DATA.
54280         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54281         random_data.
54282         * modules/stdlib (Makefile.am): Substitute
54283         HAVE_STRUCT_RANDOM_DATA.
54284
54285 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54286
54287         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54288         * doc/gnulib-intro.texi (Copyright): Likewise.
54289
54290 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54291
54292         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54293         findings.
54294
54295 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54296             Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/unistd.in.h: Include <winsock2.h>.
54299         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54300         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54301         Provide dummy declarations.
54302         (gethostname): Override.
54303         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54304         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54305         gl_PREREQ_SYS_H_WINSOCK2.
54306         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54307         * doc/posix-functions/gethostname.texi: More details.
54308
54309 2008-10-25  Bruno Haible  <bruno@clisp.org>
54310
54311         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54312         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54313         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54314
54315         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54316         here ...
54317         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54318         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54319         gl_UNISTD_H_DEFAULTS.
54320
54321 2008-10-25  Eric Blake  <ebb9@byu.net>
54322
54323         signbit: avoid spurious compiler failure
54324         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54325         declarations inside function.
54326
54327 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54328             Bruno Haible  <bruno@clisp.org>
54329
54330         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54331         * modules/random_r (Depends-on): Add stdint.
54332
54333 2008-10-24  Bruno Haible  <bruno@clisp.org>
54334
54335         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54336         Eggert.
54337         * modules/strerror (License): Likewise.
54338
54339 2008-10-24  Jim Meyering  <meyering@redhat.com>
54340
54341         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54342         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54343
54344 2008-10-24  Eric Blake  <ebb9@byu.net>
54345
54346         getgroups: fix compilation when getgroups is available
54347         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54348         but with <config.h> override of getgroups disabled.
54349
54350 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54351
54352         * doc/gnulib.texi (Header files): Add note about C++ problems.
54353         Explained by Bruno Haible <bruno@clisp.org>.
54354
54355 2008-10-23  Bruno Haible  <bruno@clisp.org>
54356
54357         Define a dummy SA_NODEFER macro on Interix.
54358         * lib/signal.in.h (SA_NODEFER): Define fallback.
54359         Reported by Aleksey Cheusov <cheusov@tut.by> via
54360         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54361
54362 2008-10-23  Bruno Haible  <bruno@clisp.org>
54363
54364         * modules/freadahead (License): Change to LGPLv2+.
54365         Suggested by Simon Josefsson.
54366
54367 2008-10-23  Jim Meyering  <meyering@redhat.com>
54368
54369         random_r: new module
54370         * modules/random_r: New file.
54371         * m4/random_r.m4: New file.
54372         * lib/random_r.c: New file, from glibc.
54373         * modules/random_r-tests: New file.
54374         * tests/test-random_r.c: New file.
54375         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54376          Declare.
54377         (RAND_MAX): Define.
54378         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54379         * modules/stdlib: Substitute them, too.
54380         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54381         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54382         * doc/glibc-functions/random_r.texi: Likewise.
54383         * doc/glibc-functions/setstate_r.texi: Likewise.
54384         * doc/glibc-functions/srandom_r.texi: Likewise.
54385         * config/srclist.txt: Mention it.
54386
54387 2008-10-23  David Lutterkort  <lutter@redhat.com>
54388
54389         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54390         link requirement
54391
54392 2008-10-23  Jim Meyering  <meyering@redhat.com>
54393
54394         selinux-h: mark parameters of stub functions as intentionally unused
54395         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54396         * lib/se-context.in.h: Likewise.
54397
54398 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54399
54400         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54401
54402 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54403
54404         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54405
54406 2008-10-22  Eric Blake  <ebb9@byu.net>
54407
54408         glthread/thread: avoid compiler warning
54409         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54410         Add unreachable abort to silence compiler.
54411
54412 2008-10-22  Eric Blake  <ebb9@byu.net>
54413
54414         netdb: also supply struct addrinfo for cygwin 1.5.x
54415         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54416         older cygwin.
54417         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54418         cygwin.
54419         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54420
54421 2008-10-22  Bruno Haible  <bruno@clisp.org>
54422
54423         * users.txt: Update entry about pspp.
54424
54425 2008-10-21  Bruno Haible  <bruno@clisp.org>
54426
54427         Simplification.
54428         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54429         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54430
54431         Simplification.
54432         * lib/ioctl.c (ioctl): Don't undefine.
54433         * lib/socket.c (socket): Don't undefine.
54434
54435         Remove unused module indicator macros.
54436         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54437         GNULIB_$1 as a C macro.
54438
54439         * doc/posix-functions/close.texi: Undo last change.
54440         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54441         Windows platforms.
54442
54443 2008-10-21  Bruno Haible  <bruno@clisp.org>
54444
54445         Add gethostname() declaration to <unistd.h>.
54446         * lib/unistd.in.h (gethostname): New declaration.
54447         * lib/gethostname.c: Include <unistd.h>.
54448         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54449         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54451         and HAVE_GETHOSTNAME.
54452         * modules/gethostname (Depends-on): Add unistd.
54453         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54454         (Include): Specify <unistd.h>.
54455         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54456         HAVE_GETHOSTNAME.
54457         * tests/test-gethostname.c: Include <unistd.h> first.
54458
54459 2008-10-21  Bruno Haible  <bruno@clisp.org>
54460
54461         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54462         * modules/select-tests (Depends-on): Likewise.
54463         Reported by Simon Josefsson.
54464
54465 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54466
54467         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54468         * lib/accept.c: New file, based on winsock.c.
54469         * lib/bind.c: New file, based on winsock.c.
54470         * lib/connect.c: New file, based on winsock.c.
54471         * lib/getpeername.c: New file, based on winsock.c.
54472         * lib/getsockname.c: New file, based on winsock.c.
54473         * lib/getsockopt.c: New file, based on winsock.c.
54474         * lib/ioctl.c: New file, based on winsock.c.
54475         * lib/listen.c: New file, based on winsock.c.
54476         * lib/recv.c: New file, based on winsock.c.
54477         * lib/recvfrom.c: New file, based on winsock.c.
54478         * lib/send.c: New file, based on winsock.c.
54479         * lib/sendto.c: New file, based on winsock.c.
54480         * lib/setsockopt.c: New file, based on winsock.c.
54481         * lib/shutdown.c: New file, based on winsock.c.
54482         * lib/socket.c: New file, based on winsock.c.
54483         * lib/w32sock.h: New file, based on winsock.c.
54484         * lib/winsock.c: Remove file.
54485         * modules/accept: Likewise.
54486         * modules/bind: Likewise.
54487         * modules/connect: Likewise.
54488         * modules/getpeername: Likewise.
54489         * modules/getsockname: Likewise.
54490         * modules/getsockopt: Likewise.
54491         * modules/ioctl: Likewise.
54492         * modules/listen: Likewise.
54493         * modules/recv: Likewise.
54494         * modules/recvfrom: Likewise.
54495         * modules/send: Likewise.
54496         * modules/sendto: Likewise.
54497         * modules/setsockopt: Likewise.
54498         * modules/shutdown: Likewise.
54499         * modules/socket: Use socket.c instead of winsock.c.
54500         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54501         * doc/posix-functions/accept.texi: Doc fix.
54502         * doc/posix-functions/bind.texi: Doc fix.
54503         * doc/posix-functions/close.texi: Doc fix.
54504         * doc/posix-functions/connect.texi: Doc fix.
54505         * doc/posix-functions/getpeername.texi: Doc fix.
54506         * doc/posix-functions/getsockname.texi: Doc fix.
54507         * doc/posix-functions/getsockopt.texi: Doc fix.
54508         * doc/posix-functions/ioctl.texi: Doc fix.
54509         * doc/posix-functions/listen.texi: Doc fix.
54510         * doc/posix-functions/recv.texi: Doc fix.
54511         * doc/posix-functions/recvfrom.texi: Doc fix.
54512         * doc/posix-functions/send.texi: Doc fix.
54513         * doc/posix-functions/sendto.texi: Doc fix.
54514         * doc/posix-functions/setsockopt.texi: Doc fix.
54515         * doc/posix-functions/shutdown.texi: Doc fix.
54516         * doc/posix-functions/socket.texi: Doc fix.
54517
54518 2008-10-20  Bruno Haible  <bruno@clisp.org>
54519
54520         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54521         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54522         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54523         as an alias for SIGABRT.
54524         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54525         (sigaction): Map it to SIGABRT.
54526         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54527
54528 2008-10-20  Bruno Haible  <bruno@clisp.org>
54529
54530         * lib/fts.c: Don't include lstat.h.
54531         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54532
54533         Move the lstat() declaration to <sys/stat.h>.
54534         * lib/lstat.h: Remove file.
54535         * lib/sys_stat.in.h: Add special invocation convention.
54536         (lstat): New declaration.
54537         * lib/lstat.c (orig_lstat): New function.
54538         (rpl_lstat): Use orig_lstat instead of lstat.
54539         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54540         AC_C_INLINE. Set REPLACE_LSTAT.
54541         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54542         and REPLACE_LSTAT.
54543         * modules/lstat (Files): Remove lib/lstat.h.
54544         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54545         (Include): Specify <sys/stat.h> instead of lstat.h.
54546         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54547         REPLACE_LSTAT.
54548         * NEWS: Mention the change.
54549
54550 2008-10-20  Bruno Haible  <bruno@clisp.org>
54551
54552         * modules/posix_spawn-tests: New file.
54553         * tests/test-posix_spawn3.c: New file.
54554
54555 2008-10-20  Bruno Haible  <bruno@clisp.org>
54556
54557         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54558         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54559         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54560         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54561         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54562
54563 2008-10-20  Bruno Haible  <bruno@clisp.org>
54564
54565         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54566         of posix_spawn on AIX 5.3.
54567
54568 2008-10-20  Bruno Haible  <bruno@clisp.org>
54569
54570         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54571
54572 2008-10-20  Bruno Haible  <bruno@clisp.org>
54573
54574         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54575         of AC_LANG_PROGRAM.
54576
54577 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54578
54579         * lib/netdb.in.h: Don't define GNU specific constants until they
54580         are supported or needed.  Reported by Bruno Haible
54581         <bruno@clisp.org>.
54582
54583 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54584
54585         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54586
54587 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54588
54589         * lib/getaddrinfo.h: Remove file.
54590         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54591         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54592         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54593         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54594         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54595         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54596         * tests/test-getaddrinfo.c: Likewise.
54597         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54598         * NEWS: Mention change.
54599
54600 2008-10-19  Bruno Haible  <bruno@clisp.org>
54601
54602         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54603
54604 2008-10-19  Bruno Haible  <bruno@clisp.org>
54605
54606         * lib/wait-process.c: Include simply <sys/wait.h>.
54607         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54608         WIFSTOPPED): Remove fallback definitions.
54609         * modules/wait-process (Depends-on): Add sys_wait.
54610
54611         New module 'sys_wait'.
54612         * modules/sys_wait: New file.
54613         * lib/sys_wait.in.h: New file, partially copied from
54614         lib/wait-process.c.
54615         * m4/sys_wait_h.m4: New file.
54616         * doc/posix-headers/sys_wait.texi: Mention the new module.
54617
54618 2008-10-19  Bruno Haible  <bruno@clisp.org>
54619
54620         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54621
54622 2008-10-19  Bruno Haible  <bruno@clisp.org>
54623
54624         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54625         * lib/wait-process.c (WAIT_T): Remove type.
54626         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54627         (wait_subprocess): Update.
54628
54629 2008-10-19  Bruno Haible  <bruno@clisp.org>
54630
54631         New module 'atoll'.
54632         * modules/atoll: New file.
54633         * lib/stdlib.in.h (atoll): New declaration.
54634         * lib/atoll.c: New file, from glibc with modifications.
54635         * m4/atoll.m4: New file.
54636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54637         HAVE_ATOLL.
54638         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54639         * doc/posix-functions/atoll.texi: Mention the new module.
54640
54641 2008-10-19  Bruno Haible  <bruno@clisp.org>
54642
54643         Add strtoull() declaration to <stdlib.h>.
54644         * lib/stdlib.in.h (strtoull): New declaration.
54645         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54646         Set HAVE_STRTOULL.
54647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54648         HAVE_STRTOULL.
54649         * modules/strtoull (Depends-on): Add stdlib.
54650         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54651         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54652         HAVE_STRTOULL.
54653
54654 2008-10-19  Bruno Haible  <bruno@clisp.org>
54655
54656         Add strtoll() declaration to <stdlib.h>.
54657         * lib/stdlib.in.h (strtoll): New declaration.
54658         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54659         Set HAVE_STRTOLL.
54660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54661         HAVE_STRTOLL.
54662         * modules/strtoll (Depends-on): Add stdlib.
54663         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54664         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54665
54666 2008-10-19  Bruno Haible  <bruno@clisp.org>
54667
54668         * modules/bcopy (Depends-on): Add strings.
54669         (Include): Specify <strings.h>.
54670
54671 2008-10-19  Bruno Haible  <bruno@clisp.org>
54672
54673         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54674
54675 2008-10-19  Bruno Haible  <bruno@clisp.org>
54676
54677         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54678         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54679         mingw.
54680
54681 2008-10-19  Bruno Haible  <bruno@clisp.org>
54682
54683         * lib/atanl.c: Don't include isnanl.h.
54684         * lib/cosl.c: Likewise.
54685         * lib/ldexpl.c: Likewise.
54686         * lib/logl.c: Likewise.
54687         * lib/sinl.c: Likewise.
54688         * lib/sqrtl.c: Likewise.
54689         * lib/tanl.c: Likewise.
54690
54691         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54692         * lib/isnanf.h: Remove file.
54693         * lib/isnand.h: Remove file.
54694         * lib/isnanl.h: Remove file.
54695         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54696         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54697         macros.
54698         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54699         HAVE_ISNANF, don't define it as a C macro.
54700         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54701         HAVE_ISNAND, don't define it as a C macro.
54702         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54703         HAVE_ISNANL, don't define it as a C macro.
54704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54705         HAVE_ISNAN[FDL].
54706         * modules/isnanf (Files): Remove lib/isnanf.h.
54707         (Depends-on): Add math.
54708         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54709         (Include): Specify <math.h> instead of isnanf.h.
54710         * modules/isnand (Files): Remove lib/isnand.h.
54711         (Depends-on): Add math.
54712         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54713         (Include): Specify <math.h> instead of isnand.h.
54714         * modules/isnanl (Files): Remove lib/isnanl.h.
54715         (Depends-on): Add math.
54716         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54717         (Include): Specify <math.h> instead of isnanl.h.
54718         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54719         HAVE_ISNAN[FDL].
54720         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54721         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54722         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54723         * NEWS: Mention the change.
54724
54725 2008-10-18  Bruno Haible  <bruno@clisp.org>
54726
54727         Add getusershell(), setusershell(), endusershell() declarations to
54728         <unistd.h>.
54729         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54730         declarations.
54731         * lib/getusershell.c: Include unistd.h.
54732         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54733         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54734         HAVE_GETUSERSHELL.
54735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54736         and HAVE_GETUSERSHELL.
54737         * modules/getusershell (Depends-on): Add unistd, extensions.
54738         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54739         (Include): Specify <unistd.h>.
54740         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54741         HAVE_GETUSERSHELL.
54742
54743 2008-10-18  Bruno Haible  <bruno@clisp.org>
54744
54745         Add a getloadavg() declaration to <stdlib.h>.
54746         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54747         getloadavg declaration.
54748         (getloadavg): New declaration.
54749         * lib/getloadavg.c: Include <stdlib.h> first.
54750         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54751         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54752         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54754         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54755         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54756         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54757         (Include): Specify <stdlib.h>.
54758         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54759         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54760
54761 2008-10-18  Bruno Haible  <bruno@clisp.org>
54762
54763         * lib/dirchownmod.c: Don't include lchmod.h.
54764
54765         Move the lchmod() declaration to <sys/stat.h>.
54766         * lib/lchmod.h: Remove file.
54767         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54768         (lchmod): New declaration, moved here from lib/lchown.h.
54769         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54770         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54771         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54772         and HAVE_LCHMOD.
54773         * modules/lchmod (Files): Remove lib/lchmod.h.
54774         (Depends-on): Add sys_stat, extensions.
54775         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54776         (Include): Specify <sys/stat.h> instead of lchmod.h.
54777         * modules/sys_stat (Depends-on): Add link-warning.
54778         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54779         definition of GL_LINK_WARNING.
54780         * NEWS: Mention the change.
54781
54782 2008-10-18  Bruno Haible  <bruno@clisp.org>
54783
54784         * lib/fchdir.c: Don't include dirfd.h.
54785         * lib/fts.c: Likewise.
54786         * lib/getcwd.c: Likewise.
54787         * lib/glob.c: Likewise.
54788
54789         Move the dirfd() declaration to <dirent.h>.
54790         * lib/dirfd.h: Remove file.
54791         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54792         (dirfd): New declaration.
54793         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54794         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54795         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54796         HAVE_DECL_DIRFD.
54797         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54798         HAVE_DECL_DIRFD.
54799         * modules/dirfd (Files): Remove lib/dirfd.h.
54800         (Depends-on): Add dirent, extensions.
54801         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54802         (Include): Specify <dirent.h> instead of dirfd.h.
54803         * modules/dirent (Depends-on): Add link-warning.
54804         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54805         definition of GL_LINK_WARNING.
54806         * NEWS: Mention the change.
54807
54808 2008-10-18  Bruno Haible  <bruno@clisp.org>
54809
54810         Move the euidaccess() declaration to <unistd.h>.
54811         * lib/euidaccess.h: Remove file.
54812         * lib/unistd.in.h (euidaccess): New declaration.
54813         * lib/euidaccess.c: Don't include euidaccess.h.
54814         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54815         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54817         and HAVE_EUIDACCESS.
54818         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54819         (Depends-on): Add unistd.
54820         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54821         (Include): Specify <unistd.h> instead of euidaccess.h.
54822         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54823         HAVE_EUIDACCESS.
54824         * NEWS: Mention the change.
54825
54826 2008-10-18  Bruno Haible  <bruno@clisp.org>
54827
54828         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54829
54830         Move the getdomainname() declaration to <unistd.h>.
54831         * lib/getdomainname.h: Remove file.
54832         * lib/unistd.in.h (getdomainname): New declaration.
54833         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54834         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54835         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54836         HAVE_GETDOMAINNAME.
54837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54838         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54839         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54840         (Depends-on): Add unistd, extensions.
54841         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54842         (Includes): Specify <unistd.h> instead of getdomainname.h.
54843         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54844         HAVE_GETDOMAINNAME.
54845         * NEWS: Mention the change.
54846
54847 2008-10-18  Bruno Haible  <bruno@clisp.org>
54848
54849         * modules/dirent: New file.
54850         * m4/dirent_h.m4: New file.
54851         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54852         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54853         * modules/fchdir (Files): Remove lib/dirent.in.h.
54854         (Depends-on): Add dirent.
54855         (Makefile.am): Move rules to modules/dirent.
54856         * doc/posix-headers/dirent.texi: Mention the new module.
54857
54858 2008-10-18  Bruno Haible  <bruno@clisp.org>
54859
54860         Avoid -Wunused-parameter warnings in public gnulib header files.
54861         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54862         macro.
54863         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54864
54865 2008-10-18  Bruno Haible  <bruno@clisp.org>
54866
54867         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54868         * doc/glibc-functions/error.texi: Mention the module 'error'.
54869         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54870         * doc/glibc-functions/getdomainname.texi: Mention the module
54871         'getdomainname'.
54872         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54873         * doc/glibc-functions/getpagesize.texi: Mention the module
54874         'getpagesize'.
54875         * doc/glibc-functions/getusershell.texi: Mention the module
54876         'getusershell'.
54877         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54878         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54879         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54880         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54881         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54882         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54883         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54884         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54885         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54886         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54887         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54888         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54889         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54890         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54891
54892 2008-10-17  Bruno Haible  <bruno@clisp.org>
54893
54894         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54895         HP-UX and IRIX, use -0.0L.
54896         * tests/test-ceill.c (minus_zero): Likewise.
54897         * tests/test-floorl.c (minus_zero): Likewise.
54898         * tests/test-frexpl.c (minus_zero): Likewise.
54899         * tests/test-isnan.c (minus_zerol): Likewise.
54900         * tests/test-isnanl.h (minus_zero): Likewise.
54901         * tests/test-ldexpl.c (minus_zero): Likewise.
54902         * tests/test-roundl.c (minus_zero): Likewise.
54903         * tests/test-signbit.c (minus_zerol): Likewise.
54904         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54905         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54906         * tests/test-truncl.c (minus_zero): Likewise.
54907         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54908         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54909         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54910         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54911
54912 2008-10-17  Bruno Haible  <bruno@clisp.org>
54913
54914         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54915         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54916         that it gets activated only for gcc >= 3.0.
54917         * lib/dirent.in.h: Likewise.
54918         * lib/errno.in.h: Likewise.
54919         * lib/fcntl.in.h: Likewise.
54920         * lib/float.in.h: Likewise.
54921         * lib/iconv.in.h: Likewise.
54922         * lib/inttypes.in.h: Likewise.
54923         * lib/locale.in.h: Likewise.
54924         * lib/math.in.h: Likewise.
54925         * lib/netdb.in.h: Likewise.
54926         * lib/netinet_in.in.h: Likewise.
54927         * lib/search.in.h: Likewise.
54928         * lib/signal.in.h: Likewise.
54929         * lib/spawn.in.h: Likewise.
54930         * lib/stdarg.in.h: Likewise.
54931         * lib/stdint.in.h: Likewise.
54932         * lib/stdio.in.h: Likewise.
54933         * lib/stdlib.in.h: Likewise.
54934         * lib/string.in.h: Likewise.
54935         * lib/strings.in.h: Likewise.
54936         * lib/sys_file.in.h: Likewise.
54937         * lib/sys_ioctl.in.h: Likewise.
54938         * lib/sys_select.in.h: Likewise.
54939         * lib/sys_socket.in.h: Likewise.
54940         * lib/sys_stat.in.h: Likewise.
54941         * lib/sys_time.in.h: Likewise.
54942         * lib/sysexits.in.h: Likewise.
54943         * lib/time.in.h: Likewise.
54944         * lib/unistd.in.h: Likewise.
54945         * lib/wchar.in.h: Likewise.
54946         * lib/wctype.in.h: Likewise.
54947         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54948
54949 2008-10-17  Jim Meyering  <meyering@redhat.com>
54950
54951         ignore-value: don't depend on inline module
54952         * modules/ignore-value (Depends-on): Remove 'inline'.
54953         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54954         Suggestion from Bruno Haible.
54955
54956 2008-10-17  Bruno Haible  <bruno@clisp.org>
54957
54958         New implementation of condition variables for Win32.
54959         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54960         (gl_linked_waitqueue_t): New type.
54961         (gl_cond_t): Use it.
54962         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54963         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54964         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54965         (glthread_cond_init_func, glthread_cond_wait_func,
54966         glthread_cond_timedwait_func, glthread_cond_signal_func,
54967         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54968         Reimplemented on the basis of gl_linked_waitqueue_t.
54969         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54970         gl_waitqueue_t.
54971         (gl_rwlock_t): Update.
54972         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54973
54974 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54975
54976         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54977         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54978
54979 2008-10-17  Jim Meyering  <meyering@redhat.com>
54980
54981         ignore-value: new module
54982         * modules/ignore-value: New file.
54983         * lib/ignore-value.h: New file.
54984         * MODULES.html.sh (Compiler warning management): New section,
54985         just for this module.  More to come.
54986
54987 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54988
54989         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54990         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54991         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54992
54993 2008-10-16  Jim Meyering  <meyering@redhat.com>
54994
54995         openat-die.c: avoid 'no previous prototype' warning
54996         * lib/openat-die.c: Include "openat.h".
54997         Reported by Reuben Thomas <rrt@sc3d.org>.
54998
54999 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55000
55001         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55002         * lib/netdb.in.h: Fix typo.
55003         Reported by Bruno Haible  <bruno@clisp.org>
55004
55005         * lib/netdb.in.h: Include sys/socket.h for platforms without
55006         netdb.h, to get structures like hostent on MinGW.
55007         * modules/netdb (Depends-on): Add sys_socket.
55008
55009 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55010
55011         * modules/netdb, modules/netdb-tests: New file.
55012         * m4/netdb_h.m4: New file.
55013         * lib/netdb.in.h: Add, currently just an empty file pending
55014         definitions.
55015         * tests/test-netdb.c: New file.
55016         * doc/posix-headers/netdb.texi: Mention that we replace it if
55017         needed.
55018         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55019         netdb.
55020
55021 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55022
55023         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55024         with code.
55025
55026 2008-10-13  Bruno Haible  <bruno@clisp.org>
55027
55028         * lib/glthread/cond.c (glthread_cond_wait_func,
55029         glthread_cond_timedwait_func): Add a comment.
55030
55031 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55032
55033         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55034         * tests/test-select.c: Likewise,
55035
55036 2008-10-13  Bruno Haible  <bruno@clisp.org>
55037
55038         * lib/glthread/cond.c (glthread_cond_wait_func,
55039         glthread_cond_timedwait_func): Fix variable name.
55040         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55041
55042 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55043
55044         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55045         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55046         struct sockaddr.sa_len.
55047         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55048
55049 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55050
55051         * build-aux/pmccabe2html: Add css and css_url parameters.
55052
55053 2008-10-12  Bruno Haible  <bruno@clisp.org>
55054
55055         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55056         calling aclx_get.
55057         Reported by Rainer Tammer <tammer@tammer.net>.
55058
55059 2008-10-12  Bruno Haible  <bruno@clisp.org>
55060
55061         Use msvcrt aware primitives for creation/termination of Win32 threads.
55062         * lib/glthread/thread.c: Include <process.h>.
55063         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55064         (wrapper_func): Update signature.
55065         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55066
55067 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55068             Bruno Haible  <bruno@clisp.org>
55069
55070         Provide a Win32 implementation of the 'cond' module.
55071         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55072         * lib/glthread/cond.c (glthread_cond_init_func,
55073         glthread_cond_wait_func, glthread_cond_timedwait_func,
55074         glthread_cond_signal_func, glthread_cond_broadcast_func,
55075         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55076         * modules/cond (Dependencies): Add gettimeofday.
55077
55078 2008-10-11  Bruno Haible  <bruno@clisp.org>
55079
55080         Make sleep work on older versions of mingw.
55081         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55082         only whether it exists.
55083         * doc/posix-functions/sleep.texi: Mention the problem with older
55084         versions of mingw.
55085
55086 2008-10-11  Bruno Haible  <bruno@clisp.org>
55087
55088         New module 'shutdown'.
55089         * modules/shutdown: New file.
55090         * lib/sys_socket.in.h (shutdown): New declaration.
55091         * lib/winsock.c (shutdown): New function.
55092         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55093         GNULIB_SHUTDOWN.
55094         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55095         * doc/posix-functions/shutdown.texi: Document the new module.
55096
55097 2008-10-11  Jim Meyering  <meyering@redhat.com>
55098
55099         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55100
55101 2008-10-11  Bruno Haible  <bruno@clisp.org>
55102
55103         New module 'fclose'.
55104         * modules/fclose: New file.
55105         * lib/stdio.in.h (fclose): New declaration.
55106         * lib/fclose.c: New file.
55107         * m4/fclose.m4: New file.
55108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55109         REPLACE_FCLOSE.
55110         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55111         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55112         REPLACE_FCLOSE.
55113         * modules/close (Depends-on): fclose.
55114         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55115
55116 2008-10-11  Bruno Haible  <bruno@clisp.org>
55117
55118         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55119         set errno and don't call _close.
55120
55121 2008-10-10  Bruno Haible  <bruno@clisp.org>
55122
55123         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55124         ACL, not afterwards. Fixes test failure on Cygwin.
55125
55126 2008-10-09  Ben Pfaff  <blp@gnu.org>
55127
55128         * build-aux/announce-gen: Fix gnulib version related part of usage
55129         message.  Die with a useful error message if no tarballs are
55130         found.
55131
55132 2008-10-10  Jim Meyering  <meyering@redhat.com>
55133
55134         bootstrap: use git's --depth=N option only if it's supported
55135         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55136         recognize the --depth option.  Reported by Pádraig Brady.
55137
55138 2008-10-09  Bruno Haible  <bruno@clisp.org>
55139
55140         New module 'ioctl'.
55141         * modules/ioctl: New file.
55142         * lib/sys_socket.in.h (ioctl): Remove declaration.
55143         * lib/winsock.c: Include <sys/ioctl.h>.
55144         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55145         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55146         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55147         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55148         * doc/posix-functions/ioctl.texi: Mention the new module.
55149
55150 2008-10-09  Bruno Haible  <bruno@clisp.org>
55151
55152         New module 'sys_ioctl'.
55153         * lib/sys_ioctl.in.h: New file.
55154         * m4/sys_ioctl_h.m4: New file.
55155         * modules/sys_ioctl: New file.
55156         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55157
55158 2008-10-09  Bruno Haible  <bruno@clisp.org>
55159
55160         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55161         * lib/winsock.c: Include <stdarg.h>.
55162         (rpl_ioctl): Change to second argument 'int' and then varargs.
55163
55164 2008-10-09  Bruno Haible  <bruno@clisp.org>
55165
55166         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55167         when the sys_socket module is present and the system has <winsock2.h>.
55168
55169 2008-10-09  Bruno Haible  <bruno@clisp.org>
55170
55171         * doc/posix-functions/close.texi: Mention module 'close' instead of
55172         module 'sys_socket'.
55173
55174 2008-10-09  Bruno Haible  <bruno@clisp.org>
55175
55176         * doc/glibc-headers/sys_ioctl.texi: New file.
55177         * doc/gnulib.texi: Include it.
55178
55179 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55180             Bruno Haible  <bruno@clisp.org>
55181
55182         Combine the two replacements of 'close'.
55183         * lib/sys_socket.in.h (close): Define to a reminder to include
55184         <unistd.h>.
55185         (_gl_close_fd_maybe_socket): New declaration.
55186         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55187         * lib/winsock.c (close): Remove undefinition.
55188         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55189         needed for the gnulib module 'close'.
55190         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55191         define to an error symbol or to a warning, if suitable.
55192         * lib/close.c: Include <sys/socket.h>.
55193         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55194         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55195         UNISTD_H_HAVE_WINSOCK2_H.
55196         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55198         UNISTD_H_HAVE_WINSOCK2_H.
55199         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55200         (configure.ac): Set a module indicator.
55201         (Makefile.am): Substitute GNULIB_CLOSE.
55202         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55203         * modules/poll-tests (Depends-on): Add close.
55204         * modules/select-tests (Depends-on): Likewise.
55205
55206 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55207             Bruno Haible  <bruno@clisp.org>
55208
55209         New module 'close'.
55210         * modules/close: New file.
55211         * lib/unistd.in.h (close): Move declaration out of the
55212         FCHDIR_REPLACEMENT scope.
55213         (_gl_unregister_fd): New declaration.
55214         * lib/close.c: New file.
55215         * lib/fchdir.c (rpl_close): Remove function.
55216         * m4/close.m4: New file.
55217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55218         close.
55219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55220         REPLACE_CLOSE.
55221         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55222         REPLACE_CLOSE.
55223         * modules/fchdir (Depends-on): Add close.
55224
55225 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55226             Bruno Haible  <bruno@clisp.org>
55227
55228         * lib/fcntl.in.h (open): Simplify conditionals.
55229         (_gl_register_fd): New declaration.
55230         * lib/fchdir.c (rpl_open): Remove function.
55231         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55232         also.
55233         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55234         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55235         open.
55236
55237 2008-10-09  Jim Meyering  <meyering@redhat.com>
55238
55239         GNUmakefile: use the more name-space-friendly "_version"
55240         * top/GNUmakefile (_dummy): Update.
55241         (_version): Rename from "version".
55242
55243 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55244             Bruno Haible  <bruno@clisp.org>
55245
55246         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55247         rpl_close.
55248         (_gl_register_fd): New function, extracted from rpl_open.
55249         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55250         (rpl_open, rpl_opendir): Use _gl_register_fd.
55251
55252 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55253
55254         Fix organization of 'open' replacement.
55255         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55256         (gl_FUNC_OPEN): Use it.
55257         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55258
55259 2008-10-08  Bruno Haible  <bruno@clisp.org>
55260
55261         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55262
55263 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55264
55265         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55266         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55267         listen).
55268
55269 2008-10-08  Eric Blake  <ebb9@byu.net>
55270
55271         GNUmakefile: add 'make version' target
55272         * top/GNUmakefile (_curr-ver): Split version update rules...
55273         (version): ...into a target.
55274
55275 2008-10-07  Bruno Haible  <bruno@clisp.org>
55276
55277         Use a more portable replacement expression for -0.0L.
55278         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55279         instead of -0.0L. Fix m4 quotation.
55280
55281         * tests/test-signbit.c: Include <float.h>.
55282         (minus_zero): New variable.
55283         (test_signbitl): Use minus_zero instead of -zero.
55284         * modules/signbit-tests (Depends-on): Add float.
55285
55286         * tests/test-ceill.c: Include <float.h>.
55287         (zero): Remove variable.
55288         (minus_zero): New variable.
55289         (main): Use minus_zero instead of -zero.
55290         * modules/ceill-tests (Depends-on): Add float.
55291
55292         * tests/test-floorl.c: Include <float.h>.
55293         (zero): Remove variable.
55294         (minus_zero): New variable.
55295         (main): Use minus_zero instead of -zero.
55296         * modules/floorl-tests (Depends-on): Add float.
55297
55298         * tests/test-roundl.c: Include <float.h>.
55299         (zero): Remove variable.
55300         (minus_zero): New variable.
55301         (main): Use minus_zero instead of -zero.
55302         * modules/roundl-tests (Depends-on): Add float.
55303
55304         * tests/test-truncl.c: Include <float.h>.
55305         (zero): Remove variable.
55306         (minus_zero): New variable.
55307         (main): Use minus_zero instead of -zero.
55308         * modules/truncl-tests (Depends-on): Add float.
55309
55310         * tests/test-frexpl.c (zero): Remove variable.
55311         (minus_zero): New variable.
55312         (main): Use minus_zero instead of -zero.
55313         * modules/frexpl-tests (Depends-on): Add float.
55314
55315         * tests/test-isnan.c (zerol): Remove variable.
55316         (minus_zerol): New variable.
55317         (test_long_double): Use minus_zerol instead of -zerol.
55318         * modules/isnan-tests (Depends-on): Add float.
55319
55320         * tests/test-isnanl.h (zero): Remove variable.
55321         (minus_zero): New variable.
55322         (main): Use minus_zero instead of -zero.
55323         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55324         * modules/isnanl-tests (Depends-on): Add float.
55325
55326         * tests/test-ldexpl.c (zero): Remove variable.
55327         (minus_zero): New variable.
55328         (main): Use minus_zero instead of -zero.
55329         * modules/ldexpl-tests (Depends-on): Add float.
55330
55331         * tests/test-snprintf-posix.h (zerol): Remove variable.
55332         (minus_zerol): New variable.
55333         (test_function): Use minus_zerol instead of -zerol.
55334         * modules/snprintf-posix-tests (Depends-on): Add float.
55335         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55336
55337         * tests/test-sprintf-posix.h (zerol): Remove variable.
55338         (minus_zerol): New variable.
55339         (test_function): Use minus_zerol instead of -zerol.
55340         * modules/sprintf-posix-tests (Depends-on): Add float.
55341         * modules/vsprintf-posix-tests (Depends-on): Add float.
55342
55343         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55344         (minus_zerol): New variable.
55345         (test_function): Use minus_zerol instead of -zerol.
55346         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55347
55348         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55349         (minus_zerol): New variable.
55350         (test_function): Use minus_zerol instead of -zerol.
55351         * modules/vasprintf-posix-tests (Depends-on): Add float.
55352
55353 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55354
55355         * MODULES.html.sh (Support for building documentation): Mention
55356         pmccabe2html.  Sort entries.
55357
55358         Add pmccabe2html module, from gnupdf.
55359         * build-aux/pmccabe.css: New file.
55360         * build-aux/pmccabe2html: New file.
55361         * m4/pmccabe2html.m4: New file.
55362         * modules/pmccabe2html: New file.
55363
55364 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55365
55366         flock: new module
55367         * MODULES.html.sh: Add to list of modules.
55368         * lib/flock.c: flock implementation for Windows and Unix systems
55369         which have fcntl.
55370         * doc/glibc-functions/flock.texi: Update documentation.
55371         * lib/sys_file.in.h: <sys/file.h> header file.
55372         * m4/flock.m4: M4 macros.
55373         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55374         * modules/flock: flock module.
55375         * modules/flock-tests: flock tests module.
55376         * modules/sys_file: sys/file.h module.
55377         * tests/test-flock.c: test suite for flock.
55378
55379 2008-10-06  Jim Meyering  <meyering@redhat.com>
55380
55381         bootstrap: check for LT_INIT more portably still ;-)
55382         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55383         Spotted by Bruno Haible.
55384
55385 2008-10-06  Eric Blake  <ebb9@byu.net>
55386
55387         test-signbit: avoid tripping Irix cc bug on -0.0L
55388         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55389         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55390         entire testsuite consistent and avoids an Irix 6.2 bug.
55391
55392 2008-10-05  Bruno Haible  <bruno@clisp.org>
55393             Jim Meyering  <jim@meyering.net>
55394
55395         Add an option for ignoring EPIPE during close_stdout.
55396         * lib/closeout.h: Include <stdbool.h>.
55397         (close_stdout_set_ignore_EPIPE): New declaration.
55398         * lib/closeout.c: Include <stdbool.h>.
55399         (ignore_EPIPE): New variable.
55400         (close_stdout_set_ignore_EPIPE): New function.
55401         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55402         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55403         failure.
55404         * modules/closeout (Depends-on): Add stdbool.
55405
55406 2008-10-05  Bruno Haible  <bruno@clisp.org>
55407
55408         * modules/accept: New file.
55409         * modules/bind: New file.
55410         * modules/connect: New file.
55411         * modules/getpeername: New file.
55412         * modules/getsockname: New file.
55413         * modules/getsockopt: New file.
55414         * modules/listen: New file.
55415         * modules/recv: New file.
55416         * modules/recvfrom: New file.
55417         * modules/send: New file.
55418         * modules/sendto: New file.
55419         * modules/setsockopt: New file.
55420         * modules/socket: New file.
55421         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55422         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55423         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55424         the particular module is requested. Add a link warning when the
55425         particular module is not requested.
55426         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55427         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55428         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55429         the particular module is requested.
55430         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55431         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55432         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55433         * modules/sys_socket (Depends-on): Add link-warning.
55434         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55435         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55436         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55437         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55438         GL_LINK_WARNING.
55439         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55440         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55441         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55442         * doc/posix-functions/getpeername.texi: Mention the new module
55443         'getpeername'.
55444         * doc/posix-functions/getsockname.texi: Mention the new module
55445         'getsockname'.
55446         * doc/posix-functions/getsockopt.texi: Mention the new module
55447         'getsockopt'.
55448         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55449         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55450         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55451         * doc/posix-functions/send.texi: Mention the new module 'send'.
55452         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55453         * doc/posix-functions/setsockopt.texi: Mention the new module
55454         'setsockopt'.
55455         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55456         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55457         listen, connect, accept.
55458         * modules/select-tests (Depends-on): Likewise.
55459
55460 2008-10-05  Bruno Haible  <bruno@clisp.org>
55461
55462         * lib/winsock.c (strerror): Remove unused #undef.
55463         (rpl_close): Remove unused local variable.
55464
55465         * modules/sys_socket (Depends-on); Add errno.
55466
55467 2008-10-05  Bruno Haible  <bruno@clisp.org>
55468
55469         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55470         (select): Add a link warning when the 'select' module is not used.
55471         * modules/sys_select (Depends-on): Add link-warning.
55472         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55473         Suggested by Paolo Bonzini.
55474
55475 2008-10-05  Jim Meyering  <meyering@redhat.com>
55476
55477         bootstrap: check for LT_INIT more portably
55478         * build-aux/bootstrap: Avoid using grep -E, since it's not
55479         portable enough.  Suggestion from Bruno Haible.
55480
55481 2008-10-05  Bruno Haible  <bruno@clisp.org>
55482
55483         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55484         as being fixed by gnulib.
55485
55486 2008-10-05  Bruno Haible  <bruno@clisp.org>
55487
55488         * modules/select-tests: New file, mostly copied from
55489         modules/sys_select-tests.
55490         * tests/test-select.c: New file, mostly copied from
55491         tests/test-sys_select.c.
55492         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55493         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55494         (Makefile.am): Remove test_sys_select_LDADD.
55495
55496         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55497         to an undefined symbol, for an error message.
55498         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55499         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55500         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55501         winsock-select.c here.
55502         * modules/sys_select (Files): Remove lib/winsock-select.c.
55503         (Depends-on): Remove alloca.
55504         (Makefile.am): Substitute GNULIB_SELECT.
55505         * modules/select: New file.
55506         * doc/posix-functions/select.texi: Update.
55507
55508 2008-10-05  Bruno Haible  <bruno@clisp.org>
55509
55510         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55511         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55512         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55513         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55514         getdtablesize.
55515         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55516         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55517
55518 2008-10-05  Bruno Haible  <bruno@clisp.org>
55519
55520         * modules/getdtablesize-tests: New file.
55521         * tests/test-getdtablesize.c: New file.
55522
55523         New module 'getdtablesize'.
55524         * lib/unistd.in.h (getdtablesize): New declaration.
55525         * lib/getdtablesize.c: New file.
55526         * m4/getdtablesize.m4: New file.
55527         * modules/getdtablesize: New file.
55528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55529         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55530         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55531         HAVE_GETDTABLESIZE.
55532         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55533
55534 2008-10-05  Bruno Haible  <bruno@clisp.org>
55535
55536         * modules/sched (Makefile.am): Fix typo.
55537         Reported by Simon Josefsson.
55538
55539 2008-10-05  Jim Meyering  <meyering@redhat.com>
55540
55541         bootstrap: check for LT_INIT, too
55542         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55543         are deprecated.  Suggestion from Ralf Wildenhues.
55544
55545 2008-10-05  Bruno Haible  <bruno@clisp.org>
55546
55547         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55548         overriding them by ours.
55549         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55550
55551 2008-10-05  Jim Meyering  <meyering@redhat.com>
55552
55553         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55554         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55555         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55556
55557 2008-10-04  Bruno Haible  <bruno@clisp.org>
55558
55559         * modules/dup2 (License): Change to LGPLv2+.
55560         * modules/sleep (License): Likewise.
55561         * modules/perror (License): Likewise.
55562         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55563         Blake.
55564         * modules/signal (License): Likewise.
55565         * modules/sigprocmask (License): Likewise.
55566         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55567         Meyering.
55568
55569 2008-10-04  Bruno Haible  <bruno@clisp.org>
55570
55571         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55572         Reported by Rainer Tammer <tammer@tammer.net>.
55573
55574 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55575             Bruno Haible  <bruno@clisp.org>
55576
55577         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55578         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55579         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55580
55581 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55582
55583         filevercmp: new module
55584         * lib/filevercmp.h: New function filevercmp comparing version strings.
55585         * lib/filevercmp.c: Implementation of filevercmp function.
55586         * modules/filevercmp: Module metadata.
55587         * tests/test-filevercmp.c: Unit test for new module.
55588         * modules/filevercmp-tests: Unit test metadata.
55589         * MODULES.html.sh: Add filevercmp module.
55590
55591 2008-10-03  Bruno Haible  <bruno@clisp.org>
55592
55593         * lib/c-ctype.h: Add comment.
55594         Reported by Jim Meyering.
55595
55596 2008-10-02  Bruno Haible  <bruno@clisp.org>
55597
55598         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55599
55600 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55601
55602         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55603         name of bootstrap.conf accordingly.
55604
55605 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55606
55607         * build-aux/bootstrap: Install git-merge-changelog configuration
55608         items into .gitconfig if needed.
55609
55610 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55611
55612         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55613         git repository, and initialize/update it accordingly.
55614
55615 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55616
55617         * modules/fsync-tests: New file.
55618         * tests/test-fsync.c: New file.
55619
55620         New module 'fsync'.
55621         * lib/fsync.c: New file.
55622         * m4/fsync.m4: New file.
55623         * modules/fsync: New file.
55624         * lib/unistd.in.h (fsync): New declaration.
55625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55626         GNULIB_FSYNC and HAVE_FSYNC.
55627         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55628         * MODULES.html.sh (posix_functions): Add fsync.
55629         * doc/posix-functions/fsync.texi: Mention the new module.
55630
55631 2008-10-02  Jim Meyering  <meyering@redhat.com>
55632
55633         fts.c: sync with similar code from coreutils' remove.c
55634         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55635         Guard also with "#if defined __linux__", since for now at least,
55636         this code is Linux-kernel-specific.
55637
55638 2008-10-02  Jim Meyering  <meyering@redhat.com>
55639
55640         fts: bug fixes
55641         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55642         Include <sys/vfs.h>, not <sys/statfs.h>.
55643
55644         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55645         Include <sys/vfs.h>, not <sys/statfs.h>.
55646
55647 2008-10-01  Bruno Haible  <bruno@clisp.org>
55648
55649         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55650         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55651         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55652         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55653         * doc/posix-functions/posix_spawnp.texi: Likewise.
55654         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55655         whether posix_spawn actually works.
55656         * m4/pipe.m4 (gl_PIPE): Likewise.
55657         * modules/execute (Files): Add m4/posix_spawn.m4.
55658         * modules/pipe (Files): Add m4/posix_spawn.m4.
55659         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55660
55661 2008-10-01  Jim Meyering  <meyering@redhat.com>
55662
55663         remove trailing spaces
55664         * NEWS: Likewise.
55665         * lib/poll.c (poll): Likewise.
55666         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55667         * lib/winsock.c (rpl_close): Likewise.
55668         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55669         * modules/yield: Likewise.
55670         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55671         * tests/test-sys_select.c (connect_to_socket): Likewise.
55672
55673         fts.c: adjust a new interface to be more generally useful
55674         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55675         (fts_build): Adjust caller.
55676
55677 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55678
55679         * modules/cond-tests: New file.
55680         * tests/test-cond.c: New file.
55681
55682 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55683             Bruno Haible  <bruno@clisp.org>
55684
55685         * modules/cond (Dependencies): Add errno, time.
55686         * lib/glthread/cond.h: Include <time.h>.
55687         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55688         across platforms.
55689
55690 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55691             Bruno Haible  <bruno@clisp.org>
55692
55693         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55694
55695 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55696             Bruno Haible  <bruno@clisp.org>
55697
55698         * modules/tls-tests (Depends-on): Add thread, yield.
55699         (configure.ac): Remove all checks.
55700         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55701         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55702         gl_thread_self): Remove definitions. Include glthread/thread.h and
55703         glthread/yield.h instead.
55704         (test_tls): Pass an additional NULL argument to gl_thread_join.
55705
55706 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55707             Bruno Haible  <bruno@clisp.org>
55708
55709         * modules/lock-tests (Depends-on): Add thread, yield.
55710         (configure.ac): Remove all checks.
55711         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55712         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55713         gl_thread_self): Remove definitions. Include glthread/thread.h and
55714         glthread/yield.h instead.
55715         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55716         additional NULL argument to gl_thread_join.
55717
55718 2008-09-30  Bruno Haible  <bruno@clisp.org>
55719
55720         Fix the Win32 implementation of the 'thread' module.
55721         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55722         pointer type.
55723         (gl_thread_self): Invoke gl_thread_self_func.
55724         (gl_thread_self_func): New declaration.
55725         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55726         (do_init_self_key, init_self_key): New functions.
55727         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55728         Remove some fields.
55729         (running_threads, running_lock): Remove variables.
55730         (get_current_thread_handle): New function.
55731         (gl_thread_self_func, wrapper_func, glthread_create_func,
55732         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55733         simplified.
55734
55735 2008-09-30  Bruno Haible  <bruno@clisp.org>
55736
55737         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55738         files.
55739
55740 2008-09-30  Jim Meyering  <meyering@redhat.com>
55741
55742         fts.m4: correct the test for statfs.f_type
55743         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55744         when checking for statfs.f_type.
55745
55746 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55747
55748         tests: avoid some compiler warnings
55749         * tests/test-memchr.c (main): Pass NULL indirectly.
55750         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55751
55752 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55753
55754         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55755         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55756         exactly specified dayshifts.
55757         (dayshift): New rule.
55758         (rel): Add dayshift.
55759         (relative_time_table) [tomorrow, yesterday, today, now]:
55760         Use tDAY_SHIFT in place of tDAY_UNIT.
55761         * tests/test-getdate.c: Add tests for now-disallowed countable
55762         dayshifts, e.g., "4 yesterday ago".
55763
55764 2008-09-29  Bruno Haible  <bruno@clisp.org>
55765
55766         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55767         * tests/test-posix_spawn1.in.sh: Renamed from
55768         tests/test-posix_spawn.in.sh.
55769         * tests/test-posix_spawn2.c: New file.
55770         * tests/test-posix_spawn2.in.sh: New file.
55771         * modules/posix_spawnp-tests (Files): Update.
55772         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55773
55774 2008-09-29  Bruno Haible  <bruno@clisp.org>
55775
55776         Propagate effects of putenv/setenv/unsetenv to child processes.
55777         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55778         * lib/pipe.c (create_pipe): Likewise.
55779
55780 2008-09-29  Bruno Haible  <bruno@clisp.org>
55781
55782         Enable use of shell scripts as executables in mingw.
55783         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55784         run the program as a shell script.
55785         * lib/pipe.c (create_pipe): Likewise.
55786         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55787         resulting array.
55788
55789 2008-09-29  Eric Blake  <ebb9@byu.net>
55790
55791         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55792
55793 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55794
55795         * doc/posix-functions/accept.texi: Update mingw problems.
55796         * doc/posix-functions/bind.texi: Update mingw problems.
55797         * doc/posix-functions/close.texi: Update mingw problems.
55798         * doc/posix-functions/connect.texi: Update mingw problems.
55799         * doc/posix-functions/getpeername.texi: Update mingw problems.
55800         * doc/posix-functions/getsockname.texi: Update mingw problems.
55801         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55802         * doc/posix-functions/ioctl.texi: Update mingw problems.
55803         * doc/posix-functions/listen.texi: Update mingw problems.
55804         * doc/posix-functions/recv.texi: Update mingw problems.
55805         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55806         * doc/posix-functions/select.texi: Update mingw problems.
55807         * doc/posix-functions/send.texi: Update mingw problems.
55808         * doc/posix-functions/sendto.texi: Update mingw problems.
55809         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55810         * doc/posix-functions/socket.texi: Update mingw problems.
55811
55812 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55813             Bruno Haible  <bruno@clisp.org>
55814
55815         * lib/sys_select.in.h: Include sys/time.h.
55816         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55817         * modules/sys_select: Depend on sys_time.
55818         * tests/test-sys_select.c: Test that sys/select.h defines struct
55819         timeval fully.
55820
55821 2008-09-29  Bruno Haible  <bruno@clisp.org>
55822
55823         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55824         * lib/sys_select.in.h: Likewise.
55825
55826 2008-09-29  Bruno Haible  <bruno@clisp.org>
55827
55828         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55829
55830 2008-09-29  Bruno Haible  <bruno@clisp.org>
55831
55832         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55833         Set LIBSOCKET instead of augmenting LIBS.
55834         * modules/sockets (Link): New section.
55835         * modules/sockets-tests (test_sockets_LDADD): New variable.
55836         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55837         * modules/poll-tests (test_poll_LDADD): New variable.
55838         * NEWS: Document the change.
55839
55840 2008-09-29  Bruno Haible  <bruno@clisp.org>
55841
55842         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55843         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55844         ARPA_INET_H directly.
55845         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55846
55847 2008-09-28  Bruno Haible  <bruno@clisp.org>
55848
55849         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55850         from gl_HEADER_SYS_SOCKET.
55851         (gl_HEADER_SYS_SOCKET): Invoke it.
55852         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55853
55854 2008-09-28  Bruno Haible  <bruno@clisp.org>
55855
55856         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55857         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55858         Needed on OSF/1 4.0.
55859
55860 2008-09-28  Bruno Haible  <bruno@clisp.org>
55861
55862         Override open more carefully.
55863         * lib/open.c (orig_open): New function.
55864         (rpl_open): Use orig_open instead of open.
55865         * lib/fcntl.in.h: Add special invocation convention.
55866         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55867         (gl_FUNC_OPEN): Invoke it.
55868
55869         Override freopen more carefully.
55870         * lib/freopen.c (orig_freopen): New function.
55871         (rpl_freopen): Use orig_freopen instead of freopen.
55872         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55873         (gl_FUNC_FREOPEN): Invoke it.
55874
55875         Override fopen more carefully.
55876         * lib/fopen.c (orig_fopen): New function.
55877         (rpl_fopen): Use orig_fopen instead of fopen.
55878         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55879         (gl_FUNC_FOPEN): Invoke it.
55880         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55881
55882 2008-09-28  Bruno Haible  <bruno@clisp.org>
55883
55884         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55885         SIGPIPE.
55886
55887 2008-09-28  Bruno Haible  <bruno@clisp.org>
55888
55889         * tests/test-sigaction.c (handler, main): Disable the check whether
55890         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55891         glibc systems with LinuxThreads.
55892
55893 2008-09-28  Bruno Haible  <bruno@clisp.org>
55894
55895         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55896
55897         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55898         with AIX xlc.
55899         * lib/fcntl.in.h (open): Likewise.
55900         Reported by Rainer Tammer <tammer@tammer.net>.
55901
55902 2008-09-28  Bruno Haible  <bruno@clisp.org>
55903
55904         * modules/posix_spawnp-tests: New file.
55905         * tests/test-posix_spawn.c: New file.
55906         * tests/test-posix_spawn.in.sh: New file.
55907
55908         New module 'posix_spawnp'.
55909         * modules/posix_spawnp: New file.
55910         * lib/spawnp.c: New file, from GNU libc with modifications.
55911         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55912
55913         New module 'posix_spawn'.
55914         * modules/posix_spawn: New file.
55915         * lib/spawn.c: New file, from GNU libc with modifications.
55916         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55917
55918         New module 'posix_spawnattr_destroy'.
55919         * modules/posix_spawnattr_destroy: New file.
55920         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55921         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55922         module.
55923
55924         New module 'posix_spawnattr_setsigmask'.
55925         * modules/posix_spawnattr_setsigmask: New file.
55926         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55927         modifications.
55928         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55929         new module.
55930
55931         New module 'posix_spawnattr_getsigmask'.
55932         * modules/posix_spawnattr_getsigmask: New file.
55933         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55934         modifications.
55935         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55936         new module.
55937
55938         New module 'posix_spawnattr_setsigdefault'.
55939         * modules/posix_spawnattr_setsigdefault: New file.
55940         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55941         modifications.
55942         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55943         new module.
55944
55945         New module 'posix_spawnattr_getsigdefault'.
55946         * modules/posix_spawnattr_getsigdefault: New file.
55947         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55948         modifications.
55949         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55950         new module.
55951
55952         New module 'posix_spawnattr_setschedpolicy'.
55953         * modules/posix_spawnattr_setschedpolicy: New file.
55954         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55955         modifications.
55956         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55957         new module.
55958
55959         New module 'posix_spawnattr_getschedpolicy'.
55960         * modules/posix_spawnattr_getschedpolicy: New file.
55961         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55962         modifications.
55963         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55964         new module.
55965
55966         New module 'posix_spawnattr_setschedparam'.
55967         * modules/posix_spawnattr_setschedparam: New file.
55968         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55969         modifications.
55970         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55971         new module.
55972
55973         New module 'posix_spawnattr_getschedparam'.
55974         * modules/posix_spawnattr_getschedparam: New file.
55975         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55976         modifications.
55977         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55978         new module.
55979
55980         New module 'posix_spawnattr_setpgroup'.
55981         * modules/posix_spawnattr_setpgroup: New file.
55982         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55983         modifications.
55984         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55985         module.
55986
55987         New module 'posix_spawnattr_getpgroup'.
55988         * modules/posix_spawnattr_getpgroup: New file.
55989         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55990         modifications.
55991         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55992         module.
55993
55994         New module 'posix_spawnattr_setflags'.
55995         * modules/posix_spawnattr_setflags: New file.
55996         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55997         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55998         module.
55999
56000         New module 'posix_spawnattr_getflags'.
56001         * modules/posix_spawnattr_getflags: New file.
56002         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56003         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56004         module.
56005
56006         New module 'posix_spawnattr_init'.
56007         * modules/posix_spawnattr_init: New file.
56008         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56009         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56010         module.
56011
56012         New module 'posix_spawn_file_actions_destroy'.
56013         * modules/posix_spawn_file_actions_destroy: New file.
56014         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56015         modifications.
56016         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56017         the new module.
56018
56019         New module 'posix_spawn_file_actions_addopen'.
56020         * modules/posix_spawn_file_actions_addopen: New file.
56021         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56022         modifications.
56023         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56024         the new module.
56025
56026         New module 'posix_spawn_file_actions_adddup2'.
56027         * modules/posix_spawn_file_actions_adddup2: New file.
56028         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56029         modifications.
56030         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56031         the new module.
56032
56033         New module 'posix_spawn_file_actions_addclose'.
56034         * modules/posix_spawn_file_actions_addclose: New file.
56035         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56036         modifications.
56037         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56038         the new module.
56039
56040         New module 'posix_spawn_file_actions_init'.
56041         * modules/posix_spawn_file_actions_init: New file.
56042         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56043         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56044         new module.
56045
56046         New module 'posix_spawn-internal'.
56047         * modules/posix_spawn-internal: New file.
56048         * lib/spawn_int.h: New file, from GNU libc with modifications.
56049         * lib/spawni.c: New file, from GNU libc with modifications.
56050         * m4/posix_spawn.m4: New file.
56051
56052         New module 'spawn'.
56053         * modules/spawn: New file.
56054         * lib/spawn.in.h: New file, from GNU libc with modifications.
56055         * m4/spawn_h.m4: New file.
56056         * doc/posix-headers/spawn.texi: Mention the new module.
56057
56058 2008-09-28  Bruno Haible  <bruno@clisp.org>
56059
56060         * modules/sched-tests: New file.
56061         * tests/test-sched.c: New file.
56062
56063         New module 'sched'.
56064         * modules/sched: New file.
56065         * lib/sched.in.h: New file.
56066         * m4/sched_h.m4: New file.
56067         * doc/posix-headers/sched.texi: Mention the new module.
56068
56069 2008-09-27  Eric Blake  <ebb9@byu.net>
56070
56071         Fix previous patch, and tweak references to $0.
56072         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56073         (func_version, func_gnulib_dir): Don't call this program
56074         gnulib-tool.
56075         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56076         with using $0 in function.
56077         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56078         (func_fatal_error): Reuse the name the user invoked us with.
56079
56080 2008-09-27  Bruno Haible  <bruno@clisp.org>
56081
56082         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56083         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56084         (gl_ICONV_H): Not here.
56085         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56086         instead of assigning ICONV_H directly.
56087
56088         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56090         WCHAR_H directly.
56091
56092 2008-09-27  Bruno Haible  <bruno@clisp.org>
56093
56094         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56095         * modules/arpa_inet (Depends-on): Add link-warning.
56096         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56097         * modules/unistd (Makefile.am): Likewise.
56098
56099 2008-09-26  Bruno Haible  <bruno@clisp.org>
56100
56101         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56102         variables.
56103         (func_version): Essentially copied from gnulib-tool.
56104         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56105         func_readlink): Copied from gnulib-tool.
56106
56107 2008-09-26  Bruno Haible  <bruno@clisp.org>
56108
56109         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56110         invoking git-version-gen.
56111
56112 2008-09-26  Bruno Haible  <bruno@clisp.org>
56113
56114         * posix-modules: Update to directory names changed on 2008-01-19.
56115         Remove commas in output before splitting into words. No more need to
56116         avoid 'ftruncate' since 2007-02-19.
56117
56118 2008-09-26  Bruno Haible  <bruno@clisp.org>
56119
56120         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56121
56122 2008-09-26  Bruno Haible  <bruno@clisp.org>
56123
56124         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56125         * modules/fwriteerror (Depends-on): Add errno.
56126
56127 2008-09-26  Bruno Haible  <bruno@clisp.org>
56128
56129         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56130         * tests/test-vc-list-files-cvs.sh: Likewise.
56131
56132 2008-09-26  Bruno Haible  <bruno@clisp.org>
56133
56134         * doc/posix-headers/sys_resource.texi: Reorder items.
56135
56136 2008-09-26  Jim Meyering  <meyering@redhat.com>
56137
56138         fts: tweak inode comparison function
56139         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56140         inode numbers, as documented.
56141
56142         fts: sort dirent entries on inode number before traversing
56143         This avoids a quadratic, seek-related performance penalty when
56144         operating on a directory containing many entries (measurable at 10k;
56145         3.5 hours at 2 million entries with a cold cache) on certain types
56146         of file systems, including ext3 and ext4, but not tmpfs.
56147         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56148         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56149         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56150         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56151         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56152         (fts_build): Set the stat.st_ino member from D_INO.
56153         If it is likely to be useful, sort dirent entries on inode number.
56154
56155         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56156         and the struct statfs.f_type member.
56157         * modules/fts (Depends-on): Add d-ino.
56158
56159 2008-09-26  Bruno Haible  <bruno@clisp.org>
56160
56161         * modules/sigpipe-die (Depends-on): Add sigpipe.
56162
56163         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56164         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56165         and GNULIB_STDIO_H_SIGPIPE are set.
56166         * lib/stdio-write.c: New file.
56167         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56168         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56169         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56170         REPLACE_STDIO_WRITE_FUNCS.
56171         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56172         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56173         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56174         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56175         * modules/stdio (Files): Add lib/stdio-write.c.
56176         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56177         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56178         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56179         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56180         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56181         REPLACE_FPRINTF_POSIX.
56182         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56183         REPLACE_PRINTF_POSIX.
56184         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56185         REPLACE_VFPRINTF_POSIX.
56186         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56187         REPLACE_VPRINTF_POSIX.
56188         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56189         SIGPIPE issue.
56190         * doc/posix-functions/fputc.texi: Likewise.
56191         * doc/posix-functions/fputs.texi: Likewise.
56192         * doc/posix-functions/fwrite.texi: Likewise.
56193         * doc/posix-functions/printf.texi: Likewise.
56194         * doc/posix-functions/putc.texi: Likewise.
56195         * doc/posix-functions/putchar.texi: Likewise.
56196         * doc/posix-functions/puts.texi: Likewise.
56197         * doc/posix-functions/vfprintf.texi: Likewise.
56198         * doc/posix-functions/vprintf.texi: Likewise.
56199
56200         * modules/safe-write (Depends-on): Add write.
56201
56202         * modules/sigpipe-tests: New file.
56203         * tests/test-sigpipe.c: New file.
56204         * tests/test-sigpipe.sh: New file.
56205
56206         * modules/write: New file.
56207         * lib/unistd.in.h: Include <sys/types.h>.
56208         (write): New declaration.
56209         * lib/write.c: New file.
56210         * m4/write.m4: New file.
56211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56212         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56213         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56214         GNULIB_WRITE, REPLACE_WRITE.
56215         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56216         and the SIGPIPE issue.
56217
56218         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56219         (raise): New declaration.
56220         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56221         (ext_signal): New function.
56222         (rpl_raise): New function.
56223         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56224         GNULIB_SIGNAL_H_SIGPIPE.
56225         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56226         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56227
56228         * modules/sigpipe: New file.
56229         * m4/sigpipe.m4: New file.
56230
56231 2008-09-25  Derek Price  <derek@ximbiot.com>
56232             Bruno Haible  <bruno@clisp.org>
56233
56234         * gnulib-tool (func_import): Report all license incompatibilities, not
56235         just the first one.
56236
56237 2008-09-25  Bruno Haible  <bruno@clisp.org>
56238
56239         * gnulib-tool (func_import): When computing the edits, consider not
56240         only the Makefile.ams that exist but also those that will be generated.
56241
56242 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56243
56244         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56245         fixes gnulib-tool --test warning about duplicate dependency.
56246
56247 2008-09-25  Bruno Haible  <bruno@clisp.org>
56248
56249         * gnulib-tool: Don't ask the user to perform edits in the generated
56250         Makefile.ams.
56251         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56252         apply to the Makefile.am being generated.
56253         (func_emit_tests_Makefile_am): Execute edits that apply to the
56254         Makefile.am being generated.
56255         (func_import): Setup list of Makefile.am edits before emitting the
56256         Makefile.ams, not at the end.
56257         (func_create_testdir): Update.
56258         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56259
56260 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56261
56262         * gnulib-tool (func_import): Store the --tests-base option in the
56263         comment in gnulib-cache.m4.
56264
56265 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56266
56267         * NEWS: Document increased portability that sys_select now provides.
56268
56269         * lib/sys_select.in.h: Install select wrapper.
56270         * lib/sys_socket.in.h: Use more descriptive name when there is no
56271         select wrapper.
56272         * lib/winsock-select.c: New.
56273         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56274         Require gl_HEADER_SYS_SOCKET.
56275         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56276         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56277         * tests/test-sys_select.c: Add functional tests.
56278
56279 2008-09-24  Eric Blake  <ebb9@byu.net>
56280
56281         open, fopen: close fd leak in last patch
56282         * lib/open.c (rpl_open): Close fd before returning error.
56283         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56284         * doc/posix-functions/open.texi (open): Document that Irix also
56285         has the bug.
56286         * doc/posix-functions/fopen.texi (fopen): Likewise.
56287         Reported by Paolo Bonzini.
56288
56289 2008-09-24  Bruno Haible  <bruno@clisp.org>
56290
56291         Ensure that a filename ending in a slash cannot be used to access a
56292         non-directory.
56293         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56294         to check whether it's really a directory.
56295         * lib/fopen.c: Include fcntl.h, unistd.h.
56296         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56297         and fdopen().
56298         * modules/fopen (Depends-on): Add unistd.
56299         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56300         * tests/test-fopen.c (main): Likewise.
56301         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56302         * doc/posix-functions/fopen.texi: Likewise.
56303         Reported by Eric Blake.
56304
56305 2008-09-23  Eric Blake  <ebb9@byu.net>
56306
56307         c-stack: avoid compiler optimizations when provoking overflow
56308         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56309         recursion harder to optimize, to ensure a stack overflow occurs.
56310         * tests/test-c-stack.c (recurse): Likewise.
56311         Borrowed from libsigsegv.
56312
56313         c-stack: work around Irix sigaltstack bug
56314         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56315         whether sigaltstack uses wrong end of stack_t (copied in part from
56316         libsigsegv).
56317         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56318         Irix bug, without requiring an over-allocation.
56319         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56320         bug.
56321
56322         fopen: document mingw bug on directories
56323         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56324         not allowing a stream visiting a directory, even though reading
56325         from such a stream is not portable.
56326
56327 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56328
56329         * lib/poll.c: Rewrite.
56330         * modules/poll: Depend on alloca.
56331
56332 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56333
56334         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56335         instead define prototypes for a full set of wrappers.  Ensure
56336         that Cygwin does not use the compatibility code, which is only
56337         for MinGW.
56338         * lib/winsock.c: New.
56339         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56340         * modules/sys_socket: Add lib/winsock.c.
56341
56342         * modules/poll-tests: Add errno and perror.
56343         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56344
56345 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56346
56347         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56348
56349 2008-09-23  Bruno Haible  <bruno@clisp.org>
56350
56351         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56352         * doc/glibc-functions/*: Likewise.
56353
56354 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56355
56356         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56357         success.
56358
56359 2008-09-22  Eric Blake  <ebb9@byu.net>
56360             Bruno Haible  <bruno@clisp.org>
56361
56362         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56363         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56364         supply %A but mishandle pseudo-NaN.
56365         Reported by Simon Josefsson.
56366
56367 2008-09-21  Bruno Haible  <bruno@clisp.org>
56368
56369         * tests/test-lock.c (main): Tweak skip message.
56370         * tests/test-tls.c (main): Likewise.
56371
56372 2008-09-21  Bruno Haible  <bruno@clisp.org>
56373
56374         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56375         whether 'struct sigaction' has sa_sigaction here...
56376         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56377         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56378
56379 2008-09-21  Bruno Haible  <bruno@clisp.org>
56380
56381         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56382         section.
56383         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56384         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56385         the new section.
56386         (Support for obsolete systems lacking POSIX:2001): New section.
56387         (String handling <string.h>): Move strdup to the new section.
56388         Suggested by Simon Josefsson and Paolo Bonzini.
56389
56390 2008-09-21  Bruno Haible  <bruno@clisp.org>
56391
56392         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56393         exponents in %e and %g results on 'long double'. Needed for mingw's
56394         improved *printf functions.
56395         * tests/test-vasprintf-posix.c (test_function): Likewise.
56396         * tests/test-snprintf-posix.h (test_function): Likewise.
56397         * tests/test-sprintf-posix.h (test_function): Likewise.
56398         Reported by Eric Blake.
56399
56400 2008-09-21  Bruno Haible  <bruno@clisp.org>
56401
56402         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56403         * tests/test-sprintf-posix.h (test_function): Likewise.
56404
56405 2008-09-21  Bruno Haible  <bruno@clisp.org>
56406
56407         * modules/getpass (Depends-on): Add strdup-posix.
56408
56409         New module 'strdup-posix'.
56410         * modules/strdup-posix: New file.
56411         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56412         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56414         REPLACE_STRDUP.
56415         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56416         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56418         strdup-posix.
56419
56420         * modules/strdup (Depends-on): Remove malloc-posix.
56421
56422 2008-09-20  Bruno Haible  <bruno@clisp.org>
56423
56424         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56425         Wildenhues.
56426
56427 2008-09-20  Bruno Haible  <bruno@clisp.org>
56428
56429         Ensure that wint_t gets defined on IRIX 5.3.
56430         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56431         * lib/wctype.in.h (wint_t): Likewise.
56432         (__wctype_wint_t): Remove type.
56433         (isw*): Use wint_t instead of __wctype_wint_t.
56434         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56435         * modules/wchar (Files): Add m4/wint_t.m4.
56436         (Makefile.am): Substitute HAVE_WINT_T.
56437         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56438         * tests/test-wctype.c: Check that wint_t is defined.
56439         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56440         * doc/posix-headers/wctype.texi: Likewise.
56441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56442
56443 2008-09-18  Bruno Haible  <bruno@clisp.org>
56444
56445         * gnulib-tool (func_exit): Update comment.
56446
56447 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56448
56449         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56450         assumes strdup exists and does not depend on strdup to return
56451         ENOMEM on out of memory conditions.
56452
56453 2008-09-18  Bruno Haible  <bruno@clisp.org>
56454
56455         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56456         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56457         digits for the exponent.
56458
56459 2008-09-18  Jim Meyering  <meyering@redhat.com>
56460             Bruno Haible  <bruno@clisp.org>
56461
56462         * lib/vasnprintf.c (decimal_point_char): Define also if
56463         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56464
56465 2008-09-16  Bruno Haible  <bruno@clisp.org>
56466         and Eric Blake  <ebb9@byu.net>
56467
56468         vasnprintf: support Irix 5.3
56469         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56470         that mishandle long double infinity.
56471         Reported by Tom G. Christensen.
56472
56473 2008-09-16  Bruno Haible  <bruno@clisp.org>
56474
56475         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56476         Solaris 9.
56477         * doc/glibc-functions/alphasort.texi: Likewise.
56478         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56479
56480 2008-09-16  Jim Meyering  <meyering@redhat.com>
56481
56482         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56483         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56484         a umask modification leak out of a subshell.  Otherwise, the
56485         opensolaris /bin/sh would be accepted and thus cause unwarranted
56486         failures in the coreutils test suite.
56487
56488 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56489
56490         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56491         to succeed.
56492
56493 2008-09-16  Jim Meyering  <meyering@redhat.com>
56494
56495         avoid spurious test failure when library is built without ACL support
56496         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56497         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56498         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56499         * tests/test-copy-acl.sh: Likewise.
56500
56501 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56502
56503         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56504         based on character occurrence counts.
56505
56506 2008-09-15  Eric Blake  <ebb9@byu.net>
56507
56508         tests: avoid some compiler warnings
56509         * tests/test-memchr.c (main): Pass NULL indirectly.
56510         * tests/test-closein.c (main): Avoid unused variable.
56511
56512 2008-09-15  Bruno Haible  <bruno@clisp.org>
56513
56514         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56515         are missing on OpenBSD 4.0 individually.
56516         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56517
56518 2008-09-15  Bruno Haible  <bruno@clisp.org>
56519
56520         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56521         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56522         * doc/posix-functions/perror.texi: Likewise.
56523         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56524         is missing.
56525         Reported by Eric Blake.
56526
56527         * lib/errno.in.h: Use replacement values >= 2000.
56528         Reported by Eric Blake.
56529
56530 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56531
56532         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56533         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56534         limit.
56535         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56536         compareseq was aborted.
56537
56538 2008-09-14  Bruno Haible  <bruno@clisp.org>
56539
56540         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56541         yvec_edit_count.
56542         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56543         (fstrcmp_bounded): Simplify result computation accordingly.
56544
56545 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56546
56547         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56548         (fstrcmp): Define in terms of fstrcmp_bounded.
56549         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56550         lower_bound argument.
56551         Return quickly if the result is certainly < lower_bound.
56552         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56553
56554 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56555
56556         * lib/diffseq.h (EARLY_ABORT): New macro.
56557         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56558         evaluates to true.
56559
56560 2008-09-14  Bruno Haible  <bruno@clisp.org>
56561
56562         * modules/perror-tests: New file.
56563         * tests/test-perror.sh: New file.
56564         * tests/test-perror.c: New file.
56565
56566         New module 'perror'.
56567         * lib/stdio.in.h (perror): New declaration.
56568         * lib/perror.c: New file.
56569         * m4/perror.m4: New file.
56570         * modules/perror: New file.
56571         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56572         * doc/posix-functions/perror.texi: Mention the perror module.
56573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56574         REPLACE_PERROR.
56575         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56576         REPLACE_PERROR.
56577
56578 2008-09-14  Bruno Haible  <bruno@clisp.org>
56579
56580         * modules/stdio (Makefile.am): Reorder to match the order in
56581         lib/stdio.in.h.
56582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56583
56584 2008-09-13  Bruno Haible  <bruno@clisp.org>
56585
56586         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56587
56588 2008-09-13  Bruno Haible  <bruno@clisp.org>
56589
56590         Extend strerror to cover the added errno values.
56591         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56592         (rpl_strerror): Provide error messages for the added errno values and
56593         for the WSA* values.
56594         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56595         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56596         strerror.
56597         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56598         * modules/strerror (Depends-on): Add errno.
56599         * doc/posix-functions/strerror.texi: Document the change.
56600         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56601         and EOVERFLOW.
56602
56603 2008-09-13  Bruno Haible  <bruno@clisp.org>
56604
56605         * modules/EOVERFLOW: Remove file.
56606         * m4/eoverflow.m4: Remove file.
56607         * modules/EOVERFLOW-tests: Remove file.
56608         * tests/test-EOVERFLOW.c: Remove file.
56609         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56610         * modules/ftell (Depends-on): Likewise.
56611         * modules/getdelim (Depends-on): Likewise.
56612         * modules/getugroups (Depends-on): Likewise.
56613         * modules/poll (Depends-on): Likewise.
56614         * modules/snprintf (Depends-on): Likewise.
56615         * modules/sprintf-posix (Depends-on): Likewise.
56616         * modules/vasnprintf (Depends-on): Likewise.
56617         * modules/vasprintf (Depends-on): Likewise.
56618         * modules/vfprintf-posix (Depends-on): Likewise.
56619         * modules/vsnprintf (Depends-on): Likewise.
56620         * modules/vsprintf-posix (Depends-on): Likewise.
56621         * modules/xvasprintf (Depends-on): Likewise.
56622         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56623         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56624         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56625         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56626         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56627         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56628         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56629         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56630         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56631         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56632         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56633         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56634         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56635         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56636         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56637         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56638         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56639         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56640         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56641         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56642         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56643         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56644         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56645         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56646         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56647         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56648         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56649         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56650         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56651         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56652         * MODULES.html.sh: Remove EOVERFLOW.
56653         * NEWS: Mention the change.
56654
56655 2008-09-13  Bruno Haible  <bruno@clisp.org>
56656
56657         * modules/errno-tests: New file.
56658         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56659
56660         * lib/errno.in.h: New file.
56661         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56662         * modules/errno: New file.
56663         * doc/posix-headers/errno.texi: Update documentation.
56664         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56665
56666 2008-09-13  Bruno Haible  <bruno@clisp.org>
56667
56668         * tests/test-poll.c: Use #if for native Windows, rather than testing
56669         __MSVCRT__.
56670
56671 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56672             Bruno Haible  <bruno@clisp.org>
56673
56674         * lib/glob.c: Don't include <pwd.h> on native Windows.
56675         (WINDOWS32): New macro.
56676         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56677
56678 2008-09-13  Bruno Haible  <bruno@clisp.org>
56679
56680         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56681         (ETIMEDOUT): Remove macro.
56682         (glthread_cond_timedwait_multithreaded): New declaration.
56683         (glthread_cond_timedwait): Use it.
56684         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56685         (glthread_cond_timedwait_multithreaded): New function.
56686
56687 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56688
56689         * modules/poll-tests: Do not check for io.h.
56690         * tests/test-poll.c: Check for __MSVCRT__ instead.
56691
56692 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56693
56694         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56695         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56696         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56697
56698 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56699
56700         * modules/poll-tests: New.
56701         * tests/test-poll.c: New.
56702
56703 2008-09-12  Eric Blake  <ebb9@byu.net>
56704
56705         frexp: test for NetBSD failure on -0.0
56706         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56707         not all, bugs from NetBSD 3.0 have been fixed.
56708         * doc/posix-functions/frexp.texi (frexp): Document bug.
56709         Reported by Thomas Klausner.
56710
56711         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56712         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56713         literal -0.0.
56714         Reported by Jonathan C. Patschke <jp@centtech.com>.
56715
56716 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56717
56718         * lib/glthread/cond.h: Use dummy implementation also if
56719         USE_WIN32_THREADS.
56720
56721 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56722
56723         * modules/fnmatch-posix (License): Change to LGPLv2+.
56724         * modules/fnmatch-gnu (License): Likewise.
56725
56726 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56727
56728         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56729
56730 2008-09-11  Jim Meyering  <meyering@redhat.com>
56731
56732         * users.txt: Add gtk-vnc.
56733
56734 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56735
56736         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56737         rotate amounts.
56738
56739         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56740         required for 16-bit and 8-bit rotates.
56741         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56742         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56743         UINT8_MAX instead of hard-coded constants.
56744         Suggested by Paul Eggert.
56745
56746 2008-09-07  Bruno Haible  <bruno@clisp.org>
56747
56748         * tests/test-striconveh.c (main): Check behaviour when converting from
56749         UTF-7.
56750
56751         Make striconveh work better with stateful encodings.
56752         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56753         that iconv does not increment the inptr when returning -1/EINVAL.
56754
56755 2008-09-07  Bruno Haible  <bruno@clisp.org>
56756
56757         * build-aux/config.rpath: Update according to libtool-2.2.6.
56758         * build-aux/config.libpath: Likewise.
56759
56760 2008-09-06  Bruno Haible  <bruno@clisp.org>
56761
56762         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56763         * lib/freadptr.c (freadptr): Likewise.
56764         * lib/freadseek.c (freadptrinc): Likewise.
56765         Reported by Simon Josefsson.
56766
56767 2008-09-06  Bruno Haible  <bruno@clisp.org>
56768
56769         * modules/freadptr (License): Change to LGPLv2+.
56770         * modules/freadseek (License): Likewise.
56771         Suggested by Eric Blake.
56772
56773         * modules/memchr2 (License): Change to LGPLv2+.
56774         Approved by Eric Blake.
56775
56776 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56777             Bruno Haible  <bruno@clisp.org>
56778
56779         Make gnulib-tool work with native 'sed' on AIX.
56780         * gnulib-tool (sed_noop): New variable.
56781         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56782         func_add_or_update, func_create_testdir): Use it to initialize sed
56783         script variables.
56784         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56785
56786 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56787             Bruno Haible  <bruno@clisp.org>
56788
56789         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56790         also works after #include directives.
56791
56792 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56793
56794         getdate.y: reject an out-of-range timezone value
56795         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56796         the range [-24...+24].  When specified with only one or two digits,
56797         * tests/test-getdate.c: Tests for the fix.
56798         * doc/getdate.texi: Document this change.
56799
56800 2008-09-03  Bruno Haible  <bruno@clisp.org>
56801
56802         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56803
56804 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56805
56806         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56807         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56808         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56809         Blake <ebb9@byu.net>.
56810
56811         * tests/test-bitrotate.c: Add more test vectors.
56812
56813 2008-09-02  Eric Blake  <ebb9@byu.net>
56814
56815         vasnprintf-posix: handle large precision via %.*d
56816         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56817         when handling it ourselves.
56818         * tests/test-vasnprintf-posix.c (test_function): Add test.
56819         * tests/test-snprintf-posix.h (test_function): Likewise.
56820         * tests/test-sprintf-posix.h (test_function): Likewise.
56821         * tests/test-vasprintf-posix.c (test_function): Likewise.
56822         Reported by Alain Guibert.
56823
56824 2008-09-01  Eric Blake  <ebb9@byu.net>
56825
56826         c-stack: make configure-time check more robust
56827         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56828         successful sigaction call.
56829         Reported by Tom G. Christensen.
56830
56831 2008-09-01  Bruno Haible  <bruno@clisp.org>
56832
56833         New module 'findprog-lgpl'.
56834         * modules/findprog-lgpl: New file.
56835         * lib/findprog-lgpl.c: New file.
56836         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56837         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56838         to decide whether to use strdup or xstrdup, concatenated_filename or
56839         xconcatenated_filename.
56840
56841 2008-09-01  Bruno Haible  <bruno@clisp.org>
56842
56843         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56844         'xconcat-filename' (GPL).
56845         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56846         (License): Change to LGPLv2+.
56847         * modules/xconcat-filename: New file.
56848         * lib/concat-filename.h (concatenated_filename): Change specification.
56849         (xconcatenated_filename): New declaration.
56850         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56851         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56852         memory situations.
56853         * lib/xconcat-filename.c: New file.
56854         * NEWS: Mention the change.
56855         * lib/findprog.c: Include concat-filename.h, not filename.h.
56856         (find_in_path): Use xconcatenated_filename instead of
56857         concatenated_filename.
56858         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56859         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56860         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56861         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56862         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56863         instead of concatenated_filename.
56864         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56865         (execute_java_class): Use xconcatenated_filename instead of
56866         concatenated_filename.
56867         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56868         * modules/javacomp (Depends-on): Likewise.
56869         * modules/javaexec (Depends-on): Likewise.
56870
56871 2008-09-01  Bruno Haible  <bruno@clisp.org>
56872
56873         Split module 'filename' into 'filename' and 'concat-filename'.
56874         * modules/filename: Keep only lib/filename.h.
56875         (License): Change to LGPLv2+.
56876         * modules/concat-filename: New file, extracted from modules/filename.
56877         * lib/filename.h (concatenated_filename): Remove declaration.
56878         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56879         * lib/concat-filename.c: Include concat-filename.h.
56880         * NEWS: Mention the change.
56881
56882 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56883
56884         * lib/bitrotate.h (rotl8, rotr8): Add.
56885
56886         * modules/bitrotate (configure.ac): Need
56887         AC_REQUIRE([AC_C_INLINE]).
56888         (Description): Mention stdint.h.  Reported by Bruno Haible
56889         <bruno@clisp.org>.
56890
56891         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56892         Paolo Bonzini <bonzini@gnu.org>.
56893
56894 2008-08-31  Bruno Haible  <bruno@clisp.org>
56895
56896         Assume Solaris specific bi-arch conventions on Solaris systems.
56897         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56898         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56899         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56900         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56901         like acl_libdirstem.
56902         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56903         acl_libdirstem.
56904         * NEWS: Mention the change.
56905         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56906
56907 2008-08-31  Jim Meyering  <meyering@redhat.com>
56908
56909         * lib/strftime.h: Add comments describing the two added arguments.
56910
56911         remove duplicate #include directives
56912         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56913         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56914
56915 2008-08-31  Bruno Haible  <bruno@clisp.org>
56916
56917         New module 'sigpipe-die'.
56918         * modules/sigpipe-die: New file.
56919         * lib/sigpipe-die.h: New file.
56920         * lib/sigpipe-die.c: New file.
56921         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56922
56923 2008-08-31  Bruno Haible  <bruno@clisp.org>
56924
56925         Don't override previously installed signal handlers.
56926         * lib/fatal-signal.c (saved_sigactions): New variable.
56927         (uninstall_handlers): Reset the signal to the saved handler, not
56928         to SIG_DFL (except when ignored).
56929         (install_handlers): Save the previous handlers.
56930
56931 2008-08-30  Bruno Haible  <bruno@clisp.org>
56932
56933         * gnulib-tool (func_reset_sigpipe): New function.
56934         (func_get_automake_snippet, func_modules_transitive_closure,
56935         func_import): Invoke it before a join command that reads from stdin,
56936         to avoid "echo: write error: Broken pipe" error messages on stderr.
56937         Reported by Sam Steingold <sds@gnu.org>.
56938
56939 2008-08-30  Bruno Haible  <bruno@clisp.org>
56940
56941         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56942         Code copied from m4/open.m4.
56943         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56944         access and the filename ends in a slash. Code copied from lib/open.c.
56945         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56946         * tests/test-fopen.c (main): Check against bug with trailing slash.
56947
56948 2008-08-29  Bruno Haible  <bruno@clisp.org>
56949
56950         Avoid some "gcc -pedantic" warnings.
56951         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56952         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56953         * lib/dirent.in.h: Likewise.
56954         * lib/fcntl.in.h: Likewise.
56955         * lib/float.in.h: Likewise.
56956         * lib/iconv.in.h: Likewise.
56957         * lib/inttypes.in.h: Likewise.
56958         * lib/locale.in.h: Likewise.
56959         * lib/math.in.h: Likewise.
56960         * lib/netinet_in.in.h: Likewise.
56961         * lib/search.in.h: Likewise.
56962         * lib/signal.in.h: Likewise.
56963         * lib/stdarg.in.h: Likewise.
56964         * lib/stdint.in.h: Likewise.
56965         * lib/stdio.in.h: Likewise.
56966         * lib/stdlib.in.h: Likewise.
56967         * lib/string.in.h: Likewise.
56968         * lib/strings.in.h: Likewise.
56969         * lib/sys_select.in.h: Likewise.
56970         * lib/sys_socket.in.h: Likewise.
56971         * lib/sys_stat.in.h: Likewise.
56972         * lib/sys_time.in.h: Likewise.
56973         * lib/sysexits.in.h: Likewise.
56974         * lib/time.in.h: Likewise.
56975         * lib/unistd.in.h: Likewise.
56976         * lib/wchar.in.h: Likewise.
56977         * lib/wctype.in.h: Likewise.
56978         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56979         * modules/fchdir (Makefile.am): Likewise.
56980         * modules/fcntl (Makefile.am): Likewise.
56981         * modules/float (Makefile.am): Likewise.
56982         * modules/iconv_open (Makefile.am): Likewise.
56983         * modules/inttypes (Makefile.am): Likewise.
56984         * modules/locale (Makefile.am): Likewise.
56985         * modules/math (Makefile.am): Likewise.
56986         * modules/netinet_in (Makefile.am): Likewise.
56987         * modules/search (Makefile.am): Likewise.
56988         * modules/signal (Makefile.am): Likewise.
56989         * modules/stdarg (Makefile.am): Likewise.
56990         * modules/stdint (Makefile.am): Likewise.
56991         * modules/stdio (Makefile.am): Likewise.
56992         * modules/stdlib (Makefile.am): Likewise.
56993         * modules/string (Makefile.am): Likewise.
56994         * modules/strings (Makefile.am): Likewise.
56995         * modules/sys_select (Makefile.am): Likewise.
56996         * modules/sys_socket (Makefile.am): Likewise.
56997         * modules/sys_stat (Makefile.am): Likewise.
56998         * modules/sys_time (Makefile.am): Likewise.
56999         * modules/sysexits (Makefile.am): Likewise.
57000         * modules/time (Makefile.am): Likewise.
57001         * modules/unistd (Makefile.am): Likewise.
57002         * modules/wchar (Makefile.am): Likewise.
57003         * modules/wctype (Makefile.am): Likewise.
57004         Reported by Reuben Thomas <rrt@sc3d.org>.
57005
57006 2008-08-29  Bruno Haible  <bruno@clisp.org>
57007
57008         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57009         any more.
57010
57011 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57012
57013         * MODULES.html.sh (Misc): Add bitrotate.
57014
57015         * modules/bitrotate: New file.
57016
57017         * lib/bitrotate.h: New file.
57018
57019         * modules/bitrotate-tests: New file.
57020
57021         * tests/test-bitrotate.c: New file.
57022
57023         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57024         on the bitrotate module.
57025
57026         * lib/arctwo.c: Use new bitrotate module.
57027
57028 2008-08-29  Jim Meyering  <meyering@redhat.com>
57029
57030         bootstrap: merge changes from coreutils
57031         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57032         of copied files.  Remove a kludge, now that this is fixed.
57033         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57034         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57035         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57036
57037 2008-08-29  Bruno Haible  <bruno@clisp.org>
57038
57039         * MODULES.html.sh: Remove --cvs-urls option.
57040
57041 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57042
57043         maint.mk: adjust to file name change
57044         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57045
57046 2008-08-28  Jim Meyering  <meyering@redhat.com>
57047
57048         * modules/getndelim2 (License): Relicense to LGPLv2+.
57049         Approved by Richard Stallman for the version of 1995, and by
57050         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57051
57052 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57053
57054         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57055         dummy if one is not available.  Do not touch them if
57056         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57057         (getc_maybe_unlocked): New.
57058         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57059
57060 2008-08-26  Eric Blake  <ebb9@byu.net>
57061
57062         doc/INSTALL: resync from autoconf
57063         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57064         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57065         moving...
57066         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57067         * INSTALL: Regenerate.
57068         * INSTALL.ISO: New file.
57069         * INSTALL.UTF-8: Likewise.
57070
57071 2008-08-26  Jim Meyering  <meyering@redhat.com>
57072
57073         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57074         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57075         these definitions conditional, so that they may be overridden, too.
57076
57077 2008-08-26  Bruno Haible  <bruno@clisp.org>
57078
57079         Generate INSTALL file variants with prettier quotes.
57080         * doc/Makefile (INSTALL_PRELUDE): New macro.
57081         (INSTALL): Use it.
57082         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57083
57084 2008-08-26  Bruno Haible  <bruno@clisp.org>
57085
57086         Run makeinfo in an English locale.
57087         * doc/Makefile (MAKEINFO): New variable.
57088
57089 2008-08-26  Bruno Haible  <bruno@clisp.org>
57090
57091         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57092         Suggested by Eric Blake.
57093
57094 2008-08-25  Bruno Haible  <bruno@clisp.org>
57095
57096         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57097
57098 2008-08-25  Eric Blake  <ebb9@byu.net>
57099
57100         c-stack: test that stack overflow can be caught
57101         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57102         that platform allows handling stack overflow; at least OS/2 EMX
57103         has sigaltstack, but crashes before transferring control to
57104         handler on stack overflow.
57105         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57106         check for HAVE_STACK_OVERFLOW_HANDLING.
57107         Reported by Elbert Pol.
57108
57109 2008-08-25  Bruno Haible  <bruno@clisp.org>
57110
57111         * doc/posix-functions/strftime.texi: Fix description of strftime
57112         module.
57113
57114 2008-08-24  Bruno Haible  <bruno@clisp.org>
57115
57116         * tests/uniwidth/test-uc_width2.c: New file.
57117         * tests/uniwidth/test-uc_width2.sh: New file.
57118         * modules/uniwidth/width-tests (Files): Add the new files.
57119         (TESTS): Add uniwidth/test-uc_width2.sh.
57120         (TESTS_ENVIRONMENT): New variable.
57121         (check_PROGRAMS): Add test-uc_width2.
57122         (test_uc_width2_SOURCES): New variable.
57123
57124         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57125         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57126         not 0x00AB.
57127         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57128
57129 2008-08-22  Eric Blake  <ebb9@byu.net>
57130
57131         test-lock, test-tls: mention why a test is skipped
57132         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57133         skipped.
57134         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57135
57136         count-one-bits: relax license
57137         * modules/count-one-bits (License): Relicense to LGPLv2+.
57138         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57139
57140 2008-08-22  Andreas Schwab  <schwab@suse.de>
57141
57142         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57143         Remove spurious space in assignment.
57144
57145 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57146
57147         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57148         Paul Eggert <eggert@CS.UCLA.EDU>.
57149
57150 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57151
57152         * modules/gettext: Add m4/threadlib.m4.
57153
57154 2008-08-19  Eric Blake  <ebb9@byu.net>
57155
57156         test-c-stack: fix compilation failure on FreeBSD 5.0
57157         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57158         headers before <sys/resource.h>.
57159         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57160         the bug.
57161         Reported by Nelson H. F. Beebe.
57162
57163         strverscmp: migrate from "strverscmp.h" to <string.h>
57164         * modules/string (Makefile.am): Add new hooks.
57165         * modules/strverscmp (Files): Remove strverscmp.h.
57166         (Depends-on): Add string.
57167         (configure.ac): Add indicator.
57168         (Include): Mention new header.
57169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57170         defaults.
57171         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57172         results.
57173         * lib/strverscmp.h: Delete.
57174         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57175         * tests/test-strverscmp.c (includes): Adjust client.
57176         * lib/check-version.c (includes): Likewise.
57177         * NEWS: Document the change.
57178
57179         strverscmp: add unit test
57180         * modules/strverscmp-tests: New file.
57181         * tests/test-strverscmp.c: Likewise.
57182
57183 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57184
57185         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57186         regarding Windows crypto stuff, from Mono.
57187
57188 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57189
57190         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57191         if present, for intel RND.  Return error on failures.
57192
57193 2008-08-18  Ben Pfaff  <blp@gnu.org>
57194
57195         gitlog-to-changelog: give better diagnostic for failed pipe-open
57196         * build-aux/gitlog-to-changelog: Improve error message: suggest
57197         that the version of Git may be too old.
57198
57199 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57200
57201         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57202         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57203
57204 2008-08-18  Bruno Haible  <bruno@clisp.org>
57205
57206         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57207         pthread_in_use().
57208
57209 2008-08-18  Bruno Haible  <bruno@clisp.org>
57210
57211         * lib/glthread/threadlib.c: Include <pthread.h>.
57212
57213 2008-08-18  Bruno Haible  <bruno@clisp.org>
57214
57215         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57216         glthread_recursive_lock_* macros.
57217         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57218         Fix syntax error.
57219
57220 2008-08-18  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/glthread/thread.c: Avoid forcing a context switch right after
57223         thread creation.
57224
57225 2008-08-17  Bruno Haible  <bruno@clisp.org>
57226
57227         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57228         * lib/glthread/thread.h: Provide Win32 specific implementation.
57229         * modules/thread (Files): Add lib/glthread/thread.c.
57230         (Depends-on): Add lock.
57231         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57232
57233 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57234
57235         New module 'yield'.
57236         * modules/yield: New file.
57237         * lib/glthread/yield.h: New file.
57238         * m4/yield.m4: New file.
57239         * MODULES.html.sh (Multithreading): Add yield.
57240
57241 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57242
57243         New module 'thread'.
57244         * modules/thread: New file.
57245         * lib/glthread/thread.h: New file.
57246         * m4/thread.m4: New file.
57247         * MODULES.html.sh (Multithreading): Add thread.
57248
57249 2008-08-17  Bruno Haible  <bruno@clisp.org>
57250
57251         * lib/glthread/lock.h: Include <stdlib.h> always.
57252         * lib/glthread/tls.h: Likewise.
57253         * lib/glthread/cond.h: Likewise.
57254
57255 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57256
57257         New module 'cond'.
57258         * modules/cond: New file.
57259         * lib/glthread/cond.h: New file.
57260         * lib/glthread/cond.c: New file.
57261         * m4/cond.m4: New file.
57262         * MODULES.html.sh (Multithreading): Add cond.
57263
57264 2008-08-16  Eric Blake  <ebb9@byu.net>
57265
57266         c-stack: fix regression on Irix 5.3 from 2008-06-21
57267         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57268         sa_sigaction...
57269         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57270         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57271         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57272         * modules/signal (Makefile.am): Use the value.
57273         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57274         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57275         * doc/posix-headers/signal.texi (signal.h): Document this
57276         portability issue.
57277         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57278         Reported by Tom G. Christensen.
57279
57280 2008-08-17  Bruno Haible  <bruno@clisp.org>
57281
57282         New module 'threadlib'.
57283         * modules/threadlib: New file.
57284         * lib/glthread/threadlib.c: New file, extracted from
57285         lib/glthread/lock.c.
57286         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57287         functions.
57288         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57289         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57290         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57291         macros.
57292         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57293         (gl_DISABLE_THREADS): Remove macro.
57294         * modules/lock (Files): Remove build-aux/config.rpath.
57295         (Depends-on): Remove havelib. Add threadlib.
57296         (configure.ac-early): Remove section.
57297         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57298         * modules/tls (Depends-on): Remove lock. Add threadlib.
57299         (Link): New section, copied from threadlib.
57300         * MODULES.html.sh (Multithreading): Add threadlib.
57301
57302 2008-08-14  Bruno Haible  <bruno@clisp.org>
57303
57304         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57305         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57306         glthread_rwlock_unlock, glthread_rwlock_destroy,
57307         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57308         glthread_recursive_lock_destroy): Define as macros always.
57309         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57310         glthread_lock_lock.
57311         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57312         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57313         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57314         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57315         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57316         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57317         (glthread_recursive_lock_lock_func): Renamed from
57318         glthread_recursive_lock_lock.
57319         (glthread_recursive_lock_unlock_func): Renamed from
57320         glthread_recursive_lock_unlock.
57321         (glthread_recursive_lock_destroy_func): Renamed from
57322         glthread_recursive_lock_destroy.
57323
57324 2008-08-14  Bruno Haible  <bruno@clisp.org>
57325
57326         * lib/glthread/lock.h: Renamed from lib/lock.h.
57327         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57328         * lib/glthread/tls.h: Renamed from lib/tls.h.
57329         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57330         * lib/fstrcmp.c: Update includes.
57331         * lib/strsignal.c: Update includes.
57332         * modules/lock (Files, Makefile.am): Update.
57333         (Include): Change to "glthread/lock.h".
57334         * modules/tls (Files, Makefile.am): Update.
57335         (Include): Change to "glthread/tls.h".
57336         * tests/test-lock.c: Update includes.
57337         * tests/test-tls.c: Update includes.
57338         * NEWS: Mention the renamed header files.
57339
57340 2008-08-11  Jim Meyering  <meyering@redhat.com>
57341
57342         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57343
57344 2008-08-11  Eric Blake  <ebb9@byu.net>
57345
57346         test-c-stack: avoid C99-ism
57347         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57348         before statement.
57349         Reported by Alain Guibert.
57350
57351 2008-08-10  Jim Meyering  <meyering@redhat.com>
57352
57353         ensure that return value of uinttostr et al are not ignored
57354         * lib/inttostr.h (__GNUC_PREREQ): Define.
57355         (__attribute_warn_unused_result__): Define.
57356         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57357
57358 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57359
57360         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57361         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57362
57363 2008-08-07  Jim Meyering  <meyering@redhat.com>
57364
57365         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57366
57367         * modules/mkstemp (License): Relicense under LGPLv2+.
57368         * modules/tempname (License): Likewise.
57369
57370 2008-08-06  Bruno Haible  <bruno@clisp.org>
57371
57372         * lib/poll.c (poll): Further micro-optimization.
57373
57374 2008-08-06  Jim Meyering  <meyering@redhat.com>
57375
57376         inet_pton.c: use locale-independent tolower
57377         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57378         (inet_pton6): Use c_tolower rather than tolower.
57379         * modules/inet_pton (Depends-on): Add c-ctype.
57380
57381 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57382
57383         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57384         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57385
57386 2008-08-06  Jim Meyering  <meyering@redhat.com>
57387
57388         * modules/inet_pton (License): Relicense under LGPLv2+.
57389
57390 2008-08-03  Bruno Haible  <bruno@clisp.org>
57391
57392         Additional non-aborting API for lock and tls.
57393         * lib/lock.h: Include <errno.h>.
57394         (glthread_lock_init): New macro/function.
57395         (gl_lock_init): Define as wrapper around glthread_lock_init.
57396         (glthread_lock_lock): New macro/function.
57397         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57398         (glthread_lock_unlock): New macro/function.
57399         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57400         (glthread_lock_destroy): New macro/function.
57401         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57402         (glthread_rwlock_init): New macro/function.
57403         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57404         (glthread_rwlock_rdlock): New macro/function.
57405         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57406         (glthread_rwlock_wrlock): New macro/function.
57407         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57408         (glthread_rwlock_unlock): New macro/function.
57409         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57410         (glthread_rwlock_destroy): New macro/function.
57411         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57412         (glthread_recursive_lock_init): New macro/function.
57413         (gl_recursive_lock_init): Define as wrapper around
57414         glthread_recursive_lock_init.
57415         (glthread_recursive_lock_lock): New macro/function.
57416         (gl_recursive_lock_lock): Define as wrapper around
57417         glthread_recursive_lock_lock.
57418         (glthread_recursive_lock_unlock): New macro/function.
57419         (gl_recursive_lock_unlock): Define as wrapper around
57420         glthread_recursive_lock_unlock.
57421         (glthread_recursive_lock_destroy): New macro/function.
57422         (gl_recursive_lock_destroy): Define as wrapper around
57423         glthread_recursive_lock_destroy.
57424         (glthread_once): New macro/function.
57425         (gl_once): Define as wrapper around glthread_once.
57426         Update function declarations.
57427         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57428         glthread_rwlock_init. Return error code.
57429         (glthread_rwlock_rdlock_multithreaded): Renamed from
57430         glthread_rwlock_rdlock. Return error code.
57431         (glthread_rwlock_wrlock_multithreaded): Renamed from
57432         glthread_rwlock_wrlock. Return error code.
57433         (glthread_rwlock_unlock_multithreaded): Renamed from
57434         glthread_rwlock_unlock. Return error code.
57435         (glthread_rwlock_destroy_multithreaded): Renamed from
57436         glthread_rwlock_destroy. Return error code.
57437         (glthread_recursive_lock_init_multithreaded): Renamed from
57438         glthread_recursive_lock_init. Return error code.
57439         (glthread_recursive_lock_lock_multithreaded): Renamed from
57440         glthread_recursive_lock_lock. Return error code.
57441         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57442         glthread_recursive_lock_unlock. Return error code.
57443         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57444         glthread_recursive_lock_destroy. Return error code.
57445         (glthread_once_call): Make static.
57446         (glthread_once_multithreaded): Renamed from glthread_once.
57447         * lib/tls.h: Include <errno.h>.
57448         (glthread_tls_key_init): New macro/function.
57449         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57450         (glthread_tls_set): New macro/function.
57451         (gl_tls_set): Define as wrapper around glthread_tls_set.
57452         (glthread_tls_key_destroy): New macro/function.
57453         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57454         Update function declarations.
57455         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57456         glthread_tls_get.
57457         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57458
57459 2008-08-04  Eric Blake  <ebb9@byu.net>
57460
57461         gnumakefile: use space, not TAB, outside of targets
57462         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57463
57464 2008-08-02  Jim Meyering  <meyering@redhat.com>
57465
57466         getdate.y: avoid locale-dependent date parsing failure
57467         In Turkish locales, getdate would fail to recognize keywords
57468         containing a lowercase "i".  The solution is not to rely on
57469         locale-sensitive case-conversion.
57470         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57471         (lookup_word): Use c_toupper in place of toupper.
57472         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57473         Reported by Vefa Bicakci <bicave@superonline.com> in
57474         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57475         * modules/getdate (Depends-on): Add c-ctype.
57476
57477 2008-08-02  Bruno Haible  <bruno@clisp.org>
57478
57479         * gnulib-tool (func_import): When updating or creating a .gitignore
57480         file, prepend each added line with a slash, and ignore leading slashes
57481         from the existing lines.
57482         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57483
57484 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57485
57486         Portability fix for GNU make 3.79.1.
57487         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57488         versions do not understand.
57489
57490 2008-08-01  Bruno Haible  <bruno@clisp.org>
57491
57492         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57493         * tests/test-isnanf.h (zero): New variable.
57494         (main): Avoid literal -0.0f.
57495         * tests/test-isnand.h (zero): New variable.
57496         (main): Avoid literal -0.0.
57497         * tests/test-isnanl.h (zero): New variable.
57498         (main): Avoid literal -0.0L.
57499         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57500         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57501         -0.0, -0.0L.
57502         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57503         (test_signbitd): Avoid literal -0.0.
57504         (test_signbitl): Avoid literal -0.0L.
57505         * tests/test-ceilf1.c (zero): New variable.
57506         (main): Avoid literal -0.0f.
57507         * tests/test-ceill.c (zero): New variable.
57508         (main): Avoid literal -0.0L.
57509         * tests/test-floorf1.c (zero): New variable.
57510         (main): Avoid literal -0.0f.
57511         * tests/test-floorl.c (zero): New variable.
57512         (main): Avoid literal -0.0L.
57513         * tests/test-roundf1.c (zero): New variable.
57514         (main): Avoid literal -0.0f.
57515         * tests/test-round1.c (zero): New variable.
57516         (main): Avoid literal -0.0.
57517         * tests/test-roundl.c (zero): New variable.
57518         (main): Avoid literal -0.0L.
57519         * tests/test-truncf1.c (zero): New variable.
57520         (main): Avoid literal -0.0f.
57521         * tests/test-trunc1.c (zero): New variable.
57522         (main): Avoid literal -0.0.
57523         * tests/test-truncl.c (zero): New variable.
57524         (main): Avoid literal -0.0L.
57525         * tests/test-frexp.c (zero): New variable.
57526         (main): Avoid literal -0.0.
57527         * tests/test-frexpl.c (zero): New variable.
57528         (main): Avoid literal -0.0L.
57529         * tests/test-ldexpl.c (zero): New variable.
57530         (main): Avoid literal -0.0L.
57531         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57532         (zerod, zerol): New variables.
57533         (test_function): Avoid literals -0.0, -0.0L.
57534         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57535         (zerod, zerol): New variables.
57536         (test_function): Avoid literals -0.0, -0.0L.
57537         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57538         (zerod, zerol): New variables.
57539         (test_function): Avoid literals -0.0, -0.0L.
57540         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57541         (zerod, zerol): New variables.
57542         (test_function): Avoid literals -0.0, -0.0L.
57543         * tests/test-strtod.c (zero): New variable.
57544         (main): Avoid literal -0.0.
57545         Reported by Jonathan C. Patschke <jp@centtech.com>.
57546
57547 2008-07-31  Jim Meyering  <meyering@redhat.com>
57548
57549         sha256.h: correct definition of SHA224_DIGEST_SIZE
57550         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57551         Reported by Paulie Pena IV <paulie4@gmail.com>.
57552         Define as 224 / 8, rather than as a literal.
57553         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57554         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57555         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57556
57557 2008-07-31  Bruno Haible  <bruno@clisp.org>
57558
57559         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57560         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57561         Reported by Jonathan Patschke <jp@centtech.com>.
57562
57563 2008-07-31  Bruno Haible  <bruno@clisp.org>
57564
57565         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57566         Reported by Paolo Bonzini <bonzini@gnu.org>.
57567
57568 2008-07-30  Eric Blake  <ebb9@byu.net>
57569
57570         test-strtod: allow compilation without -lm
57571         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57572         Reported by Dennis Clarke <blastwave@gmail.com>.
57573
57574 2008-07-28  Jim Meyering  <meyering@redhat.com>
57575
57576         bootstrap: work also when there are no .po files in po/
57577         * build-aux/bootstrap (update_po_files): Complete the change
57578         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57579
57580 2008-07-27  Jim Meyering  <meyering@redhat.com>
57581
57582         * users.txt: Add zile.
57583
57584 2008-07-26  Ben Pfaff  <blp@gnu.org>
57585
57586         Add missing dependencies on new m4/exponent[fdl].m4 files.
57587         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57588         * modules/isnand-nolibm: Add m4/exponentd.m4.
57589         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57590         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57591         m4/isnan[fdl].m4, because the macros actually used moved.
57592         Reported by Jim Meyering.
57593
57594 2008-07-14  Ben Pfaff  <blp@gnu.org>
57595
57596         Add isinf module.
57597         * lib/isinf.c: New file.
57598         * lib/math.in.h: Define isinf macro if we have decided to replace
57599         it.
57600         * m4/isinf.m4: New file.
57601         * m4/math_h.m4: Initialize and substitute variables for isinf
57602         module.
57603         * modules/isinf: New file.
57604         * modules/isinf-tests: New file.
57605         * modules/math: Add substitutions for new module.
57606         * tests/test-isinf.c: New file.
57607         * doc/posix-functions/isinf.texi: Mention new module.
57608         * MODULES.html.sh: Mention new module.
57609
57610 2008-07-14  Ben Pfaff  <blp@gnu.org>
57611
57612         Factor out some macros for use by additional modules.
57613         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57614         exponentf.m4.
57615         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57616         exponentd.m4.
57617         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57618         file exponentl.m4.
57619         * m4/exponentf.m4: New file.
57620         * m4/exponentd.m4: New file.
57621         * m4/exponentl.m4: New file.
57622         * modules/isnanf: Use new file m4/exponentf.m4.
57623         * modules/isnand: Use new file m4/exponentd.m4.
57624         * modules/isnanl: Use new file m4/exponentl.m4.
57625
57626 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57627
57628         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57629         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57630         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57631         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57632
57633         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57634         readlink on platforms without PATH_MAX.
57635
57636 2008-07-21  Eric Blake  <ebb9@byu.net>
57637
57638         Warn, not fail, on stale version.
57639         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57640
57641         Don't allow installation with stale devel version number.
57642         * top/GNUmakefile (_is-install-target): New macro.
57643         (_curr-ver): Forbid installation with stale version number.
57644
57645 2008-07-20  Bruno Haible  <bruno@clisp.org>
57646
57647         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57648         TESTS_ENVIRONMENT.
57649         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57650
57651 2008-07-20  Bruno Haible  <bruno@clisp.org>
57652
57653         * lib/c-stack.h (c_stack_action): Add documentation.
57654         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57655
57656 2008-07-20  Bruno Haible  <bruno@clisp.org>
57657
57658         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57659         * modules/readlink (License): Likewise.
57660
57661 2008-07-17  Eric Blake  <ebb9@byu.net>
57662
57663         * modules/c-stack (Link): Fix typo.
57664
57665         Make c-stack use libsigsegv, when available.
57666         * modules/c-stack (Depends-on): Add libsigsegv.
57667         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57668         needed.
57669         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57670         (segv_handler, overflow_handler, c_stack_action)
57671         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57672         implementation when libsigsegv is available, but only when using
57673         the library is necessary.
57674         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57675         comment, explaining why XSI check fails on Linux.
57676         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57677         * tests/test-c-stack2.sh: Tweak skip message.
57678         * NEWS: Document new link-time requirements.
57679
57680 2008-07-16  Eric Blake  <ebb9@byu.net>
57681
57682         c-stack: Expose false positives when not using libsigsegv.
57683         * modules/c-stack-tests (Files): Expand test.
57684         * tests/test-c-stack.c (main): Add means to conditionally trigger
57685         non-overflow SIGSEGV.
57686         * tests/test-c-stack2.sh: New file.
57687
57688 2008-07-14  Bruno Haible  <bruno@clisp.org>
57689
57690         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57691         Reported by Eric Blake.
57692
57693 2008-07-14  Sam Steingold  <sds@gnu.org>
57694             Bruno Haible  <bruno@clisp.org>
57695
57696         New module libsigsegv.
57697         * modules/libsigsegv: New file.
57698         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57699         modifications.
57700         * MODULES.html.sh (Signal handling): New section.
57701
57702 2008-07-14  Bruno Haible  <bruno@clisp.org>
57703
57704         * modules/unictype/ctype-* (Description): Add the word "function".
57705         Improves the resulting doc in MODULES.html.
57706
57707 2008-07-12  Ben Pfaff  <blp@gnu.org>
57708
57709         Add longlong module.
57710         * modules/longlong: New file.
57711
57712 2008-07-12  Bruno Haible  <bruno@clisp.org>
57713
57714         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57715         to empty.
57716
57717 2008-07-10  Ben Pfaff  <blp@gnu.org>
57718
57719         Add isnan module.
57720         * doc/posix-functions/isnan.texi: Mention new module.
57721         * lib/math.in.h: Define isnan macro if we have decided to replace
57722         it.
57723         * m4/isnan.m4: New file.
57724         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57725         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57726         also.
57727         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57728         redundancy.
57729         * m4/math_h.m4: Initialize and substitute variables for isnan
57730         module.
57731         * modules/isnan: New file.
57732         * modules/isnan-tests: New file.
57733         * modules/math: Add substitutions for new module.
57734         * tests/test-isnan.c: New file.
57735         * MODULES.html.sh: Mention new module.
57736
57737 2008-07-10  Ben Pfaff  <blp@gnu.org>
57738
57739         Add isnanf module.
57740         * lib/isnanf.m4: New file.
57741         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57742         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57743         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57744         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57745         * modules/isnanf: New file.
57746         * modules/isnanf-tests: New file.
57747         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57748         files.
57749         * tests/test-isnanf-nolibm.c: factored most of its contents into
57750         new file tests/test-isnanf.h.
57751         * tests/test-isnanf.h: New file.
57752         * tests/test-isnanf.c: New file.
57753         * MODULES.html.sh: Mention new module.
57754         * doc/glibc-functions/isnanf.texi: Mention new module.
57755
57756 2008-07-10  Ben Pfaff  <blp@gnu.org>
57757
57758         Add isnand module.
57759         * lib/isnand.h: New file.
57760         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57761         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57762         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57763         functionality also.
57764         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57765         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57766         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57767         * modules/isnand: New file.
57768         * modules/isnand-tests: New file.
57769         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57770         files.
57771         * tests/test-isnand-nolibm.c: factored most of its contents into
57772         new file tests/test-isnand.h.
57773         * tests/test-isnand.h: New file.
57774         * tests/test-isnand.c: New file.
57775         * MODULES.html.sh: Mention new module.
57776
57777 2008-07-10  Ben Pfaff  <blp@gnu.org>
57778
57779         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57780         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57781         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57782         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57783         * modules/isnanf-nolibm: Update references to renamed files.
57784         * modules/isnand-nolibm: Likewise.
57785         * modules/isnanf-nolibm-tests: Likewise.
57786         * modules/isnand-nolibm-tests: Likewise.
57787         * lib/frexp.c: Likewise.
57788         * lib/isfinite.c: Likewise.
57789         * lib/signbitd.c: Likewise.
57790         * lib/signbitf.c: Likewise.
57791         * lib/vasnprintf.c: Likewise.
57792         * tests/test-ceilf1.c: Likewise.
57793         * tests/test-ceilf2.c: Likewise.
57794         * tests/test-floorf1.c: Likewise.
57795         * tests/test-floorf2.c: Likewise.
57796         * tests/test-frexp.c: Likewise.
57797         * tests/test-round1.c: Likewise.
57798         * tests/test-round2.c: Likewise.
57799         * tests/test-roundf1.c: Likewise.
57800         * tests/test-strtod.c: Likewise.
57801         * tests/test-trunc1.c: Likewise.
57802         * tests/test-trunc2.c: Likewise.
57803         * tests/test-truncf1.c: Likewise.
57804         * tests/test-truncf2.c: Likewise.
57805         * NEWS: Mention the renamed header files.
57806
57807 2008-07-11  Jim Meyering  <meyering@redhat.com>
57808
57809         vc-list-files: make the last-resort awk code more portable
57810         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57811         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57812         does not support it.
57813
57814 2008-07-10  Eric Blake  <ebb9@byu.net>
57815
57816         Work with tar's bootstrap.
57817         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57818         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57819         an m4 comment.
57820
57821 2008-07-09  Jim Meyering  <meyering@redhat.com>
57822
57823         posix-shell.m4: fix typo that made this test malfunction
57824         * m4/posix-shell.m4: Remove capitalization in variable name.
57825
57826 2008-07-08  Bruno Haible  <bruno@clisp.org>
57827
57828         * m4/onceonly.m4: Update comments.
57829         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57830
57831 2008-07-04  Jim Meyering  <meyering@redhat.com>
57832
57833         * users.txt: Add vc-dwim.
57834         (bison, coreutils): Use the gitweb URL.
57835
57836 2008-07-03  Jim Meyering  <meyering@redhat.com>
57837
57838         * users.txt: Add libffcall.  From Sam Steingold.
57839
57840 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57841
57842         getdate.y: do not ignore TZ with relative day, month or year offset
57843         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57844         relative-date-handling, since otherwise, the latter would clobber the
57845         sole output (an updated Start value) of the tz-handling block.
57846         * tests/test-getdate.c: Tests for the fix
57847
57848 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57849
57850         Recognize 'foo_LIBRARIES += libgnu.a'.
57851         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57852         makefile snippet has already specified an installation location,
57853         also using '+='.
57854
57855 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57856
57857         getdate.y: factor out common actions
57858         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57859         Use them in place of open-coded actions.
57860
57861 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57862
57863         Add self-test for getdate module.
57864         * modules/getdate-tests: New file.
57865         * tests/test-getdate.c: New file.
57866
57867 2008-06-29  Bruno Haible  <bruno@clisp.org>
57868
57869         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57870         .gitignore.
57871         Reported by Sylvain Beucler <beuc@beuc.net>.
57872
57873 2008-06-29  Bruno Haible  <bruno@clisp.org>
57874
57875         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57876         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57877
57878 2008-06-29  Bruno Haible  <bruno@clisp.org>
57879
57880         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57881         EXTRA_DIST.
57882         Reported by Sylvain Beucler <beuc@beuc.net>.
57883
57884 2008-06-26  Jim Meyering  <meyering@redhat.com>
57885
57886         make several modules depend on the "open" module
57887         This provides slightly increased consistency when opening-for-write
57888         the name of a non-directory spelled with a trailing slash.
57889         * modules/chdir-safer: Likewise.
57890         * modules/chown: Likewise.
57891         * modules/clean-temp: Likewise.
57892         * modules/copy-file: Likewise.
57893         * modules/fchdir: Likewise.
57894         * modules/fcntl-safer: Likewise.
57895         * modules/pipe: Likewise.
57896         * modules/utime: Likewise.
57897         Prompted by Eric Blake and Bruno Haible.
57898
57899 2008-06-24  Andreas Schwab  <schwab@suse.de>
57900
57901         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57902         literals can be used as initializers for global variables.
57903
57904 2008-06-23  Eric Blake  <ebb9@byu.net>
57905
57906         Make gnulib-cache.m4 easier to diff.
57907         * gnulib-tool (func_import): Allow newlines when reading cached
57908         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57909
57910 2008-06-23  Bruno Haible  <bruno@clisp.org>
57911
57912         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57913         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57914         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57915         m4/signalblocking.m4.
57916         (gl_PREREQ_SIGACTION): Don't invoke it.
57917         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57918         gl_PREREQ_SIG_HANDLER_H.
57919         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57920         Don't check for sigaction here.
57921
57922 2008-06-23  Bruno Haible  <bruno@clisp.org>
57923
57924         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57925         (install_handlers): Don't set the SA_RESETHAND flag.
57926
57927 2008-06-23  Bruno Haible  <bruno@clisp.org>
57928
57929         * m4/sigaction.m4: Comment fixes.
57930         * lib/signal.in.h: Likewise.
57931
57932 2008-06-23  Eric Blake  <ebb9@byu.net>
57933
57934         Fix typo.
57935         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57936
57937         Avoid SA_ namespace.
57938         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57939         Reported by Ralf Wildenhues.
57940
57941         Avoid test failure due to SA_RESTORER.
57942         * tests/test-sigaction.c (SA_MASK): New macro.
57943         (main): Avoid failing due to extension flags being set.
57944         Reported by Jim Meyering.
57945
57946         Revert use of sig-handler.h in sigprocmask.c.
57947         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57948         it requires the existence of struct sigaction.
57949         * lib/sigprocmask.c (handler_t): Restore typedef.
57950         (rpl_signal, old_handlers): Use local type.
57951
57952 2008-06-22  Bruno Haible  <bruno@clisp.org>
57953
57954         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57955         conditionally.
57956         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57957
57958 2008-06-22  Bruno Haible  <bruno@clisp.org>
57959
57960         * doc/posix-functions/siginterrupt.texi: Move note.
57961
57962         * lib/signal.in.h (SA_RESTART): New macro.
57963         * lib/sigaction.c: Update comment.
57964
57965         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57966
57967         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57968         (gl_PREREQ_SIGPROCMASK): Invoke it.
57969         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57970
57971         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57972
57973         * lib/sigprocmask.c: Update a comment.
57974
57975 2008-06-21  Eric Blake  <ebb9@byu.net>
57976
57977         Use sigaction module rather than signal().
57978         * modules/c-stack (Depends-on): Add sigaction.
57979         * modules/fatal-signal (Depends-on): Likewise.
57980         * modules/nanosleep (Depends-on): Likewise.
57981         * modules/sigprocmask (Files): Add sig-handler.h.
57982         * modules/sigaction (Files): Likewise.
57983         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57984         Eggert.
57985         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57986         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57987         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57988         (init_fatal_signals): Likewise.
57989         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57990         (siginterrupt): Delete fallback.
57991         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57992         instead.
57993         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57994         siginterrupt.
57995
57996         New module sigaction, for mingw.
57997         * modules/sigaction: New module...
57998         * modules/sigaction-tests: ...and its test.
57999         * m4/sigaction.m4: New file.
58000         * lib/sigaction.c: Likewise.
58001         * tests/test-sigaction.c: Likewise.
58002         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58003         * modules/signal (Makefile.am): Likewise.
58004         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58005         needed.
58006         * doc/posix-headers/signal.texi (signal.h): Mention provided
58007         types.
58008         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58009         that sigaction is preferable.
58010         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58011         module.
58012         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58013         sigaction.
58014
58015         Improve robustness of sigprocmask by overriding signal.
58016         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58017         is in use.
58018         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58019         (SIGKILL, SIGSTOP): Provide fallbacks.
58020         (rpl_signal): Implement.
58021         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58022         signal can be called inside handlers.
58023
58024         Fix nanosleep module on mingw.
58025         * modules/nanosleep (Depends-on): Add sys_select.
58026         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58027
58028         Fix licensing of sigprocmask.
58029         * modules/raise (License): Relicense as LGPL.
58030
58031 2008-06-21  Bruno Haible  <bruno@clisp.org>
58032
58033         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58034         result if it contains question marks.
58035         Reported by Michael Geng <linux@michaelgeng.de>.
58036
58037 2008-06-19  Bruno Haible  <bruno@clisp.org>
58038
58039         Fix CVS-ism.
58040         * doc/gnulib.texi: Include updated-stamp.texi.
58041         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58042         (updated-stamp.texi): New rule.
58043         (gnulib.info): Depend on it.
58044         * doc/.gitignore: Add updated-stamp.texi.
58045         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58046
58047 2008-06-19  Bruno Haible  <bruno@clisp.org>
58048
58049         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58050         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58051
58052 2008-06-19  Eric Blake  <ebb9@byu.net>
58053
58054         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58055         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58056         Reported by Stepan Kasal.
58057
58058 2008-06-18  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58061         Reported by Eric Blake.
58062
58063 2008-06-18  Eric Blake  <ebb9@byu.net>
58064
58065         Work around cygwin 1.5.25 strsignal bug.
58066         * tests/test-strsignal.c: Allow for const char *.
58067         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58068
58069 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58070
58071         * users.txt: Update URL to article and add author/date
58072         information.
58073
58074 2008-06-17  Bruno Haible  <bruno@clisp.org>
58075
58076         New macro gl_DISABLE_THREADS.
58077         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58078         if the user did not pass --enable-threads or --disable-threads option.
58079         (gl_DISABLE_THREADS): New macro.
58080         Reported by Eric Blake <ebb9@byu.net>.
58081
58082 2008-06-17  Bruno Haible  <bruno@clisp.org>
58083
58084         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58085         when the macro ignores it.
58086         Based on a patch by Eric Blake <ebb9@byu.net>.
58087
58088 2008-06-17  Bruno Haible  <bruno@clisp.org>
58089
58090         * modules/tls (License): Change to LGPLv2+.
58091         Reported by Eric Blake.
58092
58093 2008-06-17  Eric Blake  <ebb9@byu.net>
58094
58095         Simplify c-stack prerequisites.
58096         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58097         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58098         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58099         check.
58100         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58101         <sys/resource.h>.
58102
58103         Move c-stack test into testsuite.
58104         * modules/c-stack-tests: New file.
58105         * lib/c-stack.c [DEBUG]: Move test program...
58106         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58107         fail test if sigaltstack is lacking.
58108         * tests/test-c-stack.sh: New driver file.
58109
58110 2008-06-16  Eric Blake  <ebb9@byu.net>
58111
58112         Use raise module consistently.
58113         * modules/fatal-signal (Depends-on): Add raise.
58114         * modules/sigprocmask (Depends-on): Likewise.
58115         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58116         * lib/sigprocmask.c (sigprocmask): Likewise.
58117         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58118         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58119
58120         Fix compliance bug in sigpending.
58121         * lib/sigprocmask.c (sigpending): Return pending array via
58122         parameter, not return value.
58123
58124 2008-06-14  Eric Blake  <ebb9@byu.net>
58125
58126         Improve obstack-printf test code.
58127         * tests/test-obstack-printf.c (test_function): Fix comment, and
58128         simplify usage of obstack_* in macros.  Add a test for coverage.
58129         Reported by Bruno Haible.
58130
58131 2008-06-14  Bruno Haible  <bruno@clisp.org>
58132
58133         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58134         array size as a constant, not as a const variable.
58135         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58136         AC_USE_SYSTEM_EXTENSIONS.
58137         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58138         Test whether the obstack_printf function actually exists.
58139         * modules/obstack-printf (Depends-on): Add extensions.
58140         (Include): Remove obstack.h.
58141         * modules/obstack-printf-posix (Depends-on): Add extensions.
58142         (Include): Remove obstack.h.
58143
58144 2008-06-13  Eric Blake  <ebb9@byu.net>
58145
58146         Add obstack-printf and obstack-printf-posix modules.
58147         * modules/obstack-printf: New file.
58148         * modules/obstack-printf-posix: Likewise.
58149         * MODULES.html.sh (Misc): Mention them.
58150         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58151         Likewise.
58152         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58153         Likewise.
58154         * modules/stdio (Makefile.am): Accomodate new modules.
58155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58156         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58157         Declare.
58158         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58159         functions.
58160         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58161         (gl_REPLACE_OBSTACK_PRINTF): New macros
58162         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58163         * tests/test-obstack-printf.c: New file.
58164         * modules/obstack-printf-tests: Likewise.
58165         * modules/obstack-printf-posix-tests: Likewise.
58166
58167 2008-06-11  Bruno Haible  <bruno@clisp.org>
58168
58169         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58170         * lib/open.c: Include errno.h.
58171         (open): Fail when attempting to write to a file that has a trailing
58172         slash.
58173         * tests/test-open.c (main): Test against trailing slash bug.
58174         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58175
58176 2008-06-10  Bruno Haible  <bruno@clisp.org>
58177
58178         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58179         for $? to work inside the trap command, with various /bin/sh-s.
58180         * tests/test-vc-list-files-cvs.sh: Likewise.
58181
58182 2008-06-10  Bruno Haible  <bruno@clisp.org>
58183
58184         * lib/acl-internal.h: Don't include gettext.h here.
58185         * lib/set-mode-acl.c: Include gettext.h here.
58186         * lib/copy-acl.c: Likewise.
58187
58188 2008-06-10  Bruno Haible  <bruno@clisp.org>
58189
58190         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58191         * lib/wait-process.c (wait_subprocess): Likewise.
58192         * lib/execute.h (execute): Add termsigp argument.
58193         * lib/execute.c (execute): Likewise.
58194         * lib/csharpcomp.c (compile_csharp_using_pnet,
58195         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58196         * lib/csharpexec.c (execute_csharp_using_pnet,
58197         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58198         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58199         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58200         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58201         is_jikes_present): Update.
58202         * lib/javaexec.c (execute_java_class): Update.
58203         * lib/javaversion.c (execute_and_read_line): Update.
58204         * NEWS: Document the changes.
58205         Reported by Eric Blake.
58206
58207 2008-06-10  Eric Blake  <ebb9@byu.net>
58208
58209         Add missing include.
58210         * tests/test-strstr.c (includes): Add <signal.h>.
58211         * tests/test-strcasestr.c (includes): Likewise.
58212         * tests/test-memmem.c (includes): Likewise.
58213
58214 2008-06-10  Bruno Haible  <bruno@clisp.org>
58215
58216         * lib/wait-process.c (wait_subprocess): Add an assertion.
58217
58218 2008-06-10  Bruno Haible  <bruno@clisp.org>
58219
58220         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58221
58222 2008-06-10  Bruno Haible  <bruno@clisp.org>
58223
58224         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58225         using alarm().
58226         * tests/test-strcasestr.c (main): Likewise.
58227         * tests/test-strstr.c (main): Likewise.
58228
58229 2008-06-09  Bruno Haible  <bruno@clisp.org>
58230
58231         Work around the Solaris 10 ACE ACLs ABI change.
58232         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58233         declare if ACL_NO_TRIVIAL is present.
58234         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58235         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58236         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58237         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58238         define if ACL_NO_TRIVIAL is present.
58239         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58240         and use the current ABI.
58241         (file_has_acl): Use same #if condition as elsewhere.
58242         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58243         in use, and use the current ABI.
58244         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58245         Reported by Jim Meyering.
58246
58247 2008-06-09  Eric Blake  <ebb9@byu.net>
58248
58249         Work around environments that (stupidly) ignore SIGALRM.
58250         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58251         before using alarm().
58252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58253         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58254         Reported by Ian Beckwith <ianb@erislabs.net>.
58255
58256         Produce autobuild blurb earlier in log.
58257         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58258
58259 2008-06-09  Jim Meyering  <meyering@redhat.com>
58260         and OndÅ™ej Vašík  <ovasik@redhat.com>
58261
58262         utimens.c: correct kernel bug work-around
58263         OndÅ™ej Vašík found that the invalid return value of 280 indicates
58264         failure, not success, and the kernel bug we're trying to work
58265         around affects not just the utimensat call, but also the fallback
58266         futimens call.
58267         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58268         not success.
58269         [HAVE_FUTIMENS]: Use the same work-around, here.
58270
58271 2008-06-09  Jim Meyering  <meyering@redhat.com>
58272
58273         add more guards around definition of ACE_-related code
58274         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58275         ALLOW and ACE_OWNER are also defined.
58276
58277 2008-06-08  Bruno Haible  <bruno@clisp.org>
58278
58279         * lib/acl-internal.h: Add me as co-author.
58280         * lib/file-has-acl.c: Likewise.
58281         * lib/set-mode-acl.c: Likewise.
58282         * lib/copy-acl.c: Likewise.
58283
58284 2008-06-08  Bruno Haible  <bruno@clisp.org>
58285
58286         Add support for AIX ACLs.
58287         * lib/acl-internal.h (acl_nontrivial): New declaration.
58288         * lib/file-has-acl.c (acl_nontrivial): New function.
58289         (file_has_acl): Add implementation using AIX 4 ACL API.
58290         * lib/set-mode-acl.c (qset_acl): Likewise.
58291         * lib/copy-acl.c (qcopy_acl): Likewise.
58292
58293 2008-06-08  Bruno Haible  <bruno@clisp.org>
58294
58295         Add support for HP-UX ACLs.
58296         * lib/acl-internal.h (acl_nontrivial): New declaration.
58297         * lib/file-has-acl.c (acl_nontrivial): New function.
58298         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58299         * lib/set-mode-acl.c (qset_acl): Likewise.
58300         * lib/copy-acl.c (qcopy_acl): Likewise.
58301
58302 2008-06-08  Bruno Haible  <bruno@clisp.org>
58303
58304         Add support for Cygwin ACLs.
58305         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58306         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58307         the chmod_or_fchmod call.
58308         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58309
58310 2008-06-08  Bruno Haible  <bruno@clisp.org>
58311
58312         Fix bug with setuid modes in Solaris 10+ code.
58313         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58314         succeeded, when the mode contains some special bits.
58315
58316 2008-06-08  Bruno Haible  <bruno@clisp.org>
58317
58318         Add support for Solaris 7..10 ACLs.
58319         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58320         declarations.
58321         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58322         functions.
58323         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58324         * lib/set-mode-acl.c (qset_acl): Likewise.
58325         * lib/copy-acl.c (qcopy_acl): Likewise.
58326
58327 2008-06-08  Bruno Haible  <bruno@clisp.org>
58328
58329         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58330         declaration.
58331         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58332         (acl_access_nontrivial): Remove MacOS X case.
58333         (file_has_acl): Use acl_extended_nontrivial.
58334         * lib/copy-acl.c (qcopy_acl): Likewise.
58335
58336 2008-06-08  Bruno Haible  <bruno@clisp.org>
58337
58338         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58339
58340 2008-06-08  Jim Meyering  <meyering@redhat.com>
58341
58342         * modules/acl (Maintainer): Add Bruno Haible.
58343
58344 2008-06-07  Bruno Haible  <bruno@clisp.org>
58345
58346         Improve support for Tru64 ACLs.
58347         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58348         ACL on OSF/1.
58349
58350 2008-06-07  Bruno Haible  <bruno@clisp.org>
58351
58352         Add support for MacOS X ACLs.
58353         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58354         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58355         * lib/set-mode-acl.c (qset_acl): Likewise.
58356         * lib/copy-acl.c (qcopy_acl): Likewise.
58357
58358 2008-06-07  Bruno Haible  <bruno@clisp.org>
58359
58360         Fix memory leak introduced on 2008-05-22.
58361         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58362         use.
58363
58364 2008-06-07  Bruno Haible  <bruno@clisp.org>
58365
58366         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58367         to construct an empty ACL.
58368
58369 2008-06-07  Bruno Haible  <bruno@clisp.org>
58370
58371         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58372         precisely.
58373         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58374
58375 2008-06-07  Bruno Haible  <bruno@clisp.org>
58376
58377         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58378         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58379
58380 2008-06-07  Bruno Haible  <bruno@clisp.org>
58381
58382         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58383         regardless of POSIX.
58384         * doc/posix-functions/_longjmp.texi: Likewise.
58385         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58386         SystemV platform in this case.
58387
58388 2008-06-06  Eric Blake  <ebb9@byu.net>
58389
58390         Document abort() bugs.
58391         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58392
58393         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58394         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58395         sigsetjmp.
58396         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58397         siglongjmp, but only as a macro.
58398         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58399         is obsolete.
58400         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58401
58402         Tweak documentation to cover cygwin argz bugs.
58403         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58404         argz bug fix; no code change needed since no cygwin releases
58405         occurred between the last fix and the bug being tested.
58406         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58407         module and recently fixed cygwin bugs.
58408         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58409         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58410         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58411         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58412         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58413         Likewise.
58414         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58415         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58416         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58417         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58418         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58419         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58420         Likewise.
58421
58422         Avoid gcc warning on cygwin.
58423         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58424         !ACL_NO_TRIVIAL]: Avoid unused variable.
58425
58426 2008-06-05  Eric Blake  <ebb9@byu.net>
58427
58428         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58429         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58430         git-version-gen fails to come up with a version.
58431         Reported by Simon Josefsson.
58432
58433 2008-06-05  Jim Meyering  <meyering@redhat.com>
58434             Paul Eggert  <eggert@cs.ucla.edu>
58435
58436         utimens.c: work around a probable Linux kernel bug
58437         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58438         appears to be a kernel bug that causes utimensat to return 280
58439         instead of 0, indicating success.
58440
58441 2008-06-04  Bruno Haible  <bruno@clisp.org>
58442
58443         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58444         2008-06-01 commit.
58445
58446 2008-06-04  Bruno Haible  <bruno@clisp.org>
58447
58448         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58449         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58450         (file_has_acl): Use it. Save errno afterwards.
58451         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58452
58453 2008-06-03  Bruno Haible  <bruno@clisp.org>
58454
58455         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58456         draft code. Simplify #ifs.
58457         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58458         Put Solaris code after POSIX-draft code. Fix comments regarding
58459         Solaris 10, HP-UX. Mention Cygwin.
58460         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58461
58462 2008-06-03  Eric Blake  <ebb9@byu.net>
58463
58464         Provide fallback for older kernels.
58465         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58466         Provide runtime fallback if kernel lacks support.
58467         Reported by Mike Frysinger.
58468
58469 2008-06-02  Bruno Haible  <bruno@clisp.org>
58470
58471         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58472         it exists.
58473
58474 2008-06-02  Bruno Haible  <bruno@clisp.org>
58475
58476         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58477         * lib/copy-acl.c (qcopy_acl): Update comment.
58478
58479 2008-06-02  Bruno Haible  <bruno@clisp.org>
58480
58481         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58482         like ACL APIs.
58483
58484 2008-06-02  Bruno Haible  <bruno@clisp.org>
58485
58486         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58487         * tests/test-set-mode-acl.sh: Likewise.
58488         * tests/test-copy-acl.sh: Likewise.
58489         * tests/test-copy-file.sh: Likewise.
58490
58491 2008-06-02  Bruno Haible  <bruno@clisp.org>
58492
58493         * tests/test-file-has-acl.sh: Remove unused code.
58494
58495 2008-06-01  Bruno Haible  <bruno@clisp.org>
58496
58497         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58498         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58499         messages.
58500         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58501
58502 2008-06-01  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58505         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58506         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58507         APIs.
58508         * modules/acl-tests (configure.ac): Remove tests now contained in
58509         m4/acl.m4.
58510
58511 2008-06-02  Jim Meyering  <meyering@redhat.com>
58512
58513         announce-gen: use a better key-server host name
58514         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58515         it may be more consistently reliable.  Suggested by Werner Koch
58516         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58517
58518 2008-06-01  Bruno Haible  <bruno@clisp.org>
58519
58520         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58521         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58522
58523 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58524
58525         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58526
58527 2008-06-01  Bruno Haible  <bruno@clisp.org>
58528
58529         New ACL tests.
58530         * tests/test-file-has-acl.sh: New file.
58531         * tests/test-file-has-acl.c: New file.
58532         * tests/test-set-mode-acl.sh: New file.
58533         * tests/test-set-mode-acl.c: New file.
58534         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58535         * tests/test-copy-acl.c: New file.
58536         * modules/acl-tests: New file, based on modules/copy-file-tests.
58537         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58538         (Depends-on): Add acl-tests.
58539         (configure.ac): Remove checks.
58540         (Makefile.am): Don't create test-sameacls program here any more.
58541
58542 2008-06-01  Bruno Haible  <bruno@clisp.org>
58543
58544         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58545         * tests/test-sameacls.c: Include progname.h.
58546         (main): Invoke set_program_name. Portability fixes for MacOS X,
58547         Solaris, HP-UX.
58548
58549 2008-06-01  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58552         function.
58553         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58554
58555 2008-06-01  Bruno Haible  <bruno@clisp.org>
58556
58557         * modules/rpmatch (Depends-on): Add strdup.
58558
58559 2008-06-01  Bruno Haible  <bruno@clisp.org>
58560
58561         * lib/pipe.c: Include unistd-safer.h.
58562         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58563         * modules/pipe (Depends-on): Add unistd-safer.
58564
58565 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58566
58567         * modules/autobuild (configure.ac): Call AB_INIT.
58568
58569 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58570
58571         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58572         Suggested by Bruno Haible <bruno@clisp.org>.
58573
58574 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58575
58576         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58577         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58578         <bruno@clisp.org>.
58579
58580 2008-05-29  Eric Blake  <ebb9@byu.net>
58581
58582         Prefer new POSIX 200x interfaces over futimesat.
58583         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58584         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58585         when available.
58586         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58587
58588 2008-05-28  Bruno Haible  <bruno@clisp.org>
58589
58590         * modules/stpcpy (License): Change to LGPLv2+.
58591         Requested by David Lutterkort <dlutter@redhat.com>.
58592
58593 2008-05-27  Bruno Haible  <bruno@clisp.org>
58594
58595         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58596         current mingw.
58597         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58598
58599 2008-05-27  Bruno Haible  <bruno@clisp.org>
58600
58601         * modules/iconv_open (Link): New section, from module 'iconv'.
58602         * modules/striconv (Link): Likewise.
58603         * modules/striconveh (Link): Likewise.
58604         * modules/xstriconv (Link): Likewise.
58605         * modules/unicodeio (Link): Likewise.
58606         * modules/propername (Link): Likewise.
58607         Reported by Jim Meyering.
58608
58609 2008-05-26  Jim Meyering  <meyering@redhat.com>
58610
58611         sha256: do not artificially restrict buffer length to be < 2^32
58612         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58613         uint32_t to size_t.
58614         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58615         to match.
58616
58617         avoid unaligned access errors, e.g., on sparc
58618         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58619         direct access through a possibly-unaligned uint64* pointer.
58620         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58621         direct access through a possibly-unaligned uint32* pointer.
58622         Prompted by this patch from Tom "spot" Callaway:
58623         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58624
58625         sha512.c: fix typo in comment
58626         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58627
58628 2008-05-25  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58631         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58632         (Makefile.am): Update lib_SOURCES.
58633
58634 2008-05-25  Bruno Haible  <bruno@clisp.org>
58635
58636         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58637
58638 2008-05-25  Jim Meyering  <meyering@redhat.com>
58639
58640         useless-if-before-free: freed expr may have white-space differences
58641         * build-aux/useless-if-before-free: Recognize cases in which the
58642         freed expression differs from the tested one in embedded white
58643         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58644         $1 was used, so we can't make any regexp shy.  Improved tests now
58645         detect this.
58646
58647         useless-if-before-free: accept white space in the expression.
58648         * build-aux/useless-if-before-free: For now, any white space
58649         in the expression must be identical in the free argument.
58650
58651         useless-if-before-free: efficiency tweak
58652         * build-aux/useless-if-before-free: Make the expression-matching
58653         regexp "shy".
58654         Make the *outer* regexp shy, not the expr-matching one.
58655
58656         update code-in-comment to accept cast of free arg
58657         * build-aux/useless-if-before-free: Update regexp.
58658
58659 2008-05-25  Bruno Haible  <bruno@clisp.org>
58660
58661         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58662         * modules/copy-file-tests (Files, Makefile.am): Update.
58663         * tests/test-copy-file.c (func_test_copy): Update.
58664
58665 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58666
58667         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58668
58669 2008-05-23  Bruno Haible  <bruno@clisp.org>
58670
58671         Improve support for ACLs on OSF/1.
58672         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58673         Remove fallback for unknown flavors of ACLs.
58674
58675 2008-05-22  Bruno Haible  <bruno@clisp.org>
58676
58677         Add support for ACLs on OSF/1.
58678         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58679         replacements.
58680         (acl_free_text): New macro fallback.
58681         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58682         acl_free.
58683         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58684         acl_free_text function. Require AC_C_INLINE.
58685
58686 2008-05-22  Bruno Haible  <bruno@clisp.org>
58687
58688         Make copy_acl work on MacOS X 10.5.
58689         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58690         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58691         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58692         If MODE_INSIDE_ACL, don't assume that every system has the same text
58693         representation for ACLs as FreeBSD.
58694         * lib/copy-acl.c (copy_acl): Add support for platforms with
58695         !MODE_INSIDE_ACL.
58696         * lib/file-has-acl.c (file_has_acl): Likewise.
58697         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58698         FreeBSD, MacOS X, or IRIX, respectively.
58699
58700 2008-05-22  Bruno Haible  <bruno@clisp.org>
58701
58702         * lib/acl.h: Don't include <sys/acl.h>.
58703         (GETACLCNT): Move fallback to lib/acl-internal.h.
58704         * lib/acl-internal.h: Include <sys/acl.h> here.
58705         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58706
58707 2008-05-22  Bruno Haible  <bruno@clisp.org>
58708
58709         Split off copy_acl function to separate file.
58710         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58711         * lib/acl.c (copy_acl): Moved function to separate file.
58712         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58713         * modules/acl (Files): Add lib/copy-acl.c.
58714         (Makefiles.am): Augment lib_SOURCES.
58715
58716 2008-05-22  Bruno Haible  <bruno@clisp.org>
58717
58718         * modules/copy-file-tests: New file.
58719         * tests/test-copy-file.sh: New file.
58720         * tests/test-copy-file.c: New file.
58721         * tests/test-copy-file-sameacls.c: New file.
58722
58723 2008-05-22  Eric Blake  <ebb9@byu.net>
58724
58725         Avoid gcc warning.
58726         * tests/test-memcmp.c (main): Pass NULL indirectly.
58727
58728 2008-05-21  Bruno Haible  <bruno@clisp.org>
58729
58730         Add reference doc about ACLs.
58731         * doc/acl-resources.txt: New file.
58732         * doc/acl-cygwin.txt: New file.
58733
58734 2008-05-21  Bruno Haible  <bruno@clisp.org>
58735
58736         Avoid one more warning from gcc.
58737         * lib/vasnprintf.c (IF_LINT): Update comments.
58738         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58739
58740 2008-05-21  Jim Meyering  <meyering@redhat.com>
58741
58742         avoid a warning from gcc
58743         * lib/vasnprintf.c (IF_LINT): Define.
58744         (scale10_round_decimal_long_double):
58745         Use it to avoid a "may be used uninitialized" warning.
58746         (scale10_round_decimal_double): Likewise.
58747
58748 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58749
58750         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58751         declared.
58752
58753 2008-05-20  Bruno Haible  <bruno@clisp.org>
58754
58755         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58756         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58757
58758 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58759
58760         * modules/memcmp-tests: New file.
58761         * tests/test-memcmp.c: New file.
58762
58763 2008-05-19  Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/propername (Notice, configure.ac): Put quoted "..." into
58766         --keyword option.
58767         * lib/propername.h: Update comments accordingly.
58768         Reported by Eric Blake.
58769
58770 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58771
58772         * modules/getpass-gnu (Depends-on): Add fseeko.
58773
58774 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58775
58776         * modules/base64-tests: New file.
58777
58778 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58779
58780         * lib/base64.c (base64_decode_ctx): If a decode context structure
58781         was passed in use it to ignore newlines.  If a context structure
58782         was _not_ passed in, continue to treat newlines as garbage (this
58783         is the historical behavior).  Formerly base64_decode.
58784         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58785         takes a decode context structure.
58786         * lib/base64.h (base64_decode): Macro for four-argument calls.
58787         (base64_decode_alloc): Likewise.
58788         * lib/base64.c (base64_decode_ctx): If a decode context structure
58789         was passed in use it to ignore newlines.  If a context structure
58790         was _not_ passed in, continue to treat newlines as garbage (this
58791         is the historical behavior).  Formerly base64_decode.
58792         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58793         takes a decode context structure.
58794         * lib/base64.h (base64_decode): Macro for four-argument calls.
58795         (base64_decode_alloc): Likewise.
58796
58797 2008-05-19  Jim Meyering  <meyering@redhat.com>
58798
58799         avoid a warning from gcc
58800         * lib/trim.c (IF_LINT): Define.
58801         (trim2): Use it to avoid a "may be used uninitialized" warning.
58802
58803         Fix doc typo.
58804         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58805
58806 2008-05-19  Bruno Haible  <bruno@clisp.org>
58807
58808         * doc/glibc-functions/getpass.texi: Document limits of other
58809         implementations.
58810
58811 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58812             Bruno Haible <bruno@clisp.org>
58813
58814         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58815
58816 2008-05-18  Bruno Haible  <bruno@clisp.org>
58817
58818         * modules/propername: New file, from GNU gettext.
58819         * lib/propername.h: New file, from GNU gettext.
58820         * lib/propername.c: New file, from GNU gettext.
58821         * MODULES.html.sh (Internationalization functions): Add propername.
58822
58823 2008-05-16  Jim Meyering  <meyering@redhat.com>
58824             Bruno Haible  <bruno@clisp.org>
58825
58826         Avoid some warnings from "gcc -Wshadow".
58827         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58828
58829 2008-05-15  Eric Blake  <ebb9@byu.net>
58830
58831         Extend previous patch to cygwin 1.7.0.
58832         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58833         fast implementation in cygwin >= 1.7.0.
58834         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58836
58837 2008-05-15  Bruno Haible  <bruno@clisp.org>
58838
58839         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58840         implementation in glibc >= 2.9.
58841         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58842         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58843
58844 2008-05-15  Bruno Haible  <bruno@clisp.org>
58845
58846         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58847         (Unicode string functions): Add unilbrk/*.
58848         Reported by Karl Berry.
58849
58850 2008-05-15  Eric Blake  <ebb9@byu.net>
58851
58852         Fix violation of <stdbool.h> replacement in regex.
58853         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58854         * lib/regexec.c (re_search_internal): Likewise.
58855         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58856
58857 2008-05-15  Jim Meyering  <meyering@redhat.com>
58858
58859         avoid distracting test output when git or cvs is not found
58860         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58861         * tests/test-vc-list-files-git.sh: Likewise.
58862
58863 2008-05-15  Eric Blake  <ebb9@byu.net>
58864
58865         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58866         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58867         glibc version.
58868         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58869         * doc/posix-functions/strstr.texi (strstr): Likewise.
58870         * lib/str-two-way.h (MAX): Sychronize with glibc.
58871
58872 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58873
58874         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58875         opr.ctx_type.
58876         (calc_first): Initialize constraint field.
58877         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58878         Fix grammar.
58879         (duplicate_node): Merge constraint field for all node types.
58880         (calc_eclosure_iter): Look at constraint field for all node types.
58881         * lib/regex_internal.c (create_cd_newstate): Don't look at
58882         opr.ctx_type.
58883
58884 2008-05-14  Bruno Haible  <bruno@clisp.org>
58885
58886         Help GCC to do better code generation.
58887         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58888         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58889         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58890         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58891         Declare with attribute 'malloc' if supported.
58892
58893 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58894
58895         use "echo STR|wc -c" rather than unportable "expr length STR"
58896         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58897         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58898
58899 2008-05-14  Jim Meyering  <meyering@redhat.com>
58900
58901         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58902         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58903         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58904         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58905         via Collin Lasse.
58906
58907 2008-05-14  Eric Blake  <ebb9@byu.net>
58908
58909         Avoid quadratic growth in gl_LIBSOURCES.
58910         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58911         Suggested by Bruno Haible.
58912
58913         Test xmemdup0.
58914         * modules/xmemdup0-tests: New file.
58915         * tests/test-xmemdup0.c: Likewise.
58916
58917 2008-05-13  Eric Blake  <ebb9@byu.net>
58918
58919         Split xmemdup0 into its own module.
58920         * modules/xmemdup0: New file.
58921         * lib/xmemdup0.h: Likewise.
58922         * lib/xmemdup0.c: Likewise.
58923         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58924         * lib/xalloc.h (xmemdup0): Remove.
58925         * lib/xmalloc.c (xmemdup0): Likewise.
58926
58927 2008-05-13  Eric Blake  <ebb9@byu.net>
58928             Bruno Haible  <bruno@clisp.org>
58929
58930         Reduce number of forks required during autoconf.
58931         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58932         and gl_LIBSOURCES_DIR.
58933         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58934         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58935         m4_syscmd per file.
58936         <m4_foreach_w>: Move...
58937         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58938
58939 2008-05-13  Eric Blake  <ebb9@byu.net>
58940
58941         * gnulib-tool: Fix various comment typos.
58942
58943 2008-05-12  Bruno Haible  <bruno@clisp.org>
58944
58945         Tailor the linebreaking algorithm.
58946         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58947
58948 2008-05-12  Bruno Haible  <bruno@clisp.org>
58949
58950         Update to Unicode 5.0.0.
58951         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58952         LBP_JV, LBP_JT. Redistribute values.
58953         (unilbrk_table): Change size.
58954         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58955         Unicode TR#14 rev. 22.
58956         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58957         LBP_JV, LBP_JT. Redistribute values.
58958         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58959         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58960         Update.
58961         * lib/unilbrk/lbrkprop1.h: Regenerated.
58962         * lib/unilbrk/lbrkprop2.h: Regenerated.
58963         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58964         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58965         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58966         Likewise.
58967         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58968         Likewise.
58969         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58970         result.
58971         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58972         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58973         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58974         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58975         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58976         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58977
58978 2008-05-11  Bruno Haible  <bruno@clisp.org>
58979
58980         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58981
58982 2008-05-11  Bruno Haible  <bruno@clisp.org>
58983
58984         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58985         * modules/unilbrk/gen-lbrk: New file.
58986
58987 2008-05-11  Bruno Haible  <bruno@clisp.org>
58988
58989         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58990         * m4/sha512.m4 (gl_SHA512): Likewise.
58991
58992 2008-05-11  Jim Meyering  <meyering@redhat.com>
58993
58994         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58995         * modules/crypto/sha256: New file.
58996         * modules/crypto/sha512: Likewise.
58997         * lib/sha256.c: Likewise.
58998         * lib/sha256.h: Likewise.
58999         * lib/sha512.c: Likewise.
59000         * lib/sha512.h: Likewise.
59001         * lib/u64.h: Likewise.
59002         * m4/sha256.m4: Likewise.
59003         * m4/sha512.m4: Likewise.
59004         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59005
59006 2008-05-10  Bruno Haible  <bruno@clisp.org>
59007
59008         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59009         (Input/Output <stdio.h>): Add xprintf.
59010         (Signal handling <signal.h>): Add strsignal.
59011         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59012         (Core language properties): Add func.
59013         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59014         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59015         strings.
59016         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59017         (Input/output): New section.
59018         (File system functions): Add openat-die, stat-macros.
59019         (Networking functions): Add sockets.
59020         (Unicode string functions): Add unictype/*.
59021         (Support for building libraries and executables): Add gperf.
59022         (Support for building documentation): Add agpl-3.0.
59023         (Misc): Add nocrash.
59024
59025 2008-05-10  Bruno Haible  <bruno@clisp.org>
59026
59027         * modules/unictype/gen-ctype: New file.
59028
59029 2008-05-10  Jim Meyering  <meyering@redhat.com>
59030
59031         Make chdir-safer.c more efficient on a system with no symlinks.
59032         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59033         also if ELOOP is zero.  Suggested by Bruno Haible.
59034
59035         Make chdir-safer.c slightly safer.
59036         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59037         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59038
59039         Avoid compile failure on systems without ELOOP (like mingw).
59040         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59041         Reported by Bruno Haible.
59042
59043 2008-05-10  Bruno Haible  <bruno@clisp.org>
59044
59045         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59046         (is_utf8_encoding): Use a case-insensitive comparison.
59047         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59048         streq.
59049
59050 2008-05-10  Bruno Haible  <bruno@clisp.org>
59051
59052         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59053         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59054         * lib/unilbrk/ulc-common.h (iconv_string_length,
59055         iconv_string_keeping_offsets): Remove declarations.
59056         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59057         Don't include <iconv.h>, streq.h, xsize.h.
59058         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59059         conversion.
59060         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59061         <iconv.h>, streq.h, xsize.h.
59062         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59063         conversion.
59064         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59065         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59066         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59067         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59068
59069 2008-05-10  Bruno Haible  <bruno@clisp.org>
59070
59071         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59072         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59073
59074         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59075         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59076
59077         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59078         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59079
59080         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59081         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59082
59083         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59084         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59085
59086         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59087         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59088
59089         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59090         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59091
59092         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59093         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59094
59095 2008-05-10  Bruno Haible  <bruno@clisp.org>
59096
59097         Split up 'linebreak' module.
59098         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59099         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59100         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59101         modifications.
59102         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59103         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59104         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59105         lib/linebreak.c.
59106         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59107         lib/linebreak.c.
59108         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59109         lib/linebreak.c.
59110         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59111         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59112         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59113         lib/linebreak.c.
59114         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59115         lib/linebreak.c.
59116         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59117         lib/linebreak.c.
59118         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59119         lib/linebreak.c.
59120         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59121         lib/linebreak.c.
59122         * modules/unilbrk/base: New file.
59123         * modules/unilbrk/tables: New file.
59124         * modules/unilbrk/u8-possible-linebreaks: New file.
59125         * modules/unilbrk/u16-possible-linebreaks: New file.
59126         * modules/unilbrk/u32-possible-linebreaks: New file.
59127         * modules/unilbrk/ulc-common: New file.
59128         * modules/unilbrk/ulc-possible-linebreaks: New file.
59129         * modules/unilbrk/u8-width-linebreaks: New file.
59130         * modules/unilbrk/u16-width-linebreaks: New file.
59131         * modules/unilbrk/u32-width-linebreaks: New file.
59132         * modules/unilbrk/ulc-width-linebreaks: New file.
59133         * lib/linebreak.h: Remove file.
59134         * lib/linebreak.c: Remove file.
59135         * m4/linebreak.m4: Remove file.
59136         * modules/linebreak: Remove file.
59137         * NEWS: Mention the changes.
59138
59139 2008-05-09  Eric Blake  <ebb9@byu.net>
59140
59141         Add xmemdup0.
59142         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59143         implementation.
59144         * lib/xmalloc.c (xmemdup0): New C implementation.
59145
59146 2008-05-08  Bruno Haible  <bruno@clisp.org>
59147
59148         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59149
59150 2008-05-07  Eric Blake  <ebb9@byu.net>
59151
59152         Support cross-compilation of <wctype.h>.
59153         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59154         AC_CACHE_CHECK.
59155
59156 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59157
59158         * build-aux/vc-list-files: Add support for bzr.
59159
59160 2008-05-03  Jim Meyering  <meyering@redhat.com>
59161
59162         avoid failed assertion with tight malloc
59163         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59164
59165 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59166
59167         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59168         are needed from arpa/inet.h.
59169         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59170         Reported by Bruno Haible.
59171
59172 2008-05-02  Jim Meyering  <meyering@redhat.com>
59173
59174         avoid compilation error on FreeBSD 6
59175         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59176
59177 2008-05-01  Jim Meyering  <meyering@redhat.com>
59178
59179         useless-if-before-free: correct --help's exit status description
59180         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59181         for one or more matches, etc.  Reported by Bruno Haible.
59182
59183         vc-list-files: make the stand-alone gnulib test work
59184         * modules/vc-list-files-tests (configure.ac):
59185         Define and AC_SUBST abs_aux_dir.
59186         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59187         $(abs_top_srcdir) to each script and having each of them
59188         duplicate the work of setting PATH, set PATH here, using
59189         the new variable, abs_aux_dir instead.
59190         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59191         * tests/test-vc-list-files-git.sh: Likewise.
59192         Reported by Bruno Haible.
59193
59194 2008-05-01  Bruno Haible  <bruno@clisp.org>
59195
59196         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59197         reallocation. Rename 'done' to 'found_delimiter'.
59198
59199 2008-05-01  Jim Meyering  <meyering@redhat.com>
59200
59201         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59202         * build-aux/vc-list-files: Use `...`, not $(...).
59203
59204 2008-04-30  Jim Meyering  <meyering@redhat.com>
59205
59206         add tests for vc-list-files
59207         * modules/vc-list-files-tests: New module.
59208         * tests/test-vc-list-files-cvs.sh: New file.
59209         * tests/test-vc-list-files-git.sh: New file.
59210
59211         avoid a warning from gcc
59212         * lib/getndelim2.c (IF_LINT): Define.
59213         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59214
59215         vc-list-files: work properly with build-aux/cvsu, too
59216         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59217         to all cvs-based clauses.
59218
59219         vc-list-files: work properly in the CVS+awk case, too
59220         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59221
59222         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59223         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59224         take more than one file argument, so .  Add quotes, just in case $dir
59225         ever contains a shell meta-character.  Prompted by Soren Hansen in
59226         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59227
59228 2008-04-29  Eric Blake  <ebb9@byu.net>
59229
59230         Optimize getndelim2 to use block operations when possible.
59231         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59232         freadseek, and memchr2.
59233         * lib/getndelim2.c (getndelim2): Use them for block reads.
59234
59235 2008-04-29  Bruno Haible  <bruno@clisp.org>
59236
59237         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59238         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59239         * modules/inet_ntop (Depends-on): Add extensions.
59240         * modules/inet_pton (Depends-on): Likewise.
59241         Reported by Simon Josefsson.
59242
59243 2008-04-29  Jim Meyering  <meyering@redhat.com>
59244
59245         When the is more than one match in a block, match all of them.
59246         * build-aux/useless-if-before-free: Iterate through each block
59247         until there are no more matches.
59248
59249         Fix broken useless-if-before-free script.
59250         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59251         the expression to match cast of argument to free-like function.
59252
59253 2008-04-29  Eric Blake  <ebb9@byu.net>
59254
59255         Use new header.
59256         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59257
59258 2008-04-29  Jim Meyering  <meyering@redhat.com>
59259
59260         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59261         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59262         by gnulib to exist and to declare e.g., inet_ntop.
59263         Don't include "inet_ntop.h", now removed.
59264
59265         * m4/arpa_inet_h.m4: Remove trailing blanks.
59266
59267 2008-04-29  Eric Blake  <ebb9@byu.net>
59268
59269         Silence valgrind on safe reads beyond potential array bounds.
59270         * lib/rawmemchr.valgrind: New file.
59271         * lib/strchrnul.valgrind: Likewise.
59272         * modules/rawmemchr (Files): Distribute new file.
59273         * modules/strchrnul (Files): Likewise.
59274         Suggested by Bruno Haible.
59275
59276 2008-04-29  Bruno Haible  <bruno@clisp.org>
59277
59278         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59279         (inet_ntop, inet_pton): Change portability warning's wording.
59280         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59281         Invoke gl_CHECK_NEXT_HEADERS.
59282         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59283         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59284         set ARPA_INET_H.
59285         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59286         * modules/arpa_inet (Description): No longer only for systems that
59287         lack it.
59288         (Depends-on): Add include_next.
59289         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59290         HAVE_ARPA_INET_H.
59291
59292 2008-04-29  Jim Meyering  <meyering@redhat.com>
59293
59294         * modules/mkdir (License): Re-license as LGPLv2+.
59295
59296 2008-04-29  Bruno Haible  <bruno@clisp.org>
59297
59298         * modules/rawmemchr (Maintainer): Set to Eric.
59299         * modules/strchrnul (Maintainer): Likewise.
59300
59301 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59302
59303         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59304         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59305
59306         * modules/arpa_inet (arpa/inet.h): Use them.
59307
59308 2008-04-28  Eric Blake  <ebb9@byu.net>
59309
59310         Test getndelim2.
59311         * modules/getndelim2-tests: New file.
59312         * tests/test-getndelim2.c: Likewise.
59313         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59314         stream.
59315         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59316
59317         * MODULES.html.sh: Document new module.
59318
59319 2008-04-20  Bruno Haible  <bruno@clisp.org>
59320
59321         * lib/c-stack.c (die): Use raise.
59322         * modules/c-stack (Depends-on): Add raise.
59323
59324 2008-04-28  Bruno Haible  <bruno@clisp.org>
59325
59326         Expect rpmatch to be declared.
59327         * lib/yesno.c (rpmatch): Remove declaration.
59328
59329         Declare rpmatch.
59330         * lib/stdlib.in.h (rpmatch): New declaration.
59331         * lib/rpmatch.c: Include <stdlib.h> first.
59332         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59333         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59335         HAVE_RPMATCH.
59336         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59338         (Include): Set to <stdlib.h>.
59339         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59340         HAVE_RPMATCH.
59341         * NEWS: Document the change.
59342
59343 2008-04-28  Bruno Haible  <bruno@clisp.org>
59344
59345         Change rpmatch to use nl_langinfo when appropriate.
59346         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59347         (N_): New macro.
59348         (localized_pattern): New function/macro.
59349         (try): Remove match, nomatch arguments. Copy the pattern into safe
59350         memory before caching it.
59351         (rpmatch): Use localized_pattern. Add translator comments.
59352         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59353         Suggested by Eric Blake.
59354         * modules/rpmatch (Depends-on): Add stdbool.
59355
59356 2008-04-28  Eric Blake  <ebb9@byu.net>
59357
59358         Add rawmemchr module, matching glibc.
59359         * modules/string (Makefile.am): New indicator.
59360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59361         * lib/string.in.h (rawmemchr): Declare when appropriate.
59362         * modules/rawmemchr: New file.
59363         * m4/rawmemchr.m4: Likewise.
59364         * lib/rawmemchr.c: Likewise.
59365         * modules/rawmemchr-tests: Likewise.
59366         * tests/test-rawmemchr.c: Likewise.
59367         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59368         module.
59369         * modules/strchrnul (Depends-on): Add rawmemchr.
59370         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59371
59372         Whitespace cleanup.
59373         * tests/test-strchrnul.c: Reindent.
59374         * lib/strchrnul.c: Likewise.
59375
59376         Optimize and test strchrnul.
59377         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59378         * modules/strchrnul-tests: New file.
59379         * tests/test-strchrnul.c: Likewise.
59380
59381         Remove intprops dependency.
59382         * modules/memchr (Depends-on): Remove intprops.
59383         * modules/memrchr (Depends-on): Likewise.
59384         * modules/memchr2 (Depends-on): Likewise.
59385         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59386         * lib/memrchr.c (__memrchr): Likewise.
59387         * lib/memrchr2.c (memchr2): Likewise.
59388         Reported by Simon Josefsson.
59389
59390 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59391
59392         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59393         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59394
59395 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59396
59397         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59398
59399         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59400
59401         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59402
59403         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59404         declarations.
59405         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59406
59407         * m4/inet_pton.m4: Don't check for header files.
59408
59409         * m4/inet_ntop.m4: Don't check for header files.
59410
59411 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59412
59413         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59414         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59415         trigger for cygwin).
59416         Reported by Bruno Haible  <bruno@clisp.org>.
59417
59418 2008-04-28  Bruno Haible  <bruno@clisp.org>
59419
59420         * doc/posix-functions/strdup.texi: Mention mingw problem.
59421
59422 2008-04-27  Bruno Haible  <bruno@clisp.org>
59423
59424         * modules/stat-time-tests (Depends-on): Add sleep.
59425         * tests/test-stat-time.c (force_unlink): New function.
59426         (cleanup): Use it.
59427         (test_mtime): Remove the ctime related tests.
59428         (test_ctime): New function, containing the ctime related tests.
59429         (main): Call test_ctime, except on native Windows platforms.
59430
59431 2008-04-27  Bruno Haible  <bruno@clisp.org>
59432
59433         * lib/rpmatch.c (rpmatch): Add some comments.
59434         Reported by James Youngman <jay@gnu.org>.
59435
59436 2008-04-27  Bruno Haible  <bruno@clisp.org>
59437
59438         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59439         quiet NaNs.
59440
59441 2008-04-27  Bruno Haible  <bruno@clisp.org>
59442
59443         Make test-yesno.sh work on mingw.
59444         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59445         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59446         (main): Set stdin to binary mode.
59447         * modules/yesno-tests (Depends-on): Add binary-io.
59448
59449 2008-04-27  Bruno Haible  <bruno@clisp.org>
59450
59451         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59452         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59453         argument that lie outside the IEEE 854 domain.
59454         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59455         (gl_ISFINITE): Use it.
59456         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59457
59458 2008-04-27  Bruno Haible  <bruno@clisp.org>
59459
59460         Allow local renaming in config.h.
59461         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59462
59463 2008-04-27  Bruno Haible  <bruno@clisp.org>
59464
59465         * lib/memchr.c (__memchr): Change type of 'i'.
59466         * lib/memchr2.c (memchr2): Likewise.
59467
59468 2008-04-26  Eric Blake  <ebb9@byu.net>
59469         and Bruno Haible  <bruno@clisp.org>
59470
59471         Optimize and test memrchr.
59472         * modules/memrchr (Depends-on): Add intprops.
59473         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59474         * modules/memrchr-tests: New file.
59475         * tests/test-memrchr.c: New file.
59476
59477 2008-04-26  Bruno Haible  <bruno@clisp.org>
59478
59479         Add tentative support for DragonFly BSD.
59480         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59481         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59482         fp.
59483         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59484         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59485         * lib/fpurge.c (fpurge): Likewise.
59486         * lib/freadable.c (freaadable): Likewise.
59487         * lib/freadahead.c (freadahead): Likewise.
59488         * lib/freading.c (freading): Likewise.
59489         * lib/freadptr.c (freadptr): Likewise.
59490         * lib/freadseek.c (freadptrinc): Likewise.
59491         * lib/fseeko.c (fseeko): Likewise.
59492         * lib/fseterr.c (fseterr): Likewise.
59493         * lib/fwritable.c (fwritable): Likewise.
59494         * lib/fwriting.c (fwriting): Likewise.
59495
59496 2008-04-26  Bruno Haible  <bruno@clisp.org>
59497
59498         * lib/stdio-impl.h: New file.
59499         * lib/fbufmode.c: Include stdio-impl.h.
59500         (fbufmode): Use fp_, remove redundant #defines.
59501         * lib/fflush.c: Include stdio-impl.h.
59502         (clear_ungetc_buffer): Remove redundant #defines.
59503         * lib/fpurge.c: Include stdio-impl.h.
59504         (fpurge): Remove redundant #defines.
59505         * lib/freadable.c: Include stdio-impl.h.
59506         (freadable): Remove redundant #defines.
59507         * lib/freadahead.c: Include stdio-impl.h.
59508         (freadahead): Remove redundant #defines.
59509         * lib/freading.c: Include stdio-impl.h.
59510         (freading): Remove redundant #defines.
59511         * lib/freadptr.c: Include stdio-impl.h.
59512         (freadptr): Remove redundant #defines.
59513         * lib/freadseek.c: Include stdio-impl.h.
59514         (freadptrinc): Remove redundant #defines.
59515         * lib/fseeko.c: Include stdio-impl.h.
59516         (rpl_fseeko): Remove redundant #defines.
59517         * lib/fseterr.c: Include stdio-impl.h.
59518         (fseterr): Remove redundant #defines.
59519         * lib/fwritable.c: Include stdio-impl.h.
59520         (fwritable: Remove redundant #defines.
59521         * lib/fwriting.c: Include stdio-impl.h.
59522         (fwriting): Remove redundant #defines.
59523         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59524         * modules/fflush (Files): Likewise.
59525         * modules/fpurge (Files): Likewise.
59526         * modules/freadable (Files): Likewise.
59527         * modules/freadahead (Files): Likewise.
59528         * modules/freading (Files): Likewise.
59529         * modules/freadptr (Files): Likewise.
59530         * modules/freadseek (Files): Likewise.
59531         * modules/fseeko (Files): Likewise.
59532         * modules/fseterr (Files): Likewise.
59533         * modules/fwritable (Files): Likewise.
59534         * modules/fwriting (Files): Likewise.
59535
59536 2008-04-26  Bruno Haible  <bruno@clisp.org>
59537
59538         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59539         restore_seek_optimization, update_fpos_cache): New functions, extracted
59540         from rpl_fflush.
59541         (rpl_fflush): Use them.
59542         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59543         (gl_REPLACE_FFLUSH): Use it.
59544
59545 2008-04-26  Bruno Haible  <bruno@clisp.org>
59546
59547         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59548         on Solaris.
59549         * tests/test-xstrtoimax.sh: Likewise.
59550         * tests/test-xstrtoumax.sh: Likewise.
59551         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59552
59553 2008-04-26  Bruno Haible  <bruno@clisp.org>
59554
59555         * modules/memchr-tests: New file.
59556         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59557
59558 2008-04-26  Eric Blake  <ebb9@byu.net>
59559             Bruno Haible  <bruno@clisp.org>
59560
59561         * lib/memchr.c: Include intprops.h.
59562         (__memchr): Optimize parallel detection of matching bytes. Rename local
59563         variables. Add explanatory comments.
59564
59565 2008-04-26  Bruno Haible  <bruno@clisp.org>
59566
59567         Fix module 'memchr', broken since 2000-10-28.
59568         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59569
59570 2008-04-26  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59573         comments.
59574
59575 2008-04-25  Eric Blake  <ebb9@byu.net>
59576
59577         Use native fstatat on cygwin 1.7.0.
59578         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59579         first.
59580
59581 2008-04-23  Eric Blake  <ebb9@byu.net>
59582
59583         Improve memchr2 performance.
59584         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59585         NUL bytes.
59586         * modules/memchr2 (Depends-on): Use intprops.h.
59587
59588 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59589
59590         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59591         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59592         <blp@cs.stanford.edu>.
59593
59594 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59595
59596         * lib/arpa_inet.in.h: New file.
59597
59598         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59599         (Makefile.am): Sed in substitute header file.
59600
59601         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59602         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59603
59604         * modules/inet_ntop (configure.ac): Use
59605         gl_ARPA_INET_MODULE_INDICATOR.
59606
59607         * modules/inet_pton (configure.ac): Use
59608         gl_ARPA_INET_MODULE_INDICATOR.
59609
59610 2008-04-22  Jim Meyering  <meyering@redhat.com>
59611
59612         * modules/verify (License): Re-license as LGPLv2+.
59613
59614 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59615
59616         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59617         parameter to void* as per POSIX standard (MinGW uses char*).
59618
59619 2008-04-21  Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59622         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59623         Define to replacements if REPLACE_ISWCNTRL is 1.
59624         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59625         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59626         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59627         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59628         what it fixes.
59629         * doc/posix-functions/iswalpha.texi: Likewise.
59630         * doc/posix-functions/iswblank.texi: Likewise.
59631         * doc/posix-functions/iswcntrl.texi: Likewise.
59632         * doc/posix-functions/iswdigit.texi: Likewise.
59633         * doc/posix-functions/iswgraph.texi: Likewise.
59634         * doc/posix-functions/iswlower.texi: Likewise.
59635         * doc/posix-functions/iswprint.texi: Likewise.
59636         * doc/posix-functions/iswpunct.texi: Likewise.
59637         * doc/posix-functions/iswspace.texi: Likewise.
59638         * doc/posix-functions/iswupper.texi: Likewise.
59639         * doc/posix-functions/iswxdigit.texi: Likewise.
59640         Reported by Alain Guibert.
59641
59642 2008-04-21  Bruno Haible  <bruno@clisp.org>
59643
59644         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59645         Patch by Alain Guibert.
59646
59647 2008-04-21  Bruno Haible  <bruno@clisp.org>
59648
59649         Fix test failures on mingw.
59650         * tests/test-xstrtol.c (print_no_progname): New function.
59651         (main): Install it in error_print_progname hook.
59652         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59653         * tests/test-xstrtoimax.sh: Likewise.
59654         * tests/test-xstrtoumax.sh: Likewise.
59655
59656 2008-04-21  Bruno Haible  <bruno@clisp.org>
59657
59658         Fix test failure on mingw.
59659         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59660
59661 2008-04-21  Bruno Haible  <bruno@clisp.org>
59662
59663         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59664         Actually assign a value.
59665
59666 2008-04-20  Bruno Haible  <bruno@clisp.org>
59667
59668         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59669         take 2.
59670         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59671         'canonicalize-lgpl' module is also used.
59672         * lib/canonicalize-lgpl.c: Undo last change.
59673         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59674
59675 2008-04-20  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59678         config.h. Provide _mkdir based fallback for mingw.
59679         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59680         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59681         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59682         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59683         rather than defining mkdir in config.h.
59684         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59685         (gl_SYS_STAT_H_DEFAULTS): New macro.
59686         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59687         HAVE_IO_H any more.
59688         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59689         HAVE_DECL_MKDIR and HAVE_IO_H.
59690
59691 2008-04-20  Bruno Haible  <bruno@clisp.org>
59692
59693         * lib/isapipe.c: Port to native Windows platforms.
59694
59695 2008-04-20  Bruno Haible  <bruno@clisp.org>
59696
59697         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59698
59699 2008-04-21  Eric Blake  <ebb9@byu.net>
59700
59701         Work around preprocessors that don't handle UINTMAX_MAX.
59702         * lib/memchr2.c (memchr2): Avoid embedded #if.
59703         Reported by Alain Guibert, fix suggested by Bruno Haible.
59704
59705 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59706
59707         * doc/posix-functions/strftime.texi (strftime): Explain better
59708         Windows incompatibility.  Suggested by Micah Cowan
59709         <micah@cowan.name>.
59710
59711 2008-04-20  Bruno Haible  <bruno@clisp.org>
59712
59713         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59714         unistr/u8-mblen.
59715
59716 2008-04-20  Bruno Haible  <bruno@clisp.org>
59717
59718         Fix test failure on platforms with non-GNU iconv.
59719         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59720         (U_TO_U8): Use it, rather than u16_to_u8.
59721         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59722         units at the end of the input string.
59723         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59724
59725 2008-04-20  Bruno Haible  <bruno@clisp.org>
59726
59727         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59728         when the resulting length is 0.
59729         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59730
59731 2008-04-20  Bruno Haible  <bruno@clisp.org>
59732
59733         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59734         works.
59735         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59736
59737 2008-04-20  Bruno Haible  <bruno@clisp.org>
59738
59739         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59740         * modules/tsearch-tests (configure.ac): Test for initstate function.
59741
59742 2008-04-20  Bruno Haible  <bruno@clisp.org>
59743
59744         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59745         for nlink_t if missing.
59746         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59747
59748 2008-04-19  Bruno Haible  <bruno@clisp.org>
59749
59750         Work around snprintf bug on Linux libc5.
59751         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59753         gl_SNPRINTF_SIZE1.
59754         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59755         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59756         that test failed.
59757         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59758         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59759         * modules/snprintf (Files): Add m4/printf.m4.
59760         * modules/vsnprintf (Files): Likewise.
59761         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59762         * doc/posix-functions/vsnprintf.texi: Likewise.
59763
59764 2008-04-19  Bruno Haible  <bruno@clisp.org>
59765
59766         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59767         from 0.0058 to less than 10^-7.
59768
59769 2008-04-19  Bruno Haible  <bruno@clisp.org>
59770
59771         Fix rounding when a precision is given.
59772         * lib/vasnprintf.c (is_borderline): New function.
59773         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59774         9...9x.
59775         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59776         %e, %g.
59777         * tests/test-vasprintf-posix.c (test_function): Likewise.
59778         * tests/test-snprintf-posix.h (test_function): Likewise.
59779         * tests/test-sprintf-posix.h (test_function): Likewise.
59780         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59781         * tests/test-printf-posix.h (test_function): Likewise.
59782         * tests/test-printf-posix.output: Update.
59783         Reported by John Darrington <john@darrington.wattle.id.au> via
59784         Ben Pfaff <blp@cs.stanford.edu>.
59785
59786 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59787
59788         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59789         Suggested by Bruno Haible <bruno@clisp.org>.
59790
59791 2008-04-17  Bruno Haible  <bruno@clisp.org>
59792
59793         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59794         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59795         implementation.
59796         Patch by Bruce Merry <bmerry@gmail.com>.
59797
59798 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59799
59800         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59801         doesn't work under Windows.
59802
59803 2008-04-16  Bruno Haible  <bruno@clisp.org>
59804
59805         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59806         New macros.
59807         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59808         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59809         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59810         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59811         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59812         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59813         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59814         macros.
59815         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59816         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59817         Northern Sotho, Uighur.
59818
59819 2008-04-16  Bruno Haible  <bruno@clisp.org>
59820
59821         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59822         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59823         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59824         Reported by Daniel Bergström <daniel@octocode.com>.
59825
59826 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59827             Bruno Haible  <bruno@clisp.org>
59828
59829         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59830         function.
59831         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59832         New functions, mostly extracted from gl_locale_name_default.
59833         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59834
59835 2008-04-16  Eric Blake  <ebb9@byu.net>
59836
59837         Adjust strtod detection to catch glibc 2.7 bug.
59838         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59839         Reported by John Gatewood Ham.
59840
59841 2008-04-16  Bruno Haible  <bruno@clisp.org>
59842
59843         Add tentative support for Linux libc5.
59844         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59845         * lib/fpurge.c (fpurge): Likewise.
59846         * lib/freadable.c (freadable): Likewise.
59847         * lib/freadahead.c (freadahead): Likewise.
59848         * lib/freading.c (freading): Likewise.
59849         * lib/freadptr.c (freadptr): Likewise.
59850         * lib/freadseek.c (freadptrinc): Likewise.
59851         * lib/fseeko.c (rpl_fseeko): Likewise.
59852         * lib/fseterr.c (fseterr): Likewise.
59853         * lib/fwritable.c (fwritable): Likewise.
59854         * lib/fwriting.c (fwriting): Likewise.
59855         Reported by Alain Guibert <alguibert+bts@free.fr>.
59856
59857 2008-04-15  Bruno Haible  <bruno@clisp.org>
59858
59859         * modules/mathl (configure.ac): Define module indicator.
59860
59861 2008-04-15  Bruno Haible  <bruno@clisp.org>
59862
59863         * lib/logl.c (logl): Remove unused variables.
59864
59865 2008-04-15  Bruno Haible  <bruno@clisp.org>
59866
59867         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59868         fails.
59869
59870 2008-04-15  Bruno Haible  <bruno@clisp.org>
59871
59872         * lib/trim.c (trim2): Fix argument of isspace() macro.
59873
59874 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59875
59876         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59877         to 0.
59878         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59879
59880 2008-04-14  Bruno Haible  <bruno@clisp.org>
59881
59882         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59883         AC_LANG_PROGRAM argument.
59884         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59885         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59887         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59888         * m4/math_h.m4 (gl_MATH_H): Likewise.
59889         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59890         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59891         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59892         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59893         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59894         * m4/regex.m4 (gl_REGEX): Likewise.
59895         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59896         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59898         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59899         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59900         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59901         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59902         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59903
59904 2008-04-14  Jim Meyering  <meyering@redhat.com>
59905
59906         test-strtod: fix typos: s/abs/fabs/
59907         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59908
59909 2008-04-13  Bruno Haible  <bruno@clisp.org>
59910
59911         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59912         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59913         module is also used and while not building the reloc-wrapper.
59914
59915 2008-04-13  Bruno Haible  <bruno@clisp.org>
59916
59917         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59918
59919 2008-04-13  Bruno Haible  <bruno@clisp.org>
59920
59921         Fix AIX compilation failure introduced on 2008-04-02.
59922         * tests/test-frexp.c (exp): Undefine before redefining.
59923         * tests/test-frexpl.c (exp): Likewise.
59924
59925 2008-04-13  Bruno Haible  <bruno@clisp.org>
59926
59927         Work around a HP-UX stdio bug.
59928         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59929         * tests/test-ftello.c (main): Likewise.
59930         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59931         * doc/posix-functions/ftello.texi: Likewise.
59932
59933 2008-04-13  Bruno Haible  <bruno@clisp.org>
59934
59935         Make test-signbit pass on HP-UX/hppa.
59936         * tests/test-signbit.c (minus_zerol): New variable.
59937         (test_signbitl): Use it.
59938
59939 2008-04-13  Bruno Haible  <bruno@clisp.org>
59940
59941         Make truncl work on OSF/1 4.0.
59942         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59943         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59944         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59946         HAVE_DECL_TRUNCL.
59947         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59948         HAVE_DECL_TRUNCL.
59949         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59950
59951 2008-04-13  Bruno Haible  <bruno@clisp.org>
59952
59953         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59954
59955 2008-04-13  Bruno Haible  <bruno@clisp.org>
59956
59957         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59958         expression, so as to avoid HP-UX 11 cc compiler bug.
59959
59960 2008-04-13  Bruno Haible  <bruno@clisp.org>
59961
59962         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59963
59964 2008-04-13  Bruno Haible  <bruno@clisp.org>
59965
59966         * lib/git-merge-changelog.c: Remove empty declaration outside of
59967         functions.
59968
59969 2008-04-13  Bruno Haible  <bruno@clisp.org>
59970
59971         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59972
59973 2008-04-13  Bruno Haible  <bruno@clisp.org>
59974
59975         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59976         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59977         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59978         also if it exists but lacks definitions of the SHUT_* macros.
59979         * modules/sys_socket (Description): Update.
59980         Reported by Elbert Pol <e.pol@chello.nl>.
59981
59982 2008-04-13  Bruno Haible  <bruno@clisp.org>
59983
59984         * lib/localcharset.c (OS2): Don't redefine if already defined.
59985         Reported by Elbert Pol <e.pol@chello.nl>.
59986
59987 2008-04-13  Bruno Haible  <bruno@clisp.org>
59988
59989         * lib/binary-io.h [__EMX__]: Include <io.h>.
59990         Reported by Elbert Pol <e.pol@chello.nl>.
59991
59992 2008-04-12  Bruno Haible  <bruno@clisp.org>
59993
59994         * lib/fpucw.h: Enable the definitions also for x86_64.
59995         Needed for NetBSD/x86_64.
59996         Reported by Thomas Klausner <tk@giga.or.at>.
59997
59998 2008-04-12  Bruno Haible  <bruno@clisp.org>
59999
60000         * tests/test-strtod.c: Include isnand.h.
60001         (main): Use isnand instead of isnan.
60002         Reported by Jim Meyering.
60003
60004 2008-04-12  Bruno Haible  <bruno@clisp.org>
60005
60006         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60007         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60008
60009 2008-04-12  Jim Meyering  <meyering@redhat.com>
60010
60011         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60012
60013 2008-04-12  Bruno Haible  <bruno@clisp.org>
60014
60015         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60016         Reported by Elbert Pol <e.pol@chello.nl>.
60017
60018 2008-04-12  Eric Blake  <ebb9@byu.net>
60019
60020         Work around Solaris 10 math.h bug.
60021         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60022         (gl_MATH_H_DEFAULTS): Set up default.
60023         * modules/math (Makefile.am): Replace new indicators.
60024         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60025         * tests/test-math.c (main): Test this.
60026         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60027         * doc/posix-headers/math.texi (math.h): Mention bug.
60028         Reported by Nelson H. F. Beebe and Jim Meyering.
60029
60030 2008-04-11  Bruno Haible  <bruno@clisp.org>
60031
60032         Adapt to future versions of Apple GCC.
60033         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60034         Reported by Peter O'Gorman <peter@pogma.com>.
60035
60036 2008-04-11  Bruno Haible  <bruno@clisp.org>
60037
60038         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60039
60040 2008-04-11  Bruno Haible  <bruno@clisp.org>
60041
60042         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60043
60044         * modules/getaddrinfo-tests (Makefile.am): Define
60045         test_getaddrinfo_LDADD.
60046
60047 2008-04-11  Bruno Haible  <bruno@clisp.org>
60048
60049         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60050         (init): Fix syntax error.
60051         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60052         is declared.
60053
60054 2008-04-11  Bruno Haible  <bruno@clisp.org>
60055
60056         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60057         * modules/glob (Depends-on): Add stdbool.
60058
60059 2008-04-11  Bruno Haible  <bruno@clisp.org>
60060
60061         * lib/trim.c: Include <string.h>.
60062
60063 2008-04-11  Eric Blake  <ebb9@byu.net>
60064
60065         Avoid compile failure on OS/2.
60066         * lib/regex_internal.h (internal_function): Disable optimization
60067         on OS/2 (__EMX__), where it caused compiler error.
60068         Reported by Elbert Pol.
60069
60070 2008-04-11  Bruno Haible  <bruno@clisp.org>
60071
60072         Flush the standard error stream before aborting. Needed on mingw.
60073         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60074         * tests/test-array_list.c (ASSERT): Likewise.
60075         * tests/test-array_oset.c (ASSERT): Likewise.
60076         * tests/test-avltree_list.c (ASSERT): Likewise.
60077         * tests/test-avltree_oset.c (ASSERT): Likewise.
60078         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60079         * tests/test-binary-io.c (ASSERT): Likewise.
60080         * tests/test-byteswap.c (ASSERT): Likewise.
60081         * tests/test-c-ctype.c (ASSERT): Likewise.
60082         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60083         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60084         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60085         * tests/test-c-strstr.c (ASSERT): Likewise.
60086         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60087         * tests/test-canonicalize.c (ASSERT): Likewise.
60088         * tests/test-carray_list.c (ASSERT): Likewise.
60089         * tests/test-ceilf1.c (ASSERT): Likewise.
60090         * tests/test-ceilf2.c (ASSERT): Likewise.
60091         * tests/test-ceill.c (ASSERT): Likewise.
60092         * tests/test-count-one-bits.c (ASSERT): Likewise.
60093         * tests/test-fbufmode.c (ASSERT): Likewise.
60094         * tests/test-fflush2.c (ASSERT): Likewise.
60095         * tests/test-floorf1.c (ASSERT): Likewise.
60096         * tests/test-floorf2.c (ASSERT): Likewise.
60097         * tests/test-floorl.c (ASSERT): Likewise.
60098         * tests/test-fopen.c (ASSERT): Likewise.
60099         * tests/test-fpending.c (ASSERT): Likewise.
60100         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60101         * tests/test-fpurge.c (ASSERT): Likewise.
60102         * tests/test-freadable.c (ASSERT): Likewise.
60103         * tests/test-freadahead.c (ASSERT): Likewise.
60104         * tests/test-freading.c (ASSERT): Likewise.
60105         * tests/test-freadptr.c (ASSERT): Likewise.
60106         * tests/test-freadptr2.c (ASSERT): Likewise.
60107         * tests/test-freadseek.c (ASSERT): Likewise.
60108         * tests/test-freopen.c (ASSERT): Likewise.
60109         * tests/test-frexp.c (ASSERT): Likewise.
60110         * tests/test-frexpl.c (ASSERT): Likewise.
60111         * tests/test-fseek.c (ASSERT): Likewise.
60112         * tests/test-fseeko.c (ASSERT): Likewise.
60113         * tests/test-fstrcmp.c (ASSERT): Likewise.
60114         * tests/test-ftell.c (ASSERT): Likewise.
60115         * tests/test-ftello.c (ASSERT): Likewise.
60116         * tests/test-func.c (ASSERT): Likewise.
60117         * tests/test-fwritable.c (ASSERT): Likewise.
60118         * tests/test-fwriting.c (ASSERT): Likewise.
60119         * tests/test-getdelim.c (ASSERT): Likewise.
60120         * tests/test-getline.c (ASSERT): Likewise.
60121         * tests/test-i-ring.c (ASSERT): Likewise.
60122         * tests/test-iconv-utf.c (ASSERT): Likewise.
60123         * tests/test-iconv.c (ASSERT): Likewise.
60124         * tests/test-isfinite.c (ASSERT): Likewise.
60125         * tests/test-isnand.c (ASSERT): Likewise.
60126         * tests/test-isnanf.c (ASSERT): Likewise.
60127         * tests/test-isnanl.h (ASSERT): Likewise.
60128         * tests/test-ldexpl.c (ASSERT): Likewise.
60129         * tests/test-linked_list.c (ASSERT): Likewise.
60130         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60131         * tests/test-localename.c (ASSERT): Likewise.
60132         * tests/test-lseek.c (ASSERT): Likewise.
60133         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60134         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60135         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60136         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60137         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60138         * tests/test-mbschr.c (ASSERT): Likewise.
60139         * tests/test-mbscspn.c (ASSERT): Likewise.
60140         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60141         * tests/test-mbspbrk.c (ASSERT): Likewise.
60142         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60143         * tests/test-mbsrchr.c (ASSERT): Likewise.
60144         * tests/test-mbsspn.c (ASSERT): Likewise.
60145         * tests/test-mbsstr1.c (ASSERT): Likewise.
60146         * tests/test-mbsstr2.c (ASSERT): Likewise.
60147         * tests/test-mbsstr3.c (ASSERT): Likewise.
60148         * tests/test-memchr2.c (ASSERT): Likewise.
60149         * tests/test-memmem.c (ASSERT): Likewise.
60150         * tests/test-open.c (ASSERT): Likewise.
60151         * tests/test-printf-frexp.c (ASSERT): Likewise.
60152         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60153         * tests/test-printf-posix.c (ASSERT): Likewise.
60154         * tests/test-quotearg.c (ASSERT): Likewise.
60155         * tests/test-rbtree_list.c (ASSERT): Likewise.
60156         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60157         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60158         * tests/test-round1.c (ASSERT): Likewise.
60159         * tests/test-roundf1.c (ASSERT): Likewise.
60160         * tests/test-roundl.c (ASSERT): Likewise.
60161         * tests/test-signbit.c (ASSERT): Likewise.
60162         * tests/test-sleep.c (ASSERT): Likewise.
60163         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60164         * tests/test-snprintf.c (ASSERT): Likewise.
60165         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60166         * tests/test-stat-time.c (ASSERT): Likewise.
60167         * tests/test-strcasestr.c (ASSERT): Likewise.
60168         * tests/test-strerror.c (ASSERT): Likewise.
60169         * tests/test-striconv.c (ASSERT): Likewise.
60170         * tests/test-striconveh.c (ASSERT): Likewise.
60171         * tests/test-striconveha.c (ASSERT): Likewise.
60172         * tests/test-strsignal.c (ASSERT): Likewise.
60173         * tests/test-strstr.c (ASSERT): Likewise.
60174         * tests/test-strtod.c (ASSERT): Likewise.
60175         * tests/test-trunc1.c (ASSERT): Likewise.
60176         * tests/test-trunc2.c (ASSERT): Likewise.
60177         * tests/test-truncf1.c (ASSERT): Likewise.
60178         * tests/test-truncf2.c (ASSERT): Likewise.
60179         * tests/test-truncl.c (ASSERT): Likewise.
60180         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60181         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60182         * tests/test-vasnprintf.c (ASSERT): Likewise.
60183         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60184         * tests/test-vasprintf.c (ASSERT): Likewise.
60185         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60186         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60187         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60188         * tests/test-vsnprintf.c (ASSERT): Likewise.
60189         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60190         * tests/test-wcwidth.c (ASSERT): Likewise.
60191         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60192         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60193         * tests/test-xvasprintf.c (ASSERT): Likewise.
60194         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60195         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60196         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60197         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60198         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60199         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60200         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60201         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60202         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60203         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60204         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60205         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60206         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60207         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60208         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60209         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60210         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60211         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60212         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60213         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60214         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60215         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60216         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60217         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60218         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60219         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60220         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60221         * tests/unictype/test-combining.c (ASSERT): Likewise.
60222         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60223         * tests/unictype/test-digit.c (ASSERT): Likewise.
60224         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60225         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60226         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60227         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60228         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60229         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60230         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60231         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60232         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60233         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60234         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60235         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60236         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60237         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60238         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60239         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60240         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60241         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60242         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60243         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60244         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60245         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60246         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60247         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60248         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60249         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60250         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60251         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60252         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60253         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60254         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60255         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60256         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60257         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60258         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60259         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60260         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60261         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60262         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60263         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60264         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60265         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60266         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60267         Reported by Eric Blake.
60268
60269 2008-04-11  Bruno Haible  <bruno@clisp.org>
60270
60271         * lib/wchar.in.h: Tweak comment.
60272
60273 2008-04-11  Bruno Haible  <bruno@clisp.org>
60274
60275         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60276         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60277         gl_COMMON.
60278         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60279
60280 2008-04-11  Bruno Haible  <bruno@clisp.org>
60281
60282         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60283
60284 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60285
60286         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60287         of attempting to use non-existing /dev/*random.  Based on patch
60288         from Adam Strzelecki <ono@java.pl> in
60289         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60290
60291 2008-04-08  Bruno Haible  <bruno@clisp.org>
60292
60293         Add tentative support for emx+gcc.
60294         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60295         * lib/fpurge.c (fpurge): Likewise.
60296         * lib/freadable.c (freadable): Likewise.
60297         * lib/freadahead.c (freadahead): Likewise.
60298         * lib/freading.c (freading): Likewise.
60299         * lib/freadptr.c (freadptr): Likewise.
60300         * lib/freadseek.c (freadptrinc): Likewise.
60301         * lib/fseeko.c (rpl_fseeko): Likewise.
60302         * lib/fseterr.c (fseterr): Likewise.
60303         * lib/fwritable.c (fwritable): Likewise.
60304         * lib/fwriting.c (fwriting): Likewise.
60305         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60306
60307 2008-04-09  Eric Blake  <ebb9@byu.net>
60308
60309         Avoid some autoconf warnings.
60310         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60311         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60312         * m4/afs.m4 (gl_AFS): Likewise.
60313         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60314         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60315         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60316         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60317         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60318         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60319         (AC_CHECK_DECLS_ONCE): Likewise.
60320         Rename file...
60321         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60322         gnulib-tool requires autoconf 2.59 or better.
60323         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60324
60325 2008-04-08  Eric Blake  <ebb9@byu.net>
60326
60327         Use 'git describe --match' if present (added in git 1.5.5).
60328         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60329         if possible.
60330
60331 2008-04-08  Bruno Haible  <bruno@clisp.org>
60332
60333         Add tentative support for OpenServer.
60334         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60335         _ptr, _cnt.
60336         * lib/fpurge.c (fpurge): Likewise.
60337         * lib/freadable.c (freadable): Likewise.
60338         * lib/freadahead.c (freadahead): Likewise.
60339         * lib/freading.c (freading): Likewise.
60340         * lib/freadptr.c (freadptr): Likewise.
60341         * lib/freadseek.c (freadptrinc): Likewise.
60342         * lib/fseeko.c (rpl_fseeko): Likewise.
60343         * lib/fseterr.c (fseterr): Likewise.
60344         * lib/fwritable.c (fwritable): Likewise.
60345         * lib/fwriting.c (fwriting): Likewise.
60346         Reported by Roger Cornelius <rac@tenzing.org> and
60347         Brian K. White <brian@aljex.com>.
60348
60349 2008-04-06  Jim Meyering  <meyering@redhat.com>
60350
60351         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60352
60353 2008-04-06  Bruno Haible  <bruno@clisp.org>
60354
60355         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60356         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60357         * tests/test-printf-posix.sh: Likewise.
60358         * tests/test-vfprintf-posix.sh: Likewise.
60359         * tests/test-vprintf-posix.sh: Likewise.
60360         * tests/test-xprintf-posix.sh: Likewise.
60361
60362 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60363
60364         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60365         hide error from 'ls', needed on OS/2.
60366         Report by Elbert Pol <elbert.pol@gmail.com>.
60367
60368 2008-04-04  Eric Blake  <ebb9@byu.net>
60369
60370         Make test-fseeko.c failures meaningful.
60371         * tests/test-fseeko.c: Print line number on failure.
60372         * tests/test-fseek.c: Likewise.
60373         Reported by Nelson H. F. Beebe.
60374
60375         Improve strtod bug detection check.
60376         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60377         required for Solaris 10.
60378         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60379
60380 2008-04-04  Bruno Haible  <bruno@clisp.org>
60381
60382         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60383         by m4/setenv.m4.
60384
60385 2008-04-03  Eric Blake  <ebb9@byu.net>
60386
60387         Ensure sane .version contents.
60388         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60389         version string.
60390         * build-aux/git-version-gen: Improve documentation.
60391
60392         Make GNU make output nicer.
60393         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60394         MAKECMDGOALS to enforce message for all command line targets.  Set
60395         srcdir for use in maint.mk.
60396
60397         Another maintainer tweak.
60398         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60399         a target that regenerates version.
60400
60401 2008-04-03  Jim Meyering  <meyering@redhat.com>
60402
60403         vc-list-files: don't cause coreutils "make po-check" failure
60404         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60405
60406 2008-04-03  Eric Blake  <ebb9@byu.net>
60407
60408         Allow VPATH usage of vc-list-files.
60409         * build-aux/vc-list-files (scriptversion): Add timestamp.
60410         (options): Add --help, --version, -C.
60411         (CVS): Support installed cvsu.
60412
60413 2008-04-02  Bruno Haible  <bruno@clisp.org>
60414
60415         Avoid some "statement with no effect" warnings from gcc.
60416         * tests/test-wctype.c (main): Explicitly ignore unused values.
60417         Reported by Jim Meyering.
60418
60419 2008-04-02  Jim Meyering  <meyering@redhat.com>
60420
60421         Avoid some warnings from "gcc -Wshadow".
60422         * tests/test-frexp.c (exp): Define to a different identifier.
60423         * tests/test-frexpl.c (exp): Likewise.
60424
60425 2008-04-03  Jim Meyering  <meyering@redhat.com>
60426
60427         bootstrap: remove dangling *.[ch] symlinks from lib
60428         * build-aux/bootstrap [dangling symlink removal]: Move find's
60429         -depth option to precede all others, to avoid a warning.
60430         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60431
60432 2008-04-02  Bruno Haible  <bruno@clisp.org>
60433
60434         Avoid some warnings from "gcc -Wshadow".
60435         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60436         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60437         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60438         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60439         Reported by Jim Meyering.
60440
60441 2008-04-01  Bruno Haible  <bruno@clisp.org>
60442
60443         Fix test to work on IRIX 6.5 with cc.
60444         * tests/test-math.c (numeric_equal): New function.
60445         (main): Use it.
60446
60447 2008-04-01  Bruno Haible  <bruno@clisp.org>
60448
60449         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60450
60451 2008-04-01  Bruno Haible  <bruno@clisp.org>
60452
60453         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60454         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60455         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60456         (Depends-on): Remove math.
60457
60458         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60459         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60460         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60461         (Depends-on): Remove math.
60462
60463         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60464         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60465         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60466         (Depends-on): Remove math.
60467         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60468         (Depends-on): Remove math.
60469
60470         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60471         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60472         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60473         (Depends-on): Remove math.
60474         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60475         (Depends-on): Remove math.
60476
60477         * tests/test-round1.c: Include nan.h.
60478         (main): Use NaNd instead of NAN.
60479         * modules/round-tests (Files): Add tests/nan.h.
60480
60481         * tests/test-trunc1.c: Include nan.h.
60482         (main): Use NaNd instead of NAN.
60483         * modules/trunc-tests (Files): Add tests/nan.h.
60484
60485         * tests/test-roundf1.c: Include nan.h.
60486         (main): Use NaNf instead of NAN.
60487         * modules/roundf-tests (Files): Add tests/nan.h.
60488
60489         * tests/test-truncf1.c: Include nan.h.
60490         (main): Use NaNf instead of NAN.
60491         * modules/truncf-tests (Files): Add tests/nan.h.
60492
60493         * tests/test-ceilf1.c: Include nan.h.
60494         (main): Use NaNf instead of NAN.
60495         * modules/ceilf-tests (Files): Add tests/nan.h.
60496
60497         * tests/test-floorf1.c: Include nan.h.
60498         (main): Use NaNf instead of NAN.
60499         * modules/floorf-tests (Files): Add tests/nan.h.
60500
60501         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60502         (main): Use NaNf instead of NAN.
60503         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60504
60505         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60506         (main): Use NaNd instead of NAN.
60507         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60508
60509         * tests/test-frexp.c: Include nan.h.
60510         (main): Use NaNd instead of NAN.
60511         * modules/frexp-tests (Files): Add tests/nan.h.
60512
60513         * lib/isnan.c: Don't include <math.h>.
60514         (FUNC): Don't use NAN macro.
60515         * modules/isnand-nolibm (Depends-on): Remove math.
60516         * modules/isnanf-nolibm (Depends-on): Remove math.
60517         * modules/isnanl (Depends-on): Remove math.
60518         * modules/isnanl-nolibm (Depends-on): Remove math.
60519
60520         * tests/nan.h: New file.
60521
60522 2008-04-01  Eric Blake  <ebb9@byu.net>
60523
60524         Fix typos.
60525         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60526         values to be the right type.
60527
60528         For now, cater to gnulib strtod inaccuracies.
60529         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60530         fractional results.  While not as nice from a QoI perspective, it
60531         is a quicker patch than correctly implementing decimal to binary
60532         rounding.
60533
60534 2008-03-31  Eric Blake  <ebb9@byu.net>
60535
60536         Guarantee a definition of NAN.
60537         * lib/math.in.h (NAN): Define if missing.
60538         * tests/test-math.c (main): Test it.
60539         * doc/posix-headers/math.texi (math.h): Document this.
60540         * lib/isnan.c (rpl_isnand): Use it.
60541         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60542         * tests/test-floorf1.c (NaN): Likewise.
60543         * tests/test-frexp.c (NaN): Likewise.
60544         * tests/test-isnand.c (NaN): Likewise.
60545         * tests/test-isnanf.c (NaN): Likewise.
60546         * tests/test-round1.c (NaN): Likewise.
60547         * tests/test-roundf1.c (NaN): Likewise.
60548         * tests/test-snprintf-posix.h (NaN): Likewise.
60549         * tests/test-sprintf-posix.h (NaN): Likewise.
60550         * tests/test-trunc1.c (NaN): Likewise.
60551         * tests/test-truncf1.c (NaN): Likewise.
60552         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60553         * tests/test-vasprintf-posix.c (NaN): Likewise.
60554         * modules/isnand-nolibm (Depends-on): Add math.
60555         * modules/isnanf-nolibm (Depends-on): Likewise.
60556         * modules/isnanl (Depends-on): Likewise.
60557         * modules/isnanl-nolibm (Depends-on): Likewise.
60558         * modules/snprintf-posix-tests (Depends-on): Likewise.
60559         * modules/sprintf-posix-tests (Depends-on): Likewise.
60560         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60561         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60562         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60563         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60564
60565 2008-03-31  Bruno Haible  <bruno@clisp.org>
60566
60567         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60568         * doc/posix-functions/strtod.texi: Likewise.
60569
60570 2008-03-31  Bruno Haible  <bruno@clisp.org>
60571
60572         * tests/test-strtod.c (main): Don't use C99 syntax.
60573
60574 2008-03-31  Bruno Haible  <bruno@clisp.org>
60575
60576         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60577         Reported by Eric Blake.
60578
60579 2008-03-31  Jim Meyering  <meyering@redhat.com>
60580
60581         Don't compare actual signbit return values.
60582         * tests/test-strtod.c (main): Rather, compare only their
60583         zero/non-zero nature.
60584
60585 2008-03-31  Eric Blake  <ebb9@byu.net>
60586
60587         More strtod documentation.
60588         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60589         failures as distinct bugs.
60590
60591 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60592
60593         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60594         Problem reported by Erik Benada in
60595         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60596
60597 2008-03-30  Bruno Haible  <bruno@clisp.org>
60598
60599         * tests/test-strtod.c: Add comments about which assertion fails on which
60600         platform.
60601         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60602
60603 2008-03-30  Eric Blake  <ebb9@byu.net>
60604
60605         Test signbit behavior on zeros.
60606         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60607         (test_signbitd, test_signbitl): Likewise.
60608
60609         More strtod touchups.
60610         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60611         sign of negative underflow, for now.  Use .5, not .1.
60612         * doc/posix-functions/strtod.texi (strtod): Mention these
60613         limitations.
60614         Reported by Jim Meyering.
60615
60616 2008-03-30  Bruno Haible  <bruno@clisp.org>
60617
60618         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60619         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60620
60621 2008-03-30  Bruno Haible  <bruno@clisp.org>
60622
60623         Avoid failure when attempting to return empty iconv results on some
60624         platforms.
60625         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60626         allocation, don't report ENOMEM when the resulting string is empty.
60627
60628 2008-03-30  Bruno Haible  <bruno@clisp.org>
60629
60630         Fix buffer overrun.
60631         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60632         Don't consider the width for tmp_length. Check count against tmp_length
60633         before doing the padding. Ensure enough allocation during padding.
60634
60635 2008-03-30  Eric Blake  <ebb9@byu.net>
60636
60637         strtod touchups.
60638         * lib/strtod.c (strtod): Avoid compiler warnings.
60639         Reported by Jim Meyering.
60640
60641 2008-03-30  Bruno Haible  <bruno@clisp.org>
60642
60643         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60644         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60645         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60646         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60647         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60648         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60649         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60650         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60651
60652         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60653         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60654         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60655         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60656         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60657         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60658         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60659         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60660
60661         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60662         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60663         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60664         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60665         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60666         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60667         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60668         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60669
60670         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60671         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60672
60673         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60674         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60675
60676         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60677         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60678
60679         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60680         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60681         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60682
60683         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60684         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60685         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60686
60687         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60688         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60689         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60690
60691         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60692         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60693         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60694
60695         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60696         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60697         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60698         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60699         (Depends-on): Add EOVERFLOW.
60700         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60701         (Depends-on): Add EOVERFLOW.
60702         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60703         (Depends-on): Add EOVERFLOW.
60704         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60705         (Depends-on): Add EOVERFLOW.
60706         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60707         (Depends-on): Add EOVERFLOW.
60708         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60709         (Depends-on): Add EOVERFLOW.
60710         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60711         (Depends-on): Add EOVERFLOW.
60712         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60713         (Depends-on): Add EOVERFLOW.
60714
60715         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60716         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60717         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60718
60719         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60720         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60721         * modules/snprintf (Depends-on): Add EOVERFLOW.
60722
60723         * lib/poll.c (EOVERFLOW): Remove fallback.
60724         * modules/poll (Depends-on): Add EOVERFLOW.
60725
60726         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60727         * modules/getugroups (Depends-on): Add EOVERFLOW.
60728
60729         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60730         * modules/getdelim (Depends-on): Add EOVERFLOW.
60731
60732         * lib/ftell.c (EOVERFLOW): Remove fallback.
60733         * modules/ftell (Depends-on): Add EOVERFLOW.
60734
60735         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60736         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60737         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60738
60739         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60740
60741         * modules/EOVERFLOW-tests: New file.
60742         * tests/test-EOVERFLOW.c: New file.
60743
60744         * modules/EOVERFLOW: New file.
60745         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60746
60747 2008-03-30  Bruno Haible  <bruno@clisp.org>
60748
60749         Fix bug introduced on 2007-06-10.
60750         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60751         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60752
60753 2008-03-30  Bruno Haible  <bruno@clisp.org>
60754
60755         Improve freadseek's efficiency after ungetc.
60756         * lib/freadseek.c: Include freadahead.h.
60757         (freadptrinc): New function, extracted from freadseek.
60758         (freadseek): Use it in a loop. Use freadahead to determine the number
60759         of loop iterations.
60760         * modules/freadseek (Depends-on): Add freadahead.
60761         (configure.ac): Require AC_C_INLINE.
60762
60763 2008-03-30  Bruno Haible  <bruno@clisp.org>
60764
60765         * lib/freadseek.c (freadseek): Don't ignore the return value of
60766         freadptr.
60767
60768 2008-03-29  Eric Blake  <ebb9@byu.net>
60769
60770         Add hex float support.
60771         * modules/strtod (Depends-on): Add c-ctype.
60772         (Link): Mention POW_LIB.
60773         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60774         whitespace between 'e' and exponent.
60775         * tests/test-strtod.c (main): Enable hex float tests.
60776         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60777         now provides.
60778
60779         Document various strtod bugs, with some fixes.
60780         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60781         "-0x", "inf", "nan", and hex constants.
60782         * doc/posix-functions/atof.texi (atof): Likewise.
60783         * modules/stdlib (Makefile.am): Support strtod.
60784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60785         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60786         detect additional strtod bugs.
60787         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60788         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60789         bool where appropriate.  Parse 'inf' and 'nan'.
60790         * tests/test-strtod.c: New file.
60791         * modules/strtod (Depends-on): Add stdbool, stdlib.
60792         (configure.ac): Turn on module indicator.
60793         * modules/strtod-tests: New module.
60794
60795 2008-03-29  Eric Blake  <ebb9@byu.net>
60796
60797         Fix ftell on mingw.
60798         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60799         * modules/ftell-tests (Depends-on): Add binary-io.
60800         * modules/ftello-tests (Depends-on): Likewise.
60801         * tests/test-ftell.c (main): Enhance test to cover behavior after
60802         ungetc.  Enforce binary mode.
60803         * tests/test-ftello.c (main): Likewise.
60804
60805         Pass test-freadseek on cygwin.
60806         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60807         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60808         ungetc buffer.
60809
60810         * tests/test-fflush2.c (main): Fix typo.
60811
60812 2008-03-29  Bruno Haible  <bruno@clisp.org>
60813
60814         * tests/test-fflush2.c (main): Temporarily disable the contents of
60815         this test.
60816         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60817         Reported by Eric Blake.
60818
60819 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60820
60821         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60822         (GC_SHA224_DIGEST_SIZE): Add.
60823
60824         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60825         (gc_hash_digest_length): Likewise.
60826         (gc_hash_buffer): Likewise.
60827
60828 2008-03-25  Bruno Haible  <bruno@clisp.org>
60829
60830         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60831         detail which gettext release to use.
60832         Reported by Simon Josefsson.
60833
60834 2008-03-26  Jim Meyering  <meyering@redhat.com>
60835
60836         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60837         * modules/gnumakefile (clean-GNUmakefile): Also, use
60838         test ... && ... || : syntax rather than if-then ... fi.
60839
60840         gnumakefile: Don't double-quote-expand $(VPATH) value.
60841         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60842
60843 2008-03-24  Eric Blake  <ebb9@byu.net>
60844
60845         Alter GNUmakefile to install into top directory.
60846         * modules/maintainer-makefile: Split, and add dependency...
60847         * modules/gnumakefile: to this new module.
60848         * build-aux/GNUmakefile: Move...
60849         * top/GNUmakefile: ...here.
60850         * build-aux/maint.mk: Move...
60851         * top/maint.mk: ...here.
60852         * MODULES.html.sh (Support for maintaining...): Document new
60853         module.
60854
60855 2008-03-23  Bruno Haible  <bruno@clisp.org>
60856
60857         * gnulib-tool: New options --vc-files, --no-vc-files.
60858         (func_usage): Document them.
60859         (vc_files): New variable.
60860         (func_import): Consider vc_files.
60861         (func_create_testdir): Set vc_files to empty.
60862         Suggested by Jim Meyering and Karl Berry.
60863
60864 2008-03-23  Bruno Haible  <bruno@clisp.org>
60865
60866         Fix regex compilation error on HP-UX 11.
60867         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60868         * modules/regex (Files): Add m4/mbstate_t.m4.
60869         Reported by Ton Voon <ton.voon@altinity.com>.
60870
60871 2008-03-23  Bruno Haible  <bruno@clisp.org>
60872
60873         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60874
60875 2008-03-23  Eric Blake  <ebb9@byu.net>
60876             Bruno Haible  <bruno@clisp.org>
60877
60878         Install files from top/ in the destination directory.
60879         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60880         augmentation also for the files from top/.
60881         (func_import, func_create_testdir): Rewrite file names:
60882         top/filename -> filename.
60883
60884 2008-03-23  Bruno Haible  <bruno@clisp.org>
60885
60886         Tweak "gnulib --version" output.
60887         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60888
60889 2008-03-23  Bruno Haible  <bruno@clisp.org>
60890
60891         Tweak "gnulib --version" output.
60892         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60893         rather than contents of ChangeLog, when possible.
60894
60895 2008-03-21  Eric Blake  <ebb9@byu.net>
60896
60897         More --version tweaks.
60898         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60899         date of last ChangeLog entry.
60900
60901 2008-03-21  Jim Meyering  <meyering@redhat.com>
60902
60903         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60904
60905 2008-03-20  Eric Blake  <ebb9@byu.net>
60906
60907         VPATH fix.
60908         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60909
60910 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60911
60912         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60913         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60914
60915 2008-03-20  Eric Blake  <ebb9@byu.net>
60916
60917         Sync GNUmakefile with coreutils.
60918         * build-aux/GNUmakefile (have-Makefile): Rename...
60919         (_have-Makefile): ...to this, for namespace consideration.
60920         (GNUmakefile.cfg): Include, if present.
60921         (_autoreconf): Define a default.
60922         (_is-dist-target): New rule for rebuilds to pick up intra-release
60923         version.
60924         (maint-cfg.mk): Rename...
60925         (cfg.mk): ...to this.
60926
60927 2008-03-18  Jim Meyering  <meyering@redhat.com>
60928
60929         New script and module: mktempd
60930         * MODULES.html.sh (maint+release support): Add mktempd.
60931         * build-aux/mktempd: New file.
60932         * modules/mktempd: New file.
60933
60934 2008-03-15  Jim Meyering  <meyering@redhat.com>
60935
60936         Undo last change.
60937         * lib/sha1.c, lib/md5.c: 63 != ~63.
60938         Reported by Andreas Schwab.
60939
60940         sha1.c, md5.c: Hoist a redundant expression.
60941         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60942         "ctx->buflen" only once, before calling *_process_block.
60943         * lib/md5.c (md5_process_bytes): Likewise.
60944
60945 2008-03-14  Eric Blake  <ebb9@byu.net>
60946
60947         Bump copyright year in files generated by gnulib-tool.
60948         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60949         gnulib-tool, rather than hard-coding it.
60950
60951         Fix 'gnulib-tool --version' output to work with git.
60952         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60953         (startup): ...here.
60954         (func_version): Use it to invoke git-version-gen, rather than
60955         relying on CVS keyword expansion.  Modernize wording.
60956         (cvsdatestamp, last_checkin_date, version): Kill unused
60957         variables.
60958
60959 2008-03-12  Jim Meyering  <meyering@redhat.com>
60960
60961         Recognize optional cast of the argument to free.
60962         * build-aux/useless-if-before-free: Update regexps.
60963
60964         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60965
60966 2008-03-11  Bruno Haible  <bruno@clisp.org>
60967
60968         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60969         by a single package.
60970         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60971         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60972         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60973         Reported by Sam Steingold <sds@gnu.org>.
60974
60975 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60976
60977         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60978         repositories.
60979
60980 2008-03-11  Bruno Haible  <bruno@clisp.org>
60981
60982         Avoid conflicts between local macro definitions.
60983         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60984         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60985
60986 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60987             Bruno Haible  <bruno@clisp.org>
60988
60989         Make va_copy work with some version of xlc on AIX 5.1.
60990         * lib/stdarg.in.h: New file.
60991         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60992         On AIX, use a <stdarg.h> file substitute.
60993         * modules/stdarg (Files): Add lib/stdarg.in.h.
60994         (Depends-on): Add include_next.
60995         (Makefile.am): Build a stdarg.h substitute if requested.
60996         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60997
60998 2008-03-10  Bruno Haible  <bruno@clisp.org>
60999
61000         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61001         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61002         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61003
61004 2008-03-10  Bruno Haible  <bruno@clisp.org>
61005
61006         * modules/stdlib (Depends-on): Add include_next, remove
61007         absolute-header.
61008
61009 2008-03-09  Bruno Haible  <bruno@clisp.org>
61010
61011         * lib/freadahead.h (freadahead): Document more precisely.
61012         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61013         the sum of both buffer sizes.
61014         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61015         * NEWS: Document the change.
61016
61017 2008-03-09  Bruno Haible  <bruno@clisp.org>
61018
61019         Extend freadptr to return also the buffer size.
61020         * lib/freadptr.h (freadptr): Add sizep argument.
61021         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61022         (freadptr): Add sizep argument. Determine buffer size like freadahead
61023         does.
61024         * tests/test-freadptr.c: Don't include freadahead.h.
61025         (main): Adapt for new calling convention of freadptr.
61026         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61027         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61028         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61029         tests/test-freadptr2.sh.
61030         (Depends): Remove freadahead.
61031         (TESTS): Add test-freadptr2.sh.
61032         (check_PROGRAMS): Add test-freadptr2.
61033
61034 2008-03-09  Bruno Haible  <bruno@clisp.org>
61035
61036         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61037         Report and solution by Simon Josefsson.
61038
61039 2008-03-06  Bruno Haible  <bruno@clisp.org>
61040
61041         Make fflush after ungetc work on BSD platforms.
61042         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61043         * tests/test-fflush2.c: New file.
61044         * tests/test-fflush2.sh: New file.
61045         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61046         tests/test-fflush2.c.
61047         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61048         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61049
61050 2008-03-06  Eric Blake  <ebb9@byu.net>
61051
61052         Likewise for ftello.
61053         * modules/ftello (Dependencies): Add extensions.
61054         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61055
61056 2008-03-06  Bruno Haible  <bruno@clisp.org>
61057
61058         * modules/fseeko (Dependencies): Add extensions.
61059         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61060         Needed on glibc systems.
61061
61062 2008-03-06  Bruno Haible  <bruno@clisp.org>
61063
61064         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61065         email address.
61066         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61067
61068 2008-03-06  Bruno Haible  <bruno@clisp.org>
61069
61070         * users.txt: Add libgnupdf.
61071
61072 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61073
61074         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61075         (Header File Substitutes, Function Substitutes,
61076         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61077         (Build robot for gnulib): Fix typo.
61078
61079 2008-03-06  Bruno Haible  <bruno@clisp.org>
61080
61081         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61082         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61083
61084 2008-03-06  Bruno Haible  <bruno@clisp.org>
61085
61086         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61087         * doc/gnulib.texi: Include it.
61088
61089 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61090
61091         * modules/func (License): Change license to unlimited; there was
61092         no LGPL parts in the module anyway.
61093
61094 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61095
61096         * modules/__func__: Renamed to modules/func.
61097         * modules/__func__-tests: Renamed to modules/func-tests.
61098         * tests/test-__func__.c: Renamed to tests/test-func.c.
61099         * m4/__func__.m4: Renamed to m4/func.m4.
61100         * doc/gnulib.texi (__func__): Section renamed to func.
61101         Suggested by Eric Blake <ebb9@byu.net>.
61102
61103 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61104
61105         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61106         about __func__.  Make example self-contained.  Suggested by Eric
61107         Blake <ebb9@byu.net>.
61108
61109         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61110         Suggested by Eric Blake <ebb9@byu.net>.
61111
61112 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61113
61114         * modules/__func__: New file.
61115         * modules/__func__-tests: New file.
61116         * tests/test-__func__.c: New file.
61117         * m4/__func__.m4: New file.
61118         * doc/gnulib.texi (__func__): Document __func__ module.
61119
61120 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61121
61122         * modules/byteswap (License): Re-license as LGPLv2+.
61123
61124 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61125
61126         * doc/Makefile: Add pdf target.
61127
61128 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61129
61130         * modules/inline (License): Use 'unlimited', since there are only
61131         *.m4 files in this module.
61132
61133 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61134             Bruno Haible  <bruno@clisp.org>
61135
61136         Add support for HP C 7.1 on OpenVMS 8.3.
61137         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61138
61139 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61140
61141         Update VMS specifics.
61142         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61143
61144 2008-03-02  Jim Meyering  <meyering@redhat.com>
61145
61146         Remove the last dependency on the "free" module.
61147         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61148         Reported by Bob Proulx.
61149
61150         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61151
61152         Remove useless "if" tests before free.  Deprecate "free" module.
61153         * doc/posix-functions/free.texi: Mention that this
61154         module is no longer useful.
61155         * modules/free (Notice): Say this module is obsolete.
61156         * modules/readutmp (Depends-on): Remove free.
61157         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61158         * lib/putenv.c (putenv): Likewise.
61159         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61160         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61161         * tests/test-c-strcasestr.c (main): Likewise.
61162         * tests/test-c-strstr.c (main): Likewise.
61163         * tests/test-mbscasestr1.c (main): Likewise.
61164         * tests/test-mbscasestr2.c (main): Likewise.
61165         * tests/test-mbsstr1.c (main): Likewise.
61166         * tests/test-mbsstr2.c (main): Likewise.
61167         * tests/test-memmem.c (main): Likewise.
61168         * tests/test-strcasestr.c (main): Likewise.
61169         * tests/test-striconv.c (main): Likewise.
61170         * tests/test-striconveh.c (main): Likewise.
61171         * tests/test-striconveha.c (main): Likewise.
61172         * tests/test-strstr.c (main): Likewise.
61173
61174         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61175
61176         bootstrap: sync from coreutils again
61177         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61178
61179 2008-03-01  Jim Meyering  <meyering@redhat.com>
61180
61181         bootstrap: sync from coreutils
61182         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61183         also when the target doesn't exist.
61184
61185 2008-03-01  Eric Blake  <ebb9@byu.net>
61186
61187         Fix bugs in last patch.
61188         * lib/memchr2.c (memchr2): Fix typo.
61189         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61190         extension.
61191         Reported by Bruce Korb.
61192
61193         New module 'memchr2'.
61194         * modules/memchr2: New file.
61195         * modules/memchr2-tests: Likewise.
61196         * lib/memchr2.h: Likewise.
61197         * lib/memchr2.c: Likewise, based on memchr.c.
61198         * tests/test-memchr2.c: New test.
61199         * MODULES.html.sh (String handling): Add memchr2.
61200
61201 2008-02-29  Bruno Haible  <bruno@clisp.org>
61202
61203         * modules/freadseek-tests: New file.
61204         * tests/test-freadseek.sh: New file.
61205         * tests/test-freadseek.c: New file.
61206
61207         New module 'freadseek'.
61208         * modules/freadseek: New file.
61209         * lib/freadseek.h: New file.
61210         * lib/freadseek.c: New file.
61211         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61212
61213 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61214
61215         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61216         wydawca.
61217
61218         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61219         program_invocation_name and program_invocation_short_name are
61220         present.
61221
61222 2008-02-28  Bruno Haible  <bruno@clisp.org>
61223
61224         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61225         * tests/test-freadptr.sh: Also test non-seekable stdin.
61226
61227 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61228
61229         * build-aux/bootstrap (source_base, m4_base)
61230         (doc_base, tests_base): New variables.
61231         (gnulib_tool_options): Do not hardcode base directories, use
61232         the above variables instead.
61233
61234 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61235
61236         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61237
61238 2008-02-28  Bruno Haible  <bruno@clisp.org>
61239
61240         * modules/freadptr-tests: New file.
61241         * tests/test-freadptr.sh: New file.
61242         * tests/test-freadptr.c: New file.
61243
61244         New module 'freadptr'.
61245         * modules/freadptr: New file.
61246         * lib/freadptr.h: New file.
61247         * lib/freadptr.c: New file.
61248         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61249
61250 2008-02-26  Karl Berry  <karl@freefriends.org>
61251
61252         Sync from Libtool:
61253         * libltdl/argz.c (argz_add, argz_count): New functions.
61254         * libltdl/argz.in.h: Declare them.
61255         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61256
61257 2008-02-22  Bruno Haible  <bruno@clisp.org>
61258
61259         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61260         is a pointer type.  Needed for HP-UX 10.
61261         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61262         * doc/posix-functions/gmtime_r.texi: Likewise.
61263         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61264
61265 2008-02-24  Bruno Haible  <bruno@clisp.org>
61266
61267         * modules/environ-tests: New file.
61268         * tests/test-environ.c: New file.
61269
61270         New module 'environ'.
61271         * modules/environ: New file.
61272         * lib/unistd.in.h (environ): New declaration.
61273         * m4/environ.m4: New file.
61274         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61275         after use.
61276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61277         HAVE_DECL_ENVIRON.
61278         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61279         HAVE_DECL_ENVIRON.
61280         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61281         wrong claim that 'environ' is missing on some systems.
61282         * modules/execute (Depends-on): Add environ.
61283         * lib/execute.c (environ): Remove fallback declaration.
61284         * modules/pipe (Depends-on): Add environ.
61285         * lib/pipe.c (environ): Remove fallback declaration.
61286         * modules/setenv (Depends-on): Add environ.
61287         * lib/setenv.c (environ): Remove fallback declaration.
61288         * modules/unsetenv (Depends-on): Add environ.
61289         * lib/unsetenv.c (environ): Remove fallback declaration.
61290         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61291         m4/environ.m4.
61292         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61293         (gl_PREREQ_UNSETENV): Likewise.
61294
61295 2008-02-24  Bruno Haible  <bruno@clisp.org>
61296
61297         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61298
61299 2008-02-20  Bob Proulx  <bob@proulx.com>
61300
61301         Enable use of older two part flavor 'git describe'.
61302         * build-aux/git-version-gen: If using the older two part flavor of
61303         git version then recreate the third part now present in the
61304         newer three part flavor of git describe.
61305
61306 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61307
61308         * lib/fts.c (fts_build): Typo correction to comment.
61309
61310 2008-02-17  Bruno Haible  <bruno@clisp.org>
61311
61312         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61313         generating no-op conflicts.
61314
61315 2008-02-17  Bruno Haible  <bruno@clisp.org>
61316
61317         Speed up by 10%.
61318         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61319         result_entries, rather than an index-based loop.
61320
61321 2008-02-17  Bruno Haible  <bruno@clisp.org>
61322
61323         Speed up by 25%.
61324         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61325         'hashcode_cached'.
61326         (entry_create): New function.
61327         (entry_hashcode): Use the cached hashcode if possible.
61328         (read_changelog_file, try_split_merged_entry): Use entry_create.
61329
61330 2008-02-17  Bruno Haible  <bruno@clisp.org>
61331
61332         Speed up from O(n^2) to O(n) for long ChangeLog files.
61333         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61334         (read_changelog_file): Change implementation of entries_reversed list
61335         to rbtreehash.
61336         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61337
61338 2008-02-17  Bruno Haible  <bruno@clisp.org>
61339
61340         New option --split-merged-entry.
61341         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61342         (find_paragraph_end, try_split_merged_entry): New functions.
61343         (long_options): Add option --split-merged-entry.
61344         (usage): Document option --split-merged-entry.
61345         (main): Implement option --split-merged-entry.
61346         Reported by Eric Blake.
61347
61348 2008-02-17  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/git-merge-changelog.c: Include c-strstr.h.
61351         (main): Support the "git pull --rebase" situation.
61352         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61353         Reported by Eric Blake.
61354
61355 2008-02-16  Eric Blake  <ebb9@byu.net>
61356
61357         Avoid doubling \ in common case of "c-maybe" quoting style.
61358         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61359         eliding outer quotes.
61360         * lib/quotearg.h: Document this.
61361         * tests/test-quotearg.c (result_strings, inputs, results_g)
61362         (flag_results, locale_results): Test it by adding a new string to
61363         each test group.
61364         (compare_strings): Test new string.
61365
61366 2008-02-13  Eric Blake  <ebb9@byu.net>
61367
61368         Avoid trigraph quoting in default output.
61369         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61370         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61371         unless explicitly requested.
61372         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61373
61374 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61375
61376         Don't rely on signed integer overflowing to negative value.
61377         * lib/getugroups.c (getugroups): Include <limits.h>.
61378         Instead, compare against INT_MAX, and increment only if the test passes.
61379
61380 2008-02-13  Jim Meyering  <meyering@redhat.com>
61381         and Eric Blake  <ebb9@byu.net>
61382
61383         Avoid shadowing warning and compile errors on Linux.
61384         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61385         forwarding macros on Linux.
61386         (dcgettext): Define a stub, for Linux.
61387         (results_g, main): Avoid warnings.
61388
61389 2008-02-12  Eric Blake  <ebb9@byu.net>
61390
61391         Silence warning in last patch.
61392         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61393
61394         Quotearg part 4: add tests, fix c-maybe colon quoting.
61395         * lib/quotearg.h: Improve documentation.
61396         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61397         escapes when adding outer quotes.  When quoting trigraphs, use
61398         valid C notation.  When quoting NUL, omit extra characters if next
61399         character is not digit.  Alter prototype.
61400         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61401         callers.
61402         * modules/quotearg-tests: New module.
61403         * tests/test-quotearg.c: New test.
61404
61405 2008-02-07  Eric Blake  <ebb9@byu.net>
61406
61407         Quotearg part 3: add flag to control outer quote elision.
61408         * lib/quotearg.h (c_maybe_quoting_style): New style.
61409         (enum quoting_flags): Better documentation of flags.
61410         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61411         c-maybe style.
61412         (quotearg_buffer_restyled): Handle new flag to elide outer
61413         quotes.
61414
61415         Quotearg part 2: add flag that can control NUL elision.
61416         * lib/quotearg.h (set_quoting_flags): New prototype.
61417         * lib/quotearg.c (struct quoting_options): Add flag field.
61418         (set_quoting_flags): New function.
61419         (quotearg_buffer_restyled): Add flags parameter.
61420         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61421         (quotearg_n_options): Set the flag, since length cannot be
61422         returned.
61423         (quoting_options_from_style): Default flags correctly.
61424
61425         Quotearg part 1: more wrappers, restore quotearg_char state.
61426         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61427         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61428         (quotearg_colon_mem): New wrappers.
61429         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61430         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61431         functions.
61432         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61433         (quotearg_colon_mem): New functions.
61434
61435 2008-02-11  Bruno Haible  <bruno@clisp.org>
61436
61437         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61438         library in the current directory: it does not work with parallel make.
61439         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61440
61441 2008-02-11  Bruno Haible  <bruno@clisp.org>
61442
61443         * .gitattributes: New file.
61444
61445 2008-02-11  Jim Meyering  <meyering@redhat.com>
61446
61447         useless-if-before-free: Fix reversed exit values.
61448         * build-aux/useless-if-before-free: Use correct values
61449         for EXIT_MATCH and EXIT_NO_MATCH.
61450
61451         * build-aux/useless-if-before-free: Close stdout carefully.
61452
61453 2008-02-10  Bruno Haible  <bruno@clisp.org>
61454
61455         New module 'git-merge-changelog'.
61456         * modules/git-merge-changelog: New file.
61457         * lib/git-merge-changelog.c: New file.
61458
61459 2008-02-10  Jim Meyering  <meyering@redhat.com>
61460
61461         useless-if-before-free: New option: --list (-l).
61462
61463         useless-if-before-free: Don't exit immediately upon open failure.
61464         * build-aux/useless-if-before-free: Exit 2 for errors.
61465         Upon failure to open a file, don't exit immediately.
61466         Rather, just warn and continue with any remaining files.
61467
61468 2008-02-10  Bruno Haible  <bruno@clisp.org>
61469
61470         New abstract list operation 'node_set_value'.
61471         * lib/gl_list.h (gl_list_node_set_value): New function.
61472         (struct gl_list_implementation): New field node_set_value.
61473         * lib/gl_list.c (gl_list_node_set_value): New function.
61474         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61475         (gl_array_list_implementation): Update.
61476         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61477         (gl_carray_list_implementation): Update.
61478         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61479         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61480         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61481         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61482         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61483         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61484         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61485         Update.
61486         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61487         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61488         (gl_sublist_list_implementation): Update.
61489
61490 2008-02-10  Bruno Haible  <bruno@clisp.org>
61491
61492         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61493         Needed when ELEMENT is #defined to 'some_type *'.
61494
61495 2008-02-10  Jim Meyering  <meyering@redhat.com>
61496
61497         New script and module: useless-if-before-free
61498         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61499         * build-aux/useless-if-before-free: New file.
61500         * modules/useless-if-before-free: New file.
61501
61502         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61503
61504         xstrtol_error: Fix typo.
61505         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61506         s/exit_failure/exit_status/.
61507
61508 2008-02-09  Jim Meyering  <meyering@redhat.com>
61509
61510         New script and module: gitlog-to-changelog
61511         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61512         * modules/gitlog-to-changelog: New file.
61513         * build-aux/gitlog-to-changelog: New file.
61514
61515 2008-02-08  Jim Meyering  <meyering@redhat.com>
61516
61517         Avoid two "parameter unused" warnings.
61518         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61519         Mark "st" as used.
61520
61521         Use "git COMMAND", not "git-COMMAND".
61522         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61523         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61524         * build-aux/git-version-gen: Use "git status", not "git-status".
61525
61526 2008-02-07  Bruno Haible  <bruno@clisp.org>
61527
61528         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61529         Avoids a crash on Windows Vista.
61530         Reported by Adam Strzelecki <ono@java.pl> via
61531         Simon Josefsson <simon@josefsson.org>.
61532
61533 2008-02-06  Bruno Haible  <bruno@clisp.org>
61534
61535         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61536         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61537         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61539         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61540         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61541         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61542         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61543         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61544         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61545         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61547         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61548         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61550         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61551         left-adjust flag.
61552         * tests/test-snprintf-posix.h (test_function): Likewise.
61553         * tests/test-sprintf-posix.h (test_function): Likewise.
61554         * tests/test-vasprintf-posix.c (test_function): Likewise.
61555         * doc/posix-functions/fprintf.texi: Update.
61556         * doc/posix-functions/printf.texi: Update.
61557         * doc/posix-functions/snprintf.texi: Update.
61558         * doc/posix-functions/sprintf.texi: Update.
61559         * doc/posix-functions/vfprintf.texi: Update.
61560         * doc/posix-functions/vprintf.texi: Update.
61561         * doc/posix-functions/vsnprintf.texi: Update.
61562         * doc/posix-functions/vsprintf.texi: Update.
61563         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61564
61565 2008-02-06  Bruno Haible  <bruno@clisp.org>
61566
61567         Fix bug introduced on 2008-01-26.
61568         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61569
61570 2008-02-06  Bruno Haible  <bruno@clisp.org>
61571
61572         Fix bug introduced on 2007-06-10.
61573         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61574         !NEED_PRINTF_FLAG_ZERO.
61575
61576 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61577
61578         getloadavg: use libperfstat on AIX5
61579         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61580
61581 2008-02-03  Bruno Haible  <bruno@clisp.org>
61582
61583         * lib/diffseq.h: Add comments about required #includes.
61584         Reported by Michael Biggs <gnulib@doubleplum.net>.
61585
61586 2008-02-01  Bruno Haible  <bruno@clisp.org>
61587
61588         * users.txt: Add gnuit.
61589
61590 2008-01-31  Bruno Haible  <bruno@clisp.org>
61591
61592         * lib/md4.c (set_uint32): Mark as inline.
61593         * lib/md5.c (set_uint32): Likewise.
61594         * lib/sha1.c (set_uint32): Likewise.
61595         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61596         * m4/md5.m4 (gl_MD5): Likewise.
61597         * m4/sha1.m4 (gl_SHA1): Likewise.
61598
61599 2008-01-31  Jim Meyering  <meyering@redhat.com>
61600
61601         Use "sizeof VAR", rather than a literal "4".
61602         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61603         * lib/md4.c (md4_read_ctx): Likewise.
61604         * lib/sha1.c (sha1_read_ctx): Likewise.
61605
61606 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61607
61608         * tests/test-sha1.c: New file, based on test-md5.c.
61609
61610         * modules/crypto/sha1-tests: New file.
61611
61612 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61613
61614         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61615
61616 2008-01-31  Jim Meyering  <meyering@redhat.com>
61617
61618         Prefer "sizeof v" over the equivalent "4".
61619         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61620         * lib/md5.c (set_uint32): Likewise.
61621         * lib/sha1.c (set_uint32): Likewise.
61622
61623 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61624
61625         * lib/sha1.c (set_uint32): Mark function as static.
61626
61627 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61628
61629         md2: clarify comments to say that alignment is not required.
61630         * lib/md2.h: Remove warning about alignment in comment.
61631         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61632         never been required.
61633
61634 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61635
61636         md4: adapt alignment constraint fix from sha1.
61637         * lib/md4.c (set_uint32): New function, from sha1.c
61638         (md4_read_ctx): Use it.
61639         (md4_finish_ctx): Doc fix.
61640         * lib/md4.h: Doc fix.
61641
61642 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61643
61644         md5: adapt alignment constraint fix from sha1.
61645         * lib/md5.c (set_uint32): New function, from sha1.c
61646         (md5_read_ctx): Use it.
61647         (md5_finish_ctx): Doc fix.
61648         * lib/md5.h: Doc fix.
61649
61650 2008-01-30  Peter Palfrader  <weasel@debian.org>
61651
61652         sha1: remove the result buffer alignment constraint
61653         * lib/sha1.c (set_uint32): New function.
61654         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61655         constraint.
61656         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61657         * lib/sha1.h: Likewise.
61658
61659 2008-01-30  Andreas Schwab  <schwab@suse.de>
61660             Bruno Haible  <bruno@clisp.org>
61661
61662         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61663         correct definition of LDBL_MIN_EXP.
61664
61665 2008-01-30  Karl Berry  <karl@gnu.org>
61666
61667         * config/srclist-update: try to preserve x bit on updates.
61668         * config/srclistvars.sh: update for karl.
61669
61670 2008-01-29  Jim Meyering  <meyering@redhat.com>
61671
61672         vasnprintf.c: Avoid warning about unused label
61673         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61674         "overflow" label definition and associated code with the
61675         same cpp condition that guards the sole use of that label.
61676
61677 2008-01-26  Bruno Haible  <bruno@clisp.org>
61678
61679         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61680         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61681         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61682         * lib/isnanl-nolibm.h (isnanl): Likewise.
61683         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61684
61685 2008-01-26  Bruno Haible  <bruno@clisp.org>
61686
61687         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61688         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61689
61690 2008-01-26  Bruno Haible  <bruno@clisp.org>
61691
61692         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61693         GCC >= 4.0 built-in.
61694         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61695
61696 2008-01-26  Bruno Haible  <bruno@clisp.org>
61697
61698         Rename isnan, applicable to 'double' only, to isnand.
61699         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61700         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61701         (configure.ac): Update.
61702         (Include): Replace "isnan.h" with "isnand.h".
61703         * m4/isnand.m4: Renamed from m4/isnan.m4.
61704         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61705         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61706         instead of isnan.c.
61707         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61708         instead of HAVE_ISNAN_IN_LIBC.
61709         (isnand): Renamed from isnan.
61710         * lib/isnand.c: New file.
61711         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61712         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61713         (Makefile.am): Update.
61714         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61715         Include isnand.h instead of isnan.h.
61716         (main): Test isnand instead of isnan.
61717         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61718         isnan-nolibm.
61719         * modules/frexp (Depends-on): Likewise.
61720         * modules/frexp-tests (Depends-on): Likewise.
61721         * modules/frexp-nolibm (Depends-on): Likewise.
61722         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61723         * modules/isfinite (Depends-on): Likewise.
61724         * modules/round-tests (Depends-on): Likewise.
61725         * modules/signbit (Depends-on): Likewise.
61726         * modules/signbit-tests (Depends-on): Likewise.
61727         * modules/snprintf-posix (Depends-on): Likewise.
61728         * modules/sprintf-posix (Depends-on): Likewise.
61729         * modules/trunc-tests (Depends-on): Likewise.
61730         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61731         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61732         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61733         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61734         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61735         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61736         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61737         * modules/vasnprintf-posix (Depends-on): Likewise.
61738         * modules/vasprintf-posix (Depends-on): Likewise.
61739         * modules/vfprintf-posix (Depends-on): Likewise.
61740         * modules/vsnprintf-posix (Depends-on): Likewise.
61741         * modules/vsprintf-posix (Depends-on): Likewise.
61742         * lib/frexp.c: Include isnand.h instead of isnan.h.
61743         (ISNAN): Set to isnand instead of isnan.
61744         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61745         (gl_isfinited): Use isnand instead of isnan.
61746         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61747         (gl_signbitd): Use isnand instead of isnan.
61748         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61749         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61750         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61751         (main): Use isnand instead of isnan.
61752         * tests/test-round1.c: Include isnand.h.
61753         (main): Use isnand instead of isnan.
61754         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61755         (ISNAN): Set to isnand instead of isnan.
61756         * tests/test-trunc1.c: Include isnand.h.
61757         (main): Use isnand instead of isnan.
61758         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61759         (equal): Use isnand instead of isnan.
61760         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61761         isnand-nolibm.
61762         * NEWS: Mention the change.
61763
61764 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61765             Bruno Haible  <bruno@clisp.org>
61766
61767         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61768         the GCC builtins for signbits are present and set
61769         REPLACE_SIGNBIT_USING_GCC if so.
61770         * lib/math.in.h (signbit): Define using GCC builtins if
61771         REPLACE_SIGNBIT_USING_GCC is set.
61772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61773         REPLACE_SIGNBIT_USING_GCC.
61774         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61775
61776 2008-01-25  Jim Meyering  <meyering@redhat.com>
61777
61778         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61779         * lib/poll.c: Include <config.h>, not "config.h".
61780         * tests/test-getaddrinfo.c: Likewise.
61781
61782 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61783
61784         * modules/sockets-tests: New file.
61785
61786 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61787
61788         * modules/sockets: New module, can be used to call WSA_Startup and
61789         WSA_Cleanup when needed.
61790
61791         * lib/sockets.h, lib/sockets.c: New files.
61792
61793         * m4/sockets.m4: New file.
61794
61795         * tests/test-sockets.c: New file.
61796
61797 2008-01-19  Bruno Haible  <bruno@clisp.org>
61798
61799         * doc/posix-headers: Renamed from doc/headers.
61800         * doc/posix-functions: Renamed from doc/functions.
61801         * doc/gnulib.texi: Update.
61802
61803 2008-01-19  Bruno Haible  <bruno@clisp.org>
61804
61805         * doc/glibc-functions/strcasestr.texi: Include contents of
61806         doc/functions/strcasestr.texi, fixing the list of platforms.
61807         * doc/functions/strcasestr.texi: Remove file.
61808
61809 2008-01-19  Bruno Haible  <bruno@clisp.org>
61810
61811         * doc/glibc-functions/memmem.texi: Include contents of
61812         doc/functions/memmem.texi.
61813         * doc/functions/memmem.texi: Remove file.
61814
61815 2008-01-18  Bruno Haible  <bruno@clisp.org>
61816
61817         * doc/glibc-functions/*.texi: New files.
61818         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61819         to use the new files.
61820
61821 2008-01-17  Bruno Haible  <bruno@clisp.org>
61822
61823         * tests/test-gethostname.c (main): Fix printf statement.
61824
61825 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61826
61827         * modules/gethostname-tests: New file.
61828
61829         * tests/test-gethostname.c: New file.
61830
61831 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61832
61833         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61834         used by the UNAME case.  Reported by Bruno Haible
61835         <bruno@clisp.org>.
61836
61837 2008-01-17  Eric Blake  <ebb9@byu.net>
61838
61839         Convert c-strcasestr to be more efficient.
61840         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61841         (Depends-on): Add c-strcase, remove malloca, strnlen.
61842         * tests/test-c-strcasestr.c (main): Enhance test.
61843         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61844
61845 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61846
61847         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61848         Use it in creating po/Makevars.
61849
61850 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61851
61852         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61853         Applications that requires it should initialize libgcrypt
61854         manually.
61855
61856 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61857
61858         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61859
61860 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61861
61862         Fix problem with getdate on mingw32 reported by Simon Josefsson
61863         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61864         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61865         tzname", when deciding whether to declare tzname.
61866         * lib/strftime.c (tzname): Likewise.
61867
61868 2008-01-15  Bruno Haible  <bruno@clisp.org>
61869
61870         Work around a MacOS X 10.5 bug in frexpl().
61871         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61872         * doc/functions/frexpl.texi: Document the bug.
61873         Reported by Elias Pipping <pipping@gentoo.org>.
61874
61875 2008-01-14  Eric Blake  <ebb9@byu.net>
61876
61877         Touch up previous patch.
61878         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61879         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61880
61881         Convert strcasestr module to use Two-Way algorithm.
61882         * modules/strcasestr-simple: New module, based on the old
61883         strcasestr, but with Two-Way rather than KMP.
61884         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61885         * lib/string.in.h (rpl_strcasestr): Declare.
61886         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61887         performance.
61888         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61889         * modules/string (Makefile.am): Support strcasestr.
61890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61891         * modules/strcasestr-tests (Depends-on): Check for alarm.
61892         * tests/test-strcasestr.c: Augment test.
61893         * lib/str-two-way.h: Clean up stray macro.
61894         * NEWS: Document new module.
61895         * MODULES.html.sh (string handling): Likewise.
61896         * doc/functions/strcasestr.texi: New file.
61897         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61898         here, since it is not a POSIX function.
61899
61900 2008-01-14  Colin Watson  <cjwatson@debian.org>
61901             Bruno Haible  <bruno@clisp.org>
61902
61903         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61904         works fine; if not, set REPLACE_STRSIGNAL.
61905         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61906         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61907         REPLACE_STRSIGNAL.
61908         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61909         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61910         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61911
61912 2008-01-14  Bruno Haible  <bruno@clisp.org>
61913
61914         * modules/strsignal (Include): Change to <string.h>.
61915
61916 2008-01-14  Colin Watson  <cjwatson@debian.org>
61917
61918         * modules/argp (Notice): Add a notice recommending to change
61919         XGETTEXT_OPTIONS.
61920         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61921
61922 2008-01-13  Colin Watson  <cjwatson@debian.org>
61923
61924         * modules/strsignal-tests: New file.
61925         * tests/test-strsignal.c: New file.
61926
61927         * lib/strsignal.c: New file, from glibc with modifications.
61928         * lib/siglist.h: New file, from glibc with modifications.
61929         * lib/string.in.h (strsignal): New declaration.
61930         * m4/strsignal.m4: New file.
61931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61932         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61933         * modules/strsignal: New file.
61934         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61935         HAVE_DECL_STRSIGNAL.
61936
61937 2008-01-13  Bruno Haible  <bruno@clisp.org>
61938
61939         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61940         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61941         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61942         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61943
61944 2008-01-13  Bruno Haible  <bruno@clisp.org>
61945
61946         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61947         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61948         * lib/argp.h (__attribute__): Likewise.
61949         * lib/c-stack.c (__attribute__): Likewise.
61950         * lib/error.h (__attribute__): Likewise.
61951         * lib/fts.c (__attribute__): Likewise.
61952         * lib/openat.h (__attribute__): Likewise.
61953         * lib/stdio.in.h (__attribute__): Likewise.
61954         * lib/string.in.h (__attribute__): Likewise.
61955         * lib/utimens.c (__attribute__): Likewise.
61956         * lib/vasnprintf.h (__attribute__): Likewise.
61957         * lib/xalloc.h (__attribute__): Likewise.
61958         * lib/xprintf.h (__attribute__): Likewise.
61959         * lib/xstrtol.h (__attribute__): Likewise.
61960         * lib/xvasprintf.h (__attribute__): Likewise.
61961
61962 2008-01-12  Bruno Haible  <bruno@clisp.org>
61963
61964         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61965         * doc/glibc-headers/a.out.texi: New file.
61966         * doc/glibc-headers/aliases.texi: New file.
61967         * doc/glibc-headers/alloca.texi: New file.
61968         * doc/glibc-headers/ar.texi: New file.
61969         * doc/glibc-headers/argp.texi: New file.
61970         * doc/glibc-headers/argz.texi: New file.
61971         * doc/glibc-headers/byteswap.texi: New file.
61972         * doc/glibc-headers/crypt.texi: New file.
61973         * doc/glibc-headers/endian.texi: New file.
61974         * doc/glibc-headers/envz.texi: New file.
61975         * doc/glibc-headers/err.texi: New file.
61976         * doc/glibc-headers/error.texi: New file.
61977         * doc/glibc-headers/execinfo.texi: New file.
61978         * doc/glibc-headers/fpu_control.texi: New file.
61979         * doc/glibc-headers/fstab.texi: New file.
61980         * doc/glibc-headers/fts.texi: New file.
61981         * doc/glibc-headers/getopt.texi: New file.
61982         * doc/glibc-headers/ieee754.texi: New file.
61983         * doc/glibc-headers/ifaddrs.texi: New file.
61984         * doc/glibc-headers/libintl.texi: New file.
61985         * doc/glibc-headers/mcheck.texi: New file.
61986         * doc/glibc-headers/mntent.texi: New file.
61987         * doc/glibc-headers/obstack.texi: New file.
61988         * doc/glibc-headers/paths.texi: New file.
61989         * doc/glibc-headers/printf.texi: New file.
61990         * doc/glibc-headers/pty.texi: New file.
61991         * doc/glibc-headers/resolv.texi: New file.
61992         * doc/glibc-headers/shadow.texi: New file.
61993         * doc/glibc-headers/sysexits.texi: New file.
61994         * doc/glibc-headers/ttyent.texi: New file.
61995
61996 2008-01-12  Jim Meyering  <meyering@redhat.com>
61997
61998         announce-gen: emit Gnulib's git-based version string.
61999         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62000         New option --gnulib-version=V, where V is expected to be
62001         the output of running git describe in the gnulib directory.
62002         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62003         not useful, and plan to stop publishing an xdelta file with each
62004         coreutils release.
62005
62006         * build-aux/announce-gen: Also check for lzma-compressed files.
62007
62008 2008-01-11  Bruno Haible  <bruno@clisp.org>
62009
62010         * tests/test-memmem.c (main): Increase maximum allowed time.
62011         * tests/test-strstr.c (main): Likewise.
62012
62013 2008-01-11  Bruno Haible  <bruno@clisp.org>
62014
62015         * doc/functions/memmem.texi: Add more precisions about platforms.
62016         * doc/functions/strstr.texi: Likewise.
62017
62018 2008-01-10  Eric Blake  <ebb9@byu.net>
62019
62020         * m4/strstr.m4: Delete cruft from copy-n-paste.
62021         Reported by Bruno Haible.
62022
62023 2008-01-10  Bruno Haible  <bruno@clisp.org>
62024
62025         Make c-strstr rely on strstr.
62026         * lib/c-strstr.c: Don't include str-kmp.h.
62027         (c_strstr): Define in terms of strstr.
62028         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62029         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62030
62031 2008-01-10  Bruno Haible  <bruno@clisp.org>
62032
62033         * doc/gnulib.texi (String Functions in C Locale): New section.
62034         * doc/c-ctype.texi: New file.
62035         * doc/c-strcase.texi: New file.
62036         * doc/c-strcaseeq.texi: New file.
62037         * doc/c-strcasestr.texi: New file.
62038         * doc/c-strstr.texi: New file.
62039         * doc/c-strtod.texi: New file.
62040         * doc/c-strtold.texi: New file.
62041
62042 2008-01-10  Eric Blake  <ebb9@byu.net>
62043
62044         * lib/relocatable.h: Fix a comment.
62045
62046 2008-01-10  Eric Blake  <ebb9@byu.net>
62047
62048         Share two-way algorithm.
62049         * lib/str-two-way.h: New file, merged from...
62050         * lib/memmem.c: ...here...
62051         * lib/strstr.c: ...and here.
62052         * modules/memmem (Files): Use it.
62053         * modules/strstr (Files): Likewise.
62054
62055         Avoid quadratic strstr implementations.
62056         * lib/strstr.c: New file.
62057         * m4/strstr.m4: Likewise.
62058         * modules/strstr: Likewise.
62059         * modules/strstr-tests: Likewise.
62060         * tests/test-strstr.c: Likewise.
62061         * lib/string.in.h (rpl_strstr): Declare.
62062         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62064         * modules/string (Makefile.am): Likewise.
62065         * MODULES.html.sh (string handling): Mention new module.
62066         * doc/functions/strstr.texi (strstr): Document the bug.
62067
62068 2008-01-10  Bruno Haible  <bruno@clisp.org>
62069
62070         * lib/relocatable.h (relocate): State whether result is freshly
62071         allocated or not.
62072         * lib/relocatable.c (relocate): Return a freshly allocated string
62073         instead of a pointer to a privately held string.
62074         Reported by Sylvain Beucler <beuc@gnu.org>.
62075
62076 2008-01-10  Colin Watson  <cjwatson@debian.org>
62077
62078         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62079         s/S_ISNLK/S_ISLNK/.
62080
62081 2008-01-09  Bruno Haible  <bruno@clisp.org>
62082
62083         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62084         and other files.
62085         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62086         if it's only a guess.
62087         * modules/memmem: Simplify by depending on memmem-simple.
62088
62089 2008-01-09  Bruno Haible  <bruno@clisp.org>
62090
62091         Work around OpenBSD 4.0 tdelete() bug.
62092         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62093         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62094         macros and don't redefine the enum values.
62095         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62096         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62097         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62098
62099 2008-01-09  Bruno Haible  <bruno@clisp.org>
62100
62101         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62102         (main): Don't perform the tests if setlocale did not install a UTF-8
62103         locale. Needed on OpenBSD 4.0.
62104         * modules/wcwidth-tests (Depends-on): Add localcharset.
62105
62106 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62107
62108         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62109         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62110         * NEWS: announce this.
62111         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62112
62113 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62114         and Eric Blake  <ebb9@byu.net>
62115
62116         Add memmem-simple module.
62117         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62118         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62119         * modules/memmem-simple: New file.
62120         * modules/memmem (Description): Tweak.
62121         * MODULES.html.sh (string handling): Mention new module.
62122         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62123         addressed by memmem-simple.
62124         * NEWS: Document the difference.
62125
62126 2008-01-09  Eric Blake  <ebb9@byu.net>
62127
62128         Give gcc some memmem optimization hints.
62129         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62130         (strcasestr): Declare as pure.
62131         * modules/memmem (Maintainer): Claim my implementation.
62132
62133 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62134
62135         Support AIX 6.1 and higher.
62136         * build-aux/config.libpath: Likewise.
62137         * build-aux/config.rpath: Likewise.
62138
62139 2008-01-08  Jim Meyering  <meyering@redhat.com>
62140             Bruno Haible  <bruno@clisp.org>
62141
62142         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62143         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62144         Reported by Peter Fales in
62145         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62146
62147 2008-01-08  Bruno Haible  <bruno@clisp.org>
62148
62149         * modules/unictype/category-of (Depends-on): Add
62150         unictype/category-none.
62151         * modules/unictype/category-and-tests (Depends-on): Add
62152         unictype/category-{L,N,Lu,Nd}.
62153         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62154         * modules/unictype/category-or-tests (Depends-on): Add
62155         unictype/category-{L,N}.
62156         * modules/unictype/category-name-tests (Depends-on): Add
62157         unictype/category-{Z,Nl}.
62158         Reported by Simon Josefsson.
62159
62160 2008-01-08  Bruno Haible  <bruno@clisp.org>
62161
62162         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62163         convention better.
62164         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62165         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62166         Reported by Peter Miller <millerp@canb.auug.org.au>.
62167
62168 2008-01-08  Eric Blake  <ebb9@byu.net>
62169
62170         Rewrite memmem to guarantee linear complexity without malloc.
62171         * lib/memmem.c (memmem): Use Two-Way rather than
62172         Knuth-Morris-Pratt, to allow O(1) space usage.
62173         (critical_factorization, two_way_short_needle)
62174         (two_way_long_needle): New functions.
62175         (knuth_morris_pratt): Delete.
62176         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62177         Add stdint.
62178         * tests/test-memmem.c (main): Add tests for periodic needle and
62179         sublinear performance.
62180         * doc/functions/memmem.texi (memmem): Document other deficiencies
62181         in cygwin and older glibc.
62182
62183 2008-01-08  Bruno Haible  <bruno@clisp.org>
62184
62185         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62186         augmentation.
62187
62188 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62189
62190         Add a configure time option: --disable-acl.
62191         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62192         AC_ARG_ENABLE(acl).
62193
62194 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62195
62196         * tests/test-localename.c: Don't include obsolete "setenv.h".
62197
62198         * modules/localename-tests (Depends-on): Need unsetenv.
62199
62200 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62201
62202         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62203
62204 2008-01-06  Colin Watson  <cjwatson@debian.org>
62205
62206         * users.txt: Add man-db.
62207
62208 2008-01-07  Bruno Haible  <bruno@clisp.org>
62209
62210         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62211         previous section name.
62212
62213 2008-01-07  Bruno Haible  <bruno@clisp.org>
62214
62215         * lib/progname.c (set_program_name): Don't strip off a leading
62216         "lt-" prefix outside a .libs directory.
62217         Suggested by Paul Eggert.
62218
62219 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62220             Bruno Haible  <bruno@clisp.org>
62221
62222         Improve memory cleanup in 'relocatable' module.
62223         * lib/relocatable.h (compute_curr_prefix): Change return type to
62224         'char *'.
62225         * lib/relocatable.c (compute_curr_prefix): Change return type to
62226         'char *'. Free curr_installdir after use.
62227         (relocate): Free curr_prefix_better after use.
62228         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62229
62230 2008-01-01  Bruno Haible  <bruno@clisp.org>
62231
62232         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62233         failure on older glibc systems.
62234         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62235
62236 2008-01-05  Eric Blake  <ebb9@byu.net>
62237
62238         Avoid quadratic system memmem.
62239         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62240         Reported by Ralf Wildenhues.
62241
62242         Fix memmem test for mingw.
62243         * modules/memmem-tests (configure.ac): Check for alarm.
62244         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62245         it.
62246         * doc/functions/memmem.texi: New file.
62247         * doc/gnulib.texi (Function Substitutes): Add memmem.
62248         Reported by Bruno Haible.
62249
62250 2008-01-04  Bruno Haible  <bruno@clisp.org>
62251
62252         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62253         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62254         gl_HEADER_STRING_H_DEFAULTS.
62255
62256 2008-01-04  Eric Blake  <ebb9@byu.net>
62257
62258         Shorten duration of memmem test.
62259         * tests/test-memmem.c (main): Use alarm to declare failure if test
62260         is taking too long.
62261         Reported by Ralf Wildenhues.
62262
62263 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62264
62265         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62266         string, needed by strerror.
62267
62268 2008-01-03  Colin Watson  <cjwatson@debian.org>
62269             Bruno Haible  <bruno@clisp.org>
62270
62271         * doc/gnulib-tool.texi (Localization): New section.
62272
62273 2008-01-02  Bruno Haible  <bruno@clisp.org>
62274
62275         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62276         variables to 'unsigned char *' type.
62277         Reported by Paul Eggert.
62278
62279 2008-01-02  Jim Meyering  <jim@meyering.net>
62280
62281         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62282
62283 2007-12-31  Jim Meyering  <jim@meyering.net>
62284
62285         Avoid use of private FTS type name.
62286         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62287
62288 2007-12-30  Karl Berry  <karl@gnu.org>
62289
62290         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62291         work around defect in Texinfo and/or the standalone Info browser.
62292
62293 2007-12-30  Bruno Haible  <bruno@clisp.org>
62294
62295         Unify 5 copies of the KMP code.
62296         * lib/str-kmp.h: New file.
62297         * lib/c-strcasestr.c: Include str-kmp.h.
62298         (knuth_morris_pratt): Remove function.
62299         (c_strcasestr): Update.
62300         * lib/c-strstr.c: Include str-kmp.h.
62301         (knuth_morris_pratt): Remove function.
62302         (c_strcasestr): Update.
62303         * lib/mbscasestr.c: Include str-kmp.h.
62304         (knuth_morris_pratt_unibyte): Remove function.
62305         * lib/mbsstr.c: Include str-kmp.h.
62306         (knuth_morris_pratt_unibyte): Remove function.
62307         * lib/strcasestr.c: Include str-kmp.h.
62308         (knuth_morris_pratt): Remove function.
62309         (strcasestr): Update.
62310         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62311         * modules/c-strstr (Files): Likewise.
62312         * modules/mbscasestr (Files): Likewise.
62313         * modules/mbsstr (Files): Likewise.
62314         * modules/strcasestr (Files): Likewise.
62315         Suggested by Paul Eggert.
62316
62317 2007-12-30  Bruno Haible  <bruno@clisp.org>
62318
62319         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62320         defined.
62321
62322 2007-12-30  Bruno Haible  <bruno@clisp.org>
62323
62324         * lib/xmalloca.h: Include xalloc.h.
62325         (xnmalloca): New macro.
62326
62327 2007-12-30  Bruno Haible  <bruno@clisp.org>
62328
62329         * lib/malloca.h (nmalloca): New macro.
62330         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62331         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62332         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62333         knuth_morris_pratt_multibyte): Likewise.
62334         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62335         knuth_morris_pratt_multibyte): Likewise.
62336         * lib/memmem.c (knuth_morris_pratt): Likewise.
62337         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62338
62339 2007-12-25  Bruno Haible  <bruno@clisp.org>
62340
62341         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62342         * lib/glob.c: Don't include openat.h.
62343         (link_exists2_p): Add back the code that deals with the
62344         !GLOB_ALTDIRFUNC case.
62345         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62346         let it do the filename concatenation.
62347         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62348         * modules/glob (Depends-on): Remove openat.
62349
62350 2007-12-31  Bruno Haible  <bruno@clisp.org>
62351
62352         * modules/dirfd (License): Change to LGPLv2+.
62353         Approved by Jim Meyering.
62354
62355 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62356
62357         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62358         when multiplying M by sizeof (size_t).
62359
62360 2007-12-10  Martin Lambers  <marlam@marlam.de>
62361
62362         Override getpagesize on mingw.
62363         * lib/getpagesize.c: New file.
62364         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62365         * modules/getpagesize (Files): Add lib/getpagesize.c.
62366         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62368         REPLACE_GETPAGESIZE.
62369         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62370
62371 2007-12-25  Bruno Haible  <bruno@clisp.org>
62372
62373         * modules/localcharset (Notice): New field.
62374         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62375         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62376
62377 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62378             Bruno Haible  <bruno@clisp.org>
62379
62380         Avoid using the syntax symbol() in formatted documentation.
62381         * MODULES.html.sh (func_module): When replacing symbol() with a
62382         hyperlink, remove the parentheses. Show an error if some remain.
62383         Recognize and render the '...' syntax.
62384         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62385         Rework. Add paragraph about GCC's inlining.
62386         * doc/alloca.texi: Likewise.
62387         * doc/error.texi: Remove parentheses from symbol reference.
62388         * doc/gnulib-intro.texi: Likewise.
62389         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62390         * modules/fnmatch (Description): Reword to say "the ... function".
62391         * modules/full-read (Description): Likewise.
62392         * modules/full-write (Description): Likewise.
62393         * modules/safe-read (Description): Likewise.
62394         * modules/safe-write (Description): Likewise.
62395         * modules/strchrnul (Description): Likewise.
62396         * modules/trim (Description): Likewise.
62397         * modules/error (Description): Remove parentheses from symbol
62398         references.
62399         * modules/verror (Description): Likewise.
62400         Reported by Karl Berry.
62401
62402 2007-12-25  Bruno Haible  <bruno@clisp.org>
62403
62404         Fixup after 2007-10-16 commit.
62405         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62406
62407 2007-12-24  Bruno Haible  <bruno@clisp.org>
62408
62409         Make --enable-relocatable work with DESTDIR.
62410         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62411         to compute installdir from destprog.
62412         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62413         also set the RELOC_DESTDIR variable.
62414         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62415
62416 2007-12-24  Bruno Haible  <bruno@clisp.org>
62417
62418         Fix link error due to xalloc_die().
62419         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62420         of xreadlink.
62421         * lib/relocwrapper.c: Update comments.
62422         * build-aux/install-reloc: Remove xreadlink.c from file list.
62423         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62424         xreadlink.c.
62425         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62426
62427 2007-12-24  Bruno Haible  <bruno@clisp.org>
62428
62429         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62430         * lib/setenv.h: Remove file.
62431         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62432         lib/setenv.h.
62433         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62434         (Depends-on): Add stdlib.
62435         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62436         gl_FUNC_UNSETENV.
62437         (Include): Replace setenv.h with <stdlib.h>.
62438         * modules/unsetenv: New file.
62439         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62440         * lib/unsetenv.c: Include <stdlib.h> first.
62441         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62442         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62443         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62444         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62445         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62446         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62448         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62449         * doc/functions/unsetenv.texi: Update.
62450         * modules/xsetenv (Depends-on): Add unsetenv.
62451         * modules/getdate (Depends-on): Likewise.
62452         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62453         * lib/xsetenv.c: Don't include setenv.h.
62454         * lib/getdate.y: Likewise.
62455         * lib/relocwrapper.c: Likewise.
62456         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62457         (Depends-on): Add stdlib.
62458         * NEWS: Mention the changes.
62459         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62460
62461 2007-12-23  Bruno Haible  <bruno@clisp.org>
62462
62463         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62464         indentation.
62465
62466 2007-12-23  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/c-strcasestr.c: Add more comments.
62469         * lib/c-strstr.c: Likewise.
62470         * lib/mbscasestr.c: Likewise.
62471         * lib/mbsstr.c: Likewise.
62472         * lib/strcasestr.c: Likewise.
62473         * lib/memmem.c: Likewise.
62474
62475 2007-12-23  Bruno Haible  <bruno@clisp.org>
62476
62477         * tests/test-memmem.c: Include <string.h> first.
62478
62479 2007-12-22  Bruno Haible  <bruno@clisp.org>
62480
62481         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62482         the contents of $testsbase.
62483         Reported by Ralf Wildenhues.
62484
62485 2007-12-22  Bruno Haible  <bruno@clisp.org>
62486
62487         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62488         two variables local_ldadd_before, local_ldadd_last.
62489
62490 2007-12-20  Eric Blake  <ebb9@byu.net>
62491
62492         Work around circular library issue when cross-compiling.
62493         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62494         that progname.o does not need to pull in rpl_memcmp.
62495
62496 2007-12-19  Eric Blake  <ebb9@byu.net>
62497
62498         Fix memmem to avoid O(n^2) worst-case complexity.
62499         * lib/memmem.c (knuth_morris_pratt): New function.
62500         (memmem): Use it if first few naive iterations fail.
62501         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62502         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62503         * modules/memchr (License): Likewise.
62504         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62505         malloca.
62506         * tests/test-memmem.c: Rewrite, borrowing ideas from
62507         test-mbsstr1.c; the old version wouldn't even compile!
62508         * modules/memmem-tests: New file.
62509         * lib/string.in.h (rpl_memmem): Add declaration.
62510         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62512         REPLACE_MEMMEM.
62513
62514 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62515
62516         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62517         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62518         before any system include files, and undef after them all.  This
62519         should fix a problem on VMS reported by John E. Malmberg in
62520         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62521
62522 2007-12-17  Eric Blake  <ebb9@byu.net>
62523
62524         Revert addition of verify, for BSD/OS.
62525         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62526         can't handle large files, for the sake of obsolete platforms.
62527         * modules/fseeko (Depends-on): Remove verify.
62528         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62529         * doc/functions/ftello.texi (ftello): Likewise.
62530         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62531         Reported by Larry Jones.
62532
62533 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62534
62535         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62536         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62537
62538 2007-12-17  Jim Meyering  <meyering@redhat.com>
62539
62540         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62541         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62542         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62543         * modules/getcwd (Depends-on): Add openat.
62544         Reported by Petr Salinger.
62545
62546 2007-12-17  Bruno Haible  <bruno@clisp.org>
62547
62548         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62549         avoid a segmentation fault of the configure test on x86_64 systems.
62550
62551 2007-12-15  Jim Meyering  <meyering@redhat.com>
62552
62553         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62554
62555 2007-12-13  Eric Blake  <ebb9@byu.net>
62556
62557         Another fseek test.
62558         * tests/test-fseek.c (main): Also test ungetc handling.
62559         * tests/test-fseeko.c (main): Likewise.
62560         * modules/fseeko (Depends-on): Add verify.
62561         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62562         large.
62563         Reported by Larry Jones.
62564
62565         Fix fseeko on mingw.
62566         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62567         seek.
62568
62569         Beef up fseek tests.
62570         * tests/test-fseek.c (main): Also test eof handling.
62571         * tests/test-fseeko.c (main): Likewise.
62572         Reported by Larry Jones.
62573
62574 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62575
62576         Fix fseeko on BSD-based platforms.
62577         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62578         successful seek.
62579
62580 2007-12-12  Eric Blake  <ebb9@byu.net>
62581
62582         Allow circular dependency of separate libtests.a
62583         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62584         when use_libtests.
62585
62586 2007-12-11  Eric Blake  <ebb9@byu.net>
62587
62588         Fix bug with -0.0L in previous patch.
62589         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62590         * tests/test-isnan.c (main): Also test on zeroes.
62591         * tests/test-isnanf.c (main): Likewise.
62592         * tests/test-isnanl.h (main): Likewise.
62593
62594         Detect pseudo-denormals on x86 even when cross-compiling.
62595         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62596         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62597         invalid bit patterns that happen to satisfy ==.
62598
62599         Avoid link failures with separate libtests.a.
62600         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62601         last, to satisfy circular dependencies.
62602
62603 2007-12-11  Eric Blake  <ebb9@byu.net>
62604         and Bruno Haible  <bruno@clisp.org>
62605
62606         Fix OpenBSD 4.0 <float.h> handling of long double.
62607         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62608         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62609         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62610
62611 2007-12-11  Jim Meyering  <meyering@redhat.com>
62612
62613         * users.txt: Add libvirt.
62614
62615         Support versions of autoconf prior to 2.59c.
62616         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62617         if it is not already defined.
62618
62619 2007-12-09  Bruno Haible  <bruno@clisp.org>
62620
62621         Let 'gnulib-tool --import' collect sources needed for the tests in
62622         tests/ rather than in lib/.
62623         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62624         argument. If true, add rules to generate libtests.a, and put libtests.a
62625         into $(LDADD). Consider source files in subdirectories and set
62626         uses_subdirs.
62627         (func_emit_initmacro_start, func_emit_initmacro_end,
62628         func_emit_initmacro_done): Pass all arguments explicitly.
62629         (func_import): Determine two module lists main_modules,
62630         testsrelated_modules. Determine use_libtests. Determine two variables
62631         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62632         instead of just sed_transform_lib_file. Determine two variables
62633         main_files and testsrelated_files. Compute 'files' as the union of
62634         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62635         func_add_or_update. In the generated gnulib-comp.m4, collect the
62636         object files for tests/ in different variables than those for lib/.
62637         Substitute LIBTESTS_LIBDEPS.
62638         (func_create_testdir): Combine the uses_subdirs results from
62639         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62640
62641 2007-12-09  Bruno Haible  <bruno@clisp.org>
62642
62643         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62644         the build-aux directory.
62645
62646 2007-12-09  Bruno Haible  <bruno@clisp.org>
62647
62648         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62649         introduced on 2006-09-09.
62650
62651 2007-12-07  Jim Meyering  <meyering@redhat.com>
62652
62653         Let these macros work also with autoconf-2.59.
62654         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62655         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62656         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62657
62658 2007-12-06  Jim Meyering  <meyering@redhat.com>
62659
62660         Avoid a configure-time syntax error in gl_FUNC_ACL.
62661         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62662         function in each branch, before testing the cache variable.
62663
62664 2007-12-04  Eric Blake  <ebb9@byu.net>
62665
62666         Make scripts executable.
62667         * build-aux/config.guess: Add execute permissions.
62668         * build-aux/config.sub: Likewise.
62669         * build-aux/gendocs.sh: Likewise.
62670
62671         Fix frexp on mingw.
62672         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62673         cross-compiling.
62674         * doc/functions/frexp.texi (frexp): Document the bug.
62675
62676         Make cygwin fseeko check more reliable.
62677         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62678         version numbers, rather than unrelated feature check.
62679         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62680         * doc/functions/ftello.texi (ftello): Likewise.
62681         Reported by Bruno Haible.
62682
62683         * m4/strerror.m4: Bump version number.
62684
62685 2007-12-03  Bruno Haible  <bruno@clisp.org>
62686
62687         * doc/functions/mprotect.texi: Mention the mingw problem.
62688
62689 2007-12-03  Eric Blake  <ebb9@byu.net>
62690
62691         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62692         REPLACE_STRERROR is initialized before this macro.
62693
62694 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62695
62696         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62697         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62698         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62699         put -lsec in even for programs other than 'ls'.  This fixes a problem
62700         for gettext reported by Bruno Haible in
62701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62702         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62703         Add support for Solaris 10.  This isn't efficient, but should get the
62704         job done for now.
62705
62706 2007-12-03  James Youngman  <jay@gnu.org>
62707
62708         * doc/regexprops-generic.texi: change "an close-group" to "a
62709         close-group" and "illegal" to "not allowed".
62710
62711 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62712
62713         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62714         pr_byname.h. Needed for the rare case when the maintainer has done
62715         "make maintainer-clean" in the source directory and then attempts a
62716         build outside the source directory.
62717         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62718         scripts_byname.h.
62719
62720 2007-12-02  Martin Lambers <marlam@marlam.de>
62721             Bruno Haible  <bruno@clisp.org>
62722
62723         * lib/getpagesize.h: Remove file.
62724         * lib/unistd.in.h: Include declaration of getpagesize here.
62725         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62726         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62727         HAVE_SYS_PARAM_H.
62728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62729         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62730         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62731         (Depends-on): Add unistd.
62732         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62733         (Include): Use <unistd.h> instead of getpagesize.h.
62734         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62735         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62736         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62737         gl_GETPAGESIZE invocation, already handled by module dependency.
62738         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62739
62740 2007-12-02  Bruno Haible  <bruno@clisp.org>
62741
62742         * modules/strings-tests: New file.
62743         * tests/test-strings.c: New file.
62744
62745         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62746         * lib/strings.in.h: New file.
62747         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62748         * m4/strings_h.m4: New file.
62749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62750         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62751         * modules/strings: New file.
62752         * modules/string (Makefile.am): Update.
62753         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62754         Reported by Karl Berry.
62755
62756 2007-12-01  Eric Blake  <ebb9@byu.net>
62757
62758         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62759         accommodate fix in cygwin 1.5.25.
62760
62761 2007-12-01  Jim Meyering  <meyering@redhat.com>
62762
62763         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62764         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62765         that would inhibit utf8-optimization of a regexp containing line-
62766         or buffer-anchors, e.g., `^', `$'.
62767
62768 2007-11-30  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62771         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62772         glthread_recursive_lock_init.
62773         * lib/lock.c (glthread_recursive_lock_init)
62774         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62775         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62776
62777 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62778
62779         New function qset_acl, like set_acl but with syscall semantics.
62780         * lib/acl.h (qset_acl): New decl.
62781         * lib/acl.c (qset_acl): New function.
62782         (set_acl): Use new function.  Use more-consistent diagnostics.
62783
62784 2007-11-28  Jim Meyering  <meyering@redhat.com>
62785
62786         * modules/physmem (License): Change from GPL to LGPLv2+.
62787
62788 2007-11-26  Bruno Haible  <bruno@clisp.org>
62789
62790         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62791         'long double' type has excess precision.
62792         Reported by Jim Meyering in
62793         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62794
62795 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62796
62797         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62798         Sync from <http://gnu.org/licenses>.
62799         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62800         with license text from same location.
62801         * doc/maintain.texi, doc/standards.texi:  Sync from
62802         <http://savannah.gnu.org/projects/gnustandards>.
62803
62804 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62805         and Jim Meyering  <meyering@redhat.com>
62806
62807         Adjust getdate' grammar to accept a slightly more regular language.
62808         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62809         Before, the former was rejected.
62810         * lib/getdate.y (digits_to_date_time): New function, factored
62811         out of ...
62812         (number): ...here.  Just call digits_to_date_time.
62813         (hybrid): New non-terminal to handle an <unsigned number,
62814         signed relative offset> sequence consistently.
62815
62816 2007-11-18  Jim Meyering  <meyering@redhat.com>
62817
62818         Pull my changes from coreutils:
62819         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62820         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62821         use of $gnulib_tool_option_extras, so that it's separated from the
62822         preceding argument.
62823
62824         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62825         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62826         parent destination directories before copying a file into place.
62827
62828 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62829
62830         bootstrap: work also with 4-argument variant of AC_INIT
62831         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62832
62833 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62834
62835         Port test-getaddrinfo to Solaris.
62836         Problem reported by Bruno Haible in
62837         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62838         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62839         explanation of setting 'hints'.
62840         Don't reject an implementation merely because it returns EAI_SERVICE.
62841         (EAI_SERVICE): Define to 0 if not defined.
62842
62843 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         The license of gnu-make and posix-shell is now "GPLed build tool".
62846         * modules/gnu-make (License): Likewise.
62847         * modules/posix-shell (License): Likewise.
62848
62849         New module posix-shell, for determining a POSIX shell
62850         or perhaps something that is close enough to a POSIX shell.
62851         * m4/posix-shell.m4: New file.
62852         * modules/posix-shell: New file.
62853
62854         * MODULES.html.sh: Mention new module.
62855
62856         New module gnu-make, for determining whether we're using GNU Make.
62857         * m4/gnu-make.m4: New file.
62858         * modules/gnu-make: New file.
62859         * MODULES.html.sh: Mention new module.
62860
62861 2007-11-14  Jim Meyering  <meyering@redhat.com>
62862
62863         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62864         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62865         use this macro to create a function _definition_.
62866         Remove useless "#undef ARGMATCH_DIE".
62867
62868 2007-11-14  Bruno Haible  <bruno@clisp.org>
62869
62870         * lib/config.charset: Update for OpenBSD 4.1.
62871         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62872
62873 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62874
62875         Document 64-bit #if problems in stdint.texi.
62876         * doc/headers/stdint.texi (stdint.h): Mention problems with
62877         64-bit-#if, and how to work around them.
62878
62879         Don't insist on 'long long int' support in the preprocessor.  It
62880         breaks too many things.  For example, PRIdMAX still uses a 'long
62881         long int' format with the latest Sun compiler, even though
62882         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62883         preprocessor problem.  This causes the latest coreutils to dump
62884         core on Solaris 10 sparc with the Sun C compiler.
62885         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62886         the troublesome expressions at configure-time, not at #if-time.
62887         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62888         preprocessor.
62889         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62890         compile-time C checks, done at 'configure'-time.
62891         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62892         * modules/inttypes (Makefile): Substitute the new symbols that
62893         gl_INTTYPES_H now generates.
62894         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62895
62896 2007-11-12  Bruno Haible  <bruno@clisp.org>
62897
62898         Tests for Unicode character classification functions.
62899
62900         * modules/unictype/bidicategory-byname-tests: New file.
62901         * modules/unictype/bidicategory-name-tests: New file.
62902         * modules/unictype/bidicategory-of-tests: New file.
62903         * modules/unictype/bidicategory-test-tests: New file.
62904         * modules/unictype/block-list-tests: New file.
62905         * modules/unictype/block-of-tests: New file.
62906         * modules/unictype/block-test-tests: New file.
62907         * modules/unictype/category-C-tests: New file.
62908         * modules/unictype/category-Cc-tests: New file.
62909         * modules/unictype/category-Cf-tests: New file.
62910         * modules/unictype/category-Cn-tests: New file.
62911         * modules/unictype/category-Co-tests: New file.
62912         * modules/unictype/category-Cs-tests: New file.
62913         * modules/unictype/category-L-tests: New file.
62914         * modules/unictype/category-Ll-tests: New file.
62915         * modules/unictype/category-Lm-tests: New file.
62916         * modules/unictype/category-Lo-tests: New file.
62917         * modules/unictype/category-Lt-tests: New file.
62918         * modules/unictype/category-Lu-tests: New file.
62919         * modules/unictype/category-M-tests: New file.
62920         * modules/unictype/category-Mc-tests: New file.
62921         * modules/unictype/category-Me-tests: New file.
62922         * modules/unictype/category-Mn-tests: New file.
62923         * modules/unictype/category-N-tests: New file.
62924         * modules/unictype/category-Nd-tests: New file.
62925         * modules/unictype/category-Nl-tests: New file.
62926         * modules/unictype/category-No-tests: New file.
62927         * modules/unictype/category-P-tests: New file.
62928         * modules/unictype/category-Pc-tests: New file.
62929         * modules/unictype/category-Pd-tests: New file.
62930         * modules/unictype/category-Pe-tests: New file.
62931         * modules/unictype/category-Pf-tests: New file.
62932         * modules/unictype/category-Pi-tests: New file.
62933         * modules/unictype/category-Po-tests: New file.
62934         * modules/unictype/category-Ps-tests: New file.
62935         * modules/unictype/category-S-tests: New file.
62936         * modules/unictype/category-Sc-tests: New file.
62937         * modules/unictype/category-Sk-tests: New file.
62938         * modules/unictype/category-Sm-tests: New file.
62939         * modules/unictype/category-So-tests: New file.
62940         * modules/unictype/category-Z-tests: New file.
62941         * modules/unictype/category-Zl-tests: New file.
62942         * modules/unictype/category-Zp-tests: New file.
62943         * modules/unictype/category-Zs-tests: New file.
62944         * modules/unictype/category-and-not-tests: New file.
62945         * modules/unictype/category-and-tests: New file.
62946         * modules/unictype/category-byname-tests: New file.
62947         * modules/unictype/category-name-tests: New file.
62948         * modules/unictype/category-none-tests: New file.
62949         * modules/unictype/category-of-tests: New file.
62950         * modules/unictype/category-or-tests: New file.
62951         * modules/unictype/category-test-withtable-tests: New file.
62952         * modules/unictype/combining-class-tests: New file.
62953         * modules/unictype/ctype-alnum-tests: New file.
62954         * modules/unictype/ctype-alpha-tests: New file.
62955         * modules/unictype/ctype-blank-tests: New file.
62956         * modules/unictype/ctype-cntrl-tests: New file.
62957         * modules/unictype/ctype-digit-tests: New file.
62958         * modules/unictype/ctype-graph-tests: New file.
62959         * modules/unictype/ctype-lower-tests: New file.
62960         * modules/unictype/ctype-print-tests: New file.
62961         * modules/unictype/ctype-punct-tests: New file.
62962         * modules/unictype/ctype-space-tests: New file.
62963         * modules/unictype/ctype-upper-tests: New file.
62964         * modules/unictype/ctype-xdigit-tests: New file.
62965         * modules/unictype/decimal-digit-tests: New file.
62966         * modules/unictype/digit-tests: New file.
62967         * modules/unictype/mirror-tests: New file.
62968         * modules/unictype/numeric-tests: New file.
62969         * modules/unictype/property-alphabetic-tests: New file.
62970         * modules/unictype/property-ascii-hex-digit-tests: New file.
62971         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62972         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62973         * modules/unictype/property-bidi-block-separator-tests: New file.
62974         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62975         * modules/unictype/property-bidi-common-separator-tests: New file.
62976         * modules/unictype/property-bidi-control-tests: New file.
62977         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62978         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62979         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62980         * modules/unictype/property-bidi-european-digit-tests: New file.
62981         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62982         * modules/unictype/property-bidi-left-to-right-tests: New file.
62983         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62984         * modules/unictype/property-bidi-other-neutral-tests: New file.
62985         * modules/unictype/property-bidi-pdf-tests: New file.
62986         * modules/unictype/property-bidi-segment-separator-tests: New file.
62987         * modules/unictype/property-bidi-whitespace-tests: New file.
62988         * modules/unictype/property-byname-tests: New file.
62989         * modules/unictype/property-combining-tests: New file.
62990         * modules/unictype/property-composite-tests: New file.
62991         * modules/unictype/property-currency-symbol-tests: New file.
62992         * modules/unictype/property-dash-tests: New file.
62993         * modules/unictype/property-decimal-digit-tests: New file.
62994         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62995         * modules/unictype/property-deprecated-tests: New file.
62996         * modules/unictype/property-diacritic-tests: New file.
62997         * modules/unictype/property-extender-tests: New file.
62998         * modules/unictype/property-format-control-tests: New file.
62999         * modules/unictype/property-grapheme-base-tests: New file.
63000         * modules/unictype/property-grapheme-extend-tests: New file.
63001         * modules/unictype/property-grapheme-link-tests: New file.
63002         * modules/unictype/property-hex-digit-tests: New file.
63003         * modules/unictype/property-hyphen-tests: New file.
63004         * modules/unictype/property-id-continue-tests: New file.
63005         * modules/unictype/property-id-start-tests: New file.
63006         * modules/unictype/property-ideographic-tests: New file.
63007         * modules/unictype/property-ids-binary-operator-tests: New file.
63008         * modules/unictype/property-ids-trinary-operator-tests: New file.
63009         * modules/unictype/property-ignorable-control-tests: New file.
63010         * modules/unictype/property-iso-control-tests: New file.
63011         * modules/unictype/property-join-control-tests: New file.
63012         * modules/unictype/property-left-of-pair-tests: New file.
63013         * modules/unictype/property-line-separator-tests: New file.
63014         * modules/unictype/property-logical-order-exception-tests: New file.
63015         * modules/unictype/property-lowercase-tests: New file.
63016         * modules/unictype/property-math-tests: New file.
63017         * modules/unictype/property-non-break-tests: New file.
63018         * modules/unictype/property-not-a-character-tests: New file.
63019         * modules/unictype/property-numeric-tests: New file.
63020         * modules/unictype/property-other-alphabetic-tests: New file.
63021         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63022         * modules/unictype/property-other-grapheme-extend-tests: New file.
63023         * modules/unictype/property-other-id-continue-tests: New file.
63024         * modules/unictype/property-other-id-start-tests: New file.
63025         * modules/unictype/property-other-lowercase-tests: New file.
63026         * modules/unictype/property-other-math-tests: New file.
63027         * modules/unictype/property-other-uppercase-tests: New file.
63028         * modules/unictype/property-paired-punctuation-tests: New file.
63029         * modules/unictype/property-paragraph-separator-tests: New file.
63030         * modules/unictype/property-pattern-syntax-tests: New file.
63031         * modules/unictype/property-pattern-white-space-tests: New file.
63032         * modules/unictype/property-private-use-tests: New file.
63033         * modules/unictype/property-punctuation-tests: New file.
63034         * modules/unictype/property-quotation-mark-tests: New file.
63035         * modules/unictype/property-radical-tests: New file.
63036         * modules/unictype/property-sentence-terminal-tests: New file.
63037         * modules/unictype/property-soft-dotted-tests: New file.
63038         * modules/unictype/property-space-tests: New file.
63039         * modules/unictype/property-terminal-punctuation-tests: New file.
63040         * modules/unictype/property-test-tests: New file.
63041         * modules/unictype/property-titlecase-tests: New file.
63042         * modules/unictype/property-unassigned-code-value-tests: New file.
63043         * modules/unictype/property-unified-ideograph-tests: New file.
63044         * modules/unictype/property-uppercase-tests: New file.
63045         * modules/unictype/property-variation-selector-tests: New file.
63046         * modules/unictype/property-white-space-tests: New file.
63047         * modules/unictype/property-xid-continue-tests: New file.
63048         * modules/unictype/property-xid-start-tests: New file.
63049         * modules/unictype/property-zero-width-tests: New file.
63050         * modules/unictype/scripts-tests: New file.
63051         * modules/unictype/syntax-c-ident-tests: New file.
63052         * modules/unictype/syntax-c-whitespace-tests: New file.
63053         * modules/unictype/syntax-java-ident-tests: New file.
63054         * modules/unictype/syntax-java-whitespace-tests: New file.
63055         * tests/unictype/test-bidi_byname.c: New file.
63056         * tests/unictype/test-bidi_name.c: New file.
63057         * tests/unictype/test-bidi_of.c: New file.
63058         * tests/unictype/test-bidi_test.c: New file.
63059         * tests/unictype/test-block_list.c: New file.
63060         * tests/unictype/test-block_of.c: New file.
63061         * tests/unictype/test-block_test.c: New file.
63062         * tests/unictype/test-categ_and.c: New file.
63063         * tests/unictype/test-categ_and_not.c: New file.
63064         * tests/unictype/test-categ_byname.c: New file.
63065         * tests/unictype/test-categ_name.c: New file.
63066         * tests/unictype/test-categ_none.c: New file.
63067         * tests/unictype/test-categ_of.c: New file.
63068         * tests/unictype/test-categ_or.c: New file.
63069         * tests/unictype/test-categ_test_withtable.c: New file.
63070         * tests/unictype/test-combining.c: New file.
63071         * tests/unictype/test-decdigit.c: New file.
63072         * tests/unictype/test-digit.c: New file.
63073         * tests/unictype/test-mirror.c: New file.
63074         * tests/unictype/test-numeric.c: New file.
63075         * tests/unictype/test-pr_byname.c: New file.
63076         * tests/unictype/test-pr_test.c: New file.
63077         * tests/unictype/test-predicate-part1.h: New file.
63078         * tests/unictype/test-predicate-part2.h: New file.
63079         * tests/unictype/test-scripts.c: New file.
63080         * tests/unictype/test-sy_c_ident.c: New file.
63081         * tests/unictype/test-sy_java_ident.c: New file.
63082
63083         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63084         for Unicode 5.0.0.
63085         * tests/unictype/test-categ_Cc.c: Likewise.
63086         * tests/unictype/test-categ_Cf.c: Likewise.
63087         * tests/unictype/test-categ_Cn.c: Likewise.
63088         * tests/unictype/test-categ_Co.c: Likewise.
63089         * tests/unictype/test-categ_Cs.c: Likewise.
63090         * tests/unictype/test-categ_L.c: Likewise.
63091         * tests/unictype/test-categ_Ll.c: Likewise.
63092         * tests/unictype/test-categ_Lm.c: Likewise.
63093         * tests/unictype/test-categ_Lo.c: Likewise.
63094         * tests/unictype/test-categ_Lt.c: Likewise.
63095         * tests/unictype/test-categ_Lu.c: Likewise.
63096         * tests/unictype/test-categ_M.c: Likewise.
63097         * tests/unictype/test-categ_Mc.c: Likewise.
63098         * tests/unictype/test-categ_Me.c: Likewise.
63099         * tests/unictype/test-categ_Mn.c: Likewise.
63100         * tests/unictype/test-categ_N.c: Likewise.
63101         * tests/unictype/test-categ_Nd.c: Likewise.
63102         * tests/unictype/test-categ_Nl.c: Likewise.
63103         * tests/unictype/test-categ_No.c: Likewise.
63104         * tests/unictype/test-categ_P.c: Likewise.
63105         * tests/unictype/test-categ_Pc.c: Likewise.
63106         * tests/unictype/test-categ_Pd.c: Likewise.
63107         * tests/unictype/test-categ_Pe.c: Likewise.
63108         * tests/unictype/test-categ_Pf.c: Likewise.
63109         * tests/unictype/test-categ_Pi.c: Likewise.
63110         * tests/unictype/test-categ_Po.c: Likewise.
63111         * tests/unictype/test-categ_Ps.c: Likewise.
63112         * tests/unictype/test-categ_S.c: Likewise.
63113         * tests/unictype/test-categ_Sc.c: Likewise.
63114         * tests/unictype/test-categ_Sk.c: Likewise.
63115         * tests/unictype/test-categ_Sm.c: Likewise.
63116         * tests/unictype/test-categ_So.c: Likewise.
63117         * tests/unictype/test-categ_Z.c: Likewise.
63118         * tests/unictype/test-categ_Zl.c: Likewise.
63119         * tests/unictype/test-categ_Zp.c: Likewise.
63120         * tests/unictype/test-categ_Zs.c: Likewise.
63121         * tests/unictype/test-ctype_alnum.c: Likewise.
63122         * tests/unictype/test-ctype_alpha.c: Likewise.
63123         * tests/unictype/test-ctype_blank.c: Likewise.
63124         * tests/unictype/test-ctype_cntrl.c: Likewise.
63125         * tests/unictype/test-ctype_digit.c: Likewise.
63126         * tests/unictype/test-ctype_graph.c: Likewise.
63127         * tests/unictype/test-ctype_lower.c: Likewise.
63128         * tests/unictype/test-ctype_print.c: Likewise.
63129         * tests/unictype/test-ctype_punct.c: Likewise.
63130         * tests/unictype/test-ctype_space.c: Likewise.
63131         * tests/unictype/test-ctype_upper.c: Likewise.
63132         * tests/unictype/test-ctype_xdigit.c: Likewise.
63133         * tests/unictype/test-decdigit.h: Likewise.
63134         * tests/unictype/test-digit.h: Likewise.
63135         * tests/unictype/test-numeric.h: Likewise.
63136         * tests/unictype/test-pr_alphabetic.c: Likewise.
63137         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63138         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63139         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63140         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63141         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63142         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63143         * tests/unictype/test-pr_bidi_control.c: Likewise.
63144         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63145         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63146         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63147         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63148         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63149         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63150         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63151         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63152         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63153         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63154         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63155         * tests/unictype/test-pr_combining.c: Likewise.
63156         * tests/unictype/test-pr_composite.c: Likewise.
63157         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63158         * tests/unictype/test-pr_dash.c: Likewise.
63159         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63160         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63161         * tests/unictype/test-pr_deprecated.c: Likewise.
63162         * tests/unictype/test-pr_diacritic.c: Likewise.
63163         * tests/unictype/test-pr_extender.c: Likewise.
63164         * tests/unictype/test-pr_format_control.c: Likewise.
63165         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63166         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63167         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63168         * tests/unictype/test-pr_hex_digit.c: Likewise.
63169         * tests/unictype/test-pr_hyphen.c: Likewise.
63170         * tests/unictype/test-pr_id_continue.c: Likewise.
63171         * tests/unictype/test-pr_id_start.c: Likewise.
63172         * tests/unictype/test-pr_ideographic.c: Likewise.
63173         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63174         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63175         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63176         * tests/unictype/test-pr_iso_control.c: Likewise.
63177         * tests/unictype/test-pr_join_control.c: Likewise.
63178         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63179         * tests/unictype/test-pr_line_separator.c: Likewise.
63180         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63181         * tests/unictype/test-pr_lowercase.c: Likewise.
63182         * tests/unictype/test-pr_math.c: Likewise.
63183         * tests/unictype/test-pr_non_break.c: Likewise.
63184         * tests/unictype/test-pr_not_a_character.c: Likewise.
63185         * tests/unictype/test-pr_numeric.c: Likewise.
63186         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63187         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63188         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63189         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63190         * tests/unictype/test-pr_other_id_start.c: Likewise.
63191         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63192         * tests/unictype/test-pr_other_math.c: Likewise.
63193         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63194         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63195         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63196         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63197         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63198         * tests/unictype/test-pr_private_use.c: Likewise.
63199         * tests/unictype/test-pr_punctuation.c: Likewise.
63200         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63201         * tests/unictype/test-pr_radical.c: Likewise.
63202         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63203         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63204         * tests/unictype/test-pr_space.c: Likewise.
63205         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63206         * tests/unictype/test-pr_titlecase.c: Likewise.
63207         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63208         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63209         * tests/unictype/test-pr_uppercase.c: Likewise.
63210         * tests/unictype/test-pr_variation_selector.c: Likewise.
63211         * tests/unictype/test-pr_white_space.c: Likewise.
63212         * tests/unictype/test-pr_xid_continue.c: Likewise.
63213         * tests/unictype/test-pr_xid_start.c: Likewise.
63214         * tests/unictype/test-pr_zero_width.c: Likewise.
63215         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63216         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63217
63218 2007-11-12  Bruno Haible  <bruno@clisp.org>
63219
63220         Unicode character classification functions.
63221         * lib/unictype.h: New file.
63222         * modules/unictype/base: New file.
63223         * modules/unictype/category-L: New file.
63224         * modules/unictype/category-Lu: New file.
63225         * modules/unictype/category-Ll: New file.
63226         * modules/unictype/category-Lt: New file.
63227         * modules/unictype/category-Lm: New file.
63228         * modules/unictype/category-Lo: New file.
63229         * modules/unictype/category-M: New file.
63230         * modules/unictype/category-Mn: New file.
63231         * modules/unictype/category-Mc: New file.
63232         * modules/unictype/category-Me: New file.
63233         * modules/unictype/category-N: New file.
63234         * modules/unictype/category-Nd: New file.
63235         * modules/unictype/category-Nl: New file.
63236         * modules/unictype/category-No: New file.
63237         * modules/unictype/category-P: New file.
63238         * modules/unictype/category-Pc: New file.
63239         * modules/unictype/category-Pd: New file.
63240         * modules/unictype/category-Ps: New file.
63241         * modules/unictype/category-Pe: New file.
63242         * modules/unictype/category-Pi: New file.
63243         * modules/unictype/category-Pf: New file.
63244         * modules/unictype/category-Po: New file.
63245         * modules/unictype/category-S: New file.
63246         * modules/unictype/category-Sm: New file.
63247         * modules/unictype/category-Sc: New file.
63248         * modules/unictype/category-Sk: New file.
63249         * modules/unictype/category-So: New file.
63250         * modules/unictype/category-Z: New file.
63251         * modules/unictype/category-Zs: New file.
63252         * modules/unictype/category-Zl: New file.
63253         * modules/unictype/category-Zp: New file.
63254         * modules/unictype/category-C: New file.
63255         * modules/unictype/category-Cc: New file.
63256         * modules/unictype/category-Cf: New file.
63257         * modules/unictype/category-Cs: New file.
63258         * modules/unictype/category-Co: New file.
63259         * modules/unictype/category-Cn: New file.
63260         * modules/unictype/category-or: New file.
63261         * modules/unictype/category-of: New file.
63262         * modules/unictype/category-test: New file.
63263         * modules/unictype/category-test-withtable: New file.
63264         * modules/unictype/category-byname: New file.
63265         * modules/unictype/category-none: New file.
63266         * modules/unictype/category-and: New file.
63267         * modules/unictype/category-and-not: New file.
63268         * modules/unictype/category-name: New file.
63269         * modules/unictype/combining-class: New file.
63270         * modules/unictype/category-all: New file.
63271         * modules/unictype/bidicategory-all: New file.
63272         * modules/unictype/bidicategory-byname: New file.
63273         * modules/unictype/bidicategory-name: New file.
63274         * modules/unictype/bidicategory-of: New file.
63275         * modules/unictype/bidicategory-test: New file.
63276         * modules/unictype/decimal-digit: New file.
63277         * modules/unictype/digit: New file.
63278         * modules/unictype/numeric: New file.
63279         * modules/unictype/mirror: New file.
63280         * modules/unictype/property-white-space: New file.
63281         * modules/unictype/property-alphabetic: New file.
63282         * modules/unictype/property-other-alphabetic: New file.
63283         * modules/unictype/property-not-a-character: New file.
63284         * modules/unictype/property-default-ignorable-code-point: New file.
63285         * modules/unictype/property-other-default-ignorable-code-point: New
63286         file.
63287         * modules/unictype/property-deprecated: New file.
63288         * modules/unictype/property-logical-order-exception: New file.
63289         * modules/unictype/property-variation-selector: New file.
63290         * modules/unictype/property-private-use: New file.
63291         * modules/unictype/property-unassigned-code-value: New file.
63292         * modules/unictype/property-uppercase: New file.
63293         * modules/unictype/property-other-uppercase: New file.
63294         * modules/unictype/property-lowercase: New file.
63295         * modules/unictype/property-other-lowercase: New file.
63296         * modules/unictype/property-titlecase: New file.
63297         * modules/unictype/property-soft-dotted: New file.
63298         * modules/unictype/property-id-start: New file.
63299         * modules/unictype/property-other-id-start: New file.
63300         * modules/unictype/property-id-continue: New file.
63301         * modules/unictype/property-other-id-continue: New file.
63302         * modules/unictype/property-xid-start: New file.
63303         * modules/unictype/property-xid-continue: New file.
63304         * modules/unictype/property-pattern-white-space: New file.
63305         * modules/unictype/property-pattern-syntax: New file.
63306         * modules/unictype/property-join-control: New file.
63307         * modules/unictype/property-grapheme-base: New file.
63308         * modules/unictype/property-grapheme-extend: New file.
63309         * modules/unictype/property-other-grapheme-extend: New file.
63310         * modules/unictype/property-grapheme-link: New file.
63311         * modules/unictype/property-bidi-control: New file.
63312         * modules/unictype/property-bidi-left-to-right: New file.
63313         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63314         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63315         * modules/unictype/property-bidi-european-digit: New file.
63316         * modules/unictype/property-bidi-eur-num-separator: New file.
63317         * modules/unictype/property-bidi-eur-num-terminator: New file.
63318         * modules/unictype/property-bidi-arabic-digit: New file.
63319         * modules/unictype/property-bidi-common-separator: New file.
63320         * modules/unictype/property-bidi-block-separator: New file.
63321         * modules/unictype/property-bidi-segment-separator: New file.
63322         * modules/unictype/property-bidi-whitespace: New file.
63323         * modules/unictype/property-bidi-non-spacing-mark: New file.
63324         * modules/unictype/property-bidi-boundary-neutral: New file.
63325         * modules/unictype/property-bidi-pdf: New file.
63326         * modules/unictype/property-bidi-embedding-or-override: New file.
63327         * modules/unictype/property-bidi-other-neutral: New file.
63328         * modules/unictype/property-hex-digit: New file.
63329         * modules/unictype/property-ascii-hex-digit: New file.
63330         * modules/unictype/property-ideographic: New file.
63331         * modules/unictype/property-unified-ideograph: New file.
63332         * modules/unictype/property-radical: New file.
63333         * modules/unictype/property-ids-binary-operator: New file.
63334         * modules/unictype/property-ids-trinary-operator: New file.
63335         * modules/unictype/property-zero-width: New file.
63336         * modules/unictype/property-space: New file.
63337         * modules/unictype/property-non-break: New file.
63338         * modules/unictype/property-iso-control: New file.
63339         * modules/unictype/property-format-control: New file.
63340         * modules/unictype/property-dash: New file.
63341         * modules/unictype/property-hyphen: New file.
63342         * modules/unictype/property-punctuation: New file.
63343         * modules/unictype/property-line-separator: New file.
63344         * modules/unictype/property-paragraph-separator: New file.
63345         * modules/unictype/property-quotation-mark: New file.
63346         * modules/unictype/property-sentence-terminal: New file.
63347         * modules/unictype/property-terminal-punctuation: New file.
63348         * modules/unictype/property-currency-symbol: New file.
63349         * modules/unictype/property-math: New file.
63350         * modules/unictype/property-other-math: New file.
63351         * modules/unictype/property-paired-punctuation: New file.
63352         * modules/unictype/property-left-of-pair: New file.
63353         * modules/unictype/property-combining: New file.
63354         * modules/unictype/property-composite: New file.
63355         * modules/unictype/property-decimal-digit: New file.
63356         * modules/unictype/property-numeric: New file.
63357         * modules/unictype/property-diacritic: New file.
63358         * modules/unictype/property-extender: New file.
63359         * modules/unictype/property-ignorable-control: New file.
63360         * modules/unictype/property-test: New file.
63361         * modules/unictype/property-byname: New file.
63362         * modules/unictype/property-all: New file.
63363         * modules/unictype/scripts: New file.
63364         * modules/unictype/scripts-all: New file.
63365         * modules/unictype/block-of: New file.
63366         * modules/unictype/block-test: New file.
63367         * modules/unictype/block-list: New file.
63368         * modules/unictype/block-all: New file.
63369         * modules/unictype/syntax-c-whitespace: New file.
63370         * modules/unictype/syntax-java-whitespace: New file.
63371         * modules/unictype/syntax-c-ident: New file.
63372         * modules/unictype/syntax-java-ident: New file.
63373         * modules/unictype/ctype-alnum: New file.
63374         * modules/unictype/ctype-alpha: New file.
63375         * modules/unictype/ctype-cntrl: New file.
63376         * modules/unictype/ctype-digit: New file.
63377         * modules/unictype/ctype-graph: New file.
63378         * modules/unictype/ctype-lower: New file.
63379         * modules/unictype/ctype-print: New file.
63380         * modules/unictype/ctype-punct: New file.
63381         * modules/unictype/ctype-space: New file.
63382         * modules/unictype/ctype-upper: New file.
63383         * modules/unictype/ctype-xdigit: New file.
63384         * modules/unictype/ctype-blank: New file.
63385         * lib/unictype/bidi_byname.c: New file.
63386         * lib/unictype/bidi_name.c: New file.
63387         * lib/unictype/bidi_of.c: New file.
63388         * lib/unictype/bidi_test.c: New file.
63389         * lib/unictype/bitmap.h: New file.
63390         * lib/unictype/block_test.c: New file.
63391         * lib/unictype/blocks.c: New file.
63392         * lib/unictype/categ_C.c: New file.
63393         * lib/unictype/categ_Cc.c: New file.
63394         * lib/unictype/categ_Cf.c: New file.
63395         * lib/unictype/categ_Cn.c: New file.
63396         * lib/unictype/categ_Co.c: New file.
63397         * lib/unictype/categ_Cs.c: New file.
63398         * lib/unictype/categ_L.c: New file.
63399         * lib/unictype/categ_Ll.c: New file.
63400         * lib/unictype/categ_Lm.c: New file.
63401         * lib/unictype/categ_Lo.c: New file.
63402         * lib/unictype/categ_Lt.c: New file.
63403         * lib/unictype/categ_Lu.c: New file.
63404         * lib/unictype/categ_M.c: New file.
63405         * lib/unictype/categ_Mc.c: New file.
63406         * lib/unictype/categ_Me.c: New file.
63407         * lib/unictype/categ_Mn.c: New file.
63408         * lib/unictype/categ_N.c: New file.
63409         * lib/unictype/categ_Nd.c: New file.
63410         * lib/unictype/categ_Nl.c: New file.
63411         * lib/unictype/categ_No.c: New file.
63412         * lib/unictype/categ_P.c: New file.
63413         * lib/unictype/categ_Pc.c: New file.
63414         * lib/unictype/categ_Pd.c: New file.
63415         * lib/unictype/categ_Pe.c: New file.
63416         * lib/unictype/categ_Pf.c: New file.
63417         * lib/unictype/categ_Pi.c: New file.
63418         * lib/unictype/categ_Po.c: New file.
63419         * lib/unictype/categ_Ps.c: New file.
63420         * lib/unictype/categ_S.c: New file.
63421         * lib/unictype/categ_Sc.c: New file.
63422         * lib/unictype/categ_Sk.c: New file.
63423         * lib/unictype/categ_Sm.c: New file.
63424         * lib/unictype/categ_So.c: New file.
63425         * lib/unictype/categ_Z.c: New file.
63426         * lib/unictype/categ_Zl.c: New file.
63427         * lib/unictype/categ_Zp.c: New file.
63428         * lib/unictype/categ_Zs.c: New file.
63429         * lib/unictype/categ_and.c: New file.
63430         * lib/unictype/categ_and_not.c: New file.
63431         * lib/unictype/categ_byname.c: New file.
63432         * lib/unictype/categ_name.c: New file.
63433         * lib/unictype/categ_none.c: New file.
63434         * lib/unictype/categ_of.c: New file.
63435         * lib/unictype/categ_or.c: New file.
63436         * lib/unictype/categ_test.c: New file.
63437         * lib/unictype/combining.c: New file.
63438         * lib/unictype/ctype_alnum.c: New file.
63439         * lib/unictype/ctype_alpha.c: New file.
63440         * lib/unictype/ctype_blank.c: New file.
63441         * lib/unictype/ctype_cntrl.c: New file.
63442         * lib/unictype/ctype_digit.c: New file.
63443         * lib/unictype/ctype_graph.c: New file.
63444         * lib/unictype/ctype_lower.c: New file.
63445         * lib/unictype/ctype_print.c: New file.
63446         * lib/unictype/ctype_punct.c: New file.
63447         * lib/unictype/ctype_space.c: New file.
63448         * lib/unictype/ctype_upper.c: New file.
63449         * lib/unictype/ctype_xdigit.c: New file.
63450         * lib/unictype/decdigit.c: New file.
63451         * lib/unictype/digit.c: New file.
63452         * lib/unictype/identsyntaxmap.h: New file.
63453         * lib/unictype/mirror.c: New file.
63454         * lib/unictype/numeric.c: New file.
63455         * lib/unictype/pr_alphabetic.c: New file.
63456         * lib/unictype/pr_ascii_hex_digit.c: New file.
63457         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63458         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63459         * lib/unictype/pr_bidi_block_separator.c: New file.
63460         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63461         * lib/unictype/pr_bidi_common_separator.c: New file.
63462         * lib/unictype/pr_bidi_control.c: New file.
63463         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63464         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63465         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63466         * lib/unictype/pr_bidi_european_digit.c: New file.
63467         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63468         * lib/unictype/pr_bidi_left_to_right.c: New file.
63469         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63470         * lib/unictype/pr_bidi_other_neutral.c: New file.
63471         * lib/unictype/pr_bidi_pdf.c: New file.
63472         * lib/unictype/pr_bidi_segment_separator.c: New file.
63473         * lib/unictype/pr_bidi_whitespace.c: New file.
63474         * lib/unictype/pr_byname.c: New file.
63475         * lib/unictype/pr_byname.gperf: New file.
63476         * lib/unictype/pr_combining.c: New file.
63477         * lib/unictype/pr_composite.c: New file.
63478         * lib/unictype/pr_currency_symbol.c: New file.
63479         * lib/unictype/pr_dash.c: New file.
63480         * lib/unictype/pr_decimal_digit.c: New file.
63481         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63482         * lib/unictype/pr_deprecated.c: New file.
63483         * lib/unictype/pr_diacritic.c: New file.
63484         * lib/unictype/pr_extender.c: New file.
63485         * lib/unictype/pr_format_control.c: New file.
63486         * lib/unictype/pr_grapheme_base.c: New file.
63487         * lib/unictype/pr_grapheme_extend.c: New file.
63488         * lib/unictype/pr_grapheme_link.c: New file.
63489         * lib/unictype/pr_hex_digit.c: New file.
63490         * lib/unictype/pr_hyphen.c: New file.
63491         * lib/unictype/pr_id_continue.c: New file.
63492         * lib/unictype/pr_id_start.c: New file.
63493         * lib/unictype/pr_ideographic.c: New file.
63494         * lib/unictype/pr_ids_binary_operator.c: New file.
63495         * lib/unictype/pr_ids_trinary_operator.c: New file.
63496         * lib/unictype/pr_ignorable_control.c: New file.
63497         * lib/unictype/pr_iso_control.c: New file.
63498         * lib/unictype/pr_join_control.c: New file.
63499         * lib/unictype/pr_left_of_pair.c: New file.
63500         * lib/unictype/pr_line_separator.c: New file.
63501         * lib/unictype/pr_logical_order_exception.c: New file.
63502         * lib/unictype/pr_lowercase.c: New file.
63503         * lib/unictype/pr_math.c: New file.
63504         * lib/unictype/pr_non_break.c: New file.
63505         * lib/unictype/pr_not_a_character.c: New file.
63506         * lib/unictype/pr_numeric.c: New file.
63507         * lib/unictype/pr_other_alphabetic.c: New file.
63508         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63509         * lib/unictype/pr_other_grapheme_extend.c: New file.
63510         * lib/unictype/pr_other_id_continue.c: New file.
63511         * lib/unictype/pr_other_id_start.c: New file.
63512         * lib/unictype/pr_other_lowercase.c: New file.
63513         * lib/unictype/pr_other_math.c: New file.
63514         * lib/unictype/pr_other_uppercase.c: New file.
63515         * lib/unictype/pr_paired_punctuation.c: New file.
63516         * lib/unictype/pr_paragraph_separator.c: New file.
63517         * lib/unictype/pr_pattern_syntax.c: New file.
63518         * lib/unictype/pr_pattern_white_space.c: New file.
63519         * lib/unictype/pr_private_use.c: New file.
63520         * lib/unictype/pr_punctuation.c: New file.
63521         * lib/unictype/pr_quotation_mark.c: New file.
63522         * lib/unictype/pr_radical.c: New file.
63523         * lib/unictype/pr_sentence_terminal.c: New file.
63524         * lib/unictype/pr_soft_dotted.c: New file.
63525         * lib/unictype/pr_space.c: New file.
63526         * lib/unictype/pr_terminal_punctuation.c: New file.
63527         * lib/unictype/pr_test.c: New file.
63528         * lib/unictype/pr_titlecase.c: New file.
63529         * lib/unictype/pr_unassigned_code_value.c: New file.
63530         * lib/unictype/pr_unified_ideograph.c: New file.
63531         * lib/unictype/pr_uppercase.c: New file.
63532         * lib/unictype/pr_variation_selector.c: New file.
63533         * lib/unictype/pr_white_space.c: New file.
63534         * lib/unictype/pr_xid_continue.c: New file.
63535         * lib/unictype/pr_xid_start.c: New file.
63536         * lib/unictype/pr_zero_width.c: New file.
63537         * lib/unictype/scripts.c: New file.
63538         * lib/unictype/sy_c_ident.c: New file.
63539         * lib/unictype/sy_c_whitespace.c: New file.
63540         * lib/unictype/sy_java_ident.c: New file.
63541         * lib/unictype/sy_java_whitespace.c: New file.
63542
63543         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63544         Unicode 5.0.0.
63545         * lib/unictype/blocks.h: Likewise.
63546         * lib/unictype/categ_C.h: Likewise.
63547         * lib/unictype/categ_Cc.h: Likewise.
63548         * lib/unictype/categ_Cf.h: Likewise.
63549         * lib/unictype/categ_Cn.h: Likewise.
63550         * lib/unictype/categ_Co.h: Likewise.
63551         * lib/unictype/categ_Cs.h: Likewise.
63552         * lib/unictype/categ_L.h: Likewise.
63553         * lib/unictype/categ_Ll.h: Likewise.
63554         * lib/unictype/categ_Lm.h: Likewise.
63555         * lib/unictype/categ_Lo.h: Likewise.
63556         * lib/unictype/categ_Lt.h: Likewise.
63557         * lib/unictype/categ_Lu.h: Likewise.
63558         * lib/unictype/categ_M.h: Likewise.
63559         * lib/unictype/categ_Mc.h: Likewise.
63560         * lib/unictype/categ_Me.h: Likewise.
63561         * lib/unictype/categ_Mn.h: Likewise.
63562         * lib/unictype/categ_N.h: Likewise.
63563         * lib/unictype/categ_Nd.h: Likewise.
63564         * lib/unictype/categ_Nl.h: Likewise.
63565         * lib/unictype/categ_No.h: Likewise.
63566         * lib/unictype/categ_P.h: Likewise.
63567         * lib/unictype/categ_Pc.h: Likewise.
63568         * lib/unictype/categ_Pd.h: Likewise.
63569         * lib/unictype/categ_Pe.h: Likewise.
63570         * lib/unictype/categ_Pf.h: Likewise.
63571         * lib/unictype/categ_Pi.h: Likewise.
63572         * lib/unictype/categ_Po.h: Likewise.
63573         * lib/unictype/categ_Ps.h: Likewise.
63574         * lib/unictype/categ_S.h: Likewise.
63575         * lib/unictype/categ_Sc.h: Likewise.
63576         * lib/unictype/categ_Sk.h: Likewise.
63577         * lib/unictype/categ_Sm.h: Likewise.
63578         * lib/unictype/categ_So.h: Likewise.
63579         * lib/unictype/categ_Z.h: Likewise.
63580         * lib/unictype/categ_Zl.h: Likewise.
63581         * lib/unictype/categ_Zp.h: Likewise.
63582         * lib/unictype/categ_Zs.h: Likewise.
63583         * lib/unictype/categ_of.h: Likewise.
63584         * lib/unictype/combining.h: Likewise.
63585         * lib/unictype/ctype_alnum.h: Likewise.
63586         * lib/unictype/ctype_alpha.h: Likewise.
63587         * lib/unictype/ctype_blank.h: Likewise.
63588         * lib/unictype/ctype_cntrl.h: Likewise.
63589         * lib/unictype/ctype_digit.h: Likewise.
63590         * lib/unictype/ctype_graph.h: Likewise.
63591         * lib/unictype/ctype_lower.h: Likewise.
63592         * lib/unictype/ctype_print.h: Likewise.
63593         * lib/unictype/ctype_punct.h: Likewise.
63594         * lib/unictype/ctype_space.h: Likewise.
63595         * lib/unictype/ctype_upper.h: Likewise.
63596         * lib/unictype/ctype_xdigit.h: Likewise.
63597         * lib/unictype/decdigit.h: Likewise.
63598         * lib/unictype/digit.h: Likewise.
63599         * lib/unictype/mirror.h: Likewise.
63600         * lib/unictype/numeric.h: Likewise.
63601         * lib/unictype/pr_alphabetic.h: Likewise.
63602         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63603         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63604         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63605         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63606         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63607         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63608         * lib/unictype/pr_bidi_control.h: Likewise.
63609         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63610         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63611         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63612         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63613         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63614         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63615         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63616         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63617         * lib/unictype/pr_bidi_pdf.h: Likewise.
63618         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63619         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63620         * lib/unictype/pr_combining.h: Likewise.
63621         * lib/unictype/pr_composite.h: Likewise.
63622         * lib/unictype/pr_currency_symbol.h: Likewise.
63623         * lib/unictype/pr_dash.h: Likewise.
63624         * lib/unictype/pr_decimal_digit.h: Likewise.
63625         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63626         * lib/unictype/pr_deprecated.h: Likewise.
63627         * lib/unictype/pr_diacritic.h: Likewise.
63628         * lib/unictype/pr_extender.h: Likewise.
63629         * lib/unictype/pr_format_control.h: Likewise.
63630         * lib/unictype/pr_grapheme_base.h: Likewise.
63631         * lib/unictype/pr_grapheme_extend.h: Likewise.
63632         * lib/unictype/pr_grapheme_link.h: Likewise.
63633         * lib/unictype/pr_hex_digit.h: Likewise.
63634         * lib/unictype/pr_hyphen.h: Likewise.
63635         * lib/unictype/pr_id_continue.h: Likewise.
63636         * lib/unictype/pr_id_start.h: Likewise.
63637         * lib/unictype/pr_ideographic.h: Likewise.
63638         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63639         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63640         * lib/unictype/pr_ignorable_control.h: Likewise.
63641         * lib/unictype/pr_iso_control.h: Likewise.
63642         * lib/unictype/pr_join_control.h: Likewise.
63643         * lib/unictype/pr_left_of_pair.h: Likewise.
63644         * lib/unictype/pr_line_separator.h: Likewise.
63645         * lib/unictype/pr_logical_order_exception.h: Likewise.
63646         * lib/unictype/pr_lowercase.h: Likewise.
63647         * lib/unictype/pr_math.h: Likewise.
63648         * lib/unictype/pr_non_break.h: Likewise.
63649         * lib/unictype/pr_not_a_character.h: Likewise.
63650         * lib/unictype/pr_numeric.h: Likewise.
63651         * lib/unictype/pr_other_alphabetic.h: Likewise.
63652         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63653         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63654         * lib/unictype/pr_other_id_continue.h: Likewise.
63655         * lib/unictype/pr_other_id_start.h: Likewise.
63656         * lib/unictype/pr_other_lowercase.h: Likewise.
63657         * lib/unictype/pr_other_math.h: Likewise.
63658         * lib/unictype/pr_other_uppercase.h: Likewise.
63659         * lib/unictype/pr_paired_punctuation.h: Likewise.
63660         * lib/unictype/pr_paragraph_separator.h: Likewise.
63661         * lib/unictype/pr_pattern_syntax.h: Likewise.
63662         * lib/unictype/pr_pattern_white_space.h: Likewise.
63663         * lib/unictype/pr_private_use.h: Likewise.
63664         * lib/unictype/pr_punctuation.h: Likewise.
63665         * lib/unictype/pr_quotation_mark.h: Likewise.
63666         * lib/unictype/pr_radical.h: Likewise.
63667         * lib/unictype/pr_sentence_terminal.h: Likewise.
63668         * lib/unictype/pr_soft_dotted.h: Likewise.
63669         * lib/unictype/pr_space.h: Likewise.
63670         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63671         * lib/unictype/pr_titlecase.h: Likewise.
63672         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63673         * lib/unictype/pr_unified_ideograph.h: Likewise.
63674         * lib/unictype/pr_uppercase.h: Likewise.
63675         * lib/unictype/pr_variation_selector.h: Likewise.
63676         * lib/unictype/pr_white_space.h: Likewise.
63677         * lib/unictype/pr_xid_continue.h: Likewise.
63678         * lib/unictype/pr_xid_start.h: Likewise.
63679         * lib/unictype/pr_zero_width.h: Likewise.
63680         * lib/unictype/scripts.h: Likewise.
63681         * lib/unictype/scripts_byname.gperf: Likewise.
63682         * lib/unictype/sy_c_ident.h: Likewise.
63683         * lib/unictype/sy_c_whitespace.h: Likewise.
63684         * lib/unictype/sy_java_ident.h: Likewise.
63685         * lib/unictype/sy_java_whitespace.h: Likewise.
63686
63687         * lib/unictype/Makefile: New file.
63688         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63689         glibc.
63690         * lib/unictype/3level.h: New file, copied from glibc.
63691         * lib/unictype/3levelbit.h: New file.
63692
63693 2007-11-11  Bruno Haible  <bruno@clisp.org>
63694
63695         * modules/gperf: New file.
63696         * modules/iconv_open (Depends-on): Add it.
63697         (Makefile.am): Remove the GPERF definition.
63698
63699 2007-11-11  Bruno Haible  <bruno@clisp.org>
63700
63701         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63702         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63703
63704 2007-11-11  Bruno Haible  <bruno@clisp.org>
63705
63706         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63707         (usage): Remove function.
63708
63709 2007-11-11  Bruno Haible  <bruno@clisp.org>
63710
63711         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63712         gl_FUNC_CEILF_LIBS.
63713         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63714         gl_FUNC_CEIL_LIBS.
63715         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63716         gl_FUNC_CEILL_LIBS.
63717         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63718         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63719         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63720
63721 2007-11-11  Bruno Haible  <bruno@clisp.org>
63722
63723         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63724         roundf were declared but do not exist on functions.
63725         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63726         roundl were declared but do not exist on functions.
63727         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63728         HAVE_FLOORL_AND_CEILL, respectively.
63729         Needed for Sun C on Solaris 10.
63730
63731 2007-11-11  Bruno Haible  <bruno@clisp.org>
63732
63733         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63734         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63735         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63736         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63737         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63738         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63739         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63740         HAVE_DECL_ROUNDF.
63741         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63742         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63744         of HAVE_DECL_ROUND*.
63745         * modules/math (Makefile.am): Update.
63746
63747 2007-11-10  Bruno Haible  <bruno@clisp.org>
63748
63749         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63750         ptrdiff_t as m4/intl.m4.
63751
63752 2007-11-10  Jim Meyering  <meyering@redhat.com>
63753
63754         Avoid link failure for the argmatch test.
63755         * tests/test-argmatch.c (usage): Define function to avoid a link
63756         failure: argmatch_die requires a usage function.
63757
63758 2007-11-09  Bruno Haible  <bruno@clisp.org>
63759
63760         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63761         * doc/functions/vsnprintf.texi: Likewise.
63762         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63763         with a size argument < 2.
63764
63765 2007-11-09  Bruno Haible  <bruno@clisp.org>
63766
63767         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63768         buffer. Fixes an inefficiency introduced on 2007-11-03.
63769
63770 2007-11-09  Bruno Haible  <bruno@clisp.org>
63771
63772         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63773         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63774
63775 2007-11-08  Jim Meyering  <meyering@redhat.com>
63776
63777         Change cache variable name prefix "jm_" to "gl_" everywhere.
63778         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63779         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63780         * m4/uptime.m4: s/gl_/jm_/
63781
63782 2007-11-07  Bruno Haible  <bruno@clisp.org>
63783
63784         Update to GNU gettext 0.17.
63785         * m4/intl.m4: Update to GNU gettext 0.17.
63786         * m4/po.m4: Likewise.
63787         * modules/gettext (Files): Remove m4/ulonglong.m4.
63788         (configure.ac): Require gettext infrastructure from version 0.17.
63789
63790 2007-11-06  Bruno Haible  <bruno@clisp.org>
63791
63792         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63793         symbolic values are not defined in a public header.
63794         * lib/freadable.c (freadable) [QNX]: Likewise.
63795         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63796         * lib/freading.c (freading) [QNX]: Likewise.
63797         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63798         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63799         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63800         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63801         Reported by Alain Magloire.
63802
63803         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63804
63805 2007-11-05  Bruno Haible  <bruno@clisp.org>
63806
63807         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63808         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63809         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63810         Reported by Eric Blake.
63811
63812 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63813             Bruno Haible  <bruno@clisp.org>
63814
63815         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63816         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63817         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63818         (malloc): Undefine also before including <stdlib.h>.
63819         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63820         Needed on OSF/1 4.0.
63821
63822 2007-11-05  Jim Meyering  <meyering@redhat.com>
63823
63824         git-version-gen: sync from coreutils.
63825         * build-aux/git-version-gen: Add comments.
63826         Change the first '-' to '.' in the snapshot version string,
63827         e.g., 6.9-377-08144 -> 6.9.377-08144
63828         Remove first parameter.
63829         Don't declare a version "-dirty" merely because a time
63830         stamp has changed.
63831
63832 2007-11-04  Bruno Haible  <bruno@clisp.org>
63833
63834         * lib/lock.h: Protect all macro definitions containing an 'if'
63835         statement through a "do { ... } while (0)".
63836         * lib/tls.h: Likewise.
63837
63838 2007-11-04  Bruno Haible  <bruno@clisp.org>
63839
63840         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63841
63842 2007-11-04  Bruno Haible  <bruno@clisp.org>
63843
63844         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63845         * modules/fprintf-posix (Depends-on): Add nocrash.
63846         * modules/snprintf-posix (Depends-on): Likewise.
63847         * modules/sprintf-posix (Depends-on): Likewise.
63848         * modules/vasnprintf-posix (Depends-on): Likewise.
63849         * modules/vasprintf-posix (Depends-on): Likewise.
63850         * modules/vfprintf-posix (Depends-on): Likewise.
63851         * modules/vsnprintf-posix (Depends-on): Likewise.
63852         * modules/vsprintf-posix (Depends-on): Likewise.
63853         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63854         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63855         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63856         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63857         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63858         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63859         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63860
63861 2007-11-04  Bruno Haible  <bruno@clisp.org>
63862
63863         * modules/nocrash: New file.
63864         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63865         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63866
63867 2007-11-04  Bruno Haible  <bruno@clisp.org>
63868
63869         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63870         precision handling.
63871         * tests/test-vasprintf-posix.c (test_function): Likewise.
63872         * tests/test-snprintf-posix.h (test_function): Likewise.
63873         * tests/test-sprintf-posix.h (test_function): Likewise.
63874
63875         Fix *printf behaviour for large precisions on mingw and BeOS.
63876         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63877         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63879         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63880         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63881         gl_PRINTF_PRECISION and test its result. Invoke
63882         gl_PREREQ_VASNPRINTF_PRECISION.
63883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63884         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63885         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63886         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63887         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63889         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63890         * doc/functions/fprintf.texi: Update.
63891         * doc/functions/printf.texi: Update.
63892         * doc/functions/snprintf.texi: Update.
63893         * doc/functions/sprintf.texi: Update.
63894         * doc/functions/vfprintf.texi: Update.
63895         * doc/functions/vprintf.texi: Update.
63896         * doc/functions/vsnprintf.texi: Update.
63897         * doc/functions/vsprintf.texi: Update.
63898
63899 2007-11-04  Bruno Haible  <bruno@clisp.org>
63900
63901         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63902
63903 2007-11-04  Bruno Haible  <bruno@clisp.org>
63904
63905         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63906         Reported by Sylvain Beucler <beuc@gnu.org>.
63907
63908 2007-11-03  Bruno Haible  <bruno@clisp.org>
63909
63910         * tests/test-fprintf-posix2.sh: New file.
63911         * tests/test-fprintf-posix2.c: New file.
63912         * modules/fprintf-posix-tests (Files): Add them.
63913         (TESTS): Add test-fprintf-posix2.sh.
63914         (configure.ac): Check for getrlimit and setrlimit.
63915         (check_PROGRAMS): Add test-fprintf-posix2.
63916
63917         * tests/test-printf-posix2.sh: New file.
63918         * tests/test-printf-posix2.c: New file.
63919         * modules/printf-posix-tests (Files): Add them.
63920         (TESTS): Add test-printf-posix2.sh.
63921         (configure.ac): Check for getrlimit and setrlimit.
63922         (check_PROGRAMS): Add test-printf-posix2.
63923
63924         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63925         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63926         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63927         (decode_double): New function, copied from decode_long_double.
63928         (scale10_round_decimal_decoded): New function, extracted from
63929         scale10_round_decimal_long_double.
63930         (scale10_round_decimal_long_double): Use it.
63931         (scale10_round_decimal_double): New function.
63932         (floorlog10): New function.
63933         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63935         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63936         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63937         gl_PRINTF_ENOMEM and test its result. Invoke
63938         gl_PREREQ_VASNPRINTF_ENOMEM.
63939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63940         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63942         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63946         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63947         * modules/snprintf-posix (Depends-on): Likewise.
63948         * modules/sprintf-posix (Depends-on): Likewise.
63949         * modules/vasnprintf-posix (Depends-on): Likewise.
63950         * modules/vasprintf-posix (Depends-on): Likewise.
63951         * modules/vfprintf-posix (Depends-on): Likewise.
63952         * modules/vsnprintf-posix (Depends-on): Likewise.
63953         * modules/vsprintf-posix (Depends-on): Likewise.
63954         * doc/functions/fprintf.texi: Update.
63955         * doc/functions/printf.texi: Update.
63956         * doc/functions/snprintf.texi: Update.
63957         * doc/functions/sprintf.texi: Update.
63958         * doc/functions/vfprintf.texi: Update.
63959         * doc/functions/vprintf.texi: Update.
63960         * doc/functions/vsnprintf.texi: Update.
63961         * doc/functions/vsprintf.texi: Update.
63962
63963 2007-11-03  Bruno Haible  <bruno@clisp.org>
63964
63965         * modules/frexp-nolibm-tests: New file.
63966
63967         * modules/frexp-nolibm: New file.
63968         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63969
63970 2007-11-03  Bruno Haible  <bruno@clisp.org>
63971
63972         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63973         value is C99 compliant.
63974         Needed for OSF/1 5.1.
63975
63976 2007-11-03  Bruno Haible  <bruno@clisp.org>
63977
63978         Fix out-of-memory handling of vasnprintf.
63979         * lib/printf-parse.c: Include <errno.h>.
63980         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63981         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63982         is already set.
63983
63984 2007-11-02  Eric Blake  <ebb9@byu.net>
63985
63986         Fix tests on cygwin.
63987         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63988
63989 2007-11-01  Bruno Haible  <bruno@clisp.org>
63990
63991         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63992         warning.
63993         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63994         needed for POSIX compatibility.
63995
63996 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63997
63998         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63999         for compatibility with GNU.
64000
64001 2007-11-01  Bruno Haible  <bruno@clisp.org>
64002
64003         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64004         (putenv): Renamed from rpl_putenv. Change argument type from
64005         'const char *' to 'char *'.
64006         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64007         of defining putenv in config.h, just set REPLACE_PUTENV.
64008         * modules/putenv (Depends-on): Add stdlib.
64009         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64010         (Include): Use <stdlib.h>.
64011         * lib/stdlib.in.h (putenv): New declaration.
64012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64013         REPLACE_PUTENV.
64014         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64015         REPLACE_PUTENV.
64016         Needed for MacOS X 10.5.0.
64017         Reported by Peter O'Gorman <peter@pogma.com>.
64018
64019 2007-11-01  Jim Meyering  <meyering@redhat.com>
64020
64021         Treat an empty date string exactly like "0".
64022         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64023         if the remaining date string (to be parsed) is empty, use "0".
64024         Reported by Mischa Molhoek and discussed in this thread:
64025         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64026
64027 2007-10-31  Bruno Haible  <bruno@clisp.org>
64028
64029         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64030         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64031         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64032         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64033         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64034         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64035
64036 2007-10-31  Bruno Haible  <bruno@clisp.org>
64037
64038         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64039         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64040         (AC_TYPE_LONG_LONG_INT): Use it.
64041         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64042         it as well.
64043         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64044         to m4/longlong.m4.
64045         * modules/stdint (Files): Remove m4/ulonglong.m4.
64046         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64047         m4/ulonglong.m4.
64048         * modules/strtoumax (Files): Likewise.
64049
64050 2007-10-30  Bruno Haible  <bruno@clisp.org>
64051
64052         * modules/xvasprintf-posix: New file.
64053         Suggested by Eric Blake.
64054
64055 2007-10-30  Bruno Haible  <bruno@clisp.org>
64056
64057         * modules/xprintf-posix-tests: New file.
64058         * tests/test-xprintf-posix.sh: New file.
64059         * tests/test-xprintf-posix.c: New file.
64060         * tests/test-xfprintf-posix.c: New file.
64061
64062         * modules/xprintf-posix: New file.
64063
64064 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64065
64066         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64067         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64068         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64069
64070 2007-10-29  Bruno Haible  <bruno@clisp.org>
64071
64072         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64073         contain the special marker '_cv_'.
64074         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64075         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64076         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64077         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64078         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64079         Reported by Ralf Wildenhues.
64080
64081 2007-10-29  Bruno Haible  <bruno@clisp.org>
64082
64083         * gnulib-tool (func_import): When --lgpl is not specified, set
64084         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64085         GPLv3.
64086         Reported by Simon Josefsson.
64087
64088 2007-10-28  Bruno Haible  <bruno@clisp.org>
64089
64090         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64091         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64092         HAVE_DECL_ISFINITE.
64093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64094         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64095         HAVE_DECL_ISFINITE.
64096
64097 2007-10-28  Bruno Haible  <bruno@clisp.org>
64098
64099         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64100         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64101
64102 2007-10-28  Bruno Haible  <bruno@clisp.org>
64103
64104         Fix link errors with Sun C 5.0 on Solaris 10.
64105         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64106         function is declared but not present in the compiler's libm.
64107         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64108         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64109         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64110         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64111         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64112         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64113         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64115         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64116         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64117         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64118         HAVE_DECL_FLOORL.
64119
64120 2007-10-28  Bruno Haible  <bruno@clisp.org>
64121
64122         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64123         gl_FUNC_FLOORL. Cache the result.
64124         (gl_FUNC_FLOORL): Use it.
64125         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64126         gl_FUNC_CEILL. Cache the result.
64127         (gl_FUNC_CEILL): Use it.
64128
64129         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64130         gl_FUNC_FLOOR. Cache the result.
64131         (gl_FUNC_FLOOR): Use it.
64132         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64133         gl_FUNC_CEIL. Cache the result.
64134         (gl_FUNC_CEIL): Use it.
64135
64136         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64137         gl_FUNC_FLOORF. Cache the result.
64138         (gl_FUNC_FLOORF): Use it.
64139         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64140         gl_FUNC_CEILF. Cache the result.
64141         (gl_FUNC_CEILF): Use it.
64142
64143 2007-10-28  Bruno Haible  <bruno@clisp.org>
64144
64145         * gnulib-tool: Allow specifying the LGPL version number through
64146         --lgpl=2 or --lgpl=3.
64147         (func_usage): Document --lgpl with argument.
64148         Handle --lgpl=... arguments.
64149         (func_import): Recognize also gl_LGPL calls with an argument. When
64150         --lgpl=2 is used and the module's license is just LGPL, report an
64151         error. Set sed_transform_lib_file according to the lgpl variable. In
64152         the generated files, use --lgpl or gl_LGPL invocations with argument,
64153         if necessary.
64154         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64155         an LGPv2+ license.
64156         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64157         gl_LGPL macro.
64158
64159 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64160             Bruno Haible  <bruno@clisp.org>
64161
64162         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64163         (u16_uctomb_aux): Likewise.
64164         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64165         !HAVE_INLINE.
64166         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64167
64168 2007-10-28  Bruno Haible  <bruno@clisp.org>
64169
64170         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64171         Invoke AM_GETTEXT_OPTION if it exists.
64172         * modules/vasprintf: Likewise.
64173         * modules/verror: Likewise.
64174         * modules/xprintf: Likewise.
64175         * modules/xvasprintf: Likewise.
64176
64177 2007-10-27  Ben Pfaff  <blp@gnu.org>
64178
64179         * lib/math.in.h: Define isfinite macro and prototypes for
64180         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64181         implementations.
64182         * m4/math_h.m4: New substitutions for isfinite module.
64183         * lib/isfinite.c: New file.
64184         * m4/isfinite.m4: New file.
64185         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64186         * modules/isfinite: New file.
64187         * modules/isfinite-tests: New file.
64188         * tests/tests-isfinite.c: New file.
64189         * doc/functions/isfinite.texi: Mention isfinite module.
64190         * MODULES.html.sh: Mention new module.
64191
64192 2007-10-27  Ben Pfaff  <blp@gnu.org>
64193
64194         Ralf Wildenhues reported that Tru64 4.0D declares the round
64195         functions but does not have definitions.
64196         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64197         cannot be found in any library, set the output variable to
64198         "missing" instead of "".
64199         * m4/round.m4: Also use our substitute if we cannot find round in
64200         any library, even if it is declared.
64201         * m4/roundf.m4: Likewise for roundf.
64202         * m4/roundl.m4: Likewise for roundl.
64203         * lib/math.in.h: Undefine roundf, round, roundl before defining
64204         their replacements, to allow for hypothetical systems where these
64205         may be defined as macros but not available in libraries.
64206
64207 2007-10-27  Bruno Haible  <bruno@clisp.org>
64208
64209         * doc/gnulib.texi: Invoke @firstparagraphindent.
64210         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64211         changes in gnulib.
64212         (Source changes): New section.
64213
64214 2007-10-26  Bruno Haible  <bruno@clisp.org>
64215
64216         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64217         borrowed from autoconf.
64218
64219 2007-10-26  Bruno Haible  <bruno@clisp.org>
64220
64221         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64222         strerror returned the empty string. Needed on HP-UX 11.00.
64223
64224 2007-10-24  Micah Cowan  <micah@cowan.name>
64225
64226         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64227         * build-aux/bootstrap: Remove support for now-unnecessary option,
64228         --cvs-user, and envvars CVS_USER, CVS_RSH.
64229
64230 2007-10-24  Jim Meyering  <meyering@redhat.com>
64231
64232         Avoid diagnostics from sha1sum when there is no cached checksum.
64233         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64234         if the po.s1 file hasn't been created yet.
64235
64236         * build-aux/bootstrap: Sync from coreutils:
64237         2007-10-24  Jim Meyering  <meyering@redhat.com>
64238         Get gnulib from the git repository, not from an obsolete cvs one.
64239         * build-aux/bootstrap: Suggestion from Micah Cowan.
64240         2007-10-04  Jim Meyering  <jim@meyering.net>
64241         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64242         (update_po_files): Work also when there are no .po files in po/.
64243
64244 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64245
64246         * README: Append ".git" to git and cg examples.
64247         Problem reported by Benoit Sigoure.
64248
64249 2007-10-23  Micah Cowan  <micah@cowan.name>
64250
64251         * users.txt: Add wget.
64252
64253 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64254
64255         Fix linking of some unistdio tests on FreeBSD.
64256         * modules/unistdio/u16-vsnprintf-tests
64257         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64258         * modules/unistdio/u16-vsprintf-tests
64259         (test_u16_vsnprintf1_LDADD): Likewise.
64260         * modules/unistdio/u32-vsnprintf-tests
64261         (test_u32_vsnprintf1_LDADD): Likewise.
64262         * modules/unistdio/u32-vsprintf-tests
64263         (test_u32_vsprintf1_LDADD): Likewise.
64264         * modules/unistdio/u8-vsnprintf-tests
64265         (test_u8_vsnprintf1_LDADD): Likewise.
64266         * modules/unistdio/u8-vsprintf-tests
64267         (test_u8_vsprintf1_LDADD): Likewise.
64268         * modules/unistdio/ulc-vsnprintf-tests
64269         (test_ulc_vsnprintf1_LDADD): Likewise.
64270         * modules/unistdio/ulc-vsprintf-tests
64271         (test_ulc_vsprintf1_LDADD): Likewise.
64272
64273         Fix linking of some uniconv tests on FreeBSD.
64274         * modules/uniconv/u16-conv-from-enc-tests
64275         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64276         * modules/uniconv/u16-conv-to-enc-tests
64277         (test_u16_conv_to_enc_LDADD): Likewise.
64278         * modules/uniconv/u16-strconv-from-enc-tests
64279         (test_u16_strconv_from_enc_LDADD): Likewise.
64280         * modules/uniconv/u16-strconv-to-enc-tests
64281         (test_u16_strconv_to_enc_LDADD): Likewise.
64282         * modules/uniconv/u32-conv-from-enc-tests
64283         (test_u32_conv_from_enc_LDADD): Likewise.
64284         * modules/uniconv/u32-conv-to-enc-tests
64285         (test_u32_conv_to_enc_LDADD): Likewise.
64286         * modules/uniconv/u32-strconv-from-enc-tests
64287         (test_u32_strconv_from_enc_LDADD): Likewise.
64288         * modules/uniconv/u32-strconv-to-enc-tests
64289         (test_u32_strconv_to_enc_LDADD): Likewise.
64290         * modules/uniconv/u8-conv-from-enc-tests
64291         (test_u8_conv_from_enc_LDADD): Likewise.
64292         * modules/uniconv/u8-conv-to-enc-tests
64293         (test_u8_conv_to_enc_LDADD): Likewise.
64294         * modules/uniconv/u8-strconv-from-enc-tests
64295         (test_u8_strconv_from_enc_LDADD): Likewise.
64296         * modules/uniconv/u8-strconv-to-enc-tests
64297         (test_u8_strconv_to_enc_LDADD): Likewise.
64298
64299 2007-10-22  Bruno Haible  <bruno@clisp.org>
64300
64301         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64302         size.
64303
64304 2007-10-22  Eric Blake  <ebb9@byu.net>
64305
64306         Tweak x*printf documentation.
64307         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64308         variable name and comments.
64309         Suggested by Bruno Haible.
64310
64311 2007-10-22  Bruno Haible  <bruno@clisp.org>
64312
64313         * lib/acl.c (copy_acl): Fix file name in comment.
64314
64315 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64316
64317         Fix Tru64 problem with stdbool.h.
64318         * lib/stdbool.in.h (false, true):
64319         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64320         Don't declare as an enum in this situation; it runs afoul of Tru64.
64321         Problem reported by Steven M. Schweda in
64322         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64323
64324 2007-10-22  Eric Blake  <ebb9@byu.net>
64325
64326         Also wrap vf?printf.
64327         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64328         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64329         (xvprintf, xvfprintf): New functions.
64330
64331 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64332
64333         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64334         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64335
64336         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64337         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64338
64339 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64340
64341         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64342         by Bruno Haible.
64343
64344 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64345
64346         * lib/getloadavg.c
64347         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64348         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64349
64350         * tests/test-i-ring.c: Work for C89.
64351
64352 2007-10-22  Bruno Haible  <bruno@clisp.org>
64353
64354         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64355         -1u, in preprocessor expression, so that we don't test for the bug
64356         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64357         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64358
64359 2007-10-22  Eric Blake  <ebb9@byu.net>
64360
64361         * tests/test-yesno.sh: Silence stderr during test.
64362
64363 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64364
64365         * modules/crypto/gc-camellia: New file.
64366
64367         * m4/gc-camellia.m4: New file.
64368
64369         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64370
64371         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64372
64373 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64374
64375         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64376         --help to stdout.  Reported by sms@antinode.org (Steven
64377         M. Schweda).
64378
64379 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64380
64381         * users.txt: Fix link to libksba.
64382
64383 2007-10-21  Ben Pfaff  <blp@gnu.org>
64384
64385         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64386         round.c roundf implementation that depends on floorf and ceilf to
64387         be tested unconditionally.
64388
64389 2007-10-21  Ben Pfaff  <blp@gnu.org>
64390
64391         * m4/check-libm-func.m4: Removed.
64392         * m4/check-math-lib.m4: New file.
64393         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64394         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64395         definition and lack of AC_LIBOBJ([roundf]).
64396         * m4/roundl.m4: Ditto, and similarly for roundl.
64397         * modules/round: Reference new m4 file.
64398         * modules/roundf: Ditto.
64399         * modules/roundl: Ditto.
64400         * tests/test-round2.c (main): Use ROUND instead of round.
64401         Bug report from Bruno Haible.
64402
64403 2007-10-21  Bruno Haible  <bruno@clisp.org>
64404
64405         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64406         context.
64407
64408 2007-10-21  Bruno Haible  <bruno@clisp.org>
64409
64410         * tests/test-wcwidth.c (main): Allow negative result for some control
64411         characters.
64412
64413         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64414         Needed on OSF/1 5.1.
64415
64416 2007-10-21  Bruno Haible  <bruno@clisp.org>
64417
64418         * tests/test-floorf1.c: Include isnanf.h.
64419         (main): Use isnanf() instead of isnan().
64420         * tests/test-ceilf1.c: Include isnanf.h.
64421         (main): Use isnanf() instead of isnan().
64422         * tests/test-truncf1.c: Include isnanf.h.
64423         (main): Use isnanf() instead of isnan().
64424         * tests/test-roundf1.c: Include isnanf.h.
64425         (main): Use isnanf() instead of isnan().
64426
64427 2007-10-21  Eric Blake  <ebb9@byu.net>
64428
64429         * users.txt: Update URL for m4.
64430
64431 2007-10-21  Bruno Haible  <bruno@clisp.org>
64432
64433         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64434
64435 2007-10-21  Bruno Haible  <bruno@clisp.org>
64436
64437         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64438         Git's management files if the CVS files are not present.
64439
64440 2007-10-20  Bruno Haible  <bruno@clisp.org>
64441
64442         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64443         gcc-3.4.x.
64444
64445 2007-10-20  Ben Pfaff  <blp@gnu.org>
64446
64447         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64448         implementations.
64449         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64450         * lib/round.c: New file.
64451         * lib/roundf.c: New file.
64452         * lib/roundl.c: New file.
64453         * m4/round.m4: New file.
64454         * m4/roundf.m4: New file.
64455         * m4/roundl.m4: New file.
64456         * m4/check-libm-func-m4: New file.
64457         * modules/math: Replace round, roundf, roundl related @VARS@ in
64458         math.in.h.
64459         * modules/round: New file.
64460         * modules/round-tests: New file.
64461         * modules/roundf: New file.
64462         * modules/roundf-tests: New file.
64463         * modules/roundl: New file.
64464         * modules/roundl-tests: New file.
64465         * tests/test-round1.c: New file.
64466         * tests/test-round2.c: New file.
64467         * tests/test-roundf1.c: New file.
64468         * tests/test-roundf2.c: New file.
64469         * tests/test-roundl.c: New file.
64470         * doc/functions/round.texi: Mention round module.
64471         * doc/functions/roundf.texi: Mention roundf module.
64472         * doc/functions/roundl.texi: Mention roundl module.
64473         * MODULES.html.sh: Mention new modules.
64474         Thanks to Bruno Haible for suggestions.
64475
64476 2007-10-20  Jim Meyering  <meyering@redhat.com>
64477
64478         * lib/xprintf.c: Include <config.h> unconditionally.
64479
64480         Change xprintf's license to GPL.
64481         * modules/xprintf (License): s/LGPL/GPL/, since this module
64482         depends on modules (exit and exitfail) which are GPL.
64483         Suggestion from Bruno Haible.
64484
64485         xprintf fixes.
64486         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64487         Use a clearer diagnostic.
64488         Patch from Bruno Haible.
64489
64490 2007-10-20  Bruno Haible  <bruno@clisp.org>
64491
64492         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64493         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64494         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64495
64496 2007-10-20  Bruno Haible  <bruno@clisp.org>
64497
64498         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64499         precision in the comparison result > x - 1 or similar.
64500         * tests/test-ceilf2.c (correct_result_p): Likewise.
64501         * tests/test-truncf2.c (correct_result_p): Likewise.
64502         * tests/test-trunc2.c (correct_result_p): Likewise.
64503         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64504
64505 2007-10-20  Bruno Haible  <bruno@clisp.org>
64506
64507         * modules/ceil: New file.
64508         * m4/ceil.m4: New file.
64509         * doc/functions/ceil.texi: Mention the 'ceil' module.
64510
64511 2007-10-20  Bruno Haible  <bruno@clisp.org>
64512
64513         * modules/floor: New file.
64514         * m4/floor.m4: New file.
64515         * doc/functions/floor.texi: Mention the 'floor' module.
64516
64517 2007-10-20  Bruno Haible  <bruno@clisp.org>
64518
64519         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64520         of %a.
64521         * modules/floorf-tests (Depends-on): Likewise.
64522         * modules/truncf-tests (Depends-on): Likewise.
64523         * modules/trunc-tests (Depends-on): Likewise.
64524         Reported by Ben Pfaff.
64525
64526 2007-10-19  Jim Meyering  <meyering@redhat.com>
64527
64528         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64529         Don't bother testing specific errno values.  Just test ferror.
64530
64531         New module: xprintf
64532         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64533
64534 2007-10-19  Bruno Haible  <bruno@clisp.org>
64535
64536         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64537         syntax.
64538         * modules/javaexec (Makefile.am): Likewise.
64539         * modules/relocatable-prog (Makefile.am): Likewise.
64540         Suggested by Jim Meyering.
64541
64542 2007-10-18  Bruno Haible  <bruno@clisp.org>
64543
64544         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64545         Reported by Jim Meyering.
64546
64547 2007-10-18  Eric Blake  <ebb9@byu.net>
64548
64549         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64550
64551 2007-10-18  Bruno Haible  <bruno@clisp.org>
64552
64553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64554         the format string into writable memory. Needed in Fortify conditions.
64555
64556 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64557             Bruno Haible  <bruno@clisp.org>
64558
64559         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64560         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64561         * modules/trim (Depends-on): Add mbchar.
64562         (configure.ac): Add gl_FUNC_MBRTOWC.
64563         (Makefile.am): Augment lib_SOURCES.
64564
64565 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64566
64567         Modify glob.c to use fstatat and dirfd, to simplify it.
64568         Suggested by Eric Blake.
64569         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64570         Don't include <stdbool.h>; not used.
64571         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64572         (link_exists_p): Simplify implementation, since we can now assume
64573         dirfd and fstatat.
64574         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64575
64576 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64577
64578         * gnulib-tool (func_get_dependencies): Fix sed script to
64579         match only tests.
64580
64581 2007-10-17  Bruno Haible  <bruno@clisp.org>
64582
64583         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64584         allow locale names without encoding suffix.
64585         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64586         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64587
64588 2007-10-16  Bruno Haible  <bruno@clisp.org>
64589
64590         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64591         * lib/getgroups.c (getgroups): Likewise.
64592         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64593
64594 2007-10-16  Bruno Haible  <bruno@clisp.org>
64595
64596         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64597         * modules/malloc-posix (License): Likewise.
64598         * modules/realloc-posix (License): Likewise.
64599         * modules/calloc-posix (License): Likewise.
64600         * modules/intprops (License): Change from GPL to LGPL, with
64601         Paul Eggert's approval.
64602
64603 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64604
64605         Merge glibc changes into lib/glob.c.
64606
64607         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64608         2007-10-15 04:59:03 UTC.  Here are the changes:
64609
64610         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64611
64612         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64613
64614         * lib/glob.c: Add some branch prediction throughout.
64615
64616         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64617
64618         [BZ #5103]
64619         * lib/glob.c (glob): Recognize patterns starting \/.
64620
64621         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64622
64623         [BZ #3996]
64624         * lib/glob.c (attribute_hidden): Define if not defined.
64625         (glob): Unescape dirname, filename or username when needed and not
64626         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64627         is NULL.  Handle unescaped [ in pattern without closing ].
64628         Don't pass GLOB_CHECK down to recursive glob for directories.
64629         (__glob_pattern_type): New function.
64630         (__glob_pattern_p): Implement using __glob_pattern_type.
64631         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64632         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64633         Remove unreachable code.
64634
64635         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64636
64637         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64638         explain why there are no leaks.
64639
64640         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64641
64642         [BZ #3253]
64643         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64644         time, rather allocate increasingly bigger arrays of pointers, if
64645         possible with alloca, if too large with malloc.
64646
64647 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64648
64649         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64650         Problem reported by H.Merijn Brand in
64651         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64652         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64653         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64654
64655 2007-10-15  Bruno Haible  <bruno@clisp.org>
64656
64657         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64658         with explicit rpl_ prefix.
64659         * lib/fopen.c (fopen): Likewise.
64660         * lib/freopen.c (freopen): Likewise.
64661         * lib/iconv.c (iconv): Likewise.
64662         * lib/iconv_close.c (iconv_close): Likewise.
64663
64664 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64665
64666         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64667
64668 2007-10-15  Bruno Haible  <bruno@clisp.org>
64669
64670         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64671         <stddef.h> instead of <stdlib.h> since we only need NULL.
64672         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64673
64674 2007-10-15  Bruno Haible  <bruno@clisp.org>
64675
64676         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64677         Replace paragraph talking about LIBOBJS.
64678         Reported by Colin Watson <cjwatson@debian.org>.
64679
64680 2007-10-15  Bruno Haible  <bruno@clisp.org>
64681
64682         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64683         <stdlib.h> before using NULL.
64684
64685 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64686
64687         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64688         Reported by Albert Chin <china@thewrittenword.com>.
64689
64690 2007-10-14  Bruno Haible  <bruno@clisp.org>
64691
64692         * modules/iconv_open-utf-tests: New file.
64693         * tests/test-iconv-utf.c: New file.
64694
64695         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64696         * modules/iconv_open-utf: New file.
64697         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64698         (iconv, iconv_close): New declarations.
64699         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64700         be defined.
64701         (iconv_open): Add special handling of conversion between UTF-8 and
64702         UTF-{16,32}{BE,LE}.
64703         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64704         * lib/iconv_close.c: New file.
64705         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64706         gl_FUNC_ICONV_OPEN.
64707         (gl_FUNC_ICONV_OPEN): Use it.
64708         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64709         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64710         and REPLACE_ICONV_UTF.
64711         * modules/iconv_open (Depends-on): Add c-strcase.
64712         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64713         ICONV_CONST.
64714         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64715
64716 2007-10-13  Albert Chin  <china@thewrittenword.com>
64717             Bruno Haible  <bruno@clisp.org>
64718
64719         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64720         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64721
64722 2007-10-13  Bruno Haible  <bruno@clisp.org>
64723
64724         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64725         defined, use the ISO C99 inline semantics.
64726         * lib/argp.h (ARGP_EI): Likewise.
64727
64728 2007-10-13  Bruno Haible  <bruno@clisp.org>
64729
64730         Handle 'inline' change in gcc 4.3.0.
64731         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64732         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64733         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64734         argp_fmtstream_point): Disable 'extern' declaration if the function
64735         definition is going to be provided inline.
64736         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64737         semantics, not the ISO C99 inline semantics.
64738         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64739         'extern' declaration if the function definition is going to be provided
64740         inline.
64741         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64742         the GNU C inline semantics, not the ISO C99 inline semantics. With
64743         GCC 4.2, avoid a warning.
64744
64745 2007-10-13  Bruno Haible  <bruno@clisp.org>
64746
64747         * lib/freading.h (freading): Enable the use of __freading for
64748         glibc >= 2.7.
64749         * lib/freading.c (freading): Likewise.
64750
64751 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64752
64753         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64754         "warning: C99 inline functions are not supported; using GNU89".
64755
64756 2007-10-12  Bruno Haible  <bruno@clisp.org>
64757
64758         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64759         of 2.
64760         * tests/test-ceilf2.c: New file.
64761         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64762
64763         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64764         * modules/ceilf-tests: Update.
64765
64766 2007-10-12  Bruno Haible  <bruno@clisp.org>
64767
64768         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64769         of 2.
64770         * tests/test-floorf2.c: New file.
64771         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64772
64773         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64774         * modules/floorf-tests: Update.
64775
64776 2007-10-12  Bruno Haible  <bruno@clisp.org>
64777
64778         * tests/test-trunc2.c: New file.
64779         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64780
64781         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64782         * modules/trunc-tests: Update.
64783
64784 2007-10-12  Bruno Haible  <bruno@clisp.org>
64785
64786         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64787         of 2.
64788         * tests/test-truncf2.c: New file.
64789         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64790
64791         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64792         * modules/truncf-tests: Update.
64793
64794 2007-10-11  Eric Blake  <ebb9@byu.net>
64795
64796         Don't claim strerror is broken on Interix.
64797         * doc/functions/strerror.texi (strerror): Known broken systems are
64798         now Solaris 8, and not Interix.
64799         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64800         Interix on cross-compile.
64801         Reported by Martin Koeppe in
64802         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64803
64804 2007-10-11  Bruno Haible  <bruno@clisp.org>
64805
64806         * modules/i-ring-tests: New file.
64807         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64808         instead of assert.
64809
64810 2007-10-11  Bruno Haible  <bruno@clisp.org>
64811
64812         * modules/filenamecat-tests: New file.
64813         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64814         * lib/filenamecat.c: Remove test code.
64815
64816 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64817
64818         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64819
64820         * lib/strerror.c: Include <string.h> always, to test interface,
64821         and to remove the need for the dummy.
64822         Include intprops.h to compute width instead of doing it ourselves
64823         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64824         (strerror): Define it to return NULL if there's no system strerror.
64825         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64826         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64827         ancient pre-strerror Unix systems well any more.  Saying "unknown
64828         system error" is enough.
64829         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64830         simpler strerror.c implementation.
64831         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64832         Simplify the tests to reflect the simpler strerror implementation.
64833         * modules/strerror (Depends-on): Add intprops.
64834
64835 2007-10-09  Eric Blake  <ebb9@byu.net>
64836
64837         Silence test-fpending.
64838         * modules/fpending-tests (Files): Add wrapper script.
64839         * tests/test-fpending.sh: New file.
64840
64841 2007-10-09  Bruno Haible  <bruno@clisp.org>
64842
64843         * MODULES.html.sh (func_module): Don't create a hyperlink for
64844         function names like 'printf_frexp'.
64845         (Misc): Add crc, memxor.
64846         (Characteristics of floating types): New section.
64847         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64848         isnanf-nolibm, signbit, trunc, truncf, truncl.
64849         (Enhancements for ISO C 99 functions): New subsection Input/output.
64850         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64851         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64852         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64853         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64854         (Enhancements for POSIX:2001 functions): Add chdir-long.
64855         (File system functions): Add areadlink, chdir-safer, read-file.
64856         Remove cycle-check.
64857         (File system as inode set): New section.
64858         (Date and time): Add gethrxtime.
64859         (Multithreading): Add openmp.
64860         (Internationalization functions): Add localename.
64861         (Unicode string functions): Add unistr/u*-mbsnlen.
64862         (Support for maintaining and releasing projects): Add git-version-gen.
64863         (Lone files): Remove directories.
64864
64865 2007-10-08  Ben Pfaff  <blp@gnu.org>
64866
64867         * lib/xmalloca.h: Fix typo in comment.
64868
64869 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64870
64871         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64872         when avoiding problems with integer overflow.  Use a portable test
64873         instead.
64874
64875 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64876
64877         * modules/dummy (License): Change to LGPLv2+.
64878         * modules/float (License): Likewise
64879         * modules/realloc (License): Likewise
64880         * modules/stdlib (License): Likewise
64881
64882 2007-10-07  Bruno Haible  <bruno@clisp.org>
64883
64884         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64885         * floor.c (TWO_MANT_DIG): Likewise.
64886         * ceil.c (TWO_MANT_DIG): Likewise.
64887         Reported by Ben Pfaff.
64888
64889 2007-10-07  Bruno Haible  <bruno@clisp.org>
64890
64891         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64892         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64893         * lib/frexp.c (FUNC): Likewise.
64894         * lib/printf-frexp.h (printf_frexp): Likewise.
64895         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64896         * lib/printf-frexp.c (FUNC): Likewise.
64897         Suggested by Jim Meyering.
64898
64899 2007-10-07  Jim Meyering  <meyering@redhat.com>
64900
64901         Make xnanosleep's integer overflow test more robust.
64902         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64903         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64904
64905 2007-10-07  Bruno Haible  <bruno@clisp.org>
64906
64907         * NEWS: Mention the license change.
64908
64909         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64910         abbreviations in the modules files.
64911
64912         Change copyright notice from GPLv2+ to GPLv3+.
64913         * README: Change copyright notice.
64914         * MODULES.html.sh: Likewise.
64915         * build-aux/bootstrap.conf: Likewise.
64916         * build-aux/config.libpath: Likewise.
64917         * build-aux/csharpcomp.sh.in: Likewise.
64918         * build-aux/csharpexec.sh.in: Likewise.
64919         * build-aux/install-reloc: Likewise.
64920         * build-aux/javacomp.sh.in: Likewise.
64921         * build-aux/javaexec.sh.in: Likewise.
64922         * build-aux/ldd.sh.in: Likewise.
64923         * build-aux/reloc-ldflags: Likewise.
64924         * build-aux/relocatable.sh.in: Likewise.
64925         * build-aux/x-to-1.in: Likewise.
64926         * check-module: Likewise.
64927         * config/srclistvars.sh: Likewise.
64928         * gnulib-tool: Likewise.
64929         * lib/acl-internal.h: Likewise.
64930         * lib/acl.c: Likewise.
64931         * lib/acl.h: Likewise.
64932         * lib/acl_entries.c: Likewise.
64933         * lib/areadlink-with-size.c: Likewise.
64934         * lib/areadlink.c: Likewise.
64935         * lib/areadlink.h: Likewise.
64936         * lib/argmatch.c: Likewise.
64937         * lib/argmatch.h: Likewise.
64938         * lib/argp-ba.c: Likewise.
64939         * lib/argp-eexst.c: Likewise.
64940         * lib/argp-fmtstream.c: Likewise.
64941         * lib/argp-fmtstream.h: Likewise.
64942         * lib/argp-fs-xinl.c: Likewise.
64943         * lib/argp-help.c: Likewise.
64944         * lib/argp-namefrob.h: Likewise.
64945         * lib/argp-parse.c: Likewise.
64946         * lib/argp-pin.c: Likewise.
64947         * lib/argp-pv.c: Likewise.
64948         * lib/argp-pvh.c: Likewise.
64949         * lib/argp-xinl.c: Likewise.
64950         * lib/argp.h: Likewise.
64951         * lib/at-func.c: Likewise.
64952         * lib/atanl.c: Likewise.
64953         * lib/backupfile.c: Likewise.
64954         * lib/backupfile.h: Likewise.
64955         * lib/basename.c: Likewise.
64956         * lib/binary-io.h: Likewise.
64957         * lib/byteswap.in.h: Likewise.
64958         * lib/c-stack.c: Likewise.
64959         * lib/c-stack.h: Likewise.
64960         * lib/c-strcasestr.c: Likewise.
64961         * lib/c-strcasestr.h: Likewise.
64962         * lib/c-strstr.c: Likewise.
64963         * lib/c-strstr.h: Likewise.
64964         * lib/c-strtod.c: Likewise.
64965         * lib/calloc.c: Likewise.
64966         * lib/canon-host.c: Likewise.
64967         * lib/canon-host.h: Likewise.
64968         * lib/canonicalize-lgpl.c: Likewise.
64969         * lib/canonicalize.c: Likewise.
64970         * lib/canonicalize.h: Likewise.
64971         * lib/ceil.c: Likewise.
64972         * lib/ceilf.c: Likewise.
64973         * lib/ceill.c: Likewise.
64974         * lib/chdir-long.c: Likewise.
64975         * lib/chdir-long.h: Likewise.
64976         * lib/chdir-safer.c: Likewise.
64977         * lib/chdir-safer.h: Likewise.
64978         * lib/chown.c: Likewise.
64979         * lib/classpath.c: Likewise.
64980         * lib/classpath.h: Likewise.
64981         * lib/clean-temp.c: Likewise.
64982         * lib/clean-temp.h: Likewise.
64983         * lib/cloexec.c: Likewise.
64984         * lib/close-stream.c: Likewise.
64985         * lib/closein.c: Likewise.
64986         * lib/closein.h: Likewise.
64987         * lib/closeout.c: Likewise.
64988         * lib/closeout.h: Likewise.
64989         * lib/concat-filename.c: Likewise.
64990         * lib/copy-file.c: Likewise.
64991         * lib/copy-file.h: Likewise.
64992         * lib/count-one-bits.h: Likewise.
64993         * lib/crc.c: Likewise.
64994         * lib/crc.h: Likewise.
64995         * lib/creat-safer.c: Likewise.
64996         * lib/csharpcomp.c: Likewise.
64997         * lib/csharpcomp.h: Likewise.
64998         * lib/csharpexec.c: Likewise.
64999         * lib/csharpexec.h: Likewise.
65000         * lib/cycle-check.c: Likewise.
65001         * lib/cycle-check.h: Likewise.
65002         * lib/diacrit.c: Likewise.
65003         * lib/diacrit.h: Likewise.
65004         * lib/diffseq.h: Likewise.
65005         * lib/dirchownmod.c: Likewise.
65006         * lib/dirent.in.h: Likewise.
65007         * lib/dirfd.c: Likewise.
65008         * lib/dirfd.h: Likewise.
65009         * lib/dirname.c: Likewise.
65010         * lib/dirname.h: Likewise.
65011         * lib/dummy.c: Likewise.
65012         * lib/dup-safer.c: Likewise.
65013         * lib/dup2.c: Likewise.
65014         * lib/eealloc.h: Likewise.
65015         * lib/error.c: Likewise.
65016         * lib/error.h: Likewise.
65017         * lib/euidaccess.c: Likewise.
65018         * lib/exclude.c: Likewise.
65019         * lib/exclude.h: Likewise.
65020         * lib/execute.c: Likewise.
65021         * lib/execute.h: Likewise.
65022         * lib/exitfail.c: Likewise.
65023         * lib/exitfail.h: Likewise.
65024         * lib/expl.c: Likewise.
65025         * lib/fatal-signal.c: Likewise.
65026         * lib/fatal-signal.h: Likewise.
65027         * lib/fbufmode.c: Likewise.
65028         * lib/fbufmode.h: Likewise.
65029         * lib/fchdir.c: Likewise.
65030         * lib/fchmodat.c: Likewise.
65031         * lib/fchownat.c: Likewise.
65032         * lib/fcntl--.h: Likewise.
65033         * lib/fcntl-safer.h: Likewise.
65034         * lib/fcntl.in.h: Likewise.
65035         * lib/fd-safer.c: Likewise.
65036         * lib/fflush.c: Likewise.
65037         * lib/file-has-acl.c: Likewise.
65038         * lib/file-set.c: Likewise.
65039         * lib/file-type.c: Likewise.
65040         * lib/file-type.h: Likewise.
65041         * lib/fileblocks.c: Likewise.
65042         * lib/filemode.c: Likewise.
65043         * lib/filemode.h: Likewise.
65044         * lib/filename.h: Likewise.
65045         * lib/filenamecat.c: Likewise.
65046         * lib/filenamecat.h: Likewise.
65047         * lib/findprog.c: Likewise.
65048         * lib/findprog.h: Likewise.
65049         * lib/float.in.h: Likewise.
65050         * lib/floor.c: Likewise.
65051         * lib/floorf.c: Likewise.
65052         * lib/floorl.c: Likewise.
65053         * lib/fopen-safer.c: Likewise.
65054         * lib/fopen.c: Likewise.
65055         * lib/fpending.c: Likewise.
65056         * lib/fpending.h: Likewise.
65057         * lib/fprintf.c: Likewise.
65058         * lib/fprintftime.h: Likewise.
65059         * lib/fpucw.h: Likewise.
65060         * lib/fpurge.c: Likewise.
65061         * lib/fpurge.h: Likewise.
65062         * lib/freadable.c: Likewise.
65063         * lib/freadable.h: Likewise.
65064         * lib/freadahead.c: Likewise.
65065         * lib/freadahead.h: Likewise.
65066         * lib/freading.c: Likewise.
65067         * lib/freading.h: Likewise.
65068         * lib/free.c: Likewise.
65069         * lib/freopen.c: Likewise.
65070         * lib/frexp.c: Likewise.
65071         * lib/frexpl.c: Likewise.
65072         * lib/fseek.c: Likewise.
65073         * lib/fseterr.c: Likewise.
65074         * lib/fseterr.h: Likewise.
65075         * lib/fstatat.c: Likewise.
65076         * lib/fstrcmp.c: Likewise.
65077         * lib/fstrcmp.h: Likewise.
65078         * lib/fsusage.c: Likewise.
65079         * lib/fsusage.h: Likewise.
65080         * lib/ftell.c: Likewise.
65081         * lib/ftello.c: Likewise.
65082         * lib/fts-cycle.c: Likewise.
65083         * lib/fts.c: Likewise.
65084         * lib/fts_.h: Likewise.
65085         * lib/full-read.c: Likewise.
65086         * lib/full-read.h: Likewise.
65087         * lib/full-write.c: Likewise.
65088         * lib/full-write.h: Likewise.
65089         * lib/fwritable.c: Likewise.
65090         * lib/fwritable.h: Likewise.
65091         * lib/fwriteerror.c: Likewise.
65092         * lib/fwriteerror.h: Likewise.
65093         * lib/fwriting.c: Likewise.
65094         * lib/fwriting.h: Likewise.
65095         * lib/gcd.c: Likewise.
65096         * lib/gcd.h: Likewise.
65097         * lib/getcwd.c: Likewise.
65098         * lib/getdate.h: Likewise.
65099         * lib/getdate.y: Likewise.
65100         * lib/getdomainname.c: Likewise.
65101         * lib/getdomainname.h: Likewise.
65102         * lib/getgroups.c: Likewise.
65103         * lib/gethostname.c: Likewise.
65104         * lib/gethrxtime.c: Likewise.
65105         * lib/gethrxtime.h: Likewise.
65106         * lib/getloadavg.c: Likewise.
65107         * lib/getndelim2.c: Likewise.
65108         * lib/getndelim2.h: Likewise.
65109         * lib/getnline.c: Likewise.
65110         * lib/getnline.h: Likewise.
65111         * lib/getopt.c: Likewise.
65112         * lib/getopt.in.h: Likewise.
65113         * lib/getopt1.c: Likewise.
65114         * lib/getopt_int.h: Likewise.
65115         * lib/getpagesize.h: Likewise.
65116         * lib/getsubopt.c: Likewise.
65117         * lib/gettime.c: Likewise.
65118         * lib/getugroups.c: Likewise.
65119         * lib/getugroups.h: Likewise.
65120         * lib/getusershell.c: Likewise.
65121         * lib/gl_anyavltree_list1.h: Likewise.
65122         * lib/gl_anyavltree_list2.h: Likewise.
65123         * lib/gl_anyhash_list1.h: Likewise.
65124         * lib/gl_anyhash_list2.h: Likewise.
65125         * lib/gl_anylinked_list1.h: Likewise.
65126         * lib/gl_anylinked_list2.h: Likewise.
65127         * lib/gl_anyrbtree_list1.h: Likewise.
65128         * lib/gl_anyrbtree_list2.h: Likewise.
65129         * lib/gl_anytree_list1.h: Likewise.
65130         * lib/gl_anytree_list2.h: Likewise.
65131         * lib/gl_anytree_oset.h: Likewise.
65132         * lib/gl_anytreehash_list1.h: Likewise.
65133         * lib/gl_anytreehash_list2.h: Likewise.
65134         * lib/gl_array_list.c: Likewise.
65135         * lib/gl_array_list.h: Likewise.
65136         * lib/gl_array_oset.c: Likewise.
65137         * lib/gl_array_oset.h: Likewise.
65138         * lib/gl_avltree_list.c: Likewise.
65139         * lib/gl_avltree_list.h: Likewise.
65140         * lib/gl_avltree_oset.c: Likewise.
65141         * lib/gl_avltree_oset.h: Likewise.
65142         * lib/gl_avltreehash_list.c: Likewise.
65143         * lib/gl_avltreehash_list.h: Likewise.
65144         * lib/gl_carray_list.c: Likewise.
65145         * lib/gl_carray_list.h: Likewise.
65146         * lib/gl_linked_list.c: Likewise.
65147         * lib/gl_linked_list.h: Likewise.
65148         * lib/gl_linkedhash_list.c: Likewise.
65149         * lib/gl_linkedhash_list.h: Likewise.
65150         * lib/gl_list.c: Likewise.
65151         * lib/gl_list.h: Likewise.
65152         * lib/gl_oset.c: Likewise.
65153         * lib/gl_oset.h: Likewise.
65154         * lib/gl_rbtree_list.c: Likewise.
65155         * lib/gl_rbtree_list.h: Likewise.
65156         * lib/gl_rbtree_oset.c: Likewise.
65157         * lib/gl_rbtree_oset.h: Likewise.
65158         * lib/gl_rbtreehash_list.c: Likewise.
65159         * lib/gl_rbtreehash_list.h: Likewise.
65160         * lib/gl_sublist.c: Likewise.
65161         * lib/gl_sublist.h: Likewise.
65162         * lib/group-member.c: Likewise.
65163         * lib/group-member.h: Likewise.
65164         * lib/hard-locale.c: Likewise.
65165         * lib/hard-locale.h: Likewise.
65166         * lib/hash-pjw.c: Likewise.
65167         * lib/hash-pjw.h: Likewise.
65168         * lib/hash-triple.c: Likewise.
65169         * lib/hash.c: Likewise.
65170         * lib/hash.h: Likewise.
65171         * lib/human.c: Likewise.
65172         * lib/human.h: Likewise.
65173         * lib/i-ring.c: Likewise.
65174         * lib/i-ring.h: Likewise.
65175         * lib/idcache.c: Likewise.
65176         * lib/imaxabs.c: Likewise.
65177         * lib/imaxdiv.c: Likewise.
65178         * lib/inet_pton.c: Likewise.
65179         * lib/inet_pton.h: Likewise.
65180         * lib/intprops.h: Likewise.
65181         * lib/inttostr.c: Likewise.
65182         * lib/inttostr.h: Likewise.
65183         * lib/inttypes.in.h: Likewise.
65184         * lib/isapipe.c: Likewise.
65185         * lib/isdir.c: Likewise.
65186         * lib/isnan.c: Likewise.
65187         * lib/isnan.h: Likewise.
65188         * lib/isnanf.c: Likewise.
65189         * lib/isnanf.h: Likewise.
65190         * lib/isnanl-nolibm.h: Likewise.
65191         * lib/isnanl.c: Likewise.
65192         * lib/isnanl.h: Likewise.
65193         * lib/javacomp.c: Likewise.
65194         * lib/javacomp.h: Likewise.
65195         * lib/javaexec.c: Likewise.
65196         * lib/javaexec.h: Likewise.
65197         * lib/javaversion.c: Likewise.
65198         * lib/javaversion.h: Likewise.
65199         * lib/javaversion.java: Likewise.
65200         * lib/lbrkprop.h: Likewise.
65201         * lib/lchmod.h: Likewise.
65202         * lib/lchown.c: Likewise.
65203         * lib/ldexpl.c: Likewise.
65204         * lib/linebreak.c: Likewise.
65205         * lib/linebreak.h: Likewise.
65206         * lib/linebuffer.c: Likewise.
65207         * lib/linebuffer.h: Likewise.
65208         * lib/locale.in.h: Likewise.
65209         * lib/logl.c: Likewise.
65210         * lib/long-options.c: Likewise.
65211         * lib/long-options.h: Likewise.
65212         * lib/lstat.c: Likewise.
65213         * lib/lstat.h: Likewise.
65214         * lib/math.in.h: Likewise.
65215         * lib/mbchar.c: Likewise.
65216         * lib/mbchar.h: Likewise.
65217         * lib/mbfile.h: Likewise.
65218         * lib/mbiter.h: Likewise.
65219         * lib/mbscasecmp.c: Likewise.
65220         * lib/mbscasestr.c: Likewise.
65221         * lib/mbschr.c: Likewise.
65222         * lib/mbscspn.c: Likewise.
65223         * lib/mbslen.c: Likewise.
65224         * lib/mbsncasecmp.c: Likewise.
65225         * lib/mbsnlen.c: Likewise.
65226         * lib/mbspbrk.c: Likewise.
65227         * lib/mbspcasecmp.c: Likewise.
65228         * lib/mbsrchr.c: Likewise.
65229         * lib/mbssep.c: Likewise.
65230         * lib/mbsspn.c: Likewise.
65231         * lib/mbsstr.c: Likewise.
65232         * lib/mbstok_r.c: Likewise.
65233         * lib/mbswidth.c: Likewise.
65234         * lib/mbswidth.h: Likewise.
65235         * lib/mbuiter.h: Likewise.
65236         * lib/memcasecmp.c: Likewise.
65237         * lib/memcasecmp.h: Likewise.
65238         * lib/memchr.c: Likewise.
65239         * lib/memcmp.c: Likewise.
65240         * lib/memcoll.c: Likewise.
65241         * lib/memcoll.h: Likewise.
65242         * lib/memcpy.c: Likewise.
65243         * lib/memrchr.c: Likewise.
65244         * lib/mkancesdirs.c: Likewise.
65245         * lib/mkdir-p.c: Likewise.
65246         * lib/mkdir-p.h: Likewise.
65247         * lib/mkdir.c: Likewise.
65248         * lib/mkdirat.c: Likewise.
65249         * lib/mkdtemp.c: Likewise.
65250         * lib/mkstemp-safer.c: Likewise.
65251         * lib/mkstemp.c: Likewise.
65252         * lib/modechange.c: Likewise.
65253         * lib/modechange.h: Likewise.
65254         * lib/mountlist.c: Likewise.
65255         * lib/mountlist.h: Likewise.
65256         * lib/mpsort.c: Likewise.
65257         * lib/nanosleep.c: Likewise.
65258         * lib/obstack.c: Likewise.
65259         * lib/obstack.h: Likewise.
65260         * lib/open-safer.c: Likewise.
65261         * lib/open.c: Likewise.
65262         * lib/openat-die.c: Likewise.
65263         * lib/openat-priv.h: Likewise.
65264         * lib/openat-proc.c: Likewise.
65265         * lib/openat.c: Likewise.
65266         * lib/openat.h: Likewise.
65267         * lib/pagealign_alloc.c: Likewise.
65268         * lib/pagealign_alloc.h: Likewise.
65269         * lib/physmem.c: Likewise.
65270         * lib/physmem.h: Likewise.
65271         * lib/pipe-safer.c: Likewise.
65272         * lib/pipe.c: Likewise.
65273         * lib/pipe.h: Likewise.
65274         * lib/posixtm.c: Likewise.
65275         * lib/posixtm.h: Likewise.
65276         * lib/posixver.c: Likewise.
65277         * lib/printf-frexp.c: Likewise.
65278         * lib/printf-frexp.h: Likewise.
65279         * lib/printf-frexpl.c: Likewise.
65280         * lib/printf-frexpl.h: Likewise.
65281         * lib/printf.c: Likewise.
65282         * lib/progname.c: Likewise.
65283         * lib/progname.h: Likewise.
65284         * lib/progreloc.c: Likewise.
65285         * lib/putenv.c: Likewise.
65286         * lib/quote.c: Likewise.
65287         * lib/quote.h: Likewise.
65288         * lib/quotearg.c: Likewise.
65289         * lib/quotearg.h: Likewise.
65290         * lib/raise.c: Likewise.
65291         * lib/readline.c: Likewise.
65292         * lib/readline.h: Likewise.
65293         * lib/readlink.c: Likewise.
65294         * lib/readtokens.c: Likewise.
65295         * lib/readtokens.h: Likewise.
65296         * lib/readtokens0.c: Likewise.
65297         * lib/readtokens0.h: Likewise.
65298         * lib/readutmp.c: Likewise.
65299         * lib/readutmp.h: Likewise.
65300         * lib/realloc.c: Likewise.
65301         * lib/relocwrapper.c: Likewise.
65302         * lib/rename-dest-slash.c: Likewise.
65303         * lib/rename.c: Likewise.
65304         * lib/rmdir.c: Likewise.
65305         * lib/rpmatch.c: Likewise.
65306         * lib/safe-read.c: Likewise.
65307         * lib/safe-read.h: Likewise.
65308         * lib/safe-write.c: Likewise.
65309         * lib/safe-write.h: Likewise.
65310         * lib/same-inode.h: Likewise.
65311         * lib/same.c: Likewise.
65312         * lib/same.h: Likewise.
65313         * lib/save-cwd.c: Likewise.
65314         * lib/save-cwd.h: Likewise.
65315         * lib/savedir.c: Likewise.
65316         * lib/savedir.h: Likewise.
65317         * lib/savewd.c: Likewise.
65318         * lib/savewd.h: Likewise.
65319         * lib/search.in.h: Likewise.
65320         * lib/setenv.c: Likewise.
65321         * lib/setenv.h: Likewise.
65322         * lib/settime.c: Likewise.
65323         * lib/sh-quote.c: Likewise.
65324         * lib/sh-quote.h: Likewise.
65325         * lib/sig2str.c: Likewise.
65326         * lib/sig2str.h: Likewise.
65327         * lib/signal.in.h: Likewise.
65328         * lib/signbitd.c: Likewise.
65329         * lib/signbitf.c: Likewise.
65330         * lib/signbitl.c: Likewise.
65331         * lib/sigprocmask.c: Likewise.
65332         * lib/sincosl.c: Likewise.
65333         * lib/sleep.c: Likewise.
65334         * lib/sprintf.c: Likewise.
65335         * lib/sqrtl.c: Likewise.
65336         * lib/stat-time.h: Likewise.
65337         * lib/stdio--.h: Likewise.
65338         * lib/stdio-safer.h: Likewise.
65339         * lib/stdlib--.h: Likewise.
65340         * lib/stdlib-safer.h: Likewise.
65341         * lib/stdlib.in.h: Likewise.
65342         * lib/stpcpy.c: Likewise.
65343         * lib/stpncpy.c: Likewise.
65344         * lib/strchrnul.c: Likewise.
65345         * lib/strcspn.c: Likewise.
65346         * lib/strerror.c: Likewise.
65347         * lib/strftime.c: Likewise.
65348         * lib/strftime.h: Likewise.
65349         * lib/striconveh.c: Likewise.
65350         * lib/striconveh.h: Likewise.
65351         * lib/striconveha.c: Likewise.
65352         * lib/striconveha.h: Likewise.
65353         * lib/stripslash.c: Likewise.
65354         * lib/strnlen1.c: Likewise.
65355         * lib/strnlen1.h: Likewise.
65356         * lib/strtod.c: Likewise.
65357         * lib/strtoimax.c: Likewise.
65358         * lib/strtok_r.c: Likewise.
65359         * lib/strtol.c: Likewise.
65360         * lib/strtoll.c: Likewise.
65361         * lib/strtoul.c: Likewise.
65362         * lib/strtoull.c: Likewise.
65363         * lib/sysexits.in.h: Likewise.
65364         * lib/tempname.c: Likewise.
65365         * lib/tempname.h: Likewise.
65366         * lib/timespec.h: Likewise.
65367         * lib/tls.c: Likewise.
65368         * lib/tls.h: Likewise.
65369         * lib/tmpdir.c: Likewise.
65370         * lib/tmpdir.h: Likewise.
65371         * lib/tmpfile-safer.c: Likewise.
65372         * lib/tmpfile.c: Likewise.
65373         * lib/trigl.c: Likewise.
65374         * lib/trigl.h: Likewise.
65375         * lib/trim.c: Likewise.
65376         * lib/trim.h: Likewise.
65377         * lib/trunc.c: Likewise.
65378         * lib/truncf.c: Likewise.
65379         * lib/truncl.c: Likewise.
65380         * lib/tsearch.c: Likewise.
65381         * lib/unicodeio.c: Likewise.
65382         * lib/unicodeio.h: Likewise.
65383         * lib/unistd--.h: Likewise.
65384         * lib/unistd-safer.h: Likewise.
65385         * lib/unistdio/ulc-fprintf.c: Likewise.
65386         * lib/unistdio/ulc-vfprintf.c: Likewise.
65387         * lib/unlinkdir.c: Likewise.
65388         * lib/unlinkdir.h: Likewise.
65389         * lib/unlocked-io.h: Likewise.
65390         * lib/unsetenv.c: Likewise.
65391         * lib/userspec.c: Likewise.
65392         * lib/utime.c: Likewise.
65393         * lib/utimecmp.c: Likewise.
65394         * lib/utimecmp.h: Likewise.
65395         * lib/utimens.c: Likewise.
65396         * lib/verify.h: Likewise.
65397         * lib/verror.c: Likewise.
65398         * lib/verror.h: Likewise.
65399         * lib/version-etc-fsf.c: Likewise.
65400         * lib/version-etc.c: Likewise.
65401         * lib/version-etc.h: Likewise.
65402         * lib/vfprintf.c: Likewise.
65403         * lib/vprintf.c: Likewise.
65404         * lib/vsprintf.c: Likewise.
65405         * lib/w32spawn.h: Likewise.
65406         * lib/wait-process.c: Likewise.
65407         * lib/wait-process.h: Likewise.
65408         * lib/wcwidth.c: Likewise.
65409         * lib/write-any-file.c: Likewise.
65410         * lib/xalloc-die.c: Likewise.
65411         * lib/xalloc.h: Likewise.
65412         * lib/xasprintf.c: Likewise.
65413         * lib/xgetcwd.c: Likewise.
65414         * lib/xgetcwd.h: Likewise.
65415         * lib/xgetdomainname.c: Likewise.
65416         * lib/xgetdomainname.h: Likewise.
65417         * lib/xgethostname.c: Likewise.
65418         * lib/xmalloc.c: Likewise.
65419         * lib/xmalloca.c: Likewise.
65420         * lib/xmalloca.h: Likewise.
65421         * lib/xmemcoll.c: Likewise.
65422         * lib/xnanosleep.c: Likewise.
65423         * lib/xreadlink.c: Likewise.
65424         * lib/xreadlink.h: Likewise.
65425         * lib/xsetenv.c: Likewise.
65426         * lib/xsetenv.h: Likewise.
65427         * lib/xstriconv.c: Likewise.
65428         * lib/xstriconv.h: Likewise.
65429         * lib/xstrndup.c: Likewise.
65430         * lib/xstrndup.h: Likewise.
65431         * lib/xstrtod.c: Likewise.
65432         * lib/xstrtod.h: Likewise.
65433         * lib/xstrtol-error.c: Likewise.
65434         * lib/xstrtol.c: Likewise.
65435         * lib/xstrtol.h: Likewise.
65436         * lib/xtime.h: Likewise.
65437         * lib/xvasprintf.c: Likewise.
65438         * lib/xvasprintf.h: Likewise.
65439         * lib/yesno.c: Likewise.
65440         * lib/yesno.h: Likewise.
65441         * posix-modules: Likewise.
65442         * tests/test-alloca-opt.c: Likewise.
65443         * tests/test-arcfour.c: Likewise.
65444         * tests/test-arctwo.c: Likewise.
65445         * tests/test-argmatch.c: Likewise.
65446         * tests/test-argp-2.sh: Likewise.
65447         * tests/test-argp.c: Likewise.
65448         * tests/test-arpa_inet.c: Likewise.
65449         * tests/test-array_list.c: Likewise.
65450         * tests/test-array_oset.c: Likewise.
65451         * tests/test-atexit.c: Likewise.
65452         * tests/test-avltree_list.c: Likewise.
65453         * tests/test-avltree_oset.c: Likewise.
65454         * tests/test-avltreehash_list.c: Likewise.
65455         * tests/test-base64.c: Likewise.
65456         * tests/test-binary-io.c: Likewise.
65457         * tests/test-byteswap.c: Likewise.
65458         * tests/test-c-ctype.c: Likewise.
65459         * tests/test-c-strcasecmp.c: Likewise.
65460         * tests/test-c-strcasestr.c: Likewise.
65461         * tests/test-c-strncasecmp.c: Likewise.
65462         * tests/test-c-strstr.c: Likewise.
65463         * tests/test-canonicalize-lgpl.c: Likewise.
65464         * tests/test-canonicalize.c: Likewise.
65465         * tests/test-carray_list.c: Likewise.
65466         * tests/test-ceilf.c: Likewise.
65467         * tests/test-ceill.c: Likewise.
65468         * tests/test-count-one-bits.c: Likewise.
65469         * tests/test-crc.c: Likewise.
65470         * tests/test-dirname.c: Likewise.
65471         * tests/test-fbufmode.c: Likewise.
65472         * tests/test-fcntl.c: Likewise.
65473         * tests/test-fflush.c: Likewise.
65474         * tests/test-floorf.c: Likewise.
65475         * tests/test-floorl.c: Likewise.
65476         * tests/test-fopen.c: Likewise.
65477         * tests/test-fprintf-posix.c: Likewise.
65478         * tests/test-fprintf-posix.h: Likewise.
65479         * tests/test-fpurge.c: Likewise.
65480         * tests/test-freadable.c: Likewise.
65481         * tests/test-freadahead.c: Likewise.
65482         * tests/test-freading.c: Likewise.
65483         * tests/test-freopen.c: Likewise.
65484         * tests/test-frexp.c: Likewise.
65485         * tests/test-frexpl.c: Likewise.
65486         * tests/test-fseek.c: Likewise.
65487         * tests/test-fseeko.c: Likewise.
65488         * tests/test-fseterr.c: Likewise.
65489         * tests/test-fstrcmp.c: Likewise.
65490         * tests/test-ftell.c: Likewise.
65491         * tests/test-ftello.c: Likewise.
65492         * tests/test-fwritable.c: Likewise.
65493         * tests/test-fwriting.c: Likewise.
65494         * tests/test-getaddrinfo.c: Likewise.
65495         * tests/test-getpass.c: Likewise.
65496         * tests/test-gettimeofday.c: Likewise.
65497         * tests/test-hmac-md5.c: Likewise.
65498         * tests/test-hmac-sha1.c: Likewise.
65499         * tests/test-iconv.c: Likewise.
65500         * tests/test-iconvme.c: Likewise.
65501         * tests/test-inttypes.c: Likewise.
65502         * tests/test-isnan.c: Likewise.
65503         * tests/test-isnanf.c: Likewise.
65504         * tests/test-isnanl-nolibm.c: Likewise.
65505         * tests/test-isnanl.c: Likewise.
65506         * tests/test-isnanl.h: Likewise.
65507         * tests/test-ldexpl.c: Likewise.
65508         * tests/test-linked_list.c: Likewise.
65509         * tests/test-linkedhash_list.c: Likewise.
65510         * tests/test-locale.c: Likewise.
65511         * tests/test-localename.c: Likewise.
65512         * tests/test-lock.c: Likewise.
65513         * tests/test-lseek.c: Likewise.
65514         * tests/test-malloca.c: Likewise.
65515         * tests/test-math.c: Likewise.
65516         * tests/test-mbscasecmp.c: Likewise.
65517         * tests/test-mbscasestr1.c: Likewise.
65518         * tests/test-mbscasestr2.c: Likewise.
65519         * tests/test-mbscasestr3.c: Likewise.
65520         * tests/test-mbscasestr4.c: Likewise.
65521         * tests/test-mbschr.c: Likewise.
65522         * tests/test-mbscspn.c: Likewise.
65523         * tests/test-mbsncasecmp.c: Likewise.
65524         * tests/test-mbspbrk.c: Likewise.
65525         * tests/test-mbspcasecmp.c: Likewise.
65526         * tests/test-mbsrchr.c: Likewise.
65527         * tests/test-mbsspn.c: Likewise.
65528         * tests/test-mbsstr1.c: Likewise.
65529         * tests/test-mbsstr2.c: Likewise.
65530         * tests/test-mbsstr3.c: Likewise.
65531         * tests/test-md5.c: Likewise.
65532         * tests/test-memmem.c: Likewise.
65533         * tests/test-netinet_in.c: Likewise.
65534         * tests/test-open.c: Likewise.
65535         * tests/test-printf-frexp.c: Likewise.
65536         * tests/test-printf-frexpl.c: Likewise.
65537         * tests/test-printf-posix.c: Likewise.
65538         * tests/test-printf-posix.h: Likewise.
65539         * tests/test-rbtree_list.c: Likewise.
65540         * tests/test-rbtree_oset.c: Likewise.
65541         * tests/test-rbtreehash_list.c: Likewise.
65542         * tests/test-read-file.c: Likewise.
65543         * tests/test-rijndael.c: Likewise.
65544         * tests/test-search.c: Likewise.
65545         * tests/test-signbit.c: Likewise.
65546         * tests/test-sleep.c: Likewise.
65547         * tests/test-snprintf-posix.c: Likewise.
65548         * tests/test-snprintf-posix.h: Likewise.
65549         * tests/test-snprintf.c: Likewise.
65550         * tests/test-sprintf-posix.c: Likewise.
65551         * tests/test-sprintf-posix.h: Likewise.
65552         * tests/test-stat-time.c: Likewise.
65553         * tests/test-stdbool.c: Likewise.
65554         * tests/test-stdint.c: Likewise.
65555         * tests/test-stdio.c: Likewise.
65556         * tests/test-stdlib.c: Likewise.
65557         * tests/test-stpncpy.c: Likewise.
65558         * tests/test-strcasestr.c: Likewise.
65559         * tests/test-striconv.c: Likewise.
65560         * tests/test-striconveh.c: Likewise.
65561         * tests/test-striconveha.c: Likewise.
65562         * tests/test-string.c: Likewise.
65563         * tests/test-sys_select.c: Likewise.
65564         * tests/test-sys_socket.c: Likewise.
65565         * tests/test-sys_stat.c: Likewise.
65566         * tests/test-sys_time.c: Likewise.
65567         * tests/test-sysexits.c: Likewise.
65568         * tests/test-time.c: Likewise.
65569         * tests/test-tls.c: Likewise.
65570         * tests/test-trunc.c: Likewise.
65571         * tests/test-truncf.c: Likewise.
65572         * tests/test-truncl.c: Likewise.
65573         * tests/test-unistd.c: Likewise.
65574         * tests/test-vasnprintf-posix.c: Likewise.
65575         * tests/test-vasnprintf-posix2.c: Likewise.
65576         * tests/test-vasnprintf.c: Likewise.
65577         * tests/test-vasprintf-posix.c: Likewise.
65578         * tests/test-vasprintf.c: Likewise.
65579         * tests/test-verify.c: Likewise.
65580         * tests/test-vfprintf-posix.c: Likewise.
65581         * tests/test-vprintf-posix.c: Likewise.
65582         * tests/test-vsnprintf-posix.c: Likewise.
65583         * tests/test-vsnprintf.c: Likewise.
65584         * tests/test-vsprintf-posix.c: Likewise.
65585         * tests/test-wchar.c: Likewise.
65586         * tests/test-wctype.c: Likewise.
65587         * tests/test-wcwidth.c: Likewise.
65588         * tests/test-xstrtol.c: Likewise.
65589         * tests/test-xvasprintf.c: Likewise.
65590         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65591         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65592         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65593         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65594         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65595         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65596         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65597         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65598         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65599         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65600         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65601         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65602         * tests/uniname/test-uninames.c: Likewise.
65603         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65604         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65605         * tests/unistdio/test-u16-printf1.h: Likewise.
65606         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65607         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65608         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65609         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65610         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65611         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65612         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65613         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65614         * tests/unistdio/test-u32-printf1.h: Likewise.
65615         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65616         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65617         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65618         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65619         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65620         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65621         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65622         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65623         * tests/unistdio/test-u8-printf1.h: Likewise.
65624         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65625         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65626         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65627         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65628         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65629         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65630         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65631         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65632         * tests/unistdio/test-ulc-printf1.h: Likewise.
65633         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65634         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65635         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65636         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65637         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65638         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65639         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65640         * tests/uniwidth/test-u16-width.c: Likewise.
65641         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65642         * tests/uniwidth/test-u32-width.c: Likewise.
65643         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65644         * tests/uniwidth/test-u8-width.c: Likewise.
65645         * tests/uniwidth/test-uc_width.c: Likewise.
65646         * config/srclist-update: Likewise.
65647         (fixlicense): Update to GPLv3+.
65648
65649         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65650         * tests/test-tsearch.c: Change copyright notice.
65651
65652         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65653         * lib/c-strcaseeq.h: Change copyright notice.
65654         * lib/streq.h: Likewise.
65655         * lib/uniconv.h: Likewise.
65656         * lib/uniconv/u-conv-from-enc.h: Likewise.
65657         * lib/uniconv/u-conv-to-enc.h: Likewise.
65658         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65659         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65660         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65661         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65662         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65663         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65664         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65665         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65666         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65667         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65668         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65669         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65670         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65671         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65672         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65673         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65674         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65675         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65676         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65677         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65678         * lib/uniname.h: Likewise.
65679         * lib/uniname/uniname.c: Likewise.
65680         * lib/unistdio.h: Likewise.
65681         * lib/unistdio/u-asnprintf.h: Likewise.
65682         * lib/unistdio/u-asprintf.h: Likewise.
65683         * lib/unistdio/u-printf-args.c: Likewise.
65684         * lib/unistdio/u-printf-args.h: Likewise.
65685         * lib/unistdio/u-printf-parse.h: Likewise.
65686         * lib/unistdio/u-snprintf.h: Likewise.
65687         * lib/unistdio/u-sprintf.h: Likewise.
65688         * lib/unistdio/u-vasprintf.h: Likewise.
65689         * lib/unistdio/u-vsnprintf.h: Likewise.
65690         * lib/unistdio/u-vsprintf.h: Likewise.
65691         * lib/unistdio/u16-asnprintf.c: Likewise.
65692         * lib/unistdio/u16-asprintf.c: Likewise.
65693         * lib/unistdio/u16-printf-parse.c: Likewise.
65694         * lib/unistdio/u16-snprintf.c: Likewise.
65695         * lib/unistdio/u16-sprintf.c: Likewise.
65696         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65697         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65698         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65699         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65700         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65701         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65702         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65703         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65704         * lib/unistdio/u16-vasnprintf.c: Likewise.
65705         * lib/unistdio/u16-vasprintf.c: Likewise.
65706         * lib/unistdio/u16-vsnprintf.c: Likewise.
65707         * lib/unistdio/u16-vsprintf.c: Likewise.
65708         * lib/unistdio/u32-asnprintf.c: Likewise.
65709         * lib/unistdio/u32-asprintf.c: Likewise.
65710         * lib/unistdio/u32-printf-parse.c: Likewise.
65711         * lib/unistdio/u32-snprintf.c: Likewise.
65712         * lib/unistdio/u32-sprintf.c: Likewise.
65713         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65714         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65715         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65716         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65717         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65718         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65719         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65720         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65721         * lib/unistdio/u32-vasnprintf.c: Likewise.
65722         * lib/unistdio/u32-vasprintf.c: Likewise.
65723         * lib/unistdio/u32-vsnprintf.c: Likewise.
65724         * lib/unistdio/u32-vsprintf.c: Likewise.
65725         * lib/unistdio/u8-asnprintf.c: Likewise.
65726         * lib/unistdio/u8-asprintf.c: Likewise.
65727         * lib/unistdio/u8-printf-parse.c: Likewise.
65728         * lib/unistdio/u8-snprintf.c: Likewise.
65729         * lib/unistdio/u8-sprintf.c: Likewise.
65730         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65731         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65732         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65733         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65734         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65735         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65736         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65737         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65738         * lib/unistdio/u8-vasnprintf.c: Likewise.
65739         * lib/unistdio/u8-vasprintf.c: Likewise.
65740         * lib/unistdio/u8-vsnprintf.c: Likewise.
65741         * lib/unistdio/u8-vsprintf.c: Likewise.
65742         * lib/unistdio/ulc-asnprintf.c: Likewise.
65743         * lib/unistdio/ulc-asprintf.c: Likewise.
65744         * lib/unistdio/ulc-printf-parse.c: Likewise.
65745         * lib/unistdio/ulc-snprintf.c: Likewise.
65746         * lib/unistdio/ulc-sprintf.c: Likewise.
65747         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65748         * lib/unistdio/ulc-vasprintf.c: Likewise.
65749         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65750         * lib/unistdio/ulc-vsprintf.c: Likewise.
65751         * lib/unistr.h: Likewise.
65752         * lib/unistr/u-cpy-alloc.h: Likewise.
65753         * lib/unistr/u-cpy.h: Likewise.
65754         * lib/unistr/u-endswith.h: Likewise.
65755         * lib/unistr/u-move.h: Likewise.
65756         * lib/unistr/u-set.h: Likewise.
65757         * lib/unistr/u-startswith.h: Likewise.
65758         * lib/unistr/u-stpcpy.h: Likewise.
65759         * lib/unistr/u-stpncpy.h: Likewise.
65760         * lib/unistr/u-strcat.h: Likewise.
65761         * lib/unistr/u-strcpy.h: Likewise.
65762         * lib/unistr/u-strcspn.h: Likewise.
65763         * lib/unistr/u-strdup.h: Likewise.
65764         * lib/unistr/u-strlen.h: Likewise.
65765         * lib/unistr/u-strncat.h: Likewise.
65766         * lib/unistr/u-strncpy.h: Likewise.
65767         * lib/unistr/u-strnlen.h: Likewise.
65768         * lib/unistr/u-strpbrk.h: Likewise.
65769         * lib/unistr/u-strspn.h: Likewise.
65770         * lib/unistr/u-strstr.h: Likewise.
65771         * lib/unistr/u-strtok.h: Likewise.
65772         * lib/unistr/u16-check.c: Likewise.
65773         * lib/unistr/u16-chr.c: Likewise.
65774         * lib/unistr/u16-cmp.c: Likewise.
65775         * lib/unistr/u16-cpy-alloc.c: Likewise.
65776         * lib/unistr/u16-cpy.c: Likewise.
65777         * lib/unistr/u16-endswith.c: Likewise.
65778         * lib/unistr/u16-mblen.c: Likewise.
65779         * lib/unistr/u16-mbsnlen.c: Likewise.
65780         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65781         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65782         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65783         * lib/unistr/u16-mbtouc.c: Likewise.
65784         * lib/unistr/u16-mbtoucr.c: Likewise.
65785         * lib/unistr/u16-move.c: Likewise.
65786         * lib/unistr/u16-next.c: Likewise.
65787         * lib/unistr/u16-prev.c: Likewise.
65788         * lib/unistr/u16-set.c: Likewise.
65789         * lib/unistr/u16-startswith.c: Likewise.
65790         * lib/unistr/u16-stpcpy.c: Likewise.
65791         * lib/unistr/u16-stpncpy.c: Likewise.
65792         * lib/unistr/u16-strcat.c: Likewise.
65793         * lib/unistr/u16-strchr.c: Likewise.
65794         * lib/unistr/u16-strcmp.c: Likewise.
65795         * lib/unistr/u16-strcpy.c: Likewise.
65796         * lib/unistr/u16-strcspn.c: Likewise.
65797         * lib/unistr/u16-strdup.c: Likewise.
65798         * lib/unistr/u16-strlen.c: Likewise.
65799         * lib/unistr/u16-strmblen.c: Likewise.
65800         * lib/unistr/u16-strmbtouc.c: Likewise.
65801         * lib/unistr/u16-strncat.c: Likewise.
65802         * lib/unistr/u16-strncmp.c: Likewise.
65803         * lib/unistr/u16-strncpy.c: Likewise.
65804         * lib/unistr/u16-strnlen.c: Likewise.
65805         * lib/unistr/u16-strpbrk.c: Likewise.
65806         * lib/unistr/u16-strrchr.c: Likewise.
65807         * lib/unistr/u16-strspn.c: Likewise.
65808         * lib/unistr/u16-strstr.c: Likewise.
65809         * lib/unistr/u16-strtok.c: Likewise.
65810         * lib/unistr/u16-to-u32.c: Likewise.
65811         * lib/unistr/u16-to-u8.c: Likewise.
65812         * lib/unistr/u16-uctomb-aux.c: Likewise.
65813         * lib/unistr/u16-uctomb.c: Likewise.
65814         * lib/unistr/u32-check.c: Likewise.
65815         * lib/unistr/u32-chr.c: Likewise.
65816         * lib/unistr/u32-cmp.c: Likewise.
65817         * lib/unistr/u32-cpy-alloc.c: Likewise.
65818         * lib/unistr/u32-cpy.c: Likewise.
65819         * lib/unistr/u32-endswith.c: Likewise.
65820         * lib/unistr/u32-mblen.c: Likewise.
65821         * lib/unistr/u32-mbsnlen.c: Likewise.
65822         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65823         * lib/unistr/u32-mbtouc.c: Likewise.
65824         * lib/unistr/u32-mbtoucr.c: Likewise.
65825         * lib/unistr/u32-move.c: Likewise.
65826         * lib/unistr/u32-next.c: Likewise.
65827         * lib/unistr/u32-prev.c: Likewise.
65828         * lib/unistr/u32-set.c: Likewise.
65829         * lib/unistr/u32-startswith.c: Likewise.
65830         * lib/unistr/u32-stpcpy.c: Likewise.
65831         * lib/unistr/u32-stpncpy.c: Likewise.
65832         * lib/unistr/u32-strcat.c: Likewise.
65833         * lib/unistr/u32-strchr.c: Likewise.
65834         * lib/unistr/u32-strcmp.c: Likewise.
65835         * lib/unistr/u32-strcpy.c: Likewise.
65836         * lib/unistr/u32-strcspn.c: Likewise.
65837         * lib/unistr/u32-strdup.c: Likewise.
65838         * lib/unistr/u32-strlen.c: Likewise.
65839         * lib/unistr/u32-strmblen.c: Likewise.
65840         * lib/unistr/u32-strmbtouc.c: Likewise.
65841         * lib/unistr/u32-strncat.c: Likewise.
65842         * lib/unistr/u32-strncmp.c: Likewise.
65843         * lib/unistr/u32-strncpy.c: Likewise.
65844         * lib/unistr/u32-strnlen.c: Likewise.
65845         * lib/unistr/u32-strpbrk.c: Likewise.
65846         * lib/unistr/u32-strrchr.c: Likewise.
65847         * lib/unistr/u32-strspn.c: Likewise.
65848         * lib/unistr/u32-strstr.c: Likewise.
65849         * lib/unistr/u32-strtok.c: Likewise.
65850         * lib/unistr/u32-to-u16.c: Likewise.
65851         * lib/unistr/u32-to-u8.c: Likewise.
65852         * lib/unistr/u32-uctomb.c: Likewise.
65853         * lib/unistr/u8-check.c: Likewise.
65854         * lib/unistr/u8-chr.c: Likewise.
65855         * lib/unistr/u8-cmp.c: Likewise.
65856         * lib/unistr/u8-cpy-alloc.c: Likewise.
65857         * lib/unistr/u8-cpy.c: Likewise.
65858         * lib/unistr/u8-endswith.c: Likewise.
65859         * lib/unistr/u8-mblen.c: Likewise.
65860         * lib/unistr/u8-mbsnlen.c: Likewise.
65861         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65862         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65863         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65864         * lib/unistr/u8-mbtouc.c: Likewise.
65865         * lib/unistr/u8-mbtoucr.c: Likewise.
65866         * lib/unistr/u8-move.c: Likewise.
65867         * lib/unistr/u8-next.c: Likewise.
65868         * lib/unistr/u8-prev.c: Likewise.
65869         * lib/unistr/u8-set.c: Likewise.
65870         * lib/unistr/u8-startswith.c: Likewise.
65871         * lib/unistr/u8-stpcpy.c: Likewise.
65872         * lib/unistr/u8-stpncpy.c: Likewise.
65873         * lib/unistr/u8-strcat.c: Likewise.
65874         * lib/unistr/u8-strchr.c: Likewise.
65875         * lib/unistr/u8-strcmp.c: Likewise.
65876         * lib/unistr/u8-strcpy.c: Likewise.
65877         * lib/unistr/u8-strcspn.c: Likewise.
65878         * lib/unistr/u8-strdup.c: Likewise.
65879         * lib/unistr/u8-strlen.c: Likewise.
65880         * lib/unistr/u8-strmblen.c: Likewise.
65881         * lib/unistr/u8-strmbtouc.c: Likewise.
65882         * lib/unistr/u8-strncat.c: Likewise.
65883         * lib/unistr/u8-strncmp.c: Likewise.
65884         * lib/unistr/u8-strncpy.c: Likewise.
65885         * lib/unistr/u8-strnlen.c: Likewise.
65886         * lib/unistr/u8-strpbrk.c: Likewise.
65887         * lib/unistr/u8-strrchr.c: Likewise.
65888         * lib/unistr/u8-strspn.c: Likewise.
65889         * lib/unistr/u8-strstr.c: Likewise.
65890         * lib/unistr/u8-strtok.c: Likewise.
65891         * lib/unistr/u8-to-u16.c: Likewise.
65892         * lib/unistr/u8-to-u32.c: Likewise.
65893         * lib/unistr/u8-uctomb-aux.c: Likewise.
65894         * lib/unistr/u8-uctomb.c: Likewise.
65895         * lib/unitypes.h: Likewise.
65896         * lib/uniwidth.h: Likewise.
65897         * lib/uniwidth/cjk.h: Likewise.
65898         * lib/uniwidth/u16-strwidth.c: Likewise.
65899         * lib/uniwidth/u16-width.c: Likewise.
65900         * lib/uniwidth/u32-strwidth.c: Likewise.
65901         * lib/uniwidth/u32-width.c: Likewise.
65902         * lib/uniwidth/u8-strwidth.c: Likewise.
65903         * lib/uniwidth/u8-width.c: Likewise.
65904         * lib/uniwidth/width.c: Likewise.
65905
65906 2007-10-07  Bruno Haible  <bruno@clisp.org>
65907
65908         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65909         The file is still under LGPL (see modules/inttypes).
65910
65911 2007-10-06  Bruno Haible  <bruno@clisp.org>
65912
65913         * modules/trunc (Dependencies): Add 'extensions'.
65914         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65915         Reported by Ben Pfaff <blp@gnu.org>.
65916
65917 2007-10-06  Bruno Haible  <bruno@clisp.org>
65918
65919         * modules/freopen-tests: New file.
65920         * tests/test-freopen.c: New file.
65921
65922         * modules/fopen-tests: New file.
65923         * tests/test-fopen.c: New file.
65924
65925         * modules/fopen: New file.
65926         * lib/fopen.c: New file.
65927         * m4/fopen.m4: New file.
65928         * modules/freopen: New file.
65929         * lib/freopen.c: New file.
65930         * m4/freopen.m4: New file.
65931         * lib/stdio.in.h (fopen, freopen): New declarations.
65932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65933         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65934         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65935         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65936         * doc/functions/fopen.texi: Mention the 'fopen' module.
65937         * doc/functions/freopen.texi: Mention the 'freopen' module.
65938
65939 2007-10-06  Bruno Haible  <bruno@clisp.org>
65940
65941         * modules/open-tests: New file.
65942         * tests/test-open.c: New file.
65943
65944         * modules/open: New file.
65945         * lib/open.c: New file.
65946         * m4/open.m4: New file.
65947         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65948         lib/open.c does.
65949         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65950         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65951         macros.
65952         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65953         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65954         REPLACE_OPEN.
65955         * doc/functions/open.texi: Mention the 'open' module.
65956
65957 2007-10-04  Bruno Haible  <bruno@clisp.org>
65958
65959         * modules/ceill-tests: New file.
65960         * tests/test-ceill.c: New file.
65961
65962         * modules/ceill: New file.
65963         * lib/ceill.c: Replace entire file.
65964         * m4/ceill.m4: New file.
65965         * lib/math.in.h (ceill): Replace declaration.
65966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65967         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65968         * doc/functions/ceill.texi: Mention the 'ceill' module.
65969         * modules/mathl (Files): Remove lib/ceill.c.
65970         (Depends-on): Add ceill.
65971
65972 2007-10-04  Bruno Haible  <bruno@clisp.org>
65973
65974         * modules/ceilf-tests: New file.
65975         * tests/test-ceilf.c: New file.
65976
65977         * modules/ceilf: New file.
65978         * lib/ceil.c: New file.
65979         * lib/ceilf.c: New file.
65980         * m4/ceilf.m4: New file.
65981         * lib/math.in.h (ceilf): New declaration.
65982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65983         HAVE_DECL_CEILF.
65984         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65985         HAVE_DECL_CEILF.
65986         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65987
65988 2007-10-04  Bruno Haible  <bruno@clisp.org>
65989
65990         * modules/floorl-tests: New file.
65991         * tests/test-floorl.c: New file.
65992
65993         * modules/floorl: New file.
65994         * lib/floorl.c: Replace entire file.
65995         * m4/floorl.m4: New file.
65996         * lib/math.in.h (floorl): Replace declaration.
65997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65998         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65999         * doc/functions/floorl.texi: Mention the 'floorl' module.
66000         * modules/mathl (Files): Remove lib/floorl.c.
66001         (Depends-on): Add floorl.
66002
66003 2007-10-04  Bruno Haible  <bruno@clisp.org>
66004
66005         * modules/floorf-tests: New file.
66006         * tests/test-floorf.c: New file.
66007
66008         * modules/floorf: New file.
66009         * lib/floor.c: New file.
66010         * lib/floorf.c: New file.
66011         * m4/floorf.m4: New file.
66012         * lib/math.in.h (floorf): New declaration.
66013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66014         HAVE_DECL_FLOORF.
66015         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66016         HAVE_DECL_FLOORF.
66017         * doc/functions/floorf.texi: Mention the 'floorf' module.
66018
66019 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66020             Bruno Haible  <bruno@clisp.org>
66021
66022         Advertise for the Git server instead of the CVS server.
66023         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66024         repository instead of the CVS one.
66025         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66026         about all VCS systems generically.
66027         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66028
66029 2007-10-04  Bruno Haible  <bruno@clisp.org>
66030
66031         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66032         means.
66033         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66034
66035 2007-10-04  Bruno Haible  <bruno@clisp.org>
66036
66037         * modules/truncl-tests: New file.
66038         * tests/test-truncl.c: New file.
66039
66040         * modules/truncl: New file.
66041         * lib/truncl.c: New file.
66042         * m4/truncl.m4: New file.
66043         * lib/math.in.h (truncl): New declaration.
66044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66045         HAVE_DECL_TRUNCL.
66046         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66047         HAVE_DECL_TRUNCL.
66048         * doc/functions/truncl.texi: Mention the 'truncl' module.
66049
66050 2007-10-04  Bruno Haible  <bruno@clisp.org>
66051
66052         * modules/truncf-tests: New file.
66053         * tests/test-truncf.c: New file.
66054
66055         * modules/truncf: New file.
66056         * lib/trunc.c: Make paramerizable through USE_* macros.
66057         * lib/truncf.c: New file.
66058         * m4/truncf.m4: New file.
66059         * lib/math.in.h (truncf): New declaration.
66060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66061         HAVE_DECL_TRUNCF.
66062         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66063         HAVE_DECL_TRUNCF.
66064         * doc/functions/truncf.texi: Mention the 'truncf' module.
66065
66066 2007-10-03  Bruno Haible  <bruno@clisp.org>
66067
66068         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66069         augmentation also for tests modules.
66070         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66071         * modules/atexit-tests (Makefile.am): Likewise.
66072         * modules/binary-io-tests (Makefile.am): Likewise.
66073         * modules/c-strcase-tests (Makefile.am): Likewise.
66074         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66075         * modules/canonicalize-tests (Makefile.am): Likewise.
66076         * modules/closein-tests (Makefile.am): Likewise.
66077         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66078         * modules/freadahead-tests (Makefile.am): Likewise.
66079         * modules/fseek-tests (Makefile.am): Likewise.
66080         * modules/fseeko-tests (Makefile.am): Likewise.
66081         * modules/ftell-tests (Makefile.am): Likewise.
66082         * modules/ftello-tests (Makefile.am): Likewise.
66083         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66084         * modules/isnanl-tests (Makefile.am): Likewise.
66085         * modules/lseek-tests (Makefile.am): Likewise.
66086         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66087         * modules/mbscasestr-tests (Makefile.am): Likewise.
66088         * modules/mbschr-tests (Makefile.am): Likewise.
66089         * modules/mbscspn-tests (Makefile.am): Likewise.
66090         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66091         * modules/mbspbrk-tests (Makefile.am): Likewise.
66092         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66093         * modules/mbsrchr-tests (Makefile.am): Likewise.
66094         * modules/mbsspn-tests (Makefile.am): Likewise.
66095         * modules/mbsstr-tests (Makefile.am): Likewise.
66096         * modules/printf-posix-tests (Makefile.am): Likewise.
66097         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66098         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66099         * modules/tsearch-tests (Makefile.am): Likewise.
66100         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66101         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66102         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66103         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66104         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66105         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66106         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66107         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66108         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66109         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66110         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66111         * modules/xstrtol-tests (Makefile.am): Likewise.
66112         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66113         * modules/yesno-tests (Makefile.am): Likewise.
66114
66115 2007-10-03  Bruno Haible  <bruno@clisp.org>
66116
66117         * modules/trunc-tests: New file.
66118         * tests/test-trunc.c: New file.
66119
66120         * modules/trunc: New file.
66121         * lib/trunc.c: New file.
66122         * m4/trunc.m4: New file.
66123         * lib/math.in.h (trunc): New declaration.
66124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66125         HAVE_DECL_TRUNC.
66126         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66127         HAVE_DECL_TRUNC.
66128         * doc/functions/trunc.texi: Mention the 'trunc' module.
66129
66130 2007-10-03  Bruno Haible  <bruno@clisp.org>
66131
66132         * tests/test-fpending.c: New file, mostly copied
66133         from coreutils/lib/t-fpending.c.
66134         * modules/fpending-tests: New file.
66135
66136 2007-10-03  Bruno Haible  <bruno@clisp.org>
66137
66138         Port the stdio extensions to QNX (untested).
66139         * lib/fseterr.c (fseterr): Add support for QNX.
66140         * lib/fbufmode.c (fbufmode): Likewise.
66141         * lib/freadable.c (freadable): Likewise.
66142         * lib/fwritable.c (fwritable): Likewise.
66143         * lib/freading.c (freading): Likewise.
66144         * lib/fwriting.c (fwriting): Likewise.
66145         * lib/freadahead.c (freadahed): Likewise.
66146         * lib/fpurge.c (fpurge): Likewise.
66147         * lib/fseeko.c (rpl_fseeko): Likewise.
66148
66149 2007-10-03  Bruno Haible  <bruno@clisp.org>
66150             Jim Meyering  <jim@meyering.net>
66151             Eric Blake  <ebb9@byu.net>
66152
66153         * doc/relocatable.texi: Use @command instead of @program.
66154
66155 2007-10-02  Jim Meyering  <jim@meyering.net>
66156
66157         Perform one more "_.h" -> ".in.h" substitution.
66158         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66159         instead of unistd_.h here, too.
66160
66161 2007-10-01  Bruno Haible  <bruno@clisp.org>
66162
66163         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66164         Needed for the alloca-opt module.
66165
66166 2007-09-30  Bruno Haible  <bruno@clisp.org>
66167
66168         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66169         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66170         alloca_.h.
66171         * lib/argz.in.h: Renamed from lib/argz_.h.
66172         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66173         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66174         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66175         byteswap_.h.
66176         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66177         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66178         dirent_.h.
66179         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66180         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66181         fcntl_.h.
66182         * lib/float.in.h: Renamed from lib/float_.h.
66183         * modules/float (Files, Makefile.am): Use float.in.h instead of
66184         float_.h.
66185         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66186         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66187         fnmatch_.h.
66188         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66189         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66190         getopt_.h.
66191         * lib/glob.in.h: Renamed from lib/glob_.h.
66192         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66193         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66194         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66195         iconv_.h.
66196         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66197         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66198         inttypes_.h.
66199         * lib/locale.in.h: Renamed from lib/locale_.h.
66200         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66201         locale_.h.
66202         * lib/math.in.h: Renamed from lib/math_.h.
66203         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66204         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66205         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66206         of netinet_in_.h. Add dependency.
66207         * lib/poll.in.h: Renamed from lib/poll_.h.
66208         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66209         * lib/search.in.h: Renamed from lib/search_.h.
66210         * modules/search (Files, Makefile.am): Use search.in.h instead of
66211         search_.h.
66212         * lib/signal.in.h: Renamed from lib/signal_.h.
66213         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66214         _signal.h.
66215         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66216         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66217         stdbool_.h.
66218         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66219         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66220         stdint_.h.
66221         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66222         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66223         stdio_.h.
66224         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66225         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66226         stdlib_.h.
66227         * lib/string.in.h: Renamed from lib/string_.h.
66228         * modules/string (Files, Makefile.am): Use string.in.h instead of
66229         string_.h.
66230         * doc/gnulib-tool.texi (Initial import): Update.
66231         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66232         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66233         of sys_select_.h. Add dependency.
66234         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66235         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66236         of sys_socket_.h.
66237         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66238         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66239         sys_stat_.h.
66240         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66241         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66242         sys_time_.h.
66243         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66244         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66245         sysexits_.h.
66246         * lib/time.in.h: Renamed from lib/time_.h.
66247         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66248         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66249         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66250         unistd_.h.
66251         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66252         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66253         wchar_.h.
66254         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66255         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66256         wctype_.h.
66257         * build-aux/bootstrap (slurp): Update.
66258         * lib/.cppi-disable: Update.
66259
66260 2007-09-30  Bruno Haible  <bruno@clisp.org>
66261
66262         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66263         Needed on BeOS.
66264
66265 2007-09-30  Bruno Haible  <bruno@clisp.org>
66266
66267         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66268
66269 2007-09-29  Bruno Haible  <bruno@clisp.org>
66270
66271         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66272
66273 2007-09-29  Bruno Haible  <bruno@clisp.org>
66274
66275         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66276         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66277         * build-aux/install-reloc: Compile also areadlink.c.
66278         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66279
66280 2007-09-29  Bruno Haible  <bruno@clisp.org>
66281
66282         * gnulib-tool (func_emit_initmacro_done): Indentation.
66283
66284 2007-09-29  Bruno Haible  <bruno@clisp.org>
66285
66286         * README: Add CVS checkout update instructions.
66287         Info from Bob Proulx <bob@proulx.com>.
66288
66289 2007-09-28  Eric Blake  <ebb9@byu.net>
66290
66291         Provide move-if-change.
66292         * build-aux/move-if-change: New file, based on best practice
66293         rather than any canonical upstream location.
66294
66295 2007-09-28  Jim Meyering  <jim@meyering.net>
66296
66297         Fix canonicalize loop-detection corner case.
66298         Do not attempt to stat the symlink values stored via seen_triple.
66299         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66300         on linux-2.6.18, (but not 2.6.22).
66301         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66302         triple_compare.  The former compares dev,ino,filename, while the latter
66303         would actually stat dirname(filename) when dev and ino were equal.
66304         * lib/hash-triple.c: Install <string.h>.
66305         (STREQ): Define.
66306         (triple_compare_ino_str): New function.
66307         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66308
66309 2007-09-28  Eric Blake  <ebb9@byu.net>
66310
66311         Enforce that AC_REPLACE_FUNCS files exist.
66312         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66313         override check for typos.
66314
66315         Fix test-closein on Solaris 10.
66316         * tests/test-closein.c (main): Don't assume stdin can be inherited
66317         closed on all systems.
66318         * tests/test-closein.sh: Likewise.
66319         Reported by Piotr Tarnowski.
66320
66321 2007-09-28  Jim Meyering  <jim@meyering.net>
66322
66323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66324
66325 2007-09-27  Jim Meyering  <jim@meyering.net>
66326
66327         canonicalize: Avoid a false-positive cycle failure.
66328         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66329         Sort.  Remove cycle-check.
66330         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66331         not cycle-check.h.
66332         (seen_triple): New function.
66333         (canonicalize_filename_mode): Use it instead of cycle-check.
66334         * tests/test-canonicalize.c: Add a test for this bug.
66335         * tests/test-canonicalize.sh: Set up and run the test.
66336
66337         New module, file-set, from coreutils.
66338         * modules/file-set: Define it.
66339         * lib/file-set.c, lib/file-set.h: Implement.
66340
66341         New module, hash-triple, from coreutils.
66342         * modules/hash-triple: Define it.
66343         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66344
66345 2007-09-25  Eric Blake  <ebb9@byu.net>
66346
66347         Fix strerror on Interix.
66348         * lib/string_.h (strerror): Declare replacement.
66349         * doc/functions/strerror.texi (strerror): Document the Interix
66350         shortcoming.
66351         * modules/string (Makefile.am): Support new hooks.
66352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66353         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66354         gl_FUNC_STRERROR_SEPARATE.
66355         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66356         * lib/strerror.c (rpl_strerror): Provide replacement.
66357         * modules/strerror (Depends-on): Add string.
66358         (configure.ac): Detect use of module.
66359         * tests/test-strerror.c: New file.
66360         * modules/strerror-tests: New test module.
66361         * modules/argp (Depends-on): Add strerror.
66362         * modules/error (Depends-on): Likewise.
66363         Reported by Martin Koeppe.
66364
66365 2007-09-24  Bruno Haible  <bruno@clisp.org>
66366
66367         * README: Update git instructions.
66368
66369 2007-09-24  Eric Blake  <ebb9@byu.net>
66370
66371         Revert fpending breakage from 2007-09-08.
66372         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66373         __fpending.c.
66374
66375 2007-09-24  Jim Meyering  <jim@meyering.net>
66376
66377         filenamecat.c: Add a test.
66378         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66379         showing how the function works when DIR is the empty string.
66380
66381 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66382
66383         * tests/test-canonicalize.sh: Turn on executable bit.
66384
66385 2007-09-19  Eric Blake  <ebb9@byu.net>
66386
66387         * README: Update CVS instructions.
66388
66389 2007-09-18  Bruno Haible  <bruno@clisp.org>
66390
66391         * modules/areadlink: New file.
66392         * lib/areadlink.h (areadlink): New declaration.
66393         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66394
66395 2007-09-17  Jim Meyering  <jim@meyering.net>
66396
66397         * lib/savewd.c (ESTALE) [!defined]: Define.
66398         Reported to be required on Interix by Martin Koeppe.
66399
66400 2007-09-17  Bruno Haible  <bruno@clisp.org>
66401
66402         * gnulib-tool (func_version): Use $version.
66403
66404 2007-09-16  Bruno Haible  <bruno@clisp.org>
66405
66406         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66407         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66408         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66409         Reported by Greg Schafer <gschafer@zip.com.au>.
66410
66411 2007-09-15  Bruno Haible  <bruno@clisp.org>
66412
66413         * gnulib-tool (sed): Try a little harder to make bash understand the
66414         alias.
66415         Reported by Bruce Korb <bruce.korb@gmail.com>.
66416
66417 2007-09-13  Eric Blake  <ebb9@byu.net>
66418
66419         * ChangeLog: Remove conflict markers.
66420
66421 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66422
66423         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66424         Reported by Bruno Haible <bruno@clisp.org>.
66425
66426 2007-09-12  Bruno Haible  <bruno@clisp.org>
66427
66428         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66429         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66430         is not defined.
66431
66432 2007-09-12  Eric Blake  <ebb9@byu.net>
66433
66434         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66435         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66436         Autoconf definition.
66437         * modules/euidaccess (Depends-on): Add extensions, for
66438         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66439         * modules/fnmatch (Depends-on): Likewise.
66440         * modules/getaddrinfo (Depends-on): Likewise.
66441         * modules/getdelim (Depends-on): Likewise.
66442         * modules/getline (Depends-on): Likewise.
66443         * modules/getsubopt (Depends-on): Likewise.
66444         * modules/gettext (Depends-on): Likewise.
66445         * modules/group-member (Depends-on): Likewise.
66446         * modules/mbchar (Depends-on): Likewise.
66447         * modules/memmem (Depends-on): Likewise.
66448         * modules/mempcpy (Depends-on): Likewise.
66449         * modules/memrchr (Depends-on): Likewise.
66450         * modules/pagealign_alloc (Depends-on): Likewise.
66451         * modules/readutmp (Depends-on): Likewise.
66452         * modules/stpcpy (Depends-on): Likewise.
66453         * modules/stpncpy (Depends-on): Likewise.
66454         * modules/strchrnul (Depends-on): Likewise.
66455         * modules/strndup (Depends-on): Likewise.
66456         * modules/strsep (Depends-on): Likewise.
66457         * modules/strverscmp (Depends-on): Likewise.
66458         * modules/vasprintf (Depends-on): Likewise.
66459         * modules/wcwidth (Depends-on): Likewise.
66460         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66461         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66462         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66463         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66464         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66465         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66466         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66467         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66468         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66469         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66471         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66472         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66473         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66474         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66475         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66476         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66477         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66478         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66479         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66480         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66481         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66482         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66483         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66484         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66485         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66486         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66487         so that lock.m4 can be used in gettext without extensions module.
66488
66489 2007-09-11  Bruno Haible  <bruno@clisp.org>
66490
66491         * m4/isc-posix.m4: Remove file.
66492         Suggested by Eric Blake.
66493
66494 2007-09-11  Eric Blake  <ebb9@byu.net>
66495
66496         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66497
66498 2007-09-10  Bruno Haible  <bruno@clisp.org>
66499
66500         * posix-modules: Fix typo in error message.
66501         Reported by Matt <mkraai@beckman.com>.
66502
66503 2007-09-09  Bruno Haible  <bruno@clisp.org>
66504
66505         * doc/functions/getdelim.texi: Update list of platforms lacking the
66506         function.
66507         * doc/functions/getline.texi: Likewise.
66508
66509 2007-09-09  Jim Meyering  <jim@meyering.net>
66510
66511         * lib/hash.c (hash_initialize): Detect calloc failure.
66512         Reported by Bruno Haible.
66513
66514 2007-09-09  Bruno Haible  <bruno@clisp.org>
66515
66516         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66517         malloc or realloc fails.
66518
66519 2007-09-09  Bruno Haible  <bruno@clisp.org>
66520
66521         * modules/getcwd (Depends-on): Add malloc-posix.
66522         * modules/glob (Depends-on): Likewise.
66523         * modules/putenv (Depends-on): Likewise.
66524         * modules/strdup (Depends-on): Likewise.
66525         * modules/getdelim (Depends-on): Add realloc-posix.
66526         * modules/read-file (Depends-on): Likewise.
66527
66528 2007-09-09  Bruno Haible  <bruno@clisp.org>
66529
66530         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66531         (gl_FUNC_MALLOC_POSIX): Require it.
66532         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66533         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66534         * modules/realloc (Files): Add m4/malloc.m4.
66535         * modules/calloc (Files): Likewise.
66536
66537 2007-09-09  Bruno Haible  <bruno@clisp.org>
66538
66539         * modules/malloc-posix: New file.
66540         * modules/malloc (Depends-on): Add malloc-posix.
66541         * lib/malloc.c: Include errno.h.
66542         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66543         and a POSIX-compatible malloc into a single function. Set ENOMEM
66544         when returning NULL.
66545         * m4/malloc.m4: New file.
66546         * doc/functions/malloc.texi: Mention the malloc-posix module.
66547         * lib/stdlib_.h (malloc): New declaration.
66548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66549         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66550         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66551         and HAVE_MALLOC_POSIX.
66552
66553 2007-09-09  Bruno Haible  <bruno@clisp.org>
66554
66555         * modules/realloc-posix: New file.
66556         * modules/realloc (Depends-on): Add realloc-posix.
66557         * lib/realloc.c: Include errno.h.
66558         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66559         and a POSIX-compatible realloc into a single function. Set ENOMEM
66560         when returning NULL.
66561         * m4/realloc.m4: New file.
66562         * doc/functions/realloc.texi: Mention the realloc-posix module.
66563         * lib/stdlib_.h (realloc): New declaration.
66564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66565         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66566         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66567         and HAVE_REALLOC_POSIX.
66568
66569 2007-09-09  Bruno Haible  <bruno@clisp.org>
66570
66571         * modules/calloc-posix: New file.
66572         * modules/calloc (Depends-on): Add calloc-posix.
66573         * lib/calloc.c: Include errno.h.
66574         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66575         and a POSIX-compatible calloc into a single function. Set ENOMEM
66576         when returning NULL.
66577         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66578         * doc/functions/calloc.texi: Mention the calloc-posix module.
66579         * lib/stdlib_.h (calloc): New declaration.
66580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66581         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66582         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66583         and HAVE_CALLOC_POSIX.
66584
66585 2007-09-09  Bruno Haible  <bruno@clisp.org>
66586
66587         Allow for modules to show an arbitrary notice.
66588         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66589         * gnulib-tool: New option --extract-notice.
66590         (func_usage): Document it.
66591         (sed_extract_prog): Update.
66592         (func_get_notice): New function.
66593         (func_modules_notice): New function.
66594         (func_import, func_create_testdir): Invoke it.
66595         Suggested by Jim Meyering.
66596
66597 2007-09-09  Bruno Haible  <bruno@clisp.org>
66598
66599         * gnulib-tool: New options --verbose, --quiet.
66600         (func_usage): Document them.
66601         (verbose): New variable.
66602         (func_execute_command): New function.
66603         (func_import): Don't show the module list and the file list if
66604         $verbose < 0.
66605         (func_create_testdir): Likewise. Use func_execute_command.
66606         (func_create_megatestdir): Use func_execute_command.
66607
66608 2007-09-08  Bruno Haible  <bruno@clisp.org>
66609
66610         * gnulib-tool (func_import): Prefer rsync over wget when available,
66611         for fetching the PO files.
66612
66613 2007-09-08  Bruno Haible  <bruno@clisp.org>
66614
66615         * posix-modules: New file. Portions copied from gnulib-tool.
66616         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66617
66618 2007-09-08  Jim Meyering  <jim@meyering.net>
66619
66620         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66621         * lib/fpending.h: Rename from __fpending.h.
66622         * lib/fpending.c: Rename from __fpending.c.
66623         Include "fpending.h", not "__fpending.h".
66624         * lib/__fpending.h, lib/__fpending.c: Remove files.
66625         * modules/fpending (Files): Reflect new file names.
66626         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66627
66628 2007-09-08  Bruno Haible  <bruno@clisp.org>
66629
66630         * m4/inttypes-h.m4: Remove stub file.
66631
66632 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66633
66634         * doc/headers/stdint.texi: Discuss #include_next issue.
66635
66636 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66637
66638         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66639
66640 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66641
66642         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66643         in variable name.
66644
66645 2007-09-03  Jim Meyering  <jim@meyering.net>
66646
66647         New module: git-version-gen.
66648         * modules/git-version-gen: New file.
66649
66650         Import changes from coreutils for bootstrap script.
66651
66652         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66653
66654         bootstrap: uses rsync to download the .po files
66655         * build-aux/bootstrap (po_download_command_format): New global.
66656         (download_po_files): Use rsync.
66657         (update_po_files): Don't remove .po files after download,
66658         so future rsync runs can take advantage of the copies.
66659
66660         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66661
66662         Solve the unnecessary-.po-file-regeneration problem once and for all.
66663         * build-aux/bootstrap (download_po_files): New function, renamed from
66664         get_translations.  Now, downloads, but doesn't update LINGUAS.
66665         (update_po_files): New function.
66666
66667         bootstrap: Ignore more.
66668         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66669         uniwidth to e.g., lib/.gitignore.
66670         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66671
66672         * build-aux/bootstrap: New setting: vc_ignore.
66673         (insert_sorted_if_absent): Create $file if absent.
66674         Adapt to new, possibly empty, list: $vc_ignore.
66675
66676         bootstrap: generate more ignorable names
66677         * build-aux/bootstrap (slurp): When generating ignorable names,
66678         also map .sin to .sed, .gperf to .c, and .y to .c.
66679
66680 2007-09-03  Jim Meyering  <jim@meyering.net>
66681
66682         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66683         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66684
66685 2007-09-02  Bruno Haible  <bruno@clisp.org>
66686
66687         Fix mis-recognition of 'mcs' on QNX 6.
66688         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66689         output contains the string "Mono".
66690         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66691         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66692
66693 2007-09-01  Bruno Haible  <bruno@clisp.org>
66694
66695         Fix collision between uniwidth/* and linebreak modules.
66696         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66697         u32_width): Remove declarations.
66698         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66699         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66700         streq3, streq2, streq1, streq0): Remove functions.
66701         (STREQ): Remove macro.
66702         (is_cjk_encoding): Remove function.
66703         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66704         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66705         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66706         * NEWS: Document the change.
66707
66708 2007-09-01  Bruno Haible  <bruno@clisp.org>
66709
66710         * lib/streq.h: Add double-inclusion guard.
66711
66712 2007-09-01  Karl Berry  <karl@gnu.org>
66713
66714         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66715
66716 2007-08-28  Jim Meyering  <jim@meyering.net>
66717
66718         Rename mreadlink_with_size to areadlink_with_size.
66719         * NEWS: Document the change.
66720         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66721         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66722         * lib/mreadlink.h: Rename this to...
66723         * lib/areadlink.h: ...this.
66724         * modules/mreadlink-with-size: Rename this to...
66725         * modules/areadlink-with-size: ...this.
66726         * lib/canonicalize.c: Reflect the renaming.
66727         * modules/canonicalize: Likewise.
66728
66729 2007-08-26  Bruno Haible  <bruno@clisp.org>
66730
66731         * gnulib-tool (func_import): When deciding which files to remove,
66732         consider also dangling symbolic links.
66733         Reported by Eric Blake.
66734
66735 2007-08-26  Bruno Haible  <bruno@clisp.org>
66736
66737         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66738
66739 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66740
66741         * lib/readline.c: Don't include getline.h, the prototype is now
66742         found in stdio.h.
66743
66744 2007-08-23  Jim Meyering  <jim@meyering.net>
66745
66746         Getdelim touchup.
66747         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66748         around the funlockfile call, since funlockfile never sets errno.
66749         Don't set errno upon failed realloc.
66750
66751 2007-08-22  Eric Blake  <ebb9@byu.net>
66752
66753         Getline touchups.
66754         * lib/getdelim.c (getdelim): Revert regression that required *n to
66755         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66756         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66757         getdelim, rather than whether implementation is missing.
66758         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66759         * lib/stdio_.h (getline): Also declare if replacement is
66760         required.
66761         * doc/functions/getdelim.texi: New file.
66762         * doc/functions/getline.texi: Likewise.
66763         * doc/gnulib.texi (Function Substitutes): Add new files.
66764         Reported by Bruno Haible.
66765
66766 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66767
66768         * users.txt: Add Guile.
66769
66770 2007-08-22  Eric Blake  <ebb9@byu.net>
66771
66772         * tests/test-getdelim.c (main): Use remove, not unlink.
66773         * tests/test-getline.c (main): Likewise.
66774
66775         Move getline and getdelim into stdio.h, per POSIX 200x.
66776         * modules/getline (Files): Remove getline.h.
66777         (Depends-on): Add stdio.
66778         (configure.ac): Add module indicator.
66779         * modules/getdelim (Files): Remove getdelim.h.
66780         (Depends-on): Add stdio.
66781         (configure.ac): Add module indicator.
66782         * modules/stdio (Makefile.am): Work with new indicators.
66783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66784         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66785         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66786         * lib/getdelim.h: Delete.
66787         * lib/getline.h: Delete.
66788         * lib/stdio_.h (getdelim, getline): Declare.
66789         * modules/getdelim-tests: New module.
66790         * modules/getline-tests: Likewise.
66791         * tests/test-getdelim.c: New file.
66792         * tests/test-getline.c: Likewise.
66793         * NEWS: Document the change.
66794         * lib/getline.c: Update choice of header.
66795         * lib/csharpcomp.c: Likewise.
66796         * lib/getpass.c: Likewise.
66797         * lib/javacomp.c: Likewise.
66798         * lib/javaversion.c: Likewise.
66799         * lib/yesno.c: Likewise.
66800         * lib/getdelim.c: Likewise.
66801         (getdelim): Set errno on failure, and avoid memory leak.
66802
66803 2007-08-19  Bruno Haible  <bruno@clisp.org>
66804
66805         * modules/closein (Depends-on): Add freadahead.
66806         * lib/closein.c: Include freadahead.h.
66807         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66808         is zero.
66809
66810 2007-08-19  Bruno Haible  <bruno@clisp.org>
66811
66812         * modules/freadahead-tests: New file.
66813         * tests/test-freadahead.sh: New file.
66814         * tests/test-freadahead.c: New file.
66815
66816         * modules/freadahead: New file.
66817         * lib/freadahead.h: New file.
66818         * lib/freadahead.c: New file.
66819         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66820         fbufmode, fpurge, freadable, fwritable.
66821
66822 2007-08-19  Eric Blake  <ebb9@byu.net>
66823
66824         Test yesno in combination with closein.
66825         * lib/yesno.c (yesno): Document use of stdin.
66826         * modules/yesno-tests (Files): New module.
66827         * tests/test-yesno.c (main): New file.
66828         * tests/test-yesno.sh: Likewise.
66829
66830 2007-08-19  Bruno Haible  <bruno@clisp.org>
66831
66832         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66833         * lib/fseeko.c (rpl_fseeko): Likewise.
66834         * lib/fseterr.c (fseterr): Likewise.
66835
66836 2007-08-19  Bruno Haible  <bruno@clisp.org>
66837
66838         * tests/test-lseek.c (main): Disable a test for BeOS.
66839         * doc/functions/lseek.texi: Document the BeOS bug.
66840
66841 2007-08-19  Bruno Haible  <bruno@clisp.org>
66842             Eric Blake  <ebb9@byu.net>
66843
66844         * lib/lseek.c: Include <sys/stat.h>.
66845         (rpl_lseek): Add workaround code also for Unix platforms.
66846         Needed for BeOS.
66847         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66848         * doc/functions/lseek.texi: Document BeOS definiency.
66849
66850 2007-08-18  Bruno Haible  <bruno@clisp.org>
66851
66852         * modules/fstrcmp-tests: New file.
66853         * tests/test-fstrcmp.c: New file.
66854
66855 2007-08-18  Bruno Haible  <bruno@clisp.org>
66856
66857         * modules/fstrcmp: New file, from GNU gettext with modifications.
66858         * lib/fstrcmp.h: New file, from GNU gettext.
66859         * lib/fstrcmp.c: New file, from GNU gettext.
66860         * MODULES.html.sh (String handling): Add fstrcmp.
66861
66862 2007-08-18  Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66865         'bool'.
66866         (diag, compareseq): Remove const from the ctxt argument.
66867         (USE_HEURISTIC): Undefine at the end.
66868
66869 2007-08-18  Jim Meyering  <jim@meyering.net>
66870
66871         New file: lib/idcache.h
66872         * NEWS: Mention the addition.
66873         * modules/idcache (Files): Add lib/idcache.h
66874         * lib/idcache.c: Include "idcache.h".
66875         Don't include <sys/types.h>.
66876         Add a FIXME comment.
66877         Move file-scoped "static" declarations to the top.
66878         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66879
66880 2007-08-17  Bruno Haible  <bruno@clisp.org>
66881         and Paul Eggert  <eggert@cs.ucla.edu>
66882
66883         * MODULES.html.sh: Add diffseq.
66884         * modules/diffseq: New file.
66885         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66886         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66887
66888 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66889
66890         Import changes from coreutils for bootstrap script.
66891
66892         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66893
66894         * build-aux/bootstrap (slurp): Work even in environments where
66895         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66896         current code does not slurp files whose names start with ".", and
66897         this looks like it might be a troublesome area.
66898
66899         2007-07-11  Jim Meyering  <jim@meyering.net>
66900
66901         If there's a GPL vN copyright comment, require that N == 3.
66902
66903         2007-07-08  Jim Meyering  <jim@meyering.net>
66904
66905         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66906         * build-aux/bootstrap (mam_template): Move definition out of loop.
66907
66908         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66909
66910         * build-aux/bootstrap (symlink_to_dir): Rename function from
66911         symlink_to_gnulib.  Add a directory parameter.  Update all
66912         callers.
66913         (cp_mark_as_generated): Also check for -- and link to -- files in
66914         gl/.
66915
66916         2007-07-08  Jim Meyering  <jim@meyering.net>
66917
66918         Adapt to deeper hierarchy in gnulib.
66919         * build-aux/bootstrap (symlink_to_dir): If the destination
66920         directory doesn't exist, create it. This is required at least for
66921         "lib/uniwidth/cjk.h".
66922
66923         2007-05-15  Jim Meyering  <jim@meyering.net>
66924
66925         * build-aux/bootstrap: Now that generated Makefile.am files
66926         are no longer under version control, they must be created at
66927         bootstrap time.
66928
66929 2007-08-14  Ben Pfaff  <blp@gnu.org>
66930
66931         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66932
66933 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66934
66935         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66936         given the changes below.
66937         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66938         even on hosts that have padding bits beyond the supported 64.
66939
66940 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66941
66942         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66943         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66944         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66945         depends on it.
66946         (xstrtol_error): Remove.
66947         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66948         but with a different signature.
66949         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66950         * lib/xstrtol-error.c: Include exitfail.h.
66951         (xstrtol_fatal): New function, with a different signature from the
66952         old xstrtol_error, so that the caller need not worry about passing
66953         in an exit status, or about storage management of the option argument.
66954         (xstrtol_error): Now a static function.  Redo signature to
66955         implement xstrtol_fatal.  Output the correct number of hyphens in
66956         front of the option so that the caller need not worry about
66957         storage management.
66958         (N_): New macro.
66959         (_): Remove; not used now.
66960         * modules/xstrtol: Depend on getopt.
66961         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66962         of old STRTOL_FATAL_ERROR macro.
66963         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66964         of test program.
66965         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66966         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66967
66968 2007-08-08  Eric Blake  <ebb9@byu.net>
66969
66970         * lib/xstrtol-error.c: Add missing include.
66971
66972         Move xstrtol messages into gnulib domain, when --pobase is used.
66973         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66974         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66975         * modules/xstrtol (Files): Distribute new file.
66976         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66977         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66978         * tests/test-xstrtol.c: ...into new file.
66979         * tests/test-xstrtoul.c: Also test xstrtoul.
66980         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66981         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66982         * tests/test-xstrtol.sh: Drive the tests.
66983         * tests/test-xstrtoimax.sh: Likewise.
66984         * tests/test-xstrtoumax.sh: Likewise.
66985         * modules/xstrtol-tests: New module.
66986         * modules/xstrtoimax-tests: Likewise.
66987         * modules/xstrtoumax-tests: Likewise.
66988
66989 2007-08-08  Jim Meyering  <jim@meyering.net>
66990
66991         New function: mfile_name_concat.
66992         * lib/filenamecat.c (mfile_name_concat): New function, just like
66993         file_name_concat, but return NULL upon failure rather than exiting
66994         with a diagnostic.
66995         * lib/filenamecat.h: Declare it.
66996
66997 2007-08-07  Bruno Haible  <bruno@clisp.org>
66998
66999         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67000         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67001         warning from gcc.
67002         Reported by Eric Blake.
67003
67004 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67005
67006         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67007         * modules/crypto/arcfour (License): Likewise.
67008         * modules/crypto/des-tests (License): Likewise.
67009         * modules/crypto/gc-arctwo-tests (License): Likewise.
67010         * modules/crypto/gc-des-tests (License): Likewise.
67011         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67012         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67013         * modules/crypto/gc-md2-tests (License): Likewise.
67014         * modules/crypto/gc-md4-tests (License): Likewise.
67015         * modules/crypto/gc-md5-tests (License): Likewise.
67016         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67017         * modules/crypto/gc-rijndael-tests (License): Likewise.
67018         * modules/crypto/gc-sha1-tests (License): Likewise.
67019         * modules/crypto/gc-tests (License): Likewise.
67020         * modules/crypto/hmac-md5 (License): Likewise.
67021         * modules/crypto/hmac-sha1 (License): Likewise.
67022         * modules/crypto/md2-tests (License): Likewise.
67023         * modules/crypto/md4-tests (License): Likewise.
67024         * modules/crypto/md5 (License): Likewise.
67025         * modules/crypto/rijndael (License): Likewise.
67026         * modules/crypto/sha1 (License): Likewise.
67027         * modules/memxor (License): Likewise.
67028
67029 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67030         and Bruno Haible  <bruno@clisp.org>
67031
67032         * NEWS: Describe interface changes to human, xstrtol.
67033         * lib/human.h: Include <xstrtol.h>.
67034         (human_options): Return enum strtol_error, not int.  Remove
67035         bool arg; take int * instead.
67036         * lib/human.c: Don't include "gettext.h".
67037         (_): Remove; no longer used.
67038         Don't include <xstrtol.h>, since human.h does it.
67039         (human_options): Adjust to abovementioned interface changes.
67040         Do not report error to stderr; that's now the caller's
67041         responsibility.
67042         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67043         interface change.
67044         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67045         Str, Argument_type_string.  All uses changed.  Put " argument"
67046         in diagnostics to make them clearer.  Change wording of suffix
67047         message for clarity.
67048         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67049         Argument_type_string.
67050         (STRTOL_FATAL_WARN): Remove; no longer used.
67051         * modules/human (Depends-on): Remove gettext-h.
67052
67053 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67054
67055         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67056
67057 2007-07-31  Bruno Haible  <bruno@clisp.org>
67058
67059         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67060         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67061         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67062
67063 2007-07-31  Bruno Haible  <bruno@clisp.org>
67064
67065         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67066         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67067
67068 2007-07-30  Bruno Haible  <bruno@clisp.org>
67069
67070         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67071         * modules/c-ctype (License): Likewise.
67072         * modules/c-strcase (License): Likewise.
67073         * modules/check-version (License): Likewise.
67074         * modules/iconv (License): Likewise.
67075         * modules/iconv_open (License): Likewise.
67076         * modules/read-file (License): Likewise.
67077         * modules/striconv (License): Likewise.
67078         * modules/strverscmp (License): Likewise.
67079         * modules/vasprintf (License): Likewise.
67080         * modules/crypto/des (License): Likewise.
67081         * modules/crypto/gc (License): Likewise.
67082         * modules/crypto/gc-arcfour (License): Likewise.
67083         * modules/crypto/gc-arctwo (License): Likewise.
67084         * modules/crypto/gc-des (License): Likewise.
67085         * modules/crypto/gc-hmac-md5 (License): Likewise.
67086         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67087         * modules/crypto/gc-md2 (License): Likewise.
67088         * modules/crypto/gc-md4 (License): Likewise.
67089         * modules/crypto/gc-md5 (License): Likewise.
67090         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67091         * modules/crypto/gc-random (License): Likewise.
67092         * modules/crypto/gc-rijndael (License): Likewise.
67093         * modules/crypto/gc-sha1 (License): Likewise.
67094         * modules/crypto/md2 (License): Likewise.
67095         * modules/crypto/md4 (License): Likewise.
67096
67097 2007-07-30  Jim Meyering  <jim@meyering.net>
67098
67099         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67100         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67101         it has valid stat data.  This bug would cause du not to count the
67102         sizes of inaccessible directories.
67103         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67104         in <http://bugzilla.redhat.com/250077>.
67105
67106 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67107             Bruno Haible  <bruno@clisp.org>
67108
67109         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67110         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67111         #include_next, gives a diagnostic about it, but reports no error in
67112         the exit code.
67113         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67114
67115 2007-07-24  Ben Pfaff  <blp@gnu.org>
67116
67117         Improve name: "count-one-bits" is better than "popcount".
67118         * MODULES.html.sh: Update name.
67119         * lib/popcount.h: Renamed lib/count-one-bits.h.
67120         (popcount): Renamed count_one_bits.
67121         (popcountl): Renamed count_one_bits_l.
67122         (popcountll): Renamed count_one_bits_ll.
67123         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67124         * modules/popcount: Renamed module/count-one-bits.
67125         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67126         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67127
67128 2007-07-23  Ben Pfaff  <blp@gnu.org>
67129
67130         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67131         better code generation, and add U to large constants to avoid
67132         warnings, in non-GCC case.
67133         Suggested by Bruno Haible.
67134
67135 2007-07-23  Ben Pfaff  <blp@gnu.org>
67136
67137         * lib/popcount.h: Use verify_true instead of if...abort.
67138         * modules/popcount: Depend on verify module.
67139         Suggested by Jim Meyering.
67140
67141 2007-07-23  Bruno Haible  <bruno@clisp.org>
67142
67143         * gnulib-tool (func_import): Create a .cvsignore file also when the
67144         directory is not yet in CVS but the toplevel directory is. When
67145         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67146         Reported by Karl Berry.
67147
67148 2007-07-22  Ben Pfaff  <blp@gnu.org>
67149
67150         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67151         case.
67152         Suggested by Eric Blake.
67153
67154 2007-07-22  Ben Pfaff  <blp@gnu.org>
67155
67156         New module: popcount.
67157         * MODULES.html.sh: Add popcount.
67158         * modules/popcount: New file.
67159         * modules/popcount-tests: New file.
67160         * tests/test-popcount.c: New file.
67161         * lib/popcount.h: New file.
67162         * m4/popcount.m4: New file.
67163
67164 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67165
67166         * build-aux/announce-gen: Update to GPLv3.
67167
67168         * build-aux/config.guess: Update from config.
67169
67170 2007-07-21  Bruno Haible  <bruno@clisp.org>
67171
67172         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67173         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67174
67175 2007-07-20  Jim Meyering  <jim@meyering.net>
67176
67177         * check-module: Diagnose a self-dependency.
67178
67179 2007-07-19  Bruno Haible  <bruno@clisp.org>
67180
67181         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67182         empty.
67183         Reported by Eric Blake.
67184
67185 2007-07-18  Bruno Haible  <bruno@clisp.org>
67186
67187         * gnulib-tool: New options --po-base, --po-domain.
67188         (func_usage): Document them.
67189         (pobase, po_domain): New variables.
67190         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67191         DEFAULT_TEXT_DOMAIN.
67192         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67193         (func_import): Consider pobase and po_domain. Create a po/ directory.
67194         (func_create_testdir): Set pobase and po_domain to empty.
67195         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67196         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67197
67198 2007-07-18  Bruno Haible  <bruno@clisp.org>
67199
67200         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67201         EXTRA_DIST augmentation for files in build-aux/.
67202
67203 2007-07-16  Bruno Haible  <bruno@clisp.org>
67204
67205         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67206         * modules/getdelim (License): Likewise.
67207
67208 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67209
67210         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67211         * modules/d-type (License): Likewise.
67212         * modules/extensions (License): Likewise.
67213         * modules/fnmatch (License): Likewise.
67214         * modules/fseeko (License): Likewise.
67215         * modules/getaddrinfo (License): Likewise.
67216         * modules/getline (License): Likewise.
67217         * modules/getlogin_r (License): Likewise.
67218         * modules/getpass (License): Likewise.
67219         * modules/gettimeofday (License): Likewise.
67220         * modules/glob (License): Likewise.
67221         * modules/inet_ntop (License): Likewise.
67222         * modules/malloc (License): Likewise.
67223         * modules/malloca (License): Likewise.
67224         * modules/memmem (License): Likewise.
67225         * modules/mempcpy (License): Likewise.
67226         * modules/memset (License): Likewise.
67227         * modules/minmax (License): Likewise.
67228         * modules/mktime (License): Likewise.
67229         * modules/netinet_in (License): Likewise.
67230         * modules/pathmax (License): Likewise.
67231         * modules/poll (License): Likewise.
67232         * modules/regex (License): Likewise.
67233         * modules/snprintf (License): Likewise.
67234         * modules/stdbool (License): Likewise.
67235         * modules/stdint (License): Likewise.
67236         * modules/stdio (License): Likewise.
67237         * modules/strcase (License): Likewise.
67238         * modules/strcasestr (License): Likewise.
67239         * modules/strdup (License): Likewise.
67240         * modules/string (License): Likewise.
67241         * modules/strndup (License): Likewise.
67242         * modules/strnlen (License): Likewise.
67243         * modules/strpbrk (License): Likewise.
67244         * modules/strptime (License): Likewise.
67245         * modules/strsep (License): Likewise.
67246         * modules/sys_select (License): Likewise.
67247         * modules/sys_socket (License): Likewise.
67248         * modules/sys_stat (License): Likewise.
67249         * modules/sys_time (License): Likewise.
67250         * modules/time (License): Likewise.
67251         * modules/time_r (License): Likewise.
67252         * modules/timegm (License): Likewise.
67253         * modules/unistd (License): Likewise.
67254         * modules/vsnprintf (License): Likewise.
67255         * modules/wctype (License): Likewise.
67256
67257 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67258
67259         * modules/argz (License): LGPLv2+.
67260
67261 2007-07-15  Karl Berry  <karl@gnu.org>
67262
67263         * doc/gnulib.texi: revise node structure per new fdl.texi.
67264
67265 2007-07-14  Bruno Haible  <bruno@clisp.org>
67266
67267         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67268         the output file.
67269         * lib/uniname/uninames.h: Regenerated.
67270
67271 2007-07-14  Karl Berry  <karl@gnu.org>
67272
67273         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67274         omitting sectioning and index commands.
67275
67276 2007-07-13  Bruno Haible  <bruno@clisp.org>
67277
67278         New gnulib-tool option --more-symlinks.
67279         * gnulib-tool (func_usage): Document --more-symlinks.
67280         (do_copyrights): New variable.
67281         Recognize option --more-symlinks.
67282         (func_import): Don't add a copyright notice transform to
67283         sed_transform_lib_file if do_copyrights is empty.
67284
67285 2007-07-13  Bruno Haible  <bruno@clisp.org>
67286
67287         * lib/vasnprintf.c (decimal_point_char): Define also if
67288         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67289         && !NEED_PRINTF_DIRECTIVE_A.
67290         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67291         Gary V. Vaughan <gary@gnu.org>.
67292
67293 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67294
67295         * lib/inttypes_.h: Undo previous change, since it was fixed
67296         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67297
67298 2007-07-13  Bruno Haible  <bruno@clisp.org>
67299
67300         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67301         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67302
67303 2007-07-13  Jim Meyering  <jim@meyering.net>
67304
67305         df: Don't fail for Tru64's "file-on-file mount".
67306         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67307         so we fall through and use statfs instead.  Details here:
67308         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67309         Reported by Albert Chin.
67310
67311 2007-07-13  Bruno Haible  <bruno@clisp.org>
67312
67313         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67314         * modules/configmake (License): Likewise.
67315         * modules/gettext (License): Likewise.
67316         * modules/gettext-h (License): Likewise.
67317         * modules/include_next (License): Likewise.
67318         * modules/link-warning (License): Likewise.
67319         * modules/localcharset (License): Likewise.
67320         * modules/localename (License): Likewise.
67321         * modules/lock (License): Likewise.
67322         * modules/relocatable-lib-lgpl (License): Likewise.
67323         * modules/size_max (License): Likewise.
67324         * modules/vasnprintf (License): Likewise.
67325         * modules/wchar (License): Likewise.
67326         * modules/xsize (License): Likewise.
67327
67328 2007-07-13  Bruno Haible  <bruno@clisp.org>
67329
67330         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67331         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67332
67333 2007-07-12  Bruno Haible  <bruno@clisp.org>
67334
67335         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67336         in the modules files.
67337
67338 2007-07-11  Karl Berry  <karl@gnu.org>
67339
67340         * MODULES.html.sh (func_module): use
67341          sed -e '\|^'"${includefile}"'$|d'
67342          instead of /.../d, to avoid errors on $includefile's containing /.
67343
67344 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67345
67346         * gnulib-tool (func_import): Avoid duplication of --avoid
67347         statements
67348         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67349         names to `_' in variable names.
67350
67351 2007-07-10  Eric Blake  <ebb9@byu.net>
67352
67353         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67354         * NEWS: Document this change.
67355
67356 2007-07-08  Bruno Haible  <bruno@clisp.org>
67357
67358         Update to Unicode 5.0.
67359         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67360         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67361         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67362         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67363         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67364         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67365         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67366         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67367         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67368         U+10A3F, U+1D242..U+1D244.
67369         (nonspacing_table_ind): Update.
67370         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67371         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67372
67373 2007-07-08  Bruno Haible  <bruno@clisp.org>
67374
67375         Update to Unicode 5.0.
67376         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67377         code transform. Extend the name index field of unicode_name_to_code and
67378         unicode_code_to_name from 16 to 24 bits.
67379         * lib/uniname/uniname.c (unicode_character_name,
67380         unicode_name_character): Add the range 0x12xxx to the code transform.
67381         * lib/uniname/uninames.h: Regenerated.
67382         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67383
67384 2007-07-07  Bruno Haible  <bruno@clisp.org>
67385
67386         * modules/wcwidth-tests: New file.
67387         * tests/test-wcwidth.c: New file.
67388
67389         Work around MacOS X wcwidth() bug.
67390         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67391         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67392         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67393         original wcwidth in non-UTF-8 locales.
67394         * modules/wcwidth (Depends-on): Add localcharset, streq,
67395         uniwidth/width.
67396         * doc/functions/wcwidth.texi: Update.
67397
67398 2007-07-07  Bruno Haible  <bruno@clisp.org>
67399
67400         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67401         (wcwidth): New declaration.
67402         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67403         macros.
67404         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67405         here. Prepare for creating <wchar.h> unconditionally.
67406         * modules/wchar (Depends-on): Add link-warning.
67407         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67408         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67409         * lib/wcwidth.h: Remove file.
67410         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67411         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67412         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67413         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67414         (Include): Replace wcwidth.h with <wchar.h>.
67415         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67416         * lib/mbchar.h: Don't include wcwidth.h.
67417         * lib/mbswidth.c: Likewise.
67418         * NEWS: Mention the change.
67419
67420 2007-07-07  Bruno Haible  <bruno@clisp.org>
67421
67422         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67423         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67424         definition with an external declaration.
67425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67426         defined as a function. Remove AC_C_INLINE requirement.
67427         * modules/wcwidth (Files): Add lib/wcwidth.c.
67428         (Makefile.am): Remove redundant statement.
67429
67430 2007-07-07  Bruno Haible  <bruno@clisp.org>
67431
67432         * MODULES.html.sh (Unicode string functions): Add the new modules.
67433
67434         * tests/uniwidth/test-u32-strwidth.c: New file.
67435         * modules/uniwidth/u32-strwidth-tests: New file.
67436
67437         * lib/uniwidth/u32-strwidth.c: New file.
67438         * modules/uniwidth/u32-strwidth: New file.
67439
67440         * tests/uniwidth/test-u16-strwidth.c: New file.
67441         * modules/uniwidth/u16-strwidth-tests: New file.
67442
67443         * lib/uniwidth/u16-strwidth.c: New file.
67444         * modules/uniwidth/u16-strwidth: New file.
67445
67446         * tests/uniwidth/test-u8-strwidth.c: New file.
67447         * modules/uniwidth/u8-strwidth-tests: New file.
67448
67449         * lib/uniwidth/u8-strwidth.c: New file.
67450         * modules/uniwidth/u8-strwidth: New file.
67451
67452         * tests/uniwidth/test-u32-width.c: New file.
67453         * modules/uniwidth/u32-width-tests: New file.
67454
67455         * lib/uniwidth/u32-width.c: New file.
67456         * modules/uniwidth/u32-width: New file.
67457
67458         * tests/uniwidth/test-u16-width.c: New file.
67459         * modules/uniwidth/u16-width-tests: New file.
67460
67461         * lib/uniwidth/u16-width.c: New file.
67462         * modules/uniwidth/u16-width: New file.
67463
67464         * tests/uniwidth/test-u8-width.c: New file.
67465         * modules/uniwidth/u8-width-tests: New file.
67466
67467         * lib/uniwidth/u8-width.c: New file.
67468         * modules/uniwidth/u8-width: New file.
67469
67470         * tests/uniwidth/test-uc_width.c: New file.
67471         * modules/uniwidth/width-tests: New file.
67472
67473         * lib/uniwidth/width.c: New file, from GNU libiconv.
67474         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67475         * modules/uniwidth/width: New file.
67476
67477         * lib/uniwidth.h: New file, from GNU libiconv.
67478         * modules/uniwidth/base: New file.
67479
67480 2007-07-07  Bruno Haible  <bruno@clisp.org>
67481
67482         * lib/uniname.h: New file, from GNU gettext.
67483         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67484         * lib/uniname/uninames.h: New file, from GNU gettext.
67485         * lib/uniname/uniname.c: New file, from GNU gettext.
67486         * tests/uniname/test-uninames.sh: New file.
67487         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67488         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67489         * modules/uniname/base: New file.
67490         * modules/uniname/uniname: New file.
67491         * modules/uniname/uniname-tests: New file.
67492         * MODULES.html.sh (Unicode string functions): Add the new modules.
67493
67494 2007-07-06  Bruno Haible  <bruno@clisp.org>
67495
67496         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67497
67498 2007-07-06  Bruno Haible  <bruno@clisp.org>
67499
67500         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67501         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67502         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67503         include <sys/time.h>.
67504         Reported by Eric Blake.
67505
67506 2007-07-06  Eric Blake  <ebb9@byu.net>
67507
67508         Fix testing canonicalize on cygwin.
67509         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67510         Revert patch from 2007-06-19.
67511         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67512         canonicalize module is also in use.
67513         * tests/test-canonicalize.c: New file.
67514         * tests/test-canonicalize.sh: Likewise.
67515         * modules/canonicalize-tests: Likewise.
67516
67517 2007-07-06  Jim Meyering  <jim@meyering.net>
67518
67519         * lib/getugroups.c (getugroups): Detect getgrent failure.
67520         Adjust comment to reflect reality: this function may return -1.
67521
67522 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67523
67524         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67525         the new TP address.
67526         (usage): Fix typo
67527         (gnulib_mk): New variable.
67528
67529 2007-07-05  Jim Meyering  <jim@meyering.net>
67530
67531         Don't let endgrent clobber errno, no matter how improbable.
67532         * lib/getugroups.c (getugroups): Save and restore errno around
67533         endgrent call.
67534
67535         Close the group DB even when failing with 2^31 or more members.
67536         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67537
67538 2007-07-04  Jim Meyering  <jim@meyering.net>
67539
67540         * lib/getugroups.h: New file.
67541         * lib/getugroups.c: Include "getugroups.h".
67542         Remove uses of "register" keyword.
67543         Move local variable, "cp", down into scope where used.
67544         Give "username" parameter the "const" attribute.
67545         * modules/getugroups (Files): Add lib/getugroups.h
67546
67547 2007-07-04  Karl Berry  <karl@gnu.org>
67548
67549         * MODULES.html.sh (func_all_modules): Complete rename of
67550         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67551
67552 2007-07-02  Bruno Haible  <bruno@clisp.org>
67553
67554         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67555         mode, when inttypes.h comes from gnulib.
67556         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67557
67558 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67559
67560         * NEWS: Mention lgpl module name change.
67561
67562         * modules/lgpl-2.1: Renamed from lgpl.
67563
67564         * NEWS: Mention gpl module name change.
67565
67566         * modules/gpl-3.0: New file, based on gpl-2.0.
67567
67568         * modules/gpl-2.0: Renamed from gpl.
67569
67570         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67571         doc/gpl-2.0.texi.
67572
67573 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67576         #define __STDC_LIMIT_MACROS temporarily while including
67577         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67578         Problem reported by Joel E. Denny in
67579         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67580
67581 2007-07-01  Bruno Haible  <bruno@clisp.org>
67582
67583         * lib/unistdio.h: New file.
67584         * lib/unistdio/u-asnprintf.h: New file.
67585         * lib/unistdio/u-asprintf.h: New file.
67586         * lib/unistdio/u-printf-args.c: New file.
67587         * lib/unistdio/u-printf-args.h: New file.
67588         * lib/unistdio/u-printf-parse.h: New file.
67589         * lib/unistdio/u-snprintf.h: New file.
67590         * lib/unistdio/u-sprintf.h: New file.
67591         * lib/unistdio/u-vasprintf.h: New file.
67592         * lib/unistdio/u-vsnprintf.h: New file.
67593         * lib/unistdio/u-vsprintf.h: New file.
67594         * lib/unistdio/ulc-asnprintf.c: New file.
67595         * lib/unistdio/ulc-asprintf.c: New file.
67596         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67597         * lib/unistdio/ulc-printf-parse.c: New file.
67598         * lib/unistdio/ulc-snprintf.c: New file.
67599         * lib/unistdio/ulc-sprintf.c: New file.
67600         * lib/unistdio/ulc-vasnprintf.c: New file.
67601         * lib/unistdio/ulc-vasprintf.c: New file.
67602         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67603         * lib/unistdio/ulc-vsnprintf.c: New file.
67604         * lib/unistdio/ulc-vsprintf.c: New file.
67605         * lib/unistdio/u8-asnprintf.c: New file.
67606         * lib/unistdio/u8-asprintf.c: New file.
67607         * lib/unistdio/u8-printf-parse.c: New file.
67608         * lib/unistdio/u8-snprintf.c: New file.
67609         * lib/unistdio/u8-sprintf.c: New file.
67610         * lib/unistdio/u8-vasnprintf.c: New file.
67611         * lib/unistdio/u8-vasprintf.c: New file.
67612         * lib/unistdio/u8-vsnprintf.c: New file.
67613         * lib/unistdio/u8-vsprintf.c: New file.
67614         * lib/unistdio/u8-u8-asnprintf.c: New file.
67615         * lib/unistdio/u8-u8-asprintf.c: New file.
67616         * lib/unistdio/u8-u8-snprintf.c: New file.
67617         * lib/unistdio/u8-u8-sprintf.c: New file.
67618         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67619         * lib/unistdio/u8-u8-vasprintf.c: New file.
67620         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67621         * lib/unistdio/u8-u8-vsprintf.c: New file.
67622         * lib/unistdio/u16-asnprintf.c: New file.
67623         * lib/unistdio/u16-asprintf.c: New file.
67624         * lib/unistdio/u16-printf-parse.c: New file.
67625         * lib/unistdio/u16-snprintf.c: New file.
67626         * lib/unistdio/u16-sprintf.c: New file.
67627         * lib/unistdio/u16-vasnprintf.c: New file.
67628         * lib/unistdio/u16-vasprintf.c: New file.
67629         * lib/unistdio/u16-vsnprintf.c: New file.
67630         * lib/unistdio/u16-vsprintf.c: New file.
67631         * lib/unistdio/u16-u16-asnprintf.c: New file.
67632         * lib/unistdio/u16-u16-asprintf.c: New file.
67633         * lib/unistdio/u16-u16-snprintf.c: New file.
67634         * lib/unistdio/u16-u16-sprintf.c: New file.
67635         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67636         * lib/unistdio/u16-u16-vasprintf.c: New file.
67637         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67638         * lib/unistdio/u16-u16-vsprintf.c: New file.
67639         * lib/unistdio/u32-asnprintf.c: New file.
67640         * lib/unistdio/u32-asprintf.c: New file.
67641         * lib/unistdio/u32-printf-parse.c: New file.
67642         * lib/unistdio/u32-snprintf.c: New file.
67643         * lib/unistdio/u32-sprintf.c: New file.
67644         * lib/unistdio/u32-vasnprintf.c: New file.
67645         * lib/unistdio/u32-vasprintf.c: New file.
67646         * lib/unistdio/u32-vsnprintf.c: New file.
67647         * lib/unistdio/u32-vsprintf.c: New file.
67648         * lib/unistdio/u32-u32-asnprintf.c: New file.
67649         * lib/unistdio/u32-u32-asprintf.c: New file.
67650         * lib/unistdio/u32-u32-snprintf.c: New file.
67651         * lib/unistdio/u32-u32-sprintf.c: New file.
67652         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67653         * lib/unistdio/u32-u32-vasprintf.c: New file.
67654         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67655         * lib/unistdio/u32-u32-vsprintf.c: New file.
67656         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67657         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67658         * tests/unistdio/test-ulc-printf1.h: New file.
67659         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67660         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67661         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67662         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67663         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67664         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67665         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67666         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67667         * tests/unistdio/test-u8-asnprintf1.c: New file.
67668         * tests/unistdio/test-u8-asnprintf1.h: New file.
67669         * tests/unistdio/test-u8-printf1.h: New file.
67670         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67671         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67672         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67673         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67674         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67675         * tests/unistdio/test-u8-vasprintf1.c: New file.
67676         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67677         * tests/unistdio/test-u8-vsprintf1.c: New file.
67678         * tests/unistdio/test-u16-asnprintf1.c: New file.
67679         * tests/unistdio/test-u16-asnprintf1.h: New file.
67680         * tests/unistdio/test-u16-printf1.h: New file.
67681         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67682         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67683         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67684         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67685         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67686         * tests/unistdio/test-u16-vasprintf1.c: New file.
67687         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67688         * tests/unistdio/test-u16-vsprintf1.c: New file.
67689         * tests/unistdio/test-u32-asnprintf1.c: New file.
67690         * tests/unistdio/test-u32-asnprintf1.h: New file.
67691         * tests/unistdio/test-u32-printf1.h: New file.
67692         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67693         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67694         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67695         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67696         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67697         * tests/unistdio/test-u32-vasprintf1.c: New file.
67698         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67699         * tests/unistdio/test-u32-vsprintf1.c: New file.
67700         * modules/unistdio/base: New file.
67701         * modules/unistdio/u-printf-args: New file.
67702         * modules/unistdio/ulc-asnprintf: New file.
67703         * modules/unistdio/ulc-asprintf: New file.
67704         * modules/unistdio/ulc-fprintf: New file.
67705         * modules/unistdio/ulc-printf-parse: New file.
67706         * modules/unistdio/ulc-snprintf: New file.
67707         * modules/unistdio/ulc-sprintf: New file.
67708         * modules/unistdio/ulc-vasnprintf: New file.
67709         * modules/unistdio/ulc-vasprintf: New file.
67710         * modules/unistdio/ulc-vfprintf: New file.
67711         * modules/unistdio/ulc-vsnprintf: New file.
67712         * modules/unistdio/ulc-vsprintf: New file.
67713         * modules/unistdio/u8-asnprintf: New file.
67714         * modules/unistdio/u8-asprintf: New file.
67715         * modules/unistdio/u8-printf-parse: New file.
67716         * modules/unistdio/u8-snprintf: New file.
67717         * modules/unistdio/u8-sprintf: New file.
67718         * modules/unistdio/u8-vasnprintf: New file.
67719         * modules/unistdio/u8-vasprintf: New file.
67720         * modules/unistdio/u8-vsnprintf: New file.
67721         * modules/unistdio/u8-vsprintf: New file.
67722         * modules/unistdio/u8-u8-asnprintf: New file.
67723         * modules/unistdio/u8-u8-asprintf: New file.
67724         * modules/unistdio/u8-u8-snprintf: New file.
67725         * modules/unistdio/u8-u8-sprintf: New file.
67726         * modules/unistdio/u8-u8-vasnprintf: New file.
67727         * modules/unistdio/u8-u8-vasprintf: New file.
67728         * modules/unistdio/u8-u8-vsnprintf: New file.
67729         * modules/unistdio/u8-u8-vsprintf: New file.
67730         * modules/unistdio/u16-asnprintf: New file.
67731         * modules/unistdio/u16-asprintf: New file.
67732         * modules/unistdio/u16-printf-parse: New file.
67733         * modules/unistdio/u16-snprintf: New file.
67734         * modules/unistdio/u16-sprintf: New file.
67735         * modules/unistdio/u16-vasnprintf: New file.
67736         * modules/unistdio/u16-vasprintf: New file.
67737         * modules/unistdio/u16-vsnprintf: New file.
67738         * modules/unistdio/u16-vsprintf: New file.
67739         * modules/unistdio/u16-u16-asnprintf: New file.
67740         * modules/unistdio/u16-u16-asprintf: New file.
67741         * modules/unistdio/u16-u16-snprintf: New file.
67742         * modules/unistdio/u16-u16-sprintf: New file.
67743         * modules/unistdio/u16-u16-vasnprintf: New file.
67744         * modules/unistdio/u16-u16-vasprintf: New file.
67745         * modules/unistdio/u16-u16-vsnprintf: New file.
67746         * modules/unistdio/u16-u16-vsprintf: New file.
67747         * modules/unistdio/u32-asnprintf: New file.
67748         * modules/unistdio/u32-asprintf: New file.
67749         * modules/unistdio/u32-printf-parse: New file.
67750         * modules/unistdio/u32-snprintf: New file.
67751         * modules/unistdio/u32-sprintf: New file.
67752         * modules/unistdio/u32-vasnprintf: New file.
67753         * modules/unistdio/u32-vasprintf: New file.
67754         * modules/unistdio/u32-vsnprintf: New file.
67755         * modules/unistdio/u32-vsprintf: New file.
67756         * modules/unistdio/u32-u32-asnprintf: New file.
67757         * modules/unistdio/u32-u32-asprintf: New file.
67758         * modules/unistdio/u32-u32-snprintf: New file.
67759         * modules/unistdio/u32-u32-sprintf: New file.
67760         * modules/unistdio/u32-u32-vasnprintf: New file.
67761         * modules/unistdio/u32-u32-vasprintf: New file.
67762         * modules/unistdio/u32-u32-vsnprintf: New file.
67763         * modules/unistdio/u32-u32-vsprintf: New file.
67764         * modules/unistdio/ulc-asnprintf-tests: New file.
67765         * modules/unistdio/ulc-vasnprintf-tests: New file.
67766         * modules/unistdio/ulc-vasprintf-tests: New file.
67767         * modules/unistdio/ulc-vsnprintf-tests: New file.
67768         * modules/unistdio/ulc-vsprintf-tests: New file.
67769         * modules/unistdio/u8-asnprintf-tests: New file.
67770         * modules/unistdio/u8-vasnprintf-tests: New file.
67771         * modules/unistdio/u8-vasprintf-tests: New file.
67772         * modules/unistdio/u8-vsnprintf-tests: New file.
67773         * modules/unistdio/u8-vsprintf-tests: New file.
67774         * modules/unistdio/u16-asnprintf-tests: New file.
67775         * modules/unistdio/u16-vasnprintf-tests: New file.
67776         * modules/unistdio/u16-vasprintf-tests: New file.
67777         * modules/unistdio/u16-vsnprintf-tests: New file.
67778         * modules/unistdio/u16-vsprintf-tests: New file.
67779         * modules/unistdio/u32-asnprintf-tests: New file.
67780         * modules/unistdio/u32-vasnprintf-tests: New file.
67781         * modules/unistdio/u32-vasprintf-tests: New file.
67782         * modules/unistdio/u32-vsnprintf-tests: New file.
67783         * modules/unistdio/u32-vsprintf-tests: New file.
67784         * MODULES.html.sh (Unicode string functions): Add the new modules.
67785
67786 2007-07-01  Bruno Haible  <bruno@clisp.org>
67787
67788         * lib/sprintf.c (sprintf): Limit the available length estimation,
67789         to avoid address wraparound.
67790         * lib/vsprintf.c (vsprintf): Likewise.
67791         * modules/sprintf-posix (Dependencies): Add stdint.
67792         * modules/vsprintf-posix (Dependencies): Likewise.
67793
67794 2007-07-01  Bruno Haible  <bruno@clisp.org>
67795
67796         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67797         Windows PATH as well. Conservative double-quoting. Comments.
67798
67799 2007-07-01  Bruno Haible  <bruno@clisp.org>
67800             Eric Blake  <ebb9@byu.net>
67801             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67802
67803         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67804         empty components in $PATH, denoting '.'.
67805
67806 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67807
67808         * gnulib-tool: Fix indentation.
67809         (func_create_megatestdir): Likewise.
67810         Report by Bruno Haible.
67811
67812 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67813
67814         Sync from Automake.
67815         * build-aux/gnupload: Fix shell portability issues with for loops.
67816         Report by Karl Berry.
67817
67818 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67819
67820         * build-aux/maint.mk (POURL): Use translationproject.org.
67821
67822 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67823             Bruno Haible  <bruno@clisp.org>
67824
67825         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67826         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67827         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67828         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67829         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67830
67831 2007-06-27  Bruno Haible  <bruno@clisp.org>
67832
67833         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67834         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67835
67836 2007-06-26  Karl Berry  <karl@gnu.org>
67837
67838         * MODULES.html.sh: remove xreadlink-with-size.
67839
67840 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67843         method that I hope also handles the double-include problem noted
67844         by Bruno Haible in
67845         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67846
67847 2007-06-23  Bruno Haible  <bruno@clisp.org>
67848
67849         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67850         Don't let the 'mostlyclean' target fail if the last subdirectory could
67851         not be removed.
67852         Reported by Karl Berry.
67853
67854 2007-06-23  Bruno Haible  <bruno@clisp.org>
67855
67856         * gnulib-tool (echo): Add a speedier workaround for ksh.
67857         * tests/test-echo.sh: Likewise.
67858
67859 2007-06-23  Bruno Haible  <bruno@clisp.org>
67860
67861         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67862         * tests/test-echo.sh: Likewise.
67863
67864 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67865
67866         * gnulib-tool (IFS): Initialize early, so we don't set it to
67867         empty later.
67868         (self_abspathname): Rewrite algorithm to set it, reindent.
67869         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67870         (func_create_megatestdir): Merge some sed scripts.
67871
67872 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67875         exposed by Sun Studio 11 cc on Solaris 8.
67876
67877 2007-06-22  Bruno Haible  <bruno@clisp.org>
67878
67879         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67880         backslashes.
67881         * tests/test-echo.sh: New file.
67882
67883 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67884
67885         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67886         simplify `sed_replace_build_aux' scripts, they are portable but
67887         echoing them with `echo' is not.
67888         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67889
67890 2007-06-21  Karl Berry  <karl@gnu.org>
67891
67892         * config/srclist.txt: guess we can't handle the licenses via
67893         srclist at the moment.
67894
67895 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         * MODULES.html.sh: Add include_next.
67898         * modules/include_next: New file.
67899
67900 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67901
67902         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67903         INCLUDE_NEXT.
67904         (gl_CHECK_NEXT_HEADERS): New macro.
67905         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67906         the obsolescent gl_ABSOLUTE_HEADER.
67907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67908         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67909         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67910         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67911         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67912         * m4/math_h.m4 (gl_MATH_H): Likewise.
67913         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67914         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67915         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67916         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67917         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67918         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67919         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67920         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67921         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67922         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67923         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67924         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67925         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67926         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67927         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67928         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67929         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67930         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67931         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67932         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67933         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67934         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67935         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67936         * lib/float_.h: Likewise.
67937         * lib/inttypes_.h: Likewise.
67938         * lib/math_.h: Likewise.
67939         * lib/search_.h: Likewise.
67940         * lib/signal_.h: Likewise.
67941         * lib/stdint_.h: Likewise.
67942         * lib/stdio_.h: Likewise.
67943         * lib/stdlib_.h: Likewise.
67944         * lib/string_.h: Likewise.
67945         * lib/sys_stat_.h: Likewise.
67946         * lib/sys_time_.h: Likewise.
67947         * lib/time_.h: Likewise.
67948         * lib/unistd_.h: Likewise.
67949         * lib/wchar_.h: Likewise.
67950         * lib/wctype_.h: Likewise.
67951         * lib/dirent_.h: Likewise.
67952         * lib/iconv_.h: Likewise.
67953         * lib/locale_.h: Likewise.
67954         * lib/netinet_in_.h: Likewise.
67955         * lib/sys_select_.h: Likewise.
67956         * lib/sys_socket_.h: Likewise.
67957         * lib/sysexits_.h: Likewise.
67958         * modules/fcntl (Depends-on): Depend on include_next, not
67959         absolute_header.
67960         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67961         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67962         * modules/fchdir: Likewise.
67963         * modules/float: Likewise.
67964         * modules/iconv_open: Likewise.
67965         * modules/inttypes: Likewise.
67966         * modules/locale: Likewise.
67967         * modules/math: Likewise.
67968         * modules/netinet_in: Likewise.
67969         * modules/search: Likewise.
67970         * modules/signal: Likewise.
67971         * modules/stdint: Likewise.
67972         * modules/stdio: Likewise.
67973         * modules/stdlib: Likewise.
67974         * modules/string: Likewise.
67975         * modules/sys_select: Likewise.
67976         * modules/sys_socket: Likewise.
67977         * modules/sys_stat: Likewise.
67978         * modules/sys_time: Likewise.
67979         * modules/sysexits: Likewise.
67980         * modules/time: Likewise.
67981         * modules/unistd: Likewise.
67982         * modules/wchar: Likewise.
67983         * modules/wctype: Likewise.
67984         * modules/sys_stat: Change maintainer to "all".
67985         * modules/unistd: Likewise.
67986
67987 2007-06-20  Karl Berry  <karl@gnu.org>
67988
67989         * config/srclist.txt: track www changes in license files.
67990
67991 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67992
67993         * build-aux/bootstrap: Remove stray dot.
67994         Make sure build_aux settings are honored when linking
67995         gnulib_extra_files.
67996
67997 2007-06-19  Eric Blake  <ebb9@byu.net>
67998
67999         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68000         Allow compilation on cygwin.
68001
68002 2007-06-19  Jim Meyering  <jim@meyering.net>
68003
68004         xreadlink-with-size: Remove module.  No longer used.
68005         Ex-callers now use xreadlink or mreadlink-with-size.
68006         * modules/xreadlink-with-size: Remove module.
68007         * lib/xreadlink-with-size.c: Remove file.
68008         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68009         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68010         just before the function definition *is* accurate.
68011
68012         Eliminate one way canonicalize_filename_mode could exit.
68013         * lib/canonicalize.c (canonicalize_filename_mode):
68014         Use mreadlink_with_size, not xreadlink_with_size.
68015
68016 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68017
68018         Detect porting problems to FreeBSD/arm, which has time_t wider than
68019         long int.  Original problem reported for GNU diff by Xin Li in
68020         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68021         * modules/getdate (Depends-on): Add intprops, verify.
68022         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68023         is an integer type no wider than long int.
68024
68025 2007-06-18  Jim Meyering  <jim@meyering.net>
68026
68027         New module: mreadlink-with-size.
68028         * MODULES.html.sh: Add mreadlink-with-size.
68029         * modules/mreadlink-with-size: New module
68030         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68031         not xreadlink-with-size.
68032         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68033
68034 2007-06-16  Bruno Haible  <bruno@clisp.org>
68035
68036         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68037         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68038         Reported by Gary V. Vaughan <gary@gnu.org>.
68039
68040 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68041
68042         Revamp lchown so that it lives in unistd.h where it belongs.
68043         * lib/lchown.h: Remove.
68044         * lib/dirchownmod.c: Don't include lib/lchown.h.
68045         * lib/fchownat.c: Likewise.
68046         * lib/openat.c: Likewise.
68047         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68048         does not follow symlinks.
68049         (EOPNOTSUPP): Define if not defined.
68050         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68051         is defined to 0.
68052         (lchown): New decl.
68053         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68054         Do not check for lchown decl.
68055         Set REPLACE_LCHOWN.
68056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68057         REPLACE_LCHOWN.
68058         * modules/chown: Make it clear it follows symlinks.
68059         * modules/lchown: Make it clear it doesn't follow symlinks.
68060         (Files): Remove lib/lchown.h
68061         (Depends-on): Add unistd.
68062         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68063         (Include): Include <unistd.h>, not "lchown.h".
68064         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68065         REPLACE_LCHOWN.
68066
68067 2007-06-15  Jim Meyering  <jim@meyering.net>
68068
68069         Change license (GPL to LGPL) of fsusage and dependents.
68070         * modules/fsusage (License): Change to LGPL.
68071         * modules/full-read (License): Likewise.
68072         * modules/full-write (License): Likewise.
68073         * modules/safe-read (License): Likewise.
68074         * modules/safe-write (License): Likewise.
68075
68076 2007-06-14  Ben Pfaff  <blp@gnu.org>
68077
68078         Missing part of allocsa -> malloca transition.
68079         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68080         gl_MALLOCA.
68081
68082 2007-06-12  Bruno Haible  <bruno@clisp.org>
68083
68084         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68085         to ia64, x86_64, i386.
68086         Reported by Eric Blake.
68087
68088 2007-06-12  Bruno Haible  <bruno@clisp.org>
68089
68090         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68091         cross-compiling to x86_64.
68092
68093 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68094
68095         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68096         glitch reported by Ralf Wildenhues in
68097         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68098
68099         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68100         Vin Shelton.
68101
68102 2007-06-11  Bruno Haible  <bruno@clisp.org>
68103
68104         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68105         replacement string.
68106         Reported by Eric Blake.
68107
68108 2007-06-10  Bruno Haible  <bruno@clisp.org>
68109
68110         Prepare vasnprintf code for use with Unicode strings.
68111         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68112         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68113         TYPE_U32_STRING.
68114         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68115         a_u32_string variants.
68116         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68117         * lib/printf-args.c: Don't include config.h and the specification
68118         header if PRINTF_FETCHARGS is already defined.
68119         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68120         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68121         TYPE_U16_STRING, TYPE_U32_STRING.
68122         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68123         u16_directive, u16_directives, u32_directive, u32_directives): New
68124         types.
68125         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68126         New declarations.
68127         * lib/printf-parse.c: Don't include config.h and the specification
68128         header if PRINTF_PARSE is already defined. Eliminate the set of
68129         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68130         them now. Include c-ctype.h.
68131         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68132         directive and CHAR_T_ONLY_ASCII.
68133         * lib/vasnprintf.c: Don't include config.h and the specification header
68134         if VASNPRINTF is already defined.
68135         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68136         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68137         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68138         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68139         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68140         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68141         code accordingly.
68142         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68143         pad_ourselves also in this case, with the 'c' and 's' directives, and
68144         with a different notion of "width".
68145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68146
68147 2007-06-10  Bruno Haible  <bruno@clisp.org>
68148
68149         * modules/unistr/u32-mbsnlen: New file.
68150         * lib/unistr/u32-mbsnlen.c: New file.
68151
68152         * modules/unistr/u16-mbsnlen: New file.
68153         * lib/unistr/u16-mbsnlen.c: New file.
68154
68155         * modules/unistr/u8-mbsnlen: New file.
68156         * lib/unistr/u8-mbsnlen.c: New file.
68157
68158         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68159         declarations.
68160
68161 2007-06-10  Bruno Haible  <bruno@clisp.org>
68162
68163         * lib/string_.h (mbsnlen): New declaration.
68164         * lib/mbsnlen.c: New file.
68165         * m4/mbsnlen.m4: New file.
68166         * modules/mbsnlen: New file.
68167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68168         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68169         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68170
68171 2007-06-10  Bruno Haible  <bruno@clisp.org>
68172
68173         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68174
68175 2007-06-10  Bruno Haible  <bruno@clisp.org>
68176
68177         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68178         * lib/mbuiter.h: Likewise.
68179
68180 2007-06-10  Bruno Haible  <bruno@clisp.org>
68181
68182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68183         declaration.
68184
68185 2007-06-10  Karl Berry  <karl@gnu.org>
68186
68187         * config/srclist.txt: remove gettext entries, Bruno prefers
68188         to update individually.
68189
68190 2007-06-10  Bruno Haible  <bruno@clisp.org>
68191
68192         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68193         'maxlen'. Ensure only length + width bytes are allocated, not
68194         length + 1 + width.
68195
68196 2007-06-09  Bruno Haible  <bruno@clisp.org>
68197
68198         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68199         (CHAR_T): Remove macro.
68200         (VASNPRINTF): Update.
68201
68202 2007-06-09  Bruno Haible  <bruno@clisp.org>
68203
68204         * MODULES.html.sh (Unicode string functions): Add the new modules.
68205
68206         * modules/uniconv/u32-conv-to-enc: New file.
68207         * lib/uniconv/u32-conv-to-enc.c: New file.
68208         * modules/uniconv/u32-conv-to-enc-tests: New file.
68209         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68210
68211         * modules/uniconv/u16-conv-to-enc: New file.
68212         * lib/uniconv/u16-conv-to-enc.c: New file.
68213         * lib/uniconv/u-conv-to-enc.h: New file.
68214         * modules/uniconv/u16-conv-to-enc-tests: New file.
68215         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68216
68217         * modules/uniconv/u8-conv-to-enc: New file.
68218         * lib/uniconv/u8-conv-to-enc.c: New file.
68219         * modules/uniconv/u8-conv-to-enc-tests: New file.
68220         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68221
68222         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68223         u32_conv_to_encoding): New declarations.
68224
68225 2007-06-09  Bruno Haible  <bruno@clisp.org>
68226
68227         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68228
68229 2007-06-09  Bruno Haible  <bruno@clisp.org>
68230
68231         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68232         * modules/malloca: Renamed from modules/allocsa, updated.
68233         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68234         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68235         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68236         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68237         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68238         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68239         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68240         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68241         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68242         * modules/c-strcasestr (Depends-on): Update.
68243         * lib/c-strcasestr.c: Update.
68244         * modules/c-strstr (Depends-on): Update.
68245         * lib/c-strstr.c: Update.
68246         * modules/canonicalize-lgpl (Depends-on): Update.
68247         * lib/canonicalize-lgpl.c: Update.
68248         * modules/clean-temp (Depends-on): Update.
68249         * lib/clean-temp.c: Update.
68250         * modules/csharpcomp (Depends-on): Update.
68251         * lib/csharpcomp.c: Update.
68252         * modules/csharpexec (Depends-on): Update.
68253         * lib/csharpexec.c: Update.
68254         * modules/javacomp (Depends-on): Update.
68255         * lib/javacomp.c: Update.
68256         * modules/javaexec (Depends-on): Update.
68257         * lib/javaexec.c: Update.
68258         * modules/mbscasestr (Depends-on): Update.
68259         * lib/mbscasestr.c: Update.
68260         * modules/mbsstr (Depends-on): Update.
68261         * lib/mbsstr.c: Update.
68262         * modules/setenv (Depends-on): Update.
68263         * lib/setenv.c: Update.
68264         * modules/strcasestr (Depends-on): Update.
68265         * lib/strcasestr.c: Update.
68266         * modules/striconveha (Depends-on): Update.
68267         * lib/striconveha.c: Update.
68268         * modules/relocatable-prog-wrapper (Files): Update.
68269         * lib/relocwrapper.c: Update.
68270         * build-aux/install-reloc: Update.
68271         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68272
68273 2007-06-08  Bruno Haible  <bruno@clisp.org>
68274
68275         Port to uClibc.
68276         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68277         * lib/fpurge.c (fpurge): Likewise.
68278         * lib/freading.c (freading): Likewise.
68279         * lib/fseeko.c (rpl_fseeko): Likewise.
68280         * lib/fseterr.c (fseterr): Likewise.
68281         * lib/fwriting.c (fwriting): Likewise.
68282         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68283
68284 2007-06-08  Bruno Haible  <bruno@clisp.org>
68285
68286         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68287         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68288         * modules/gettext (Files): Add m4/intlmacosx.m4.
68289
68290 2007-06-07  Bruno Haible  <bruno@clisp.org>
68291
68292         * modules/localename-tests: New file.
68293         * tests/test-localename.c: New file.
68294
68295         New module 'localename'.
68296         * lib/localename.h: New file.
68297         * lib/localename.c: New file, from GNU gettext.
68298         * m4/localename.m4: New file.
68299         * modules/localename: New file.
68300
68301 2007-06-07  Bruno Haible  <bruno@clisp.org>
68302
68303         Work around the lack of <wchar.h> on some builds of uClibc.
68304         * doc/headers/wchar.texi: Update.
68305         * lib/wchar_.h: Include <wchar.h> only if it exists.
68306         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68307         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68308         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68309         doesn't exist.
68310         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68311         * modules/mbfile (Depends-on): Add wchar.
68312         * modules/mbiter (Depends-on): Likewise.
68313         * modules/mbuiter (Depends-on): Likewise.
68314         Reported by Simon Josefsson.
68315
68316 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         Work around problem reported by Steven M. Schweda in
68319         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68320         Tru64 5.1B with the Compaq compiler environment installed declares
68321         an 'isblank' function but does not define it in the C library.
68322         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68323         * lib/regex_internal.h (isblank): Likewise.
68324         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68325         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68326
68327 2007-06-05  Bruno Haible  <bruno@clisp.org>
68328
68329         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68330         ia64.
68331         * modules/printf-safe: New file.
68332         * modules/fprintf-posix (Depends-on): Add printf-safe.
68333         * modules/printf-posix (Depends-on): Likewise.
68334         * modules/snprintf-posix (Depends-on): Likewise.
68335         * modules/sprintf-posix (Depends-on): Likewise.
68336         * modules/vasnprintf-posix (Depends-on): Likewise.
68337         * modules/vasprintf-posix (Depends-on): Likewise.
68338         * modules/vfprintf-posix (Depends-on): Likewise.
68339         * modules/vprintf-posix (Depends-on): Likewise.
68340         * modules/vsnprintf-posix (Depends-on): Likewise.
68341         * modules/vsprintf-posix (Depends-on): Likewise.
68342         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68343         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68344         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68345         "no" on i386, x86_64, ia64.
68346         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68347         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68348         on i386, x86_64, ia64.
68349         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68350         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68351         on i386, x86_64, ia64.
68352         * tests/test-vasnprintf-posix.c: Include float.h.
68353         (LDBL80_WORDS): New macro.
68354         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68355         on i386, x86_64, ia64.
68356         * tests/test-vasprintf-posix.c: Include float.h.
68357         (LDBL80_WORDS): New macro.
68358         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68359         on i386, x86_64, ia64.
68360         * tests/test-snprintf-posix.c: Include float.h.
68361         * tests/test-sprintf-posix.c: Likewise.
68362         * tests/test-vsnprintf-posix.c: Likewise.
68363         * tests/test-vsprintf-posix.c: Likewise.
68364
68365 2007-06-05  Bruno Haible  <bruno@clisp.org>
68366
68367         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68368         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68369         non-IEEE numbers on i386, x86_64, ia64.
68370         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68371         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68372         * tests/test-isnanl.h: Include float.h.
68373         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68374
68375 2007-06-05  Bruno Haible  <bruno@clisp.org>
68376
68377         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68378         also the %a / %A. Handle the %a / %A code before this extra handling.
68379
68380 2007-06-05  Bruno Haible  <bruno@clisp.org>
68381
68382         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68383         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68384
68385 2007-06-05  Bruno Haible  <bruno@clisp.org>
68386
68387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68388         typo in variable name.
68389
68390 2007-06-05  Eric Blake  <ebb9@byu.net>
68391
68392         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68393         Reported by Simon Josefsson.
68394
68395 2007-06-04  Bruno Haible  <bruno@clisp.org>
68396
68397         Avoid test failures on some PowerPC platforms.
68398         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68399         Define differently for PowerPC.
68400         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68401         Reported by Gary V. Vaughan <gary@gnu.org>.
68402
68403 2007-06-02  Bruno Haible  <bruno@clisp.org>
68404
68405         Fix test-stdint failure on FreeBSD/ia64.
68406         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68407         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68408         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68409         * doc/headers/stdint.texi: Update.
68410
68411 2007-06-01  Bruno Haible  <bruno@clisp.org>
68412
68413         * tests/test-binary-io.c (main): Pass a third argument to open().
68414         Reported by Gary V. Vaughan <gary@gnu.org>.
68415
68416 2007-06-01  Bruno Haible  <bruno@clisp.org>
68417
68418         * doc/functions/frexpl.texi: Update for mingw.
68419
68420 2007-06-01  Bruno Haible  <bruno@clisp.org>
68421
68422         * tests/test-lseek.c (main): Disable test of errno for invalid third
68423         argument.
68424         * doc/functions/lseek.texi: Update.
68425         Reported by Gary V. Vaughan <gary@gnu.org>.
68426
68427 2007-05-28  Bruno Haible  <bruno@clisp.org>
68428
68429         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68430
68431 2007-05-31  Eric Blake  <ebb9@byu.net>
68432
68433         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68434         cross compiling.
68435
68436 2007-05-30  Eric Blake  <ebb9@byu.net>
68437         and Bruno Haible  <bruno@clisp.org>
68438
68439         Work around mingw test failures exposed by m4-1.4.9b.
68440         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68441         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68442         moment.
68443
68444 2007-05-30  Bruno Haible  <bruno@clisp.org>
68445
68446         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68447         assuming that they are closed. Needed on HP-UX 11.
68448
68449 2007-05-29  Bruno Haible  <bruno@clisp.org>
68450
68451         Fix a problem with #include_next.
68452         * lib/dirent_.h: Split the double-inclusion guard.
68453         * lib/fcntl_.h: Likewise.
68454         * lib/float_.h: Likewise.
68455         * lib/iconv_.h: Likewise.
68456         * lib/inttypes_.h: Likewise.
68457         * lib/locale_.h: Likewise.
68458         * lib/math_.h: Likewise.
68459         * lib/netinet_in_.h: Likewise.
68460         * lib/search_.h: Likewise.
68461         * lib/signal_.h: Likewise.
68462         * lib/stdint_.h: Likewise.
68463         * lib/stdio_.h: Likewise.
68464         * lib/stdlib_.h: Likewise.
68465         * lib/string_.h: Likewise.
68466         * lib/sys_select_.h: Likewise.
68467         * lib/sys_socket_.h: Likewise.
68468         * lib/sys_stat_.h: Likewise.
68469         * lib/sys_time_.h: Likewise.
68470         * lib/sysexits_.h: Likewise.
68471         * lib/time_.h: Likewise.
68472         * lib/unistd_.h: Likewise.
68473         * lib/wchar_.h: Likewise.
68474         * lib/wctype_.h: Likewise.
68475
68476 2007-05-29  Bruno Haible  <bruno@clisp.org>
68477
68478         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68479         for the moment.
68480
68481 2007-05-29  Bruno Haible  <bruno@clisp.org>
68482
68483         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68484         invocation.
68485         Reported by Eric Blake.
68486
68487 2007-05-29  Bruno Haible  <bruno@clisp.org>
68488
68489         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68490         compiling case.
68491
68492 2007-05-29  Eric Blake  <ebb9@byu.net>
68493             Bruno Haible  <bruno@clisp.org>
68494
68495         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68496         cross compiles.
68497
68498 2007-05-28  Eric Blake  <ebb9@byu.net>
68499
68500         * modules/closein-tests (test_closein_LDADD): Support test on
68501         cygwin with libtool.
68502
68503 2007-05-28  Bruno Haible  <bruno@clisp.org>
68504
68505         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68506         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68507         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68508         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68509         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68510         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68511         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68512         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68513         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68514
68515 2007-05-28  Eric Blake  <ebb9@byu.net>
68516
68517         Unconditionally include <config.h> in unit tests.
68518         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68519         * tests/test-allocsa.c, tests/test-arcfour.c,
68520         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68521         tests/test-array_list.c, tests/test-array_oset.c,
68522         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68523         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68524         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68525         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68526         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68527         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68528         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68529         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68530         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68531         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68532         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68533         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68534         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68535         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68536         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68537         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68538         test-md5.c, test-memmem.c, test-printf-posix.c,
68539         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68540         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68541         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68542         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68543         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68544         test-vasnprintf-posix2.c, test-vasnprintf.c,
68545         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68546         test-vfprintf-posix.c, test-vprintf-posix.c,
68547         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68548         test-xvasprintf.c: Likewise.
68549
68550 2007-05-28  Bruno Haible  <bruno@clisp.org>
68551
68552         * gnulib-tool (func_import): Remember the --with-tests command-line
68553         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68554         Reported by Eric Blake.
68555
68556 2007-05-28  Bruno Haible  <bruno@clisp.org>
68557
68558         * modules/ftell-tests: New file.
68559         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68560         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68561
68562         * lib/ftell.c: New file.
68563         * modules/ftell: New file.
68564         * m4/ftell.m4: New file.
68565         * doc/functions/ftell.texi: Update.
68566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68567         REPLACE_FTELL.
68568         * lib/stdio_.h (rpl_ftell): New declaration.
68569         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68570         REPLACE_FTELL.
68571
68572 2007-05-28  Eric Blake  <ebb9@byu.net>
68573
68574         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68575
68576 2007-05-28  Bruno Haible  <bruno@clisp.org>
68577
68578         * modules/fseek-tests: New file.
68579         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68580         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68581
68582         * lib/fseek.c: New file.
68583         * modules/fseek: New file.
68584         * m4/fseek.m4: New file.
68585         * doc/functions/fseek.texi: Update.
68586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68587         REPLACE_FSEEK.
68588         * lib/stdio_.h (rpl_fseek): New declaration.
68589         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68590         REPLACE_FSEEK.
68591
68592 2007-05-28  Bruno Haible  <bruno@clisp.org>
68593
68594         * lib/stdio_.h (fflush): More comments.
68595
68596 2007-05-28  Bruno Haible  <bruno@clisp.org>
68597
68598         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68599         runtime test.
68600
68601 2007-05-28  Eric Blake  <ebb9@byu.net>
68602
68603         Improve lseek module.
68604         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68605         * lib/unistd_.h (lseek): Scale back link warning message.
68606         * tests/test-lseek.c: Beef up test.
68607         * tests/test-lseek.sh: Exercise more facets of lseek.
68608         Reported by Bruno Haible.
68609
68610 2007-05-28  Bruno Haible  <bruno@clisp.org>
68611
68612         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68613         to define.
68614
68615 2007-05-27  Bruno Haible  <bruno@clisp.org>
68616
68617         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68618
68619 2007-05-27  Bruno Haible  <bruno@clisp.org>
68620
68621         * modules/openmp: New file.
68622         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68623         Noah Misch.
68624
68625 2007-05-26  Bruno Haible  <bruno@clisp.org>
68626
68627         * modules/chdir-long (Depends-on): Add fchdir.
68628         * modules/chdir-safer (Depends-on): Likewise.
68629         * modules/fts (Depends-on): Likewise.
68630         * modules/fts-lgpl (Depends-on): Likewise.
68631         * modules/openat (Depends-on): Likewise.
68632         * modules/savewd (Depends-on): Likewise.
68633
68634 2007-05-24  Eric Blake  <ebb9@byu.net>
68635
68636         Fix lseek on mingw.
68637         * modules/lseek: New module.
68638         * m4/lseek.m4: New file.
68639         * lib/lseek.c: New file.
68640         * modules/lseek-tests: New file.
68641         * tests/test-lseek.c: New file.
68642         * tests/test-lseek.sh: New file.
68643         * MODULES.html.sh: Document lseek module.
68644         * modules/fflush (Depends-on): Add lseek, fseeko.
68645         * modules/fseeko (Depends-on): Likewise.
68646         * modules/ftello (Depends-on): Likewise.
68647         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68648         broken.
68649         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68650         broken.
68651         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68652         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68653         * lib/ftello.c (rpl_ftello): Likewise.
68654         * tests/test-fseeko.c (main): Test this.
68655         * tests/test-fseeko.sh: Likewise.
68656         * tests/test-ftello.c (main): Likewise.
68657         * tests/test-ftello.sh: Likewise.
68658         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68659         implies replacing fseek.
68660         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68661         HAVE_FTELLO.
68662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68663         * modules/unistd (Makefile.am): Likewise.
68664         * lib/unistd_.h (lseek): Declare a replacement.
68665         * doc/functions/lseek.texi (lseek): Document this fix.
68666         * doc/functions/fseek.texi (fseek): Likewise.
68667         * doc/functions/ftell.texi (ftell): Likewise.
68668
68669 2007-05-24  Bruno Haible  <bruno@clisp.org>
68670
68671         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68672         in the printed representation of a NaN.
68673         * tests/test-vasprintf-posix.c (test_function): Likewise.
68674         * tests/test-snprintf-posix.h (test_function): Likewise.
68675         * tests/test-sprintf-posix.h (test_function): Likewise.
68676         Reported by Eric Blake.
68677
68678 2007-05-23  Eric Blake  <ebb9@byu.net>
68679
68680         Fix fseeko/ftello on cygwin 1.5.24.
68681         * doc/functions/fseeko.texi (fseeko): Document the fix.
68682         * doc/functions/ftello.texi (ftello): Document the fix.
68683         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68684         * doc/functions/stdout.text (stdout): New file.
68685         * doc/functions/stderr.text (stderr): New file.
68686         * doc/gnulib.texi (Function Substitutes): Use new files.
68687         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68688         prior to 1.7.0.
68689         * tests/test-ftello.c (main): Likewise for ftello.
68690         * tests/test-fseeko.sh: New file.
68691         * tests/test-ftello.sh: New file.
68692         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68693         with seekable stdin.
68694         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68695         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68696         (gl_REPLACE_FSEEKO): New macro.
68697         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68698         * modules/fseeko (Files): Distribute fseeko.c.
68699         * modules/ftello (Files): Distribute ftello.c.
68700         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68701         mode.
68702         * lib/ftello.c (rpl_ftello): New file.
68703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68704         fseeko, ftello.
68705         (gl_STDIN_LARGE_OFFSET): New macro.
68706         * modules/stdio (Makefile.am): Perform the replacement.
68707         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68708
68709 2007-05-23  Bruno Haible  <bruno@clisp.org>
68710
68711         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68712         GNULIB_POSIXCHECK is defined.
68713
68714 2007-05-21  Bruno Haible  <bruno@clisp.org>
68715
68716         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68717         Check also the output for NaN arguments. When cross-compiling, guess
68718         no on IRIX.
68719         * lib/vasnprintf.c: Update comments.
68720         * tests/test-vasnprintf-posix.c (strisnan): New function.
68721         (test_function): Use it.
68722         * tests/test-vasprintf-posix.c (strisnan): New function.
68723         (test_function): Use it.
68724         * tests/test-snprintf-posix.h (strisnan): New function.
68725         (test_function): Use it.
68726         * tests/test-sprintf-posix.h (strisnan): New function.
68727         (test_function): Use it.
68728         Reported by Eric Blake.
68729
68730 2007-05-20  Bruno Haible  <bruno@clisp.org>
68731
68732         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68733         numbers that fails on BeOS.
68734         * doc/functions/frexpl.texi: Update.
68735
68736 2007-05-20  Jim Meyering  <jim@meyering.net>
68737
68738         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68739         forced upon us by glibc-2.6.
68740
68741 2007-05-20  Bruno Haible  <bruno@clisp.org>
68742
68743         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68744         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68745         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68746         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68747         NEED_PRINTF_INFINITE.
68748         (is_infinitel): New function.
68749         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68751         gl_PREREQ_VASNPRINTF_INFINITE.
68752         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68753         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68754         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68755         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68756         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68757         gl_PREREQ_VASNPRINTF_INFINITE.
68758         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68759         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68760         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68761         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68762         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68763         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68764         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68765         * doc/functions/fprintf.texi: Update.
68766         * doc/functions/printf.texi: Update.
68767         * doc/functions/snprintf.texi: Update.
68768         * doc/functions/sprintf.texi: Update.
68769         * doc/functions/vfprintf.texi: Update.
68770         * doc/functions/vprintf.texi: Update.
68771         * doc/functions/vsnprintf.texi: Update.
68772         * doc/functions/vsprintf.texi: Update.
68773
68774 2007-05-20  Bruno Haible  <bruno@clisp.org>
68775
68776         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68777         was not found in libc.
68778         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68779
68780 2007-05-20  Bruno Haible  <bruno@clisp.org>
68781
68782         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68783         printed as "-nan" instead of "nan".
68784         * tests/test-vasprintf-posix.c (test_function): Likewise.
68785         * tests/test-snprintf-posix.h (test_function): Likewise.
68786         * tests/test-sprintf-posix.h (test_function): Likewise.
68787         Needed for HP-UX 11.
68788
68789 2007-05-20  Jim Meyering  <jim@meyering.net>
68790
68791         Fix buggy test for the fchownat-deref bug.
68792         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68793         symlink required for the run-test.  Without it, this test would
68794         always declare that fchownat doesn't work, and client code would
68795         unnecessarily use the replacement function with fixed libc.
68796         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68797         Reported by Greg Schafer.
68798
68799 2007-05-19  Bruno Haible  <bruno@clisp.org>
68800
68801         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68802         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68803         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68804         Needed for IRIX 6.5 and Solaris 2.5.1.
68805
68806 2007-05-19  Bruno Haible  <bruno@clisp.org>
68807
68808         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68809         (test_function): Skip tests involving -0.0 on platforms where
68810         -0.0 = 0.0.
68811         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68812         (test_function): Skip tests involving -0.0 on platforms where
68813         -0.0 = 0.0.
68814         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68815         (test_function): Skip tests involving -0.0 on platforms where
68816         -0.0 = 0.0.
68817         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68818         (test_function): Skip tests involving -0.0 on platforms where
68819         -0.0 = 0.0.
68820         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68821         tests.
68822         * tests/test-printf-posix.h (test_function): Likewise.
68823         * tests/test-printf-posix.output: Remove all -0.0 related results.
68824         Needed for IRIX 6.5.
68825
68826 2007-05-19  Bruno Haible  <bruno@clisp.org>
68827
68828         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68829         printed as "nan0x7fffffff" instead of "nan".
68830         * tests/test-vasprintf-posix.c (test_function): Likewise.
68831         * tests/test-snprintf-posix.h (test_function): Likewise.
68832         * tests/test-sprintf-posix.h (test_function): Likewise.
68833         * tests/test-fprintf-posix.h (NaN): Remove macro.
68834         (test_function): Remove all NaN related tests.
68835         * tests/test-printf-posix.h (NaN): Remove macro.
68836         (test_function): Remove all NaN related tests.
68837         * tests/test-printf-posix.output: Remove all NaN related results.
68838         Needed for IRIX 6.5.
68839
68840 2007-05-19  Bruno Haible  <bruno@clisp.org>
68841
68842         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68844
68845 2007-05-19  Bruno Haible  <bruno@clisp.org>
68846
68847         * lib/float_.h: New file.
68848         * m4/float_h.m4: New file.
68849         * modules/float: New file.
68850         * modules/isnanl (Dependencies): Add float.
68851         * modules/isnanl-nolibm (Dependencies): Likewise.
68852         * modules/mathl (Dependencies): Likewise.
68853         * modules/printf-frexpl (Dependencies): Likewise.
68854         * modules/signbit (Dependencies): Likewise.
68855         * modules/vasnprintf (Dependencies): Likewise.
68856         * doc/headers/float.texi: Update.
68857
68858 2007-05-19  Jim Meyering  <jim@meyering.net>
68859
68860         * lib/utimens.c (gl_futimens): Rename from futimens,
68861         now that glibc-2.6 declares futimens.
68862         * lib/utimens.h: Likewise.
68863
68864 2007-05-19  Bruno Haible  <bruno@clisp.org>
68865
68866         Avoid test failures on mingw.
68867         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68868         * tests/test-printf-posix.sh: Likewise.
68869         * tests/test-vfprintf-posix.sh: Likewise.
68870         * tests/test-vprintf-posix.sh: Likewise.
68871
68872 2007-05-19  Bruno Haible  <bruno@clisp.org>
68873
68874         Fix *printf result for NaN, Inf, -0.0 on mingw.
68875         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68876         * lib/vasnprintf.c: Include math.h and isnan.h.
68877         (is_infinite_or_zero): New function.
68878         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68879         values in the %f, %F, %e, %E, %g, %G directives.
68880         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68881         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68882         gl_PRINTF_INFINITE and test its result. Invoke
68883         gl_PREREQ_VASNPRINTF_INFINITE.
68884         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68885         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68886         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68887         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68888         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68889         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68890         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68891         * doc/functions/fprintf.texi: Update.
68892         * doc/functions/printf.texi: Update.
68893         * doc/functions/snprintf.texi: Update.
68894         * doc/functions/sprintf.texi: Update.
68895         * doc/functions/vfprintf.texi: Update.
68896         * doc/functions/vprintf.texi: Update.
68897         * doc/functions/vsnprintf.texi: Update.
68898         * doc/functions/vsprintf.texi: Update.
68899
68900 2007-05-19  Bruno Haible  <bruno@clisp.org>
68901
68902         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68903         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68904         Instead of multiplying with 10^k, set extra_zeroes to k.
68905         (scale10_round_long_double): Remove function.
68906
68907 2007-05-18  Bruno Haible  <bruno@clisp.org>
68908
68909         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68910         introduced on 2007-05-06.
68911
68912 2007-05-18  Bruno Haible  <bruno@clisp.org>
68913
68914         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68915         %g directives.
68916         * tests/test-vasprintf-posix.c (test_function): Likewise.
68917         * tests/test-snprintf-posix.h (test_function): Likewise.
68918         * tests/test-sprintf-posix.h (test_function): Likewise.
68919
68920 2007-05-18  Bruno Haible  <bruno@clisp.org>
68921
68922         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68923         (strmatch): New function.
68924         (test_function): Test the %f directive on numbers of various exponents.
68925         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68926         (strmatch): New function.
68927         (test_function): Test the %f directive on numbers of various exponents.
68928         * tests/test-snprintf-posix.h (strmatch): New function.
68929         (test_function): Test the %f directive on numbers of various exponents.
68930         * tests/test-sprintf-posix.h (strmatch): New function.
68931         (test_function): Test the %f directive on numbers of various exponents.
68932         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68933         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68934         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68935         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68936
68937 2007-05-18  Bruno Haible  <bruno@clisp.org>
68938
68939         Add support for 'long double' number output.
68940         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68941         * lib/vasnprintf.c: Include math.h and float+.h.
68942         (mp_limb_t): New type.
68943         (GMP_LIMB_BITS): New macro.
68944         (mp_twolimb_t): New type.
68945         (GMP_TWOLIMB_BITS): New macro.
68946         (mpn_t): New type.
68947         (multiply, divide, convert_to_decimal, decode_long_double,
68948         scale10_round_long_double, scale10_round_decimal_long_double,
68949         floorlog10l): New functions.
68950         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68951         for the %f, %F, %e, %E, %g, %G directives.
68952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68953         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68954         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68955         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68956         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68957         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68958         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68959         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68960         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68961         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68962         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68963         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68964         * modules/snprintf-posix (Depends-on): Likewise.
68965         * modules/sprintf-posix (Depends-on): Likewise.
68966         * modules/vasnprintf-posix (Depends-on): Likewise.
68967         * modules/vasprintf-posix (Depends-on): Likewise.
68968         * modules/vfprintf-posix (Depends-on): Likewise.
68969         * modules/vsnprintf-posix (Depends-on): Likewise.
68970         * modules/vsprintf-posix (Depends-on): Likewise.
68971         * modules/vasnprintf (Files): Add lib/float+.h.
68972         * doc/functions/fprintf.texi: Update.
68973         * doc/functions/printf.texi: Update.
68974         * doc/functions/snprintf.texi: Update.
68975         * doc/functions/sprintf.texi: Update.
68976         * doc/functions/vfprintf.texi: Update.
68977         * doc/functions/vprintf.texi: Update.
68978         * doc/functions/vsnprintf.texi: Update.
68979         * doc/functions/vsprintf.texi: Update.
68980
68981 2007-05-18  Bruno Haible  <bruno@clisp.org>
68982
68983         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68984
68985 2007-05-18  Bruno Haible  <bruno@clisp.org>
68986
68987         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68988         for printing 64-bit integers. Needed for mingw.
68989
68990 2007-05-18  Bruno Haible  <bruno@clisp.org>
68991
68992         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68993         gl_FUNC_FREXPL_WORKS.
68994         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68995
68996 2007-05-18  Bruno Haible  <bruno@clisp.org>
68997
68998         * modules/frexpl-nolibm-tests: New file.
68999
69000         * modules/frexpl-nolibm: New file.
69001         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69002
69003 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69004
69005         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69006         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69007         GCC 4.2, which otherwise issues a lot of warnings.
69008         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69009         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69010         Likewise.
69011         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69012         * modules/iconv_open (iconv.h): Likewise.
69013         * modules/locale (locale.h): Likewise.
69014         * modules/netinet_in (netinet/in.h): Likewise.
69015         * modules/sys_select (sys_select.h): Likewise.
69016         * modules/sys_socket (sys/socket.h): Likewise.
69017         * modules/sys_stat (sys/stat.h): Likewise.
69018         * modules/sysexits (sysexits.h): Likewise.
69019         * modules/unistd (unistd.h): Likewise.
69020
69021 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69022
69023         * modules/closein-tests (Makefile.am): Distribute
69024         `test-closein.sh'.
69025
69026 2007-05-17  Bruno Haible  <bruno@clisp.org>
69027
69028         * tests/test-printf-posix.output: Renamed from
69029         tests/test-fprintf-posix.out.
69030         * modules/fprintf-posix-tests: Update.
69031         * modules/printf-posix-tests: Update.
69032         * modules/vfprintf-posix-tests: Update.
69033         * modules/vprintf-posix-tests: Update.
69034         * tests/test-fprintf-posix.sh: Update.
69035         * tests/test-printf-posix.sh: Update.
69036         * tests/test-vfprintf-posix.sh: Update.
69037         * tests/test-vprintf-posix.sh: Update.
69038         Reported by Ralf Wildenhues.
69039
69040 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69041
69042         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69043         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69044         GCC 4.2, which otherwise issues a lot of warnings.
69045         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69046         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69047         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69048         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69049         it should no longer be needed.
69050         * lib/string_.h: Likewise.
69051         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69052         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69053         * modules/inttypes (inttypes.h): Likewise.
69054         * modules/math (math.h): Likewise.
69055         * modules/search (search.h): Likewise.
69056         * modules/signal (signal.h): Likewise.
69057         * modules/stdint (stdint.h): Likewise.
69058         * modules/stdio (stdio.h): Likewise.
69059         * modules/stdlib (stdlib.h): Likewise.
69060         * modules/string (string.h): Likewise.
69061         * modules/sys_time (sys/time.h): Likewise.
69062         * modules/time (time.h): Likewise.
69063         * modules/wchar (wchar.h): Likewise.
69064         * modules/wctype (wtype.h): Likewise.
69065
69066 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69067
69068         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69069
69070 2007-05-13  Bruno Haible  <bruno@clisp.org>
69071
69072         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69073         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69074         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69075         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69076         (gl_PREREQ_STRTOK_R): Don't require it here.
69077
69078 2007-05-13  Bruno Haible  <bruno@clisp.org>
69079
69080         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69081         when used in C++ mode.
69082
69083 2007-05-12  Bruno Haible  <bruno@clisp.org>
69084
69085         * lib/linebuffer.h: Tweak doc.
69086         * lib/linebuffer.c: Likewise.
69087
69088 2007-05-12  James Youngman  <jay@gnu.org>
69089
69090         * lib/linebuffer.c (readlinebuffer_delim): New function,
69091         like readlinebuffer, but use a caller-specified delimiter.
69092         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69093         as the delimiter.
69094         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69095
69096 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69097
69098         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69099         * modules/openat (Files): Remove openat-die.c.
69100         (Depends-on): Add openat-die.
69101         * modules/openat-die: New module.
69102
69103 2007-05-06  Bruno Haible  <bruno@clisp.org>
69104
69105         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69106         Update with info about Cygwin.
69107         * doc/functions/fprintf.texi: Update.
69108         * doc/functions/printf.texi: Update.
69109         * doc/functions/snprintf.texi: Update.
69110         * doc/functions/sprintf.texi: Update.
69111         * doc/functions/vfprintf.texi: Update.
69112         * doc/functions/vprintf.texi: Update.
69113         * doc/functions/vsnprintf.texi: Update.
69114         * doc/functions/vsprintf.texi: Update.
69115         Reported by Eric Blake.
69116
69117 2007-05-06  Bruno Haible  <bruno@clisp.org>
69118
69119         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69120         padding ourselves for the floating-point directives.
69121         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69122         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69123         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69124         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69125         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69126         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69127         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69130         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69132         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69133         * tests/test-snprintf-posix.h (test_function): Also check the width
69134         and some flags in the %f directive.
69135         * tests/test-sprintf-posix.h (test_function): Likewise.
69136         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69137         * tests/test-vasprintf-posix.c (test_function): Likewise.
69138         * doc/functions/fprintf.texi: Update.
69139         * doc/functions/printf.texi: Update.
69140         * doc/functions/snprintf.texi: Update.
69141         * doc/functions/sprintf.texi: Update.
69142         * doc/functions/vfprintf.texi: Update.
69143         * doc/functions/vprintf.texi: Update.
69144         * doc/functions/vsnprintf.texi: Update.
69145         * doc/functions/vsprintf.texi: Update.
69146
69147 2007-05-06  Bruno Haible  <bruno@clisp.org>
69148
69149         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69150         pass the ' flag character to sprintf or snprintf.
69151         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69152         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69153         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69154         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69155         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69158         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69159         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69160         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69162         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69163         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69164         flag.
69165         * tests/test-sprintf-posix.h (test_function): Likewise.
69166         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69167         * tests/test-vasprintf-posix.c (test_function): Likewise.
69168         * doc/functions/fprintf.texi: Update.
69169         * doc/functions/printf.texi: Update.
69170         * doc/functions/snprintf.texi: Update.
69171         * doc/functions/sprintf.texi: Update.
69172         * doc/functions/vfprintf.texi: Update.
69173         * doc/functions/vprintf.texi: Update.
69174         * doc/functions/vsnprintf.texi: Update.
69175         * doc/functions/vsprintf.texi: Update.
69176
69177 2007-05-01  Bruno Haible  <bruno@clisp.org>
69178
69179         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69180
69181 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69182
69183         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69184         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69185
69186 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69187
69188         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69189         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69191
69192 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69193
69194         * lib/argp-help.c (struct hol_entry): New member `ord'.
69195         (HOL_ENTRY_PTRCMP): Use ord for comparison
69196         (hol_sort): Initialize ord.
69197
69198 2007-05-01  Bruno Haible  <bruno@clisp.org>
69199
69200         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69201         Reported by Eric Blake.
69202         * doc/gnulib.texi (Function Substitutes): Update.
69203
69204 2007-05-01  Bruno Haible  <bruno@clisp.org>
69205
69206         * doc/functions.texi: Remove file, now redundant through
69207         doc/functions/*.texi.
69208
69209 2007-05-01  Bruno Haible  <bruno@clisp.org>
69210
69211         * modules/argp (Depends-on): Add sleep.
69212
69213 2007-05-01  Bruno Haible  <bruno@clisp.org>
69214
69215         * modules/sleep-tests: New file.
69216         * tests/test-sleep.c: New file.
69217
69218         * modules/sleep: New file.
69219         * lib/sleep.c: New file.
69220         * m4/sleep.m4: New file.
69221         * lib/unistd_.h (sleep): New declaration.
69222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69223         HAVE_SLEEP.
69224         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69225         * doc/functions/sleep.texi: Document the sleep module.
69226
69227 2007-05-01  Bruno Haible  <bruno@clisp.org>
69228
69229         * lib/sigprocmask.h: Remove file.
69230         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69231         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69232         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69233         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69234         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69235         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69236         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69237         HAVE_SIGSET_T as a shell variable.
69238         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69239         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69240         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69241         (Depends-on): Add signal. Remove verify.
69242         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69243         (Include): Mention <signal.h> instead of sigprocmask.h.
69244         * NEWS: Mention the change.
69245         * lib/fatal-signal.c: Don't include sigprocmask.h.
69246
69247 2007-05-01  Bruno Haible  <bruno@clisp.org>
69248
69249         * modules/signal: New file.
69250         * lib/signal_.h: New file.
69251         * m4/signal_h.m4: New file.
69252
69253 2007-05-01  Bruno Haible  <bruno@clisp.org>
69254
69255         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69256         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69257         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69258         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69259
69260 2007-05-01  Bruno Haible  <bruno@clisp.org>
69261
69262         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69263         configure time.
69264         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69265         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69266         * modules/sys_stat (Makefile.am): Substitute their values into
69267         sys/stat.h.
69268
69269 2007-05-01  Bruno Haible  <bruno@clisp.org>
69270
69271         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69272         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69273         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69274
69275 2007-05-01  Bruno Haible  <bruno@clisp.org>
69276
69277         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69278         'assert' module here.
69279
69280 2007-05-01  Bruno Haible  <bruno@clisp.org>
69281
69282         * doc/functions/*.texi: New files.
69283         * doc/functions/google-ranking.txt: New file.
69284         * doc/gnulib.texi (Function Substitutes): New chapter.
69285         (ctime, inet_ntoa): Remove sections.
69286         * doc/ctime.texi: Remove file.
69287         * doc/inet_ntoa.texi: Remove file.
69288         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69289         dependencies.
69290         (%.info): New rule, specifying a --reference-limit.
69291
69292 2007-05-01  Bruno Haible  <bruno@clisp.org>
69293
69294         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69295
69296 2007-05-01  Bruno Haible  <bruno@clisp.org>
69297
69298         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69299         the portability of 'mkdir' to mingw systems.
69300
69301 2007-05-01  Bruno Haible  <bruno@clisp.org>
69302
69303         * doc/headers/google-ranking.txt: New file.
69304
69305 2007-04-30  Eric Blake  <ebb9@byu.net>
69306
69307         Prefer fseeko to fseek.
69308         * modules/getpass (Depends-on): Add fseeko.
69309         * lib/getpass.c (getpass): Use fseeko, not fseek.
69310
69311 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69312
69313         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69314         assumes the sorting is stable, while most qsort implementations
69315         are not.  Use argument addresses to ensure they never compare as
69316         equal.
69317
69318         * tests/test-argp-2.sh (usage-indent test): Fix output
69319         (func_compare): Restore diff options
69320         * tests/test-argp.c: Restore #include "progname.h"
69321
69322 2007-04-29  Bruno Haible  <bruno@clisp.org>
69323
69324         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69326         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69327         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69328         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69329         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69330         (TESTS, check_PROGRAMS): Add test-snprintf.
69331         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69332         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69333         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69334         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69335         assertions that fail on HP-UX, OSF/1, or IRIX.
69336         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69337
69338 2007-04-29  Bruno Haible  <bruno@clisp.org>
69339
69340         * MODULES.html.sh (posix_functions): Remove 'contents'.
69341
69342 2007-04-29  Karl Berry  <karl@gnu.org>
69343
69344         * config/srclist.txt (gendocs_template_min): new entry.
69345
69346 2007-04-29  Bruno Haible  <bruno@clisp.org>
69347
69348         Work around fpurge bug on BSD systems.
69349         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69350         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69351         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69352         fpurge to rpl_fpurge if the system already has this function.
69353         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69354         the case where the system already has this function. Correct invariants
69355         on BSD systems.
69356         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69357         BSD systems.
69358
69359 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69360
69361         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69362         proposed by Sven Verdoolaege.
69363
69364         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69365         options.
69366         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69367         (usage and help tests): Update
69368
69369 2007-04-29  Bruno Haible  <bruno@clisp.org>
69370
69371         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69372         Print more information in case of failure. Disable a test on BeOS.
69373
69374 2007-04-29  Bruno Haible  <bruno@clisp.org>
69375
69376         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69377         This helps debugging on systems on which no gdb is available.
69378
69379 2007-04-29  Bruno Haible  <bruno@clisp.org>
69380
69381         * lib/freading.h: Improve comments.
69382         * lib/fwriting.h: Likewise.
69383         * tests/test-freading.c (main): Don't check freading immediately after
69384         repositioning. Needed for glibc.
69385
69386 2007-04-29  Bruno Haible  <bruno@clisp.org>
69387
69388         * lib/freading.c (freading): Trivial simplification.
69389
69390 2007-04-28  Bruno Haible  <bruno@clisp.org>
69391
69392         * tests/test-fwriting.c (main): Also test the interaction between
69393         fflush and fwriting.
69394         * modules/fwriting-tests (Depends-on): Add fflush.
69395
69396         * tests/test-freading.c (main): Also test the interaction between
69397         fflush and freading.
69398         * modules/freading-tests (Depends-on): Add fflush.
69399
69400 2007-04-28  Bruno Haible  <bruno@clisp.org>
69401
69402         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69403         fseeko and ftello.
69404         Suggested by Eric Blake.
69405
69406 2007-04-28  Jim Meyering  <jim@meyering.net>
69407
69408         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69409         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69410         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69411
69412 2007-04-27  Eric Blake  <ebb9@byu.net>
69413
69414         * doc/headers/assert.texi (assert.h): Document assert module use.
69415
69416 2007-04-27  Bruno Haible  <bruno@clisp.org>
69417
69418         * doc/headers/*.texi: New files.
69419         * doc/gnulib.texi (Header File Substitutes): New chapter.
69420         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69421         dependencies.
69422         (standards.info ,standards.html, standards.dvi): Update dependencies.
69423         (mostlyclean, clean): New targets.
69424
69425 2007-04-27  Bruno Haible  <bruno@clisp.org>
69426
69427         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69428         * modules/sysexits (Files, Makefile.am): Update.
69429
69430         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69431         * modules/sys_socket (Files, Makefile.am): Update.
69432
69433         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69434         * modules/sys_stat (Files, Makefile.am): Update.
69435
69436 2007-04-27  Eric Blake  <ebb9@byu.net>
69437
69438         * lib/freading.h: Improve comments.
69439         * lib/fwriting.h: Likewise.
69440         * lib/fflush.c: Likewise.
69441
69442         Fix closein for mingw.
69443         * modules/closein-tests: Add tests for closein.
69444         * tests/test-closein.c: New file.
69445         * tests/test-closein.sh: Likewise.
69446         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69447         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69448
69449 2007-04-27  Bruno Haible  <bruno@clisp.org>
69450
69451         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69452         version is < 6.
69453         * lib/math_.h [__DECC]: Likewise.
69454         * lib/stdio_.h [__DECC]: Likewise.
69455         * lib/stdlib_.h [__DECC]: Likewise.
69456         * lib/string_.h [__DECC]: Likewise.
69457         * lib/time_.h [__DECC]: Likewise.
69458         * lib/wchar_.h [__DECC]: Likewise.
69459         * lib/wctype_.h [__DECC]: Likewise.
69460
69461 2007-04-27  Bruno Haible  <bruno@clisp.org>
69462
69463         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69464
69465 2007-04-27  Bruno Haible  <bruno@clisp.org>
69466
69467         * lib/fflush.c: Add comments.
69468         * modules/fpurge-tests (Depends-on): Add fflush.
69469         * modules/freadable-tests (Depends-on): Likewise.
69470         * modules/fwritable-tests (Depends-on): Likewise.
69471
69472 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69473
69474         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69475         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69476         Report by Bruno Haible <bruno@clisp.org>.
69477
69478 2007-04-26  Eric Blake  <ebb9@byu.net>
69479
69480         Fix fflush on mingw.
69481         * modules/fflush (Depends-on): Add freading.
69482         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69483         but unread data.
69484
69485 2007-04-26  Eric Blake  <ebb9@byu.net>
69486         and Bruno Haible  <bruno@clisp.org>
69487
69488         Implement freading and fwriting.
69489         * lib/freading.c: New file.
69490         * lib/freading.h: Likewise.
69491         * m4/freading.m4: Likewise.
69492         * modules/freading: Likewise.
69493         * modules/freading-tests: Likewise.
69494         * tests/test-freading.c: Likewise.
69495         * lib/fwriting.c: New file.
69496         * lib/fwriting.h: Likewise.
69497         * m4/fwriting.m4: Likewise.
69498         * modules/fwriting: Likewise.
69499         * modules/fwriting-tests: Likewise.
69500         * tests/test-fwriting.c: Likewise.
69501         * MODULES.html.sh (File stream based Input/Output): Mention them.
69502
69503 2007-04-26  Bruno Haible  <bruno@clisp.org>
69504
69505         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69506         'long' when we assume it.
69507         Suggested by Eric Blake.
69508
69509 2007-04-26  Bruno Haible  <bruno@clisp.org>
69510
69511         Ensure fseeko, ftello are declared on glibc systems.
69512         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69513         * modules/fseeko (configure.ac-early): Likewise.
69514         * modules/ftello (configure.ac-early): Likewise.
69515         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69516         AC_FUNC_FSEEKO for this.
69517         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69518         (gl_CHECK_FSEEKO): Remove macro.
69519
69520 2007-04-26  Bruno Haible  <bruno@clisp.org>
69521
69522         * tests/test-fflush.c (main): Also check the ftell result after
69523         fflush and fseek/fseeko.
69524         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69525         file descriptor position cache in the stream.
69526         * lib/fseeko.c (rpl_fseeko): Likewise.
69527
69528 2007-04-26  Bruno Haible  <bruno@clisp.org>
69529
69530         * modules/fflush-tests (Depends-on): Add fseeko.
69531
69532 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69533             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69534
69535         * lib/argz_.h: ensure error_t definition is obtained in same
69536         mechanism system argz.h would have.
69537         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69538         argz facilities are known bad.  Err on the side of caution if
69539         cross-compiling.
69540
69541 2007-04-25  Eric Blake  <ebb9@byu.net>
69542
69543         * lib/fpurge.c (includes): Use stdlib.h for free.
69544         * tests/test-fflush.c (main): Also test fflush-fseeko.
69545
69546 2007-04-25  Bruno Haible  <bruno@clisp.org>
69547
69548         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69549         * lib/fseeko.c: New file.
69550         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69551         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69552         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69553         gl_FUNC_FSEEKO.
69554         (gl_FUNC_FSEEKO): Invoke it.
69555         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69556         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69557         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69558
69559 2007-04-25  Bruno Haible  <bruno@clisp.org>
69560
69561         * modules/fflush (Depends-on): Add ftello.
69562
69563 2007-04-25  Bruno Haible  <bruno@clisp.org>
69564
69565         * modules/ftello-tests: New file.
69566         * tests/test-ftello.c: New file.
69567
69568         * modules/ftello: New file.
69569         * m4/ftello.m4: New file.
69570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69571         HAVE_FTELLO.
69572         * lib/stdio_.h (ftello): New declaration.
69573         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69574         HAVE_FTELLO.
69575
69576 2007-04-25  Bruno Haible  <bruno@clisp.org>
69577
69578         * modules/fseeko-tests: New file.
69579         * tests/test-fseeko.c: New file.
69580
69581         * modules/fseeko: New file.
69582         * m4/fseeko.m4: New file.
69583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69584         HAVE_FSEEKO.
69585         * lib/stdio_.h (fseeko): New declaration.
69586         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69587         HAVE_FSEEKO.
69588
69589 2007-04-25  Bruno Haible  <bruno@clisp.org>
69590
69591         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69592
69593 2007-04-25  Bruno Haible  <bruno@clisp.org>
69594
69595         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69596         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69597         * tests/test-unistd.c: Likewise.
69598         * tests/test-fcntl.c: Likewise.
69599
69600 2007-04-23  Eric Blake  <ebb9@byu.net>
69601
69602         * lib/fflush.c: Fix missing include.
69603         Reported by Bruno Haible.
69604
69605 2007-04-23  Bruno Haible  <bruno@clisp.org>
69606
69607         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69608         Reported by Eric Blake.
69609
69610 2007-04-23  Bruno Haible  <bruno@clisp.org>
69611
69612         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69613
69614 2007-04-23  Bruno Haible  <bruno@clisp.org>
69615
69616         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69617
69618 2007-04-23  Bruno Haible  <bruno@clisp.org>
69619
69620         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69621         Needed on HP-UX 11.
69622
69623 2007-04-16  Eric Blake  <ebb9@byu.net>
69624
69625         Make fflush rely on fpurge.
69626         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69627         open coding all variants.
69628         * modules/fflush (Depends-on): Add fpurge and unistd.
69629         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69630         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69631
69632         Fix --with-tests compilation on cygwin.
69633         * modules/argmatch-tests (Makefile.am): List gnulib library first
69634         in LDADD.
69635         * modules/argp-tests (Makefile.am): Likewise.
69636         * modules/array-list-tests (Makefile.am): Likewise.
69637         * modules/array-oset-tests (Makefile.am): Likewise.
69638         * modules/avltree-list-tests (Makefile.am): Likewise.
69639         * modules/avltree-oset-tests (Makefile.am): Likewise.
69640         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69641         * modules/carray-list-tests (Makefile.am): Likewise.
69642         * modules/dirname-tests (Makefile.am): Likewise.
69643         * modules/frexp-tests (Makefile.am): Likewise.
69644         * modules/isnanl-tests (Makefile.am): Likewise.
69645         * modules/linked-list-tests (Makefile.am): Likewise.
69646         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69647         * modules/lock-tests (Makefile.am): Likewise.
69648         * modules/rbtree-list-tests (Makefile.am): Likewise.
69649         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69650         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69651         * modules/tls-tests (Makefile.am): Likewise.
69652         * modules/tsearch-tests (Makefile.am): Likewise.
69653         * modules/xvasprintf-tests (Makefile.am): Likewise.
69654
69655         Fix fpurge for cygwin.
69656         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69657         value.
69658         * modules/fpurge-tests (Depends-on): Clean up trash.
69659
69660 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69661
69662         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69663
69664         * m4/autobuild.m4: Re-indent.
69665
69666 2007-04-13  Bruno Haible  <bruno@clisp.org>
69667
69668         * modules/fpurge-tests: New file.
69669         * tests/test-fpurge.c: New file.
69670
69671         * modules/fpurge: New file.
69672         * lib/fpurge.h: New file.
69673         * lib/fpurge.c: New file.
69674         * m4/fpurge.m4: New file.
69675
69676 2007-04-13  Bruno Haible  <bruno@clisp.org>
69677
69678         * modules/fbufmode-tests: New file.
69679         * tests/test-fbufmode.c: New file.
69680
69681         * modules/fbufmode: New file.
69682         * lib/fbufmode.h: New file.
69683         * lib/fbufmode.c: New file.
69684         * m4/fbufmode.m4: New file.
69685
69686 2007-04-13  Bruno Haible  <bruno@clisp.org>
69687
69688         * modules/fwritable-tests: New file.
69689         * tests/test-fwritable.c: New file.
69690
69691         * modules/fwritable: New file.
69692         * lib/fwritable.h: New file.
69693         * lib/fwritable.c: New file.
69694         * m4/fwritable.m4: New file.
69695
69696 2007-04-13  Bruno Haible  <bruno@clisp.org>
69697
69698         * modules/freadable-tests: New file.
69699         * tests/test-freadable.c: New file.
69700
69701         * modules/freadable: New file.
69702         * lib/freadable.h: New file.
69703         * lib/freadable.c: New file.
69704         * m4/freadable.m4: New file.
69705
69706 2007-04-13  Bruno Haible  <bruno@clisp.org>
69707
69708         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69709         MOSTLYCLEANFILES.
69710
69711 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69712
69713         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69714         gzip bootstrap.conf to avoid dragging in i18n machinery.
69715         (gnulib_tool_option): Use it.
69716
69717 2007-04-13  Bruno Haible  <bruno@clisp.org>
69718
69719         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69720         %F directives.
69721         * tests/test-vasprintf-posix.c (test_function): Likewise.
69722         * tests/test-snprintf-posix.h (test_function): Likewise.
69723         * tests/test-sprintf-posix.h (test_function): Likewise.
69724         * tests/test-fprintf-posix.h (test_function): Likewise.
69725         * tests/test-printf-posix.h (test_function): Likewise.
69726         * tests/test-fprintf-posix.out: Likewise.
69727
69728 2007-04-13  Bruno Haible  <bruno@clisp.org>
69729
69730         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69731         * modules/tls-tests (configure.ac): Likewise.
69732         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69733
69734 2007-04-13  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/tls.c (glthread_tls_get): Fix return type.
69737         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69738
69739 2007-04-12  Eric Blake  <ebb9@byu.net>
69740
69741         * modules/gettime (Depends-on): Remove gettime.
69742         Reported by Dmitry V. Levin.
69743
69744 2007-04-12  Bruno Haible  <bruno@clisp.org>
69745
69746         * modules/fflush (Include): Mention <stdio.h>.
69747         * modules/strtoimax (Include): Mention <inttypes.h>.
69748         * modules/strtoumax (Include): Likewise.
69749
69750 2007-04-12  Eric Blake  <ebb9@byu.net>
69751
69752         * .cvsignore: New file.
69753         * .gitignore: Likewise.
69754
69755 2007-04-12  Bruno Haible  <bruno@clisp.org>
69756
69757         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69758         not before, since $(LDADD) often contains libgnu.a.
69759         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69760         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69761         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69762         Needed on Cygwin.
69763
69764 2007-04-12  Eric Blake  <ebb9@byu.net>
69765
69766         Work around glibc's failure to flush stdin on fclose.
69767         * lib/closein.c (close_stdin): Flush stdin before closing.
69768
69769         Work around glibc's failure to reset seekable stdin on exit.
69770         * modules/closein: New module.
69771         * lib/closein.c: New file.
69772         * lib/closein.h: Likewise.
69773         * m4/closein.m4: Likewise.
69774         * MODULES.html.sh (File stream based Input/Output): Document it.
69775
69776 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69777
69778         * gnulib-tool: Rename generated 'autobuild' script to
69779         'do-autobuild' in --create-megatestdir output.
69780
69781         * doc/gnulib.texi (Build robot for gnulib): Fix.
69782
69783 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69784
69785         * modules/sysexits (Depends-on): Add absolute-header.
69786
69787 2007-04-12  Eric Blake  <ebb9@byu.net>
69788
69789         No need to preserve errno on success.
69790         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69791         Reported by Bruno Haible.
69792
69793 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69794
69795         * MODULES.html.sh (Support for maintaining and releasing
69796         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69797
69798 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69799
69800         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69801
69802 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69803
69804         * modules/autobuild: New module.
69805
69806         * m4/autobuild.m4: New file.
69807
69808 2007-04-11  Bruno Haible  <bruno@clisp.org>
69809
69810         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69811         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69812         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69814         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69815         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69816         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69818         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69819         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69820         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69821         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69822         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69823         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69824         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69825         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69826         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69827         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69828         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69829         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69830         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69831         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69832         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69833         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69834         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69835         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69836         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69837         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69838         Reported by Eric Blake.
69839
69840 2007-04-11  Bruno Haible  <bruno@clisp.org>
69841
69842         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69843
69844 2007-04-10  Bruno Haible  <bruno@clisp.org>
69845
69846         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69847         for NaN and Infinity. Needed on FreeBSD 6.1.
69848         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69849         regarding results for "%010a" of Infinity and NaN.
69850         * tests/test-vasprintf-posix.c (test_function): Likewise.
69851         * tests/test-snprintf-posix.h (test_function): Likewise.
69852         * tests/test-sprintf-posix.h (test_function): Likewise.
69853         * tests/test-fprintf-posix.h (test_function): Likewise.
69854         * tests/test-printf-posix.h (test_function): Likewise.
69855         * tests/test-fprintf-posix.out: Likewise.
69856
69857 2007-04-10  Bruno Haible  <bruno@clisp.org>
69858
69859         * modules/locale-tests: New file.
69860         * tests/test-locale.c: New file.
69861
69862         * modules/locale: New file.
69863         * lib/locale_.h: New file.
69864         * m4/locale_h.m4: New file.
69865
69866 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69867             Bruno Haible  <bruno@clisp.org>
69868
69869         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69870         be determined, test for availability of the copysignf, copysign,
69871         copysignl functions.
69872         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69873         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69874         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69875
69876 2007-04-09  Eric Blake  <ebb9@byu.net>
69877
69878         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69879         * modules/stdio (Makefile.am): Support fflush.
69880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69881         * modules/fflush: New file.
69882         * lib/fflush.c: Likewise.
69883         * m4/fflush.m4: Likewise.
69884         * modules/fflush-tests: New test.
69885         * tests/test-fflush.c: Likewise.
69886         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69887
69888 2007-04-06  Bruno Haible  <bruno@clisp.org>
69889
69890         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69891         (VASNPRINTF): Use signbit for faster determination whether to print a
69892         minus sign.
69893         * modules/vasnprintf (Files): Remove lib/float+.h.
69894         * modules/fprintf-posix (Depends-on): Add signbit.
69895         * modules/snprintf-posix (Depends-on): Likewise.
69896         * modules/sprintf-posix (Depends-on): Likewise.
69897         * modules/vasnprintf-posix (Depends-on): Likewise.
69898         * modules/vasprintf-posix (Depends-on): Likewise.
69899         * modules/vfprintf-posix (Depends-on): Likewise.
69900         * modules/vsnprintf-posix (Depends-on): Likewise.
69901         * modules/vsprintf-posix (Depends-on): Likewise.
69902
69903 2007-04-06  Bruno Haible  <bruno@clisp.org>
69904
69905         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69906         * tests/test-frexpl.c (main): Likewise.
69907         * tests/test-ldexpl.c (main): Likewise.
69908         * modules/frexp-tests (Depends-on): Add signbit.
69909         * modules/frexpl-tests (Depdends-on): Likewise.
69910         * modules/ldexpl-tests (Depdends-on): Likewise.
69911
69912 2007-04-06  Bruno Haible  <bruno@clisp.org>
69913
69914         * modules/signbit-tests: New file.
69915         * tests/test-signbit.c: New file.
69916
69917         * modules/signbit: New file.
69918         * lib/signbitf.c: New file.
69919         * lib/signbitd.c: New file.
69920         * lib/signbitl.c: New file.
69921         * m4/signbit.m4: New file.
69922         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69923         (signbit): New macro.
69924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69925         REPLACE_SIGNBIT.
69926         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69927         REPLACE_FREXPL into math.h.
69928
69929 2007-04-06  Bruno Haible  <bruno@clisp.org>
69930
69931         * modules/isnanf-nolibm-tests: New file.
69932         * tests/test-isnanf.c: New file.
69933
69934         * modules/isnanf-nolibm: New file.
69935         * lib/isnanf.h: New file.
69936         * lib/isnanf.c: New file.
69937         * lib/isnan.c: Consider the USE_FLOAT macro.
69938         * m4/isnanf.m4: New file.
69939
69940 2007-04-06  Bruno Haible  <bruno@clisp.org>
69941
69942         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69943         (Link): New section.
69944
69945         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69946
69947 2007-04-06  Bruno Haible  <bruno@clisp.org>
69948
69949         Assume the 'long double' type.
69950         * m4/longdouble.m4: Remove file.
69951         * config/srclist.txt: Don't mention longdouble.m4.
69952         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69953         * lib/float+.h: Likewise.
69954         * lib/frexp.c: Likewise.
69955         * lib/printf-args.h: Likewise.
69956         * lib/printf-args.c: Likewise.
69957         * lib/printf-frexp.c: Likewise.
69958         * lib/printf-parse.c: Likewise.
69959         * lib/vasnprintf.c: Likewise.
69960         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69961         * m4/intl.m4: Likewise.
69962         * m4/isnanl.m4: Likewise.
69963         * m4/printf.m4: Likewise.
69964         * m4/printf-frexpl.m4: Likewise.
69965         * m4/vasnprintf.m4: Likewise.
69966         * modules/allocsa (Files): Remove m4/longdouble.m4.
69967         * modules/gettext (Files): Likewise.
69968         * modules/relocatable-prog-wrapper (Files): Likewise.
69969         * modules/vasnprintf (Files): Likewise.
69970         * modules/isnanl (Files): Likewise.
69971         (Include): Simplify.
69972         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69973         (Include): Simplify.
69974         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69975         (Include): Simplify.
69976         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69977         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69978         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69979         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69980         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69981         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69982         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69983         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69984         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69985         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69986         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69987         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69988         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69989         * tests/test-isnanl.c: Likewise.
69990         * tests/test-snprintf-posix.h: Likewise.
69991         * tests/test-sprintf-posix.h: Likewise.
69992         * tests/test-vasnprintf-posix.c: Likewise.
69993         * tests/test-vasnprintf-posix2.c: Likewise.
69994         * tests/test-vasprintf-posix.c: Likewise.
69995
69996 2007-04-06  Bruno Haible  <bruno@clisp.org>
69997
69998         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69999         * lib/math_.h [__DECC]: Include the overridden include file through
70000         #include_next, outside the double-inclusion guard.
70001         * lib/stdio_.h [__DECC]: Likewise.
70002         * lib/stdlib_.h [__DECC]: Likewise.
70003         * lib/string_.h [__DECC]: Likewise.
70004         * lib/time_.h [__DECC]: Likewise.
70005         * lib/wchar_.h [__DECC]: Likewise.
70006         * lib/wctype_.h [__DECC]: Likewise.
70007         * lib/inttypes_.h [__DECC]: Likewise.
70008         Reported by Albert Chin <china@thewrittenword.com> in
70009         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70010
70011 2007-04-04  Eric Blake  <ebb9@byu.net>
70012
70013         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70014         1.5.x.
70015
70016 2007-04-04  Bruno Haible  <bruno@clisp.org>
70017
70018         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70019         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70020
70021 2007-04-04  Bruno Haible  <bruno@clisp.org>
70022
70023         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70024         results for "%010a" of Infinity and NaN.
70025         * tests/test-vasprintf-posix.c (test_function): Likewise.
70026         * tests/test-snprintf-posix.h (test_function): Likewise.
70027         * tests/test-sprintf-posix.h (test_function): Likewise.
70028         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70029         * tests/test-printf-posix.h (test_function): Likewise.
70030         * tests/test-fprintf-posix.out: Update.
70031         Needed for FreeBSD 6.1.
70032
70033 2007-04-04  Bruno Haible  <bruno@clisp.org>
70034
70035         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70036         directly used by the gnulib modules nor by gnulib-tool.
70037
70038 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * DEPENDENCIES: Give overall description of version dependency
70041         desirability.  Use more-typical names for apps.
70042         Add shell, coreutils, diffutils, grep, tar, gzip.
70043
70044 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70045
70046         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70047
70048 2007-04-04  Karl Berry  <karl@gnu.org>
70049
70050         * MODULES.html.sh (func_module): missing '.
70051
70052 2007-04-03  Bruno Haible  <bruno@clisp.org>
70053
70054         * modules/argmatch-tests (Makefile.am): New variable
70055         test_argmatch_LDADD.
70056         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70057         * modules/array-list-tests (Makefile.am): New variable
70058         test_array_list_LDADD.
70059         * modules/array-oset-tests (Makefile.am): New variable
70060         test_array_oset_LDADD.
70061         * modules/avltree-list-tests (Makefile.am): New variable
70062         test_avltree_list_LDADD.
70063         * modules/avltree-oset-tests (Makefile.am): New variable
70064         test_avltree_oset_LDADD.
70065         * modules/avltreehash-list-tests (Makefile.am): New variable
70066         test_avltreehash_list_LDADD.
70067         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70068         test_canonicalize_lgpl_LDADD.
70069         * modules/carray-list-tests (Makefile.am): New variable
70070         test_carray_list_LDADD.
70071         * modules/dirname-tests (Makefile.am): New variable
70072         test_dirname_LDADD.
70073         * modules/linked-list-tests (Makefile.am): New variable
70074         test_linked_list_LDADD.
70075         * modules/linkedhash-list-tests (Makefile.am): New variable
70076         test_linkedhash_list_LDADD.
70077         * modules/rbtree-list-tests (Makefile.am): New variable
70078         test_rbtree_list_LDADD.
70079         * modules/rbtree-oset-tests (Makefile.am): New variable
70080         test_rbtree_oset_LDADD.
70081         * modules/rbtreehash-list-tests (Makefile.am): New variable
70082         test_rbtreehash_list_LDADD.
70083         * modules/xvasprintf-tests (Makefile.am): New variable
70084         test_xvasprintf_LDADD.
70085         Reported by Eric Blake.
70086
70087 2007-04-03  Eric Blake  <ebb9@byu.net>
70088
70089         * DEPENDENCIES: Weaken m4 requirements.
70090
70091 2007-04-03  Bruno Haible  <bruno@clisp.org>
70092
70093         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70094         * modules/isnanl-tests (configure.ac): Likewise.
70095
70096 2007-04-03  Ben Pfaff  <blp@gnu.org>
70097
70098         * modules/iconv_open: Add $(srcdir)/ to source directory
70099         references in Makefile fragments that call gperf, to fix VPATH
70100         builds.
70101
70102 2007-04-03  Bruno Haible  <bruno@clisp.org>
70103
70104         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70105         * lib/ldexpl.c: Undo last change.
70106
70107 2007-04-03  Bruno Haible  <bruno@clisp.org>
70108
70109         * modules/printf-frexpl (Depends-on): Undo last change.
70110         (Files): Add m4/ldexpl.m4.
70111
70112 2007-04-03  Bruno Haible  <bruno@clisp.org>
70113
70114         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70115         * modules/isnanl (Link): New section.
70116
70117         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70118         * modules/frexp (Link): New section.
70119
70120         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70121         * modules/frexpl (Link): New section.
70122
70123         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70124         * modules/ldexpl (Link): New section.
70125
70126 2007-04-03  Bruno Haible  <bruno@clisp.org>
70127
70128         * modules/TEMPLATE-EXTENDED: New file.
70129         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70130
70131 2007-04-03  Bruno Haible  <bruno@clisp.org>
70132
70133         * DEPENDENCIES: New file.
70134         Suggested by Simon Josefsson.
70135
70136 2007-04-03  Bruno Haible  <bruno@clisp.org>
70137
70138         * doc/gnulib.texi: Escape @.
70139
70140 2007-04-03  James Youngman  <jay@gnu.org>
70141         and Paul Eggert  <eggert@cs.ucla.edu>
70142
70143         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70144         birthtime on all systems that have birthtime, not just those which
70145         use st_birthtimensec rather than st_birthtim.  Putting zero in
70146         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70147         that the birth time is not available for files on an NFS mount.
70148
70149 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70150
70151         * modules/memxor: Move back from crypto/, suggested by Bruno.
70152         * modules/crypto/hmac-sha1: Fix memxor dependency.
70153
70154         * modules/crypto/gc: Moved from ../.
70155
70156 2007-04-02  Eric Blake  <ebb9@byu.net>
70157
70158         * lib/ldexpl.c (includes): Avoid libm.
70159
70160         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70161
70162 2007-04-02  Bruno Haible  <bruno@clisp.org>
70163
70164         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70165         on IRIX.
70166
70167 2007-04-02  Bruno Haible  <bruno@clisp.org>
70168
70169         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70170         x86 or x86_64 platforms running MacOS X.
70171         Reported by Ryan Schmidt <@ryandesign.com>.
70172
70173 2007-04-02  Bruno Haible  <bruno@clisp.org>
70174
70175         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70176         i386.
70177
70178 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70179
70180         * modules/crypto/arcfour: Moved from ../.
70181         * modules/crypto/arcfour-tests: Moved from ../.
70182         * modules/crypto/arctwo: Moved from ../.
70183         * modules/crypto/arctwo-tests: Moved from ../.
70184         * modules/crypto/des: Moved from ../.
70185         * modules/crypto/des-tests: Moved from ../.
70186         * modules/crypto/gc-arcfour: Moved from ../.
70187         * modules/crypto/gc-arcfour-tests: Moved from ../.
70188         * modules/crypto/gc-arctwo: Moved from ../.
70189         * modules/crypto/gc-arctwo-tests: Moved from ../.
70190         * modules/crypto/gc-des: Moved from ../.
70191         * modules/crypto/gc-des-tests: Moved from ../.
70192         * modules/crypto/gc-hmac-md5: Moved from ../.
70193         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70194         * modules/crypto/gc-hmac-sha1: Moved from ../.
70195         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70196         * modules/crypto/gc-md2: Moved from ../.
70197         * modules/crypto/gc-md2-tests: Moved from ../.
70198         * modules/crypto/gc-md4: Moved from ../.
70199         * modules/crypto/gc-md4-tests: Moved from ../.
70200         * modules/crypto/gc-md5: Moved from ../.
70201         * modules/crypto/gc-md5-tests: Moved from ../.
70202         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70203         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70204         * modules/crypto/gc-random: Moved from ../.
70205         * modules/crypto/gc-rijndael: Moved from ../.
70206         * modules/crypto/gc-rijndael-tests: Moved from ../.
70207         * modules/crypto/gc-sha1: Moved from ../.
70208         * modules/crypto/gc-sha1-tests: Moved from ../.
70209         * modules/crypto/gc-tests: Moved from ../.
70210         * modules/crypto/hmac-md5: Moved from ../.
70211         * modules/crypto/hmac-md5-tests: Moved from ../.
70212         * modules/crypto/hmac-sha1: Moved from ../.
70213         * modules/crypto/hmac-sha1-tests: Moved from ../.
70214         * modules/crypto/md2: Moved from ../.
70215         * modules/crypto/md2-tests: Moved from ../.
70216         * modules/crypto/md4: Moved from ../.
70217         * modules/crypto/md4-tests: Moved from ../.
70218         * modules/crypto/md5: Moved from ../.
70219         * modules/crypto/md5-tests: Moved from ../.
70220         * modules/crypto/memxor: Moved from ../.
70221         * modules/crypto/rijndael: Moved from ../.
70222         * modules/crypto/rijndael-tests: Moved from ../.
70223         * modules/crypto/sha1: Moved from ../.
70224
70225 2007-03-30  James Youngman  <jay@gnu.org>
70226
70227         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70228         rename() to change the ctime of a file (because ctime is unaffected
70229         by rename on jfs2 on AIX 5.1).
70230         (main): Start by doing cleanup, in case a previous run failed leaving
70231         test files behind.
70232
70233 2007-03-31  Bruno Haible  <bruno@clisp.org>
70234
70235         Support old proprietary implementations of iconv.
70236         * modules/iconv_open: New file.
70237         * lib/iconv_.h: New file.
70238         * m4/iconv_h.m4: New file.
70239         * lib/iconv_open.c: New file.
70240         * lib/iconv_open-aix.gperf: New file.
70241         * lib/iconv_open-hpux.gperf: New file.
70242         * lib/iconv_open-irix.gperf: New file.
70243         * lib/iconv_open-osf.gperf: New file.
70244         * m4/iconv_open.m4: New file.
70245         * modules/linebreak (Depends-on): Add iconv_open.
70246         * modules/striconv (Depends-on): Likewise.
70247         * modules/striconveh (Depends-on): Likewise.
70248         * modules/unicodeio (Depends-on): Likewise.
70249         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70250         (iconv_t)(-1).
70251         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70252         conversion if cd is (iconv_t)(-1).
70253         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70254         is not possible.
70255
70256 2007-03-31  Bruno Haible  <bruno@clisp.org>
70257
70258         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70259         work on Solaris either. Protect also second use of "autodetect_jp".
70260
70261 2007-03-31  Bruno Haible  <bruno@clisp.org>
70262
70263         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70264         the function is not present.
70265
70266 2007-03-31  Bruno Haible  <bruno@clisp.org>
70267
70268         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70269         the function is not present.
70270
70271 2007-03-31  Bruno Haible  <bruno@clisp.org>
70272
70273         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70274         a bug in HP-UX iconv_open().
70275
70276 2007-03-31  Bruno Haible  <bruno@clisp.org>
70277
70278         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70279         (Mathematics <math.h>): New section, add fpieee.
70280         (Input/output <stdio.h>): Add fseterr.
70281         (Mathematics <math.h>): New section, add printf-frexp.
70282         (Container data structures): Add sublist.
70283         (Core language properties): Add fpucw, inline.
70284         (Functions for greatest-width integer types <inttypes.h>): Add
70285         imaxabs, imaxdiv, inttypes.
70286         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70287         isnanl-nolibm, ldexp.
70288         (Mathematics <math.h>): New section, add printf-frexpl.
70289         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70290         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70291         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70292         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70293         (Unicode string functions): Add unistr/u*-mbtoucr.
70294         (Java): Add javacomp-script, javaexec-script.
70295         (C#): Add csharpcomp-script, csharpexec-script.
70296         (Support for building libraries and executables): Add havelib,
70297         relocatable-*.
70298         (Support for maintaining and releasing projects): Renamed from
70299         'Support for maintaining and release projects'. Add announce-gen.
70300
70301 2007-03-31  Bruno Haible  <bruno@clisp.org>
70302
70303         * README: Talk primarily about git.
70304         (git and CVS): Renamed from CVS.
70305         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70306         gnulib is available through git.
70307         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70308
70309 2007-03-30  Bruno Haible  <bruno@clisp.org>
70310
70311         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70312         * lib/poll_.h: Likewise.
70313         * lib/stat_.h: Likewise.
70314         * lib/sys_time_.h: Likewise.
70315         * lib/sysexit_.h: Likewise.
70316         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70317         * lib/stdbool_.h: Likewise.
70318         * lib/byteswap_.h: Add double-inclusion guard.
70319
70320 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70321
70322         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70323
70324 2007-03-30  Karl Berry  <karl@gnu.org>
70325
70326         * config/srclist-update: double space after USA in the license
70327         substitution, since that's how it's usually (?) written.
70328
70329 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70330
70331         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70332         reported by Bruno Haible.
70333
70334 2007-03-29  Bruno Haible  <bruno@clisp.org>
70335
70336         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70337         a bug in AIX iconv().
70338
70339 2007-03-29  Bruno Haible  <bruno@clisp.org>
70340
70341         * modules/ldexpl-tests: New file.
70342         * tests/test-ldexpl.c: New file.
70343
70344 2007-03-29  Bruno Haible  <bruno@clisp.org>
70345
70346         * lib/ldexpl.c: Include fpucw.h.
70347         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70348         multiplication.
70349         * modules/ldexpl (Depends-on): Add fpucw.
70350
70351 2007-03-29  Bruno Haible  <bruno@clisp.org>
70352
70353         * modules/ldexpl: New file.
70354         * m4/ldexpl.m4: New file.
70355         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70356         set.
70357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70358         REPLACE_LDEXPL.
70359         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70360         REPLACE_LDEXPL.
70361         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70362         gl_FUNC_LDEXPL_WORKS.
70363         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70364         * modules/mathl (Files): Remove lib/ldexpl.c.
70365         (Depends-on): Add ldexpl.
70366
70367 2007-03-29  Bruno Haible  <bruno@clisp.org>
70368
70369         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70370
70371 2007-03-29  Bruno Haible  <bruno@clisp.org>
70372
70373         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70374         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70375         and possibly also HP-UX.
70376         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70377         work on AIX, IRIX, HP-UX, OSF/1.
70378         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70379         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70380         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70381         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70382         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70383         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70384
70385 2007-03-29  Bruno Haible  <bruno@clisp.org>
70386
70387         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70388
70389 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70390
70391         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70392         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70393
70394 2007-03-29  Eric Blake  <ebb9@byu.net>
70395
70396         * lib/acl-internal.h: Remove redundant include.
70397         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70398         Cygwin when a file is locked.
70399
70400 2007-03-29  Bruno Haible  <bruno@clisp.org>
70401
70402         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70403         file.
70404         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70405
70406 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70407
70408         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70409         try to remove a parent directory if the child couldn't be removed
70410         (except for the first rmdir, which could fail because the child
70411         doesn't exist).  Problem reported by Jeff Blaine in
70412         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70413
70414 2007-03-28  Bruno Haible  <bruno@clisp.org>
70415
70416         * lib/striconveh.c (utf8conv_carefully): New function.
70417         (mem_cd_iconveh_internal): Invoke it.
70418
70419 2007-03-28  Bruno Haible  <bruno@clisp.org>
70420
70421         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70422         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70423         input.
70424         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70425         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70426         unistr/u8-uctomb.
70427
70428 2007-03-28  Bruno Haible  <bruno@clisp.org>
70429
70430         * modules/unistr/u8-mbtoucr: New file.
70431         * lib/unistr/u8-mbtoucr.c: New file.
70432         * modules/unistr/u16-mbtoucr: New file.
70433         * lib/unistr/u16-mbtoucr.c: New file.
70434         * modules/unistr/u16-mbtoucr: New file.
70435         * lib/unistr/u16-mbtoucr.c: New file.
70436         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70437
70438 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70439             Bruno Haible  <bruno@clisp.org>
70440
70441         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70442         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70443         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70444
70445         * m4/stdio_h.m4: Add stubs for vasprintf too.
70446
70447         * modules/stdio: Support vasprintf in sed command.
70448
70449         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70450         vasprintf.h.  Add stdio module indicator.
70451
70452         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70453         vasprintf.h.
70454
70455         * lib/vasprintf.h: File removed.
70456
70457         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70458         * lib/vasprintf.c: Ditto.
70459         * lib/xvasprintf.c: Ditto.
70460         * tests/test-vasprintf-posix.c: Ditto.
70461         * tests/test-vasprintf.c: Ditto.
70462
70463 2007-03-27  Bruno Haible  <bruno@clisp.org>
70464
70465         Make vasnprintf multithread-safe.
70466         * lib/vasnprintf.c (decimal_point_char): New function.
70467         (VASNPRINTF): Use it.
70468         Suggested by Simon Josefsson.
70469
70470 2007-03-27  Eric Blake  <ebb9@byu.net>
70471
70472         Support sub-second birthtime on cygwin.
70473         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70474         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70475         (get_stat_birthtime): Also work with st_birthtim.
70476
70477 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70478
70479         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70480         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70481         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70482         (get_stat_birthtime_ns): Simplify compile-time tests.
70483         (get_stat_birthtime): Change the API to look like
70484         get_stat_mtime etc., except return a negative tv_nsec on error.
70485         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70486         Don't check for "spare" fields.
70487         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70488         or for struct stat.st_birthtime, as these tests aren't used.
70489         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70490
70491 2007-03-27  Bruno Haible  <bruno@clisp.org>
70492
70493         * lib/stat-time.h: Include <sys/stat.h>.
70494
70495 2007-03-27  James Youngman  <jay@gnu.org>
70496
70497         * lib/stat-time.h (get_stat_birthtime): New function for
70498           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70499         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70500           and its variants.
70501         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70502         * modules/stat-time-test: New file.
70503         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70504
70505 2007-03-26  Bruno Haible  <bruno@clisp.org>
70506
70507         Better support of signalling NaNs.
70508         * lib/atanl.c: Include isnanl.h.
70509         (atanl): Perform test for NaN at the beginning of the function and
70510         through a call to isnanl.
70511         * lib/cosl.c: Include isnanl.h.
70512         (cosl): Perform test for NaN at the beginning of the function and
70513         through a call to isnanl.
70514         * lib/ldexpl.c: Include isnanl.h.
70515         (ldexpl): Perform test for NaN through a call to isnanl.
70516         * lib/logl.c: Include isnanl.h.
70517         (logl): Perform test for NaN at the beginning of the function and
70518         through a call to isnanl.
70519         * lib/sinl.c: Include isnanl.h.
70520         (sinl): Perform test for NaN at the beginning of the function and
70521         through a call to isnanl.
70522         * lib/sqrtl.c: Include isnanl.h.
70523         (sqrtl): Perform test for NaN at the beginning of the function and
70524         through a call to isnanl.
70525         * lib/tanl.c: Include isnanl.h.
70526         (tanl): Perform test for NaN at the beginning of the function and
70527         through a call to isnanl.
70528         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70529         * modules/mathl (Depends-on): Add isnanl.
70530
70531 2007-03-26  Eric Blake  <ebb9@byu.net>
70532
70533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70534         regression in logic sense of previous patch.
70535
70536 2007-03-26  Bruno Haible  <bruno@clisp.org>
70537
70538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70539         unportable shell command "if ! ...".
70540         Reported by Ralf Wildenhues.
70541
70542 2007-03-25  Bruno Haible  <bruno@clisp.org>
70543
70544         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70545         <sysexits.h> file, and only add EX_CONFIG.
70546         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70547         absolute file name and whether it is sufficient. Substitute also
70548         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70549         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70550         ABSOLUTE_SYSEXITS_H into sysexits.h.
70551
70552 2007-03-25  Bruno Haible  <bruno@clisp.org>
70553
70554         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70555         hints is NULL.
70556
70557 2007-03-25  Bruno Haible  <bruno@clisp.org>
70558
70559         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70560         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70561
70562 2007-03-25  Bruno Haible  <bruno@clisp.org>
70563
70564         * lib/vasnprintf.c: Include langinfo.h.
70565         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70566         multithread-safe.
70567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70569         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70572         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70573         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70574         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70575         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70576         Reported by Simon Josefsson.
70577
70578 2007-03-25  Bruno Haible  <bruno@clisp.org>
70579
70580         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70581         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70582         * modules/vasnprintf (Depends-on): Add stdint.
70583
70584 2007-03-25  Bruno Haible  <bruno@clisp.org>
70585
70586         * modules/fpieee: New file.
70587         * m4/fpieee.m4: New file.
70588         * modules/isnan-nolibm (Depends-on): Add fpieee.
70589         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70590         * modules/isnanl (Depends-on): Add fpieee.
70591
70592 2007-03-25  Bruno Haible  <bruno@clisp.org>
70593
70594         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70595
70596 2007-03-25  Bruno Haible  <bruno@clisp.org>
70597
70598         Avoid test failures on IRIX 6.5.
70599         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70600         (main): Use it.
70601         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70602         macros.
70603         (main): Use them.
70604
70605 2007-03-25  Bruno Haible  <bruno@clisp.org>
70606
70607         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70608         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70609         exists but doesn't work.
70610         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70611         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70613         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70614         math.h.
70615
70616 2007-03-25  Bruno Haible  <bruno@clisp.org>
70617
70618         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70619         returns inf. Needed on IRIX 6.5.
70620
70621 2007-03-25  Bruno Haible  <bruno@clisp.org>
70622
70623         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70624         (main): Use isnanl instead of x != x idiom.
70625         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70626
70627         * tests/test-frexp.c: Include isnan.h.
70628         (main): Use isnan instead of x != x idiom.
70629         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70630
70631 2007-03-25  Bruno Haible  <bruno@clisp.org>
70632
70633         * tests/test-frexp.c (NaN): New function/macro.
70634         (main): Use it instead of 0.0 / 0.0.
70635         * tests/test-isnan.c (NaN): New function/macro.
70636         (main): Use it instead of 0.0 / 0.0.
70637         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70638         (test_function): Use it instead of 0.0 / 0.0.
70639         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70640         (test_function): Use it instead of 0.0 / 0.0.
70641         * tests/test-snprintf-posix.h (NaN): New function/macro.
70642         (test_function): Use it instead of 0.0 / 0.0.
70643         * tests/test-sprintf-posix.h (NaN): New function/macro.
70644         (test_function): Use it instead of 0.0 / 0.0.
70645         * tests/test-fprintf-posix.h (NaN): New function/macro.
70646         (test_function): Use it instead of 0.0 / 0.0.
70647         * tests/test-printf-posix.h (NaN): New function/macro.
70648         (test_function): Use it instead of 0.0 / 0.0.
70649
70650         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70651
70652 2007-03-25  Bruno Haible  <bruno@clisp.org>
70653
70654         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70655
70656 2007-03-25  Bruno Haible  <bruno@clisp.org>
70657
70658         * lib/regexec.c (merge_state_with_log): Make static.
70659
70660 2007-03-25  Bruno Haible  <bruno@clisp.org>
70661
70662         * lib/trigl.c (kernel_rem_pio2): Make static.
70663
70664 2007-03-25  Bruno Haible  <bruno@clisp.org>
70665
70666         * lib/sincosl.c (sincosl_table): Make static.
70667
70668 2007-03-25  Bruno Haible  <bruno@clisp.org>
70669
70670         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70671         if the compiler does not support C99.
70672
70673 2007-03-25  Bruno Haible  <bruno@clisp.org>
70674
70675         * modules/time (Makefile.am): Ensure all rule action lines start with a
70676         tab.
70677
70678 2007-03-24  Bruno Haible  <bruno@clisp.org>
70679
70680         * modules/tsearch-tests: New file.
70681         * tests/test-tsearch.sh: New file.
70682         * tests/test-tsearch.c: New file, mostly copied from glibc.
70683
70684         * modules/search-tests: New file.
70685         * tests/test-search.c: New file.
70686
70687         * modules/search: New file.
70688         * lib/search_.h: New file, incorporating lib/tsearch.h.
70689         * m4/search_h.m4: New file.
70690         * lib/tsearch.h: Remove file.
70691         * lib/tsearch.c: Include search.h instead of tsearch.h.
70692         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70693         HAVE_TSEARCH.
70694         * modules/tsearch (Files): Remove lib/tsearch.h.
70695         (Depends-on): Add search.
70696         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70697         (Include): Change tsearch.h into search.h.
70698
70699 2007-03-24  Bruno Haible  <bruno@clisp.org>
70700
70701         * modules/fpucw: New file.
70702         * lib/fpucw.h: New file.
70703         * lib/frexp.c: Include fpucw.h.
70704         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70705         (FUNC): Use them.
70706         * lib/printf-frexp.c: Include fpucw.h.
70707         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70708         (FUNC): Use them.
70709         * lib/vasnprintf.c: Include fpucw.h.
70710         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70711         'long double' calculations.
70712         * tests/test-frexpl.c: Include fpucw.h.
70713         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70714         * tests/test-printf-frexpl.c: Include fpucw.h.
70715         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70716         * modules/frexpl (Depends-on): Add fpucw.
70717         * modules/printf-frexpl (Depends-on): Likewise.
70718         * modules/fprintf-posix (Depends-on): Likewise.
70719         * modules/snprintf-posix (Depends-on): Likewise.
70720         * modules/sprintf-posix (Depends-on): Likewise.
70721         * modules/vasnprintf-posix (Depends-on): Likewise.
70722         * modules/vasprintf-posix (Depends-on): Likewise.
70723         * modules/vfprintf-posix (Depends-on): Likewise.
70724         * modules/vsnprintf-posix (Depends-on): Likewise.
70725         * modules/vsprintf-posix (Depends-on): Likewise.
70726         * modules/frexpl-tests (Depends-on): Likewise.
70727         * modules/printf-frexpl-tests (Depends-on): Likewise.
70728
70729 2007-03-24  Bruno Haible  <bruno@clisp.org>
70730
70731         * lib/float+.h: New file.
70732         * lib/isnan.c: Include float+.h.
70733         (SIZE): New macro.
70734         (FUNC): Compare only SIZE bytes of the value.
70735         * lib/vasnprintf.c: Include float+.h.
70736         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70737         SIZEOF_LDBL or SIZEOF_DBL bytes.
70738         * modules/isnan-nolibm (Files): Add lib/float+.h.
70739         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70740         * modules/isnanl (Files): Add lib/float+.h.
70741         * modules/vasnprintf (Files): Add lib/float+.h.
70742
70743 2007-03-24  Bruno Haible  <bruno@clisp.org>
70744
70745         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70746         include isnanl-nolibm.h.
70747
70748 2007-03-24  Bruno Haible  <bruno@clisp.org>
70749
70750         * tests/test-read-file.c (main): Don't produce spurious output for
70751         expected situations. Make the test fail if it encountered unexpected
70752         results.
70753
70754 2007-03-24  Bruno Haible  <bruno@clisp.org>
70755
70756         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70757         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70758
70759 2007-03-24  Bruno Haible  <bruno@clisp.org>
70760
70761         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70762
70763 2007-03-24  Bruno Haible  <bruno@clisp.org>
70764
70765         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70766         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70767
70768         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70769         * modules/utf8-ucs4: Turn into a symbolic link to module
70770         unistr/u8-mbtouc.
70771
70772         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70773         utf8-ucs4-unsafe.
70774         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70775         unistr/u8-mbtouc-unsafe.
70776
70777         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70778         * modules/utf16-ucs4: Turn into a symbolic link to module
70779         unistr/u16-mbtouc.
70780
70781         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70782         utf16-ucs4-unsafe.
70783         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70784         unistr/u16-mbtouc-unsafe.
70785
70786         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70787         * modules/ucs4-utf8: Turn into a symbolic link to module
70788         unistr/u8-ubtomb.
70789
70790         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70791         * modules/ucs4-utf16: Turn into a symbolic link to module
70792         unistr/u16-ubtomb.
70793
70794 2007-03-24  Bruno Haible  <bruno@clisp.org>
70795
70796         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70797         Enable the function only if HAVE_INLINE.
70798         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70799         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70800         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70801         Enable the function only if HAVE_INLINE.
70802         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70803         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70804         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70805         Enable the function only if HAVE_INLINE.
70806         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70807         Enable the function only if HAVE_INLINE.
70808         * modules/utf8-ucs4: Update.
70809         * modules/utf8-ucs4-unsafe: Update.
70810         * modules/utf16-ucs4: Update.
70811         * modules/utf16-ucs4-unsafe: Update.
70812         * modules/ucs4-utf8: Update.
70813         * modules/ucs4-utf16: Update.
70814
70815 2007-03-24  Bruno Haible  <bruno@clisp.org>
70816
70817         * lib/utf8-ucs4.h: Remove file.
70818         * lib/utf8-ucs4-unsafe.h: Remove file.
70819         * lib/utf16-ucs4.h: Remove file.
70820         * lib/utf16-ucs4-unsafe.h: Remove file.
70821         * lib/ucs4-utf8.h: Remove file.
70822         * lib/ucs4-utf16.h: Remove file.
70823         * lib/unistr.h: Include their previous contents.
70824         * m4/utf-ucs4.m4: Remove file.
70825         * m4/ucs4-utf.m4: Remove file.
70826         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70827         (Depends-on): Add unistr/base.
70828         (configure.ac): Remove gl_UTF_UCS4.
70829         (Makefile.am): Update.
70830         (Include): Change to unistr.h.
70831         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70832         (Depends-on): Add unistr/base.
70833         (configure.ac): Remove gl_UTF_UCS4.
70834         (Makefile.am): Update.
70835         (Include): Change to unistr.h.
70836         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70837         (Depends-on): Add unistr/base.
70838         (configure.ac): Remove gl_UTF_UCS4.
70839         (Makefile.am): Update.
70840         (Include): Change to unistr.h.
70841         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70842         (Depends-on): Add unistr/base.
70843         (configure.ac): Remove gl_UTF_UCS4.
70844         (Makefile.am): Update.
70845         (Include): Change to unistr.h.
70846         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70847         (Depends-on): Add unistr/base.
70848         (configure.ac): Remove gl_UCS4_UTF.
70849         (Makefile.am): Update.
70850         (Include): Change to unistr.h.
70851         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70852         (Depends-on): Add unistr/base.
70853         (configure.ac): Remove gl_UCS4_UTF.
70854         (Makefile.am): Update.
70855         (Include): Change to unistr.h.
70856         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70857         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70858         utf8-ucs4-unsafe.h.
70859         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70860         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70861         utf16-ucs4-unsafe.h.
70862         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70863         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70864         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70865         * lib/unistr/u8-strchr.c: Likewise.
70866         * lib/unistr/u8-strrchr.c: Likewise.
70867         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70868         * lib/unistr/u16-strchr.c: Likewise.
70869         * lib/unistr/u16-strrchr.c: Likewise.
70870         * lib/striconveh.c: Update.
70871         * lib/linebreak.c: Update.
70872
70873 2007-03-24  Bruno Haible  <bruno@clisp.org>
70874
70875         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70876         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70877
70878 2007-03-22  Bruno Haible  <bruno@clisp.org>
70879
70880         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70881
70882 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         * MODULES.html.sh (File system functions): New module write-any-file.
70885         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70886         * m4/write-any-file.m4: New files.
70887
70888 2007-03-23  Eric Blake  <ebb9@byu.net>
70889
70890         * gnulib-tool: Rearrange space-tab sequences, since some editors
70891         like to eat them.
70892
70893 2007-03-23  Eric Blake  <ebb9@byu.net>
70894
70895         * lib/version-etc.c (version_etc_va): Update license wording to
70896         be more concise.  Recommended by Richard Stallman.
70897
70898 2007-03-22  Bruno Haible  <bruno@clisp.org>
70899
70900         * lib/poll.c (MSG_PEEK): New fallback definition.
70901
70902 2007-03-22  Bruno Haible  <bruno@clisp.org>
70903
70904         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70905         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70906         (main): Update.
70907         Fixes a compilation error on BeOS.
70908
70909 2007-03-22  Bruno Haible  <bruno@clisp.org>
70910
70911         * modules/frexpl-tests: New file.
70912         * tests/test-frexpl.c: New file.
70913
70914         * modules/frexpl: New file.
70915         * m4/frexpl.m4: New file.
70916         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70917         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70919         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70920         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70921         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70922
70923 2007-03-22  Bruno Haible  <bruno@clisp.org>
70924
70925         * lib/frexpl.c: Share code with lib/frexp.c.
70926         * modules/mathl (Files): Add lib/frexp.c.
70927         (Depends-on): Add isnanl-nolibm.
70928
70929 2007-03-22  Bruno Haible  <bruno@clisp.org>
70930
70931         * modules/printf-frexp (Files): Add m4/frexp.m4.
70932         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70933         only if the found frexp function actually works.
70934
70935 2007-03-22  Bruno Haible  <bruno@clisp.org>
70936
70937         * lib/frexp.c: Remove older implementation that uses divisions.
70938
70939 2007-03-21  Bruno Haible  <bruno@clisp.org>
70940
70941         * modules/frexp-tests: New file.
70942         * tests/test-frexp.c: New file.
70943
70944         * modules/frexp: New file.
70945         * lib/frexp.c: New file.
70946         * m4/frexp.m4: New file.
70947         * lib/math_.h (frexp): New declaration.
70948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70949         REPLACE_FREXP.
70950         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70951
70952 2007-03-21  Bruno Haible  <bruno@clisp.org>
70953
70954         * modules/isnanl-tests: New file.
70955         * tests/test-isnanl.c: New file.
70956
70957         * modules/isnanl: New file.
70958         * lib/isnanl.h: New file.
70959         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70960         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70961         gl_FUNC_ISNANL_WORKS.
70962         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70963         New macros.
70964
70965 2007-03-21  Bruno Haible  <bruno@clisp.org>
70966
70967         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70968         lib/isnanl.h.
70969         (Include): Update.
70970         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70971         * lib/vasnprintf.c: Update.
70972         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70973         tests/test-isnanl.h, remove tests/test-isnanl.c.
70974         (Makefile.am): Update.
70975         * tests/test-isnanl-nolibm.c: New file.
70976         * tests/test-isnanl.h: New file.
70977         * tests/test-isnanl.c: Remove file.
70978
70979 2007-03-21  Jim Meyering  <jim@meyering.net>
70980
70981         When trying to open ".", treat ESTALE like EACCES.
70982         * lib/savewd.c (savewd_save): Resort to forking not just upon
70983         failure with EACCES, but also when errno is ESTALE.
70984
70985 2007-03-20  Bruno Haible  <bruno@clisp.org>
70986
70987         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70988         Needed on AIX 5.1. Reported by Matthew Woehlke.
70989
70990 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70991
70992         Suggestions by Bruno Haible:
70993         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70994         our own.
70995         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70996         * modules/acl (Depends-on): Add gettext.
70997
70998 2007-03-19  Bruno Haible  <bruno@clisp.org>
70999
71000         * modules/iconvme: Remove file.
71001         * lib/iconvme.h: Remove file.
71002         * lib/iconvme.c: Remove file.
71003         * m4/iconvme.m4: Remove file.
71004
71005 2007-03-19  Bruno Haible  <bruno@clisp.org>
71006
71007         * doc/relocatable-maint.texi: Break long shell script line.
71008         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71009
71010 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71011
71012         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71013         handle file_has_acl.
71014         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71015         * lib/acl.c: Move header inclusions and related macro defns into
71016         lib/acl-internal.h.
71017         (S_ISLNK): Remove defn, since that's now done for us.
71018         (file_has_acl): Move to lib/file-has-acl.c.
71019         Call acl_trivial if available.  This is the crucial part of the fix.
71020         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71021         shared within the library.  Rewrite a bit, partly to make it compatible
71022         with the GNU coding style.
71023         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71024         Remove unnecessary double-quotes.
71025         Don't test for acl_to_text; the build will catch that.
71026         Replace acl_entries if it doesn't exist and it is needed.
71027         Check for -lsec and acl_trivial (as used on Solaris 10).
71028         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71029         lib/file-has-acl.c.
71030         (Depends-on): Add sys_stat, for S_ISLNK.
71031
71032 2007-03-19  Ben Pfaff  <blp@gnu.org>
71033
71034         * doc/gnulib.texi: Fix typos.
71035         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71036
71037 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71038
71039         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71040         If size is zero here, buf must be zero.
71041
71042 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71043
71044         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71045         <bruno@clisp.org>.
71046
71047 2007-03-18  Bruno Haible  <bruno@clisp.org>
71048
71049         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71050         Suggested by Eric Blake.
71051
71052 2007-03-18  Ben Pfaff  <blp@gnu.org>
71053
71054         * doc/relocatable.texi: Recommend using as prefix a directory
71055         that does not exist and will never be created.  Based on
71056         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71057         and others.
71058
71059 2007-03-17  Bruno Haible  <bruno@clisp.org>
71060
71061         * lib/fchownat.c: Include lchown.h.
71062
71063 2007-03-17  Bruno Haible  <bruno@clisp.org>
71064
71065         Fix endless loop when the given allocated size was > INT_MAX.
71066         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71067         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71068         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71069         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71070         * lib/sprintf.c (sprintf): Likewise.
71071
71072 2007-03-17  Bruno Haible  <bruno@clisp.org>
71073
71074         * tests/test-argp-2.sh (func_compare): Output a context diff.
71075
71076 2007-03-17  Bruno Haible  <bruno@clisp.org>
71077
71078         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71079         locale's decimal-point character.
71080
71081 2007-03-17  Bruno Haible  <bruno@clisp.org>
71082
71083         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71084         before comparing it. Needed because on some platforms (e.g. x86) a
71085         'long double' occupies less bytes than sizeof (long double).
71086
71087 2007-03-17  Bruno Haible  <bruno@clisp.org>
71088
71089         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71090         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71091         * tests/test-getaddrinfo.c (simple): Likewise.
71092         * tests/test-read-file.c (main): Likewise.
71093
71094 2007-03-17  Bruno Haible  <bruno@clisp.org>
71095
71096         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71097
71098 2007-03-17  Bruno Haible  <bruno@clisp.org>
71099
71100         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71101         unused variable.
71102
71103 2007-03-17  Bruno Haible  <bruno@clisp.org>
71104
71105         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71106         * tests/test-c-strncasecmp.c: Likewise.
71107
71108 2007-03-17  Bruno Haible  <bruno@clisp.org>
71109
71110         * modules/stdlib (Depends-on): Add unistd.
71111         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71112         Needed for MacOS X 10.3.
71113
71114 2007-03-17  Bruno Haible  <bruno@clisp.org>
71115
71116         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71117
71118 2007-03-17  Bruno Haible  <bruno@clisp.org>
71119
71120         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71121
71122 2007-03-17  Bruno Haible  <bruno@clisp.org>
71123
71124         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71125         to reflect files copied from gnulib (with or without modifications).
71126         Suggested by Jim Meyering.
71127
71128 2007-03-17  Eric Blake  <ebb9@byu.net>
71129
71130         * NEWS: Document stdlib change from 2007-02-18.
71131
71132 2007-03-17  Jim Meyering  <jim@meyering.net>
71133
71134         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71135         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71136         someone uses a name containing shell meta-characters.
71137         Reported by Alfred M. Szmidt.
71138
71139         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71140
71141 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71142
71143         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71144         and copy gettext configuration files only if configure.ac contains
71145         a use of AM_GNU_GETTEXT_VERSION.
71146
71147 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71148
71149         * build-aux/bootstrap (gnulib_name): New variable.
71150         (gnulib_tool_options): Use it.
71151
71152 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71153
71154         * tests/test-des.c: Use new namespace.
71155
71156 2007-03-15  Bruno Haible  <bruno@clisp.org>
71157
71158         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71159         Reported by James Youngman <jay@gnu.org>.
71160
71161 2007-03-15  Bruno Haible  <bruno@clisp.org>
71162
71163         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71164         declared prototype. Needed with cc on OSF/1 5.1.
71165
71166 2007-03-15  Bruno Haible  <bruno@clisp.org>
71167
71168         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71169         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71170         (struct gl_list_implementation): Add dispose_fn argument to the
71171         'create_empty', 'create' methods.
71172         (struct gl_list_impl_base): Add field 'dispose_fn'.
71173         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71174         argument.
71175         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71176         dispose_fn argument.
71177         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71178         dispose_fn on the dropped values.
71179         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71180         dispose_fn argument.
71181         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71182         dropped values.
71183         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71184         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71185         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71186         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71187         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71188         argument.
71189         (gl_tree_list_free): Call dispose_fn on the dropped values.
71190         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71191         the dropped values.
71192         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71193         Add dispose_fn argument.
71194         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71195         Call dispose_fn on the dropped values.
71196         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71197         Add dispose_fn argument.
71198         (gl_sublist_create): Initialize the 'dispose_fn' field.
71199         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71200         * tests/test-array_list.c (main): Update.
71201         * tests/test-carray_list.c (main): Update.
71202         * tests/test-avltree_list.c (main): Update.
71203         * tests/test-rbtree_list.c (main): Update.
71204         * tests/test-avltreehash_list.c (main): Update.
71205         * tests/test-rbtreehash_list.c (main): Update.
71206         * tests/test-linked_list.c (main): Update.
71207         * tests/test-linkedhash_list.c (main): Update.
71208         * tests/test-array_oset.c (main): Update.
71209
71210 2007-03-15  Bruno Haible  <bruno@clisp.org>
71211
71212         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71213         (gl_oset_create_empty): Add dispose_fn argument.
71214         (struct gl_oset_implementation): Add dispose_fn argument to
71215         'create_empty' method.
71216         (struct gl_oset_impl_base): Add dispose_fn field.
71217         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71218         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71219         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71220         values.
71221         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71222         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71223         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71224         dropped value.
71225         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71226         dropped value.
71227         * tests/test-array_oset.c (main): Update.
71228         * tests/test-avltree_oset.c (main): Update.
71229         * tests/test-rbtree_oset.c (main): Update.
71230         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71231
71232 2007-03-13  Bruno Haible  <bruno@clisp.org>
71233
71234         * tests/test-stdbool.c (i): Update after last patch.
71235
71236 2007-03-12  Bruno Haible  <bruno@clisp.org>
71237
71238         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71239         the iswprint macro. Needed on Solaris 2.5.1.
71240
71241 2007-03-12  Bruno Haible  <bruno@clisp.org>
71242
71243         * tests/test-printf-frexp.c (main): Declare x as volatile.
71244
71245 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71246
71247         * doc/gnulib.texi (Build robot for gnulib): New section.
71248
71249 2007-03-12  Jim Meyering  <jim@meyering.net>
71250
71251         * build-aux/bootstrap: New file.
71252         * build-aux/bootstrap.conf: New file, from coreutils.
71253
71254 2007-03-11  Bruno Haible  <bruno@clisp.org>
71255
71256         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71257
71258 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71259
71260         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71261         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71262         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71263
71264 2007-03-11  Bruno Haible  <bruno@clisp.org>
71265
71266         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71267         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71268
71269 2007-03-11  Bruno Haible  <bruno@clisp.org>
71270
71271         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71272         formula. Needed for SunPRO C 5.0.
71273
71274 2007-03-11  Bruno Haible  <bruno@clisp.org>
71275
71276         * modules/long-options (Depends-on): Add getopt.
71277
71278 2007-03-11  Bruno Haible  <bruno@clisp.org>
71279
71280         * modules/modechange (Depends-on): Add stdbool.
71281
71282 2007-03-11  Bruno Haible  <bruno@clisp.org>
71283
71284         * modules/i-ring (Depends-on): Add stdbool.
71285
71286 2007-03-11  Bruno Haible  <bruno@clisp.org>
71287
71288         * modules/gc-des (Depends-on): Add stdbool.
71289
71290 2007-03-11  Bruno Haible  <bruno@clisp.org>
71291
71292         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71293
71294 2007-03-11  Bruno Haible  <bruno@clisp.org>
71295
71296         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71297
71298 2007-03-11  Bruno Haible  <bruno@clisp.org>
71299
71300         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71301
71302 2007-03-11  Bruno Haible  <bruno@clisp.org>
71303
71304         * lib/vasnprintf.c (sprintf): Undefine.
71305
71306 2007-03-11  Bruno Haible  <bruno@clisp.org>
71307
71308         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71309         initializers in SunPRO C and Compaq C compilers.
71310
71311 2007-03-11  Bruno Haible  <bruno@clisp.org>
71312
71313         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71314         decrementing code ANSI C compliant.
71315
71316 2007-03-11  Bruno Haible  <bruno@clisp.org>
71317
71318         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71319         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71320
71321 2007-03-11  Bruno Haible  <bruno@clisp.org>
71322
71323         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71324         <stdbool.h> substitute doesn't pass.
71325
71326 2007-03-11  Bruno Haible  <bruno@clisp.org>
71327
71328         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71329
71330 2007-03-11  Bruno Haible  <bruno@clisp.org>
71331
71332         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71333         script, for submission to autobuild.josefsson.org.
71334
71335 2007-03-10  Bruno Haible  <bruno@clisp.org>
71336
71337         * modules/canonicalize-lgpl-tests: New file.
71338         * tests/test-canonicalize-lgpl.sh: New file.
71339         * tests/test-canonicalize-lgpl.c: New file.
71340
71341         * modules/c-strcase-tests: New file.
71342         * tests/test-c-strcase.sh: New file.
71343         * tests/test-c-strcasecmp.c: New file.
71344         * tests/test-c-strncasecmp.c: New file.
71345
71346         * modules/atexit-tests: New file.
71347         * tests/test-atexit.sh: New file.
71348         * tests/test-atexit.c: New file.
71349
71350 2007-03-10  Bruno Haible  <bruno@clisp.org>
71351
71352         * tests/test-binary-io.sh: Use temporary filenames that are not so
71353         likely to clash with those of other tests (in a parallel make).
71354         * tests/test-binary-io.c: Likewise.
71355
71356 2007-03-10  Bruno Haible  <bruno@clisp.org>
71357
71358         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71359         fallback; use #error instead.
71360         Suggested by Simon Josefsson.
71361
71362 2007-03-10  Bruno Haible  <bruno@clisp.org>
71363
71364         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71365         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71366         first and the last.
71367
71368 2007-03-10  Bruno Haible  <bruno@clisp.org>
71369
71370         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71371
71372 2007-03-10  Bruno Haible  <bruno@clisp.org>
71373
71374         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71375         "make distcheck".
71376         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71377         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71378         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71379
71380 2007-03-10  Bruno Haible  <bruno@clisp.org>
71381
71382         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71383         variable.
71384         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71385         variable.
71386
71387 2007-03-09  Eric Blake  <ebb9@byu.net>
71388         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71389
71390         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71391         types are not being provided by gnulib.
71392         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71393         types are supported.
71394
71395 2007-03-10  Bruno Haible  <bruno@clisp.org>
71396
71397         * lib/stdio_.h (__attribute__): New macro.
71398         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71399         vsprintf): Specify __attribute__ __format__ for GCC.
71400         Suggested by Eric Blake.
71401
71402 2007-03-09  Bruno Haible  <bruno@clisp.org>
71403
71404         * modules/printf-posix-tests: New file.
71405         * tests/test-printf-posix.sh: New file.
71406         * tests/test-printf-posix.c: New file.
71407
71408         * modules/printf-posix: New file.
71409         * lib/printf.c: New file.
71410         * m4/printf-posix-rpl.m4: New file.
71411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71412         REPLACE_PRINTF.
71413         * lib/stdio_.h (printf): New declaration.
71414         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71415         ____strfmon____): New macros.
71416         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71417         REPLACE_PRINTF.
71418
71419 2007-03-09  Bruno Haible  <bruno@clisp.org>
71420
71421         * tests/test-vasnprintf-posix2.sh: New file.
71422         * tests/test-vasnprintf-posix2.c: New file.
71423         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71424         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71425         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71426
71427         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71428         a locale dependent decimal point, rather than always '.'.
71429
71430 2007-03-09  Eric Blake  <ebb9@byu.net>
71431
71432         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71433         spite of platforms like Tandem/NSK that define it to -1.
71434
71435 2007-03-08  Bruno Haible  <bruno@clisp.org>
71436
71437         * modules/vprintf-posix-tests: New file.
71438         * tests/test-vprintf-posix.sh: New file.
71439         * tests/test-vprintf-posix.c: New file.
71440         * tests/test-printf-posix.h: New file.
71441
71442         * modules/vprintf-posix: New file.
71443         * lib/vprintf.c: New file.
71444         * m4/vprintf-posix.m4: New file.
71445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71446         REPLACE_VPRINTF.
71447         * lib/stdio_.h (vprintf): New declaration.
71448         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71449         REPLACE_VPRINTF.
71450
71451 2007-03-08  Bruno Haible  <bruno@clisp.org>
71452
71453         * modules/fprintf-posix-tests: New file.
71454         * tests/test-fprintf-posix.sh: New file.
71455         * tests/test-fprintf-posix.c: New file.
71456
71457         * modules/fprintf-posix: New file.
71458         * lib/fprintf.c: New file.
71459         * m4/fprintf-posix.m4: New file.
71460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71461         REPLACE_FPRINTF.
71462         * lib/stdio_.h (fprintf): New declaration.
71463         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71464         REPLACE_FPRINTF.
71465
71466 2007-03-08  Bruno Haible  <bruno@clisp.org>
71467
71468         * modules/vfprintf-posix-tests: New file.
71469         * tests/test-vfprintf-posix.sh: New file.
71470         * tests/test-vfprintf-posix.c: New file.
71471         * tests/test-fprintf-posix.h: New file.
71472         * tests/test-fprintf-posix.out: New file.
71473
71474         * modules/vfprintf-posix: New file.
71475         * lib/vfprintf.c: New file.
71476         * m4/vfprintf-posix.m4: New file.
71477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71478         REPLACE_VFPRINTF.
71479         * lib/stdio_.h (vfprintf): New declaration.
71480         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71481         REPLACE_VFPRINTF.
71482
71483 2007-03-08  Bruno Haible  <bruno@clisp.org>
71484
71485         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71486
71487 2007-03-08  Bruno Haible  <bruno@clisp.org>
71488
71489         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71490         instead of 'expr' invocations.
71491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71494         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71495         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71496         Suggested by Paul Eggert.
71497
71498 2007-03-08  Bruno Haible  <bruno@clisp.org>
71499
71500         * modules/fseterr-tests: New file.
71501         * tests/test-fseterr.c: New file.
71502
71503         * modules/fseterr: New file.
71504         * lib/fseterr.h: New file.
71505         * lib/fseterr.c: New file.
71506
71507 2007-03-08  Bruno Haible  <bruno@clisp.org>
71508
71509         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71510         * lib/getopt_.h: Likewise.
71511         * lib/mbswidth.h: Likewise.
71512         * lib/setenv.h: Likewise.
71513         * lib/vasnprintf.h: Likewise.
71514         * lib/vasprintf.h: Likewise.
71515         * lib/verror.h: Likewise.
71516         * lib/xsetenv.h: Likewise.
71517         * lib/xvasprintf.h: Likewise.
71518
71519 2007-03-08  Jim Meyering  <jim@meyering.net>
71520
71521         * users.txt: Add parted.
71522
71523         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71524
71525 2007-03-07  Bruno Haible  <bruno@clisp.org>
71526
71527         * m4/printf.m4: Make the shell script snippets copy&pastable.
71528
71529 2007-03-02  Bruno Haible  <bruno@clisp.org>
71530
71531         * lib/netinet_in_.h: New file.
71532         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71533         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71534         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71535         (Depends-on): Add absolute-header.
71536         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71537         into netinet/in.h.
71538
71539 2007-03-03  Bruno Haible  <bruno@clisp.org>
71540
71541         * lib/sys_select_.h: New file.
71542         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71543         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71544         * modules/sys_select (Files): Add lib/sys_select_.h.
71545         (Depends-on): Add absolute-header.
71546         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71547         into sys/select.h.
71548
71549 2007-03-02  Bruno Haible  <bruno@clisp.org>
71550
71551         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71552         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71553         values.
71554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71555         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71556         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71557         * modules/sys_socket (Depends-on): Add absolute-header.
71558         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71559         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71560         (Include): Remove requirement of inclusion of <sys/types.h>.
71561
71562 2007-03-02  Bruno Haible  <bruno@clisp.org>
71563
71564         * lib/byteswap_.h (bswap_32): Fix formula.
71565
71566 2007-03-06  Bruno Haible  <bruno@clisp.org>
71567
71568         * modules/sprintf-posix-tests: New file.
71569         * tests/test-sprintf-posix.c: New file.
71570
71571         * modules/sprintf-posix: New file.
71572         * lib/sprintf.c: New file.
71573         * m4/sprintf-posix.m4: New file.
71574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71575         REPLACE_SPRINTF.
71576         * lib/stdio_.h (sprintf): New declaration.
71577         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71578         REPLACE_SPRINTF.
71579
71580 2007-03-06  Bruno Haible  <bruno@clisp.org>
71581
71582         * modules/vsprintf-posix-tests: New file.
71583         * tests/test-vsprintf-posix.c: New file.
71584         * tests/test-sprintf-posix.h: New file.
71585
71586         * modules/vsprintf-posix: New file.
71587         * lib/vsprintf.c: New file.
71588         * m4/vsprintf-posix.m4: New file.
71589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71590         REPLACE_VSPRINTF.
71591         * lib/stdio_.h (vsprintf): New declaration.
71592         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71593         REPLACE_VSPRINTF.
71594
71595 2007-03-06  Bruno Haible  <bruno@clisp.org>
71596
71597         * modules/vsnprintf (Depend-on): Remove minmax.
71598
71599 2007-03-06  Bruno Haible  <bruno@clisp.org>
71600
71601         * modules/snprintf-posix-tests: New file.
71602         * tests/test-snprintf-posix.c: New file.
71603
71604         * modules/snprintf-posix: New file.
71605         * m4/snprintf-posix.m4: New file.
71606         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71607         gl_FUNC_SNPRINTF.
71608         (gl_FUNC_SNPRINTF): Invoke it.
71609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71610         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71611         is set.
71612         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71613
71614 2007-03-06  Bruno Haible  <bruno@clisp.org>
71615
71616         * modules/vsnprintf-posix-tests: New file.
71617         * tests/test-vsnprintf-posix.c: New file.
71618         * tests/test-snprintf-posix.h: New file.
71619
71620         * modules/vsnprintf-posix: New file.
71621         * m4/vsnprintf-posix.m4: New file.
71622         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71623         gl_FUNC_VSNPRINTF.
71624         (gl_FUNC_VSNPRINTF): Invoke it.
71625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71626         * lib/stdio_.h (vsnprintf): Define as a replacement if
71627         REPLACE_VSNPRINTF is set.
71628         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71629
71630 2007-03-06  Bruno Haible  <bruno@clisp.org>
71631
71632         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71634
71635 2007-03-06  Bruno Haible  <bruno@clisp.org>
71636
71637         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71638         (asinl): Declare also if HAVE_DECL_ASINL is set.
71639         (atanl): Declare also if HAVE_DECL_ATANL is set.
71640         (ceill): Declare also if HAVE_DECL_CEILL is set.
71641         (cosl): Declare also if HAVE_DECL_COSL is set.
71642         (expl): Declare also if HAVE_DECL_EXPL is set.
71643         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71644         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71645         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71646         (logl): Declare also if HAVE_DECL_LOGL is set.
71647         (sinl): Declare also if HAVE_DECL_SINL is set.
71648         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71649         (tanl): Declare also if HAVE_DECL_TANL is set.
71650         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71652         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71653         declaration of frexpl, ldexpl.
71654         * modules/printf-frexpl (Depends-on): Add math.
71655         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71656
71657 2007-03-05  Bruno Haible  <bruno@clisp.org>
71658
71659         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71660         frexpl and ldexpl are declared.
71661         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71662
71663 2007-03-05  Bruno Haible  <bruno@clisp.org>
71664
71665         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71666         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71667
71668 2007-03-05  Bruno Haible  <bruno@clisp.org>
71669
71670         * lib/stdio_.h: Include <stddef.h>.
71671
71672 2007-03-05  Bruno Haible  <bruno@clisp.org>
71673
71674         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71675
71676 2007-03-05  Bruno Haible  <bruno@clisp.org>
71677
71678         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71679         NetBSD 4, from Ralf Wildenhues.
71680
71681 2007-03-04  Bruno Haible  <bruno@clisp.org>
71682
71683         * lib/vasprintf.h: Update #if logic for the case when the functions
71684         exist but are overridden.
71685
71686 2007-03-04  Bruno Haible  <bruno@clisp.org>
71687
71688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71689         implementations: glibc-2.4 and MacOS X 10.3.
71690         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71691         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71692         * tests/test-vasprintf-posix.c (test_function): Likewise.
71693
71694 2007-03-04  Bruno Haible  <bruno@clisp.org>
71695
71696         * modules/vasprintf-posix-tests: New file.
71697         * tests/test-vasprintf-posix.c: New file.
71698
71699         * modules/vasprintf-posix: New file.
71700         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71701         defined.
71702         * m4/vasprintf-posix.m4: New file.
71703         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71704         gl_FUNC_VASPRINTF.
71705         (gl_FUNC_VASPRINTF): Invoke it.
71706         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71707         here.
71708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71709
71710 2007-03-04  Bruno Haible  <bruno@clisp.org>
71711
71712         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71713         REPLACE_GETTIMEOFDAY.
71714         * modules/sys_time (Makefile.am): Likewise.
71715         * m4/sys_time_h.m4: Likewise.
71716         * m4/gettimeofday.m4: Likewise.
71717
71718 2007-03-04  Bruno Haible  <bruno@clisp.org>
71719
71720         * modules/vasnprintf-posix-tests: New file.
71721         * tests/test-vasnprintf-posix.c: New file.
71722
71723         * modules/vasnprintf-posix: New file.
71724         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71725         printf-frexpl.h.
71726         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71727         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71728         REPLACE_VASNPRINTF is defined.
71729         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71730         gl_FUNC_VASNPRINTF.
71731         (gl_FUNC_VASNPRINTF): Invoke it.
71732         * m4/vasnprintf-posix.m4: New file.
71733         * m4/printf.m4: New file.
71734
71735 2007-03-04  Bruno Haible  <bruno@clisp.org>
71736
71737         Compile progreloc.c only if --enable-relocatable is specified.
71738         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71739         if --enable-relocatable was specified.
71740         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71741         lib_SOURCES.
71742
71743 2007-03-04  Jim Meyering  <jim@meyering.net>
71744
71745         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71746         Use it consistently, rather than enumerating errno constants.
71747
71748 2007-03-04  Bruno Haible  <bruno@clisp.org>
71749
71750         * modules/xvasprintf-tests: New file.
71751         * tests/test-xvasprintf.c: New file.
71752
71753         * modules/vasprintf-tests: New file.
71754         * tests/test-vasprintf.c: New file.
71755
71756         * modules/vasnprintf-tests: New file.
71757         * tests/test-vasnprintf.c: New file.
71758
71759         * modules/vsnprintf-tests: New file.
71760         * tests/test-vsnprintf.c: New file.
71761
71762         * modules/snprintf-tests: New file.
71763         * tests/test-snprintf.c: New file.
71764
71765 2007-03-04  Bruno Haible  <bruno@clisp.org>
71766
71767         Compile relocatable.c only if --enable-relocatable is specified.
71768         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71769         gl_RELOCATABLE_LIBRARY.
71770         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71771         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71772         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71773         gl_RELOCATABLE_LIBRARY.
71774         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71775         (Makefile.am): Remove lib_SOURCES.
71776         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71777         gl_RELOCATABLE_LIBRARY.
71778         (Makefile.am): Remove lib_SOURCES.
71779         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71780         always.
71781         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71782         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71783
71784 2007-03-04  Bruno Haible  <bruno@clisp.org>
71785
71786         * modules/argmatch-tests: New file.
71787         * tests/test-argmatch.c: New file.
71788
71789         * tests/test-allocsa.c (main): Halve the number of loop runs.
71790
71791         * modules/alloca-opt-tests: New file.
71792         * tests/test-alloca-opt.c: New file.
71793
71794 2007-03-04  Jim Meyering  <jim@meyering.net>
71795
71796         Work around difference between Linux ACLs and Solaris 10 ZFS.
71797         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71798         for EINVAL.
71799
71800 2007-03-03  Bruno Haible  <bruno@clisp.org>
71801
71802         * modules/relocatable-prog (Depends-on): Add back progreloc's
71803         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71804
71805 2007-03-03  Bruno Haible  <bruno@clisp.org>
71806
71807         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71808         * modules/relocatable-lib: New file.
71809
71810 2007-03-03  Bruno Haible  <bruno@clisp.org>
71811
71812         * modules/relocatable-prog: Renamed from modules/relocatable.
71813         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71814
71815 2007-03-03  Bruno Haible  <bruno@clisp.org>
71816
71817         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71818         m4/relocatable-lib.m4.
71819         (Depends-on): Remove 'relocatable'.
71820         (configure.ac): Add gl_RELOCATABLE_NOP.
71821
71822 2007-03-03  Bruno Haible  <bruno@clisp.org>
71823
71824         * modules/relocatable-prog-wrapper: New file.
71825         * modules/relocatable (Depends-on): Add it. Remove all other
71826         dependencies except progname.
71827         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71828
71829         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71830         (gl_FUNC_STRERROR): Nop.
71831         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71832
71833         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71834         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71835
71836         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71837         (gl_FUNC_READLINK): Update.
71838
71839         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71840
71841 2007-03-03  Bruno Haible  <bruno@clisp.org>
71842
71843         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71844         * modules/xreadlink (Depends-on): Add unistd.
71845         * modules/xreadlink-with-size (Depends-on): Likewise.
71846
71847 2007-03-03  Bruno Haible  <bruno@clisp.org>
71848
71849         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71850         extracted from gt_FUNC_SETENV.
71851         (gt_FUNC_SETENV): Remove macro.
71852         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71853         remove gt_FUNC_SETENV.
71854
71855 2007-03-03  Bruno Haible  <bruno@clisp.org>
71856
71857         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71858         ENABLE_RELOCATABLE here.
71859         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71860
71861 2007-03-03  Bruno Haible  <bruno@clisp.org>
71862
71863         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71864         * tests/test-rbtreehash_list.c: Include progname.h.
71865         (main): Call set_program_name.
71866
71867         * modules/rbtree-oset-tests (Depends-on): Add progname.
71868         * tests/test-rbtree_oset.c: Include progname.h.
71869         (main): Call set_program_name.
71870
71871         * modules/rbtree-list-tests (Depends-on): Add progname.
71872         * tests/test-rbtree_list.c: Include progname.h.
71873         (main): Call set_program_name.
71874
71875         * modules/linked-list-tests (Depends-on): Add progname.
71876         * tests/test-linked_list.c: Include progname.h.
71877         (main): Call set_program_name.
71878
71879 2007-03-03  Bruno Haible  <bruno@clisp.org>
71880
71881         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71882         All uses of __restrict changed to _Restrict_.
71883         * lib/glob_.h (__restrict): Remove macro.
71884
71885 2007-03-02  Bruno Haible  <bruno@clisp.org>
71886
71887         * modules/gettext (configure.ac): Require gettext infrastructure
71888         from version 0.16.1.
71889
71890 2007-03-02  Bruno Haible  <bruno@clisp.org>
71891
71892         * modules/linkedhash-list-tests (Depends-on): Add progname.
71893         * tests/test-linkedhash_list.c: Include progname.h.
71894         (main): Call set_program_name.
71895
71896         * modules/carray-list-tests (Depends-on): Add progname.
71897         * tests/test-carray_list.c: Include progname.h.
71898         (main): Call set_program_name.
71899
71900         * modules/avltreehash-list-tests (Depends-on): Add progname.
71901         * tests/test-avltreehash_list.c: Include progname.h.
71902         (main): Call set_program_name.
71903
71904         * modules/avltree-oset-tests (Depends-on): Add progname.
71905         * tests/test-avltree_oset.c: Include progname.h.
71906         (main): Call set_program_name.
71907
71908         * modules/avltree-list-tests (Depends-on): Add progname.
71909         * tests/test-avltree_list.c: Include progname.h.
71910         (main): Call set_program_name.
71911
71912         * modules/array-oset-tests (Depends-on): Add progname.
71913         * tests/test-array_oset.c: Include progname.h.
71914         (main): Call set_program_name.
71915
71916         * modules/array-list-tests (Depends-on): Add progname.
71917         * tests/test-array_list.c: Include progname.h.
71918         (main): Call set_program_name.
71919
71920         * modules/argp-tests (Depends-on): Add progname.
71921         * tests/test-argp.c: Include argp.h first. Include progname.h.
71922         (main): Call set_program_name.
71923
71924 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71925
71926         * doc/gnulib-tool.texi (Initial import): Reword description of
71927         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71928         limited effect even if defined after the first system include.
71929
71930 2007-03-01  Bruno Haible  <bruno@clisp.org>
71931
71932         * build-aux/config.libpath: Update to libtool-1.5.22.
71933         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71934
71935 2007-03-01  Bruno Haible  <bruno@clisp.org>
71936
71937         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71938         foo_CFLAGS.
71939         Reported by Ralf Wildenhues.
71940
71941 2007-03-01  Bruno Haible  <bruno@clisp.org>
71942
71943         * build-aux/install-reloc: Remove object files left over by some
71944         compilers.
71945         Reported by Ralf Wildenhues.
71946
71947 2007-03-01  Bruno Haible  <bruno@clisp.org>
71948
71949         * build-aux/install-reloc: Break long lines.
71950
71951 2007-03-01  Bruno Haible  <bruno@clisp.org>
71952
71953         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71954         Reported by Ralf Wildenhues.
71955
71956 2007-03-01  Bruno Haible  <bruno@clisp.org>
71957
71958         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71959         include ordering constraints.
71960
71961 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71962
71963         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71965         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71966         as another example.
71967         * lib/time_.h: Fix misspelling.
71968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71969         Require gl_HEADER_TIME_H_DEFAULTS.
71970         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71971         * m4/time_r.m4 (gl_TIME_R): Likewise.
71972         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71973
71974 2007-03-01  Bruno Haible  <bruno@clisp.org>
71975
71976         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71977         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71978
71979 2007-03-01  Jim Meyering  <jim@meyering.net>
71980
71981         * modules/xreadlink (Maintainer): Add my name.
71982         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71983
71984 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71985             Bruno Haible  <bruno@clisp.org>
71986
71987         * build-aux/install-reloc: Compile also c-ctype.c.
71988         * build-aux/relocatable.sh.in: New file.
71989         * doc/relocatable.texi: New file.
71990         * doc/relocatable-maint.texi: New file.
71991         * doc/gnulib.texi: Include relocatable-maint.texi.
71992         * lib/progreloc.c: Include unistd.h unconditionally.
71993         * lib/relocwrapper.c: Include unistd.h unconditionally.
71994         Include c-ctype.h.
71995         (add_dotbin): Use c_tolower.
71996         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71997         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71998         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71999         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72000         to m4/relocatable-lib.m4.
72001         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72002         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72003         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72004         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72005         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72006         * modules/relocatable: New file.
72007         * modules/relocatable-lib: New file.
72008         * modules/relocatable-script: New file.
72009
72010 2007-02-28  Bruno Haible  <bruno@clisp.org>
72011
72012         Import --enable-relocatable infrastructure.
72013         * build-aux/config.libpath: New file, from GNU gettext.
72014         * build-aux/install-reloc: New file, from GNU gettext.
72015         * build-aux/reloc-ldflags: New file, from GNU gettext.
72016         * lib/relocatable.h: New file, from GNU gettext.
72017         * lib/relocatable.c: New file, from GNU gettext.
72018         * lib/relocwrapper.c: New file, from GNU gettext.
72019         * m4/relocatable.m4: New file, from GNU gettext.
72020
72021 2007-02-28  Bruno Haible  <bruno@clisp.org>
72022
72023         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72024
72025         * modules/xreadlink: New file, from GNU gettext with modifications.
72026         * lib/xreadlink.c: New file, from GNU gettext.
72027         * lib/xreadlink.h: Add comments.
72028         (xreadlink): New declaration.
72029
72030         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72031         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72032         lib/xreadlink-with-size.c.
72033         (configure.ac): Remove gl_XREADLINK invocation.
72034         (Makefile.am): Augment lib_SOURCES.
72035         * m4/xreadlink.m4: Remove file.
72036         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72037         (xreadlink_with_size): Renamed from xreadink.
72038         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72039         * modules/canonicalize (Depends-on): Replace xreadlink with
72040         xreadlink-with-size.
72041         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72042
72043 2007-02-25  Jim Meyering  <jim@meyering.net>
72044
72045         * build-aux/announce-gen: When complaining about excess arguments,
72046         list them.
72047
72048 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72049
72050         * README: Document signed integer overflow situation more
72051         accurately.
72052
72053 2007-02-25  Bruno Haible  <bruno@clisp.org>
72054
72055         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72056         'a' or 'A' conversion.
72057
72058 2007-02-25  Bruno Haible  <bruno@clisp.org>
72059
72060         * modules/filename: Renamed from modules/pathname.
72061         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72062         lib/concatpath.c with lib/concat-filename.c.
72063         (Makefile.am): Update.
72064         (Include): Replace pathname.h with filename.h.
72065         * lib/filename.h: Renamed from lib/pathname.h.
72066         (concatenated_filename): Renamed from concatenated_pathname.
72067         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72068         (concatenated_filename): Renamed from concatenated_pathname.
72069         * lib/findprog.c: Include filename.h instead of pathname.h.
72070         (find_in_path): Update.
72071         * lib/javacomp.c: Include filename.h instead of pathname.h.
72072         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72073         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72074         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72075         is_oldgcj_14_13_usable, is_javac_usable): Update.
72076         * lib/javaexec.c: Include filename.h instead of pathname.h.
72077         (execute_java_class): Update.
72078         * modules/findprog: Update.
72079         * modules/javacomp: Update.
72080         * modules/javaexec: Update.
72081         * MODULES.html.sh (File system functions): Add 'filename', remove
72082         'pathname'.
72083
72084 2007-02-25  Bruno Haible  <bruno@clisp.org>
72085
72086         * modules/printf-frexpl-tests: New file.
72087         * tests/test-printf-frexpl.c: New file.
72088
72089         * modules/printf-frexpl: New file.
72090         * lib/printf-frexpl.h: New file.
72091         * lib/printf-frexpl.c: New file.
72092         * m4/printf-frexpl.m4: New file.
72093
72094 2007-02-25  Bruno Haible  <bruno@clisp.org>
72095
72096         * modules/printf-frexp-tests: New file.
72097         * tests/test-printf-frexp.c: New file.
72098
72099         * modules/printf-frexp: New file.
72100         * lib/printf-frexp.h: New file.
72101         * lib/printf-frexp.c: New file.
72102         * m4/printf-frexp.m4: New file.
72103
72104 2007-02-25  Bruno Haible  <bruno@clisp.org>
72105
72106         Assume automake >= 1.10 for the tests.
72107         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72108         * modules/arctwo-tests: Likewise.
72109         * modules/argp-tests: Likewise.
72110         * modules/avltree-list-tests: Likewise.
72111         * modules/avltree-oset-tests: Likewise.
72112         * modules/avltreehash-list-tests: Likewise.
72113         * modules/carray-list-tests: Likewise.
72114         * modules/crc-tests: Likewise.
72115         * modules/des-tests: Likewise.
72116         * modules/gc-arcfour-tests: Likewise.
72117         * modules/gc-arctwo-tests: Likewise.
72118         * modules/gc-des-tests: Likewise.
72119         * modules/gc-hmac-md5-tests: Likewise.
72120         * modules/gc-hmac-sha1-tests: Likewise.
72121         * modules/gc-md2-tests: Likewise.
72122         * modules/gc-md4-tests: Likewise.
72123         * modules/gc-md5-tests: Likewise.
72124         * modules/gc-pbkdf2-sha1-tests: Likewise.
72125         * modules/gc-rijndael-tests: Likewise.
72126         * modules/gc-sha1-tests: Likewise.
72127         * modules/gc-tests: Likewise.
72128         * modules/getaddrinfo-tests: Likewise.
72129         * modules/hmac-md5-tests: Likewise.
72130         * modules/hmac-sha1-tests: Likewise.
72131         * modules/linked-list-tests: Likewise.
72132         * modules/linkedhash-list-tests: Likewise.
72133         * modules/lock-tests: Likewise.
72134         * modules/md2-tests: Likewise.
72135         * modules/md4-tests: Likewise.
72136         * modules/md5-tests: Likewise.
72137         * modules/rbtree-list-tests: Likewise.
72138         * modules/rbtree-oset-tests: Likewise.
72139         * modules/rbtreehash-list-tests: Likewise.
72140         * modules/read-file-tests: Likewise.
72141         * modules/rijndael-tests: Likewise.
72142         * modules/stdint-tests: Likewise.
72143         * modules/tls-tests: Likewise.
72144
72145 2007-02-24  Bruno Haible  <bruno@clisp.org>
72146
72147         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72148         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72149         function; instead check whether isnan with a double argument links.
72150         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72151         function; instead check whether isnan with a 'long double' argument
72152         links.
72153         Reported by Eric Blake <ebb9@byu.net>.
72154
72155 2007-02-24  Bruno Haible  <bruno@clisp.org>
72156
72157         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72158         defined.
72159         * lib/isnanl.c: Remove all code. Just include isnan.c.
72160         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72161
72162 2007-02-25  Jim Meyering  <jim@meyering.net>
72163
72164         Avoid conflicting types for 'unsetenv' on FreeBSD.
72165         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72166         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72167         in stdlib.h.
72168
72169 2007-02-24  Bruno Haible  <bruno@clisp.org>
72170
72171         * modules/isnanl-nolibm-tests: New file.
72172         * tests/test-isnanl.c: New file.
72173
72174         * modules/isnanl-nolibm: New file.
72175         * lib/isnanl.h: New file.
72176         * lib/isnanl.c: New file.
72177         * m4/isnanl.m4: New file.
72178
72179 2007-02-24  Bruno Haible  <bruno@clisp.org>
72180
72181         * modules/isnan-nolibm-tests: New file.
72182         * tests/test-isnan.c: New file.
72183
72184         * modules/isnan-nolibm: New file.
72185         * lib/isnan.h: New file.
72186         * lib/isnan.c: New file.
72187         * m4/isnan.m4: New file.
72188
72189 2007-02-24  Bruno Haible  <bruno@clisp.org>
72190
72191         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72192         assume that an exponent fits in 20 bits.
72193
72194 2007-02-24  Jim Meyering  <jim@meyering.net>
72195
72196         * m4/regex.m4: Update the description of the configure-time option,
72197         --without-included-regex, to state accurately what the defaults are,
72198         and perhaps to give people an idea why using this option is risky.
72199
72200 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72201
72202         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72203         loops on small arguments.  This attempts to avoid the problem
72204         Bruno Haible reported for AIX 4.3.2 in
72205         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72206
72207 2007-02-23  Bruno Haible  <bruno@clisp.org>
72208
72209         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72210         Needed for help2man.
72211
72212 2007-02-23  Karl Berry  <karl@gnu.org>
72213
72214         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72215         exists, foo.h should be cvs-ignored, not committed.
72216
72217 2007-02-23  Eric Blake  <ebb9@byu.net>
72218
72219         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72220         * lib/stat-time.h (includes): Likewise.
72221         * lib/utimecmp.c (includes): Likewise.
72222         * lib/utimens.h (includes): Likewise.
72223         * lib/getdate.y (includes): Also include "timespec.h" for use
72224         internal to the module.
72225         * modules/utimens (Depends-on): Revert yesterday's patch.
72226         * modules/nanosleep (Depends-on): Add missing dependency.
72227
72228 2007-02-22  Bruno Haible  <bruno@clisp.org>
72229
72230         * lib/glob.c: Don't include getlogin_r.h.
72231
72232 2007-02-22  Jim Meyering  <jim@meyering.net>
72233
72234         * modules/utimens (Depends-on): Add timespec, required for
72235         utimens.h's inclusion of timespec.h.
72236
72237 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72238
72239         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72240         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72241         Schwab in
72242         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72243         I'll try to think of a better way to fix the Solaris problem.
72244
72245         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72246         like glibc; on Solaris 10, it fails with errno == EINVAL.
72247         POSIX says the behavior is unspecified if the first argument is NULL,
72248         so play it safe and never pass NULL to the system getcwd.
72249
72250 2007-02-21  Jim Meyering  <jim@meyering.net>
72251
72252         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72253         of gettimeofday.  It would conflict with the one now always
72254         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72255         an IRIX 6.5 build failure.
72256
72257 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72258
72259         Minor fixups to port to Solaris 10 with Sun C 5.8.
72260         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72261         * modules/getcwd (Depends-on): Add dirfd.
72262         * lib/putenv.c (putenv): #undef it.
72263         (rpl_putenv): New decl.
72264         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72265
72266 2007-02-20  Bruno Haible  <bruno@clisp.org>
72267
72268         * modules/stdio-tests: New file.
72269         * tests/test-stdio.c: New file.
72270
72271         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72272         (Depends-on): Add stdio.
72273         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72274         (Include): Use <stdio.h> instead of vsnprintf.h.
72275         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72276         HAVE_DECL_VSNPRINTF.
72277         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72278
72279         * modules/snprintf (Files): Remove lib/snprintf.h.
72280         (Depends-on): Add stdio.
72281         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72282         (Include): Use <stdio.h> instead of snprintf.h.
72283         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72284         HAVE_DECL_SNPRINTF.
72285         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72286         * lib/getaddrinfo.c: Likewise.
72287
72288         * modules/stdio: New file.
72289         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72290         * lib/snprintf.h: Remove file.
72291         * lib/vsnprintf.h: Remove file.
72292         * lib/.cppi-disable: Remove snprintf.h.
72293         * m4/stdio_h.m4: New file.
72294         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72295
72296 2007-02-20  Jim Meyering  <jim@meyering.net>
72297
72298         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72299         used by e.g., mingw.  From Bruno Haible.
72300
72301 2007-02-19  Bruno Haible  <bruno@clisp.org>
72302
72303         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72304         warnings.
72305         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72306
72307 2007-02-19  Bruno Haible  <bruno@clisp.org>
72308
72309         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72310         from mingw users.
72311
72312 2007-02-19  Bruno Haible  <bruno@clisp.org>
72313
72314         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72315         warnings.
72316         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72317
72318 2007-02-19  Jim Meyering  <jim@meyering.net>
72319
72320         Don't use FD after a successful "fdopendir (fd)".
72321         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72322         Reset it by calling dirfd on the just-obtained DIR*.
72323
72324         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72325         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72326
72327 2007-02-18  Bruno Haible  <bruno@clisp.org>
72328
72329         * lib/readlink.c: Include <unistd.h>.
72330         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72331         HAVE_READLINK.
72332         * modules/readlink (Depends-on): Add unistd.
72333         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72334         (Include): Add <unistd.h>.
72335
72336         * lib/getlogin_r.h: Remove file.
72337         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72338         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72339         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72340         HAVE_DECL_GETLOGIN_R.
72341         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72342         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72343         (Include): Use <unistd.h> instead of getlogin_r.h.
72344
72345         * lib/getcwd.h: Remove file.
72346         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72347         * lib/xgetcwd.c: Likewise.
72348         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72349         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72350         * modules/getcwd (Files): Remove lib/getcwd.h.
72351         (Depends-on): Add unistd.
72352         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72353         (Include): Use <unistd.h> instad of getcwd.h.
72354
72355         * lib/ftruncate.c: Include <unistd.h> first.
72356         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72357         Set HAVE_FTRUNCATE.
72358         * modules/ftruncate (Depends-on): Add unistd.
72359         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72360
72361         * lib/fchdir.c: Include <unistd.h> first.
72362         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72364         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72365         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72366         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72367
72368         * lib/dup2.c: Include <unistd.h> first.
72369         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72370         HAVE_DUP2.
72371         * modules/dup2 (Depends-on): Add unistd.
72372         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72373
72374         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72375         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72376         REPLACE_CHOWN. Don't define chown as a macro here.
72377         * modules/chown (Depends-on): Add unistd.
72378         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72379
72380         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72381         Add definition for GL_LINK_WARNING.
72382         (chown, dup2): New declarations.
72383         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72384         link warning.
72385         (ftruncate): New declaration.
72386         (getcwd): New declaration, taken from old getcwd.h.
72387         (getlogin_r): New declaration, taken from old getlogin_r.h.
72388         (readlink): New declaration.
72389         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72390         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72391         (gl_PREREQ_UNISTD): Remove macro.
72392         (gl_UNISTD_MODULE_INDICATOR): New macro.
72393         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72394         many new variables. Don't set UNISTD_H.
72395         * modules/unistd (Description): Change.
72396         (Depends-on): Add link-warning.
72397         (configure.ac): Update.
72398         (Makefile.am): Create unistd.h always. Substitute many new variables
72399         into it.
72400
72401 2007-02-18  Bruno Haible  <bruno@clisp.org>
72402
72403         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72404         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72405         HAVE_GETSUBOPT.
72406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72407         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72408         * lib/getsubopt.h: Remove file.
72409         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72410         (Depends-on): Add stdlib.
72411         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72412         (Includes): Use <stdlib.h> instead of getsubopt.h.
72413         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72414         Set HAVE_GETSUBOPT.
72415         * lib/getsubopt.c: Don't include getsubopt.h.
72416
72417 2007-02-18  Bruno Haible  <bruno@clisp.org>
72418
72419         * modules/fchdir (Depends-on): Add dup2.
72420
72421 2007-02-18  Bruno Haible  <bruno@clisp.org>
72422
72423         * lib/stdlib_.h: Handle glibc's special invocation convention
72424         specially.
72425
72426 2007-02-18  Bruno Haible  <bruno@clisp.org>
72427
72428         * modules/stdlib-tests: New file.
72429         * tests/test-stdlib.c: New file.
72430
72431         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72432         (Depends-on): Add stdlib.
72433         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72434         (Includes): Use <stdlib.h> instead of mkstemp.h.
72435         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72436         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72437         * lib/mkstemp.c: Don't include mkstemp.h.
72438         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72439         * lib/stdlib--.h: Don't include mkstemp.h.
72440
72441         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72442         (Depends-on): Add stdlib.
72443         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72444         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72445         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72446         HAVE_MKDTEMP.
72447         * lib/mkdtemp.c: Don't include mkdtemp.h.
72448         * lib/clean-temp.c: Don't include mkdtemp.h.
72449
72450         * modules/exit (Files): Remove lib/exit.h.
72451         (Depends-on): Add stdlib.
72452         (Makefile.am): Remove lib_SOURCES.
72453         (Include): Use <stdlib.h> instead of exit.h.
72454         * lib/argmatch.c: Don't include exit.h.
72455         * lib/execute.c: Likewise.
72456         * lib/pagealign_alloc.c: Likewise.
72457         * lib/pipe.c: Likewise.
72458         * lib/wait-process.c: Likewise.
72459         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72460         * lib/exitfail.c: Likewise.
72461         * lib/savewd.c: Likewise.
72462         * lib/xsetenv.c: Likewise.
72463
72464         * modules/stdlib: New file.
72465         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72466         and extra comments about mkstemp().
72467         * lib/exit.h: Remove file.
72468         * lib/mkdtemp.h: Remove file.
72469         * lib/mkstemp.h: Remove file.
72470         * m4/stdlib_h.m4: New file.
72471         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72472
72473 2007-02-18  Bruno Haible  <bruno@clisp.org>
72474
72475         * modules/math-tests: New file.
72476         * tests/test-math.c: New file.
72477
72478         * modules/math: New file.
72479         * modules/mathl (Files): Remove lib/mathl.h.
72480         (Depends-on): Add math.
72481         (Makefile.am): Don't mention mathl.h.
72482         (Include): Use <math.h> instead of mathl.h.
72483         * lib/math_.h: New file.
72484         * lib/mathl.h: Remove file.
72485         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72486         mathl.h.
72487         * lib/asinl.c: Likewise.
72488         * lib/atanl.c: Likewise.
72489         * lib/ceill.c: Likewise.
72490         * lib/cosl.c: Likewise.
72491         * lib/expl.c: Likewise.
72492         * lib/floorl.c: Likewise.
72493         * lib/frexpl.c: Likewise.
72494         * lib/ldexpl.c: Likewise.
72495         * lib/logl.c: Likewise.
72496         * lib/sincosl.c: Likewise.
72497         * lib/sinl.c: Likewise.
72498         * lib/sqrtl.c: Likewise.
72499         * lib/tanl.c: Likewise.
72500         * lib/trigl.c: Likewise.
72501         * m4/math_h.m4: New file.
72502         * MODULES.html.sh (Mathematics): Add math.
72503
72504 2007-02-17  Bruno Haible  <bruno@clisp.org>
72505
72506         * modules/wctype-tests: New file.
72507         * tests/test-wctype.c: New file.
72508
72509         * modules/wchar-tests: New file.
72510         * tests/test-wchar.c: New file.
72511
72512         * modules/unistd-tests: New file.
72513         * tests/test-unistd.c: New file.
72514
72515         * modules/time-tests: New file.
72516         * tests/test-time.c: New file.
72517
72518         * modules/sysexits-tests: New file.
72519         * tests/test-sysexits.c: New file.
72520
72521         * modules/sys_time-tests: New file.
72522         * tests/test-sys_time.c: New file.
72523
72524         * modules/sys_stat-tests: New file.
72525         * tests/test-sys_stat.c: New file.
72526
72527         * modules/sys_socket-tests: New file.
72528         * tests/test-sys_socket.c: New file.
72529
72530         * modules/sys_select-tests: New file.
72531         * tests/test-sys_select.c: New file.
72532
72533         * modules/string-tests: New file.
72534         * tests/test-string.c: New file.
72535
72536         * modules/stdbool-tests: New file.
72537         * tests/test-stdbool.c: New file.
72538
72539         * modules/netinet_in-tests: New file.
72540         * tests/test-netinet_in.c: New file.
72541
72542         * modules/inttypes-tests: New file.
72543         * tests/test-inttypes.c: New file.
72544
72545         * modules/fcntl-tests: New file.
72546         * tests/test-fcntl.c: New file.
72547
72548         * modules/byteswap-tests: New file.
72549         * tests/test-byteswap.c: New file.
72550
72551         * modules/arpa_inet-tests: New file.
72552         * tests/test-arpa_inet.c: New file.
72553
72554 2007-02-17  Bruno Haible  <bruno@clisp.org>
72555
72556         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72557         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72558         if the corresponding module is not enabled. Emit link warnings if
72559         the function is used nevertheless.
72560         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72561         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72562         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72563         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72564         * modules/inttypes (Depends-on): Add link-warning.
72565         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72566         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72567         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72568         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72569         * modules/imaxdiv (configure.ac): Likewise.
72570         * modules/strtoimax (configure.ac): Likewise.
72571         * modules/strtoumax (configure.ac): Likewise.
72572
72573 2007-02-17  Bruno Haible  <bruno@clisp.org>
72574
72575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72576         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72577         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72578         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72579
72580 2007-02-17  Bruno Haible  <bruno@clisp.org>
72581
72582         * modules/link-warning: New file.
72583         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72584         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72585         * modules/string (Depends-on): Add link-warning.
72586         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72587         string.h.
72588         * MODULES.html.sh (Support for building libraries and executables): Add
72589         link-warning.
72590
72591 2007-02-17  Bruno Haible  <bruno@clisp.org>
72592
72593         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72594         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72595         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72596         long lines.
72597
72598 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72599             Bruno Haible  <bruno@clisp.org>
72600
72601         * modules/tmpfile: New file.
72602         * lib/tmpfile.c: New file.
72603         * m4/tmpfile.m4: New file.
72604         * MODULES.html.sh (func_all_modules): New section "Input/output".
72605
72606 2007-02-15  Bruno Haible  <bruno@clisp.org>
72607
72608         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72609         (supports_delete_on_close): New function.
72610         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72611
72612 2007-02-14  Bruno Haible  <bruno@clisp.org>
72613
72614         * modules/mbspcasecmp-tests: New file.
72615         * tests/test-mbspcasecmp.sh: New file.
72616         * tests/test-mbspcasecmp.c: New file.
72617
72618         New module mbspcasecmp.
72619         * modules/mbspcasecmp: New file.
72620         * lib/mbspcasecmp.c: New file.
72621         * lib/string_.h (strncasecmp): Change warning message.
72622         (mbspcasecmp): New declaration.
72623         * m4/mbspcasecmp.m4: New file.
72624         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72625         GNULIB_MBSPCASECMP.
72626         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72627         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72628
72629 2007-02-14  Bruno Haible  <bruno@clisp.org>
72630
72631         * modules/mbsncasecmp-tests: New file.
72632         * tests/test-mbsncasecmp.sh: New file.
72633         * tests/test-mbsncasecmp.c: New file.
72634
72635         New module mbsncasecmp.
72636         * modules/mbsncasecmp: New file.
72637         * lib/mbsncasecmp.c: New file.
72638         * lib/string_.h (mbsncasecmp): New declaration.
72639         * m4/mbsncasecmp.m4: New file.
72640         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72641         GNULIB_MBSNCASECMP.
72642         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72643         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72644
72645 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72646
72647         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72648         Verify that it doesn't overlap with our flags.
72649         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72650         do not have the desired effect in multibyte locales; instead, use
72651         mbscasecmp.
72652         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72653         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72654         we don't require GNU fnmatch ourselves (if our users require it, they
72655         should do so explicitly).
72656
72657         Fix regex code so it doesn't rely on strcasecmp.
72658         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72659         Otherwise, include gnulib's langinfo.h.
72660         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72661         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72662         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72663         * modules/regex (FILES): Remove m4/codeset.m4.
72664         (Depends-on): Add localcharset.  Remove strcase.
72665
72666 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72667
72668         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72669         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72670
72671 2007-02-13  Bruno Haible  <bruno@clisp.org>
72672
72673         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72675
72676 2007-02-12  Bruno Haible  <bruno@clisp.org>
72677
72678         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72679         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72680         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72681         time warning rather than a link error.
72682
72683 2007-02-12  Bruno Haible  <bruno@clisp.org>
72684
72685         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72686         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72687         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72688
72689 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72690
72691         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72692         args, not 2.
72693
72694 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72695
72696         New module 'time', so that apps can include <time.h> as per
72697         POSIX and GNU instead of separate include files like time_r.h
72698         and timegm.h.  This implementation tries out a simpler approach
72699         for replacing decls in standard include files (as compared to
72700         the string module), somewhat as an experiment.
72701
72702         * config/srclist.txt: Comment out mktime.c for now.
72703         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72704         since it doesn't apply any more.  Use generic wording instead.
72705         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72706         'time'.
72707         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72708         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72709         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72710         Don't include <sys/types.h>; no longer needed since we assume C89.
72711         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72712         * lib/strftime.c: Likewise.
72713         * lib/time_r.c: Likewise.
72714         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72715         * lib/nanosleep.c: Include <time.h> first, to check interface.
72716         * lib/strptime.c: Likewise.
72717         * lib/time_r.c: Likewise.
72718         * lib/timegm.c: Likewise.
72719         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72720         needed.
72721         * lib/timegm.c: Don't include timegm.h; no longer needed.
72722         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72723         time.h now handles any problems in that area.
72724         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72725         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72726         that time.h defines struct timespec.
72727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72728         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72729         handles that.
72730         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72731         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72732         needed.  Set REPLACE_LOCALTIME.
72733         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72734         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72735         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72736         nanosleep; time_h.m4 now does that.  Don't require
72737         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72738         module handles this now.
72739         * modules/getdate (Depends-on): Remove timespec.  Add time.
72740         * modules/nanosleep (Depends-on): Likewise.
72741         * modules/stat-time (Depends-on): Likewise.
72742         * modules/nanosleep (Include): Include time.h, not timespec.h.
72743         * modules/strptime (Files): Remove lib/strptime.h.
72744         (Depends-on): Add extensions, time.
72745         (Include): Include time.h, not strptime.h.
72746         * modules/time_r (Files): Remove lib/time_r.h.
72747         (Depends-on): Add time.
72748         (Include): Include time.h, not time_r.h.
72749         * modules/timegm: Likewise.
72750         * modules/timespec (Description): Now does timespec-related decls
72751         of our own, instead of struct timespec itself.
72752         (Depends-on): Add time; remove extensions.
72753         (Maintainer): Add self.
72754         * modules/utimecmp (Depends-on): Add time; remove timespec.
72755         * modules/utimens (Depends-on): Likewise.
72756         * modules/xnanosleep (Depends-on): Likewise.
72757
72758 2007-02-11  Bruno Haible  <bruno@clisp.org>
72759
72760         * lib/c-strstr.c: Include allocsa.h.
72761         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72762         * lib/c-strcasestr.c: Include allocsa.h.
72763         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72764         * lib/strcasestr.c: Include allocsa.h.
72765         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72766         * lib/mbsstr.c: Include allocsa.h.
72767         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72768         allocsa/freesa instead of malloc/free.
72769         * lib/mbscasestr.c: Include allocsa.h.
72770         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72771         allocsa/freesa instead of malloc/free.
72772         * modules/c-strstr (Depends-on): Add allocsa.
72773         * modules/c-strcasestr (Depends-on): Likewise.
72774         * modules/strcasestr (Depends-on): Likewise.
72775         * modules/mbsstr (Depends-on): Likewise.
72776         * modules/mbscasestr (Depends-on): Likewise.
72777
72778 2007-02-11  Bruno Haible  <bruno@clisp.org>
72779
72780         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72781
72782         * modules/mbsspn-tests: New file.
72783         * tests/test-mbsspn.sh: New file.
72784         * tests/test-mbsspn.c: New file.
72785
72786 2007-02-11  Bruno Haible  <bruno@clisp.org>
72787
72788         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72789
72790         * modules/mbspbrk-tests: New file.
72791         * tests/test-mbspbrk.sh: New file.
72792         * tests/test-mbspbrk.c: New file.
72793
72794 2007-02-11  Bruno Haible  <bruno@clisp.org>
72795
72796         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72797         unneeded cast.
72798
72799         * modules/mbscspn-tests: New file.
72800         * tests/test-mbscspn.sh: New file.
72801         * tests/test-mbscspn.c: New file.
72802
72803 2007-02-11  Bruno Haible  <bruno@clisp.org>
72804
72805         * modules/mbscasecmp-tests: New file.
72806         * tests/test-mbscasecmp.sh: New file.
72807         * tests/test-mbscasecmp.c: New file.
72808
72809 2007-02-11  Bruno Haible  <bruno@clisp.org>
72810
72811         Ensure O(n) worst-case complexity of mbscasestr.
72812         * lib/mbscasestr.c: Include stdbool.h.
72813         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72814         functions.
72815         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72816         the bookkeeping indicates that it's worth it.
72817         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72818
72819         * modules/mbscasestr-tests: New file.
72820         * tests/test-mbscasestr1.c: New file.
72821         * tests/test-mbscasestr2.sh: New file.
72822         * tests/test-mbscasestr2.c: New file.
72823         * tests/test-mbscasestr3.sh: New file.
72824         * tests/test-mbscasestr3.c: New file.
72825         * tests/test-mbscasestr4.sh: New file.
72826         * tests/test-mbscasestr4.c: New file.
72827         * m4/locale-tr.m4: New file.
72828
72829 2007-02-11  Bruno Haible  <bruno@clisp.org>
72830
72831         Ensure O(n) worst-case complexity of mbsstr.
72832         * lib/mbsstr.c: Include stdbool.h.
72833         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72834         functions.
72835         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72836         bookkeeping indicates that it's worth it.
72837         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72838
72839         * modules/mbsstr-tests: New file.
72840         * tests/test-mbsstr1.c: New file.
72841         * tests/test-mbsstr2.sh: New file.
72842         * tests/test-mbsstr2.c: New file.
72843         * tests/test-mbsstr3.sh: New file.
72844         * tests/test-mbsstr3.c: New file.
72845         * m4/locale-fr.m4: New file.
72846
72847 2007-02-11  Bruno Haible  <bruno@clisp.org>
72848
72849         * lib/mbsrchr.c (mbsrchr): Fix bug.
72850
72851         * modules/mbsrchr-tests: New file.
72852         * tests/test-mbsrchr.sh: New file.
72853         * tests/test-mbsrchr.c: New file.
72854
72855 2007-02-11  Bruno Haible  <bruno@clisp.org>
72856
72857         * lib/mbschr.c (mbschr): Fix bug.
72858
72859         * modules/mbschr-tests: New file.
72860         * tests/test-mbschr.sh: New file.
72861         * tests/test-mbschr.c: New file.
72862         * m4/locale-zh.m4: New file.
72863
72864 2007-02-11  Bruno Haible  <bruno@clisp.org>
72865
72866         Support for copying multibyte string iterators.
72867         * lib/mbiter.h: Include <string.h>.
72868         (mbiter_multi_copy): New function.
72869         (mbi_copy): New macro.
72870         * lib/mbuiter.h: Include <string.h>.
72871         (mbuiter_multi_copy): New function.
72872         (mbui_copy): New macro.
72873
72874 2007-02-11  Bruno Haible  <bruno@clisp.org>
72875
72876         New module mbslen.
72877         * modules/mbslen: New file.
72878         * lib/mbslen.c: New file.
72879         * lib/string_.h (mbslen): New declaration.
72880         * m4/mbslen.m4: New file.
72881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72882         GNULIB_MBSLEN.
72883         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72884         * MODULES.html.sh (Internationalization functions): Add mbslen.
72885
72886 2007-02-11  Bruno Haible  <bruno@clisp.org>
72887
72888         Ensure O(n) worst-case complexity of strcasestr substitute.
72889         * lib/strcasestr.c: Include stdbool.h.
72890         (knuth_morris_pratt): New function.
72891         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72892         bookkeeping indicates that it's worth it.
72893         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72894
72895         * modules/strcasestr-tests: New file.
72896         * tests/test-strcasestr.c: New file.
72897
72898 2007-02-11  Bruno Haible  <bruno@clisp.org>
72899
72900         Ensure O(n) worst-case complexity of c_strcasestr.
72901         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72902         (knuth_morris_pratt): New function.
72903         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72904         the bookkeeping indicates that it's worth it.
72905         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72906
72907         * modules/c-strcasestr-tests: New file.
72908         * tests/test-c-strcasestr.c: New file.
72909
72910 2007-02-11  Bruno Haible  <bruno@clisp.org>
72911
72912         Ensure O(n) worst-case complexity of c_strstr.
72913         * lib/c-strstr.c: Include stdbool.h, string.h.
72914         (knuth_morris_pratt): New function.
72915         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72916         bookkeeping indicates that it's worth it.
72917         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72918
72919         * lib/c-strstr.c: Complete rewrite for maintainability.
72920
72921         * modules/c-strstr-tests: New file.
72922         * tests/test-c-strstr.c: New file.
72923
72924 2007-02-11  Bruno Haible  <bruno@clisp.org>
72925
72926         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72927         5.2.1 and earlier, whereby \055 was treated just like the range
72928         delimiter '-'.
72929         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72930
72931 2007-02-08  Bruno Haible  <bruno@clisp.org>
72932
72933         * modules/regex (Depends-on): Add stdbool.
72934         Reported by Dalibor Topic <robilad@kaffe.org>.
72935
72936 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72937
72938         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72939         Prefer returning from main to exiting from it.
72940         Remove unnecessary parens after sizeof.
72941
72942 2007-02-05  Bruno Haible  <bruno@clisp.org>
72943
72944         New module mbssep.
72945         * modules/mbssep: New file.
72946         * lib/mbssep.c: New file.
72947         * lib/string_.h (strsep): Add a conditional link warning.
72948         (mbssep): New declaration.
72949         * m4/mbssep.m4: New file.
72950         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72951         GNULIB_MBSSEP.
72952         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72953         * MODULES.html.sh (Internationalization functions): Add mbssep.
72954
72955 2007-02-05  Bruno Haible  <bruno@clisp.org>
72956
72957         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72958         Optimize search in case of 1 delimiter.
72959
72960 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72961
72962         * lib/acl.h: Include sys/types.h before sys/acl.h.
72963
72964 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72965
72966         Merge upstream fix for glibc bugzilla #3957:
72967
72968         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72969
72970         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72971         bit for RE_HAT_LISTS_NOT_NEWLINE.
72972         (build_charclass_op): Remove bogus comment.
72973
72974 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72975
72976         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72977
72978 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72979
72980         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72981         * lib/memmem.c [!defined _LIBC]: Include config.h.
72982
72983 2007-02-04  Bruno Haible  <bruno@clisp.org>
72984
72985         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72986         warning message.
72987
72988 2007-02-04  Bruno Haible  <bruno@clisp.org>
72989
72990         New module mbstok_r.
72991         * modules/mbstok_r: New file.
72992         * lib/mbstok_r.c: New file.
72993         * lib/string_.h (strtok_r): Change argument names to match the
72994         comments. Add a conditional link warning.
72995         (mbstok_r): New declaration.
72996         * m4/mbstok_r.m4: New file.
72997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72998         GNULIB_MBSTOK_R.
72999         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73000         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73001
73002 2007-02-04  Bruno Haible  <bruno@clisp.org>
73003
73004         New module mbsspn.
73005         * modules/mbsspn: New file.
73006         * lib/mbsspn.c: New file.
73007         * lib/string_.h (strspn): Add a conditional link warning.
73008         (mbsspn): New declaration.
73009         * m4/mbsspn.m4: New file.
73010         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73011         GNULIB_MBSSPN.
73012         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73013         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73014
73015 2007-02-04  Bruno Haible  <bruno@clisp.org>
73016
73017         New module mbspbrk.
73018         * modules/mbspbrk: New file.
73019         * lib/mbspbrk.c: New file.
73020         * lib/string_.h (strpbrk): Add a conditional link warning.
73021         (mbspbrk): New declaration.
73022         * m4/mbspbrk.m4: New file.
73023         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73024         GNULIB_MBSPBRK.
73025         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73026         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73027
73028 2007-02-04  Bruno Haible  <bruno@clisp.org>
73029
73030         New module mbscspn.
73031         * modules/mbscspn: New file.
73032         * lib/mbscspn.c: New file.
73033         * lib/string_.h (strcspn): Add a conditional link warning.
73034         (mbscspn): New declaration.
73035         * m4/mbscspn.m4: New file.
73036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73037         GNULIB_MBSCSPN.
73038         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73039         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73040
73041 2007-02-04  Bruno Haible  <bruno@clisp.org>
73042
73043         New module mbscasestr, reduced goal of strcasestr.
73044         * modules/mbscasestr: New file.
73045         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73046         (mbscasestr): Renamed from strcasestr.
73047         * lib/strcasestr.c: Don't include mbuiter.h.
73048         (strcasestr): Remove support for multibyte locales.
73049         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73050         Change the conditional link warning.
73051         (mbscasestr): New declaration.
73052         * m4/mbscasestr.m4: New file.
73053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73054         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73055         REPLACE_STRCASESTR.
73056         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73058         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73059         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73060         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73061         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73062         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73063         (Depends-on): Remove mbuiter.
73064         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73065
73066 2007-02-04  Bruno Haible  <bruno@clisp.org>
73067
73068         Simplify handling of strncasecmp.
73069         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73070         the conditional link warning.
73071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73072         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73073         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73074         * modules/strcase (configure.ac): Don't invoke
73075         gl_STRING_MODULE_INDICATOR.
73076         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73077
73078 2007-02-04  Bruno Haible  <bruno@clisp.org>
73079
73080         New module mbscasecmp, reduced goal of strcasecmp.
73081         * modules/mbscasecmp: New file.
73082         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73083         (mbscasecmp): Renamed from strcasecmp.
73084         * lib/strcasecmp.c: Don't include mbuiter.h.
73085         (strcasecmp): Remove support for multibyte locales.
73086         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73087         Change the conditional link warning.
73088         (mbscasecmp): New declaration.
73089         * m4/mbscasecmp.m4: New file.
73090         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73091         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73092         REPLACE_STRCASECMP.
73093         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73094         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73095         GNULIB_MBSCASECMP.
73096         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73097         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73098         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73099         (Depends-on): Remove mbuiter.
73100         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73101
73102 2007-02-04  Bruno Haible  <bruno@clisp.org>
73103
73104         New module mbsstr. Remove module strstr.
73105         * modules/mbsstr: New file.
73106         * modules/strstr: Remove file.
73107         * lib/mbsstr.c: Renamed from lib/strstr.c.
73108         (mbsstr): Renamed from strstr.
73109         * lib/string_.h (strstr): Remove declaration. Change the conditional
73110         link warning.
73111         (mbsstr): New declaration.
73112         * m4/mbsstr.m4: New file.
73113         * m4/strstr.m4: Remove file.
73114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73115         REPLACE_STRSTR.
73116         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73117         Don't initialize GNULIB_STRSTR.
73118         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73119         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73120         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73121         (Support for systems lacking ANSI C 89): Remove strstr.
73122
73123 2007-02-04  Bruno Haible  <bruno@clisp.org>
73124
73125         New module mbsrchr.
73126         * modules/mbsrchr: New file.
73127         * lib/mbsrchr.c: New file.
73128         * lib/string_.h (strrchr): Add a conditional link warning.
73129         (mbsrchr): New declaration.
73130         * m4/mbsrchr.m4: New file.
73131         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73132         GNULIB_MBSRCHR.
73133         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73134         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73135
73136 2007-02-04  Bruno Haible  <bruno@clisp.org>
73137
73138         New module mbschr.
73139         * modules/mbschr: New file.
73140         * lib/mbschr.c: New file.
73141         * lib/string_.h (strchr): Add a conditional link warning.
73142         (mbschr): New declaration.
73143         * m4/mbschr.m4: New file.
73144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73145         GNULIB_MBSCHR.
73146         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73147         * MODULES.html.sh (Internationalization functions): Add mbschr.
73148
73149 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73150
73151         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73152
73153         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73154
73155 2007-02-04  Bruno Haible  <bruno@clisp.org>
73156
73157         New module description section 'configure.ac-early'.
73158         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73159         (func_get_autoconf_early_snippet): New function.
73160         (func_import, func_create_testdir): Use it. Remove special cases for
73161         modules 'extensions' and 'lock'.
73162         * modules/extensions (configure.ac-early): Require
73163         gl_USE_SYSTEM_EXTENSIONS.
73164         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73165
73166 2007-02-04  Bruno Haible  <bruno@clisp.org>
73167
73168         Make use of gcj-4.3's -fsource and -ftarget option.
73169         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73170         and if so try the options -fsource and -ftarget.
73171         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73172         source_version, ftarget_option, target_version arguments.
73173         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73174         (is_envjavac_oldgcj_14_14_usable): Renamed from
73175         is_envjavac_gcj_14_14_usable.
73176         (is_envjavac_oldgcj_14_13_usable): Renamed from
73177         is_envjavac_gcj_14_13_usable.
73178         (is_gcj_present): Update.
73179         (is_gcj_43, is_gcj43_usable): New functions.
73180         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73181         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73182         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73183         try the options -fsource and -ftarget.
73184
73185 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73186
73187         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73188         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73189         larger value.
73190
73191 2007-02-03  Jim Meyering  <jim@meyering.net>
73192
73193         Give tools a better chance to allocate space for very large buffers.
73194         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73195
73196         Make pwd and readlink work also when run with an unreadable parent dir
73197         on systems with openat support.
73198         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73199         provided getcwd function, even when we have openat support.
73200         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73201
73202 2007-02-02  Bruno Haible  <bruno@clisp.org>
73203
73204         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73205         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73206         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73207         portability problems if one of these functions is only used on specific
73208         platforms.
73209         Reported by Paul Eggert.
73210
73211 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73212
73213         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73214         is causing more trouble than it's curing.
73215         * lib/regex_internal.h (__mempcpy): Remove.
73216         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73217         (and make the code a tad smaller to boot).
73218         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73219
73220 2007-02-02  Jim Meyering  <jim@meyering.net>
73221
73222         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73223         section, not in the Makefile.am: one.
73224
73225 2007-02-02  Eric Blake  <ebb9@byu.net>
73226
73227         * lib/strchrnul.c: Always include config.h first.
73228
73229         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73230         gnulib strstr is not necessary here.
73231
73232 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73233
73234         * m4/socklen.m4: Fix typo.
73235
73236 2007-02-02  Eric Blake  <ebb9@byu.net>
73237
73238         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73239         * modules/netinet_in (Makefile.am): Likewise.
73240
73241 2007-02-01  Bruno Haible  <bruno@clisp.org>
73242
73243         * lib/string_.h (GL_LINK_WARNING): New macro.
73244         (strcasecmp, strstr, strcasestr): If provided by the system,
73245         conditionally define as a macro that leads to a warning instead of to
73246         an error.
73247         (strncasecmp): Conditionally define as a macro that leads to a warning.
73248
73249 2007-02-01  Karl Berry  <karl@gnu.org>
73250
73251         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73252
73253 2007-02-01  Bruno Haible  <bruno@clisp.org>
73254
73255         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73256         renamings.
73257
73258 2007-02-01  Eric Blake  <ebb9@byu.net>
73259
73260         * modules/regex (Depends-on): Revert dependence on mempcpy.
73261         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73262         module's definition of mempcpy.
73263         Reported by Paul Eggert.
73264
73265 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73266
73267         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73268         the symbol XYZ before redefining it.  This fixes a problem with
73269         programs that don't use XYZ, when compiled on systems that define
73270         XYZ to something else.
73271
73272 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73273
73274         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73275         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73276         writeable to group or other and (2) is intended to have a special
73277         mode bit that is set or cleared.  In such a case, the directory
73278         should be neither group- nor other-writeable until the special
73279         mode bits are right.
73280
73281 2007-01-31  Eric Blake  <ebb9@byu.net>
73282
73283         * modules/mountlist (Depends-on): Add strstr.
73284
73285         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73286         bug.
73287         * modules/string (Makefile.am): Remove redundant replacement.
73288         * modules/regex (Depends-on): Add mempcpy.
73289
73290 2007-01-31  Bruno Haible  <bruno@clisp.org>
73291
73292         New module description field 'Link'.
73293         * gnulib-tool (func_usage): Document --extract-link-directive.
73294         (sed_extract_prog): Recognize 'Link' directive.
73295         (func_get_link_directive): New function.
73296         (func_import): Show summary of link directives.
73297         Handle --extract-link-directive option.
73298         * modules/acl (Link): New section.
73299         * modules/clock-time (Link): New section.
73300         * modules/euidaccess (Link): New section.
73301         * modules/gettext (Link): New section.
73302         * modules/iconv (Link): New section.
73303         * modules/lock (Link): New section.
73304         * modules/nanosleep (Link): New section.
73305         * modules/readline (Link): New section.
73306
73307 2007-01-27  Bruno Haible  <bruno@clisp.org>
73308
73309         Enforce the use of gnulib modules for unportable <string.h> functions.
73310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73311         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73312         (gl_HEADER_STRING_H_BODY): Require it.
73313         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73314         the symbol XYZ to one that gives a link error.
73315         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73316         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73317         * modules/mempcpy (configure.ac): Likewise.
73318         * modules/memrchr (configure.ac): Likewise.
73319         * modules/stpcpy (configure.ac): Likewise.
73320         * modules/stpncpy (configure.ac): Likewise.
73321         * modules/strcase (configure.ac): Likewise.
73322         * modules/strcasestr (configure.ac): Likewise.
73323         * modules/strchrnul (configure.ac): Likewise.
73324         * modules/strdup (configure.ac): Likewise.
73325         * modules/strndup (configure.ac): Likewise.
73326         * modules/strnlen (configure.ac): Likewise.
73327         * modules/strpbrk (configure.ac): Likewise.
73328         * modules/strsep (configure.ac): Likewise.
73329         * modules/strstr (configure.ac): Likewise.
73330         * modules/strtok_r (configure.ac): Likewise.
73331
73332 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73333
73334         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73335
73336 2007-01-30  Jim Meyering  <jim@meyering.net>
73337
73338         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73339
73340 2007-01-29  Bruno Haible  <bruno@clisp.org>
73341
73342         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73343         * lib/execute.c: Likewise.
73344         * lib/pipe.c: Likewise.
73345         * lib/printf-args.h: Likewise.
73346         * lib/printf-args.c: Likewise.
73347         * lib/printf-parse.c: Likewise.
73348         * lib/vasnprintf.c: Likewise.
73349
73350 2007-01-29  Eric Blake  <ebb9@byu.net>
73351
73352         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73353         declaration.
73354
73355 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73356
73357         * lib/strptime.h (strptime): Use 'restrict' for args where
73358         POSIX requires this.
73359         * lib/strptime.c (strptime): Likewise.
73360         Change license notice from LGPL to GPL, since gnulib-tool will
73361         change this as needed.
73362         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73363         defined.
73364         Include "strptime.h" first, to check interface.
73365         Do not #undef _LIBC and _NL_CURRENT.
73366         Do not include <stdlib.h>; no longer needed.
73367         Include "time_r.h" and declare ptime_locale_status
73368         only if _LIBC is not defined.
73369         (__P): Remove unused macro.
73370         (match_string): Bring back glibc version, but use it only if _LIBC
73371         is defined.
73372         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73373         Remove unnecessary assertion and abort() call.
73374         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73375         * m4/strptime.m4: Fix serial number comment.
73376         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73377         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73378         (Depends-on): Add time_r.
73379
73380 2007-01-29  Bruno Haible  <bruno@clisp.org>
73381
73382         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73383         strptime.
73384         * modules/strptime (Depends-on): Add stdbool.
73385         * lib/strptime.h: Include <time.h> always. Add comments.
73386
73387 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73388
73389         * modules/strptime: New file.
73390         * lib/strptime.h: New file.
73391         * lib/strptime.c: New file.
73392         * m4/strptime.m4: New file.
73393
73394 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * MODULES.html.sh: New module mpsort.
73397         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73398
73399         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73400         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73401         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73402         All uses changed.
73403         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73404         All uses changed.
73405         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73406         to _Restrict_.
73407         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73408         the parameter matches the prototype.
73409
73410 2007-01-28  Jim Meyering  <jim@meyering.net>
73411
73412         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73413         sys/time.h here, reverting that part of the previous patch:
73414         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73415
73416 2007-01-28  Bruno Haible  <bruno@clisp.org>
73417
73418         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73419         value of $(SYS_TIME_H).
73420         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73421         remove it conditionally, too. [added by Jim Meyering]
73422         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73423         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73424         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73425         GETTIMEOFDAY_REPLACEMENT to 1.
73426
73427 2007-01-28  Bruno Haible  <bruno@clisp.org>
73428
73429         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73430         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73431         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73432         Set UNISTD_H instead of UNISTD_H2.
73433         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73434
73435 2007-01-28  Bruno Haible  <bruno@clisp.org>
73436
73437         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73438         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73439
73440 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73441
73442         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73443         (func_create_testdir): Ensure C locale for `grep' and `tr'
73444         character ranges.
73445         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73446         ACLOCAL_AMFLAGS parsing state machine.
73447
73448 2007-01-27  Bruno Haible  <bruno@clisp.org>
73449
73450         * modules/unistr/base: Update.
73451
73452 2007-01-27  Bruno Haible  <bruno@clisp.org>
73453
73454         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73455         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73456         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73457         modules/unistr/u32-mbtouc.
73458         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73459         * lib/unistr.h: Update.
73460         * lib/linebreak.c: Update.
73461         * modules/unistr/u32-mbtouc: Renamed from
73462         modules/unistr/u32-mbtouc-safe.
73463         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73464         * lib/unistr.h: Update.
73465         * lib/unistr/u32-to-u8.c: Update.
73466         * lib/unistr/u32-to-u16.c: Update.
73467
73468 2007-01-27  Bruno Haible  <bruno@clisp.org>
73469
73470         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73471         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73472         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73473         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73474         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73475         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73476         modules/unistr/u16-mbtouc.
73477         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73478         * lib/unistr.h: Update.
73479         * lib/linebreak.c: Update.
73480         * modules/linebreak: Update.
73481         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73482         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73483         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73484         * modules/unistr/u16-mbtouc: Renamed from
73485         modules/unistr/u16-mbtouc-safe.
73486         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73487         * lib/unistr.h: Update.
73488         * lib/unistr/u16-to-u8.c: Update.
73489         * modules/unistr/u16-to-u8: Update.
73490         * lib/unistr/u16-to-u32.c: Update.
73491         * modules/unistr/u16-to-u32: Update.
73492
73493 2007-01-27  Bruno Haible  <bruno@clisp.org>
73494
73495         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73496         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73497         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73498         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73499         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73500         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73501         modules/unistr/u8-mbtouc.
73502         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73503         * lib/unistr.h: Update.
73504         * lib/striconveh.c: Update.
73505         * modules/striconveh: Update.
73506         * lib/linebreak.c: Update.
73507         * modules/linebreak: Update.
73508         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73509         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73510         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73511         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73512         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73513         * lib/unistr.h: Update.
73514         * lib/striconveh.c: Update.
73515         * modules/striconveh: Update.
73516         * lib/unistr/u8-to-u16.c: Update.
73517         * modules/unistr/u8-to-u16: Update.
73518         * lib/unistr/u8-to-u32.c: Update.
73519         * modules/unistr/u8-to-u32: Update.
73520
73521 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73522
73523         Sync from Libtool.
73524         * lib/argz.c: Do not include strings.h nor memory.h, include
73525         string.h unconditionally.  Patch by Simon Josefsson.
73526
73527 2007-01-27  Bruno Haible  <bruno@clisp.org>
73528
73529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73530         from gl_HEADER_STRING_H_BODY.
73531         (gl_HEADER_STRING_H_BODY): Require it.
73532         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73533         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73534         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73535         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73536         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73537         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73538         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73539         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73540         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73541         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73542         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73543         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73544         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73545         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73546         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73547
73548 2007-01-27  Bruno Haible  <bruno@clisp.org>
73549
73550         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73551         check_PROGRAMS into noinst_PROGRAMS.
73552         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73553         check_PROGRAMS in this case.
73554         (func_import): Set for_test to false.
73555         (func_create_testdir): Set for_test to true.
73556
73557 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73558             Bruno Haible  <bruno@clisp.org>
73559
73560         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73561         (Depends-on): Add string.
73562         (Includes): Use <string.h> instead of strcasestr.h.
73563         * modules/string (Makefile.am): Also substitute the value of
73564         REPLACE_STRCASESTR.
73565         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73566         assume strcasestr is declared in <string.h> not <strings.h>. Also
73567         set REPLACE_STRCASESTR.
73568         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73569         REPLACE_STRCASESTR.
73570         * lib/strcasestr.h: Remove file.
73571         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73572         * lib/string_.h (strcasestr): New declaration.
73573
73574 2007-01-27  Bruno Haible  <bruno@clisp.org>
73575
73576         * lib/string_.h: Use 'extern'.
73577
73578 2007-01-27  Jim Meyering  <jim@meyering.net>
73579
73580         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73581         of set-but-not-used local, "q".
73582
73583         * lib/mempcpy.c: Include <config.h> before <string.h>.
73584         This fixes a compilation error on HP-UX, due to the system's
73585         "restrict"-using mempcpy prototype.
73586
73587 2007-01-26  Bruno Haible  <bruno@clisp.org>
73588
73589         Small optimization.
73590         * lib/javacomp.c: Include c-strstr.h.
73591          (is_envjavac_gcj): Use c_strstr instead of strstr.
73592         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73593
73594 2007-01-26  Bruno Haible  <bruno@clisp.org>
73595
73596         * MODULES.html.sh (Unicode string functions): Add the new modules.
73597
73598         * modules/uniconv/u32-strconv-to-locale: New file.
73599         * lib/uniconv/u32-strconv-to-locale.c: New file.
73600
73601         * modules/uniconv/u16-strconv-to-locale: New file.
73602         * lib/uniconv/u16-strconv-to-locale.c: New file.
73603
73604         * modules/uniconv/u8-strconv-to-locale: New file.
73605         * lib/uniconv/u8-strconv-to-locale.c: New file.
73606
73607         * modules/uniconv/u32-strconv-from-locale: New file.
73608         * lib/uniconv/u32-strconv-from-locale.c: New file.
73609
73610         * modules/uniconv/u16-strconv-from-locale: New file.
73611         * lib/uniconv/u16-strconv-from-locale.c: New file.
73612
73613         * modules/uniconv/u8-strconv-from-locale: New file.
73614         * lib/uniconv/u8-strconv-from-locale.c: New file.
73615
73616         * modules/uniconv/u32-strconv-to-enc: New file.
73617         * lib/uniconv/u32-strconv-to-enc.c: New file.
73618         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73619         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73620
73621         * modules/uniconv/u16-strconv-to-enc: New file.
73622         * lib/uniconv/u16-strconv-to-enc.c: New file.
73623         * lib/uniconv/u-strconv-to-enc.h: New file.
73624         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73625         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73626
73627         * modules/uniconv/u8-strconv-to-enc: New file.
73628         * lib/uniconv/u8-strconv-to-enc.c: New file.
73629         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73630         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73631
73632         * modules/uniconv/u32-strconv-from-enc: New file.
73633         * lib/uniconv/u32-strconv-from-enc.c: New file.
73634         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73635         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73636
73637         * modules/uniconv/u16-strconv-from-enc: New file.
73638         * lib/uniconv/u16-strconv-from-enc.c: New file.
73639         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73640         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73641
73642         * modules/uniconv/u8-strconv-from-enc: New file.
73643         * lib/uniconv/u8-strconv-from-enc.c: New file.
73644         * lib/uniconv/u-strconv-from-enc.h: New file.
73645         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73646         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73647
73648         * modules/uniconv/u32-conv-from-enc: New file.
73649         * lib/uniconv/u32-conv-from-enc.c: New file.
73650         * modules/uniconv/u32-conv-from-enc-tests: New file.
73651         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73652
73653         * modules/uniconv/u16-conv-from-enc: New file.
73654         * lib/uniconv/u16-conv-from-enc.c: New file.
73655         * lib/uniconv/u-conv-from-enc.h: New file.
73656         * modules/uniconv/u16-conv-from-enc-tests: New file.
73657         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73658
73659         * modules/uniconv/u8-conv-from-enc: New file.
73660         * lib/uniconv/u8-conv-from-enc.c: New file.
73661         * modules/uniconv/u8-conv-from-enc-tests: New file.
73662         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73663
73664         * modules/uniconv/base: New file.
73665         * lib/uniconv.h: New file.
73666
73667 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         * doc/gnulib-tool.texi (Initial import): Update to match current
73670         behavior with strdup module.
73671         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73672         * lib/memmem.h: Remove; all uses removed.  This is now done
73673         by <string.h>.
73674         * lib/mempcpy.h: Likewise.
73675         * lib/memrchr.h: Likewise.
73676         * lib/stpcpy.h: Likewise.
73677         * lib/stpncpy.h: Likewise.
73678         * lib/strcase.h: Likewise.
73679         * lib/strchrnul.h: Likewise.
73680         * lib/strdup.h: Likewise.
73681         * lib/strndup.h: Likewise.
73682         * lib/strnlen.h: Likewise.
73683         * lib/strpbrk.h: Likewise.
73684         * lib/strsep.h: Likewise.
73685         * lib/strstr.h: Likewise.
73686         * lib/strtok_r.h: Likewise.
73687         * lib/string_.h: New file.
73688         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73689         Rely on <string.h> instead.
73690         * lib/canon-host.c: Likewise.
73691         * lib/chdir-long.c: Likewise.
73692         * lib/concatpath.c: Likewise.
73693         * lib/exclude.c: Likewise.
73694         * lib/fchdir.c: Likewise.
73695         * lib/getaddrinfo.c: Likewise.
73696         * lib/getcwd.c: Likewise.
73697         * lib/getsubopt.c: Likewise.
73698         * lib/glob.c: Likewise.
73699         * lib/hard-locale.c: Likewise.
73700         * lib/iconvme.c: Likewise.
73701         * lib/javacomp.c: Likewise.
73702         * lib/mempcpy.c: Likewise.
73703         * lib/memrchr.c: Likewise.
73704         * lib/regex_internal.h: Likewise.
73705         * lib/stpncpy.c: Likewise.
73706         * lib/strcasecmp.c: Likewise.
73707         * lib/strchrnul.c: Likewise.
73708         * lib/strdup.c: Likewise.
73709         * lib/striconv.c: Likewise.
73710         * lib/striconveh.c: Likewise.
73711         * lib/striconveha.c: Likewise.
73712         * lib/strncasecmp.c: Likewise.
73713         * lib/strndup.c: Likewise.
73714         * lib/strnlen.c: Likewise.
73715         * lib/strsep.c: Likewise.
73716         * lib/strstr.c: Likewise.
73717         * lib/strtok_r.c: Likewise.
73718         * lib/userspec.c: Likewise.
73719         * lib/w32spawn.h: Likewise.
73720         * lib/xstrndup.c: Likewise.
73721         * lib/mountlist.c (strstr): Remove decl.
73722         * m4/string_h.m4: New file.
73723         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73724         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73725         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73726         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73727         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73728         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73729         Set REPLACE_STRCASECMP if necessary.
73730         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73731         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73732         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73733         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73734         HAVE_DECL_STRDUP if necessary.
73735         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73736         since gl_FUNC_STRNDUP does that now.
73737         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73738         Check for decl here...
73739         (gl_PREREQ_STRNLEN): ... not here.
73740         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73741         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73742         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73743         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73744         necessary.
73745         * modules/string: New file.
73746         * modules/memmem (Files): Remove special-purpose include file.
73747         (Depends-on): Add string.
73748         (Include): Include <string.h>, not the removed file.
73749         * modules/mempcpy: Likewise.
73750         * modules/memrchr: Likewise.
73751         * modules/stpcpy: Likewise.
73752         * modules/stpncpy: Likewise.
73753         * modules/strcase: Likewise.
73754         * modules/strchrnul: Likewise.
73755         * modules/strdup: Likewise.
73756         * modules/strndup: Likewise.
73757         * modules/strnlen: Likewise.
73758         * modules/strpbrk: Likewise.
73759         * modules/strsep: Likewise.
73760         * modules/strstr: Likewise.
73761         * modules/strtok_r: Likewise.
73762         * tests/test-dirname.c: Don't include "strdup.h", since
73763         <string.h> now suffices.
73764         * tests/test-memmem.c: Don't include "memmem.h", since
73765         <string.h> now suffices.
73766
73767 2007-01-25  Bruno Haible  <bruno@clisp.org>
73768
73769         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73770         *resultp is 0.
73771
73772         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73773         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73774         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73775         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73776
73777         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73778         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73779         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73780         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73781         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73782         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73783
73784 2007-01-24  Bruno Haible  <bruno@clisp.org>
73785
73786         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73787         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73788         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73789         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73790         gl_FUNC_FTS_CORE.
73791         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73792         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73793         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73794         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73795         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73796         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73797         gl_FUNC_FCHOWNAT.
73798         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73799         gl_FUNC_STRFTIME.
73800         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73801         Reported by Ralf Wildenhues.
73802
73803 2007-01-24  Bruno Haible  <bruno@clisp.org>
73804
73805         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73806         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73807         gl_GETADDRINFO.
73808         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73809         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73810         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73811
73812 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73813
73814         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73815         Don't use 'exit'; just return from 'main'.
73816         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73817
73818         * lib/fnmatch_.h: Readjust white space and comments to match
73819         glibc, to avoid spurious diffs.
73820
73821 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73822
73823         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73824         2004-12-01 change by Jakub Jelinek, since this code won't compile
73825         if !LIBC.  Problem reported by Bob Proulx.
73826
73827 2007-01-23  Bruno Haible  <bruno@clisp.org>
73828
73829         * lib/striconveh.c: Include c-strcaseeq.h.
73830         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73831         * modules/striconveh (Depends-on): Add c-strcaseeq.
73832
73833 2007-01-23  Bruno Haible  <bruno@clisp.org>
73834
73835         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73836
73837         * modules/c-strcaseeq: New file.
73838         * lib/c-strcaseeq.h: New file.
73839
73840         * modules/streq: New file.
73841         * lib/streq.h: New file.
73842
73843 2007-01-23  Bruno Haible  <bruno@clisp.org>
73844
73845         * modules/striconveha-tests: New file.
73846         * tests/test-striconveha.c: New file.
73847
73848         * lib/striconveha.h: Include <stdbool.h>.
73849         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73850         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73851         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73852         (mem_iconveha): New function.
73853         (str_iconveha_notranslit): Renamed from str_iconveha.
73854         (str_iconveha): New function.
73855         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73856         c-strcase.
73857
73858 2007-01-23  Bruno Haible  <bruno@clisp.org>
73859
73860         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73861         encodings without forgiving before trying any encoding with handler.
73862         (str_iconveha): Try all encodings without forgiving before trying any
73863         encoding with handler.
73864
73865 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73866
73867         Import the following changes from libc.
73868
73869         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73870
73871         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73872
73873         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73874
73875         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73876         normal_bracket label.
73877
73878         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73879
73880         [BZ #361]
73881         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73882         to normal_bracket after fetching the next character.
73883
73884 2007-01-22  Bruno Haible  <bruno@clisp.org>
73885
73886         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73887         argument.
73888         * lib/striconveh.c (iconv_carefully_1): New function.
73889         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73890         argument.
73891         (str_cd_iconveh): Update.
73892         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73893         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73894         * tests/test-striconveh.c (MAGIC): New macro.
73895         (new_offsets): New function.
73896         (main): Test call with and without offsets.
73897
73898 2007-01-22  Bruno Haible  <bruno@clisp.org>
73899
73900         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73901         * modules/sys_select (Makefile.am): Likewise.
73902         * modules/sys_socket (Makefile.am): Likewise.
73903         * modules/sys_time (Makefile.am): Likewise.
73904
73905 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73906
73907         * modules/gettimeofday (License): Change from GPL to LGPL, since
73908         gettimeofday is a library function.
73909
73910 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73911
73912         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73913
73914 2007-01-21  Bruno Haible  <bruno@clisp.org>
73915
73916         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73917
73918 2007-01-21  Bruno Haible  <bruno@clisp.org>
73919
73920         * modules/striconveha: New file.
73921         * lib/striconveha.h: New file.
73922         * lib/striconveha.c: New file.
73923         * MODULES.html.sh (Internationalization functions): Add striconveha.
73924         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73925         string.
73926         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73927
73928 2007-01-21  Bruno Haible  <bruno@clisp.org>
73929
73930         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73931         * lib/striconveh.c (str_iconveh): Likewise.
73932
73933 2007-01-21  Bruno Haible  <bruno@clisp.org>
73934
73935         * lib/striconveh.h (mem_iconveh): New declaration.
73936         * lib/striconveh.c (mem_iconveh): New function.
73937         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73938
73939 2007-01-21  Bruno Haible  <bruno@clisp.org>
73940
73941         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73942
73943         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73944         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73945         original result buffer.
73946         (str_cd_iconveh): Update.
73947         * tests/test-striconveh.c (main): Update.
73948
73949         * lib/striconv.h (mem_cd_iconv): Change specification.
73950         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73951         result buffer.
73952         (str_cd_iconv): Update.
73953         * tests/test-striconv.c (main): Update.
73954
73955 2007-01-21  Bruno Haible  <bruno@clisp.org>
73956
73957         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73958
73959 2007-01-20  Jim Meyering  <jim@meyering.net>
73960
73961         * lib/userspec.c (parse_with_separator): If a user or group string
73962         starts with "+", skip the corresponding name-to-ID look-up, since
73963         such a look-up must fail: user and group names may not include "+".
73964
73965 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73966
73967         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73968         since we now assume the sys_time module.
73969         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73970         check for sys/time.h; no longer needed.
73971         * modules/poll (Depends-on): Depend on sys_time.
73972
73973 2007-01-18  Bruno Haible  <bruno@clisp.org>
73974
73975         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73976         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73977
73978         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73979         gettimeofday.
73980
73981         * tests/test-gettimeofday.c: Include <time.h>.
73982         (dummy): Remove variable.
73983
73984         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73985         gl_HEADER_SYS_TIME_H.
73986         (gl_HEADER_SYS_TIME_H): New macro.
73987
73988         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73989         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73990         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73991         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73992         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73993         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73994         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73995         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73996         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73997         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73998         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73999
74000         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74001         last change; it caused a compilation error when cross-compiling to
74002         Cygwin.
74003
74004 2007-01-18  Jim Meyering  <jim@meyering.net>
74005
74006         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74007         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74008         than the race-prone "test -d sys || mkdir sys".
74009         (configure.ac): Use AC_PROG_MKDIR_P.
74010         * modules/sys_select: Likewise.
74011         * modules/sys_socket: Likewise.
74012         * modules/sys_time: Likewise.
74013
74014 2007-01-18  Eric Blake  <ebb9@byu.net>
74015
74016         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74017         replace gettimeofday.
74018         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74019         name, to avoid infinite recursion.
74020
74021 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74024         module sys_time.
74025         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74026         assume timespec.h defines struct timeval.
74027         * lib/settime.c: Likewise.
74028         * lib/utimens.c: Likewise.
74029         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74030         since we now assume the gettimeofday module.
74031         * lib/tempname.c (__gen_tempname): Likewise.
74032         * lib/gettimeofday.h: Remove.
74033         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74034         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74035         Include <time.h>, for 'time()'.
74036         (localtime_buffer_addr): Also use this workaround if
74037         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74038         to simplify the uses.  All uses changed.
74039         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74040         that #undef is inside {}, and 'const' follows type name consistently.
74041         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74042         (gettimeofday): Do not use the maximum possible value for
74043         tv->tv_usec, since that might break usages other than ls.c.
74044         Instead, we'll leave ls.c alone.  This undoes today's patch
74045         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74046         we've never observed the problem but might as well keep the
74047         canary.
74048         * lib/nanosleep.c: Include timespec.h first, for interface check.
74049         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74050         now assume the sys_time module.
74051         * lib/tempname.c: Likewise.
74052         * lib/timespec.h: Likewise.
74053         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74054         needed.
74055         * lib/strftime.c: Likewise.
74056         * lib/timespec.h: Likewise.
74057         * lib/posixtm.c: Include posixtm.h first, for interface check.
74058         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74059         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74060         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74061         * lib/sys_time_.h: New file.
74062         * lib/timespec.h (struct timespec): Use long int, not long.
74063         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74064         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74065         Remove obsolescent call to AC_HEADER_TIME.
74066         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74067         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74068         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74069         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74070         Likewise.
74071         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74072         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74074         into the sys_time module.  Check for gettimeofday just once.
74075         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74076         for gettimeofday signature to just check the signature.  Merely
74077         compile it, since linking doesn't test signature.  Improve test for
74078         whether gettimeofday.o is actually needed.
74079         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74080         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74081         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74082         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74083         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74084         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74085         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74086         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74087         than worrying about sys/time.h.
74088         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74089         Don't bother worrying about TIME_WITH_SYS_TIME.
74090         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74091         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74092         * m4/sys_time_h.m4: New file.
74093         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74094         Don't include sys/time.h.  Return from main rather than exiting.
74095         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74096         all uses changed.
74097         * modules/gethrxtime (Depends-on): Add sys_time.
74098         * modules/gettime (Depends-on): Likewise.
74099         * modules/gettimeofday (Depends-on): Likewise.
74100         * modules/nanosleep (Depends-on): Likewise.
74101         * modules/settime (Depends-on): Likewise.
74102         * modules/tempname (Depends-on): Likewise.
74103         * modules/utimens (Depends-on): Likewise.
74104         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74105         (Include): Change back to <sys/time.h>.
74106         (Maintainer): Add self.
74107         * modules/sys_time: New file.
74108         * modules/tempname (Depends-on): Add gettimeofday.
74109         * tests/test-gettimeofday.c: Include <sys/time.h>
74110         rather than gettimeofday.h.
74111
74112 2007-01-17  Bruno Haible  <bruno@clisp.org>
74113
74114         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74115         the license default to GPL.
74116         (func_create_testdir): Don't complain if a module is LGPL and its
74117         tests module depends on GPLed modules.
74118
74119 2007-01-17  Bruno Haible  <bruno@clisp.org>
74120
74121         * lib/gettimeofday.c (gettimeofday): Add code for the case
74122         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74123         maximum possible value for tv->tv_usec, rather than the minimum one.
74124
74125 2005-10-08  Martin Lambers  <marlam@marlam.de>
74126 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74127 2007-01-16  Bruno Haible  <bruno@clisp.org>
74128
74129         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74130         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74131         gl_FUNC_GETTIMEOFDAY.
74132         (Include): Add gettimeofday.h.
74133         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74134         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74135         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74136         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74137         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74138         * lib/gettimeofday.h: New file.
74139         * lib/gettimeofday.c: Include <sys/timeb.h>.
74140         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74141         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74142         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74143         fall back on time().
74144
74145         * tests/test-gettimeofday.c: New file.
74146         * modules/gettimeofday-tests: New file.
74147
74148 2007-01-16  Eric Blake  <ebb9@byu.net>
74149
74150         * modules/fnmatch (Depends-on): Depend on wchar.
74151         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74152         * m4/fnmatch.m4: Likewise.
74153         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74154         * m4/mbchar.m4: Likewise.
74155         * modules/mbswidth (Depends-on): Depend on wchar.
74156         * lib/mbswidth.c: Assume <wchar.h>.
74157         * m4/mbswidth.m4: Likewise.
74158         * modules/quotearg (Depends-on): Depend on wchar.
74159         * lib/quotearg.c: Assume <wchar.h>.
74160         * m4/quotearg.m4: Likewise.
74161         * modules/regex (Depends-on): Depend on wchar.
74162         * lib/regex_internal.h: Assume <wchar.h>.
74163         * m4/regex.m4: Likewise.
74164         * modules/stdint (Depends-on): Depend on wchar.
74165         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74166         * m4/stdint.m4: Likewise.
74167         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74168         * modules/strftime (Depends-on): Depend on wchar.
74169         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74170         * modules/strtol (Depends-on): Depend on wchar.
74171         * lib/strtol.c: Assume <wchar.h>.
74172         * modules/wcwidth (Depends-on): Depend on wchar.
74173         * lib/wcwidth.h: Assume <wchar.h>.
74174         * m4/wcwidth.m4: Likewise.
74175
74176 2007-01-16  Bruno Haible  <bruno@clisp.org>
74177
74178         * modules/csharpexec-script: New, created from...
74179         * modules/csharpexec: ... this.
74180
74181 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74182
74183         * modules/javaexec-script: New, created from...
74184         * modules/javaexec: ... this.
74185
74186 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74187
74188         * modules/poll (Dependencies): Add sys_select.
74189
74190 2007-01-15  Jim Meyering  <jim@meyering.net>
74191
74192         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74193         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74194         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74195         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74196
74197 2007-01-15  Bruno Haible  <bruno@clisp.org>
74198
74199         * modules/striconveh: New file.
74200         * lib/striconveh.h: New file.
74201         * lib/striconveh.c: New file.
74202         * MODULES.html.sh (Internationalization functions): Add striconveh.
74203
74204         * modules/striconveh-tests: New file.
74205         * tests/test-striconveh.c: New file.
74206
74207 2007-01-15  Bruno Haible  <bruno@clisp.org>
74208
74209         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74210         not from GNU libiconv or GNU libc.
74211
74212 2007-01-15  Bruno Haible  <bruno@clisp.org>
74213
74214         * doc/gnulib-intro.texi (Copyright): Explain the different license
74215         terms for module descriptions, autoconf macros, tests, documentation.
74216
74217 2007-01-14  Bruno Haible  <bruno@clisp.org>
74218
74219         * modules/striconv-tests: New file.
74220         * tests/test-striconv.c: New file.
74221
74222 2007-01-14  Bruno Haible  <bruno@clisp.org>
74223
74224         * modules/iconv-tests: New file.
74225         * tests/test-iconv.c: New file.
74226
74227 2007-01-14  Bruno Haible  <bruno@clisp.org>
74228
74229         * gnulib-tool (func_get_license): For test modules, use the license of
74230         the main module.
74231
74232 2007-01-14  Bruno Haible  <bruno@clisp.org>
74233
74234         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74235         if iconv is found to exist.
74236
74237 2007-01-14  Bruno Haible  <bruno@clisp.org>
74238
74239         * modules/c-ctype-tests: New file.
74240         * tests/test-c-ctype.c: New file.
74241
74242 2007-01-14  Bruno Haible  <bruno@clisp.org>
74243
74244         * modules/binary-io-tests: New file.
74245         * tests/test-binary-io.sh: New file.
74246         * tests/test-binary-io.c: New file.
74247
74248 2007-01-14  Bruno Haible  <bruno@clisp.org>
74249
74250         * modules/array-oset-tests: New file.
74251         * tests/test-array_oset.c: New file.
74252
74253 2007-01-14  Bruno Haible  <bruno@clisp.org>
74254
74255         * modules/array-list-tests: New file.
74256         * tests/test-array_list.c: New file.
74257
74258 2007-01-14  Bruno Haible  <bruno@clisp.org>
74259
74260         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74261         and make.
74262         Reported by Simon Josefsson in
74263         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74264
74265 2007-01-14  Bruno Haible  <bruno@clisp.org>
74266
74267         * modules/allocsa-tests: New file.
74268         * tests/test-allocsa.c: New file.
74269
74270 2007-01-14  Bruno Haible  <bruno@clisp.org>
74271
74272         * modules/fchdir (Depends-on): Add absolute-header.
74273         * modules/unistd (Depends-on): Likewise.
74274
74275 2006-12-30  Bruno Haible  <bruno@clisp.org>
74276
74277         * modules/fchdir: New file.
74278         * modules/unistd (Files): Add lib/unistd_.h.
74279         (Makefile.am): Generate unistd.h from unistd_.h.
74280         * lib/fchdir.c: New file.
74281         * lib/dirent_.h: New file.
74282         * lib/unistd_.h: New file.
74283         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74284         * m4/fchdir.m4: New file.
74285         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74286         (gl_HEADER_UNISTD): Invoke it.
74287         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74288         function.
74289         * lib/backupfile.c (opendir, closedir): Undefine.
74290         * lib/chown.c (open, close): Undefine.
74291         * lib/clean-temp.c (open, close): Undefine.
74292         * lib/copy-file.c (open, close): Undefine.
74293         * lib/execute.c (open, close): Undefine.
74294         * lib/fsusage.c (open, close): Undefine.
74295         * lib/gc-gnulib.c (open, close): Undefine.
74296         * lib/getcwd.c (opendir, closedir): Undefine.
74297         * lib/glob.c (opendir, closedir): Undefine.
74298         * lib/javacomp.c (open, close): Undefine.
74299         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74300         * lib/openat-proc.c (open, close): Undefine.
74301         * lib/pagealign_alloc.c (open, close): Undefine.
74302         * lib/pipe.c (open, close): Undefine.
74303         * lib/progreloc.c (open, close): Undefine.
74304         * lib/savedir.c (opendir, closedir): Undefine.
74305         * lib/utime.c (open, close): Undefine.
74306         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74307
74308 2007-01-10  Bruno Haible  <bruno@clisp.org>
74309
74310         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74311
74312 2007-01-12  Eric Blake  <ebb9@byu.net>
74313
74314         Provide a robust <wchar.h>.  Further simplifications are now
74315         possible in other modules, but not included here.
74316         * modules/wchar: New module.
74317         * m4/wchar.m4: New file.
74318         * lib/wchar_.h: Likewise.
74319         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74320         of the new module.
74321         * MODULES.html.sh (Extended multibyte and wide character utilities):
74322         New section.
74323
74324 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74325
74326         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74327         to a reasonable default for memory allocation.
74328         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74329         file system that reports garbage st_size values for symlinks.
74330         Problem reported by Liyang Hu.
74331
74332 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74333
74334         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74335         Emacs .#* auto-save files).
74336
74337 2007-01-11  Bruno Haible  <bruno@clisp.org>
74338
74339         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74340         directory.
74341
74342 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74343
74344         Use @...@ consistently in lib/wctype_.h.
74345         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74346         on it being set to 1 or 0.
74347         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74348         go back to AC_SUBSTing it.
74349         * modules/wctype (Makefile.am): Undo previous change.
74350
74351 2007-01-10  Eric Blake  <ebb9@byu.net>
74352
74353         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74354         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74355         * modules/wctype (Makefile.am): Likewise.
74356         Reported by Chris McGuire.
74357
74358 2007-01-10  Jim Meyering  <jim@meyering.net>
74359
74360         fts.c: a small readability/maintainability improvement
74361         * lib/fts.c (fts_read): Make this code slightly more readable and
74362         maintainable by hoisting the "sp->fts_cur = p" assignments to
74363         immediately follow the statements that set P.  Derived from
74364         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74365
74366 2007-01-10  Eric Blake  <ebb9@byu.net>
74367
74368         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74369         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74371         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74372         Reported by Chris McGuire.
74373
74374 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74375
74376         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74377         in sed script.
74378
74379 2007-01-09  Bruno Haible  <bruno@clisp.org>
74380
74381         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74382         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74383         variables.
74384         (func_module): Use them.
74385
74386 2007-01-09  Bruno Haible  <bruno@clisp.org>
74387
74388         * modules/unistr/base: New file.
74389         * lib/unistr.h: New file.
74390
74391         * modules/unistr/u8-to-u16: New file.
74392         * lib/unistr/u8-to-u16.c: New file.
74393
74394         * modules/unistr/u8-to-u32: New file.
74395         * lib/unistr/u8-to-u32.c: New file.
74396
74397         * modules/unistr/u16-to-u8: New file.
74398         * lib/unistr/u16-to-u8.c: New file.
74399
74400         * modules/unistr/u16-to-u32: New file.
74401         * lib/unistr/u16-to-u32.c: New file.
74402
74403         * modules/unistr/u32-to-u8: New file.
74404         * lib/unistr/u32-to-u8.c: New file.
74405
74406         * modules/unistr/u32-to-u16: New file.
74407         * lib/unistr/u32-to-u16.c: New file.
74408
74409         * modules/unistr/u8-check: New file.
74410         * modules/unistr/u16-check: New file.
74411         * modules/unistr/u32-check: New file.
74412         * lib/unistr/u8-check.c: New file.
74413         * lib/unistr/u16-check.c: New file.
74414         * lib/unistr/u32-check.c: New file.
74415
74416         * modules/unistr/u8-chr: New file.
74417         * modules/unistr/u16-chr: New file.
74418         * modules/unistr/u32-chr: New file.
74419         * lib/unistr/u8-chr.c: New file.
74420         * lib/unistr/u16-chr.c: New file.
74421         * lib/unistr/u32-chr.c: New file.
74422
74423         * modules/unistr/u8-cmp: New file.
74424         * modules/unistr/u16-cmp: New file.
74425         * modules/unistr/u32-cmp: New file.
74426         * lib/unistr/u8-cmp.c: New file.
74427         * lib/unistr/u16-cmp.c: New file.
74428         * lib/unistr/u32-cmp.c: New file.
74429
74430         * modules/unistr/u8-cpy: New file.
74431         * modules/unistr/u16-cpy: New file.
74432         * modules/unistr/u32-cpy: New file.
74433         * lib/unistr/u8-cpy.c: New file.
74434         * lib/unistr/u16-cpy.c: New file.
74435         * lib/unistr/u32-cpy.c: New file.
74436         * lib/unistr/u-cpy.h: New file.
74437
74438         * modules/unistr/u8-cpy-alloc: New file.
74439         * modules/unistr/u16-cpy-alloc: New file.
74440         * modules/unistr/u32-cpy-alloc: New file.
74441         * lib/unistr/u8-cpy-alloc.c: New file.
74442         * lib/unistr/u16-cpy-alloc.c: New file.
74443         * lib/unistr/u32-cpy-alloc.c: New file.
74444         * lib/unistr/u-cpy-alloc.h: New file.
74445
74446         * modules/unistr/u8-endswith: New file.
74447         * modules/unistr/u16-endswith: New file.
74448         * modules/unistr/u32-endswith: New file.
74449         * lib/unistr/u8-endswith.c: New file.
74450         * lib/unistr/u16-endswith.c: New file.
74451         * lib/unistr/u32-endswith.c: New file.
74452         * lib/unistr/u-endswith.h: New file.
74453
74454         * modules/unistr/u8-mblen: New file.
74455         * modules/unistr/u16-mblen: New file.
74456         * modules/unistr/u32-mblen: New file.
74457         * lib/unistr/u8-mblen.c: New file.
74458         * lib/unistr/u16-mblen.c: New file.
74459         * lib/unistr/u32-mblen.c: New file.
74460
74461         * modules/unistr/u8-mbtouc: New file.
74462         * modules/unistr/u16-mbtouc: New file.
74463         * modules/unistr/u32-mbtouc: New file.
74464         * lib/unistr/u8-mbtouc.c: New file.
74465         * lib/unistr/u16-mbtouc.c: New file.
74466         * lib/unistr/u32-mbtouc.c: New file.
74467
74468         * modules/unistr/u8-mbtouc-safe: New file.
74469         * modules/unistr/u16-mbtouc-safe: New file.
74470         * modules/unistr/u32-mbtouc-safe: New file.
74471         * lib/unistr/u8-mbtouc-safe.c: New file.
74472         * lib/unistr/u16-mbtouc-safe.c: New file.
74473         * lib/unistr/u32-mbtouc-safe.c: New file.
74474
74475         * modules/unistr/u8-move: New file.
74476         * modules/unistr/u16-move: New file.
74477         * modules/unistr/u32-move: New file.
74478         * lib/unistr/u8-move.c: New file.
74479         * lib/unistr/u16-move.c: New file.
74480         * lib/unistr/u32-move.c: New file.
74481         * lib/unistr/u-move.h: New file.
74482
74483         * modules/unistr/u8-next: New file.
74484         * modules/unistr/u16-next: New file.
74485         * modules/unistr/u32-next: New file.
74486         * lib/unistr/u8-next.c: New file.
74487         * lib/unistr/u16-next.c: New file.
74488         * lib/unistr/u32-next.c: New file.
74489
74490         * modules/unistr/u8-prev: New file.
74491         * modules/unistr/u16-prev: New file.
74492         * modules/unistr/u32-prev: New file.
74493         * lib/unistr/u8-prev.c: New file.
74494         * lib/unistr/u16-prev.c: New file.
74495         * lib/unistr/u32-prev.c: New file.
74496
74497         * modules/unistr/u8-set: New file.
74498         * modules/unistr/u16-set: New file.
74499         * modules/unistr/u32-set: New file.
74500         * lib/unistr/u8-set.c: New file.
74501         * lib/unistr/u16-set.c: New file.
74502         * lib/unistr/u32-set.c: New file.
74503         * lib/unistr/u-set.h: New file.
74504
74505         * modules/unistr/u8-startswith: New file.
74506         * modules/unistr/u16-startswith: New file.
74507         * modules/unistr/u32-startswith: New file.
74508         * lib/unistr/u8-startswith.c: New file.
74509         * lib/unistr/u16-startswith.c: New file.
74510         * lib/unistr/u32-startswith.c: New file.
74511         * lib/unistr/u-startswith.h: New file.
74512
74513         * modules/unistr/u8-stpcpy: New file.
74514         * modules/unistr/u16-stpcpy: New file.
74515         * modules/unistr/u32-stpcpy: New file.
74516         * lib/unistr/u8-stpcpy.c: New file.
74517         * lib/unistr/u16-stpcpy.c: New file.
74518         * lib/unistr/u32-stpcpy.c: New file.
74519         * lib/unistr/u-stpcpy.h: New file.
74520
74521         * modules/unistr/u8-stpncpy: New file.
74522         * modules/unistr/u16-stpncpy: New file.
74523         * modules/unistr/u32-stpncpy: New file.
74524         * lib/unistr/u8-stpncpy.c: New file.
74525         * lib/unistr/u16-stpncpy.c: New file.
74526         * lib/unistr/u32-stpncpy.c: New file.
74527         * lib/unistr/u-stpncpy.h: New file.
74528
74529         * modules/unistr/u8-strcat: New file.
74530         * modules/unistr/u16-strcat: New file.
74531         * modules/unistr/u32-strcat: New file.
74532         * lib/unistr/u8-strcat.c: New file.
74533         * lib/unistr/u16-strcat.c: New file.
74534         * lib/unistr/u32-strcat.c: New file.
74535         * lib/unistr/u-strcat.h: New file.
74536
74537         * modules/unistr/u8-strchr: New file.
74538         * modules/unistr/u16-strchr: New file.
74539         * modules/unistr/u32-strchr: New file.
74540         * lib/unistr/u8-strchr.c: New file.
74541         * lib/unistr/u16-strchr.c: New file.
74542         * lib/unistr/u32-strchr.c: New file.
74543
74544         * modules/unistr/u8-strcmp: New file.
74545         * modules/unistr/u16-strcmp: New file.
74546         * modules/unistr/u32-strcmp: New file.
74547         * lib/unistr/u8-strcmp.c: New file.
74548         * lib/unistr/u16-strcmp.c: New file.
74549         * lib/unistr/u32-strcmp.c: New file.
74550
74551         * modules/unistr/u8-strcpy: New file.
74552         * modules/unistr/u16-strcpy: New file.
74553         * modules/unistr/u32-strcpy: New file.
74554         * lib/unistr/u8-strcpy.c: New file.
74555         * lib/unistr/u16-strcpy.c: New file.
74556         * lib/unistr/u32-strcpy.c: New file.
74557         * lib/unistr/u-strcpy.h: New file.
74558
74559         * modules/unistr/u8-strcspn: New file.
74560         * modules/unistr/u16-strcspn: New file.
74561         * modules/unistr/u32-strcspn: New file.
74562         * lib/unistr/u8-strcspn.c: New file.
74563         * lib/unistr/u16-strcspn.c: New file.
74564         * lib/unistr/u32-strcspn.c: New file.
74565         * lib/unistr/u-strcspn.h: New file.
74566
74567         * modules/unistr/u8-strdup: New file.
74568         * modules/unistr/u16-strdup: New file.
74569         * modules/unistr/u32-strdup: New file.
74570         * lib/unistr/u8-strdup.c: New file.
74571         * lib/unistr/u16-strdup.c: New file.
74572         * lib/unistr/u32-strdup.c: New file.
74573         * lib/unistr/u-strdup.h: New file.
74574
74575         * modules/unistr/u8-strlen: New file.
74576         * modules/unistr/u16-strlen: New file.
74577         * modules/unistr/u32-strlen: New file.
74578         * lib/unistr/u8-strlen.c: New file.
74579         * lib/unistr/u16-strlen.c: New file.
74580         * lib/unistr/u32-strlen.c: New file.
74581         * lib/unistr/u-strlen.h: New file.
74582
74583         * modules/unistr/u8-strmblen: New file.
74584         * modules/unistr/u16-strmblen: New file.
74585         * modules/unistr/u32-strmblen: New file.
74586         * lib/unistr/u8-strmblen.c: New file.
74587         * lib/unistr/u16-strmblen.c: New file.
74588         * lib/unistr/u32-strmblen.c: New file.
74589
74590         * modules/unistr/u8-strmbtouc: New file.
74591         * modules/unistr/u16-strmbtouc: New file.
74592         * modules/unistr/u32-strmbtouc: New file.
74593         * lib/unistr/u8-strmbtouc.c: New file.
74594         * lib/unistr/u16-strmbtouc.c: New file.
74595         * lib/unistr/u32-strmbtouc.c: New file.
74596
74597         * modules/unistr/u8-strncat: New file.
74598         * modules/unistr/u16-strncat: New file.
74599         * modules/unistr/u32-strncat: New file.
74600         * lib/unistr/u8-strncat.c: New file.
74601         * lib/unistr/u16-strncat.c: New file.
74602         * lib/unistr/u32-strncat.c: New file.
74603         * lib/unistr/u-strncat.h: New file.
74604
74605         * modules/unistr/u8-strncmp: New file.
74606         * modules/unistr/u16-strncmp: New file.
74607         * modules/unistr/u32-strncmp: New file.
74608         * lib/unistr/u8-strncmp.c: New file.
74609         * lib/unistr/u16-strncmp.c: New file.
74610         * lib/unistr/u32-strncmp.c: New file.
74611
74612         * modules/unistr/u8-strncpy: New file.
74613         * modules/unistr/u16-strncpy: New file.
74614         * modules/unistr/u32-strncpy: New file.
74615         * lib/unistr/u8-strncpy.c: New file.
74616         * lib/unistr/u16-strncpy.c: New file.
74617         * lib/unistr/u32-strncpy.c: New file.
74618         * lib/unistr/u-strncpy.h: New file.
74619
74620         * modules/unistr/u8-strnlen: New file.
74621         * modules/unistr/u16-strnlen: New file.
74622         * modules/unistr/u32-strnlen: New file.
74623         * lib/unistr/u8-strnlen.c: New file.
74624         * lib/unistr/u16-strnlen.c: New file.
74625         * lib/unistr/u32-strnlen.c: New file.
74626         * lib/unistr/u-strnlen.h: New file.
74627
74628         * modules/unistr/u8-strpbrk: New file.
74629         * modules/unistr/u16-strpbrk: New file.
74630         * modules/unistr/u32-strpbrk: New file.
74631         * lib/unistr/u8-strpbrk.c: New file.
74632         * lib/unistr/u16-strpbrk.c: New file.
74633         * lib/unistr/u32-strpbrk.c: New file.
74634         * lib/unistr/u-strpbrk.h: New file.
74635
74636         * modules/unistr/u8-strrchr: New file.
74637         * modules/unistr/u16-strrchr: New file.
74638         * modules/unistr/u32-strrchr: New file.
74639         * lib/unistr/u8-strrchr.c: New file.
74640         * lib/unistr/u16-strrchr.c: New file.
74641         * lib/unistr/u32-strrchr.c: New file.
74642
74643         * modules/unistr/u8-strspn: New file.
74644         * modules/unistr/u16-strspn: New file.
74645         * modules/unistr/u32-strspn: New file.
74646         * lib/unistr/u8-strspn.c: New file.
74647         * lib/unistr/u16-strspn.c: New file.
74648         * lib/unistr/u32-strspn.c: New file.
74649         * lib/unistr/u-strspn.h: New file.
74650
74651         * modules/unistr/u8-strstr: New file.
74652         * modules/unistr/u16-strstr: New file.
74653         * modules/unistr/u32-strstr: New file.
74654         * lib/unistr/u8-strstr.c: New file.
74655         * lib/unistr/u16-strstr.c: New file.
74656         * lib/unistr/u32-strstr.c: New file.
74657         * lib/unistr/u-strstr.h: New file.
74658
74659         * modules/unistr/u8-strtok: New file.
74660         * modules/unistr/u16-strtok: New file.
74661         * modules/unistr/u32-strtok: New file.
74662         * lib/unistr/u8-strtok.c: New file.
74663         * lib/unistr/u16-strtok.c: New file.
74664         * lib/unistr/u32-strtok.c: New file.
74665         * lib/unistr/u-strtok.h: New file.
74666
74667         * modules/unistr/u8-uctomb: New file.
74668         * modules/unistr/u16-uctomb: New file.
74669         * modules/unistr/u32-uctomb: New file.
74670         * lib/unistr/u8-uctomb.c: New file.
74671         * lib/unistr/u16-uctomb.c: New file.
74672         * lib/unistr/u32-uctomb.c: New file.
74673
74674         * MODULES.html.sh (Unicode string functions): Add the new modules.
74675
74676 2007-01-08  Bruno Haible  <bruno@clisp.org>
74677
74678         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74679         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74680         subdirectories.
74681
74682 2007-01-08  Karl Berry  <karl@gnu.org>
74683
74684         * doc/error.texi: mention that main() fns must set program_name
74685         when progname is used.
74686
74687 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74688
74689         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74690         WCTYPE_H is empty, for the benefit of builds from non-distclean
74691         directories.  Problem reported by Eric Blake in
74692         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74693
74694 2007-01-08  Bruno Haible  <bruno@clisp.org>
74695
74696         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74697         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74698         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74699         PROVIDE_CANONICALIZE_FILENAME_MODE.
74700         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74701
74702 2007-01-08  Bruno Haible  <bruno@clisp.org>
74703
74704         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74705         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74706         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74707         * lib/fts.c: Likewise.
74708         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74709
74710 2006-12-25  Bruno Haible  <bruno@clisp.org>
74711
74712         * modules/utf8-ucs4-safe: New file.
74713         * lib/utf8-ucs4-safe.h: New file.
74714         * lib/unistr/utf8-ucs4-safe.c: New file.
74715
74716         * modules/utf16-ucs4-safe: New file.
74717         * lib/utf16-ucs4-safe.h: New file.
74718         * lib/unistr/utf16-ucs4-safe.c: New file.
74719
74720         * MODULES.html.sh (Unicode string functions): Add the new modules.
74721
74722 2007-01-08  Bruno Haible  <bruno@clisp.org>
74723
74724         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74725         (Depends-on): Add unitypes.
74726         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74727         (u8_mbtouc_aux): Move out to separate file.
74728         (u8_mbtouc): Use ucs4_t, uint8_t types.
74729         * lib/unistr/utf8-ucs4.c: New file.
74730
74731         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74732         (Depends-on): Add unitypes.
74733         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74734         (u16_mbtouc_aux): Move out to separate file.
74735         (u16_mbtouc): Use ucs4_t, uint16_t types.
74736         * lib/unistr/utf16-ucs4.c: New file.
74737
74738         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74739         (Depends-on): Add unitypes.
74740         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74741         (u8_uctomb_aux): Move out to separate file.
74742         (u8_uctomb): Use ucs4_t, uint8_t types.
74743         * lib/unistr/ucs4-utf8.c: New file.
74744
74745         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74746         (Depends-on): Add unitypes.
74747         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74748         (u16_uctomb_aux): Move out to separate file.
74749         (u16_uctomb): Use ucs4_t, uint16_t types.
74750         * lib/unistr/ucs4-utf16.c: New file.
74751
74752 2006-12-25  Bruno Haible  <bruno@clisp.org>
74753
74754         * modules/unitypes: New file.
74755         * lib/unitypes.h: New file.
74756         * MODULES.html.sh (func_all_modules): New section "Unicode string
74757         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74758         this section. Add unitypes.
74759
74760 2007-01-08  Bruno Haible  <bruno@clisp.org>
74761
74762         Avoid variable names that conflict with those from libtool.
74763         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74764         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74765         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74766         library_names_spec to acl_library_names_spec, hardcode_* to
74767         acl_hardcode_*.
74768         Reported by Ralf Wildenhues.
74769
74770 2007-01-08  Bruno Haible  <bruno@clisp.org>
74771
74772         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74773         definition.
74774         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74775         definition.
74776         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74777         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74778         definition.
74779         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74780         definition.
74781         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74782         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74783         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74784         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74785         definition.
74786         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74787         definition.
74788         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74789         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74790         GC_USE_<algorithm>.
74791         * lib/gc-libgcrypt.c: Likewise.
74792         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74793         * modules/gc-arctwo (configure.ac): Likewise.
74794         * modules/gc-des (configure.ac): Likewise.
74795         * modules/gc-hmac-md5 (configure.ac): Likewise.
74796         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74797         * modules/gc-md2 (configure.ac): Likewise.
74798         * modules/gc-md4 (configure.ac): Likewise.
74799         * modules/gc-md5 (configure.ac): Likewise.
74800         * modules/gc-random (configure.ac): Likewise.
74801         * modules/gc-rijndael (configure.ac): Likewise.
74802         * modules/gc-sha1 (configure.ac): Likewise.
74803
74804 2007-01-08  Bruno Haible  <bruno@clisp.org>
74805
74806         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74807         macro definition.
74808         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74809         definition.
74810         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74811         definition.
74812         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74813         * modules/fcntl-safer (configure.ac): Likewise.
74814         * modules/fopen-safer (configure.ac): Likewise.
74815         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74816         GNULIB_FWRITEERROR macro definition.
74817
74818 2007-01-08  Bruno Haible  <bruno@clisp.org>
74819
74820         * m4/gnulib-common.m4: New file.
74821         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74822         (func_get_filelist): Add m4/gnulib-common.m4.
74823
74824 2007-01-08  Bruno Haible  <bruno@clisp.org>
74825
74826         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74827         command.
74828
74829 2007-01-08  Jim Meyering  <jim@meyering.net>
74830
74831         Use a more robust test for a "can't happen" condition.
74832         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74833         narrowed the st_size value.  Presuming the "can't happen" condition
74834         is true, that narrowing could conceivably convert an invalid st_size
74835         value into a valid one.  Instead, use a change based on Matthew
74836         Woehlke's original patch.
74837
74838         Slight readability improvement: use an assert-like macro
74839         in place of literal "abort ()" uses.
74840         * lib/fts.c (fts_assert): Define.
74841         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74842         Use this macro instead of a bare 'abort'.
74843
74844 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74847         simply work around them.
74848         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74849         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74850         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74851         declaring.
74852         Don't bother to define as macros, since the standard doesn't require it.
74853         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74854         longer worry about IRIX 5.3.
74855         (HAVE_WCTYPE_CTMP_BUG): Remove.
74856
74857 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74858
74859         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74860         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74861         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74862         Problems reported by Georg Schwarz for IRIX 5.3.
74863
74864         * gnulib-tool (autoconf_minversion): Take the maximum version number
74865         found, not the minimum.  Problem reported by James Youngman.
74866
74867 2007-01-03  Karl Berry  <karl@gnu.org>
74868
74869         * doc/error.texi: new file, explaining interaction with progname.
74870         * doc/gnulib.texi: include it.  Update copyright.
74871
74872 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74873
74874         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74875         AC_CANONICAL_HOST, to improve autobuild outputs.
74876
74877 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74878             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74879
74880         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74881         sockets, server sockets, and other file descriptors.  Count errors
74882         to compute the return value.  Reorder the code a bit to be easier
74883         to follow.  Don't set event bits that were not requested (except
74884         POLLERR and POLLHUP).
74885
74886 2007-01-01  Bruno Haible  <bruno@clisp.org>
74887
74888         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74889
74890 2007-01-03  Jim Meyering  <jim@meyering.net>
74891
74892         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74893
74894 2007-01-02  Bruno Haible  <bruno@clisp.org>
74895
74896         * modules/settime (Include): Require timespec.h.
74897         * modules/nanosleep (Include): Likewise.
74898
74899 2007-01-01  Bruno Haible  <bruno@clisp.org>
74900
74901         * gnulib-tool (func_emit_copyright_notice): Bump year.
74902         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74903
74904 2007-01-01  Bruno Haible  <bruno@clisp.org>
74905
74906         Improve support for OpenBSD.
74907         * build-aux/config.rpath (libname_spec): Export.
74908         (library_names_spec): New variable. Export.
74909         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74910         library_names_spec from the config.rpath output. Locate shared library
74911         through the name pattern in library_names_spec.
74912
74913 2007-01-01  Eric Blake  <ebb9@byu.net>
74914
74915         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74916
74917 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74918
74919         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74920         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74921         assume the C locale, and avoid an "eval" that could cause trouble.
74922         Problem with SORT reported by Bob Proulx.
74923
74924         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74925         Define.  Trivial patch from Henning Nielsen Lund, originally
74926         sent to bug-grep@gnu.org today.
74927
74928 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74929
74930         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74931         struct stat.  Problem reported by Henning Nielsen Lund.
74932         * lib/acl.c: Include acl.h first, to check interface.  Don't
74933         bother to include sys/types.h and sys/stat.h again.
74934
74935 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74936
74937         Import the following change from libc; problem reported by
74938         Sven Verdoolaege.
74939
74940         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74941
74942         [BZ #1373]
74943         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74944
74945 2006-12-28  Jim Meyering  <jim@meyering.net>
74946
74947         * build-aux/announce-gen: Do not assume that the package
74948         builds any of tar.gz, tar.bz2, and .xdelta files.
74949         Suggestion from Simon Josefsson.
74950
74951 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74952
74953         * modules/announce-gen: New file.
74954
74955 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74956
74957         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74958         handles its gotchas now.
74959         * lib/mbswidth.c: Likewise.
74960         * lib/wcwidth.h: Likewise.
74961         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74962         and iswcntrl; the wctype module does this stuff now.
74963         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74965         * modules/mbchar (Depends-on): Add wctype.
74966         * modules/mbswidth (Depends-on): Likewise.
74967         * modules/wcwidth (Depends-on): Likewise.
74968
74969 2006-12-27  Eric Blake  <ebb9@byu.net>
74970
74971         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74972         module uses more than what <wctype.h> is required to provide.
74973
74974 2006-12-26  Eric Blake  <ebb9@byu.net>
74975
74976         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74977
74978 2006-12-26  Eric Blake  <ebb9@byu.net>
74979
74980         * modules/absolute-header: New module.
74981         * modules/fcntl (Depends-on): Depend on it.
74982         * modules/inttypes (Depends-on): Likewise.
74983         * modules/stdint (Depends-on): Likewise.
74984         * modules/sys_stat (Depends-on): Likewise.
74985         * modules/wctype (Depends-on): Likewise.
74986         * MODULES.html.sh (Support for building libraries and
74987         executables): Document it.
74988
74989 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74990
74991         * gnulib-tool (SED): Remove, undoing previous change.
74992         The problem was that it broke coreutils on Solaris, because
74993         "sed --posix" leaked into a makefile.
74994         (sed): New alias, if 'alias' and GNU sed.
74995
74996 2006-12-24  Jim Meyering  <jim@meyering.net>
74997
74998         Work around an fchownat bug in glibc-2.4:
74999         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75000         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75001         in spite of the -P option.
75002         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75003         New macros.
75004         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75005         * modules/openat (Files): Add lib/fchownat.c.
75006         * lib/openat.c (fchownat): Don't define here.  Move to...
75007         * lib/fchownat.c: ...this new file.
75008
75009 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75010
75011         Fix bug reported by Bruno Haible in
75012         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75013         where quotearg.c didn't compile on Mac OS X 10.2 because it
75014         lacks <wchar.h> and wint_t.
75015         * lib/wctype_.h (__wctype_wint_t): New type.
75016         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75017         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75018         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75019         Arg is now of type __wctype_wint_t, not wint_t.
75020         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75021         substitute HAVE_WINT_T.
75022         * modules/wctype (Files): Add m4/wint_t.m4.
75023         (wctype.h): Substitute HAVE_WINT_T.
75024
75025 2006-12-23  Bruno Haible  <bruno@clisp.org>
75026
75027         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75028
75029 2006-12-23  Bruno Haible  <bruno@clisp.org>
75030
75031         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75032         S_ISLNK.
75033         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75034         mingw.
75035
75036 2006-12-22  Bruno Haible  <bruno@clisp.org>
75037
75038         * lib/copy-file.c: Include acl.h.
75039         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75040         Close the file descriptors only after being done with copy_acl.
75041         * modules/copy-file (Depends-on): Add acl.
75042
75043 2006-12-22  Bruno Haible  <bruno@clisp.org>
75044
75045         * gnulib-tool (SED): New variable.
75046         Use $SED instead of sed everywhere.
75047
75048 2006-12-22  Bruno Haible  <bruno@clisp.org>
75049
75050         * modules/no-c++: New file.
75051         * m4/no-c++.m4: New file.
75052         * MODULES.html.sh (Support for building libraries and executables):
75053         Add no-c++.
75054
75055 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75056
75057         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75058         Include <limits.h>, and use its INT_MAX to rewrite the
75059         j loop so that it does not overflow 'int'.  Problem reported by
75060         Ralf Wildenhues in
75061         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75062         Play it safe by shifting left by 1 rather than multiplying by 2,
75063         as GCC is less likely to optimize this away when the value
75064         is signed (when it assumes overflow leads to undefined behavior).
75065         Also, don't assume time_t uses two's complement.
75066
75067 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75068
75069         * MODULES.html.sh: New module wctype.
75070         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75071         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75072         <wctype.h>, since the new wctype module should fix this.
75073         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75074         the wctype module should arrange for it.
75075         * lib/regex_internal.h: Likewise.
75076         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75077         since the wctype module should handle this now.
75078         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75079         * modules/fnmatch (Depends-on): Add wctype.
75080         * modules/quotearg (Depends-on): Likewise.
75081         * modules/regex (Depends-on): Likewise.
75082
75083 2006-12-19  Bruno Haible  <bruno@clisp.org>
75084
75085         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75086         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75087
75088 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75089
75090         * modules/savewd (Depends-on): Fix dependency on fcntl.
75091
75092 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75093
75094         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75095         conforms to C99, rather than relying on the user's environment
75096         setting of STDINT_H.
75097
75098 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75099         and Eric Blake  <ebb9@byu.net>
75100
75101         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75102         This is more consistent with the other defines here.
75103         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75104         Port to z/OS.  Problem reported by Paul Gilmartin.
75105         Change local vars to use gl_ prefix rather than ac_.
75106         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75107         with other defines.
75108         * modules/double-slash-root: New module.
75109         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75110         (Depends-on): Add double-slash-root.
75111         * MODULES.html.sh (File system functions): Mention new module.
75112
75113 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75114
75115         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75116         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75117         This is for the benefit of gzip, which doesn't do i18n.
75118
75119 2006-12-12  Jim Meyering  <jim@meyering.net>
75120
75121         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75122         Reported by Andreas Schwab <schwab@suse.de>.
75123
75124 2006-12-12  Bruno Haible  <bruno@clisp.org>
75125
75126         Merge these changes.
75127         2006-09-05  Bruno Haible  <bruno@clisp.org>
75128         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75129         iconv_alloc succeeded.
75130         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75131         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75132         test for " && dest " at the end - dest is always != NULL there. Call
75133         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75134         with 2xNULL arguments, also to flush the state storage. Handle the
75135         IRIX iconv behaviour. Realloc the final result, to throw away unused
75136         memory.
75137
75138 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75139
75140         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75141         and fchmodat unconditionally, since glibc 2.4 has them.
75142         Problem reported by Arkadiusz Miskiewicz.
75143
75144 2006-12-10  Bruno Haible  <bruno@clisp.org>
75145
75146         * gnulib-tool (func_import): Show the include files only for those
75147         modules that are copied and specified.
75148         Reported by Karl Berry.
75149
75150 2006-12-08  Jim Meyering  <jim@meyering.net>
75151
75152         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75153         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75154
75155         * build-aux/announce-gen: Add two new options, both optional:
75156         --bootstrap-tools=TOOL_LIST
75157               a comma-separated list of tools, e.g.,
75158               autoconf,automake,bison,gnulib
75159         --gnulib-snapshot-date=DATE
75160               if gnulib is in the bootstrap tool list,
75161               then report this as the snapshot date.
75162               If not specified, use the current date/time.
75163               If you specify a date here, be sure it's UTC.
75164
75165 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75166
75167         * tests/test-argp-2.sh: Fix test to match actual output.
75168         (func_compare): Fix sed script to be portable.
75169
75170 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75171
75172         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75173         workaround for this case.  It is not autoconfigured now; offhand
75174         it's hard to see how to autoconfigure it.
75175
75176 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75177
75178         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75179         a directory that is about to be chowned.  Such a directory's
75180         initial file permissions should permit the owner only and this
75181         should not be changed until after the chown, since the group and
75182         other bits would be incorrect if they granted permission before
75183         the chown.
75184
75185         Fix porting problem for iswctype reported by Georg Schwarz in:
75186         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75187         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75188         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75189         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75190         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75191
75192 2006-12-03  Jim Meyering  <jim@meyering.net>
75193
75194         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75195         p->fts_statp may not yet be defined.
75196         (fts_read): Instead, set it in the caller, once p->fts_statp is
75197         sure to be defined, and corresponds to a top-level directory.
75198         This bug made du -x fail.  Here's the coreutils test case:
75199         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75200         Reported by Mike Frysinger.
75201
75202 2006-12-01  Jim Meyering  <jim@meyering.net>
75203
75204         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75205         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75206         Reported by Simon Josefsson.
75207
75208 2006-11-30  Jim Meyering  <jim@meyering.net>
75209
75210         * m4/warning.m4: Use the all-permissive copyright notice
75211         recommended by RMS (rather than LGPL).
75212         * m4/vararrays.m4: Likewise.
75213         * m4/flexmember.m4: Likewise.
75214
75215 2006-11-29  Bruno Haible  <bruno@clisp.org>
75216
75217         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75218         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75219         using +=.
75220         Reported by Simon Josefsson <simon@josefsson.org>.
75221
75222 2006-11-28  James Youngman <jay@gnu.org>
75223
75224         * README: Advise users that they might find the bug-gnulib@gnu.org
75225         and autotools-announce@gnu.org mailing lists useful.
75226
75227 2006-11-28  Bruno Haible  <bruno@clisp.org>
75228
75229         * m4/ptrdiff_max.m4: Remove file.
75230
75231 2006-11-21  Bruno Haible  <bruno@clisp.org>
75232
75233         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75234         _AC_COMPUTE_INT.
75235         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75236         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75237         _AC_COMPUTE_INT.
75238         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75239         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75240         _AC_COMPUTE_INT.
75241         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75242
75243 2006-11-28  Jim Meyering  <jim@meyering.net>
75244
75245         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75246         warning from "gcc -Wshadow" about shadowing the builtin.
75247
75248 2006-11-27  Bruno Haible  <bruno@clisp.org>
75249
75250         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75251         _AC_COMPUTE_INT.
75252         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75253
75254 2006-11-27  Bruno Haible  <bruno@clisp.org>
75255             Paul Eggert  <eggert@cs.ucla.edu>
75256
75257         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75258
75259 2006-11-26  Bruno Haible  <bruno@clisp.org>
75260
75261         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75262         noinst_LTLIBRARIES.
75263
75264 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75265             Bruno Haible  <bruno@clisp.org>
75266
75267         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75268         if compiling with "gcc -ansi".
75269
75270 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75271
75272         Fix some incompatibilities with gcc -ansi -pedantic.
75273         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75274         if compiling pedantically with GCC, unless it's C99 or later.
75275         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75276         it mishandles gcc -ansi -pedantic as well.
75277         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75278         if gcc -pedantic.
75279         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75280         initializers for struct if -pedantic, unless it's C99 or later.
75281
75282 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75283
75284         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75285         Don't close an fd more than once. Identical atimes indicate
75286         success, not failure.
75287
75288 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75289
75290         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75291
75292 2006-11-23  Jim Meyering  <jim@meyering.net>
75293
75294         * build-aux/announce-gen: New file.  From coreutils.
75295
75296 2006-11-22  Jim Meyering  <jim@meyering.net>
75297
75298         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75299         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75300         (fts_read): Use a temporary to narrow the overused st_size member
75301         before using it in a switch statement.  Reported by Matthew Woehlke.
75302
75303         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75304         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75305
75306 2006-11-20  Bruno Haible  <bruno@clisp.org>
75307
75308         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75309         changequote instead of pairs of brackets.
75310         Reported by Andreas Schwab <schwab@suse.de>.
75311
75312 2006-11-21  Jim Meyering  <jim@meyering.net>
75313
75314         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75315         so as to remain compatible with older compilers.
75316         Patch from Michael Deutschmann.
75317
75318 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * MODULES.html.sh (File system functions): Add openat.
75321
75322         * lib/openat.h (rpl_fstatat): New macro, if
75323         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75324         (fstatat): Define to rpl_fstatat under the same conditions,
75325         unless COMPILING_FSTATAT.
75326         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75327         seems to have the bug.
75328         * lib/fstatat.c: New file.
75329         * modules/openat (Files): Add it.
75330
75331 2006-11-20  Bruno Haible  <bruno@clisp.org>
75332
75333         * Makefile: New file.
75334
75335 2006-11-20  Jim Meyering  <jim@meyering.net>
75336
75337         The beginnings of syntax-related checks for gnulib.
75338         * lib/Makefile: New file.
75339         * lib/t-idcache: New script.  Ensure that the two halves of
75340         idcache.c stay in sync.
75341
75342         * lib/idcache.c: Adjust comments in user- and group- portions to
75343         be more accurate, and to be consistent with one another.
75344
75345 2006-11-20  Jim Meyering  <jim@meyering.net>
75346
75347         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75348         continue using the flexible array member (thus, this module performs
75349         half as many malloc calls), with the addition that...
75350         (getgroup, getuser): Consistently record a non-match via an empty
75351         "name" string, and map an empty string match to a NULL return value.
75352         * modules/idcache (Depends-on): Re-add flexmember.
75353
75354         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75355         (getuidbyname, getgroup, getgidbyname): Likewise.
75356
75357         Use cleaner syntax: NULL rather than 0.
75358         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75359
75360 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75363         It mishandled the case where the group was missing.
75364         Problem reported by Greg Schafer.
75365         * modules/idcache: Likewise.
75366
75367 2006-11-18  Jim Meyering  <jim@meyering.net>
75368
75369         * check-module (%exempt_header): Add exception for some
75370         conditionally-included headers.
75371
75372         * modules/i-ring (Depends-on): Add verify.
75373         (License): Change to LGPL.
75374
75375 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75376
75377         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75378         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75379         and inttostr.h.  Use snprintf rather than uinttostr, so that
75380         LGPLed code doesn't depend on GPLed.
75381
75382 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75383
75384         * modules/inline (License): Change from GPL to LGPL.
75385
75386 2006-11-17  Jim Meyering  <jim@meyering.net>
75387
75388         * modules/d-type (License): Switch to LGPL.
75389
75390 2006-11-15  Bruno Haible  <bruno@clisp.org>
75391
75392         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75393
75394 2006-11-15  Eric Blake  <ebb9@byu.net>
75395
75396         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75397         the module dependency.
75398
75399 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75400             Bruno Haible  <bruno@clisp.org>
75401
75402         * gnulib-tool (func_create_testdir): Add license consistency check.
75403
75404 2006-11-15  Eric Blake  <ebb9@byu.net>
75405
75406         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75407         random "(cached)" in configure output.
75408
75409 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75410
75411         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75412         test for conforming inttypes.h is both announced and cached.
75413
75414         * MODULES.html.sh (seen_modules, seen_files): New variables.
75415         (func_module): Rewrite to use a few less gnulib-tool and sed
75416         invocations.  Avoid a couple of quadratic algorithms for ...
75417         (missed_modules, missed_files): ... these, with ...
75418         (func_append, func_tmpdir): ... these new functions, from
75419         gnulib-tool.  Analogously, install traps for cleanup.
75420
75421         * tests/test-gc.c (main): Remove unused variables.
75422         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75423
75424 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * modules/inttostr (License): Change to LGPL.
75427
75428 2006-11-14  Eric Blake  <ebb9@byu.net>
75429
75430         * modules/tempname (License): Change to LGPL.
75431
75432 2006-11-14  Eric Blake  <ebb9@byu.net>
75433
75434         * doc/functions.texi (Function Portability): *printf functions on
75435         Cygwin now understand all POSIX size specifiers.
75436
75437 2006-11-14  Bruno Haible  <bruno@clisp.org>
75438
75439         * modules/c-ctype (License): Change to LGPL.
75440
75441 2006-11-12  Bruno Haible  <bruno@clisp.org>
75442
75443         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75444         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75445         for GNOME libraries, for which the include files are installed in
75446         subdirectories of $prefix/include.
75447
75448 2006-11-12  Bruno Haible  <bruno@clisp.org>
75449
75450         * m4/lib-link.m4: Require at least autoconf-2.54.
75451         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75452         name to underscores for the --with option.
75453
75454 2006-11-13  Bruno Haible  <bruno@clisp.org>
75455
75456         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75457         the tests directory.
75458         Reported by Ralf Wildenhues.
75459
75460 2006-11-13  Bruno Haible  <bruno@clisp.org>
75461
75462         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75463         (func_emit_initmacro_end): Undo the override here.
75464         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75465         Works around the famous automake error in coreutils.
75466
75467 2006-11-13  Eric Blake  <ebb9@byu.net>
75468
75469         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75470         element, not its node.
75471
75472 2006-11-12  Bruno Haible  <bruno@clisp.org>
75473
75474         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75475         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75476
75477 2006-11-12  Bruno Haible  <bruno@clisp.org>
75478
75479         * gnulib-tool: New option --local-symlink.
75480         (func_usage): Document it.
75481         (lsymbolic): New variable.
75482         (func_import, func_create_testdir): If --symlink was not specified,
75483         test whether --local-symlink was specified and the file comes from
75484         the local_gnulib_dir.
75485
75486 2006-11-12  Bruno Haible  <bruno@clisp.org>
75487
75488         * gnulib-tool (func_ln): New function.
75489         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75490
75491 2006-11-12  Bruno Haible  <bruno@clisp.org>
75492
75493         Finish support for source files in subdirectories.
75494         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75495         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75496         AUTOMAKE_OPTIONS.
75497         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75498
75499 2006-11-12  Bruno Haible  <bruno@clisp.org>
75500
75501         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75502         EXTRA_lib_SOURCES augmentation.
75503         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75504
75505 2006-11-12  Jim Meyering  <jim@meyering.net>
75506
75507         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75508         file descriptors.  This also averts a failure on systems with
75509         native openat support when a traversed directory lacks "x" access.
75510         * lib/fts_.h: Include "i-ring.h"
75511         (struct FTS) [fts_fd_ring]: New member.
75512         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75513         (FCHDIR): Add parentheses.
75514         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75515         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75516         When descending, rather than simply closing the previous
75517         fts_cwd_fd value, push that file descriptor onto the ring.
75518         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75519         (fts_open): Initialize the new fd_ring member.
75520         (fts_close): Clear the ring.
75521         (fts_safe_changedir): When possible, use our new fd_ring to skip
75522         the diropen and fstat and dev/ino comparison that would normally
75523         accompany a virtual `chdir ("..")'.
75524
75525         * modules/fts (Depends-on): Add i-ring.
75526         * modules/i-ring: New module.
75527         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75528         * m4/i-ring.m4: New file.
75529
75530 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75531
75532         * gnulib-tool (func_create_testdir): Fix replacement of
75533         `build-aux' in configure.ac.  Run autotools in gltests
75534         subdirectory.
75535         (func_create_testdir, func_create_megatestdir, test): There is
75536         no need for '--force' in most autotool invocations in a new
75537         tree.  Actually fail the whole test if any of the tools, or the
75538         configure or make stages fail.
75539
75540         Sync from Automake.
75541         * build-aux/gnupload: Revert last change.  Add pointer to upload
75542         instructions of the GNU Maintenance Instructions.
75543         Suggestion by Karl Berry.
75544
75545 2006-11-10  Jim Meyering  <jim@meyering.net>
75546
75547         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75548
75549 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75550
75551         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75552         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75553         (bind_textdomain_codeset) [! ENABLE_NLS]:
75554         Evaluate all the arguments.  That way, callers get compatible behavior
75555         if the arguments have side effects.  Also, it avoids some GCC
75556         diagnostics in some cases; Joel E. Denny reported problems when Bison
75557         was configured with --enable-gcc-warnigs.
75558
75559 2006-11-10  Jim Meyering  <jim@meyering.net>
75560
75561         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75562         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75563         account.
75564
75565 2006-11-10  Jim Meyering  <jim@meyering.net>
75566
75567         * modules/inline: New file/module.
75568         * modules/xalloc (Files): Remove m4/inline.m4.
75569         (Depends-on): Add inline, instead.
75570         * modules/oset: Likewise.
75571         * modules/list: Likewise.
75572
75573 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75576         Problem reported by Matthew Woehlke.
75577
75578 2006-11-09  Bruno Haible  <bruno@clisp.org>
75579
75580         * lib/tempname.c (gen_tempname): Remove variant that invokes
75581         __gen_tempname.
75582         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75583         __gen_tempname.
75584
75585 2006-11-08  Bruno Haible  <bruno@clisp.org>
75586
75587         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75588         to 'yes' instead of 'cross-compiling'.
75589
75590 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75591
75592         * lib/quotearg.h (quotearg_free): New decl.
75593         * lib/quotearg.c (quotearg_free): New function.
75594         (slot0, nslots, slotvec0, slotvec):
75595         Now file-scope so that quotearg_free can get at them.
75596
75597 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75598
75599         Sync from Automake.
75600         * build-aux/gnupload: Add missing 'gnu' to example URL.
75601         Report by Karl Berry.
75602
75603 2006-11-08  Bruno Haible  <bruno@clisp.org>
75604
75605         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75606         Suggested by Paul Eggert.
75607
75608 2006-11-08  Jim Meyering  <jim@meyering.net>
75609
75610         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75611         It's already included if !_LIBC.
75612         (fts_safe_changedir): Add a comment.
75613
75614 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75617         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75618         Matthew Woehlke.
75619
75620         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75621         definitions up, to avoid colliding with change below.
75622         (static_inline) [HAVE_INLINE]: New macro.
75623         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75624         Provide extern decls when !HAVE_INLINE.  Do not define unless
75625         static_inline is defined, either by us or by xmalloc.c.  Use
75626         static_inline rather than static inline.
75627         (XCALLOC): Optimize sizeof(T) = 1 case.
75628         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75629
75630 2006-11-07  Bruno Haible  <bruno@clisp.org>
75631
75632         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75633         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75634         AC_C_INLINE.
75635         * modules/xalloc (Files): Add m4/inline.m4.
75636
75637 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75638
75639         * README: Fix typo.
75640         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75641         (Miscellanous Notes): ...from this.
75642
75643 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75646         Mention that offsetof should be used instead of sizeof.
75647         From Bruno Haible.
75648
75649 2006-11-07  Bruno Haible  <bruno@clisp.org>
75650
75651         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75652
75653 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75654
75655         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75656         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75657         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75658         (gl_tree_add_before, gl_tree_add_after):
75659         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75660         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75661         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75662         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75663         (gl_linked_add_after, gl_linked_add_at): Likewise.
75664         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75665         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75666         (gl_tree_add_before, gl_tree_add_after): Likewise.
75667         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75668         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75669         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75670
75671 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75672
75673         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75674
75675 2006-11-06  Bruno Haible  <bruno@clisp.org>
75676
75677         * m4/inline.m4: New file.
75678         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75679         * modules/list (Files): Add m4/inline.m4.
75680         * modules/oset (Files): Likewise.
75681
75682 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75683
75684         * lib/idcache.c: Include <stddef.h>, for offsetof.
75685         (struct userid.name): Change from char * to a flexible array member.
75686         All uses changed.
75687         * modules/idcache (Depends-on): Add flexmember.
75688
75689         * MODULES.html.sh (Core language properties): New module flexmember.
75690         * modules/flexmember, m4/flexmember.m4: New files.
75691
75692         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75693         inline functions that are identical with the old xnmalloc_inline,
75694         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75695         that we can avoid some unnecessary integer multiplications and
75696         divisions in the common case where the element size is known at
75697         compile time.
75698         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75699         needed.
75700         (xnboundedmalloc): Remove.
75701         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75702         arguments, for consistency with rest of this header.
75703         (xcharalloc): Rewrite using XNMALLOC.
75704         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75705         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75706         versions have been moved to lib/xalloc.h and renamed to be the
75707         non-*_inline versions.
75708         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75709         and xnrealloc functions, since those functions are now inline and
75710         now call us.
75711         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75712         renaming described above.
75713         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75714         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75715         captures the dependency in AC_C_INLINE.
75716
75717         New module canonicalize-lgpl, proposed by Charles Wilson in
75718         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75719         with a few small changes afterwards.
75720         * MODULES.html.sh (File system functions): New module
75721         canonicalize-lgpl.
75722         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75723         and canonicalize_file_name.
75724         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75725         * modules/canonicalize-lgpl: New files.
75726
75727 2006-11-05  Bruno Haible  <bruno@clisp.org>
75728
75729         * gnulib-tool (func_import, func_create_testdir): Create directories
75730         also for files in subdirectories of lib/.
75731
75732 2006-11-05  Bruno Haible  <bruno@clisp.org>
75733
75734         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75735         ANSI C compliant.
75736
75737 2006-11-03  Bruno Haible  <bruno@clisp.org>
75738
75739         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75740         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75741         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75742         (xnboundedmalloc): New inline function.
75743         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75744         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75745         xmalloc.
75746         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75747         xmalloc.
75748         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75749         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75750         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75751         xmalloc.
75752         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75753         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75754         xmalloc.
75755         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75756         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75757         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75758         xmalloc.
75759         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75760         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75761         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75762         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75763         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75764         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75765         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75766
75767 2006-11-03  Bruno Haible  <bruno@clisp.org>
75768
75769         * lib/c-ctype.h [C++]: Define functions without name mangling.
75770         * lib/fwriteerror.h [C++]: Likewise.
75771         * lib/gcd.h [C++]: Likewise.
75772         * lib/linebreak.h [C++]: Likewise.
75773
75774 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75775
75776         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75777         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75778         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75779         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75780         Check for functions and headers just once.
75781         Check for declaration of canonicalize_file_name.
75782         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75783
75784 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75785
75786         * gnulib-tool (func_import): Fix typo in actioncmd.
75787
75788 2006-11-02  Bruno Haible  <bruno@clisp.org>
75789
75790         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75791         newline sequence in the Makefile.am snippet as a space, like "make"
75792         does.
75793         Reported by Roger Persson <perrog@gmail.com>.
75794
75795 2006-11-01  Bruno Haible  <bruno@clisp.org>
75796
75797         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75798         already declared in <string.h>.
75799         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75800
75801 2006-11-01  Bruno Haible  <bruno@clisp.org>
75802
75803         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75804         * lib/strcase.h: Include <string.h>.
75805         (strcasecmp): Define to rpl_strcasecmp here.
75806
75807 2006-11-01  Bruno Haible  <bruno@clisp.org>
75808
75809         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75810
75811 2006-11-01  Eric Blake  <ebb9@byu.net>
75812
75813         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75814
75815         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75816
75817 2006-10-29  Bruno Haible  <bruno@clisp.org>
75818
75819         Make it compile in C++ mode.
75820         * lib/full-write.c (full_rw): Add a cast.
75821
75822 2006-11-01  Bruno Haible  <bruno@clisp.org>
75823
75824         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75825         be POSIX compliant.
75826         Reported by Roger Persson <perrog@gmail.com>.
75827
75828 2006-11-01  Eric Blake  <ebb9@byu.net>
75829
75830         * lib/getopt_.h: Fix comments.
75831
75832 2006-10-31  Eric Blake  <ebb9@byu.net>
75833
75834         * modules/tmpdir (Depends-on): Add sys_stat.
75835         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75836         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75837         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75838         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75839         tempname.
75840
75841 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75842
75843         Avoid some C++ diagnostics reported by Bruno Haible.
75844         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75845         xmalloc.
75846         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75847         (struct slotvec): Move to top level.
75848         (quotearg_n_options): Rewrite to avoid xmalloc.
75849         * lib/xalloc.h (xcharalloc): New function.
75850         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75851         [defined __cplusplus]: Add function template that provides result
75852         type propagation.  This part of the change is from Bruno Haible.
75853
75854 2006-10-29  Bruno Haible  <bruno@clisp.org>
75855
75856         Make it compile in C++ mode.
75857         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75858         * lib/strnlen1.c (strnlen1): Cast memchr result.
75859         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75860         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75861         (create_temp_dir): Rename local variable 'template'.
75862         (compile_csharp_using_sscli): Add cast.
75863         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75864         * lib/findprog.c (find_in_path): Likewise.
75865         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75866         * lib/wait-process.c (register_slave_subprocess): Likewise.
75867
75868 2006-10-22  Bruno Haible  <bruno@clisp.org>
75869
75870         * modules/tsearch: New file.
75871         * lib/tsearch.h: New file.
75872         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75873         * m4/tsearch.m4: New file.
75874         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75875
75876 2006-10-29  Eric Blake  <ebb9@byu.net>
75877
75878         * lib/arcfour.c: Assume config.h.
75879         * lib/arctwo.c: Likewise.
75880         * lib/base64.c: Likewise.
75881         * lib/check-version.c: Likewise.
75882         * lib/crc.c: Likewise.
75883         * lib/des.c: Likewise.
75884         * lib/gc-gnulib.c: Likewise.
75885         * lib/gc-libgcrypt.c: Likewise.
75886         * lib/gc-pbkdf2-sha1.c: Likewise.
75887         * lib/getaddrinfo.c: Likewise.
75888         * lib/getdelim.c: Likewise.
75889         * lib/getline.c: Likewise.
75890         * lib/hmac-md5.c: Likewise.
75891         * lib/hmac-sha1.c: Likewise.
75892         * lib/iconvme.c: Likewise.
75893         * lib/md2.c: Likewise.
75894         * lib/md4.c: Likewise.
75895         * lib/memxor.c: Likewise.
75896         * lib/read-file.c: Likewise.
75897         * lib/readline.c: Likewise.
75898         * lib/rijndael-alg-fst.c: Likewise.
75899         * lib/rijndael-api-fst.c: Likewise.
75900         * lib/xgetdomainname.c: Likewise.
75901
75902 2006-10-28  Eric Blake  <ebb9@byu.net>
75903
75904         * lib/xstrndup.c: Assume config.h.
75905
75906 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75909         stat-macros.h is now for our own macros, whereas stat_h is for
75910         macros in the <sys/stat.h> name space.
75911         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75912         (STAT_MACROS_H): Remove.
75913         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75914         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75915         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75916         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75917         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75918         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75919         Move these macros to ...
75920         * lib/stat_.h: here.  Don't include stat-macros.h.
75921         * lib/canonicalize.c: Don't include stat-macros.h.
75922         * lib/chown.c: Likewise.
75923         * lib/euidaccess.c: Likewise.
75924         * lib/file-type.c: Likewise.
75925         * lib/filemode.c: Likewise.
75926         * lib/glob.c: Likewise.
75927         * lib/isapipe.c: Likewise.
75928         * lib/lchown.c: Likewise.
75929         * lib/lstat.c: Likewise.
75930         * lib/mkdir-p.c: Likewise.
75931         * lib/rmdir.c: Likewise.
75932         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75933         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75934         unless mkdir isn't declared, to speed up 'configure'.
75935         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75936         would define all the S_* symbols.
75937         * modules/canonicalize (Depends-on):
75938         Depend on sys_stat, not stat-macros.
75939         * modules/chown: Likewise.
75940         * modules/euidaccess: Likewise.
75941         * modules/filemode: Likewise.
75942         * modules/file-type: Likewise.
75943         * modules/glob: Likewise.
75944         * modules/isapipe: Likewise.
75945         * modules/lchown: Likewise.
75946         * modules/lstat: Likewise.
75947         * modules/mkancesdirs: Likewise.
75948         * modules/rmdir: Likewise.
75949         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75950         * modules/modechange: Likewise.
75951         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75952         (configure.ac): Remove gl_STAT_MACROS.
75953         * modules/sys_stat (Depends-on): Remove stat-macros.
75954
75955 2006-10-27  Bruno Haible  <bruno@clisp.org>
75956
75957         * m4/signed.m4: Remove file.
75958         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75959         invocation.
75960         * modules/vasnprintf (Files): Remove m4/signed.m4.
75961
75962 2006-10-27  Bruno Haible  <bruno@clisp.org>
75963
75964         Update to GNU gettext 0.16.
75965         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75966         m4/inttypes-h.m4, m4/signed.m4.
75967         * m4/gettext.m4: Update to GNU gettext 0.16.
75968         * m4/intl.m4: New file, from GNU gettext.
75969         * m4/intldir.m4: New file, from GNU gettext.
75970         * config/srclist.txt: Update
75971
75972 2006-10-27  Eric Blake  <ebb9@byu.net>
75973
75974         * MODULES.html.sh: Document tempname.
75975         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75976         dependencies.
75977         (Files): Move lib/tempname.c...
75978         * modules/tempname: ...to this new module.
75979         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75980         (gl_PREREQ_TEMPNAME): Move...
75981         * m4/tempname.m4: ...to this new file.
75982         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75983         * modules/sys_stat (Depends-on): Add stat-macros.
75984         * lib/stat_.h (includes): Pick up stat macros.
75985         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75986         if stat macros are broken.
75987         * lib/tempname.c (includes): No need to include "stat-macros.h".
75988         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75989         (direxists, __path_search) [!_LIBC]: Don't compile these in
75990         gnulib; the tmpdir module covers that.
75991         * lib/tempname.h: New file.
75992
75993 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75994
75995         * COPYING: Explain how gnulib-tool converts licence headers.
75996         Almost all wording by Eric Blake.
75997
75998 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75999
76000         * lib/mbchar.h (is_basic_table): Make read-only.
76001         * lib/mbchar.c (is_basic_table): Likewise.
76002         Reported by John Darrington.
76003
76004 2006-10-25  Bruno Haible  <bruno@clisp.org>
76005
76006         * lib/progname.h (set_program_name): Undefine before defining.
76007
76008 2006-10-25  Bruno Haible  <bruno@clisp.org>
76009
76010         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76011         false for non-gcc C++ compilers.
76012         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76013
76014 2006-10-24  Bruno Haible  <bruno@clisp.org>
76015
76016         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76017         iconv implementations like Irix iconv.
76018
76019 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * modules/vararrays: New file.
76022         * m4/vararrays.m4: New file, taken from diffutils.
76023         * MODULES.html.sh: New module vararrays.
76024
76025 2006-10-24  Karl Berry  <karl@gnu.org>
76026
76027         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76028         Don't call GNU Unix.
76029
76030 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76031
76032         * users.txt: Add Libtool.
76033
76034         Sync from Libtool:
76035
76036         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76037
76038         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76039         to gnulib's policy of including config.h unconditionally.
76040
76041 2006-10-24  Bruno Haible  <bruno@clisp.org>
76042
76043         * modules/wcwidth (Files): Add m4/wint_t.m4.
76044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76045         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76046
76047 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76048
76049         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76050         to pacify GCC with some -W flags enabled.  Problem reported by
76051         Bruno Haible.
76052
76053 2006-10-24  Jim Meyering  <jim@meyering.net>
76054
76055         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76056         Reported by Karl Berry.
76057
76058 2006-10-23  Bruno Haible  <bruno@clisp.org>
76059
76060         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76061
76062 2006-10-24  Bruno Haible  <bruno@clisp.org>
76063
76064         * lib/gl_list.h: Use C comment style, not C++ comment style.
76065
76066 2006-10-23  Eric Blake  <ebb9@byu.net>
76067
76068         * lib/getaddrinfo.c (includes): Add missing include.
76069
76070 2006-10-23  Bruno Haible  <bruno@clisp.org>
76071             Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         Ability to rename obstack_free.
76074         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76075         obstack_free.
76076         (obstack_free): Invoke the __obstack_free macro.
76077         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76078
76079 2006-10-23  Bruno Haible  <bruno@clisp.org>
76080             Paul Eggert  <eggert@cs.ucla.edu>
76081
76082         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76083         __argc, __argv from the declaration. (They are defined as macros on
76084         mingw.)
76085
76086 2006-10-22  Bruno Haible  <bruno@clisp.org>
76087
76088         * doc/gnulib-intro.texi: New file.
76089         * doc/gnulib.texi: Include it.
76090
76091 2006-10-21  Bruno Haible  <bruno@clisp.org>
76092
76093         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76094         "Introduction", "Miscellanous Notes", "Particular Modules".
76095
76096 2006-10-21  Bruno Haible  <bruno@clisp.org>
76097
76098         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76099         Change mostlyclean-local rule to avoid sh syntax error from bash
76100         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76101
76102 2006-10-23  Jim Meyering  <jim@meyering.net>
76103
76104         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76105         in place of snprintf.
76106
76107         * modules/inttostr (Files): Add lib/uinttostr.c.
76108         * lib/uinttostr.c (inttostr): New file/function.
76109         * lib/inttostr.h (uinttostr): Declare.
76110         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76111         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76112         Add uinttostr.
76113         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76114
76115 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76116
76117         * lib/canonicalize.c (ELOOP): Define if not already defined.
76118         Problem reported by Bruno Haible in
76119         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76120
76121 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76122
76123         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76124         Problem reported by Perry Smith and Ville Laurikari.
76125
76126         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76127         uses.
76128
76129 2006-10-19  Bruno Haible  <bruno@clisp.org>
76130
76131         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76132         for mingw.
76133
76134 2006-10-19  Bruno Haible  <bruno@clisp.org>
76135
76136         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76137         Needed for mingw.
76138
76139 2006-10-19  Bruno Haible  <bruno@clisp.org>
76140
76141         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76142
76143 2006-10-19  Bruno Haible  <bruno@clisp.org>
76144
76145         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76146         it.
76147
76148 2006-10-19  Bruno Haible  <bruno@clisp.org>
76149
76150         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76151         invocation.
76152
76153 2006-10-19  Bruno Haible  <bruno@clisp.org>
76154
76155         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76156         mountlist by default.
76157
76158 2006-10-16  Bruno Haible  <bruno@clisp.org>
76159
76160         * lib/c-strstr.c: Include c-strstr.h.
76161
76162 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76163
76164         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76165         in a slash.
76166
76167 2006-10-18  Bruno Haible  <bruno@clisp.org>
76168
76169         * lib/lock.h [C++]: Wrap definitions in extern "C".
76170
76171 2006-10-18  Bruno Haible  <bruno@clisp.org>
76172
76173         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76174         gl_LIBOBJS list.
76175
76176 2006-10-18  Bruno Haible  <bruno@clisp.org>
76177
76178         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76179
76180 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76181
76182         * lib/xstrtol.h: Include gettext.h.
76183         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76184         Problem reported by Eric Blake.
76185         * modules/xstrtol (Depends-on): Add gettext-h.
76186
76187 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76188
76189         * lib/strftime.c (advance): New macro.
76190         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76191         incomplete type, so you can't add 0 to it.  Problem and patch
76192         reported by Eelco Dolstra for dietlibc.
76193
76194 2006-10-18  Jim Meyering  <jim@meyering.net>
76195
76196         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76197         type for a local, and rename it: s/up/user_proc/.
76198
76199 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76200
76201         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76202         READ_UTMP_USER_PROCESS.
76203         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76204
76205 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76208         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76209
76210 2006-10-17  Eric Blake  <ebb9@byu.net>
76211
76212         * lib/sigprocmask.c (sigprocmask): Fix typo.
76213
76214         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76215
76216         * modules/clean-temp (Makefile.am): Don't add to make output...
76217         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76218         config.h.
76219
76220 2006-10-17  Bruno Haible  <bruno@clisp.org>
76221
76222         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76223         differently if DEFAULT_TEXT_DOMAIN is set.
76224
76225 2006-10-16  Bruno Haible  <bruno@clisp.org>
76226
76227         * lib/clean-temp.c: Include fwriteerror.h.
76228
76229 2006-10-16  Bruno Haible  <bruno@clisp.org>
76230
76231         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76232
76233 2006-10-16  Bruno Haible  <bruno@clisp.org>
76234
76235         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76236         * lib/sigprocmask.h: Include <sys/types.h>.
76237         (sigset_t): Use the system's definition if present.
76238
76239 2006-10-17  Eric Blake  <ebb9@byu.net>
76240
76241         * lib/xvasprintf.c (includes): Assume config.h.
76242         * lib/xasprintf.c (includes): Likewise.
76243
76244 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76245
76246         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76247         at least as wide as intmax_t.
76248
76249 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76250
76251         (Imported from Automake.)
76252         * build-aux/gnupload: Update to version 1.1 of directive file.
76253
76254 2006-10-16  Eric Blake  <ebb9@byu.net>
76255
76256         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76257         match Automake 1.10a.
76258
76259 2006-10-14  Bruno Haible  <bruno@clisp.org>
76260
76261         * modules/sigprocmask: New file.
76262         * lib/sigprocmask.h: New file.
76263         * lib/sigprocmask.c: New file.
76264         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76265         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76266         request sigprocmask.o.
76267         (gl_PREREQ_SIGPROCMASK): New macro.
76268         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76269         (Depends-on): Add sigprocmask.
76270         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76271         gt_SIGNALBLOCKING. Test for 'raise' only once.
76272         * lib/fatal-signal.c: Include sigprocmask.h.
76273         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76274         unblock_fatal_signals): Define always.
76275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76276         sigprocmask.
76277
76278 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76279
76280         Sync from Automake.
76281         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76282         which incorrectly sets the mode of an existing destination
76283         directory.  In some cases the unpatched install-sh could do the
76284         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76285         system.  We hope this is rare in practice, but it's clearly worth
76286         fixing.  Problem reported by Alex Unleashed in
76287         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76288         Also, don't bother to check for -m bugs unless we're using -m;
76289         suggested by Stepan Kasal.
76290
76291 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76292
76293         Sync from Automake.
76294         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76295         `-c' flag, so they appear at the same position as in %FASTDEP%
76296         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76297         which ignores unknown options only after the first non-option.
76298         Bug report against M4 by Nelson H. F. Beebe.
76299
76300 2006-10-13  Jim Meyering  <jim@meyering.net>
76301
76302         Fix a bug in yesterday's change.
76303         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76304         p->fts_statp->st_dev would be used uninitialized.
76305         Ensures that we always call fts_stat on the very first entry.
76306         Miklos Szeredi reported that find -xdev stopped working.
76307
76308 2006-10-12  Bruno Haible  <bruno@clisp.org>
76309
76310         * gnulib-tool (func_get_automake_snippet): Append an automatically
76311         computed EXTRA_DIST augmentation.
76312         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76313         * modules/alloca-opt (Makefile.am): Likewise.
76314         * modules/allocsa (Makefile.am): Likewise.
76315         * modules/arcfour (Makefile.am): Likewise.
76316         * modules/arctwo (Makefile.am): Likewise.
76317         * modules/argmatch (Makefile.am): Likewise.
76318         * modules/argz (Makefile.am): Likewise.
76319         * modules/atexit (Makefile.am): Likewise.
76320         * modules/backupfile (Makefile.am): Likewise.
76321         * modules/byteswap (Makefile.am): Likewise.
76322         * modules/c-strtod (Makefile.am): Likewise.
76323         * modules/c-strtold (Makefile.am): Likewise.
76324         * modules/calloc (Makefile.am): Likewise.
76325         * modules/canon-host (Makefile.am): Likewise.
76326         * modules/canonicalize (Makefile.am): Likewise.
76327         * modules/chdir-long (Makefile.am): Likewise.
76328         * modules/chdir-safer (Makefile.am): Likewise.
76329         * modules/check-version (Makefile.am): Likewise.
76330         * modules/chown (Makefile.am): Likewise.
76331         * modules/cloexec (Makefile.am): Likewise.
76332         * modules/close-stream (Makefile.am): Likewise.
76333         * modules/closeout (Makefile.am): Likewise.
76334         * modules/crc (Makefile.am): Likewise.
76335         * modules/csharpexec (Makefile.am): Likewise.
76336         * modules/cycle-check (Makefile.am): Likewise.
76337         * modules/des (Makefile.am): Likewise.
76338         * modules/dev-ino (Makefile.am): Likewise.
76339         * modules/dirfd (Makefile.am): Likewise.
76340         * modules/dirname (Makefile.am): Likewise.
76341         * modules/dup2 (Makefile.am): Likewise.
76342         * modules/eealloc (Makefile.am): Likewise.
76343         * modules/error (Makefile.am): Likewise.
76344         * modules/euidaccess (Makefile.am): Likewise.
76345         * modules/exclude (Makefile.am): Likewise.
76346         * modules/exitfail (Makefile.am): Likewise.
76347         * modules/fcntl-safer (Makefile.am): Likewise.
76348         * modules/fcntl (Makefile.am): Likewise.
76349         * modules/file-type (Makefile.am): Likewise.
76350         * modules/fileblocks (Makefile.am): Likewise.
76351         * modules/filemode (Makefile.am): Likewise.
76352         * modules/filenamecat (Makefile.am): Likewise.
76353         * modules/fnmatch (Makefile.am): Likewise.
76354         * modules/fopen-safer (Makefile.am): Likewise.
76355         * modules/fpending (Makefile.am): Likewise.
76356         * modules/fprintftime (Makefile.am): Likewise.
76357         * modules/free (Makefile.am): Likewise.
76358         * modules/fsusage (Makefile.am): Likewise.
76359         * modules/ftruncate (Makefile.am): Likewise.
76360         * modules/fts (Makefile.am): Likewise.
76361         * modules/gc-arcfour (Makefile.am): Likewise.
76362         * modules/gc-des (Makefile.am): Likewise.
76363         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76364         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76365         * modules/gc-md4 (Makefile.am): Likewise.
76366         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76367         * modules/gc-sha1 (Makefile.am): Likewise.
76368         * modules/gc (Makefile.am): Likewise.
76369         * modules/getaddrinfo (Makefile.am): Likewise.
76370         * modules/getcwd (Makefile.am): Likewise.
76371         * modules/getdelim (Makefile.am): Likewise.
76372         * modules/getdomainname (Makefile.am): Likewise.
76373         * modules/getgroups (Makefile.am): Likewise.
76374         * modules/gethostname (Makefile.am): Likewise.
76375         * modules/gethrxtime (Makefile.am): Likewise.
76376         * modules/getline (Makefile.am): Likewise.
76377         * modules/getloadavg (Makefile.am): Likewise.
76378         * modules/getlogin_r (Makefile.am): Likewise.
76379         * modules/getndelim2 (Makefile.am): Likewise.
76380         * modules/getopt (Makefile.am): Likewise.
76381         * modules/getpagesize (Makefile.am): Likewise.
76382         * modules/getpass-gnu (Makefile.am): Likewise.
76383         * modules/getpass (Makefile.am): Likewise.
76384         * modules/getsubopt (Makefile.am): Likewise.
76385         * modules/gettime (Makefile.am): Likewise.
76386         * modules/gettimeofday (Makefile.am): Likewise.
76387         * modules/getugroups (Makefile.am): Likewise.
76388         * modules/getusershell (Makefile.am): Likewise.
76389         * modules/glob (Makefile.am): Likewise.
76390         * modules/group-member (Makefile.am): Likewise.
76391         * modules/hard-locale (Makefile.am): Likewise.
76392         * modules/hash (Makefile.am): Likewise.
76393         * modules/hmac-md5 (Makefile.am): Likewise.
76394         * modules/hmac-sha1 (Makefile.am): Likewise.
76395         * modules/human (Makefile.am): Likewise.
76396         * modules/idcache (Makefile.am): Likewise.
76397         * modules/imaxabs (Makefile.am): Likewise.
76398         * modules/imaxdiv (Makefile.am): Likewise.
76399         * modules/inet_ntop (Makefile.am): Likewise.
76400         * modules/inet_pton (Makefile.am): Likewise.
76401         * modules/intprops (Makefile.am): Likewise.
76402         * modules/inttostr (Makefile.am): Likewise.
76403         * modules/inttypes (Makefile.am): Likewise.
76404         * modules/isapipe (Makefile.am): Likewise.
76405         * modules/javaversion (Makefile.am): Likewise.
76406         * modules/lchmod (Makefile.am): Likewise.
76407         * modules/lchown (Makefile.am): Likewise.
76408         * modules/localcharset (Makefile.am): Likewise.
76409         * modules/long-options (Makefile.am): Likewise.
76410         * modules/lstat (Makefile.am): Likewise.
76411         * modules/malloc (Makefile.am): Likewise.
76412         * modules/mathl (Makefile.am): Likewise.
76413         * modules/mbchar (Makefile.am): Likewise.
76414         * modules/md2 (Makefile.am): Likewise.
76415         * modules/md4 (Makefile.am): Likewise.
76416         * modules/md5 (Makefile.am): Likewise.
76417         * modules/memcasecmp (Makefile.am): Likewise.
76418         * modules/memchr (Makefile.am): Likewise.
76419         * modules/memcmp (Makefile.am): Likewise.
76420         * modules/memcoll (Makefile.am): Likewise.
76421         * modules/memcpy (Makefile.am): Likewise.
76422         * modules/memmem (Makefile.am): Likewise.
76423         * modules/memmove (Makefile.am): Likewise.
76424         * modules/mempcpy (Makefile.am): Likewise.
76425         * modules/memrchr (Makefile.am): Likewise.
76426         * modules/memset (Makefile.am): Likewise.
76427         * modules/memxor (Makefile.am): Likewise.
76428         * modules/mkancesdirs (Makefile.am): Likewise.
76429         * modules/mkdir-p (Makefile.am): Likewise.
76430         * modules/mkdir (Makefile.am): Likewise.
76431         * modules/mkdtemp (Makefile.am): Likewise.
76432         * modules/mkstemp (Makefile.am): Likewise.
76433         * modules/mktime (Makefile.am): Likewise.
76434         * modules/modechange (Makefile.am): Likewise.
76435         * modules/mountlist (Makefile.am): Likewise.
76436         * modules/nanosleep (Makefile.am): Likewise.
76437         * modules/obstack (Makefile.am): Likewise.
76438         * modules/openat (Makefile.am): Likewise.
76439         * modules/pagealign_alloc (Makefile.am): Likewise.
76440         * modules/pathmax (Makefile.am): Likewise.
76441         * modules/physmem (Makefile.am): Likewise.
76442         * modules/poll (Makefile.am): Likewise.
76443         * modules/posixtm (Makefile.am): Likewise.
76444         * modules/posixver (Makefile.am): Likewise.
76445         * modules/putenv (Makefile.am): Likewise.
76446         * modules/quote (Makefile.am): Likewise.
76447         * modules/quotearg (Makefile.am): Likewise.
76448         * modules/raise (Makefile.am): Likewise.
76449         * modules/read-file (Makefile.am): Likewise.
76450         * modules/readline (Makefile.am): Likewise.
76451         * modules/readlink (Makefile.am): Likewise.
76452         * modules/readtokens (Makefile.am): Likewise.
76453         * modules/readutmp (Makefile.am): Likewise.
76454         * modules/realloc (Makefile.am): Likewise.
76455         * modules/regex (Makefile.am): Likewise.
76456         * modules/rename-dest-slash (Makefile.am): Likewise.
76457         * modules/rename (Makefile.am): Likewise.
76458         * modules/rijndael (Makefile.am): Likewise.
76459         * modules/rmdir (Makefile.am): Likewise.
76460         * modules/rpmatch (Makefile.am): Likewise.
76461         * modules/safe-read (Makefile.am): Likewise.
76462         * modules/safe-write (Makefile.am): Likewise.
76463         * modules/same-inode (Makefile.am): Likewise.
76464         * modules/same (Makefile.am): Likewise.
76465         * modules/save-cwd (Makefile.am): Likewise.
76466         * modules/savedir (Makefile.am): Likewise.
76467         * modules/setenv (Makefile.am): Likewise.
76468         * modules/settime (Makefile.am): Likewise.
76469         * modules/sha1 (Makefile.am): Likewise.
76470         * modules/sig2str (Makefile.am): Likewise.
76471         * modules/snprintf (Makefile.am): Likewise.
76472         * modules/stat-macros (Makefile.am): Likewise.
76473         * modules/stat-time (Makefile.am): Likewise.
76474         * modules/stdbool (Makefile.am): Likewise.
76475         * modules/stdint (Makefile.am): Likewise.
76476         * modules/stdlib-safer (Makefile.am): Likewise.
76477         * modules/stpcpy (Makefile.am): Likewise.
76478         * modules/stpncpy (Makefile.am): Likewise.
76479         * modules/strcase (Makefile.am): Likewise.
76480         * modules/strcasestr (Makefile.am): Likewise.
76481         * modules/strchrnul (Makefile.am): Likewise.
76482         * modules/strcspn (Makefile.am): Likewise.
76483         * modules/strdup (Makefile.am): Likewise.
76484         * modules/strerror (Makefile.am): Likewise.
76485         * modules/strftime (Makefile.am): Likewise.
76486         * modules/strndup (Makefile.am): Likewise.
76487         * modules/strnlen (Makefile.am): Likewise.
76488         * modules/strpbrk (Makefile.am): Likewise.
76489         * modules/strsep (Makefile.am): Likewise.
76490         * modules/strstr (Makefile.am): Likewise.
76491         * modules/strtod (Makefile.am): Likewise.
76492         * modules/strtoimax (Makefile.am): Likewise.
76493         * modules/strtok_r (Makefile.am): Likewise.
76494         * modules/strtol (Makefile.am): Likewise.
76495         * modules/strtoll (Makefile.am): Likewise.
76496         * modules/strtoul (Makefile.am): Likewise.
76497         * modules/strtoull (Makefile.am): Likewise.
76498         * modules/strtoumax (Makefile.am): Likewise.
76499         * modules/strverscmp (Makefile.am): Likewise.
76500         * modules/sys_socket (Makefile.am): Likewise.
76501         * modules/sys_stat (Makefile.am): Likewise.
76502         * modules/sysexits (Makefile.am): Likewise.
76503         * modules/time_r (Makefile.am): Likewise.
76504         * modules/timegm (Makefile.am): Likewise.
76505         * modules/timespec (Makefile.am): Likewise.
76506         * modules/tmpfile-safer (Makefile.am): Likewise.
76507         * modules/trim (Makefile.am): Likewise.
76508         * modules/unistd-safer (Makefile.am): Likewise.
76509         * modules/unlinkdir (Makefile.am): Likewise.
76510         * modules/unlocked-io (Makefile.am): Likewise.
76511         * modules/userspec (Makefile.am): Likewise.
76512         * modules/utime (Makefile.am): Likewise.
76513         * modules/utimecmp (Makefile.am): Likewise.
76514         * modules/utimens (Makefile.am): Likewise.
76515         * modules/vasnprintf (Makefile.am): Likewise.
76516         * modules/vasprintf (Makefile.am): Likewise.
76517         * modules/vsnprintf (Makefile.am): Likewise.
76518         * modules/xalloc (Makefile.am): Likewise.
76519         * modules/xgetcwd (Makefile.am): Likewise.
76520         * modules/xnanosleep (Makefile.am): Likewise.
76521         * modules/xreadlink (Makefile.am): Likewise.
76522         * modules/xstrtod (Makefile.am): Likewise.
76523         * modules/xstrtol (Makefile.am): Likewise.
76524         * modules/xstrtold (Makefile.am): Likewise.
76525         * modules/yesno (Makefile.am): Likewise.
76526         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76527
76528 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76529
76530         * modules/error (Makefile.am): Distribute files through
76531         EXTRA_DIST, not lib_SOURCES.
76532
76533 2006-10-12  Eric Blake  <ebb9@byu.net>
76534
76535         * modules/error (Makefile.am): Distribute files in /lib.
76536         * modules/obstack (Makefile.am): Likewise.
76537
76538 2006-10-12  Bruno Haible  <bruno@clisp.org>
76539
76540         * modules/acl (Makefile.am): Distribute all files in lib/ through
76541         EXTRA_DIST.
76542         * modules/arcfour (Makefile.am): Likewise.
76543         * modules/arctwo (Makefile.am): Likewise.
76544         * modules/argmatch (Makefile.am): Likewise.
76545         * modules/argz (Makefile.am): Likewise.
76546         * modules/atexit (Makefile.am): Likewise.
76547         * modules/backupfile (Makefile.am): Likewise.
76548         * modules/c-strtod (Makefile.am): Likewise.
76549         * modules/c-strtold (Makefile.am): Likewise.
76550         * modules/calloc (Makefile.am): Likewise.
76551         * modules/canon-host (Makefile.am): Likewise.
76552         * modules/canonicalize (Makefile.am): Likewise.
76553         * modules/chdir-long (Makefile.am): Likewise.
76554         * modules/chdir-safer (Makefile.am): Likewise.
76555         * modules/check-version (Makefile.am): Likewise.
76556         * modules/chown (Makefile.am): Likewise.
76557         * modules/cloexec (Makefile.am): Likewise.
76558         * modules/close-stream (Makefile.am): Likewise.
76559         * modules/closeout (Makefile.am): Likewise.
76560         * modules/crc (Makefile.am): Likewise.
76561         * modules/cycle-check (Makefile.am): Likewise.
76562         * modules/des (Makefile.am): Likewise.
76563         * modules/dirfd (Makefile.am): Likewise.
76564         * modules/dirname (Makefile.am): Likewise.
76565         * modules/dup2 (Makefile.am): Likewise.
76566         * modules/euidaccess (Makefile.am): Likewise.
76567         * modules/exclude (Makefile.am): Likewise.
76568         * modules/exitfail (Makefile.am): Likewise.
76569         * modules/fcntl-safer (Makefile.am): Likewise.
76570         * modules/file-type (Makefile.am): Likewise.
76571         * modules/fileblocks (Makefile.am): Likewise.
76572         * modules/filemode (Makefile.am): Likewise.
76573         * modules/filenamecat (Makefile.am): Likewise.
76574         * modules/fnmatch (Makefile.am): Likewise.
76575         * modules/fopen-safer (Makefile.am): Likewise.
76576         * modules/fpending (Makefile.am): Likewise.
76577         * modules/fprintftime (Makefile.am): Likewise.
76578         * modules/free (Makefile.am): Likewise.
76579         * modules/fsusage (Makefile.am): Likewise.
76580         * modules/ftruncate (Makefile.am): Likewise.
76581         * modules/fts (Makefile.am): Likewise.
76582         * modules/gc (Makefile.am): Likewise.
76583         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76584         * modules/getaddrinfo (Makefile.am): Likewise.
76585         * modules/getcwd (Makefile.am): Likewise.
76586         * modules/getdelim (Makefile.am): Likewise.
76587         * modules/getdomainname (Makefile.am): Likewise.
76588         * modules/getgroups (Makefile.am): Likewise.
76589         * modules/gethostname (Makefile.am): Likewise.
76590         * modules/gethrxtime (Makefile.am): Likewise.
76591         * modules/getline (Makefile.am): Likewise.
76592         * modules/getloadavg (Makefile.am): Likewise.
76593         * modules/getlogin_r (Makefile.am): Likewise.
76594         * modules/getopt (Makefile.am): Likewise.
76595         * modules/getpass (Makefile.am): Likewise.
76596         * modules/getpass-gnu (Makefile.am): Likewise.
76597         * modules/getsubopt (Makefile.am): Likewise.
76598         * modules/gettime (Makefile.am): Likewise.
76599         * modules/gettimeofday (Makefile.am): Likewise.
76600         * modules/getugroups (Makefile.am): Likewise.
76601         * modules/getusershell (Makefile.am): Likewise.
76602         * modules/glob (Makefile.am): Likewise.
76603         * modules/group-member (Makefile.am): Likewise.
76604         * modules/hard-locale (Makefile.am): Likewise.
76605         * modules/hash (Makefile.am): Likewise.
76606         * modules/hmac-md5 (Makefile.am): Likewise.
76607         * modules/hmac-sha1 (Makefile.am): Likewise.
76608         * modules/human (Makefile.am): Likewise.
76609         * modules/idcache (Makefile.am): Likewise.
76610         * modules/imaxabs (Makefile.am): Likewise.
76611         * modules/imaxdiv (Makefile.am): Likewise.
76612         * modules/inet_ntop (Makefile.am): Likewise.
76613         * modules/inet_pton (Makefile.am): Likewise.
76614         * modules/inttostr (Makefile.am): Likewise.
76615         * modules/isapipe (Makefile.am): Likewise.
76616         * modules/lchown (Makefile.am): Likewise.
76617         * modules/long-options (Makefile.am): Likewise.
76618         * modules/lstat (Makefile.am): Likewise.
76619         * modules/malloc (Makefile.am): Likewise.
76620         * modules/mathl (Makefile.am): Likewise.
76621         * modules/mbchar (Makefile.am): Likewise.
76622         * modules/md2 (Makefile.am): Likewise.
76623         * modules/md4 (Makefile.am): Likewise.
76624         * modules/md5 (Makefile.am): Likewise.
76625         * modules/memcasecmp (Makefile.am): Likewise.
76626         * modules/memchr (Makefile.am): Likewise.
76627         * modules/memcmp (Makefile.am): Likewise.
76628         * modules/memcoll (Makefile.am): Likewise.
76629         * modules/memcpy (Makefile.am): Likewise.
76630         * modules/memmem (Makefile.am): Likewise.
76631         * modules/memmove (Makefile.am): Likewise.
76632         * modules/mempcpy (Makefile.am): Likewise.
76633         * modules/memrchr (Makefile.am): Likewise.
76634         * modules/memset (Makefile.am): Likewise.
76635         * modules/memxor (Makefile.am): Likewise.
76636         * modules/mkancesdirs (Makefile.am): Likewise.
76637         * modules/mkdir (Makefile.am): Likewise.
76638         * modules/mkdir-p (Makefile.am): Likewise.
76639         * modules/mkdtemp (Makefile.am): Likewise.
76640         * modules/mkstemp (Makefile.am): Likewise.
76641         * modules/mktime (Makefile.am): Likewise.
76642         * modules/modechange (Makefile.am): Likewise.
76643         * modules/mountlist (Makefile.am): Likewise.
76644         * modules/nanosleep (Makefile.am): Likewise.
76645         * modules/openat (Makefile.am): Likewise.
76646         * modules/pagealign_alloc (Makefile.am): Likewise.
76647         * modules/physmem (Makefile.am): Likewise.
76648         * modules/poll (Makefile.am): Likewise.
76649         * modules/posixtm (Makefile.am): Likewise.
76650         * modules/posixver (Makefile.am): Likewise.
76651         * modules/putenv (Makefile.am): Likewise.
76652         * modules/quote (Makefile.am): Likewise.
76653         * modules/quotearg (Makefile.am): Likewise.
76654         * modules/raise (Makefile.am): Likewise.
76655         * modules/read-file (Makefile.am): Likewise.
76656         * modules/readline (Makefile.am): Likewise.
76657         * modules/readlink (Makefile.am): Likewise.
76658         * modules/readtokens (Makefile.am): Likewise.
76659         * modules/readutmp (Makefile.am): Likewise.
76660         * modules/realloc (Makefile.am): Likewise.
76661         * modules/regex (Makefile.am): Likewise.
76662         * modules/rename (Makefile.am): Likewise.
76663         * modules/rename-dest-slash (Makefile.am): Likewise.
76664         * modules/rijndael (Makefile.am): Likewise.
76665         * modules/rmdir (Makefile.am): Likewise.
76666         * modules/rpmatch (Makefile.am): Likewise.
76667         * modules/safe-read (Makefile.am): Likewise.
76668         * modules/safe-write (Makefile.am): Likewise.
76669         * modules/same (Makefile.am): Likewise.
76670         * modules/save-cwd (Makefile.am): Likewise.
76671         * modules/savedir (Makefile.am): Likewise.
76672         * modules/setenv (Makefile.am): Likewise.
76673         * modules/settime (Makefile.am): Likewise.
76674         * modules/sha1 (Makefile.am): Likewise.
76675         * modules/sig2str (Makefile.am): Likewise.
76676         * modules/snprintf (Makefile.am): Likewise.
76677         * modules/stdlib-safer (Makefile.am): Likewise.
76678         * modules/stpcpy (Makefile.am): Likewise.
76679         * modules/stpncpy (Makefile.am): Likewise.
76680         * modules/strcase (Makefile.am): Likewise.
76681         * modules/strcasestr (Makefile.am): Likewise.
76682         * modules/strchrnul (Makefile.am): Likewise.
76683         * modules/strcspn (Makefile.am): Likewise.
76684         * modules/strdup (Makefile.am): Likewise.
76685         * modules/strerror (Makefile.am): Likewise.
76686         * modules/strftime (Makefile.am): Likewise.
76687         * modules/strndup (Makefile.am): Likewise.
76688         * modules/strnlen (Makefile.am): Likewise.
76689         * modules/strpbrk (Makefile.am): Likewise.
76690         * modules/strsep (Makefile.am): Likewise.
76691         * modules/strstr (Makefile.am): Likewise.
76692         * modules/strtod (Makefile.am): Likewise.
76693         * modules/strtoimax (Makefile.am): Likewise.
76694         * modules/strtok_r (Makefile.am): Likewise.
76695         * modules/strtol (Makefile.am): Likewise.
76696         * modules/strtoll (Makefile.am): Likewise.
76697         * modules/strtoul (Makefile.am): Likewise.
76698         * modules/strtoull (Makefile.am): Likewise.
76699         * modules/strtoumax (Makefile.am): Likewise.
76700         * modules/strverscmp (Makefile.am): Likewise.
76701         * modules/time_r (Makefile.am): Likewise.
76702         * modules/timegm (Makefile.am): Likewise.
76703         * modules/tmpfile-safer (Makefile.am): Likewise.
76704         * modules/unistd-safer (Makefile.am): Likewise.
76705         * modules/unlinkdir (Makefile.am): Likewise.
76706         * modules/userspec (Makefile.am): Likewise.
76707         * modules/utime (Makefile.am): Likewise.
76708         * modules/utimecmp (Makefile.am): Likewise.
76709         * modules/utimens (Makefile.am): Likewise.
76710         * modules/vasnprintf (Makefile.am): Likewise.
76711         * modules/vasprintf (Makefile.am): Likewise.
76712         * modules/vsnprintf (Makefile.am): Likewise.
76713         * modules/xalloc (Makefile.am): Likewise.
76714         * modules/xgetcwd (Makefile.am): Likewise.
76715         * modules/xnanosleep (Makefile.am): Likewise.
76716         * modules/xreadlink (Makefile.am): Likewise.
76717         * modules/xstrtod (Makefile.am): Likewise.
76718         * modules/xstrtol (Makefile.am): Likewise.
76719         * modules/xstrtold (Makefile.am): Likewise.
76720         * modules/yesno (Makefile.am): Likewise.
76721
76722 2006-10-12  Jim Meyering  <jim@meyering.net>
76723
76724         * m4/getloadavg.m4: Revert the change below.
76725
76726         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76727         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76728         fail with a symlink, which is what coreutils' ./bootstrap now
76729         creates by default.
76730
76731 2006-10-12  Bruno Haible  <bruno@clisp.org>
76732
76733         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76734         mingw.
76735         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76736         MSVC and mingw explicitly.
76737
76738 2006-10-11  Simon Josefsson  <jas@extundo.com>
76739             Bruno Haible  <bruno@clisp.org>
76740
76741         Add support for multiple gnulib-tool invocations in the scope of a
76742         single configure.ac file.
76743         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76744         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76745         with the same contents as the _LIBADD variable.
76746         (func_emit_initmacro_start, func_emit_initmacro_end,
76747         func_emit_initmacro_done): New functions.
76748         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76749         gl_LIBOBJS and gl_LTLIBOBJS.
76750
76751 2006-10-11  Bruno Haible  <bruno@clisp.org>
76752
76753         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76754         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76755         autoreconf. Instead, invoke autopoint explicitly but move back the
76756         *.m4 files from gnulib.
76757
76758 2006-10-11  Bruno Haible  <bruno@clisp.org>
76759
76760         * gnulib-tool (func_usage): Make module names after --create-testdir
76761         optional.
76762         (func_create_testdir): If no module was specified, use nearly all
76763         modules.
76764
76765 2006-10-12  Jim Meyering  <jim@meyering.net>
76766
76767         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76768         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76769         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76770         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76771         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76772         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76773         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76774         (fts_set_stat_required): New function.
76775         (fts_open): Defer the calls to fts_stat, if possible or requested.
76776         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76777         into fts_stat itself.
76778         (fts_read): Perform any required (deferred) fts_stat call.
76779         (fts_build): Likewise, for the directory we're about to open and read.
76780         In the readdir loop, carefully decide whether each entry will require
76781         an eventual call to fts_stat, using dirent.d_type info if available.
76782         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76783         a command line argument into this function.  Update all callers.
76784         Map a return value of FTS_DOT to FTS_D for a command line argument.
76785         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76786         Thanks to Miklos Szeredi for his tenacity and for the initial
76787         bug report about "find" failing on a FUSE-based file system.
76788
76789         * lib/fts.c (fts_open): Use consistent indentation.
76790
76791 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76792
76793         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76794         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76795         reported by Jim Meyering.  All uses of cache variables renamed
76796         to match Autoconf's.
76797         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76798         the other one.
76799
76800         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76801         Fix misspelling in diagnostic.
76802
76803 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76806         defined.  Problem reported by Matthew Woehlke.
76807
76808         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76809         Add support for Tandem NonStop R series.
76810         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76811         Use new macro.
76812
76813         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76814         (has_trailing_slash): Omit size arg; all callers changed.
76815         Omit 'inline', since it doesn't help performance and we'd
76816         need to configure it.
76817         Don't count //, ///, etc. as having a trailing slash.
76818         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76819         (rpl_rename_dest_slash): On failure, use rename's errno rather
76820         than (in some cases) an incorrect or junk errno.
76821         Simplify code by removing need to compute length; this does
76822         cause it to make two passes instead of one over the file name,
76823         but it's worth it.
76824
76825         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76826         change, since Autoconf's version may no longer be appropriate now
76827         that we are using CVS Autoconf's version.  Add support for Tandem.
76828
76829 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76830             Bruno Haible  <bruno@clisp.org>
76831
76832         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76833         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76834         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76835         gl_AC_TYPE_LONG_LONG.
76836
76837         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76838         instead of HAVE_LONG_LONG.
76839         * lib/printf-args.c (printf_fetchargs): Likewise.
76840         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76841         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76842         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76843         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76844         gl_AC_TYPE_LONG_LONG.
76845
76846 2006-10-11  Bruno Haible  <bruno@clisp.org>
76847
76848         * m4/longlong.m4: Add comments.
76849         * m4/ulonglong.m4: Likewise.
76850
76851 2006-10-10  Bruno Haible  <bruno@clisp.org>
76852
76853         Make it possible to #define stpcpy, strdup to aliases.
76854         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76855         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76856
76857 2006-10-10  Bruno Haible  <bruno@clisp.org>
76858
76859         Make it possible to #define gcd to an alias.
76860         * lib/gcd.c: Include config.h.
76861
76862 2006-10-10  Bruno Haible  <bruno@clisp.org>
76863
76864         Make it possible to #define c_isascii to an alias.
76865         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76866         defined. Undefine the macros before defining them, to avoid gcc
76867         warnings.
76868         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76869         define NO_C_CTYPE_MACROS early.
76870
76871 2006-10-10  Bruno Haible  <bruno@clisp.org>
76872
76873         Make it possible to #define set_program_name to an alias.
76874         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76875         ENABLE_RELOCATABLE early.
76876
76877 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76878
76879         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76880         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76881         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76882         More generally, don't assume that 64-bit signed int is available
76883         if unsigned int is, and vice versa.
76884         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76885         unsigned symbols, not on their signed counterparts.
76886         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76887         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76888         (UINT64_C, UINTMAX_C):
76889         Likewise.
76890         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76891         unsigned counterparts.
76892         (Have_long_long, Unsigned): New macros.
76893         (Int): Renamed from INT.
76894         (strtoimax): Use the new macros.
76895         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76896         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76897         * modules/inttypes (inttypes.h): Substitute
76898         HAVE_UNSIGNED_LONG_LONG_INT.
76899         * modules/stdint (stdint.h): Likewise.
76900         (Files): Add m4/ulonglong.m4.
76901
76902 2006-10-10  Bruno Haible  <bruno@clisp.org>
76903
76904         Fix a gcc -Wshadow warning.
76905         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76906         to 'bucket'.
76907         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76908         gl_linked_indexof_from_to): Likewise.
76909         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76910         Likewise.
76911         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76912         Likewise.
76913         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76914         Reported by Eric Blake.
76915
76916 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76917
76918         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76919         for NetBSD.  Problem reported by Bruno Haible.
76920
76921 2006-10-09  Jim Meyering  <jim@meyering.net>
76922
76923         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76924         Patch from Bruno Haible.
76925
76926 2006-10-09  Jim Meyering  <jim@meyering.net>
76927
76928         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76929         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76930         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76931
76932 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76933
76934         Don't include <config.h> twice; this doesn't work in some cases,
76935         e.g., when config.h has "#define intmax_t long long int" and
76936         we include <config.h>, <inttypes.h>, <config.h> in that order.
76937         Problem reported by Matthew Woehlke in:
76938         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76939         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76940         * lib/fts-cycle.c: Don't include config.h.
76941         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76942         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76943         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76944         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76945         inttypes.h.
76946         * lib/xstrtoumax.c: Likewise.
76947         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76948         __strtol and the like, so that this module is more like its siblings.
76949         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76950         Remove; no longer needed now that we assume gnulib inttypes.h.
76951
76952 2006-10-08  Bruno Haible  <bruno@clisp.org>
76953
76954         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76955         option.
76956
76957 2006-10-07  Jim Meyering  <jim@meyering.net>
76958
76959         * modules/inttypes (inttypes.h): Revert what seems to have been
76960         an inadvertent part of today's change: use "|", not "/" in the
76961         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76962
76963 2006-10-07  Bruno Haible  <bruno@clisp.org>
76964
76965         * modules/sublist: New file.
76966
76967 2006-10-07  Bruno Haible  <bruno@clisp.org>
76968
76969         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76970         * modules/argz (argz.h): Likewise.
76971         * modules/arpa_inet (arpa/inet.h): Likewise.
76972         * modules/byteswap (byteswap.h): Likewise.
76973         * modules/configmake (configmake.h): Likewise.
76974         * modules/fcntl (fcntl.h): Likewise.
76975         * modules/fnmatch (fnmatch.h): Likewise.
76976         * modules/getopt (getopt.h): Likewise.
76977         * modules/glob (glob.h): Likewise.
76978         * modules/inttypes (inttypes.h): Likewise.
76979         * modules/netinet_in (netinet/in.h): Likewise.
76980         * modules/poll (poll.h): Likewise.
76981         * modules/stdbool (stdbool.h): Likewise.
76982         * modules/stdint (stdint.h): Likewise.
76983         * modules/sys_select (sys/select.h): Likewise.
76984         * modules/sys_socket (sys/socket.h): Likewise.
76985         * modules/sys_stat (sys/stat.h): Likewise.
76986         * modules/sysexits (sysexits.h): Likewise.
76987         * modules/unistd (unistd.h): Likewise.
76988         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76989         Add a "DO NOT EDIT" comment to the generated file.
76990         (func_import): Likewise for gnulib-comp.m4.
76991
76992 2006-10-07  Bruno Haible  <bruno@clisp.org>
76993
76994         * lib/gl_sublist.h: New file.
76995         * lib/gl_sublist.c: New file.
76996
76997 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76998
76999         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77000         name (relative to the original working directory) and the file
77001         name component (relative to the temporary working directory).  All
77002         callers changed.
77003         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77004         * lib/mkdir-p.c (make_dir_parents): Likewise.
77005         * lib/mkdir-p.h (make_dir_parents): Likewise.
77006
77007 2006-10-06  Eric Blake  <ebb9@byu.net>
77008
77009         Define several macros for use by the clean-temp module.
77010         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77011         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77012         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77013
77014         * lib/clean-temp.h (close_stream_temp): New declaration.
77015         * lib/clean-temp.c (includes): Pull in headers according to what
77016         other modules are in use.
77017         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77018
77019 2006-10-06  Bruno Haible  <bruno@clisp.org>
77020
77021         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77022         instead of fopen, fwriteerror.
77023
77024 2006-10-06  Bruno Haible  <bruno@clisp.org>
77025
77026         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77027         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77028         int.
77029         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77030         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77031         Return an error indicator.
77032         Suggested by Eric Blake.
77033
77034 2006-10-06  Bruno Haible  <bruno@clisp.org>
77035
77036         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77037         Reported by Eric Blake.
77038
77039 2006-10-06  Bruno Haible  <bruno@clisp.org>
77040
77041         * modules/closeout (Description): Mention stderr too.
77042
77043 2006-10-06  Bruno Haible  <bruno@clisp.org>
77044         and Paul Eggert  <eggert@cs.ucla.edu>
77045
77046         * lib/closeout.c (close_stdout): Also close stderr.
77047         * lib/closeout.h: Update comment.
77048
77049 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77052         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77053         * lib/dirchownmod.c: Include lchown.h.
77054         * lib/lchown.c: Don't include files that lchown.h now includes.
77055         Don't declare chown, since lchown.h now does that.
77056         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77057         (lchown): Define to rpl_chown if lchown is declared but
77058         does not exist.  Declare using a prototype if lchown is not
77059         declared.  Add a copyright notice.
77060         * lib/mkstemp.h: Include <unistd.h>.
77061         * lib/openat.c: Include lchown.h.
77062
77063         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77064         we now test for that separately.
77065         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77066         rather than O_NOFOLLOW, when testing whether it's possible to
77067         avoid a race condition reliably.
77068         * lib/savewd.c (savewd_chdir): Likewise.
77069
77070         Remove macros that are no longer needed now that stdint.h is
77071         reliable.
77072         * lib/fsusage.c (UINTMAX_MAX): Remove.
77073         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77074         * lib/utimecmp.c (SIZE_MAX): Remove.
77075
77076         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77077
77078         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77079         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77080         O_NOATIME works.
77081
77082 2006-10-05  Bruno Haible  <bruno@clisp.org>
77083
77084         * lib/gl_list.h (gl_sortedlist_search_from_to,
77085         gl_sortedlist_indexof_from_to): New declarations.
77086         (gl_list_implementation): New fields sortedlist_search_from_to,
77087         sortedlist_indexof_from_to.
77088         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77089         inline functions.
77090         * lib/gl_list.c (gl_sortedlist_search_from_to,
77091         gl_sortedlist_indexof_from_to): New functions.
77092         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77093         function.
77094         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77095         (gl_array_sortedlist_search_from_to): New function.
77096         (gl_array_list_implementation): Update.
77097         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77098         function.
77099         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77100         (gl_carray_sortedlist_search_from_to): New function.
77101         (gl_carray_list_implementation): Update.
77102         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77103         gl_linked_sortedlist_indexof_from_to): New functions.
77104         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77105         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77106         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77107         gl_tree_sortedlist_indexof_from_to): New functions.
77108         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77109         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77110         Update.
77111         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77112         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77113         Update.
77114
77115 2006-10-05  Bruno Haible  <bruno@clisp.org>
77116
77117         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77118         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77119         (struct gl_list_implementation): Add fields search_from_to,
77120         indexof_from_to. Remove fields search, indexof.
77121         (gl_list_search): Use the search_from_to method.
77122         (gl_list_search_from, gl_list_search_from_to): New functions.
77123         (gl_list_indexof): Use the indexof_from_to method.
77124         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77125         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77126         (gl_list_search_from, gl_list_search_from_to): New functions.
77127         (gl_list_indexof): Use the indexof_from_to method.
77128         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77129         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77130         gl_array_indexof. Add start_index, end_index arguments.
77131         (gl_array_search_from_to): Renamed from gl_array_search. Add
77132         start_index, end_index arguments.
77133         (gl_array_remove, gl_array_list_implementation): Update.
77134         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77135         gl_carray_indexof. Add start_index, end_index arguments.
77136         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77137         start_index, end_index arguments.
77138         (gl_carray_remove, gl_carray_list_implementation): Update.
77139         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77140         gl_linked_search. Add start_index, end_index arguments.
77141         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77142         start_index, end_index arguments.
77143         (gl_linked_remove): Update.
77144         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77145         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77146         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77147         field to 'size_t'.
77148         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77149         gl_tree_search. Add start_index, end_index arguments.
77150         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77151         start_index, end_index arguments.
77152         (gl_tree_remove): Update.
77153         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77154         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77155         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77156         function.
77157         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77158         gl_tree_search. Add start_index, end_index arguments.
77159         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77160         start_index, end_index arguments.
77161         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77162         Update.
77163         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77164
77165 2006-10-05  Bruno Haible  <bruno@clisp.org>
77166
77167         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77168
77169         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77170         fwriteerror_temp): New declarations.
77171         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77172         (descriptors): New variable.
77173         (cleanup): First, close the descriptors.
77174         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77175         fclose_temp, fwriteerror_temp): New functions.
77176
77177 2006-10-04  Jim Meyering  <jim@meyering.net>
77178
77179         * lib/fts.c (fts_open): Tiny comment change.
77180
77181 2006-10-04  Bruno Haible  <bruno@clisp.org>
77182
77183         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77184         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77185         gl_LOCK_BODY.
77186         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77187         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77188         gl_LOCK_EARLY_BODY.
77189         (gl_LOCK): Require gl_LOCK_BODY.
77190
77191 2006-10-04  Bruno Haible  <bruno@clisp.org>
77192
77193         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77194         (gl_oset_search_atleast): New declaration.
77195         (struct gl_oset_implementation): Add field 'search_atleast'.
77196         (gl_oset_search_atleast): New inline function.
77197         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77198         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77199         (gl_array_oset_implementation): Update.
77200         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77201         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77202         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77203
77204 2006-10-04  Bruno Haible  <bruno@clisp.org>
77205
77206         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77207
77208 2006-10-03  Bruno Haible  <bruno@clisp.org>
77209
77210         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77211         from gl_avltreehash_list_implementation.
77212
77213 2006-10-03  Bruno Haible  <bruno@clisp.org>
77214
77215         * lib/gl_oset.c (gl_oset_add): Fix return type.
77216
77217 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77218
77219         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77220
77221 2006-10-02  Eric Blake  <ebb9@byu.net>
77222
77223         * modules/strnlen (Depends-on): Add extensions.
77224
77225 2006-10-02  Eric Blake  <ebb9@byu.net>
77226
77227         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77228         definition in 2.60+.
77229
77230 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77231
77232         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77233         checks.
77234
77235 2006-10-02  Bruno Haible  <bruno@clisp.org>
77236
77237         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77238         to the AUTOMAKE_OPTIONS.
77239         Reported by Jim Meyering.
77240
77241 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77242
77243         Work around bug in Solaris 10 /proc file system:
77244         /proc/self/fd/NNN/.. isn't the parent directory of
77245         the directory whose file descriptor is NNN.  This needs to
77246         be worked around at run time, not compile time, since a
77247         program might be built on Solaris 8, where things work, and
77248         run on Solaris 10.
77249         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77250         to use the following interface instead:
77251         (OPENAT_BUFFER_SIZE): New macro.
77252         (openat_proc_name): New function.
77253         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77254         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77255         Likewise.
77256         * lib/openat-proc.c: New file.
77257         * modules/openat (Files): Add lib/openat-proc.c.
77258         (Depends-on): Add same-inode, stdbool.
77259         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77260
77261 2006-09-29  Bruno Haible  <bruno@clisp.org>
77262
77263         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77264         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77265         argument. Set stdout_closed before testing for ferror, not after.
77266         (fwriteerror, fwriteerror_no_ebadf): New functions.
77267
77268 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77269
77270         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77271
77272 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77273
77274         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77275         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77276
77277 2006-09-28  Jim Meyering  <jim@meyering.net>
77278
77279         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77280         Include <unistd.h>.
77281
77282 2006-09-28  Bruno Haible  <bruno@clisp.org>
77283
77284         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77285         * modules/linkedhash-list (Depends-on): Likewise.
77286         * modules/rbtreehash-list (Depends-on): Likewise.
77287
77288 2006-09-28  Bruno Haible  <bruno@clisp.org>
77289
77290         * lib/strndup.h: Simplify the redefinition of strndup.
77291         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77292         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77293
77294 2006-09-28  Bruno Haible  <bruno@clisp.org>
77295
77296         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77297         * lib/gl_linkedhash_list.c: Likewise.
77298         * lib/gl_rbtreehash_list.c: Likewise.
77299
77300 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77301
77302         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77303         getaddrinfo.
77304
77305         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77306         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77307         it causes <stdio_ext.h> to cause a compile-time error.
77308         Problem reported by Nelson H. F. Beebe.
77309         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77310         of HAVE_DECL___PENDING.
77311
77312         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77313         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77314         declaration.
77315
77316 2006-09-27  Jim Meyering  <jim@meyering.net>
77317
77318         This file could end up with a definition for a function
77319         named __strndup, rather than rpl_strndup on a system with
77320         incomplete weak_alias support.
77321         * lib/strndup.c (strndup): Rename from __strndup.
77322         Remove #defines that used to map __strndup to strndup.
77323         Don't use K&R prototypes.
77324         Remove LIBC-related code, since this file is not sync'd with glibc.
77325         * lib/strndup.h: Revamp, accordingly.
77326         * m4/strndup.m4: Modernize.
77327
77328 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77329
77330         * modules/savewd (Depends-on): Add 'raise'.
77331         * lib/savewd.c: Include <signal.h>, for 'raise'.
77332
77333 2006-09-26  Jim Meyering  <jim@meyering.net>
77334
77335         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77336         when we detect Darwin 8.7.0's acl_get_file bug.
77337         Rearrange to perform the new (below) run-test while $LIBS
77338         contains any acl-related library.  Set USE_ACL at the end.
77339         (gl_ACL_GET_FILE): New function.
77340
77341 2006-09-26  Eric Blake  <ebb9@byu.net>
77342
77343         * lib/verror.c: Include <config.h> unconditionally.
77344
77345 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77346
77347         * modules/clock-time (Maintainer): Add self.
77348         * modules/getlogin_r (Depends-on): Add extensions.
77349
77350 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77351
77352         * modules/clock-time: New module.
77353         * modules/nanosleep (Depends-on): Add clock-time.
77354         * modules/gethrxtime (Depends-on): Likewise.
77355         * modules/gettime (Depends-on): Likewise.
77356         * modules/settime (Depends-on): Likewise.
77357
77358         * modules/fts-lgpl: Depend on openat.
77359         * modules/mkancesdirs: Depend on savewd.
77360         * modules/mkdir-p: Likewise.
77361
77362 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77363
77364         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77365
77366         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77367         `gl_have_arbitrary_file_name_length_limit' to
77368         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77369         actually works between configure runs.
77370
77371 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77372             Bruno Haible  <bruno@clisp.org>
77373
77374         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77375
77376 2006-09-25  Jim Meyering  <jim@meyering.net>
77377
77378         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77379         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77380
77381 2006-09-25  Eric Blake  <ebb9@byu.net>
77382
77383         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77384         exec's in 2006-09-18 patch when shuffling fds.
77385
77386 2006-09-25  Bruno Haible  <bruno@clisp.org>
77387
77388         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77389         Reported by Jim Meyering.
77390
77391 2006-09-24  Jim Meyering  <jim@meyering.net>
77392
77393         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77394         compare a pointer against a literal "0".  That caused failures with
77395         at least HP-UX's hpcc.
77396
77397 2006-09-22  Simon Josefsson  <jas@extundo.com>
77398
77399         * modules/gc-sha1:
77400         * modules/gc-md4:
77401         * modules/gc-hmac-sha1:
77402         * modules/gc-hmac-md5:
77403         * modules/gc-des:
77404         * modules/gc-arcfour: Distribute more files.
77405
77406 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77407
77408         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77409         (gl_linked_iterator_from_to): Initialize struct completely.
77410         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77411         (gl_tree_iterator_from_to): Likewise
77412         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77413         * lib/gl_array_list.c [lint] (gl_array_iterator)
77414         (gl_array_iterator_from_to): Likewise.
77415         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77416         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77417         (gl_carray_iterator_from_to): Likewise.
77418
77419         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77420         * lib/md4.c (md4_process_block): Remove unused variable.
77421         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77422         parentheses for clarity.
77423
77424 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77425
77426         * modules/bison-i18n (Depends-on): Add gettext.
77427
77428 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77429
77430         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77431         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77432         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77433         also add missing comma that caused broken test.
77434         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77435         stdlib.h, for `abort'.
77436         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77437         variables.
77438         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77439         include unistd.h if present, for `rmdir'.
77440         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77441         variables.
77442         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77443         in the process include standard headers for prototypes.
77444         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77445         gets declared on GNU/Linux.
77446         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77447         unistd.h, for `rmdir'.
77448         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77449
77450         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77451         always true.
77452         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77453
77454         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77455
77456 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77457
77458         * gnulib-tool (func_version): Create output all at once.  This
77459         may help avoid triggering unnecessary SIGPIPEs, and at any
77460         rate it doesn't hurt.
77461
77462 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77463             Bruno Haible  <bruno@clisp.org>
77464
77465         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77466         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77467         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77468
77469         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77470         (gl_FUNC_VASPRINTF): Invoke it.
77471
77472 2006-09-22  Bruno Haible  <bruno@clisp.org>
77473
77474         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77475         getloadavg.c as first argument.
77476
77477 2006-09-22  Bruno Haible  <bruno@clisp.org>
77478
77479         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77480         at the beginning of the gl_INIT macro.
77481         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77482         gl_GETLOADAVG.
77483
77484 2006-09-22  Bruno Haible  <bruno@clisp.org>
77485
77486         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77487         module.
77488         Suggested by Ralf Wildenhues.
77489
77490 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77491
77492         Import this patch from libc:
77493
77494         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77495
77496         * lib/regex_internal.c (re_string_reconstruct): Handle
77497         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77498         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77499         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77500         re_string_context_at.
77501
77502         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77503         now requires it.
77504         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77505         gl_REGEX now does it for us.
77506         (gl_REGEX): Add test taken from
77507         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77508
77509         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77510         Check that large offsets work.  Modernize Autoconf usages.
77511         Prefer "yes" to mean a good thing rather than a bad.
77512         Don't put "#define mkstemp" in config.h, as this might interfere
77513         with standard system headers that "#define mkstemp mkstemp64".
77514
77515         * modules/mkstemp (Depends-on): Add extensions, so that
77516         mkstemp is visible on some platforms.
77517         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77518         (Include): Change to "mkstemp.h" from <stdlib.h>.
77519         (Files): Add mkstemp.h.
77520
77521         * lib/mkstemp.h: New file, since some standard headers
77522         #define mkstemp.
77523         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77524         Include "mkstemp.h".
77525         Make the _LIBC code resemble glibc original more,
77526         e.g., use K&R style.
77527         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77528         (mkstemp): Remove, since mkstemp.h does this for us.
77529         * lib/stdlib--.h: Include mkstemp.h.
77530
77531         Import this patch from libc:
77532
77533         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77534
77535         * lib/tempname.c (__gen_tempname): Change attempts_min
77536         into a macro.  Use preprocessor to decide how to initialize
77537         attempts [Coverity CID 67].
77538
77539 2006-09-20  Bruno Haible  <bruno@clisp.org>
77540
77541         * lib/mkdtemp.c: Import from libc.
77542         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77543                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77544                 attempts_min into a macro.  Use preprocessor to decide how to
77545                 initialize attempts [Coverity CID 67].
77546         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77547                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77548                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77549
77550 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77551
77552         * gnulib-tool (func_exit): New function, to allow to pass the
77553         exit status portably through the trap.  Use everywhere.
77554         (--help, --version): Signal a write error.
77555         (trap): catch SIGPIPE, for write errors.
77556         Exit at the end of the trap, with the correct exit status.
77557
77558 2006-09-19  Karl Berry  <karl@gnu.org>
77559
77560         * doc/gnulib.texi: note about the license texinfo files.
77561
77562 2006-09-19  Eric Blake  <ebb9@byu.net>
77563
77564         * gnulib-tool: Avoid space-tab.
77565
77566 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77567
77568         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77569         that prevented coreutils 6.1 from building.  Problem reported
77570         by Petter Reinholdtsen.
77571
77572 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77573
77574         * gnulib-tool (avoidlist): Fix typo that broke options like
77575         --avoid=lock that are used by coreutils bootstrap.
77576
77577 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77578
77579         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77580         more systematically.
77581
77582 2006-09-18  Jim Meyering  <jim@meyering.net>
77583
77584         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77585
77586 2006-09-18  Bruno Haible  <bruno@clisp.org>
77587
77588         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77589
77590 2006-09-18  Bruno Haible  <bruno@clisp.org>
77591
77592         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77593         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77594         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77595         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77596         * m4/gettext.m4: Require autoconf >= 2.52.
77597         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77598         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77599         of gl_cv_header_inttypes_h.
77600
77601 2006-09-18  Bruno Haible  <bruno@clisp.org>
77602
77603         * lib/javaversion.c: Include configmake.h.
77604
77605 2006-09-18  Bruno Haible  <bruno@clisp.org>
77606
77607         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77608         avoid that the while loops be executed in a subshell.
77609
77610 2006-09-18  Bruno Haible  <bruno@clisp.org>
77611
77612         * MODULES.html.sh (func_module): Break long lines.
77613         Suggested by Bruce Korb <bkorb@gnu.org>.
77614
77615 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77616
77617         Speed up by a factor of 1.12.
77618         * gnulib-tool (nl): New variable.
77619         (func_import): Rewrite include directive extraction to only read each
77620         directive once.
77621
77622 2006-09-17  Bruno Haible  <bruno@clisp.org>
77623
77624         * modules/javaversion (Makefile.am): Remove DEFS setting.
77625         (Depends-on): Add configmake, for PKGDATADIR definition.
77626
77627 2006-09-17  Bruno Haible  <bruno@clisp.org>
77628
77629         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77630
77631 2006-09-17  Bruno Haible  <bruno@clisp.org>
77632
77633         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77634         (func_modules_transitive_closure, func_modules_add_dummy,
77635         func_modules_to_filelist, func_import, func_create_testdir,
77636         func_create_megatestdir, ...): Use it wherever possible.
77637         Suggested by Ralf Wildenhues.
77638
77639 2006-09-16  Karl Berry  <karl@gnu.org>
77640
77641         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77642         to avoid sectioning errors.
77643         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77644         [ifinfo]: blank line after @center-ed titles.
77645         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77646         Spell FSF address consistently with others.
77647         (These changes approved by rms.)
77648
77649 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77650
77651         Speed up by a factor of 1.61.
77652         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77653         already checked module names again.
77654
77655 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77656
77657         Speed up by a factor of 1.13.
77658         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77659         for new_files, and the input to func_add_or_update.
77660
77661 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77662
77663         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77664         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77665
77666 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77667
77668         * modules/mkancesdirs (Depends-on): Add fcntl.
77669         * modules/savewd: New file.
77670         * MODULES.html.sh (File system functions): Add savewd.
77671
77672         * modules/configmake (Makefile.am): Add support for the
77673         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77674
77675 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77676
77677         * m4/savewd.m4: New file.
77678
77679 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77680
77681         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77682         (dirchownmod): New arg FD.  All callers changed.
77683         Use FD rather than opening the directory ourself, as opening is
77684         now the caller's responsibility.
77685         * lib/dirchownmod.h: Likewise.
77686         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77687         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77688         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77689         (test_dir): Remove.
77690         (mkancesdirs): Return length of prefix of FILE that has already
77691         been made, or -2 if there is a child doing the work.  Redo
77692         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77693         ".", and treat ".." specially since it might stray back into
77694         already-created areas.  Use a subprocess if necessary.  New arg
77695         WD; all users changed.  MAKE_DIR function should now return 1
77696         if it creates a directory that is not readable.  Return -2 if
77697         a child process is spun off.
77698         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77699         Adjust signature to match code.
77700         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77701         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77702         all users changed.
77703         * lib/savewd.c, lib/savewd.h: New files.
77704
77705 2006-09-15  Jim Meyering  <jim@meyering.net>
77706
77707         * modules/rename-dest-slash: New module.
77708         * MODULES.html.sh (posix_compat): Add it here.
77709
77710         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77711
77712 2006-09-15  Jim Meyering  <jim@meyering.net>
77713
77714         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77715         file.
77716
77717         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77718
77719 2006-09-15  Jim Meyering  <jim@meyering.net>
77720
77721         * lib/rename-dest-slash.c (has_trailing_slash): Use
77722         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77723         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77724         test before testing whether SRC is a directory.
77725         Suggestions from Bruno Haible.
77726
77727         Avoid a warning about an unused variable.
77728         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77729         into the #ifdef block where it's used.
77730
77731         * lib/rename-dest-slash.c: New file.
77732
77733 2006-09-14  Bruno Haible  <bruno@clisp.org>
77734
77735         * lib/allocsa.c: Include <config.h> unconditionally.
77736         * lib/asnprintf.c: Likewise.
77737         * lib/asprintf.c: Likewise.
77738         * lib/c-strcasecmp.c: Likewise.
77739         * lib/c-strcasestr.c: Likewise.
77740         * lib/c-strncasecmp.c: Likewise.
77741         * lib/c-strstr.c: Likewise.
77742         * lib/classpath.c: Likewise.
77743         * lib/clean-temp.c: Likewise.
77744         * lib/concatpath.c: Likewise.
77745         * lib/copy-file.c: Likewise.
77746         * lib/csharpcomp.c: Likewise.
77747         * lib/csharpexec.c: Likewise.
77748         * lib/execute.c: Likewise.
77749         * lib/fatal-signal.c: Likewise.
77750         * lib/findprog.c: Likewise.
77751         * lib/fwriteerror.c: Likewise.
77752         * lib/gl_array_list.c: Likewise.
77753         * lib/gl_array_oset.c: Likewise.
77754         * lib/gl_avltree_list.c: Likewise.
77755         * lib/gl_avltree_oset.c: Likewise.
77756         * lib/gl_avltreehash_list.c: Likewise.
77757         * lib/gl_carray_list.c: Likewise.
77758         * lib/gl_linked_list.c: Likewise.
77759         * lib/gl_linkedhash_list.c: Likewise.
77760         * lib/gl_list.c: Likewise.
77761         * lib/gl_oset.c: Likewise.
77762         * lib/gl_rbtree_list.c: Likewise.
77763         * lib/gl_rbtree_oset.c: Likewise.
77764         * lib/gl_rbtreehash_list.c: Likewise.
77765         * lib/imaxabs.c: Likewise.
77766         * lib/imaxdiv.c: Likewise.
77767         * lib/javacomp.c: Likewise.
77768         * lib/javaexec.c: Likewise.
77769         * lib/javaversion.c: Likewise.
77770         * lib/linebreak.c: Likewise.
77771         * lib/localcharset.c: Likewise.
77772         * lib/lock.c: Likewise.
77773         * lib/mbchar.c: Likewise.
77774         * lib/mbswidth.c: Likewise.
77775         * lib/mkdtemp.c: Likewise.
77776         * lib/pipe.c: Likewise.
77777         * lib/printf-args.c: Likewise.
77778         * lib/printf-parse.c: Likewise.
77779         * lib/progname.c: Likewise.
77780         * lib/progreloc.c: Likewise.
77781         * lib/readlink.c: Likewise.
77782         * lib/sh-quote.c: Likewise.
77783         * lib/stpcpy.c: Likewise.
77784         * lib/stpncpy.c: Likewise.
77785         * lib/strcasecmp.c: Likewise.
77786         * lib/strcasestr.c: Likewise.
77787         * lib/strcspn.c: Likewise.
77788         * lib/striconv.c: Likewise.
77789         * lib/strncasecmp.c: Likewise.
77790         * lib/strnlen1.c: Likewise.
77791         * lib/strstr.c: Likewise.
77792         * lib/strtok_r.c: Likewise.
77793         * lib/tls.c: Likewise.
77794         * lib/tmpdir.c: Likewise.
77795         * lib/unicodeio.c: Likewise.
77796         * lib/unsetenv.c: Likewise.
77797         * lib/vasnprintf.c: Likewise.
77798         * lib/vasprintf.c: Likewise.
77799         * lib/wait-process.c: Likewise.
77800         * lib/xallocsa.c: Likewise.
77801         * lib/xsetenv.c: Likewise.
77802         * lib/xstriconv.c: Likewise.
77803
77804 2006-09-13  Simon Josefsson  <jas@extundo.com>
77805
77806         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77807         that internally, suggested by Ralf Wildenhues
77808         <Ralf.Wildenhues@gmx.de>.
77809
77810 2006-09-13  Simon Josefsson  <jas@extundo.com>
77811
77812         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77813         @LIBOBJS@.
77814         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77815
77816 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77817
77818         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77819         longer worry about uses that don't define HAVE_CONFIG_H.
77820         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77821         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77822         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77823         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77824         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77825         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77826         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77827         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77828         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77829         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77830         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77831         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77832         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77833         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77834         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77835         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77836         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77837         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77838         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77839         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77840         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77841         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77842         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77843         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77844         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77845         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77846         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77847         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77848         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77849         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77850         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77851         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77852         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77853         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77854         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77855         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77856         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77857         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77858         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77859         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77860         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77861         Likewise.
77862
77863 2006-09-13  Eric Blake  <ebb9@byu.net>
77864
77865         * lib/getopt.c: Fix typo in last commit.
77866
77867 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77868
77869         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77870         dgettext.
77871
77872 2006-09-12  Jim Meyering  <jim@meyering.net>
77873
77874         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77875         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77876         Reported by Nelson H. F. Beebe.
77877
77878 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77879
77880         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77881         program_invocation_name and program_invocation_short_name are
77882         initialized.
77883         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77884         and program_invocation_short_name to argp.h, so they are visible
77885         to user programs.
77886         * lib/argp.h: Likewise
77887
77888 2006-09-10  Bruno Haible  <bruno@clisp.org>
77889
77890         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77891         m4/inttypes_h.m4, m4/uintmax_t.m4.
77892
77893 2006-09-10  Bruno Haible  <bruno@clisp.org>
77894
77895         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77896         gl_AC_TYPE_UINTMAX_T.
77897
77898 2006-09-10  Bruno Haible  <bruno@clisp.org>
77899
77900         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77901
77902 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77903
77904         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77905         convention.  Text proposed by Bruno Haible.
77906         (struct argp_option): Document the use of N_() wrappers.
77907
77908         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77909         '\v', and translate the two parts separately, instead of feeding
77910         the whole string to gettext.  This allows to exclude
77911         '\v' from the strings visible to the translator by writing doc
77912         strings as N_("..") "\v" N_("..").
77913
77914 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77915
77916         * config/srclist.txt: Undo latest change; the bug was fixed.
77917
77918 2006-09-09  Bruno Haible  <bruno@clisp.org>
77919
77920         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77921         assignments if building a library without libtool.
77922         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77923         in func_emit_lib_Makefile_am.
77924         (func_import): When building a static library libfoo.a, arrange to
77925         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77926         (func_create_testdir): Likewise.
77927         * modules/gc (configure.ac, Makefile.am): If building statically,
77928         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77929         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77930         * modules/striconv (configure.ac, Makefile.am): Likewise.
77931         Based on a suggestion by Ralf Wildenhues.
77932
77933 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77936         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77937         Also:
77938
77939         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77940         Add year_2050_test to catch glibc bug 2821
77941         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77942
77943         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77944         Prefer #ifdef to #if.
77945
77946         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77947         Return from 'main' instead of calling 'exit'.
77948
77949 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77950
77951         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77952         returned the maximum time_t value rather than (time_t) -1.
77953         Problem originally reported by William Bardwell
77954         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77955
77956         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77957         Moved to here ...
77958         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77959         ... from here.
77960
77961 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77964         2821 is fixed.
77965
77966 2006-09-08  Jim Meyering  <jim@meyering.net>
77967
77968         Don't make generated files read-only.  That would bother too many
77969         people.  However, do retain the ability to work when targets are
77970         read-only: remove the destination and temporary files before writing
77971         them (when generated via sed or echo), or by using the -f option for
77972         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77973         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77974         * modules/byteswap, modules/configmake, modules/fcntl:
77975         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77976         * modules/localcharset, modules/netinet_in, modules/poll:
77977         * modules/stdbool, modules/stdint, modules/sys_select:
77978         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77979
77980 2006-09-08  Jim Meyering  <jim@meyering.net>
77981
77982         Avoid new build failure on FreeBSD 6.0.
77983         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77984         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77985         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77986
77987 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77988
77989         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77990
77991 2006-09-07  Jim Meyering  <jim@meyering.net>
77992
77993         Fix global typo in last change: use chmod u-w, not chmod u-x.
77994         Spotted by Paul Eggert and Bruce Korb.
77995         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77996         * modules/byteswap, modules/configmake, modules/fcntl:
77997         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77998         * modules/localcharset, modules/netinet_in, modules/poll:
77999         * modules/stdbool, modules/stdint, modules/sys_select:
78000         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78001
78002 2006-09-06  Jim Meyering  <jim@meyering.net>
78003
78004         Make generated files be read-only.
78005         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78006         Ensure that each generated file is now read-only.
78007         * modules/argz: Likewise.
78008         * modules/arpa_inet: Likewise.
78009         * modules/byteswap: Likewise.
78010         * modules/configmake: Likewise.
78011         * modules/fcntl: Likewise.
78012         * modules/fnmatch: Likewise.
78013         * modules/getopt: Likewise.
78014         * modules/glob: Likewise.
78015         * modules/inttypes: Likewise.
78016         * modules/netinet_in: Likewise.
78017         * modules/poll: Likewise.
78018         * modules/stdbool: Likewise.
78019         * modules/stdint: Likewise.
78020         * modules/sys_select: Likewise.
78021         * modules/sys_socket: Likewise.
78022         * modules/sys_stat: Likewise.
78023         * modules/sysexits: Likewise.
78024         * modules/localcharset: Same as above, but continue using temporary
78025         file named "t-$@" (why different?) rather than the "$@-t" used
78026         everywhere else.
78027
78028         * modules/sysexits (Makefile.am): Replace literal occurrences
78029         of "sysexit.h" more readable, and more consistent, "$@".
78030
78031 2006-09-06  Bruno Haible  <bruno@clisp.org>
78032
78033         * modules/striconv: New file.
78034         * modules/xstriconv: New file.
78035         * MODULES.html.sh (Internationalization functions): Add striconv,
78036         xstriconv.
78037
78038 2006-09-06  Bruno Haible  <bruno@clisp.org>
78039
78040         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78041         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78042         not using libtool correctly.
78043
78044 2006-09-06  Bruno Haible  <bruno@clisp.org>
78045
78046         * lib/striconv.h: New file.
78047         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78048         iconvstring.c.
78049         * lib/xstriconv.h: New file.
78050         * lib/xstriconv.c: New file.
78051
78052 2006-09-06  Bruno Haible  <bruno@clisp.org>
78053
78054         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78055         lib_..._LDFLAGS.
78056
78057 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78058
78059         * lib/argz_.h: Sync from Libtool.
78060
78061         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78062                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78063
78064         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78065
78066 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78067
78068         * modules/trim: New file.
78069
78070 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78071
78072         * lib/trim.h: New file.
78073         * lib/trim.c: New file.
78074
78075 2006-09-05  Bruno Haible  <bruno@clisp.org>
78076
78077         * MODULES.html.sh (String handling): Add trim.
78078
78079 2006-09-04  Karl Berry  <karl@gnu.org>
78080
78081         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78082         until next release.
78083
78084 2006-09-03  Bruno Haible  <bruno@clisp.org>
78085
78086         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78087         correctly.
78088
78089 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78090
78091         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78092         not gl_GETLOADAVG.  Omit unneeded semicolons.
78093         Problems reported by Ralf Wildenhues in
78094         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78095         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78096         at the end, which is the usual gnulib style.
78097
78098         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78099         of doing all the work ourselves.
78100         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78101         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78102
78103 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78104
78105         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78106         Problem reported by Ralf Wildenhues in
78107         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78108
78109         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78110         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78111
78112 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78115         yesterday's patch by changing test -n to test -z.
78116
78117 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78118
78119         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78120         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78121         the former is now obsolescent.
78122
78123         * modules/chdir-long (Depends-on): Add fcntl.
78124
78125 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78126
78127         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78128         obsolescent, and programs should use gnulib instead.
78129         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78130         but with prefixes changed.
78131
78132 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78133
78134         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78135         or stdbool.h, because they might not exist while configuring.
78136
78137         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78138         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78139         does that for us.
78140         (O_DIRECTORY): Remove.
78141
78142 2006-08-31  Eric Blake  <ebb9@byu.net>
78143
78144         * gnulib-tool: Don't let emacs change spaces to TAB.
78145
78146 2006-08-31  Bruno Haible  <bruno@clisp.org>
78147
78148         * gnulib-tool: When calling func_import more than once, do it in a
78149         subshell.
78150         Reported by Eric Blake <ebb9@byu.net>.
78151
78152 2006-08-31  Bruno Haible  <bruno@clisp.org>
78153
78154         * gnulib-tool (nl): Remove variable.
78155         (sed_transform_lib_file): Use more robust test for config-h module.
78156         (func_import): Fix typo in 2006-08-25 patch.
78157
78158 2006-08-31  Bruno Haible  <bruno@clisp.org>
78159
78160         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78161         specified, augment Makefile.am variables instead of assigning them.
78162
78163 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78164
78165         Work around a bug in both the Linux and SunOS 64-bit kernels:
78166         nanosleep mishandles sleeps for longer than 2**31 seconds.
78167         Problem reported by Frank v Waveren in
78168         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78169         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78170         Check for nanosleep bug.
78171         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78172
78173 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78174
78175         Work around a bug in both the Linux and SunOS 64-bit kernels:
78176         nanosleep mishandles sleeps for longer than 2**31 seconds.
78177         Problem reported by Frank v Waveren in
78178         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78179         * lib/nanosleep.c (BILLION): New constant.
78180         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78181         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78182         implementation.
78183
78184 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78185
78186         * modules/nanosleep (Depends-on): Add gettime.
78187
78188 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78189         and Simon Josefsson  <jas@extundo.com>
78190         and Oskar Liljeblad  <oskar@osk.mine.nu>
78191
78192         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78193         * gnulib-tool (func_import): New license type 'unmodifiable license
78194         text'.
78195         * modules/fdl: Use it.  Longer description.
78196         * module/gpl, module/lgpl: New files.
78197
78198 2006-08-30  Jim Meyering  <jim@meyering.net>
78199
78200         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78201         shadowing the parameter.
78202
78203 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78204
78205         Sync from Libtool:
78206
78207         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78208
78209         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78210         sharing with gnulib.  Report by Eric Blake.
78211
78212 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78213
78214         * modules/isapipe: New file.
78215         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78216
78217 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78218
78219         * modules/configmake (Makefile.am): Add a comment, and omit
78220         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78221         by Bruno Haible.
78222
78223 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78224
78225         * m4/isapipe.m4: New file.
78226
78227 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78228
78229         * lib/isapipe.c, lib/isapipe.h: New files.
78230
78231 2006-08-29  Jim Meyering  <jim@meyering.net>
78232
78233         * modules/configmake (Makefile.am): Make configmake.h depend on
78234         Makefile.  Otherwise, a stale configmake.h could hang around.
78235
78236 2006-08-29  Eric Blake  <ebb9@byu.net>
78237
78238         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78239         resolution of upstream bug 3044.
78240
78241 2006-08-29  Bruno Haible  <bruno@clisp.org>
78242
78243         * modules/localcharset (Depends-on): Add configmake.
78244         (Makefile.am): Remove setting of LIBDIR through DEFS.
78245
78246 2006-08-29  Bruno Haible  <bruno@clisp.org>
78247
78248         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78249         defined.
78250
78251 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78252
78253         * modules/fcntl: New file.
78254         * modules/chdir-safer (Depends-on): Add fcntl.
78255         * modules/fts: Likewise.
78256         * modules/mkdir-p: Likewise.
78257
78258         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78259         This undoes the most recent change, since we're now addressing the
78260         problem in a different way.
78261
78262         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78263         into output, since the output might be called Makefile.am even
78264         if $makefile_name is something different.
78265         (func_import): Use $makefile_am rather than
78266         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78267         empty.
78268
78269         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78270
78271 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78274         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78275         recent change to stdint.m4, since we're now addressing the problem in a
78276         different way.
78277
78278 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78279
78280         * m4/fcntl_h.m4: New file.
78281
78282 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78283
78284         * lib/fcntl_.h: New file.
78285         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78286         the fcntl module.
78287         * lib/dirchownmod.c: Likewise.
78288         * lib/fts.c: Likewise.
78289
78290         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78291         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78292         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78293         just before including <inttypes.h>, to avoid circular inclusion.
78294
78295 2006-08-28  Jim Meyering  <jim@meyering.net>
78296
78297         * doc/visibility.texi: Actually read and correct the grammar of the
78298         sentence affected by yesterday's change.
78299
78300 2006-08-28  Eric Blake  <ebb9@byu.net>
78301
78302         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78303         needs wrapper.
78304
78305 2006-08-28  Eric Blake  <ebb9@byu.net>
78306
78307         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78308
78309 2006-08-28  Eric Blake  <ebb9@byu.net>
78310
78311         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78312
78313 2006-08-28  Bruno Haible  <bruno@clisp.org>
78314
78315         * modules/c-strstr: New file, from GNU gettext.
78316         * MODULES.html.sh (String handling): Add c-strstr.
78317
78318 2006-08-28  Bruno Haible  <bruno@clisp.org>
78319
78320         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78321         macros.
78322         Reported by Eric Blake.
78323
78324 2006-08-28  Bruno Haible  <bruno@clisp.org>
78325
78326         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78327         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78328         * lib/vasprintf.c: Include errno.h, limits.h.
78329         (EOVERFLOW): New fallback definition.
78330         (vasprintf): Test here whether the string length is > INT_MAX.
78331         * lib/vsnprintf.c: Include errno.h, limits.h.
78332         (EOVERFLOW): New fallback definition.
78333         (vsnprintf): Fix bug when generated string was too long for the buffer.
78334         Test here whether the string length is > INT_MAX.
78335
78336 2006-08-28  Bruno Haible  <bruno@clisp.org>
78337
78338         * lib/inttypes_.h (SCNX*): Remove definitions.
78339         Reported by Eric Blake.
78340
78341 2006-08-28  Bruno Haible  <bruno@clisp.org>
78342
78343         * lib/c-strstr.h: New file, from GNU gettext.
78344         * lib/c-strstr.c: New file, from GNU gettext.
78345
78346 2006-08-28  Bruno Haible  <bruno@clisp.org>
78347
78348         * gnulib-tool: Reorder some statements.
78349
78350 2006-08-28  Bruno Haible  <bruno@clisp.org>
78351
78352         * gnulib-tool: New option --makefile-name.
78353         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78354         $makefile_name.
78355         (func_import): Write $makefile_name to the cache file, and read it from
78356         there unless explicitly specified. Use $makefile_name as file name
78357         instead of Makefile.am. Adjust the recommendations accordingly.
78358
78359 2006-08-28  Bruno Haible  <bruno@clisp.org>
78360
78361         * gnulib-tool (func_verify_module): Check against misapplying patch.
78362
78363 2006-08-28  Bruno Haible  <bruno@clisp.org>
78364
78365         * gnulib-tool (func_relativize, func_relconcat): New functions.
78366         Give an error if --local-dir is given with --update.
78367         Remove trailing slashes from $local_gnulib_dir.
78368         (func_import): Store the relativized $local_gnulib_dir in
78369         gnulib-cache.m4, and read it from there if not specified explicitly.
78370
78371 2006-08-28  Bruno Haible  <bruno@clisp.org>
78372
78373         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78374         is the current directory. Respect also $local_gnulib_dir.
78375
78376 2006-08-28  Bruno Haible  <bruno@clisp.org>
78377             Simon Josefsson  <jas@extundo.com>
78378
78379         BeOS portability.
78380         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78381
78382 2006-08-27  Jim Meyering  <jim@meyering.net>
78383
78384         * doc/visibility.texi: Remove duplicate word: "pointer".
78385
78386 2006-08-26  Bruno Haible  <bruno@clisp.org>
78387
78388         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78389         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78390         (Makefile.am): Create inttypes.h from inttypes_.h.
78391         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78392
78393         * modules/imaxabs: New file.
78394
78395         * modules/imaxdiv: New file.
78396
78397 2006-08-26  Bruno Haible  <bruno@clisp.org>
78398
78399         * m4/inttypes.m4: New file.
78400         * m4/_inttypes_h.m4: Remove file.
78401         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78402         PRI_MACROS_BROKEN.
78403         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78404
78405         * m4/imaxabs.m4: New file.
78406
78407         * m4/imaxdiv.m4: New file.
78408
78409 2006-08-26  Bruno Haible  <bruno@clisp.org>
78410
78411         * lib/inttypes_.h: New file.
78412         * lib/inttypes.h: Remove file.
78413         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78414
78415         * lib/imaxabs.c: New file.
78416
78417         * lib/imaxdiv.c: New file.
78418
78419 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78420
78421         New config-h module, so that "make" output needn't be cluttered
78422         by -DHAVE_CONFIG_H.
78423         * MODULES.html.sh (Support for building libraries and executables):
78424         Add config-h.
78425         * modules/config-h: New file.
78426         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78427         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78428         the config-h module is used.
78429
78430         New configmake module, so that "make" output needn't be cluttered
78431         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78432         * MODULES.html.sh (Support for building libraries and executables):
78433         Add configmake.
78434         * modules/configmake: New file.
78435
78436 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78437
78438         * m4/config-h.m4: New file.
78439
78440 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         * config/srclist.txt: Add elisp-comp.
78443
78444 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78445
78446         * MODULES.html.sh (Support for building libraries and executables):
78447         Add elisp-comp.
78448         * build-aux/elisp-comp: New file.
78449         * modules/elisp-comp: New file.
78450
78451 2006-08-24  Bruno Haible  <bruno@clisp.org>
78452
78453         * gnulib-tool (func_create_testdir): Use non-default values of
78454         sourcebase and m4base.
78455
78456 2006-08-24  Bruno Haible  <bruno@clisp.org>
78457
78458         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78459         HTML structure.
78460
78461 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78462
78463         * modules/openat (Depends-on): Add lchown.
78464
78465 2006-08-23  Bruno Haible  <bruno@clisp.org>
78466
78467         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78468         of gl_LOCK_EARLY instead of gl_LOCK.
78469
78470 2006-08-23  Bruno Haible  <bruno@clisp.org>
78471
78472         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78473         on OSF/1 to no.
78474         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78475
78476 2006-08-23  Bruno Haible  <bruno@clisp.org>
78477
78478         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78479         as unusable.
78480
78481         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78482         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78483         (gl_LOCK): New macro.
78484
78485 2006-08-22  Simon Josefsson  <jas@extundo.com>
78486
78487         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78488         to md5 module.
78489
78490 2006-08-22  Simon Josefsson  <jas@extundo.com>
78491
78492         * MODULES.html.sh: Add "Support for maintaining and release
78493         projects".
78494
78495         * build-aux/gnupload: New file, from coreutils.
78496
78497 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78498
78499         Avoid the need for AC_LIBSOURCES in m4 macros.
78500         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78501         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78502         * modules/check-version (EXTRA_DIST): Add check-version.h.
78503         * modules/crc (EXTRA_DIST): Add crc.h.
78504         * modules/des (EXTRA_DIST): Add des.h.
78505         * modules/gc (EXTRA_DIST): Add gc.h.
78506         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78507         * modules/getline (EXTRA_DIST): Add getline.h.
78508         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78509         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78510         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78511         * modules/md2 (EXTRA_DIST): Add md2.h.
78512         * modules/md4 (EXTRA_DIST): Add md4.h.
78513         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78514         * modules/read-file (EXTRA_DIST): Add read-file.h.
78515         * modules/readline (EXTRA_DIST): Add readline.h.
78516         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78517         rijndael-api-fst.h.
78518
78519 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         * m4/rijndael.m4 (gl_ARCFOUR):
78522         * m4/arctwo.m4 (gl_ARCTWO):
78523         * m4/check-version.m4 (gl_CHECK_VERSION):
78524         * m4/crc.m4 (gl_CRC):
78525         * m4/des.m4 (gl_DES):
78526         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78527         * m4/gc.m4 (gl_GC):
78528         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78529         * m4/getline.m4 (gl_FUNC_GETLINE):
78530         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78531         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78532         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78533         * m4/md2.m4 (gl_MD2):
78534         * m4/md4.m4 (gl_MD4):
78535         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78536         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78537         * m4/readline.m4 (gl_FUNC_READLINE):
78538         * m4/rijndael.m4 (gl_RIJNDAEL):
78539         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78540         to get the necessary .h files and whatnot.
78541
78542 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78545         gnulib rather than the other way around.
78546         * config/srclistvars.sh (COREUTILS): Remove.
78547
78548 2006-08-22  Jim Meyering  <jim@meyering.net>
78549
78550         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78551
78552         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78553
78554 2006-08-22  Eric Blake  <ebb9@byu.net>
78555
78556         * modules/regexprops-generic: New file.
78557         * MODULES.html.sh (Support for building documentation): List it.
78558
78559 2006-08-22  Eric Blake  <ebb9@byu.net>
78560
78561         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78562         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78563         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78564         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78565
78566 2006-08-22  Bruno Haible  <bruno@clisp.org>
78567
78568         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78569         and lib_LTLIBRARIES like the other lib_* variables.
78570
78571 2006-08-22  Bruno Haible  <bruno@clisp.org>
78572
78573         * build-aux/x-to-1.in: New file, from GNU gettext.
78574
78575 2006-08-22  Bruno Haible  <bruno@clisp.org>
78576
78577         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78578         <utmpx.h> exists.
78579
78580 2006-08-22  Bruno Haible  <bruno@clisp.org>
78581
78582         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78583         <utmpx.h> exists.
78584
78585 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78586
78587         BeOS portability.
78588         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78589         exist.
78590         Problem reported by Bruno Haible.
78591
78592 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78593
78594         Avoid the need for AC_LIBSOURCES in m4 macros.
78595         * modules/acl (EXTRA_DIST): Add acl.h.
78596         * modules/argmatch (Files): Add m4/argmatch.m4.
78597         (configure.ac): Add gl_ARGMATCH.
78598         (EXTRA_DIST): Renamed from lib_SOURCES, for
78599         consistency with the other modules.  Remove argmatch.c.
78600         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78601         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78602         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78603         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78604         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78605         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78606         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78607         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78608         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78609         * modules/closeout (EXTRA_DIST): Add closeout.h.
78610         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78611         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78612         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78613         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78614         dirname.h; remove basename.c and stripslash.c.
78615         * modules/exclude (EXTRA_DIST): Add exclude.h.
78616         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78617         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78618         * modules/file-type (EXTRA_DIST): Add file-type.h.
78619         * modules/filemode (EXTRA_DIST): Add filemode.h.
78620         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78621         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78622         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78623         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78624         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78625         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78626         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78627         * modules/getdate (EXTRA_DIST): Add getdate.c.
78628         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78629         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78630         * modules/getpass (EXTRA_DIST): Add getpass.h.
78631         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78632         * modules/group-member (EXTRA_DIST): Add group-member.h.
78633         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78634         * modules/hash (EXTRA_DIST): Add hash.h.
78635         * modules/human (EXTRA_DIST): Add human.h.
78636         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78637         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78638         * modules/lchown (EXTRA_DIST): Add lchown.h.
78639         * modules/long-options (EXTRA_DIST): Add long-options.h.
78640         * modules/lstat (EXTRA_DIST): Add lstat.h.
78641         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78642         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78643         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78644         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78645         * modules/memxor (EXTRA_DIST): Add memxor.h.
78646         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78647         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78648         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78649         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78650         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78651         * modules/physmem (EXTRA_DIST): Add physmem.h.
78652         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78653         * modules/posixver (EXTRA_DIST): Add posixver.h.
78654         * modules/quote (EXTRA_DIST): Add quote.h.
78655         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78656         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78657         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78658         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78659         regex_internal.h regexec.c.
78660         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78661         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78662         * modules/same (EXTRA_DIST): Add same.h.
78663         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78664         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78665         * modules/savedir (EXTRA_DIST): Add savedir.h.
78666         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78667         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78668         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78669         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78670         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78671         * modules/strdup (EXTRA_DIST): Add strdup.h.
78672         * modules/strftime (EXTRA_DIST): Add strftime.h.
78673         * modules/strndup (EXTRA_DIST): Add strndup.h.
78674         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78675         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78676         * modules/time_r (EXTRA_DIST): Add time_r.h.
78677         * modules/timespec (EXTRA_DIST): Add timespec.h.
78678         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78679         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78680         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78681         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78682         * modules/userspec (EXTRA_DIST): Add userspec.h.
78683         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78684         * modules/utimens (EXTRA_DIST): Add utimens.h.
78685         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78686         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78687         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78688         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78689         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78690         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78691         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78692         * modules/yesno (EXTRA_DIST): Add yesno.h.
78693
78694 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78695
78696         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78697
78698         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78699         * m4/dev-ino.m4, same-inode.m4: Remove.
78700
78701         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78702         * m4/acl.m4 (AC_FUNC_ACL):
78703         * m4/backupfile.m4 (gl_BACKUPFILE):
78704         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78705         * m4/canon-host.m4 (gl_CANON_HOST):
78706         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78707         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78708         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78709         * m4/cloexec.m4 (gl_CLOEXEC):
78710         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78711         * m4/closeout.m4 (gl_CLOSEOUT):
78712         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78713         * m4/dirname.m4 (gl_DIRNAME):
78714         * m4/exclude.m4 (gl_EXCLUDE):
78715         * m4/exitfail.m4 (gl_EXITFAIL):
78716         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78717         * m4/file-type.m4 (gl_FILE_TYPE):
78718         * m4/filemode.m4 (gl_FILEMODE):
78719         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78720         * m4/fpending.m4 (gl_FUNC_FPENDING):
78721         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78722         * m4/fts.m4 (gl_FUNC_FTS):
78723         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78724         * m4/getdate.m4 (gl_GETDATE):
78725         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78726         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78727         * m4/getpass.m4 (gl_FUNC_GETPASS):
78728         * m4/gettime.m4 (gl_GETTIME):
78729         * m4/getugroups.m4 (gl_GETUGROUPS):
78730         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78731         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78732         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78733         * m4/hash.m4 (gl_HASH):
78734         * m4/idcache.m4 (gl_IDCACHE):
78735         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78736         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78737         * m4/long-options.m4 (gl_LONG_OPTIONS):
78738         * m4/lstat.m4 (gl_FUNC_LSTAT):
78739         * m4/md5.m4 (gl_MD5):
78740         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78741         * m4/memcoll.m4 (gl_MEMCOLL):
78742         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78743         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78744         * m4/memxor.m4 (gl_MEMXOR):
78745         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78746         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78747         * m4/modechange.m4 (gl_MODECHANGE):
78748         * m4/mountlist.m4 (gl_MOUNTLIST):
78749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78750         * m4/openat.m4 (gl_FUNC_OPENAT):
78751         * m4/pathmax.m4 (gl_PATHMAX):
78752         * m4/physmem.m4 (gl_PHYSMEM):
78753         * m4/posixtm.m4 (gl_POSIXTM):
78754         * m4/posixver.m4 (gl_POSIXVER):
78755         * m4/quote.m4 (gl_QUOTE):
78756         * m4/quotearg.m4 (gl_QUOTEARG):
78757         * m4/readtokens.m4 (gl_READTOKENS):
78758         * m4/readutmp.m4 (gl_READUTMP):
78759         * m4/regex.m4 (gl_REGEX):
78760         * m4/safe-read.m4 (gl_SAFE_READ):
78761         * m4/safe-write.m4 (gl_SAFE_WRITE):
78762         * m4/same.m4 (gl_SAME):
78763         * m4/save-cwd.m4 (gl_SAVE_CWD):
78764         * m4/savedir.m4 (gl_SAVEDIR):
78765         * m4/settime.m4 (gl_SETTIME):
78766         * m4/sha1.m4 (gl_SHA1):
78767         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78768         * m4/stat-macros.m4 (gl_STAT_MACROS):
78769         * m4/stat-time.m4 (gl_STAT_TIME):
78770         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78771         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78772         * m4/strdup.m4 (gl_FUNC_STRDUP):
78773         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78774         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78775         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78776         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78777         * m4/time_r.m4 (gl_TIME_R):
78778         * m4/timespec.m4 (gl_TIMESPEC):
78779         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78780         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78781         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78782         * m4/userspec.m4 (gl_USERSPEC):
78783         * m4/utimecmp.m4 (gl_UTIMECMP):
78784         * m4/utimens.m4 (gl_UTIMENS):
78785         * m4/xalloc.m4 (gl_XALLOC):
78786         * m4/xgetcwd.m4 (gl_XGETCWD):
78787         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78788         * m4/xreadlink.m4 (gl_XREADLINK):
78789         * m4/xstrtod.m4 (gl_XSTRTOD):
78790         * m4/yesno.m4 (gl_YESNO):
78791         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78792         to get the necessary .h files and whatnot.
78793
78794 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78795             Bruno Haible  <bruno@clisp.org>
78796
78797         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78798         /bin/sh understanding of '!' conditional negation.
78799
78800 2006-08-21  Jim Meyering  <jim@meyering.net>
78801
78802         * modules/openat (Depends-on): Really alphabetize.
78803
78804         * modules/acl (Depends-on): Add error and quote.
78805
78806         * check-module (find_included_lib_files): Add at-func.c to the
78807         ok-to-include-more-than-once white list.
78808
78809         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78810
78811 2006-08-21  Bruno Haible  <bruno@clisp.org>
78812
78813         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78814         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78815         Reported by Martin Lambers <marlam@marlam.de>.
78816
78817 2006-08-21  Bruno Haible  <bruno@clisp.org>
78818
78819         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78820         specify an installation location, don't emit a noinst_LIBRARIES or
78821         noinst_LTLIBRARIES assignment.
78822
78823 2006-08-21  Bruno Haible  <bruno@clisp.org>
78824
78825         BeOS portability.
78826         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78827         BeOS has mbrtowc() but no <wctype.h>.
78828
78829 2006-08-21  Bruno Haible  <bruno@clisp.org>
78830
78831         BeOS portability.
78832         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78833         exist.
78834
78835 2006-08-21  Bruno Haible  <bruno@clisp.org>
78836
78837         BeOS portability.
78838         * lib/mbchar.h: Include <wctype.h> only if it exists.
78839
78840 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78841
78842         Remove files that are no longer needed by their respective modules.
78843         * m4/obstack.m4: Remove.
78844         * m4/strerror_r.m4: Remove.
78845         * m4/uint32_t.m4: Remove.
78846         * m4/uintptr_t.m4: Remove.
78847         * m4/ullong_max.m4: Remove.
78848         * m4/xstrtoimax.m4: Remove.
78849         * m4/xstrtoumax.m4: Remove.
78850
78851         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78852         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78853         dependencies now capture this.
78854
78855         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78856         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78857         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78858         * m4/human.m4 (gl_HUMAN): Likewise.
78859         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78860         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78861
78862         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78863
78864         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78865         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78866         stdint.
78867         * m4/human.m4 (gl_HUMAN): Likewise.
78868         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78869         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78870         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78871         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78872         * m4/xstrtol (gl_XSTRTOL): Likewise.
78873
78874         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78875         AC_TYPE_LONG_LONG_INT.
78876         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78877         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78878         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78879         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78880
78881         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78882         on stdbool.
78883
78884         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78885         (gl_PREREQ_XSTRTOUL): Remove.
78886
78887         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78888
78889         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78890         mode.
78891
78892 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         Add and change modules to make it easier for coreutils to use
78895         gnulib-tool.
78896         * modules/backupfile (Files): Remove m4/d-ino.m4.
78897         (Depends-on): Add d-ino.
78898         * modules/cycle-check (Depends-on): Add stdint.
78899         (lib_SOURCES): Add cycle-check.h.
78900         * modules/d-ino: New module.
78901         * modules/d-type: New module.
78902         * modules/error (Files): Remove m4/strerror_r.m4.
78903         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78904         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78905         m4/inttypes_h.m4, m4/uintmax_t.m4.
78906         (Depends-on): Add stdint.
78907         (lib_SOURCES): Add fsusage.h.
78908         * modules/getcwd (Files): Remove d-ino.m4.
78909         (Depends-on): Add d-ino.
78910         * modules/getndelim2 (Depends-on): Add stdint.
78911         * modules/glob (Files): Remove m4/d-type.m4.
78912         (Depends-on): Add d-type.
78913         * modules/host-os: New module.
78914         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78915         m4/inttypes_h.m4, m4/uintmax_t.m4.
78916         * Depends-on: Add stdint.
78917         (lib_SOURCES): Add human.h.
78918         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78919         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78920         m4/uintmax_t.m4, m4/ulonglong.m4.
78921         (Depends-on): Add stdint.
78922         (EXTRA_DIST): Add inttostr.h.
78923         * modules/lchmod: New module.
78924         * modules/link-follow: New module.
78925         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78926         (Depends-on): Add lchmod.
78927         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78928         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78929         (Depends-on): Add stdint.
78930         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78931         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78932         (Depends-on): Add stdint.
78933         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78934         * modules/perl: New module.
78935         * modules/regex (Depends-on): Add stdint.
78936         * modules/rmdir-errno: New module.
78937         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78938         m4/intmax_t.m4.
78939         (Depends-on): Add stdint.
78940         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78941         m4/uintmax_t.m4.
78942         (Depends-on): Add stdint.
78943         * modules/unlink-busy: New module.
78944         * modules/utimecmp (Depends-on): Add stdint.
78945         * modules/uptime: New module.
78946         * modules/winsz-ioctl: New module.
78947         * modules/winsz-termios: New module.
78948         * modules/xnanosleep (Depends-on): Add nanosleep.
78949         * modules/ullong_max: Remove.
78950         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78951         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78952         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78953         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78954         (Depends-on): Add inttypes.
78955         (lib_SOURCES): Add xstrtol.h.
78956         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78957         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78958         * MODULES.html.sh: Move 'assert' into the assert section.
78959         Move 'dummy' into the linking section.
78960         Remove ullong_max.
78961         Add section for compatibility checks for POSIX:2001 functions,
78962         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78963         winsz-ioctl, and winsz-termios into it.
78964         Add lchmod.
78965         Add top-level Misc section and put host-os, perl, and uptime
78966         into it.
78967
78968 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78969
78970         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78971         now assume the stdint module.  Do not include inttypes.h.
78972         * lib/fsusage.h: Likewise.
78973         * lib/getndelim2.c: Likewise.
78974         * lib/human.h: Likewise.
78975         * lib/inttostr.h: Likewise.
78976         * lib/obstack.c: Likewise.
78977         * lib/regex_internal.h: Likewise.
78978         * lib/tempname.c: Likewise.
78979         * lib/utimecmp.c: Likewise.
78980         * lib/xstrtol.h: Likewise.
78981
78982         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78983
78984         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78985         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78986         * lib/xtime.h: Likewise.
78987
78988 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78989
78990         * modules/openat (Files): Add lib/fchmodat.c.
78991         Fixes problem reported by Jay Youngman.
78992
78993 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78994
78995         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78996         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78997
78998 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78999             Bruno Haible  <bruno@clisp.org>
79000
79001         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79002         and is a script that invokes bison. Tighten the code. Add comments.
79003
79004 2006-08-18  Jim Meyering  <jim@meyering.net>
79005
79006         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79007         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79008         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79009         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79010
79011 2006-08-18  Bruno Haible  <bruno@clisp.org>
79012
79013         * modules/bison-i18n: New file.
79014         * MODULES.html.sh (Internationalization functions): Add it.
79015
79016 2006-08-18  Bruno Haible  <bruno@clisp.org>
79017
79018         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79019         sys/statvfs.h. When getmntinfo was found, check its declaration and
79020         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79021
79022 2006-08-18  Bruno Haible  <bruno@clisp.org>
79023
79024         * m4/bison-i18n.m4: New file, from bison.
79025
79026 2006-08-18  Bruno Haible  <bruno@clisp.org>
79027
79028         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79029         (ME_DUMMY): Treat "kernfs" as a dummy.
79030         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79031
79032 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79033
79034         Update from coreutils.
79035
79036         2006-08-15  Jim Meyering  <jim@meyering.net>
79037
79038         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79039
79040         2006-01-17  Jim Meyering  <jim@meyering.net>
79041
79042         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79043
79044         2006-01-11  Jim Meyering  <jim@meyering.net>
79045
79046         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79047         Check for the lchmod function.
79048
79049 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79050
79051         Update from coreutils.
79052
79053         * lib/__fpending.h: Add copyright notice.
79054         * lib/fprintftime.h: Likewise.
79055         * lib/savedir.c: Use (C) in copyright notice.
79056         * lib/savedir.h: Likewise.
79057
79058         2006-08-15  Jim Meyering  <jim@meyering.net>
79059
79060         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79061         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79062         in support of the EXPECTED_ERRNO macro.
79063         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79064         definitions.  Instead, define the appropriate symbols and include
79065         "at-func.c".
79066         * lib/mkdirat.c (mkdirat): Likewise.
79067         * lib/fchmodat.c (fchmodat): Likewise.
79068         (ENOSYS): Remove definition.
79069         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79070         it.  Don't include "unistd--.h" -- it wasn't ever used.
79071
79072         2006-01-17  Jim Meyering  <jim@meyering.net>
79073
79074         Rewrite fts.c not to change the current working directory,
79075         by using openat, fstatat, fdopendir, etc..
79076
79077         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79078         (HAVE_OPENAT_SUPPORT): Define.
79079         [_LIBC] (fchdir): Don't undef or define; no longer used.
79080         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79081         Now, this `function' always succeeds, and consumes its file descriptor
79082         parameter -- so callers must not close such FDs.  Update callers.
79083         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79084         (diropen): Add parameter, SP.  Adjust all callers.
79085         Implement using diropen_fd, rather than open.
79086         (fts_open): Initialize new member, fts_cwd_fd.
79087         Remove fts_rft-setting code.
79088         (fts_close): Close fts_cwd_fd, if necessary.
79089         (__opendir2): Define in terms of opendir or opendirat,
79090         depending on whether the FST_NOCHDIR flag is set.
79091         (fts_build): Since fts_safe_changedir consumes its FD, and since
79092         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79093         and close the dup'd file descriptor upon failure.
79094         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79095         (fts_safe_changedir): Tweak semantics to reflect that this function
79096         now calls cwd_advance_fd and hence consumes its FD argument.
79097         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79098         [struct FTS] (fts_rft): Remove now-unused member.
79099         [struct FTS] (fts_cycle.state): Improve comment.
79100
79101         * lib/openat.c (openat_needs_fchdir): New function.
79102         * lib/openat.h (openat_needs_fchdir): Declare it.
79103
79104 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79107         Problem and fix reported by Pádraig Brady in
79108         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79109
79110 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79111
79112         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79113
79114 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79115
79116         * lib/memcoll.c (memcoll): Optimize for the common case where the
79117         arguments are bytewise equal.
79118
79119 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         * doc/regexprops-generic.texi: Add a copyright notice.
79122
79123 2006-08-15  Bruno Haible  <bruno@clisp.org>
79124
79125         * modules/tmpdir (License): Change to LGPL.
79126
79127 2006-08-15  Bruno Haible  <bruno@clisp.org>
79128
79129         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79130         module.
79131
79132 2006-08-14  Simon Josefsson  <jas@extundo.com>
79133
79134         * config/srclist.txt: Add gnupload.
79135
79136 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79137
79138         Change copyright notice from LGPL 2 to GPL 2, since that's the
79139         standard form used in the gnulib repository.
79140         * tests/test-lock.c: Likewise.
79141         * tests/test-stdint.c: Likewise.
79142         * tests/test-tls.c: Likewise.
79143
79144         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79145         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79146         Add copyright notice.
79147
79148         * check-module: Add copyright notice.  Output a copyright
79149         notice if "--version" is specified.
79150         * modules/COPYING: New file.
79151         * tests/test-getaddrinfo.c: Add copyright notice.
79152         * tests/test-verify.c: Likewise.
79153
79154 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         Change copyright notice from LGPL 2 to GPL 2, since that's the
79157         standard form used in the gnulib repository.
79158         * lib/lock.c: LGPL -> GPL.
79159         * lib/lock.h: Likewise.
79160         * lib/strnlen1.c: Likewise.
79161         * lib/strnlen1.h: Likewise.
79162         * lib/tls.c: Likewise.
79163         * lib/tls.h: Likewise.
79164         * lib/tmpdir.c: Likewise.
79165
79166         * lib/TODO: Remove; this belongs only in coreutils.
79167
79168 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79169
79170         Add copyright notices to long-enough files that lack them, since
79171         otherwise the files aren't clearly free.  Use the same notice that
79172         getdate.texi already uses.
79173         * doc/alloca-opt.texi: Add copyright notice.
79174         * doc/alloca.texi: Likewise.
79175         * doc/ctime.texi: Likewise.
79176         * doc/functions.texi: Likewise.
79177         * doc/gcd.texi: Likewise.
79178         * doc/gnulib-tool.texi: Likewise.
79179         * doc/inet_ntoa.texi: Likewise.
79180         * doc/visibility.texi: Likewise.
79181
79182         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79183         * doc/quote.texi: Add copyright notice.
79184
79185         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79186         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79187         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79188         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79189         is now obsolete, and give a pointer to the Sun list.
79190         Add copyright notice.
79191
79192 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79193
79194         * config/srclistvars.sh: Add copyright notice.
79195
79196 2006-08-14  Eric Blake  <ebb9@byu.net>
79197
79198         Import the following change from libc:
79199
79200         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79201
79202         Upstream bug 2997.
79203         * lib/misc/error.c: Add space between program name and message if file
79204         name is missing.
79205
79206 2006-08-12  Karl Berry  <karl@gnu.org>
79207
79208         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79209         remove, these originate in gnulib now.
79210
79211 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79212
79213         * doc/Makefile (standards.info standards.html standards.dvi):
79214         Also depend on make-stds.texi.
79215
79216 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79217
79218         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79219         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79220
79221         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79222         in wchar_t.  Problem reported by Eric Blake.
79223
79224         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79225         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79226         Also, help the compiler to keep LEN in a register.
79227
79228 2006-08-11  Eric Blake  <ebb9@byu.net>
79229
79230         * users.txt: Sort.  Add tar.
79231
79232 2006-08-11  Bruno Haible  <bruno@clisp.org>
79233
79234         * users.txt: New file.
79235
79236 2006-08-11  Bruno Haible  <bruno@clisp.org>
79237
79238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79239         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79240
79241 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79242
79243         * modules/snprintf (Depends-on): Remove minmax.
79244         (Maintainer): Add self and Bruno.
79245
79246 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79247
79248         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79249         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79250         (EOVERFLOW): Define if the system does not.
79251         Do not include "minmax.h"; it wasn't used.
79252         (snprintf): Don't assume size_t promotes to an unsigned type.
79253         Fix bug when generated string was too long for the buffer: the
79254         buffer's contents are supposed to be the initial prefix of the
79255         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79256         exceeds INT_MAX; do the check ourselves.
79257
79258         Import the following changes from libc:
79259
79260         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79261
79262         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79263         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79264         set wc to the byte which couldn't be converted.
79265         (re_string_reconstruct): Don't clear valid_raw_len before calling
79266         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79267         tip_context using re_string_context_at.
79268
79269         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79270
79271         * lib/posix/regex.h: g++ still cannot handled [restrict].
79272
79273         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79274
79275         * lib/posix/regex.h: Remove special handling for VMS.
79276
79277 2006-08-10  Jim Meyering  <jim@meyering.net>
79278
79279         * modules/same-inode: New module.
79280         * modules/dev-ino: New module.
79281         * modules/cycle-check: Depend on these modules, rather than simply
79282         including their .h files.
79283         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79284         required via m4/cycle-check.m4.
79285         * modules/same: Depend on new same-inode module, rather than
79286         including same-inode.h.
79287         * modules/chdir-safer: New file.
79288
79289         * modules/chown (Depends-on): Add stat-macros.
79290
79291 2006-08-10  Jim Meyering  <jim@meyering.net>
79292
79293         * m4/cycle-check.m4: New file.
79294         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79295         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79296
79297 2006-08-10  Eric Blake  <ebb9@byu.net>
79298
79299         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79300         in from original proposal.
79301
79302 2006-08-10  Eric Blake  <ebb9@byu.net>
79303         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79304
79305         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79306         namespace.
79307
79308 2006-08-10  Bruno Haible  <bruno@clisp.org>
79309
79310         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79311         as well.
79312
79313 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79314
79315         Sync from coreutils.
79316
79317         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79318
79319         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79320         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79321
79322 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79323
79324         * modules/restrict: Remove; no longer needed now that we assume
79325         Autoconf 2.59 or later.
79326         * MODULES.html.sh: Remove 'restrict'.
79327         * modules/argp (Depends-on): Remove 'restrict'.
79328         * modules/base64 (Depends-on): Likewise.
79329         * modules/gc (Depends-on): Likewise.
79330         * modules/getaddrinfo (Depends-on): Likewise.
79331         * modules/glob (Depends-on): Likewise.
79332         * modules/inet_ntop (Depends-on): Likewise.
79333         * modules/inet_pton (Depends-on): Likewise.
79334         * modules/memxor (Depends-on): Likewise.
79335         * modules/regex (Depends-on): Likewise.
79336         * modules/strtok_r (Depends-on): Likewise.
79337         * modules/time_r (Depends-on): Likewise.
79338
79339 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79342         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79343         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79344         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79345         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79346         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79347         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79348         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79349
79350         Merge from coreutils.
79351         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79352         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79353         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79354         * m4/time_r.m4 (gl_TIME_R): Likewise.
79355
79356 2006-08-09  Karl Berry  <karl@gnu.org>
79357
79358         * config/srclist.txt: no more gettext-tools, per Bruno.
79359
79360 2006-08-08  Eric Blake  <ebb9@byu.net>
79361
79362         * modules/verror: New module.
79363         * MODULES.html.sh: Document it.
79364
79365 2006-08-08  Eric Blake  <ebb9@byu.net>
79366
79367         * lib/verror.h, lib/verror.c: New files.
79368
79369 2006-08-08  Eric Blake  <ebb9@byu.net>
79370
79371         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79372         verror_at_line output complies with GNU Coding Standards even when
79373         file is NULL.
79374
79375 2006-08-07  Bruno Haible  <bruno@clisp.org>
79376
79377         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79378         versions of AIX.
79379         Reported by Ralf Wildenhues.
79380
79381 2006-08-07  Bruno Haible  <bruno@clisp.org>
79382
79383         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79384         in an AC_DEFUN. Needed so that the autoconf snippets can use
79385         AC_REQUIRE.
79386
79387 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79388
79389         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79390         Initialize pkgdata_DATA.
79391         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79392         overriding it.
79393
79394 2006-08-06  Eric Blake  <ebb9@byu.net>
79395
79396         * lib/error.h: Fold in some upstream changes from glibc.
79397         * lib/error.c: Likewise.
79398
79399 2006-08-04  Bruno Haible  <bruno@clisp.org>
79400
79401         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79402         Make the mostlyclean-local rule depend on mostlyclean-generic.
79403         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79404
79405 2006-07-31  Bruno Haible  <bruno@clisp.org>
79406
79407         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79408         <stdlib.h>, <string.h>.
79409
79410 2006-07-30  Bruno Haible  <bruno@clisp.org>
79411
79412         * modules/readlink (License): Change to LGPL.
79413
79414 2006-07-30  Bruno Haible  <bruno@clisp.org>
79415
79416         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79417         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79418         set PKGDATADIR to point to it.
79419
79420 2006-07-30  Bruno Haible  <bruno@clisp.org>
79421
79422         * modules/csharpexec (configure.ac): Comment out macro invocation.
79423         * modules/javaexec (configure.ac): Likewise.
79424         * modules/javacomp-script (configure.ac): Likewise.
79425
79426         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79427
79428 2006-07-30  Bruno Haible  <bruno@clisp.org>
79429
79430         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79431         linked-list.
79432
79433 2006-07-30  Bruno Haible  <bruno@clisp.org>
79434
79435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79436
79437 2006-07-30  Bruno Haible  <bruno@clisp.org>
79438
79439         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79440         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79441         get removed.
79442
79443 2006-07-29  Bruno Haible  <bruno@clisp.org>
79444
79445         Make it possible for gnulib-tool to work with locally modified or
79446         augmented gnulib repositories.
79447         * gnulib-tool (func_usage): Document --local-dir option.
79448         (local_gnulib_dir): New variable.
79449         Handle --local-dir option.
79450         (func_lookup_file): New function.
79451         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79452         (func_get_description, func_get_filelist, func_get_description,
79453         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79454         func_get_automake_snippet, func_get_include_directive,
79455         func_get_license, func_get_maintainer): Use func_lookup_file.
79456         (func_import, func_create_testdir): Use func_lookup_file.
79457
79458 2006-07-29  Bruno Haible  <bruno@clisp.org>
79459
79460         * modules/setenv (Depends-on): Add unistd.
79461
79462 2006-07-29  Bruno Haible  <bruno@clisp.org>
79463
79464         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79465
79466 2006-07-29  Bruno Haible  <bruno@clisp.org>
79467
79468         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79469
79470 2006-07-29  Bruno Haible  <bruno@clisp.org>
79471
79472         * gnulib-tool (import, update): If there is no Makefile.am, look at
79473         aclocal.m4, instead of bailing out.
79474
79475 2006-07-29  Bruno Haible  <bruno@clisp.org>
79476
79477         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79478         Categorize the options by when they are useful.
79479
79480 2006-07-29  Bruno Haible  <bruno@clisp.org>
79481
79482         * gnulib-tool (func_usage): Document option --no-libtool.
79483         Handle option --no-libtool.
79484         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79485         for changed semantics of $libtool variable.
79486         (func_import): Likewise. If libtool is not used, show this through
79487         an option --no-libtool.
79488         (func_create_testdir): Update.
79489
79490 2006-07-29  Bruno Haible  <bruno@clisp.org>
79491
79492         * gnulib-tool (func_import): Extend error message about missing
79493         --doc-base.
79494
79495 2006-07-29  Bruno Haible  <bruno@clisp.org>
79496
79497         * gnulib-tool (func_import): Don't create the $docbase directory if
79498         there is no file to store there.
79499
79500 2006-07-29  Bruno Haible  <bruno@clisp.org>
79501
79502         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79503         relevant, look for configure.ac there, not in the current directory.
79504         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79505
79506 2006-07-29  Bruno Haible  <bruno@clisp.org>
79507
79508         * gnulib-tool (SORT): New variable.
79509         (func_usage): Undocument --assume-autoconf option.
79510         Remove --assume-autoconf option handling.
79511         (autoconf_minversion): Determine from the contents of configure.ac.
79512         (func_import): Remove autoconf_minversion handling.
79513         Suggested by Eric Blake.
79514
79515 2006-07-29  Bruno Haible  <bruno@clisp.org>
79516
79517         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79518
79519 2006-07-29  Bruno Haible  <bruno@clisp.org>
79520
79521         * config/srclist.txt (*setenv.[ch]): Remove rules.
79522
79523 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79524
79525         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79526
79527 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79528
79529         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79530         arpa/inet.h.
79531
79532 2006-07-28  Simon Josefsson  <jas@extundo.com>
79533
79534         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79535         * modules/inet_pton (Depends-on): Likewise.
79536
79537 2006-07-28  Simon Josefsson  <jas@extundo.com>
79538
79539         * m4/netinet_in_h.m4: New file.
79540
79541 2006-07-28  Simon Josefsson  <jas@extundo.com>
79542
79543         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79544         #include's.
79545
79546 2006-07-28  Simon Josefsson  <jas@extundo.com>
79547
79548         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79549         #include's.
79550
79551 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79554         setgid on directories only if they set these bits.
79555         * lib/modechange.h: Remove obsolete comment about masks.
79556
79557 2006-07-28  Eric Blake  <ebb9@byu.net>
79558
79559         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79560         macro expansion.
79561
79562 2006-07-28  Bruno Haible  <bruno@clisp.org>
79563
79564         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79565
79566 2006-07-28  Bruno Haible  <bruno@clisp.org>
79567
79568         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79569
79570 2006-07-28  Bruno Haible  <bruno@clisp.org>
79571
79572         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79573         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79574         Define fallbacks.
79575         Avoids link error on FreeBSD 4.x.
79576         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79577
79578         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79579         encoding.
79580         * lib/mbswidth.c (iswcntrl): Likewise.
79581
79582 2006-07-27  Bruno Haible  <bruno@clisp.org>
79583
79584         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79585         test.
79586
79587 2006-07-27  Bruno Haible  <bruno@clisp.org>
79588
79589         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79590         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79591         defined.
79592
79593 2006-07-26  Eric Blake  <ebb9@byu.net>
79594
79595         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79596
79597 2006-07-26  Eric Blake  <ebb9@byu.net>
79598
79599         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79600         like mingw that lack mkstemp.
79601         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79602         avoid compilation warning on mingw.
79603
79604 2006-07-26  Bruno Haible  <bruno@clisp.org>
79605
79606         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79607         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79608         INT_FAST*_MIN, INTPTR_MIN.
79609
79610 2006-07-25  Bruno Haible  <bruno@clisp.org>
79611
79612         * modules/version-etc (Depends-on): Add stdarg.
79613
79614 2006-07-25  Bruno Haible  <bruno@clisp.org>
79615
79616         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79617         complex commands.
79618
79619 2006-07-25  Bruno Haible  <bruno@clisp.org>
79620
79621         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79622         defined in <stdarg.h> or config.h.
79623
79624 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79625
79626         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79627         (gl_STDIO_SAFER): Remove.
79628
79629 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         * MODULES.html.sh (File stream based Input/Output):
79632         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79633         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79634         * modules/fopen-safer, modules/tmpfile-safer: New files.
79635         * modules/stdio-safer: Remove.
79636
79637 2006-07-24  Bruno Haible  <bruno@clisp.org>
79638
79639         * modules/tmpdir: New file.
79640         * MODULES.html.sh (File system functions): Add it.
79641
79642 2006-07-24  Bruno Haible  <bruno@clisp.org>
79643
79644         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79645         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79646
79647 2006-07-24  Bruno Haible  <bruno@clisp.org>
79648
79649         * modules/clean-temp: New file.
79650
79651 2006-07-24  Bruno Haible  <bruno@clisp.org>
79652
79653         * m4/tmpdir.m4: New file, from GNU gettext.
79654
79655 2006-07-24  Bruno Haible  <bruno@clisp.org>
79656
79657         * lib/tmpdir.h: New file, from GNU gettext.
79658         * lib/tmpdir.c: New file, from GNU gettext.
79659
79660 2006-07-24  Bruno Haible  <bruno@clisp.org>
79661
79662         * lib/clean-temp.h: New file, from GNU gettext.
79663         * lib/clean-temp.c: New file, from GNU gettext.
79664
79665 2006-07-23  Eric Blake  <ebb9@byu.net>
79666
79667         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79668         (Depends-on): Add binary-io.
79669
79670 2006-07-23  Eric Blake  <ebb9@byu.net>
79671
79672         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79673
79674 2006-07-23  Eric Blake  <ebb9@byu.net>
79675
79676         * lib/tmpfile-safer.c: New file.
79677         * lib/stdio-safer.h (fopen_safer): Add prototype.
79678         * lib/stdio--.h (tmpfile): Make safer.
79679
79680 2006-07-23  Bruno Haible  <bruno@clisp.org>
79681
79682         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79683         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79684         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79685         gl_linked_remove_at): Use it.
79686
79687 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79688         and Simon Josefsson <jas@extundo.com>
79689
79690         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79691
79692         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79693
79694 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * modules/close-stream: New file.
79697         * modules/closeout (Description): Make it clear that it exits
79698         with a diagnostic on error.
79699         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79700         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79701
79702 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * m4/close-stream.m4: New file.
79705
79706 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         * lib/close-stream.c, lib/close-stream.h: New files.
79709
79710 2006-07-22  Bruno Haible  <bruno@clisp.org>
79711
79712         Merge from GNU gettext 0.15.
79713
79714         2006-05-01  Bruno Haible  <bruno@clisp.org>
79715
79716                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79717
79718         2006-07-22  Bruno Haible  <bruno@clisp.org>
79719
79720                 * modules/javaversion: New file.
79721                 * MODULES.html.sh (Java): Add javaversion.
79722
79723         2006-03-12  Bruno Haible  <bruno@clisp.org>
79724
79725                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79726
79727         2005-12-04  Bruno Haible  <bruno@clisp.org>
79728
79729                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79730                 (untested).
79731
79732         2006-06-21  Bruno Haible  <bruno@clisp.org>
79733
79734                 Avoid warnings from recent versions of mcs.
79735                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79736                 -o, -L, -r any more. Use options documented since mcs-1.0
79737                 instead. Similarly for -g.
79738
79739         2005-12-04  Bruno Haible  <bruno@clisp.org>
79740
79741                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79742                 .resources, not .resource.
79743
79744         2005-07-09  Bruno Haible  <bruno@clisp.org>
79745
79746                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79747                 add a .dll suffix.
79748                 Reported by Mark Junker <mjscod@gmx.de>.
79749
79750         2006-07-22  Bruno Haible  <bruno@clisp.org>
79751
79752                 * modules/gettext: Upgrade to gettext-0.15.
79753                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79754                 m4/visibility.m4.
79755                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79756
79757 2006-07-22  Bruno Haible  <bruno@clisp.org>
79758
79759         Merge from GNU gettext 0.15.
79760
79761         2006-03-25  Bruno Haible  <bruno@clisp.org>
79762
79763                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79764
79765         2006-07-21  Bruno Haible  <bruno@clisp.org>
79766
79767                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79768                 "1.1".
79769
79770         2006-05-09  Bruno Haible  <bruno@clisp.org>
79771
79772                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79773                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79774                 for the conftestver execution.
79775
79776         2006-05-01  Bruno Haible  <bruno@clisp.org>
79777
79778                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79779                 optional target-version argument. Verify that the compiler
79780                 groks source of the specified source-version, or add -source
79781                 option as necessary. Verify that the compiler produces
79782                 bytecode in the specified target-version, or add -target and
79783                 -source options as necessary. Make the result of the test
79784                 available as variable CONF_JAVAC. Also log error output in
79785                 config.log.
79786
79787         2006-03-11  Bruno Haible  <bruno@clisp.org>
79788
79789                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79790
79791         2006-05-09  Bruno Haible  <bruno@clisp.org>
79792
79793                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79794                 CLASSPATH_SEPARATOR to a semicolon.
79795
79796         2006-03-12  Bruno Haible  <bruno@clisp.org>
79797
79798                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79799                 available as variable CONF_JAVA, for subsequent autoconf
79800                 tests. Also log error output in config.log.
79801
79802         2006-07-19  Bruno Haible  <bruno@clisp.org>
79803
79804                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79805                 that getline works on glibc2 systems. Needed to avoid trouble
79806                 in relocatable.c.
79807                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79808
79809         2005-12-04  Bruno Haible  <bruno@clisp.org>
79810
79811                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79812                 launcher (untested).
79813
79814         2005-12-04  Bruno Haible  <bruno@clisp.org>
79815
79816                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79817
79818         2006-07-22  Bruno Haible  <bruno@clisp.org>
79819
79820                 * gettext.m4: Update from GNU gettext-0.15.
79821                 * nls.m4: Likewise.
79822                 * po.m4: Likewise.
79823                 * inttypes-pri.m4: Likewise.
79824                 * inttypes-h.m4: Renamed from inttypes.m4.
79825                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79826
79827 2006-07-22  Bruno Haible  <bruno@clisp.org>
79828
79829         Merge from GNU gettext 0.15.
79830
79831         2005-07-05  Bruno Haible  <bruno@clisp.org>
79832
79833                 * printf-args.c (printf_fetchargs): Work around broken
79834                 definition of wint_t on mingw.
79835
79836         2005-02-12  Bruno Haible  <bruno@clisp.org>
79837
79838                 * xallocsa.h: Add extern "C" for C++.
79839
79840         2006-05-17  Bruno Haible  <bruno@clisp.org>
79841
79842                 Cygwin portability.
79843                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79844
79845         2006-04-30  Bruno Haible  <bruno@clisp.org>
79846
79847                 * progreloc.c: Include <mach-o/dyld.h> if available.
79848                 (find_executable): Use _NSGetExecutablePath when possible.
79849
79850         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79851
79852                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79853                 function.
79854
79855         2005-12-29  Bruno Haible  <bruno@clisp.org>
79856
79857                 * progreloc.c (set_program_name_and_installdir): Fix
79858                 compilation error.
79859
79860         2005-12-04  Bruno Haible  <bruno@clisp.org>
79861
79862                 Cygwin portability.
79863                 * progreloc.c: Include <windows.h> also on Cygwin.
79864                 (find_executable): Add support for Cygwin.
79865                 (set_program_name_and_installdir): Handle also platforms with
79866                 nonempty EXEEXT.
79867
79868         2006-07-11  Bruno Haible  <bruno@clisp.org>
79869
79870                 * javacomp.c: Fix a comment.
79871                 Reported by Jim Meyering.
79872
79873         2006-04-30  Bruno Haible  <bruno@clisp.org>
79874
79875                 * javacomp.h (compile_java_class): Add source_version,
79876                 target_version arguments.
79877                 * javacomp.c: Rewritten to choose only a compiler that
79878                 respects the specified source_version and target_version.
79879
79880         2006-06-27  Bruno Haible  <bruno@clisp.org>
79881
79882                 Assume correct S_ISDIR macro.
79883                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79884
79885         2006-07-22  Bruno Haible  <bruno@clisp.org>
79886
79887                 * javaversion.h: New file, from GNU gettext.
79888                 * javaversion.c: New file, from GNU gettext.
79889                 * javaversion.java: New file, from GNU gettext.
79890                 * javaversion.class: New file, from GNU gettext.
79891
79892         2006-05-17  Bruno Haible  <bruno@clisp.org>
79893
79894                 Cygwin portability.
79895                 * javaexec.c (execute_java_class): Test for jview program
79896                 also on Cygwin.
79897
79898         2006-04-09  Bruno Haible  <bruno@clisp.org>
79899
79900                 * fatal-signal.c: Don't include string.h.
79901                 (at_fatal_signal): Use a copying loop instead of memcpy.
79902
79903         2005-12-04  Bruno Haible  <bruno@clisp.org>
79904
79905                 * csharpexec.c: Add support for 'clix' launcher (untested).
79906                 (execute_csharp_using_sscli): New function.
79907                 (execute_csharp_program): Call it.
79908
79909         2006-06-21  Bruno Haible  <bruno@clisp.org>
79910
79911                 Avoid warnings from recent versions of mcs.
79912                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79913                 -o, -L, -r any more. Use options documented since mcs-1.0
79914                 instead. Similarly for -g.
79915
79916         2005-07-09  Bruno Haible  <bruno@clisp.org>
79917
79918                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79919                 add a .dll suffix.
79920                 Reported by Mark Junker <mjscod@gmx.de>.
79921
79922         2006-06-17  Bruno Haible  <bruno@clisp.org>
79923
79924                 * config.charset: Update for NetBSD 3.0.
79925
79926         2006-05-17  Bruno Haible  <bruno@clisp.org>
79927
79928                 Cygwin portability.
79929                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79930
79931         2006-05-16  Bruno Haible  <bruno@clisp.org>
79932
79933                 * localcharset.c [CYGWIN]: Include <windows.h>.
79934                 (get_charset_aliases): For Cygwin, return the same CPxxx
79935                 aliases list as under WIN32.
79936                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79937                 the environment variables. Fall back to GetACP().
79938
79939         2006-04-05  Bruno Haible  <bruno@clisp.org>
79940
79941                 * config.charset: Update Juan Manuel Guerrero's address.
79942
79943         2005-02-12  Bruno Haible  <bruno@clisp.org>
79944
79945                 * allocsa.h: Add extern "C" for C++.
79946
79947         2005-02-10  Bruno Haible  <bruno@clisp.org>
79948
79949                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79950                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79951
79952         2006-07-22  Bruno Haible  <bruno@clisp.org>
79953
79954                 * gettext.h: Update to GNU gettext-0.15.
79955
79956 2006-07-22  Bruno Haible  <bruno@clisp.org>
79957
79958         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79959         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79960         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79961
79962 2006-07-21  Eric Blake  <ebb9@byu.net>
79963
79964         * modules/stdlib-safer: New file.
79965         * MODULES.html.sh (File stream based Input/Output): Add
79966         stdlib-safer.
79967
79968 2006-07-21  Eric Blake  <ebb9@byu.net>
79969
79970         * lib/stdlib-safer.h: New file from coreutils, required by
79971         stdlib--.h.
79972
79973 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79974
79975         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79976
79977 2006-07-20  Bruno Haible  <bruno@clisp.org>
79978
79979         * gnulib-tool: Recognize new option --assume-autoconf.
79980         (autoconf_minversion): New variable.
79981         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79982
79983 2006-07-20  Bruno Haible  <bruno@clisp.org>
79984
79985         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79986
79987 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79988
79989         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79990         Reindent and repaginate.
79991
79992 2006-07-19  Derek Price  <derek@ximbiot.com>
79993
79994         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79995         Correct grammar.
79996
79997 2006-07-17  Bruno Haible  <bruno@clisp.org>
79998
79999         * modules/list: New file.
80000         * modules/array-list: New file.
80001         * modules/carray-list, modules/carray-list-tests: New files.
80002         * modules/linked-list, modules/linked-list-tests: New files.
80003         * modules/avltree-list, modules/avltree-list-tests: New files.
80004         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80005         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80006         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80007         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80008         * modules/oset: New file.
80009         * modules/array-oset: New file.
80010         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80011         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80012         * tests/test-carray_list.c: New file.
80013         * tests/test-linked_list.c: New file.
80014         * tests/test-avltree_list.c: New file.
80015         * tests/test-rbtree_list.c: New file.
80016         * tests/test-linkedhash_list.c: New file.
80017         * tests/test-avltreehash_list.c: New file.
80018         * tests/test-rbtreehash_list.c: New file.
80019         * tests/test-avltree_oset.c: New file.
80020         * tests/test-rbtree_oset.c: New file.
80021         * MODULES.html.sh (Container data structures): New section.
80022
80023 2006-07-17  Bruno Haible  <bruno@clisp.org>
80024
80025         * m4/gl_list.m4: New file.
80026
80027 2006-07-17  Bruno Haible  <bruno@clisp.org>
80028
80029         * lib/gl_list.h: New file.
80030         * lib/gl_list.c: New file.
80031         * lib/gl_array_list.h: New file.
80032         * lib/gl_array_list.c: New file.
80033         * lib/gl_carray_list.h: New file.
80034         * lib/gl_carray_list.c: New file.
80035         * lib/gl_linked_list.h: New file.
80036         * lib/gl_linked_list.c: New file.
80037         * lib/gl_anylinked_list1.h: New file.
80038         * lib/gl_anylinked_list2.h: New file.
80039         * lib/gl_avltree_list.h: New file.
80040         * lib/gl_avltree_list.c: New file.
80041         * lib/gl_anyavltree_list1.h: New file.
80042         * lib/gl_anyavltree_list2.h: New file.
80043         * lib/gl_rbtree_list.h: New file.
80044         * lib/gl_rbtree_list.c: New file.
80045         * lib/gl_anyrbtree_list1.h: New file.
80046         * lib/gl_anyrbtree_list2.h: New file.
80047         * lib/gl_anytree_list1.h: New file.
80048         * lib/gl_anytree_list2.h: New file.
80049         * lib/gl_linkedhash_list.h: New file.
80050         * lib/gl_linkedhash_list.c: New file.
80051         * lib/gl_anyhash_list1.h: New file.
80052         * lib/gl_anyhash_list2.h: New file.
80053         * lib/gl_avltreehash_list.h: New file.
80054         * lib/gl_avltreehash_list.c: New file.
80055         * lib/gl_rbtreehash_list.h: New file.
80056         * lib/gl_rbtreehash_list.c: New file.
80057         * lib/gl_anytreehash_list1.h: New file.
80058         * lib/gl_anytreehash_list2.h: New file.
80059
80060         * lib/gl_oset.h: New file.
80061         * lib/gl_oset.c: New file.
80062         * lib/gl_array_oset.h: New file.
80063         * lib/gl_array_oset.c: New file.
80064         * lib/gl_avltree_oset.h: New file.
80065         * lib/gl_avltree_oset.c: New file.
80066         * lib/gl_rbtree_oset.h: New file.
80067         * lib/gl_rbtree_oset.c: New file.
80068         * lib/gl_anytree_oset.h: New file.
80069
80070 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80071
80072         * m4/mkancesdirs.m4: New file.
80073         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80074         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80075         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80076         it.
80077
80078 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80079
80080         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80081         * lib/mkancesdirs.h: New files.
80082         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80083         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80084         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80085         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80086         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80087         callers changed.  Revamp internals significantly, by not
80088         attempting to create directories that are temporarily more
80089         permissive than the final results.  Do not attempt to use
80090         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80091         This removes some race conditions, fixes some bugs, and simplifies
80092         things.  Use new dirchownmod function to do owner and mode changes.
80093         * lib/mkdir-p.h: Likewise.
80094         * lib/modechange.c (octal_to_mode): New function.
80095         (struct mode_change): New member mentioned.
80096         (make_node_op_equals): New arg mentioned.  All callers changed.
80097         (mode_compile): Keep track of which mode bits the user has explicitly
80098         mentioned.
80099         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80100         New arg PMODE_BITS, to keep track of which mode bits the user
80101         mentioned; it treats S_ISUID and S_ISGID speciall.
80102         All callers changed.
80103         * lib/modechange.h: Likewise.
80104
80105 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80106
80107         * MODULES.html.sh: Add mkancestors.
80108         * modules/mkancesdirs: New module.
80109         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80110         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80111         The chdir-safer and afs files are now orphans; I'll remove them
80112         unless someone speaks up.
80113         Add lib/dirchownmod.c, lib/dirchownmod.h.
80114         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80115         Add lchown, mkancesdirs.
80116         (Maintainer): Add self.
80117
80118 2006-07-15  Karl Berry  <karl@gnu.org>
80119
80120         * gnulib-tool: help message wording/arrangement.
80121
80122 2006-07-14  Simon Josefsson  <jas@extundo.com>
80123
80124         * doc/gnulib.texi (Libtool and Windows): New section.
80125
80126 2006-07-12  Simon Josefsson  <jas@extundo.com>
80127
80128         * modules/gendocs (License): Fix license, approved by Karl.
80129
80130 2006-07-12  Eric Blake  <ebb9@byu.net>
80131
80132         * MODULES.html.sh: Add gendocs.
80133
80134 2006-07-11  Eric Blake  <ebb9@byu.net>
80135
80136         * modules/fdl: New module, to install doc/fdl.texi.
80137         * MODULES.html.sh: Add new section for documentation modules.
80138         * gnulib-tool: Avoid space-tab.
80139         (--doc-base): New option, to manage files from doc.
80140
80141 2006-07-11  Eric Blake  <ebb9@byu.net>
80142
80143         * m4/absolute-header.m4: Fix comments to match recent change.
80144
80145 2006-07-11  Eric Blake  <ebb9@byu.net>
80146
80147         * gnulib-tool: List --doc-base before --tests-base.
80148
80149 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80150
80151         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80152
80153 2006-07-11  Bruno Haible  <bruno@clisp.org>
80154
80155         * README: Mention where to put documentation.
80156
80157 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80158
80159         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80160
80161 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80164         to stdint.m4.
80165
80166 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80167
80168         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80169         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80170         "no/such/file/stdint.h" when there is no such file, so that
80171         the resulting C code can be parsed by dodgy compilers.
80172         Problems reported by Bob Proulx.
80173
80174 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80175
80176         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80177         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80178         macros into the GNU _D_EXACT_NAMLEN.
80179         * lib/savedir.c:  Likewise.
80180         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80181
80182 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80183         and Paul Eggert  <eggert@cs.ucla.edu>
80184
80185         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80186         * m4/savedir.m4:
80187         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80188         macros into the GNU _D_EXACT_NAMLEN.
80189
80190 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80191
80192         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80193         around the absolute name, to work around a problem with the HP-UX
80194         11.23 native C compiler, reported by Bob Proulx.
80195
80196 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         * doc/maintain.texi, make-stds.texi: Sync from
80199         <http://savannah.gnu.org/projects/gnustandards>.
80200
80201 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80204
80205 2006-07-09  Jim Meyering  <jim@meyering.net>
80206
80207         * m4/glob.m4: Remove a doubled word in a comment.
80208
80209 2006-07-09  Jim Meyering  <jim@meyering.net>
80210
80211         * lib/argp-pv.c: Remove a doubled word in a comment.
80212         * lib/check-version.c (check_version): Likewise.
80213         * lib/javacomp.c (compile_java_class): Likewise.
80214
80215 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80216
80217         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80218         for the benefit of people using Autoconf 2.60.  If you want to
80219         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80220         (or m4/onceonly.m4, if pre-2.57) manually.
80221
80222 2006-07-08  Jim Meyering  <jim@meyering.net>
80223
80224         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80225         comment.
80226         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80227         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80228         comment.
80229
80230 2006-07-08  Jim Meyering  <jim@meyering.net>
80231
80232         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80233
80234 2006-07-07  Simon Josefsson  <jas@extundo.com>
80235
80236         * tests/test-crc.c: Change expected crc value, the test vector
80237         were probably computed using the old broken crc.c?
80238
80239 2006-07-06  Simon Josefsson  <jas@extundo.com>
80240
80241         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80242         now the canonical place for the M4 file).
80243
80244         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80245         from the sys_socket dependency now.
80246
80247         * modules/inet_pton (Files): Ditto.
80248
80249         * modules/inet_ntop (Files): Ditto.
80250
80251 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80252
80253         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80254         not gl_PREREQ_GETUSERSHELL.
80255
80256 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80257
80258         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80259         with only one argument, for Autoconf 2.60.
80260         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80261         expand to nothing, so add a shell command to avoid syntax error.
80262         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80263
80264 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80265
80266         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80267
80268 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80269
80270         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80271         no longer needed.  Check for isblank decl.
80272         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80273         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80274         of existence.
80275
80276 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80277
80278         * lib/getloadavg.c: Use __VMS, not VMS.
80279         * lib/getopt.c: Likewise.
80280         * lib/getpagesize.h: Likewise.
80281         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80282         and probably does not work.
80283
80284 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80285
80286         * lib/.cppi-disable: Add wcwidth.
80287         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80288         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80289         (ISGRAPH): Remove.  All uses changed to isgraph.
80290         (FOLD) [!defined _LIBC]: Remove special case.
80291         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80292         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80293         HAVE_ISBLANK.
80294         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80295         case.
80296
80297 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80298
80299         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80300         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80301         brackets.  Other minor changes to suppress some compiler
80302         warnings.
80303
80304 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80305         and Paul Eggert  <eggert@cs.ucla.edu>
80306
80307         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80308         of invoking obsolescent AC_HEADER_DIRENT macro.
80309         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80310         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80311         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80312         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80313         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80314         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80315         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80316         * m4/readdir.m4: Remove; no longer needed.
80317
80318 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80319         and Paul Eggert  <eggert@cs.ucla.edu>
80320
80321         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80322         Don't worry about this obsolete case any more.
80323         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80324         directories.
80325         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80326         worry about this obsolete case any more.
80327         * lib/fts.c: Likewise.
80328         * lib/getcwd.c: Likewise.
80329         * lib/glob.h: Likewise.
80330         * lib/savedir.c: Likewise.
80331
80332 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80333
80334         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80335         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80336         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80337         needed.
80338         All uses removed.
80339         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80340         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80341         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80342         needed.
80343         * m4/getdate.m4 (gl_GETDATE): Likewise.
80344         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80345         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80346         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80347         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80348         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80349         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80350         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80351         needed.
80352
80353 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80354
80355         * lib/memcasecmp.c: Include <limits.h>.
80356         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80357         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80358         Don't assume isdigit succeeds only on '0' through '9'.
80359
80360 2006-07-05  Eric Blake  <ebb9@byu.net>
80361
80362         * modules/getaddrinfo (Depends-on): Add snprintf.
80363
80364 2006-07-05  Eric Blake  <ebb9@byu.net>
80365
80366         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80367         to avoid 'header present but could not be compiled' on cygwin.
80368
80369 2006-07-05  Eric Blake  <ebb9@byu.net>
80370
80371         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80372         missing from netdb.h.
80373         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80374
80375 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80376
80377         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80378         no longer needed.
80379         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80380         * m4/getdate.m4 (gl_GETDATE): Likewise.
80381         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80382         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80383         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80384         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80385         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80386
80387 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80388
80389         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80390         All uses of is_space replaced by isspace.
80391         * lib/exit.h: Don't talk about STDC_HEADERS.
80392         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80393         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80394         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80395         replaced by isprint etc.
80396         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80397         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80398         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80399         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80400         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80401         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80402
80403 2006-07-05  Bruno Haible  <bruno@clisp.org>
80404
80405         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80406         the function exists, before testing against AIX.
80407         Reported by Martin Lambers <marlam@marlam.de>.
80408
80409 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80410
80411         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80412         From Mark D. Baushke.
80413
80414 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80415
80416         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80417         to the absolute name, not just one, to bypass Sun C 5.8's
80418         "warning: #include of /usr/include/... may be non-portable".
80419
80420 2006-07-04  Eric Blake  <ebb9@byu.net>
80421
80422         * modules/dirname-tests: New test module.
80423         * tests/test-dirname.c: New file, replacing dirname.c
80424         TEST_DIRNAME section that was recently deleted.
80425
80426 2006-07-04  Bruno Haible  <bruno@clisp.org>
80427
80428         Assume ANSI C header files and <ctype.h> functions.
80429         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80430         (mbsnwidth): Use isprint, iscntrl instead.
80431
80432 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80433
80434         Merge from coreutils.
80435         * MODULES.html.sh: Add xstrtold.
80436         * modules/xstrtold: New file.
80437         * modules/cycle-check (Files): Add lib/same-inode.h.
80438         * modules/dirname (Files): Add m4/double-slash-root.m4.
80439         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80440         * modules/mkdir-p (Files): Add lib/same-inode.h.
80441         * modules/same (Files): Add lib/same-inode.h.
80442
80443 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80444
80445         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80446         This is to keep the terminology clean; POSIX talks about
80447         "absolute pathnames", not "full pathnames", but the GNU
80448         Coding Standards say to use "path" for something else;
80449         so use "absolute" to keep both sides happy.
80450         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80451         Set gl_absolute_header, not gl_full_header_path.
80452         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80453         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80454         All uses changed.
80455
80456         Merge from coreutils.
80457
80458         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80459
80460         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80461         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80462         want to require the building of c-strtod.o.
80463         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80464         needs -lm directly.
80465         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80466
80467         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80468
80469         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80470         --as-needed option if available.  Problem reported by Albert Chin in
80471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80472         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80473         cc merely issues a bunch of annoying warnings for --as-needed
80474         (this problem was reported by Bob Proulx).  Also, try linking with
80475         -lm to detect a bug in binutils 2.16 (this problem was reported
80476         by Ralf Wildenhues).
80477
80478         2006-06-18  Jim Meyering  <jim@meyering.net>
80479
80480         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80481         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80482         macro.
80483         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80484         also check for glibc-2.4's abort-inducing bug.
80485
80486         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80487         Low-probability clean-up should be to use rmdir to get rid of
80488         the just-created directory, not unlink.
80489
80490         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80491         configure fail, and request a bug report to inform us about it.
80492         Add a comment that, barring reports to the contrary, in 2007 we'll
80493         assume ftruncate is universally available.
80494
80495         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80496
80497         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80498
80499         2006-03-12  Jim Meyering  <jim@meyering.net>
80500
80501         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80502         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80503         * m4/same.m4 (gl_SAME): Likewise.
80504         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80505
80506         2006-03-11  Eric Blake  <ebb9@byu.net>
80507
80508         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80509         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80510         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80511         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80512
80513 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80514
80515         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80516         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80517         reported by Mark D. Baushke, one in
80518         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80519
80520         Merge from coreutils.
80521
80522         * lib/.cppi-disable: Add stdint_.h.
80523         * lib/.cvsignore: Add stdint.h.
80524
80525         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80526
80527         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80528         both double and long double versions.
80529         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80530         * lib/xstrtold.c: New file.
80531         * lib/xstrtod.h (xstrtold): New decl.
80532
80533         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80534
80535         * lib/filemode.c (setst): Remove.
80536         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80537         (arguably) clearer, and the generated code is a bit smaller on my
80538         Debian GNU/Linux stable x86 host.
80539
80540         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80541
80542         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80543         Assume that filemode.h includes sys/types.h and sys/stat.h.
80544         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80545         (ftypelet): Reorder to put common cases first, for efficiency.
80546         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80547         to do 'M'.
80548         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80549         of 10, for compatibility with FreeBSD.  All callers changed.
80550         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80551         types that can't be deduced solely from st_mode.  First arg is now a
80552         const pointer.
80553         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80554         (strmode): Renamed from mode_string.
80555         (filemodestring): New decl.
80556         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80557         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80558         needed.
80559         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80560
80561         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80562
80563         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80564         fsusage.h now does that.  Include fsusage.h first, to test interface.
80565         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80566         at most one method (the old code could have generated decls that
80567         didn't conform to C89, not that this was ever exercised).
80568         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80569
80570         2006-03-19  Jim Meyering  <jim@meyering.net>
80571
80572         Work even in a chroot where d_ino values for entries in "/"
80573         don't match the stat.st_ino values for the same names.
80574         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80575         number, iterate through all entries again, using lstat instead.
80576         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80577         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80578
80579         * lib/getcwd.c (__getcwd): Clarify a comment.
80580         Use memcpy in place of a call to strcpy.
80581
80582         2006-03-12  Jim Meyering  <jim@meyering.net>
80583
80584         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80585         matches that of the current directory (which we're about to chdir ".."
80586         out of), then save the dev-ino of the parent, instead.
80587
80588         * lib/same-inode.h (SAME_INODE): New file/macro.
80589         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80590         Include "same-inode.h", instead.
80591         * lib/same.c: Likewise.
80592         * lib/cycle-check.h: Include "same-inode.h".
80593         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80594         * lib/cycle-check.c (SAME_INODE): Remove definition.
80595         * lib/root-dev-ino.h: Include "same-inode.h".
80596
80597         2006-03-11  Eric Blake  <ebb9@byu.net>
80598
80599         * lib/same.c (same_name): s/base_name/last_component/
80600         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80601         * lib/filenamecat.c (file_name_concat): Likewise.
80602
80603         2006-03-11  Eric Blake  <ebb9@byu.net>,
80604                     Paul Eggert  <eggert@cs.ucla.edu>
80605
80606         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80607         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80608         drive prefix.
80609         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80610         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80611         (last_component): New method.
80612         * lib/dirname.c (dir_len): Determine when drive letters need a
80613         subsequent slash.  Preserve // when it is special.
80614         (dir_name): Don't append dot when drive letter is absolute.
80615         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80616         * lib/basename.c (base_name): New semantics - malloc the result.
80617         Preserve // when it is special.  Preserve relative files that look
80618         like drive letters.
80619         (base_len): Preserve // when it is special.
80620         (last_component): New method, similar to old base_name semantics.
80621         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80622         base_name.  Strip redundant slashes from ///.
80623
80624 2006-07-03  Jim Meyering  <jim@meyering.net>
80625
80626         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80627         macro is used before the first cycle_check call.
80628
80629 2006-07-03  Eric Blake  <ebb9@byu.net>
80630
80631         * modules/dirname (Depends-on): Add xstrndup.
80632
80633 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80634
80635         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80636         test cases, so that config.log is a bit easier to follow.
80637
80638 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80641         both are 64 bits, since this seems to be the tradition, and this
80642         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80643         we ever run into a host that prefers long long to long in this
80644         case, we'll need another configure-time test.  Problem reported by
80645         Jim Meyering.
80646
80647 2006-07-02  Eric Blake  <ebb9@byu.net>
80648
80649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80650
80651 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80652
80653         * modules/inttypes (Depends-on): No longer depends on stdint.
80654         * modules/stdint (Description): Say more about assumptions.
80655         Say that the fast types might differ.  Say macros are used.
80656         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80657         (Makefile.am): Revise list of substituted symbols to match
80658         new stdint.m4.
80659         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80660         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80661         * tests/test-stdint.c (verify_same_types)
80662         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80663         the code conforms to C99/C89.
80664         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80665         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80666
80667 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80668
80669         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80670         but fix a bug, by requiring at least 64 bits.
80671         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80672         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80673         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80674         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80675
80676         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80677         changes.  Make 2.59 a prerequisite.  Check and substitute for
80678         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80679         inttypes.h.  Do not use special include files; just use the
80680         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80681         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80682         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80683         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80684         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80685         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80686         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80687         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80688         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80689         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80690         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80691         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80692         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80693         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80694         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80695         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80696         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80697         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80698         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80699         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80700         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80701         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80702         not check for things that C99 does not require, e.g., int8_t.  If
80703         a test isn't needed unless <stdint.h> isn't working, and is
80704         unlikely to be needed for any other reason, then don't do it
80705         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80706         size_t, since we assume C89 freestanding at least.  Do not check
80707         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80708         the right thing even if the types are not defined.  Instead use:
80709         (gl_STDINT_TYPE_PROPERTIES): New macro.
80710         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80711         testing whether <sys/types.h> clashes, as Autoconf does this for
80712         us now.  All uses removed.
80713         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80714         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80715         (gl_CHECK_TYPE_SAME):
80716         Remove; no longer needed.
80717         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80718         exists, since we'll return 0 anyway in that case.
80719         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80720
80721 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80722
80723         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80724         possible collision with system files.
80725         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80726         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80727         WCHAR_MIN and WCHAR_MAX in this case.
80728         (<stddef.h>): Do not include; no longer needed.
80729         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80730         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80731         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80732         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80733         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80734         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80735         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80736         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80737         !defined(__c99))]: Include in this case too, since it's harmless
80738         now.
80739         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80740         dangerous to do so.
80741         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80742         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80743         (_STDINT_MIN, _STDINT_MAX): New macros.
80744         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80745         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80746         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80747         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80748         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80749         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80750         macros, not typedefs; this simplifies things quite a bit.
80751         Use long int for all types narrower than int64_t.
80752         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80753         Define in terms of long long int or int64_t or long int,
80754         not int64_t or int32_t.  This saves some compile-time testing.
80755         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80756         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80757         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80758         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80759         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80760         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80761         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80762         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80763         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80764         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80765         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80766         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80767         undef any previous version and define our own version, for
80768         simplicity and consistency with the new macros for types.
80769         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80770         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80771         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80772         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80773         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80774         @WINT_T_SUFFIX@ to keep things simple here.
80775         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80776         Simplify by assuming typical 8/16/32/64 host, since we're
80777         already doing that elsewhere anyway.
80778         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80779         and assume long long int is 64 bits if available.  This
80780         speeds up 'configure'.
80781
80782 2006-07-01  Eric Blake  <ebb9@byu.net>
80783
80784         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80785         Reported by Andreas Buening.
80786
80787 2006-07-01  Eric Blake  <ebb9@byu.net>
80788
80789         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80790
80791 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80792
80793         * lib/getaddrinfo.c: fixed typo
80794
80795 2006-06-29  Jim Meyering  <jim@meyering.net>
80796
80797         * modules/strftime (Maintainer): Add my name, since with the
80798         FPRINTFTIME changes strftime.c has forked from glibc.
80799
80800 2006-06-29  Eric Blake  <ebb9@byu.net>
80801
80802         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80803
80804 2006-06-29  Eric Blake  <ebb9@byu.net>
80805
80806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80807
80808 2006-06-29  Eric Blake  <ebb9@byu.net>
80809
80810         * lib/stat_.h: New file.
80811
80812 2006-06-29  Eric Blake  <ebb9@byu.net>
80813
80814         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80815         unused static function.
80816
80817 2006-06-29  Eric Blake  <ebb9@byu.net>
80818
80819         * doc/functions.texi (Function Portability): Document missing lstat
80820         on mingw.
80821
80822 2006-06-29  Eric Blake  <ebb9@byu.net>
80823
80824         * MODULES.html.sh: Add sys_stat.
80825         * modules/sys_stat: New module.
80826         * modules/mkstemp (Depends-on): Add sys_stat.
80827
80828 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80829
80830         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80831
80832 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80833
80834         * m4/c-bs-a.m4: Removed.
80835
80836 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80837
80838         * lib/strftime.c: Assume strftime() exists.
80839
80840 2006-06-29  Derek Price  <derek@ximbiot.com>
80841
80842         * modules/c-bs-a: Removed - \a is C89.
80843         * MODULES.html.sh: Remove c-bs-a.
80844
80845 2006-06-29  Bruno Haible  <bruno@clisp.org>
80846
80847         * modules/wcwidth (License): Change to LGPL.
80848
80849 2006-06-28  Simon Josefsson  <jas@extundo.com>
80850
80851         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80852         on _WIN32.
80853
80854         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80855         getnameinfo.
80856
80857 2006-06-28  Simon Josefsson  <jas@extundo.com>
80858
80859         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80860
80861 2006-06-28  Simon Josefsson  <jas@extundo.com>
80862
80863         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80864         functions there.  It will succeed on Windows XP, but on Windows
80865         2000 and (presumably) earlier, it will fail, and use the internal
80866         re-implementation.
80867         (use_win32_p): New function.
80868         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80869         Support AI_NUMERICSERV to disable getservbyname.
80870         (getnameinfo): New function, only supports
80871         NI_NUMERICHOST|NI_NUMERICSERV for now.
80872
80873         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80874         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80875         getnameinfo.
80876
80877 2006-06-28  Eric Blake  <ebb9@byu.net>
80878
80879         * modules/wcwidth: New file.
80880         * modules/mbchar (Depends-on): Add wcwidth.
80881         * modules/mbswidth (Depends-on): Add wcwidth.
80882         * MODULES.html.sh: Add wcwidth.
80883
80884 2006-06-28  Eric Blake  <ebb9@byu.net>
80885
80886         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80888
80889 2006-06-28  Eric Blake  <ebb9@byu.net>
80890
80891         * lib/xvasprintf.h: Fix comments.
80892
80893 2006-06-28  Eric Blake  <ebb9@byu.net>
80894
80895         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80896         * lib/mbswidth.c (wcwidth): Move from here...
80897         * lib/wcwidth.h: ...to this new file.
80898
80899 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80900
80901         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80902
80903         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80904         it's obsolete.
80905         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80906
80907 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80908
80909         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80910         Autoconf 2.60 says this stuff was obsolete.
80911
80912 2006-06-28  Bruno Haible  <bruno@clisp.org>
80913
80914         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80915
80916 2006-06-28  Bruno Haible  <bruno@clisp.org>
80917
80918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80919         gt_TYPE_WCHAR_T.
80920
80921 2006-06-28  Bruno Haible  <bruno@clisp.org>
80922
80923         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80924         declaration for wcwidth.
80925         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80926
80927 2006-06-28  Bruno Haible  <bruno@clisp.org>
80928
80929         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80930         (mkdir): Define using _mkdir.
80931
80932 2006-06-28  Bruno Haible  <bruno@clisp.org>
80933
80934         * lib/getaddrinfo.h: Fix POSIX URL.
80935         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80936         _WIN32.
80937         (use_win32_p): Make static.
80938         (getaddrinfo): Reject service name if it is empty or does not consist
80939         solely of decimal digits, or if its value is > 65535.
80940         (getnameinfo): Remove useless casts.
80941
80942 2006-06-27  Simon Josefsson  <jas@extundo.com>
80943
80944         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80945         Eggert and Martin Lambers.
80946
80947 2006-06-27  Simon Josefsson  <jas@extundo.com>
80948
80949         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80950         Eggert and Martin Lambers.
80951
80952 2006-06-27  Bruno Haible  <bruno@clisp.org>
80953
80954         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80955         result to 0, not to empty.
80956         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80957
80958 2006-06-27  Bruno Haible  <bruno@clisp.org>
80959
80960         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80961
80962 2006-06-26  Simon Josefsson  <jas@extundo.com>
80963
80964         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80965         present.
80966
80967 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80968
80969         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80970         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80971         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80972
80973 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80974
80975         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80976
80977 2006-06-26  Bruno Haible  <bruno@clisp.org>
80978
80979         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80980
80981 2006-06-26  Bruno Haible  <bruno@clisp.org>
80982
80983         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80984
80985 2006-06-26  Bruno Haible  <bruno@clisp.org>
80986
80987         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80988         SGI C compiler in pre-C99 mode.
80989         Suggested by Mark D. Baushke and Larry Jones.
80990
80991 2006-06-26  Bruno Haible  <bruno@clisp.org>
80992
80993         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80994         WCHAR_MAX.
80995         Reported by Mark D. Baushke and Larry Jones.
80996
80997 2006-06-26  Bruno Haible  <bruno@clisp.org>
80998
80999         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81000         in pre-C99 mode.
81001         Suggested by Mark D. Baushke and Larry Jones.
81002
81003 2006-06-23  Simon Josefsson  <jas@extundo.com>
81004             Bruno Haible  <bruno@clisp.org>
81005
81006         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81007         Emit mostlyclean-local rule.
81008         (func_emit_tests_Makefile_am): Likewise.
81009         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81010
81011 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81012
81013         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81014
81015 2006-06-23  Bruno Haible  <bruno@clisp.org>
81016
81017         * tests/test-stdint.c: Update to match ISO C 99 Technical
81018         Corrigendum 1.
81019
81020 2006-06-23  Bruno Haible  <bruno@clisp.org>
81021
81022         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81023
81024 2006-06-23  Bruno Haible  <bruno@clisp.org>
81025
81026         * lib/stdint_.h: Treat IRIX like OpenBSD.
81027
81028 2006-06-23  Bruno Haible  <bruno@clisp.org>
81029
81030         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81031         ISO C 99 Technical Corrigendum 1.
81032
81033 2006-06-22  Simon Josefsson  <jas@extundo.com>
81034
81035         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81036         MinGW.
81037
81038 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81041         needed.  Some compiler complained about some of them.  Problem reported
81042         by Larry Jones in
81043         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81044
81045 2006-06-21  Simon Josefsson  <jas@extundo.com>
81046
81047         * tests/test-getaddrinfo.c: New file.
81048
81049         * modules/getaddrinfo-tests: New file.
81050
81051         * MODULES.html.sh: Add inet_pton.
81052
81053         * modules/inet_pton: New file.
81054
81055 2006-06-21  Simon Josefsson  <jas@extundo.com>
81056
81057         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81058         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81059         of using the (limited) gnulib implementation on Windows XP.
81060
81061         * m4/inet_pton.m4: New file.
81062
81063 2006-06-21  Simon Josefsson  <jas@extundo.com>
81064
81065         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81066         variable.
81067
81068         * lib/socket_.h: Don't define WINVER.
81069
81070         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81071         slightly modified to work in gnulib.
81072
81073 2006-06-21  Simon Josefsson  <jas@extundo.com>
81074
81075         * doc/gnulib.texi (Windows sockets): Add.
81076
81077 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * lib/read-file.c (fread_file): Start with buffer allocation of
81080         0 bytes rather than 1 byte; this simplifies the code.
81081         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81082         code to free buffer and save/restore errno.
81083         (internal_read_file): Remove unused local.
81084
81085 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81088         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81089         Problem reported by Denis Excoffier in
81090         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81091
81092 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81093
81094         * modules/sys_socket, modules/socklen: Include sys/types since
81095         FreeBSD 4.x's sys/socket.h needs it.
81096
81097 2006-06-19  Simon Josefsson  <jas@extundo.com>
81098
81099         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81100
81101 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81102
81103         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81104
81105 2006-06-19  Bruno Haible  <bruno@clisp.org>
81106
81107         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81108         and FULL_PATH_INTTYPES_H in angle brackets.
81109         Reported by Mark D. Baushke <mdb@gnu.org>.
81110
81111 2006-06-17  Eric Blake  <ebb9@byu.net>
81112
81113         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81114         errno.
81115
81116 2006-06-17  Bruno Haible  <bruno@clisp.org>
81117
81118         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81119         <sys/inttypes.h>.
81120
81121 2006-06-17  Bruno Haible  <bruno@clisp.org>
81122
81123         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81124         whether errno is declared. Assume <errno.h> declares errno.
81125
81126 2006-06-17  Bruno Haible  <bruno@clisp.org>
81127
81128         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81129
81130 2006-06-17  Bruno Haible  <bruno@clisp.org>
81131
81132         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81133         problem on Solaris 2.5.1.
81134
81135 2006-06-16  Eric Blake  <ebb9@byu.net>
81136
81137         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81138         * lib/unicodeio.c [!defined errno]: Likewise.
81139         * lib/strtol.c [!defined errno]: Likewise.
81140         * lib/strtod.c [!defined errno]: Likewise.
81141
81142 2006-06-15  Eric Blake  <ebb9@byu.net>
81143
81144         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81145
81146 2006-06-15  Eric Blake  <ebb9@byu.net>
81147
81148         * config/srclist.txt (ssize_t.m4): Lose sync.
81149
81150 2006-06-15  Bruno Haible  <bruno@clisp.org>
81151
81152         * modules/stdint (Files): Include m4/full-header-path.m4,
81153         m4/size_max.m4, m4/wchar_t.m4.
81154         (Makefile.am): Many more substitutions.
81155         * modules/stdint-tests: New file.
81156         * tests/test-stdint.c: New file.
81157
81158 2006-06-15  Bruno Haible  <bruno@clisp.org>
81159
81160         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81161         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81162         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81163         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81164         gl_CHECK_TYPE_SAME): New macros.
81165
81166 2006-06-15  Bruno Haible  <bruno@clisp.org>
81167
81168         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81169
81170 2006-06-15  Bruno Haible  <bruno@clisp.org>
81171
81172         * lib/stdint_.h: Rewritten to be fully auto-configured.
81173         Fixes bug on HP-UX/IA64.
81174
81175 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81176
81177         * lib/getdate.y (__attribute__): Don't define if already defined.
81178         Problem reported by Larry Jones.
81179         * lib/utimens.c (__attribute__): Likewise.
81180
81181 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81182
81183         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81184         reported by Andreas Schwab.
81185
81186 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81187             Bruno Haible  <bruno@clisp.org>
81188
81189         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81190         check for the declaration of strnlen and a run test that exposes the
81191         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81192         rpl_strndup.
81193
81194 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81195             Bruno Haible  <bruno@clisp.org>
81196
81197         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81198
81199 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81200
81201         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81202         compile test, for Tru64 4.0D.
81203
81204 2006-05-28  Karl Berry  <karl@gnu.org>
81205
81206         * config/srclist.txt (printf-args.c): lose sync.
81207
81208 2006-05-26  Martin Lambers  <marlam@marlam.de>
81209
81210         * lib/getpass.c: Updates the test for the native W32 API, and adds
81211         missing includes, thus fixing compilation warnings.
81212
81213 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81214
81215         * lib/exclude.c (exclude_fnmatch): New function.
81216         (excluded_file_name): Call exclude_fnmatch.
81217         * lib/exclude.h (excluded_file_name): New prototype
81218
81219 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81220
81221         * lib/tempname.c (small_open, large_open): New macros.
81222         (__open, __open64) [!_LIBC]: Remove.
81223         (__gen_tempname): Use small_open and large_open instead of __open
81224         and __open64.  This fixes a portability bug on HP-UX 11.11i
81225         reported by Simon Wing-Tang in
81226         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81227
81228 2006-05-24  Bruno Haible  <bruno@clisp.org>
81229
81230         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81231         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81232         Reported by Thorsten Maerz <torte@netztorte.de> via
81233         Aaron Stone <aaron@serendipity.cx>.
81234
81235 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81236
81237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81238         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81239         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81240         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81241         not really conditional on the cache.
81242         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81243
81244 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81245
81246         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81247         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81248         (my_usleep): Don't mishandle maximum value.
81249
81250 2006-05-19  Jim Meyering  <jim@meyering.net>
81251
81252         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81253
81254 2006-05-17  Bruno Haible  <bruno@clisp.org>
81255
81256         Cygwin portability.
81257         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81258
81259 2006-05-17  Bruno Haible  <bruno@clisp.org>
81260
81261         * lib/stdint_.h: Fix recognition of Cygwin.
81262
81263 2006-05-15  Bruno Haible  <bruno@clisp.org>
81264
81265         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81266         on libtool patch by Ralf Wildenhues.
81267
81268 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81269
81270         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81271         test for C99 conformance; (bool) 0.5 is an integer constant
81272         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81273         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81274
81275 2006-05-11  Simon Josefsson  <jas@extundo.com>
81276
81277         * m4/xvasprintf.m4: Fix obvious typo.
81278
81279 2006-05-11  Jim Meyering  <jim@meyering.net>
81280
81281         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81282         James Lemley.
81283
81284 2006-05-10  Simon Josefsson  <jas@extundo.com>
81285
81286         * lib/md4.c: Typo fix, update copyright years.
81287         (K1, K2): Don't use L because it turn computations into 64-bit on
81288         64-bit platforms.
81289
81290 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81291
81292         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81293         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81294         unwanted sign propagation, e.g., on hosts with 64-bit int.
81295         There still are some problems with reeelly weird theoretical hosts
81296         (e.g., 33-bit int) but it's not worth worrying about now.
81297         * lib/sha1.c (rol): Likewise.
81298         (K1, K2, K3, K4): Remove unnecessary L suffix.
81299
81300 2006-05-10  Bruno Haible  <bruno@clisp.org>
81301
81302         * lib/des.c: Cast to avoid warnings.
81303
81304 2006-05-09  Bruno Haible  <bruno@clisp.org>
81305
81306         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81307         (Depends-on): Depend also on xsize, stdarg.
81308         (configure.ac): Add gl_XVASPRINTF.
81309
81310 2006-05-09  Bruno Haible  <bruno@clisp.org>
81311
81312         * m4/xvasprintf.m4: New file.
81313
81314 2006-05-09  Bruno Haible  <bruno@clisp.org>
81315
81316         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81317         (EOVERFLOW): Define fallback value.
81318         (xstrcat): New function.
81319         (xvasprintf): Recognize the special case of a string concatenation.
81320
81321 2006-05-08  Eric Blake  <ebb9@byu.net>
81322
81323         * gnulib-tool (func_version): Base copyright year on CVS date.
81324         (func_emit_copyright_notice): New function.
81325         (func_emit_lib_Makefile_am): Use it.
81326         (func_emit_tests_Makefile_am): Likewise.
81327         (func_import): Likewise.
81328
81329 2006-05-08  Bruno Haible  <bruno@clisp.org>
81330
81331         * modules/stdarg: New file.
81332         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81333
81334 2006-05-08  Bruno Haible  <bruno@clisp.org>
81335
81336         * m4/stdarg.m4: New file, from GNU gettext.
81337
81338 2006-05-08  Bruno Haible  <bruno@clisp.org>
81339
81340         * config/srclist.txt (build-aux/config.rpath): different from latest
81341         release.
81342
81343 2006-05-08  Bruno Haible  <bruno@clisp.org>
81344
81345         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81346
81347 2006-05-05  Jim Meyering  <jim@meyering.net>
81348
81349         * m4/warning.m4: New file, derived from bison's file by the same name.
81350
81351 2006-05-03  Bruno Haible  <bruno@clisp.org>
81352
81353         * lib/stdint_.h: Shorter URL.
81354         * lib/inttypes.h: Likewise.
81355
81356 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81357
81358         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81359
81360 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81361
81362         * lib/verify.h: Document the internals better.  Most of this change
81363         was written by Bruno Haible.
81364
81365 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81366
81367         * doc/verify.texi: New file, partly based on a proposal by
81368         Bruno Haible.
81369
81370 2006-05-02  Bruno Haible  <bruno@clisp.org>
81371
81372         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81373         test from here...
81374         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81375
81376 2006-04-29  Bruno Haible  <bruno@clisp.org>
81377
81378         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81379         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81380
81381 2006-04-29  Bruno Haible  <bruno@clisp.org>
81382
81383         * gnulib-tool: Make --update option actually work.
81384
81385 2006-04-29  Bruno Haible  <bruno@clisp.org>
81386
81387         * doc/gcd.texi: New file.
81388         * doc/gnulib.texi: Include it.
81389
81390 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81391
81392         * lib/getdate.y (get_date): When adding relative date, start with the
81393         initial time, not with the result of the first mktime call.
81394
81395 2006-04-25  Bruno Haible  <bruno@clisp.org>
81396
81397         * gnulib-tool (func_import): Output the include directives in three
81398         blocks, sorted separately.
81399         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81400
81401 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81402
81403         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81404         to define main with arguments, for C++.  Reported by Eric Blake.
81405         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81406         Prefer 'int main ()' to 'int main (void)', for C++.
81407         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81408         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81409         for 'main', for C99 and C++.
81410
81411 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81412
81413         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81414         Don't assume that exit status -1 is valid.
81415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81416         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81417         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81418         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81419         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81420         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81421         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81422         functions can be used without declaring them, or that you can
81423         exit with status -1.
81424         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81425
81426 2006-04-24  Karl Berry  <karl@gnu.org>
81427
81428         * config/srclist.txt (longdouble.m4): sync lost.
81429
81430 2006-04-24  Eric Blake  <ebb9@byu.net>
81431
81432         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81433
81434 2006-04-24  Bruno Haible  <bruno@clisp.org>
81435
81436         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81437         poll() implementation in AIX.
81438         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81439
81440 2006-04-24  Bruno Haible  <bruno@clisp.org>
81441
81442         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81443         assigned exactly once.
81444
81445 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81446             Bruno Haible  <bruno@clisp.org>
81447
81448         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81449         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81450         for AM_CPPFLAGS.
81451
81452 2006-04-23  Bruno Haible  <bruno@clisp.org>
81453
81454         * modules/copy-file: Depend on unistd.
81455         * modules/execute: Likewise.
81456         * modules/fatal-signal: Likewise.
81457         * modules/findprog: Likewise.
81458         * modules/mkdtemp : Likewise.
81459         * modules/pipe: Likewise.
81460         * modules/wait-process: Likewise.
81461
81462 2006-04-23  Bruno Haible  <bruno@clisp.org>
81463
81464         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81465         condition was already detected.
81466         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81467
81468 2006-04-23  Bruno Haible  <bruno@clisp.org>
81469
81470         * lib/copy-file.c: Include <unistd.h> unconditionally.
81471         * lib/execute.c: Likewise.
81472         * lib/fatal-signal.c: Likewise.
81473         * lib/findprog.c: Likewise.
81474         * lib/mkdtemp.c: Likewise.
81475         * lib/pipe.h: Likewise.
81476         * lib/pipe.c: Likewise.
81477         * lib/wait-process.h: Likewise.
81478
81479 2006-04-23  Bruno Haible  <bruno@clisp.org>
81480
81481         * gnulib-tool (func_usage): Fix --import description. Document
81482         --update.
81483         (func_import): Create temporary file in a temporary directory, if
81484         --dry-run is specified. Silence errors from 'grep' when there are no
81485         m4 files in $m4dir.
81486         (func_create_testdir): Silence errors from 'grep' when there are no
81487         m4 files in $m4dir.
81488         Reported by Karl Berry <karl@freefriends.org>.
81489
81490 2006-04-20  Bruno Haible  <bruno@clisp.org>
81491
81492         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81493         one argument, so that the code will be portable to Autoconf 2.60.
81494         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81495         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81496         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81497
81498 2006-04-19  Derek Price  <derek@ximbiot.com>
81499             Eric Blake  <ebb9@byu.net>
81500
81501         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81502         rather than "/full/path.h".  Update comment to match.  Shorten &
81503         generalize m4_translit call via AS_TR_CPP.
81504
81505 2006-04-19  Derek Price  <derek@ximbiot.com>
81506             Eric Blake  <ebb9@byu.net>
81507
81508         * lib/inttypes.h: Correct grammar in comment.
81509
81510 2006-04-18  Derek Price  <derek@ximbiot.com>
81511             Paul Eggert  <eggert@cs.ucla.edu>
81512
81513         * modules/inttypes: New file.
81514         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81515
81516 2006-04-18  Derek Price  <derek@ximbiot.com>
81517             Paul Eggert  <eggert@cs.ucla.edu>
81518
81519         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81520         New files.
81521
81522 2006-04-18  Derek Price  <derek@ximbiot.com>
81523             Paul Eggert  <eggert@cs.ucla.edu>
81524
81525         * lib/inttypes.h: New file.
81526         * lib/strtoimax.c: Assume <inttypes.h>.
81527
81528 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81529
81530         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81531         isn't mounted.  Problem reported by Kir Kolyshkin.
81532
81533 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81534
81535         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81536         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81537         Derek R. Price.
81538         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81539         implementation.
81540
81541 2006-04-12  Eric Blake  <ebb9@byu.net>
81542
81543         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81544         is now done automatically by the corresponding Autoconf macro.
81545
81546 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81547
81548         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81549         time_r.h.
81550
81551 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81552
81553         Merge regex changes from libc, removing some of our
81554         POSIX-conformance changes that were rejected and redoing them in a
81555         less-intrusive way.
81556
81557         * lib/regcomp.c (re_compile_internal, init_dfa):
81558         Length arg is now size_t, not Idx.  All uses changed.
81559         (peek_token): Forward decl now says internal_function.
81560         (__re_error_msgid, __re_error_msgid_idx):
81561         Now static rather than extern with attribute_hidden.
81562         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81563         For some reason libc prefers K&R style defns for external functions.
81564         (regerror) [!defined _LIBC]: Likewise.
81565         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81566         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81567         (build_range_exp, build_collating_symbol):
81568         Use K&R-style defn.
81569         (re_compile_fastmap): Use '\0' to memset, not 0.
81570         (utf8_sb_map): Make the calculations more obvious.
81571         (init_dfa, parse_bracket_exp, build_charclass_op):
81572         Call calloc and cast result, as glibc does.
81573         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81574         (build_range_exp, build_collating_symbol):
81575         Now internal functions.
81576
81577         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81578
81579         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81580         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81581         Don't depend on VMS; depend on __VMS instead, for POSIX
81582         namespace cleanness.
81583         (regoff_t): Define to ssize_t, not long int.
81584
81585         Remove the REG_ macros named below.  Instead, make the old names
81586         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81587         __USE_GNU_REGEX.
81588         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81589         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81590         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81591         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81592         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81593         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81594         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81595         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81596         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81597         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81598         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81599         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81600         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81601         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81602         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81603         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81604         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81605         (REG_NREGS):
81606         Remove.  All uses replaced by the old RE_* names.
81607         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81608         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81609         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81610         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81611         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81612         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81613         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81614         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81615         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81616         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81617         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81618         Don't bother having these macros be independent of each others'
81619         values, since they no longer exist in the POSIX name space.
81620
81621         Rename the following member names back to their old names,
81622         unless !__USE_GNU_REGEX.  All uses changed back.
81623         (buffer): Renamed from re_buffer.
81624         (allocated): Renamed from re_allocated.
81625         (used): Renamed from re_used.
81626         (syntax): Renamed from re_syntax.
81627         (fastmap): Renamed from re_fastmap.
81628         (translate): Renamed from re_translate.
81629         (can_be_null): Renamed from re_can_be_null.
81630         (regs_allocated): Renamed from re_regs_allocated.
81631         (fastmap_accurate): Renamed from re_fastmap_accurate.
81632         (no_sub): Renamed from re_no_sub.
81633         (not_bol): Renamed from re_not_bol.
81634         (not_eol): Renamed from re_not_eol.
81635         (newline_anchor): Renamed from re_newline_anchor.
81636         (num_regs): Renamed from rm_num_regs.
81637         (start): Renamed from rm_start.
81638         (end): Renamed from rm_end.
81639
81640         (free_state): Move up a bit.
81641
81642         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81643         #define to be empty.
81644         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81645         when that is what is intended.
81646         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81647         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81648         (MAX): New macro.
81649         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81650         All uses changed back to re_malloc, etc.  It's now the caller's
81651         responsibility to check for overflow; all callers changed.
81652         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81653         (re_x2nrealloc): Remove.
81654         (free_state): Remove decl.
81655
81656         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81657         (re_set_registers, re_exec):
81658         Use K&R-style defn.
81659
81660         2006-01-31  Roland McGrath  <roland@redhat.com>
81661
81662         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81663         Reported by Mike Frysinger <vapier@gentoo.org>.
81664
81665         2006-01-15  Andreas Jaeger  <aj@suse.de>
81666
81667         [BZ #1950]
81668         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81669         build_wcs_upper_buffer change.
81670         (build_wcs_upper_buffer): Change return type.
81671
81672         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81673
81674         * lib/regex_internal.h: Include <stdint.h> if available.
81675
81676         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81677
81678         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81679
81680         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81681
81682         * lib/regcomp.c: Adjust for changed secondary hash function.
81683
81684         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81685
81686         * lib/regex.h: Pretty printing.
81687         Clean up namespace a bit.
81688
81689         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81690
81691         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81692         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81693
81694         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81695                     Ulrich Drepper  <drepper@redhat.com>
81696
81697         [BZ #1302]
81698         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81699         changed.
81700         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81701
81702         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81703
81704         [BZ #281]
81705         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81706         * lib/regcomp.c: Remove unnecessary uses of
81707         unsigned RE_TRANSLATE_TYPE.
81708         * lib/regex_internal.h: Likewise.
81709         * lib/regex_internal.c: Likewise.
81710         * lib/regexec.c: Likewise.
81711         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81712
81713         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81714
81715         * lib/regexec.c (find_recover_state): Remove unnecessary
81716         initialization.
81717         (transit_state_bkref): Make DFA a const pointer.
81718         (get_subexp): Likewise.
81719         (check_arrival): Likewise.
81720         (update_cur_sifted_state): Likewise.
81721         (re_search_internal): Likewise.
81722         (prune_impossible_nodes): Likewise.
81723         (acquire_init_state_context): Likewise.
81724         (proceed_next_node): Likewise.
81725         (set_regs): Likewise.
81726         (free_fail_stack_return): Likewise.
81727         (check_arrival_expand_ecl): Mark DFA parameter as const.
81728         (check_arrival_expand_ecl_sub): Likewise.
81729         (check_subexp_limits): Likewise.
81730         (sub_epsilon_src_nodes):  Likewise.
81731         (add_epsilon_src_nodes):  Likewise.
81732         (merge_state_array): Likewise.
81733         (update_regs): Likewise.
81734         (build_trtable): Likewise.
81735         (sift_states_backward): Mark MCTX parameter as const.
81736         (build_sifted_states): Likewise.
81737         (update_cur_sifted_state): Likewise.
81738         (sift_states_mkref): Likewise.
81739         (check_arrival_expand_ecl): Mark eclosure as const.
81740         (check_dst_limits_calc_pos_1): Likewise.
81741         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81742         pointer.
81743
81744         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81745
81746         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81747         (transit_state_sb): Likewise.
81748         (transit_state_mb): Likewise.
81749         (sift_states_iter_mb): Likewise.
81750         (check_arrival_add_next_nodes): Likewise.
81751         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81752         [_LIBC] (re_search_2_stub): Use mempcpy.
81753
81754         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81755         mbrtowc for very simple UTF-8 case.
81756
81757         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81758         a pointer-to-const.
81759         (re_acquire_state_context): Likewise.
81760         * lib/regex_internal.h: Adjust prototypes.
81761
81762         * lib/regex.c: Prevent using C++ compilers.
81763
81764         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81765         (re_acquire_state_context): Likewise.
81766
81767 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81768
81769         * modules/regex (Depends-on): Add ssize_t.
81770
81771 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81772
81773         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81774         translation table.
81775
81776 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81777
81778         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81779
81780 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81781             Bruno Haible  <bruno@clisp.org>
81782
81783         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81784         <sys/types.h> and <inttypes.h>.
81785
81786 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81787
81788         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81789         `__error_t_defined', so argp.h will not typedef the former.
81790
81791 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81792
81793         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81794         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81795         glibc names.  Even if glibc is changed to conform to POSIX, the
81796         traditional names will be available anyway, since regex depends on
81797         the extensions module.  Also, fix a longstanding typo in the
81798         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81799         reported by Emanuele Giaquinta.  Also, change sense of cached
81800         variable, so that the message makes sense.
81801
81802 2006-03-24  Simon Josefsson  <jas@extundo.com>
81803
81804         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81805         including some doc fixes.
81806         (base64_encode_alloc): Fix +1 bug on allocation failures.
81807
81808 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81809
81810         * lib/base64.c (base64_encode): Do not read past end of array with
81811         unsanitized input on systems with CHAR_BIT > 8.
81812
81813 2006-03-24  Eric Blake  <ebb9@byu.net>
81814
81815         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81816
81817 2006-03-22  Karl Berry  <karl@gnu.org>
81818
81819         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81820         * config/srclistvars.sh (COREUTILS): new var.
81821
81822 2006-03-17  Jim Meyering  <jim@meyering.net>
81823
81824         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81825         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81826
81827 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81828
81829         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81830         no longer needs it.  Instead, check that regoff_t is as least
81831         as wide as ptrdiff_t.
81832
81833         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81834         so that our regex.h stays compatible with the installed regex.
81835         This is helpful for installers who configure --without-included-regex.
81836         Problem reported by Emanuele Giaquinta.
81837
81838 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81839
81840         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81841         Typedef to long int, not to off_, as POSIX will likely change
81842         in that direction.
81843
81844 2006-03-15  Eric Blake  <ebb9@byu.net>
81845
81846         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81847
81848 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81849
81850         * lib/argp-help.c (validate_uparams): Fix typo
81851         * lib/argp-parse.c (argp_default_options): Consistently begin help
81852         messages with a lowercase letter.
81853
81854 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81855
81856         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81857         overrun buffers and shouldn't be used (much as gets shouldn't be
81858         used).
81859         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81860
81861 2006-03-08  Simon Josefsson  <jas@extundo.com>
81862
81863         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81864         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81865
81866 2006-03-08  Simon Josefsson  <jas@extundo.com>
81867
81868         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81869         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81870
81871 2006-03-08  Simon Josefsson  <jas@extundo.com>
81872
81873         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81874         signal that configure disabled the device.
81875
81876 2006-03-08  Simon Josefsson  <jas@extundo.com>
81877
81878         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81879         languages.
81880
81881 2006-03-07  Simon Josefsson  <jas@extundo.com>
81882
81883         * modules/getopt (Depends-on): Add unistd.
81884
81885         * modules/unistd: New file.
81886
81887 2006-03-07  Simon Josefsson  <jas@extundo.com>
81888
81889         * modules/gc-random: New file.
81890
81891 2006-03-07  Simon Josefsson  <jas@extundo.com>
81892
81893         * m4/unistd_h.m4: New file.
81894
81895 2006-03-07  Simon Josefsson  <jas@extundo.com>
81896
81897         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81898         test to be side-effect free by storing the result in the cache
81899         variable gl_cv_lib_readline, and moving the assignment of
81900         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81901         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81902
81903 2006-03-07  Simon Josefsson  <jas@extundo.com>
81904
81905         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81906         error on missing devices (the functions will return an error).
81907
81908         * m4/gc.m4: Move random stuff to gc-random.m4
81909
81910 2006-03-07  Simon Josefsson  <jas@extundo.com>
81911
81912         * lib/unistd_.h: New file.
81913
81914 2006-03-07  Simon Josefsson  <jas@extundo.com>
81915
81916         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81917
81918 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81919
81920         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81921         Problem reported by Juan Manuel Guerrero.
81922
81923 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81924
81925         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81926         the unistd module.
81927         * lib/getlogin_r.c: Likewise.
81928         * lib/getlogin_r.h: Likewise.
81929         * lib/glob.c: Likewise.
81930         * lib/pagealign_alloc.c: Likewise.
81931         * lib/unistd_.h: Remove; no longer needed.
81932
81933 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81934
81935         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81936         Add unistd.
81937         * modules/c-stack (Depends-on): Add unistd.
81938         * modules/getlogin_r: Likewise.
81939         * modules/glob: Likewise.
81940         * modules/pagealign_alloc: Likewise.
81941         * modules/unistd (Files): Remove lib/unistd_.h.
81942         (EXTRA_DIST): Remove.
81943         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81944         need unistd_.h.
81945         (MOSTLYCLEANFILES): Remove unistd.h-t.
81946
81947 2006-03-03  Simon Josefsson  <jas@extundo.com>
81948
81949         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81950
81951 2006-03-03  Simon Josefsson  <jas@extundo.com>
81952
81953         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81954         libidn and bison.
81955
81956 2006-03-03  Simon Josefsson  <jas@extundo.com>
81957
81958         * build-aux/maint.mk: Add indent target.
81959
81960 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81961
81962         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81963         our replacement poll.h in any case, to avoid a differing
81964         declaration from a system header.  Seen on AIX.
81965
81966 2006-03-01  Simon Josefsson  <jas@extundo.com>
81967
81968         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81969         <kasal@ucw.cz>.
81970
81971 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         * modules/gettime (Depends-on): Add extensions module.
81974         * modules/nanosleep (Depends-on): Likewise.
81975         * modules/settime (Depends-on): Likewise.
81976
81977 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81978
81979         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81980         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81981         pedantically.
81982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81983         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81984
81985         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81986         not "==".  Reported by Ralf Wildenhues.
81987
81988 2006-03-01  Karl Berry  <karl@gnu.org>
81989
81990         * doc/Copyright/request-*: new files, synced from gnuorg.
81991
81992 2006-03-01  Karl Berry  <karl@gnu.org>
81993
81994         * config/srclist.txt (Copyright/*): new entries.
81995
81996 2006-02-28  Simon Josefsson  <jas@extundo.com>
81997
81998         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81999
82000 2006-02-27  Simon Josefsson  <jas@extundo.com>
82001
82002         * lib/base64.h: Indent #define's.  From Jim Meyering
82003         <jim@meyering.net>.
82004
82005 2006-02-27  Jim Meyering  <jim@meyering.net>
82006
82007         Revert the change of 2006-02-24, so these files can continue
82008         to be sync'd from gettext.
82009         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82010         of `config.h'.
82011
82012 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82013
82014         * modules/intprops: New file.
82015         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82016         Add intprops.
82017         * modules/getloadavg (Files): Remove lib/intprops.h.
82018         (Depends-on): Add intprops.
82019         * modules/human: Likewise.
82020         * modules/inttostr: Likewise.
82021         * modules/openat: Likewise.
82022         * modules/sig2str: Likewise.
82023         * modules/userspec: Likewise.
82024         * modules/utimecmp: Likewise.
82025         * modules/xnanosleep: Likewise.
82026         * modules/xstrtol: Likewise.
82027
82028 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82029
82030         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82031         * modules/lock-tests (TESTS): Use $(EXEEXT).
82032         * modules/tls-tests: Likewise.
82033         * modules/argp-tests: Likewise.
82034         (check_PROGRAMS): New var, replacing...
82035         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82036
82037 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82038
82039         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82040         `config.h'.
82041
82042 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82043
82044         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82045
82046 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82047
82048         Sync from coreutils.
82049         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82050         gl_CHDIR_SAFER.
82051
82052 2006-02-22  Jim Meyering  <jim@meyering.net>
82053
82054         Sync from coreutils.
82055         * m4/chdir-safer.m4: New file.
82056
82057 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82058
82059         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82060         AT_FDCWD exceeds INT_MAX.
82061         * lib/openat.h (AT_FDCWD): Likewise.
82062
82063 2006-02-17  Eric Blake  <address@hidden>
82064
82065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82066
82067 2006-02-16  Simon Josefsson  <jas@extundo.com>
82068
82069         * modules/getaddrinfo (Depends-on): Add sys_socket.
82070
82071 2006-02-15  Simon Josefsson  <jas@extundo.com>
82072
82073         * build-aux/maint.mk: Add dsyntax-check rule.
82074
82075 2006-02-15  Eric Blake  <ebb9@byu.net>
82076
82077         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82078         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82079         'present but cannot compile' warnings on cygwin.
82080         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82081         use ws2tcpip.h if sys/socket.h works.
82082         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82083         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82084
82085 2006-02-14  Simon Josefsson  <jas@extundo.com>
82086
82087         * modules/maintainer-makefile (Files): Rename.
82088
82089         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82090         and (the local) Makefile.cfg to maint-cfg.mk.
82091
82092         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82093         to the latter.
82094
82095         * modules/maintainer-makefile: New module.
82096
82097         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82098         severaly stripped to make it possible to build it up from scratch
82099         with reliable tests.
82100
82101         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82102         fixes to permit overriding the default actions when configure and
82103         makefile are not available.
82104
82105 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82106
82107         Sync from coreutils.
82108         * modules/lstat (Depends-on): Don't depend on xalloc.
82109         (License): Change from GPL to LGPL, since this is now simply a
82110         replacement for a libc function.
82111
82112 2006-02-14  Jim Meyering  <jim@meyering.net>
82113
82114         Sync from coreutils.
82115
82116         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82117         failure on deficient systems, and simplify gnulib lgpl dependencies.
82118         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82119         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82120
82121         * lib/xalloc-die.c: Remove unused definition of N_.
82122
82123 2006-02-14  Jim Meyering  <jim@meyering.net>
82124
82125         Sync from coreutils.
82126         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82127         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82128         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82129         double-quote uses of that variable, to accommodate the rare case in
82130         which getmntent is available in none of the libraries checked.  This
82131         happens at least on FreeBSD 5.0.
82132
82133 2006-02-13  Simon Josefsson  <jas@extundo.com>
82134
82135         * gnulib-tool (Usage): Fix --import, from
82136         karl@freefriends.org (Karl Berry).
82137
82138 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82139
82140         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82141
82142 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82143
82144         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82145         "autoupdate" on 2005-12-12.
82146
82147 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82148
82149         * modules/closeout (Depends-on): Remove atexit.
82150
82151 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82152
82153         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82154         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82155
82156 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82157
82158         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82159         __EXTENSIONS__ if this causes compilation to fail.  Problem
82160         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82161         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82162
82163 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82164
82165         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82166         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82167         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82168         All uses changed.
82169
82170 2006-01-26  Simon Josefsson  <jas@extundo.com>
82171
82172         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82173         prototype is visible on mingw32.
82174
82175         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82176         for mingw32.
82177
82178         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82179         mingw32).
82180
82181 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82182
82183         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82184         attempt to open for write; this always fails, at least on POSIX
82185         hosts.  This reinstates the 2006-01-09 change, which was
82186         inadvertently removed.
82187
82188 2006-01-26  Bruno Haible  <bruno@clisp.org>
82189
82190         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82191         Reported by Paul Eggert.
82192
82193 2006-01-26  Bruno Haible  <bruno@clisp.org>
82194             Paul Eggert  <eggert@cs.ucla.edu>
82195
82196         * lib/stdbool_.h (_Bool)
82197         [(! (defined __cplusplus || defined __BEOS__)
82198           && !defined __GNUC__
82199           && !(defined __HP_cc || defined __xlc__
82200                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82201                || defined __sgi))]:
82202         #define to signed char in these cases too; this simplifies
82203         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82204         etc., separately) and makes it more conservative.
82205
82206 2006-01-25  Simon Josefsson  <jas@extundo.com>
82207
82208         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82209         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82210         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82211
82212 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82213
82214         * lib/argp-namefrob.h: Bugfix. Remove stray #
82215
82216 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82217
82218         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82219         so that we test the test.
82220         Check for yet another HP-UX cc bug involving *bool |= bool.
82221
82222 2006-01-25  Karl Berry  <karl@gnu.org>
82223
82224         * config/srclist.txt (vasnprintf.c): sync lost.
82225
82226 2006-01-25  Jim Meyering  <jim@meyering.net>
82227
82228         Sync from the stable (b5) branch of coreutils:
82229
82230         * lib/fts.c (fts_children): Don't let close() clobber errno from
82231         failed fchdir().
82232
82233         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82234         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82235         a dangling symlink.  That can also happen at least for ELOOP.
82236         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82237         FYI, this bug predates the inclusion of fts.c in coreutils.
82238
82239         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82240         in their own block, so pre-c99 compilers don't object.
82241
82242         Avoid the double-free (first in fts_read, second in fts_close) that
82243         would occur when an `active' directory is made inaccessible (e.g.,
82244         via chmod a-x) during a traversal.
82245         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82246         before returning.  Reproduce this failure by
82247         mkdir -p a/b; cd a; chmod a-x . b
82248         Reported by Stavros Passas.
82249
82250 2006-01-25  Jim Meyering  <jim@meyering.net>
82251
82252         * lib/fileblocks.c: Remove more useless parentheses.
82253         * lib/readutmp.h: Likewise.
82254
82255 2006-01-25  Bruno Haible  <bruno@clisp.org>
82256
82257         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82258         warnings.
82259         Reported by Paul Eggert.
82260
82261 2006-01-25  Bruno Haible  <bruno@clisp.org>
82262
82263         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82264         rid of a trap command. For Solaris sh.
82265         Reported by Mark D. Baushke <mdb@gnu.org>.
82266
82267 2006-01-24  Simon Josefsson  <jas@extundo.com>
82268
82269         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82270         Bruno.
82271
82272 2006-01-24  Karl Berry  <karl@gnu.org>
82273
82274         * config/srclist.txt (argp-namefrob.h): sync lost.
82275
82276 2006-01-24  Jim Meyering  <jim@meyering.net>
82277
82278         * modules/openat (Files): Add lib/intprops.h.
82279         From Mark D. Baushke.
82280
82281 2006-01-24  Jim Meyering  <jim@meyering.net>
82282
82283         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82284         Reported by Mark D. Baushke.
82285
82286 2006-01-24  Jim Meyering  <jim@meyering.net>
82287
82288         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82289
82290 2006-01-24  Bruno Haible  <bruno@clisp.org>
82291
82292         * modules/strnlen (Maintainer): Change from glibc to all.
82293
82294 2006-01-24  Bruno Haible  <bruno@clisp.org>
82295
82296         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82297         Patch by Paul Eggert.
82298
82299 2006-01-24  Bruno Haible  <bruno@clisp.org>
82300
82301         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82302         already has it.
82303         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82304         2005-11-26.
82305
82306         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82307         'signed char' to avoid problems with the built-in _Bool type.
82308         Reported by Paul Eggert on 2005-11-26.
82309
82310 2006-01-24  Bruno Haible  <bruno@clisp.org>
82311
82312         * gnulib-tool (func_import): Avoid constructing complicated sed
82313         expressions inside backquote.
82314         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82315
82316 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82317
82318         These changes imported from libc.
82319         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82320         test and two separate function calls.
82321         * lib/strndup.c (__strndup): Add libc_hidden_def.
82322
82323 2006-01-23  Simon Josefsson  <jas@extundo.com>
82324
82325         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82326         Remove the test_*_SOURCES variable: automake infers it by default.
82327         * modules/tls-tests: Likewise.
82328
82329 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82330
82331         Work around porting bugs reported by Dieter in
82332         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82333         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82334         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82335         Include "getopt.h" first, to check interface.
82336         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82337         !HAVE_DECL_GETENV.
82338         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82339         (__strndup): Revert to K&R-style function dfns, the glibc style.
82340         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82341         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82342         Include strnlen.h first, to get prototype properly.
82343         (strnlen): Renamed from __strnlen.
82344         Remove weak alias.
82345
82346 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82347
82348         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82349
82350 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82351
82352         * config/srclist.txt: Adjust to reflect glibc reorganization.
82353         This affects only comments.
82354
82355 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82356
82357          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82358          Reported by Bruce Korb <bkorb@gnu.org>.
82359
82360 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82361
82362         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82363         to pacify gcc -Wswitch-default.
82364
82365 2006-01-22  Bruno Haible  <bruno@clisp.org>
82366
82367         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82368         temporary buffer for sprintf, take into account the precision also
82369         for 'd', 'i', 'u', 'o', 'x', 'X'.
82370
82371 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82372
82373         * modules/argp-tests: New module
82374         * tests/test-argp.c: New file
82375         * tests/test-argp-2.sh: New file
82376
82377 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82378
82379         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82380         (__argp_base_name): Removed
82381         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82382         typo.
82383         (__argp_base_name): Provide macro definition or extern declaration
82384         depending on the configuration
82385
82386 2006-01-20  Simon Josefsson  <jas@extundo.com>
82387
82388         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82389
82390 2006-01-20  Simon Josefsson  <jas@extundo.com>
82391
82392         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82393
82394 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82395
82396         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82397         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82398         Suggested by Bruno Haible.
82399
82400 2006-01-20  Karl Berry  <karl@gnu.org>
82401
82402         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82403         until changes propagate, I guess.
82404
82405 2006-01-19  Simon Josefsson  <jas@extundo.com>
82406
82407         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82408
82409 2006-01-19  Simon Josefsson  <jas@extundo.com>
82410
82411         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82412
82413 2006-01-19  Simon Josefsson  <jas@extundo.com>
82414
82415         * gnulib-tool: Set check_PROGRAMS.
82416
82417         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82418         modules/des-tests, modules/gc-arcfour-tests,
82419         modules/gc-arctwo-tests, modules/gc-des-tests,
82420         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82421         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82422         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82423         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82424         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82425         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82426         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82427         test_*_SOURCES.
82428
82429 2006-01-18  Simon Josefsson  <jas@extundo.com>
82430
82431         * modules/socklen (Depends-on): Depend on sys_socket.
82432
82433 2006-01-18  Simon Josefsson  <jas@extundo.com>
82434
82435         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82436         modules/des-tests, modules/gc-arcfour-tests,
82437         modules/gc-arctwo-tests, modules/gc-des-tests,
82438         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82439         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82440         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82441         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82442         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82443         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82444         $(EXEEXT) to automake TESTS variable, for mingw32.
82445
82446 2006-01-17  Simon Josefsson  <jas@extundo.com>
82447
82448         * modules/socklen (Include): Need sys/socket.h.
82449
82450 2006-01-17  Bruno Haible  <bruno@clisp.org>
82451
82452         * modules/ssize_t (Include): Add <sys/types.h>.
82453
82454 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82455
82456         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82457         it's not portable and it doesn't work with cross-compiles.
82458         Problem reported by Bruno Haible.  Fix missing-$ typo in
82459         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82460         -zignore from being used with Sun's C compiler.
82461
82462 2006-01-12  Simon Josefsson  <jas@extundo.com>
82463
82464         * lib/base64.c: Fix warning, reported by Bruno Haible
82465         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82466
82467 2006-01-12  Bruno Haible  <bruno@clisp.org>
82468
82469         * modules/ldd: New file.
82470         * build-aux/ldd.sh.in: New file.
82471         * MODULES.html.sh (Support for building libraries and executables): Add
82472         ldd.
82473
82474 2006-01-12  Bruno Haible  <bruno@clisp.org>
82475
82476         * m4/ldd.m4: New file.
82477
82478 2006-01-12  Bruno Haible  <bruno@clisp.org>
82479
82480         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82481         endless loop while replacing $auxdir with build-aux.
82482
82483 2006-01-11  Simon Josefsson  <jas@extundo.com>
82484
82485         * lib/stdint_.h (SIZE_MAX): Add missing (.
82486
82487 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82488
82489         Sync from coreutils.
82490         * lib/md5.c: Fix commentary typos.
82491         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82492         * lib/md5.h (__attribute__): Remove; unused.
82493         * lib/sha1.c: Fix commentary to match md5 better.
82494         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82495         so that we don't need to worry about alignment.  All uses changed.
82496         This merges the 2005-10-28 md5 change into sha1.
82497
82498 2006-01-11  Jim Meyering  <jim@meyering.net>
82499
82500         Sync from coreutils.
82501         * lib/md5.c (OP): Fix spacing.
82502
82503 2006-01-11  Bruno Haible  <bruno@clisp.org>
82504
82505         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82506         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82507         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82508
82509 2006-01-11  Bruno Haible  <bruno@clisp.org>
82510
82511         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82512         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82513         the "early" section as well.
82514
82515 2006-01-11  Bruno Haible  <bruno@clisp.org>
82516
82517         Avoid "ar: no archive members specified" error on MacOS X.
82518         * gnulib-tool (func_modules_add_dummy): New function.
82519         (func_import, func_create_testdir): Invoke it.
82520
82521 2006-01-11  Bruno Haible  <bruno@clisp.org>
82522
82523         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82524         with $auxdir in AC_CONFIG_FILES statements.
82525
82526 2006-01-11  Bruno Haible  <bruno@clisp.org>
82527
82528         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82529         Initialize also noinst_HEADERS to empty.
82530
82531 2006-01-11  Bruno Haible  <bruno@clisp.org>
82532
82533         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82534         variables.
82535         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82536         autoreconf.
82537
82538 2006-01-11  Bruno Haible  <bruno@clisp.org>
82539
82540         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82541         overridable by the user.
82542         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82543
82544 2006-01-10  Simon Josefsson  <jas@extundo.com>
82545
82546         * modules/sys_socket: New file.
82547
82548 2006-01-10  Simon Josefsson  <jas@extundo.com>
82549
82550         * m4/sys_socket_h.m4: New file.
82551
82552 2006-01-10  Simon Josefsson  <jas@extundo.com>
82553
82554         * lib/socket_.h: New file.
82555
82556 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82557
82558         * modules/readutmp (Maintainer): Add myself.
82559
82560 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82561
82562         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82563         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82564         People who are still concerned with buggy memcmp implementations
82565         can invoke gl_FUNC_MEMCMP themselves.
82566
82567 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82568
82569         * lib/regex_internal.h (BITSET_WORD_BITS):
82570         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82571         preprocessor mishandles large unsigned values as if they were signed.
82572         Problem reported by Claudio Fontana in
82573         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82574
82575 2006-01-10  Jim Meyering  <jim@meyering.net>
82576
82577         Avoid the double-free (first in fts_read, second in fts_close) that
82578         would occur when an `active' directory is made inaccessible (e.g.,
82579         via chmod a-x) during a traversal.
82580         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82581         before returning.  Reproduce this failure by
82582         mkdir -p a/b; cd a; chmod a-x . b
82583         Reported by Stavros Passas.
82584
82585         Sync from coreutils.
82586         * lib/sha1.c: Tweak grammar in a comment.
82587
82588 2006-01-10  Jim Meyering  <jim@meyering.net>
82589
82590         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82591         Patch by Joerg Sonnenberger.
82592
82593 2006-01-10  Bruno Haible  <bruno@clisp.org>
82594
82595         * modules/readutmp: Depend on module free.
82596         * modules/strtok_r: Depend on module restrict.
82597
82598 2006-01-10  Bruno Haible  <bruno@clisp.org>
82599
82600         * modules/gettext (configure.ac): Add an invocation of
82601         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82602
82603 2006-01-10  Bruno Haible  <bruno@clisp.org>
82604
82605         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82606         Reported by Werner Lemberg <wl@gnu.org>.
82607
82608 2006-01-10  Bruno Haible  <bruno@clisp.org>
82609
82610         * lib/localcharset.c: Update from GNU gettext.
82611
82612 2006-01-10  Bruno Haible  <bruno@clisp.org>
82613
82614         * lib/argp.h (__const): Remove macro. Use const instead.
82615         * lib/argp-fmtstream.h (__const): Likewise.
82616         * lib/glob_.h (__const): Remove macro.
82617         * lib/glob-libc.h: Use const instead of __const.
82618
82619 2006-01-10  Bruno Haible  <bruno@clisp.org>
82620
82621         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82622         variable.
82623         Needed to avoid an automake error regarding the 'gettext' module.
82624
82625 2006-01-09  Simon Josefsson  <jas@extundo.com>
82626
82627         * modules/inet_ntop (Depends-on): Add restrict.
82628
82629 2006-01-09  Simon Josefsson  <jas@extundo.com>
82630
82631         * modules/gc-rijndael-tests (License): Put under LGPL.
82632
82633         * modules/gc-des-tests (License): Likewise.
82634
82635         * modules/gc-arcfour-tests (License): Likewise.
82636
82637         * modules/gc-arctwo-tests (License): Likewise.
82638
82639         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82640
82641         * modules/gc-hmac-sha1-tests (Files): Likewise.
82642
82643         * modules/gc-hmac-md5-tests (License): Likewise.
82644
82645         * modules/gc-sha1-tests (License): Likewise.
82646
82647         * modules/gc-md5-tests (License): Likewise.
82648
82649         * modules/gc-md4-tests (License): Likewise.
82650
82651         * modules/gc-md2-tests (License): Likewise.
82652
82653         * modules/gc-tests (License): Likewise.
82654
82655         * modules/des-tests (License): Likewise.
82656
82657         * modules/md4-tests (License): Likewise.
82658
82659         * modules/md2-tests (License): Likewise.
82660
82661 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82662
82663         Sync from coreutils:
82664
82665         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82666         * modules/lib-ignore: New file.
82667         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82668         chdir-safer.m4, lchmod.m4.
82669         * modules/openat: Add mkdirat.c, openat-priv.h.
82670
82671 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82672
82673         Sync from coreutils.
82674         * m4/lib-ignore.m4: New file.
82675         * m4/lchmod.m4: New file.
82676
82677 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82678
82679         Sync from coreutils.
82680         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82681         for write access: POSIX says that must fail.
82682         * lib/fts.c (diropen): Likewise.
82683         * lib/save-cwd.c (save_cwd): Likewise.
82684         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82685         well, for minor improvements on hosts that lack O_DIRECTORY.
82686         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82687         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82688         Fall back on chown if open failed with EACCES.
82689
82690         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82691         Report an error at compile-time if only a 1-second nominal clock
82692         resolution is found.
82693
82694         * lib/lchmod.h: New file.
82695         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82696         (make_dir_parents): Use lchown rather than chown, and
82697         lchmod rather than chmod.
82698
82699         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82700         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82701         "proc" reported by n0dalus.
82702
82703         * lib/mountlist.c: Include <limits.h>.
82704         (dev_from_mount_options)
82705         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82706         New function.  It no longer assumes "dev=" has the System V meaning
82707         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82708         (read_file_system_list)
82709         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82710         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82711         dev= in that case.
82712
82713         * lib/posixtm.h (PDS_PRE_2000): New macro.
82714         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82715         allow_century.  All usages changed.  Reject dates outside the range
82716         1969-1999 if PDS_PRE_2000 is used.
82717
82718 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82719
82720         Sync from coreutils.
82721         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82722         (Time of day items): Mention the possibility of leap seconds.
82723         Problem reported by Dr. David Alan Gilbert.
82724
82725 2006-01-09  Jim Meyering  <jim@meyering.net>
82726
82727         Sync from coreutils.
82728
82729         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82730
82731         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82732
82733         * lib/modechange.c (mode_compile): Reject an invalid mode string
82734         that starts with an octal digit.  From Andreas Gruenbacher.
82735
82736         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82737         and dup to open_safer and dup_safer, respectively.
82738         (openat_permissive): Fix typo in comment.
82739
82740         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82741         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82742         (_): Remove; no longer needed.
82743         (openat): Renamed from rpl_openat; no need for rpl_openat
82744         since openat.h renames openat for us.
82745         Replace most of the body with a call to openat_permissive,
82746         to avoid duplicate code.
82747         Port to (probably hypothetical) environments were mode_t is
82748         wider than int.
82749         (openat_permissive): Require mode arg, so that we can check
82750         types better.  Put it just after flags.  Change cwd failure
82751         indicator from pointer-to-bool to pointer-to-errno-value.
82752         All callers changed.
82753         Invoke openat_save_fail and/or openat_restore_fail if
82754         cwd_errno is null, so that openat can call us.
82755         (openat_permissive, fdopendir, fstatat, unlinkat):
82756         Simplify errno handling to avoid some duplicate code,
82757         as it's OK to set errno on success.
82758         * lib/openat.h: Revamp code so that function macros depend on
82759         __OPENAT_PREFIX only, not also on AT_FDCWD.
82760         (openat_ro): Remove.  Caller changed to use openat_permissive.
82761         (openat_permissive): Now a macro, if not a function.
82762         (openat_restore_fail, openat_save_fail): Now always functions,
82763         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82764
82765         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82766         and openat.c.
82767         * lib/mkdirat.c: Include openat-priv.h.
82768         Remove definitions of macros defined therein.
82769         * lib/openat.c: Likewise.
82770
82771         * lib/mkdirat.c (mkdirat): New file and function.
82772         * lib/openat.h (mkdirat): Declare.
82773
82774         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82775
82776         * lib/openat.h (openat_permissive): Declare.
82777         (openat_ro): Define.
82778
82779         * lib/openat.c (EXPECTED_ERRNO): New macro.
82780         (openat_permissive): New function -- used in remove.c rewrite.
82781         (all functions): Set errno just before returning, only if there
82782         was an actual failure.
82783         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82784
82785         Emulate openat-family functions using Linux's procfs, if possible.
82786         Idea and some code based on Ulrich Drepper's glibc changes.
82787
82788         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82789         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82790         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82791         before falling back on save_cwd and restore_cwd.
82792         (fdopendir, fstatat, unlinkat): Likewise.
82793
82794         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82795         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82796
82797         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82798         as second argument to va_arg.  Otherwise, some versions of gcc
82799         warn that `if this code is reached, the program will abort'.
82800
82801 2006-01-09  Jim Meyering  <jim@meyering.net>
82802
82803         Sync from coreutils.
82804         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82805         Require openat-priv.h.
82806
82807 2006-01-09  Bruno Haible  <bruno@clisp.org>
82808
82809         * modules/strnlen (Include): Use strnlen.h.
82810
82811 2006-01-09  Bruno Haible  <bruno@clisp.org>
82812
82813         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82814
82815 2006-01-09  Bruno Haible  <bruno@clisp.org>
82816
82817         * lib/sysexit_.h (EX_OK): New macro.
82818         Suggested by Martin Lambers <marlam@marlam.de>.
82819
82820 2006-01-09  Bruno Haible  <bruno@clisp.org>
82821
82822         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82823         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82824
82825 2006-01-09  Bruno Haible  <bruno@clisp.org>
82826
82827         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82828         numbers.
82829
82830 2006-01-09  Bruno Haible  <bruno@clisp.org>
82831
82832         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82833         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82834         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82835         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82836
82837 2006-01-09  Bruno Haible  <bruno@clisp.org>
82838
82839         * build-aux/javacomp.sh.in: New file, moved from lib/.
82840         * modules/javacomp-script (Files): Update.
82841         (configure.ac): Add AC_CONFIG_FILES invocation.
82842         (EXTRA_DIST): Remove variable.
82843
82844         * build-aux/javaexec.sh.in: New file, moved from lib/.
82845         * modules/javaexec (Files): Update.
82846         (configure.ac): Add AC_CONFIG_FILES invocation.
82847         (EXTRA_DIST): Remove javaexec.sh.in.
82848
82849         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82850         * modules/csharpcomp-script (Files): Update.
82851         (configure.ac): Add AC_CONFIG_FILES invocation.
82852         (EXTRA_DIST): Remove variable.
82853
82854         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82855         * modules/csharpexec (Files): Update.
82856         (configure.ac): Add AC_CONFIG_FILES invocation.
82857         (EXTRA_DIST): Remove csharpexec.sh.in.
82858
82859 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82860
82861         Sync from coreutils.
82862
82863         Add POSIX ACL support
82864         * lib/acl.h (copy_acl, set_acl): Add declarations.
82865         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82866         systems other than Linux.
82867         (chmod_or_fchmod): New function: use fchmod when possible,
82868         and chmod otherwise.
82869         (file_has_acl): Add a POSIX ACL implementation, with a
82870         Linux-specific subcase.
82871         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82872         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82873         acls are unsupported.
82874         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82875         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82876         are unsupported.
82877
82878 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82879
82880         Sync from coreutils.
82881         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82882
82883 2006-01-07  Bruno Haible  <bruno@clisp.org>
82884
82885         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82886         gl_EARLY.
82887
82888 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82889
82890         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82891         Problem reported for Mingw by Mark Junker.
82892
82893 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82894
82895         * README: Gnulib normally doesn't generate a tarball.
82896
82897 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82898
82899         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82900         long int, not int, for nanosecond counts, so that people who are
82901         used to POSIX struct timespec won't be surprised.  Reported by Jim
82902         Meyering.
82903
82904 2005-12-28  Bruno Haible  <bruno@clisp.org>
82905
82906         * build-aux/config.rpath: Update from GNU gettext.
82907
82908 2005-12-16  Jim Meyering  <jim@meyering.net>
82909
82910         * modules/fprintftime: New module.
82911         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82912
82913 2005-12-16  Jim Meyering  <jim@meyering.net>
82914
82915         * m4/fprintftime.m4: New file.
82916
82917 2005-12-16  Jim Meyering  <jim@meyering.net>
82918
82919         * lib/fprintftime.c, lib/fprintftime.h: New files.
82920
82921 2005-12-15  Simon Josefsson  <jas@extundo.com>
82922
82923         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82924         new m4/socklen.m4.
82925
82926 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82927
82928         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82929         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82930
82931 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82932
82933         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82934         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82935         struct uparams is valid. Fall back to the default values if it is
82936         not.
82937
82938 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82939
82940         * modules/argp (Files): Add argp-pin.c
82941         (Depends-on): dirname
82942         (lib_SOURCES): Add argp-pin.c
82943
82944 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82945
82946         * m4/argp.m4:  Check if program_invocation_name and
82947         program_invocation_short_name are declared and define appropriate
82948         macros if they are not.
82949
82950 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82951
82952         * lib/argp-help.c (__argp_base_name): New function
82953         (__argp_short_program_name): Rewrite using __argp_base_name
82954         * lib/argp-namefrob.h: Define program_invocation_name and
82955         program_invocation_short_name if requested
82956         (__argp_base_name): Add prototype
82957         * lib/argp-parse.c (argp_def): Use gettext wrappers
82958         (argp_default_parser): Use __argp_base_name
82959         * lib/argp-pin.c: New file. Defines program_invocation_name and
82960         program_invocation_short_name on systems that lack them.
82961
82962 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82963
82964         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82965         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82966         porting problem reported by Georg Schwarz in
82967         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82968
82969 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82970
82971         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82972         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82973         porting problem reported by Georg Schwarz in
82974         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82975
82976 2005-12-05  Bruno Haible  <bruno@clisp.org>
82977
82978         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82979         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82980         Reported by Mark Junker <mjscod@gmx.de>.
82981
82982 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82983
82984         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82985         Use implementation from Albert Chin, with some
82986         comments/corrections by Stepan Kasal and myself.
82987
82988 2005-12-02  Bruno Haible  <bruno@clisp.org>
82989
82990         * gnulib-tool (func_import): Accept GPLed build tool modules when
82991         --lgpl is given.
82992         * modules/csharpcomp-script: New file.
82993         * modules/csharpcomp: Depend on it.
82994         * modules/javacomp-script: New file.
82995         * modules/javacomp: Depend on it.
82996         Suggested by Simon Josefsson.
82997
82998 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82999
83000         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83001         statement, to work around an HP-UX 10.20 compiler bug reported by
83002         Peter O'Gorman.
83003
83004 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83005
83006         * modules/savedir (Depends-on): Add openat.
83007
83008 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83009
83010         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83011         (uintmax_t) [defined uintmax_t]: Do not declare.
83012         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83013         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83014         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83015         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83016         sake of portability to weird hosts that C allows (though we don't
83017         know of any practical examples).
83018
83019         * lib/savedir.h (fdsavedir): New decl.
83020         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83021         contains most of the former guts of savedir.
83022         (savedir): Use savedirstream.
83023         Include "openat.h".
83024
83025 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83026
83027         * modules/obstack (Files): Add m4/ulonglong.m4.
83028         Problem reported by Davide Angelocola.
83029
83030 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83031
83032         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83033         coreutils no longer futzes with rounding modes.
83034
83035 2005-11-14  Jim Meyering  <jim@meyering.net>
83036
83037         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83038         replacement of mkstemp.
83039
83040 2005-11-10  Simon Josefsson  <jas@extundo.com>
83041
83042         * lib/readline.c: Remove EOL.
83043
83044 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83045
83046         * modules/gethrxtime (Depends-on): Add gettime.
83047
83048 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83049
83050         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83051         or gettimeofday; no longer needed.
83052
83053 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83054
83055         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83056         time business.
83057         (gethrxtime) [! (HAVE_NANOUPTIME
83058         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83059         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83060         our own approximation.
83061
83062 2005-11-08  Eric Blake  <ebb9@byu.net>
83063
83064         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83065
83066 2005-11-08  Eric Blake  <ebb9@byu.net>
83067
83068         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83069
83070 2005-11-04  Bruno Haible  <bruno@clisp.org>
83071
83072         * gnulib-tool: Implement --update mode.
83073
83074 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83075
83076         Fix porting problem reported by Theodoros V. Kalamatianos.
83077         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83078         Don't assume that futimes failing means we must fail.
83079
83080 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83081
83082         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83083         variables to suggest the intended function of the PATH_MAX check.
83084
83085 2005-10-30  Kean Johnston  <jkj@sco.com>
83086
83087         Trivial changes to support SCO systems.
83088         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83089         as PATH_MAX.
83090         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83091         where __ptr is null when no I/O is pending.
83092
83093 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83094
83095         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83096         leave errno alone.  Problem reported by Dmitry V. Levin.
83097
83098 2005-10-28  Simon Josefsson  <jas@extundo.com>
83099
83100         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83101         Test more.
83102
83103         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83104
83105         * modules/md2, modules/md2-tests: New files.
83106
83107 2005-10-28  Simon Josefsson  <jas@extundo.com>
83108
83109         * m4/inet_ntop.m4: More tests.
83110
83111         * m4/gc-md2.m4, md2.m4: New file.
83112
83113 2005-10-28  Simon Josefsson  <jas@extundo.com>
83114
83115         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83116         "restrict" keywords, as per POSIX.  Protect the function
83117         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83118         Don't use K&R prototypes.  Check the sprintf return values.
83119         Re-define EAFNOSUPPORT if not present.  Indent.
83120
83121         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83122         suggested by Bruno Haible <bruno@clisp.org>.
83123
83124         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83125
83126         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83127
83128         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83129         libgcrypt).
83130
83131         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83132
83133         * lib/md2.h, lib/md2.c: New files.
83134
83135 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83136
83137         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83138         errno alone.  Problem reported by Frederic Jolliton.
83139
83140 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83141
83142         * modules/verify (License): Change from GPL to LGPL.  This is a
83143         tiny module and there are apparently near-equivalents that are
83144         under the BSD license.
83145
83146 2005-10-24  Simon Josefsson  <jas@extundo.com>
83147
83148         * modules/sha1: Relicense to LGPL.
83149
83150 2005-10-24  Simon Josefsson  <jas@extundo.com>
83151
83152         * lib/md4.h: Shrink buffer size, now that we changed the type.
83153
83154 2005-10-23  Simon Josefsson  <jas@extundo.com>
83155
83156         * gnulib-tool (func_import): Fix --tests-base.
83157
83158 2005-10-22  Simon Josefsson  <jas@extundo.com>
83159
83160         * modules/arcfour (Depends-on): Need stdint.
83161
83162 2005-10-22  Simon Josefsson  <jas@extundo.com>
83163
83164         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83165         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83166
83167 2005-10-22  Simon Josefsson  <jas@extundo.com>
83168
83169         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83170         suggested by Bruno Haible <bruno@clisp.org>.
83171
83172 2005-10-22  Simon Josefsson  <jas@extundo.com>
83173
83174         * lib/crc.h: Include stddef.h, for size_t.
83175
83176 2005-10-22  Simon Josefsson  <jas@extundo.com>
83177
83178         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83179         arcfour_context struct (simplify test vector testing in GNU
83180         Shishi).
83181
83182 2005-10-21  Simon Josefsson  <jas@extundo.com>
83183
83184         * modules/des, modules/des-tests: New files.
83185
83186         * modules/gc-des, modules/gc-des-tests: New files.
83187
83188         * tests/test-des.c, tests/test-gc-des.c: New file.
83189
83190 2005-10-21  Simon Josefsson  <jas@extundo.com>
83191
83192         * modules/arctwo, modules/arctwo-tests: New files.
83193
83194         * tests/test-arctwo.c: New file.
83195
83196         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83197
83198         * tests/test-gc-arctwo.c: New file.
83199
83200 2005-10-21  Simon Josefsson  <jas@extundo.com>
83201
83202         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83203         Bruno Haible <bruno@clisp.org>.
83204
83205         * m4/gc-des.m4: New file.
83206
83207 2005-10-21  Simon Josefsson  <jas@extundo.com>
83208
83209         * m4/arctwo.m4: New file.
83210
83211         * m4/gc-arctwo.m4: New file.
83212
83213 2005-10-21  Simon Josefsson  <jas@extundo.com>
83214
83215         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83216         block.
83217
83218 2005-10-21  Simon Josefsson  <jas@extundo.com>
83219
83220         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83221         <bruno@clisp.org>.
83222
83223         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83224
83225         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83226         Bruno Haible <bruno@clisp.org>.
83227
83228         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83229         <bruno@clisp.org>.
83230
83231 2005-10-21  Simon Josefsson  <jas@extundo.com>
83232
83233         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83234
83235 2005-10-21  Simon Josefsson  <jas@extundo.com>
83236
83237         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83238
83239 2005-10-21  Simon Josefsson  <jas@extundo.com>
83240
83241         * lib/des.h, lib/des.c: New files.
83242
83243         * lib/gc-gnulib.c: Support DES.c
83244
83245 2005-10-21  Simon Josefsson  <jas@extundo.com>
83246
83247         * lib/arctwo.h, lib/arctwo.c: New files.
83248
83249         * lib/gc-gnulib.c: Support ARCTWO.
83250
83251 2005-10-21  Simon Josefsson  <jas@extundo.com>
83252
83253         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83254         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83255
83256 2005-10-21  Simon Josefsson  <jas@extundo.com>
83257
83258         * gnulib-tool (func_import, func_create_testdir): Define automake
83259         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83260         Makefile.am snippet),
83261         suggested by Bruno Haible <bruno@clisp.org>.
83262
83263         * modules/gc (Makefile.am): Use it.
83264
83265 2005-10-21  Bruno Haible  <bruno@clisp.org>
83266
83267         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83268         patch.
83269
83270 2005-10-19  Simon Josefsson  <jas@extundo.com>
83271
83272         * tests/test-gc-rijndael.c: New file.
83273
83274         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83275
83276 2005-10-19  Simon Josefsson  <jas@extundo.com>
83277
83278         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83279         interface too.
83280
83281 2005-10-19  Simon Josefsson  <jas@extundo.com>
83282
83283         * tests/test-gc-arcfour.c: New file.
83284
83285         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83286
83287 2005-10-19  Simon Josefsson  <jas@extundo.com>
83288
83289         * modules/gc-md4, modules/gc-md4-tests: New file.
83290
83291         * tests/test-gc-md4.c: New file.
83292
83293 2005-10-19  Simon Josefsson  <jas@extundo.com>
83294
83295         * m4/gc-md4.m4: New file.
83296
83297 2005-10-19  Simon Josefsson  <jas@extundo.com>
83298
83299         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83300         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83301         <kasal@ucw.cz>.
83302
83303 2005-10-19  Simon Josefsson  <jas@extundo.com>
83304
83305         * m4/gc-arcfour.m4: New file.
83306
83307         * m4/gc-rijndael.m4: New file.
83308
83309 2005-10-19  Simon Josefsson  <jas@extundo.com>
83310
83311         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83312
83313 2005-10-19  Simon Josefsson  <jas@extundo.com>
83314
83315         * lib/gc-gnulib.c: Support ARCFOUR.
83316
83317 2005-10-19  Simon Josefsson  <jas@extundo.com>
83318
83319         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83320         support.
83321
83322         * lib/gc.h: Add ECB enum type.
83323
83324         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83325
83326 2005-10-18  Simon Josefsson  <jas@extundo.com>
83327
83328         * tests/test-md5.c: New file.
83329
83330         * modules/md5-tests: New file.
83331
83332 2005-10-18  Simon Josefsson  <jas@extundo.com>
83333
83334         * tests/test-md4.c: New file.
83335
83336         * modules/md4, modules/md4-tests: New files.
83337
83338 2005-10-18  Simon Josefsson  <jas@extundo.com>
83339
83340         * m4/md4.m4: New file.
83341
83342 2005-10-18  Simon Josefsson  <jas@extundo.com>
83343
83344         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83345
83346 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83347
83348         * gnulib-tool (func_create_testdir): Omit the second check whether
83349         BUILT_SOURCES in nonempty.
83350
83351 2005-10-17  Simon Josefsson  <jas@extundo.com>
83352
83353         * tests/test-rijndael.c: New file.
83354
83355 2005-10-17  Simon Josefsson  <jas@extundo.com>
83356
83357         * modules/sha1: Depend on stdint instead of md5.
83358
83359         * modules/md5: Depend on stdint, remove uint32_t.
83360
83361 2005-10-17  Simon Josefsson  <jas@extundo.com>
83362
83363         * modules/gc-sha1-tests: New file.
83364
83365         * tests/test-gc-sha1.c: New file.
83366
83367 2005-10-17  Simon Josefsson  <jas@extundo.com>
83368
83369         * m4/md5.m4: Remove call to uint32_t.m4.
83370
83371 2005-10-17  Simon Josefsson  <jas@extundo.com>
83372
83373         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83374
83375         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83376         md5.h.
83377
83378         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83379
83380         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83381
83382 2005-10-17  Simon Josefsson  <jas@extundo.com>
83383
83384         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83385
83386 2005-10-17  Simon Josefsson  <jas@extundo.com>
83387
83388         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83389
83390 2005-10-17  Simon Josefsson  <jas@extundo.com>
83391
83392         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83393
83394         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83395
83396 2005-10-17  Bruno Haible  <bruno@clisp.org>
83397
83398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83399         that it can also be used in a test.
83400
83401 2005-10-16  Bruno Haible  <bruno@clisp.org>
83402
83403         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83404         TESTS_ENVIRONMENT, so that individual tests can augment it.
83405
83406         * gnulib-tool (func_create_testdir): Use an intermediate target for
83407         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83408         macros, like $(ALLOCA_H), which cannot be passed through the command
83409         line.
83410
83411 2005-10-15  Simon Josefsson  <jas@extundo.com>
83412
83413         * modules/rijndael-tests: New file.
83414
83415         * modules/rijndael: New file.
83416
83417 2005-10-15  Simon Josefsson  <jas@extundo.com>
83418
83419         * m4/rijndael.m4: New file.
83420
83421 2005-10-15  Simon Josefsson  <jas@extundo.com>
83422
83423         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83424
83425         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83426
83427 2005-10-14  Simon Josefsson  <jas@extundo.com>
83428
83429         * tests/test-arcfour.c: New file.
83430
83431         * modules/arcfour, modules/arcfour-tests: New files.
83432
83433 2005-10-14  Simon Josefsson  <jas@extundo.com>
83434
83435         * m4/arcfour.m4: New file.
83436
83437 2005-10-14  Simon Josefsson  <jas@extundo.com>
83438
83439         * lib/arcfour.h, lib/arcfour.c: New files.
83440
83441 2005-10-14  Roland McGrath  <roland@redhat.com>
83442
83443         Import from libc.  [BZ #1331]
83444         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83445         macro argument.
83446         Reported by Matej Vela <vela@debian.org>.
83447
83448 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83449
83450         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83451         include <wchar.h>; no longer needed.
83452
83453 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83454
83455         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83456
83457 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83458         and  Ulrich Drepper  <drepper@redhat.com>
83459
83460         Import from libc.
83461         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83462         instead of inline stream orientation test and two separate
83463         function calls.  Pay no attention to USE_IN_LIBIO.
83464
83465 2005-10-13  Simon Josefsson  <jas@extundo.com>
83466
83467         * modules/gc-hmac-md5-tests: New file.
83468
83469         * tests/test-gc-hmac-sha1.c: New file.
83470
83471         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83472
83473         * modules/gc-hmac-md5-tests: New file.
83474
83475         * tests/test-gc-md5.c: New file.
83476
83477         * modules/gc-md5-tests: New file.
83478
83479 2005-10-13  Simon Josefsson  <jas@extundo.com>
83480
83481         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83482         Move memory allocation outside of loop.
83483
83484 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83485
83486         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83487         intermediate directory is in a read-only file system.  Problem
83488         reported by Eric Blake.
83489
83490 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83491
83492         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83493
83494 2005-10-12  Simon Josefsson  <jas@extundo.com>
83495
83496         * tests/test-hmac-sha1.c: New file.
83497
83498         * modules/hmac-sha1-tests: New file.
83499
83500         * modules/hmac-sha1: New file.
83501
83502 2005-10-12  Simon Josefsson  <jas@extundo.com>
83503
83504         * modules/gc-sha1: New file.
83505
83506 2005-10-12  Simon Josefsson  <jas@extundo.com>
83507
83508         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83509
83510         * tests/test-gc-pbkdf2-sha1.c: New file.
83511
83512 2005-10-12  Simon Josefsson  <jas@extundo.com>
83513
83514         * modules/gc-md5, modules/gc-hmac-md5: New files.
83515
83516         * modules/gc (Files): Remove md5, memxor and hmac files.
83517
83518 2005-10-12  Simon Josefsson  <jas@extundo.com>
83519
83520         * m4/gc-pbkdf2-sha1.m4: New file.
83521
83522         * m4/gc-hmac-sha1.m4: New file.
83523
83524         * m4/gc-sha1: New file.
83525
83526         * m4/hmac-sha1.m4: New file.
83527
83528 2005-10-12  Simon Josefsson  <jas@extundo.com>
83529
83530         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83531
83532         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83533
83534 2005-10-12  Simon Josefsson  <jas@extundo.com>
83535
83536         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83537         suggested by Bruno Haible <bruno@clisp.org>.
83538
83539 2005-10-12  Simon Josefsson  <jas@extundo.com>
83540
83541         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83542
83543 2005-10-12  Simon Josefsson  <jas@extundo.com>
83544
83545         * lib/gc-pbkdf2-sha1.c: New file.
83546
83547         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83548
83549 2005-10-12  Simon Josefsson  <jas@extundo.com>
83550
83551         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83552
83553         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83554
83555 2005-10-12  Simon Josefsson  <jas@extundo.com>
83556
83557         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83558         GC_USE_HMAC_MD5, respectively.
83559
83560         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83561         (gc_md5): Fix typo.
83562
83563         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83564
83565         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83566
83567         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83568
83569 2005-10-12  Bruno Haible  <bruno@clisp.org>
83570
83571         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83572         Reported by Stepan Kasal <kasal@ucw.cz>.
83573
83574 2005-10-11  Simon Josefsson  <jas@extundo.com>
83575
83576         * tests/test-crc.c: New file.
83577
83578         * modules/crc, modules/crc-tests: New files.
83579
83580 2005-10-11  Simon Josefsson  <jas@extundo.com>
83581
83582         * m4/crc.m4: New file.
83583
83584 2005-10-11  Simon Josefsson  <jas@extundo.com>
83585
83586         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83587
83588         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83589
83590         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83591
83592 2005-10-11  Simon Josefsson  <jas@extundo.com>
83593
83594         * lib/crc.h, lib/crc.c: New files.
83595
83596         * lib/gc.h (gc_hash_buffer): Add doc.
83597
83598 2005-10-11  Bruno Haible  <bruno@clisp.org>
83599
83600         * modules/c-strcasestr: New file.
83601         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83602
83603 2005-10-11  Bruno Haible  <bruno@clisp.org>
83604
83605         * modules/c-strcase: New file.
83606         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83607
83608 2005-10-11  Bruno Haible  <bruno@clisp.org>
83609
83610         * lib/strcasecmp.c: Include limits.h.
83611         (strcasecmp): Avoid integer overflow on exotic platforms.
83612         * lib/strncasecmp.c: Include limits.h.
83613         (strncasecmp): Avoid integer overflow on exotic platforms.
83614         Reported by Paul Eggert.
83615
83616 2005-10-11  Bruno Haible  <bruno@clisp.org>
83617
83618         * lib/c-strcasestr.h: New file, from GNU gettext.
83619         * lib/c-strcasestr.c: New file, from GNU gettext.
83620
83621 2005-10-11  Bruno Haible  <bruno@clisp.org>
83622
83623         * lib/c-strcase.h: New file, from GNU gettext.
83624         * lib/c-strcasecmp.c: New file, from GNU gettext.
83625         * lib/c-strncasecmp.c: New file, from GNU gettext.
83626
83627 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83628
83629         * modules/mempcpy (License): GPL -> LGPL.
83630         * modules/strchrnul (License): Likewise.
83631         * modules/sysexits (License): Likewise.
83632
83633 2005-10-08  Simon Josefsson  <jas@extundo.com>
83634
83635         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83636
83637 2005-10-07  Simon Josefsson  <jas@extundo.com>
83638
83639         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83640
83641 2005-10-06  Simon Josefsson  <jas@extundo.com>
83642
83643         * tests/test-hmac-md5.c: New file.
83644
83645         * modules/hmac-md5-tests: New file.
83646
83647         * modules/hmac-md5: New file.
83648
83649 2005-10-06  Simon Josefsson  <jas@extundo.com>
83650
83651         * m4/hmac-md5.m4: New file.
83652
83653         * m4/memxor.m4: Require gl_C_RESTRICT.
83654
83655 2005-10-06  Simon Josefsson  <jas@extundo.com>
83656
83657         * lib/memxor.c (memxor): Avoid casts and warnings.
83658
83659 2005-10-06  Simon Josefsson  <jas@extundo.com>
83660
83661         * lib/hmac-md5.c: New file.
83662
83663         * lib/hmac.h: New file.
83664
83665 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83666
83667         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83668         promotes to int, not unsigned int, to catch the AIX 5.3
83669         compiler bug.
83670
83671 2005-10-05  Simon Josefsson  <jas@extundo.com>
83672
83673         * modules/memxor: New file.
83674
83675         * modules/iconv (Files): Move config.rpath to havelib, it is used
83676         there.
83677
83678         * modules/havelib (Files): Add config.rpath.
83679
83680 2005-10-05  Simon Josefsson  <jas@extundo.com>
83681
83682         * m4/memxor.m4: New file.
83683
83684 2005-10-05  Simon Josefsson  <jas@extundo.com>
83685
83686         * lib/memxor.c (memxor): Fix compiler error.
83687
83688         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83689         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83690
83691         * lib/memxor.h, lib/memxor.c: New files.
83692
83693         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83694         we assume all systems have it, suggested by Jim Meyering
83695         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83696         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83697         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83698         same reasons.
83699
83700 2005-10-05  Simon Josefsson  <jas@extundo.com>
83701
83702         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83703
83704 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83705
83706         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83707         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83708         needed, since the source code now assumes these .h files.
83709
83710 2005-10-05  Derek Price  <derek@ximbiot.com>
83711
83712         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83713
83714 2005-10-05  Bruno Haible  <bruno@clisp.org>
83715
83716         * modules/stdint (License): Change to LGPL.
83717
83718 2005-10-04  Simon Josefsson  <jas@extundo.com>
83719
83720         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83721         D. Baushke" <mdb@gnu.org>.
83722
83723 2005-10-04  Bruno Haible  <bruno@clisp.org>
83724
83725         * lib/verify.h (verify_true): Provide alternative definition for C++.
83726
83727 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83728
83729         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83730         (SSIZE_MAX): New macro, if not already defined.
83731         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83732         than 2 GiB.
83733
83734 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83735
83736         Sync from coreutils.
83737         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83738         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83739         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83740         ULLONG_MAX doesn't work with 2.7.2.1.
83741
83742 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83743
83744         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83745         From Ben Pfaff.
83746
83747         * modules/exclude (Depends-on): Depend on verify.
83748         * modules/strtoimax (Depends-on): Likewise.
83749         * modules/utimecmp (Depends-on): Likewise.
83750
83751 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83752
83753         * lib/exclude.c: Include verify.h.
83754         (verify): Remove.  All callers changed to use verify.h's version.
83755         * lib/strtoimax.c: Likewise.
83756         * lib/utimecmp.c: Likewis.e
83757
83758         Sync from coreutils.
83759         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83760         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83761         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83762         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83763         bother returning ENOSYS if settimeofday or stime fails; just let
83764         them return whatever errno they want to return.
83765         * lib/utimens.c: Include unistd.h, for dup2.
83766         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83767         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83768
83769 2005-10-02  Jim Meyering  <jim@meyering.net>
83770
83771         Sync from coreutils.
83772         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83773         from glibc-2.2.5 that fails for read-only files.
83774
83775 2005-10-02  Jim Meyering  <jim@meyering.net>
83776
83777         Sync from coreutils.
83778         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83779         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83780         `#if HAVE_CONFIG_H'.
83781         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83782         Remove AT_FDCWD test.
83783         Do not consume the fd unless successful.
83784         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83785         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83786         block, so that we don't even try to compile it if settimeofday is
83787         available.  This works around a compilation failure on OSF1 V5.1,
83788         due to stime requiring a `long int*' while tv_sec is `int'.
83789
83790 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83791
83792         Sync from coreutils.
83793         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83794         against `yes', rather than just testing for nonempty.
83795
83796 2005-10-01  Simon Josefsson  <jas@extundo.com>
83797
83798         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83799         and Darwin.
83800
83801         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83802         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83803         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83804         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83805         Check if struct addrinfo is declared.
83806
83807 2005-10-01  Simon Josefsson  <jas@extundo.com>
83808
83809         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83810         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83811         AI_* and EAI_* definitions.  Protect function declarations.
83812
83813 2005-10-01  Jim Meyering  <jim@meyering.net>
83814
83815         Sync from coreutils.
83816
83817         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83818         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83819         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83820         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83821         in the inet and nsl libraries.  Required on Solaris 5.7.
83822
83823 2005-10-01  Jim Meyering  <jim@meyering.net>
83824
83825         Sync from coreutils.
83826         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83827         in the inet and nsl libraries.  Required on Solaris 5.7.
83828
83829 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83830
83831         * lib/getdelim.c (getdelim): Remove unused variables.
83832
83833 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83834
83835         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83836         so that the code works even with ancient cpp.  Portability problem
83837         with GCC 2.7.2.1 reported by Thomas M.Ott.
83838
83839 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83840
83841         * modules/regex (Depends-on): Add strcase.
83842
83843         * modules/gethostname (Licence): Change from GPL to LGPL, since
83844         gethostname.c is a trivial implementation of a standard library
83845         function.
83846         * modules/poll (License): Change from GPL to LGPL, since it's
83847         derived from LGPL code.
83848
83849 2005-09-27  Jim Meyering  <jim@meyering.net>
83850
83851         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83852         HAVE_CONFIG_H.
83853
83854         * lib/intprops.h (signed_type_or_expr__): Define.
83855         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83856         for unsigned types.
83857
83858 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83859
83860         * lib/verify.h (verify_expr): Remove, replacing with:
83861         (verify_true): New macro that returns true instead of void.
83862         (verify_type__): Remove.
83863         (verify): Use verify_true rather than verify_type__.
83864
83865 2005-09-26  Bruno Haible  <bruno@clisp.org>
83866
83867         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83868         is necessary.
83869         (lib_SOURCES): Remove mbchar.c.
83870         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83871         (Files): Add m4/mbrtowc.m4.
83872         * modules/mbiter: Likewise.
83873         * modules/mbuiter: Likewise.
83874
83875 2005-09-26  Bruno Haible  <bruno@clisp.org>
83876
83877         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83878         compile mbchar.c if they are not both present.
83879         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83880         * m4/mbiter.m4 (gl_MBITER): Likewise.
83881         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83882         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83883         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83884
83885 2005-09-25  Jim Meyering  <jim@meyering.net>
83886
83887         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83888         also uses socklen_t.
83889
83890 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83891
83892         * lib/utimens.c (ENOSYS): Define if not already defined.
83893         (futimens): Support having a null PATH if the file descriptor
83894         is nonnegative.
83895
83896         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83897         Remove.
83898         (__attribute): Define to empty unless GCC 3.1 or later.
83899         This works around a core dump on OpenBSD 3.4, which has GCC
83900         2.95.3, which dumps core when given __attribute__(()).  It also
83901         simplifies other tests, since we really don't want to bother with
83902         worrying about which ancient version of GCC supported what.
83903         Original problem reported by Yoann Vandoorselaere, with part of
83904         the fix suggested by Derek Price.
83905
83906 2005-09-24  Jim Meyering  <jim@meyering.net>
83907
83908         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83909         so we can once again use a positive bitfield width of 1 -- now we
83910         don't have to explain why we were using a bitfield width of 2.
83911
83912 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83913
83914         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83915         and similarly for the other external symbols.  Problem reported
83916         by James Gallager.
83917
83918         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83919         bug reported by Jim Meyering.
83920
83921         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83922         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83923         not needed, since socklen is a prerequisite module.
83924
83925 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83926
83927         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83928         Problem reported by Eric Blake.
83929         (getaddrinfo): Initialize se so that it's not garbage.
83930         Redo internal storage allocation so that it doesn't make unportable
83931         assumptions about alignment.
83932         Fix a memory leak.
83933
83934         * lib/utimens.c (futimens): Use futimesat if available.
83935         Prefer it to futimes since it doesn't have the futimes bug.
83936
83937         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83938         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83939         Instead, declare a function that returns a pointer to an array,
83940         and use verify_type__ to declare the size of the array.
83941         Problem and germ of a solution reported by Bruno Haible.
83942         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83943         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83944
83945 2005-09-23  Jim Meyering  <jim@meyering.net>
83946
83947         Sync from coreutils.
83948         Correct build failure (socklen_t not defined) on at least
83949         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83950         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83951
83952 2005-09-23  Jim Meyering  <jim@meyering.net>
83953
83954         * modules/getaddrinfo (Depends-on): Add socklen.
83955
83956 2005-09-23  Bruno Haible  <bruno@clisp.org>
83957
83958         * tests/test-verify.c: New file.
83959
83960 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83961
83962         Sync from coreutils.
83963
83964         * modules/argmatch (Depends-on): Add verify.
83965         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83966         unistd-safer.
83967         * modules/save-cwd (Depends-on): Likewise.
83968
83969         * modules/openat (Files): Add lib/openat-die.c.
83970         (Depends-on): Remove error, exitfail.
83971         Add dirname.
83972
83973         * modules/verify: New file.
83974         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83975         with "verify" module.
83976
83977 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83978
83979         Sync from coreutils.
83980
83981         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83982         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83983         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83984         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83985         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83986         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83987         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83988         Don't bother checking for string.h, stdlib.h, unistd.h.
83989         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83990         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83991         module's job.
83992         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83993         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83994
83995         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83996         (gl_GETDATE): Use it.
83997
83998         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83999
84000 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84001
84002         Sync from coreutils.
84003
84004         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84005         stat-time.h.
84006         * lib/argmatch.h: Include verify.h
84007         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84008         (ARGMATCH_ASSERT): Remove; unused.
84009         * lib/canonicalize.c: Assume STDC_HEADERS.
84010         * lib/exclude.c: Include "strcase.h".
84011         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84012         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84013         and stdio-safer.h.
84014         (getusershell): Call fopen, not fopen_safer.
84015         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84016         Do not include unistd-safer.h.
84017         (save_cwd): Don't call fd_safer; no longer needed
84018         now that we include fcntl--.h.
84019
84020         * lib/getdate.y (relative_time): New type.
84021         (RELATIVE_TIME_0): New constant.
84022         (parser_control): Use relative_time instead of doing it ourselves.
84023         (%union): Add new relative_time rel member.
84024         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84025         Now typeless.
84026         (relunit, relunit_snumber): Now of type rel.
84027         (zone, rel, relunit, get_date): Adjust to above changes.
84028
84029         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84030         Do not include unistd-safer.h.
84031         (getloadavg): Don't call fd_safer; no longer needed
84032         now that we include fcntl--.h.
84033
84034         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84035         (make_dir_parents): Treat ENOSYS like EEXIST.
84036
84037         Improve quality of diagnostics on restore_cwd failure.
84038         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84039         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84040         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84041         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84042         each time through the loop.  Do not diagnose restore_cwd failure;
84043         that is the caller's job (and perhaps the caller does not care).
84044
84045         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84046         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84047         If the file already exists but is not a directory, don't bother
84048         to try to make its parents.
84049         Close potential file descriptor leak if we can't chdir("/") (!).
84050         Don't always return true if chdir($PWD) fails; return true only
84051         if the requested action was done successfully (except for the
84052         chdir($PWD)).
84053         Don't log final directory unless we actually made it.
84054         Refactor to avoid duplicate code to fix up permissions.
84055         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84056
84057         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84058         to make it a bit faster and (I hope) clearer.
84059         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84060         Fix bug in formats like %2N.
84061
84062         * lib/verify.h: New file.
84063
84064 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84065
84066         Sync from coreutils.
84067         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84068
84069 2005-09-22  Jim Meyering  <jim@meyering.net>
84070
84071         Sync from coreutils.
84072
84073         * m4/lstat.m4 (gl_FUNC_LSTAT):
84074         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84075         Remove obsolete comment.
84076         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84077         * m4/xstrtod.m4: Likewise.
84078
84079         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84080
84081 2005-09-22  Jim Meyering  <jim@meyering.net>
84082
84083         Sync from coreutils.
84084
84085         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84086
84087         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84088         the .tm_year member, since otherwise gcc-4.0 would now warn about
84089         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84090
84091         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84092         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84093
84094         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84095         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84096         when run in a time zone for which daylight savings time is in effect
84097         for the starting date.
84098
84099         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84100         stop us from restricting permissions of just-created absolute-named
84101         directories.
84102         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84103         to restore initial working directory.
84104         * lib/mkdir-p.c (make_dir_parents): New parameter:
84105         different_working_dir, to tell caller if/when we change the working
84106         directory and are unable to return to the initial one.
84107         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84108         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84109         `return false'.  This fixes a bug introduced on 2004-07-30.
84110
84111         * lib/openat.c (fdopendir): Be sure to close the supplied
84112         file descriptor before returning.  This makes our replacement
84113         implementation a little closer to Solaris's, where fdopendir
84114         ties the file descriptor to the returned DIR* pointer.
84115         * lib/openat.c (unlinkat): New function.
84116         * lib/openat.h (unlinkat): Add prototype.
84117         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84118         (openat_restore_fail): Rename from openat_restore_die.
84119         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84120
84121         Provide an alternative to exiting immediately upon save_cwd or
84122         restore_cwd failure.  Now, an application can arrange e.g.,
84123         to perform a longjump in that case.
84124         * lib/openat.c: Include dirname.h.
84125         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84126         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84127         and openat_restore_die rather than calling error directly.
84128         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84129
84130         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84131         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84132         define.
84133
84134         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84135         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84136                             int utc, int nanoseconds);
84137         Background:
84138         date should not have to allocate a megabyte of virtual memory to
84139         handle a format argument like +%1048575T.  When implemented with
84140         strftime, it must allocate such a buffer, use strftime to fill it
84141         in, print it, then free it.
84142         With fprintftime, it simply prints everything and exits.
84143         With no need for memory allocation, that's one fewer way to fail.
84144         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84145         optional field width, not before, so we accept %9:z, not %:9z.
84146         (my_strftime): Be sure to use L_('x') for literals.
84147
84148         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84149         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84150         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84151         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84152         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84153         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84154         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84155         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84156         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84157         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84158         * lib/xgethostname.c, lib/xreadlink.c:
84159         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84160
84161         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84162         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84163         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84164         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84165         and don't include <sys/file.h>).
84166
84167 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84168
84169         Sync from coreutils.
84170
84171         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84172         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84173         [!LDAV_DONE]: Avoid unused variable warning.
84174
84175 2005-09-21  Bruno Haible  <bruno@clisp.org>
84176
84177         * lib/unicodeio.h (unicode_to_mb): New declaration.
84178
84179 2005-09-20  Derek Price  <derek@ximbiot.com>
84180
84181         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84182         getaddrinfo.h.
84183
84184 2005-09-20  Bruno Haible  <bruno@clisp.org>
84185
84186         * gnulib-tool: Remove trailing slashes from the values specified for
84187         --source-base, --m4-base, --tests-base, --aux-dir.
84188         Suggested by Simon Josefsson <jas@extundo.com>.
84189
84190 2005-09-20  Bruno Haible  <bruno@clisp.org>
84191
84192         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84193         func_modules_to_filelist, func_import, func_create_testdir): Make all
84194         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84195         change when gnulib-tool is invoked in a different locale.
84196
84197 2005-09-19  Simon Josefsson  <jas@extundo.com>
84198
84199         * m4/socklen.m4: Fix typo.
84200
84201 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84202
84203         Use a consistent style for including <config.h>.
84204         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84205         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84206         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84207         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84208         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84209         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84210         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84211         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84212         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84213         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84214         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84215         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84216         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84217         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84218         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84219         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84220         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84221         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84222         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84223         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84224         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84225         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84226         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84227         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84228         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84229         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84230         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84231         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84232         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84233         lib/xstrtoumax.c, lib/yesno.c:
84234         Standardize inclusion of config.h.
84235         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84236         lib/inttostr.h:  Removed inclusion of config.h from header files.
84237         * lib/inttostr.c:  Adjusted in-tree users.
84238         * lib/timespec.h: Remove superfluous warning to include config.h.
84239         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84240         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84241         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84242         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84243         config.h with HAVE_CONFIG_H.
84244
84245 2005-09-19  Jim Meyering  <jim@meyering.net>
84246
84247         * modules/pathmax (License): Change to LGPL.
84248
84249 2005-09-19  Derek Price  <derek@ximbiot.com>
84250
84251         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84252
84253 2005-09-19  Bruno Haible  <bruno@clisp.org>
84254
84255         * gnulib-tool (import): Provide default for --tests-base.
84256
84257 2005-09-19  Bruno Haible  <bruno@clisp.org>
84258
84259         * doc/quote.texi: New file, extracted from gnulib.texi.
84260         * doc/ctime.texi: New file, extracted from gnulib.texi.
84261         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84262         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84263         * doc/gnulib.texi: Include them.
84264
84265 2005-09-18  Bruno Haible  <bruno@clisp.org>
84266
84267         Portability fix.
84268         * gnulib-tool (func_readlink): New function.
84269         (func_ln_if_changed): Use it.
84270
84271 2005-09-18  Bruno Haible  <bruno@clisp.org>
84272
84273         * gnulib-tool: Support --with-tests also with --import.
84274         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84275         (func_import): Use variables $testsbase and $inctests. Emit a
84276         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84277         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84278         SUBDIRS += $testsdir.
84279         (func_create_testdir): Update.
84280
84281 2005-09-18  Bruno Haible  <bruno@clisp.org>
84282
84283         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84284         instead of $dry_run.
84285         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84286         (func_ln_if_changed): Don't handle dry-run here.
84287         (func_import): In dry-run mode, detect more precisely which actions
84288         would be performed, and don't use "...ing" verbs.
84289
84290 2005-09-18  Bruno Haible  <bruno@clisp.org>
84291
84292         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84293         (func_import): Use join on two temporary files instead of three nested
84294         loops, in order to determine which files are new or old.
84295
84296 2005-09-18  Bruno Haible  <bruno@clisp.org>
84297
84298         * gnulib-tool (func_import): Comment out code that spits out the
84299         new files with --dry-run.
84300
84301 2005-09-18  Bruno Haible  <bruno@clisp.org>
84302
84303         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84304
84305 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84306
84307         * lib/stat-time.h: New file.
84308         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84309         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84310         in a different way.
84311         (timespec_cmp): New function.
84312         * lib/utimecmp.c: Include stat-time.h.
84313         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84314         members exist, not on the obsolescent ST_MTIM_NSEC.
84315         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84316
84317 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84318
84319         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84320
84321 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84322
84323         * MODULES.html.sh (File system functions): Add stat-time.
84324         * modules/stat-time: New file.
84325         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84326         is now done in a different way, by the stat-time module.
84327         * modules/utimecmp (Depends-on): Add stat-time.
84328
84329 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84330
84331         * m4/st_mtim.m4: Remove.  Superseded by...
84332         * m4/stat-time.m4: New file.
84333         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84334         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84335
84336 2005-09-15  Derek Price  <derek@ximbiot.com>
84337
84338         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84339
84340 2005-09-15  Derek Price  <derek@ximbiot.com>
84341
84342         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84343         * lib/regex_internal.c: Ditto, using this...
84344         (__GNUC_PREREQ): ...new macro.
84345         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84346         using...
84347         (__GNUC_PREREQ): ...this new macro.
84348
84349         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84350
84351 2005-09-15  Derek Price  <derek@ximbiot.com>
84352             Paul Eggert  <eggert@cs.ucla.edu>
84353
84354         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84355         changes, consolidating in...
84356         * lib/regex_internal.h: ...this file.
84357
84358 2005-09-13  Jim Meyering  <jim@meyering.net>
84359
84360         * lib/canon-host.c: Filter through gnu indent and reword comments
84361         slightly.
84362         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84363
84364 2005-09-13  Derek Price  <derek@ximbiot.com>
84365
84366         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84367         failure.
84368         Reported by Jim Meyering  <jim@meyering.net>.
84369
84370 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84371
84372         * lib/base64.c: Typo.
84373         (base64_encode): Put b64str in initialized data section.
84374
84375 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84376
84377         Merge glibc and coreutils changes into gnulib, plus a few
84378         extra fixes.
84379         * lib/md5.c: Use #error rather than a string.
84380         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84381         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84382         (__attribute__): Define to empty for non recent-GCC.
84383         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84384         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84385         Renamed from their non-__ counterparts, with new macros replacing
84386         them if not _LIBC.  Add __THROW attribute.
84387         (rol): Remove.
84388         (struct md5_ctx): Align buffer if using GCC.
84389         * lib/sha1.h (struct sha1_ctx): Likewise.
84390         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84391         The old name was backwards.
84392         (NOTSWAP): Remove; not used.
84393         (rol): New macro, moved here from md5.h.
84394         (sha1_process_block): Remove a FIXME that doesn't make sense.
84395
84396 2005-09-12  Derek Price  <derek@ximbiot.com>
84397
84398         Return usable errors from canon-host.
84399         * lib/canon-host.h: New file.
84400         * lib/canon-host.c (canon_host): Wrap...
84401         (canon_host_r): ...this new function, which now relies exclusively on
84402         getaddrinfo.
84403         (ch_strerror): New function.
84404         (last_cherror): New global.
84405         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84406         interface.
84407         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84408         void *.
84409         (freeaddrinfo): Free ai->ai_canonname when set.
84410
84411 2005-09-12  Derek Price  <derek@ximbiot.com>
84412
84413         Make canon-host require getaddrinfo.
84414         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84415         AC_LIBSOURCE canon-host.h.  Call...
84416         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84417         gl_GETADDRINFO.
84418         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84419
84420 2005-09-12  Derek Price  <derek@ximbiot.com>
84421
84422         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84423         LGPL.
84424         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84425
84426 2005-09-12  Derek Price  <derek@ximbiot.com>
84427
84428         * lib/gai_strerror.c: Include config.h when available.  Include
84429         getaddrinfo.h before other headers to test interface.
84430         Reported by Larry Jones <lawrence.jones@ugs.com>.
84431
84432 2005-09-12  Derek Price  <derek@ximbiot.com>
84433             Paul Eggert  <eggert@cs.ucla.edu>
84434
84435         * modules/glob (Files): Add glob-libc.h.
84436
84437 2005-09-12  Derek Price  <derek@ximbiot.com>
84438             Paul Eggert  <eggert@cs.ucla.edu>
84439
84440         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84441         glob_.h, glob-libc.h.
84442         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84443
84444 2005-09-12  Derek Price  <derek@ximbiot.com>
84445             Paul Eggert  <eggert@cs.ucla.edu>
84446
84447         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84448         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84449         protecting things that should be done only in gnulib contexts.
84450         * lib/glob_.h: New file, containing only the glob things needed for
84451         gnulib.
84452         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84453         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84454         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84455         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84456         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84457         and to respect the namespace rules better.
84458
84459 2005-09-08  Simon Josefsson  <jas@extundo.com>
84460
84461         * modules/socklen: New file.
84462
84463 2005-09-08  Simon Josefsson  <jas@extundo.com>
84464
84465         * m4/socklen.m4: New file.
84466
84467 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84468
84469         * modules/utimens (Files): Add m4/utimbuf.m4, since
84470         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84471         Reported by Sergey Poznyakoff.
84472
84473 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84474
84475         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84476         definitions, since that's the preferred style in glibc.
84477         Fix a minor spacing issue, and update copyright notice to match
84478         glibc's.
84479
84480 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84481
84482         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84483
84484 2005-09-06  Simon Josefsson  <jas@extundo.com>
84485
84486         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84487         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84488
84489 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84490
84491         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84492         warning.
84493
84494 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84495
84496         * config/srclist.txt: Add glibc bug 1302.
84497
84498 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84499
84500         Change bitset word type from unsigned int to unsigned long int,
84501         as this has better performance on typical 64-bit hosts.
84502         Port bitset code to hosts with unusual word sizes.
84503         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84504         (build_collating_symbol):
84505         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84506         argument is a bitset.  This is merely a style issue, but it makes
84507         it clearer that an entire array is expected.
84508         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84509         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84510         Port to the case where bitset_word is not the same as unsigned int.
84511         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84512         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84513         Likewise.
84514         * lib/regexec.c (check_dst_limits_calc_pos_1,
84515         check_subexp_matching_top):
84516         (build_trtable, group_nodes_into_DFAstates):
84517         Likewise.
84518         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84519         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84520         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84521         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84522         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84523         * lib/regcomp.c (optimize_subexps, lower_subexp):
84524         Work even if bitset_word has holes in its bitwise representation.
84525         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84526         * lib/regexec.c (check_dst_limits_calc_pos_1,
84527         check_subexp_matching_top):
84528         Likewise.
84529         * lib/regex_internal.c (re_string_reconstruct):
84530         Don't assume UCHAR_MAX == 255.
84531         * lib/regex_internal.h (bitset_set_all): Likewise.
84532         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84533         All uses changed.
84534         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84535         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84536         All uses changed.
84537         (BITSET_WORD_MAX): New macro.
84538         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84539         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84540         (bitset_empty, bitset_copy):
84541         Prefer sizeof (bitset) to multiplying it out ourselves.
84542         (bitset_not_merge): Remove; unused.
84543         (bitset_contain): Return bool, not unsigned int with one bit on.
84544         All callers changed.
84545         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84546         alignment than re_node_set; do this by defining a new internal
84547         type struct dests_alloc and using it to allocate memory.
84548
84549 2005-09-05  Bruno Haible  <bruno@clisp.org>
84550
84551         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84552         links.
84553
84554 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84555
84556         * modules/size_max (Makefile.am): Add size_max.h
84557
84558 2005-09-04  Derek Price  <derek@ximbiot.com>
84559
84560         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84561
84562 2005-09-03  Simon Josefsson  <jas@extundo.com>
84563
84564         * gnulib-tool: Fix typo.
84565
84566 2005-09-03  Simon Josefsson  <jas@extundo.com>
84567
84568         * config/srclist.txt: Add glibc bug 1293.
84569
84570 2005-09-03  Derek Price  <derek@ximbiot.com>
84571
84572         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84573         From Larry Jones <lawrence.jones@ugs.com>.
84574
84575 2005-09-02  Simon Josefsson  <jas@extundo.com>
84576
84577         * modules/socklen: New file.
84578
84579 2005-09-02  Simon Josefsson  <jas@extundo.com>
84580
84581         * modules/havelib: New module.
84582
84583         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84584         Use havelib.
84585
84586 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84587
84588         Check for arithmetic overflow when calculating sizes, to prevent
84589         some buffer-overflow issues.  These patches are conservative, in the
84590         sense that when I couldn't determine whether an overflow was possible,
84591         I inserted a run-time check.
84592         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84593         macros.
84594         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84595         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84596         (re_xnrealloc, re_x2nrealloc): New inline functions.
84597         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84598         parse_bracket_exp):
84599         (build_equiv_class, build_charclass): Check for arithmetic overflow
84600         in size expression calculations.
84601         * lib/regex_internal.c (re_string_realloc_buffers):
84602         (build_wcs_upper_buffer, re_node_set_add_intersect):
84603         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84604         (re_dfa_add_node, register_state): Likewise.
84605         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84606         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84607         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84608         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84609
84610 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84611
84612         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84613         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84614
84615 2005-09-02  Bruno Haible  <bruno@clisp.org>
84616
84617         Support for lib vs. lib64 distinction on biarch platforms.
84618         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84619         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84620         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84621
84622 2005-09-02  Bruno Haible  <bruno@clisp.org>
84623
84624         * gnulib-tool (import): In the other first-use case, provide defaults
84625         as well.
84626
84627 2005-09-02  Bruno Haible  <bruno@clisp.org>
84628
84629         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84630         patches not yet found in the latest gettext release.
84631
84632 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84633
84634         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84635         to avoid a collision with bits/local_lim.h in glibc.
84636         All uses changed.  Problem reported by Dmitry V. Levin in
84637         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84638
84639         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84640         bugs in int versus size_t comparisons.
84641         (re_string_context_at): Fix bug where the code assumed that
84642         Idx is signed.
84643
84644         Use bool where appropriate.
84645         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84646         All callers changed.
84647         (calc_eclosure_iter): Likewise, for ROOT arg.
84648         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84649         (build_charclass_op): Likewise, for NON_MATCH arg.
84650         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84651         (re_string_construct_common): Likewise, for ICASE arg.
84652         * lib/regexec.c (re_search_2_stub, re_search_stub):
84653         Likewise, for RET_LEN arg.
84654         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84655         (set_regs): Likewise, for FL_BACKTRACK arg.
84656         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84657         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84658         (calc_eclosure_iter, parse_bracket_exp):
84659         Use bool for internal variables that are booleans.
84660         * lib/regexec.c (re_search_internal, check_matching,
84661         proceed_next_node):
84662         (set_regs, build_sifted_states, sift_states_bkref):
84663         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84664         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84665         (find_collation_sequence_value):
84666         Likewise.
84667         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84668         (re_node_set_compare):
84669         Return bool, not int. All callers changed.
84670         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84671         (build_trtable, check_node_accept): Likewise.
84672         * lib/regex_internal.h: Include stdbool.h.
84673
84674         Fix bugs uncovered when converting to bool.
84675         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84676         failure instead of charging ahead blindly.
84677         * lib/regex_internal.c (register_state): Likewise.
84678         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84679         for freeing internal storage.
84680         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84681         bitset pieces used as boolean, to avoid undefined behavior
84682         on hosts that do int overflow checking.
84683
84684 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84685
84686         * config/srclist.txt: Add glibc bugs 1285-1287.
84687
84688 2005-09-01  Jim Meyering  <jim@meyering.net>
84689
84690         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84691         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84692         Require gl_STAT_MACROS, too.
84693
84694 2005-09-01  Bruno Haible  <bruno@clisp.org>
84695
84696         * gnulib-tool (import): In the first-use case, provide defaults.
84697
84698 2005-09-01  Bruno Haible  <bruno@clisp.org>
84699
84700         * gnulib-tool (func_import): Remove the .tmp files.
84701
84702 2005-09-01  Bruno Haible  <bruno@clisp.org>
84703
84704         * gnulib-tool (func_import): Fix handling of symbolic links.
84705
84706 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84707
84708         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84709         old glibc regex code mishandles strings longer than 2**31 bytes.
84710         This patch fixes this when the regex code is used in gnulib
84711         (i.e., outside glibc).
84712
84713         This patch should not affect the use of the regex code inside
84714         glibc.  No doubt this problem also needs to be handled for glibc
84715         as well, but the result will be an incompatible change to the
84716         glibc ABI, and the old ABI will have to be supported too.  That
84717         can be the the subject for another patch.
84718
84719         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84720         governing whether the rest of this patch is active.  By default,
84721         the macro is disabled and the patch has no effect.
84722         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84723         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84724         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84725         (re_match_2, re_set_registers): Use the new types.
84726         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84727         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84728         New macros.
84729         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84730         (re_string_context_at, bin_tree_t, re_dfastate_t):
84731         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84732         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84733         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84734         (re_string_char_size_at, re_string_wchar_at):
84735         (re_string_elem_size_at):
84736         Use the new types and macros to port to 64-bit hosts.
84737         Use unsigned types for internal values, so that the code
84738         mostly works even for arrays larger than SSIZE_MAX.
84739         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84740         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84741         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84742         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84743         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84744         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84745         (calc_inveclosure, parse_dup_op, build_range_exp):
84746         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84747         (fetch_number, create_token_tree, mark_opt_subexp):
84748         Likewise.
84749         * lib/regex_internal.c (re_string_construct_common,
84750         create_ci_newstate):
84751         (create_cd_newstate, re_string_allocate, re_string_construct):
84752         (re_string_realloc_buffers, build_wcs_upper_buffer):
84753         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84754         (re_string_reconstruct, re_string_peek_byte_case):
84755         (re_string_fetch_byte_case, re_string_context_at):
84756         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84757         (re_node_set_init_copy, re_node_set_add_intersect):
84758         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84759         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84760         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84761         (re_acquire_state, re_acquire_state_context, register_state):
84762         Likewise.
84763         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84764         search_cur_bkref_entry):
84765         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84766         (re_search_internal, re_search_2_stub, re_search_stub)
84767         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84768         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84769         (update_cur_sifted_state, check_dst_limits):
84770         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84771         (check_subexp_limits, sift_states_bkref, merge_state_array):
84772         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84773         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84774         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84775         (expand_bkref_cache, check_node_accept_bytes):
84776         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84777         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84778         (acquire_init_state_context, check_halt_node_context):
84779         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84780         (sift_states_backward, clean_state_log_if_needed):
84781         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84782         (find_recover_state, transit_state_sb, transit_state_mb):
84783         (transit_state_bkref, build_trtable, match_ctx_clean):
84784         Likewise.
84785         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84786         to work around an assumption that REG_MISSING is negative.
84787
84788         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84789         (seek_collating_symbol_entry) [defined _LIBC]:
84790         (lookup_collation_sequence_value) [defined _LIBC]:
84791         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84792         Use prototypes rather than old-style function definitions.
84793         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84794         (transit_state_sb) [0]:
84795         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84796
84797         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84798         rm_eo.
84799
84800         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84801         (optimize_subexps, lower_subexp):
84802         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84803         since the signed shift might overflow.  Use 1u<<31 instead.
84804         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84805         Likewise.
84806         * lib/regexec.c (check_dst_limits_calc_pos_1,
84807         check_subexp_matching_top): Likewise.
84808
84809         * lib/regcomp.c (optimize_subexps, lower_subexp):
84810         Use CHAR_BIT rather than 8, for clarity.
84811         * lib/regexec.c (check_dst_limits_calc_pos_1):
84812         (check_subexp_matching_top): Likewise.
84813         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84814         have to worry about portability issues when shifting it left.
84815         Remove no-longer-needed test for table_size > 0.
84816         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84817         in a word, as the resulting behavior is undefined.
84818         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84819         in one case, a <= should have been an <, and in another case the
84820         whole test was missing.
84821         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84822         the standard name CHAR_BIT.
84823         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84824         this is not true on one's complement and signed-magnitude hosts.
84825
84826         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84827         next_last_offset.
84828         (struct re_dfa_t): Remove unused member states_alloc.
84829         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84830
84831 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84832
84833         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84834         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84835         and large-file glibc and in 32-bit large-file Solaris.
84836
84837 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84838
84839         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84840         lengths fit in regoff_t; this isn't true if regoff_t is the same
84841         width as size_t.
84842         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84843         (= START + RANGE) instead of RANGE.  This avoids overflow
84844         problems when regoff_t is the same width as size_t.
84845         All callers changed.
84846         (re_search_2_stub): Check for overflow when adding the
84847         sizes of the two strings.
84848         (re_search_stub): Check for overflow when adding START
84849         to RANGE; if it occurs, substitute the extreme value.
84850
84851 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84852
84853         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84854
84855 2005-08-31  Jim Meyering  <jim@meyering.net>
84856
84857         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84858         a pointer-to-const.
84859         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84860         (register_state): Likewise.
84861         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84862         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84863         (group_nodes_into_DFAstates): Likewise.
84864
84865 2005-08-31  Jim Meyering  <jim@meyering.net>
84866
84867         * check-module: Add a FIXME comment.
84868
84869 2005-08-31  Eric Blake  <ebb9@byu.net>
84870
84871         * modules/unistd-safer (Files): Add unistd--.h.
84872         * modules/stdio-safer (Files): Add stdio--.h.
84873
84874 2005-08-31  Derek Price  <derek@ximbiot.com>
84875
84876         * lib/getdelim.c (getdelim): Return EOF on EOF.
84877         Reported by Larry Jones <lawrence.jones@ugs.com>.
84878
84879 2005-08-31  Bruno Haible  <bruno@clisp.org>
84880
84881         Avoid unnecessary diffs in the generated lib/Makefile.am.
84882         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84883         the generated files.
84884         (func_import): Don't set cmd.
84885
84886 2005-08-31  Bruno Haible  <bruno@clisp.org>
84887
84888         * lib/strstr.c: Include <stddef.h>, for NULL.
84889         * lib/strcasestr.c: Likewise.
84890         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84891
84892 2005-08-31  Bruno Haible  <bruno@clisp.org>
84893
84894         * gnulib-tool: New option --macro-prefix.
84895         (func_import): Use macro_prefix.
84896         (import): Handle option --macro-prefix.
84897
84898 2005-08-31  Bruno Haible  <bruno@clisp.org>
84899
84900         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84901         Also use new variables cached_lgpl, cached_libtool.
84902
84903 2005-08-31  Bruno Haible  <bruno@clisp.org>
84904
84905         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84906         always instantiating them.
84907
84908 2005-08-31  Bruno Haible  <bruno@clisp.org>
84909
84910         * gnulib-tool (func_import): Read the previous cached settings
84911         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84912         earlier added by gnulib but are now dropped. Warn when a gnulib file
84913         overwrites a non-gnulib file.
84914
84915 2005-08-31  Bruno Haible  <bruno@clisp.org>
84916
84917         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84918         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84919         projects that don't keep autogenerated files in CVS. Put into
84920         actioncmd only the specified modules, not the transitive closure.
84921
84922 2005-08-31  Bruno Haible  <bruno@clisp.org>
84923
84924         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84925         Create directories that shall be filled.
84926         (import): Don't look for gl_* macros in configure.ac. Recurse across
84927         all directories containing a gnulib-cache.m4 files, if meaningful.
84928
84929 2005-08-31  Bruno Haible  <bruno@clisp.org>
84930
84931         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84932         (import): Set seen_libtool when we see gl_LIBTOOL.
84933
84934 2005-08-31  Bruno Haible  <bruno@clisp.org>
84935
84936         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84937         declaration macro definitions from generated gnulib.m4.
84938
84939 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84940
84941         * lib/iconvme.h: Add prototype for iconv_alloc.
84942
84943 2005-08-29  Simon Josefsson  <jas@extundo.com>
84944
84945         * lib/iconvme.c: Fix errno.
84946
84947 2005-08-29  Bruno Haible  <bruno@clisp.org>
84948
84949         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84950         that it works when the directory contains spaces.
84951
84952 2005-08-29  Bruno Haible  <bruno@clisp.org>
84953
84954         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84955
84956 2005-08-29  Bruno Haible  <bruno@clisp.org>
84957
84958         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84959         Emit more advice.
84960
84961 2005-08-29  Bruno Haible  <bruno@clisp.org>
84962         and Stepan Kasal  <kasal@ucw.cz>
84963
84964         * check-module: If more parameters are given, check each of them
84965         separately; add more exceptions, as noted by Jim Meyering.
84966         (check_module): New procedure.
84967         (%exempt_header): Now contains all exceptions.
84968
84969 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84970
84971         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84972
84973 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84974
84975         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84976
84977 2005-08-28  Bruno Haible  <bruno@clisp.org>
84978
84979         * m4/gnulib-tool.m4: New file.
84980
84981 2005-08-27  Jim Meyering  <jim@meyering.net>
84982
84983         * modules/unistd-safer (Files): Add pipe-safer.c.
84984         * modules/fcntl-safer (Files): Add creat-safer.c.
84985
84986 2005-08-27  Jim Meyering  <jim@meyering.net>
84987
84988         * m4/stdlib-safer.m4: New file.  From coreutils.
84989         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84990         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84991         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84992         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84993         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84994
84995 2005-08-27  Jim Meyering  <jim@meyering.net>
84996
84997         * lib/fopen-safer.c: Merge minor changes from coreutils.
84998         * lib/dup-safer.c: Likewise.
84999         * lib/fd-safer.c: Likewise.
85000
85001         Merge from coreutils.
85002         * lib/stdio--.h: New file.
85003         * lib/stdlib--.h: New file.
85004         * lib/mkstemp-safer.c: New file.
85005
85006         GNU tar needs these.
85007         * lib/pipe-safer.c: New file.
85008         * lib/creat-safer.c: New file.
85009         * lib/fcntl--.h (creat): Define to creat_safer.
85010         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85011         * lib/unistd--.h (pipe): Define to pipe_safer.
85012         * lib/unistd-safer.h: Declare pipe_safer.
85013
85014 2005-08-26  Simon Josefsson  <jas@extundo.com>
85015
85016         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85017         Haible <bruno@clisp.org>.
85018
85019 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85020
85021         * lib/regex_internal.h: Remove all references to
85022         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85023         or better.
85024         (bitset_not, bitset_merge, bitset_not_merge):
85025         (bitset_mask, re_string_allocate, re_string_construct):
85026         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85027         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85028         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85029         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85030         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85031         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85032         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85033         (re_acquire_state_context):
85034         Remove unnecessary forward decls.
85035         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85036         Put __attribute at function definition,
85037         now that the function decl has been removed.
85038         * lib/regex_internal.c (re_string_peek_byte_case):
85039         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85040         Likewise.
85041
85042 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85043
85044         * m4/regex.m4: Add AC_PREREQ(2.50).
85045         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85046
85047 2005-08-25  Simon Josefsson  <jas@extundo.com>
85048
85049         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85050         __fsetlocking.
85051
85052 2005-08-25  Simon Josefsson  <jas@extundo.com>
85053
85054         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85055         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85056         GLIBC specific code.
85057
85058 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85059
85060         Make regex safe for g++.  This fixes one real bug (an "err"
85061         that should have been "*err").  g++ problem reported by
85062         Sam Steingold.
85063         * lib/regex_internal.h (re_calloc): New macro, consistent with
85064         re_malloc etc.  All callers of calloc changed to use re_calloc.
85065         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85066         not int.  All callers changed.
85067         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85068         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85069         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85070         (find_recover_state): Change "err" to "*err"; this fixes what
85071         appears to be a real bug.
85072         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85073         versus int.
85074
85075 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85076
85077         * modules/regex (Depends-on): Add malloc, since the code
85078         assumes that !malloc(0) means failure.
85079
85080 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85081
85082         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85083
85084         alloca modernization/simplification for regex.
85085         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85086         needs to be at the start of the file, and can be moved into
85087         regex_internal.h and simplified.
85088         * lib/regex_internal.h: Include <alloca.h>.
85089         (__libc_use_alloca) [!defined _LIBC]: New macro.
85090         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85091         now works outside glibc.
85092
85093 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85094
85095         * config/srclist.txt: Add glibc bugs 1241, 1245.
85096
85097 2005-08-25  Jim Meyering  <jim@meyering.net>
85098
85099         * lib/open-safer.c: Include <config.h>.
85100         Otherwise, we'd lose LARGEFILE support in any file using
85101         e.g. "fcntl--.h"
85102
85103 2005-08-25  Bruno Haible  <bruno@clisp.org>
85104
85105         * m4/minmax.m4: Require autoconf 2.52.
85106         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85107         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85108         alternatives of translit over the alphabet.
85109         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85110
85111 2005-08-24  Simon Josefsson  <jas@extundo.com>
85112
85113         * tests/test-getpass.c: New file.
85114
85115 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85116
85117         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85118         for GNU regex features.
85119
85120 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85121
85122         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85123         * lib/regex.h (regerror): Likewise.
85124
85125         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85126         requires this.  (The code never needed it.)
85127
85128         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85129         All uses of recently-renamed identifiers changed to use the new,
85130         POSIX-compliant names.  The code will build and run just fine
85131         without these changes, but it's better to eat our own dog food
85132         and use the standard-conforming names.
85133
85134         * lib/regex.h: Fix a multitude of POSIX name space violations.
85135         These changes have an effect only for programs that define
85136         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85137         do not change anything for programs compiled in the normal way.
85138         Also, there is no effect on the ABI.
85139
85140         (_REGEX_SOURCE): New macro.
85141         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85142         defined and _GNU_SOURCE is not; this fixes a name space violation.
85143
85144         Rename the following macros to obey POSIX requirements.
85145         The old names are still visible as macros if _REGEX_SOURCE is defined.
85146         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85147         RE_BACKSLASH_ESCAPE_IN_LISTS.
85148         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85149         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85150         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85151         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85152         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85153         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85154         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85155         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85156         (REG_INTERVALS): renamed from RE_INTERVALS.
85157         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85158         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85159         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85160         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85161         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85162         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85163         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85164         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85165         RE_UNMATCHED_RIGHT_PAREN_ORD.
85166         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85167         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85168         (REG_DEBUG): renamed from RE_DEBUG.
85169         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85170         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85171         unusual, since we can't clash with the POSIX REG_ICASE.
85172         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85173         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85174         (REG_NO_SUB): renamed from RE_NO_SUB.
85175         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85176         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85177         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85178         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85179         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85180         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85181         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85182         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85183         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85184         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85185         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85186         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85187         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85188         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85189         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85190         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85191         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85192         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85193         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85194         (REG_FIXED): Renamed from REGS_FIXED.
85195         (REG_NREGS): Renamed from RE_NREGS.
85196
85197         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85198         of other REG_* macros, since POSIX says the user is allowed to
85199         #undef these macros selectively.
85200
85201         (reg_errcode_t): Update comment stating what other tables need
85202         to be consistent.
85203
85204         Rename the following enum values to obey POSIX requirements.
85205         The old names are still visible as macros.
85206         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85207         is not defined, since GNU is supposed to be a superset of POSIX as
85208         much as possible, and since we want reg_errcode_t to be a signed
85209         type for implementation consistency.
85210         (_REG_NOERROR): Renamed from REG_NOERROR.
85211         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85212         (_REG_BADPAT): Renamed from REG_BADPAT.
85213         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85214         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85215         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85216         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85217         (_REG_EBRACK): Renamed from REG_EBRACK.
85218         (_REG_EPAREN): Renamed from REG_EPAREN.
85219         (_REG_EBRACE): Renamed from REG_EBRACE.
85220         (_REG_BADBR): Renamed from REG_BADBR.
85221         (_REG_ERANGE): Renamed from REG_ERANGE.
85222         (_REG_ESPACE): Renamed from REG_ESPACE.
85223         (_REG_BADRPT): Renamed from REG_BADRPT.
85224         (_REG_EEND): Renamed from REG_EEND.
85225         (_REG_ESIZE): Renamed from REG_ESIZE.
85226         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85227         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85228         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85229         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85230         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85231
85232         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85233         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85234         changed.  But support the old name if the new one is not defined
85235         and if _REGEX_SOURCE.
85236
85237         Change the following member names in struct re_pattern_buffer.
85238         The old names are still supported if !_REGEX_SOURCE.
85239         The new names are always supported, regardless of _REGEX_SOURCE.
85240         (re_buffer): Renamed from buffer.
85241         (re_allocated): Renamed from allocated.
85242         (re_used): Renamed from used.
85243         (re_syntax): Renamed from syntax.
85244         (re_fastmap): Renamed from fastmap.
85245         (re_translate): Renamed from translate.
85246         (re_can_be_null): Renamed from can_be_null.
85247         (re_regs_allocated): Renamed from regs_allocated.
85248         (re_fastmap_accurate): Renamed from fastmap_accurate.
85249         (re_no_sub): Renamed from no_sub.
85250         (re_not_bol): Renamed from not_bol.
85251         (re_not_eol): Renamed from not_eol.
85252         (re_newline_anchor): Renamed from newline_anchor.
85253
85254         Change the following member names in struct re_registers.
85255         The old names are still supported if !_REGEX_SOURCE.
85256         The new names are always supported, regardless of _REGEX_SOURCE.
85257         (rm_num_regs): Renamed from num_regs.
85258         (rm_start): Renamed from start.
85259         (rm_end): Renamed from end.
85260
85261         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85262         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85263         Prepend __ to parameter names.
85264
85265         Undo yesterday's changes.
85266
85267 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85268
85269         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85270         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85271         lib/regex.c.
85272
85273 2005-08-24  Jim Meyering  <jim@meyering.net>
85274
85275         Sync from coreutils.
85276         * m4/fcntl-safer.m4: New file.
85277
85278         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85279         and object files for this module.
85280
85281 2005-08-24  Jim Meyering  <jim@meyering.net>
85282
85283         Sync from coreutils.
85284         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85285
85286 2005-08-24  Jim Meyering  <jim@meyering.net>
85287
85288         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85289         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85290
85291 2005-08-24  Jim Meyering  <jim@meyering.net>
85292
85293         * modules/fcntl-safer: New module.
85294         * modules/fts (Depends-on): Add fcntl-safer.
85295         * MODULES.html.sh (File descriptor based Input/Output):
85296         Add fcntl-safer.
85297
85298 2005-08-24  Bruno Haible  <bruno@clisp.org>
85299
85300         Support for unit test modules.
85301         * modules/README: Mention tests modules.
85302         * modules/TEMPLATE-TESTS: New file.
85303         * gnulib-tool: New options --extract-tests-module, --with-tests and
85304         --tests-base (unused for the moment).
85305         (testsbase, inctests): New variables.
85306         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85307         (func_verify_module): Exclude TEMPLATE-TESTS.
85308         (func_verify_nontests_module, func_verify_tests_module): New functions.
85309         (func_get_dependencies): Add implicit dependency for tests modules.
85310         (func_get_tests_module): New function.
85311         (func_modules_transitive_closure): When --with-tests was specified,
85312         include the unit tests as well, unless explicitly avoided.
85313         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85314         (func_emit_tests_Makefile_am): New function.
85315         (func_create_testdir): When --with-tests was specified, emit a
85316         tests/ directory.
85317         * MODULES.html.sh (Future developments): Update.
85318
85319 2005-08-24  Bruno Haible  <bruno@clisp.org>
85320
85321         * modules/tls-tests: New file.
85322         * tests/test-tls.c: New file, from GNU gettext.
85323
85324 2005-08-24  Bruno Haible  <bruno@clisp.org>
85325
85326         * modules/lock-tests: New file.
85327         * tests/test-lock.c: New file, from GNU gettext.
85328
85329 2005-08-24  Bruno Haible  <bruno@clisp.org>
85330
85331         * lib/lock.h: Add multiple inclusion guard.
85332         * lib/tls.h: Add multiple inclusion guard.
85333
85334 2005-08-24  Bruno Haible  <bruno@clisp.org>
85335
85336         * gnulib-tool: Add support for the --aux-dir option to
85337         --create-testdir, --create-megatestdir, --test, --megatest.
85338         (func_create_testdir, func_create_megatestdir): Optionally emit a
85339         AC_CONFIG_AUX_DIR directive.
85340         (create-testdir, create-megatestdir, test, megatest): Provide a
85341         default value for $auxdir.
85342
85343 2005-08-24  Bruno Haible  <bruno@clisp.org>
85344
85345         * gnulib-tool (import): Use compound statement instead of subshell
85346         where possible.
85347
85348 2005-08-24  Bruno Haible  <bruno@clisp.org>
85349
85350         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85351
85352 2005-08-24  Bruno Haible  <bruno@clisp.org>
85353
85354         * gnulib-tool (func_version): Update.
85355
85356 2005-08-24  Bruno Haible  <bruno@clisp.org>
85357
85358         * gnulib-tool (func_import, func_create_testdir,
85359         func_create_megatestdir): Quote all autoconf macro arguments.
85360
85361 2005-08-24  Bruno Haible  <bruno@clisp.org>
85362
85363         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85364         option --force, because --force causes the aclocal.m4 of each
85365         subdirectory to be newer than the corresponding config.h.in.
85366
85367 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85368
85369         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85370         All contents moved to gl_REGEX.
85371         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85372         assume that it does.
85373
85374 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85375
85376         * lib/regex.h (REG_NOSYS)
85377         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85378         Define, since POSIX requires it as of 2001.
85379         (_REG_ENOSYS)
85380         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85381         New private symbol, used to keep the enum signed in all cases.
85382         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85383         Youngman in
85384         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85385
85386         * lib/regex_internal.c (re_string_skip_chars, register_state):
85387         (calc_state_hash):
85388         Remove forward decls; no longer needed now that we use prototypes.
85389         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85390         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85391         (clean_state_log_if_needed): Likewise.
85392
85393 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85394
85395         * config/srclist.txt: Add glibc bugs 1231-1233.
85396
85397 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85398
85399         Fix problems reported by Sam Steingold in
85400         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85401         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85402         assumed that reg_errcode_t is a signed type, which is not
85403         necessarily true if _XOPEN_SOURCE is not defined.
85404         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85405         since some compilers warn about it otherwise.
85406
85407 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85408
85409         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85410         (init_word_char, create_initial_state, duplicate_node_closure):
85411         (fetch_token, peek_token_bracket, build_range_exp):
85412         (build_collating_symbol): Remove forward decls; no longer needed
85413         now that we use prototypes.
85414
85415         * lib/regcomp.c:
85416         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85417         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85418         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85419         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85420         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85421         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85422         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85423         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85424         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85425         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85426         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85427         (build_charclass, build_charclass_op, fetch_number, create_tree):
85428         (create_token_tree, mark_opt_subexp, duplicate_tree):
85429         Use prototypes rather than old-style definitions.
85430
85431         * lib/regex_internal.c:
85432         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85433         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85434         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85435         (re_string_reconstruct, re_string_peek_byte_case):
85436         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85437         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85438         (re_node_set_init_copy, re_node_set_add_intersect):
85439         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85440         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85441         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85442         (re_acquire_state, re_acquire_state_context, register_state):
85443         (create_ci_newstate, create_cd_newstate, free_state):
85444         Likewise.
85445         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85446         re_search_2):
85447         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85448         (re_search_internal, prune_impossible_nodes):
85449         (acquire_init_state_context, check_matching, static):
85450         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85451         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85452         (update_regs, sift_states_backward, build_sifted_states):
85453         (clean_state_log_if_needed, merge_state_array):
85454         (update_cur_sifted_state, add_epsilon_src_nodes):
85455         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85456         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85457         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85458         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85459         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85460         (check_arrival, check_arrival_add_next_nodes):
85461         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85462         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85463         (check_node_accept_bytes, check_node_accept, extend_buffers):
85464         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85465         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85466         (sift_ctx_init):
85467         Likewise.
85468
85469         * lib/regex_internal.h:
85470         (re_string_allocate, re_string_construct, re_string_reconstruct):
85471         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85472         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85473         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85474         (re_string_context_at, re_string_peek_byte_case):
85475         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85476         is defined, since we now use prototypes always.
85477
85478         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85479         C89 or better.  All uses removed.
85480
85481 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85482
85483         * config/srclist.txt: Add glibc bugs 1220-1227.
85484
85485 2005-08-20  Jim Meyering  <jim@meyering.net>
85486
85487         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85488         of unused local, dfa.
85489
85490 2005-08-20  Bruno Haible  <bruno@clisp.org>
85491
85492         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85493
85494 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85495
85496         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85497         (re_node_set_insert_last, re_dfa_add_node):
85498         Rename local variables to avoid GCC shadowing warnings.
85499
85500 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85501
85502         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85503         [defined lint]: Suppress bogus uninitialized-variable warnings.
85504
85505         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85506         and let the caller return REG_ESPACE if out of space.  This
85507         removes an uninitialied-variable warning with GCC 4.0.1, and also
85508         avoids taking the address of a local variable.  All callers
85509         changed.
85510
85511 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85512
85513         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85514         $LIBCSRC/posix/regexec.c.
85515         Add glibc bug 1217 for regcomp.c.
85516
85517 2005-08-19  Jim Meyering  <jim@meyering.net>
85518
85519         * lib/regexec.c (proceed_next_node): Redo local variables to
85520         avoid GCC shadowing warnings.
85521
85522 2005-08-18  Bruno Haible  <bruno@clisp.org>
85523
85524         * lib/strstr.c (strstr): Fix return value in multibyte case.
85525         * lib/strcasestr.c (strcasestr): Likewise.
85526
85527 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85528
85529         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85530
85531 2005-08-17  Jim Meyering  <jim@meyering.net>
85532
85533         Make the %s format (seconds since the epoch) work for a negative
85534         number and when used with a zero-padded field width, e.g. %015s.
85535
85536         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85537         label so that it precedes the code to set `digits'.  Otherwise,
85538         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85539         print `00-22'.  Now, it prints `-0022', as it should.
85540
85541 2005-08-17  Bruno Haible  <bruno@clisp.org>
85542
85543         * modules/strstr (Files): Add m4/mbrtowc.m4.
85544         (Depends-on): Add mbuiter.
85545
85546 2005-08-17  Bruno Haible  <bruno@clisp.org>
85547
85548         * modules/strcasestr: New file.
85549         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85550         strcasestr.
85551
85552 2005-08-17  Bruno Haible  <bruno@clisp.org>
85553
85554         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85555
85556 2005-08-17  Bruno Haible  <bruno@clisp.org>
85557
85558         * modules/mbuiter: New file.
85559         * MODULES.html.sh (Extended multibyte and wide character utilities):
85560         Add mbuiter.
85561
85562 2005-08-17  Bruno Haible  <bruno@clisp.org>
85563
85564         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85565         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85566
85567 2005-08-17  Bruno Haible  <bruno@clisp.org>
85568
85569         * m4/strcasestr.m4: New file.
85570
85571 2005-08-17  Bruno Haible  <bruno@clisp.org>
85572
85573         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85574         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85575
85576 2005-08-17  Bruno Haible  <bruno@clisp.org>
85577
85578         * lib/strcasestr.h: New file.
85579         * lib/strcasestr.c: New file.
85580
85581 2005-08-17  Bruno Haible  <bruno@clisp.org>
85582
85583         * lib/strcasecmp.c: Use mbuiter.h.
85584
85585 2005-08-17  Bruno Haible  <bruno@clisp.org>
85586
85587         * lib/mbuiter.h: New file.
85588
85589 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85590
85591         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85592         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85593         and gl_GETOPT are both invoked via different paths (as happens
85594         with GNU tar CVS because it uses both argp and getopt), the former
85595         wins.
85596
85597 2005-08-16  Bruno Haible  <bruno@clisp.org>
85598
85599         * modules/tls: New file.
85600         * MODULES.html.sh (Multithreading): Add tls.
85601
85602 2005-08-16  Bruno Haible  <bruno@clisp.org>
85603
85604         * modules/strnlen1: New file.
85605         * MODULES.html.sh (String handling): Add strnlen1.
85606
85607 2005-08-16  Bruno Haible  <bruno@clisp.org>
85608
85609         * modules/strcase (Files): Add m4/mbrtowc.m4.
85610         (Depends-on): Add strnlen1, mbchar.
85611
85612 2005-08-16  Bruno Haible  <bruno@clisp.org>
85613
85614         * modules/mbiter: New file.
85615         * MODULES.html.sh (Extended multibyte and wide character utilities):
85616         Add mbiter.
85617
85618 2005-08-16  Bruno Haible  <bruno@clisp.org>
85619
85620         * modules/mbfile: New file.
85621         * MODULES.html.sh (Extended multibyte and wide character utilities):
85622         Add mbfile.
85623
85624 2005-08-16  Bruno Haible  <bruno@clisp.org>
85625
85626         * modules/mbchar: New file.
85627         * MODULES.html.sh (Extended multibyte and wide character utilities):
85628         New section.
85629
85630 2005-08-16  Bruno Haible  <bruno@clisp.org>
85631
85632         * m4/tls.m4: New file, from GNU gettext.
85633
85634 2005-08-16  Bruno Haible  <bruno@clisp.org>
85635
85636         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85637         always.
85638         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85639
85640 2005-08-16  Bruno Haible  <bruno@clisp.org>
85641
85642         * m4/mbiter.m4: New file.
85643
85644 2005-08-16  Bruno Haible  <bruno@clisp.org>
85645
85646         * m4/mbfile.m4: New file.
85647
85648 2005-08-16  Bruno Haible  <bruno@clisp.org>
85649
85650         * m4/mbchar.m4: New file.
85651
85652 2005-08-16  Bruno Haible  <bruno@clisp.org>
85653
85654         * lib/tls.h: New file, from GNU gettext.
85655         * lib/tls.c: New file, from GNU gettext.
85656
85657 2005-08-16  Bruno Haible  <bruno@clisp.org>
85658
85659         * lib/strnlen1.h: New file.
85660         * lib/strnlen1.c: New file.
85661
85662 2005-08-16  Bruno Haible  <bruno@clisp.org>
85663
85664         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85665         (mbi_init): Update.
85666         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85667         NUL byte, not after it.
85668
85669 2005-08-16  Bruno Haible  <bruno@clisp.org>
85670
85671         * lib/strcase.h (strcasecmp): Add note in comments.
85672         * lib/strncasecmp.c: Use code from strcasecmp.c.
85673         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85674         (strcasecmp): Work correctly in multibyte locales.
85675
85676 2005-08-16  Bruno Haible  <bruno@clisp.org>
85677
85678         * lib/mbiter.h: New file.
85679
85680 2005-08-16  Bruno Haible  <bruno@clisp.org>
85681
85682         * lib/mbfile.h: New file.
85683
85684 2005-08-16  Bruno Haible  <bruno@clisp.org>
85685
85686         * lib/mbchar.h: New file.
85687         * lib/mbchar.c: New file.
85688
85689 2005-08-16  Bruno Haible  <bruno@clisp.org>
85690
85691         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85692         the valid ones. Makes the comparison operations transitive:
85693         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85694         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85695
85696 2005-08-15  Simon Josefsson  <jas@extundo.com>
85697
85698         * modules/ssize_t (License): Change to 'unlimited'.
85699
85700         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85701
85702 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85703
85704         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85705         Add comments for each pending glibc patch.
85706
85707 2005-08-15  Bruno Haible  <bruno@clisp.org>
85708
85709         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85710         __cplusplus is defined.
85711
85712 2005-08-14  Jim Meyering  <jim@meyering.net>
85713
85714         Sync from coreutils.
85715
85716         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85717         Use the hash-table-based cycle-detection code not just when
85718         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85719         Reported by James Youngman in
85720         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85721         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85722         FTS_TIGHT_CYCLE_CHECK.
85723         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85724         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85725         once again.
85726         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85727         * lib/fts.c (fd_safer): Remove decl.
85728         Include fcntl--.h rather than unistd-safer.h
85729         (fts_safe_changedir): Don't call fd_safer; no longer needed
85730         now that we include fcntl--.h.
85731
85732 2005-08-12  Simon Josefsson  <jas@extundo.com>
85733
85734         * modules/getndelim2: Use ssize_t module.
85735         * modules/getnline: Likewise.
85736         * modules/safe-read: Likewise.
85737         * modules/xreadlink: Likewise.
85738
85739         * modules/ssize_t: New file.
85740
85741 2005-08-12  Simon Josefsson  <jas@extundo.com>
85742
85743         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85744
85745 2005-08-12  Simon Josefsson  <jas@extundo.com>
85746
85747         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85748         ssize_t.
85749
85750 2005-08-12  Simon Josefsson  <jas@extundo.com>
85751
85752         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85753         readline, getdelim and check_version.
85754         (Support for systems lacking ISO C 99: Sizes of integer types):
85755         Add size_max.
85756
85757 2005-08-12  Bruno Haible  <bruno@clisp.org>
85758
85759         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85760
85761 2005-08-11  Simon Josefsson  <jas@extundo.com>
85762
85763         * modules/readline: New file.
85764
85765         * modules/strnlen (Files): Add strnlen.h.
85766
85767 2005-08-11  Simon Josefsson  <jas@extundo.com>
85768
85769         * m4/readline.m4: New file.
85770
85771 2005-08-11  Simon Josefsson  <jas@extundo.com>
85772
85773         * lib/readline.h, readline.c: New file.
85774
85775 2005-08-11  Simon Josefsson  <jas@extundo.com>
85776
85777         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85778         gl_AVOID.
85779
85780 2005-08-11  Bruno Haible  <bruno@clisp.org>
85781
85782         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85783
85784 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85785
85786         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85787
85788 2005-08-10  Simon Josefsson  <jas@extundo.com>
85789
85790         * tests/test-iconvme.c: New file.
85791
85792 2005-08-10  Simon Josefsson  <jas@extundo.com>
85793
85794         * m4/strnlen.m4: New file.
85795
85796         * m4/strndup.m4: Don't check for strnlen declaration, done in
85797         strnlen.m4.
85798
85799 2005-08-10  Simon Josefsson  <jas@extundo.com>
85800
85801         * lib/strndup.c: Use strnlen.h.
85802
85803         * lib/strnlen.h: New file.
85804
85805 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85806
85807         * README: Typos.
85808
85809 2005-08-02  Simon Josefsson  <jas@extundo.com>
85810
85811         * modules/readline: New file.
85812
85813 2005-08-02  Simon Josefsson  <jas@extundo.com>
85814
85815         * modules/getdelim: New file.
85816
85817         * modules/getline: Rewrite, don't use getndelim2.
85818
85819 2005-08-02  Simon Josefsson  <jas@extundo.com>
85820
85821         * m4/getline.m4: Separate out getdelim stuff into separate module.
85822
85823         * m4/getdelim.m4: New file.
85824
85825 2005-08-02  Simon Josefsson  <jas@extundo.com>
85826
85827         * lib/getline.h, getline.c: Rewrite.
85828
85829         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85830
85831 2005-07-31  Bruno Haible  <bruno@clisp.org>
85832
85833         * lib/lock.h (gl_lock_initializer): New macro.
85834         (gl_lock_define_initialized): Use it.
85835         (gl_rwlock_initializer): New macro.
85836         (gl_rwlock_define_initialized): Use it.
85837         (gl_recursive_lock_initializer): New macro.
85838         (gl_recursive_lock_define_initialized): Use it.
85839
85840 2005-07-30  Karl Berry  <karl@gnu.org>
85841
85842         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85843         Report from Ben Pfaff, regarding getopt.
85844
85845 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85846
85847         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85848         normal way.
85849         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85850         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85851         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85852         (gl_GETOPT): Use the new macros.  Most of the implementation
85853         is moved to the new macros.  This is for programs like Emacs
85854         that don't want all the functionality of gl_GETOPT.
85855
85856 2005-07-26  Bruno Haible  <bruno@clisp.org>
85857
85858         * m4/lock.m4: Update from GNU gettext.
85859
85860 2005-07-26  Bruno Haible  <bruno@clisp.org>
85861
85862         * lib/lock.h: Update from GNU gettext.
85863         * lib/lock.c: Update from GNU gettext.
85864
85865 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85866
85867         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85868         obsolescent AC_TRY_RUN.  Include the default includes files, for
85869         'exit'.
85870
85871 2005-07-24  Bruno Haible  <bruno@clisp.org>
85872
85873         * modules/visibility: New file.
85874         * MODULES.html.sh (Misc): Add visibility.
85875
85876 2005-07-24  Bruno Haible  <bruno@clisp.org>
85877
85878         * m4/visibility.m4: New file.
85879
85880 2005-07-24  Bruno Haible  <bruno@clisp.org>
85881
85882         * doc/visibility.texi: New file.
85883
85884 2005-07-22  Bruno Haible  <bruno@clisp.org>
85885
85886         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85887         $(ALLOCA_H), redundant through BUILT_SOURCES.
85888         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85889         redundant through BUILT_SOURCES.
85890         * modules/byteswap (Makefile.am): Remove explicit dependency on
85891         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85892         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85893         $(FNMATCH_H), redundant through BUILT_SOURCES.
85894         * modules/getopt (Makefile.am): Remove explicit dependency on
85895         $(GETOPT_H), redundant through BUILT_SOURCES.
85896         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85897         redundant through BUILT_SOURCES.
85898         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85899         redundant through BUILT_SOURCES.
85900         * modules/stdbool (Makefile.am): Remove explicit dependency on
85901         $(STDBOOL_H), redundant through BUILT_SOURCES.
85902         * modules/stdint (Makefile.am): Remove explicit dependency on
85903         $(STDINT_H), redundant through BUILT_SOURCES.
85904         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85905         Remove explicit dependency on $(SYSEXITS_H).
85906         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85907
85908 2005-07-18  Simon Josefsson  <jas@extundo.com>
85909
85910         * lib/check-version.c (check_version): Accept identical versions too.
85911
85912 2005-07-18  Bruno Haible  <bruno@clisp.org>
85913
85914         * modules/lock: New file.
85915         * MODULES.html.sh (Multithreading): New section.
85916
85917 2005-07-18  Bruno Haible  <bruno@clisp.org>
85918
85919         * m4/lock.m4: New file, from GNU gettext.
85920
85921 2005-07-18  Bruno Haible  <bruno@clisp.org>
85922
85923         * lib/lock.h: New file, from GNU gettext.
85924         * lib/lock.c: New file, from GNU gettext.
85925
85926 2005-07-18  Bruno Haible  <bruno@clisp.org>
85927
85928         * lib/lock.h (gl_once_t): New type.
85929         (gl_once_define, gl_once): New macros.
85930         * lib/lock.c (fresh_once): New variable.
85931         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85932         functions.
85933
85934 2005-07-16  Simon Josefsson  <jas@extundo.com>
85935
85936         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85937         workaround, suggested by Bruno.
85938
85939 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85940
85941         * modules/xalloc (Depends-on): Add xalloc-die.
85942         * modules/xvasprintf (Depends-on): Add xalloc-die.
85943
85944 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85945
85946         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85947         with a minor change.
85948
85949 2005-07-15  Bruno Haible  <bruno@clisp.org>
85950
85951         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85952         When using lib/poll.c, define poll as rpl_poll.
85953
85954 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85955
85956         * modules/argp (Depends-on): Remove unlocked-io.
85957
85958 2005-07-14  Derek Price  <derek@ximbiot.com>
85959
85960         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85961         for glob symlink bug.
85962
85963 2005-07-14  Bruno Haible  <bruno@clisp.org>
85964
85965         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85966         Instead, test for *_unlocked function declarations directly.
85967
85968 2005-07-11  Simon Josefsson  <jas@extundo.com>
85969
85970         * modules/size_max: New file.
85971
85972         * modules/xsize: Depend on size_max module for size_max.m4.
85973
85974 2005-07-11  Simon Josefsson  <jas@extundo.com>
85975
85976         * lib/size_max.h: New file.
85977
85978 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85979
85980         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85981         copyright symbol and the year.
85982         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85983         (version_etc_va): Use parameterized copyright notice.
85984         Reword to conform to the current GNU coding standards.
85985
85986 2005-07-11  Karl Berry  <karl@gnu.org>
85987
85988         * doc/gnulib.texi (Quoting): new node.
85989         (Initial import): more info, from Patrice.
85990
85991 2005-07-11  Bruno Haible  <bruno@clisp.org>
85992
85993         * gnulib-tool (func_usage): Document option --avoid.
85994         (Command line options): Handle --avoid.
85995         (func_acceptable): New function.
85996         (func_modules_transitive_closure): Use it.
85997
85998 2005-07-11  Bruno Haible  <bruno@clisp.org>
85999
86000         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86001         Reported by Jim Meyering.
86002
86003 2005-07-10  Bruno Haible  <bruno@clisp.org>
86004
86005         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86006         Needed when size_t is smaller than 'unsigned int'.
86007         Reported by Paul Eggert.
86008
86009 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86010
86011         * modules/argp (Depends-on): Add unlocked-io
86012
86013 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86014
86015         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86016         block of defines.
86017
86018 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86019
86020         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86021         fix now.
86022
86023 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86024         and Paul Eggert  <eggert@cs.ucla.edu>
86025
86026         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86027         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86028
86029 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86030
86031         * modules/regex (Files): Add lib/regex_internal.c,
86032         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86033         (Depends-on): Add extensions.
86034         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86035
86036 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86037
86038         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86039         pathconf.
86040         * m4/same.m4 (gl_SAME): Likewise.
86041         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86042
86043         * m4/regex.m4: Adjust to new libc regex implementation.
86044         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86045         all the .c and .h parts of (the new) regex.
86046         Quote the m4 stuff better.
86047         Check for RE_ICASE bug of old gnulib.
86048         Check for REG_STARTEND of recent libc.
86049         Rename local variables from jm_* to gl_*.
86050         Quote operand of "test -f".
86051         Say "recent enough" version of libc, not "version 2".
86052         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86053         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86054         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86055         Remove check for btowc, isascii.
86056         Require AM_LANGINFO_CODESET.
86057
86058 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86059
86060         * lib/regex.c, regex.h: Sync from libc.
86061         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86062         * lib/regexec.c:
86063         New files, synced from libc, except that regex_internal.h
86064         currently has a small porting fix.
86065
86066 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86067
86068         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86069         regex_internal.c, regexec.c.
86070         Add regex_internal.h too, but as a comment, since the libc version
86071         is currently broken in gnulib mode.
86072
86073 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86074
86075         Support programs like Emacs that use gnulib but not gettext.
86076         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86077         * modules/gettext-h: New file.
86078         * modules/gettext (Files): Remove lib/gettext.h.
86079         (Depends-on): Add gettext-h.
86080         (Makefile.am): Remove lib_SOURCES.
86081         * modules/argmatch, modules/c-stack, modules/closeout:
86082         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86083         * modules/execute, modules/file-type, modules/getaddrinfo:
86084         * modules/getopt, modules/human, modules/javacomp:
86085         * modules/javaexec, modules/mkdir-p, modules/obstack:
86086         * modules/openat, modules/pagealign_alloc, modules/pipe:
86087         * modules/quotearg, modules/regex, modules/rpmatch:
86088         * modules/unicodeio, modules/userspec, modules/version-etc:
86089         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86090         * modules/xsetenv:
86091         Depend on gettext-h, not gettext.
86092
86093 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86094
86095         * gnulib-tool (func_import): Add support for 'public domain' license.
86096         * modules/alloca, modules/atexit, modules/memmove:
86097         Now public domain, not GPL.
86098         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86099         * modules/realloc, modules/strerror, modules/strtod:
86100         Now LGPL, not GPL.
86101
86102 2005-07-05  Bruno Haible  <bruno@clisp.org>
86103
86104         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86105         autoconf CVS. Needed for mingw.
86106
86107 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86108
86109         Remove the dependency of the strftime module on the tzset module.
86110         * modules/strftime (Depends-on): Remove dependency on tzset.
86111
86112 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86113
86114         Remove the dependency of the strftime module on the tzset module.
86115         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86116         gl_FUNC_TZSET_CLOBBER.
86117
86118 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86119
86120         Remove the dependency of the strftime module on the tzset module.
86121         * lib/strftime.c (my_strftime)
86122         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86123         Copy the input structure, to work around some of the bug with
86124         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86125         Solaris releases, you should also use the tzset module, but we won't
86126         require it as a dependency any more since we don't want LGPLed code
86127         to depend on GPLed code.
86128
86129 2005-07-02  Jim Meyering  <jim@meyering.net>
86130
86131         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86132         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86133         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86134         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86135
86136 2005-07-02  Jim Meyering  <jim@meyering.net>
86137
86138         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86139
86140 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86141
86142         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86143         declares only 'struct timespec;' (!).
86144
86145 2005-07-01  Jim Meyering  <jim@meyering.net>
86146
86147         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86148         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86149         * lib/save-cwd.c, tempname.c:
86150         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86151         and don't include <sys/file.h>).
86152
86153 2005-06-29  Jim Meyering  <jim@meyering.net>
86154
86155         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86156         type name.  Use the variable name instead.
86157         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86158         Likewise.
86159
86160 2005-06-28  Simon Josefsson  <jas@extundo.com>
86161
86162         * modules/check-version (Files): Add check-version.m4.
86163
86164 2005-06-28  Simon Josefsson  <jas@extundo.com>
86165
86166         * m4/check-version.m4: New file, suggested by Jim Meyering
86167         <jim@meyering.net>.
86168
86169 2005-06-28  Simon Josefsson  <jas@extundo.com>
86170
86171         * lib/check-version.h, lib/check-version.c: New files.
86172
86173 2005-06-28  Simon Josefsson  <jas@extundo.com>
86174
86175         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86176         collision with global variable.  Better indentation.  Don't
86177         increment buffer pointer beyond buffer end.  Based on comments
86178         from Paul Eggert <eggert@cs.ucla.edu>.
86179
86180         * lib/base64.h: Indent.
86181
86182 2005-06-28  Simon Josefsson  <jas@extundo.com>
86183
86184         * doc/gnulib.texi (Library version handling): New section.
86185
86186 2005-06-28  Jim Meyering  <jim@meyering.net>
86187
86188         * check-module (find_included_lib_files): Hard-code another
86189         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86190         but modules/fts-lgpl (correctly) does not list those files.
86191
86192         * modules/canonicalize (Files): Add lib/pathmax.h.
86193
86194 2005-06-25  Simon Josefsson  <jas@extundo.com>
86195
86196         * modules/check-version: New file.
86197
86198 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86199
86200         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86201         initializer of struct addrinfo, as an indication that we don't
86202         care how many members the structure has.
86203
86204 2005-06-24  Derek Price  <derek@ximbiot.com>
86205         and Bruno Haible  <bruno@clisp.org>
86206
86207         Remove stat module & update lstat.
86208         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86209         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86210         * m4/stat.m4: Remove this file.
86211
86212 2005-06-24  Derek Price  <derek@ximbiot.com>
86213         and Bruno Haible  <bruno@clisp.org>
86214
86215         Remove stat module & update lstat.
86216         * lib/stat.c: Remove this file...
86217         (slash_aware_lstat): ...moving this content and its support...
86218         * lib/lstat.c (rpl_lstat): ...into here.
86219         * lib/lstat.h: New file.
86220
86221 2005-06-24  Derek Price  <derek@ximbiot.com>
86222         and Bruno Haible  <bruno@clisp.org>
86223
86224         Remove stat module & update lstat.
86225         * config/srclist.txt (libc sources): Remove stat.
86226
86227 2005-06-24  Derek Price  <derek@ximbiot.com>
86228         and Bruno Haible  <bruno@clisp.org>
86229
86230         Remove stat module & update lstat.
86231         * MODULES.html.sh (stat): Remove.
86232         * MODULES.html: Regenerated.
86233         * modules/lstat (Description): Correct function name.
86234         (Files): Add "lstat.h".
86235         (Depends-on): Remove stat, add xalloc, stat-macros.
86236         * modules/stat: Remove this file.
86237         (Include): Add "lstat.h", remove <sys/stat.h>.
86238
86239 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86240
86241         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86242         (ranged_convert): Don't save conversion in a temporary struct.
86243         This causes a warning with GCC 4.0.0, and anyway in the typical
86244         case it's not worth the extra 100 bytes or so of code.
86245         (ranged_convert, __mktime_internal): When calling a function via a
86246         pointer P, use P () rather than (*P) (), as we now assume C89 or
86247         better.
86248
86249 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86250
86251         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86252         "who -r" failed to give output.  Problem reported by Tim Waugh.
86253
86254         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86255         (xcalloc): Use it to avoid needless tests.
86256         Problem reported by Jim Meyering.
86257
86258 2005-06-20  Derek Price  <derek@ximbiot.com>
86259
86260         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86261         unnecessary for Autoconfs > 2.59c.
86262
86263 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86264
86265         * lib/argp.h (__option_is_short): Check upper limit of
86266         __key. Isprint() requires its argument to have the value
86267         of an unsigned char or EOF.
86268
86269 2005-06-16  Jim Meyering  <jim@meyering.net>
86270
86271         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86272         when either N or S is zero.
86273
86274 2005-06-16  Derek Price  <derek@ximbiot.com>
86275
86276         * m4/bison.m4: Declare YACC & YFLAGS precious.
86277
86278 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86279
86280         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86281         multibyte string or pattern, fall back on unibyte matching.
86282         Problem reported by James Youngman.
86283
86284 2005-06-08  Bruno Haible  <bruno@clisp.org>
86285
86286         * modules/csharpcomp: New file.
86287         * MODULES.html.sh (C#): Add csharpcomp.
86288
86289 2005-06-08  Bruno Haible  <bruno@clisp.org>
86290
86291         * m4/csharpcomp.m4: New file, from GNU gettext.
86292
86293 2005-06-08  Bruno Haible  <bruno@clisp.org>
86294
86295         * lib/csharpcomp.h: New file, from GNU gettext.
86296         * lib/csharpcomp.c: New file, from GNU gettext.
86297         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86298
86299 2005-06-08  Bruno Haible  <bruno@clisp.org>
86300
86301         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86302         warning on mingw.
86303
86304 2005-06-07  Derek Price  <derek@ximbiot.com>
86305
86306         Sync from CVS.
86307         * lib/glob_.h: Indent nested #ifdef.
86308
86309 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86310
86311         Sync from coreutils.
86312         Use "file name" when talking about file names, instead of "filename"
86313         or "path", as per the GNU coding standards.
86314         * lib/mkdir-p.c: Renamed from makepath.c.
86315         (make_dir_parents): Renamed from make_path.  All callers changed.
86316         * lib/mkdir-p.h: Likewise.  All includers changed.
86317         * lib/filenamecat.c: Renamed from path-concat.c.
86318         (file_name_concat): Renamed from path_concat.  All callers changed.
86319         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86320         * lib/filenamecat.h: Likewise.  All includers changed.
86321         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86322         in comments or local variable names.
86323         * lib/basename.c: Likewise.
86324         * lib/canonicalize.c, canonicalize.h: Likewise.
86325         * lib/dirname.c, dirname.h: Likewise.
86326         * lib/euidaccess.c: Likewise.
86327         * lib/exclude.c: Likewise
86328         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86329         * lib/fsusage.c, fsuage.h: Likewise.
86330         * lib/fts.c, fts_.h: Likewise.
86331         * lib/getcwd.c: Likewise.
86332         * lib/getloadavg.c: Likewise.
86333         * lib/mkstemp.c: Likewise.
86334         * lib/mountlist.c, mountlist.h: Likewise.
86335         * lib/openat.c, openat.h: Likewise.
86336         * lib/readlink-stub.c: Likewise.
86337         * lib/readutmp.c, readutmp.h: Likewise.
86338         * lib/rename.c: Likewise.
86339         * lib/rmdir.c: Likewise.
86340         * lib/same.c: Likewise.
86341         * lib/savedir.c: Likewise.
86342         * lib/stripslash.c: Likewise.
86343         * lib/tempname.c: Likewise.
86344         * lib/xreadlink.c: Likewise.
86345         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86346         All uses changed.
86347         * lib/exclude.h: Likewise.
86348
86349         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86350         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86351         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86352         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86353         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86354         files have been getting away with it for years (MORE/BSD 4.3
86355         is extinct now).
86356         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86357         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86358
86359         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86360         Define to 256, not 255, as per modern POSIX.
86361
86362 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86363
86364         Sync from coreutils.
86365         Use "file name" when talking about file names, instead of "filename"
86366         or "path", as per the GNU coding standards.
86367         * MODULES.html.sh: mkdir-p renamed from makepath.
86368         filenamecat renamed from path-concat.
86369         * modules/filenamecat: Renamed from modules/path-concat.
86370         (Files): filenamecat.h and filenamecat.c renamed from
86371         path-concat.h and path-concat.c.
86372         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86373         (Include): filenamecat.h, not path-concat.h.
86374         * modules/mkdir-p: Renamed from modules/makepath.
86375         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86376         makepath.c.
86377         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86378         (Include): mkdir-p.h, not makepath.h.
86379
86380 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86381
86382         Sync from coreutils.
86383         * m4/mkdir-p.m4: Renamed from makepath.m4.
86384         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86385         Rename files from makepath.c to mkdir-p.c, and from
86386         makepath.h to mkdir-p.h.
86387         * m4/filenamecat.m4: Renamed from path-concat.m4.
86388         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86389         Rename files from path-concat.c to filenamecat.c,
86390         and from path-concat.h to filenamecat.h.
86391         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86392         "file name" in local variables or comments.
86393         * m4/rename.m4: Likewise.
86394
86395 2005-06-01  Bruno Haible  <bruno@clisp.org>
86396
86397         * modules/csharpexec: New file.
86398         * MODULES.html.sh (C#): New section.
86399
86400 2005-06-01  Bruno Haible  <bruno@clisp.org>
86401
86402         * m4/csharp.m4: New file, from GNU gettext.
86403         * m4/csharpexec.m4: New file, from GNU gettext.
86404
86405 2005-06-01  Bruno Haible  <bruno@clisp.org>
86406
86407         * lib/csharpexec.h: New file, from GNU gettext.
86408         * lib/csharpexec.c: New file, from GNU gettext.
86409         * lib/csharpexec.sh.in: New file, from GNU gettext.
86410
86411 2005-05-31  Derek Price  <derek@ximbiot.com>
86412             Paul Eggert  <eggert@cs.ucla.edu>
86413
86414         Sync from cvs.
86415         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86416
86417 2005-05-31  Derek Price  <derek@ximbiot.com>
86418             Paul Eggert  <eggert@cs.ucla.edu>
86419
86420         Sync from cvs.
86421         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86422
86423 2005-05-29  Derek Price  <derek@ximbiot.com>
86424
86425         * config/srclist.txt (glob_.h, glob.c): Add these files.
86426
86427 2005-05-29  Derek Price  <derek@ximbiot.com>
86428
86429         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86430         * modules/glob: New file.
86431         * modules/getlogin_r: Add link to POSIX spec in description.
86432
86433 2005-05-29  Derek Price  <derek@ximbiot.com>
86434             Paul Eggert  <eggert@cs.ucla.edu>
86435
86436         * m4/glob.m4: New file.
86437
86438 2005-05-29  Derek Price  <derek@ximbiot.com>
86439             Paul Eggert  <eggert@cs.ucla.edu>
86440
86441         * lib/glob_.h, lib/glob.c: New files.
86442
86443 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86444
86445         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86446         * modules/fts-lgpl (Depends-on): Remove gettext.
86447
86448 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86449
86450         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86451         and don't require gt_INTTYPES_PRI.
86452
86453 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86454
86455         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86456
86457         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86458         the configuration hassle isn't worth it.
86459         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86460         (LONGEST_MODIFIER, PRIuMAX): Remove.
86461
86462 2005-05-27  Bruno Haible  <bruno@clisp.org>
86463
86464         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86465
86466 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86467
86468         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86469         _POSIX_PTHREAD_SEMANTICS for Solaris.
86470
86471 2005-05-25  Derek Price  <derek@ximbiot.com>
86472
86473         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86474
86475 2005-05-25  Derek Price  <derek@ximbiot.com>
86476             Paul Eggert  <eggert@cs.ucla.edu>
86477
86478         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86479         * lib/getlogin_r.c, getlogin_r.h: New files.
86480
86481 2005-05-25  Bruno Haible  <bruno@clisp.org>
86482             Derek Price  <derek@ximbiot.com>
86483
86484         * lib/getlogin_r.h: Simplify API documentation.
86485
86486 2005-05-23  Derek Price  <derek@ximbiot.com>
86487
86488         * modules/minmax (Files): Add m4/minmax.m4.
86489         (configure.ac): Add gl_MINMAX.
86490
86491 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86492
86493         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86494         so that unistd-safer.h (GPL'ed code) need not be included.
86495
86496 2005-05-22  Bruno Haible  <bruno@clisp.org>
86497
86498         * m4/minmax.m4: New file.
86499         Based on a patch by Derek Price <derek@ximbiot.com>.
86500
86501 2005-05-22  Bruno Haible  <bruno@clisp.org>
86502
86503         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86504         (INT64_MIN): Fix definition.
86505         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86506
86507         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86508         NEED_SIGNED_INT_TYPES.
86509
86510         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86511         HAVE_SYSTEM_INTTYPES.
86512
86513 2005-05-22  Bruno Haible  <bruno@clisp.org>
86514
86515         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86516         Also include <sys/param.h> if it defines MIN, MAX.
86517         Based on a patch by Derek Price <derek@ximbiot.com>.
86518
86519 2005-05-21  Jim Meyering  <jim@meyering.net>
86520
86521         * modules/fts (Files): Add m4/inttypes-pri.m4.
86522         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86523
86524 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86525
86526         New fts module.
86527         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86528         (setup_dir, free_dir): New functions.
86529         (enter_dir, leave_dir): Define trivial
86530         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86531         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86532         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86533         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86534         Move to fts-cycle.c.
86535         (fts_open): Use setup_dir.
86536         (fts_close): Use free_dir.
86537         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86538         This adds a label and some gotos, but the alternatives were messier.
86539         Check for memory allocation failure when entering a dir.
86540         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86541         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86542         (FTS): New member fts_cycle, that is a union that contains the
86543         old active_dir_ht and cycle_state.  All uses changed to mention
86544         fts_cycle.ht and fts_cycle.state.
86545         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86546         fts.c, with the following changes:
86547         (setup_dir, free_dir): New functions.
86548         (enter_dir): Now returns bool.  Return true if successful, false
86549         if memory exhausted.  All callers changed.
86550         Do not bother partly cleaning up on
86551         memory allocation failure; that is free_dir's job.
86552         However, free ad if hash_insert fails, to avoid memory leak.
86553         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86554         fts->fts_options to see which union member to use.
86555
86556 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86557
86558         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86559         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86560
86561 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86562
86563         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86564
86565 2005-05-20  Jim Meyering  <jim@meyering.net>
86566
86567         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86568         Now a macro, to pacify GCC.
86569
86570 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86571
86572         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86573         of -1.
86574
86575 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86576
86577         * lib/chown.c (rpl_chown): Return -1 on failure.
86578
86579 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86580
86581         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86582         Don't check for stddef.h.
86583         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86584         don't use its results.
86585         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86586         since we include them unconditionally.  Don't require
86587         AM_STDBOOL_H, since stdbool is a prerequisite.
86588         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86589         since we assume C89 or better.
86590         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86591         as we don't use their results.
86592         Don't check for fchdir, memmove, memset, strrchr, as we use
86593         them unconditionally.
86594         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86595         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86596
86597 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86598
86599         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86600         Include <stddef.h> unconditionally, since we assume C89 now.
86601         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86602         * lib/fts.c: Include fts_.h first, to check interface.
86603         Do not include intprops.h; no longer needed.
86604         Include cycle-check.h and hash.h, since fts_.h no longer does.
86605         Remove unnecessary casts of closedir to void.
86606         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86607         decide whether to decrement nlinks.
86608         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86609         (FTS): Use struct hash_table * instead of Hash_table, so that
86610         we no longer need to include hash.h here.
86611
86612 2005-05-18  Jim Meyering  <jim@meyering.net>
86613
86614         * modules/dirfd (License): Change to LGPL.  Most of the code
86615         is already in the public domain.
86616
86617 2005-05-18  Jim Meyering  <jim@meyering.net>
86618
86619         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86620         Reported by Yoann Vandoorselaere.
86621
86622 2005-05-17  Jim Meyering  <jim@meyering.net>
86623
86624         * m4/fts.m4: New file, from coreutils.
86625
86626 2005-05-17  Jim Meyering  <jim@meyering.net>
86627
86628         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86629
86630 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86631
86632         Sync from coreutils.
86633         * m4/unlinkdir.m4: New file.
86634
86635 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86636
86637         Sync from coreutils.
86638         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86639         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86640         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86641         White space changes only.
86642         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86643         special.
86644         * lib/yesno.c: Include getline.h, not ctype.h.
86645         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86646         Use getline to remove arbitrary restriction on response length.
86647
86648 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86649
86650         * config/srclist-update: Spell out "Street" in FSF postal
86651         mail address; this is the style the FSF seems to prefer.
86652
86653         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86654         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86655         this updates FSF postal mail address.
86656
86657         Sync from coreutils.
86658         * modules/unlinkdir: New file.
86659         * modules/yesno (Depends-on): Add getline.
86660         * MODULES.html.sh (File system functions): Add unlinkdir.
86661
86662 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86663
86664         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86665         lib/strsep.h:
86666         Change the initial comment to refer to GPL, not LGPL.
86667         gnulib-tool will change it to LGPL as needed.
86668
86669         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86670         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86671         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86672         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86673         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86674         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86675         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86676         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86677         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86678         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86679         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86680         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86681         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86682         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86683         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86684         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86685         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86686         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86687         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86688         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86689         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86690         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86691         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86692         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86693         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86694         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86695         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86696         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86697         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86698         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86699         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86700         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86701         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86702         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86703         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86704         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86705         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86706         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86707         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86708         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86709         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86710         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86711         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86712         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86713         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86714         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86715         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86716         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86717         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86718         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86719         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86720         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86721         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86722         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86723         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86724         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86725         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86726         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86727         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86728         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86729         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86730         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86731         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86732         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86733         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86734         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86735         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86736         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86737         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86738         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86739         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86740         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86741         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86742         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86743         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86744         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86745         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86746         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86747         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86748         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86749         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86750         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86751         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86752         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86753         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86754         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86755         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86756         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86757         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86758         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86759         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86760         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86761         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86762         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86763         lib/yesno.c, lib/yesno.h:
86764         Update FSF postal mail address.
86765
86766 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86767
86768         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86769         tests/test-memmem.c, tests/test-stpncpy.c:
86770         Update FSF postal mail address.
86771
86772 2005-05-13  Bruno Haible  <bruno@clisp.org>
86773
86774         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86775         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86776         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86777         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86778         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86779         Add support for 64-bit integers in the MSVC compiler.
86780
86781 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86782
86783         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86784
86785 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86786
86787         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86788
86789 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86790
86791         * doc/getdate.texi (General date syntax): Don't say that date
86792         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86793         Problem reported by Nic Ferrier.
86794
86795 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86796
86797         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86798         specified in ai_socktype. Fix invalid ai_protocol
86799         check. ai_protocol is usually set to 0 or depending on
86800         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86801         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86802         ai_socktype / ai_protocol in the returned addrinfo structure.
86803
86804 2005-05-10  Simon Josefsson  <jas@extundo.com>
86805
86806         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86807         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86808
86809 2005-05-10  Karl Berry  <karl@gnu.org>
86810
86811         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86812         (from http://www.gnu.org/licenses).
86813         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86814         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86815         fdl.texi suffices.
86816
86817 2005-05-10  Karl Berry  <karl@gnu.org>
86818
86819         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86820         (COPYING.DOC): remove.
86821
86822         * config/srclist-update: new FSF address.
86823
86824 2005-05-10  Derek Price  <derek@ximbiot.com>
86825
86826         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86827         possible.
86828
86829 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86830             Bruno Haible  <bruno@clisp.org>
86831
86832         * modules/inet_ntop: New file.
86833         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86834         inet_ntop.
86835
86836 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86837             Bruno Haible  <bruno@clisp.org>
86838
86839         * m4/inet_ntop.m4: New file.
86840
86841 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86842             Bruno Haible  <bruno@clisp.org>
86843
86844         * lib/inet_ntop.h: New file.
86845         * lib/inet_ntop.c: New file, from glibc with modifications.
86846
86847 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86848
86849         * modules/time_r (License): Change to LGPL.
86850         * modules/extensions (License): Change to LGPL.  Actually,
86851         the license is more permissive than that, but currently gnulib-tool
86852         doesn't know how to handle more-permissive licenses.
86853
86854         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86855         Problem reported by Dave Love.
86856
86857 2005-05-08  Jim Meyering  <jim@meyering.net>
86858
86859         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86860         blank.
86861
86862 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86863
86864         * modules/argmatch (Depends-on): Add stdbool.
86865         * modules/backupfile (Depends-on): Likewise.
86866         * modules/chdir-long (Depends-on): Likewise.
86867         * modules/closeout (Depends-on): Likewise.
86868         * modules/cycle-check (Depends-on): Likewise.
86869         * modules/dirname (Depends-on): Likewise.
86870         * modules/fnmatch (Depends-on): Likewise.
86871         * modules/fsusage (Depends-on): Likewise.
86872         * modules/fwriteerror (Depends-on): Likewise.
86873         * modules/getcwd (Depends-on): Likewise.
86874         * modules/getloadavg (Depends-on): Likewise.
86875         * modules/hard-locale (Depends-on): Likewise.
86876         * modules/makepath (Depends-on): Likewise.
86877         * modules/mountlist (Depends-on): Likewise.
86878         * modules/nanosleep (Depends-on): Likewise.
86879         * modules/posixtm (Depends-on): Likewise.
86880         * modules/quotearg (Depends-on): Likewise.
86881         * modules/readtokens (Depends-on): Likewise.
86882         * modules/readtokens0 (Depends-on): Likewise.
86883         * modules/readutmp (Depends-on): Likewise.
86884         * modules/save-cwd (Depends-on): Likewise.
86885         * modules/strftime (Depends-on): Likewise.
86886         * modules/userspec (Depends-on): Likewise.
86887         * modules/utimecmp (Depends-on): Likewise.
86888         * modules/xgetcwd (Depends-on): Likewise.
86889         * modules/xnanosleep (Depends-on): Likewise.
86890         * modules/xstrtod (Depends-on): Likewise.
86891         * modules/yesno (Depends-on): Likewise.
86892
86893 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86894
86895         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86896         needless checks.
86897
86898 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86899
86900         Merge from coreutils.  Among other things,
86901         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86902         * lib/fd-safer.c: New file.
86903         * lib/fcntl-safer.h, open-safer.c: Remove.
86904         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86905         * lib/dup-safer.c: Include unistd-safer.h first.
86906         Don't include errno.h.
86907         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86908         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86909         * lib/file-type.c: Rely on file-type.h change.
86910         * lib/getloadavg.c: Include unistd-safer.h.
86911         (getloadavg): Use safer open.
86912         * lib/getusershell.c: Include "stdio-safer.h".
86913         (getusershell): Use safer fopen.
86914         * lib/long-options.c (long_options): Use NULL rather than 0.
86915         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86916         'free'.
86917         * lib/modechange.c: Likewise.
86918         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86919         (MODE_DONE): New constant.
86920         (struct mode_change): Remove 'next' member.
86921         (make_node_op_equals): New function; like the old one of the
86922         same name, except it allocates an array.
86923         (mode_compile, mode_create_from_ref): Use it.
86924         (mode_compile): Allocate result as an array, not a linked list.
86925         Parse octal string ourself, so that we catch mistakes like "+0".
86926         (mode_adjust): Arg is an array, not a linked list.
86927         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86928         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86929         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86930         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86931         Remove.  This is now stat-macros.h's job.
86932         (talloc): Remove.  All callers replaced by xalloc, so that
86933         our invokers don't have to worry about reporting memory failures.
86934         (make_node_op_equals): Remove.
86935         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86936         New constants.
86937         (struct mode_change): Moved here from modechange.h.
86938         (mode_append_entry): Remove.
86939         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86940         apps to have incorrect behavior.  Use simpler algorithm for head
86941         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86942         Detect more invalid usages rather than having somewhat-random behavior.
86943         Don't insert an "a=" action, as that leads to incorrect behavior.
86944         (mode_compile, mode_create_from_ref): Return NULL on error instead
86945         of an enum, since now there's only one way to have an error.  All
86946         callers changed.
86947         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86948         at the correct time.  Simplify calculation of "+u" and its ilk.
86949         Don't mishandle "+X".
86950         (mode_free): Remove "register" and localize decls.
86951         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86952         (struct mode_change): Move to modechange.c; callers don't
86953         need to see this stuff.
86954         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86955         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86956         (mode_change, mode_adjust): Reflect the new signatures noted above.
86957         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86958         that might redefine system include files.
86959         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86960         (my_usleep): Use NULL rather than (void *) 0.
86961         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86962         Use siginterrupt to specify that system calls should be interrupted.
86963         (rpl_nanosleep): Move initialization of suspended closer to call of
86964         my_usleep.
86965         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86966         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86967         (desirable_utmp_entry): New function.
86968         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86969         using x2nrealloc, to simplify logic.
86970         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86971         size calculation.  Do not assume utmp file is a regular file.
86972         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86973         (READ_UTMP_CHECK_PIDS): New constant.
86974         * lib/save-cwd.c: Include unistd-safer.h.
86975         (save_cwd): Use fd_safer.
86976         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86977         [!_LIBC] Include "stat-macros.h" instead.
86978         * lib/unistd-safer.h (fd_safer): New decl.
86979
86980 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86981
86982         * modules/getloadavg (Depends-on): Add unistd-safer.
86983         * modules/getusershell (Depends-on): Add stdio-safer.
86984         * modules/lstat (Depends-on): Remove xalloc.
86985         * modules/mkstemp (Depends-on): Add stat-macros.
86986         * modules/modechange (Depends-on): Remove xstrtol.
86987         Add stat-macros, xalloc.
86988         * modules/save-cwd (Depends-on): Add unistd-safer.
86989         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86990         * modules/unistd-safer (Files): Add lib/fd-safer.c
86991         (Makefile.am): Remove lib_SOURCES.
86992
86993         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86994         Remove fcntl-safer; unistd-safer supersedes it.
86995
86996 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86997
86998         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86999         AC_HEADER_STAT.
87000         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87001         (gl_PREREQ_CHOWN): Remove.
87002         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87003         it.  Don't require AC_HEADER_STAT.
87004         (gl_PREREQ_LSTAT): Remove.
87005         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87006         Don't require AC_HEADER_STAT.
87007         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87008         (gl_PREREQ_RMDIR): Remove.
87009         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87010         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87011         the stat-macros module a prerequisite.
87012         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87013         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87014         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87015         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87016         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87017         variable names.
87018         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87019         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87020         variable prefixes.
87021         * m4/fcntl-safer.m4: Remove.
87022         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87023         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87024         Invoke gl_PREREQ_FD_SAFER.
87025         (gl_PREREQ_FD_SAFER): New macro.
87026         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87027         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87028         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87029         Remove duplicate call to AC_LIBOBJ(readutmp).
87030         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87031
87032         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87033         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87034
87035 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87036
87037         * MODULES.html.sh (Misc): Add byteswap.
87038
87039 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87040
87041         * modules/getcwd (Depends-on): Add extensions.
87042         * modules/openat (Depends-on): Likewise.
87043
87044 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87045
87046         * modules/byteswap: New file.
87047
87048 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87049
87050         * m4/byteswap.m4: New file.
87051
87052 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87053
87054         * lib/byteswap_.h: New file.
87055
87056 2005-04-25  Karl Berry  <karl@gnu.org>
87057
87058         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87059
87060 2005-04-25  Albert Chin  <china@thewrittenword.com>
87061
87062         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87063         Toolkit C bug.
87064
87065 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87066
87067         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87068         (func_ln_if_changed): Remove forcibly for no error message
87069         in case file does not exist.
87070
87071 2005-04-19  Simon Josefsson  <jas@extundo.com>
87072
87073         * gnulib-tool (Options): Make --symlink mean --symbolic.
87074
87075 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87076
87077         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87078
87079 2005-04-16  Simon Josefsson  <jas@extundo.com>
87080
87081         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87082
87083 2005-04-15  Simon Josefsson  <jas@extundo.com>
87084
87085         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87086
87087 2005-04-15  Simon Josefsson  <jas@extundo.com>
87088
87089         * gnulib-tool: Rename --symlink to --symbolic.
87090
87091 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87092
87093         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87094         symbolic links to files instead of copying/moving.  Add --aux-dir,
87095         specifying directory relative --dir where auxiliary build tools
87096         are placed.
87097
87098 2005-04-14  Bruno Haible  <bruno@clisp.org>
87099
87100         * modules/allocsa (License): Change to LGPL.
87101         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87102
87103 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87104
87105         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87106         that "UTC +1 second" continues to work.  Problem reported
87107         by Dmitry V. Levin.
87108         (relunit_snumber): New rule.
87109         (relunit): Use it.
87110
87111 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87112
87113         * lib/getdate.y (universal_time_zone_table): New constant.
87114         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87115         universal_time_zone_table.
87116         (lookup_zone): Prefer universal_time_zone_table to
87117         local_time_zone_table, so that "GMT" time stamps are allowed in
87118         London during the summer.  Problem reported by Ian Abbott.
87119
87120 2005-04-12  Jim Meyering  <jim@meyering.net>
87121
87122         * lib/human.c (humblock): Set *options even when returning due to
87123         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87124         warning from gcc-4.
87125
87126 2005-04-09  Jim Meyering  <jim@meyering.net>
87127
87128         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87129         -Wuninitialized: initialize tm0.tm_year.
87130
87131 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87132
87133         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87134         count, since there's no maximum.  All uses changed.
87135         Add member dsts_seen.
87136         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87137         not being INT_MAX.
87138         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87139         Use pc_rels_seen to decide whether a date is absolute.
87140
87141         * lib/getdate.y (number): Don't overwrite year.
87142         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87143         check.
87144
87145 2005-04-02  Simon Josefsson  <jas@extundo.com>
87146
87147         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87148         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87149
87150 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87151
87152         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87153         where no absolute path name can be longer than PATH_MAX.
87154
87155 2005-03-27  Jim Meyering  <jim@meyering.net>
87156
87157         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87158
87159 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87160
87161         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87162         "one's complement" -> "ones' complement" in comment, as per Knuth.
87163         "value of type" -> "type or expression" in comment.
87164         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87165
87166 2005-03-26  Jim Meyering  <jim@meyering.net>
87167
87168         Comment nits.
87169         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87170         Correct typos: s/or/of/.
87171
87172 2005-03-26  Jim Meyering  <jim@meyering.net>
87173
87174         * modules/check-include-files: Move to ../ and rename to...
87175         * check-module: ...this.
87176
87177 2005-03-25  Jim Meyering  <jim@meyering.net>
87178
87179         * modules/xvasprintf (Files): Add xalloc.h.
87180
87181 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87182
87183         * modules/gettext (Files): config/config.rpath ->
87184         build-aux/config.rpath
87185         * modules/iconv (Files): Likewise.
87186         Problem reported by Oskar Liljeblad.
87187
87188 2005-03-23  Jim Meyering  <jim@meyering.net>
87189
87190         * modules/check-include-files: New script to check for
87191         missing dependencies, multiple includes, etc.
87192
87193         * modules/c-strtold (Depends-on): Add xalloc.
87194         * modules/c-strtod (Depends-on): Add xalloc.
87195         * modules/hash (Depends-on): Add xalloc.
87196         (Files): Remove lib/xalloc.h.
87197
87198         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87199         * modules/userspec (Files): Add lib/inttostr.h.
87200
87201 2005-03-23  Jim Meyering  <jim@meyering.net>
87202
87203         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87204
87205 2005-03-22  Jim Meyering  <jim@meyering.net>
87206
87207         * modules/stat-macros: New module.
87208         * modules/canonicalize, modules/euidaccess, modules/file-type,
87209         * modules/filemode, modules/lchown, modules/makepath,
87210         * modules/rmdir, modules/stat: Depend on new stat-macros module
87211         rather than listing lib/stat-macros.h manually.
87212         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87213
87214 2005-03-22  Jim Meyering  <jim@meyering.net>
87215
87216         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87217
87218 2005-03-22  Bruno Haible  <bruno@clisp.org>
87219
87220         * config/srclist.txt: Replace target directory 'config' with
87221         'build-aux'.
87222         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87223         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87224         ../build-aux/.
87225
87226 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87227
87228         * modules/chdir-long (Depends-on): Add mempcpy.
87229
87230         * modules/acl, modules/backupfile, modules/c-strtod,
87231         modules/c-strtold, modules/canon-host, modules/canonicalize,
87232         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87233         modules/exclude, modules/exitfail, modules/file-type,
87234         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87235         modules/getdate, modules/getline, modules/getpagesize,
87236         modules/getpass, modules/getugroups, modules/group-member,
87237         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87238         modules/inttostr, modules/long-options, modules/makepath,
87239         modules/md5, modules/memcasecmp, modules/memcoll,
87240         modules/modechange, modules/mountlist, modules/path-concat,
87241         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87242         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87243         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87244         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87245         modules/strftime, modules/strndup, modules/strverscmp,
87246         modules/timespec, modules/unlocked-io, modules/userspec,
87247         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87248         modules/yesno:
87249         Remove lib_SOURCES line from Makefile.am section, as this is now
87250         done automatically by the corresponding Autoconf macro.
87251
87252 2005-03-21  Jim Meyering  <jim@meyering.net>
87253
87254         Changes imported from coreutils.
87255
87256         * lib/cycle-check.c: Don't include xalloc.h.
87257
87258         * lib/path-concat.c: Don't include assert.h.
87259         (path_concat): Remove assertion that would have triggered
87260         for ABASE starting with more than one slash.
87261         Reported by Andreas Schwab.
87262
87263         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87264         properly when ABASE is an absolute file name.
87265         Correct the description of this function.
87266         Include <assert.h>.
87267         Add an assertion and a test driver.
87268         This fixes a bug introduced on 2004-07-02.
87269         Andreas Schwab reported the resulting failure of cp --parents:
87270         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87271
87272 2005-03-21  Jim Meyering  <jim@meyering.net>
87273
87274         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87275         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87276
87277 2005-03-21  Jim Meyering  <jim@meyering.net>
87278         and  Paul Eggert  <eggert@cs.ucla.edu>
87279
87280         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87281         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87282         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87283         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87284         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87285         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87286         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87287         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87288         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87289         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87290         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87291         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87292         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87293         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87294         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87295         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87296         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87297         for these modules.
87298
87299 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87300
87301         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87302         (which shouldn't happen), generate nothing instead of returning 0
87303         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87304
87305 2005-03-16  Bruno Haible  <bruno@clisp.org>
87306
87307         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87308         HAVE_LONGLONG_64BIT.
87309
87310 2005-03-16  Bruno Haible  <bruno@clisp.org>
87311
87312         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87313         HAVE_LONGLONG_64BIT.
87314
87315 2005-03-16  Bruno Haible  <bruno@clisp.org>
87316
87317         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87318         HAVE_LONGLONG_64BIT.
87319
87320 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87321
87322         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87323         reliably distinguish strftime failure from empty output on POSIX
87324         hosts.
87325
87326 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87327
87328         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87329         (iconv_string): Don't guess a size-zero buffer, as that might cause
87330         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87331         result would be 'too large', where 'too large' is (heuristically)
87332         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87333         overflow concerns.  This will prevent some unwanted malloc failures
87334         when the inputs are very large.
87335
87336 2005-03-15  Karl Berry  <karl@gnu.org>
87337
87338         * config/srclist.txt (config.rpath): from gettext.
87339         * config/config.rpath: update.
87340
87341 2005-03-15  Bruno Haible  <bruno@clisp.org>
87342
87343         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87344         to 'negate'.
87345
87346         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87347         variable.
87348
87349         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87350         results.
87351
87352 2005-03-14  Simon Josefsson  <jas@extundo.com>
87353
87354         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87355         <fx@gnu.org>.
87356
87357 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87358
87359         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87360         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87361         intprops.h.
87362         * lib/strtol.c: Likewise.
87363
87364 2005-03-14  Jim Meyering  <jim@meyering.net>
87365
87366         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87367         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87368         to be nonzero so that we (and caller) can detect the difference
87369         between a valid zero-length expansion and an error return, even
87370         when the underlying strftime fails before writing anything into
87371         that location.
87372
87373 2005-03-14  Bruno Haible  <bruno@clisp.org>
87374
87375         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87376         Update from GNU gettext 0.14.3.
87377
87378 2005-03-10  Jim Meyering  <jim@meyering.net>
87379
87380         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87381
87382 2005-03-10  Jim Meyering  <jim@meyering.net>
87383
87384         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87385         so that this module works on systems without fchdir.
87386
87387 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87388
87389         Factor int-properties macros into a single file, except for
87390         glibc-related files.
87391         * lib/intprops.h: New file.
87392         * lib/getloadavg.c: Include it instead of limits.h.
87393         (INT_STRLEN_BOUND): Remove.
87394         * lib/human.c: Include intprops.h.
87395         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87396         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87397         302/1000.
87398         * lib/inttostr.h: Include intprops.h instead of limits.h.
87399         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87400         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87401         for consistency with intprops.h.
87402         (time_t_is_integer, twos_complement_arithmetic): Use them.
87403         * lib/sig2str.h: Include <signal.h>, intprops.h.
87404         (INT_STRLEN_BOUND): Remove.
87405         * lib/strftime.c (TYPE_SIGNED): Remove.
87406         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87407         * lib/strtol.c: Adjust comments to match intprops.h.
87408         * lib/userspec.c: Include intprops.h.
87409         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87410         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87411         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87412         instead of rolling our own expressions.
87413         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87414
87415         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87416         instead of int.
87417         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87418         the right thing even if adding 1900 would overflow.  Similarly
87419         for tm_mon + 1 and tm_yday + 1.
87420         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87421         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87422         (DO_SIGNED_NUMBER): New macro.
87423         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87424
87425 2005-03-07  Bruno Haible  <bruno@clisp.org>
87426
87427         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87428
87429 2005-03-07  Bruno Haible  <bruno@clisp.org>
87430
87431         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87432
87433 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87434
87435         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87436         (func_import): Only replace files via --import when they have actually
87437         changed.
87438
87439 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87440
87441         * m4/mmap-anon.m4: New file.
87442         * m4/pagealign_alloc.m4: New file.
87443
87444 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87445             Bruno Haible  <bruno@clisp.org>
87446
87447         * modules/pagealign_alloc: New file.
87448         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87449
87450 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87451             Bruno Haible  <bruno@clisp.org>
87452
87453         * lib/pagealign_alloc.h: New file.
87454         * lib/pagealign_alloc.c: New file.
87455
87456 2005-03-03  Bruno Haible  <bruno@clisp.org>
87457
87458         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87459         Use an all-permissive copyright notice, recommended by RMS.
87460
87461 2005-03-02  Bruno Haible  <bruno@clisp.org>
87462
87463         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87464         of AIX, the replacement has to be done only after <string.h> is
87465         included, therefore not in config.h. stpncpy.h does the replacement,
87466         and stpncpy.c uses it.
87467
87468 2005-03-02  Bruno Haible  <bruno@clisp.org>
87469
87470         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87471         stpncpy.c uses it.
87472
87473 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87474
87475         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87476         The workaround isn't strictly needed for POSIX conformance, and
87477         it's too much of a pain to configure and maintain.  We'll ask
87478         people to fix their kernels instead.
87479         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87480         (NANOSLEEP_BUG_WORKAROUND): Remove.
87481         (xnanosleep): Remove the workaround.
87482
87483 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87484
87485         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87486         Reported by Derek Price.
87487         (Include): Add "timespec.h".
87488
87489         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87490
87491 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87492
87493         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87494         to detect nanosleep bug.
87495
87496 2005-03-01  Bruno Haible  <bruno@clisp.org>
87497
87498         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87499
87500 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87501
87502         * modules/gethrxtime: New file.
87503         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87504         (Depends-on): Add gethrxtime.
87505         (configure.ac): Add gl_XNANOSLEEP.
87506         (Makefile.am): Remove lib_SOURCES line.
87507
87508 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87509
87510         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87511         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87512
87513 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87514
87515         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87516         * lib/timespec.h (gettime): Return void, since it always
87517         succeeds now.  All uses changed.
87518         * lib/gettime.c (gettime): Likewise.
87519         [HAVE_NANOTIME]: Prefer nanotime.
87520         Assume gettimeofday succeeds, as POSIX requires.
87521         Assime time () succeeds, since other code already does.
87522         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87523         (timespec_subtract): Remove.
87524         (NANOSLEEP_BUG_WORKAROUND): New constant.
87525         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87526         things considerably.  Use it only on GNU/Linux hosts, since the
87527         workaround shouldn't be needed elsewhere.
87528
87529 2005-02-24  Bruno Haible  <bruno@clisp.org>
87530
87531         * modules/gettext (Files): Add m4/glibc2.m4.
87532
87533 2005-02-24  Bruno Haible  <bruno@clisp.org>
87534
87535         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87536         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87537         * m4/progtest.m4:
87538         Update from GNU gettext 0.14.2.
87539         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87540
87541 2005-02-24  Bruno Haible  <bruno@clisp.org>
87542
87543         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87544         * lib/config.charset: Update from GNU gettext 0.14.2.
87545
87546 2005-02-24  Bruno Haible  <bruno@clisp.org>
87547
87548         * lib/gettext.h: Update from GNU gettext 0.14.2.
87549
87550 2005-02-23  Simon Josefsson  <jas@extundo.com>
87551
87552         * m4/iconvme.m4: New file.
87553
87554 2005-02-23  Jim Meyering  <jim@meyering.net>
87555
87556         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87557         change.
87558         Thanks to Bruno Haible for catching it.
87559
87560 2005-02-22  Simon Josefsson  <jas@extundo.com>
87561
87562         * modules/iconvme: New file.
87563
87564         * MODULES.html.sh: Add iconvme.
87565
87566 2005-02-22  Simon Josefsson  <jas@extundo.com>
87567
87568         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87569
87570 2005-02-22  Simon Josefsson  <jas@extundo.com>
87571
87572         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87573
87574 2005-02-22  Jim Meyering  <jim@meyering.net>
87575
87576         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87577         s/ifndef/ifdef/.
87578
87579 2005-02-20  Neil Conway  <neilc@samurai.com>
87580
87581         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87582         returned by OSX/Darwin if the specified buffer is not large
87583         enough for the hostname.
87584
87585 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87586
87587         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87588         pass it to _help, otherwise the latter coredumps trying to
87589         dereference state.root_argp.
87590
87591 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87592
87593         * modules/chdir-long (Depends-on): Add memrchr.
87594         * modules/memrchr (Files): Add lib/memrchr.h.
87595         (Include): "memrchr.h".
87596
87597 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87598
87599         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87600
87601 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87602
87603         * lib/memrchr.h: New file.
87604         * lib/chdir-long.c: Include it.
87605         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87606         Don't bother including stddef.h.
87607
87608 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87609
87610         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87611         inclusion.
87612         Include <sys/types.h>, for dev_t.
87613         (ME_DUMMY, ME_REMOTE): Move from here....
87614         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87615         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87616         Dmitry V. Levin.
87617         Include mountlist.h first, to test the interface.
87618
87619 2005-01-29  Bruno Haible  <bruno@clisp.org>
87620
87621         * lib/progname.c (program_name): Initialize.
87622         Needed when linking statically on MacOS X.
87623
87624 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87625
87626         Sync from coreutils.
87627         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87628         (Depends-on): Add c-strtod.
87629         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87630
87631 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87632
87633         Sync from coreutils.
87634         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87635
87636         Remove files that are specific to coreutils.
87637         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87638
87639 2005-01-28  Bruno Haible  <bruno@clisp.org>
87640
87641         * modules/javacomp: New file.
87642         * MODULES.html.sh (Java): Add javacomp.
87643
87644 2005-01-28  Bruno Haible  <bruno@clisp.org>
87645
87646         * m4/javacomp.m4: New file, from GNU gettext.
87647
87648 2005-01-28  Bruno Haible  <bruno@clisp.org>
87649
87650         * lib/javacomp.sh.in: New file, from GNU gettext.
87651         * lib/javacomp.h: New file, from GNU gettext.
87652         * lib/javacomp.c: New file, from GNU gettext.
87653
87654 2005-01-26  Simon Josefsson  <jas@extundo.com>
87655
87656         * lib/gai_strerror.c: Use GPL in header.
87657
87658 2005-01-26  Bruno Haible  <bruno@clisp.org>
87659
87660         * modules/javaexec: New file.
87661         * MODULES.html.sh (Java): Add javaexec.
87662
87663 2005-01-26  Bruno Haible  <bruno@clisp.org>
87664
87665         * m4/javaexec.m4: New file, from GNU gettext.
87666
87667 2005-01-26  Bruno Haible  <bruno@clisp.org>
87668
87669         * lib/javaexec.sh.in: New file, from GNU gettext.
87670         * lib/javaexec.h: New file, from GNU gettext.
87671         * lib/javaexec.c: New file, from GNU gettext.
87672
87673 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87674
87675         * modules/lchown (Depends-on): Remove lchown.h
87676
87677 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87678
87679         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87680         must be defined if the header file was not found, in order
87681         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87682
87683 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87684
87685         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87686         initializers for struct pentry_state.
87687         (__argp_error): Check return value of __asprintf
87688         (__argp_failure): Translate error message
87689
87690         * lib/argp-parse.c: Removed braces around the expansion of N_()
87691
87692 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87693
87694         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87695         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87696         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87697         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87698         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87699         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87700         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87701         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87702         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87703         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87704         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87705         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87706         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87707         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87708         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87709         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87710         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87711         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87712         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87713         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87714         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87715         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87716         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87717         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87718         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87719         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87720         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87721         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87722         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87723         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87724         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87725         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87726         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87727         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87728         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87729         Use an all-permissive copyright notice, recommended by RMS.
87730
87731 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87732
87733         * modules/chdir-long (Depends-on): Remove mempcpy.
87734
87735 2005-01-21  Jim Meyering  <jim@meyering.net>
87736
87737         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87738         same value as for Solaris 9.
87739
87740         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87741         component length.  This included changing the parameter to be
87742         of type `char *' rather than `char const *'.
87743         * lib/chdir-long.h (chdir_long): Update prototype.
87744
87745         * lib/openat.c (fdopendir, fstatat): New functions.
87746         * lib/openat.h: Include headers required for use of DIR and struct
87747         stat.
87748         [AT_SYMLINK_NOFOLLOW]: Define.
87749         (fdopendir, fstatat): Add prototypes.
87750
87751 2005-01-21  Bruno Haible  <bruno@clisp.org>
87752
87753         * modules/classpath: New file.
87754         * MODULES.html.sh (Java): Add classpath.
87755
87756 2005-01-21  Bruno Haible  <bruno@clisp.org>
87757
87758         * lib/classpath.h: New file, from GNU gettext.
87759         * lib/classpath.c: New file, from GNU gettext.
87760
87761 2005-01-20  Simon Josefsson  <jas@extundo.com>
87762
87763         * modules/version-etc-fsf: New file.
87764
87765 2005-01-20  Simon Josefsson  <jas@extundo.com>
87766
87767         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87768         * lib/version-etc.c: Remove version_etc_copyright.
87769         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87770         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87771
87772 2005-01-20  Simon Josefsson  <jas@extundo.com>
87773
87774         * lib/base64.h (isbase64): Add.
87775
87776         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87777         using a unsigned prototype, don't inline.
87778         (base64_decode): Use it.
87779
87780 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87781
87782         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87783         it.
87784
87785 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87786
87787         * lib/save-cwd.c (save_cwd): Remove code to support the case
87788         where fchdir is missing or flaky.
87789
87790 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87791
87792         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87793
87794 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87795
87796         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87797         AC_LIBSOURCES now does this.
87798         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87799         with new ullong_max module.
87800
87801 2005-01-19  Bruno Haible  <bruno@clisp.org>
87802
87803         * modules/sh-quote: New file.
87804         * MODULES.html.sh (Executing programs): Add sh-quote.
87805
87806 2005-01-19  Bruno Haible  <bruno@clisp.org>
87807
87808         * lib/sh-quote.h: New file, from GNU gettext.
87809         * lib/sh-quote.c: New file, from GNU gettext.
87810
87811 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87812
87813         Merge from coreutils.
87814         * m4/ullong_max.m4: New file.
87815         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87816         (gl_MACROS): Assume localeconv exists.
87817
87818 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87819
87820         Merge changes from coreutils, as described below in several
87821         changelogs dated today.
87822
87823         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87824         (O_DIRECTORY): Remove; not needed here, since "." must be
87825         a directory.  All uses removed.
87826         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87827         universal on Suns, and we also need to test for IRIX.
87828         Revamp code to use 'if' rather than '#if'.
87829         Avoid unnecessary comparison of cwd->desc to 0.
87830
87831         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87832         for known valid error numbers rather than observed invalid ones.
87833
87834 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87835
87836         * modules/ullong_max: New file.
87837
87838         * modules/chdir-long, modules/openat: New files.
87839         * modules/save-cwd (Depends-on): Depend on chdir-long.
87840         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87841
87842 2005-01-18  Jim Meyering  <jim@meyering.net>
87843
87844         Merge from coreutils.
87845         * m4/chdir-long.m4, m4/openat.m4: New files.
87846         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87847         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87848         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87849         is sane and DOES follow symlinks.  Besides, testing 20 different
87850         systems found no broken chown implementations.
87851         Prompted by a change in rsync's copy of this macro.
87852         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87853
87854         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87855
87856         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87857         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87858         NULL-means-set-to-current-time semantics.
87859         Remove temporary file immediately, rather than waiting
87860         for configure's at-exit trap code to do it.
87861
87862 2005-01-18  Jim Meyering  <jim@meyering.net>
87863
87864         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87865
87866         * lib/utimens.c (futimens): Account for the fact that futimes
87867         can also fail with errno == ENOSYS or errno == ENOENT.
87868         Patch from Dmitry V. Levin.
87869
87870         Change the name of the robust chdir function from chdir to chdir_long.
87871         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87872         (restore_cwd): Use chdir_long, not chdir.
87873         * lib/chdir-long.c: Renamed from chdir.c.
87874         * lib/chdir-long.h: Renamed from chdir.h.
87875         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87876         Hurd.
87877
87878 2005-01-18  Bruno Haible  <bruno@clisp.org>
87879
87880         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87881         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87882         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87883         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87884         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87885         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87886         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87887         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87888         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87889         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87890         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87891         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87892         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87893         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87894         Use an all-permissive copyright notice, recommended by RMS.
87895
87896 2005-01-18  Bob Proulx  <bob@proulx.com>
87897
87898         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87899         simplify offsetof() macro construct to avoid compile failure with
87900         native HP-UX 11.0 ANSI C compiler.
87901
87902 2005-01-17  Bruno Haible  <bruno@clisp.org>
87903
87904         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87905         redundant because stpncpy.m4 takes care of it.
87906
87907 2005-01-17  Bruno Haible  <bruno@clisp.org>
87908
87909         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87910
87911 2005-01-17  Bruno Haible  <bruno@clisp.org>
87912
87913         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87914         used.
87915
87916 2005-01-17  Bruno Haible  <bruno@clisp.org>
87917
87918         * lib/fwriteerror.h (fwriteerror): Change specification to include
87919         fclose.
87920         * lib/fwriteerror.c: Include <stdbool.h>.
87921         (fwriteerror): At the end, close the file stream. Record whether
87922         stdout was already closed.
87923
87924 2005-01-17  Bruno Haible  <bruno@clisp.org>
87925
87926         * lib/execute.c (environ): Declare if needed.
87927         * lib/pipe.c (environ): Likewise.
87928         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87929
87930 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87931
87932         * modules/argp: Depend on vsnprintf
87933
87934 2005-01-10  Jim Meyering  <jim@meyering.net>
87935
87936         * modules/closeout (Depends-on): Add atexit.
87937
87938 2005-01-06  Bruno Haible  <bruno@clisp.org>
87939
87940         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87941
87942 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87943
87944         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87945         definitions to be after all include files, to avoid collisions.
87946         Problem reported by Bob Proulx.
87947
87948 2005-01-04  Jim Meyering  <jim@meyering.net>
87949
87950         Changes imported from coreutils.
87951         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87952         as the mkstemp template, use a temporary directory and an
87953         8.3-friendly template to avoid trouble on systems like DJGPP.
87954         Reported by Juan M. Guerrero via Stepan Kasal.
87955         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87956         close. Remove the temporary directory right away, rather than waiting
87957         for configure's at-exit trap code to do it.
87958         Suggestion from Stepan Kasal.
87959
87960 2005-01-01  Simon Josefsson  <jas@extundo.com>
87961
87962         * gnulib-tool: Print #include directives when --import'ing.
87963
87964 2004-12-28  Simon Josefsson  <jas@extundo.com>
87965
87966         * tests/test-base64.c: Include required header files.  Remove
87967         unused variables.
87968
87969 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87970
87971         * modules/error (Depends-on): Remove gettext.
87972
87973 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87974
87975         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87976         not needed.  This removes a dependency on the gettext module.
87977         [defined _LIBC]: Do not include <libintl.h>; not needed.
87978
87979 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87980
87981         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87982         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87983
87984 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87985
87986         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87987         HAVE_DECL_STRTOLD.
87988
87989 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87990
87991         * modules/getdate (Depends-on): Remove alloca-opt.
87992
87993 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87994
87995         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87996
87997 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87998
87999         * lib/argp-parse.c: Include <stddef.h>.
88000         (alignof, alignto): New macros.
88001         (parser_init): Don't assume that void * is aligned sufficiently
88002         for struct option.
88003
88004         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88005         need to extend the stack.
88006         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88007         large.
88008
88009 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88010
88011         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88012
88013 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88014
88015         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88016         (2004-10-24) change.  Apparently this was a false alarm.
88017
88018         * modules/getdate: Depend on alloca-opt, not alloca.
88019
88020 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88021
88022         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88023         Remove now-obsolete comment about AIX.
88024         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88025         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88026         (YYMAXDEPTH): New macro.
88027
88028 2004-12-18  Simon Josefsson  <jas@extundo.com>
88029
88030         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88031
88032 2004-12-18  Bruno Haible  <bruno@clisp.org>
88033
88034         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88035
88036 2004-12-18  Bruno Haible  <bruno@clisp.org>
88037
88038         * lib/fatal-signal.c (fatal_signals): Make non-const.
88039         (init_fatal_signals): New function.
88040         (uninstall_handlers, install_handlers): Ignore signals that were set to
88041         SIG_IGN.
88042         (at_fatal_signal): Call init_fatal_signals.
88043         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88044         SIG_IGN.
88045         Reported by Paul Eggert.
88046
88047 2004-12-18  Bruno Haible  <bruno@clisp.org>
88048
88049         * doc/alloca.texi: New file.
88050         * doc/alloca-opt.texi: New file.
88051
88052 2004-12-17  Jim Meyering  <jim@meyering.net>
88053
88054         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88055         Otherwise, install-sh could exit with improper exit status when
88056         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88057
88058 2004-12-16  Simon Josefsson  <jas@extundo.com>
88059
88060         * tests/test-base64.c: Add license.
88061
88062 2004-12-15  Stepan Kasal  <address@hidden>
88063
88064         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88065
88066 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88067
88068         * modules/getcwd (Files): Add m4/d-ino.m4.
88069         Suggested by Mark D. Baushke.
88070
88071 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88072
88073         * lib/getdate.y (textint): New member "negative".
88074         (time_zone_hhmm): New function.
88075         Expect 14 shift-reduce conflicts, not 13.
88076         (o_colon_minutes): New rule.
88077         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88078         (yylex): Set the "negative" member of signed numbers.
88079
88080 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88081
88082         * doc/getdate.texi (Time of day items, Time zone items):
88083         Describe new formats +00:00, UTC+00:00.
88084
88085 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88086
88087         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88088         spurious "-l"s.  Problem reported by Stepan Kasal.
88089
88090 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88091
88092         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88093         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88094
88095 2004-12-04  Simon Josefsson  <jas@extundo.com>
88096
88097         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88098         Vandoorselaere <yoann@prelude-ids.org>.
88099
88100 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88101
88102         Changes imported from coreutils.
88103         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88104         exist.
88105         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88106
88107 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88108
88109         Changes imported from coreutils.
88110         * lib/hard-locale.c: Assume <locale.h> exists.
88111         Include "strdup.h".
88112         (GLIBC_VERSION): New macro.
88113         (hard_locale): Assume setlocale exists.
88114         Rewrite to avoid #ifdef.
88115         Use strdup rather than malloc + strcpy.
88116         * lib/human.c: Assume <locale.h> exists.
88117         (human_readable): Assume localeconv exists.
88118
88119 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88120
88121         * modules/hard-locale (Depends-on): Add strdup.
88122
88123 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88124
88125         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88126         convert T2, not T.  (Imported from libc.)
88127
88128 2004-11-30  Simon Josefsson  <jas@extundo.com>
88129
88130         * modules/restrict (License): Change to LGPL.
88131
88132 2004-11-30  Simon Josefsson  <jas@extundo.com>
88133
88134         * m4/restrict.m4: Add copyright and copying conditions.
88135
88136 2004-11-30  Simon Josefsson  <jas@extundo.com>
88137
88138         * m4/base64.m4: New file.
88139
88140 2004-11-30  Simon Josefsson  <jas@extundo.com>
88141
88142         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88143         base64.
88144
88145         * tests/test-base64.c: New file.
88146
88147         * modules/base64: New file.
88148
88149 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88150
88151         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88152         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88153
88154         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88155
88156 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88157
88158         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88159         (__getcwd.c): Don't restore errno; glibc doesn't.
88160         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88161         first, falling back to our code only if its results look suspicious.
88162         Ensure that the resulting buffer is only as large as necessary.
88163
88164         * lib/readutmp.c: Include readutmp.h first.
88165         Include <errno.h>, since readutmp.h no longer does that.
88166         * lib/readutmp.h: Don't include <errno.h>,
88167         <sys/param.h>, <time.h>; not needed to establish interface.
88168         (errno): Remove decl.
88169         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88170         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88171         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88172
88173 2004-11-28  Simon Josefsson  <jas@extundo.com>
88174
88175         * lib/base64.h, base64.c: New file.
88176
88177 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88178
88179         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88180
88181 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88182
88183         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88184         (Depends-on): Remove pathmax, same.  Add mempcpy.
88185         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88186         (Makefile.am): Append getcwd.h to lib_SOURCES.
88187         (Include): Add getcwd.h.
88188         (Maintainer): Change from Jim Meyering to "all, glibc",
88189         since getdate now uses intended-for-glibc code.
88190         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88191         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88192
88193 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88194
88195         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88196         HP's ANSI C compiler.
88197         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88198         Declaring int functions causes warnings on some modern systems and
88199         shouldn't be needed to compile on ancient ones.
88200         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88201         defined.
88202
88203         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88204         with the following changes.
88205         (__set_errno): Parenthesize properly.
88206         Include <stdbool.h>.
88207         (MIN, MAX, MATCHING_INO): New macros.
88208         (__getcwd): Define with prototype, not K&R form.
88209         Use heuristics to allocate default buffer on stack if possible.
88210         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88211         behavior, and to avoid the PATH_MAX limit when computing
88212         ../../../../...
88213         Use MATCHING_INO to compare inode number to file.
88214         Check for arithmetic overflow in size calculations.
88215         Fix bug in reallocation of dot array that caused getcwd to fail
88216         on directories nested deeper than 75.
88217         Be more careful about saving errno on error.
88218         Do not use realloc; use only free+malloc, as this is a bit
88219         more flexible and avoids a needless copy operation.
88220         Do not inspect st_dev and st_ino for symbolic links; POSIX
88221         doesn't specify the latter.
88222         Check for closedir errors.
88223         Avoid needless casts.
88224         Use "#ifdef weak_alias" around weak_alias, to be like other
88225         glibc code.
88226         The following changes to getcwd.c have effect only when used in
88227         gnulib; they have no effect inside glibc proper.
88228         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88229         as alloca isn't used.
88230         (alloca, __alloca): Likewise.
88231         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88232         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88233         unconditionally, as gnulib assumes C89 or better.
88234         Do not include <sys/param.h>.
88235         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88236         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88237         better.
88238         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88239         Include <dirent.h> in a way that is compatible with modern Autoconf.
88240         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88241         New macros, if not already defined.
88242         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88243         Use "_LIBC", not "defined _LIBC", for consistency.
88244         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88245         a mempcpy module.
88246         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88247         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88248         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88249         credit only to Jim Meyering and adjust the copyright dates.
88250         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88251         <stdlib.h>, <unistd.h>, "pathmax.h".
88252         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88253         (INITIAL_BUFFER_SIZE): Remove.
88254         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88255
88256 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88257
88258         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88259         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88260         Use the _ONCE methods, for efficiency.
88261         Check for fcntl.h.  In test program, include <errno.h>
88262         and <fcntl.h> if available.  Remove old K&R cruft from
88263         test program.  Check for common errors in GNU/Linux,
88264         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88265         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88266         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88267         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88268         name accordingly.
88269         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88270         accommodate new getcwd.c.
88271         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88272         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88273         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88274         that's all we need now.
88275
88276 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88277
88278         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88279         argp-parse.c depends on getopt internals, that means we should
88280         always use our getopt, to be on the safe side.
88281         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88282         order not to spoil the result of an eventual previous invocation
88283         of gl_GETOPT_SUBSTITUTE.
88284
88285 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88286
88287         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88288         redefinition warnings. To avoid them, include the defines
88289         in `#if !defined __need_getopt ... #endif'. The only place
88290         where __getopt_argv_const is used is in definitions
88291         of getopt_long and getopt_long_only below, which are as well
88292         protected by `#ifndef __need_getopt'.
88293         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88294         __need_getopt after including <stdio.h> and <unistd.h> These
88295         headers might have defined it.
88296
88297 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88298
88299         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88300
88301 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88302
88303         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88304         (futimens): New function, which uses futimes if available.
88305         (futimens, utimens): Support timespec==NULL, with same semantics
88306         as utime and utimens.
88307         * lib/utimens.h (futimens): New decl.
88308
88309 2004-11-23  Jim Meyering  <jim@meyering.net>
88310
88311         * lib/getopt_.h: Remove trailing blanks.
88312
88313 2004-11-23  Jim Meyering  <jim@meyering.net>
88314
88315         * lib/__fpending.c: Add comment.
88316
88317 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88318
88319         * modules/canonicalize (Depends-on): Add xreadlink.
88320         Problem reported by James Youngman.
88321
88322 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88323
88324         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88325         New macros.
88326         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88327         optopt): Use them instead of invoking ## directly; otherwise, the
88328         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88329
88330 2004-11-19  Bruno Haible  <bruno@clisp.org>
88331
88332         * lib/strtok_r.c: Move comments from here...
88333         * lib/strtok_r.h: ... to here.
88334
88335 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88336
88337         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88338         implementations that mishandle size_t overflow.
88339
88340 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88341
88342         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88343         might fail.  Problem reported by Yoann Vandoorselaere.
88344         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88345         implementations that mishandle size_t overflow.
88346
88347 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88348
88349         * modules/canon-host (Depends-on): Add strdup.
88350
88351 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88352
88353         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88354
88355 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88356
88357         * lib/canon-host.c: Include "strdup.h".
88358         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88359         Use strdup instead of malloc/strcpy to duplicate strings.
88360
88361         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88362         (human_space_before_unit): New constant.
88363         * lib/human.c (human_readable): Support it.
88364
88365         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88366         (xgetcwd): Set errno correctly when failing.
88367         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88368         the failure is actually due to a PATH_MAX problem.
88369
88370         Further getopt changes to make it more likely that glibc will
88371         buy the changes back.
88372         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88373         (getopt): Use it, so to preserve glibc semantic
88374         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88375         when compiling for libc.
88376         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88377         (getopt_long, getopt_long_only): Use it.
88378
88379         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88380         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88381         (getopt): Argv is now char * const *, as per standard.
88382         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88383         not char *__getopt_argv_const *.
88384         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88385         _getopt_long_only_r): Likewise.
88386         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88387         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88388         _getopt_long_r, _getopt_long_only_r): Likewise.
88389         * lib/getopt_.h (__getopt_argv_const): Remove.
88390         (getopt): Argv is now char * const *, as per standard.
88391
88392         * lib/getdate.y (tORDINAL): New token.
88393         (day, relunit): Allow it for relative times.
88394         (relative_time_table): Use tORDINAL for ordinals.
88395
88396 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88397
88398         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88399         Document that "second" isn't allowed as an ordinal number.
88400
88401 2004-11-16  Jim Meyering  <jim@meyering.net>
88402
88403         * modules/closeout (Depends-on): Add fpending.
88404
88405 2004-11-15  Jim Meyering  <jim@meyering.net>
88406
88407         * lib/closeout.c: Include "__fpending.h" once again.
88408         Include <stdbool.h>.
88409         (close_stdout): Don't fail just because stdout was closed initially,
88410         since some programs don't write to stdout in the normal course of
88411         operation (other than --version and --help), and we don't want this
88412         function to make e.g. `touch file >&-' fail.
88413         But do fail if it was closed and someone has tried to write to it.
88414         E.g., `printf foo >&-' must fail.
88415
88416 2004-11-13  Jim Meyering  <jim@meyering.net>
88417
88418         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88419
88420 2004-11-12  Simon Josefsson  <jas@extundo.com>
88421
88422         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88423         small doc fix is still pending.
88424
88425 2004-11-11  Simon Josefsson  <jas@extundo.com>
88426
88427         * modules/strtok_r: New file.
88428
88429         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88430         strtok_r.
88431
88432 2004-11-11  Simon Josefsson  <jas@extundo.com>
88433
88434         * m4/strtok_r.m4: New file.
88435
88436         * m4/getopt.m4: Replace opterr.
88437
88438 2004-11-11  Simon Josefsson  <jas@extundo.com>
88439
88440         * lib/strtok_r.h, strtok_r.c: New file.
88441
88442 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88443
88444         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88445         of replacing opterr, getopt, etc.  This should handle the
88446         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88447
88448 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88449
88450         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88451         we can stop lying to compilers about the constness of argv when we
88452         are compiled outside glibc.
88453         (getopt, getopt_long, getopt_long_only): Use it.
88454         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88455         _getopt_internal, getopt): Likewise.
88456         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88457         _getopt_long_only_r): Likewise.
88458         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88459         _getopt_long_r, _getopt_long_only_r): Likewise.
88460
88461         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88462         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88463         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88464         the other external symbols.
88465         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88466         declaration, since the above renaming now works around collisions.
88467
88468 2004-11-11  Jim Meyering  <jim@meyering.net>
88469
88470         * lib/linebreak.c: Remove trailing blanks.
88471         * lib/alloca_.h: Likewise.
88472         * lib/acosl.c: Likewise.
88473         * lib/euidaccess.c: Likewise.
88474         * lib/allocsa.h: Likewise.
88475
88476 2004-11-10  Simon Josefsson  <jas@extundo.com>
88477
88478         * m4/getaddrinfo.m4: New file.
88479
88480 2004-11-10  Simon Josefsson  <jas@extundo.com>
88481
88482         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88483
88484 2004-11-10  Simon Josefsson  <jas@extundo.com>
88485
88486         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88487         getaddrinfo.
88488
88489         * modules/getaddrinfo: New file.
88490
88491 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88492
88493         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88494
88495 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88496
88497         * lib/mktime.c (SHR): New macro, which is a portable
88498         substitute for >> that should work even on Crays.
88499         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88500         Problem reported by Mark D. Baushke in
88501         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88502         * lib/getdate.y (SHR): Likewise.
88503         (tm_diff): Use it.
88504         * lib/strftime.c (SHR): Likewise.
88505         (tm_diff): Use it.
88506         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88507         quote_these_too, so that right shifts are well defined.  All uses
88508         changed.
88509
88510 2004-11-10  Jim Meyering  <jim@meyering.net>
88511
88512         Ensure that no close failure goes unreported.
88513         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88514         return early when it seems there's nothing to flush.
88515         Don't include __fpending.h.
88516
88517 2004-11-10  Jim Meyering  <jim@meyering.net>
88518
88519         * modules/closeout (Depends-on): Remove fpending.
88520
88521 2004-11-10  Jim Meyering  <jim@meyering.net>
88522
88523         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88524
88525 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88526
88527         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88528         gl_FUNC_STRFTIME.
88529         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88530         and AC_REQUIRE when possible, to avoid duplicate checks.
88531         Check for <wchar.h>.
88532
88533 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88534
88535         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88536
88537 2004-11-09  Bruno Haible  <bruno@clisp.org>
88538
88539         * m4/sockpfaf.m4: New file.
88540
88541 2004-11-05  Bruno Haible  <bruno@clisp.org>
88542
88543         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88544         Reported by Mark D. Baushke <mdb@cvshome.org>.
88545
88546 2004-11-04  Bruno Haible  <bruno@clisp.org>
88547
88548         2004-09-11  Bruno Haible  <bruno@clisp.org>
88549                 * allocsa.valgrind: New file.
88550         2004-02-06  Bruno Haible  <bruno@clisp.org>
88551                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88552                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88553                 Reported by Christopher Seip <chris.seip@hp.com>.
88554
88555 2004-11-04  Bruno Haible  <bruno@clisp.org>
88556
88557         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88558         (Makefile.am): Distribute it.
88559
88560 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88561
88562         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88563         with errno == ERANGE if the buffer is too small.
88564         Problem reported by Mark D. Baushke.
88565
88566 2004-11-03  Albert Chin  <china@thewrittenword.com>
88567             Paul Eggert  <eggert@cs.ucla.edu>
88568
88569         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88570         equivalent, substitute $ac_type for equivalent type rather than
88571         blindly using uint32_t *always* which won't work if uint32_t is not
88572         available.  Define _UINT32_T to work around typedef of uint32_t if
88573         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88574         2.5.1.
88575
88576 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88577
88578         * m4/jm-macros.m4: Sync from coreutils.
88579         (gl_MACROS): Check for mbrlen, for pathchk.
88580         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88581
88582 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88583
88584         * lib/xreadlink.c (MAXSIZE): New macro.
88585         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88586         size does not exceed MAXSIZE.  Avoid cast.
88587         As suggested by Mark D. Baushke in
88588         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88589         if readlink fails with buffer size just under MAXSIZE, try again
88590         with MAXSIZE.
88591
88592 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88593
88594         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88595
88596 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88597         and  Paul Eggert  <eggert@cs.ucla.edu>
88598
88599         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88600         (get_date): Overparenthesize to avoid GCC warning.
88601
88602 2004-11-02  Bruno Haible  <bruno@clisp.org>
88603
88604         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88605         returns void.
88606
88607 2004-11-02  Bruno Haible  <bruno@clisp.org>
88608
88609         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88610         function returns void.
88611
88612 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88613
88614         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88615         fflush_unlocked, flockfile, funlockfile, funlockfile,
88616         fputs_unlocked, putc_unlocked.
88617
88618 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88619
88620         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88621         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88622         already declared.
88623
88624 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88625
88626         * modules/getdate (Files): Add doc/getdate.texi.
88627         (Depends-on): Add setenv, xalloc.
88628
88629 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88630
88631         * lib/getdate.y: Add support for TZ="foo" within a date string.
88632         Fix some bugs near time_t boundaries.  Reject dates with
88633         out-of-range components, e.g., "Sept 31".
88634         Include <stdlib.h>, "setenv.h", "xalloc.h".
88635         (ISDIGIT_LOCALE): Remove; unused.
88636         Note that the TZ and time functions used here are not reentrant.
88637         (mktime_ok, get_tz): New functions.
88638         (TZBUFSIZE): New constant.
88639         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88640         This requires that we sometimes generate our own TZ="XXX..." setting.
88641
88642 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88643
88644         * doc/getdate.texi: New file, from coreutils with modifications for
88645         the new TZ parsing.
88646
88647 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88648
88649         * lib/mktime.c (not_equal_tm): Remove redundant check.
88650
88651 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88652
88653         * modules/regex (lib_SOURCES): Add regex.c.
88654         Reported by James Youngman in
88655         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88656
88657 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88658
88659         * lib/getdate.y: Use Bison 1.875 features, and some minor
88660         code cleanups.  This change does not affect semantics.
88661         Don't include <stdlib.h>; no longer needed.
88662         Don't include unlocked-io.h; only the "#if TEST" code uses
88663         stdio, and performance isn't crucial there.
88664         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88665         Bison 1.875 features as described below.
88666         All uses of "PC." replaced by "pc->".
88667         (YYSTYPE): Add a forward declaration.
88668         (yylex, yyerror): Use full prototypes in forward decls.
88669         Use "%pure-parser" rather than obsolescent "%pure_parser".
88670         Use %parse-param and %lex-param instead of obsolescent
88671         YYPARSE_PARAM and YYLEX_PARAM.
88672         (meridian_table, month_and_day_table, time_units_table,
88673         relative_time_table, time_zone_table, military_table,
88674         lookup_zone, lookup_word, get_date):
88675         Use NULL instead of 0 where appropriate.
88676         (to_hour): Avoid abort (), to avoid a dependency on
88677         stdlib.h.
88678         (yyerror, yylex): Now accepts parser_control * arg.
88679         (main) [TEST]: Use '\0' rather than 0 for char.
88680
88681 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88682
88683         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88684
88685 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88686
88687         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88688         It's now the caller's responsibility to handle the case where
88689         !HAVE_GETPAGESIZE && !defined getpagesize.
88690
88691         * lib/mktime.c (leapyear): Arg is long int, not int.
88692
88693 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88694
88695         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88696
88697 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88698
88699         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88700         missing.  Problem reported by James Youngman.
88701
88702 2004-10-16  Simon Josefsson  <jas@extundo.com>
88703
88704         * gnulib-tool: Fix comments.  Fix parse problem.
88705         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88706
88707 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88708
88709         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88710         implementation of getopt_long.  Problem reported by Alexander Taler in:
88711         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88712
88713 2004-10-15  Bruno Haible  <bruno@clisp.org>
88714
88715         * gnulib-tool: Untabify. Initialize supplied_libname.
88716         (func_usage): More homogenous output.
88717         (func_modules_transitive_closure, func_modules_to_filelist,
88718         func_emit_lib_Makefile_am): New functions.
88719         (func_import): New function, extracted from big case statement. Use
88720         func_get_license, func_modules_transitive_closure,
88721         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88722         opt_lgpl. Don't use test -a, as it's not portable.
88723         (func_create_testdir): Use func_modules_transitive_closure,
88724         func_modules_to_filelist, func_emit_lib_Makefile_am.
88725
88726 2004-10-15  Bruno Haible  <bruno@clisp.org>
88727
88728         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88729
88730 2004-10-15  Bruno Haible  <bruno@clisp.org>
88731
88732         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88733         the portions belonging to each module.
88734         Suggested by Derek Robert Price <derek@ximbiot.com>.
88735
88736 2004-10-12  Simon Josefsson  <jas@extundo.com>
88737
88738         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88739         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88740         to real functions.
88741
88742 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88743
88744         * modules/vsnprintf: New file.
88745
88746 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88747
88748         * m4/vsnprintf.m4: New file.
88749
88750 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88751
88752         * lib/vsnprintf.h: New file.
88753         * lib/vsnprintf.c: New file.
88754
88755 2004-10-11  Bruno Haible  <bruno@clisp.org>
88756
88757         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88758         vsnprintf.
88759
88760 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88761
88762         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88763
88764 2004-10-07  Bruno Haible  <bruno@clisp.org>
88765
88766         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88767         fits into the provided buffer.
88768
88769 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88770
88771         * lib/diacrit.c, diacrit.h: Add GPL notice.
88772
88773         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88774         notice.
88775         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88776         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88777         This avoids a potential constant-folding bug.
88778
88779 2004-10-05  Bruno Haible  <bruno@clisp.org>
88780
88781         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88782         for the declaration of strsep.
88783
88784 2004-10-05  Bruno Haible  <bruno@clisp.org>
88785
88786         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88787
88788 2004-10-04  Simon Josefsson  <jas@extundo.com>
88789
88790         * modules/memmem: New file.
88791         * tests/test-memmem.c: New file.
88792         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88793
88794 2004-10-04  Simon Josefsson  <jas@extundo.com>
88795
88796         * m4/memmem.m4: New file.
88797
88798 2004-10-04  Simon Josefsson  <jas@extundo.com>
88799
88800         * lib/memmem.h: New file.
88801         * lib/memmem.c: New file, taken from glibc.
88802
88803 2004-10-04  Simon Josefsson  <jas@extundo.com>
88804
88805         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88806         '#ifdef USE_UNLOCKED_IO'.
88807
88808 2004-10-04  Simon Josefsson  <jas@extundo.com>
88809
88810         * config/srclist.txt: Add memmem from glibc.
88811
88812 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88813
88814         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88815
88816         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88817         modules/exclude, modules/getdate, modules/getline,
88818         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88819         modules/getusershell, modules/linebuffer, modules/md5,
88820         modules/mountlist, modules/posixtm, modules/readtokens,
88821         modules/readutmp, modules/regex, modules/sha1,
88822         modules/version-etc, modules/yesno:
88823         Remove dependency on unlocked-io.
88824
88825 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88826
88827         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88828
88829         * m4/unlocked-io.m4: Add copyright notice.
88830         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88831
88832 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88833
88834         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88835         * lib/xmalloc.c (xmemdup): Likewise.
88836         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88837         XFREE): Remove these long-obsolescent macros.
88838         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88839         * lib/xstrdup.c: Remove.
88840
88841         * lib/regex.c (re_comp): Cast gettext return value to char *,
88842         Problem reported by Martin Neitzel via Mark D. Baushke.
88843
88844 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88845
88846         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88847         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88848         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88849         regex.c, sha1.c, version-etc.c, yesno.c:
88850         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88851         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88852         the includer's responsibility.
88853
88854         Sync from coreutils.
88855
88856         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88857         points to the start of a string, as the C Standard says the
88858         resulting behavior is undefined.
88859
88860         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88861         simple -> simple_backups, numbered_existing ->
88862         numbered_existing_backups, numbered -> numbered_backups
88863         to avoid shadowing problems.  All uses changed.
88864         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88865         * lib/backupfile.c (check_extension, numbered_backup):
88866         Rename locals to avoid shadowing 'basename'.
88867         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88868         once.
88869
88870         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88871         * lib/.cvsignore: Add getopt.h.
88872
88873 2004-10-04  Bruno Haible  <bruno@clisp.org>
88874
88875         * modules/README: New file.
88876         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88877         not a module.
88878
88879 2004-10-02  Jim Meyering  <jim@meyering.net>
88880
88881         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88882
88883 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88884
88885         * modules/strsep: New file.
88886
88887 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88888
88889         * m4/strsep.m4: New file.
88890
88891 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88892
88893         * lib/strsep.h: New file.
88894         * lib/strsep.c: New file.
88895
88896 2004-10-01  Simon Josefsson  <jas@extundo.com>
88897
88898         * lib/snprintf.c (snprintf): Handle size==0.
88899
88900 2004-10-01  Simon Josefsson  <jas@extundo.com>
88901             Bruno Haible  <bruno@clisp.org>
88902
88903         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88904         (snprintf): Declare 'args'.
88905
88906 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88907
88908         * lib/snprintf.c: Remove comments as to why each header is needed.
88909
88910 2004-10-01  Bruno Haible  <bruno@clisp.org>
88911
88912         * MODULES.html.sh: Add strsep.
88913
88914 2004-09-30  Simon Josefsson  <jas@extundo.com>
88915
88916         * modules/snprintf: New file.
88917
88918 2004-09-30  Simon Josefsson  <jas@extundo.com>
88919
88920         * m4/snprintf.m4: New file.
88921
88922 2004-09-30  Simon Josefsson  <jas@extundo.com>
88923
88924         * lib/snprintf.h, lib/snprintf.c: New files.
88925
88926 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88927
88928         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88929         (hol_entry_help): Never translate an empty string.
88930         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88931         * lib/argp.h (OPTION_NO_TRANS): New option.
88932
88933 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88934
88935         * modules/argp (Maintainer): Replace Simon Josefsson
88936         by Sergey Poznyakoff.
88937
88938 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88939
88940         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88941         changes merged back into glibc.
88942
88943 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88944
88945         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88946
88947 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88948
88949         * lib/xvasprintf.c: Include xalloc.h.
88950         (xvasprintf): Use xalloc_die, not xmalloc_die.
88951
88952 2004-09-29  Bruno Haible  <bruno@clisp.org>
88953
88954         * modules/alloca-opt: New file, derived from modules/alloca.
88955         * modules/allocsa: Depend on alloca-opt instead of alloca.
88956         * modules/setenv: Likewise.
88957         * modules/vasnprintf: Likewise.
88958         * MODULES.html.sh: Add alloca-opt.
88959
88960 2004-09-28  Simon Josefsson  <jas@extundo.com>
88961
88962         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88963         LGPL, and to replace license template from GPL to LGPL.
88964
88965 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88966
88967         * modules/dummy: Change license to LGPL.
88968
88969 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88970
88971         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88972
88973 2004-09-24  Simon Josefsson  <jas@extundo.com>
88974
88975         * modules/minmax (License): Change from GPL to LGPL.
88976
88977 2004-09-23  Simon Josefsson  <jas@extundo.com>
88978
88979         * gnulib-tool (--import): Typo.
88980
88981 2004-09-23  Simon Josefsson  <jas@extundo.com>
88982
88983         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88984
88985 2004-09-22  Bruno Haible  <bruno@clisp.org>
88986
88987         * modules/*: Add 'License' field.
88988         * gnulib-tool: Accept --extract-license option.
88989         (func_get_license): New function.
88990
88991 2004-09-21  Bruno Haible  <bruno@clisp.org>
88992
88993         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88994         Reported by Simon Josefsson.
88995
88996 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88997
88998         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88999         gl_AC_TYPE_LONG_LONG.
89000
89001 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89002
89003         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89004
89005 2004-09-18  Simon Josefsson  <jas@extundo.com>
89006         and  Paul Eggert  <eggert@cs.ucla.edu>
89007
89008         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89009         calls with autoreconf.  Define GL_LIB.
89010
89011 2004-09-14  Karl Berry  <karl@gnu.org>
89012
89013         * config/srclist.txt: unsync setenv.c, sigh.
89014
89015 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89016
89017         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89018         Problem reported by Bruno Haible in:
89019         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89020
89021 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89022
89023         * config/srclist.txt: Comment out argp-pvh.c.
89024
89025 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89026
89027         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89028         in case some system header has #define'd it.  Problem reported by
89029         Soeren D. Schulze in
89030         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89031
89032 2004-09-09  Karl Berry  <karl@gnu.org>
89033
89034         * regex.[ch]: delete from the root.  These were supposed to be
89035                 synced with emacs cvs, but this has not happened for about
89036                 a year, and anyway nothing else uses emacs regex.[ch].
89037                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89038                 lib/regex[.ch] is untouched.
89039
89040 2004-09-09  Bruno Haible  <bruno@clisp.org>
89041
89042         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89043
89044 2004-09-09  Bruno Haible  <bruno@clisp.org>
89045
89046         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89047         modifications.
89048         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89049
89050 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89051
89052         * modules/xvasprintf: New file.
89053         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89054
89055 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89056
89057         * lib/xvasprintf.h: New file.
89058         * lib/xvasprintf.c: New file.
89059         * lib/xasprintf.c: New file.
89060
89061 2004-09-08  Bruno Haible  <bruno@clisp.org>
89062
89063         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89064
89065 2004-09-08  Bruno Haible  <bruno@clisp.org>
89066
89067         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89068         length is > INT_MAX.
89069         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89070         more.
89071
89072 2004-09-08  Bruno Haible  <bruno@clisp.org>
89073
89074         * lib/stdint_.h: New file, taken from GNU clisp.
89075
89076 2004-09-08  Bruno Haible  <bruno@clisp.org>
89077             Oskar Liljeblad  <oskar@osk.mine.nu>
89078
89079         * modules/stdint: New file.
89080         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89081
89082 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89083
89084         Import from coreutils.
89085         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89086         strings on unbounded length.  alloca's performance benefits aren't
89087         that important here.
89088         (V_STRDUP): Remove.
89089         (parse_with_separator): New function, with most of the internals
89090         of the old parse_user_spec.  Allow user to omit both user and group,
89091         for compatibility with FreeBSD.
89092         Clone only the user name, not the entire spec.
89093         Do not set *uid, *gid unless entirely successful.
89094         Avoid memory leak in some failing cases.
89095         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89096         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89097         (parse_user_spec): Rewrite to use parse_with_separator.
89098
89099 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89100
89101         * modules/userspec: Don't depend on alloca.
89102
89103 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89104
89105         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89106
89107 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89108
89109         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89110         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89111         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89112
89113 2004-08-16  Simon Josefsson  <jas@extundo.com>
89114
89115         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89116         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89117         Add --dry-run for --import.
89118         Let user provided command line parameters override configure.ac
89119         settings.
89120
89121 2004-08-12  Simon Josefsson  <jas@extundo.com>
89122
89123         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89124         as discussed with Paul Eggert in threads rooted at
89125         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89126         and
89127         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89128         Before, the test was empty, and relied on ELIDE_CODE in source
89129         code.)
89130         (gl_PREREQ_GETOPT): New macro.
89131         (gl_GETOPT): Use them.
89132
89133 2004-08-12  Simon Josefsson  <jas@extundo.com>
89134
89135         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89136         * lib/getopt_.h: Renamed from getopt.h.
89137
89138 2004-08-12  Simon Josefsson  <jas@extundo.com>
89139
89140         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89141         Change default library name from libfoo to libgnu.
89142         Now, if you have a configure.ac that says:
89143                 gl_SOURCE_BASE(gl)
89144                 gl_M4_BASE(gl/m4)
89145                 gl_MODULES(error getopt etcetera)
89146                 gl_INIT
89147         you can import all you need by running:
89148                 ../gnulib/gnulib-tool --import
89149
89150         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89151         (Makefile.am): Rewrite, use logic from argz.
89152         (Include): Use <getopt.h> instead of "getopt.h".
89153
89154 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89155
89156         * modules/argp (Files): Add m4/unlocked-io.m4.
89157         (Depends-on): Add extensions.
89158
89159 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89160
89161         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89162         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89163         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89164         Check for program_invocation_name, program_invocation_short_name,
89165         flockfile, funlockfile, features.h, _getopt_long_only_r.
89166
89167 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89168
89169         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89170         its complicated substitute.
89171         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89172         and program_invocation_name.
89173         (__argp_basename) [!_LIBC]: Remove; the only use was
89174         replaced by its body.
89175         (__argp_short_program_name): Change condition from
89176         !defined __argp_short_program_name to
89177         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89178         to match argp-namefrob.h.
89179         (__argp_failure): Don't assume strerror_r returns char *.
89180         * lib/argp-parse.c (N_): Define unconditionally.
89181         (argp_default_options): Fill out initializers with 0 to avoid
89182         gcc warnings.
89183
89184 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89185
89186         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89187         getopt1.c.
89188
89189 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89190
89191         Merge from coreutils.
89192
89193         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89194
89195         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89196         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89197
89198 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89199
89200         Merge from coreutils.
89201
89202         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89203         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89204         for Reliant Unix 5.43.
89205
89206         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89207         (union fooround): Use uintmax_t, not long int.
89208         The rest is a merge from libc:
89209         [defined _LIBC]: Include <shlib-compat.h>.
89210         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89211
89212         * lib/settime.c (settime): Recode to avoid warning with
89213         Sun Forte C 6U2.
89214
89215         * lib/strverscmp.c: Convert to UTF-8.
89216
89217 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89218
89219         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89220         m4/uintmax_t.m4.
89221
89222 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89223
89224         * modules/xalloc-die: New file.
89225         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89226
89227         * modules/md5 (Files): Add m4/uint32_t.m4.
89228         * modules/sha1: Renamed from modules/sha.
89229         (Files):
89230         Rename lib/sha.h to lib/sha1.h.
89231         Rename lib/sha.c to lib/sha1.c.
89232         Rename m4/sha.m4 to m4/sha1.m4.
89233         (lib_SOURCES): Likewise.
89234         (configure.ac): Rename gl_SHA to gl_SHA1.
89235         (Include): sha.h -> sha1.h.
89236
89237 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89238
89239         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89240         * m4/sha1.m4: Renamed from sha.m4.
89241         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89242
89243 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89244
89245         * lib/obstack.h (obstack_empty_p):
89246         Don't assume that chunk->contents is suitably aligned.
89247         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89248         Likewise. Problem reported by Benno in
89249         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89250
89251         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89252         readable.  This could be improved further but it'd take some work.
89253
89254 2004-08-08  Simon Josefsson  <jas@extundo.com>
89255
89256         * modules/xgethostname (Depends-on): Remove exit and error (not
89257         used).
89258
89259         * modules/getpass-gnu: Add getpass.h.
89260         (Depends-on): Add stdbool.
89261         * modules/getpass: Add getpass.h.
89262
89263 2004-08-08  Simon Josefsson  <jas@extundo.com>
89264
89265         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89266         Check getpass declaration.
89267
89268 2004-08-08  Simon Josefsson  <jas@extundo.com>
89269
89270         * lib/xgethostname.c: Don't include error.h (not used).
89271
89272         * lib/getpass.h: Add.
89273         * lib/getpass.c: Include getpass.h first.
89274
89275 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89276
89277         * lib/xalloc-die.c: New file.
89278         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89279         All uses removed.
89280         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89281         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89282         xalloc-die.c.
89283         (_, N_, xalloc_die): Move to xalloc-die.c.
89284         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89285         so that we needn't mess with xalloc_msg_memory_exhausted.
89286
89287         * lib/sha1.h: Renamed from sha.h.
89288         (SHA1_H): Renamed from _SHA_H.
89289         (sha1_ctx): Renamed from sha_ctx.
89290         (sha1_init_ctx): Renamed from sha_init_ctx.
89291         (sha1_process_block): Renamed from sha_process_block.
89292         (sha1_process_bytes): Renamed from sha_process_bytes.
89293         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89294         (sha1_read_ctx): Renamed from sha_read_ctx.
89295         (sha1_stream): Renamed from sha_stream.
89296         (sha1_buffer): Renamed from sha_buffer.
89297         * lib/sha1.c: Likewise; renamed from sha.c.
89298         Do not include <sys/types.h>.
89299         Include <stddef.h> rather than <stdlib.h>.
89300
89301 2004-08-08  Bruno Haible  <bruno@clisp.org>
89302
89303         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89304         FILESYSTEM_PREFIX_LEN.
89305         * lib/progreloc.c: Likewise.
89306         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89307
89308 2004-08-06  Simon Josefsson  <jas@extundo.com>
89309
89310         * modules/progname (Depends-on): Don't depend on stdbool.
89311
89312 2004-08-06  Simon Josefsson  <jas@extundo.com>
89313
89314         * modules/getsubopt: New file.
89315         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89316         getsubopt.
89317
89318 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89319
89320         More merge from coreutils.
89321
89322         * m4/utimens.m4, m4/utimecmp.m4: New files.
89323         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89324         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89325         prereq.m4, sha.m4: Import changes from coreutils.
89326
89327 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89328
89329         More merge from coreutils.
89330         * modules/raise, modules/readtokens0, modules/utimens:
89331         * modules/utimecmp, module/xnanosleep: New files.
89332         * modules/strftime: Add lib/strftime.h.
89333         Change include from <time.h> to "strftime.h".
89334         * modules/yesno: Add lib/yesno.h.
89335         * modules/backupfile: Remove lib/addext.c.
89336         * modules/euidaccess: Add stat-macros.h.
89337         * modules/canonicalize, modules/euidaccess,
89338         modules/filemode, modules/lchown, modules/makepath,
89339         modules/rmdir, modules/stat: Likewise.
89340
89341 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89342
89343         Merge from tar.
89344         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89345         SIZE_MAX is a valid preprocessor constant.
89346         (__argp_basename): Change from "#ifndef _LIBC"
89347         to "#ifndef __argp_short_program_name", so that
89348         we don't compile these functions for tar.
89349
89350         More merges from coreutils.
89351         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89352         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89353         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89354         * lib/addext.c: Remove; no longer needed.
89355         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89356         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89357         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89358         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89359         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89360         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89361         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89362         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89363         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89364         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89365         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89366         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89367         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89368         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89369         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89370         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89371         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89372         Import changes from coreutils.
89373
89374 2004-08-05  Simon Josefsson  <jas@extundo.com>
89375
89376         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89377
89378 2004-08-05  Simon Josefsson  <jas@extundo.com>
89379
89380         * m4/getsubopt.m4: New file.
89381
89382 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89383
89384         Merge from coreutils.
89385
89386         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89387         * m4/getcwd-path-max.m4: New files.
89388
89389         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89390         FILESYSTEM_PREFIX_LEN ->
89391         FILE_SYSTEM_PREFIX_LEN.
89392         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89393         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89394         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89395         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89396
89397         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89398         prerequisite modules now handle the DOS stuff.
89399         Don't check for unistd.h.
89400
89401 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89402
89403         Merge from coreutils.
89404
89405         * lib/.gdb-history: Remove; this doesn't belong here.
89406
89407         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89408         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89409         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89410         * lib/getcwd.c: New files.
89411
89412         * lib/dirname.h: Include <stdbool.h>.
89413         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89414         for consistency with POSIX terminology.  All uses changed.
89415         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89416         (strip_trailing_slashes): Use bool for booleans.
89417         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89418
89419         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89420         sometimes returns a positive errno value even when it succeeds.
89421         (print_errno_message) [!LIBC]: Fall back on strerror if
89422         __strerror_r fails.
89423
89424         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89425         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89426         (longest_relative_suffix): New function.
89427         (path_concat): Use it.  Assume first argument is not NULL.
89428         Port to DOS.  Omit redundant separators.
89429         Report an error instead of returning NULL.
89430         Use mempcpy instead of memcpy.
89431         (xpath_concat): Remove: not declared or used.
89432
89433         * lib/same.h: Include <stdbool.h>
89434         (same_name): Return bool, not int.
89435         * lib/same.c (same_name): Likewise.
89436         (errno): Don't declare; we assume C89 or better now.
89437
89438         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89439         if not already defined.
89440
89441         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89442         * lib/dup-safer.c (errno): Likewise.
89443
89444 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89445
89446         Merge from coreutils.
89447         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89448         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89449         * modules/path-concat: Don't depend on strdup.
89450
89451 2004-08-03  Simon Josefsson  <jas@extundo.com>
89452
89453         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89454         * lib/progname.h: Don't include stdbool.h.
89455
89456 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89457
89458         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89459         * MODULES.html.sh (func_all_modules): Remove fatal.
89460
89461 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89462
89463         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89464
89465 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89466
89467         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89468         working.
89469
89470 2004-08-02  Simon Josefsson  <jas@extundo.com>
89471
89472         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89473         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89474         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89475
89476 2004-08-01  Simon Josefsson  <jas@extundo.com>
89477
89478         * lib/xgetdomainname.c: Include stdlib.h, for free().
89479
89480 2004-07-19  Bruno Haible  <bruno@clisp.org>
89481
89482         * MODULES.html.sh (func_all_modules): Add dummy.
89483
89484 2004-07-16  Simon Josefsson  <jas@extundo.com>
89485
89486         * modules/dummy: New file.
89487
89488 2004-07-16  Simon Josefsson  <jas@extundo.com>
89489
89490         * lib/dummy.c: New file.
89491
89492 2004-07-16  Bruno Haible  <bruno@clisp.org>
89493
89494         * lib/backupfile.h: Add extern "C" for C++.
89495         * lib/closeout.h: Likewise.
89496         * lib/copy-file.h: Likewise.
89497         * lib/findprog.h: Likewise.
89498         * lib/full-write.h: Likewise.
89499         * lib/pathname.h: Likewise.
89500         * lib/progname.h: Likewise.
89501         * lib/stpcpy.h: Likewise.
89502         * lib/stpncpy.h: Likewise.
89503         * lib/strcase.h: Likewise.
89504         * lib/strstr.h: Likewise.
89505         * lib/xalloc.h: Likewise.
89506
89507         * lib/mbswidth.h: Add extern "C" for C++.
89508         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89509
89510 2004-07-13  Robert Millan  <robertmh@gnu.org>
89511
89512         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89513
89514 2004-07-09  Simon Josefsson  <jas@extundo.com>
89515
89516         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89517         failed without this.)
89518
89519 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89520
89521         * modules/chown (Files): Add lib/fchown-stub.c, since
89522         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89523
89524 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89525
89526         * lib/fchown-stub.c: New file.
89527
89528 2004-06-24  Jim Meyering  <jim@meyering.net>
89529
89530         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89531
89532 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89533
89534         * modules/argz: Omit "#include".
89535
89536         * MODULES.html.sh (func_all_modules): Add calloc, to match
89537         2004-06-01 addition of calloc module.
89538
89539 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89540
89541         * m4/argz.m4: New file, which is autoupdated from libtool.
89542
89543 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89544
89545         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89546         libtool.
89547
89548 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89549
89550         * config/srclist-update: Don't insist on "USA." before the
89551         close-comment, as libtool omits the period and puts the */ on a
89552         separate line.
89553         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89554         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89555
89556 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89557
89558         * modules/argz: New file.
89559         * MODULES.html.sh (func_all_modules): Add argz.
89560
89561 2004-06-12  Jim Meyering  <jim@meyering.net>
89562         and  Paul Eggert  <eggert@cs.ucla.edu>
89563
89564         * modules/hash (Files): Add lib/xalloc.h.
89565         * modules/pipe (Depends-on): Add wait-process.
89566         * modules/stat (Depends-on): Add xalloc.
89567         * modules/userspec (Files): Add lib/userspec.h.
89568         * modules/xstrto
89569
89570         Upgrade from gettext-0.13.
89571         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89572         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89573         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89574
89575 2004-06-10  Jim Meyering  <jim@meyering.net>
89576
89577         * lib/calloc.c: New file.
89578
89579 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89580
89581         * lib/getdate.y (yylex): Allow space between sign and number.
89582         Problem reported by Dan Jacobson.
89583
89584 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89585
89586         Merge from coreutils CVS.
89587
89588         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89589         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89590         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89591         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89592         xstrtol.m4: Fix copyright date and/or serial number.
89593
89594         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89595         See if we need an fchown replacement.
89596         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89597         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89598         and use the replacement function if we detect either defect.
89599
89600         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89601         gl_UTIMECMP.
89602
89603 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89604         and  Jim Meyering  <jim@meyering.net>
89605
89606         Merge from coreutils CVS.
89607
89608         * lib/stat-macros.h: New file, with contents from file-type.h
89609         and coreutils' system.h.
89610         * lib/file-type.c: Include "stat-macros.h".
89611         * lib/file-type.h (file_type): Move all macro definitions to new file,
89612         stat-macros.h.
89613
89614         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89615         Wrap old code with this conditional.
89616         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89617         function that does not dereference symlinks.
89618         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89619
89620         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89621         dependency problems.
89622         (xreadlink): Accept new arg SIZE, for efficiency.
89623         All decls and uses changed.
89624         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89625
89626         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89627         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89628
89629         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89630         sysexits.h.
89631
89632 2004-06-01  Jim Meyering  <jim@meyering.net>
89633
89634         * m4/calloc.m4: New file.
89635
89636 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89637
89638         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89639         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89640         Also, fix a typo in a diagnostic.
89641
89642 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89643
89644         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89645         or AC_FUNC_REALLOC.
89646
89647 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89648
89649         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89650         macros to be defined.
89651         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89652         the allocator returns NULL because the requested size is zero.
89653
89654 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89655
89656         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89657         var.  Add comment explaining why libc still defines it.  This
89658         merges the following patch from glibc:
89659         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89660
89661 2004-05-20  Andreas Schwab  <schwab@suse.de>
89662
89663         * m4/free.m4: Replace free if it not known to work, not the other
89664         way round.
89665
89666 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89667
89668         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89669         present in glibc since revision 1.1 of this file.
89670         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89671         obstack_alignment_mask, obstack_alloc, obstack_base,
89672         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89673         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89674         obstack_grow0, obstack_init, obstack_int_grow,
89675         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89676         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89677         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89678         nonexistent functions.
89679
89680 2004-05-18  Karl Berry  <karl@gnu.org>
89681
89682         * config/srclist.txt: break link for vasnprintf.c.
89683
89684 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89685
89686         Port obstack to the AS/400, where pointers are 16 bytes wide and
89687         you cannot cast an integer to a valid pointer.  This patch is
89688         currently waiting to be integrated into glibc; see
89689         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89690
89691         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89692         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89693         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89694         (struct obstack): temp member is now a union of a pointer and
89695         an integer, instead of an integer.  All integer uses changed.
89696         This does not affect the physical layout of struct obstack,
89697         except on hosts (like the AS/400) where the size or alignment of
89698         void * is greater than that of ptrdiff_t.
89699         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89700         __STDC__)]: Store temporary in pointer member of union, not
89701         integer member.
89702         * lib/obstack.c: Include <stddef.h>, for offsetof.
89703         (struct fooalign): Remove; it doesn't need a name.
89704         (union fooround): Change double to long double, and add void *.
89705         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89706         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89707         not a macro.  Hence the values are always int; so remove all
89708         casts-to-int in uses.
89709
89710 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89711
89712         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89713         we can get this patch merged into glibc.
89714
89715 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89716             Paul Eggert  <eggert@cs.ucla.edu>
89717
89718         * m4/argp: Depend on alloca.
89719
89720 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89721             Paul Eggert  <eggert@cs.ucla.edu>
89722
89723         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89724         freecoding.
89725
89726 2004-05-17  Bruno Haible  <bruno@clisp.org>
89727
89728         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89729         precision that consists of a '.' followed by an empty digit string.
89730         Patch by Tor Lillqvist <tml@iki.fi>.
89731
89732 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89733
89734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89735         for backward compatibility with older code.  We need our own
89736         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89737         it under some other name, and our alloca.h will define it.
89738
89739 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89740             Derek Price  <derek@ximbiot.com>
89741
89742         * lib/alloca.c: Include <alloca.h>, to get our interface.
89743         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89744         include <alloca.h> first.  Use C89 prototype for alloca; this
89745         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89746         Use #elif for simplicity, since we can assume C89 now.
89747         Don't try to source the system alloca.h since it will not be found
89748         and to prevent recursively including its replacement.
89749         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89750         * lib/regex.c: Likewise.
89751
89752 2004-05-16  Derek Price  <derek@ximbiot.com>
89753             Paul Eggert  <eggert@cs.ucla.edu>
89754
89755         getline cleanup.  This changes the getndelim2 API: both order of
89756         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89757         no delimiter).
89758
89759         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89760         interface does that.
89761         (getline): Always use getdelim, so that we don't have two
89762         copies of this code.
89763         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89764         if available.
89765         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89766         (GETNDELIM2_MAXIMUM): New macro.
89767         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89768         instead of the old practice of delim2==0.  All callers changed.
89769         Return -1 on overflow, instead of returning junk.
89770         Do not set *linesize unless allocation succeeds.
89771         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89772         that we include sys/types.h.
89773         * lib/getnline.h: Likewise.
89774         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89775         (getndelim2): Reorder arguments.
89776         * lib/getnline.c (getnline, getndelim):
89777         Don't discard the NMAX argument.
89778         (getnline): Invoke getndelim, to avoid code duplication.
89779         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89780         of (size_t) -1 by callers of the getnline family.
89781
89782 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89783
89784         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89785         Check for gettimeofday.
89786         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89787         Check for settimeofday, stime.
89788
89789 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89790
89791         * lib/nanosleep.c (suspended): Change its type from int to
89792         sig_atomic_t volatile.
89793         (first_call): Make it private to rpl_nanosleep, and have it
89794         be zero initially as that's a bit faster.
89795         (my_usleep): Round up fractional times instead of truncating them,
89796         as this is the usual meaning for 'sleep'.
89797
89798         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89799         doesn't work.
89800         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89801         (ENOSYS): Define if not defined.
89802         (settime): Fall back on stime if it exists and settimeofday fails.
89803         But don't bother with fallbacks if a method fails with errno == EPERM.
89804
89805 2004-05-11  Jim Meyering  <jim@meyering.net>
89806
89807         Prior to this change, the save_cwd caller required read access to the
89808         current directory on most systems (ones with the fchdir function).
89809
89810         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89811         fails, try write-only, and finally, resort to using xgetcwd.
89812
89813 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89814
89815         * lib/obstack.c, obstack.h: Import changes from libc.
89816
89817 2004-04-28  Bruno Haible  <bruno@clisp.org>
89818
89819         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89820         also implicitly appends .exe to executables.
89821         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89822         accepts Windows pathnames.
89823         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89824         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89825         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89826         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89827         Reported by Derek Robert Price <derek@ximbiot.com>.
89828
89829 2004-04-21  Karl Berry  <karl@gnu.org>
89830
89831         * config/srclist.txt (localcharset.c): break sync.
89832
89833 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89834
89835         * m4/host-os.m4: Add a copyright notice.
89836
89837 2004-04-20  Jim Meyering  <jim@meyering.net>
89838
89839         Change UTILS_ to gl_ in AC_DEFINE'd names.
89840         Change utils_- and jm_-prefixed variables, too.
89841         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89842         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89844
89845         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89846         Don't emit trailing blanks.
89847         Also rename jm_-prefixed variables to have gl_ prefix.
89848
89849         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89850         Also rename jm_-prefixed variables to have gl_ prefix.
89851
89852         * m4/jm-macros.m4: Reflect the renamings.
89853         * m4/prereq.m4: Likewise.
89854
89855 2004-04-20  Jim Meyering  <jim@meyering.net>
89856
89857         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89858         memory.
89859
89860 2004-04-20  Jim Meyering  <jim@meyering.net>
89861             Bruno Haible  <bruno@clisp.org>
89862
89863         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89864         memory when realloc fails.
89865
89866 2004-04-19  Jim Meyering  <jim@meyering.net>
89867
89868         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89869         now that readutmp.c may call `free (0)'.
89870
89871 2004-04-19  Bruno Haible  <bruno@clisp.org>
89872
89873         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89874         * m4/inttypes_h.m4: Likewise.
89875         * m4/stdint_h.m4: Likewise.
89876         * m4/intmax_t.m4: Likewise.
89877         * m4/uintmax_t.m4: Likewise.
89878
89879 2004-04-18  Jim Meyering  <jim@meyering.net>
89880
89881         * m4/prereq.m4: Don't forbid jm_ prefix.
89882
89883         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89884         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89885         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89886         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89887         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89888         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89889         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89890         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89891         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89892         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89893         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89894         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89895         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89896         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89897         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89898         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89899         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89900         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89901         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89902
89903 2004-04-18  Jim Meyering  <jim@meyering.net>
89904
89905         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89906         failure, don't leak memory and do call END_UTMP_ENT.
89907
89908 2004-04-16  Jim Meyering  <jim@meyering.net>
89909
89910         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89911         coreutils' stat program.
89912         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89913
89914 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89915
89916         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89917         C89.
89918         (CHAR_BIT): Remove, since we assume C89.
89919         Include <stdint.h> if available, as per current Autoconf CVS advice.
89920
89921 2004-03-31  Jim Meyering  <jim@meyering.net>
89922
89923         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89924         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89925         * m4/xalloc.m4: Likewise.
89926
89927 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89928
89929         Merge from coreutils.
89930
89931         * m4/inttostr.m4: New file.
89932         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89933         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89934         Require gl_CLOCK_TIME.
89935         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89936
89937 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89938
89939         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89940         not bool, to be more consistent with Unix conventions.
89941         Suggested by Bruno Haible.
89942
89943         Merge from coreutils.
89944
89945         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89946         * lib/umaxtostr.c: New files.
89947
89948         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89949         the usual <time.h> dance.
89950         (get_date): Change signature to support fractional time stamps.
89951         All callers changed.
89952         * lib/getdate.y: Include "getdate.h" first, as we can now
89953         assume C89 and don't need to worry about 'const'.
89954         Similarly, include "unlocked-io.h" near start, not in middle.
89955         Include <limits.h>.
89956         (textint.value): Use long int rather than int.
89957         (textint.digits): Use size_t rather than int.
89958         (BILLION, LOG10_BILLION): New constants.
89959         (parser_control): New member rel_ns.  Members day_ordinal,
89960         time_zone, month, day, hour, minutes, rel_year, rel_month,
89961         rel_day, rel_hour, rel_minutes, rel_seconds
89962         are now long int, not int.  Member seconds is now struct timespec,
89963         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89964         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89965         not int.
89966         (%union.intval): Now long int, not int.
89967         New member timespec.
89968         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89969         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89970         (spec): Now is a timespec or an item list.
89971         (timespec, items): New nonterminals.
89972         (time, rel, relunit, number, get_date):
89973         Add support for fractional seconds.
89974         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89975         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89976         (to_hour): First arg is now long int, not int.
89977         (to_year): Returns long int, not int.
89978         Don't treat year -70 like 70.
89979         (tm_diff): Returns long int, not int.
89980         (lookup_word): Use bool instead of int when appropriate.
89981         (yylex): Use size_t for count, not int.
89982         Detect overflow when parsing large integer constants.
89983         Add support for fractions.
89984         (get_date): Make pointers 'const' if possible.
89985         Use more-portable code to detect integer overflow.
89986         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89987         Don't use ctime; it's not reliable if the year has >4 digits.
89988
89989         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89990         This is for compatibility with BSD.
89991
89992         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89993         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89994         From coreutils' system.h.
89995
89996         * lib/userspec.c: Don't include "posixver.h".
89997         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89998         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89999         compatible extension.  Simplify code by removing a boolean int
90000         that was always nonzero if a string was nonnull.
90001
90002 2004-03-30  Jim Meyering  <jim@meyering.net>
90003
90004         Merge from coreutils.
90005
90006         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90007         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90008         on some systems one must include <grp.h> before it.
90009         Reported by Christian Krackowizer.
90010
90011 2004-03-30  Jim Meyering  <jim@meyering.net>
90012
90013         Merge from coreutils.
90014
90015         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90016
90017         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90018         an empty input stream.
90019
90020         * lib/readtokens.c: Include <stdbool.h>.
90021         (readtoken): Use `size_t' rather than int/long.
90022         All callers adjusted.
90023         Use `bool' rather than `int' where appropriate.
90024         Use memset rather than an explicit loop.
90025         Use x2nrealloc rather than xrealloc.
90026         Allow the use of `\0' as a delimiter.
90027         (readtokens): Likewise.
90028         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90029
90030 2004-03-30  Jim Meyering  <jim@meyering.net>
90031
90032         * m4/realloc.m4: Remove file, since now it does no more than
90033         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90034         the `configure.ac' section of module/realloc.
90035         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90036
90037 2004-03-30  Bruno Haible  <bruno@clisp.org>
90038
90039         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90040         nonnull.
90041
90042 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90043
90044         Merge changes to getloadavg.c from coreutils and Emacs.
90045
90046         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90047         Define to an expression, not to the empty string.
90048         Include cloexec.h and xalloc.h.
90049         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90050         Use set_cloexec_flag rather than rolling our own.
90051         * lib/cloexec.c, lib/cloexec.h: New files.
90052
90053 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90054
90055         * m4/cloexec.m4: New file.
90056
90057 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90058
90059         * lib/getopt.h: Sync with libc CVS.
90060
90061 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90062             Bruno Haible  <bruno@clisp.org>
90063
90064         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90065         mbswidth.
90066
90067 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90068             Bruno Haible  <bruno@clisp.org>
90069
90070         * lib/mbswidth.h: Include <wchar.h> only if
90071         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90072         <wchar.h>.
90073         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90074
90075 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90076
90077         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90078         Sync with libc CVS.
90079         * lib/getopt_int.h: New file, also synced from libc.
90080
90081 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90082
90083         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90084         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90085         Bring back getopt.c, getopt.h, getopt1.c.
90086
90087 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90088
90089         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90090         All uses changed.  Check for sa_sigaction member; this fixes
90091         a bug first reported by Jason Andrade in
90092         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90093
90094 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90095
90096         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90097         '#if' expressions.  Unlike the code it replaces, it does not
90098         depend on (defined _SC_PAGESIZE).  However, it does depend on
90099         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90100         first reported by Jason Andrade in
90101         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90102
90103 2004-02-25  Simon Josefsson  <jas@extundo.com>
90104
90105         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90106
90107 2004-02-25  Simon Josefsson  <jas@extundo.com>
90108
90109         * lib/strdup.h: New file.
90110         * lib/strdup.c: Include it.
90111         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90112         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90113
90114 2004-02-23  Karl Berry  <karl@gnu.org>
90115
90116         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90117         (from fencepost.gnu.org:/gd/gnuorg).
90118
90119 2004-02-23  Karl Berry  <karl@gnu.org>
90120
90121         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90122         * config/srclist.txt: add maintain/standards documents.
90123
90124 2004-02-18  Bruno Haible  <bruno@clisp.org>
90125
90126         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90127         Reported by Derek Robert Price <derek@ximbiot.com>.
90128
90129 2004-02-16  Karl Berry  <karl@gnu.org>
90130
90131         * config/mkinstalldirs, install-sh: update from automake.
90132
90133 2004-02-06  Karl Berry  <karl@gnu.org>
90134
90135         * m4/po.m4: update from gettext 0.14.1.
90136
90137 2004-02-06  Karl Berry  <karl@gnu.org>
90138
90139         * lib/config.charset: update from gettext 0.14.1.
90140
90141 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90142
90143         Add comments and code, prompted by suggestions from Bruno Haible
90144         for sh-quote.
90145         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90146         describing the enum quoting_style values.
90147         * lib/quotearg.c (quotearg_alloc): New function.
90148         (quotearg_buffer_restyled): Treat lone { and } as special.
90149         Treat = as special.  Work around bug with older shells
90150         that "see" a '\' that is really the 2nd byte of a multibyte char.
90151         Quote empty string with shell_quoting_style.
90152
90153 2004-02-03  Bruno Haible  <bruno@clisp.org>
90154
90155         * m4/pipe.m4: New file, from GNU gettext.
90156
90157 2004-02-03  Bruno Haible  <bruno@clisp.org>
90158
90159         * lib/pipe.h: New file, from GNU gettext.
90160         * lib/pipe.c: New file, from GNU gettext.
90161
90162 2004-01-27  Bruno Haible  <bruno@clisp.org>
90163
90164         * m4/execute.m4: New file, from GNU gettext.
90165
90166 2004-01-27  Bruno Haible  <bruno@clisp.org>
90167
90168         * lib/execute.h: New file, from GNU gettext.
90169         * lib/execute.c: New file, from GNU gettext.
90170         * lib/w32spawn.h: New file, from GNU gettext.
90171
90172 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90173
90174         Merge from diffutils.
90175
90176         * lib/file-type.c (file_type): Add typed memory objects.
90177         * lib/file-type.h (S_TYPEISTMO): New macro.
90178
90179         * lib/c-stack.h (c_stack_action): Remove argv argument.
90180         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90181         (die): Don't calculate message unless segv_action returns.
90182         (get_stack_location, min_address_from_argv, max_address_from_argv,
90183         volatile stack_base, volatile_stack_size): Remove.
90184         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90185         that every segmentation violation is a stack overflow.  (Ouch!)
90186         See Debian bug 136249 (still outstanding) for more info about why
90187         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90188
90189 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90190
90191         Exit-status fix from coreutils.
90192
90193         Use exit_failure consistently in place of EXIT_FAILURE,
90194         so that program exit statuses are consistent on failure.
90195
90196         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90197         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90198         * lib/argmatch.h: Comment fix to match the above.
90199         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90200         Now a macro referring to exit_failure, instead of a separate
90201         variable.  Include "exitfail.h" to get it.
90202         * lib/xstrtol.h: Include "exitfail.h".
90203         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90204
90205         * lib/long-options.c (parse_long_options): Use prototype
90206         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90207         for clarity.
90208
90209 2004-01-21  Jim Meyering  <jim@meyering.net>
90210
90211         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90212         so as not to conflict with a different-sized __mktime_internal
90213         function in GNU libc.
90214         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90215         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90216
90217 2004-01-20  Karl Berry  <karl@gnu.org>
90218
90219         * config/config.guess: update from config.
90220
90221         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90222
90223 2004-01-20  Bruno Haible  <bruno@clisp.org>
90224
90225         Safer stack allocation.
90226         * lib/setenv.c: Include allocsa.h.
90227         (alloca): Remove fallback definition.
90228         (freea): Remove macro.
90229         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90230         instead of freea.
90231
90232 2004-01-20  Bruno Haible  <bruno@clisp.org>
90233
90234         * m4/eealloc.m4: New file, from GNU gettext.
90235
90236 2004-01-20  Bruno Haible  <bruno@clisp.org>
90237
90238         * m4/allocsa.m4: New file, from GNU gettext.
90239
90240 2004-01-20  Bruno Haible  <bruno@clisp.org>
90241
90242         * lib/xallocsa.h: New file, from GNU gettext.
90243         * lib/xallocsa.c: New file, from GNU gettext.
90244
90245 2004-01-20  Bruno Haible  <bruno@clisp.org>
90246
90247         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90248
90249 2004-01-20  Bruno Haible  <bruno@clisp.org>
90250
90251         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90252         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90253         specially.
90254
90255 2004-01-20  Bruno Haible  <bruno@clisp.org>
90256
90257         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90258         patch.
90259
90260 2004-01-20  Bruno Haible  <bruno@clisp.org>
90261
90262         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90263
90264 2004-01-20  Bruno Haible  <bruno@clisp.org>
90265
90266         * lib/eealloc.h: New file.
90267
90268 2004-01-20  Bruno Haible  <bruno@clisp.org>
90269
90270         * lib/binary-io.h: Avoid warnings on Cygwin.
90271
90272 2004-01-20  Bruno Haible  <bruno@clisp.org>
90273
90274         * lib/allocsa.h: New file, from GNU gettext.
90275         * lib/allocsa.c: New file, from GNU gettext.
90276
90277 2004-01-18  Karl Berry  <karl@gnu.org>
90278
90279         * doc/gpl.texi, doc/lgpl.texi: new files.
90280
90281 2004-01-18  Karl Berry  <karl@gnu.org>
90282
90283         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90284         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90285
90286 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90287
90288         Merge from coreutils.
90289
90290         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90291         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90292         (gl_DEFAULT_POSIX2_VERSION): Move
90293         the documentation from 'configure' into 'config.hin',
90294         so that 'configure --help' isn't burdened by it and
90295         we don't have to worry about its formatting there.
90296         Reword the documentation so that it's more succinct
90297         and can be run together into a single paragraph.
90298         * m4/same.m4 (gl_SAME): Check for pathconf.
90299
90300 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90301
90302         Merge from coreutils.
90303
90304         * lib/posixver.c: Include posixver.h.
90305
90306         * lib/same.c: Include <stdbool.h>, <limits.h>.
90307         (_POSIX_NAME_MAX): Define if not defined.
90308         (MIN): New macro.
90309         (same_name): If file names are silently truncated, report
90310         that the file names are the same if they are the same after
90311         the silent truncation.
90312
90313         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90314         conversion function.
90315         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90316         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90317         longer needed.
90318
90319 2004-01-15  Jim Meyering  <jim@meyering.net>
90320
90321         Merge from coreutils.
90322
90323         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90324         if no library is required.
90325         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90326         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90327         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90328         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90329         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90330         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90331         value, $ac_cv_search_crypt, if it's "none required".
90332         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90333         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90334         not gl_FUNC_GETLOADAVG.
90335         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90336         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90337
90338 2004-01-15  Jim Meyering  <jim@meyering.net>
90339
90340         Merge from coreutils.
90341
90342         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90343         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90344         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90345
90346         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90347         optional configure-time default.
90348
90349         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90350
90351         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90352
90353 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90354
90355         Merge from coreutils.
90356
90357         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90358         value, $ac_cv_search_nanosleep, if it's "none required".
90359
90360 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90361
90362         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90363         with like-named macro in fnmatch.c.
90364         (EXT): Use an internal constant instead.
90365
90366         Merge fnmatch patches from glibc.
90367         * lib/fnmatch.c (mbsinit): Remove define.
90368         Add libc_hidden_ver (__fnmatch, fnmatch).
90369         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90370         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90371
90372 2004-01-14  Karl Berry  <karl@gnu.org>
90373
90374         * config/install-sh: update from automake.
90375
90376 2004-01-13  Karl Berry  <karl@gnu.org>
90377
90378         * config/install-sh: update from automake.
90379
90380 2004-01-09  Karl Berry  <karl@gnu.org>
90381
90382         * config/install-sh: update from automake.
90383
90384 2004-01-05  Karl Berry  <karl@gnu.org>
90385
90386         * config/config.{sub,guess}: update from config.
90387
90388 2003-12-31  Karl Berry  <karl@gnu.org>
90389
90390         * config/depcomp: update from automake.
90391
90392 2003-12-14  Karl Berry  <karl@gnu.org>
90393
90394         * lib/config.charset: update from gettext-runtime.
90395
90396 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90397
90398         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90399         Bug reported by Alfred M. Szmidt.
90400
90401 2003-12-03  Bruno Haible  <bruno@clisp.org>
90402
90403         * m4/gettext.m4: Upgrade from gettext-0.13.
90404         * m4/po.m4: Upgrade from gettext-0.13.
90405         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90406         * m4/intmax.m4: New file, from gettext-0.13.
90407         * m4/printf-posix.m4: New file, from gettext-0.13.
90408
90409 2003-11-29  Karl Berry  <karl@gnu.org>
90410
90411         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90412
90413 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90414             Bruno Haible  <bruno@clisp.org>
90415
90416         * lib/printf-parse.h: Don't include sys/types.h.
90417         (ARG_NONE): New macro.
90418         (char_directive): Change type of *arg_index fields to size_t.
90419         * lib/printf-parse.c: Don't include sys/types.h.
90420         (SSIZE_MAX): Remove macro.
90421         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90422         Remove unnecessary overflow check.
90423         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90424         fields.
90425
90426 2003-11-25  Bruno Haible  <bruno@clisp.org>
90427
90428         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90429
90430 2003-11-25  Bruno Haible  <bruno@clisp.org>
90431
90432         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90433         gt_TYPE_SSIZE_T.
90434
90435 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90436
90437         * modules/alloca: Remove dependency on xalloc.
90438
90439 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90440
90441         * lib/alloca.c: Remove dependency on xalloc module.
90442         (xalloc_die): Remove.
90443         (memory_full) [!defined emacs]: New macro.
90444         [!defined emacs]: Don't include xalloc.h.
90445         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90446         address arithmetic overflows.  Change datatypes a bit to avoid
90447         unnecessary casts.
90448
90449 2003-11-22  Jim Meyering  <jim@meyering.net>
90450
90451         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90452         s/size/size_t/.
90453
90454 2003-11-21  Karl Berry  <karl@gnu.org>
90455
90456         * config/config.{sub,guess}: update from config.
90457
90458 2003-11-18  Karl Berry  <karl@gnu.org>
90459
90460         * config/config.{sub,guess}: update from config.
90461
90462         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90463
90464 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90465
90466         * README: Mention that S+T cannot overflow if S is the size of
90467         an existing object and T is sufficiently small.
90468
90469 2003-11-17  Jim Meyering  <jim@meyering.net>
90470
90471         On systems without utime and without a utimes function capable of
90472         dealing with a NULL struct utimbuf* argument, this utime replacement
90473         could -- in unusual circumstances -- leak a file descriptor.
90474         * lib/utime.c: Include <unistd.h> and <errno.h>.
90475         (utime_null): Be sure to close `fd' and to preserve errno.
90476         Reported by Geoff Collyer via Arnold Robbins.
90477
90478 2003-11-17  Bruno Haible  <bruno@clisp.org>
90479
90480         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90481         (Depends-on): Add xsize.
90482
90483 2003-11-17  Bruno Haible  <bruno@clisp.org>
90484
90485         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90486
90487 2003-11-17  Bruno Haible  <bruno@clisp.org>
90488
90489         * lib/vasnprintf.c (alloca): Remove fallback definition.
90490         (freea): Remove definition.
90491         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90492         Reported by Paul Eggert.
90493
90494 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90495             Bruno Haible  <bruno@clisp.org>
90496
90497         Protect against address arithmetic overflow.
90498         * lib/printf-args.h: Include stddef.h.
90499         (arguments): Change type of field 'count' to size_t.
90500         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90501         'unsigned int' where appropriate.
90502         * lib/printf-parse.h: Include sys/types.h.
90503         (char_directive): Change type of *arg_index fields to ssize_t.
90504         (char_directives): Change type of fields 'count', max_*_length to
90505         size_t.
90506         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90507         (SSIZE_MAX): Define fallback value.
90508         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90509         instead of 'int' where appropriate. Check a_allocated, d_allocated
90510         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90511         * lib/vasnprintf.c: Include xsize.h.
90512         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90513         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90514         overflow. Avoid wraparound when converting a width or precision from
90515         decimal to binary.
90516
90517 2003-11-16  Bruno Haible  <bruno@clisp.org>
90518
90519         Update from GNU gettext.
90520         * lib/printf-parse.c: Generalize to it can be compiled for wide
90521         strings.
90522         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90523         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90524         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90525         SNPRINTF): New macros.
90526         Don't include <alloca.h> if the file is used inside libintl.
90527         (local_wcslen): New function, for Solaris 2.5.1.
90528         (VASNPRINTF): Use it instead of wcslen.
90529
90530 2003-11-16  Bruno Haible  <bruno@clisp.org>
90531
90532         * lib/xsize.h (xmax): New function.
90533         (xsum, xsum3, xsum4): Declare as "pure" functions.
90534
90535 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90536
90537         * modules/xalloc (Files): Undo latest change, since xalloc.h
90538         no longer needs SIZE_MAX or PTRDIFF_MAX.
90539
90540 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90541
90542         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90543         gl_PTRDIFF_MAX.
90544
90545 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90546
90547         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90548         "return", to pacify some unknown compiler.  Problem reported
90549         by Joerg Schilling.
90550
90551 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90552
90553         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90554         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90555         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90556         heuristic is just as accurate as far as we know, and it removes a
90557         dependency on size_max.m4 and ptrdiff_max.m4.
90558
90559 2003-11-11  Bruno Haible  <bruno@clisp.org>
90560
90561         * modules/xsize (Files): Add m4/size_max.m4.
90562         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90563
90564 2003-11-11  Bruno Haible  <bruno@clisp.org>
90565
90566         * m4/size_max.m4: New file.
90567         * m4/ptrdiff_max.m4: New file.
90568         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90569         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90570         (gl_XALLOC): Invoke it.
90571
90572 2003-11-11  Bruno Haible  <bruno@clisp.org>
90573
90574         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90575         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90576         defined.
90577
90578 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90579
90580         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90581         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90582         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90583         From Bruno Haible.
90584         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90585         not (size_t) -1, since it's defined here.
90586
90587 2003-11-09  Karl Berry  <karl@gnu.org>
90588
90589         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90590
90591 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90592
90593         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90594         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90595         Reject sizes of exactly SIZE_MAX bytes.
90596         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90597         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90598
90599 2003-11-05  Bruno Haible  <bruno@clisp.org>
90600
90601         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90602         SIZE_MAX defined in <limits.h> on Solaris.
90603
90604 2003-11-04  Jim Meyering  <jim@meyering.net>
90605
90606         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90607         variable names, rather than @VAR@.
90608         * modules/poll: Likewise.
90609
90610 2003-11-04  Bruno Haible  <bruno@clisp.org>
90611
90612         * modules/xsize: New file.
90613         * modules/linebreak: Depend on xsize.
90614         * MODULES.html.sh (func_all_modules): Add xsize.
90615
90616 2003-11-04  Bruno Haible  <bruno@clisp.org>
90617
90618         * m4/xsize.m4: New file.
90619
90620 2003-11-04  Bruno Haible  <bruno@clisp.org>
90621
90622         * lib/xsize.h: New file.
90623         * lib/linebreak.c: Include xsize.h.
90624         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90625         argument for overflow.
90626         Suggested by Paul Eggert.
90627
90628 2003-11-03  Karl Berry  <karl@gnu.org>
90629
90630         * config/config.{guess,sub}: update from config.
90631
90632 2003-11-03  Jim Meyering  <jim@meyering.net>
90633
90634         * modules/userspec (lib_SOURCES): Add userspec.h.
90635         (Include): Add "userspec.h".
90636         Improve description.
90637
90638 2003-11-03  Jim Meyering  <jim@meyering.net>
90639
90640         * lib/userspec.c: Include "userspec.h".
90641         * lib/userspec.h: New file.
90642
90643 2003-11-03  Bruno Haible  <bruno@clisp.org>
90644
90645         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90646
90647 2003-11-03  Bruno Haible  <bruno@clisp.org>
90648
90649         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90650         available, to avoid (extremely rare) race condition.
90651         Suggested by Paul Eggert.
90652
90653 2003-11-02  Karl Berry  <karl@gnu.org>
90654
90655         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90656
90657 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90658
90659         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90660         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90661         (read_filesystem_list): Set and use me_type_malloced.
90662         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90663         whatever the type happens to be), for brevity and consistency.
90664         Check for size calculation overflow on Alphas running OSF/1.
90665
90666 2003-10-31  Jim Meyering  <jim@meyering.net>
90667
90668         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90669
90670         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90671
90672 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90673             Bruno Haible  <bruno@clisp.org>
90674
90675         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90676         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90677
90678 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90679
90680         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90681         netbsd*-gnu*.  Suggested by Robert Millan.
90682
90683 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90684
90685         * modules/group-member: Depend on stdbool.
90686
90687 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90688
90689         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90690
90691 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90692
90693         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90694         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90695         after the 'gnu' in these cases.  This fixes some bugs in the
90696         previous change, and is based on suggestions by Robert Millan.
90697
90698 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90699
90700         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90701         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90702         no longer needed.
90703         * lib/quotearg.c (quotearg_n_options): Use it.
90704         * lib/group-member.c: Include <stdbool.h>.
90705         (free_group_info): Arg is now const *; don't free arg.
90706         (get_group_info): Now returns bool and accepts struct group_info *,
90707         rather than returning a malloc'ed struct group_info *.
90708         All uses changed.  Check for overflow in internal size calculation.
90709
90710         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90711         rather than xmalloc/xrealloc.
90712         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90713         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90714         conformance bug: the old code used a pointer after freeing the
90715         storage that it addressed.
90716         * lib/hash.c (hash_initialize): Simplify the code by using
90717         xalloc_oversized rather than doing it by hand.
90718         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90719         the buffer preserved.  Use free and xmalloc instead.
90720         * lib/quotearg.c (quotearg_n_options): Likewise.
90721         Use a simpler test for size overflow.  Don't use xalloc_oversized
90722         because unsigned int might be wider than size_t (!); this suggests
90723         that we should switch from unsigned int to size_t for slot numbers.
90724
90725 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90726
90727         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90728         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90729         NetBSD kernels.  Requested by Richard Stallman.
90730
90731 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90732
90733         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90734         to allocate the returned structure.  Do not allocate a subarray,
90735         as x2nrealloc will do that.
90736         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90737         instead of xnrealloc.
90738         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90739
90740 2003-10-27  Bruno Haible  <bruno@clisp.org>
90741
90742         * lib/stdbool_.h: Better support for BeOS.
90743
90744 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90745
90746         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90747         now uses inline.
90748
90749 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90750
90751         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90752         callers that want to do their own size-overflow checking.  Include
90753         <stdbool.h>, since xalloc_oversized returns bool.
90754         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90755         to use xalloc_oversized.
90756
90757         Add two functions x2realloc, x2nrealloc, for programs that grow
90758         arrays dynamically by doubling their sizes.
90759         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90760         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90761         New functions.
90762
90763         Port to C99 semantics for 'inline' of external functions.
90764         Bug reported by Bruno Haible.
90765         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90766         with the old contents of xnmalloc.
90767         (xnmalloc, xmalloc): Use it.
90768         (xnrealloc_inline): New static inline function,
90769         with the old contents of xnrealloc.
90770         (xnrealloc, xrealloc): Use it.
90771
90772         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90773         that.
90774
90775 2003-10-26  Karl Berry  <karl@gnu.org>
90776
90777         * config/srclist.txt (COPYING.DOC): no longer available from
90778         /gd/gnuorg; don't know where the ultimate source is.
90779
90780 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90781
90782         Fix several address-calculation bugs in the hash modules,
90783         plus some minor code cleanup.
90784
90785         * lib/hash.h: Include <stdbool.h>, for bool.
90786         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90787         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90788         hash_get_n_entries, hash_get_max_bucket_length,
90789         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90790         hash_rehash): Use size_t rather than unsigned.
90791         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90792         hash_get_n_buckets_used, hash_get_n_entries,
90793         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90794         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90795         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90796         Likewise.
90797         (SIZE_MAX): Define if not defined.
90798         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90799         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90800         hash_print):
90801         Use const * when possible.
90802         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90803         (check_tuning): Fix bug: if tuning parameters were very close to
90804         0 or 1, rounding errors could have caused subscript violations.
90805         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90806         (hash_initialize): Add 'fail:' label
90807         to free table and return NULL, and use it to simplify code.
90808         Use calloc rather than clearing the storage ourself.
90809         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90810         buffer size calculations.
90811         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90812         Include <stddef.h>, for size_t.
90813         * lib/hash-pjw.c (hash_pjw): Likewise.
90814         Switch to method described by Bruno Haible.
90815         Include <limits.h>, for CHAR_BIT.
90816         (SIZE_BITS): New macro.
90817
90818 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90819
90820         * m4/getline.m4 (AM_FUNC_GETLINE):
90821         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90822         hosts.  Problem reported by Derek Robert Price in
90823         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90824         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90825         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90826
90827 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90828
90829         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90830         ceiling the allocation at NMAX bytes rather than silently
90831         discarding input bytes before NMAX is reached.  This makes
90832         a difference only if NMAX exceeds SIZE_MAX / 2.
90833
90834         * lib/obstack.c: Merge from glibc.
90835         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90836         Add libc_hidden_def (_obstack_newchunk).
90837         (_obstack_free) [! defined _LIBC]: Remove.
90838         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90839         a clone of the function body.
90840         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90841         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90842
90843         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90844         glibc.
90845         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90846         arg to memcpy.
90847
90848         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90849         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90850         Don't use lvalue casts, as GCC plans to remove support for them
90851         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90852         was also present in the non-GCC version, indicating that this
90853         code had always been buggy and had never been widely used.
90854         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90855         Use the fast variant of each macro, rather than copying the
90856         definiens of the fast variant; that way, we'll be more likely to
90857         catch future bugs in the fast variants.
90858
90859 2003-10-20  Bruno Haible  <bruno@clisp.org>
90860
90861         * modules/wait-process: New file.
90862         * MODULES.html.sh (func_all_modules): Add wait-process.
90863
90864 2003-10-20  Bruno Haible  <bruno@clisp.org>
90865
90866         * m4/wait-process.m4: New file.
90867
90868 2003-10-20  Bruno Haible  <bruno@clisp.org>
90869
90870         * lib/wait-process.h: New file, from GNU gettext.
90871         * lib/wait-process.c: New file, from GNU gettext.
90872
90873 2003-10-19  Jim Meyering  <jim@meyering.net>
90874
90875         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90876         HPUX 10.20.
90877
90878 2003-10-18  Karl Berry  <karl@gnu.org>
90879
90880         * config/config.guess: update from config.
90881
90882 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90883
90884         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90885         (getgroups): First arg is int, not size_t.
90886         Don't let 'free' mangle errno.
90887
90888 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90889
90890         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90891
90892 2003-10-16  Karl Berry  <karl@gnu.org>
90893
90894         * config/config.{guess,sub}: update from config.
90895
90896 2003-10-16  Jim Meyering  <jim@meyering.net>
90897
90898         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90899         memcpy.
90900
90901 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90902
90903         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90904         (SIZE_MAX): Remove.
90905         (new_exclude, add_exclude_file): Initial size no longer needs to
90906         be a power of 2.
90907         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90908         our own address arithmetic overflow checking.
90909
90910         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90911         (fnmatch): Do not alloca more than 2000 wide characters;
90912         instead, use malloc for large buffers.
90913         Check for address arithmetic overflow, and return -1
90914         with errno set to ENOMEM in that case.
90915         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90916         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90917         instead, return -1.  Check for address arithmetic overflow.
90918
90919 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90920
90921         Handle invalid suffixes and overflow independently, so that
90922         callers can treat them independently as needed.  Fix some bugs in
90923         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90924         suffix for a human-readable blocksize.  The major caller-visible
90925         change is the addition of a new
90926         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90927         that both overflow and suffix chars were found.
90928
90929         * lib/human.c (humblock): Don't check separately for invalid suffix
90930         char; that is xstrtoumax's job (now that its bug is fixed).
90931         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90932         INTMAX_MAX]: New macros.
90933         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90934         TYPE_MAXIMUM): New macros.
90935         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90936         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90937         if overflow occurs, as it's what __strtol does and it's more useful
90938         in practice.
90939         (__xstrtol): If __strtol reports some error other than ERANGE,
90940         reflect it to the caller as LONGINT_INVALID.  If it reports
90941         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90942         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90943         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90944         value.
90945         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90946         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90947         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90948         [defined UINTMAX_MAX]: New macros.
90949
90950 2003-10-14  Bruno Haible  <bruno@clisp.org>
90951
90952         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90953
90954 2003-10-14  Bruno Haible  <bruno@clisp.org>
90955
90956         * m4/sig_atomic_t: New file, from GNU gettext.
90957         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90958
90959 2003-10-14  Bruno Haible  <bruno@clisp.org>
90960
90961         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90962         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90963         Also use volatile where needed.
90964
90965 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90966
90967         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90968         Change maintainer from Bruno Haible to 'all'.
90969
90970 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90971
90972         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90973
90974 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90975
90976         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90977         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90978         and define in terms of the other primitives.
90979         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90980         (SIZE_MAX): Define if not already defined.
90981         (array_size_overflow): New function.
90982         (xalloc_die): Abort instead of exiting if 'error' returns.
90983         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90984         (xmalloc, xrealloc): Use them.
90985         (xcalloc): Check for address arithmetic overflow.
90986         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90987         a bit faster than strcpy.
90988
90989 2003-10-10  Simon Josefsson  <jas@extundo.com>
90990
90991         * modules/argp (Depends-on): Add restrict and strcase.
90992
90993 2003-10-10  Simon Josefsson  <jas@extundo.com>
90994
90995         * m4/argp.m4: Add AC_C_INLINE.
90996
90997 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90998
90999         Merge getpass from libc, plus a few fixes.
91000
91001         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91002         Include <stdbool.h>.
91003         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91004         __fsetlocking to empty.
91005         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91006         do include <bits/libc-lock.h>.
91007         Do not include <fcntl.h>; not needed.
91008         [_LIBC]: Include <wchar.h>.
91009         (NOTCANCEL_MODE): New macro.
91010         (flockfile, funlockfile) [_LIBC]: New macros.
91011         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91012         [!_LIBC]: New macros.
91013         (call_fclose): New function.
91014         (getpass): Use it.  Save tty stream separately; this simplifies the
91015         code and makes it more reliable if stdin happens to equal stdout.
91016         Invoke __fsetlocking on tty.
91017         Handle thread cancellation if needed.
91018         Namespace cleanup (use __tcgetattr, __getline).
91019         Use bool for Booleans.
91020         [USE_IN_LIBIO]: Handle wide streams.
91021         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91022         stream might go where.
91023
91024         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91025         doesn't have to include <stdio.h> before us.
91026         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91027         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91028         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91029         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91030         if not declared, so that we can use getpass.c code from libc without
91031         rewriting it.
91032         (flockfile, ftrylockfile, funlockfile): New macros.
91033
91034 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91035
91036         * modules/getpass: Depend on stdbool.
91037
91038 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91039
91040         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91041
91042 2003-10-07  Karl Berry  <karl@gnu.org>
91043
91044         * config/config.{guess,sub}: update from config.
91045
91046 2003-10-06  Jim Meyering  <jim@meyering.net>
91047             Bruno Haible  <bruno@clisp.org>
91048
91049         This lets translators provide better translations for the
91050         "Written by ..." part of --version output.
91051         * lib/version-etc.h: Include stdarg.h.
91052         (version_etc_copyright): Declare as readonly.
91053         (version_etc): Make this function variadic with a NULL-terminated list
91054         of author name strings.
91055         (version_etc_va): New declaration.
91056         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91057         (version_etc_copyright): Declare as readonly.
91058         (version_etc_va): New function. Provide a different translatable string
91059         for each possible number of authors < 10. Abbreviate when there are 10
91060         authors or more.
91061         (version_etc): Make this function variadic. Call version_etc_va.
91062         Suggestion from Gary V. Vaughan.
91063
91064         * lib/long-options.h (parse_long_options): Change prototype: the
91065         authors string is moved to the end and becomes variadic.
91066         * lib/long-options.c: Include stdarg.h.
91067         (parse_long_options): Make this function variadic, too.
91068         Call version_etc_va, not version_etc.
91069
91070 2003-10-06  Bruno Haible  <bruno@clisp.org>
91071
91072         * modules/version-etc-2: Remove file.
91073         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91074
91075 2003-10-06  Bruno Haible  <bruno@clisp.org>
91076
91077         * modules/fatal-signal: New file.
91078         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91079
91080 2003-10-06  Bruno Haible  <bruno@clisp.org>
91081
91082         * m4/fatal-signal.m4: New file.
91083         * m4/signalblocking.m4: New file, from GNU gettext.
91084
91085 2003-10-06  Bruno Haible  <bruno@clisp.org>
91086
91087         * lib/version-etc-2.h: Remove file.
91088         * lib/version-etc-2.c: Remove file.
91089
91090 2003-10-06  Bruno Haible  <bruno@clisp.org>
91091
91092         * lib/fatal-signal.h: New file, from GNU gettext.
91093         * lib/fatal-signal.c: New file, from GNU gettext.
91094
91095 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91096
91097         * README: Rework advice for preventing empty .o files.
91098         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91099         not <sys/types.h>.
91100
91101 2003-10-04  Karl Berry  <karl@gnu.org>
91102
91103         * lib/argp*: update from libc.
91104
91105 2003-10-04  Karl Berry  <karl@gnu.org>
91106
91107         * config/config.{guess,sub}: update from config.
91108
91109 2003-10-02  Bruno Haible  <bruno@clisp.org>
91110
91111         * modules/lchown (Include): Add lchown.h.
91112         * modules/time_r (Include): Use "..." syntax.
91113         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91114
91115 2003-10-01  Simon Josefsson  <jas@extundo.com>
91116
91117         * MODULES.html.sh (func_all_modules): Move gethostname from section
91118         'based on' to section 'lacking' POSIX:2001.
91119
91120 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91121
91122         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91123         to output mode on the same stream.
91124
91125 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91126
91127         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91128         Fix arg typo in previous patch.
91129
91130 2003-09-28  Jim Meyering  <jim@meyering.net>
91131
91132         * lib/error.c: Correct cpp indentation.
91133
91134 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91135
91136         * modules/free: New file.
91137
91138 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91139
91140         * m4/free.m4: New file.
91141
91142 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91143
91144         * lib/minmax.h (MIN, MAX)
91145         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91146         Omit the special code that used __typeof__, since we worry that
91147         it could be more trouble than it's worth.  See:
91148         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91149         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91150
91151         * lib/free.c: New file.
91152
91153 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91154
91155         Trivial fixes to Makefile.am parts of module listings.
91156         * modules/strstr: Append strstr.h to lib_SOURCES.
91157         * modules/strcase: Likewise, for strcase.h.
91158
91159 2003-09-27  Karl Berry  <karl@gnu.org>
91160
91161         * config/mkinstalldirs: update from automake.
91162
91163 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91164
91165         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91166         (error_tail): Do not loop, reallocating temporary buffer, since
91167         the output cannot contain more wide characters than the input
91168         contains bytes, the size must be big enough already.  This avoids
91169         one potential size overflow calculation.  Check for size overflow
91170         when calculating temporary buffer size.  Free temporary buffer
91171         when done, if it was allocated with malloc; this plugs a memory
91172         leak.  Remove casts from void * to pointers, that are no longer
91173         needed now that we're assuming C89 or better.
91174
91175         Merge error changes from glibc.
91176
91177         * lib/error.c, error.h: Update copyright notice header to match glibc.
91178         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91179         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91180         Disable cancellation while printing error.
91181         * lib/error.h: Prepend __ to parameter names.
91182
91183 2003-09-26  Jim Meyering  <jim@meyering.net>
91184
91185         * lib/error.c (error_tail): Move some declarations
91186         into inner scope where the local variables are used.
91187
91188 2003-09-26  Bruno Haible  <bruno@clisp.org>
91189
91190         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91191         stpncpy().
91192         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91193
91194 2003-09-26  Bruno Haible  <bruno@clisp.org>
91195
91196         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91197         (stpncpy): Define as alias for gnu_stpncpy.
91198         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91199
91200 2003-09-25  Simon Josefsson  <jas@extundo.com>
91201
91202         * lib/xgetdomainname.h: New file.
91203         * lib/xgetdomainname.c: New file.
91204
91205 2003-09-25  Simon Josefsson  <jas@extundo.com>
91206             Bruno Haible  <bruno@clisp.org>
91207
91208         * modules/getdomainname: New file.
91209         * modules/xgetdomainname: New file.
91210         * MODULES.html.sh (func_all_modules): Add getdomainname,
91211         xgetdomainname.
91212
91213 2003-09-25  Simon Josefsson  <jas@extundo.com>
91214             Bruno Haible  <bruno@clisp.org>
91215
91216         * m4/getdomainname.m4: New file.
91217
91218 2003-09-25  Simon Josefsson  <jas@extundo.com>
91219             Bruno Haible  <bruno@clisp.org>
91220
91221         * lib/getdomainname.h: New file.
91222         * lib/getdomainname.c: New file.
91223
91224 2003-09-25  Karl Berry  <karl@gnu.org>
91225
91226         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91227
91228 2003-09-25  Karl Berry  <karl@gnu.org>
91229
91230         * config/install-sh: update from automake.
91231
91232 2003-09-25  Bruno Haible  <bruno@clisp.org>
91233
91234         * modules/version-etc-2: New file, from modules/version-etc with
91235         modifications.
91236         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91237
91238 2003-09-25  Bruno Haible  <bruno@clisp.org>
91239
91240         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91241         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91242
91243 2003-09-24  Simon Josefsson  <jas@extundo.com>
91244
91245         * modules/xgethostname: Add xgethostname.h.
91246
91247 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91248
91249         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91250         the buffer associated with the argument.  Bug reported by
91251         Simon Josefsson.
91252
91253 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91254
91255         * README: Document assumptions that 'int' is at least 32 bits
91256         wide, that integer arithmetic is 2's complement without overflow,
91257         that there are no holes in integer values, that adding sizes of
91258         two nonoverlapping objects can't overflow, and that all-bits-zero
91259         yields scalar zero.  Fix spelling and capitalization typos.
91260
91261 2003-09-19  Karl Berry  <karl@gnu.org>
91262
91263         * lib/argp.h: update from libc.
91264
91265 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91266
91267         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91268         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91269         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91270
91271 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91272
91273         * gnulib-tool: Use "test -h", not "test -L", for portability
91274         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91275         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91276         (sed_extract_prog): Issue s commands one-by-one, rather than
91277         using \| in one s command.
91278
91279 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91280
91281         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91282         input error, instead of returning NULL the next time we are called
91283         (and therefore losing track of errno).
91284
91285 2003-09-16  Bruno Haible  <bruno@clisp.org>
91286
91287         * gnulib-tool (func_create_testdir): Warn about duplicated
91288         dependencies.
91289
91290 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91291
91292         * modules/argmatch, modules/fatal, modules/obstack,
91293         modules/xalloc, modules/xgethostname: Sort dependencies by
91294         importance, not alphabetically.
91295
91296 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91297
91298         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91299         fails, so that the caller gets the proper errno.
91300
91301         * lib/readutmp.c (read_utmp): Likewise.
91302         Check for fstat error.  Close stream and free storage
91303         when failing.
91304
91305 2003-09-14  Karl Berry  <karl@gnu.org>
91306
91307         * config/srclist.txt (strdup.c): disable for c89 changes.
91308
91309 2003-09-14  Jim Meyering  <jim@meyering.net>
91310
91311         * lib/getloadavg.c: Correct cpp indentation.
91312         * lib/strdup.c: Likewise.
91313         * lib/vasnprintf.c: Likewise.
91314
91315 2003-09-14  Bruno Haible  <bruno@clisp.org>
91316
91317         * modules/fwriteerror: New file.
91318         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91319
91320 2003-09-14  Bruno Haible  <bruno@clisp.org>
91321
91322         * lib/fwriteerror.h: New file.
91323         * lib/fwriteerror.c: New file.
91324
91325 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91326
91327         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91328         modules/xgethostname, modules/xalloc: Depend on exit.
91329
91330 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91331
91332         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91333
91334         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91335         and AC_MINIX, too, so that their extensions are available.
91336
91337         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91338         This macro has been superseded by gl_BACKUPFILE.
91339
91340         More patches to assume C89 or better.
91341
91342         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91343
91344         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91345         unconditionally.
91346         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91347         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91348         Include <string.h>, <stdlib.h> unconditionally.
91349         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91350         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91351         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91352         headers or for string.h.
91353         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91354         or strtoul.
91355
91356         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91357         headers.
91358         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91359         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91360         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91361         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91362         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91363         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91364         memcpy, memset.
91365         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91366         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91367         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91368         strtol.
91369         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91370         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91371         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91372         strtoul.
91373
91374 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91375
91376         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91377         * lib/obstack.c [!defined _LIBC]: Likewise.
91378         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91379         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91380         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91381
91382         More changes to assume C89 or better.
91383
91384         * lib/error.c (error_tail): Assume vprintf.
91385
91386         * lib/argmatch.c (getenv): Remove decl.
91387         * lib/progreloc.c (get_full_program_name): Define via prototype.
91388         * lib/setenv.c (clearenv): Likewise.
91389         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91390         needed.
91391         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91392         (malloc, memcpy): Remove decls.
91393         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91394         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91395         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91396         (memcpy): Remove macro.
91397         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91398         (__P): Remove.  All uses removed.
91399         (PTR): Remove.  All uses changed to void *.
91400         (CHAR_BIT, NULL): Remove.
91401         (spaces, zeros, memset_space, memset_zero)
91402         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91403         Remove.
91404         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91405         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91406         Define with prototype.
91407         Remove now-unnecessary prototype decl.
91408         (extra_args_spec): Assume ANSI C.  All uses changed.
91409         (extra_args_spec_iso): Remove.
91410         (my_strftime, emacs_strftimeu): Define via prototype.
91411         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91412         unconditionally.
91413         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91414         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91415         (strtoul, strtol): Remove decls.
91416         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91417         LONG_MAX): Remove.
91418         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91419         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91420         (LOCALE_PARAM_PROTO): New macro.
91421         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91422         (INTERNAL (strtol), strtol): Define with a prototype.
91423         (PARAMS): Remove.  All uses removed.
91424         * lib/tempname.c: Include <string.h> unconditionally.
91425         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91426         * lib/xgethostname.c (main): Define with a prototype.
91427         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91428         Include <stdlib.h> unconditionally.
91429         (calloc, malloc, realloc, free): Remove decls.
91430         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91431         Include <stdlib.h> unconditionally.  Sort include file names.
91432         (strtod): Remove.
91433         (xstrtod): Define with a prototype.
91434         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91435         (strtol, strtoul): Remove decls.
91436
91437 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91438
91439         More patches to assume C89 or better.
91440         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91441         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91442         string.h, memchr, STDC_HEADERS.
91443
91444 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91445
91446         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91447         Include <stdlib.h>, <string.h> unconditionally.
91448         Remove now-unnecessary cast to char *.
91449         * lib/strnlen.c: Include <string.h> unconditionally.
91450         * lib/yesno.c (yesno): Define with a prototype.
91451
91452 2003-09-11  Bruno Haible  <bruno@clisp.org>
91453
91454         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91455
91456 2003-09-10  Jim Meyering  <jim@meyering.net>
91457
91458         * lib/error.c: Correct indentation of cpp directives.
91459
91460 2003-09-10  Bruno Haible  <bruno@clisp.org>
91461
91462         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91463         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91464         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91465         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91466         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91467         <stdlib.h> and <string.h> checks.
91468         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91469         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91470
91471 2003-09-10  Bruno Haible  <bruno@clisp.org>
91472
91473         * lib/strcspn.c: Include <string.h> unconditionally.
91474         * lib/strpbrk.c: Include <string.h> unconditionally.
91475         * lib/strstr.c: Include <string.h> unconditionally.
91476         * lib/unicodeio.c: Include <string.h> unconditionally.
91477         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91478         * lib/unsetenv.c: Likewise.
91479         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91480         * lib/yesno.c: Include <stdlib.h> unconditionally.
91481         (rpmatch): Add prototype.
91482
91483 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91484
91485         More patches to assume C89 or better.
91486         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91487         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91488         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91489         or for string.h.
91490         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91491         stdlib.h.
91492         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91493         C headers.
91494         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91495         string.h.
91496         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91497         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91498         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91499         or for string.h.
91500         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91501         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91502         C headers.
91503         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91504         memcpy.
91505         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91506         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91507         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91508         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91509         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91510         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91511         string.h, free.
91512         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91513         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91514         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91515         C headers, or for string.h.
91516         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91517         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91518         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91519         headers, memory.h, stdlib.h, string.h, strings.h.
91520         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91521         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91522         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91523         strchr.
91524         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91525         headers, memory.h, string.h.
91526         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91527         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91528         free.
91529         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91530         headers.
91531         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91532         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91533         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91534         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91535         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91536
91537 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91538
91539         More K&R removal.
91540
91541         * lib/acosl.c (main): Use a prototype.
91542         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91543         tanl.c: Likewise.
91544
91545         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91546
91547         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91548         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91549         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91550         with a prototype.
91551         * lib/getopt.c (const): Remove macro.
91552         Include <string.h> unconditionally.
91553         (my_index): Remove; all uses changed to strchr.
91554         (strlen): Remove decl.
91555         (exchange): Remove forward decl; no longer needed.
91556         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91557         Define with prototype.
91558         * lib/getopt1.c (const): Remove macro.
91559         (getopt_long, getopt_long_only, main): Define with prototype.
91560
91561         * lib/getugroups.c: Include <string.h> unconditionally.
91562
91563         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91564         (getusershell, setusershell, endusershell, readname, main):
91565         Define with prototypes.
91566
91567         * lib/group-member.c: Include group-member.h first.
91568         Include <stdlib.h> unconditionally.
91569
91570         * lib/hard-locale.c: Include hard-locale.h first.
91571         Include <stdlib.h>, <string.h> unconditionally.
91572
91573         * lib/hash.c (free, malloc): Remove decls.
91574         Include <stdlib.h> unconditionally.
91575
91576         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91577         (getenv): Do not declare.
91578
91579         * lib/idcache.c: Include <string.h> unconditionally.
91580
91581         * lib/long-options.c: Include long-options.h first, to test interface.
91582         Include <stdlib.h> unconditionally.
91583
91584         * lib/makepath.c: Include makepath.h first, to test interface.
91585         Include <stdlib.h> and <string.h> unconditionally.
91586
91587         * lib/linebuffer.c: Include <stdlib.h>.
91588         (free): Remove decl.
91589
91590         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91591         stddef.h. rpl_malloc returns void *, not char *.
91592         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91593         prototype.
91594
91595         * lib/md5.h: Include <limits.h> unconditionally.
91596         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91597         (__P): Remove; all uses removed.
91598         * lib/md5.c: Include "md5.h" first.
91599         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91600         md5_buffer, md5_process_bytes, md5_process_block):
91601         Define with prototypes.
91602         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91603         * lib/sha.c: Include "sha.h" first.
91604         Include <stdlib.h>, <string.h> unconditionally.
91605
91606         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91607         * lib/memcmp.c (__ptr_t): Likewise.
91608         * lib/memrchr.c (__ptr_t): Likewise.
91609         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91610         Include <string.h> unconditionally.
91611         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91612         * lib/memchr.c: Include <stdlib.h> unconditionally.
91613         * lib/memchr.c (LONG_MAX): Remove.
91614         * lib/memrchr.c (LONG_MAX): Likewise.
91615         * lib/memchr.c (__memchr): Define via a prototype.
91616         * lib/memrchr.c (__memrchr): Likewise.
91617         * lib/memcmp.c (__P): Remove, and remove all uses.
91618         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91619         Remove forward decls; no longer needed.
91620         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91621         Use types required by C89 in prototype.
91622
91623         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91624         * lib/savedir.c: Likewise.
91625         * lib/mkdir.c (free): Remove decl.
91626         * lib/rmdir.c (rmdir): Define with a prototype.
91627         * lib/savedir.c: Include savedir.h first, to test interface.
91628
91629         * lib/mktime.c (STDC_HEADERS): Remove.
91630         Include <stdlib.h>, <string.h> unconditionally.
91631
91632         * lib/modechange.c: Include <stdlib.h> unconditionally.
91633         (malloc): Remove decl.
91634
91635         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91636         (free): Remove decl.
91637
91638         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91639         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91640         (This type really should be intptr_t, but that's a C99ism.)
91641         (_obstack_memcpy): Remove: all uses changed to memcpy.
91642         Include <string.h> unconditionally.
91643         (struct obstack): Assume __STDC__ for types of members
91644         chunkfun, freefun, extra_arg.
91645         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91646         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91647         obstack_begin, obstack_specify_allocation,
91648         obstack_specify_allocation_with_arg, obstack_chunkfun,
91649         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91650         Remove unprototyped decls and the macros that use them.
91651         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91652         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91653         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91654         (defined __STDC__ && __STDC__)]:
91655         Remove nonprototyped code.
91656         Include <stdlib.h> unconditionally.
91657         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91658         _obstack_allocated_p, _obstack_free, obstack_free,
91659         _obstack_memory_used, print_and_abort):
91660         Define using prototypes.
91661         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91662         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91663         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91664         obstack_next_free, obstack_object_size, obstack_room) [0]:
91665         Remove unused, unprototyped code.
91666
91667         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91668
91669         * lib/physmem.c (physmem_total, physmem_available, main): Define
91670         with prototypes.
91671
91672         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91673         (main): Define with a prototype.
91674
91675         * lib/posixver.c (getenv): Remove decl.
91676
91677         * lib/putenv.c (malloc): Returns void *, not char *.
91678         Include <string.h> unconditionally.
91679         (strchr, memcpy, NULL): Do not define.
91680
91681         * lib/readtokens.c: Include readtokens.h first, to test interface.
91682         Include <stdlib.h>, <string.h> unconditionally.
91683         (init_tokenbuffer): Define with a prototype.
91684
91685         * lib/regex.c (PARAMS): Remove.  All uses removed.
91686         All uses of _RE_ARGS removed, too.
91687         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91688         unconditionally.
91689         (bzero): Assume memset exists.
91690         (memcmp, memcpy, NULL): Remove.
91691         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91692         char, or assignments to local vars of type signed char.
91693         (init_syntax_once, PREFIX(extract_number_and_incr),
91694         PREFIX(print_partial_compiled_pattern),
91695         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91696         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91697         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91698         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91699         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91700         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91701         wcs_compile_range, byte_compile_range, truncate_wchar,
91702         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91703         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91704         count_mbs_length, wcs_re_match_2_internal,
91705         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91706         PREFIX(alt_match_null_string_p),
91707         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91708         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91709         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91710         now-unnecessary declaration, if any.
91711         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91712         regcomp, regexec):
91713         Remove now-unnecessary casts among pointer types.
91714         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91715
91716         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91717         (free): Remove decl.
91718
91719         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91720
91721         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91722         (free): Remove decl.
91723
91724         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91725         * lib/xgetcwd.c: Likewise.
91726
91727         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91728         (free): Remove decl.
91729
91730         * lib/strchrnul.c (strchrnul): Define with a prototype.
91731         Fix bug: c_in was not converted to char before searching.
91732
91733         The following changes are not K&R related:
91734
91735         * lib/group-member.h: Include <sys/types.h>, so that this file is
91736         self-contained.
91737         * lib/makepath.h: Likewise.
91738
91739         * lib/getusershell.c (readname, default_index, line_size, readname):
91740         Use size_t, not int, for sizes.
91741         (readname): If the size overflows, report an error instead of
91742         looping forever.
91743
91744 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91745
91746         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91747         libc.
91748
91749 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91750
91751         * README: New section: portability guidelines.
91752
91753 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91754
91755         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91756         C89 spec.
91757
91758 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91759
91760         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91761
91762 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91763
91764         Assume C89 or better; remove K&R cruft.
91765         A few of these changes were first proposed by Derek Robert Price
91766         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91767
91768         * lib/addext.c: Include <string.h> unconditionally.
91769         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91770         Don't declare getenv or malloc.
91771
91772         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91773         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91774         (NULL): Remove.
91775         (find_stack_direction, alloca): Use prototypes.
91776
91777         * lib/atexit.c (atexit): Define using a prototype.
91778
91779         * lib/basename.c, dirname.c, stripslash.c:
91780         Include <string.h> unconditionally.
91781
91782         * lib/bcopy.c: Include <stddef.h>.
91783         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91784
91785         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91786
91787         * lib/error.h (error, error_at_line, error_print_progname)
91788         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91789         * lib/error.c: Include error.h first, to check interface.
91790         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91791         (VA_START): Remove; all uses changeed to va_start.
91792         (exit, strerror): Remove decls.
91793         (error_print_progname): Prototype uncondionally.
91794         Don't include <errno.h>; no longer needed.
91795         (private_strerror): Remove.
91796         (error_tail): Always define.
91797         (error, error_at_line): Assume C89 or better; always use prototypes.
91798         * lib/fatal.c: Include "fatal.h" first, to test interface.
91799         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91800         (VA_START): Remove; all uses changed to va_start.
91801         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91802         this case.
91803         (exit): Remove decl.
91804         (fatal): Prototype unconditionally.  Assume va_start works.
91805         Abort at end, to pacify gcc.
91806
91807         * lib/euidaccess.c (main): Define with a prototype.
91808
91809         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91810
91811         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91812
91813         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91814         prototypes.
91815         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91816         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91817         (getenv): Remove decl.
91818         (fnmatch): Define using a prototype.
91819         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91820         (FCT): Define using a prototype.
91821
91822         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91823
91824         * lib/gethostname.c: Include <stddef.h>.
91825         (gethostname): Define with prototype.  Length is size_t, not int.
91826
91827 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91828
91829         Assume C89 or better; remove K&R cruft.
91830         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91831         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91832         string.h, getenv, malloc.
91833         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91834         headers.
91835         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91836         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91837         do not check for strerror.
91838         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91839         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91840         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91841         do not check for doprnt or vprintf.
91842         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91843         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91844
91845 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91846
91847         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91848         getversion.c should have been removed then, but was accidentally
91849         preserved.
91850
91851         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91852         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91853
91854 2003-09-08  Karl Berry  <karl@gnu.org>
91855
91856         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91857                 config, forget about prep.
91858
91859         * config/depcomp, missing: update from automake.
91860
91861 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91862
91863         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91864         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91865
91866 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91867
91868         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91869         copy_tm_result.  Bug reported by Simon Josefsson in
91870         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91871
91872 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91873
91874         * m4/time_r.m4: New file.
91875         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91876         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91877         is. Check for timegm declaration.
91878         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91879         Do not check for gmtime_r.
91880         Replace mktime if __mktime_internal does not exist and if mktime
91881         hasn't been replaced already.
91882
91883 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91884
91885         * lib/time_r.c, lib/time_r.h: New files.
91886
91887         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91888         __localtime_r.
91889         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91890         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91891
91892         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91893         __gmtime_r.
91894         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91895         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91896         Include <time_r.h>.
91897
91898         * lib/timegm.c: Switch to glibc implementation, with the following
91899         changes:
91900         [defined HAVE_CONFIG_H]: Include <config.h>.
91901         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91902         (__mktime_internal) [!defined _LIBC]: New decl.
91903         (__gmtime_r) [!defined _LIBC]: New macro and function.
91904         (timegm): Use a prototype, since gnulib assumes C89.
91905         Do not bother declaring tmp to be const, as it's not really usefu.
91906         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91907         (timegm): Declare only if HAVE_DECL_TIMEGM.
91908
91909 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91910
91911         * MODULES.html.sh (func_all_modules): Add time_r.
91912         * modules/time_r: New file.
91913         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91914         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91915
91916 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91917
91918         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91919         Bug reported by Lute Kamstra in
91920         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91921
91922         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91923         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91924         course with correspondingly smaller numbers for tomorrow and
91925         yesterday.  From Tadayoshi Funaba.  Originally installed into
91926         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91927         coreutils merge?).
91928
91929 2003-08-31  Simon Josefsson  <jas@extundo.com>
91930
91931         * modules/timegm: New file.
91932         * MODULES.html.sh (func_all_modules): Add timegm.
91933
91934 2003-08-31  Simon Josefsson  <jas@extundo.com>
91935
91936         * m4/timegm.m4: New file.
91937
91938 2003-08-31  Simon Josefsson  <jas@extundo.com>
91939
91940         * lib/timegm.h: New file.
91941         * lib/timegm.c: New file.  Based on
91942         wget-1.8.2/src/http.c:mktime_from_utc.
91943
91944 2003-08-31  Karl Berry  <karl@gnu.org>
91945
91946         * lib/argp.h: update from libc.
91947
91948 2003-08-28  Bruno Haible  <bruno@clisp.org>
91949
91950         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91951         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91952         followed by '#define fnmatch fnmatch_posix' gives an error.
91953
91954 2003-08-28  Bruno Haible  <bruno@clisp.org>
91955
91956         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91957         warning on QNX, which defines O_BINARY to 000000.
91958
91959 2003-08-27  Jim Meyering  <jim@meyering.net>
91960
91961         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91962         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91963         would fail after 32.  Reported by Danny Levinson.  Details here:
91964         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91965
91966 2003-08-24  Bruno Haible  <bruno@clisp.org>
91967
91968         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91969         MSVC7 <stdio.h> is included later.
91970
91971 2003-08-22  Simon Josefsson  <jas@extundo.com>
91972
91973         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91974
91975 2003-08-20  Karl Berry  <karl@gnu.org>
91976
91977         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91978
91979 2003-08-20  Bruno Haible  <bruno@clisp.org>
91980
91981         * modules/progname: New file.
91982         * MODULES.html.sh (func_all_modules): Add progname.
91983
91984 2003-08-20  Bruno Haible  <bruno@clisp.org>
91985
91986         * lib/progname.h: New file, from GNU gettext.
91987         * lib/progname.c: New file, from GNU gettext.
91988         * lib/progreloc.c: New file, from GNU gettext.
91989
91990 2003-08-19  Jim Meyering  <jim@meyering.net>
91991
91992         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91993         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91994
91995 2003-08-19  Bruno Haible  <bruno@clisp.org>
91996
91997         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91998         more.
91999
92000 2003-08-19  Bruno Haible  <bruno@clisp.org>
92001
92002         * lib/xstrdup.c: Assume <string.h> exists.
92003
92004 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92005
92006         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92007         in makefile rules.
92008
92009 2003-08-18  Jim Meyering  <jim@meyering.net>
92010
92011         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92012         * m4/lib-ld.m4: Likewise.
92013
92014 2003-08-18  Jim Meyering  <jim@meyering.net>
92015
92016         * lib/setenv.h: Indent nested cpp directive.
92017         * lib/vasnprintf.c: Remove trailing blanks.
92018
92019 2003-08-17  Simon Josefsson  <jas@extundo.com>
92020
92021         * modules/xstrndup: New file.
92022         * MODULES.html.sh (func_all_modules): Add xstrndup.
92023
92024 2003-08-17  Simon Josefsson  <jas@extundo.com>
92025
92026         * modules/argp: Fix autoconf macro name. Add more dependencies.
92027
92028 2003-08-17  Simon Josefsson  <jas@extundo.com>
92029
92030         * m4/xstrndup.m4: New file.
92031
92032 2003-08-17  Simon Josefsson  <jas@extundo.com>
92033
92034         * m4/argp.m4: New file.
92035
92036 2003-08-17  Simon Josefsson  <jas@extundo.com>
92037             Bruno Haible  <bruno@clisp.org>
92038
92039         * lib/xstrndup.h: New file.
92040         * lib/xstrndup.c: New file.
92041
92042 2003-08-17  Bruno Haible  <bruno@clisp.org>
92043
92044         * modules/strndup (Files, Include): Add lib/strndup.h.
92045
92046 2003-08-17  Bruno Haible  <bruno@clisp.org>
92047
92048         * modules/euidaccess (Files): Add lib/euidaccess.h.
92049
92050 2003-08-17  Bruno Haible  <bruno@clisp.org>
92051
92052         * lib/strndup.h: New file.
92053
92054 2003-08-17  Bruno Haible  <bruno@clisp.org>
92055
92056         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92057         like AC_GNU_SOURCE.
92058         * modules/extensions (configure.ac): Comment out the invocation of
92059         gl_USE_SYSTEM_EXTENSIONS.
92060
92061 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92062
92063         Merges from coreutils, etc.
92064         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92065         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92066         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92067         fixing a typo.
92068         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92069         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92070
92071 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92072
92073         Document merge from coreutils.
92074         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92075         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92076         * modules/utime: Add m4/utimes-null.m4.
92077
92078 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92079
92080         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92081         space, undoing this 2003-08-12 change:
92082         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92083
92084 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92085
92086         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92087         strtoul.c from libc, undoing this 2003-08-12 change:
92088         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92089
92090 2003-08-16  Jim Meyering  <jim@meyering.net>
92091
92092         Merges from coreutils.
92093         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92094         prefix.  Adjust cache variables similarly.  Create 500 rather than
92095         just 300 files, to exercise bug on Darwin6.5, too.
92096         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92097         $missing_dir.
92098         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92099         AM_SYS_POSIX_TERMIOS.
92100         Reported by mkc@mathdogs.com.
92101         Also change use of $am_cv_sys_posix_termios
92102         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92103         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92104         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92105         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92106         in /proc/mounts until it finds one with matching device number.  This
92107         is unnecessary when the FILE argument *is* a mount point.  No stat call
92108         is necessary in that case.  So, disable the statvfs-testing code on
92109         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92110         as RedHat bug# 84846.
92111         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92112         to 1MB, so as not to render systems with no stack size limit (e.g.,
92113         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92114         Include <unistd.h>.  On some systems,
92115         it is required for the definition of _SC_PAGESIZE.
92116
92117 2003-08-16  Jim Meyering  <jim@meyering.net>
92118
92119         Merge from coreutils.
92120         * lib/xstrtoimax.c: #else #if -> #elif.
92121         * lib/xstrtoumax.c: Likewise.
92122
92123 2003-08-16  Jim Meyering  <jim@meyering.net>
92124
92125         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92126         * m4/utimes.m4: Removed.
92127         * m4/utimes-null.m4: Renamed from utimes.m4.
92128
92129         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92130         to 1MB, so as not to render systems with no stack size limit (e.g.,
92131         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92132         Include <unistd.h>.  On some systems,
92133         it is required for the definition of _SC_PAGESIZE.
92134
92135 2003-08-16  Jim Meyering  <jim@meyering.net>
92136         and Paul Eggert  <eggert@cs.ucla.edu>
92137
92138         Merges from coreutils, etc.
92139
92140         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92141         using the latest version from cvs.  This avoids problems with #line
92142         directives using a vendor (Sun) compiler.
92143         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92144         Don't set GETGROUPS_LIB here; now it's
92145         done via getgroups.m4's wrapper function.
92146         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92147         rather than just in sh-util/configure.in, so that the
92148         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92149         same.
92150         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92151         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92152         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92153         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92154         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92155         Remove code that is now done by the newly-required macros.
92156         Append $(EXEEXT) to DF_PROG.
92157         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92158         Do not invoke or require the following here,
92159         since prereq.m4 or some gnulib .m4 now does this for us:
92160         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92161         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92162         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92163         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92164         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92165         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92166         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92167         AC_FUNC_OBSTACK.
92168         Do not replace the following functions, as this is now the job
92169         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92170         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92171         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92172         atexit getpass, strdup, getpagesize.
92173         Replace 'raise'.
92174         Do not check for the following functions, as this is now the job
92175         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92176         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92177         setregid.
92178         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92179         Check for sys/sysctl.h.
92180         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92181         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92182         of checking for ssize_t ourselves.
92183
92184         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92185         Require every macro that gnulib/modules/* suggests for us.
92186         (jm_PREREQ_ADDEXT): New macro.
92187         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92188         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92189
92190         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92191         (gl_PHYSMEM): Use it.
92192         Also check for `table' function.
92193         Check for new headers and functions.
92194         Add check for sys/sysmp.h.
92195         With suggestions from Kaveh Ghazi.
92196         Ignore headers that are present but cannot be compiled.  This
92197         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92198         C 5.4.
92199
92200 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92201
92202         Document merge from coreutils.
92203         * modules/userspec: Depend on posixver.
92204         * modules/strftime: Depend on tzset.
92205
92206 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92207
92208         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92209         rather than tab, after '#' in shell-script copyright notices.
92210         Suggested by Bruno Haible.
92211
92212 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92213
92214         * config/srclist-update: Use three spaces, rather than tab, after '#'
92215         in shell-script copyright notices.  Suggested by Bruno Haible.
92216         Remove unnecessary parenthesization in regular expression.
92217
92218 2003-08-15  Jim Meyering  <jim@meyering.net>
92219
92220         Merge from coreutils.
92221         * lib/xgethostname.c: Include <stdlib.h>.
92222         (xghostname): Don't exit for anything other than memory-related
92223         failure; just return NULL.
92224         * lib/userspec.c: Include "posixver.h".
92225         (parse_user_spec): Accept `.' as a separator only
92226         in pre-POSIX-200112 mode.
92227         * lib/strtoimax.c: Use #elif rather than #else #if.
92228         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92229         Remove function, now that we can rely on a working tzset function.
92230         [!_LIBC]: Ensure that the required autoconf test has been run.
92231         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92232         Use underlying_strftime for %r.
92233         * lib/sha.c: Merge in some clean-up and optimization changes from
92234         glibc.
92235         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92236         Ensure that it is a multiple of 64.
92237         Rearrange loop exit tests so as to avoid performing an
92238         additional fread after encountering an error or EOF.
92239         * lib/realloc.c: Update copyright date.
92240
92241 2003-08-15  Jim Meyering  <jim@meyering.net>
92242         and Paul Eggert  <eggert@twinsun.com>
92243
92244         Merge from coreutils.
92245         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92246         member but strut utmpx does not.  Needed for AIX 4.3.3.
92247         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92248
92249 2003-08-15  Jim Meyering  <jim@meyering.net>
92250         and Paul Eggert  <eggert@cs.ucla.edu>
92251
92252         Merges from coreutils, etc.
92253         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92254         Require gl_FUNC_TZSET_CLOBBER.
92255         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92256         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92257         members.
92258
92259 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92260
92261         Help the merge from coreutils.
92262         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92263         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92264         * m4/tzset.m4: Use it too.
92265
92266 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92267
92268         * modules/tzset: New file.
92269
92270 2003-08-14  Jim Meyering  <jim@meyering.net>
92271
92272         Merges from coreutils.
92273         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92274         variable names, rather than @FNMATCH_H@.
92275         * modules/alloca: Likewise for $(ALLOCA_H).
92276
92277         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92278         the three copies of the literal target, `fnmatch.h'.
92279         * modules/alloca (alloca.h): Likewise.
92280
92281 2003-08-14  Jim Meyering  <jim@meyering.net>
92282
92283         Merge from coreutils.
92284         * m4/tzset.m4: New file.
92285         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92286         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92287         otherwise, AIX 5.1 systems would end up using the latter.
92288         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92289         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92290         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92291         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92292
92293 2003-08-14  Jim Meyering  <jim@meyering.net>
92294
92295         Merge from coreutils.
92296         * lib/obstack.h: Whitespace changes.
92297         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92298         and xcalloc return values.
92299         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92300         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92301         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92302         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92303         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92304         error from mntctl.
92305         Use mntctl's return value to drive the entry-processing loop, since
92306         we can't rely on the value of the vmt_length member in the last
92307         entry.  On some systems doing so could result in exhausting
92308         virtual memory.  Based in part on a patch from Mike Jetzer.
92309
92310 2003-08-14  Jim Meyering  <jim@meyering.net>
92311         and Paul Eggert  <eggert@twinsun.com>
92312
92313         Merges from coreutils, plus other fixes.
92314         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92315         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92316         for credits and details.  Thanks to Kaveh Ghazi for helping
92317         to keep these files in sync.
92318         (ARRAY_SIZE): Define it.
92319         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92320         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92321         (memcasecmp): Don't assume size_t fits in unsigned int.
92322         Remove casts and duplicate code.
92323         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92324         (memcpy): Remove definition.
92325         Merge in some clean-up and optimization changes from glibc.
92326         [BLOCKSIZE]: Move definition to top of file.
92327         Ensure that it is a multiple of 64.
92328         Rearrange loop exit tests so as to avoid performing an
92329         additional fread after encountering an error or EOF.
92330         * lib/md5.h (md5_uintptr): Define.
92331         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92332         return to the initial working directory.  Preserve errno
92333         for caller.
92334         * lib/idcache.c: Include "xalloc.h".
92335         (xmalloc, xrealloc): Remove decls.
92336         (getuser): Remove casts no longer required in C89.
92337         * lib/human.c: Include stdio.h, for sprintf.
92338         * lib/group-member.c: Include "xalloc.h".
92339         (xmalloc, xrealloc): Remove decls.
92340         (get_group_info): Remove casts no longer required in C89.
92341         * lib/getusershell.c (readname): Remove casts no longer required in
92342         C89.
92343         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92344         * lib/getline.c: Whitespace fix, from coreutils.
92345
92346 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92347
92348         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92349         Check for isascii.
92350
92351         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92352         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92353         Undo previous (whitespace-only) change.
92354
92355 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92356
92357         * lib/exclude.c: Include <ctype.h>
92358         (IN_CTYPE_DOMAIN): New macro.
92359         (is_space): New fn.
92360         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92361         and empty lines.
92362
92363         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92364         Undo previous (whitespace-only) change.
92365
92366 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92367
92368         * config/srclist-update: Change update back to the old behavior,
92369         leaving whitespace alone.  Use one 'sed' command rather than a
92370         pipeline.
92371         (fixlicense): Now a variable, not a function.
92372         (remove_trailing_blanks): Remove.
92373         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92374         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92375         Undo previous (whitespace-only) change.
92376
92377 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92378
92379         Merge from coreutils.
92380         * modules/euidaccess: Add lib_SOURCES, include for new
92381         file euidaccess.h
92382
92383 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92384
92385         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92386         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92387         Normalize leading white space and remove trailing white space.
92388
92389         Merge from coreutils
92390         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92391
92392         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92393         0.12.1.  These files are now being upgraded automatically by
92394         ../config/srclist-update.
92395
92396 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92397
92398         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92399         Normalize leading white space and remove trailing white space.
92400         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92401         notice, as per ../config/srclist-update.
92402
92403         Merge from coreutils.
92404         * lib/euidaccess.h: New file.
92405         * lib/euidaccess.c: Include it.
92406         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92407         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92408         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92409
92410 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92411
92412         * config/srclist-update: Add copyright notice.
92413         (remove_id_lines, remove_trailing_blanks): New constants.
92414         (fixfile): Use them to normalize spacing a bit in copied files.
92415         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92416         Normalize leading white space and remove trailing white space.
92417
92418         * config/texinfo.tex: Sync with texinfo.
92419
92420         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92421         strtoul.c from libc, to merge coreutils whitespace changes.
92422
92423         * config/srclist.txt: Get the following m4 files from gettext:
92424         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92425         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92426         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92427         wint_t.m4.
92428
92429 2003-08-12  Karl Berry  <karl@gnu.org>
92430
92431         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92432         been made.
92433
92434 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92435
92436         * modules/gnu-source, m4/gnu-source.m4:
92437         Remove; we're assuming Autoconf 2.54 or later now.
92438         Suggested by Bruno Haible.
92439         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92440
92441 2003-08-11  Bruno Haible  <bruno@clisp.org>
92442
92443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92444
92445 2003-08-11  Bruno Haible  <bruno@clisp.org>
92446
92447         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92448         (vasnprintf): Use it instead of wcslen.
92449
92450 2003-08-11  Bruno Haible  <bruno@clisp.org>
92451
92452         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92453         value to ensure that _Bool promotes to int. Use #define for _Bool when
92454         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92455
92456 2003-08-10  Karl Berry  <karl@gnu.org>
92457
92458         * lib/regex.h: update from libc (whitespace fix).
92459
92460 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92461
92462         Merge some files from coreutils.  These changes were
92463         originally made by Jim Meyering.
92464         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92465         many older Unixes require this.
92466         * lib/alloca.c (alloca): Remove cast to argument of free;
92467         no longer needed in C89.
92468         * lib/alloca_.h, regex.h: Fix white space to match
92469         what GNU indent does.
92470
92471 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92472
92473         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92474         apparently Emacs's Unicode mode got confused before my 2003-08-05
92475         checkin.
92476
92477 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92478
92479         * m4/extensions.m4: New file.
92480         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92481         Require gl_USE_SYSTEM_EXTENSIONS.
92482         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92483         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92484
92485 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92486
92487         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92488         * modules/extensions, modules/gnu-source: New files.
92489         * modules/timespec, modules/unlocked-io: Depend on extensions.
92490
92491 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92492
92493         * modules/restrict: New file.
92494         * MODULES.html.sh (func_all_modules): Add restrict.
92495         * modules/regex: Depend on restrict.
92496
92497 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92498
92499         * m4/restrict.m4: New file.
92500         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92501
92502 2003-08-07  Bruno Haible  <bruno@clisp.org>
92503
92504         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92505         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92506
92507 2003-08-07  Bruno Haible  <bruno@clisp.org>
92508
92509         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92510         makes the module 'getndelim2' compatible with the module 'getline'.
92511
92512 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92513
92514         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92515         byte with "\201" to avoid glitches when editing that source file
92516         with multi-gnome-terminal.
92517
92518 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92519
92520         * lib/bumpalloc.h: Remove.
92521
92522 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92523
92524         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92525         * modules/bumpalloc: Remove.
92526
92527 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92528
92529         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92530         GNU coding style.
92531
92532         Merge from coreutils.
92533         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92534         1. From glibc.
92535         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92536         from Karl Berry, implemented by Jim Meyering.
92537         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92538         from Dmitry V. Levin.
92539         Remove anachronistic cast of xrealloc.
92540         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92541         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92542         type. Otherwise, it wouldn't compile with at least /bin/cc on
92543         ymp-cray-unicos9.0.2.X.
92544         Combine two mostly-identical uses of alloca into one.
92545         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92546
92547 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92548
92549         [From Emacs.]
92550
92551         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92552         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92553         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92554         obsolete NLIST_NAME_UNION.
92555         [__GNU__]: Undef BSD and FSCALE.
92556         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92557
92558 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92559
92560         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92561         an enum type, so that it's guaranteed to promote to int.  See:
92562         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92563
92564 2003-08-03  Karl Berry  <karl@gnu.org>
92565
92566         * config/depcomp: update from automake.
92567
92568 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92569
92570         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92571         (strerror): Don't assume that a printable int fits in 14 bytes.
92572
92573 2003-07-31  Bruno Haible  <bruno@clisp.org>
92574
92575         * modules/getpass-gnu: New file.
92576         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92577
92578 2003-07-31  Bruno Haible  <bruno@clisp.org>
92579
92580         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92581
92582 2003-07-24  Karl Berry  <karl@gnu.org>
92583
92584         * config/missing: update from automake.
92585
92586 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92587             Bruno Haible  <bruno@clisp.org>
92588
92589         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92590         * lib/getline.c (getline, getdelim): Likewise.
92591         Remove _GNU_SOURCE define; now it's defined in config.h through
92592         m4/getline.m4.
92593
92594 2003-07-23  Karl Berry  <karl@gnu.org>
92595
92596         * config/config.sub: update from prep.
92597
92598 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92599
92600         * modules/xalloc (Depends-on): Add exitfail.
92601         * modules/xmemcoll: Likewise.
92602
92603 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92604
92605         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92606         over-parenthesization in macros.
92607
92608         Sync with coreutils.
92609
92610         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92611         required by C99.
92612
92613         Use `exit_failure' for xalloc and xmemcoll instead of their own
92614         private exit-failure variables.
92615         * lib/xalloc.h (xalloc_exit_failure): Remove.
92616         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92617         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92618         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92619         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92620         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92621
92622 2003-07-20  Jim Meyering  <jim@meyering.net>
92623
92624         * modules/closeout (Depends-on): Add exitfail.
92625         Suggestion from Bruno Haible.
92626
92627 2003-07-19  Karl Berry  <karl@gnu.org>
92628
92629         * config/config.sub: update from prep.
92630
92631 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92632
92633         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92634         Remove.
92635         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92636         to test that it can stand by itself.  Include "exitfail.h".
92637         Clients should set exit_failure instead.
92638         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92639
92640 2003-07-18  Bruno Haible  <bruno@clisp.org>
92641
92642         * modules/getndelim2: New file.
92643         * modules/getline: Share files with module getndelim2.
92644         * modules/getnline: Depend on getndelim2 instead of sharing files with
92645         it. Add getnline.c to lib_SOURCES.
92646         * MODULES.html.sh (func_all_modules): Add getndelim2.
92647
92648 2003-07-18  Bruno Haible  <bruno@clisp.org>
92649
92650         * m4/getndelim2.m4: New file.
92651         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92652         invoke gl_PREREQ_GETNDELIM2.
92653         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92654         gl_PREREQ_GETNDELIM2.
92655         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92656         gl_GETNDELIM2.
92657
92658 2003-07-18  Bruno Haible  <bruno@clisp.org>
92659
92660         * lib/getndelim2.h: New file.
92661         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92662         getndelim2.h.
92663         (getndelim2): Make non-static. Change return type to ssize_t.
92664         * lib/getline.h: Change argument names.
92665         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92666         * lib/getnline.c: Include getndelim2.h.
92667
92668 2003-07-18  Andreas Schwab  <schwab@suse.de>
92669
92670         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92671
92672 2003-07-17  Karl Berry  <karl@gnu.org>
92673
92674         * config/config.sub: update from prep.
92675
92676 2003-07-17  Bruno Haible  <bruno@clisp.org>
92677
92678         * modules/getnline: New file.
92679         * modules/getline: Add lib/getndelim2.c to source file list.
92680         * MODULES.html.sh (func_all_modules): Add getnline.
92681
92682 2003-07-17  Bruno Haible  <bruno@clisp.org>
92683
92684         * m4/getnline.m4: New file.
92685
92686 2003-07-17  Bruno Haible  <bruno@clisp.org>
92687
92688         * m4/Makefile.am.in: Remove file.
92689         * m4/Makefile.am: Remove file.
92690         * m4/Makefile.in: Remove file.
92691
92692 2003-07-17  Bruno Haible  <bruno@clisp.org>
92693
92694         * lib/getnline.h: New file.
92695         * lib/getnline.c: New file.
92696         * lib/getndelim2.c: New file, extracted from getline.c.
92697         (getndelim2): Renamed from getdelim2, with added nmax argument.
92698         * lib/getline.c: Include getndelim2.c.
92699         (getdelim2): Moved out to getndelim2.c.
92700         (getline, getdelim): Update.
92701
92702 2003-07-17  Bruno Haible  <bruno@clisp.org>
92703
92704         * lib/Makefile.am: Remove file.
92705         * lib/Makefile.in: Remove file.
92706
92707 2003-07-17  Bruno Haible  <bruno@clisp.org>
92708
92709         * configure.in: Remove file.
92710         * Makefile.in: Remove file.
92711
92712 2003-07-17  Bruno Haible  <bruno@clisp.org>
92713
92714         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92715
92716 2003-07-16  Karl Berry  <karl@gnu.org>
92717
92718         * config/srclist-update: was running fixlicense twice, which caused
92719                 texinfo.tex to be nullified for some reason.  Simplify,
92720                 $gplsrc is no longer needed as far as I can see?
92721
92722 2003-07-16  Jim Meyering  <jim@meyering.net>
92723
92724         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92725
92726 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92727
92728         * config/srclist.txt: Get the following files from gettext-runtime/intl
92729         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92730         ref-del.sin.  From Bruno Haible.
92731         * config/srclist-update (fixfile): Change grep pattern again, since the
92732         previous fix didn't work (there was another trailing $).  Use
92733         '[$]' to escape the $s.
92734
92735 2003-07-15  Karl Berry  <karl@gnu.org>
92736
92737         * lib/vasnprintf.c: update from gettext.
92738
92739 2003-07-15  Karl Berry  <karl@gnu.org>
92740
92741         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92742         gets expanded when surrounded by '$'.
92743
92744 2003-07-15  Jim Meyering  <jim@meyering.net>
92745
92746         * modules/save-cwd: Don't depend on error.  From Derek Price.
92747
92748 2003-07-15  Jim Meyering  <jim@meyering.net>
92749
92750         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92751
92752 2003-07-14  Simon Josefsson  <jas@extundo.com>
92753
92754         * modules/mempcpy: New file.
92755         * MODULES.html.sh (func_all_modules): Add mempcpy.
92756
92757 2003-07-14  Simon Josefsson  <jas@extundo.com>
92758
92759         * m4/mempcpy.m4: New file.
92760
92761 2003-07-14  Simon Josefsson  <jas@extundo.com>
92762
92763         * lib/mempcpy.h: New file.
92764         * lib/mempcpy.c: New file.
92765
92766 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92767
92768         * modules/getdate, modules/posixtm: Depend on mktime.
92769
92770 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92771
92772         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92773         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92774         unicodeio.c, unicodeio.h, unlocked-io.h:
92775         Switch from LGPL to GPL.
92776
92777 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92778
92779         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92780         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92781         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92782         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92783         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92784         updated automatically by ../config/srclist-update.  This changes
92785         their license from LPGL to GPL.
92786
92787 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92788
92789         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92790         assumed to refer to the root of the most recent stable gettext version.
92791         * config/srclistvars.sh: Add defaults for eggert.
92792         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92793         Match "This program" as well as "The program".  This is needed
92794         for gettext.
92795
92796 2003-07-14  Jim Meyering  <jim@meyering.net>
92797
92798         Don't emit diagnostics.  Let callers do that.
92799         * lib/save-cwd.c: Don't include "error.h".
92800         (save_cwd): Don't call error.  Ensure that errno is valid
92801         when returning nonzero.
92802
92803         * lib/save-cwd.h (restore_cwd): Update prototype.
92804         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92805         Simplify.  Don't call error upon failure.  Let callers do that.
92806         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92807         when auditing is enabled.  But don't bother updating the #if.
92808
92809 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92810
92811         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92812         it breaks C++ compilation.
92813         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92814
92815 2003-07-10  Simon Josefsson  <jas@extundo.com>
92816
92817         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92818
92819 2003-07-10  Jim Meyering  <jim@meyering.net>
92820
92821         * m4/clock_time.m4: Remove trailing blank.
92822         * m4/intmax_t.m4: Likewise.
92823
92824 2003-07-10  Jim Meyering  <jim@meyering.net>
92825
92826         * lib/vasnprintf.c: Remove trailing blanks.
92827         Make cpp indentation consistent.
92828
92829 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92830
92831         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92832         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92833         Switch from LGPL to GPL.
92834
92835 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92836
92837         * config/srclist.txt: Sort sublists.  Add
92838         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92839         that differ from gnulib for one reason or another; we'd like this list
92840         to be smaller but for now let's document what we have.
92841
92842 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92843
92844         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92845         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92846         and sweeter "eval x=$x".
92847         * config/srclist.txt: Get lib/argp* from glibc.
92848
92849 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92850
92851         * lib/mktime.c: Fix some boundary cases and remove need for floating
92852         point.
92853
92854         Issue a compile-time diagnostic if time_t is floating point, or if
92855         two's complement arithmetic is not in effect, or if arithmetic
92856         right shift does not propagate the sign.  These assumptions were
92857         all in the original code but they weren't checked.
92858
92859         (TIME_T_MIDPOINT, verify): New macros.
92860         (__isleap): Remove; it has integer overflow problems.
92861         (leapyear): New function, without those problems.
92862         (ydhms_tm_diff): Remove; splitting into two parts.
92863         (ydhms_diff): New function, containing the arithmetic part of
92864         the old ydhms_tm_diff function.  Issue a compile-time
92865         diagnostic if we are not using C99 integer division.
92866         Avoid casts when possible.
92867         (guess_time_tm): New function, containing the checking part of
92868         the old ydhms_tm_diff function.  Return the new value, rather than
92869         the difference between it and the old.  Accept a new argument T
92870         so that *T specifies the old value.  Check for overflow in the result.
92871
92872         (__mktime_internal): Use a time_t offset, not a long int offset.
92873         This undoes the 2003-06-04 change, which is no longer needed now
92874         that we have better overflow checking.
92875         (localtime_offset): Likewise.
92876
92877         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92878         and long are 64-bit but int is only 32-bit.
92879         (ydhms_diff): Use long int to store year1 and yday1.
92880         Issue a compile-time diagnostic if long int is not wide enough.
92881
92882         (__mktime_internal): Use long int to store adjusted year and yday.
92883         Use plain C rather than preprocessor commands, if that doesn't
92884         affect efficiency.
92885         Check for overflow (and try to repair) after each probe
92886         rather than checking only at the very end.  This avoids some bugs
92887         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92888         does not equal GMT offset at maximum time).
92889         Use integer to check for overflow rather than floating point; this
92890         is more portable to non-IEEE hosts, and is a tad faster.
92891         When we detect that we are oscillating between two values,
92892         don't check whether tm_isdst has the requested value, since
92893         we already know the answer.  When tm_isdst has the wrong value,
92894         use a different heuristic to find the right one, based on the
92895         extreme values actually observed in practice in tz2003a,
92896         rather than the (overly optimistic) "previous 3 calendar quarters".
92897
92898         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92899         "T const" to accommodate glibc style.
92900         (check_result): Use less-confusing report format.  "long" -> "long int.
92901         (main): Likewise.
92902         Don't loop if the iteration overflows time_t.
92903         Allow a negative step in the iteration.
92904
92905 2003-07-06  Karl Berry  <karl@gnu.org>
92906
92907         * config/depcomp: update from automake.
92908         * config/config.sub: update from prep.
92909
92910 2003-07-03  Karl Berry  <karl@gnu.org>
92911
92912         * config/config.guess: update from prep.
92913
92914 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92915
92916         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92917         xreadlink.c now includes it unconditionally.
92918
92919 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92920
92921         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92922         having it depend on HAVE_SYS_TYPES_H.
92923
92924 2003-07-01  Bruno Haible  <bruno@clisp.org>
92925
92926         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92927         <sys/types.h> should be sufficient.
92928         Reported by Paul Eggert.
92929
92930 2003-06-26  Karl Berry  <karl@gnu.org>
92931
92932         * config/depcomp: update from automake.
92933
92934 2003-06-26  Bruno Haible  <bruno@clisp.org>
92935
92936         * modules/human: Depend on module stdbool.
92937
92938 2003-06-25  Bruno Haible  <bruno@clisp.org>
92939
92940         * modules/readlink: New file.
92941         * modules/xreadlink: Depend on it.
92942         * MODULES.html.sh (func_all_modules): Add readlink.
92943
92944 2003-06-25  Bruno Haible  <bruno@clisp.org>
92945
92946         * m4/readlink.m4: New file.
92947
92948 2003-06-25  Bruno Haible  <bruno@clisp.org>
92949
92950         * lib/readlink.c: New file.
92951
92952 2003-06-22  Karl Berry  <karl@gnu.org>
92953
92954         * config/srclist.txt: update mkinstalldirs from automake.
92955         * config/mkinstalldirs: update.
92956
92957 2003-06-22  Bruno Haible  <bruno@clisp.org>
92958
92959         Portability to mingw32.
92960         * m4/ssize_t.m4: New file, from GNU gettext.
92961         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92962         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92963
92964 2003-06-22  Bruno Haible  <bruno@clisp.org>
92965
92966         * modules/safe-read: Add m4/ssize_t.m4.
92967         * modules/xreadlink: Add m4/ssize_t.m4.
92968
92969 2003-06-20  Bruno Haible  <bruno@clisp.org>
92970
92971         Assume C89, so PARAMS isn't needed.
92972         * lib/unicodeio.h (PARAMS): Remove.
92973         * lib/unicodeio.c: Don't use PARAMS.
92974
92975 2003-06-18  Karl Berry  <karl@gnu.org>
92976
92977         * config/config.{guess,sub}: update from prep.
92978
92979 2003-06-18  Jim Meyering  <jim@meyering.net>
92980
92981         Merge changes from coreutils.
92982         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92983         Remove explicit declarations of xmalloc and realloc.
92984         Include xalloc.h.
92985         (read_utmp): Remove anachronistic cast of xmalloc.
92986
92987 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92988
92989         Assume C89, so PARAMS isn't needed.
92990         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92991         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92992         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92993         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92994         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92995         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92996         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92997         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92998         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92999         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93000         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93001         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93002         no longer needed. Anyway, config.h should always be included before any
93003         other file.
93004
93005 2003-06-11  Simon Josefsson  <jas@extundo.com>
93006
93007         * modules/sysexits: New file.
93008         * MODULES.html.sh (func_all_modules): Add sysexits.
93009
93010 2003-06-11  Simon Josefsson  <jas@extundo.com>
93011
93012         * lib/sysexit_.h: New file.
93013
93014 2003-06-11  Derek Price  <derek@ximbiot.com>
93015
93016         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93017         necessary.
93018
93019 2003-06-11  Bruno Haible  <bruno@clisp.org>
93020
93021         * m4/sysexits.m4: New file.
93022
93023 2003-06-10  Simon Josefsson  <jas@extundo.com>
93024
93025         * lib/argp.h: New file, from glibc.
93026         * lib/argp-ba.c: New file, from glibc.
93027         * lib/argp-eexst.c: New file, from glibc.
93028         * lib/argp-fmtstream.c: New file, from glibc.
93029         * lib/argp-fmtstream.h: New file, from glibc.
93030         * lib/argp-fs-xinl.c: New file, from glibc.
93031         * lib/argp-help.c: New file, from glibc.
93032         * lib/argp-namefrob.h: New file, from glibc.
93033         * lib/argp-parse.c: New file, from glibc.
93034         * lib/argp-pv.c: New file, from glibc.
93035         * lib/argp-pvh.c: New file, from glibc.
93036         * lib/argp-xinl.c: New file, from glibc.
93037
93038 2003-06-10  Simon Josefsson  <jas@extundo.com>
93039
93040         * modules/strchrnul: New file.
93041
93042 2003-06-10  Simon Josefsson  <jas@extundo.com>
93043
93044         * modules/argp: New file.
93045
93046 2003-06-10  Simon Josefsson  <jas@extundo.com>
93047
93048         * m4/strchrnul.m4: New file.
93049
93050 2003-06-10  Simon Josefsson  <jas@extundo.com>
93051
93052         * lib/strchrnul.h: New file.
93053         * lib/strchrnul.c: New file.
93054
93055 2003-06-10  Bruno Haible  <bruno@clisp.org>
93056
93057         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93058
93059 2003-06-07  Karl Berry  <karl@gnu.org>
93060
93061         * config/config.{guess,sub}: update from prep.
93062
93063 2003-06-07  Jim Meyering  <jim@meyering.net>
93064
93065         * modules/strtod: Use $(...) notation, not @...@ for
93066         AC_REPLACE'd variables.
93067         * modules/localcharset: Likewise.
93068
93069 2003-06-07  Jim Meyering  <jim@meyering.net>
93070
93071         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93072         in place of my name in the copyright comment.
93073         Remove definition and uses of __P.
93074
93075         From coreutils.
93076         * lib/stat.c: Don't declare xmalloc explicitly.
93077         Instead, include "xalloc.h".
93078         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93079         xrealloc, and xcalloc return values.
93080         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93081         Improve comment.
93082         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93083
93084 2003-06-07  Bruno Haible  <bruno@clisp.org>
93085
93086         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93087         avoid AC_CONFIG_LINKS.
93088         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93089         fnmatch.h, to avoid AC_CONFIG_LINKS.
93090         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93091
93092 2003-06-07  Bruno Haible  <bruno@clisp.org>
93093
93094         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93095         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93096         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93097         directory.
93098         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93099         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93100         directory.
93101
93102 2003-06-06  Jim Meyering  <jim@meyering.net>
93103
93104         Merge from coreutils.
93105         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93106         Consolidate declarations and initializations of *_base* locals.
93107
93108         Merge from coreutils.
93109         This avoids a core dump on systems without GNU putenv,
93110         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93111         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93112         (unsetenv): New static function, from GNU libc.
93113         (rpl_putenv): Use it.
93114
93115         * lib/modechange.c: Remove trailing blanks.
93116
93117         Merge from coreutils.
93118         * lib/fsusage.c: Remove declaration of statfs.
93119         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93120
93121         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93122
93123 2003-06-06  Jim Meyering  <jim@meyering.net>
93124
93125         * lib/stdbool_.h: Renamed from stdbool.h.in.
93126
93127 2003-06-06  Jim Meyering  <jim@meyering.net>
93128             Bruno Haible  <bruno@clisp.org>
93129
93130         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93131         Adjust Makefile.am snippet not to redirect directly to target.
93132         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93133
93134 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93135
93136         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93137         mismatch, look in future quarters as well as past.  This fixes a
93138         bug when processing fall-backwards gaps immediately after a long
93139         period of daylight-saving time.
93140
93141         * lib/mktime.c: Assume freestanding C89 or better.
93142         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93143         (__P): Remove; not used.
93144         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93145         (mktime, not_equal_tm, print_tm, check_result,
93146         main): Use prototypes.  Use const * where appropriate.
93147         (main): Fix typo in testing code that uncovered by above changes.
93148         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93149
93150 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93151
93152         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93153         locale.h, localeconv.  This merges changes from coreutils.
93154
93155         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93156         It can be removed after the next Autoconf is released.
93157         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93158         needed.
93159
93160 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93161
93162         * lib/mktime.c: Fix Debian bug 177940
93163         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93164         (localtime_offset): Now long int, not time_t, because we want it
93165         to be guaranteed to be signed.  All uses changed.
93166         (__mktime_internal): If overflow would occur when adding offset,
93167         don't add it.
93168
93169         Merge 'human' changes from coreutils.  Rewrite to support
93170         locale-specific notations like thousands separators.
93171         * lib/human.c: Simplify authorship notice.
93172         Include human.h immediately after config.h.
93173         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93174         <limits.h>: Do not include, since human.h does.
93175         (SIZE_MAX, UINTMAX_MAX): New macros.
93176         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93177         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93178         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93179         (power_letter): Renamed from suffixes.
93180         (generate_suffix_backwards): Remove.
93181         (adjust_value): Now takes int style (because of human.h changes)
93182         and long double value (for greater precision on some platforms).
93183         (group_number): New function.
93184         (human_readable): Use it.  Use integer options, not enum.
93185         Put the options before the sizes in the arg list.
93186         Support all the new options.
93187         The old human_readable function has been removed;
93188         use inttostr.h instead.
93189         (human_readable, default_block_size, humblock):
93190         Use uintmax_t, not int, for block sizes.
93191         (human_readable_inexact, block_size_types): Remove.
93192         (block_size_opts): New constant.
93193         (human_options): Renamed from human_block_size, with new signature
93194         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93195         * lib/human.h: Add copyright and authorship notice.
93196         Include <limits.h> and <stdbool.h> unconditionally.
93197         (PARAMS): Remove.  All uses removed.
93198         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93199         (enum human_inexact_style): Remove tag; now a nameless enum.
93200         (human_floor, human_ceiling, human_round_to_even): Now have
93201         values 2, 0, 1 rather than -1, 1, 0.
93202         (human_group_digits, human_suppress_point_zero, human_autoscale,
93203         human_base_1024, human_SI, human_B): New constants.
93204         (human_readable_inexact, human_block_size): Remove.
93205         (human_readable): Size args are now uintmax_t, not int.
93206         (human_options): New decl.
93207
93208         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93209         unnecessary now that we assume C89 or better.  This change
93210         imported from coreutils.
93211
93212         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93213         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93214         in the 2003-05-30 sync from glibc.
93215
93216         .h files should stand alone, but we shouldn't include <sys/types.h>
93217         if we can get away with just <stddef.h>.
93218
93219         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93220         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93221         rather than <sys/types.h>, as we merely need size_t.
93222         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93223         to get size_t.
93224         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93225         Include <stdio.h>, to get FILE.
93226         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93227         memcasecmp.h has included <stddef.h> and all we need is size_t.
93228         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93229         our interface, instead of including <sys/types.h>
93230
93231 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93232
93233         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93234         now, as glibc mktime is buggy on non-glibc systems.
93235
93236 2003-06-03  Karl Berry  <karl@gnu.org>
93237
93238         * config/config.sub: update from prep.
93239
93240 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93241
93242         [from coreutils]
93243         Fix some minor time-related bugs with POSIX time arguments.
93244         Some valid time stamps were being rejected (notably -1, and
93245         time stamps before 1900 on 64-bit hosts).  And some invalid
93246         time stamps were being accepted, e.g. September 31.
93247
93248         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93249         that we can return (time_t) -1 successfully.
93250         * lib/posixtm.c: Likewise.
93251         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93252         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93253         (t): Remove static var.
93254         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93255         of static var.  All uses changed.
93256         (year): Do not reject years before 1900; they can occur with
93257         64-bit time_t.
93258         (posix_time_parse): Do not check for out-of-range components;
93259         that is now the caller's responsibility, since our checks were
93260         only approximations.
93261         (posixtime): Use mktime to check for out-of-range components,
93262         since it knows them exactly.
93263         If mktime returns (time_t) -1, check whether an error actually occurred
93264         by invoking localtime on -1.
93265         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93266         posixtime failures better.
93267         Improve the test data (in comments only).
93268
93269 2003-06-02  Karl Berry  <karl@gnu.org>
93270
93271         * config/mkinstalldirs (version): new variable.
93272         (--version): new option.
93273         (usage): improve message.
93274
93275 2003-05-30  Karl Berry  <karl@gnu.org>
93276
93277         * lib/mktime.c: update from libc.
93278
93279 2003-05-30  Bruno Haible  <bruno@clisp.org>
93280
93281         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93282         * config/config.rpath: Upgrade to gettext-0.12.1.
93283
93284 2003-05-30  Bruno Haible  <bruno@clisp.org>
93285
93286         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93287         * m4/nls.m4: New file, from gettext-0.12.1.
93288         * m4/po.m4: New file, from gettext-0.12.1.
93289         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93290
93291 2003-05-30  Bruno Haible  <bruno@clisp.org>
93292
93293         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93294         * lib/localcharset.h: Likewise.
93295         * lib/localcharset.c: Likewise.
93296
93297 2003-05-29  Karl Berry  <karl@gnu.org>
93298
93299         * config/config.rpath: update from gettext.
93300
93301 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93302
93303         Assume the headers required for C89 freestanding compilers.
93304         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93305         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93306         * m4/human.m4 (gl_HUMAN): Likewise.
93307         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93308         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93309         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93310         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93311         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93312         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93313
93314 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93315
93316         Assume the headers required for C89 freestanding compilers.
93317         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93318         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93319         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93320         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93321         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93322         define, since <limits.h> is guaranteed to do that.
93323         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93324         * lib/exclude.c: Include <stdbool.h> unconditionally.
93325         * lib/tempname.c: Include <stddef.h> unconditionally.
93326         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93327         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93328         <stddef.h> does that.
93329         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93330         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93331         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93332         needed.
93333         * lib/xstrtol.c: Likewise.
93334         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93335         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93336
93337         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93338         warnings on some platforms.
93339
93340         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93341         arbitrarily.
93342
93343 2003-05-26  Jim Meyering  <jim@meyering.net>
93344
93345         Merge in a change from coreutils:
93346         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93347         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93348         that condition, rather than `-1' which is slightly misleading.
93349         Change the name of the cache variable to have the gl_ prefix.
93350         Prompted by a patch from Richard Dawe for DJGPP.
93351
93352 2003-05-24  Karl Berry  <karl@gnu.org>
93353
93354         * config/config.guess: update from prep.
93355
93356 2003-05-22  Karl Berry  <karl@gnu.org>
93357
93358         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93359
93360 2003-05-20  Karl Berry  <karl@gnu.org>
93361
93362         * config/config.guess: update from prep.
93363
93364 2003-05-18  Karl Berry  <karl@gnu.org>
93365
93366         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93367         might actually be set by the user.
93368
93369         * config/depcomp, install-sh, mdate-sh: update from automake.
93370
93371 2003-05-17  Bruno Haible  <bruno@clisp.org>
93372
93373         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93374         invalid expansion for AC_EGREP_CPP.
93375         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93376         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93377         Suggested by Akim Demaille <akim@epita.fr> in
93378         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93379
93380 2003-05-12  Jim Meyering  <jim@meyering.net>
93381
93382         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93383         the space-padded-by-default conversion specifiers, %e, %k, %l.
93384
93385 2003-05-12  Bruno Haible  <bruno@clisp.org>
93386
93387         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93388         the string is longer than 4 KB.
93389
93390 2003-05-11  Karl Berry  <karl@gnu.org>
93391
93392         * config/config.{guess,sub}: update from prep.
93393
93394 2003-05-09  Bruno Haible  <bruno@clisp.org>
93395
93396         * modules/error: Add m4/strerror_r.m4 to file list.
93397
93398 2003-05-03  Bruno Haible  <bruno@clisp.org>
93399
93400         Upgrade to Unicode-4.0.
93401         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93402         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93403         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93404         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93405         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93406         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93407         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93408         Change width of U+E0100..U+E01EF from 1 to 0.
93409
93410 2003-04-25  Jim Meyering  <jim@meyering.net>
93411
93412         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93413         of type size_t, not int.
93414
93415 2003-04-25  Bruno Haible  <bruno@clisp.org>
93416
93417         * lib/copy-file.c: Include <stddef.h>, for size_t.
93418
93419 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93420
93421         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93422         code which expansion is under static control.  Patch imported from
93423         Akim Demaille's patch to Bison; see
93424         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93425
93426 2003-04-14  Bruno Haible  <bruno@clisp.org>
93427
93428         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93429
93430 2003-04-11  Jim Meyering  <jim@meyering.net>
93431
93432         Merge changes from Coreutils.
93433
93434         2003-03-22  Jim Meyering  <jim@meyering.net>
93435
93436         * lib/strftime.c (widen): Cast alloca return value to proper type.
93437
93438         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93439
93440         From GNU libc.
93441         * lib/strftime.c (my_strftime): Handle very large width
93442         specifications for numeric values correctly.  Improve checks for
93443         overflow.
93444
93445         2003-01-19  Jim Meyering  <jim@meyering.net>
93446
93447         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93448         definitions.
93449         (nl_get_alt_digit) [! defined my_strftime]: Define.
93450         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93451         _nl_get_alt_digit and _nl_get_walt_digit.
93452
93453         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93454         libc. These changes have no effect outside of _LIBC.
93455
93456 2003-04-10  Bruno Haible  <bruno@clisp.org>
93457
93458         * modules/findprog: New file.
93459         * MODULES.html.sh (func_all_modules): Add it.
93460
93461 2003-04-10  Bruno Haible  <bruno@clisp.org>
93462
93463         * m4/findprog.m4: New file.
93464         * m4/eaccess.m4: New file.
93465
93466 2003-04-10  Bruno Haible  <bruno@clisp.org>
93467
93468         * lib/findprog.h: New file, from GNU gettext.
93469         * lib/findprog.c: New file, from GNU gettext.
93470
93471 2003-04-05  Jim Meyering  <jim@meyering.net>
93472
93473         Merge changes from Coreutils.
93474
93475         * lib/exclude.h (PARAMS): Remove definition and uses.
93476         * lib/exclude.c: Remove uses of `PARAMS'.
93477
93478         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93479         Add test-cases for DOS filenames. Declare program_name.
93480         (main): Set up program_name.  Patch by Rich Dawe.
93481
93482         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93483         error from mntctl.
93484         Use mntctl's return value to drive the entry-processing loop, since
93485         we can't rely on the value of the vmt_length member in the last
93486         entry.  On some systems doing so could result in exhausting
93487         virtual memory.  Based in part on a patch from Mike Jetzer.
93488
93489 2003-04-04  Bruno Haible  <bruno@clisp.org>
93490
93491         * modules/linebreak: New file.
93492         * MODULES.html.sh (func_all_modules): Add it.
93493
93494 2003-04-04  Bruno Haible  <bruno@clisp.org>
93495
93496         * m4/linebreak.m4: New file.
93497
93498 2003-04-04  Bruno Haible  <bruno@clisp.org>
93499
93500         * lib/linebreak.h: New file, from GNU gettext.
93501         * lib/linebreak.c: New file, from GNU gettext with slight
93502         modifications.
93503         * lib/lbrkprop.h: New file, from GNU gettext.
93504
93505 2003-04-03  Bruno Haible  <bruno@clisp.org>
93506
93507         * modules/utf8-ucs4: New file.
93508         * modules/utf16-ucs4: New file.
93509         * modules/ucs4-utf8: New file.
93510         * modules/ucs4-utf16: New file.
93511         * MODULES.html.sh (func_all_modules): Add them.
93512
93513 2003-04-03  Bruno Haible  <bruno@clisp.org>
93514
93515         * m4/utf-ucs4.m4: New file.
93516         * m4/ucs4-utf.m4: New file.
93517
93518 2003-04-03  Bruno Haible  <bruno@clisp.org>
93519
93520         * lib/utf8-ucs4.h: New file, from GNU gettext.
93521         * lib/utf16-ucs4.h: New file, from GNU gettext.
93522         * lib/ucs4-utf8.h: New file, from GNU gettext.
93523         * lib/ucs4-utf16.h: New file, from GNU gettext.
93524
93525 2003-04-02  Bruno Haible  <bruno@clisp.org>
93526
93527         * modules/binary-io: New file.
93528         * MODULES.html.sh (func_all_modules): Add it.
93529
93530 2003-04-02  Bruno Haible  <bruno@clisp.org>
93531
93532         * lib/binary-io.h: New file, from GNU gettext.
93533
93534 2003-04-01  Bruno Haible  <bruno@clisp.org>
93535
93536         * modules/pathname: New file.
93537         * MODULES.html.sh (func_all_modules): Add it.
93538
93539 2003-04-01  Bruno Haible  <bruno@clisp.org>
93540
93541         * lib/pathname.h: New file, from GNU gettext.
93542         * lib/concatpath.c: New file, from GNU gettext.
93543
93544 2003-03-30  Bruno Haible  <bruno@clisp.org>
93545
93546         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93547
93548 2003-03-30  Bruno Haible  <bruno@clisp.org>
93549
93550         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93551         function chown() doesn't exist.
93552
93553 2003-03-28  Bruno Haible  <bruno@clisp.org>
93554
93555         * modules/copy-file: New file.
93556         * MODULES.html.sh (func_all_modules): Add it.
93557
93558 2003-03-28  Bruno Haible  <bruno@clisp.org>
93559
93560         * m4/copy-file.m4: New file.
93561
93562 2003-03-28  Bruno Haible  <bruno@clisp.org>
93563
93564         * lib/copy-file.h: New file, from GNU gettext.
93565         * lib/copy-file.c: New file, from GNU gettext.
93566
93567 2003-03-18  Jim Meyering  <jim@meyering.net>
93568
93569         * lib/quote.c (quote_n): Fix typo in comment.
93570
93571 2003-03-18  Bruno Haible  <bruno@clisp.org>
93572
93573         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93574         checking.
93575         * m4/onceonly_2_57.m4: Likewise.
93576
93577 2003-03-17  Bruno Haible  <bruno@clisp.org>
93578
93579         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93580         (m4_quote): Remove macro.
93581         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93582
93583 2003-03-14  Jim Meyering  <jim@meyering.net>
93584
93585         Merge changes from Coreutils.
93586         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93587         to be const, in order to avoid warnings.
93588         (obstack_room): Likewise.
93589         (obstack_empty_p): Likewise.
93590
93591 2003-03-14  Bruno Haible  <bruno@clisp.org>
93592
93593         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93594         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93595
93596 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93597
93598         Merge changes from Bison.
93599         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93600         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93601         when compiling Bison 1.875's `bitset bset = obstack_alloc
93602         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93603         * lib/hash.c: Include <stdbool.h> unconditionally.
93604
93605 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93606
93607         * m4/onceonly.m4 (m4_quote): New macro.
93608         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93609         Quote AC_FOREACH variable-expansions properly.
93610
93611 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93612
93613         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93614
93615 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93616
93617         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93618         Reported by Bruce Becker; see:
93619         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93620
93621 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93622             Bruno Haible  <bruno@clisp.org>
93623
93624         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93625         Reported by John Hughes, see
93626         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93627
93628 2003-02-20  Bruno Haible  <bruno@clisp.org>
93629
93630         * MODULES.html.sh (func_all_modules): Add poll.
93631
93632 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93633
93634         * modules/poll: New file.
93635
93636 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93637
93638         * lib/poll_.h: New file.
93639         * lib/poll.c: New file.
93640
93641 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93642
93643         * m4/poll.m4: New file.
93644
93645 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93646
93647         * modules/mathl: New file.
93648
93649 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93650
93651         * lib/mathl.h: New file.
93652         * lib/acosl.c: New file.
93653         * lib/asinl.c: New file.
93654         * lib/atanl.c: New file.
93655         * lib/ceill.c: New file.
93656         * lib/cosl.c: New file.
93657         * lib/expl.c: New file.
93658         * lib/floorl.c: New file.
93659         * lib/frexpl.c: New file.
93660         * lib/ldexpl.c: New file.
93661         * lib/logl.c: New file.
93662         * lib/sincosl.c: New file.
93663         * lib/sinl.c: New file.
93664         * lib/sqrtl.c: New file.
93665         * lib/tanl.c: New file.
93666         * lib/trigl.c: New file.
93667         * lib/trigl.h: New file.
93668
93669 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93670
93671         * m4/mathl.m4: New file.
93672
93673 2003-02-18  Bruno Haible  <bruno@clisp.org>
93674
93675         * MODULES.html.sh (func_all_modules): Add mathl.
93676
93677 2003-02-17  Bruno Haible  <bruno@clisp.org>
93678
93679         * modules/mkdtemp: New module.
93680         * MODULES.html.sh (func_all_modules): Add it.
93681
93682 2003-02-17  Bruno Haible  <bruno@clisp.org>
93683
93684         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93685
93686 2003-02-17  Bruno Haible  <bruno@clisp.org>
93687
93688         * lib/mkdtemp.h: New file, from GNU gettext.
93689         * lib/mkdtemp.c: New file, from GNU gettext.
93690
93691 2003-02-02  Jim Meyering  <jim@meyering.net>
93692
93693         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93694         e.g. glibc-2.2.93.
93695
93696 2003-01-31  Bruno Haible  <bruno@clisp.org>
93697
93698         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93699         'rpl_rename'.
93700         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93701         'rpl_strnlen'.
93702         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93703         'rpl_strtod'.
93704         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93705         'rpl_utime'.
93706
93707 2003-01-31  Bruno Haible  <bruno@clisp.org>
93708
93709         * lib/rename.c: #undef rename before defining rpl_rename.
93710         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93711
93712 2003-01-30  Bruno Haible  <bruno@clisp.org>
93713
93714         * modules/vasnprintf, modules/vasprintf: New modules.
93715         * MODULES.html.sh (func_all_modules): Add them.
93716
93717 2003-01-30  Bruno Haible  <bruno@clisp.org>
93718
93719         * m4/signed.m4: New file, from GNU gettext.
93720         * m4/longdouble.m4: New file, from GNU gettext.
93721         * m4/wchar_t.m4: New file, from GNU gettext.
93722         * m4/wint_t.m4: New file, from GNU gettext.
93723         * m4/vasnprintf.m4: New file.
93724         * m4/vasprintf.m4: New file.
93725
93726 2003-01-30  Bruno Haible  <bruno@clisp.org>
93727
93728         * lib/printf-args.h: New file, from GNU gettext.
93729         * lib/printf-args.c: New file, from GNU gettext.
93730         * lib/printf-parse.h: New file, from GNU gettext.
93731         * lib/printf-parse.c: New file, from GNU gettext.
93732         * lib/vasnprintf.h: New file, from GNU gettext.
93733         * lib/vasnprintf.c: New file, from GNU gettext.
93734         * lib/asnprintf.c: New file, from GNU gettext.
93735         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93736         * lib/vasprintf.c: New file, from GNU gettext.
93737         * lib/asprintf.c: New file, from GNU gettext.
93738
93739 2003-01-29  Bruno Haible  <bruno@clisp.org>
93740
93741         * modules/stpncpy: New module.
93742         * MODULES.html.sh (func_all_modules): Add it.
93743
93744 2003-01-29  Bruno Haible  <bruno@clisp.org>
93745
93746         * m4/stpncpy.m4: New file.
93747
93748 2003-01-29  Bruno Haible  <bruno@clisp.org>
93749
93750         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93751         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93752
93753 2003-01-28  Bruno Haible  <bruno@clisp.org>
93754
93755         * modules/c-ctype: New module.
93756         * MODULES.html.sh (func_all_modules): Add it.
93757
93758 2003-01-28  Bruno Haible  <bruno@clisp.org>
93759
93760         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93761         Paul Eggert.
93762         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93763         Paul Eggert.
93764
93765 2003-01-27  Bruno Haible  <bruno@clisp.org>
93766
93767         * modules/xsetenv: New module.
93768         * MODULES.html.sh (func_all_modules): Add it.
93769
93770 2003-01-27  Bruno Haible  <bruno@clisp.org>
93771
93772         * lib/xsetenv.h: New file, from GNU gettext.
93773         * lib/xsetenv.c: New file, from GNU gettext.
93774
93775 2003-01-23  Jim Meyering  <jim@meyering.net>
93776
93777         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93778         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93779
93780 2003-01-23  Bruno Haible  <bruno@clisp.org>
93781
93782         * modules/minmax: New module.
93783         * MODULES.html.sh (func_all_modules): Add it.
93784
93785 2003-01-23  Bruno Haible  <bruno@clisp.org>
93786
93787         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93788         Eggert.
93789
93790 2003-01-22  Bruno Haible  <bruno@clisp.org>
93791
93792         * modules/exit: New module.
93793         * MODULES.html.sh (func_all_modules): Add it.
93794
93795 2003-01-22  Bruno Haible  <bruno@clisp.org>
93796
93797         * lib/exit.h: New file, from GNU gettext.
93798
93799 2003-01-19  Bruno Haible  <bruno@clisp.org>
93800
93801         * gnulib-tool: Recognize option --extract-maintainer.
93802         (func_get_maintainer): New function.
93803         * modules/*: Add Maintainer entry.
93804
93805 2003-01-16  Jim Meyering  <jim@meyering.net>
93806
93807         * m4/regex.m4: The `regex' struct is both input and output.
93808         Initialize it before each use.  Patch by Tim Waugh.
93809
93810 2003-01-16  Bruno Haible  <bruno@clisp.org>
93811
93812         * MODULES.html.sh: Add a table of contents. Add the module name as
93813         leftmost column. Add hyperlinks.
93814
93815 2003-01-15  Bruno Haible  <bruno@clisp.org>
93816
93817         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93818
93819 2003-01-15  Bruno Haible  <bruno@clisp.org>
93820
93821         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93822         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93823         suffix.
93824
93825 2003-01-15  Bruno Haible  <bruno@clisp.org>
93826
93827         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93828
93829 2003-01-15  Bruno Haible  <bruno@clisp.org>
93830
93831         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93832         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93833
93834 2003-01-14  Jim Meyering  <jim@meyering.net>
93835
93836         * lib/same.c (same_name): Tweak a comment.
93837
93838 2003-01-14  Bruno Haible  <bruno@clisp.org>
93839
93840         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93841         when a string comparison is sufficient.
93842
93843 2003-01-14  Bruno Haible  <bruno@clisp.org>
93844
93845         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93846         'unsigned int'.
93847
93848 2003-01-14  Bruno Haible  <bruno@clisp.org>
93849
93850         * lib/hash-pjw.c: Add comment about low quality of this function.
93851
93852 2003-01-13  Bruno Haible  <bruno@clisp.org>
93853
93854         * modules/stpcpy: Distribute lib/stpcpy.h.
93855         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93856
93857 2003-01-13  Bruno Haible  <bruno@clisp.org>
93858
93859         * modules/*: Add a description.
93860         * modules/strpbrk: Fix Makefile.am snippet.
93861         * modules/strtoimax: Fix dependencies.
93862         * modules/strtoumax: Likewise.
93863
93864 2003-01-13  Bruno Haible  <bruno@clisp.org>
93865
93866         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93867         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93868         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93869
93870 2003-01-13  Bruno Haible  <bruno@clisp.org>
93871
93872         * gnulib-tool (func_create_testdir): Store config/* files in the main
93873         directory.
93874         * config.rpath: Move to ...
93875         * config/config.rpath: ... here.
93876         * modules/gettext: Contains config/config.rpath, not config.rpath.
93877         * modules/iconv: Likewise.
93878
93879 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93880
93881         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93882         to avoid collisions with libcurses and libreadline.
93883
93884         * m4/getstr.m4: Remove.
93885         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93886
93887 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93888
93889         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93890         to avoid collisions with libcurses and libreadline.
93891
93892         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93893         * lib/getstr.h, getstr.c: Remove.
93894         * lib/getline.c: Include "getline.h", to check interface.
93895         Move body of old getstr.c here: this defines MIN_CHUNK and
93896         declares getdelim2, which is renamed from getstr.
93897         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93898
93899         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93900         All uses changed.
93901         * lib/linebuffer.h: Likewise.
93902         (readline): Remove backward-compatibility macro.
93903
93904 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93905
93906         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93907         to avoid collisions with libcurses and libreadline.
93908         * getstr: Remove.
93909         * MODULES.html.sh: Remove getstr.
93910         * modules/getline: Depend on unlocked-io, not getstr.
93911
93912 2003-01-12  Jim Meyering  <jim@meyering.net>
93913
93914         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93915
93916 2003-01-10  Bruno Haible  <bruno@clisp.org>
93917
93918         * modules/alloca: Change Makefile.am requirements. Simplify Include
93919         requirements. Add lib/alloca_.h to file list.
93920
93921 2003-01-10  Bruno Haible  <bruno@clisp.org>
93922
93923         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93924
93925 2003-01-10  Bruno Haible  <bruno@clisp.org>
93926
93927         * lib/alloca_.h: New file.
93928         * lib/getdate.y: Unconditionally include alloca.h.
93929         * lib/makepath.c: Likewise.
93930         * lib/setenv.c: Likewise.
93931         * lib/userspec.c: Likewise.
93932
93933 2003-01-09  Karl Berry  <karl@gnu.org>
93934
93935         * MODULES.html.sh: include `dirname $0` in PATH, to find
93936         gnulib-tool.
93937
93938 2003-01-09  Bruno Haible  <bruno@clisp.org>
93939
93940         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93941         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93942
93943 2003-01-09  Bruno Haible  <bruno@clisp.org>
93944
93945         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93946
93947 2003-01-09  Bruno Haible  <bruno@clisp.org>
93948
93949         * lib/stdbool.h.in: New file.
93950
93951 2003-01-09  Bruno Haible  <bruno@clisp.org>
93952
93953         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93954         * MODULES.html.sh: Likewise.
93955
93956 2003-01-08  Jim Meyering  <jim@meyering.net>
93957
93958         * lib/full-write.c: Undefine and define-away `const' after inclusion
93959         of errno.h, not before.  Suggestion from Bruno Haible.
93960
93961 2003-01-08  Bruno Haible  <bruno@clisp.org>
93962
93963         * modules/full-read: Depend on full-write.
93964
93965 2003-01-08  Bruno Haible  <bruno@clisp.org>
93966
93967         * lib/safe-read.c: Include specification header first, to ensure its
93968         selfcontainedness.
93969         * lib/full-write.c: Likewise.
93970
93971 2003-01-07  Jim Meyering  <jim@meyering.net>
93972
93973         * lib/full-write.c: Rework so that it may serve to define full_read,
93974         too.
93975         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93976
93977 2003-01-07  Bruno Haible  <bruno@clisp.org>
93978
93979         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93980         <inttypes.h>.
93981         * lib/xstrtol.h: Likewise.
93982         * lib/xstrtoimax.c: Likewise.
93983         * lib/xstrtoumax.c: Likewise.
93984         * lib/human.h: Likewise.
93985
93986         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93987         on systems that have <inttypes.h> but not <stdint.h>.
93988
93989 2003-01-07  Bruno Haible  <bruno@clisp.org>
93990
93991         * MODULES.html.sh: Add copyright notice.
93992         (missed_files): Omit CVS directory entries.
93993         (func_module): Make it work with sed-3.02.
93994         * MODULES.txt: Remove file.
93995
93996 2003-01-06  Jim Meyering  <jim@meyering.net>
93997
93998         * lib/version-etc.c: Update year in translatable copyright string.
93999
94000 2003-01-03  Karl Berry  <karl@gnu.org>
94001
94002         * config/config.{guess,sub}: update from prep.
94003
94004 2003-01-02  Karl Berry  <karl@gnu.org>
94005
94006         * doc/COPYING.DOC: belatedly updated to 1.2.
94007
94008 2003-01-01  Karl Berry  <karl@gnu.org>
94009
94010         * gnulib-tool (func_verify_module): report module name $module in
94011         error message, not $1.
94012         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94013         be created, only if it doesn't exist.
94014         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94015
94016 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94017
94018         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94019
94020 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94021
94022         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94023         memcmp if strcoll doesn't work.
94024
94025 2002-12-31  Bruno Haible  <bruno@clisp.org>
94026
94027         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94028         nonempty.
94029
94030 2002-12-31  Bruno Haible  <bruno@clisp.org>
94031
94032         * lib/memcoll.c (STRCOLL): New macro.
94033         (memcoll): Use it.
94034
94035 2002-12-31  Bruno Haible  <bruno@clisp.org>
94036
94037         * lib/localcharset.h: New file.
94038         * lib/localcharset.c: Include it.
94039         * lib/unicodeio.c: Likewise.
94040
94041 2002-12-31  Bruno Haible  <bruno@clisp.org>
94042
94043         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94044         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94045
94046 2002-12-31  Bruno Haible  <bruno@clisp.org>
94047
94048         * lib/getline.h: Include <stddef.h>, for size_t.
94049
94050         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94051         * lib/unicodeio.c: Don't include <stddef.h>.
94052
94053 2002-12-31  Bruno Haible  <bruno@clisp.org>
94054
94055         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94056         HAVE_TM_ZONE.
94057
94058 2002-12-24  Karl Berry  <karl@gnu.org>
94059
94060         * config/config.guess: update from prep.
94061
94062 2002-12-24  Bruno Haible  <bruno@clisp.org>
94063
94064         General infrasructure.
94065         * m4/README: Rewritten.
94066         * m4/onceonly.m4: New file.
94067         * m4/onceonly_2_57.m4: New file.
94068
94069         Module atexit.
94070         * m4/atexit.m4: New file.
94071
94072         Module strtod.
94073         * m4/strtod.m4: New file.
94074
94075         Module strtol.
94076         * m4/strtol.m4: New file.
94077
94078         Module strtoul.
94079         * m4/strtoul.m4: New file.
94080
94081         Module memchr.
94082         * m4/memchr.m4: New file.
94083
94084         Module memcmp.
94085         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94086         (jm_FUNC_MEMCMP): Invoke it.
94087
94088         Module memcpy.
94089         * m4/memcpy.m4: New file.
94090
94091         Module memmove.
94092         * m4/memmove.m4: New file.
94093
94094         Module memset.
94095         * m4/memset.m4: New file.
94096
94097         Module strcspn.
94098         * m4/strcspn.m4: New file.
94099
94100         Module strpbrk.
94101         * m4/strpbrk.m4: New file.
94102
94103         Module strstr.
94104         * m4/strstr.m4: New file.
94105
94106         Module strerror.
94107         * m4/strerror.m4: New file.
94108
94109         Module mktime.
94110         * m4/mktime.m4: Renamed from jm-mktime.m4.
94111         (gl_PREREQ_MKTIME): New macro.
94112         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94113
94114         Module malloc.
94115         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94116         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94117         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94118
94119         Module realloc.
94120         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94121         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94122         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94123
94124         Module strftime.
94125         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94126         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94127         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94128         gl_TM_GMTOFF.
94129         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94130
94131         Module xalloc.
94132         * m4/xalloc.m4: New file.
94133
94134         Module alloca.
94135         * m4/alloca.m4: New file.
94136
94137         Module putenv.
94138         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94139         (jm_FUNC_PUTENV): Invoke it.
94140
94141         Module setenv.
94142         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94143         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94144         when invoked twice.
94145         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94146         gt_FUNC_SETENV.
94147
94148         Module memrchr.
94149         * m4/memrchr.m4: New file.
94150
94151         Module stpcpy.
94152         * m4/stpcpy.m4: New file.
94153
94154         Module strcase.
94155         * m4/strcase.m4: New file.
94156
94157         Module strdup.
94158         * m4/strdup.m4: New file.
94159
94160         Module strnlen.
94161         * m4/strnlen.m4: New file.
94162
94163         Module strndup.
94164         * m4/strndup.m4: New file.
94165
94166         Module xstrtod.
94167         * m4/xstrtod.m4: New file.
94168
94169         Module xstrtol.
94170         * m4/xstrtol.m4: New file.
94171
94172         Module getdate.
94173         * m4/getdate.m4: New file.
94174
94175         Module unlocked-io.
94176         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94177         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94178         * m4/jm-glibc-io.m4n: Remove file.
94179
94180         Module long-options.
94181         * m4/long-options.m4: New file.
94182
94183         Module md5.
94184         * m4/md5.m4: New file.
94185
94186         Module sha.
94187         * m4/sha.m4: New file.
94188
94189         Module getstr.
94190         * m4/getstr.m4: New file.
94191
94192         Module getline.
94193         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94194         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94195         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94196         simply getline. Infoke gl_PREREQ_GETLINE.
94197
94198         Module obstack.
94199         * m4/obstack.m4: New file.
94200
94201         Module hash.
94202         * m4/hash.m4: New file.
94203
94204         Module readtokens.
94205         * m4/readtokens.m4: New file.
94206
94207         Module strverscmp.
94208         * m4/strverscmp.m4: New file.
94209
94210         Module stdbool.
94211         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94212         OSF/1.
94213
94214         Module strtoll.
94215         * m4/strtoll.m4: New file.
94216
94217         Module strtoull.
94218         * m4/strtoull.m4: New file.
94219
94220         Module strtoimax.
94221         * m4/strtoimax.m4: New file.
94222
94223         Module strtoumax.
94224         * m4/strtoumax.m4: New file.
94225
94226         Module xstrtoimax.
94227         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94228         jm_AC_PREREQ_XSTRTOIMAX.
94229         Moved the strtol prerequisites to strtol.m4.
94230         Moved the strtoll prerequisites to strtoll.m4.
94231         Moved the strtoimax prerequisites to strtoimax.m4.
94232
94233         Module xstrtoumax.
94234         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94235         jm_AC_PREREQ_XSTRTOUMAX.
94236         Moved the strtoul prerequisites to strtoul.m4.
94237         Moved the strtoull prerequisites to strtoull.m4.
94238         Moved the strtoumax prerequisites to strtoumax.m4.
94239
94240         Module chown.
94241         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94242         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94243
94244         Module dup2.
94245         * m4/dup2.m4: New file.
94246
94247         Module ftruncate.
94248         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94249         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94250
94251         Module getgroups.
94252         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94253         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94254
94255         Module gettimeofday.
94256         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94257         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94258         gl_PREREQ_GETTIMEOFDAY.
94259
94260         Module mkdir.
94261         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94262         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94263
94264         Module mkstemp.
94265         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94266         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94267         jm_AC_TYPE_UINTMAX_T.
94268         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94269
94270         Module stat.
94271         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94272         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94273
94274         Module lstat.
94275         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94276         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94277
94278         Module timespec.
94279         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94280         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94281         * m4/st_mtim.m4: Indentation.
94282
94283         Module nanosleep.
94284         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94285         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94286         gl_PREREQ_NANOSLEEP.
94287
94288         Module regex.
94289         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94290         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94291         (gl_REGEX): New macro.
94292
94293         Module rename.
94294         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94295         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94296
94297         Module rmdir.
94298         * m4/rmdir.m4: New file.
94299
94300         Module utime.
94301         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94302         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94303         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94304
94305         Module dirname.
94306         * m4/dirname.m4: New file.
94307
94308         Module getopt.
94309         * m4/getopt.m4: New file.
94310
94311         Module unistd-safer.
94312         * m4/unistd-safer.m4: New file.
94313
94314         Module fnmatch.
94315         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94316         declaration.
94317         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94318         (gl_FUNC_FNMATCH_POSIX): New macro.
94319         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94320         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94321         simply fnmatch.
94322
94323         Module exclude.
94324         * m4/exclude.m4: New file.
94325
94326         Module human.
94327         * m4/human.m4: New file.
94328
94329         Module acl.
94330         * m4/acl.m4: Nop.
94331
94332         Module backupfile.
94333         * m4/backupfile.m4: New file.
94334         * m4/d-ino.m4: Indentation.
94335
94336         Module fsusage.
94337         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94338         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94339         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94340
94341         Module dirfd.
94342         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94343         requirements.
94344
94345         Module euidaccess.
94346         * m4/euidaccess.m4: New file.
94347
94348         Module file-type.
94349         * m4/file-type.m4: New file.
94350
94351         Module fileblocks.
94352         * m4/fileblocks.m4: New file.
94353
94354         Module filemode.
94355         * m4/filemode.m4: New file.
94356
94357         Module isdir.
94358         * m4/isdir.m4: New file.
94359
94360         Module lchown.
94361         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94362         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94363
94364         Module makepath.
94365         * m4/makepath.m4: New file.
94366
94367         Module modechange.
94368         * m4/modechange.m4: New file.
94369
94370         Module mountlist.
94371         * m4/mountlist.m4: New file.
94372         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94373         Indentation.
94374
94375         Module path-concat.
94376         * m4/path-concat.m4: New file.
94377
94378         Module pathmax.
94379         * m4/pathmax.m4: New file.
94380
94381         Module same.
94382         * m4/same.m4: New file.
94383
94384         Module save-cwd.
94385         * m4/save-cwd.m4: New file.
94386
94387         Module savedir.
94388         * m4/savedir.m4: New file.
94389
94390         Module xgetcwd.
94391         * m4/xgetcwd.m4: New file.
94392         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94393
94394         Module xreadlink.
94395         * m4/xreadlink.m4: New file.
94396
94397         Module safe-read.
94398         * m4/safe-read.m4: New file.
94399
94400         Module safe-write.
94401         * m4/safe-write.m4: New file.
94402
94403         Module closeout.
94404         * m4/closeout.m4: New file.
94405
94406         Module stdio-safer.
94407         * m4/stdio-safer.m4: New file.
94408
94409         Module getpass.
94410         * m4/getpass.m4: New file.
94411
94412         Module getugroups.
94413         * m4/getugroups.m4: New file.
94414
94415         Module group-member.
94416         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94417         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94418
94419         Module idcache.
94420         * m4/idcache.m4: New file.
94421
94422         Module userspec.
94423         * m4/userspec.m4: New file.
94424
94425         Module gettime.
94426         * m4/clock_time.m4: New file.
94427         * m4/gettime.m4: New file.
94428
94429         Module settime.
94430         * m4/settime.m4: New file.
94431
94432         Module posixtm.
94433         * m4/posixtm.m4: New file.
94434
94435         Module gethostname.
94436         * m4/gethostname.m4: New file.
94437
94438         Module canon-host.
94439         * m4/canon-host.m4: New file.
94440
94441         Module gettext.
94442         * m4/codeset.m4: New file, from gettext-0.11.5.
94443         * m4/gettext.m4: New file, from gettext-0.11.5.
94444         * m4/glibc21.m4: New file, from gettext-0.11.5.
94445         * m4/iconv.m4: New file, from gettext-0.11.5.
94446         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94447         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94448         * m4/inttypes.m4: New file, from gettext-0.11.5.
94449         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94450         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94451         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94452         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94453         * m4/lib-link.m4: New file, from gettext-0.11.5.
94454         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94455         * m4/progtest.m4: New file, from gettext-0.11.5.
94456         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94457         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94458         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94459
94460         Module localcharset.
94461         * m4/localcharset.m4: New file.
94462
94463         Module hard-locale.
94464         * m4/hard-locale.m4: New file.
94465
94466         Module mbswidth.
94467         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94468         onceonly macros.
94469         * m4/mbrtowc.m4: Add comment.
94470
94471         Module memcasecmp.
94472         * m4/memcasecmp.m4: New file.
94473
94474         Module memcoll.
94475         * m4/memcoll.m4: New file.
94476
94477         Module unicodeio.
94478         * m4/unicodeio.m4: New file.
94479
94480         Module rpmatch.
94481         * m4/rpmatch.m4: New file.
94482
94483         Module yesno.
94484         * m4/yesno.m4: New file.
94485
94486         Module exitfail.
94487         * m4/exitfail.m4: New file.
94488
94489         Module c-stack.
94490         * m4/c-stack.m4 (gl_C_STACK): New macro.
94491         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94492
94493         Module error.
94494         * m4/error.m4 (gl_ERROR): New macro.
94495         (jm_PREREQ_ERROR): Use onceonly macros.
94496
94497         Module fatal.
94498         * m4/fatal.m4: New file.
94499
94500         Module getloadavg.
94501         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94502         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94503
94504         Module getpagesize.
94505         * m4/getpagesize.m4: New file.
94506
94507         Module getusershell.
94508         * m4/getusershell.m4: New file.
94509
94510         Module physmem.
94511         * m4/physmem.m4: New file.
94512
94513         Module posixver.
94514         * m4/posixver.m4: New file.
94515
94516         Module quotearg.
94517         * m4/quotearg.m4: New file.
94518
94519         Module quote.
94520         * m4/quote.m4: New file.
94521
94522         Module readutmp.
94523         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94524
94525         Module sig2str.
94526         * m4/sig2str.m4: New file.
94527
94528         Other.
94529         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94530         ulonglong.m4.
94531         * m4/intmax_t.m4: New file.
94532         * m4/d-type.m4: Indentation.
94533         * m4/jm-macros.m4: Update.
94534         * m4/prereq.m4 (jm_PREREQ): Update.
94535         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94536         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94537         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94538         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94539         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94540         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94541         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94542         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94543         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94544         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94545         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94546         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94547         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94548         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94549         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94550         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94551         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94552         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94553         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94554
94555 2002-12-24  Bruno Haible  <bruno@clisp.org>
94556
94557         * MODULES.txt: Update according to m4/ changes.
94558
94559         Module gettext.
94560         * config.rpath: New file, from gettext-0.11.5.
94561
94562         * modules/*: New module descriptions.
94563         * gnulib-tool: New file.
94564         * MODULES.html.sh: New file.
94565
94566 2002-12-21  Karl Berry  <karl@gnu.org>
94567
94568         * doc/fdl.texi: update to version 1.2.
94569
94570 2002-12-19  Karl Berry  <karl@gnu.org>
94571
94572         * config/config.guess: update from prep.
94573
94574 2002-12-18  Bruno Haible  <bruno@clisp.org>
94575
94576         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94577         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94578
94579 2002-12-17  Bruno Haible  <bruno@clisp.org>
94580
94581         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94582         stdlib.h, string.h.
94583
94584 2002-12-17  Bruno Haible  <bruno@clisp.org>
94585
94586         * lib/canon-host.c (strdup): Remove unused declaration.
94587
94588         * lib/fsusage.c: Include full_read.h.
94589         (get_fs_usage): Use full_read instead of safe_read.
94590
94591         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94592
94593 2002-12-12  Karl Berry  <karl@gnu.org>
94594
94595         * config/config.guess: update from prep.
94596
94597 2002-12-11  Bruno Haible  <bruno@clisp.org>
94598
94599         * m4/setenv.m4: New file, from gettext-0.11.5.
94600
94601 2002-12-11  Bruno Haible  <bruno@clisp.org>
94602
94603         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94604         not unsetenv().
94605         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94606         modifications:
94607
94608         2002-12-11  Bruno Haible  <bruno@clisp.org>
94609
94610                 * setenv.c (alloca): Fall back to malloc.
94611                 (freea): New macro.
94612                 (setenv): Use freea() to free memory allocated with alloca().
94613
94614         2002-11-13  Bruno Haible  <bruno@clisp.org>
94615
94616                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94617                 function declarations.
94618                 * unsetenv.c (unsetenv): Likewise.
94619
94620         2002-03-04  Bruno Haible  <bruno@clisp.org>
94621
94622                 Portability to AIX 4.3.3.
94623                 * unsetenv.c: New file, extracted from setenv.c.
94624                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94625
94626         2001-12-20  Bruno Haible  <bruno@clisp.org>
94627
94628                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94629                 use malloc instead. For SunOS 4.
94630
94631         2001-12-11  Bruno Haible  <bruno@clisp.org>
94632
94633                 * setenv.c: Declare alloca.
94634                 (compar_fn_t): New typedef.
94635                 (KNOWN_VALUE, STORE_VALUE): Use it.
94636
94637         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94638         setenv.h.
94639
94640 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94641
94642         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94643         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94644         Choose values that are less likely to collide with system fnmatch
94645         options.
94646         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94647         defined (e.g., a pure POSIX system).
94648         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94649         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94650
94651 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94652
94653         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94654         a pain in practice to deal with generated m4 files.  This change
94655         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94656
94657         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94658         and jm-glibc-io.m4, as they are no longer a special case.
94659         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94660         kludge and the auto-generation stuff.  Check only whether the
94661         functions are declared, not whether they exist, since older hosts
94662         that don't declare the functions can't use the optimization anyway.
94663
94664 2002-12-06  Jim Meyering  <jim@meyering.net>
94665
94666         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94667
94668         Merge in changes from libc's misc/error.c, in preparation
94669         for the merge of gnulib's changes back into libc.
94670
94671         * lib/error.c (_): Define only if not already defined.
94672         Move definition to follow all #include directives.
94673         Include unlocked-io.h only if !_LIBC.
94674         [_LIBC]: Include <libio/libioP.h>.
94675         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94676         (fflush): Tweak definition to use INTUSE.
94677         (putc): Define.
94678
94679 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94680
94681         * lib/alloca.c [defined emacs]: Include "lisp.h".
94682         (xalloc_die) [defined emacs]: New macro.
94683         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94684         [! defined emacs]: Include <xalloc.h>.
94685         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94686         (pointer): Typedef to POINTER_TYPE *.
94687         (malloc): Remove decl; we now always use xmalloc.
94688         (alloca): Use old-style definition, since Emacs needs this.
94689         Check for arithmetic overflow when computing combined size.
94690
94691 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94692
94693         Do not generate unlocked-io.h automatically, since it's easier to
94694         maintain it by hand.
94695
94696         * lib/unlocked-io.h: New file, from GNU diffutils,
94697         but with proper copyright notice and attribution.
94698         * lib/gen-uio: Remove.
94699         * lib/Makefile.am: Add copyright notice.
94700         (libfetish_a_SOURCES): Add unlocked-io.h.
94701         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94702         (DISTCLEANFILES, io_functions): Remove macros.
94703         (EXTRA_DIST): Remove gen_uio.
94704         (unlocked-io.h): Remove rule.
94705
94706 2002-12-04  Jim Meyering  <jim@meyering.net>
94707
94708         Reflect the fact that stat.c and lstat.c are no longer generated.
94709         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94710         (DISTCLEANFILES): Likewise.
94711         (EXTRA_DIST): Likewise.
94712         (all_local): Don't depend on stat.c or lstat.c.
94713         (stat.c, lstat.c): Remove rules.
94714         (EXTRA_DIST): Remove xstat.in.
94715
94716         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94717         * lib/stat.c: New file.  Contents mostly from xstat.in.
94718         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94719         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94720
94721         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94722         too.
94723         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94724
94725 2002-12-03  Jim Meyering  <jim@meyering.net>
94726
94727         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94728         but not semantics, to minimize the differences between these two files.
94729         (safe_read): Change comment to mention SAFE_READ_ERROR.
94730
94731         * lib/safe-read.c (IS_EINTR): Define.
94732         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94733
94734 2002-12-02  Jim Meyering  <jim@meyering.net>
94735
94736         * lib/safe-read.c (EINTR): Define.
94737         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94738         (INT_MAX): Provide fallback.
94739         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94740
94741         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94742
94743 2002-12-02  Bruno Haible  <bruno@clisp.org>
94744
94745         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94746         Define, taken from safe-read.c.
94747         (INT_MAX): Provide fallback.
94748         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94749         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94750
94751         * lib/safe-read.c (EINTR): Remove definition.
94752         (safe_read): Don't use EINTR if it is absent.
94753
94754 2002-12-01  Jim Meyering  <jim@meyering.net>
94755
94756         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94757         zero.
94758         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94759
94760 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94761
94762         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94763         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94764         with `if (! (value < limit)) abort ();', for readability.
94765
94766 2002-11-26  Karl Berry  <karl@gnu.org>
94767
94768         * lib/strdup.c: copy from libc again, with jim's ok.
94769         * lib/.cppi-disable: re-add strdup.c
94770
94771 2002-11-25  Karl Berry  <karl@gnu.org>
94772
94773         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94774         instead of "strtol.c".
94775
94776 2002-11-25  Karl Berry  <karl@gnu.org>
94777
94778         * config/install-sh: update from automake for variable quoting, $0 in
94779         error msgs, etc.
94780
94781         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94782         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94783         entry.
94784
94785 2002-11-25  Jim Meyering  <jim@meyering.net>
94786
94787         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94788
94789 2002-11-24  Karl Berry  <karl@gnu.org>
94790
94791         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94792         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94793
94794 2002-11-24  Jim Meyering  <jim@meyering.net>
94795
94796         Update from coreutils:
94797
94798         * lib/mktime.c: Merge in changes from libc.
94799
94800         Avoid a link-time failure on some Linux systems.
94801         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94802         (otherwise).
94803         (__mon_yday): Declare with the STATIC attribute.
94804         (__mktime_internal): Likewise.
94805         Based on a report from Greg Schafer.
94806
94807 2002-11-23  Jim Meyering  <jim@meyering.net>
94808
94809         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94810         Use `unsigned', not `int', as type of index.
94811
94812         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94813
94814         * lib/fsusage.c: Remove unneeded parentheses around operands of
94815         `defined'.
94816
94817 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94818
94819         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94820         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94821         so that we can be included first.
94822         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94823         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94824         No need to include stddef.h or sys/types.h any more.
94825         Surround local include files with "", not "<>".
94826         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94827         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94828         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94829         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94830         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94831         (ISPRINT): Remove; no longer needed now that we assume C89.
94832
94833         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94834         Preserve errno.
94835
94836         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94837         quotearg_char): Use SIZE_MAX rather than
94838         (size_t) -1 when we are talking about "infinity".
94839
94840         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94841
94842 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94843
94844         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94845         hint that one should use `if (! x) abort ();' rather than `assert
94846         (x);', and anyway it's one less thing to worry about configuring.
94847         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94848         hash_rehash, hash_insert): Use abort rather than assert.
94849
94850 2002-11-22  Bruno Haible  <bruno@clisp.org>
94851
94852         * lib/safe-read.h: Assume C89. Add comments.
94853         (safe_read): Change return type to size_t.
94854         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94855         byte counts > SSIZE_MAX correctly.
94856         * lib/safe-write.h: New file.
94857         * lib/safe-write.c: New file.
94858         * lib/full-read.h: New file.
94859         * lib/full-read.c: New file.
94860         * lib/full-write.h: Assume C89. Add comments.
94861         * lib/full-write.c: Include safe-write.h.
94862         (full_write): Rewritten to use safe_write.
94863         Suggested by Jim Meyering and Paul Eggert.
94864
94865 2002-11-21  Jim Meyering  <jim@meyering.net>
94866
94867         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94868
94869         Merge in changes from the coreutils.
94870
94871         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94872         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94873         <stdint.h>.
94874         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94875         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94876         int.  Work more efficiently if X is the same width as uintmax_t.
94877         Do not compare X to -1, to avoid bogus compiler warning.
94878         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94879         Don't assume that f_frsize and f_bsize are the same type.
94880
94881         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94882         warning on FreeBSD.
94883
94884         * lib/makepath.c (make_path): Restore umask *before* creating the final
94885         component.
94886         (make_path): Minor reformatting.
94887
94888         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94889         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94890         HAVE_MALLOC/HAVE_REALLOC.
94891
94892         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94893         dummy ones.  At least on GNU/Linux systems, `auto' means something
94894         else.
94895         From Michael Stone.
94896
94897 2002-11-21  Bruno Haible  <bruno@clisp.org>
94898
94899         Remove case insensitive option matching.
94900         * lib/argmatch.h (argcasematch): Remove declaration.
94901         (ARGCASEMATCH): Remove macro.
94902         (__xargmatch_internal): Remove case_sensitive argument.
94903         (XARGMATCH): Update.
94904         (XARGCASEMATCH): Remove macro.
94905         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94906         case_sensitive argument.
94907         (argcasematch): Remove function.
94908         (__xargmatch_internal): Remove case_sensitive argument.
94909         (main): Use XARGMATCH instead of XARGCASEMATCH.
94910
94911         * lib/xmalloc.c: Change compile-time error message. Add comment about
94912         required autoconf version.
94913
94914 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94915
94916         Merge argmatch cleanups from Bison.  Assume C89.
94917
94918         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94919         Include stdlib.h, for EXIT_FAILURE.
94920         Always include <string.h>, since we assume C89.
94921         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94922         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94923         Include <stddef.h> instead, since it's all we need for size_t.
94924         (PARAMS): Remove.  All uses removed.
94925         (ARRAY_CARDINALITY): Do not bother to #undef.
94926         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94927         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94928         Remove unnecessary parentheses.
94929         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94930         Insert necessary parentheses.
94931         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94932         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94933
94934 2002-11-19  Bruno Haible  <bruno@clisp.org>
94935
94936         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94937         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94938
94939         * lib/mbswidth.h (PARAMS): Remove macro.
94940         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94941         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94942
94943         * lib/gcd.h (PARAMS): Remove macro.
94944         (gcd): Use ANSI C function declarations.
94945         * lib/gcd.c (gcd): Likewise.
94946
94947 2002-11-15  Bruno Haible  <bruno@clisp.org>
94948
94949         * lib/strcspn.c: Include <stddef.h>.
94950         (strcspn): Use ANSI C function declaration. Change return type to
94951         size_t. Use NULL.
94952         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94953         (strpbrk): Use NULL.
94954         * lib/strpbrk.h (PARAMS): Remove macro.
94955         (strpbrk): Use ANSI C function declaration.
94956         * lib/strstr.c: Don't include <sys/types.h>.
94957         * lib/strstr.h (PARAMS): Remove macro.
94958         (strstr): Use ANSI C function declarations.
94959
94960 2002-11-14  Karl Berry  <karl@gnu.org>
94961
94962         * config/mkinstalldirs: `do' on separate line, instead of
94963         `for var; do'.
94964
94965 2002-11-06  Bruno Haible  <bruno@clisp.org>
94966
94967         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94968         * lib/gcd.c (gcd): Likewise.
94969
94970 2002-11-05  Bruno Haible  <bruno@clisp.org>
94971
94972         * lib/gcd.h: New file, from gettext-0.11.5.
94973         * lib/gcd.c: New file, from gettext-0.11.5.
94974
94975 2002-11-05  Bruno Haible  <bruno@clisp.org>
94976
94977         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94978         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94979         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94980         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94981
94982         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94983         <libintl.h>.
94984         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94985         <libintl.h>.
94986
94987         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94988         * lib/human.c: Include gettext.h instead of <libintl.h>.
94989         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94990         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94991         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94992         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94993         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94994         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94995         (textdomain): Remove definition.
94996         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94997
94998         * lib/long-options.c: Remove include of <libintl.h> and definition of
94999         _.
95000         * lib/same.c: Remove include of <libintl.h> and definition of _.
95001
95002 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95003
95004         * lib/config.charset: A few additions for Solaris.
95005
95006 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95007
95008         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95009         * lib/localcharset.c (locale_charset): Declare as extern "C".
95010
95011 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95012
95013         * lib/config.charset: msdos in uk_UA uses CP1125.
95014
95015 2002-11-04  Bruno Haible  <bruno@clisp.org>
95016
95017         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95018         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95019         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95020         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95021         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95022
95023 2002-11-04  Bruno Haible  <bruno@clisp.org>
95024
95025         * lib/localcharset.c (locale_charset): Don't return an empty string.
95026
95027 2002-11-04  Bruno Haible  <bruno@clisp.org>
95028
95029         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95030         aliases.
95031
95032 2002-11-04  Bruno Haible  <bruno@clisp.org>
95033
95034         * lib/config.charset: Update for newest glibc. Add canonical names
95035         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95036
95037 2002-11-04  Bruno Haible  <bruno@clisp.org>
95038
95039         * lib/config.charset: Add support for NetBSD.
95040
95041 2002-11-04  Bruno Haible  <bruno@clisp.org>
95042
95043         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95044
95045 2002-11-01  Bruno Haible  <bruno@clisp.org>
95046
95047         * configure.in: Add AC_CONFIG_AUX_DIR call.
95048         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95049         test/Makefile.
95050         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95051
95052 2002-09-28  Karl Berry  <karl@gnu.org>
95053
95054         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95055         installed automake until the next release, since changes have been
95056         made.
95057
95058 2002-09-25  Karl Berry  <karl@gnu.org>
95059
95060         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95061         * lib/getopt*: copy from libc/posix.
95062         * lib/gettext.h: copy from gettext.
95063         * lib/.cppi-disable: add strdup.c, gettext.h.
95064
95065 2002-09-25  Karl Berry  <karl@gnu.org>
95066
95067         * config/srclist.txt: enable gettext.h check.
95068         * config/config.{guess,sub}: update from prep.
95069         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95070                 from automake 1.6.3.
95071         See srclist*.
95072
95073 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95074
95075         * regex.c (PATFETCH): Remove the translating fetch.
95076         (PATFETCH_RAW): Rename to PATFETCH.
95077         (set_image_of_range): New fun.
95078         (SET_RANGE_TABLE_WORK_AREA): Use it.
95079         (regex_compile): Don't translate the pattern chars so eagerly.
95080         Only do it when inserting an `exactn' bytecode or when handling
95081         a char-range.
95082         (mutually_exclusive_p): Avoid empty statement.
95083
95084 2002-07-06  Jim Meyering  <meyering@lucent.com>
95085
95086         * m4/README: Don't mention Makefile.am.in.
95087         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95088
95089 2002-07-01  Jim Meyering  <meyering@lucent.com>
95090
95091         * lib/c-stack.c: Include sys/time.h.
95092         From Volker Borchert.
95093
95094 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95095
95096         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95097
95098 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95099
95100         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95101         New macro.  Use it uniformly instead of
95102         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95103         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95104         reported by Vin Shelton.
95105
95106 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95107
95108         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95109         Do not assume SA_SIGINFO behavior.
95110         Bug reported by Jim Meyering on NetBSD 1.5.2.
95111
95112 2002-06-22  Jim Meyering  <meyering@lucent.com>
95113
95114         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95115         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95116
95117         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95118         now that configure.ac uses AC_GNU_SOURCE.
95119         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95120         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95121
95122         Update to latest tools.  Suggestions from Paul Eggert.
95123         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95124         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95125         * m4/fnmatch.m4: Likewise.
95126         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95127         to AC_HEADER_STDBOOL
95128
95129 2002-06-22  Jim Meyering  <meyering@lucent.com>
95130
95131         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95132         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95133
95134 2002-06-22  Jim Meyering  <meyering@lucent.com>
95135
95136         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95137
95138         * lib/exitfail.c, exitfail.h: Likewise.
95139         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95140
95141         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95142         of fnmatch.h.
95143         (EXTRA_DIST): Add fnmatch_loop.c.
95144         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95145
95146         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95147         * lib/fnmatch.c: Update from diffutils-2.8.2.
95148         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95149         * lib/fnmatch.h: Remove file.
95150
95151 2002-06-21  Jim Meyering  <meyering@lucent.com>
95152
95153         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95154         * m4/mbrtowc.m4: Likewise.
95155
95156         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95157         * m4/mbswidth.m4: Reflect name change:
95158         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95159         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95160
95161         * m4/lib-link.m4: Update from gettext-0.11.2.
95162         * m4/gettext.m4: Likewise.
95163
95164         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95165         From Alfred M. Szmidt.
95166
95167 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95168
95169         * lib/file-type.h: Report an error if neither S_ISREG nor
95170         S_IFREG is defined, instead of using a test specific to glibc
95171         2.2.  This should be safe, since POSIX requires S_ISREG and
95172         Unix Version 7 had S_IFREG.  We don't need to check for
95173         <sys/types.h> since we don't use any symbols that it defines.
95174
95175 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95176
95177         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95178         $@-t, so that each temporary file name is unique and valid in the first
95179         8 characters, for operation under DOS.
95180
95181 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95182
95183         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95184
95185 2002-06-15  Jim Meyering  <meyering@lucent.com>
95186
95187         Work even with DJGPP 2.03, which lacks support for symlinks.
95188         From Richard Dawe.
95189         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95190         is defined.
95191         * lib/lchown.c (S_ISLNK): Likewise.
95192
95193 2002-06-15  Jim Meyering  <meyering@lucent.com>
95194
95195         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95196         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95197         have been included before this file.
95198
95199 2002-06-14  Jim Meyering  <meyering@lucent.com>
95200
95201         * lib/file-type.h: Use the version from diffutils-2.8.2.
95202         * lib/file-type.c: Likewise.
95203
95204 2002-06-07  Jim Meyering  <meyering@lucent.com>
95205
95206         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95207         They're needed at least for NetBSD 1.5.2.
95208         ($statxfs_includes): Include those same headers.
95209         ($statxfs_includes): Include sys/vfs.h if available.
95210         ($statxfs_includes): Likewise for sys/statvfs.h.
95211         Check for the following members in both structs statfs and statvfs:
95212         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95213
95214 2002-06-01  Jim Meyering  <meyering@lucent.com>
95215
95216         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95217         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95218
95219 2002-05-28  Jim Meyering  <meyering@lucent.com>
95220
95221         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95222         Reported by Volker Borchert.
95223
95224 2002-05-27  Jim Meyering  <meyering@lucent.com>
95225
95226         Fix a problem seen only on nonconforming systems whereby ls.c's
95227         use of localtime, and then of gettimeofday would cause trouble:
95228         the localtime call used to initialize rpl_gettimeofday's save
95229         mechanism would clobber ls's current local time information so
95230         that in any long listing the first file would always be listed
95231         with date 1970-01-01.  Analysis by Volker Borchert.
95232
95233         * lib/gettimeofday.c (localtime): Undefine.
95234         (rpl_localtime): New function.
95235
95236 2002-05-27  Jim Meyering  <meyering@lucent.com>
95237
95238         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95239         localtime.
95240
95241         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95242         use the replacement function; it wouldn't resolve at link time.
95243         Reported by Volker Borchert.
95244
95245 2002-05-22  Jim Meyering  <meyering@lucent.com>
95246
95247         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95248         file-type.h.
95249         * lib/file-type.h: New file.
95250         * lib/file-type.c (file_type): New file/function.  Extracted from
95251         diffutils.
95252
95253 2002-04-30  Jim Meyering  <meyering@lucent.com>
95254
95255         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95256
95257 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95258
95259         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95260
95261 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95262
95263         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95264         Do not check for alloca.h (no longer used) or stdbool.h (was never
95265         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95266
95267 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95268
95269         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95270
95271 2002-04-29  Jim Meyering  <meyering@lucent.com>
95272
95273         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95274         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95275         Use AC_FUNC_STRNLEN here instead.
95276
95277         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95278         With autoconf-2.53a, it's part of AC_PROG_CC.
95279
95280 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95281
95282         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95283         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95284
95285 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95286
95287         * lib/sig2str.h, lib/sig2str.c: New files.
95288         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95289
95290 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95291
95292         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95293         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95294         of 127, since 64 is the largest conceivable number for ancient
95295         nonstandard hosts.
95296         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95297
95298 2002-04-28  Jim Meyering  <meyering@lucent.com>
95299
95300         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95301
95302 2002-04-24  Jim Meyering  <meyering@lucent.com>
95303
95304         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95305         (jm_PREREQ): Use it.
95306
95307         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95308         mach/mach.h fcntl.h.
95309         Check for this function: setlocale.
95310
95311 2002-04-24  Jim Meyering  <meyering@lucent.com>
95312
95313         * lib/gettext.h: New file, from Gettext.
95314         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95315         (libfetish_a_SOURCES): Add gettext.h.
95316
95317 2002-04-16  Jim Meyering  <meyering@lucent.com>
95318
95319         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95320         ut_pid, ut_id, ut_exit.
95321
95322 2002-04-16  Jim Meyering  <meyering@lucent.com>
95323
95324         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95325         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95326         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95327
95328 2002-04-12  Jim Meyering  <meyering@lucent.com>
95329
95330         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95331         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95332         existence of the getmntinfo function.  Needed for Darwin 5.3.
95333
95334         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95335         This is necessary at least on Darwin 5.3.
95336
95337         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95338         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95339         strnlen.o in the library, and that makes some versions of ranlib
95340         object.
95341
95342 2002-04-12  Jim Meyering  <meyering@lucent.com>
95343
95344         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95345
95346 2002-04-09  Jim Meyering  <meyering@lucent.com>
95347
95348         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95349         to be more precise.  Rather than saying we're checking whether the
95350         function `works', say what we're testing.
95351         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95352         Reported by Bruno Haible.
95353
95354 2002-03-10  Jim Meyering  <meyering@lucent.com>
95355
95356         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95357         Suggestion from Santiago Vila.
95358
95359 2002-03-08  Jim Meyering  <meyering@lucent.com>
95360
95361         * lib/rename.c: Mention that this wrapper is needed also on
95362         mips-dec-ultrix4.4 systems.
95363
95364 2002-03-02  Jim Meyering  <meyering@lucent.com>
95365
95366         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95367         not HAVE_CLOCK_SETTIME.
95368
95369 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95370
95371         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95372         Check for clock_settime.
95373
95374 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95375
95376         * lib/nanosleep.h: Rename to....
95377         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95378
95379         * lib/gettime.c: New file.
95380         * lib/settime.c: New file.
95381         * lib/stime.c: Remove.
95382
95383         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95384         timespec.h.  Remove nanosleep.h.
95385
95386 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95387
95388         * m4/acl.m4: New file.
95389         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95390         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95391
95392 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95393
95394         * lib/acl.c, lib/acl.h: New files.
95395         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95396
95397 2002-02-24  Jim Meyering  <meyering@lucent.com>
95398
95399         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95400         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95401         cause trouble.  Reported by Nelson Beebe.
95402
95403 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95404
95405         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95406         compilers that don't know that xalloc_die never returns.
95407
95408 2002-02-20  Jim Meyering  <meyering@lucent.com>
95409
95410         * lib/getdate.c: Regenerate using bison-1.33.
95411
95412 2002-02-17  Jim Meyering  <meyering@lucent.com>
95413
95414         * config/config.guess (main): Don't use `head -1'; it's no longer
95415         portable. Use `sed 1q' instead.
95416
95417 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95418
95419         * m4/codeset.m4: Upgrade to gettext-0.11.
95420         * m4/gettext.m4: Upgrade to gettext-0.11.
95421         * m4/glibc21.m4: Upgrade to gettext-0.11.
95422         * m4/iconv.m4: Upgrade to gettext-0.11.
95423         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95424         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95425         * m4/lib-ld.m4: New file, from gettext-0.11.
95426         * m4/lib-link.m4: New file, from gettext-0.11.
95427         * m4/lib-prefix.m4: New file, from gettext-0.11.
95428         * m4/progtest.m4: Upgrade to gettext-0.11.
95429
95430 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95431
95432         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95433         (jm_PREREQ): Use it.
95434
95435 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95436
95437         * lib/posixver.c, lib/posixver.h: New files.
95438         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95439
95440 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95441             Bruno Haible  <bruno@clisp.org>
95442
95443         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95444         (fwrite_success_callback): New declaration.
95445         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95446         print_unicode_char. Call failure callback instead of error.
95447         (fwrite_success_callback): New function.
95448         (exit_failure_callback): New function.
95449         (fallback_failure_callback): New function.
95450         (print_unicode_char): Call unicode_to_mb.
95451
95452 2002-01-26  Jim Meyering  <meyering@lucent.com>
95453
95454         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95455         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95456
95457 2002-01-26  Jim Meyering  <meyering@lucent.com>
95458
95459         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95460
95461 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95462
95463         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95464
95465 2002-01-22  Jim Meyering  <meyering@lucent.com>
95466
95467         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95468         Otherwise, some versions of automake would omit the rule that makes
95469         Makefile from Makefile.in.
95470
95471 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95472
95473         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95474         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95475         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95476         (memcoll): Set errno to zero if there is no error.
95477
95478         * lib/quotearg.c (quotearg_buffer_restyled):
95479         Fix bug with quoting buffers containing NUL when backslashing escapes.
95480         This bug was exposed by the other changes in this patch.
95481         (quotearg_n_options): New arg ARGSIZE.
95482         All callers changed.
95483         (quoting_options_from_style): New function.
95484         (quotearg_n_style): Use it.
95485         (quotearg_n_style_mem): New function.
95486
95487         * lib/quotearg.h (quotearg_n_style_mem): New function.
95488
95489 2002-01-19  Jim Meyering  <meyering@lucent.com>
95490
95491         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95492         Remove useless quotes: DF_PROG="df".
95493         * m4/strnlen.m4: New file.
95494
95495 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95496
95497         * lib/backupfile.c (ISDIGIT): Comment fix.
95498         * lib/getdate.y (ISDIGIT): Likewise.
95499         * lib/posixtm.c (ISDIGIT, year): Likewise.
95500         * lib/strverscmp.c (ISDIGIT): Likewise.
95501         * lib/userspec.c (ISDIGIT): Likewise.
95502
95503 2002-01-16  Jim Meyering  <meyering@lucent.com>
95504
95505         * lib/getdate.y: Add three semicolons, each just before a closing
95506         brace. Bison (as of version 1.31) no longer papers over that mistake.
95507
95508 2002-01-05  Jim Meyering  <meyering@lucent.com>
95509
95510         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95511
95512 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95513
95514         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95515         not silently exit merely because the output buffer happens to
95516         have nothing pending.
95517
95518 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95519
95520         See the big note in ../ChangeLog.
95521         * lib/human.c (suffixes): Prefer K to k for 1024.
95522         (generate_suffix_backwards): New function.
95523         (human_readable_inexact): Use it.
95524         * lib/xstrtol.c (__xstrtol): If there is no number but there
95525         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95526         Accept 'K' as well as 'k'.
95527
95528 2001-12-15  Jim Meyering  <meyering@lucent.com>
95529
95530         * lib/regex.h (__restrict_arr): Update from libc.
95531
95532         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95533         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95534         (STREQ): Define.
95535
95536 2001-12-14  Jim Meyering  <meyering@lucent.com>
95537
95538         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95539         Suggestion from Bruno Haible.
95540
95541 2001-12-10  Jim Meyering  <meyering@lucent.com>
95542
95543         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95544         xrealloc, Instead, include "xalloc.h".
95545         (initbuffer): Don't cast xmalloc return value to char*.
95546         (readline): Reword comment.
95547         Don't cast xrealloc return value to char*
95548         Return NULL, not 0.
95549
95550 2001-12-09  Jim Meyering  <meyering@lucent.com>
95551
95552         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95553         about `signed and unsigned type in conditional expression'.
95554         * lib/posixtm.c (posix_time_parse): Likewise.
95555
95556         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95557
95558         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95559         to avoid a pedantic warning.
95560
95561         * lib/getstr.c: Don't include assert.h.
95562         (getstr): Remove warning-evoking assertions.
95563         Return -1 if offset parameter is out of bounds.
95564         Change the type of a local from int to size_t.
95565
95566         * lib/strftime.c (my_strftime_localtime_r): Include this function
95567         definition in the `#if ! HAVE_TM_GMTOFF' block.
95568
95569         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95570         Include xalloc.h instead.
95571
95572 2001-12-02  Jim Meyering  <meyering@lucent.com>
95573
95574         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95575         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95576         included.
95577
95578         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95579         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95580
95581 2001-11-30  Akim Demaille  <akim@epita.fr>
95582
95583         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95584         before being defined.
95585
95586 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95587
95588         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95589         First arg is int, not unsigned.
95590         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95591         (SIZE_MAX, UINT_MAX): New macros.
95592         (quotearg_n_options): Abort if N is negative.
95593         Avoid overflow check on hosts where size_t is 64 bits and int
95594         is 32 bits, as overflow is impossible there.
95595         Fix off-by-one typo that caused unnecessary reallocation.
95596
95597 2001-11-27  Jim Meyering  <meyering@lucent.com>
95598
95599         * lib/tempname.c: Merge with version from libc.
95600         * lib/regex.c: Likewise.
95601
95602         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95603         systems for which STDC_HEADERS is 0, it was not included, resulting in
95604         a warning about an integer-to-pointer conversion problem with getenv.
95605         Reported by Volker Borchert.
95606
95607 2001-11-26  Jim Meyering  <meyering@lucent.com>
95608
95609         * lib/gtod.h: Remove file.
95610         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95611         * lib/gettimeofday.c: Don't include gtod.h.
95612         (GTOD_init): Remove function.
95613         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95614         Suggestion from Volker Borchert.
95615
95616 2001-11-23  Jim Meyering  <meyering@lucent.com>
95617
95618         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95619         it.
95620         * lib/hash.c (struct hash_table): Define it here instead.
95621
95622 2001-11-22  Jim Meyering  <meyering@lucent.com>
95623
95624         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95625
95626 2001-11-20  Jim Meyering  <meyering@lucent.com>
95627
95628         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95629         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95630
95631 2001-11-19  Jim Meyering  <meyering@lucent.com>
95632
95633         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95634         directory.  Use "conftestXXXXXX" as the template.
95635         Suggestion from Paul Eggert.
95636
95637         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95638         immediately, so the test doesn't mistakenly hit the max-open-files
95639         limit.
95640
95641 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95642
95643         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95644         (TEMPORARIES): New macro.
95645         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95646         removes an artificial limitation (e.g. HP-UX 10.20, where
95647         TMP_MAX is 17576).
95648
95649 2001-11-18  Jim Meyering  <meyering@lucent.com>
95650
95651         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95652
95653 2001-11-18  Jim Meyering  <meyering@lucent.com>
95654
95655         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95656         on SunOS 4.
95657
95658         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95659         files will be created before anything else.
95660
95661 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95662
95663         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95664         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95665
95666 2001-11-17  Jim Meyering  <meyering@lucent.com>
95667
95668         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95669         Prompted by a report from Bob Proulx.
95670
95671         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95672         Instead, require UTILS_FUNC_MKSTEMP.
95673
95674 2001-11-17  Jim Meyering  <meyering@lucent.com>
95675
95676         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95677         Now, that's done as part of AC_FUNC_STRTOD.
95678
95679 2001-11-17  Jim Meyering  <meyering@lucent.com>
95680
95681         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95682         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95683         rather than group writable.  Patch by Juan F. Codagnone.
95684
95685         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95686         xrealloc, Instead, include "xalloc.h".
95687
95688         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95689         Remove explicit declarations of xmalloc, xrealloc,
95690         and xstrdup.  Instead, include "xalloc.h".
95691
95692         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95693         unlocked-io.h.
95694         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95695         Likewise.
95696         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95697
95698         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95699         Reported by Padraig Brady.
95700
95701         * lib/mkstemp.c: #undef mkstemp.
95702         Include config.h.
95703         (rpl_mkstemp): Rename from mkstemp.
95704         Protoize.
95705
95706 2001-11-16  Jim Meyering  <meyering@lucent.com>
95707
95708         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95709         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95710         determine the amount of total physical memory, use pstat_getstatic.
95711         HPUX-11 doesn't define _SC_PHYS_PAGES.
95712         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95713         If sysconf couldn't be used to determine the amount of available
95714         physical memory, use both pstat_getstatic and pstat_getdynamic.
95715         Based on a patch from Bob Proulx.
95716
95717 2001-11-10  Jim Meyering  <meyering@lucent.com>
95718
95719         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95720         (jm_PREREQ): Use it.
95721
95722 2001-11-09  Jim Meyering  <meyering@lucent.com>
95723
95724         * m4/jm-macros.m4: Require autoconf-2.52f.
95725         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95726         Use these AC_-prefixed names, not the AM_-prefixed ones.
95727
95728         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95729
95730 2001-11-05  Jim Meyering  <meyering@lucent.com>
95731
95732         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95733
95734 2001-11-04  Jim Meyering  <meyering@lucent.com>
95735
95736         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95737         $DEFS.
95738
95739 2001-11-03  Jim Meyering  <meyering@lucent.com>
95740
95741         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95742         of AC_DEFUN.
95743
95744         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95745         know the name of the variable in the macro definition.
95746
95747 2001-11-03  Jim Meyering  <meyering@lucent.com>
95748
95749         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95750         in argmatch_to_argument call.
95751
95752         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95753         argument.
95754
95755         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95756         e.g., a fault due to an attempt to free a NULL pointer.
95757
95758 2001-11-01  Jim Meyering  <meyering@lucent.com>
95759
95760         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95761         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95762
95763 2001-11-01  Jim Meyering  <meyering@lucent.com>
95764
95765         * lib/dirfd.c, lib/dirfd.h: New files.
95766         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95767
95768         * lib/hash.c (hash_print) [TESTING]: Clean up.
95769
95770 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95771
95772         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95773         to avoid a warning if -Wall.
95774
95775 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95776
95777         * README: New file
95778         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95779         (per RMS's instructions, this is now the canonical source)
95780         * lgpl/, gpl/: New directories.
95781
95782 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95783
95784         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95785
95786 2001-10-21  Jim Meyering  <meyering@lucent.com>
95787
95788         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95789         this code would end up calling gettext even in packages built
95790         with --disable-nls.
95791         * lib/getopt.c (_): Likewise.
95792         * lib/regex.c (_): Likewise.
95793
95794 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95795
95796         * m4/error.m4 (jm_PREREQ_ERROR):
95797         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95798         AC_FUNC_STRERROR_R does that.
95799         Check for strerror declaration.
95800
95801         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95802         are supposed to have them these days.
95803         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95804         Merge changes from latest Autoconf CVS.
95805         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95806         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95807         POSIX decided to standardize on the int flavor of strerror_r.
95808
95809 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95810
95811         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95812         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95813         Use strerror_r that is only a macro, even if it is not a function.
95814         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95815         (private_strerror): Use prototypes, not old-style function definition.
95816         (print_errno_message): New function.
95817         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95818         char*-flavored one.
95819         (error_tail, error, error_at_line): Use it.
95820
95821 2001-10-11  Jim Meyering  <meyering@lucent.com>
95822
95823         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95824         and quote_n (1, ... to avoid clobbering a buffer.
95825
95826 2001-10-05  Jim Meyering  <meyering@lucent.com>
95827
95828         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95829         hash-pjw.h.
95830         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95831         * lib/hash-pjw.h: New file.
95832
95833 2001-09-30  Jim Meyering  <meyering@lucent.com>
95834
95835         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95836         `struct fsstat' has the `f_fstypename' member.
95837         Use that to define FS_TYPE, which is now used to make
95838         the getfsstat link test tighter.
95839
95840 2001-09-30  Jim Meyering  <meyering@lucent.com>
95841
95842         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95843         Include <sys/ucred.h>, for Apple Darwin.
95844         Include sys/mount.h and sys/fs_types.h only if available.
95845         (FS_TYPE): Define.
95846         (read_filesystem_list): Use FS_TYPE.
95847
95848 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95849
95850         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95851         a boolean context.
95852
95853 2001-09-29  Jim Meyering  <meyering@lucent.com>
95854
95855         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95856         [one-argument getmntent function]): Include stdio.h before mntent.h.
95857         SunOS 4.1.x needs it for the declaration of `FILE'.
95858         Patch by Volker Borchert.
95859
95860         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95861         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95862         sys/fs_types.h, and make the link-test for getfsstat guard #include
95863         directives with appropriate #if HAVE_*_H tests so that we can
95864         detect getfsstat on Apple Darwin1.3.7 systems.
95865         Reported by Nelson Beebe.
95866         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95867
95868 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95869
95870         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95871         #defines strtoimax.  Also treat the other strto* functions
95872         like strtoimax.
95873
95874         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95875         Check for strtoul and strtoumax,
95876         as those declarations are made even in the signed case.
95877         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95878         Likewise, for strtol and strtoimax.
95879
95880 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95881
95882         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95883         #defines strtoimax.  Also treat the other strto* functions
95884         like strtoimax.
95885
95886         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95887         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95888         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95889
95890 2001-09-26  Jim Meyering  <meyering@lucent.com>
95891
95892         Most macros in unlocked-io.h had the wrong number of arguments.
95893         * lib/gen-uio: New script.
95894         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95895         * lib/unlocked-io.hin: Remove file.
95896         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95897         rather than trying to embed it here.
95898         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95899         Reported by Padraig Brady.
95900
95901 2001-09-25  Volker Borchert  <bt@teknon.de>
95902
95903         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95904         `result'.
95905
95906 2001-09-24  Jim Meyering  <meyering@lucent.com>
95907
95908         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95909
95910 2001-09-23  Jim Meyering  <meyering@lucent.com>
95911
95912         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95913         instead of the mere test for existence of mntent.h.  The latter
95914         would get a false-positive on AIX 3.4 systems.
95915         In the outer getmntent if-block, don't die if neither of the getmntent
95916         tests succeeds.  Instead, just fall through and continue with the
95917         remaining tests.
95918
95919 2001-09-23  Jim Meyering  <meyering@lucent.com>
95920
95921         * lib/mountlist.c: Remove useless parentheses in #if directives.
95922         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95923         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95924
95925 2001-09-22  Jim Meyering  <meyering@lucent.com>
95926
95927         * m4/gettext.m4: New file.  From gettext.
95928         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95929         * m4/progtest.m4: Likewise
95930         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95931         * m4/glibc21.m4: Likewise.
95932
95933         * m4/libintl.m4: Remove.  No longer used.
95934
95935 2001-09-22  Jim Meyering  <meyering@lucent.com>
95936
95937         * lib/localcharset.c: Update from latest gettext.
95938         * lib/config.charset: Likewise.
95939
95940 2001-09-20  Jim Meyering  <meyering@lucent.com>
95941
95942         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95943         strtoimax.
95944         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95945         strtoumax.
95946
95947 2001-09-20  Jim Meyering  <meyering@lucent.com>
95948
95949         * lib/xstrtol.c (strtoimax): Guard declaration with
95950         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95951         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95952         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95953         (strtoumax): Likewise, for completeness (it wasn't necessary).
95954
95955 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95956
95957         * lib/strtoimax.c (HAVE_LONG_LONG):
95958         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95959         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95960         to work around bug in IBM C compiler.
95961
95962 2001-09-17  Jim Meyering  <meyering@lucent.com>
95963
95964         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95965         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95966         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95967         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95968         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95969         whenever the right hand side need not be expanded by the shell.
95970
95971 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95972
95973         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95974         library.  It's not correct, as some older glibcs are buggy.
95975         fnmatch wasn't fixed until glibc 2.2.
95976
95977         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95978         special shell magic here.
95979
95980 2001-09-16  Jim Meyering  <meyering@lucent.com>
95981
95982         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95983         * m4/jm-macros.m4: Require it.
95984
95985 2001-09-16  Jim Meyering  <meyering@lucent.com>
95986
95987         * lib/mkdir.c: New file.
95988
95989 2001-09-15  Jim Meyering  <meyering@lucent.com>
95990
95991         * m4/jm-macros.m4: Check for help2man.
95992
95993 2001-09-11  Jim Meyering  <meyering@lucent.com>
95994
95995         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95996         The body, by Paul Eggert, was moved here from configure.in.
95997         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95998
95999 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96000
96001         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96002         (jm_PREREQ): Use it.
96003
96004 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96005
96006         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96007         Use ssize_t, not int, to store result of readlink.
96008         Check for ssize_t overflow as well as size_t overflow,
96009         as POSIX says the result of readlink is implementation-defined
96010         when ssize_t overflows.
96011         Remove unnecessary cast to char*.
96012         Use free+malloc instead of realloc, as the storage doesn't need
96013         to be preserved and it's clearer and can be more efficient that way.
96014         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96015         * lib/xreadlink.h (xreadlink): Update prototype.
96016
96017 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96018
96019         * lib/xgetcwd.c: Revert some of the previous change; intead,
96020         fix the HAVE_GETCWD_NULL code to behave more like the
96021         !HAVE_GETCWD_NULL code used to.
96022
96023         Include "xalloc.h".
96024         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96025         invoke xalloc_die.
96026
96027 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96028
96029         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96030         sys/param.h, as pathmax.h includes them.
96031
96032 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96033
96034         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96035         (jm_PREREQ_XGETCWD): New macro.
96036
96037         * m4/getcwd.m4: New file.
96038
96039 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96040
96041         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96042         like the HAVE_GETCWD_NULL code.
96043         Include pathmax.h if not HAVE_GETCWD.
96044         Do not include xalloc.h.
96045         (INITIAL_BUFFER_SIZE): New symbol.
96046         Do not use xmalloc / xrealloc, since the caller is responsible for
96047         handling errors.  Preserve errno around `free' during failure.
96048         Do not overrun buffer when using getwd.
96049
96050 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96051
96052         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96053         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96054         getcwd (NULL, 0).
96055
96056 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96057
96058         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96059         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96060         spotted by Jim Meyering.
96061
96062 2001-09-03  Jim Meyering  <meyering@lucent.com>
96063
96064         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96065         failure.
96066
96067 2001-09-02  Jim Meyering  <meyering@lucent.com>
96068
96069         * lib/error.c: Update from GNU libc.
96070
96071 2001-09-01  Jim Meyering  <meyering@lucent.com>
96072
96073         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96074         Used by df.
96075
96076 2001-09-01  Jim Meyering  <meyering@lucent.com>
96077
96078         * lib/xreadlink.c: New file.
96079         * lib/xreadlink.h: New file.
96080         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96081         xreadlink.h.
96082
96083         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96084         doesn't conflict with sparc Solaris 7's definition in
96085         /usr/include/sys/int_types.h.
96086
96087         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96088         files.
96089         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96090         and strncasecmp as r-values.  Unixware didn't have declarations.
96091
96092 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96093
96094         * lib/xstrtol.h: Add copyright notice.
96095         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96096         LONGINT_INVALID_SUFFIX_CHAR.
96097
96098 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96099
96100         * lib/xstrtol.c (strtoimax): New decl.
96101
96102 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96103
96104         * lib/xgetcwd.c: Don't include pathmax.h.
96105         Include stdlib.h and unistd.h if available.
96106         Include xalloc.h.
96107         (xmalloc, xstrdup, free): Remove decls.
96108         (xgetcwd): Don't assume sizes fit in unsigned.
96109         Check for overflow when computing sizes.
96110         Simplify reallocation code.
96111
96112 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96113
96114         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96115         a directory's st_size can have an arbitrary value, so the old
96116         usage could waste an arbitrary amount of memory.  All uses
96117         changed.
96118         * lib/savedir.h: Update prototype.
96119
96120 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96121
96122         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96123
96124         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96125         old strtoimax.c.
96126
96127         Also, make the following further changes to make this file's
96128         configuration more similar to that of strtol.c:
96129         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96130         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96131         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96132         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96133         changed to signed values.
96134
96135         And make the following changes as well:
96136         Fix copyright notice, as 1999 was missing.
96137         (verify): New macro.
96138         (strtoimax): Check sizes at compile-time, not run-time.
96139         Prefer strtol to strtoll if both work.
96140         (main): Remove; it was not that useful and was a pain to maintain.
96141
96142         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96143
96144 2001-08-31  Jim Meyering  <meyering@lucent.com>
96145
96146         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96147         Use an initial, malloc'd, buffer of length 128 rather than
96148         a statically allocated one of length 1024.
96149
96150 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96151
96152         Simplify code, partly by assuming autoconf 2.52 semantics.
96153
96154         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96155
96156         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96157         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96158         All uses removed.
96159         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96160         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96161         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96162         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96163         jm_AC_HEADER_INTTYPES_H.
96164         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96165
96166         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96167
96168         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96169         Quote first arg of AC_DEFUN.
96170         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96171         since they are needed to parse the include file even if we need
96172         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96173         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96174         but with opposite signedness.
96175
96176 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96177
96178         Merge 'exclude' changes from tar 1.13.22.
96179         This fixes one or two unlikely storage allocation overflow bugs,
96180         but doesn't change user-visible behavior otherwise.
96181
96182 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96183
96184         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96185         (jm_PREREQ_EXCLUDE): New macro.
96186
96187 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96188
96189         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96190         tm to be declared.
96191
96192 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96193
96194         * lib/hash.c: Remove '2001' from copyright notice.
96195
96196 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96197
96198         * lib/full-write.h: New file.
96199         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96200         * lib/full-write.c: Correct credits, as cccp.c no longer
96201         exists and anyway it was so heavily changed from the old cccp
96202         code as to be unrecognizable.  Include full-write.h.
96203         (full_write): Return size_t, with short writes meaning failure.
96204         All callers changed.  This fixes a bug with large buffers
96205         on 64-bit hosts.
96206         * lib/utime.c: Include full-write.h.
96207
96208 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96209
96210         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96211         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96212         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96213         Include if available.
96214         (<xalloc.h>): Include
96215         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96216         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96217         collide with FNM macros.
96218         (struct patopts): New struct.
96219         (struct exclude): Use it, as exclude patterns now come with options.
96220         (new_exclude): Support above changes.
96221         (new_exclude, add_exclude_file):
96222         Initial size must now be a power of two to simplify overflow checking.
96223         (free_exclude, fnmatch_no_wildcards): New function.
96224         (excluded_filename): No longer requires options arg, as the options
96225         are determined by add_exclude.  Now returns bool, not int.
96226         (excluded_filename, add_exclude):
96227         Add support for the fancy new exclusion options.
96228         (add_exclude, add_exclude_file): Now takes int options arg.
96229         Check for arithmetic overflow when computing sizes.
96230         (add_exclude_file): xrealloc might modify errno, so don't
96231         realloc until after errno might be used.
96232
96233         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96234         New macros.
96235         (free_exclude): New decl.
96236         (add_exclude, add_exclude_file): Now takes int options arg.
96237         (excluded_filename): No longer requires options arg, as the options
96238         are determined by add_exclude.  Now returns bool, not int.
96239
96240 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96241
96242         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96243
96244 2001-08-27  Jim Meyering  <meyering@lucent.com>
96245
96246         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96247
96248         * lib/version-etc.c (N_): Remove definition.
96249         Revert most of last change.
96250         Instead, simply don't mark the `Copyright...' string for translation.
96251         Based on advice from Paul Eggert.
96252
96253         * lib/strtoxmax.c: Tweak comment.
96254
96255 2001-08-26  Jim Meyering  <meyering@lucent.com>
96256
96257         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96258
96259         * m4/xstrtoimax.m4: New file.
96260         * m4/xstrtoumax.m4: Add comments explaining why we
96261         AC_REPLACE_FUNCS(strtol).
96262
96263 2001-08-26  Jim Meyering  <meyering@lucent.com>
96264
96265         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96266         of copyright with `%s' so translators don't get an untranslated
96267         message in 2002.
96268         (COPYRIGHT_YEAR): Define.
96269         (version_etc): Use fprintf rather than fputs.
96270         Suggestion from Ulrich Drepper.
96271
96272         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96273
96274         * lib/strtoll.c: New file, from GNU libc.
96275         * lib/xstrtoimax.c: New file.
96276
96277         * lib/xstrtol.h: Add xstrtoimax.
96278         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96279         * lib/strtoimax.c: New file.  Likewise, but first define
96280         STRTOUXMAX_SIGNED.
96281
96282         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96283         ...
96284         * lib/strtoxmax.c: ... then renamed to this.
96285
96286 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96287
96288         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96289         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96290         (jm_AC_TYPE_INTMAX_T): New macro.
96291         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96292
96293         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96294
96295         * m4/longlong.m4: Renamed from ulonglong.m4.
96296         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96297         * m4/uintmax_t.m4: Removed.
96298
96299 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96300
96301         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96302         Port to Solaris 8, where 'sed' requires a space after the 'r'
96303         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96304         Redirect output to $tmp just once.
96305
96306 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96307
96308         * lib/addext.c (<errno.h>): Include.
96309         (errno): Declare if not defined.
96310         (addext): Work correctly when pathconf returns -1 and leaves
96311         errno alone because there is no limit.  Also, work even if
96312         pathconf returns a value greater than SIZE_MAX.
96313
96314 2001-08-12  Jim Meyering  <meyering@lucent.com>
96315
96316         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96317         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96318         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96319         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96320         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96321         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96322         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96323         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96324         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96325         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96326         utime.m4, utimes.m4, xstrtoumax.m4:
96327         Quote the first argument in each use of AC_DEFUN.
96328
96329 2001-08-12  Jim Meyering  <meyering@lucent.com>
96330
96331         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96332         Simply `return getcwd (NULL, 0);'.
96333         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96334         Use 1300 as initial value for length, not PATH_MAX.
96335
96336         * lib/pathmax.h: Clean up cpp syntax.
96337
96338 2001-08-12  Jim Meyering  <meyering@lucent.com>
96339
96340         * lib/gettimeofday.c: New file.
96341         * lib/gtod.h: New file.
96342         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96343
96344 2001-08-05  Jim Meyering  <meyering@lucent.com>
96345
96346         * m4/jm-macros.m4: Require autoconf-2.52.
96347
96348 2001-08-04  Jim Meyering  <meyering@lucent.com>
96349
96350         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96351         stmt, to get in sync with glibc.
96352
96353 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96354
96355         The following changes are from gettext 0.10.39 as maintained by
96356         Bruno Haible.
96357
96358         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96359         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96360         with inverted sense.  All uses changed.
96361
96362         * lib/mbswidth.c: Don't include <limits.h>.
96363         Include <stdlib.h> and <string.h> unconditionally.
96364         (iswcntrl, mbsinit, ISCNTRL): New macros.
96365         (mbsnwidth): Use K&R style function declarations.
96366         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96367         can optimize it when MB_CUR_MAX == 1.
96368         The width of control characters is zero, not 1.
96369
96370 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96371
96372         The following changes are from gettext 0.10.39 as maintained by
96373         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96374
96375         * m4/codeset.m4: Upgrade to serial AM1.
96376         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96377         all uses changed.  Quote first arg of AC_DEFUN.
96378         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96379
96380         * m4/iconv.m4: Upgrade to serial AM2.
96381         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96382         Add --with-libconv-prefix.
96383         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96384         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96385         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96386         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96387         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96388
96389         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96390         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96391         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96392         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96393         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96394         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96395         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96396         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96397         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96398
96399         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96400         string.h any more.
96401
96402         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96403         not the default value.
96404
96405         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96406         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96407         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96408         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96409         Also check for iswcntrl, used for wcwidth fallback.
96410         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96411         to Autoconf 2.13.
96412
96413 2001-08-03  Jim Meyering  <meyering@lucent.com>
96414
96415         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96416         as it was in the original.  Reported by Paul Eggert.
96417
96418 2001-07-16  Jim Meyering  <meyering@lucent.com>
96419
96420         * m4/gettimeofday.m4: New file.
96421         Prompted by a report from Bernhard Baehr.
96422
96423 2001-07-15  Jim Meyering  <meyering@lucent.com>
96424
96425         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96426         stuff. Now it's in ../Makefile.cfg.
96427
96428 2001-07-15  Jim Meyering  <meyering@lucent.com>
96429
96430         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96431         (BUILT_SOURCES): Add unlocked-io.h.
96432         (io_functions): Define.
96433         (unlocked-io.h): New rule.
96434         (DISTCLEANFILES): Add unlocked-io.h.
96435         (all-local): Depend on unlocked-io.h, to ensure it is created.
96436
96437         * lib/unlocked-io.hin: New file
96438
96439         * lib/regex.c: Update from glibc.
96440
96441 2001-07-05  Jim Meyering  <meyering@lucent.com>
96442
96443         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96444         recommendation.
96445         (libfetish_a_SOURCES): Put all .h files here instead.
96446         Remove a thus-exposed (better checks in automake) duplicate and
96447         two unnecessary .h files.
96448
96449 2001-07-04  Jim Meyering  <meyering@lucent.com>
96450
96451         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96452         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96453         distcheck failure.
96454
96455 2001-07-02  Jim Meyering  <meyering@lucent.com>
96456
96457         The following changes were prompted by suggestions from Bruno Haible.
96458
96459         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96460         is now generated.
96461         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96462         definition of EXTRA_DIST.
96463         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96464         ensure that the generated file is created/updated whenever the list
96465         of $(unlocked_functions) is changed.
96466         (jm-glibc-io.m4): New rule.
96467         (unlocked-io.h): New rule -- currently unused.
96468
96469 2001-06-24  Jim Meyering  <meyering@lucent.com>
96470
96471         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96472         unmatched right bracket, rather than kludging it with an extra,
96473         falsely-matching quote in a comment.  Patch by Akim Demaille.
96474
96475 2001-06-11  Jim Meyering  <meyering@lucent.com>
96476
96477         * lib/regex.c: Update from GNU libc.
96478
96479 2001-05-27  Jim Meyering  <meyering@lucent.com>
96480
96481         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96482         Check for ut_type in struct utmp.
96483
96484 2001-05-27  Jim Meyering  <meyering@lucent.com>
96485
96486         * lib/readutmp.h (UT_TYPE): Define.
96487
96488 2001-05-24  Jim Meyering  <meyering@lucent.com>
96489
96490         * lib/argmatch.c: Include "quote.h".
96491         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96492         quote function.  Reported by Göran Uddeborg.
96493
96494 2001-05-22  Jim Meyering  <meyering@lucent.com>
96495
96496         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96497         now that we use the package-supplied version unconditionally.
96498         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96499
96500 2001-05-21  Jim Meyering  <meyering@lucent.com>
96501
96502         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96503         shell syntax errors.
96504
96505 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96506
96507         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96508
96509 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96510
96511         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96512         Don't bother to check library strftime, since
96513         we'll be using our own my_strftime function anyway.
96514         Define my_strftime instead of strftime.
96515
96516 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96517
96518         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96519         which is not yet declared.
96520
96521 2001-05-15  Jim Meyering  <meyering@lucent.com>
96522
96523         * m4/regex.m4: Use proper quoting so brackets appear in the test
96524         program.
96525         Reported by, and with help from, Bruno Haible.
96526
96527 2001-05-13  Jim Meyering  <meyering@lucent.com>
96528
96529         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96530         undefined.
96531
96532 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96533
96534         dirname code cleanup.  base_name now behaves more compatibly
96535         with POSIX basename when given file names that have trailing
96536         slashes, and similarly for dir_name.  Add new primitives
96537         base_len and dir_len.  Put the directory-name-related decls
96538         into dirname.h.
96539
96540         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96541         * lib/backupfile.c (base_name): Likewise.
96542         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96543         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96544         * lib/makepath.c (strip_trailing_slashes): Likewise.
96545         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96546         ISSLASH): Likewise.
96547         * lib/rename.c (strip_trailing_slashes): Likewise.
96548         * lib/same.c (base_name): Likewise.
96549         * lib/stripslash.c (ISSLASH): Likewise.
96550
96551         * lib/addext.c: Include <dirname.h> after size_t is defined.
96552         * lib/backupfile.c: Likewise.
96553
96554         * lib/addext.c (addext): Use base_len to trim redundant
96555         trailing slashes instead of doing it ourselves.
96556         But do not trim the last slash if it is not redundant.
96557
96558         * lib/backupfile.c (find_backup_file_name,
96559         max_backup_version): Use base_len instead of rolling it ourselves.
96560         Handle the case of "" and (on DOS) "C:" correctly.
96561
96562         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96563         needed. Include <string.h>, <dirname.h>.
96564         (base_name): Allow file names ending in slashes, other than names
96565         that are all slashes.  In this case, return the basename followed
96566         by the slashes.  This is more general, and can be used in places
96567         where the original base_name purposely had an assertion failure.
96568         (base_len): New function.
96569
96570         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96571         Do not include <assert.h>; no longer needed.
96572         Include xalloc.h.
96573         (memrchr): Remove decl.
96574         (dir_name_r): Remove.
96575         (dir_len): Renamed from dirlen.  All callers changed.
96576         Rewrite in terms of base_name, for simplicity and consistency.
96577         (dir_name): Never return NULL.  All callers changed.
96578         Do not include <stdlib.h> in test program; no longer needed.
96579         return 0; is fine for test program.
96580
96581         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96582         New macros.
96583         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96584
96585         * lib/path-concat.c (path_concat): Use base_len to compute
96586         base length, not strlen; this means we cannot rely on memcpy
96587         to null-terminate.
96588
96589         * lib/same.c (STREQ): Remove.
96590         (same_name): Handle the case where the basename ends in trailing '/'.
96591
96592         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96593         a slash was stripped.  Do not strip the last slash after a
96594         file system prefix.
96595
96596 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96597
96598         * lib/Makefile.am (libfetish_a_SOURCES):
96599         Add strftime.c, since we now compile it on all hosts.
96600
96601         * lib/strftime.c (my_strftime):
96602         Define to nstrftime if emacs, but only if my_strftime is not defined.
96603         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96604         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96605         Add one more extra argument: a nanoseconds value.
96606         All uses changed.
96607         (ns): New macro.
96608         (my_strftime function): Add %N format.
96609         (emacs_strftimeu): Renamed from emacs_strftime,
96610         with extra ut argument.
96611
96612 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96613
96614         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96615
96616 2001-04-21  Jim Meyering  <meyering@lucent.com>
96617
96618         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96619         doesn't interfere.
96620
96621 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96622
96623         * m4/ftruncate.m4: Check for chsize.
96624         Link with ftruncate.o unconditionally if ftruncate is missing.
96625         This was required when cross-compiling to i586-mingw32msvc.
96626
96627 2001-04-08  Jim Meyering  <meyering@lucent.com>
96628
96629         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96630         recomputed; that's necessary when the offset spans a DST transition.
96631         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96632
96633 2001-04-02  Jim Meyering  <meyering@lucent.com>
96634
96635         * lib/regex.h, regex.c: Update from GNU libc.
96636
96637 2001-03-24  Jim Meyering  <meyering@lucent.com>
96638
96639         * m4/jm-macros.m4: Require autoconf-2.49d.
96640
96641 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96642
96643         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96644
96645 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96646
96647         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96648
96649 2001-03-17  Jim Meyering  <meyering@lucent.com>
96650
96651         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96652         now that the version in autoconf is equivalent.
96653         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96654
96655         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96656         Suggestion from Akim Demaille.
96657
96658         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96659         (jm_PREREQ_TEMPNAME): New function.
96660
96661 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96662
96663         * lib/tempname.c (uint64_t): Define to uintmax_t if
96664         not defined, and if UINT64_MAX is not defined.
96665         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96666         Reported by John David Anglin.
96667
96668 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96669
96670         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96671         resolve alias if codeset is empty.
96672         * lib/config.charset (BeOS): Use wildcard syntax.
96673
96674 2001-03-13  Jim Meyering  <meyering@lucent.com>
96675
96676         * lib/path-concat.c (path_concat)
96677         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96678         concatenating e.g., `C:' and `foo'.
96679         From Bruno Haible.
96680
96681 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96682
96683         * lib/localcharset.c (locale_charset): Don't use
96684         setlocale(LC_CTYPE,NULL). Don't return NULL.
96685         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96686
96687 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96688
96689         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96690         support for DOS/DJGPP.
96691
96692 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96693
96694         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96695         lacks mkstemp.  Compile our own tempname.c if we compile our own
96696         mkstemp.c, as mkstemp relies on tempname.
96697
96698 2001-03-01  Jim Meyering  <meyering@lucent.com>
96699
96700         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96701         AH_VERBATIM really does output its argument verbatim.
96702
96703 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96704
96705         * lib/Makefile.am (libfetish_a_SOURCES):
96706         Add dup-safer.c, fopen-safer.c.
96707         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96708
96709         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96710         * lib/unistd-safer.h: New files.
96711
96712 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96713
96714         The mkstemp replacement is taken from glibc 2.2.2, with some
96715         portability fixes for use outside glibc, as follows:
96716
96717         * lib/tempname.c (struct_stat64): New macro.
96718         (direxists, __gen_tempname): Use it.
96719         This avoids a portability problem with Solaris 8.
96720
96721         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96722         (<stddef.h>, <stdint.h>, <string.h>):
96723         Include only if STDC_HEADERS || _LIBC.
96724         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96725         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96726         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96727         (__set_errno): Define this macro if <errno.h> doesn't.
96728         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96729         Define these macros if <stdio.h> doesn't.
96730         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96731         Define these macros if <sys/stat.h>
96732         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96733         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96734         __xstat64): Define if not _LIBC.
96735         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96736         (__gen_tempname): Invoke gettimeofday only if
96737         HAVE_GETTIMEOFDAY || _LIBC;
96738         otherwise, fall back on plain "time".
96739         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96740
96741         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96742
96743         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96744
96745 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96746
96747         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96748
96749 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96750
96751         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96752         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96753         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96754         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96755
96756 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96757
96758         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96759         Remove workaround macros for hosts that have mbrtowc but not
96760         mbstate_t, as we now insist on proper declarations for both
96761         before using mbrtowc.
96762
96763 2001-02-17  Jim Meyering  <meyering@lucent.com>
96764
96765         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96766         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96767         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96768         UnixWare 7.1.1.
96769
96770         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96771         rather than AC_CACHE_VAL.
96772
96773 2001-02-17  Jim Meyering  <meyering@lucent.com>
96774
96775         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96776         around included file name.
96777
96778         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96779
96780         * lib/strftime.c: Update from GNU libc (the only changes were to
96781         comments).
96782
96783 2001-02-17  Jim Meyering  <meyering@lucent.com>
96784
96785         * lib/regex.c: Update from libc.
96786
96787 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96788
96789         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96790         clash.
96791
96792 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96793
96794         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96795         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96796         Reported by Mark Hounschell via Paul Eggert.
96797
96798 2001-02-07  Jim Meyering  <meyering@lucent.com>
96799
96800         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96801
96802 2001-02-05  Jim Meyering  <meyering@lucent.com>
96803
96804         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96805         it includes the patch required for `large file' support with at least
96806         HP-UX's 10.20 /bin/cc.
96807
96808 2001-02-03  Jim Meyering  <meyering@lucent.com>
96809
96810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96811         AS_IF, now that it works once again (mysteriously).
96812         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96813
96814 2001-01-30  Jim Meyering  <meyering@lucent.com>
96815
96816         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96817         * m4/chown.m4: Rename conftestchown to conftest.chown.
96818         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96819         s/conftestdir2/conftest.d2/.
96820         * m4/utimes.m4: s/conftestdata/conftest.data/
96821         Inspired by Pavel Roskin's change in autoconf.
96822
96823 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96824
96825         * lib/config.charset: Update for FreeBSD 4.2.
96826
96827 2001-01-27  Jim Meyering  <meyering@lucent.com>
96828
96829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96830         a use of AS_IF.
96831         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96832
96833 2001-01-26  Jim Meyering  <meyering@lucent.com>
96834
96835         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96836         quotearg.c includes it.
96837
96838 2001-01-26  Jim Meyering  <meyering@lucent.com>
96839
96840         * lib/quotearg.c: Include stddef.h.
96841         * lib/quote.c: Include stddef.h.
96842         Reported by Axel Kittenberger.
96843
96844         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96845         line in double quotes so that it evokes a better diagnostic.
96846         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96847         Reported by Axel Kittenberger.
96848
96849 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96850
96851         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96852         as if it was a `charset'.
96853
96854 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96855
96856         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96857         has const.
96858
96859 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96860
96861         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96862         to avoid a warning.  Add back 'const' to inptr.
96863
96864 2001-01-20  Jim Meyering  <meyering@lucent.com>
96865
96866         Be sure that headers are checked before used in code compiled
96867         for the type checks.
96868         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96869         In place of that, invoke jm_CHECK_ALL_TYPES.
96870         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96871         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96872         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96873         The check for ssize_t was mistakenly run before the test for unistd.h.
96874
96875         The configure-time check for stdbool.h was missing.
96876         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96877         (jm_PREREQ_HASH): New function.
96878
96879 2001-01-17  Jim Meyering  <meyering@lucent.com>
96880
96881         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96882         for autoconf-2.49c.
96883         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96884
96885 2001-01-16  Jim Meyering  <meyering@lucent.com>
96886
96887         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96888         From Bruno Haible.
96889
96890 2001-01-14  Jim Meyering  <meyering@lucent.com>
96891
96892         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96893         foo and bar.  Create conftestdir/ in the script, not in the C code.
96894         Remove directories in the script, not in the C code.
96895         Remove conftestdir{,2} before trying to create the directory.
96896         Make the entire configure script fail if the mkdir fails.
96897
96898 2001-01-14  Jim Meyering  <meyering@lucent.com>
96899
96900         * lib/rename.c: New file.  From Volker Borchert.
96901         Include stdlib.h, string.h or strings.h, and xalloc.h.
96902         Use strip_trailing_slashes rather than open-coding it.
96903
96904 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96905
96906         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96907
96908 2001-01-03  Jim Meyering  <meyering@lucent.com>
96909
96910         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96911         of local `inptr' to avoid warning with some system declarations of
96912         iconv.
96913
96914 2001-01-02  Volker Borchert  <bt@teknon.de>
96915
96916         * m4/rename.m4: New file.
96917         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96918
96919 2001-01-01  Jim Meyering  <meyering@lucent.com>
96920
96921         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96922         even on systems with utmpx.h.  It's necessary for the declaration of
96923         utmp's ut_user member.  Reported by Andreas Jaeger.
96924
96925         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96926         available. They are required for the declarations of getgrgid and
96927         getpwuid resp.
96928         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96929         Reported by Andreas Jaeger.
96930
96931 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96932
96933         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96934         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96935         so `make install' also works in VPATH builds.
96936
96937 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96938
96939         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96940         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96941         can be used in subdirectories.
96942
96943 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96944
96945         * lib/modechange.c: Do not assume that mode_t uses the
96946         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96947         the other-execute bit of FOO even if S_IXOTH != 1.
96948
96949         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96950         WOTH, XOTH, ALLM): New macros.
96951         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96952          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96953         Use them.
96954         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96955         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96956         (mode_compile):
96957         No need to use uintmax_t; unsigned long is long enough.
96958         Don't bother to get suffix since we don't use it.
96959
96960 2000-12-26  Jim Meyering  <meyering@lucent.com>
96961
96962         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96963         better with autoheader.
96964
96965 2000-12-24  Jim Meyering  <meyering@lucent.com>
96966
96967         * lib/hash.c (is_prime): Return explicit boolean values.
96968         (hash_get_first): Return NULL to appease Irix5.6's 89.
96969         Reported by Nelson Beebe.
96970
96971 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96972
96973         * lib/localcharset.c (locale_charset): Add support for Win32.
96974
96975 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96976
96977         * lib/physmem.h, lib/physmem.c: New files.
96978
96979         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96980         (noinst_HEADERS): Add physmem.h.
96981
96982         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96983         't' for compatibility with Solaris 8 sort.
96984
96985 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96986
96987         * lib/config.charset: Add support for BeOS.
96988
96989 2000-12-17  Jim Meyering  <meyering@lucent.com>
96990
96991         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96992         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96993
96994 2000-12-16  Jim Meyering  <meyering@lucent.com>
96995
96996         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96997         N and M) would have treated it like `chown N:N FILE'.
96998
96999         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97000
97001 2000-12-16  Jim Meyering  <meyering@lucent.com>
97002
97003         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97004         SHELLS_FILE to a file name that's useful on djgpp systems.
97005         Include stdlib.h.
97006         (ADDITIONAL_DEFAULT_SHELLS): Define.
97007         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97008         Based mostly on a patch from Prashant TR.
97009
97010 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97011
97012         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97013         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97014         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97015
97016 2000-12-08  Andreas Schwab  <schwab@suse.de>
97017
97018         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97019         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97020
97021 2000-12-07  Jim Meyering  <meyering@lucent.com>
97022
97023         * lib/stripslash.c (ISSLASH): Define.
97024         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97025         `/'.
97026         From Prashant TR.
97027
97028         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97029         (dir_name_r): Declare this function as static.
97030         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97031         manifest itself on a name containing a mix of slashes and
97032         backslashes.
97033         Make this function work with names starting with a DOS-style
97034         drive letter and colon prefix.
97035         (dir_name): Append `.' if necessary.
97036         Based mostly on patches from Prashant TR and Eli Zaretskii.
97037
97038         * lib/dirname.h (dir_name_r): Remove prototype.
97039
97040 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97041
97042         * m4/off_t-format.m4: Remove this file.
97043         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97044
97045 2000-12-06  Jim Meyering  <meyering@lucent.com>
97046
97047         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97048         replacement strtoull, we may well need the replacement strtoul, too.
97049         Check for declarations of strtoul and strtoull.
97050         Check for strtol.  Mainly as a cue to cause automake to include
97051         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97052         Check for limits.h -- strtol.c needs it.
97053
97054 2000-12-05  Jim Meyering  <meyering@lucent.com>
97055
97056         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97057
97058 2000-12-04  Jim Meyering  <meyering@lucent.com>
97059
97060         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97061         Also include memory.h, stdlib.h, unistd.h if appropriate.
97062         Reported by Andreas Jaeger (conflicting declaration of malloc).
97063
97064 2000-12-02  Jim Meyering  <meyering@lucent.com>
97065
97066         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97067         * m4/jm-macros.m4 (jm_MACROS): require it.
97068
97069 2000-12-02  Jim Meyering  <meyering@lucent.com>
97070
97071         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97072
97073 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97074
97075         * lib/memrchr.c: Include <config.h> before any system include file.
97076
97077 2000-11-30  Jim Meyering  <meyering@lucent.com>
97078
97079         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97080
97081 2000-11-30  Jim Meyering  <meyering@lucent.com>
97082
97083         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97084
97085 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97086
97087         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97088
97089 2000-11-26  Jim Meyering  <meyering@lucent.com>
97090
97091         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97092
97093 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97094
97095         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97096         size of (size_t) -1; it's not portable.
97097
97098 2000-11-17  Jim Meyering  <meyering@lucent.com>
97099
97100         * lib/strstr.c: Update from GNU libc.
97101
97102 2000-11-17  Akim Demaille  <akim@epita.fr>
97103
97104         * lib/obstack.h: Formatting changes.
97105         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97106         prevent type checking.
97107         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97108         cast the value to (void *): assigning a `foo *' to a `void *'
97109         variable is valid.
97110         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97111
97112 2000-11-16  Jim Meyering  <meyering@lucent.com>
97113
97114         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97115
97116 2000-11-11  Jim Meyering  <meyering@lucent.com>
97117
97118         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97119
97120 2000-11-10  Jim Meyering  <meyering@lucent.com>
97121
97122         * lib/obstack.h: Update from GNU libc.
97123         * lib/obstack.c: Likewise.
97124
97125 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97126
97127         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97128
97129 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97130
97131         * lib/getusershell.c (setusershell): Use rewind rather than
97132         fseek/fseeko, to avoid configuration hassles with fseeko.
97133         Don't bother opening SHELLS_FILE if shellstream is NULL;
97134         it's not necessary.
97135
97136 2000-11-05  Jim Meyering  <meyering@lucent.com>
97137
97138         * lib/makepath.h (make_dir): Declare.
97139         * lib/makepath.c (make_dir): Remove `static' attribute.
97140         Tweak a comment.
97141
97142 2000-11-04  Jim Meyering  <meyering@lucent.com>
97143
97144         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97145
97146 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97147
97148         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97149         last one in a bucket, advance to the next bucket.
97150
97151 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97152
97153         * lib/fnmatch.c: Do not comment out all the code if we are using
97154         the GNU C library, because in some cases we are replacing buggy
97155         code in the GNU C library itself.
97156
97157 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97158
97159         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97160         (regex_compile): Catch bogus \(\1\).
97161
97162 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97163
97164         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97165         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97166         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97167
97168 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97169
97170         * lib/error.h, getline.h, modechange.h:
97171         Remove "2000" from Copyright line, as the file hasn't been
97172         changed this year other than in the copyright notice.
97173
97174         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97175         was changed this year.
97176
97177 2000-10-29  Jim Meyering  <meyering@lucent.com>
97178
97179         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97180         renaming.
97181         * m4/ls-mntd-fs.m4: Likewise
97182
97183 2000-10-29  Jim Meyering  <meyering@lucent.com>
97184
97185         * lib/xstat.in: Fix grammar in comment.
97186
97187 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97188
97189         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97190         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97191         doesn't define __restrict_arr.
97192
97193 2000-10-28  Jim Meyering  <meyering@lucent.com>
97194
97195         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97196         (jm_PREREQ_MEMCHR): New function.
97197
97198 2000-10-28  Jim Meyering  <meyering@lucent.com>
97199
97200         * lib/memchr.c: Update from libc.
97201         Adjust for portability:
97202         [HAVE_STDLIB_H]: Include stdlib.h.
97203         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97204         Undef __memchr, too.
97205         [!weak_alias]: Define __memchr to memchr.
97206
97207         * lib/regex.c: Update from libc.
97208         * lib/regex.h: Likewise.
97209         * lib/getopt1.c: Likewise.
97210         * lib/memcmp.c: Likewise.
97211
97212         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97213         Avoid using fseek, when possible -- it's broken by design.
97214         Patch by Ulrich Drepper.
97215
97216 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97217
97218         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97219         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97220         Giving in to popular pressure to shut up the compiler with casts.
97221
97222 2000-10-26  Jim Meyering  <meyering@lucent.com>
97223
97224         * lib/strftime.c: Update from libc.
97225
97226 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97227
97228         * regex.c: More `unsigned char' -> `re_char' changes.
97229         Also change several `int' into `re_wchar_t'.
97230         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97231         (PUSH_FAILURE_POINTER): Don't cast any more.
97232         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97233         We want GCC to complain, since this piece of code makes
97234         re_match non-reentrant, which *should* be fixed.
97235         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97236         (EXTEND_BUFFER): Use RETALLOC.
97237         (SET_LIST_BIT): Don't cast.
97238         (re_wchar_t): New type.
97239         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97240         that those two functions will always properly return.
97241         (IMMEDIATE_QUIT_CHECK): Cast to void.
97242         (analyse_first): Use recursion rather than an explicit stack.
97243         (re_compile_fastmap): Can't fail anymore.
97244         (re_search_2): Don't check re_compile_fastmap for failure.
97245         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97246         Now also sets the new value (passed in a new argument).
97247         (re_match_2_internal): Use it.
97248         Also, use a new var `reg' of type size_t when looping through regs
97249         rather than reuse the inappropriate `mcnt'.
97250
97251 2000-10-25  Jim Meyering  <meyering@lucent.com>
97252
97253         * lib/obstack.c: Update from libc.
97254
97255 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97256
97257         * regex.c (regex_compile): Change the way of handling a range from
97258         a char less than 256 to a char not less than 256.
97259
97260 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97261
97262         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97263         NT-Emacs only.
97264         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97265         so that re_search functions only quit when callers expect them to.
97266
97267 2000-10-23  Jim Meyering  <meyering@lucent.com>
97268
97269         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97270         wrong.  That set_locale call must not have any side effects.
97271         From Paul Eggert.
97272
97273 2000-10-22  Jim Meyering  <meyering@lucent.com>
97274
97275         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97276         [CYCLIC]: Remove now-unused definition.
97277
97278         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97279         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97280         Suggestion from Ulrich Drepper.
97281
97282 2000-10-21  Jim Meyering  <meyering@lucent.com>
97283
97284         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97285         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97286         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97287
97288 2000-10-21  Jim Meyering  <meyering@lucent.com>
97289
97290         * lib/dirname.c (memrchr): Declare if necessary.
97291         (dir_name): Remove the restriction that there be no
97292         trailing slashes.  Now, this code skips past them, effectively
97293         ignoring them.
97294         [TEST_DIRNAME] (main): New unit tests.
97295
97296         * lib/memrchr.c: New file from GNU libc.
97297         Undef __memrchr, too.
97298         [!weak_alias]: Define __memrchr to memrchr.
97299         Guard weak_alias use with `#ifdef weak_alias'.
97300
97301 2000-10-21  Jim Meyering  <meyering@lucent.com>
97302
97303         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97304         (dir_name): Use dir_name_r.
97305         * lib/dirname.h (dir_name_r): Declare it.
97306
97307 2000-10-17  Jim Meyering  <meyering@lucent.com>
97308
97309         * lib/quote.h (PARAMS): Define and use.
97310         Reported by Akim Demaille.
97311
97312         * lib/getopt.c: Update from libc.
97313
97314 2000-10-16  Jim Meyering  <meyering@lucent.com>
97315
97316         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97317         setlocale.
97318         From Jan Fedak.
97319
97320 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97321
97322         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97323
97324 2000-09-25  Jim Meyering  <meyering@lucent.com>
97325
97326         * lib/md5.h (rol): Define (from GnuPG).
97327
97328         * lib/sha.c: Give credit (GnuPG) where due.
97329         (M): Use rol rather than open-coding it.
97330         Add a FIXME comment.
97331
97332 2000-09-21  Jim Meyering  <meyering@lucent.com>
97333
97334         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97335         Reported by Michael Stone.
97336
97337 2000-09-20  Jim Meyering  <meyering@lucent.com>
97338
97339         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97340         (noinst_HEADERS): Add sha.h.
97341         Based on code from Scott G. Miller and from GnuPG.
97342
97343 2000-09-18  Jim Meyering  <meyering@lucent.com>
97344
97345         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97346         LIBS. Otherwise, everyone ends up linking with -lelf for some
97347         configurations.
97348         Reported by Mike Stone.
97349
97350 2000-09-15  Jim Meyering  <meyering@lucent.com>
97351
97352         * lib/regex.c: Update from libc.
97353
97354 2000-09-10  Jim Meyering  <meyering@lucent.com>
97355
97356         * lib/getopt.c (_getopt_internal): Update from glibc.
97357
97358 2000-09-09  Jim Meyering  <meyering@lucent.com>
97359
97360         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97361         think it should be used as a general replacement for isascii.
97362         * lib/fnmatch.c: Likewise.
97363         * lib/mbswidth.c: Likewise
97364         * lib/regex.c: Likewise.
97365
97366         Don't use atoi.
97367         * lib/userspec.c: Include sys/param.h and limits.h.
97368         Include xstrtol.h.
97369         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97370         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97371         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97372         UID, GID.  Check range.
97373
97374 2000-09-06  Jim Meyering  <meyering@lucent.com>
97375
97376         * lib/getopt.c (_getopt_internal): Update from glibc.
97377
97378 2000-08-30  Jim Meyering  <meyering@lucent.com>
97379
97380         * lib/strftime.c: Merge in changes from GNU libc.
97381
97382 2000-08-26  Jim Meyering  <meyering@lucent.com>
97383
97384         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97385         * m4/fpending.m4: New file.
97386
97387 2000-08-26  Jim Meyering  <meyering@lucent.com>
97388
97389         * lib/closeout.c: Include "__fpending.h".
97390         (close_stdout_status): Return right away if there's nothing to flush.
97391
97392         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97393         * lib/__fpending.c: New file.
97394         * lib/__fpending.h: New file.
97395
97396 2000-08-20  Jim Meyering  <meyering@lucent.com>
97397
97398         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97399         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97400         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97401
97402 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97403
97404         Improve fileutils installation on systems where running
97405         programs (like install) can't be unlinked.
97406         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97407         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97408
97409 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97410
97411         Standardize on "memory exhausted" instead of "Memory exhausted"
97412         or "virtual memory exhausted".
97413         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97414         "virtual memory exhausted".
97415         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97416         our own message.
97417         * lib/userspec.c (parse_user_spec): Likewise.
97418         * lib/bumpalloc.h: comment fix
97419         * lib/same.c, userspec.c: Include xalloc.h.
97420
97421         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97422         not char *const and pointing to a constant array.
97423         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97424         (xrealloc): Comment fix.
97425
97426         * lib/userspec.c (parse_user_spec):
97427         Don't translate a message until just before returning,
97428         to avoid unnecessary translation.
97429
97430 2000-08-07  Jim Meyering  <meyering@lucent.com>
97431
97432         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97433         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97434         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97435         getgroups.c, gethostname.c, getopt.h, group-member.c,
97436         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97437         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97438         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97439         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97440         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97441         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97442         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97443         yesno.c: Back out Copyright date changes for each file with no change
97444         this year.  This eases coordination with other programs using the same
97445         source code modules.  From Paul Eggert.
97446
97447 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97448
97449         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97450         not char, for compatibility with glibc 2.1.3 strftime.c.
97451
97452 2000-08-03  Greg McGary  <greg@mcgary.org>
97453
97454         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97455         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97456         (EXTEND_BUFFER): Use them.
97457
97458 2000-08-01  Jim Meyering  <meyering@lucent.com>
97459
97460         * lib/dirname.c (ISSLASH): Define.
97461         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97462         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97463         both `\' and `/' may be use as path separators.
97464         Based on a patch from Prashant TR.
97465
97466 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97467
97468         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97469         slot vector a constant, since it might get modified.
97470
97471 2000-07-31  Jim Meyering  <meyering@lucent.com>
97472
97473         * lib/xmalloc.c: Use `virtual memory exhausted', not
97474         `Memory exhausted'.
97475         * lib/obstack.c (print_and_abort): Likewise.
97476
97477 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97478
97479         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97480         buffer, so that the caller can always quote one small
97481         component of a "memory exhausted" message in slot 0.
97482         From a suggestion by Jim Meyering.
97483
97484 2000-07-30  Jim Meyering  <meyering@lucent.com>
97485
97486         * lib/makepath.c (make_path): Quote the other instance, too.
97487
97488         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97489         (STATIC_BUF_SIZE): Define.
97490         (quotearg_n_options): Use only statically allocated storage when
97491         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97492         than STATIC_BUF_SIZE.
97493
97494 2000-07-29  Jim Meyering  <meyering@lucent.com>
97495
97496         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97497         * lib/dirname.c (dir_name): Likewise.
97498
97499         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97500         `/'.
97501
97502         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97503         (dir_name): Assert that there are no trailing slashes.
97504
97505 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97506
97507         * lib/mbswidth.h (mbswidth): Add a flags argument.
97508         (mbswidth): New declaration.
97509         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97510         * lib/mbswidth.c (mbswidth): Add a flags argument.
97511         (mbsnwidth): New function.
97512
97513 2000-07-24  Jim Meyering  <meyering@lucent.com>
97514
97515         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97516
97517 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97518
97519         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97520
97521 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97522
97523         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97524         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97525         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97526         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97527         invoke multibyte primitives.
97528
97529 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97530
97531         * lib/quotearg.c:
97532         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97533         so that mbstate_t is always defined.
97534
97535         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97536         be 1 in at least one GCC installation, and this configuration
97537         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97538         performance on hosts that have mbrtowc but have only unibyte
97539         locales, but I assume these hosts are rare.
97540
97541 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97542
97543         * lib/mbswidth.c (_XOPEN_SOURCE):
97544         Don't define; this causes problems on Solaris 7.
97545         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97546
97547 2000-07-23  Jim Meyering  <meyering@lucent.com>
97548
97549         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97550         too: getgrgid, getpwuid, getuid.
97551
97552 2000-07-23  Jim Meyering  <meyering@lucent.com>
97553
97554         * lib/basename.c (base_name): Add an assertion.
97555
97556 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97557
97558         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97559         shadow its mbsinit function.
97560
97561 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97562
97563         * lib/mbswidth.h: New file.
97564         * lib/mbswidth.c: New file.
97565         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97566         (noinst_HEADERS): Add mbswidth.h.
97567
97568 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97569
97570         * lib/config.charset: Add support for FreeBSD. Improve support for
97571         HP-UX and IRIX 6.
97572
97573 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97574
97575         * m4/mbswidth.m4: New file.
97576         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97577
97578 2000-07-15  Jim Meyering  <meyering@lucent.com>
97579
97580         * lib/makepath.c: Include quote.h.
97581         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97582         corresponding argument in a `quote (...)' call.
97583         Give better diagnostics.
97584
97585         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97586         (noinst_HEADERS): Add quote.h.
97587
97588         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97589         from tar's src/misc.c.
97590         * lib/quote.h: New file.  Prototypes for same.
97591
97592 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97593
97594         From a suggestion by Bruno Haible.
97595         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97596         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97597         to decide whether to define the BeOS workaround macro;
97598         this adjusts to the change to AC_MBSTATE_T.
97599
97600 2000-07-14  Jim Meyering  <meyering@lucent.com>
97601
97602         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97603         jm_AC_TYPE_UINTMAX_T.
97604
97605 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97606
97607         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97608
97609         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97610         quotearg_buffer_restyled): Add support for
97611         clocale_quoting_style.  Undo previous change to
97612         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97613         and "{RIGHT QUOTATION MARK}" msgids.
97614
97615 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97616
97617         From a suggestion by Bruno Haible.
97618         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97619         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97620         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97621         and mbstate_t, to a single-part test that simply defines mbstate_t.
97622         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97623         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97624
97625 2000-07-10  Jim Meyering  <meyering@lucent.com>
97626
97627         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97628
97629         * m4/gnu-source.m4: Output to confdefs.h directly.
97630         Suggestion from Akim Demaille.
97631
97632 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97633
97634         The old behavior of quoting `like this' doesn't look good with
97635         newer, ISO-style fonts.  See:
97636         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97637
97638         Instead, quote "like this" by default.  Let the translator
97639         tailor the locale-specific quoting behavior by providing
97640         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97641
97642         * lib/quotearg.c (N_): New macro.
97643         (gettext_default): New function.
97644         (quotearg_buffer_restyled): Use
97645         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97646         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97647
97648 2000-07-09  Jim Meyering  <meyering@lucent.com>
97649
97650         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97651         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97652
97653         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97654         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97655
97656 2000-07-09  Jim Meyering  <meyering@lucent.com>
97657
97658         * lib/Most files: Update copyright dates to include 2000.
97659
97660 2000-07-08  Jim Meyering  <meyering@lucent.com>
97661
97662         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97663         if not defined.
97664         (xgethostname): Remove now-unnecessary #ifdef.
97665         Move declaration of `err' into loop where it's used.
97666
97667 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97668         and Bruno Haible  <haible@clisp.cons.org>
97669
97670         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97671         only if the test for an object-type mbstate_t fails.  This
97672         prevents us from mistakenly reporting that mbstate_t is a
97673         system object type after we "#define mbstate_t int" to work
97674         around its lack.
97675
97676 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97677         and Bruno Haible  <haible@clisp.cons.org>
97678
97679         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97680
97681 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97682
97683         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97684         to strerror_r.
97685         Include <ctype.h> for use of isalpha.
97686
97687 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97688
97689         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97690         by allocating a larger buffer. Test the gethostname return value for
97691         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97692         returns an error and ENAMETOOLONG isn't defined.
97693
97694 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97695
97696         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97697         dimension.
97698
97699 2000-07-04  Jim Meyering  <meyering@lucent.com>
97700
97701         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97702         of the deprecated AC_CHECKING.
97703
97704 2000-07-04  Jim Meyering  <meyering@lucent.com>
97705
97706         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97707         Reported by Bruno Haible.
97708
97709 2000-07-04  Jim Meyering  <meyering@lucent.com>
97710
97711         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97712         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97713         lacks mbrtowc.
97714
97715 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97716
97717         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97718         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97719
97720 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97721         and Bruno Haible  <haible@clisp.cons.org>
97722
97723         * lib/quotearg.c (mbrtowc):
97724         Assign to *pwc, and return 1 only if result is nonzero.
97725         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97726
97727 2000-07-03  Jim Meyering  <meyering@lucent.com>
97728
97729         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97730
97731 2000-07-03  Jim Meyering  <meyering@lucent.com>
97732
97733         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97734         This is necessary to get a definition of e.g., UTMP_FILE on
97735         HP-UX 10.20.
97736         From Bob Proulx.
97737
97738 2000-07-02  Jim Meyering  <meyering@lucent.com>
97739
97740         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97741
97742         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97743         AC_LIBOBJ(function_name).
97744         * m4/chown.m4: Likewise.
97745         * m4/fnmatch.m4: Likewise.
97746         * m4/ftruncate.m4: Likewise.
97747         * m4/getgroups.m4: Likewise.
97748         * m4/getline.m4: Likewise.
97749         * m4/group-member.m4: Likewise.
97750         * m4/jm-macros.m4: Likewise.
97751         * m4/lstat.m4: Likewise.
97752         * m4/malloc.m4: Likewise.
97753         * m4/memcmp.m4: Likewise.
97754         * m4/nanosleep.m4: Likewise.
97755         * m4/putenv.m4: Likewise.
97756         * m4/realloc.m4: Likewise.
97757         * m4/regex.m4: Likewise.
97758         * m4/stat.m4: Likewise.
97759         * m4/strftime.m4: Likewise.
97760
97761 2000-07-02  Jim Meyering  <meyering@lucent.com>
97762
97763         * lib/quotearg.c (mbstate_t): Don't define here.
97764
97765 2000-07-02  Jim Meyering  <meyering@lucent.com>
97766
97767         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97768
97769 2000-07-01  Jim Meyering  <meyering@lucent.com>
97770
97771         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97772
97773 2000-07-01  Jim Meyering  <meyering@lucent.com>
97774
97775         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97776         problem.
97777
97778 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97779
97780         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97781         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97782
97783 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97784
97785         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97786         per change in ../m4/ls-mntd-fs.m4.
97787         (read_filesystem_list): Ignore symbolic links.
97788
97789 2000-06-29  Jim Meyering  <meyering@lucent.com>
97790
97791         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97792         for declaration of strcmp.
97793
97794         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97795
97796         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97797         Avoid warning by casting result to `char *' to remove `const'.
97798
97799 2000-06-28  Jim Meyering  <meyering@lucent.com>
97800
97801         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97802         included by quotearg.c, for which we perform this test.  From
97803         Bruno Haible.
97804
97805 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97806
97807         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97808         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97809         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97810
97811 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97812
97813         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97814
97815 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97816
97817         savedir now sets errno on failure and invokes xmalloc to get memory.
97818         Fix a couple of other minor bugs while we're at it.
97819
97820         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97821         (NAMLEN): Remove macro.
97822         (malloc, realloc): Remove decls.
97823         (stpcpy): Likewise.
97824         ("xalloc.h"): Include.
97825         (NAME_SIZE_DEFAULT): New macro.
97826         (savedir): Use xmalloc / xrealloc to allocate memory.
97827         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97828         Skip "" directory entries.
97829         Use strlen to calculate directory entry length, since the old method
97830         is rarely used these days and isn't worth supporting.
97831         Don't use a pointer after freeing it.
97832         Check for integer overflow when calculating allocation size.
97833         Use memcpy to copy entries, instead of stpcpy.
97834         Set errno properly when returning NULL.
97835         Check for readdir error.
97836
97837 2000-06-26  Jim Meyering  <meyering@lucent.com>
97838
97839         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97840
97841 2000-06-25  Jim Meyering  <meyering@lucent.com>
97842
97843         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97844         Linux header bug when _XOPEN_SOURCE is defined to 500.
97845
97846 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97847
97848         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97849         deficiency.
97850
97851 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97852
97853         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97854         Include xalloc.h.
97855         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97856
97857 2000-06-24  Jim Meyering  <meyering@lucent.com>
97858
97859         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97860         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97861         for which strerror does return char*, but which lacks a conveniently
97862         accessible declaration of the function.  If the compile-test says
97863         strerror_r doesn't work, then resort to a `run'-test that works on
97864         BeOS and segfaults on DEC Unix.
97865
97866 2000-06-24  Jim Meyering  <meyering@lucent.com>
97867
97868         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97869
97870 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97871
97872         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97873         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97874
97875 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97876
97877         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97878         (mbrtowc, mbstate_t): Define substitutes if
97879         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97880         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97881         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97882
97883 2000-06-23  Jim Meyering  <meyering@lucent.com>
97884
97885         * m4/afs.m4: Add missing AC_MSG_RESULT.
97886         Reported by Bruno Haible.
97887
97888         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97889         Suggestion from Bruno Haible.
97890
97891 2000-06-23  Jim Meyering  <meyering@lucent.com>
97892
97893         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97894
97895 2000-06-21  Jim Meyering  <meyering@lucent.com>
97896
97897         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97898
97899 2000-06-21  Jim Meyering  <meyering@lucent.com>
97900
97901         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97902         (noinst_HEADERS): Add getstr.h.
97903
97904         * lib/getline.c (getstr): Move into a separate file.
97905         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97906         the following changes: new parameter, delim2; both delim[12]
97907         parameters have type `int', not `char'.  The latter would lose
97908         with 8-bit delimiters.
97909         * lib/getstr.h: New file.
97910
97911 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97912
97913         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97914         than 1024, return a memory chunk of least possible size, instead
97915         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97916         Use free/xmalloc instead of xrealloc to avoid copying for very long
97917         paths.
97918
97919 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97920
97921         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97922         the empty string.
97923
97924 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97925
97926         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97927         address, not strdup.  Include <stdlib.h> and don't declare free().
97928
97929 2000-06-19  Jim Meyering  <meyering@lucent.com>
97930
97931         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97932
97933 2000-06-18  Jim Meyering  <meyering@lucent.com>
97934
97935         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97936
97937         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97938         `checking whether...' message to be consistent with that of the
97939         lstat test.
97940
97941 2000-06-18  Jim Meyering  <meyering@lucent.com>
97942
97943         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97944         Besides, these days every porting target provides a mkdir function.
97945
97946         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97947         needed. (this snippet comes from src/system.h).
97948
97949 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97950
97951         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97952
97953 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97954
97955         * lib/human.c (adjust_value): New function.
97956         (human_readable_inexact): Apply rounding style even when
97957         printing approximate values.
97958
97959 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97960
97961         * lib/human.c (human_readable_inexact): Allow an input block
97962         size that is not a multiple of the output block size, and vice versa.
97963         Reported by Piergiorgio Sartor.
97964
97965 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97966
97967         * lib/getdate.y (get_date): Apply relative times after time
97968         zone indicator, not before.  Reported by Todd A. Jacobs.
97969
97970 2000-06-13  Jim Meyering  <meyering@lucent.com>
97971
97972         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97973
97974         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97975
97976 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97977
97978         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97979
97980 2000-06-12  Jim Meyering  <meyering@lucent.com>
97981
97982         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97983         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97984         optional argument.
97985         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97986         the optional argument, `lib'.
97987
97988 2000-06-08  Jim Meyering  <meyering@lucent.com>
97989
97990         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97991
97992 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97993
97994         Rewrite largefile configuration so that we don't need to run
97995         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97996         AC_CANONICAL_HOST in configure.in -- jmm]
97997
97998         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97999         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98000         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98001         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98002         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98003         All uses changed.
98004         Instead of inspecting the output of getconf, try to compile the
98005         test program without and with the macro definition.
98006         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98007         for getconf.  Instead, check for the needed flags by compiling
98008         test programs.
98009
98010 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98011
98012         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98013
98014 2000-06-04  Jim Meyering  <meyering@lucent.com>
98015
98016         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98017         SunOS 4.1.4 for which gid_t is an unsigned type.
98018
98019 2000-06-03  Jim Meyering  <meyering@lucent.com>
98020
98021         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98022         now that autoconf requires that.
98023
98024         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98025         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98026         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98027
98028 2000-06-03  Jim Meyering  <meyering@lucent.com>
98029
98030         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98031
98032 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98033
98034         * m4/glibc21.m4: New file.
98035         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98036
98037 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98038
98039         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98040         newer, don't install charset.alias.
98041         * lib/config.charset: Change the Linux/glibc rules so they become empty
98042         on glibc-2.1 or newer.
98043
98044 2000-06-02  Jim Meyering  <meyering@lucent.com>
98045
98046         * lib/mountlist.c: Back out last change.  Instead, do this...
98047         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98048         me_dummy member using the same `ignore'-testing code.
98049         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98050         fs_type strings.
98051         From Mark D. Roth.
98052
98053 2000-05-29  Jim Meyering  <meyering@lucent.com>
98054
98055         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98056         mounts with the `ignore' attribute.  Based on a patch from
98057         Mark D. Roth.
98058
98059 2000-05-28  Jim Meyering  <meyering@lucent.com>
98060
98061         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98062         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98063         * m4/stat.m4: Likewise.
98064         * m4/lstat.m4: Likewise.
98065         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98066
98067         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98068         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98069
98070 2000-05-26  Jim Meyering  <meyering@lucent.com>
98071
98072         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98073
98074 2000-05-24  Jim Meyering  <meyering@lucent.com>
98075
98076         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98077         autoconf requires that.
98078         * m4/lib-check.m4: Likewise.
98079         * m4/jm-macros.m4: Likewise.
98080         * m4/strftime.m4: Likewise.
98081
98082         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98083         AC_CHECK_DECLS, now that autoconf requires that.
98084
98085 2000-05-22  Jim Meyering  <meyering@lucent.com>
98086
98087         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98088         * m4/lstat.m4: Likewise.
98089
98090 2000-05-22  Jim Meyering  <meyering@lucent.com>
98091
98092         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98093
98094 2000-05-20  Jim Meyering  <meyering@lucent.com>
98095
98096         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98097         (jm_PREREQ): Use it.
98098
98099 2000-05-18  Jim Meyering  <meyering@lucent.com>
98100
98101         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98102         back, too, since it may have been modified by allocate_entry.
98103         (hash_delete): Rewrite to use neither the assignment operator
98104         nor the comma operator in an if-expression.
98105
98106 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98107
98108         * lib/closeout.c:
98109         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98110         Remove; no longer needed.
98111         "quotearg.h": Add include.
98112         (file_name): Do not bother to explicitly initialize to NULL; it's less
98113         efficient on some hosts.
98114         (close_stdout_status): Remove test as to whether stdout was already
98115         closed; it breaks for the case "echo x | sort >&-".
98116         Quote file name colons.
98117         Do not assume that _("write error") lacks format strings.
98118
98119 2000-05-15  Jim Meyering  <meyering@lucent.com>
98120
98121         * lib/version-etc.c (version_etc_copyright): Update the copyright
98122         string used in all --version output.
98123
98124 2000-05-14  Jim Meyering  <meyering@lucent.com>
98125
98126         * lib/closeout.c (close_stdout_set_file_name): New function.
98127         (close_stdout_status): Use new file-scoped global.
98128         Return right away if fstat says the stdout file descriptor is invalid.
98129         * lib/closeout.h (close_stdout_set_file_name): Declare.
98130
98131 2000-05-10  Jim Meyering  <meyering@lucent.com>
98132
98133         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98134         (close_stdout_set_status): New function.
98135         * lib/closeout.h (close_stdout_set_status): Declare.
98136
98137 2000-05-09  Jim Meyering  <meyering@lucent.com>
98138
98139         * m4/gettext.m4: Rename this...
98140         * m4/libintl.m4: ...to this.
98141
98142 2000-05-08  Jim Meyering  <meyering@lucent.com>
98143
98144         * lib/long-options.c: Don't include closeout.h.
98145         (parse_long_options): Don't call close_stdout for --version.
98146
98147 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98148
98149         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98150         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98151         2.1.3 bug.  This avoids a clash when files like regex.c define
98152         _GNU_SOURCE.
98153
98154 2000-05-06  Jim Meyering  <meyering@lucent.com>
98155
98156         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98157         (AC_REPLACE_FUNCS): Add strnlen.
98158
98159         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98160         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98161
98162         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98163         AC_SEARCH_LIBS call for nanosleep.
98164         (LIB_NANOSLEEP): Set and AC_SUBST.
98165
98166 2000-05-06  Jim Meyering  <meyering@lucent.com>
98167
98168         * lib/strnlen.c: Undefine __strnlen and strnlen.
98169         [!weak_alias]: Define __strnlen to strnlen.
98170
98171         * lib/atexit.c: New file, from libiberty.
98172
98173 2000-05-06  Jim Meyering  <meyering@lucent.com>
98174
98175         * lib/closeout.c (close_stdout_status): Also check for errors on the
98176         stderr stream.
98177
98178 2000-05-05  Jim Meyering  <meyering@lucent.com>
98179
98180         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98181         AC_SEARCH_LIBS call for clock_gettime.
98182         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98183
98184         * m4/search-libs.m4: Update from autoconf.
98185
98186         su doesn't work on Solaris 2.6.
98187         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98188         <shadow.h>.  Reported by Dragos Harabor.
98189
98190 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98191
98192         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98193         memcpy instead of xmalloc, xrealloc, path_concat.
98194         (locale_charset): Treat empty environment variables as absent.
98195         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98196
98197 2000-05-04  Jim Meyering  <meyering@lucent.com>
98198
98199         * lib/getopt.c: Update from glibc.
98200         * lib/obstack.c: Likewise.
98201         * lib/obstack.h: Likewise.
98202         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98203         file
98204
98205         * lib/regex.h: Likewise.
98206         * lib/strndup.c: Likewise.
98207         * lib/strnlen.c: New file, from glibc.
98208
98209 2000-05-03  Jim Meyering  <meyering@lucent.com>
98210
98211         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98212
98213 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98214
98215         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98216         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98217         compile-time test, rather than inspecting host and OS, to
98218         decide whether to define _LARGEFILE_SOURCE.
98219
98220 2000-05-01  Jim Meyering  <meyering@lucent.com>
98221
98222         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98223
98224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98225         Based on a patch from Bruno Haible.
98226
98227 2000-05-01  Jim Meyering  <meyering@lucent.com>
98228
98229         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98230
98231 2000-04-29  Jim Meyering  <meyering@lucent.com>
98232
98233         * lib/path-concat.c: Declare strdup only if it's not defined.
98234         * lib/canon-host.c: Likewise.
98235
98236 2000-04-28  Jim Meyering  <meyering@lucent.com>
98237
98238         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98239         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98240         is included first, then limits.h is included by locale.h by libintl.h.
98241         From John David Anglin.
98242
98243 2000-04-25  Jim Meyering  <meyering@lucent.com>
98244
98245         * lib/makepath.c (S_IRWXUGO): Define.
98246         (make_path): Always perform explicit chmod if MODE specifies any
98247         of the `special' permission bits.  Prompted by a bug report against
98248         install from Mate Wierdl and Joost van Baal.
98249
98250 2000-04-18  Jim Meyering  <meyering@lucent.com>
98251
98252         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98253         (jm_PREREQ): Use it.
98254
98255 2000-04-18  Jim Meyering  <meyering@lucent.com>
98256
98257         * lib/README: New file.
98258
98259         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98260         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98261
98262 2000-04-17  Jim Meyering  <meyering@lucent.com>
98263
98264         Get it right :-)
98265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98266         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98267         Suggestion from Akim Demaille.
98268
98269 2000-04-17  Jim Meyering  <meyering@lucent.com>
98270
98271         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98272         the definition of it to rpl_strftime also defined-away the system's
98273         declaration.
98274
98275 2000-04-15  Jim Meyering  <meyering@lucent.com>
98276
98277         Use `C' to denote so-called `contiguous' files, the same way
98278         that tar does.
98279         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98280         (ftypelet): Use S_ISCTG.
98281         From Michael Deutschmann.
98282
98283 2000-04-14  Jim Meyering  <meyering@lucent.com>
98284
98285         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98286         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98287         clobbered.
98288
98289 2000-04-14  Jim Meyering  <meyering@lucent.com>
98290
98291         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98292
98293 2000-04-13  Jim Meyering  <meyering@lucent.com>
98294
98295         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98296         AH_VERBATIM to insert required #ifndef into config.h.in.
98297         Suggestion from Akim Demaille.
98298
98299 2000-04-12  Jim Meyering  <meyering@lucent.com>
98300
98301         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98302         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98303         Christian Krackowizer.
98304
98305         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98306         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98307         (AC_SYS_LARGEFILE): Require.
98308         (AM_C_PROTOTYPES): Require.
98309
98310 2000-04-08  Jim Meyering  <meyering@lucent.com>
98311
98312         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98313         names don't conflict.  Reported by Eli Zaretskii.
98314
98315 2000-04-07  Jim Meyering  <meyering@lucent.com>
98316
98317         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98318         sys/types.h, to work around system header problems on AIX 3.2.5.
98319         From Bruno Haible.
98320
98321 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98322
98323         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98324         bug.  Deal with the different error behavior of Irix iconv.
98325
98326 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98327
98328         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98329         IRIX if the installer said otherwise.
98330
98331 2000-04-05  Jim Meyering  <meyering@lucent.com>
98332
98333         Portability tweaks required for ultrix4.3.
98334         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98335         (jm_CHECK_DECLS): Add getutent to the list of functions.
98336         (_jm_DECL_HEADERS): Add utmpx.h.
98337         From John David Anglin.
98338
98339         * m4/strftime.m4: Back out the 2000-04-02 change.
98340         Instead of that change, simply undefine putenv in the test program.
98341
98342 2000-04-05  Jim Meyering  <meyering@lucent.com>
98343
98344         Portability tweaks required for ultrix4.3.
98345         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98346         getutent.
98347         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98348         * lib/canon-host.c: Declare strdup.
98349         * lib/path-concat.c: Likewise.
98350         From John David Anglin.
98351
98352 2000-04-04  Jim Meyering  <meyering@lucent.com>
98353
98354         Be more DOS 8.3-friendly.
98355         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98356         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98357         * lib/Makefile.am: Reflect renaming.
98358         Reported by Eli Zaretskii.
98359
98360         Use a temporary file name that won't clash with `charset.alias'
98361         in the DOS 8.3 name space.
98362         * lib/Makefile.am (charset_tmp): Define.
98363         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98364         (uninstall-local): Likewise.
98365         Reported by Eli Zaretskii.
98366
98367 2000-04-03  Jim Meyering  <meyering@lucent.com>
98368
98369         * m4/gettext.m4: Fix typo in comment.
98370
98371         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98372         textutils/configure.in).  Suggestion from Paul Eggert.
98373         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98374
98375 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98376
98377         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98378         variable in the shell rather than using putenv, which isn't
98379         portable.  This avoids the configure-time inter-test dependency
98380         on the potentially-renamed putenv function.
98381
98382 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98383
98384         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98385         before checking struct stat.st_blksize, so that
98386         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98387
98388 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98389
98390         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98391         since strftime.c uses HAVE_STRFTIME to decide whether to use
98392         the underlying strftime.
98393
98394 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98395
98396         * lib/time/strftime.c (my_strftime): Make sure we call the system
98397         strftime, not ourselves, when invoking the underlying strftime.
98398
98399 2000-03-24  Jim Meyering  <meyering@lucent.com>
98400
98401         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98402         (charset_alias): Define.
98403         (install-exec-local): Factor out common code.
98404         (uninstall-local): Split lines longer than 80.
98405         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98406         (SUFFIXES): Define.
98407         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98408         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98409
98410 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98411
98412         * lib/config.charset: Output a line containing "Packages using this
98413         file".
98414         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98415         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98416         ref-del.sed): New rules.
98417
98418 2000-03-17  Jim Meyering  <meyering@lucent.com>
98419
98420         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98421         Otherwise, include <strings.h>
98422
98423 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98424
98425         * lib/unicodeio.c (utf8_wctomb): New function.
98426         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98427         format instead of in UCS-4 with platform dependent endianness.
98428
98429 2000-03-10  Jim Meyering  <meyering@lucent.com>
98430
98431         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98432         From Marco Franzen.
98433
98434 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98435
98436         * lib/savedir.c (savedir): Work even if directory size is
98437         negative; this can happen with some screwy NFS configurations.
98438
98439 2000-03-06  Jim Meyering  <meyering@lucent.com>
98440
98441         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98442         if it's NULL (because we ran out of memory).  From Bruno Haible.
98443
98444 2000-03-05  Jim Meyering  <meyering@lucent.com>
98445
98446         * lib/localcharset.c ("path-concat.h"): Include.
98447         (get_charset_aliases): Use path_concat instead of ANSI string
98448         concatenation.
98449
98450         * lib/unicodeio.h (PARAMS): Define.
98451         Use it to guard prototype.
98452
98453 2000-03-04  Jim Meyering  <meyering@lucent.com>
98454
98455         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98456         for lib/localcharset.c.
98457
98458 2000-03-04  Jim Meyering  <meyering@lucent.com>
98459
98460         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98461         installing into it.
98462         (uninstall-local): Uncomment this rule so `make distcheck' works
98463         once again.
98464
98465         * lib/unicodeio.c (<errno.h>): Include it.
98466         (errno): Declare if not defined.
98467
98468         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98469
98470         * lib/config.charset: New version, incorporating remarks from a linux
98471         i18n mailing list.  From Bruno Haible.
98472
98473 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98474
98475         * m4/codeset.m4: New file.
98476         * m4/iconv.m4: New file.
98477         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98478
98479 2000-03-03  Jim Meyering  <meyering@lucent.com>
98480
98481         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98482
98483 2000-03-02  Jim Meyering  <meyering@lucent.com>
98484
98485         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98486         the messages come out on separate lines.
98487
98488         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98489         rather than jm_CHECK_DECLARATIONS.
98490         * m4/decl.m4: Remove now-unused file.
98491
98492         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98493         geteuid.
98494
98495 2000-03-02  Jim Meyering  <meyering@lucent.com>
98496
98497         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98498
98499 2000-03-01  Jim Meyering  <meyering@lucent.com>
98500
98501         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98502         * lib/unicodeio.c: Likewise.
98503
98504 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98505
98506         * lib/config.charset: New file.
98507         * lib/localcharset.c: New file.
98508         * lib/unicodeio.h, lib/unicodeio.c: New files.
98509         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98510         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98511         (noinst_HEADERS): Add unicodeio.h.
98512         (all-local, install-exec-local, charset.alias): New targets.
98513
98514 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98515
98516         * lib/quotearg.c (ALERT_CHAR): New macro.
98517         (quotearg_buffer_restyled): Use it.
98518
98519 2000-02-27  Jim Meyering  <meyering@lucent.com>
98520
98521         * m4/check-decl.m4: Add getenv to the list.
98522
98523 2000-02-27  Jim Meyering  <meyering@lucent.com>
98524
98525         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98526         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98527
98528         * lib/backupfile.c: Guard inclusion of stdlib.h with
98529         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98530         Declare malloc if needed.
98531
98532         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98533         `#ifndef HAVE_DECL..'
98534         now that autoconf always defines the HAVE_DECL_ symbols.
98535         * lib/human.c: Likewise.
98536         * lib/same.c: Likewise.
98537         * lib/strtoumax.c: Likewise.
98538
98539         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98540         declaration check was not run.
98541         * lib/hash.c: Likewise.
98542         * lib/human.c: Likewise.
98543         * lib/same.c: Likewise.
98544         * lib/strtoumax.c: Likewise.
98545
98546         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98547         `.', then first look up the entire `.'-containing string as a login
98548         name.
98549
98550 2000-02-23  Jim Meyering  <meyering@lucent.com>
98551
98552         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98553         in place of my hack.
98554
98555 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98556
98557         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98558         (textint): New typedef.
98559         (parser_control): Member year changed from int to textint.
98560         All uses changed.
98561         (YYSTYPE): Removed; replaced by %union with int and textint members.
98562         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98563         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98564         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98565         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98566         (date, number, to_year): Use width of number in digits, not its value,
98567         to determine whether it's a 2-digit year, or a 2-digit time.
98568         (yylex): Store number of digits of numeric tokens.
98569         Reported by John Kendall.
98570
98571         (parser_control): Changed from struct parser_control to typedef (for
98572         consistency).  All uses changed.
98573
98574         (tID): Removed; not used.
98575         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98576
98577 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98578
98579         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98580         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98581
98582 2000-02-12  Jim Meyering  <meyering@lucent.com>
98583
98584         * lib/userspec.c (ISDIGIT): Define it.
98585         (isdigit): Remove definition.
98586         (is_number): Use ISDIGIT, not isdigit.
98587         <libintl.h>: Include.
98588         (_ and N_): Define.
98589         (parse_user_spec): Mark translatable strings.
98590
98591 2000-02-10  Jim Meyering  <meyering@lucent.com>
98592
98593         With these changes, nanosleep.[ch] are finally enough like the other
98594         lib/* replacement files to compile on a few more losing systems.
98595
98596         * lib/nanosleep.h: Don't include config.h.
98597         Remove prototype from declaration of nanosleep.
98598         (PARAMS): Remove now-unneeded definition.
98599         * lib/nanosleep.c: #undef nanosleep.
98600         (rpl_nanosleep): Rename from nanosleep.
98601
98602 2000-02-10  Jim Meyering  <meyering@lucent.com>
98603
98604         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98605         gnu_nanosleep to rpl_nanosleep.
98606
98607 2000-02-09  Jim Meyering  <meyering@lucent.com>
98608
98609         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98610         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98611
98612 2000-02-08  Akim Demaille  <akim@epita.fr>
98613
98614         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98615         `[' and `]' and remove uses of `changequote'.
98616         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98617         (AC_SYS_LARGEFILE): Likewise.
98618         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98619         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98620         of changequote.
98621         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98622         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98623         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98624         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98625
98626 2000-02-05  Jim Meyering  <meyering@lucent.com>
98627
98628         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98629         Remove explicit use of AC_HEADER_TIME.  It is required by
98630         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98631         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98632         in autoconf whereby the expansion of the latter ended up preceding
98633         the expansion of its prerequisite, AC_HEADER_TIME.
98634         Reported by Volker Borchert.
98635
98636 2000-02-03  Jim Meyering  <meyering@lucent.com>
98637
98638         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98639
98640 2000-02-03  Jim Meyering  <meyering@lucent.com>
98641
98642         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98643         rather than with `#if HAVE_UTMPNAME'.
98644
98645 2000-02-02  Jim Meyering  <meyering@lucent.com>
98646
98647         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98648         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98649         Reported by Eli Zaretskii.
98650
98651 2000-02-01  Jim Meyering  <meyering@lucent.com>
98652
98653         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98654
98655 2000-01-31  Jim Meyering  <meyering@lucent.com>
98656
98657         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98658         functions.  Add the time.h and sys/time.h headers along with the
98659         AC_REQUIRE'ment of AC_HEADER_TIME.
98660
98661 2000-01-31  Jim Meyering  <meyering@lucent.com>
98662
98663         * lib/nanosleep.h (nanosleep): Guard declaration with
98664         `#if ! HAVE_DECL_NANOSLEEP'.
98665         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98666         the declaration in that vendor's sys/timers.h.
98667         Reported by Christian Krackowizer.
98668
98669         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98670         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98671         (ISPRINT): Likewise.
98672         Reported by Tom Tromey.
98673
98674 2000-01-30  Jim Meyering  <meyering@lucent.com>
98675
98676         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98677
98678         * m4/prereq.m4 (utmp_includes): Define.
98679         Check for ut_user and ut_name members in both struct utmpx
98680         and struct utmp.
98681
98682 2000-01-30  Jim Meyering  <meyering@lucent.com>
98683
98684         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98685         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98686         header files where only utmpx.ut_user is declared.
98687
98688         * lib/readutmp.h (UT_USER): Define.
98689
98690 2000-01-29  Jim Meyering  <meyering@lucent.com>
98691
98692         * m4/lib-check.m4: New file containing library-related checks from
98693         fileutils and sh-utils (textutils had none).
98694
98695 2000-01-28  Jim Meyering  <meyering@lucent.com>
98696
98697         * m4/perl.m4: Change format of warning message to look more like that
98698         from the missing script.  Suggestion from François Pinard.
98699
98700 2000-01-25  Jim Meyering  <meyering@lucent.com>
98701
98702         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98703         well as time.h in the compile check.
98704         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98705         Fix typo in cross-compiling case: s/yes/no/.
98706
98707 2000-01-23  Jim Meyering  <meyering@lucent.com>
98708
98709         * m4/jm-macros.m4: Move df-related tests here from
98710         fileutils/configure.in
98711
98712         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98713         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98714
98715         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98716         s/space/ac_fsusage_space/.
98717         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98718
98719         * m4/ftruncate.m4: New file (derived from part of
98720         fileutils/configure.in).
98721         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98722         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98723
98724         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98725         AC_SUBST these here, rather than just in sh-util/configure.in, so
98726         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98727         all the same.
98728         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98729         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98730         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98731         (AC_SUBST(POW_LIBM)): Likewise.
98732         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98733
98734 2000-01-23  Jim Meyering  <meyering@lucent.com>
98735
98736         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98737         obstack.c.
98738
98739 2000-01-22  Jim Meyering  <meyering@lucent.com>
98740
98741         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98742
98743         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98744
98745         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98746         configure.in
98747         (AC_CHECK_HEADERS): Likewise for sh-utils.
98748         (AC_CHECK_HEADERS): Likewise for textutils.
98749         Merge the three lists of headers.
98750
98751         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98752         from fileutils' configure.in.
98753
98754         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98755         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98756         check-decl.m4.
98757
98758         * m4/check-decl.m4: Use #if rather than #ifdef.
98759         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98760         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98761         (_jm_DECL_HEADERS): Define new function.
98762         (jm_CHECK_DECLARATIONS): Require it.
98763
98764 2000-01-22  Jim Meyering  <meyering@lucent.com>
98765
98766         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98767         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98768         Required for some AIX systems.  Reported by Christian Krackowizer.
98769         [TESTING] (main): New function.
98770
98771         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98772         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98773         letters.
98774
98775         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98776         iswprint.
98777
98778         * lib/strverscmp.c (ISDIGIT): Define.
98779         (strverscmp): Use ISDIGIT, not isdigit.
98780
98781 2000-01-19  Jim Meyering  <meyering@lucent.com>
98782
98783         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98784         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98785         defines `struct timespec' in <sys/time.h>
98786
98787         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98788         Thanks to Akim for explaining.
98789
98790 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98791
98792         * lib/nanosleep.c (nanosleep):
98793         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98794         POSIX.1 doesn't require SA_INTERRUPT and some systems
98795         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98796         it's been part of POSIX.1 since day 1 (in 1988).
98797
98798 2000-01-17  Jim Meyering  <meyering@lucent.com>
98799
98800         * lib/interlock: Remove unused file.  Reported by François Pinard.
98801
98802 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98803
98804         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98805         alert, backslash, formfeed, and vertical tab unnecessarily in
98806         shell quoting style.
98807
98808 2000-01-16  Jim Meyering  <meyering@lucent.com>
98809
98810         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98811         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98812         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98813         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98814
98815 2000-01-16  Jim Meyering  <meyering@lucent.com>
98816
98817         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98818         because the latter didn't work.
98819
98820 2000-01-15  Jim Meyering  <meyering@lucent.com>
98821
98822         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98823         (AC_REPLACE_FUNCS): Add memcpy and memset.
98824         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98825         Add strpbrk.
98826         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98827
98828 2000-01-12  Jim Meyering  <meyering@lucent.com>
98829
98830         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98831         (jm_PREREQ): Use it.
98832         (jm_PREREQ_READUTMP): New macro.
98833         (jm_PREREQ): Use it.
98834
98835 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98836
98837         Quote multibyte characters correctly.
98838         * m4/c-bs-a.m4: New file.
98839         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98840         (jm_PREREQ): Use it.
98841
98842 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98843
98844         * m4/uintmax_t.m4: Port to autoconf 2.13.
98845
98846 2000-01-08  Jim Meyering  <meyering@ascend.com>
98847
98848         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98849         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98850
98851 2000-01-04  Jim Meyering  <meyering@ascend.com>
98852
98853         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98854         jm_STRUCT_DIRENT_D_TYPE.
98855         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98856         jm_STRUCT_DIRENT_D_INO.
98857         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98858         jm_STRUCT_UTIMBUF.
98859         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98860         renamings.
98861         * m4/utime.m4: Likewise.
98862
98863         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98864         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98865
98866 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98867
98868         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98869         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98870
98871 2000-01-02  Jim Meyering  <meyering@ascend.com>
98872
98873         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98874         remember if this is necessary.
98875
98876 1999-12-26  Jim Meyering  <meyering@ascend.com>
98877
98878         * m4/jm-macros.m4: Use it here.
98879         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98880
98881 1999-12-23  Jim Meyering  <meyering@ascend.com>
98882
98883         * m4/jm-macros.m4: Check for clock_gettime (moved from
98884         fileutils/configure.in)
98885         Check for gettimeofday.
98886
98887 1999-12-20  Jim Meyering  <meyering@ascend.com>
98888
98889         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98890         autoconf-2.14a-1999-12-20.
98891
98892 1999-12-19  Jim Meyering  <meyering@ascend.com>
98893
98894         * m4/lstat-slash.m4: New file.
98895         * m4/jm-macros.m4: Use the new macro:
98896         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98897
98898 1999-12-07  Jim Meyering  <meyering@ascend.com>
98899
98900         * m4/perl.m4: Require that File::Compare be available, too.
98901         Too many systems seem to lack it.
98902
98903         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98904         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98905
98906 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98907
98908         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98909         problem with the QNX 4.25 shell, which doesn't propagate exit
98910         status of failed commands inside shell assignments.
98911
98912 1999-11-17  Jim Meyering  <meyering@ascend.com>
98913
98914         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98915
98916 1999-11-07  Jim Meyering  <meyering@ascend.com>
98917
98918         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98919
98920 1999-11-06  Jim Meyering  <meyering@ascend.com>
98921
98922         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98923         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98924
98925 1999-11-05  Jim Meyering  <meyering@ascend.com>
98926
98927         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98928         configure.in of textutils, fileutils, and sh-utils into this one
98929         (shared between those packages) file.
98930         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98931         AC_STRUCT_ST_BLKSIZE.
98932
98933 1999-11-03  Jim Meyering  <meyering@ascend.com>
98934
98935         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98936         of AC_CHECK_TYPE checks includes unistd.h.
98937         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98938         Suggestion from Akim Demaille.
98939
98940 1999-10-30  Jim Meyering  <meyering@ascend.com>
98941
98942         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98943         m4-quoted string.
98944         * m4/ls-mntd-fs.m4: Likewise.
98945         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98946         * m4/jm-winsz1.m4: Likewise.
98947
98948         * m4/const.m4: Remove file, since the fix made it into the experimental
98949         version of autoconf.
98950         * m4/mktime.m4: Likewise.
98951
98952         * m4/check-type.m4: Remove file, now that the latest version of
98953         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98954
98955         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98956         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98957         AC_CHECK_TYPE.
98958
98959 1999-10-04  Jim Meyering  <meyering@ascend.com>
98960
98961         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98962
98963 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98964
98965         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98966         2.95.1 bug with HP-UX 10.20.
98967
98968 1999-09-17  Jim Meyering  <meyering@ascend.com>
98969
98970         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98971         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98972         due to missing strdup (against sh-utils-2.0).
98973
98974 1999-08-29  Jim Meyering  <meyering@ascend.com>
98975
98976         * m4/jm-macros.m4: Require jm_BISON.
98977         * m4/bison.m4: New file.
98978
98979 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98980
98981         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98982         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98983
98984 1999-08-05  Jim Meyering  <meyering@ascend.com>
98985
98986         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98987         to avoid conflicts with `conftest' on 8+3 filesystems.
98988         Suggestion from Eli Zaretskii.
98989
98990 1999-08-04  Jim Meyering  <meyering@ascend.com>
98991
98992         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98993         fileutils and sh-utils (textutils's getline test was inadequate).
98994         (AM_FUNC_GETLINE): Run this test.
98995         (AC_CHECK_FUNCS): Check for getdelim.
98996         Reported by Bob Proulx.
98997
98998 1999-08-02  Jim Meyering  <meyering@ascend.com>
98999
99000         * m4/jm-macros.m4: Add a comment.
99001
99002 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99003
99004         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99005         <inttypes.h> defines strtoumax as a macro (and not as a
99006         function).
99007
99008 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99009
99010         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99011         that we can shift, multiply and divide unsigned long long
99012         values; Ultrix cc can't do it.
99013
99014 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99015
99016         * m4/mktime.m4: New file, which is a preview of what should appear
99017         in the next public autoconf release.
99018
99019 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99020
99021         * m4/lfs.m4: Remove this file.
99022         * m4/largefile.m4: New file.  It contains the old contents of
99023         lfs.m4, except that all names with prefix AC_LFS have been
99024         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99025         compatible with future autoconf versions.  Also, some minor m4
99026         quoting problems have been fixed.
99027
99028 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99029
99030         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99031         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99032         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99033         and simplify the shell code.
99034
99035 1999-08-01  Jim Meyering  <meyering@ascend.com>
99036
99037         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99038         m4.
99039
99040 1999-07-20  Jim Meyering  <meyering@ascend.com>
99041
99042         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99043
99044 1999-07-15  Jim Meyering  <meyering@ascend.com>
99045
99046         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99047
99048 1999-05-22  Jim Meyering  <meyering@ascend.com>
99049
99050         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99051
99052 1999-05-20  Jim Meyering  <meyering@ascend.com>
99053
99054         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99055         Add a colon after each `then' in case $4 is empty.
99056
99057 1999-05-16  Jim Meyering  <meyering@ascend.com>
99058
99059         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99060
99061 1999-05-10  Jim Meyering  <meyering@ascend.com>
99062
99063         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99064
99065         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99066         AC_FUNC_MKTIME.
99067
99068 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99069
99070         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99071
99072 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99073
99074         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99075         not CPPFLAGS, so that linking works correctly in IRIX.
99076
99077 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99078
99079         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99080
99081 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99082
99083         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99084         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99085         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99086         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99087         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99088
99089         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99090
99091 1999-04-20  Jim Meyering  <meyering@ascend.com>
99092
99093         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99094         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99095         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99096
99097 1999-04-18  Jim Meyering  <meyering@ascend.com>
99098
99099         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99100         * m4/jm-macros.m4: Use it.
99101
99102 1999-04-06  Jim Meyering  <meyering@ascend.com>
99103
99104         * m4/strftime.m4: Remove test for %f.
99105
99106 1999-03-29  Jim Meyering  <meyering@ascend.com>
99107
99108         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99109         superset of the AC_TYPE_* checks in the textutils, fileutils,
99110         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99111         AC_TYPE_PID_T.
99112
99113 1999-03-28  Jim Meyering  <meyering@ascend.com>
99114
99115         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99116         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99117         replaced e.g., in the *.sh files of the sh-utils.
99118
99119 1999-03-20  Jim Meyering  <meyering@ascend.com>
99120
99121         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99122         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99123         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99124
99125 1999-03-19  Jim Meyering  <meyering@ascend.com>
99126
99127         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99128
99129 1999-03-12  Jim Meyering  <meyering@ascend.com>
99130
99131         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99132
99133 1999-03-07  Jim Meyering  <meyering@ascend.com>
99134
99135         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99136         declared.
99137
99138 1999-02-17  Jim Meyering  <meyering@ascend.com>
99139
99140         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99141         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99142
99143 1999-02-07  Jim Meyering  <meyering@ascend.com>
99144
99145         * m4/group-member.m4: New file -- extracted from sh-utils'
99146         configure.in.
99147
99148         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99149         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99150
99151 1999-02-06  Jim Meyering  <meyering@ascend.com>
99152
99153         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99154         * m4/fnmatch.m4: Likewise.
99155         * m4/getgroups.m4: Likewise.
99156         * m4/lstat.m4: Likewise.
99157         * m4/malloc.m4: Likewise.
99158         * m4/putenv.m4: Likewise.
99159         * m4/realloc.m4: Likewise.
99160         * m4/regex.m4: Likewise.
99161         * m4/stat.m4: Likewise.
99162         * m4/strftime.m4: Likewise.
99163         Suggestion from Alain Magloire.
99164
99165         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99166         * m4/fnmatch.m4: Likewise.
99167         * m4/getgroups.m4: Likewise.
99168         * m4/getline.m4: Likewise.
99169         * m4/lstat.m4: Likewise.
99170         * m4/malloc.m4: Likewise.
99171         * m4/memcmp.m4: Likewise.
99172         * m4/putenv.m4: Likewise.
99173         * m4/realloc.m4: Likewise.
99174         * m4/regex.m4: Likewise.
99175         * m4/stat.m4: Likewise.
99176         * m4/strftime.m4: Likewise.
99177         Suggestion from Alain Magloire.
99178
99179         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99180         an argument.
99181
99182         * m4/regex.m4: Add a run-time Test for proper operation of
99183         re_compile_pattern.
99184
99185 1999-01-31  Jim Meyering  <meyering@ascend.com>
99186
99187         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99188
99189 1999-01-30  Jim Meyering  <meyering@ascend.com>
99190
99191         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99192
99193         * m4/jm-mktime.m4: Make this a wrapper around the official
99194         AM_FUNC_MKTIME rather than my private copy, now that the official one
99195         is up to date.
99196         * m4/mktime.m4: Remove file.
99197
99198         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99199         * m4/uptime.m4: Likewise.
99200         * m4/uintmax_t.m4: Likewise.
99201
99202 1999-01-28  Jim Meyering  <meyering@ascend.com>
99203
99204         * m4/jm-macros.m4: Use jm_AFS.
99205         * m4/afs.m4: New file (from fileutils' configure.in).
99206
99207         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99208         * m4/chown.m4: Likewise.
99209         * m4/d-ino.m4: Likewise.
99210         * m4/d-type.m4: Likewise.
99211         * m4/fnmatch.m4: Likewise.
99212         * m4/getgroups.m4: Likewise.
99213         * m4/gettext.m4: Likewise.
99214         * m4/jm-mktime.m4: Likewise.
99215         * m4/jm-winsz2.m4: Likewise.
99216         * m4/lcmessage.m4: Likewise.
99217         * m4/ls-mntd-fs.m4: Likewise.
99218         * m4/malloc.m4: Likewise.
99219         * m4/memcmp.m4: Likewise.
99220         * m4/putenv.m4: Likewise.
99221         * m4/realloc.m4: Likewise.
99222         * m4/st_mtim.m4: Likewise.
99223         * m4/strftime.m4: Likewise.
99224
99225 1999-01-16  Jim Meyering  <meyering@ascend.com>
99226
99227         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99228         (ARGMATCH_DIE_DECL): Define.
99229
99230 1999-01-12  Jim Meyering  <meyering@ascend.com>
99231
99232         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99233         Reported by Lars Hecking.
99234
99235 1999-01-10  Jim Meyering  <meyering@ascend.com>
99236
99237         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99238         gross kludge.
99239         * m4/inttypes_h.m4: Likewise.
99240         * m4/lstat.m4: Likewise.
99241         * m4/malloc.m4: Likewise.
99242         * m4/readdir.m4: Likewise.
99243         * m4/realloc.m4: Likewise.
99244         * m4/st_dm_mode.m4: Likewise.
99245         * m4/stat.m4: Likewise.
99246         * m4/utimbuf.m4: Likewise.
99247         * m4/utimes.m4: Likewise.
99248
99249         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99250         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99251         comments in config.h.in are meaningful.
99252
99253         * m4/jm-macros.m4: Require autoconf-2.13 here.
99254
99255         * m4/regex.m4: By default, don't use the included regex.c on systems
99256         with glibc 2.  Suggestion from Uli Drepper.
99257
99258 1999-01-02  Jim Meyering  <meyering@ascend.com>
99259
99260         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99261
99262 1998-12-18  Jim Meyering  <meyering@ascend.com>
99263
99264         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99265         Based on a suggestion from Lars Hecking.
99266
99267 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99268
99269         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99270
99271 1998-11-16  Jim Meyering  <meyering@ascend.com>
99272
99273         * m4/lfs.m4: Double-quote the `uname...` expression.
99274
99275 1998-11-14  Jim Meyering  <meyering@ascend.com>
99276
99277         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99278         * m4/stat.m4: Likewise.
99279
99280 1998-11-03  Jim Meyering  <meyering@ascend.com>
99281
99282         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99283         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99284
99285 1998-10-18  Jim Meyering  <meyering@ascend.com>
99286
99287         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99288
99289 1998-10-17  Jim Meyering  <meyering@ascend.com>
99290
99291         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99292         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99293         calls for those previously hard-coded headers.  Instead, take a new
99294         parameter.
99295         (jm_CHECK_DECLARATIONS): Reflect interface change.
99296         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99297         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99298
99299         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99300
99301 1998-10-14  Jim Meyering  <meyering@ascend.com>
99302
99303         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99304         instead of "TZ=America/Vancouver".  From Paul Eggert.
99305
99306 1998-10-11  Jim Meyering  <meyering@ascend.com>
99307
99308         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99309         This adds a test for a recently added compatibility fix for mktime.c.
99310         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99311
99312 1998-09-27  Jim Meyering  <meyering@ascend.com>
99313
99314         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99315
99316         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99317         ../configure.in, including a change from Gordon Matzigkeit to allow
99318         cross-compiling for the Hurd.
99319
99320         * m4/glibc.m4: New file/macro to test for the GNU C Library
99321         versions 1 and 2.  From Gordon Matzigkeit.
99322         Indent.
99323
99324 1998-09-21  Jim Meyering  <meyering@ascend.com>
99325
99326         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99327
99328 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99329
99330         Port nanosecond-resolution times to UnixWare 2.1.2 and
99331         pedantic Solaris 2.6.
99332
99333         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99334         AC_STRUCT_ST_MTIM.
99335         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99336         Generate name of ns member, instead of just 1 or undef.
99337         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99338
99339 1998-08-15  Jim Meyering  <meyering@ascend.com>
99340
99341         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99342         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99343         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99344         instead of jm_TYPE_SSIZE_T.
99345
99346 1998-08-12  Jim Meyering  <meyering@ascend.com>
99347
99348         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99349
99350 1998-08-02  Jim Meyering  <meyering@ascend.com>
99351
99352         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99353         in acconfig.h manually.
99354
99355 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99356
99357         * m4/st_mtim.m4: New file.
99358
99359 1998-07-28  Jim Meyering  <meyering@ascend.com>
99360
99361         * m4/utimes.m4: Undef stat.
99362
99363 1998-07-25  Jim Meyering  <meyering@ascend.com>
99364
99365         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99366         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99367
99368 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99369
99370         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99371         uid and gid actually remain unchanged.
99372
99373 1998-07-07  Jim Meyering  <meyering@ascend.com>
99374
99375         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99376
99377 1998-07-04  Jim Meyering  <meyering@ascend.com>
99378
99379         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99380         to prove that this macro can be used in packages without regex.c.
99381
99382 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99383
99384         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99385         is to be used.
99386
99387 1998-07-03  Jim Meyering  <meyering@ascend.com>
99388
99389         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99390
99391         * m4/gettext.m4: New file -- from gettext-0.10.35.
99392         * m4/lcmessage.m4: Likewise.
99393         * m4/progtest.m4: Likewise.
99394
99395         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99396         * m4/jm-macros.m4: Require the new macro.
99397
99398 1998-06-29  Jim Meyering  <meyering@ascend.com>
99399
99400         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99401         for the definition of NGROUPS (used in a system header included
99402         by sys/mount.h).
99403
99404 1998-06-28  Jim Meyering  <meyering@ascend.com>
99405
99406         * m4/ls-mntd-fs.m4: New file.
99407         * m4/fstypename.m4: New file.
99408
99409         * m4/jm-macros.m4: Require the new macro.
99410         * m4/jm-glibc-io.m4: New file.
99411
99412 1998-05-19  Jim Meyering  <meyering@ascend.com>
99413
99414         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99415         * m4/lchown.m4: New file.
99416
99417         * m4/Makefile.am.in: New file.
99418         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99419
99420 1998-05-14  Jim Meyering  <meyering@ascend.com>
99421
99422         * m4/Makefile.am (EXTRA_DIST): Add them.
99423         * m4/jm-macros.m4: New file.
99424         * m4/utimbuf.m4: New file.
99425
99426 1998-05-12  Jim Meyering  <meyering@ascend.com>
99427
99428         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99429
99430 1998-05-11  Jim Meyering  <meyering@ascend.com>
99431
99432         * m4/isc-posix.m4: New file.
99433
99434 1998-05-10  Jim Meyering  <meyering@ascend.com>
99435
99436         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99437
99438 1998-05-09  Jim Meyering  <meyering@ascend.com>
99439
99440         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99441         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99442         with automake.
99443
99444         * m4/ssize_t.m4: New file.
99445         * m4/mktime.m4: Remove file -- the new automake has this now.
99446
99447 1998-04-26  Jim Meyering  <meyering@ascend.com>
99448
99449         * m4/assert.m4: New file.
99450         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99451
99452 1998-04-05  Jim Meyering  <meyering@ascend.com>
99453
99454         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99455         (jm_PREREQ): Use it here.
99456
99457 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99458
99459         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99460         in acconfig.h.
99461
99462 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99463
99464         * m4/prereq.m4: New file.
99465         * m4/error.m4: New file.
99466         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99467
99468 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99469
99470         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99471         cache-check for the same variable -- that defeated the purpose of
99472         the test; the test program was never run.  This was a problem only
99473         on systems with losing getline functions -- HP-UX 10.20 is one.
99474         Reported by Bjorn Helgaas.
99475
99476 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99477
99478         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99479
99480 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99481
99482         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99483
99484         * m4/const.m4: New file.  Use an initializer in this declaration
99485         typedef int charset[2]; const charset x;
99486         Reported by Bob Glickstein.
99487
99488 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99489
99490         * m4/chown.m4: Fix reversed types on -1 args to chown.
99491         From Kaveh Ghazi.
99492
99493 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99494
99495         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99496         Add lseek and memchr.
99497
99498         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99499         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99500         have a 20-character limit on names.
99501
99502 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99503
99504         * m4/inttypes_h.m4: New file.
99505         * m4/uintmax_t.m4: New file.
99506         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99507
99508
99509         -----
99510
99511         Local Variables:
99512         coding: utf-8
99513         End:
99514
99515         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99516
99517         Copying and distribution of this file, with or without
99518         modification, are permitted provided the copyright notice
99519         and this notice are preserved.