mktime: fix configure typo
[gnulib.git] / ChangeLog
1 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
2
3         mktime: fix configure typo
4         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
5
6 2013-03-12  Eric Blake  <eblake@redhat.com>
7
8         regex-tests: skip UTF-8 test on mingw
9         * modules/regex-tests (Depends-on): Add localcharset.
10         * tests/test-regex.c (main): Use it to skip test on mingw.
11
12 2013-03-11  Eric Blake  <eblake@redhat.com>
13
14         tests: make it easier to bypass alarm time in debugger
15         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
16         * tests/test-memmem.c (main): Likewise.
17         * tests/test-passfd.c (main): Likewise.
18         * tests/test-ptsname.c (main): Likewise.
19         * tests/test-ptsname_r.c (main): Likewise.
20         * tests/test-strcasestr.c (main): Likewise.
21         * tests/test-strstr.c (main): Likewise.
22
23         regex: port to mingw's recent addition of undeclared alarm
24         * doc/posix-functions/alarm.texi (alarm): Document that alarm
25         exists but still doesn't work in newer mingw.
26         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
27         not existence.  Ensure SIGALRM is not trapped.
28         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
29         * m4/regex.m4 (gl_REGEX): Likewise.
30         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
31         * tests/test-regex.c (main): Use correct probe for alarm.
32
33         putenv: avoid compilation warning on mingw
34         * lib/putenv.c (_unsetenv): Protect variable declaration.
35         (putenv): Fix indentation.
36
37 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
38
39         unistd: don't prevent Tru64 Unix from using gnulib strtod.
40         * lib/unistd.in.h: be careful not to include un-needed system
41         stdlib.h from here, because that prevents gnulib stdlib.h from
42         defining rpl_strtod correctly.
43
44 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
45
46         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
47         changesets, but for the 'precision 0' test.
48         * tests/test-vasprintf-posix.c (test_function): Don't insist on
49         round-to-even, since POSIX says rounding is implementation-defined
50         and OS X 10.8.2 rounds 1.51 to 1 here.
51
52         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
53         changeset.
54         * tests/test-vasprintf-posix.c (test_function): Don't insist on
55         round-to-even, since POSIX says rounding is implementation-defined
56         and OS X 10.8.2 rounds 1.5 to 1 here.
57
58 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
59
60         vasnprintf-posix-tests: allow rounding 1.5 to 1
61         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
62         round-to-even, since POSIX says rounding is implementation-defined
63         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
64         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
65
66         bootstrap: port to FreeBSD
67         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
68         that treat '--' differently.  Reported by Mats Erik Andersson in
69         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
70
71 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
72
73         regex: rename remaining __attribute calls to __attribute__.
74         2012-02-25 changed definition of __attribute, but left some uses
75         unchanged, preventing compilation of regex module on most non-gcc
76         environments.
77         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
78         (lookup_collation_sequence_value, build_range_exp)
79         (build_collating_symbol): Set attributes with newly renamed
80         __attribute__ decorator.
81         * lib/regex_internal.c (re_string_peek_byte_case)
82         (re_node_set_compare, re_node_set_contains): Likewise.
83         * lib/regexec.c (acquire_init_state_context): Likewise.
84
85 2013-03-06  Bruno Haible  <bruno@clisp.org>
86
87         execute: Revert last change, but use a different condition.
88         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
89         on Windows.
90
91 2013-03-05  Eric Blake  <eblake@redhat.com>
92
93         execute: drop dead code
94         * lib/execute.c (nonintr_close, nonintr_open): Delete.
95
96 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
97
98         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
99         * m4/non-recursive-gnulib-prefix-hack.m4
100         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
101         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
102         <http://bugs.gnu.org/10305#237>.
103
104 2013-03-04  Eric Blake  <eblake@redhat.com>
105
106         test-getsockopt: avoid compiler warning
107         * tests/test-getsockopt.c (includes): Ensure close is declared.
108
109 2013-03-02  Bruno Haible  <bruno@clisp.org>
110
111         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
112         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
113
114 2013-03-02  Bruno Haible  <bruno@clisp.org>
115
116         gettext: Update to version 0.18.2.
117         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
118         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
119                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
120
121 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122
123         regex: merge patches from libc
124
125         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
126         * lib/regex_internal.h (__attribute__): Rename from __attribute.
127         All uses changed.
128         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
129         (re_string_wchar_at, re_string_elem_size_at):
130         Mark function as possibly unused.
131
132         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
133         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
134         elements compare against the byte sequence of it, not its name.
135
136 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
137
138         putenv: port better to native Windows
139         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
140         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
141         (_unsetenv): Use _putenv if available.
142         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
143         a bit less likely to cause damage.
144         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
145         Fix the wrong value with SetEnvironmentVariable.
146         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
147         code better.
148
149 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
150
151         regex: ignore old-style-definition warnings
152         * lib/regex.c: Add pragma to ignore these warnings.
153         Problem reported for GNU tar by Pavel Raiskup.
154
155 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
156
157         getcwd: support coreutils better
158         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
159         but this might not be correct in coreutils, which disables
160         the raw decl checks.  Problem reported by Nagendra in
161         <http://bugs.gnu.org/10305#192>.
162         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
163         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
164         Test the getcwd function, not any macro, since getcwd.c wants the
165         function.
166         * m4/getcwd.m4 (gl_FUNC_GETCWD):
167         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
168         compile, as might happen if there's a macro but no function.
169
170         strtod: support coreutils better
171         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
172         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
173         disables the raw decl checks.  This assumes there is an underlying
174         strtod, but that's a safe assumption these days.
175         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
176
177         mountlist: port to HP NonStop
178         Reported by Joachim Schmitz in
179         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
180         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
181         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
182
183 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
184
185         extern-inline: avoid compilation error with HP-UX cc
186         Reported by Richard Lloyd in
187         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
188         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
189         Suppress extern inline with HP-UX cc.  This should be safe,
190         though it may hurt performance.  Perhaps someone with some HP-UX
191         experience can come up with a higher-performance fix.
192
193 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
194
195         putenv: fix heap corruption with mixed putenv/_putenv
196         Problem reported by Michael Goffioul in
197         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
198         * lib/putenv.c (putenv) [HAVE__PUTENV]:
199         Rely on _putenv to allocate the new environment.
200         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
201         * modules/putenv (configure.ac): Use it.
202
203 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
204
205         unsetenv etc.: port to Solaris 11 + GNU Emacs
206         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
207         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
208         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
209         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
210         idea but is too painful to fix right now), and without this gnulib
211         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
212         compiling unsetenv.c on Solaris 11.  Fix the problem for
213         unsetenv.c, and fix other similar occurrences.
214
215 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
216
217         secure_getenv: fix C++ declaration typo
218         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
219         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
220         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
221
222 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
223
224         careadlinkat: stop exporting careadlinkatcwd
225         Only Emacs used it directly, and Emacs no longer needs it.
226         * NEWS: Document this simplification.
227         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
228         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
229         for readlink.
230         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
231         Don't include stdlib.h; no longer needed.
232         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
233         * lib/relocwrapper.c: Adjust comment to match new dependencies.
234         * modules/areadlink (Depends-on): Add readlink.
235         (Maintainer): Add self.
236         * modules/careadlinkat (Depends-on): Remove readlink.
237
238         extensions: port better to HP-UX
239         This is merged from git Autoconf.
240         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
241         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
242         so that it's compatible with the value used when compiling.
243
244         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
245         Problem reported by Mats Erik Andersson in
246         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
247         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
248         openpty function exists, not merely when we intend to replace it.
249         This corrects the 2013-01-31 patch, which mistakenly defined
250         HAVE_OPENPTY even on hosts that lacked it.
251
252 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
253
254         secure_getenv: fix include typo
255         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
256
257         secure_getenv: port better to FreeBSD and Solaris
258         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
259         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
260         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
261         This works better on BSDish platforms.
262         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
263         Test for issetugid if __secure_getenv is missing.
264
265 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
266
267         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
268         Some of these changes are merged in from git Autoconf.
269         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
270         When deciding whether to define _XOPEN_SOURCE, inspect the
271         preprocessor macro __hpux instead of the more-heavyweight
272         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
273         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
274         as the key for __EXTENSIONS__.
275
276         unistd: avoid namespace pollution on non-glibc systems
277         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
278         This avoids namespace pollution on non-glibc systems, by causing
279         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
280         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
281         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
282
283 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
284
285         tmpdir: use secure_getenv
286         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
287         Define to secure_getenv, not getenv.
288         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
289         as that's now secure_getenv's job.
290         * modules/tmpdir (Depends-on): Add secure_getenv.
291
292         tempname: use secure_getenv
293         * lib/tempname.c (__secure_getenv) [!_LIBC]:
294         Define to secure_getenv, not getenv.
295         * modules/tempname (Depends-on):
296         Add secure_getenv.
297
298         secure_getenv: new module
299         * MODULES.html.sh (Extra functions based on ANSI C 89):
300         Add secure_getenv.
301         * doc/glibc-functions/secure_getenv.texi: New file.
302         * doc/gnulib.texi: Include it.
303         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
304         New files.
305         * lib/stdlib.in.h (secure_getenv): New decl.
306         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
307         * modules/stdlib (stdlib.h):
308         Add secure_getenv checks.
309
310 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
311
312         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
313         Reported for OS X 10.8.2 by Assaf Gordon in
314         <http://bugs.gnu.org/13516>.
315         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
316         !HAVE_OPENAT && !HAVE_FDOPENDIR.
317         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
318         so that they can be kept in sync more easily.  Avoid PATH_MAX
319         test on the Hurd.  Sync from test-getcwd.c for errno tests after
320         mkdir or chdir failure.
321         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
322         lib/getcwd.c.
323         (test_abort_bug): Do not test for the deep directory bug unless we
324         have openat support.  Avoid PATH_MAX test on the Hurd.
325
326         regex-tests, regex: fix bug: memset undeclared
327         * tests/test-regex.c: Don't include regex.h twice.  Include
328         string.h, to declare memset.  Christensen's report also mentioned
329         this issue.
330         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
331         test-regex.c, to avoid future problems like this.  Remove
332         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
333         twice.
334
335         regex-tests: fix link errors on older Solaris
336         These need to link with @LIBINTL@ to get libintl_gettext.
337         Problem reported by Tom G. Christensen in
338         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
339         * modules/regex-tests (test_regex_LDADD): New macro.
340
341 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
342
343         regex-tests: new module
344         * modules/regex-tests, tests/test-regex.c: New files.
345
346         regex: fix off-by-one error in configure test
347         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
348
349 2013-01-31  Eric Blake  <eblake@redhat.com>
350
351         regex: avoid infinite configure test
352         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
353
354 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
355
356         openpty: fix bug where HAVE_OPENPTY wasn't defined
357         See the thread starting at:
358         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
359         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
360         openpty function exists, not merely when we intend to replace it.
361
362 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
363
364         sys_time: port to Solaris 2.6
365         There is a circularity problem on Solaris 2.6, where <time.h> includes
366         <sys/time.h> for struct timespec.  The include nesting is gnulib
367         <time.h>, system <time.h>, gnulib <sys/time.h>, system
368         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
369         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
370         <sys/siginfo.h>; the last, innermost file needs struct
371         timestruc_t, which is defined in <sys/time.h>, which has not been
372         fully parsed.  Problem reported by Tom G. Christensen in
373         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
374         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
375         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
376         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
377         uses split double-inclusion guards.
378
379 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
380
381         regex: test for buffer overrun
382         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
383         for the just-fixed regex bug.
384
385 2013-01-29  Andreas Schwab  <schwab@suse.de>
386
387         regex: fix buffer overrun in regexp matcher [BZ #15078]
388         * lib/regexec.c (extend_buffers): Add parameter min_len.
389         (check_matching): Pass minimum needed length.
390         (clean_state_log_if_needed): Likewise.
391         (get_subexp): Likewise.
392
393 2013-01-28  Pádraig Brady  <P@draigBrady.com>
394
395         mountlist: don't consider "devtmpfs" as dummy
396         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
397         as there is storage associcated with it.
398
399 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
400
401         futimens-tests, utimens-tests: Depend on gettext.
402         This works around a problem introduced in my 2013-01-12 patch,
403         which added @LIBINTL@ to these modules.
404         * modules/futimens-tests (Depends-on):
405         * modules/utimens-tests (Depends-on): Add gettext.
406
407 2013-01-26  Eric Blake  <eblake@redhat.com>
408
409         test-getpeername: fix typo
410         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
411
412 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
413
414         bootstrap: remove the need for a sorted .gitignore file
415         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
416         rename to insert_if_absent(), so that we don't need or generate
417         a sorted .gitignore file.  We do require a .gitignore with no
418         existing duplicate entries and enforce that.
419         (sort_patterns): Remove this function as we now use the simpler
420         technigue of inserting blacklist entries at the top of the file,
421         assuming gnulib won't be inserting !whitelist entries.
422
423 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
424
425         readlinkat: don't depend on gl_FUNC_OPENAT
426         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
427         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
428         renameat.m4, symlinkat.m4; but one thing at a time.
429
430         statat: new module, split out from fstatat
431         GNU Emacs needs the POSIX-specified fstatat, but not the
432         gnulib-specified statat and lstat.  Split the latter two into a
433         new module 'statat'.
434         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
435         * lib/openat.h, lib/statat.c (STATAT_INLINE):
436         Rename from FSTATAT_INLINE. All uses changed.
437         * modules/fstatat (Files): Remove lib/statat.c.
438         (gl_MODULE_INDICATOR([fstatat])): Remove.
439         (lib_SOURCES): Remove.
440         (Maintainer): Add self.
441         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
442         * tests/test-fstatat.c (BASE): Don't define if already defined.
443         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
444
445 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
446
447         tests: don't assume fd 99 is closed
448         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
449         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
450         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
451         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
452         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
453         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
454         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
455         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
456         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
457         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
458         * tests/test-fwrite.c, tests/test-getpeername.c:
459         * tests/test-getsockname.c, tests/test-getsockopt.c:
460         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
461         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
462         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
463         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
464         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
465         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
466         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
467         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
468         * tests/test-unlinkat.c, tests/test-unlockpt.c:
469         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
470         Close file descriptor 99, instead of assuming it's already closed.
471
472 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
473
474         stpncpy: port to OS X 10.8
475         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
476         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
477
478 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
479
480         unistd: port to recent mingw
481         * lib/unistd.in.h: Remove special invocation convention for mingw,
482         which breaks for the latest mingw version.  See John W. Eaton in
483         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
484
485         largefile: port better to Mac OS X 10.5
486         This patch is backported from Autoconf git.
487         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
488         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
489         with ino_t size being different for configuration time versus
490         build/run time.  Problem reported by PHO in
491         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
492
493 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
494
495         doc: clarify -Werror
496         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
497         clarify that it's intended for developers, not for ordinary builds,
498         and mention --enable-gcc-warnings as one possible use.
499
500 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
501
502         stdint: fix build with Android's Bionic fox x86
503         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
504         was already included as _SSIZE_T_DEFINED_ might also be defined
505         in include/machine/_types.h, which is included by stdio.h
506
507 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
508
509         net_if-tests: port to Solaris 7 + GCC 3.4.6
510         Problem reported by Tom G. Christensen in
511         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
512         * tests/test-net_if.c (ni): Move to next the code that uses it,
513         so that it's declared only if needed.
514
515 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
516
517         net_if-tests: port to older Solaris
518         Problem reported by Tom G. Christensen in
519         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
520         * modules/net_if-tests (NET_IF_LIB): New substitution.
521         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
522         (HAVE_IF_NAMEINDEX): New C macro.
523         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
524
525         system-quote-tests: port to older Solaris
526         Problem reported by Tom G. Christensen in
527         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
528         * tests/test-system-quote-child.c (fopen, fread): Undef.
529
530         c-xvasprintf etc.: fix link errors on older Solaris
531         These need to link with @LIBINTL@ to get libintl_gettext.
532         Problem reported by Tom G. Christensen in
533         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
534         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
535         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
536         * modules/futimens-tests (test_futimens_LDADD):
537         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
538
539 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
540
541         locale: port to Solaris 2.6 and 7 + GNU gettext
542         * lib/locale.in.h: Just include_next <locale.h> when
543         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
544         when combining the localename module with GNU gettext 0.18.2.
545         Problem reported by Tom G. Christensen in
546         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
547
548 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
549
550         stdlib: port to Solaris 2.6
551         Also, the code worked on Solaris 7 through 9 only by accident.
552         Problem reported by Tom G. Christensen in
553         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
554         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
555         simply include the system stdlib.h.
556         * lib/getopt.in.h (__need_system_stdlib_h):
557         * lib/pthread.in.h (__need_system_stdlib_h):
558         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
559         Define when including <stdlib.h>, to avoid problems at least for
560         the pthread case on Solaris 2.6 and 7.  These .h files can get by
561         with the system stdlib.h.
562
563 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
564
565         doc: update main copyright year
566         * doc/gnulib.texi: Update copyright date.
567
568         doc: improve ISO 8601 discussion
569         * doc/parse-datetime.texi (Combined date and time of day items):
570         Specify more carefully what formats are supported and what is
571         done with excess precision.
572
573 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
574
575         doc: avoid small caps
576         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
577         they're more trouble than they're worth.  Suggested by Karl Berry
578         in <http://bugs.gnu.org/13360>.
579
580         regex: conform to strict C
581         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
582         From Aharon Robbins.
583
584         gnulib-tool: fix incompatibility with autopoint 0.18.2
585         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
586         Problem reported by Tom G. Christensen in
587         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
588
589 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
590
591         fprintftime: bring back and reword fwrite comment
592         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
593
594         stdio: remove now-unnecessary stdio.c
595         Since stdio.in.h no longer uses inline functions, we no longer
596         need to compile the extern versions.
597         * lib/stdio.c: Remove.
598         * modules/stdio (Files): Remove lib/stdio.c.
599         (lib_SOURCES): Remove.
600
601         unicodeio: depend on stdio, not ignore-value
602         * lib/unicodeio.c: Do not include ignore-value.h.
603         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
604         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
605
606         fprintftime: depend on stdio, not ignore-value
607         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
608         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
609         since the stdio module arranges to silence that warning now.
610         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
611
612 2012-10-04  Simon Josefsson  <simon@josefsson.org>
613
614         stdint-tests: Fix expanded-before-required-warning.
615         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
616
617 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
618
619         fwrite: silence __wur only for older glibc versions
620         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
621         This will help us remove this workaround some time in the far future.
622
623 2013-01-03  Eric Blake  <eblake@redhat.com>
624
625         fwrite: silence __wur without using inline
626         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
627         just gcc, and in a way that avoids inline issues.
628         * modules/stdio (Depends-on): Drop extern-inline.
629
630 2013-01-03  Jim Meyering  <jim@meyering.net>
631
632         update-copyright: avoid copyright notice date corruption
633         Given a sequence of copyright year numbers in which the final
634         one was a two-digit number that happened to be a substring of
635         a preceding four-digit year number, we would mistakenly update
636         the substring (from two- to four-digit) rather than the two-digit
637         number at the end, which, combined with the addition of the current
638         4-digit year number would yield two 5-digit year numbers, e.g.,
639         here, it would convert the first "99" to "1999, 2013" rather than
640         the final one:
641           1991, 99
642           11999, 20131, 1999
643         * build-aux/update-copyright: Tighten a regexp.
644         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
645         Reported by Joseph Myers in
646         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
647
648 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
649
650         regex: omit needless signed-pointer casts
651         * lib/regcomp.c (build_charclass, build_charclass_op):
652         Use char *, not unsigned char *, for class name and extra.
653         The char values are always nonnegative so there's no need to
654         insist on unsigned char * here, and using char * removes the need
655         for casts.  Reported by Aharon Robbins in
656         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
657
658         regex: support Gawk, which never uses alloca
659         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
660         Do not include in this case.  Gawk doesn't supply a substitute
661         alloca.h and doesn't need one.
662
663         regex: port __libc_lock_define usage to C89
664         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
665         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
666         does not conform to C89, as it has an empty macro argument.
667         Reported by Aharon Robbins in
668         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
669
670 2013-01-01  Eric Blake  <eblake@redhat.com>
671
672         maint: update all copyright year number ranges
673         Run "make update-copyright".
674
675         version-etc: bump copyright year reported in --version
676         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
677
678 2012-12-31  Eric Blake  <eblake@redhat.com>
679
680         sigprocmask-tests: skip test if pid is unexpectedly large
681         * tests/test-sigprocmask.c (main): Add range check.
682
683         git-version-gen: avoid test -z portability glitch
684         * build-aux/git-version-gen: Prefer portable test spelling, since
685         git-version-gen is run on more than just developer machines.
686
687 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
688
689         git-version-gen: add --fallback option to use if git is not present
690         * build-aux/git-version-gen: Add support for the new option --fallback,
691         which comes into play when there is no $tarball_version_file and
692         git is not working.
693         (scriptversion): Update.
694
695         maint.mk: handle missing git with more grace
696         * top/maint.mk (no-submodule-changes, public-submodule-commit):
697         Quietly proceed if git is not present.
698
699 2012-12-31  Eric Blake  <eblake@redhat.com>
700
701         dup2: work around cygwin bug
702         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
703         * lib/dup2.c (rpl_dup2): Work around it.
704         * doc/posix-functions/dup2.texi (dup2): Document it.
705
706 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
707
708         regex: remove unnecessary dependency on localcharset.h
709         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
710         hasn't been needed for years.
711         * modules/regex (Depends-on): Remove localcharset.
712
713         regex: revert single-byte change
714         * lib/regexec.c (check_node_accept_bytes): Revert previous change
715         to this function.  This was alredy fixed in a different way, at
716         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
717         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
718         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
719
720         regex: simplify based on Gawk version
721         * lib/regex_internal.c (re_dfa_add_node): Simplify.
722         Reported by Aharon Robbins in
723         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
724
725 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
726
727         regex: check that pattern char is single-byte
728         Reported by Aharon Robbins in
729         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
730         * lib/regexec.c (check_node_accept_bytes):
731         Return 0 if the pattern string has a multibyte character here.
732
733         regex: implement rational ranges
734         Reported by Aharon Robbins in
735         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
736         * lib/regcomp.c (build_range_exp) [!_LIBC]:
737         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
738         Implement rational ranges.
739
740         regex: avoid redefining __wctype
741         Reported by Aharon Robbins in
742         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
743         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
744         #undef before defining.
745
746         regex: port to hosts where malloc (0) == NULL
747         Reported by Aharon Robbins in
748         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
749         * lib/regex_internal.c (re_node_set_alloc):
750         Don't assume that malloc (0) yields nonnull.
751         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
752         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
753         * modules/regex (Files): Add m4/eealloc.m4.
754
755         regex: port to C89
756         Reported by Aharon Robbins in
757         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
758         * lib/regcomp.c (init_word_char): Declaration before statement.
759
760         regex: merge glibc changes
761         Also, copy the license wording from glibc.  This simplifies
762         merging changes.  gnulib-tool will change the wording to GPL as
763         appropriate, when importing it to other packages.  The only
764         glibc change made since the last merge, which needs merging, is:
765         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
766         * lib/regex_internal.h (gettext): Remove use of INTUSE.
767
768         * users.txt: Add Emacs.
769
770         doc: omit mention of version when not needed
771         * doc/gnulib-intro.texi (Portability and Application Code):
772         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
773         Don't mention particular dates or versions when not necessary, so
774         that the documentation won't go out of date so quickly.
775
776         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
777
778 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
779
780         bootstrap: pass --force to autoreconf.
781         * build-aux/bootstrap (AUTORECONFFLAGS): New.
782         Add "--force" so that Automake's ylwrap and other such tools
783         be updated at each bootstrap invocation.
784         Use it.
785
786 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
787
788         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
789         The earlier patch forgot to update one of the #if conditions, causing
790         a problem on Debian testing i386 reported by Mats Erik Andersson
791         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
792         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
793         (__argp_fmtstream_puts, argp_fmtstream_puts)
794         (__argp_fmtstream_write, argp_fmtstream_write)
795         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
796
797         * doc/gnulib-readme.texi: Minor fixups.
798         (Portability guidelines): Modernize URLs.  Remove some repetition.
799         (Indent with spaces not TABs): Reword to avoid too-long lines.
800         Remove some '@ifset standalone' stuff that isn't used.
801
802         * doc/gnulib-readme.texi (Portability guidelines):
803         ctype.h, not ctime.h.
804
805         Correct name of POSIX.1-2001.
806         * doc/posix-functions/fgetc.texi (fgetc):
807         * doc/posix-functions/fgets.texi (fgets):
808         * doc/posix-functions/fread.texi (fread):
809         * doc/posix-functions/fscanf.texi (fscanf):
810         * doc/posix-functions/getc.texi (getc):
811         * doc/posix-functions/getchar.texi (getchar):
812         * doc/posix-functions/scanf.texi (scanf):
813         POSIX.1-2001, not POSIX-2001.
814
815         doc: move README into manual
816         * README: Move contents to new file doc/gnulib-readme.texi.
817         Replace with a one-line summary.
818         * doc/gnulib.texi (Brief Overview): New section,
819         with old intro preface.  Include gnulib-readme.texi for contents.
820         (Philosophy): Rename from "Introduction", since this
821         section no longer introduces the rest.  Write a new preface.
822         * doc/gnulib-readme.texi: New file, with the old contents of
823         README texinfo-ized.  This way, the README info appears
824         in the online and printed manual.
825
826 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
827
828         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
829         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
830         c_vasprintf() prototype.
831
832 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
833
834         c-vasprintf: Fix "empty declaration" warning reported by GCC.
835         * lib/c-vasprintf.h: Remove stray semicolon.
836
837 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
838
839         gettext: avoid obsolete macro AM_PROG_MKDIR_P
840         It is obsolete and is planned to be removed from Automake 1.14; see
841         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
842         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
843         (installdirs-data, installdirs-data-yes):
844         Use $(MKDIR_P), not $(mkdir_p).
845         * m4/intl.m4 (AM_INTL_SUBDIR):
846         * m4/po.m4 (AM_PO_SUBDIRS):
847         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
848
849 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
850
851         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
852         On this platform, we are not optimizing but we are using
853         the substitute for extern inlines, so compile as if
854         C99-style extern inline, or a substitute, is available.
855         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
856         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
857         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
858         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
859         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
860         Declare as ARGP_FS_EI, not as extern.
861         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
862         (__option_is_short, _option_is_end, __option_is_end)
863         [!_LIBC && __USE_EXTERN_INLINES]:
864         Declare as ARGP_EI, not as extern.
865
866 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
867
868         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
869         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
870         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
871         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
872         ...), as the latter is fatal with older Autoconfs.
873         Problem reported and fix suggested by Eric Blake in thread starting at
874         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
875
876 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
877
878         AC_PROG_MKDIR_P: don't workaround if not buggy
879         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
880         Define only for Autoconf versions before 2.62.
881         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
882         undocumented m4_PACKAGE_VERSION, for consistency with the
883         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
884         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
885         was introduced in 2.62.
886
887 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
888
889         New 'c-*printf' modules for formatted output in C locale.
890
891         New module 'c-vasnprintf'.
892         * modules/c-vasnprintf: New file.
893         * lib/c-vasnprintf.c: New file.
894         * lib/c-vasnprintf.h: New file.
895
896         New module 'c-snprintf'.
897         * modules/c-snprintf: New file.
898         * modules/c-snprintf-tests: New file.
899         * lib/c-snprintf.c: New file.
900         * lib/c-snprintf.h: New file.
901         * tests/test-c-snprintf.c: New file.
902         * tests/test-c-snprintf.sh: New file.
903
904         New module 'c-vsnprintf'.
905         * modules/c-vsnprintf: New file.
906         * modules/c-vsnprintf-tests: New file.
907         * lib/c-vsnprintf.c: New file.
908         * lib/c-vsnprintf.h: New file.
909         * tests/test-c-vsnprintf.c: New file.
910         * tests/test-c-vsnprintf.sh: New file.
911
912         New module 'c-vasprintf'.
913         * modules/c-vasprintf: New file.
914         * modules/c-vasprintf-tests: New file.
915         * lib/c-asprintf.c: New file.
916         * lib/c-vasprintf.c: New file.
917         * lib/c-vasprintf.h: New file.
918         * tests/test-c-vasprintf.c  +: New file.
919         * tests/test-c-vasprintf.sh: New file.
920
921         New module 'c-xvasprintf'.
922         * modules/c-xvasprintf: New file.
923         * modules/c-xvasprintf-tests: New file.
924         * lib/c-xasprintf.c: New file.
925         * lib/c-xvasprintf.c: New file.
926         * lib/c-xvasprintf.h: New file.
927         * tests/test-c-xvasprintf.c: New file.
928         * tests/test-c-xvasprintf.sh: New file.
929
930 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
931
932         argp: better 'inline'
933         Use extern-inline module to declare extern inline functions.
934         This avoids some bogus warning diagnostics.  Problem discovered
935         when modifying GNU tar to use the manywarnings module.
936         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
937         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
938         Define based on extern-inline.
939         * modules/argp (Depends-on): Add extern-inline.
940
941 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
942
943         filemode, sys_stat: Handle MPX files a la AIX.
944         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
945         * lib/sys_stat.in.h (S_ISMPX): New macro.
946         * tests/test-sys_stat.c: Add tests for MPX files.
947
948 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
949
950         x-to-1: honor $PERL
951         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
952         a chance to use his preferred version of Perl.  This is typically
953         required by Darwin users whose default /usr/bin/perl does not have all
954         the libraries required by help2man, and who need to use their MacPorts
955         installation of Perl instead.
956
957 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
958
959         gnu-web-doc-update: add all the new files, even in new directories
960         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
961         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
962         Use it.
963         (main): Don't use cvsutils to get the list of unknown files,
964         just add all the existing files and directories.
965
966 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
967
968         gnu-web-doc-update: improve --help
969         * build-aux/gnu-web-doc-update: Move comments into --help.
970
971 2012-12-07  Eric Wong  <normalperson@yhbt.net>
972
973         mountlist: recognize more "dummy" file systems
974         * lib/mountlist.c (ME_DUMMY_0):
975         Add these dummy FS names to the list:
976         - "debugfs" virtual filesystem for kernel debugging
977         - "devpts" PTY slave filesystem
978         - "devtmpfs" device filesystem on top of tmpfs/ramfs
979         - "fusectl" control filesystem for FUSE
980         - "mqueue" enumerates POSIX message queues
981         - "rpc_pipefs" kernel <-> userspace bridge for NFS
982         - "sysfs" is for exporting kernel objects
983         - "devfs" device filesystem for Linux 2.4 and FreeBSD
984
985 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
986
987         extern-inline: avoid incompatibility with Darwin Libc
988         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
989         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
990         Problem reported by Akim Demaille in
991         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
992
993 2012-12-11  Simon Josefsson  <simon@josefsson.org>
994
995         gnupload: Work with GnuPG using gpg-agent (for smartcards).
996         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
997         let it handle password prompting.
998
999 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1000
1001         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1002         * lib/canonicalize.c (canonicalize_filename_mode):
1003         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1004         fetching the current directory.  Don't overrun the beginning of
1005         rpath if there's no slashes after the MS-Windows drive letter.
1006
1007 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1008
1009         maint.mk: avoid extra forks
1010         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1011         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1012         So use that instead of "$(shell test -f FILE && echo FILE)".
1013
1014 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1015
1016         vasnprintf: fix ASCII_ONLY typo
1017         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1018         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1019         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1020         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1021         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1022
1023 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1024
1025         list, oset, xlist, xoset: fix extern inline issue with C99
1026         This was introduced by my recent changes for 'inline'.
1027         Problem reported for gettext by Daiki Ueno in
1028         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1029         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1030         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1031         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1032         (gl_list_previous_node, gl_list_get_at)
1033         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1034         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1035         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1036         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1037         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1038         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1039         (gl_list_iterator_free, gl_sortedlist_search)
1040         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1041         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1042         (gl_sortedlist_remove):
1043         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1044         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1045         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1046         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1047         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1048         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1049         (gl_list_add_at, gl_sortedlist_add):
1050         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1051         Wrap these extern decls inside "#if 0", because they are implemented
1052         as inline functions, and extern inline is not what's wanted here.
1053         It would simplify these .h files to remove the extern decls entirely,
1054         although a downside would be less-clear separation between
1055         specification and implementation.
1056
1057 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1058
1059         sys_stat: no 'static inline'
1060         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1061         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1062
1063         extern-inline: no 'static inline'
1064         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1065         Do not require AC_C_INLINE.
1066         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1067         'static inline', for older compilers.
1068
1069         snippet/warn-on-use: no 'static inline'
1070         * build-aux/snippet/warn-on-use.h:
1071         Remove unnecessary 'inline' in comment.
1072
1073         rbtree-list, rbtreehash-list: no 'static inline'
1074         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1075         * lib/gl_anytree_list2.h (node_at):
1076         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1077         (gl_oset_first, add_nodes_to_buckets):
1078         Now static, not static inline.
1079
1080         regex: no 'static inline'
1081         * lib/regex_internal.c (calc_state_hash):
1082         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1083         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1084         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1085         Now static, not static inline.
1086         (inline) [__GNUC__ < 3 && _LIBC]:
1087         Remove macro; no longer needed.
1088
1089         xvasprintf: no 'static inline'
1090         * lib/xvasprintf.c (xstrcat):
1091         Now static, not static inline.
1092         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1093         Do not require AC_C_INLINE.
1094
1095         parse-datetime, parse-duration: no 'static inline'
1096         * lib/parse-datetime.y (to_uchar):
1097         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1098         (scale_n_add):
1099         Now static, not static inline.
1100         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1101         * modules/parse-duration (configure.ac):
1102         Do not require AC_C_INLINE.
1103
1104         getaddrinfo: no 'static inline'
1105         * lib/getaddrinfo.c (validate_family):
1106         Now static, not static inline.
1107         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1108         Do not require AC_C_INLINE.
1109
1110         ftruncate, fts, lstat, openat, raise: no 'static inline'
1111         * lib/ftruncate.c (chsize_nothrow):
1112         * lib/fts.c (opendirat, diropen):
1113         * lib/lstat.c (orig_lstat):
1114         * lib/openat.c (orig_openat):
1115         * lib/raise.c (raise_nothrow):
1116         Now static, not static inline.
1117         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1118         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1119         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1120         * m4/openat.m4 (gl_PREREQ_OPENAT):
1121         * m4/raise.m4 (gl_PREREQ_RAISE):
1122         Do not require AC_C_INLINE.
1123
1124         fflush, stat: no 'static inline'
1125         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1126         (clear_ungetc_buffer, disable_seek_optimization)
1127         (restore_seek_optimization, update_fpos_cache):
1128         * lib/stat.c (orig_stat):
1129         Now static, not static inline.
1130         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1131         (update_fpos_cache):
1132         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1133         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1134         * m4/stat.m4 (gl_PREREQ_STAT):
1135         Do not require AC_C_INLINE.
1136
1137         error, filevercmp: no 'static inline'
1138         * lib/error.c (is_open, flush_stdout):
1139         * lib/filevercmp.c (order):
1140         Now static, not static inline.
1141         * m4/error.m4 (gl_PREREQ_ERROR):
1142         * modules/filevercmp (configure.ac):
1143         Do not require AC_C_INLINE.
1144
1145         dup, execute, fatal-signal, etc.: no 'static inline'
1146         * lib/dup.c (dup_nothrow):
1147         * lib/execute.c (nonintr_close, nonintr_open):
1148         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1149         * lib/fopen.c (orig_fopen):
1150         * lib/freadseek.c (freadptrinc):
1151         * lib/freopen.c (orig_freopen):
1152         * lib/fstat.c (orig_fstat, fstat_nothrow):
1153         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1154         (get_rusage_as_via_iterator):
1155         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1156         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1157         * lib/isatty.c (_isatty_nothrow):
1158         * lib/open.c (orig_open):
1159         * lib/read.c (read_nothrow):
1160         * lib/sigprocmask.c (signal_nothrow):
1161         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1162         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1163         * lib/wait-process.c (unregister_slave_subprocess):
1164         * lib/write.c (write_nothrow):
1165         Now static, not static inline.
1166         * lib/spawn-pipe.c (nonintr_open): Define only if
1167         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1168         * m4/dup.m4 (gl_PREREQ_DUP):
1169         * m4/execute.m4 (gl_EXECUTE):
1170         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1171         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1172         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1173         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1174         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1175         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1176         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1177         * m4/open.m4 (gl_PREREQ_OPEN):
1178         * m4/read.m4 (gl_PREREQ_READ):
1179         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1180         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1182         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1183         * m4/write.m4 (gl_PREREQ_WRITE):
1184         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1185         Do not require AC_C_INLINE.
1186
1187         c-strtod, memcoll, readutmp: no 'static inline'
1188         * lib/c-strtod.c (c_locale):
1189         * lib/memcoll.c (strcoll_loop):
1190         * lib/readutmp.c (desirable_utmp_entry):
1191         Now static, not static inline.
1192         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1193         * m4/memcoll.m4 (gl_MEMCOLL):
1194         * m4/readutmp.m4 (gl_READUTMP):
1195         Do not require AC_C_INLINE.
1196
1197         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1198         * lib/arctwo.c (to_uchar):
1199         * lib/md4.c (set_uint32):
1200         * lib/md5.c (set_uint32):
1201         * lib/sha1.c (set_uint32):
1202         * lib/sha256.c (set_uint32):
1203         * lib/sha512.c (set_uint64):
1204         Now static, not static inline.  This is a bit simpler, and doesn't
1205         affect performance with GCC and default optimization.
1206         * m4/arctwo.m4 (gl_ARCTWO):
1207         * m4/md4.m4 (gl_MD4):
1208         * m4/md5.m4 (gl_MD5):
1209         * m4/sha1.m4 (gl_SHA1):
1210         * m4/sha256.m4 (gl_SHA256):
1211         * m4/sha512.m4 (gl_SHA512):
1212         Do not require AC_C_INLINE.
1213
1214         cond, lock, thread: better 'inline'
1215         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1216         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1217         New macros.  Use them instead of static inline, for header functions.
1218         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1219         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1220         * lib/glthread/lock.c (gl_waitqueue_init)
1221         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1222         * lib/glthread/thread.c (get_current_thread_handle):
1223         Change 'static inline' to 'inline'.
1224         * lib/glthread/cond.h, lib/glthread/thread.h:
1225         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1226         * m4/cond.m4 (gl_COND):
1227         * m4/lock.m4 (gl_PREREQ_LOCK):
1228         * m4/thread.m4 (gl_THREAD):
1229         Do not require AC_C_INLINE.
1230         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1231
1232         chdir-long, cycle-check, savewd: better 'inline'
1233         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1234         (find_non_slash):
1235         * lib/cycle-check.c (is_zero_or_power_of_two):
1236         * lib/savewd.c (savewd_delegating):
1237         Change 'static inline' to 'inline'.
1238         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1239         Replace all remaining uses of 'static inline' with it.
1240         * lib/savewd.h:
1241         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1242         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1243         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1244         * m4/savewd.m4 (gl_SAVEWD):
1245         Do not require AC_C_INLINE.
1246         * modules/savewd (Depends-on): Add extern-inline.
1247
1248         base32, base64: no need for 'inline'
1249         * lib/base32.c (to_uchar, get_8, decode_8):
1250         * lib/base64.c (to_uchar, get_4, decode_4):
1251         Change 'static inline' to 'inline'.
1252         * m4/base32.m4 (gl_PREREQ_BASE32):
1253         * m4/base64.m4 (gl_PREREQ_BASE64):
1254         Do not require AC_C_INLINE.
1255
1256         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1257         * lib/gl_array_oset.c (gl_array_nx_add_at):
1258         (gl_array_remove_at):
1259         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1260         (add_to_bucket, remove_from_bucket):
1261         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1262         Change 'static inline' to 'static', as it's simpler to omit
1263         'inline' unless there's a significant performance advantage.
1264
1265         list, oset, xlist, xoset, xsublist: simplify via extern inline
1266         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1267         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1268         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1269         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1270         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1271         New macro.  Replace all uses of 'static inline' with it.
1272         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1273         instead of as macros FOO that are defined to static inline
1274         functions FOO_inline.
1275         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1276         * lib/gl_xsublist.c:
1277         Reimplement from scratch, by defining the corresponding *_INLINE
1278         macro and including the corresponding .h file.  This is simpler.
1279         * modules/list, modules/oset, modules/xlist, modules/xoset:
1280         (Files): Remove m4/gl_list.m4.
1281         (configure.ac): Remove gl_LIST.
1282         * m4/gl_list.m4: Remove.
1283         * modules/list, modules/oset, modules/xlist, modules/xoset:
1284         * modules/xsublist:
1285         (Depends-on): Depend on extern-inline, not inline.
1286
1287         xalloc: better 'inline'
1288         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1289         New macro.  Replace all uses of 'static inline' with it.
1290         (static_inline): Remove.
1291         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1292         Let 'extern inline' do the work automatically, instead of doing
1293         it by hand.
1294         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1295         Remove.  All uses removed.
1296         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1297
1298         gethrxtime: better 'inline'
1299         * lib/xtime.c: New file.
1300         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1301         * lib/xtime.h (XTIME_INCLUDE):
1302         New macros.  Replace all uses of 'static inline' with them.
1303         * lib/gethrxtime.c (gethrxtime): Define only if
1304         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1305         this source file is now always compiled, because of the extern inline.
1306         * lib/gethrxtime.h, lib/xtime.h:
1307         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1308         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1309         if gethrtime works, as they're not needed in that case.
1310         (gl_XTIME): Do not require AC_C_INLINE.
1311         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1312         compiled now.  Move the check into gl_GETHRXTIME.
1313         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1314         (Depends-on): Add extern-inline.
1315         (configure.ac): gethrxtime is always compiled now.
1316         (lib_SOURCES): Add gethrxtime.c.
1317
1318         wctype-h: better 'inline'
1319         * lib/wctype-h.c: New file.
1320         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1321         New macro.  Replace all uses of 'static inline' with it.
1322         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1323         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1324         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1325         (Depends-on): Add extern-inline.
1326
1327         unistd: better 'inline'
1328         * lib/unistd.c: New file.
1329         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1330         New macro.  Replace all uses of 'static inline' with it.
1331         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1332         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1333         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1334         (Depends-on): Add extern-inline.
1335
1336         sys_socket: better 'inline'
1337         * lib/sys_socket.c: New file.
1338         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1339         New macro.  Replace all uses of 'static inline' with it.
1340         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1341         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1342         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1343         (Depends-on): Add extern-inline.
1344
1345         stdio: better 'inline'
1346         * lib/stdio.c: New file.
1347         * lib/stdio.in.h (_GL_STDIO_INLINE):
1348         New macro.  Replace all uses of 'static inline' with it.
1349         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1350         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1351         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1352         (Depends-on): Add extern-inline.
1353
1354         sigaction: better 'inline'
1355         * lib/sig-handler.c: New file.
1356         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1357         New macro.  Replace all uses of 'static inline' with it.
1358         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1359         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1360         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1361         (Depends-on): Add extern-inline.
1362
1363         selinux-h: better 'inline'
1364         * lib/se-context.c, lib/se-selinux.c: New files.
1365         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1366         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1367         New macro.  Replace all uses of 'static inline' with it.
1368         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1369         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1370         New macro.  Replace all uses of 'static inline' with it.
1371         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1372         * modules/selinux-h (Files, lib_SOURCES):
1373         Add lib/se-context.c, lib/se-selinux.c.
1374         (Depends-on): Add extern-inline.
1375         (configure.ac): Do not require AC_C_INLINE.
1376
1377         pthread: better 'inline'
1378         * lib/pthread.c: New file.
1379         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1380         New macro.  Replace all uses of 'static inline' with it.
1381         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1382         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1383         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1384         * modules/pthread (Files): Add lib/pthread.c.
1385         (Depends-on): Add extern-inline.
1386
1387         math: better 'inline'
1388         * lib/math.c: New file.
1389         * lib/math.in.h (_GL_MATH_INLINE):
1390         New macro.  Replace all uses of 'static inline' with it.
1391         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1392         * m4/math_h.m4 (gl_MATH_H):
1393         Do not require AC_C_INLINE.
1394         * modules/math (Files, lib_SOURCES):
1395         Add lib/math.c.
1396         (Depends-on): Add extern-inline.
1397
1398         count-one-bits: better 'inline'
1399         * lib/count-one-bits.c: New file.
1400         * lib/count-one-bits.h (COUNT_ONE_BITS_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-one-bits.m4 (gl_COUNT_ONE_BITS):
1404         Do not require AC_C_INLINE.
1405         * modules/count-one-bits (Files, lib_SOURCES):
1406         Add lib/count-one-bits.c.
1407         (Depends-on): Add extern-inline.
1408
1409         count-leading-zeros: better 'inline'
1410         * lib/count-leading-zeros.c: New file.
1411         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1412         New macro.  Replace all uses of 'static inline' with it.
1413         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1414         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1415         Do not require AC_C_INLINE.
1416         * modules/count-leading-zeros (Files, lib_SOURCES):
1417         Add lib/count-leading-zeros.c.
1418         (Depends-on): Add extern-inline.
1419
1420         bitrotate: better 'inline'
1421         * lib/bitrotate.c: New file.
1422         * lib/bitrotate.h (BITROTATE_INLINE):
1423         New macros.
1424         Replace all uses of 'static inline' with them.
1425         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1426         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1427         (Depends-on): Add extern-inline.
1428         (configure.ac): Do not require AC_C_INLINE.
1429
1430 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1431
1432         maint.mk: avoid gratuitous failure
1433         Reported by Stefano Lattarini in
1434         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1435         * top/maint.mk (public-submodule-commit): Quote more safely.
1436
1437 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1438
1439         canonicalize, canonicalize-lgpl: support MS-Windows file names
1440         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1441         for test cases, which it'd be nice to add at some point.
1442         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1443         * lib/canonicalize.c (canonicalize_filename_mode):
1444         * lib/canonicalize-lgpl.c (__realpath):
1445         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1446         slash is at the beginning of the file name.  Use ISSLASH, instead
1447         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1448         the first character with '/'.  Test for
1449         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1450         with a drive letter.
1451         * lib/canonicalize.c (SLASHES): New macro.
1452         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1453
1454 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1455
1456         fts: introduce FTS_VERBATIM
1457         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1458         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1459         * lib/fts.c (fts_open): Honor it.
1460
1461 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1462
1463         getlogin-tests: allow errno == ENXIO
1464         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1465         with errno == ENXIO (No controlling tty).
1466         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1467         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1468         with errno == ENOENT.  This was reported to happen in various
1469         situations on GNU/Linux.
1470
1471 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1472
1473         getlogin-tests: allow errno == ENOENT
1474         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1475         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1476         when running a test in an Emacs shell buffer.
1477
1478 2012-11-08  Jim Meyering  <jim@meyering.net>
1479
1480         tests/nap.h: avoid warning about unused variable
1481         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1482
1483         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1484         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1485         white space before each of the special-cased file names, to avoid
1486         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1487         in http://bugs.gnu.org/12830.
1488
1489 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1490
1491         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1492         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1493         fails with errno == EBADF when fd is opened with O_PATH.
1494         Reported by Jim Meyering in
1495         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1496         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1497         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1498
1499 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1500
1501         test-utimens: speed up by taking shorter naps
1502         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1503         New functions.
1504         (nap): Use them, to do a better job of guessing the delay.
1505         On Fedora 17 with ext4 atop md atop hard disks, this made
1506         test-utimens run 10x faster, because the test napped for
1507         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1508         <http://bugs.gnu.org/12820#11>.
1509
1510 2012-11-07  Jim Meyering  <jim@meyering.net>
1511
1512         mountlist.c: fix a compilation failure
1513         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1514         I introduced while transforming commit v0.0-7683-g613bcb6
1515
1516 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1517
1518         errno: port to LynxOS 178 2.2.2
1519         Problem reported by Joel Brobecker in
1520         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1521         * doc/posix-headers/errno.texi (errno.h): Document this.
1522         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1523         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1524         Supply a string for EILSEQ.
1525         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1526
1527 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1528
1529         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1530         Linux kernel 2.6.39 introduced O_PATH (see
1531         <http://lwn.net/Articles/433854/>) and this is a better fallback
1532         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1533         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1534         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1535         * lib/fcntl.in.h (O_ACCMODE):
1536         * tests/test-fcntl-h.c (main):
1537         Do not reject O_ACCMODE merely because it has more than the
1538         minimal number of bits, as POSIX allows extensions here.
1539
1540 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1541
1542         mountlist: do not classify a bind-mounted dir entry as "dummy"
1543         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1544         the "none"-testing clause.
1545         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1546         exception for bind-mounted directories.
1547
1548 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1549
1550         quote: provide a means to escape strings with nul characters
1551         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1552         (quote, quote_n): Rename formal arguments for consistency with
1553         quotearg.
1554
1555 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1556
1557         test-raise: don't assume 199 is an invalid signal
1558         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1559
1560         sh-quote-tests: port to Solaris 9
1561         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1562         Problem reported by Dagobert Michelsen in
1563         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1564
1565 2012-10-28  Jim Meyering  <jim@meyering.net>
1566
1567         maint.mk: rename a new configurable variable
1568         * top/maint.mk (_gl_translatable_string_re): Rename from
1569         translation-markers: _gl_ prefix to insulate from user Makefile code,
1570         and the _re suffix to inform that it's a regular expression.
1571
1572 2012-10-26  Eric Blake  <eblake@redhat.com>
1573
1574         maint.mk: let packages tweak sc_po_check pattern
1575         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1576         finding files with other translation markers.
1577
1578 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1579
1580         euidaccess: speed up 'configure' on GNU hosts
1581         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1582         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1583         it's needed only in this case.  Use AC_CHECK_DECLS, not
1584         AC_CHECK_DECLS_ONCE.
1585         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1586         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1587
1588         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1589
1590 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1591
1592         fchmodat, fchownat, fstatat: port to non-inlining compilers
1593         Problem reported for FreeBSD 9 by Jim Meyering in
1594         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1595         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1596         New files, which define FCHMODAT_INLINE etc.
1597         * lib/fchmodat.c (FCHMODAT_INLINE):
1598         * lib/fchownat.c (FCHOWNAT_INLINE):
1599         * lib/fstatat.c (FSTATAT_INLINE):
1600         Remove, as chmodat.c etc. now do this.
1601         * modules/fchmodat (Files): Add lib/chmodat.c.
1602         * modules/fchownat (Files): Add lib/chownat.c.
1603         * modules/fstatat (Files): Add lib/statat.c.
1604
1605 2012-10-15  Jim Meyering  <jim@meyering.net>
1606
1607         fchmodat.c, fchownat.c: compile-impeding typos
1608         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1609         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1610         Introduced in commit v0.0-7636-gd202279.
1611
1612 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1613
1614         fcntl-h: support GNU flags like O_IGNORE_CTTY
1615         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1616         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1617         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1618         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1619         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1620         Define to 0 if not already defined.
1621         * tests/test-fcntl-h.c: Test these new flags.
1622
1623 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1624
1625         faccessat, etc.: support AT_FDCWD-only use
1626         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1627         this function only if its first argument is AT_FDCWD.
1628         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1629         values other than AT_FDCWD, so it doesn't want all the openat
1630         machinery with fchdir etc.
1631         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1632         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1633         * modules/unlinkat (Files):
1634         Remove lib/openat-priv.h, as at-internal supplies this file.
1635         Removing this file here allows us to support programs like Emacs
1636         that avoid at-internal.
1637
1638         faccessat: speed up 'configure' on mainstream hosts
1639         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1640         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1641         since it's only on unusual platforms that we need to check for
1642         'access', and it's better not to slow 'configure' down on all
1643         platforms.
1644
1645         faccessat: port to Solaris 10
1646         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1647         Needed on Solaris 10, which doesn't have AT_EACCESS,
1648         so we need the Gnulib fcntl.h, which defines it.
1649
1650 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1651         canonicalize: fix C89 compilation
1652         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1653         declarations so C89 is supported.  Also remove the comment
1654         referencing memorty allocation as the suggested feature could
1655         not be implemented as suggested.
1656         Reported by Michael Goffioul.
1657
1658 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1659
1660         group-member: omit unnecessary dependencies
1661         This is for Emacs, which has its own allocator and where we
1662         don't want to use xalloc.
1663         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1664         since we no longer use xmalloc.  Do not include stdbool.h, since
1665         the changes below happen to remove the only use of bool.
1666         (GROUPBUF_SIZE): New constant.
1667         (struct group_info): Remove n_groups member.  Add groupbuf member.
1668         This lets us get the groups without using malloc, usually.
1669         (free_group_info, get_group_info): Adjust to this.
1670         (get_group_info): Return the number of groups found, or -1 on error.
1671         Use plain malloc not xmalloc, and treat its failure as if there
1672         are no groups, as the user already loses in case of error.
1673         (group_member): Simplify, based on changes to get_group_info.
1674         * modules/group-member (Depends-on): Remove dependencies on
1675         xalloc and stdbool.  Add dependency on xalloc-oversized.
1676
1677 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1678
1679         gethrxtime: port to C++
1680         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1681
1682 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1683
1684         ptsname: fix macro-name typo
1685         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1686
1687 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1688
1689         inttostr: Relax license.
1690         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1691
1692 2012-10-03  Eric Blake  <eblake@redhat.com>
1693
1694         ptsname_r: support ptys returned by FreeBSD posix_openpt
1695         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1696         lives in /dev/pts/.
1697
1698 2012-10-02  Eric Blake  <eblake@redhat.com>
1699
1700         pselect: reject invalid file descriptors
1701         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1702         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1703         * modules/pselect (Depends-on): Add dup2.
1704         * doc/posix-functions/pselect.texi (pselect): Document this.
1705
1706         select: reject invalid file descriptors
1707         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1708         * lib/select.c (rpl_select) [!win32]: Work around it.
1709         * modules/select (Depends-on): Add dup2.
1710         * doc/posix-functions/select.texi (select): Document this.
1711
1712         select: enhance test
1713         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1714         New functions.
1715         (test_function): Enhance test.
1716         (do_select_bad_fd): Avoid any stale errno values.
1717
1718         ptsname: reject invalid file descriptors
1719         http://www.austingroupbugs.net/view.php?id=503
1720         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1722         * modules/stdlib (Makefile.am): Replace witness.
1723         * lib/stdlib.in.h (ptsname): Allow for replacement.
1724         * modules/ptsname (configure.ac): Trigger replacement.
1725         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1726
1727 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1728
1729         hash-pjw-bare: new module
1730         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1731         * lib/hash-pjw-bare.h: Likewise.
1732         * modules/hash-pjw-bare: New file.
1733         * MODULES.html.sh (Misc): Add it.
1734
1735 2012-10-02  Eric Blake  <eblake@redhat.com>
1736
1737         manywarnings: cater to more gcc infelicities
1738         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1739         -Wuninitialized without -O.
1740
1741 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1742
1743         select, poll tests: Make setsockopt invocation effective.
1744         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1745         the bind() call.
1746         * tests/test-select.h (open_server_socket): Likewise.
1747
1748 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1749
1750         sockets, sys_stat: restore AC_C_INLINE
1751         This undoes the 2012-09-22 patch.
1752         * m4/sockets.m4 (gl_SOCKETS):
1753         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1754         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1755         and does not support plain 'inline'.  Reported by Bruno Haible in
1756         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1757
1758 2012-09-30  Bruno Haible  <bruno@clisp.org>
1759
1760         localeconv tests: Avoid test failure on OpenIndiana.
1761         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1762         skip the 'grouping' and 'mon_grouping' tests.
1763         Reported by Jim Meyering.
1764
1765 2012-09-30  Bruno Haible  <bruno@clisp.org>
1766
1767         havelib: Follow libtool developments.
1768         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1769         Suggested by Simon Josefsson.
1770
1771 2012-09-29  Jim Meyering  <meyering@redhat.com>
1772
1773         fstatat.c: fix a compile-impeding typo
1774         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1775         Introduced in commit v0.0-7636-gd202279.
1776         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1777
1778 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1779
1780         extern-inline: provide a -Wundef safe config.h
1781         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1782         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1783         to produce a -Wundef warning free config.h.
1784
1785 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1786
1787         hash-pjw: relax license to LGPLv2+
1788         * modules/hash-pjw (License): Relax, with consent of author.
1789
1790 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1791
1792         maint.mk: fix strict vs. lazy variable issues with RELEASE
1793         * top/maint.mk (_equal): New function.
1794         (member_check): Strip the result to avoid spurious spaces.
1795         (url_dir_list): Do not use ifeq, which is strict, as it will
1796         require RELEASE_TYPE to be defined.
1797         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1798         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1799         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1800         (announcement_Cc_beta,announcement_mail_headers_beta)
1801         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1802         (release): Do not depend on $(release-type), as it forces its
1803         evaluation.  Bounce to it.
1804
1805 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1806
1807         maint.mk: formatting changes
1808         * top/maint.mk: Indent bodies of if's.
1809
1810 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1811
1812         maint.mk: factor the validation of RELEASE_TYPE
1813         With help from Jim Meyering.
1814         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1815         * top/maint.mk (_empty, _sp): Move their definition earlier.
1816         (member-check, release-type): New.
1817         Use the latter instead of $(RELEASE_TYPE).
1818         Remove now useless local checks.
1819
1820 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1821
1822         maint.mk: provide "make upload" to ease uploading
1823         See
1824         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1825         Do not depend simply on the current $(VERSION), as there may have been
1826         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1827         as "make release-commit" already does.
1828
1829         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1830         "make TYPE".
1831
1832         * top/maint.mk (upload_command, upload, release): New.
1833         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1834         (VERSION): first word of $(RELEASE) is always right.
1835         (emit_upload_commands): Adjust.
1836         * top/README-release: Update.
1837
1838 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1839
1840         maint.mk: silent rules
1841         With help from Stefano Lattarini.
1842         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1843         (announcement): Use $(AM_V_at).
1844
1845 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1846
1847         localename: port gl_locale_name_thread_unsafe to FreeBSD
1848         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1849         and use the simpler FreeBSD implementation on Mac OS X as well.
1850         Original idea suggested by Ed Maste in
1851         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1852
1853 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1854
1855         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1856         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1857         * lib/mbuiter.c, lib/xsize.c: New files.
1858         * lib/binary-io.h (BINARY_IO_INLINE):
1859         * lib/eealloc.h (EEALLOC_INLINE):
1860         * lib/mbfile.h (MBFILE_INLINE):
1861         * lib/mbiter.h (MBITER_INLINE):
1862         * lib/mbuiter.h (MBUITER_INLINE):
1863         * lib/xsize.h (XSIZE_INLINE):
1864         New macros.
1865         Replace all uses of 'static inline' with them.
1866         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1867         * m4/eealloc.m4 (gl_EEALLOC):
1868         * m4/mbfile.m4 (gl_MBFILE):
1869         * m4/mbiter.m4 (gl_MBITER):
1870         * m4/xsize.m4 (gl_XSIZE):
1871         Do not require AC_C_INLINE.
1872         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1873         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1874         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1875         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1876         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1877         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1878         * modules/binary-io, modules/eealloc, modules/mbfile:
1879         * modules/mbiter, modules/mbuiter:
1880         (Depends-on): Add extern-inline.
1881
1882         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1883         * lib/pipe-filter-aux.c: New file.
1884         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1885         Replace all uses of 'static inline' with it.
1886         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1887         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1888         (filter_retcode): No real need for inline here.
1889         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1890         (Files): Add lib/pipe-filter-aux.c.
1891         (Depends-on): Add extern-inline.
1892         (configure.ac): Do not require AC_C_INLINE.
1893         (lib_SOURCES): Add pipe-filter-aux.c.
1894
1895         fdutimensat: omit unnecessary AC_C_INLINE
1896         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1897
1898         fchmodat, fchownat, fstatat: use extern-inline
1899         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1900         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1901         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1902         New macros.
1903         * lib/openat.h:
1904         Replace all uses of 'static inline' with them.
1905         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1906         * modules/fchmodat, modules/fchownat, modules/fstatat:
1907         * modules/openat-h:
1908         (Depends-on):
1909         Add extern-inline.
1910         (configure.ac): Remove AC_C_INLINE.
1911
1912         acl, mbchar, priv-set: use extern-inline
1913         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1914         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1915         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1916         New macros.
1917         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1918         Replace all uses of 'static inline' with it.
1919         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1920         * m4/acl.m4 (gl_FUNC_ACL):
1921         * m4/mbchar.m4 (gl_MBCHAR):
1922         * m4/priv-set.m4 (gl_PRIV_SET):
1923         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1924         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1925         Add extern-inline.
1926
1927         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1928         * m4/sockets.m4 (gl_SOCKETS):
1929         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1930         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1931         environments where it's already guaranteed to work, so we needn't
1932         check for it at 'configure'-time.
1933
1934         tls-tests: omit unnecessary 'inline'
1935         * tests/test-tls.c (perhaps_yield): No longer inline.
1936         Simplicity and portability trump efficiency in test cases.
1937
1938         utimens-tests: avoid unnecessary 'inline'
1939         * modules/fdutimensat-tests (configure.ac):
1940         * modules/futimens-tests (configure.ac):
1941         * modules/utimens-tests (configure.ac):
1942         * modules/utimensat-tests (configure.ac):
1943         Remove AC_C_INLINE.
1944         * tests/test-utimens-common.h (ctime_compare):
1945         No longer inline.  Simplicity and portability trump efficiency here.
1946
1947         misc: don't limit commentary to inline functions
1948         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1949         * lib/xalloc-oversized.h, lib/xsize.h:
1950         Contrast macros to functions in general, not just to inline functions,
1951         when the commentary does not apply only to inline functions.
1952
1953 2012-09-20  Jim Meyering  <meyering@redhat.com>
1954
1955         non-recursive-gnulib-prefix-hack: new module
1956         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1957         the file that originated in Bison.
1958         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1959         largely copied from a snippet that resided in bison's configure.ac.
1960         * modules/non-recursive-gnulib-prefix-hack: New file.
1961         * MODULES.html.sh (Support for maintaining and releasing projects):
1962         Add it.
1963
1964 2012-09-18  Jim Meyering  <meyering@redhat.com>
1965
1966         maint.mk: generalize _gl_tight_scope for non-recursive make
1967         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1968         that *.h would describe additional .h files in the directory
1969         specified by $(_gl_TS_dir).  I.e., add this...
1970         (_gl_TS_other_headers): New variable.
1971
1972         maint.mk: exempt trailing blanks found in "binary" files
1973         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1974         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1975         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1976
1977 2012-09-17  Jim Meyering  <meyering@redhat.com>
1978
1979         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1980         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1981         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1982         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1983
1984 2012-09-17  Jim Meyering  <meyering@redhat.com>
1985
1986         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1987         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1988         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1989         It is not in the same category as "exit (0)" or "exit (1)", and
1990         besides, I know of no symbolic name for that 77.  Reported by
1991         Richard W.M. Jones in
1992         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1993
1994 2012-09-17  Jim Meyering  <meyering@redhat.com>
1995
1996         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1997         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1998         all uses of #define, not just those that start in column 1.
1999         Richard W.M. Jones reported a false positive in
2000         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2001
2002 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2003
2004         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2005         * lib/localcharset.c (locale_charset) [DARWIN7]:
2006         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2007         as these two values are incompatible.  Problem reported by Max Horn.
2008         For more discussion, please see
2009         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2010
2011         doc: document sticky-EOF issue
2012         * doc/posix-functions/fgetc.texi (fgetc):
2013         * doc/posix-functions/fgets.texi (fgets):
2014         * doc/posix-functions/fread.texi (fread):
2015         * doc/posix-functions/fscanf.texi (fscanf):
2016         * doc/posix-functions/getc.texi (getc):
2017         * doc/posix-functions/getchar.texi (getchar):
2018         * doc/posix-functions/scanf.texi (scanf):
2019         Mention that glibc and default Solaris do not conform to
2020         C99 and POSIX-2001 or later, with respect to how getchar
2021         etc. behave when feof reports nonzero.
2022
2023 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2024
2025         poll: fix poll(0, NULL, msec)
2026         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2027         but nfd is 0.  In that case poll should behave like select.
2028
2029 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2030             Paolo Bonzini <bonzini@gnu.org>
2031
2032         poll: fix for systems that can't recv() on a non-socket
2033         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2034         is readable.  In this case POLLHUP will not be supported.
2035         * doc/posix-functions/poll.texi: Document this.
2036
2037 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2038
2039         poll/select: document portability problems not fixed by Gnulib.
2040         * doc/posix-functions/poll.texi: poll does not work well on
2041         pipes under Windows.  It has the same limitations as select on
2042         BeOS.
2043         * doc/posix-functions/select.texi: select does not work well
2044         on pipes under Windows.
2045
2046 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2047
2048         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2049         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2050         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2051         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2052
2053 2012-09-06  Eric Blake  <eblake@redhat.com>
2054
2055         net_if: give more details about the bug being fixed
2056         * doc/posix-headers/net_if.texi: Add clarification.
2057
2058 2012-09-05  Eric Blake  <eblake@redhat.com>
2059
2060         net_if: new module
2061         * modules/net_if: New module, borrowing ideas from netinet_in.
2062         * m4/net_if_h.m4: New file.
2063         * lib/net_if.in.h: Likewise.
2064         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2065         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2066         * tests/test-net_if.c: Make function checks conditional.
2067         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2068
2069 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2070
2071         readutmp: fix non-portable UT_PID use
2072         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2073         Use `UT_PID (u) > 0' as absolute condition.
2074
2075 2012-09-04  Jim Meyering  <meyering@redhat.com>
2076
2077         fts: reduce two or more trailing spaces to just one, usually
2078         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2079         or more slashes, trim all but the final one.  But if a name consists
2080         solely of two slashes, don't modify it.  If it consists solely of
2081         three or more slashes, strip all but one.
2082
2083         This is part of the solution to a minor problem with rm:
2084         it would print a bogus ELOOP diagnostic when failing to remove
2085         the slash-decorated name of a symlink-to-directory:
2086
2087             $ mkdir d && ln -s d s && env rm -r s/
2088             rm: cannot remove 's': Too many levels of symbolic links
2089
2090         With the change below and a trivial don't-trim-trailing-slashes
2091         adjustment to remove.c, it does this:
2092
2093             $ env rm -r s/
2094             rm: cannot remove 's/': Not a directory
2095
2096         Improved by: Eric Blake
2097
2098         fts: when there is no risk of overlap, use memcpy, not memmove
2099         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2100
2101 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2102
2103         stdbool: be more compatible with mixed C/C++ compiles
2104         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2105         Define to bool, true, false, respectively, as GCC's builtin
2106         stdbool.h does.  Problem reported by Michael Goffioul in
2107         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2108
2109 2012-08-28  Jim Meyering  <meyering@redhat.com>
2110
2111         revert last change: it was not needed
2112         * tests/test-vc-list-files-git.sh: There's already a test for
2113         a working git, just below.
2114
2115 2012-08-28  Jim Meyering  <meyering@redhat.com>
2116
2117         tests: test-vc-list-files-git.sh: skip if git is not available
2118         * tests/test-vc-list-files-git.sh: Skip this test when git is
2119         not available.
2120
2121 2012-08-26  Bruno Haible  <bruno@clisp.org>
2122
2123         gnulib-tool: Remove no-op option --no-changelog.
2124         * gnulib-tool (func_usage): Don't mention --no-changelog.
2125         (do_changelog): Remove variable.
2126         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2127
2128 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2129
2130         doc: remove fdl-1.2.texi
2131         It is no longer used or maintained, and its use of @acronym
2132         is problematic.  See the thread containing
2133         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2134         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2135         * doc/old-licenses/fdl-1.2.texi: Remove.
2136
2137         execinfo: port to FreeBSD
2138         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2139         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2140         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2141         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2142
2143 2012-08-23  Jim Meyering  <meyering@redhat.com>
2144
2145         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2146         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2147         to placate gcc's -Wold-style-declaration.
2148
2149 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2150
2151         doc: do not use @acronym
2152         * doc/inet_ntoa.texi (inet_ntoa):
2153         * doc/parse-datetime.texi (Seconds since the Epoch)
2154         (Specifying time zone rules):
2155         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2156         Don't use @acronym.  Problem reported by John Darlington in
2157         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2158
2159 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2160
2161         stdnoreturn: port to newer GCCs
2162         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2163         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2164         Problem reported by Jim Meyering in
2165         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2166         Also, rename the 'test' function to a void a clash with the
2167         already-supplied 'main' function; this fixes a bug that incorrectly
2168         rejected GCC 4.7.1's <stdnoreturn.h>.
2169         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2170         Document GCC problem.
2171
2172 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2173
2174         pipe-filter: fix comment typo
2175         * lib/pipe-filter.h: Mention correct function.
2176
2177 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2178
2179         execinfo: new module
2180         This is for Emacs.  Currently, it provides a no-effect stub
2181         on all platforms where it does not already work.
2182         It already works on glibc-based systems, and on Solaris 11.
2183         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2184         New files.
2185         * doc/glibc-headers/execinfo.texi (execinfo.h):
2186         * MODULES.html.sh (Misc): Document it.
2187
2188 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2189
2190         extern-inline: support old GCC 'inline'
2191         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2192         if available.  This applies to GCC versions 2.7 through 4.2, or
2193         when newer GCC is using -fgnu89-inline.  The goal is to address
2194         some of the performance issues mentioned by Bruno Haible in
2195         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2196
2197 2012-08-20  Eric Blake  <eblake@redhat.com>
2198
2199         maint.mk: avoid redundant file name in message
2200         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2201         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2202         (sc_makefile_path_separator_check): Remove bogus $(ME).
2203
2204 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2205
2206         timer-time: fix link order when static linking on glibc
2207         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2208         _after_ -lrt so that it's significant.
2209
2210 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2211
2212         timespec: omit unnecessary AC_C_INLINE
2213         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2214
2215         stat-time: omit unnecessary AC_C_INLINE
2216         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2217         Do not require AC_C_INLINE.
2218
2219         ignore-value: omit unnecessary AC_C_INLINE
2220         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2221
2222         sys_select: avoid 'static inline'
2223         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2224
2225         mktime: avoid 'static inline'
2226         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2227         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2228
2229 2012-08-19  Bruno Haible  <bruno@clisp.org>
2230
2231         gnulib-tool: Improve coding style.
2232         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2233         func_emit_lib_Makefile_am.
2234         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2235
2236 2012-08-19  Bruno Haible  <bruno@clisp.org>
2237
2238         gnulib-tool: Fix indentation.
2239         * gnulib-tool (func_import): Fix indentation.
2240
2241 2012-08-19  Bruno Haible  <bruno@clisp.org>
2242
2243         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2244         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2245         on the list of removed files.
2246
2247 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2248
2249         test-parse-datetime: avoid glibc leap-second glitch
2250         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2251         with the 2012 rules.  Problem reported by Bruce Dubbs in
2252         <http://bugs.gnu.org/12206>.
2253
2254 2012-08-14  Bruno Haible  <bruno@clisp.org>
2255
2256         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2257         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2258         from argument.
2259         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2260
2261 2012-08-14  Eric Blake  <eblake@redhat.com>
2262
2263         ldexp: relax license
2264         * modules/ldexp (License): Trivial relax, since the module only
2265         provides a permissively licensed m4 file.
2266
2267 2012-08-13  Bruno Haible  <bruno@clisp.org>
2268
2269         gnulib-tool: Fix persistence of --witness-c-macro option.
2270         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2271         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2272
2273 2012-08-11  Eric Blake  <eblake@redhat.com>
2274
2275         count-leading-zeros: use a lookup table on non-gcc compilers
2276         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2277         alternate implementation, suggested by Jim Meyering.
2278
2279 2012-08-10  Eric Blake  <eblake@redhat.com>
2280
2281         count-leading-zeros: new module
2282         * modules/count-leading-zeros: New module.
2283         * m4/count-leading-zeros.m4: New file.
2284         * lib/count-leading-zeros.h: Likewise.
2285         * modules/count-leading-zeros-tests: New test.
2286         * tests/test-count-leading-zeros.c: New file.
2287         * MODULES.html.sh (Integer arithmetic functions): Document it.
2288
2289 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2290             Jim Meyering  <meyering@redhat.com>
2291
2292         maintainer-makefile: Fix syntax error with dash.
2293         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2294         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2295
2296 2012-08-05  Jim Meyering  <meyering@redhat.com>
2297
2298         extern-inline: also ignore -Wmissing-declarations
2299         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2300         required with gcc-4.8.0-to-be.
2301
2302         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2303         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2304         for /error ?([^,]*)/.  This avoids false-positives for strings like
2305         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2306
2307 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2308
2309         gnumakefile: better interaction with Automake-NG
2310         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2311         Automake-NG always contain a definition of VPATH, even in non-VPATH
2312         builds (its value being simply '.' in that case).  So, in the
2313         'clean-GNUmakefile' rule, to determine whether running under a
2314         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2315         '$(VPATH)' expands to the empty string.
2316
2317 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2318
2319         base64: Use extern C scope in header file, for C++.
2320         * lib/base64.h: Add C++ namespace protection.
2321
2322 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2323
2324         stat-time, timespec, u64: support naive out-of-dir builds
2325         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2326         Use '#include "foo.h"', not '#include <foo.h>', when including
2327         one's own interface.  This works better when configuring with
2328         out-of-directory builds, since packages need not add an
2329         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2330
2331 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2332
2333         utimens: use extern-inline
2334         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2335         * lib/utimens.h: Add copyright notice, since this is now large enough
2336         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2337         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2338         * modules/utimens (Depends-on): Add extern-inline.
2339
2340         u64: use extern-inline
2341         * lib/u64.c: New file.
2342         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2343         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2344         * modules/u64 (Files): Add lib/u64.c.
2345         (Depends-on): Add extern-inline.
2346         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2347         does that now.
2348         (lib_SOURCES): Add u64.c.
2349
2350         timespec: use extern-inline
2351         * lib/timespec.c: New file.
2352         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2353         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2354         * modules/timespec (Files): Add lib/timespec.c.
2355         (Depends-on): Add extern-inline.
2356         (lib_SOURCES): Add timespec.c.
2357
2358         stat-time: use extern-inline
2359         * lib/stat-time.c: New file.
2360         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2361         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2362         * modules/stat-time (Files): Add lib/stat-time.c.
2363         (Depends-on): Add extern-inline.
2364         (lib_SOURCES): Add stat-time.c.
2365
2366         extern-inline: new module
2367         * modules/extern-inline, m4/extern-inline.m4: New files.
2368         This is for better support of 'extern inline' a la ISO C99,
2369         with a portable alternative on compilers that do not support
2370         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2371         of the Emacs executable, when compiled with debugging disabled,
2372         which is a typical way that Emacs is built while developing.
2373
2374 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2375
2376         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2377         * build-aux/do-release-commit-and-tag: Move variable definitions
2378         together.
2379         ($branch): Instead of defaulting to "master", default to the current
2380         branch (as gnu-web-doc-update does).
2381         (help): Display the current values of the option arguments.
2382         * top/maint.mk (release-commit): New.
2383         * top/README-release: Simplify the corresponding step.
2384
2385 2012-07-30  Eric Blake  <eblake@redhat.com>
2386
2387         passfd: fix comment on recvfd
2388         * lib/passfd.c (recvfd): Fix comment.
2389         Reported by Jann Horn <jannhorn@googlemail.com>.
2390
2391 2012-07-30  Jim Meyering  <meyering@redhat.com>
2392
2393         maint.mk: avoid a sub-shell
2394         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2395
2396 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2397
2398         maint.mk: use silent-rules support from Automake
2399         * top/maint.mk (news-check, vc-diff-check, announcement)
2400         (no-submodule-changes, alpha beta stable, release-prep)
2401         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2402
2403 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2404
2405         maint.mk: provide a web-manual-update target
2406         * top/maint.mk: here.
2407         * top/README-release: Use it to simplify the web manual update step.
2408
2409 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2410
2411         README-release: shorten the circuit to post a news
2412         * top/README-release: Point directly to the news submission form.
2413
2414 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2415
2416         gnu-web-doc-update: fix --help
2417         * build-aux/gnu-web-doc-update: The information "top level" was written
2418         twice.
2419
2420 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2421
2422         maint.mk: absolute VPATH issue
2423         * top/maint.mk (release-prep): Help Git find .git/.
2424         From Jim Meyering.
2425
2426 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2427
2428         gitlog-to-changelog: fix previous change
2429         * build-aux/gitlog-to-changelog: Fix condition.
2430         Add missing ";".
2431
2432 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2433
2434         gitlog-to-changelog: don't expect .git to be in $srcdir
2435         Reported by Bruno Haible.
2436         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2437         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2438         Use it.
2439
2440 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2441
2442         maint.mk: absolute VPATH build fix
2443         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2444         $(srcdir) is not a parent of $(builddir).
2445
2446 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2447
2448         clean-temp: Fix memory leak.
2449         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2450         'files' members of tmpdir.
2451
2452 2012-07-27  Jim Meyering  <meyering@redhat.com>
2453
2454         maint.mk: new rule: refresh-gnulib-patches
2455         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2456         Use this rule to refresh them.
2457         * top/maint.mk (refresh-gnulib-patches): New rule.
2458
2459 2012-07-24  Bruno Haible  <bruno@clisp.org>
2460
2461         gnulib-tool: Fix handling of inctests variable.
2462         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2463         Reported by Nick Bowler <nbowler@elliptictech.com>.
2464
2465 2012-07-22  Bruno Haible  <bruno@clisp.org>
2466
2467         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2468         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2469         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2470         Remove exemption for getpass.h.
2471         Suggested by Eric Blake.
2472
2473 2012-07-20  Eric Blake  <eblake@redhat.com>
2474
2475         verify: document conflict with -Wnested-externs
2476         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2477
2478         maint.mk: forbid exit(-1)
2479         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2480
2481 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2482
2483         fsusage: port back to Solaris
2484         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2485         error (fsd not declared) on Solaris 10.  Reported privately by
2486         Andrew Borodin.
2487
2488 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2489
2490         gnu-web-doc-update: fix error messages
2491         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2492
2493         gnu-web-doc-update: check the requirements.
2494         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2495         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2496         * build-aux/bootstrap (find_tool): Comment change.
2497
2498 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2499
2500         maint.mk: minor simplication.
2501         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2502         for default values.
2503
2504 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2505
2506         gitlog-to-changelog: VPATH build issues
2507         If builddir is not a subdirectory of srcdir, running git from it will
2508         fail.
2509         * build-aux/gitlog-to-changelog (--srcdir): New option.
2510
2511 2012-07-15  Bruno Haible  <bruno@clisp.org>
2512
2513         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2514         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2515         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2516         Remove exemption for fpending.h.
2517         Suggested by Eric Blake.
2518
2519 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2520
2521         pthread_sigmask: fix bug on FreeBSD 9
2522         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2523         Include string.h.
2524         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2525         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2526         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2527         but pthread_sigmask (1729, NULL, NULL) returns zero.
2528         See <http://bugs.gnu.org/11884>.
2529         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2530         by inspecting whether the main call changed the old mask.
2531
2532 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2533
2534         README-release: make it more legible
2535         * top/README-release: Improve typography slightly.
2536
2537 2012-07-15  Jim Meyering  <meyering@redhat.com>
2538
2539         maint: require that each sc_... command start with "@"
2540         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2541         "make sc_maint" helps us avoid this nit.
2542
2543 2012-07-15  Jim Meyering  <meyering@redhat.com>
2544
2545         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2546         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2547
2548 2012-07-13  Eric Blake  <eblake@redhat.com>
2549
2550         maint.mk: new syntax check for HAVE_DECL checks
2551         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2552         * cfg.mk
2553         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2554         Exempt some false positives.
2555         Based on a report by Karel Zak.
2556
2557         argp: make HAVE_DECL usage consistent
2558         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2559         macros, not whether they are defined.
2560         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2561         convention with other declaration checks.
2562         Reported by Karel Zak, with suggestions from Paul Eggert.
2563
2564         stat-time: relax license to LGPLv2+
2565         * modules/stat-time (License): Relax, with consent of all authors.
2566
2567         strndup: fix m4 usage error
2568         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2569         defined, to either 0 or 1.
2570         Reported by Karel Zak.
2571
2572 2012-07-11  Jim Meyering  <meyering@redhat.com>
2573
2574         maint: enable the sc_avoid_if_before_free syntax-check rule
2575         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2576         (if_before_free_offenders_): Define.
2577         (if_before_free_basename_re_): Define.
2578         Exempt current files with useless if-before-free.
2579
2580 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2581
2582         gettext: do not assume '#define ... defined ...' behavior
2583         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2584         Do not use '#define FOO ... defined BAR ...', as the C standard says
2585         it's not portable to expect that this works after macro expansion.
2586         Problem reported for gzip by Steven M. Schweda in
2587         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2588
2589 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2590
2591         getloadavg: clean out old Emacs and Autoconf cruft
2592         See Glenn Morris in <http://bugs.gnu.org/11905>.
2593         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2594         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2595         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2596         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2597
2598 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2599
2600         bootstrap: let warn be like tests/init.sh's warn_
2601         Reported by Jim Meyering.
2602         * build-aux/bootstrap (warn): Remove, replaced by...
2603         (warnf_, warn_): these.
2604         Adjust callers.
2605         Shorten messages that no longer fit in 80 columns.
2606
2607 2012-07-09  Bruno Haible  <bruno@clisp.org>
2608
2609         getopt: Simplify after Emacs changed.
2610         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2611         (gl_GETOPT_IFELSE): Remove macro.
2612
2613 2012-07-09  Jim Meyering  <meyering@redhat.com>
2614
2615         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2616         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2617
2618         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2619         Bugs in both of those conspired to make the
2620         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2621         _sc_search_regexp's handling of non-empty $in_files would filter
2622         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2623         choice of in_files value meant there would be no match in most
2624         projects, due to the presence of two or more Makefile.in files.
2625         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2626         Fix a bug in how a non-empty $$in_files was processed:
2627         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2628         in spite of the name, it's a regexp, not a list of file names.
2629
2630 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2631
2632         getloadavg, getopt: fix commentary re configure.in
2633         Autoconf is deprecating the name 'configure.in', so change it to
2634         to the new name 'configure.ac' in a couple of places.
2635         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2636         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2637         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2638         Emacs has renamed it to configure.ac, and it no longer refers
2639         to these macros anyway.
2640
2641         timespec: mark functions with const attributes
2642         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2643         Mark with _GL_ATTRIBUTE_CONST.
2644
2645 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2646
2647         canonicalize[-lgpl]: handle "guessing" values when cross-building
2648         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2649         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2650         matches "*yes" instead of just "yes".  Regression introduced in commit
2651         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2652
2653 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2654             Bruno Haible  <bruno@clisp.org>
2655
2656         canonicalize: make the right guess when cross-compiling to GNU
2657         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2658         determine whether cross-compiling to glibc systems, so as to
2659         include GNU/Hurd.
2660
2661 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2662
2663         timespec-sub: avoid duplicate include
2664         * lib/timespec-sub.c: Do not include <config.h> twice.
2665         Reported by Juanma Barranquero.
2666
2667 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2668
2669         bootstrap: use a more consistent error reporting scheme
2670         * build-aux/bootstrap (warn, die): New.
2671         Use them.
2672
2673 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2674
2675         sys_time: allow too-wide tv_sec
2676         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2677         timeval even if tv_sec is wider than time_t.  This allows
2678         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2679         as without this patch gnulib replaces struct timeval
2680         and OpenBSD futimes therefore has a type mismatch.
2681         * doc/posix-headers/sys_time.texi: Mention this.
2682
2683         pthread: check for both pthread_create and pthread_join
2684         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2685         alter the check so that it tests for both pthread_create and
2686         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2687         Suggested by Bruno Haible and Richard Yao in
2688         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2689
2690         parse-datetime: doc tuneup
2691         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2692         spacing issues.
2693
2694 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2695
2696         do-release-commit-and-tag: fix the previous commit
2697         * build-aux/do-release-commit-and-tag: Actually the test was right,
2698         but the comment and the error message were misleading.
2699         Fix comment, and improve error message.
2700         Perform check first, so that NEWS is not modified uselessly.
2701
2702         do-release-commit-and-tag: fix typo
2703         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2704         _not_ start with a stub.
2705
2706 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2707
2708         pthread: check for pthread_create, not pthread_join
2709         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2710         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2711         pthread_join in libc.  I hope this removes the need for all the
2712         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2713         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2714
2715 2012-07-04  Jim Meyering  <meyering@redhat.com>
2716
2717         parse-datetime: fix failure to diagnose invalid input
2718         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2719         rather than diagnosing the invalid input.  Now it reports this:
2720         date: invalid date '\260'
2721         * lib/parse-datetime.y (to_uchar): Define.
2722         (yylex): Don't sign-extend "other" bytes.
2723         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2724         Thanks to Bruno Haible for the patch to this file.
2725         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2726         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2727
2728 2012-07-03  Jim Meyering  <meyering@redhat.com>
2729
2730         bootstrap: do not require now-removed build-aux/missing
2731         Now that build-aux/missing is, er, missing, bootstrap would
2732         silently fail.
2733         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2734         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2735         no longer part of gnulib.
2736         Diagnose the failure.
2737
2738 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2739
2740         alloca: add support for HP NonStop TNS/E native
2741         * lib/alloca.in.h (alloca): Support the new host.
2742         From a suggestion by Joachim Schmitz in
2743         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2744
2745 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2746
2747         fsusage: remove code not needed on non GNU/Linux systems.
2748
2749         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2750         Don't include headers no longer needed in this case.
2751         * lib/fsusage.c [STAT_STATVFS &&
2752         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2753         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2754
2755 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2756
2757         fsusage: include files needed for glibc 2.6 fallback
2758         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2759         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2760         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2761         Problem reported by Ludovic Courtès in
2762         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2763
2764         fsusage: avoid needless check on GNU/Linux
2765         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2766         on GNU/Linux systems, since it can't possibly work.
2767
2768 2012-07-01  Bruno Haible  <bruno@clisp.org>
2769
2770         log: Fix an autoconf >= 2.64 warning.
2771         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2772         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2773
2774 2012-06-28  Bruno Haible  <bruno@clisp.org>
2775
2776         log10f: Fix possible configuration problem.
2777         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2778         $LOGF_LIBM.
2779         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2780
2781 2012-06-28  Bruno Haible  <bruno@clisp.org>
2782
2783         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2784         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2785         not gl_cv_func_unlink_works.
2786         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2787
2788 2012-06-27  Eric Blake  <eblake@redhat.com>
2789
2790         config: drop scripts that automake says are not independent
2791         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2792         * build-aux/elisp-comp: Delete.
2793         * build-aux/missing: Likewise.
2794         * build-aux/ylwrap: Likewise.
2795         * modules/elisp-comp: Likewise.
2796         * MODULES.html.sh: Drop mention of elisp-comp.
2797         * NEWS: Mention this.
2798
2799 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2800
2801         root-uid: new module
2802         This is for portability to Tandem's NonStop Kernel.
2803         * lib/root-uid.h, modules/root-uid: New files.
2804         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2805         * lib/write-any-file.c, tests/test-sethostname2.c:
2806         Include "root-uid.h".
2807         * lib/euidaccess.c (euidaccess):
2808         * lib/pt_chown.c (main):
2809         * lib/unlinkdir.c (cannot_unlink_dir):
2810         * lib/write-any-file.c (can_write_any_file):
2811         * m4/mknod.m4 (gl_FUNC_MKNOD):
2812         * tests/test-sethostname2.c (geteuid, main):
2813         Don't assume ROOT_UID == 0.
2814         * modules/euidaccess (Depends-on):
2815         * modules/pt_chown (Depends-on):
2816         * modules/sethostname-tests (Depends-on):
2817         * modules/unlinkdir (Depends-on):
2818         * modules/write-any-file (Depends-on):
2819         Add root-uid.
2820
2821         regex: use locale-independent comparison for codeset name
2822         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2823         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2824         for codeset name.
2825         * lib/regex_internal.h: Do not include <strings.h>, since we
2826         no longer use strcasecmp.
2827         * modules/regex (Depends-on): Remove strcase.
2828
2829 2012-06-23  Bruno Haible  <bruno@clisp.org>
2830
2831         getopt-posix: No longer guarantee that option processing is resettable.
2832         * doc/posix-functions/getopt.texi: Drop description of problem with
2833         internal state. Fix info about mingw and msvc9.
2834         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2835         option processing by getopt(). Run three test programs instead of one.
2836         Simplify cross-compilation guess.
2837         * NEWS: Mention the change.
2838         Reported by Rich Felker <dalias@aerifal.cx>.
2839
2840 2012-06-26  Bruno Haible  <bruno@clisp.org>
2841
2842         argp, regex: Ensure strcasecmp gets declared.
2843         * lib/argp-help.c: Include <strings.h>.
2844         * lib/regex_internal.h: Likewise.
2845         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2846
2847 2012-06-24  Bruno Haible  <bruno@clisp.org>
2848
2849         ptsname_r: Make it consistent with ptsname on AIX.
2850         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2851         implementation as for OSF/1.
2852         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2853         a pty master.
2854
2855         ptsname_r: Make it consistent with ptsname on OSF/1.
2856         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2857         OSF/1.
2858
2859 2012-06-24  Bruno Haible  <bruno@clisp.org>
2860
2861         ttyname_r: Fix result on OSF/1, Solaris.
2862         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2863
2864 2012-06-24  Bruno Haible  <bruno@clisp.org>
2865
2866         ptsname_r: Add support for Solaris.
2867         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2868         Solaris.
2869
2870         ptsname_r: Fix test failure on native Windows.
2871         * modules/ptsname_r (Depends-on): Add isatty.
2872
2873         ptsname_r: Fix test failures on IRIX, Solaris.
2874         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2875         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2876         accordingly.
2877         * lib/ptsname_r.c: Include <fcntl.h>.
2878         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2879         set errno if fd is invalid.
2880         * tests/test-isatty.c (main): Update comments.
2881
2882 2012-06-24  Bruno Haible  <bruno@clisp.org>
2883
2884         ptsname test: Extend test.
2885         * tests/test-ptsname.c: Include <errno.h>.
2886         (main): Test behaviour with invalid file descriptor.
2887
2888 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2889
2890         time: fix obsolete comment
2891         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2892         reference to HAVE_STRUCT_TIMESPEC in comment.
2893
2894 2012-06-23  Bruno Haible  <bruno@clisp.org>
2895
2896         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2897         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2898         does not handle abbreviated long options with equivalent
2899         disambiguations, set gl_replace_getopt to yes.
2900         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2901
2902 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2903
2904         time_r: fix typo that always overrode localtime_r decl
2905         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2906         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2907         not in a standard include.
2908
2909 2012-06-22  Bruno Haible  <bruno@clisp.org>
2910
2911         Write "Mac OS X" instead of "MacOS X".
2912         * README: Write "Mac OS X" instead of "MacOS X".
2913         * build-aux/bootstrap: Likewise.
2914         * build-aux/install-reloc: Likewise.
2915         * lib/acl-internal.h: Likewise.
2916         * lib/acl_entries.c: Likewise.
2917         * lib/argp-ba.c: Likewise.
2918         * lib/argp-pv.c: Likewise.
2919         * lib/config.charset: Likewise.
2920         * lib/copy-acl.c: Likewise.
2921         * lib/csharpexec.c: Likewise.
2922         * lib/euidaccess.c: Likewise.
2923         * lib/fbufmode.c: Likewise.
2924         * lib/fflush.c: Likewise.
2925         * lib/file-has-acl.c: Likewise.
2926         * lib/filemode.h: Likewise.
2927         * lib/fpurge.c: Likewise.
2928         * lib/freadable.c: Likewise.
2929         * lib/freadahead.c: Likewise.
2930         * lib/freading.c: Likewise.
2931         * lib/freadptr.c: Likewise.
2932         * lib/freadseek.c: Likewise.
2933         * lib/fseeko.c: Likewise.
2934         * lib/fseterr.c: Likewise.
2935         * lib/fsusage.c: Likewise.
2936         * lib/fwritable.c: Likewise.
2937         * lib/fwriting.c: Likewise.
2938         * lib/get-rusage-as.c: Likewise.
2939         * lib/get-rusage-data.c: Likewise.
2940         * lib/getdomainname.c: Likewise.
2941         * lib/idpriv-drop.c: Likewise.
2942         * lib/idpriv-droptemp.c: Likewise.
2943         * lib/localcharset.c: Likewise.
2944         * lib/locale.in.h: Likewise.
2945         * lib/localename.c: Likewise.
2946         * lib/mbsrtowcs-state.c: Likewise.
2947         * lib/nproc.c: Likewise.
2948         * lib/passfd.c: Likewise.
2949         * lib/posix_openpt.c: Likewise.
2950         * lib/printf-parse.c: Likewise.
2951         * lib/progreloc.c: Likewise.
2952         * lib/safe-read.h: Likewise.
2953         * lib/safe-write.h: Likewise.
2954         * lib/sched.in.h: Likewise.
2955         * lib/set-mode-acl.c: Likewise.
2956         * lib/signal.in.h: Likewise.
2957         * lib/stdint.in.h: Likewise.
2958         * lib/stdio-impl.h: Likewise.
2959         * lib/stdlib.in.h: Likewise.
2960         * lib/strtod.c: Likewise.
2961         * lib/sys_select.in.h: Likewise.
2962         * lib/tcgetsid.c: Likewise.
2963         * lib/unistd.in.h: Likewise.
2964         * lib/unlockpt.c: Likewise.
2965         * lib/vasnprintf.c: Likewise.
2966         * lib/vma-iter.c: Likewise.
2967         * lib/wcsrtombs-state.c: Likewise.
2968         * m4/acl.m4: Likewise.
2969         * m4/acosl.m4: Likewise.
2970         * m4/asinl.m4: Likewise.
2971         * m4/atanl.m4: Likewise.
2972         * m4/c-stack.m4: Likewise.
2973         * m4/cosl.m4: Likewise.
2974         * m4/expl.m4: Likewise.
2975         * m4/extensions.m4: Likewise.
2976         * m4/fdatasync.m4: Likewise.
2977         * m4/fmal.m4: Likewise.
2978         * m4/frexp.m4: Likewise.
2979         * m4/frexpf.m4: Likewise.
2980         * m4/frexpl.m4: Likewise.
2981         * m4/fsusage.m4: Likewise.
2982         * m4/getdomainname.m4: Likewise.
2983         * m4/getloadavg.m4: Likewise.
2984         * m4/getopt.m4: Likewise.
2985         * m4/gettext.m4: Likewise.
2986         * m4/gnulib-common.m4: Likewise.
2987         * m4/intdiv0.m4: Likewise.
2988         * m4/intlmacosx.m4: Likewise.
2989         * m4/largefile.m4: Likewise.
2990         * m4/ldexpl.m4: Likewise.
2991         * m4/link-follow.m4: Likewise.
2992         * m4/locale-ar.m4: Likewise.
2993         * m4/locale-fr.m4: Likewise.
2994         * m4/locale-ja.m4: Likewise.
2995         * m4/locale-tr.m4: Likewise.
2996         * m4/locale-zh.m4: Likewise.
2997         * m4/locale_h.m4: Likewise.
2998         * m4/lock.m4: Likewise.
2999         * m4/logl.m4: Likewise.
3000         * m4/mathfunc.m4: Likewise.
3001         * m4/minus-zero.m4: Likewise.
3002         * m4/mktime.m4: Likewise.
3003         * m4/mmap-anon.m4: Likewise.
3004         * m4/multiarch.m4: Likewise.
3005         * m4/nanosleep.m4: Likewise.
3006         * m4/nocrash.m4: Likewise.
3007         * m4/poll.m4: Likewise.
3008         * m4/printf-frexpl.m4: Likewise.
3009         * m4/printf.m4: Likewise.
3010         * m4/signbit.m4: Likewise.
3011         * m4/sinl.m4: Likewise.
3012         * m4/sqrtl.m4: Likewise.
3013         * m4/strerror_r.m4: Likewise.
3014         * m4/tanl.m4: Likewise.
3015         * m4/threadlib.m4: Likewise.
3016         * m4/ttyname_r.m4: Likewise.
3017         * m4/unlink.m4: Likewise.
3018         * m4/visibility.m4: Likewise.
3019         * m4/wcwidth.m4: Likewise.
3020         * tests/minus-zero.h: Likewise.
3021         * tests/test-alloca-opt.c: Likewise.
3022         * tests/test-copy-acl.sh: Likewise.
3023         * tests/test-copy-file.sh: Likewise.
3024         * tests/test-fdatasync.c: Likewise.
3025         * tests/test-file-has-acl.sh: Likewise.
3026         * tests/test-flock.c: Likewise.
3027         * tests/test-fsync.c: Likewise.
3028         * tests/test-localename.c: Likewise.
3029         * tests/test-malloca.c: Likewise.
3030         * tests/test-nonblocking-pipe.h: Likewise.
3031         * tests/test-nonblocking-socket.h: Likewise.
3032         * tests/test-openpty.c: Likewise.
3033         * tests/test-posix_openpt.c: Likewise.
3034         * tests/test-ptsname.c: Likewise.
3035         * tests/test-ptsname_r.c: Likewise.
3036         * tests/test-sameacls.c: Likewise.
3037         * tests/test-select.h: Likewise.
3038         * tests/test-set-mode-acl.sh: Likewise.
3039         * tests/test-snprintf-posix.h: Likewise.
3040         * tests/test-sprintf-posix.h: Likewise.
3041         * tests/test-strtod.c: Likewise.
3042         * tests/test-time.c: Likewise.
3043         * tests/test-vasnprintf-posix.c: Likewise.
3044         * tests/test-vasprintf-posix.c: Likewise.
3045         * doc/acl-resources.txt: Likewise.
3046         * doc/**/*.texi: Likewise.
3047         Reported by Max Horn <max@quendi.de>.
3048
3049 2012-06-22  Bruno Haible  <bruno@clisp.org>
3050
3051         grantpt: Relax requirement regarding invalid file descriptors.
3052         * lib/grantpt.c: Don't include <fcntl.h>.
3053         (grantpt): Don't verify the validity of the file descriptor.
3054         * modules/grantpt (Depends-on): Remove fcntl-h.
3055         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3056         file descriptors.
3057         * doc/posix-functions/grantpt.texi: Document more platforms on which
3058         grantpt succeeds for invalid file descriptors.
3059         Reported by Rich Felker <dalias@aerifal.cx>.
3060
3061 2012-06-22  Bruno Haible  <bruno@clisp.org>
3062
3063         fbufmode test: Don't test unportable behaviour.
3064         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3065         (main): Invoke it three times.
3066         Reported by Szabolcs Nagy <nsz@port70.net>
3067         and Rich Felker <dalias@aerifal.cx>.
3068
3069 2012-06-21  Bruno Haible  <bruno@clisp.org>
3070
3071         gnulib-tool: Refactor inctests variable.
3072         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3073         (func_modules_transitive_closure,
3074         func_modules_transitive_closure_separately,
3075         func_import, func_create_testdir): Update.
3076
3077         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3078         * gnulib-tool: Accept option --without-tests.
3079         (func_usage): Document --without-tests option. Rearrange.
3080         (inctests): Normalize according to the mode.
3081         * NEWS: Mention the change.
3082         Suggested by Simon Josefsson.
3083
3084 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3085
3086         parse-duration test: Avoid spurious output.
3087         * tests/test-parse-duration.sh: Reindent with leading tabs.
3088
3089 2012-06-21  Jim Meyering  <meyering@redhat.com>
3090
3091         maint: disable the strncpy prohibition
3092         * cfg.mk: Do not prohibit strncpy here.
3093
3094 2012-06-21  Bruno Haible  <bruno@clisp.org>
3095
3096         nonblocking: Avoid compilation error on mingw64.
3097         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3098         fscanf.
3099         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3100         * modules/vfscanf (configure.ac): Likewise.
3101         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3102         definition only if stdio.h has prepared it.
3103         Reported by Daniel P. Berrange <berrange@redhat.com>.
3104
3105 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3106
3107         gnulib-tool: Use readlink if it is available.
3108         * gnulib-tool (func_readlink): Choose function more appropriately.
3109
3110 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3111
3112         posixtm-tests: port to buggy compiler
3113         Problem reported by Simon Josefsson in
3114         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3115         * modules/posixtm-tests (Depends-on): Add stdint.
3116         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3117         Now of type int_least64_t, not int64_t, both because that's
3118         what INT64_C returns and because int_least64_t works even
3119         on 72-bit hosts.
3120         (T): Use INT64_C on constants outside the traditional int range,
3121         to work around compiler bug noted by Simon.
3122
3123         mktime: fix integer overflow in 'configure'-time test
3124         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3125         after integer overflow.  Problem reported by Rich Felker in
3126         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3127         Also, don't look for further instances of a bug if we've already
3128         found one instance; this helps 'configure' run faster.
3129
3130 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3131
3132         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3133         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3134         GetVersionEx correctly.
3135         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3136
3137 2012-06-20  Bruno Haible  <bruno@clisp.org>
3138
3139         fdopen: Allow implementations that don't reject invalid fd arguments.
3140         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3141         succeeds.
3142         Reported by Rich Felker <dalias@aerifal.cx>.
3143
3144 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3145
3146         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3147         bring in LIBINTL.
3148
3149 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3150
3151         init.sh: do not rely on autoupated PWD
3152         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3153         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3154         Although Nelson's bug was not necessarily fixed by this patch,
3155         it seems wise to make the change for safety.
3156         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3157         automagically after 'cd'; this is not reliable on older shells.
3158         (setup_): Fail if we cannot cd to temporary directory.
3159
3160 2012-06-19  Bruno Haible  <bruno@clisp.org>
3161
3162         stat, fstat: Avoid warnings on mingw64.
3163         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3164         redefining.
3165         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3166         Reported by Daniel P. Berrange <berrange@redhat.com>.
3167
3168 2012-06-19  Bruno Haible  <bruno@clisp.org>
3169
3170         stdioext: Add support for musl libc.
3171
3172         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3173         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3174
3175         * m4/fseterr.m4: New file.
3176         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3177         function exists.
3178         * modules/fseterr (Files): Add m4/fseterr.m4.
3179         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3180         __fseterr does not exist.
3181         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3182
3183         * lib/freadable.h: Update comment.
3184
3185         * lib/fwritable.h: Update comment.
3186
3187         * lib/freading.h: Update comment.
3188
3189         * lib/fwriting.h: Update comment.
3190
3191         * m4/freadahead.m4: New file.
3192         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3193         that function exists.
3194         * modules/freadahead (Files): Add m4/freadahead.m4.
3195         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3196         __freadahead does not exist.
3197         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3198
3199         * m4/freadptr.m4: New file.
3200         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3201         function exists.
3202         * modules/freadptr (Files): Add m4/freadptr.m4.
3203         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3204         __freadptr does not exist.
3205         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3206
3207         * m4/freadseek.m4: New file.
3208         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3209         exists.
3210         * modules/freadseek (Files): Add m4/freadseek.m4.
3211         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3212
3213         * lib/fpurge.c (fpurge): Update comment.
3214
3215         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3216
3217 2012-06-19  Bruno Haible  <bruno@clisp.org>
3218
3219         *printf-posix: Put more info into config.log.
3220         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3221         exit code into config.log.
3222
3223 2012-06-19  Bruno Haible  <bruno@clisp.org>
3224
3225         getopt-gnu: Fix exit code overflow in autoconf test.
3226         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3227         to keep them below < 128.
3228
3229 2012-06-17  Jim Meyering  <meyering@redhat.com>
3230
3231         maint.mk: fix typo in code to derive GPG key at release time
3232         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3233
3234 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3235
3236         regex: avoid warning when pointers are not long
3237         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3238         and uintptr_t, not long, for portability to hosts where pointers and
3239         long have different sizes.  Issue noted by Daniel P. Berrange in
3240         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3241         and fix suggested by Bruno Haible in
3242         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3243
3244 2012-06-17  Bruno Haible  <bruno@clisp.org>
3245
3246         dummy: Relicense into the public domain.
3247         * modules/dummy (License): Set to "public domain".
3248         Suggested by Reuben Thomas.
3249
3250 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3251
3252         announce-gen: VPATH issues
3253         * build-aux/announce-gen (--srcdir): New option, used to trim the
3254         $srcdir part of the path from $builddir to NEWS.
3255         * top/maint.mk (announcement): Adjust.
3256
3257 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3258
3259         gnu-web-doc-update: VPATH builds
3260         * build-aux/gnu-web-doc-update (--builddir): New option.
3261         Revamp the handling of options.
3262         Prefer $(...) to `...`.
3263         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3264         the template, and it is GNU mktemp specific.
3265         Prefer set -e to long series of &&.
3266         Restore the initial git branch, not "master".
3267         Properly initialize submodules (don't rely only on bootstrap).
3268         Do not reconfigure blindly, use config.status.
3269         * top/README-release: Update instructions for gnu-web-doc-update.
3270
3271 2012-06-11  Jim Meyering  <meyering@redhat.com>
3272
3273         maint.mk: revert most of the previous change re "all these"
3274         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3275         For rationale, see the discussion at
3276         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3277
3278 2012-06-10  Karl Berry  <karl@gnu.org>
3279
3280         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3281
3282         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3283
3284 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3285
3286         parse-duration: Relicense under LGPLv2+.
3287         * modules/parse-duration (License): Change to LGPLv2+.
3288
3289 2012-06-10  Jim Meyering  <meyering@redhat.com>
3290
3291         maint.mk: prohibit common grammar error: "all these"
3292         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3293         the list of prohibited word sequences.  It should be "all of these".
3294         * lib/tempname.c (__gen_tempname): Fix one of them.
3295
3296 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3297
3298         do-release-commit-and-tag: support VPATH builds
3299         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3300         (noteworthy): Defined earlier to factor its value.
3301         (noteworthy_stub): New.
3302         Use it to factor.
3303         (help_version): Split into...
3304         (help, version): these.
3305         Adjust the option processing part.
3306         Support "--option=value" in addition to "--option value".
3307         (builddir): New.
3308         (--builddir): New option.
3309         * top/README-release: Document this.
3310         Reword slightly so that the reader cannot understand that he
3311         has to do these steps before calling do-release-commit-and-tag.
3312
3313 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3314
3315         readme-release: also require announce-gen and maintainer-makefile
3316         * modules/readme-release (Depends-on): here.
3317         * modules/announce-gen, modules/do-release-commit-and-tag,
3318         modules/gnu-web-doc-update, modules/maintainer-makefile
3319         (Description): Point to readme-release.
3320
3321 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3322
3323         maint.mk: fix VPATH issues.
3324         * top/maint.mk (news-check): GNU Make understand $< very well.
3325         (release-prep): NEWS is in $(srcdir).
3326
3327 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3328
3329         readme-release: require the promoted modules.
3330         * modules/readme-release (Depends-on): Add
3331         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3332         in this text.
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_ESTREAMS): Use a different indicator
3339         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3340         EINPROGRESS.
3341         * lib/strerror-override.h (strerror_override): Test it.
3342         * lib/strerror-override.c (strerror_override): Likewise.
3343         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3344
3345 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3346             Bruno Haible  <bruno@clisp.org>
3347
3348         error, strerror-override: Support mingw64 from Fedora 17.
3349         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3350         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3351         * lib/strerror-override.h (strerror_override): Test it.
3352         * lib/strerror-override.c (strerror_override): Likewise.
3353
3354 2012-06-03  Bruno Haible  <bruno@clisp.org>
3355
3356         error, strerror-override: Support new errno values from POSIX:2008.
3357         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3358         ENOTRECOVERABLE.
3359         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3360         platforms.
3361         * lib/strerror-override.c (strerror_override): Conditionalize the
3362         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3363         * lib/strerror-override.h (strerror_override): Declare also if
3364         GNULIB_defined_EOWNERDEAD is defined.
3365         * tests/test-errno.c (e130, e131): New variables.
3366         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3367         ENOTRECOVERABLE.
3368         Reported by Paolo Bonzini.
3369
3370 2012-05-31  Jim Meyering  <meyering@redhat.com>
3371
3372         savewd: add missing dependency on sys_wait module
3373         * modules/savewd (Depends-on): Add sys_wait, needed at least
3374         for MSVC.  Report and suggested change by Michael Goffioul.
3375
3376 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3377
3378         system-quote-tests: port to CentOS 5
3379         Problem reported by Tom G. Christensen in
3380         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3381         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3382
3383 2012-05-29  Jim Meyering  <meyering@redhat.com>
3384
3385         maint: fix typos in comments and ChangeLog
3386         Culprits identified and fixed mostly automatically using these commands:
3387         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3388         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3389         using http://github.com/lyda/misspell-check
3390         * ChangeLog: Fix typos.
3391         * doc/solaris-versions: Likewise.
3392         * lib/regexec.c (re_search_stub): Likewise.
3393         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3394
3395 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3396
3397         manywarnings: remove duplicate -Wmultichar entry
3398         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3399         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3400         so keep the entry marked as documented.
3401
3402 2012-05-27  Karl Berry  <karl@gnu.org>
3403
3404         * config/srclist.txt (mktime.c): remove last libc sync,
3405         perhaps just temporarily.
3406
3407 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3408
3409         regex: don't assume uint64_t or uint32_t
3410         * lib/regcomp.c (init_word_char): Don't assume that the types
3411         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3412         them, and on some 32-bit compilers there is no uint64_t.
3413         Problem reported by Gianluigi Tiesi in
3414         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3415
3416 2012-05-25  Jim Meyering  <meyering@redhat.com>
3417
3418         maint.mk: add strncpy-prohibiting syntax-check rule
3419         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3420
3421 2012-05-24  Jim Meyering  <meyering@redhat.com>
3422
3423         maint.mk: compute $(gpg_key_ID) more portably
3424         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3425         That use of sed is not portable to some fringe systems.
3426         Reported by Paul Eggert in
3427         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3428
3429 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3430
3431         mktime: sync from glibc
3432         * config/srclist.txt: Uncomment mktime.c.
3433         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3434         First, indent with tabs, since glibc uses tabs and doesn't want to
3435         change and we'd rather be identical to glibc.  Also, two small
3436         coding changes:
3437         (isdst_differ): Use &&, not &, as && is the usual style.
3438         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3439         for clarity.
3440
3441 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3442
3443         announce-gen: du -h is more portable than du --human
3444         * build-aux/announce-gen (sizes): Invoke du with -h instead
3445         of --human.  Accept leading white space in its output.
3446
3447 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3448
3449         announce-gen: Improve diagnostics.
3450         * build-aux/announce-gen: When parsing command line options,
3451         prefer "announce-gen: option --release-type requires an argument"
3452         to "Option release-type requires an argument".
3453
3454 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3455
3456         maint.mk: gpg_key_ID: use sed more portably
3457         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3458         the closing brace.
3459         (refresh-po): Fuse two sed invocations into one.
3460
3461 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3462
3463         gitlog-to-changelog: support the log message format used in Bison.
3464         * build-aux/gitlog-to-changelog: Support --strip-tab and
3465         --strip-cherry-picked.
3466
3467 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3468
3469         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3470         the rest of the current time slice to another thread in the current
3471         process. So if the thread that feeds the file decscriptor we're
3472         polling is not in the current process, we get busy-waiting.
3473         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3474         Patch from Theodore Leblond.
3475         * lib/select.c: Split polling out of the loop that sets the output
3476         fd_sets.  Check for zero result and loop if the wait timeout is
3477         infinite.
3478
3479 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3480
3481         select: Fix build error on IRIX 6.5.
3482         * lib/select.c: Include stddef.h for NULL.
3483
3484 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3485
3486         gc: fix libgcrypt detection on older machines.
3487         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3488         copyright years because the file has been distributed every year
3489         since it was created.
3490
3491 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3492
3493         crypto: fix bug in large buffer handling
3494         Problem reported by Serge Belyshev for glibc in
3495         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3496         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3497         * lib/md4.c (md4_process_block):
3498         * lib/md5.c (md5_process_block):
3499         * lib/sha1.c (sha1_process_block):
3500         * lib/sha256.c (sha256_process_block):
3501         Don't assume the buffer length is less than 2**32.
3502         * lib/sha512.c (sha512_process_block): Likewise.
3503         Here, the bug is present only in the rare case where the host does
3504         not support uint64_t or where size_t is wider than 64 bits.
3505         Use u64size to work around the problems.
3506         * lib/u64.h (u64size): New macro.
3507
3508 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3509
3510         fsusage: fix block size returned on older Linux 2.6
3511
3512         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3513         which is available since Linux 2.6.
3514         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3515         when the member is available so it can be used as a fallback.
3516         * doc/posix-functions/statvfs.texi: Mention the hang issue
3517         on Linux < 2.6.36.
3518
3519 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3520
3521         bootstrap: suppress stderr chatter
3522         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3523         Omit unnecessary chatter to stderr.  The main program chatter
3524         was there only inadvertantly.
3525
3526         bootstrap: .gitignore files created by autopoint, libtool
3527         I ran into this problem when bootstrapping the latest diffutils.
3528         After './bootstrap', 'git status' reported lots of untracked files
3529         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3530         autopoint and do not need to be version-controlled.
3531         * build-aux/bootstrap: Put into .gitignore the files that
3532         autopoint and libtool create, by keeping track of files that exist
3533         after but not before these programs are run.
3534         (version_controlled_file): Move up.  2nd arg is now full file
3535         name, not base name; this is more convenient.  Put CVS at the end,
3536         as it's now somewhat deprecated.
3537
3538 2012-05-14  Jim Meyering  <meyering@redhat.com>
3539
3540         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3541         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3542         definition.  Reported by Bruno Haible.
3543
3544 2012-05-13  Bruno Haible  <bruno@clisp.org>
3545             Paul Eggert  <eggert@cs.ucla.edu>
3546
3547         binary-io: Define set_binary_mode function.
3548         * lib/binary-io.h (set_binary_mode): New function.
3549         (SET_BINARY): Define in terms of set_binary_mode.
3550         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3551         * tests/test-binary-io.c (main): Accept an argument, and test either
3552         set_binary_mode or SET_BINARY depending on the argument.
3553         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3554         argument. Clean up also t-bin-out0.tmp.
3555
3556 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3557
3558         bootstrap: take advantage of POSIX shell features
3559
3560         The 'bootstrap' script offered by Gnulib script already uses POSIX
3561         shell features (like $((...)) arithmetic expansions) that are not
3562         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3563         means that bootstrap must already be run using a proper POSIX shell,
3564         which will thus provide more features, like ${var#pattern} parameter
3565         expansion or inversion of a command exit status with '!'.  We can
3566         thus use these features to improve the clarity and the performances
3567         of the bootstrap script.
3568
3569         Suggested by Eric Blake.
3570
3571         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3572         of sed/expr plus command substitutions, to save some forks.  While
3573         we are at it, prefer the POSIX $(...) form of command substitution,
3574         rather than the legacy form `...` (since the former is visually
3575         clearer and interacts better with quoting), and prefer the idiom:
3576           "if ! CMD; then ACTION ..."
3577         over the idiom:
3578           "if CMD; then :; else ACTION ..."
3579         which was required by legacy Bourne shells not supporting '!'.
3580
3581 2012-05-12  Bruno Haible  <bruno@clisp.org>
3582
3583         system-quote: Add more comments.
3584         * lib/system-quote.h: Add more comments about wilcards and limitations.
3585         Suggested by Eli Zaretskii <eliz@gnu.org>.
3586
3587         sh-quote, system-quote: Add comments about wildcards.
3588         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3589         * lib/system-quote.h: Likewise.
3590         Reported by Eli Zaretskii <eliz@gnu.org>.
3591
3592 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3593
3594         fsusage: check for GNU/Linux statvfs problem dynamically
3595         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3596         Define STAT_STATFS2_BSIZE too, since in this case the code now
3597         checks dynamically whether statvfs is reliable, falling back on
3598         Linux-style statfs otherwise.
3599         (statvfs_works): New function, for dynamically testing statvfs.
3600         (get_fs_usage) [STAT_STATVFS]: Use it.
3601         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3602         statvfs on GNU/Linux hosts, since it's now done dynamically.
3603
3604 2012-05-10  Bruno Haible  <bruno@clisp.org>
3605
3606         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3607         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3608         '?' character.
3609         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3610         * tests/test-system-quote-main.c (check_all): Check also strings like
3611         "??????????".
3612         Reported by Eli Zaretskii <eliz@gnu.org>.
3613
3614 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3615
3616         _Noreturn: port config.h to gcc -Wundef
3617         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3618         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3619         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3620
3621 2012-05-10  Bruno Haible  <bruno@clisp.org>
3622
3623         system-quote: Refactor.
3624         * lib/system-quote.h (system_quote_copy): Fix comment.
3625         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3626         New functions, extracted from system_quote_copy.
3627         (system_quote_length, system_quote_copy): Use these functions.
3628         Reported by Paul Eggert.
3629
3630 2012-05-08  Bruno Haible  <bruno@clisp.org>
3631
3632         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3633         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3634
3635 2012-05-08  Bruno Haible  <bruno@clisp.org>
3636
3637         Tests for module 'system-quote'.
3638         * modules/system-quote-tests: New file.
3639         * tests/test-system-quote.sh: New file.
3640         * tests/test-system-quote-main.c: New file.
3641         * tests/test-system-quote-child.c: New file.
3642
3643         New module 'system-quote'.
3644         * lib/system-quote.h: New file.
3645         * lib/system-quote.c: New file.
3646         * modules/system-quote: New file.
3647
3648 2012-05-08  Bruno Haible  <bruno@clisp.org>
3649
3650         sh-quote: Make C++ safe and allow multiple inclusion.
3651         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3652         declarations in extern "C".
3653
3654 2012-05-08  Bruno Haible  <bruno@clisp.org>
3655
3656         sh-quote tests: Make tests stricter.
3657         * tests/test-sh-quote.c (check_one): Check the return value of
3658         shell_quote_copy.
3659         (main): Check a string with a CR character. Check a string that
3660         contains UCHAR_MAX.
3661
3662 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3663
3664         warnings.m4: provide a means to specify the program to compile.
3665         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3666         (gl_WARN_ADD): here.
3667         Use gl_AS_VAR_APPEND.
3668         Support an argument to specify the program to compile.
3669         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3670         AC_SUBST the WARN_CFLAGS when they are used.
3671         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3672         leave this to gl_WARN_ADD.
3673
3674 2012-05-08  Eric Blake  <eblake@redhat.com>
3675
3676         doc: recommendations on gettext version
3677         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3678         choice between versions.
3679         * DEPENDENCIES (gettext): Cover both approaches.
3680
3681 2012-05-08  Jim Meyering  <meyering@redhat.com>
3682
3683         init.sh: explain why EXEEXT support uses aliases rather than functions
3684         * tests/init.sh: Add a comment.
3685
3686         init.sh: don't let bash aliases interfere with tests
3687         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3688         is bash.  This avoids problems for those who alias standard commands to
3689         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3690         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3691
3692 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3693
3694         stdint: be more consistent with glibc, SunOS libc
3695         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3696         (gl_int_fast16_t, gl_uint_fast16_t)
3697         (gl_int_fast32_t, gl_uint_fast32_t)
3698         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3699         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3700         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3701         Be consistent with glibc by default, and with SunOS 5.10 and later
3702         if __sun is defined.  This lessens the likelihood of clashes if
3703         code compiled for older hosts is combined with code compiled for
3704         newer ones.  Problem reported by Niels Möller in
3705         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3706
3707 2012-05-07  Eric Blake  <eblake@redhat.com>
3708
3709         isatty: relax license to LGPLv2+
3710         * modules/isatty (License): Relax license.
3711
3712 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3713
3714         stat-size: comment fix
3715         * lib/stat-size.h: Remove obsolete comment about indenting.
3716
3717 2012-05-06  Bruno Haible  <bruno@clisp.org>
3718
3719         Tests for module 'sh-quote'.
3720         * modules/sh-quote-tests: New file.
3721         * tests/test-sh-quote.c: New file.
3722
3723 2012-05-06  Bruno Haible  <bruno@clisp.org>
3724
3725         sh-quote: Improve shell_quote_argv's signature.
3726         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3727         * lib/sh-quote.c (shell_quote_argv): Likewise.
3728
3729 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3730
3731         stdint: document issues with int_fast8_t etc.
3732         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3733         stdint.h substitutes may define these types differently.  See
3734         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3735
3736 2012-05-05  Bruno Haible  <bruno@clisp.org>
3737
3738         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3739         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3740         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3741         or 'guessing no (mishandles large arguments)'.
3742
3743 2012-05-05  Bruno Haible  <bruno@clisp.org>
3744
3745         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3746         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3747         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3748         set gl_cv_func_link_follows_symlink to "guessing no".
3749
3750 2012-05-05  Bruno Haible  <bruno@clisp.org>
3751
3752         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3753         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3754         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3755         "guessing no".
3756         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3757
3758 2012-05-05  Bruno Haible  <bruno@clisp.org>
3759
3760         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3761         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3762         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3763         set gl_cv_struct_dirent_d_ino to "guessing yes".
3764
3765 2012-05-05  Bruno Haible  <bruno@clisp.org>
3766
3767         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3768         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3769         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3770         "guessing yes".
3771
3772 2012-05-05  Bruno Haible  <bruno@clisp.org>
3773
3774         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3775         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3776         compiling to a glibc system, set gl_cv_func_signbit and
3777         gl_cv_func_signbit_gcc to "guessing yes".
3778
3779 2012-05-05  Bruno Haible  <bruno@clisp.org>
3780
3781         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3782         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3783         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3784         to "guessing yes".
3785         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3786         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3787
3788 2012-05-05  Bruno Haible  <bruno@clisp.org>
3789
3790         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3791         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3792         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3793         gl_cv_func_realpath_works to "guessing yes".
3794
3795 2012-05-05  Bruno Haible  <bruno@clisp.org>
3796
3797         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3798         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3799         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3800
3801 2012-05-04  Bruno Haible  <bruno@clisp.org>
3802
3803         Tweak last commit.
3804         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3805         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3806
3807 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3808
3809         unistd_h: make it easier to avoid sys_types_h
3810         This is useful for Emacs, which has its own method of porting to
3811         Windows, and which therefore does not need the sys_types_h module.
3812         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3813         code moved here from gl_SYS_TYPES_H.
3814         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3815         using the code directly.
3816         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3817         gl_SYS_TYPES_H.
3818         * modules/sys_types (Files):
3819         * modules/unistd (Files): Add m4/off_t.m4.
3820
3821 2012-05-03  Bruno Haible  <bruno@clisp.org>
3822
3823         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3824         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3825         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3826         "guessing yes" or "guessing no".
3827         (gl_FUNC_LSTAT): Update.
3828         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3829         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3830         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3831
3832 2012-05-03  Bruno Haible  <bruno@clisp.org>
3833
3834         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3835         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3836         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3837         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3838         cross-compiling, choose the first alternative on glibc systems.
3839         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3840
3841 2012-05-03  Bruno Haible  <bruno@clisp.org>
3842
3843         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3844         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3845         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3846
3847 2012-05-03  Bruno Haible  <bruno@clisp.org>
3848
3849         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3850         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3851
3852 2012-05-03  Bruno Haible  <bruno@clisp.org>
3853
3854         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3855         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3856         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3857         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3858         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3859         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3860         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3861         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3862         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3863         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3864         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3865         gl_cv_func_chown_ctime_works to "guessing yes".
3866         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3867         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3868         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3869         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3870         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3872         compiling to glibc systems, set gl_cv_func_open_directory_works to
3873         "guessing yes".
3874         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3875         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3876         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3877         "guessing yes".
3878         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3879         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3880         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3881         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3882         "guessing yes".
3883         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3884         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3885         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3886         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3887         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3888         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3889         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3890         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3891         "guessing yes".
3892         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3893         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3894         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3895         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3896         "guessing yes".
3897         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3898         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3899         "guessing yes".
3900         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3901         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3902         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3903         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3904         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3905         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3906         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3907         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3908         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3909         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3910         "guessing yes".
3911         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3912         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3913         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3914         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3915         "guessing yes".
3916         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3917         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3918         "guessing yes".
3919         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3920         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3921         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3922         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3923         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3924         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3925         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3926         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3927         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3928         "guessing yes".
3929         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3930         compiling to glibc systems, set gl_cv_func_mknod_works to
3931         "guessing yes".
3932         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3933         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3934         "guessing yes".
3935         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3936         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3937         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3938         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3939         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3940         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3941         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3942         compiling to glibc systems, set gl_cv_func_svid_putenv to
3943         "guessing yes".
3944         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3945         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3946         "guessing yes".
3947         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3948         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3949         "guessing yes".
3950         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3951         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3952         to "guessing yes".
3953         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3954         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3955         to "guessing yes".
3956         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3957         compiling to glibc systems, set gl_cv_func_rmdir_works to
3958         "guessing yes".
3959         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3960         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3961         gl_cv_func_unlink_parent_fails to "guessing yes".
3962         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3963         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3964         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3965         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3966         gl_cv_func_rename_dest_works to "guessing yes".
3967         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3968         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3969         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3970         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3971         "guessing yes".
3972         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3973         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3974         "guessing yes".
3975         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3976         compiling to glibc systems, set gl_cv_func_setenv_works to
3977         "guessing yes".
3978         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3979         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3980         "guessing yes".
3981         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3982         compiling to glibc systems, set gl_cv_func_sleep_works to
3983         "guessing yes".
3984         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3985         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3986         "guessing yes".
3987         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3988         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3989         "guessing yes".
3990         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3991         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3992         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3993         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3994         "guessing yes".
3995         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3996         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3997         "guessing yes".
3998         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3999         compiling to glibc systems, set gl_cv_func_usleep_works to
4000         "guessing yes".
4001         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4002         compiling to glibc systems, set gl_cv_func_futimesat_works to
4003         "guessing yes".
4004
4005 2012-05-03  Bruno Haible  <bruno@clisp.org>
4006
4007         Say "guessing yes" or "guessing no" when cross-compiling.
4008         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4009         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4010         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4011         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4012         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4013         am_cv_func_working_getline to "guessing yes" or "guessing no".
4014         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4015         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4016         (gl_FUNC_MEMMEM): When cross-compiling, set
4017         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4018         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4019         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4020         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4021         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4022         "guessing no".
4023         (gl_FUNC_STRCASESTR): When cross-compiling, set
4024         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4025         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4026         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4027         (gl_FUNC_STRSTR): When cross-compiling, set
4028         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4029         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4030         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4031         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4032         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4033
4034 2012-05-01  Bruno Haible  <bruno@clisp.org>
4035
4036         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4037         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4038         * build-aux/reloc-ldflags: Likewise.
4039         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4040
4041 2012-05-01  Bruno Haible  <bruno@clisp.org>
4042
4043         gnulib-tool: Remove transitional code.
4044         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4045         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4046
4047 2012-05-01  Bruno Haible  <bruno@clisp.org>
4048
4049         getcwd: Fix misindentation.
4050         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4051
4052 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4053
4054         exclude: process exclude and include directives in order
4055         This restores the pre-2009 behavior, and is part of a fix of a
4056         grep bug reported by Quentin Arce in
4057         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4058         * lib/exclude.c (struct exclude): Remove 'tail' member.
4059         (new_exclude_segment): Prepend the new segment instead of appending.
4060         Return void, since that's now more convenient.
4061         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4062         (file_name_matches): Renamed from excluded_file_name_p.
4063         (file_pattern_matches, file_name_matches):
4064         Return true if the pattern matches, not if it excludes.
4065         All callers changed.
4066         (excluded_file_name): Process the list in reverse order;
4067         since the list is now reversed this restores the pre-2009 behavior.
4068         (add_exclude): Adjust to new reversed-order list.  Use local var
4069         rather than macro, for clarity.
4070         * tests/test-exclude7.sh: Adjust to corrected behavior.
4071
4072         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4073         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4074         it's not possible here.  Handle the case of \ at end of pattern
4075         without dumping core.
4076         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4077
4078         _Noreturn: future-proof non-GNU and non-MSVC compilers
4079         * build-aux/snippet/_Noreturn.h (_Noreturn):
4080         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4081         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4082         C11 or later.  This is more likely to work with random future C
4083         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4084         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4085
4086         exclude: handle wildcards with FNM_EXTMATCH
4087         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4088         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4089         comment that "has wildcards" really means "has or may have
4090         wildcards".  Simplify by avoiding the need to call strcspn.
4091
4092 2012-04-29  Bruno Haible  <bruno@clisp.org>
4093
4094         gnulib-tool: Fix list of authors.
4095         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4096
4097 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4098
4099         bootstrap: support Automake-NG in $buildreq
4100         * bootstrap (check_versions): Handle automake and aclocal from
4101         Automake-NG specially.  They can be specified as respectively
4102         the "automake-ng" and "aclocal-ng" requirements.
4103
4104 2012-04-25  Eric Blake  <eblake@redhat.com>
4105
4106         bootstrap: only force latest Makefile.in.in for gettext module
4107         * build-aux/bootstrap (with_gettext): Only install latest
4108         Makefile.in.in for projects requesting bleeding edge gettext.
4109
4110 2012-04-22  Bruno Haible  <bruno@clisp.org>
4111
4112         doc: Mention reason for replacement on glibc/Linux systems.
4113         * doc/posix-functions/dprintf.texi: Mention the problem with special
4114         'long double' values.
4115         * doc/posix-functions/fprintf.texi: Likewise.
4116         * doc/posix-functions/printf.texi: Likewise.
4117         * doc/posix-functions/snprintf.texi: Likewise.
4118         * doc/posix-functions/sprintf.texi: Likewise.
4119         * doc/posix-functions/vdprintf.texi: Likewise.
4120         * doc/posix-functions/vfprintf.texi: Likewise.
4121         * doc/posix-functions/vprintf.texi: Likewise.
4122         * doc/posix-functions/vsnprintf.texi: Likewise.
4123         * doc/posix-functions/vsprintf.texi: Likewise.
4124         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4125         platforms with F_DUPFD_CLOEXEC problems.
4126         * doc/posix-functions/glob.texi: Mention which platforms are affected
4127         by the problem with symbolic links.
4128         * doc/posix-functions/linkat.texi: Mention the problem with
4129         AT_SYMLINK_FOLLOW on Linux.
4130
4131 2012-04-22  Bruno Haible  <bruno@clisp.org>
4132
4133         pwrite: Don't replace on all platforms.
4134         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4135
4136 2012-04-22  Bruno Haible  <bruno@clisp.org>
4137
4138         rint* tests: Avoid gcc warnings.
4139         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4140         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4141         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4142
4143 2012-04-21  Bruno Haible  <bruno@clisp.org>
4144
4145         users.txt: Update.
4146         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4147         switched from CVS to git, bzr, or svn.
4148
4149 2012-04-21  Bruno Haible  <bruno@clisp.org>
4150
4151         Large File Support for native Windows platforms.
4152
4153         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4154         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4155
4156         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4157         type.
4158         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4159         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4160         * doc/posix-headers/sys_types.texi: Mention the effect of the
4161         'largefile' module.
4162
4163         * lib/fcntl.in.h: Add comments about off_t.
4164         * modules/fcntl-h (Depends-on): Add sys_types.
4165
4166         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4167         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4168         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4169         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4170         * modules/unistd (Depends-on): Add sys_types.
4171         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4172
4173         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4174         instead of lseek.
4175         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4176         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4177         * modules/lseek (Depends-on): Add sys_types.
4178
4179         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4180         msvc-nothrow.h.
4181         (SetFileSize): New function.
4182         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4183         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4184         if Large File Support is requested.
4185         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4186         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4187
4188         * lib/stdio.in.h: Add comments about off_t.
4189         * modules/stdio (Depends-on): Add sys_types.
4190
4191         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4192         instead of ftello.
4193         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4194         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4195         (gl_PREREQ_FTELLO): New macro.
4196         * modules/ftello (Depends-on): Add sys_types.
4197         (configure.ac): Incoke gl_PREREQ_FTELLO.
4198
4199         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4200         instead of fseeko.
4201         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4202         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4203         (gl_PREREQ_FSEEKO): New macro.
4204         * modules/fseeko (Depends-on): Add sys_types.
4205         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4206
4207         * lib/sys_stat.in.h: Add comments about off_t.
4208         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4209         64-bit integer for st_size in 'struct stat'.
4210         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4211         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4212         * modules/sys_stat (Depends-on): Add sys_types.
4213         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4214
4215         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4216         instead of stat or _stat.
4217
4218         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4219         'struct _stati64' instead of fstat and 'struct stat'.
4220         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4221         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4222
4223         Reported by Ray Satiro <raysatiro@yahoo.com>.
4224
4225 2012-04-19  Eric Blake  <eblake@redhat.com>
4226
4227         bootstrap: accommodate older libtool
4228         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4229         Reported by Daniel P. Berrange.
4230
4231 2012-04-19  Jim Meyering  <meyering@redhat.com>
4232
4233         announce-gen: avoid failure due to lack of Digest::SHA1
4234         Even with the preferred Digest::SHA available, this script
4235         would fail when the backup module, Digest::SHA1, was not installed.
4236         * build-aux/announce-gen: Quote the conditional use of "use".
4237         Reported by Reuben Thomas in:
4238         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4239
4240         bootstrap: don't let a user's CDPATH setting affect this script
4241         When CDPATH is set, cd will sometimes generate output.
4242         When "cd" is run in a subshell whose output matters, that
4243         surprising-to-some output can cause malfunction.
4244         Unsetting CDPATH turns off this shell "feature."
4245         * build-aux/bootstrap (CDPATH): Unset.
4246         Reported by Reuben Thomas in:
4247         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4248         and inspired by his patch here:
4249         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4250
4251 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4252         and Jim Meyering  <meyering@redhat.com>
4253
4254         maint.mk: catch "see @xref{}" and similar
4255         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4256         prohibit "See also @xref{", "Also see @pxref{", and similar.
4257
4258 2012-04-16  Jim Meyering  <meyering@redhat.com>
4259
4260         bootstrap: really use gnulib's po/Makefile.in.in
4261         * build-aux/bootstrap: Correct the source file name in previous change.
4262         Reported by Akim Demaille.
4263
4264         configmake: correct minor inconsistency in Makefile rule
4265         * modules/configmake (Makefile.am): All other rules like this one
4266         run the final "mv -f ..." in the same backslash-continued command
4267         as the one that does everything else.  This one put the mv -f ...
4268         command on a separate, non-backslash-continued line.
4269         Make it like the others.
4270
4271         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4272         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4273         the one from gettext.  Reported by Akim Demaille.
4274
4275 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4276
4277         Fix recursion of install-* into po directories.
4278         Bison's install-pdf bug reported by Hans Aberg at
4279         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4280         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4281         (install-info, install-pdf, install-ps): New targets.
4282
4283 2012-04-16  Jim Meyering  <meyering@redhat.com>
4284
4285         maint: avoid spurious "make sc_maint" failure
4286         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4287         exempt all *.class file names, for lib/javaversion.class.
4288
4289 2012-04-15  Bruno Haible  <bruno@clisp.org>
4290
4291         lseek: Make configure test independent of environment.
4292         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4293         Windows, we know that lseek() on pipes is broken; skip the runtime
4294         test.
4295
4296 2012-04-14  Bruno Haible  <bruno@clisp.org>
4297
4298         stat: Bypass buggy override in mingw64.
4299         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4300         * lib/stat.c (stat) [mingw64]: Define to _stat.
4301         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4302
4303 2012-04-14  Bruno Haible  <bruno@clisp.org>
4304
4305         pathmax: Fix compilation error on MSVC 9.
4306         * modules/pathmax (Depends-on): Add unistd.
4307
4308 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4309
4310         README: document pointer comparison assumption
4311         * README (Portability guidelines): Document assumption about
4312         pointer comparisons, in response to a recent bug-gnulib comment by
4313         Jeffrey Kegler.
4314
4315 2012-04-12  Bruno Haible  <bruno@clisp.org>
4316
4317         Tests for module 'getrusage'.
4318         * modules/getrusage-tests: New file.
4319         * tests/test-getrusage.c: New file.
4320
4321         New module 'getrusage'.
4322         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4323         warn-on-use.h.
4324         (getrusage): New declaration.
4325         * lib/getrusage.c: New file.
4326         * m4/getrusage.m4: New file.
4327         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4328         is declared.
4329         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4330         HAVE_GETRUSAGE.
4331         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4332         snippet/c++defs, snippet/warn-on-use.
4333         (Makefile.am): Update generation of sys/resource.h. Substitute
4334         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4335         * modules/getrusage: New file.
4336         * doc/posix-functions/getrusage.texi: Mention the new module.
4337
4338 2012-04-12  Bruno Haible  <bruno@clisp.org>
4339
4340         Tests for module 'sys_resource'.
4341         * modules/sys_resource-tests: New file.
4342         * tests/test-sys_resource.c: New file.
4343
4344         New module 'sys_resource'.
4345         * lib/sys_resource.in.h: New file.
4346         * m4/sys_resource_h.m4: New file.
4347         * modules/sys_resource: New file.
4348         * doc/posix-headers/sys_resource.texi: Mention the new module.
4349
4350 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4351
4352         ioctl: Fix compilation error on mingw.
4353         * lib/ioctl.c: Include <windows.h>.
4354         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4355
4356 2012-04-04  Jim Meyering  <meyering@redhat.com>
4357
4358         regex: correct #pragma guard expression
4359         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4360         not 4.3.  Correct its cpp guard expression.
4361
4362 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4363
4364         regex: remove unnecessary type punning
4365         Problem reported by Vladimir Serbinenko in
4366         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4367         * lib/regex.h (struct re_pattern_buffer): Change the type of
4368         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4369         Fix comment to match code.
4370         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4371         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4372         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4373         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4374         (set_regs):
4375         Omit no-longer-necessary casts.
4376
4377 2012-04-03  Bruno Haible  <bruno@clisp.org>
4378
4379         Tests for module 'ilogbl'.
4380         * modules/ilogbl-tests: New file.
4381         * tests/test-ilogbl.c: New file.
4382
4383         New module 'ilogbl'.
4384         * lib/math.in.h (ilogbl): New declaration.
4385         * lib/ilogbl.c: New file.
4386         * m4/ilogbl.m4: New file.
4387         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4389         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4390         Split sed invocation, to avoid the limit of 100 substitutions of
4391         HP-UX 'sed'.
4392         * modules/ilogbl: New file.
4393         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4394         * doc/posix-functions/ilogbl.texi: Mention the new module.
4395
4396 2012-04-03  Bruno Haible  <bruno@clisp.org>
4397
4398         Tests for module 'ilogbf'.
4399         * modules/ilogbf-tests: New file.
4400         * tests/test-ilogbf.c: New file.
4401
4402         New module 'ilogbf'.
4403         * lib/math.in.h (ilogbf): New declaration.
4404         * lib/ilogbf.c: New file.
4405         * m4/ilogbf.m4: New file.
4406         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4408         REPLACE_ILOGBF.
4409         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4410         REPLACE_ILOGBF.
4411         * modules/ilogbf: New file.
4412         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4413         * doc/posix-functions/ilogbf.texi: Mention the new module.
4414
4415 2012-04-03  Bruno Haible  <bruno@clisp.org>
4416
4417         Tests for module 'ilogb'.
4418         * modules/ilogb-tests: New file.
4419         * tests/test-ilogb.c: New file.
4420         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4421         tests/test-logb-ieee.h.
4422
4423         New module 'ilogb'.
4424         * lib/math.in.h (ilogb): New declaration.
4425         * lib/ilogb.c: New file.
4426         * m4/ilogb.m4: New file.
4427         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4428         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4429         REPLACE_ILOGB.
4430         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4431         REPLACE_ILOGB.
4432         * modules/ilogb: New file.
4433         * tests/test-math-c++.cc: Check the declaration of ilogb.
4434         * doc/posix-functions/ilogb.texi: Mention the new module.
4435
4436 2012-04-03  Bruno Haible  <bruno@clisp.org>
4437
4438         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4439         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4440         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4441         (main): Check their values.
4442         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4443         problem.
4444
4445 2012-04-03  Bruno Haible  <bruno@clisp.org>
4446
4447         Tests for module 'logbl-ieee'.
4448         * modules/logbl-ieee-tests: New file.
4449         * tests/test-logbl-ieee.c: New file.
4450
4451         New module 'logbl-ieee'.
4452         * modules/logbl-ieee: New file.
4453
4454         Tests for module 'logb-ieee'.
4455         * modules/logb-ieee-tests: New file.
4456         * tests/test-logb-ieee.c: New file.
4457
4458         New module 'logb-ieee'.
4459         * modules/logb-ieee: New file.
4460
4461         Tests for module 'logbf-ieee'.
4462         * modules/logbf-ieee-tests: New file.
4463         * tests/test-logbf-ieee.c: New file.
4464         * tests/test-logb-ieee.h: New file.
4465
4466         New module 'logbf-ieee'.
4467         * modules/logbf-ieee: New file.
4468
4469 2012-04-03  Bruno Haible  <bruno@clisp.org>
4470
4471         Tests for module 'logbl'.
4472         * modules/logbl-tests: New file.
4473         * tests/test-logbl.c: New file.
4474
4475         New module 'logbl'.
4476         * lib/math.in.h (logbl): New declaration.
4477         * lib/logbl.c: New file.
4478         * m4/logbl.m4: New file.
4479         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4481         REPLACE_LOGBL.
4482         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4483         REPLACE_LOGBL.
4484         * modules/logbl: New file.
4485         * tests/test-math-c++.cc: Check the declaration of logbl.
4486         * doc/posix-functions/logbl.texi: Mention the new module.
4487
4488 2012-04-02  Bruno Haible  <bruno@clisp.org>
4489
4490         Tests for module 'logbf'.
4491         * modules/logbf-tests: New file.
4492         * tests/test-logbf.c: New file.
4493
4494         New module 'logbf'.
4495         * lib/math.in.h (logbf): New declaration.
4496         * lib/logbf.c: New file.
4497         * m4/logbf.m4: New file.
4498         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4500         REPLACE_LOGBF.
4501         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4502         REPLACE_LOGBF.
4503         * modules/logbf: New file.
4504         * tests/test-math-c++.cc: Check the declaration of logbf.
4505         * doc/posix-functions/logbf.texi: Mention the new module.
4506
4507 2012-04-02  Bruno Haible  <bruno@clisp.org>
4508
4509         logb tests: More tests.
4510         * tests/test-logb.h: New file, based on tests/test-logb.c and
4511         tests/test-frexp.h.
4512         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4513         (main): Just invoke test_function.
4514         * modules/logb-tests (Files): Add tests/test-logb.h,
4515         tests/minus-zero.h, tests/randomd.c.
4516         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4517
4518         logb: Provide replacement and workarounds.
4519         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4520         is 1.
4521         * lib/logb.c: New file.
4522         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4523         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4525         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4526         * modules/logb (Files): Add lib/logb.c.
4527         (Depends-on): Add isfinite, frexp, isnand.
4528         (configure.ac): Compile the replacement code logb.c if needed.
4529         * tests/test-math-c++.cc: Check the declaration of logb.
4530         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4531         with subnormal numbers.
4532
4533 2012-04-02  Bruno Haible  <bruno@clisp.org>
4534
4535         log10* tests: Speed up.
4536         * tests/test-log10.h (test_function): Reduce amount of random numbers
4537         to test.
4538
4539 2012-04-01  Bruno Haible  <bruno@clisp.org>
4540
4541         logf-ieee: Fix test whether logf works.
4542         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4543
4544 2012-04-01  Bruno Haible  <bruno@clisp.org>
4545
4546         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4547         * lib/log10l.c: Include <float.h>
4548         (log10l): On IRIX, normalize the +Infinity value.
4549         * modules/log10l (Depends-on): Add 'float'.
4550         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4551         +Infinity.
4552
4553         log10f-ieee: Work around test failure on NetBSD 5.1.
4554         * m4/log10f-ieee.m4: New file.
4555         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4556         test whether log10f works with a negative argument. Replace it if not.
4557         * lib/log10f.c (log10f): For negative arguments, return NaN.
4558         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4559         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4560         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4561
4562         log10f-ieee: Work around test failure on Solaris 9.
4563         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4564         (configure.ac): Require gl_FUNC_LOG10F.
4565
4566         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4567         * m4/log10-ieee.m4: New file.
4568         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4569         whether log10 works with a negative argument. Replace it if not.
4570         * lib/log10.c (log10): For negative arguments, return NaN.
4571         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4572         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4573         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4574
4575         Tests for module 'log10l-ieee'.
4576         * modules/log10l-ieee-tests: New file.
4577         * tests/test-log10l-ieee.c: New file.
4578
4579         New module 'log10l-ieee'.
4580         * modules/log10l-ieee: New file.
4581
4582         Tests for module 'log10-ieee'.
4583         * modules/log10-ieee-tests: New file.
4584         * tests/test-log10-ieee.c: New file.
4585
4586         New module 'log10-ieee'.
4587         * modules/log10-ieee: New file.
4588
4589         Tests for module 'log10f-ieee'.
4590         * modules/log10f-ieee-tests: New file.
4591         * tests/test-log10f-ieee.c: New file.
4592         * tests/test-log10-ieee.h: New file.
4593
4594         New module 'log10f-ieee'.
4595         * modules/log10f-ieee: New file.
4596
4597 2012-04-01  Bruno Haible  <bruno@clisp.org>
4598
4599         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4600         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4601         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4602         workaround.
4603         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4604         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4606         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4607         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4608         (Depends-on): Update conditions.
4609         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4610         IRIX 6.5, OSF/1 5.1 problems.
4611
4612 2012-04-01  Bruno Haible  <bruno@clisp.org>
4613
4614         log10f: Work around OSF/1 5.1 bug.
4615         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4616         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4617         workaround.
4618         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4619         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4621         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4622         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4623         (Depends-on): Update conditions.
4624         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4625
4626 2012-04-01  Bruno Haible  <bruno@clisp.org>
4627
4628         log10: Work around OSF/1 5.1 bug.
4629         * lib/math.in.h (log10): New declaration.
4630         * lib/log10.c: New file.
4631         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4632         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4633         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4635         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4636         * modules/log10 (Files): Add lib/log10.c.
4637         (Depends-on): Add math.
4638         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4639         * tests/test-math-c++.cc: Check the declaration of log10.
4640         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4641
4642 2012-03-31  Bruno Haible  <bruno@clisp.org>
4643
4644         log10l tests: More tests.
4645         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4646         tests/minus-zero.h, tests/randoml.c.
4647         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4648         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4649         (main): Invoke test_function.
4650
4651         log10f tests: More tests.
4652         * modules/log10f-tests (Files): Add tests/test-log10.h,
4653         tests/minus-zero.h, tests/randomf.c.
4654         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4655         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4656         (main): Invoke test_function.
4657
4658         log10 tests: More tests.
4659         * tests/test-log10.h: New file.
4660         * modules/log10-tests (Files): Add tests/test-log10.h,
4661         tests/minus-zero.h, tests/randomd.c.
4662         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4663         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4664         (main): Invoke test_function.
4665
4666 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4667
4668         fflush: Fix syntax error.
4669         * lib/fflush.c: Include unused-parameter.h, needed for
4670         _GL_UNUSED_PARAMETER.
4671         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4672
4673 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4674
4675         regex: pacify GCC when compiling GRUB
4676         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4677         a diagnostic.  Reported by Vladimir Serbinenko in
4678         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4679
4680 2012-03-29  Eric Blake  <eblake@redhat.com>
4681
4682         stdio: don't assume gets any more
4683         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4684         support.
4685         * modules/stdio (Makefile.am): Likewise.
4686         * lib/stdio-read.c (gets): Likewise.
4687         * tests/test-stdio-c++.cc: Likewise.
4688         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4689         * lib/stdio.in.h (gets): Make warning occur in more places.
4690         * doc/posix-functions/gets.texi (gets): Update documentation.
4691         Reported by Christer Solskogen.
4692
4693         maint.mk: fix syntax checks without exclusions
4694         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4695         Reported by Daniel P. Berrange.
4696
4697         strerror_r: avoid compiler warning
4698         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4699         level.
4700
4701         fflush: avoid compiler warning
4702         * lib/fflush.c (update_fpos_cache): Mark variables that are
4703         potentially unused.
4704
4705 2012-03-25  Bruno Haible  <bruno@clisp.org>
4706
4707         Tests for module 'localeconv'.
4708         * modules/localeconv-tests: New file.
4709         * tests/test-localeconv.c: New file.
4710
4711         New module 'localeconv'.
4712         * lib/locale.in.h (localeconv): New declaration.
4713         * lib/localeconv.c: New file.
4714         * m4/localeconv.m4: New file.
4715         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4716         REPLACE_LOCALECONV.
4717         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4718         REPLACE_LOCALECONV.
4719         * modules/localeconv: New file.
4720         * modules/nl_langinfo (Depends-on): Add localeconv.
4721         * modules/human (Depends-on): Likewise.
4722         * doc/posix-functions/localeconv.texi: Mention the new module.
4723
4724 2012-03-25  Bruno Haible  <bruno@clisp.org>
4725
4726         locale: Provide a complete 'struct lconv'.
4727         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4728         'struct lconv' does not contain int_p_cs_precedes.
4729         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4730         * doc/posix-headers/locale.texi: Update.
4731
4732         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4733         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4734         * doc/posix-headers/locale.texi: Update.
4735
4736         locale: Provide a working 'struct lconv'.
4737         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4738         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4739         'struct lconv' does not even contain decimal_point.
4740         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4741         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4742         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4743         * doc/posix-headers/locale.texi: Mention the problems with
4744         'struct lconv'.
4745         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4746
4747 2012-03-24  Bruno Haible  <bruno@clisp.org>
4748
4749         Enable common subexpression optimization in GCC.
4750         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4751         macros.
4752         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4753         GCC attribute 'const'.
4754         (uc_locale_language): Declare with GCC attribute 'pure'.
4755         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4756         with GCC attribute 'const'.
4757         * lib/unictype.in.h (uc_is_general_category_withtable,
4758         uc_combining_class, uc_combining_class_name,
4759         uc_combining_class_long_name, uc_bidi_class_name,
4760         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4761         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4762         uc_decimal_value, uc_digit_value, uc_numeric_value,
4763         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4764         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4765         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4766         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4767         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4768         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4769         Declare with GCC attribute 'const'.
4770         (uc_general_category_name, uc_general_category_long_name,
4771         uc_general_category_byname, uc_general_category,
4772         uc_is_general_category, uc_combining_class_byname,
4773         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4774         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4775         Declare with GCC attribute 'pure'.
4776         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4777         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4778         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4779         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4780         with GCC attribute 'pure'.
4781         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4782         'const'.
4783         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4784         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4785         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4786         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4787         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4788         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4789         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4790         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4791         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4792         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4793         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4794         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4795         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4796         GCC attribute 'pure'.
4797         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4798         'const'.
4799         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4800         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4801         u32_strwidth): Declare with GCC attribute 'pure'.
4802
4803         Enable common subexpression optimization in GCC.
4804         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4805         (alphasort): Declare with GCC attribute 'pure'.
4806         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4807         (atoll): Declare with GCC attribute 'pure'.
4808         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4809         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4810         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4811         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4812         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4813         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4814         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4815
4816 2012-03-24  Bruno Haible  <bruno@clisp.org>
4817
4818         gnulib-tool: Avoid unintended error output from 'cmp'.
4819         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4820         "cmp -s", not "cmp > /dev/null".
4821
4822 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4823
4824         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4825
4826         It's not just Automake versions < 1.9b that creates an empty
4827         pkgdatadir at installation time if pkgdata_DATA is specified
4828         to empty; modern automake versions do this as well, at least
4829         until automake 1.11.4 (not yet released at the moment of writing,
4830         but soon to appear).  That behaviour was generally considered a
4831         feature rather than a bug, at least until this discussion:
4832         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4833
4834         See also automake bugs #10997 and #11030.
4835
4836         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4837         reference to relevant automake bug numbers.
4838         (func_emit_tests_Makefile_am): Likewise.
4839
4840 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4841
4842         announce-gen: use Digest::SHA when possible
4843         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4844         back to Digest::SHA1 if necessary.
4845
4846 2012-03-20  Jim Meyering  <meyering@redhat.com>
4847
4848         tests: avoid gcc warnings about argv vs. const initializers
4849         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4850         warnings about discarding 'const' qualifier from pointer target type.
4851         * tests/test-posix_spawn2.c (main): Likewise.
4852
4853 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4854
4855         README-release: simplify slightly
4856         * top/README-release: Run "git checkout master" only once.
4857
4858 2012-03-15  Mark Wielaard  <mark@klomp.org>
4859
4860         git-merge-changelog: add specific example on how to use with hg.
4861         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4862
4863 2012-03-18  Mark Wielaard  <mark@klomp.org>
4864
4865         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4866
4867 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4868
4869         git-version-gen: don't let "prefix" envvar cause trouble
4870         * build-aux/git-version-gen (prefix): Initialize properly,
4871         so as not to use a value specified via the environment.
4872         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4873
4874 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4875
4876         regex: diagnose too-large repeat counts in EREs
4877         Previously, the code did not diagnose the too-large repeat count
4878         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4879         as if it were 'b\{1000000000}', which is unexpected.
4880         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4881         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4882         is a reasonable one for this problem.  Another option would be to
4883         create a new REG_OVERFLOW error for repeat counts that are too large.
4884         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4885         count is too large, so that the caller can distinguish the two cases.
4886         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4887         "Too large" return code, and that repeat counts are one example of this.
4888
4889 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4890
4891         doc: some glibc x32 integer width issues
4892         * doc/posix-headers/sys_types.texi (sys/types.h):
4893         * doc/posix-headers/time.texi (time.h):
4894         Mention that glibc x32 does not conform to POSIX in a couple of
4895         areas related to integer widths.
4896
4897 2012-03-15  Bruno Haible  <bruno@clisp.org>
4898
4899         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4900         * lib/fma.c (VOLATILE): New macro.
4901         (FUNC): Use it to work around a GCC compiler bug.
4902
4903 2012-03-13  Bruno Haible  <bruno@clisp.org>
4904
4905         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4906         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4907         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4908         REPLACE_HYPOTL to 1.
4909         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4910
4911 2012-03-13  Bruno Haible  <bruno@clisp.org>
4912
4913         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4914         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4915         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4916         REPLACE_REMAINDERL to 1.
4917         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4918         bug.
4919
4920 2012-03-13  Bruno Haible  <bruno@clisp.org>
4921
4922         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4923         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4924         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4925         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4926         too big rounding errors.
4927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4928         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4929         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4930         (Depends-on): Update conditions.
4931         * tests/test-sqrtl.c (my_ldexpl): New function.
4932         (main): Add test of a particular value.
4933         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4934
4935 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4936
4937         doc: Update timer_* platform portability notes.
4938         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4939         that always return ENOSYS.
4940         * doc/posix-functions/timer_delete.texi: Likewise.
4941         * doc/posix-functions/timer_gettime.texi: Likewise.
4942         * doc/posix-functions/timer_settime.texi: Likewise.
4943
4944 2012-03-13  Bruno Haible  <bruno@clisp.org>
4945
4946         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4947         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4948         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4949         REPLACE_CBRTL to 1.
4950         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4951
4952 2012-03-13  Bruno Haible  <bruno@clisp.org>
4953
4954         remainderl: Avoid compilation error on AIX >= 5.2.
4955         * lib/math.in.h (remainderl): Undefine macro from the system header.
4956
4957 2012-03-13  Bruno Haible  <bruno@clisp.org>
4958
4959         Avoid compilation errors with MSVC option -fp:strict.
4960         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4961         * lib/cbrtf.c: Likewise.
4962         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4963
4964 2012-03-12  Bruno Haible  <bruno@clisp.org>
4965
4966         uninorm: Don't crash in out-of-memory conditions.
4967         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4968         gracefully.
4969         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4970         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4971
4972 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4973
4974         quote: fix syntax-check
4975         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4976         also exports quote_quoting_options.
4977
4978 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4979
4980         Collapse list of copyright years to ranges.  See
4981         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4982         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4983         build-aux/csharpexec.sh.in, build-aux/gnupload,
4984         build-aux/install-reloc, build-aux/javacomp.sh.in,
4985         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4986         build-aux/move-if-change, build-aux/reloc-ldflags,
4987         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4988
4989 2012-03-11  Bruno Haible  <bruno@clisp.org>
4990
4991         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4992         * m4/log2f-ieee.m4: New file.
4993         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4994         whether log2f works with a minus zero argument. Replace it if not.
4995         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4996         (Depends-on): Add log2-ieee.
4997         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4998         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4999
5000         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5001         * m4/log2-ieee.m4: New file.
5002         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5003         whether log2 works with a minus zero argument. Replace it if not.
5004         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5005         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5006         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5007
5008         Tests for module 'log2l-ieee'.
5009         * modules/log2l-ieee-tests: New file.
5010         * tests/test-log2l-ieee.c: New file.
5011
5012         New module 'log2l-ieee'.
5013         * modules/log2l-ieee: New file.
5014
5015         Tests for module 'log2-ieee'.
5016         * modules/log2-ieee-tests: New file.
5017         * tests/test-log2-ieee.c: New file.
5018
5019         New module 'log2-ieee'.
5020         * modules/log2-ieee: New file.
5021
5022         Tests for module 'log2f-ieee'.
5023         * modules/log2f-ieee-tests: New file.
5024         * tests/test-log2f-ieee.c: New file.
5025         * tests/test-log2-ieee.h: New file.
5026
5027         New module 'log2f-ieee'.
5028         * modules/log2f-ieee: New file.
5029
5030 2012-03-11  Bruno Haible  <bruno@clisp.org>
5031
5032         Tests for module 'log2l'.
5033         * modules/log2l-tests: New file.
5034         * tests/test-log2l.c: New file.
5035
5036         New module 'log2l'.
5037         * lib/math.in.h (log2l): New declaration.
5038         * lib/log2l.c: New file.
5039         * m4/log2l.m4: New file.
5040         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5042         REPLACE_LOG2L.
5043         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5044         REPLACE_LOG2L.
5045         * modules/log2l: New file.
5046         * tests/test-math-c++.cc: Check the declaration of log2l.
5047         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5048         and OSF/1 problems.
5049
5050 2012-03-11  Bruno Haible  <bruno@clisp.org>
5051
5052         Tests for module 'log2f'.
5053         * modules/log2f-tests: New file.
5054         * tests/test-log2f.c: New file.
5055
5056         New module 'log2f'.
5057         * lib/math.in.h (log2f): New declaration.
5058         * lib/log2f.c: New file.
5059         * m4/log2f.m4: New file.
5060         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5062         REPLACE_LOG2F.
5063         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5064         REPLACE_LOG2F.
5065         * modules/log2f: New file.
5066         * tests/test-math-c++.cc: Check the declaration of log2f.
5067         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5068         and OSF/1 and Cygwin problems.
5069
5070 2012-03-11  Bruno Haible  <bruno@clisp.org>
5071
5072         Tests for module 'log2'.
5073         * modules/log2-tests: New file.
5074         * tests/test-log2.c: New file.
5075         * tests/test-log2.h: New file.
5076
5077         New module 'log2'.
5078         * lib/math.in.h (log2): New declaration.
5079         * lib/log2.c: New file.
5080         * m4/log2.m4: New file.
5081         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5083         REPLACE_LOG2.
5084         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5085         REPLACE_LOG2.
5086         * modules/log2: New file.
5087         * tests/test-math-c++.cc: Check the declaration of log2.
5088         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5089         and OSF/1 and Cygwin problems.
5090
5091 2012-03-11  Bruno Haible  <bruno@clisp.org>
5092
5093         exp2* tests: More tests.
5094         * tests/test-exp2.h (test_function): Test all integral arguments that
5095         don't need to overflow or denormalized numbers.
5096         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5097         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5098         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5099
5100 2012-03-10  Bruno Haible  <bruno@clisp.org>
5101
5102         log1pl-ieee: Work around test failure on AIX 7.1.
5103         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5104
5105         log1pl-ieee: Work around test failure on IRIX 6.5.
5106         * m4/log1pl-ieee.m4: New file.
5107         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5108         test whether log1pl works with a minus zero argument. Replace it if
5109         not.
5110         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5112         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5113         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5114         (Depends-on): Update conditions.
5115         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5116         m4/signbit.m4.
5117         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5118         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5119
5120         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5121         * m4/log1pf-ieee.m4: New file.
5122         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5123         test whether log1pf works with a minus zero argument. Replace it if
5124         not.
5125         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5126         m4/signbit.m4.
5127         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5128         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5129
5130         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5131         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5132         (configure.ac): Require gl_FUNC_LOG1PF.
5133
5134         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5135         * m4/log1p-ieee.m4: New file.
5136         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5137         whether log1p works with a minus zero argument. Replace it if not.
5138         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5140         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5141         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5142         (Depends-on): Update conditions.
5143         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5144         m4/signbit.m4.
5145         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5146         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5147
5148         Tests for module 'log1pl-ieee'.
5149         * modules/log1pl-ieee-tests: New file.
5150         * tests/test-log1pl-ieee.c: New file.
5151
5152         New module 'log1pl-ieee'.
5153         * modules/log1pl-ieee: New file.
5154
5155         Tests for module 'log1p-ieee'.
5156         * modules/log1p-ieee-tests: New file.
5157         * tests/test-log1p-ieee.c: New file.
5158
5159         New module 'log1p-ieee'.
5160         * modules/log1p-ieee: New file.
5161
5162         Tests for module 'log1pf-ieee'.
5163         * modules/log1pf-ieee-tests: New file.
5164         * tests/test-log1pf-ieee.c: New file.
5165         * tests/test-log1p-ieee.h: New file.
5166
5167         New module 'log1pf-ieee'.
5168         * modules/log1pf-ieee: New file.
5169
5170 2012-03-10  Bruno Haible  <bruno@clisp.org>
5171
5172         Tests for module 'log1pl'.
5173         * modules/log1pl-tests: New file.
5174         * tests/test-log1pl.c: New file.
5175
5176         New module 'log1pl'.
5177         * lib/math.in.h (log1pl): New declaration.
5178         * lib/log1pl.c: New file.
5179         * m4/log1pl.m4: New file.
5180         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5182         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5183         * modules/log1pl: New file.
5184         * tests/test-math-c++.cc: Check the declaration of log1pl.
5185         * doc/posix-functions/log1pl.texi: Mention the new module.
5186
5187 2012-03-10  Bruno Haible  <bruno@clisp.org>
5188
5189         Tests for module 'log1pf'.
5190         * modules/log1pf-tests: New file.
5191         * tests/test-log1pf.c: New file.
5192
5193         New module 'log1pf'.
5194         * lib/math.in.h (log1pf): New declaration.
5195         * lib/log1pf.c: New file.
5196         * m4/log1pf.m4: New file.
5197         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5199         REPLACE_LOG1PF.
5200         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5201         REPLACE_LOG1PF.
5202         * modules/log1pf: New file.
5203         * tests/test-math-c++.cc: Check the declaration of log1pf.
5204         * doc/posix-functions/log1pf.texi: Mention the new module.
5205
5206 2012-03-10  Bruno Haible  <bruno@clisp.org>
5207
5208         log1p tests: More tests.
5209         * tests/test-log1p.h: New file.
5210         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5211         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5212         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5213         (main): Invoke test_function.
5214
5215         log1p: Provide replacement for Minix and MSVC.
5216         * lib/math.in.h (log1p): New declaration.
5217         * lib/log1p.c: New file.
5218         * m4/log1p.m4: New file.
5219         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5221         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5222         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5223         (Depends-on): Add math, isnand, log, round.
5224         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5225         HAVE_LOG1P is 0.
5226         * tests/test-math-c++.cc: Check the declaration of log1p.
5227         * doc/posix-functions/log1p.texi: Mention the replacement.
5228
5229 2012-03-10  Bruno Haible  <bruno@clisp.org>
5230
5231         math tests: Small simplification.
5232         * tests/test-exp.h (test_function): Use the same err_bound for
5233         'double' on platforms with sizeof (long double) == sizeof (double)
5234         than on platforms with sizeof (long double) > sizeof (double).
5235         * tests/test-exp2.h (test_function): Likewise.
5236         * tests/test-expm1.h (test_function): Likewise.
5237         * tests/test-log.h (test_function): Likewise.
5238
5239 2012-03-10  Bruno Haible  <bruno@clisp.org>
5240
5241         Fix some comments.
5242         * lib/expl.c: Fix an ambiguous comment.
5243         * lib/expm1.c: Likewise.
5244         * lib/expm1l.c: Likewise.
5245         * lib/exp2.c: Likewise.
5246         * lib/exp2l.c: Likewise.
5247
5248 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5249
5250         regex: allow inclusion of <regex.h> before <limits.h>
5251         Without this patch, portable programs had to include <limits.h> before
5252         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5253         I ran into this problem with a test version of GNU grep on Solaris 8.
5254         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5255         This is done conditionally so that this change can be merged
5256         back to glibc.
5257         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5258         using the included regex.
5259
5260         fts: depend on fdopendir
5261         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5262         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5263         problem was introduced when fdopendir was split out.
5264
5265 2012-03-10  Bruno Haible  <bruno@clisp.org>
5266
5267         Remove unused variables.
5268         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5269         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5270
5271 2012-03-10  Bruno Haible  <bruno@clisp.org>
5272
5273         isnanf-nolibm: Fix last commit.
5274         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5275
5276         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5277         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5278
5279 2012-03-10  Bruno Haible  <bruno@clisp.org>
5280
5281         logf-ieee: Work around test failure on NetBSD 5.1.
5282         * m4/logf-ieee.m4: New file.
5283         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5284         whether logf works with a negative argument. Replace it if not.
5285         * lib/logf.c (logf): For negative arguments, return NaN.
5286         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5287         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5288         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5289
5290         logf-ieee: Work around test failure on Solaris 9.
5291         * modules/logf-ieee (Depends-on): Add log-ieee.
5292         (configure.ac): Require gl_FUNC_LOGF.
5293
5294         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5295         * m4/log-ieee.m4: New file.
5296         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5297         log works with a negative argument. Replace it if not.
5298         * lib/log.c (log): For negative arguments, return NaN.
5299         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5300         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5301         * doc/posix-functions/log.texi: Mention the log-ieee module.
5302
5303         Tests for module 'logl-ieee'.
5304         * modules/logl-ieee-tests: New file.
5305         * tests/test-logl-ieee.c: New file.
5306
5307         New module 'logl-ieee'.
5308         * modules/logl-ieee: New file.
5309
5310         Tests for module 'log-ieee'.
5311         * modules/log-ieee-tests: New file.
5312         * tests/test-log-ieee.c: New file.
5313
5314         New module 'log-ieee'.
5315         * modules/log-ieee: New file.
5316
5317         Tests for module 'logf-ieee'.
5318         * modules/logf-ieee-tests: New file.
5319         * tests/test-logf-ieee.c: New file.
5320         * tests/test-log-ieee.h: New file.
5321
5322         New module 'logf-ieee'.
5323         * modules/logf-ieee: New file.
5324
5325 2012-03-10  Bruno Haible  <bruno@clisp.org>
5326
5327         log: Fix bug introduced on 2012-03-09.
5328         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5329
5330 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5331
5332         timer-time: link explicitly with pthreads on glibc
5333         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5334         to support static linking, when newer glibc is
5335         detected, as that contains pthread emulation of
5336         POSIX timer functions where required.
5337         * modules/timer-time: Depend on threadlib to
5338         pull in the appropriate library to link.
5339
5340 2012-03-10  Bruno Haible  <bruno@clisp.org>
5341
5342         log* tests: More tests.
5343         * tests/test-log.h: New file.
5344         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5345         (main): Invoke test_function.
5346         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5347         (main): Invoke test_function.
5348         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5349         (main): Invoke test_function.
5350         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5351         tests/randomd.c.
5352         (Makefile.am): Add randomd.c to test_log_SOURCES.
5353         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5354         tests/randomf.c.
5355         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5356         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5357         tests/randoml.c.
5358         (Depends-on): Add 'float'.
5359         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5360
5361 2012-03-09  Bruno Haible  <bruno@clisp.org>
5362
5363         logl: Work around OSF/1 5.1 bug.
5364         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5365         * lib/logl.c (logl): If logl exists, use it and provide just the
5366         workaround.
5367         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5368         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5370         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5371         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5372         (Depends-on): Update conditions.
5373         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5374
5375 2012-03-09  Bruno Haible  <bruno@clisp.org>
5376
5377         logf: Work around OSF/1 5.1 bug.
5378         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5379         * lib/logf.c (logf): If logf exists, use it and provide just the
5380         workaround.
5381         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5382         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5384         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5385         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5386         (Depends-on): Update conditions.
5387         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5388
5389 2012-03-09  Bruno Haible  <bruno@clisp.org>
5390
5391         log: Work around OSF/1 5.1 bug.
5392         * lib/math.in.h (log): New declaration.
5393         * lib/log.c: New file.
5394         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5395         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5396         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5398         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5399         * modules/log (Files): Add lib/log.c.
5400         (Depends-on): Add math.
5401         (configure.ac): If REPLACE_LOG is 1, compile an override.
5402         * tests/test-math-c++.cc: Check the declaration of log.
5403         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5404
5405 2012-03-09  Jim Meyering  <meyering@redhat.com>
5406
5407         readtokens.c: adjust wording in a comment
5408         * lib/readtokens.c: Insert omitted "that" in a comment.
5409
5410 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5411
5412         modechange: add notations +40, 00440, etc.
5413         * lib/modechange.c (mode_compile): Support new notations
5414         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5415
5416 2012-03-08  Bruno Haible  <bruno@clisp.org>
5417
5418         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5419         * m4/exp2l-ieee.m4: New file.
5420         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5421         test whether exp2l works with a NaN argument and with a negative
5422         infinity argument. Replace it if not.
5423         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5425         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5426         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5427         (Depends-on): Update conditions.
5428         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5429         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5430         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5431
5432         Tests for module 'exp2l-ieee'.
5433         * modules/exp2l-ieee-tests: New file.
5434         * tests/test-exp2l-ieee.c: New file.
5435
5436         New module 'exp2l-ieee'.
5437         * modules/exp2l-ieee: New file.
5438
5439         Tests for module 'exp2-ieee'.
5440         * modules/exp2-ieee-tests: New file.
5441         * tests/test-exp2-ieee.c: New file.
5442
5443         New module 'exp2-ieee'.
5444         * modules/exp2-ieee: New file.
5445
5446         Tests for module 'exp2f-ieee'.
5447         * modules/exp2f-ieee-tests: New file.
5448         * tests/test-exp2f-ieee.c: New file.
5449         * tests/test-exp2-ieee.h: New file.
5450
5451         New module 'exp2f-ieee'.
5452         * modules/exp2f-ieee: New file.
5453
5454 2012-03-08  Bruno Haible  <bruno@clisp.org>
5455
5456         Tests for module 'exp2l'.
5457         * modules/exp2l-tests: New file.
5458         * tests/test-exp2l.c: New file.
5459
5460         New module 'exp2l'.
5461         * lib/math.in.h (exp2l): New declaration.
5462         * lib/exp2l.c: New file.
5463         * lib/expl-table.c: New file, extracted from lib/expl.c.
5464         * lib/expl.c (gl_expl_table): New declaration.
5465         (expl): Remove expl_table. Update reference.
5466         * m4/exp2l.m4: New file.
5467         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5469         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5470         * modules/exp2l: New file.
5471         * modules/expl (Files): Add lib/expl-table.c.
5472         (configure.ac): Compile also expl-table.c.
5473         * tests/test-math-c++.cc: Check the declaration of exp2l.
5474         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5475         problem.
5476
5477 2012-03-08  Bruno Haible  <bruno@clisp.org>
5478
5479         Tests for module 'exp2f'.
5480         * modules/exp2f-tests: New file.
5481         * tests/test-exp2f.c: New file.
5482
5483         New module 'exp2f'.
5484         * lib/math.in.h (exp2f): New declaration.
5485         * lib/exp2f.c: New file.
5486         * m4/exp2f.m4: New file.
5487         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5489         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5490         * modules/exp2f: New file.
5491         * tests/test-math-c++.cc: Check the declaration of exp2f.
5492         * doc/posix-functions/exp2f.texi: Mention the new module and the
5493         IRIX problem.
5494
5495 2012-03-08  Bruno Haible  <bruno@clisp.org>
5496
5497         Tests for module 'exp2'.
5498         * modules/exp2-tests: New file.
5499         * tests/test-exp2.c: New file.
5500         * tests/test-exp2.h: New file.
5501
5502         New module 'exp2'.
5503         * lib/math.in.h (exp2): New declaration.
5504         * lib/exp2.c: New file.
5505         * m4/exp2.m4: New file.
5506         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5508         REPLACE_EXP2.
5509         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5510         REPLACE_EXP2.
5511         * modules/exp2: New file.
5512         * tests/test-math-c++.cc: Check the declaration of exp2.
5513         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5514         and OpenBSD problems.
5515
5516 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5517
5518         savedir: fix comment typo
5519         * lib/savedir.c (savedirstream): Fix typo in comment.
5520
5521 2012-03-08  Bruno Haible  <bruno@clisp.org>
5522
5523         test-readtokens.c: use const; remove unwarranted cast
5524         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5525
5526 2012-03-08  Bruno Haible  <bruno@clisp.org>
5527
5528         fmal: Avoid compilation error on AIX.
5529         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5530         AIX 5.2..7.1.
5531
5532 2012-03-08  Bruno Haible  <bruno@clisp.org>
5533
5534         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5535         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5536         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5537         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5538         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5539         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5540         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5541
5542 2012-03-08  Bruno Haible  <bruno@clisp.org>
5543
5544         remainderf: Override buggy system function on IRIX 6.5.
5545         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5546         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5547         when it exists.
5548         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5549
5550 2012-03-08  Jim Meyering  <meyering@redhat.com>
5551
5552         test-readtokens.c: avoid const-related compilation warnings
5553         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5554
5555 2012-03-07  Jim Meyering  <meyering@redhat.com>
5556             Bruno Haible  <bruno@clisp.org>
5557
5558         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5559         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5560         tests/randomd.c.
5561         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5562         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5563         tests/randoml.c.
5564         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5565
5566 2012-03-07  Bruno Haible  <bruno@clisp.org>
5567
5568         expm1l: Avoid compilation error on AIX.
5569         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5570         AIX 5.2..7.1.
5571
5572 2012-03-07  Bruno Haible  <bruno@clisp.org>
5573
5574         expm1l: Don't override undeclared system function on IRIX 6.5.
5575         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5576         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5577         it exists. Set HAVE_DECL_EXPM1L.
5578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5579         HAVE_EXPM1L.
5580         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5581         HAVE_EXPM1L.
5582         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5583
5584 2012-03-07  Bruno Haible  <bruno@clisp.org>
5585
5586         remainderl: Don't override undeclared system function on IRIX 6.5.
5587         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5588         HAVE_REMAINDERL.
5589         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5590         declared when it exists. Set HAVE_DECL_REMAINDERL.
5591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5592         not HAVE_REMAINDERL.
5593         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5594         HAVE_REMAINDERL.
5595         * doc/posix-functions/remainderl.texi: Mention missing declaration
5596         problem.
5597
5598 2012-03-07  Bruno Haible  <bruno@clisp.org>
5599
5600         rintf: Don't override undeclared system function on IRIX 6.5.
5601         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5602         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5603         exists. Set HAVE_DECL_RINTF.
5604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5605         HAVE_RINTF.
5606         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5607         HAVE_RINTF.
5608         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5609
5610 2012-03-07  Bruno Haible  <bruno@clisp.org>
5611
5612         roundl: Avoid compilation error on AIX.
5613         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5614         AIX 5.2..7.1.
5615
5616 2012-03-07  Bruno Haible  <bruno@clisp.org>
5617
5618         roundl: Don't override undeclared system function on IRIX 6.5.
5619         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5620         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5621         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5622         * modules/roundl (configure.ac): For replacement code, test
5623         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5624         (Depends-on): Update conditions.
5625         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5626
5627 2012-03-07  Bruno Haible  <bruno@clisp.org>
5628
5629         roundf: Don't override undeclared system function on IRIX 6.5.
5630         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5631         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5632         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5633         * modules/roundf (configure.ac): For replacement code, test
5634         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5635         (Depends-on): Update conditions.
5636         * modules/roundf-ieee (Depends-on): Update conditions.
5637         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5638
5639 2012-03-07  Bruno Haible  <bruno@clisp.org>
5640
5641         round: Don't override undeclared system function on IRIX 6.5.
5642         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5643         argument.
5644         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5645         also when it is not declared. Set HAVE_ROUND. For replacement code,
5646         test HAVE_ROUND, not HAVE_DECL_ROUND.
5647         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5648         not HAVE_DECL_ROUND.
5649         (Depends-on): Update conditions.
5650         * modules/round-ieee (Depends-on): Update conditions.
5651         * doc/posix-functions/round.texi: Mention the IRIX problem.
5652
5653 2012-03-07  Bruno Haible  <bruno@clisp.org>
5654
5655         copysignf: Don't override undeclared system function on IRIX 6.5.
5656         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5657         HAVE_COPYSIGNF.
5658         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5659         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5661         not HAVE_COPYSIGNF.
5662         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5663         HAVE_COPYSIGNF.
5664         * doc/posix-functions/copysignf.texi: Mention missing declaration
5665         problem.
5666
5667 2012-03-07  Jim Meyering  <meyering@redhat.com>
5668
5669         readtokens: add tests
5670         * modules/readtokens-tests: New file.
5671         * tests/test-readtokens.c: New file.
5672
5673 2012-03-07  Jim Meyering  <meyering@redhat.com>
5674
5675         quotearg: the module must now include quote.h
5676         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5677         So must the module.
5678         * modules/quotearg (Files): Add quote.h.
5679
5680 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5681
5682         readtokens: avoid core dumps with unusual calling patterns
5683         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5684         * lib/readtokens.c: Include limits.h.
5685         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5686         (readtoken): Don't cache the delimiters; the cache code was buggy
5687         if !delim && saved_delim, or if the new n_delim differs from the old.
5688         Also, it wasn't thread-safe.
5689
5690 2012-03-07  Bruno Haible  <bruno@clisp.org>
5691
5692         quote: Adhere to common module description layout.
5693         * modules/quote (Makefile.am): Add back empty section.
5694
5695 2012-03-06  Akim Demaille  <demaille@gostai.com>
5696
5697         quote: fuse into quotearg
5698         This patch is made for the benefit of Bison.
5699         quote does not leave the choice of the quoting style to the user.
5700         quoting_style provides poor customizability, yet quoting_options,
5701         which is very rich, is hidden inside quotearg.c.  So in order to
5702         allow quote customization, move its implementation to quotearg.c.
5703         * lib/quote.c: Remove.
5704         * modules/quote: Adjust.
5705         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5706         warning: provide all the members of literal structs.
5707         (quote_quoting_options): New.
5708         (quote, quote_n): Import implementation from quote.c.
5709         * lib/quote.h: Import the comments from quote.c.
5710         (quote_quoting_options): New.
5711
5712 2012-03-06  Bruno Haible  <bruno@clisp.org>
5713
5714         Tests for module 'expm1l-ieee'.
5715         * modules/expm1l-ieee-tests: New file.
5716         * tests/test-expm1l-ieee.c: New file.
5717
5718         New module 'expm1l-ieee'.
5719         * modules/expm1l-ieee: New file.
5720
5721         Tests for module 'expm1f-ieee'.
5722         * modules/expm1f-ieee-tests: New file.
5723         * tests/test-expm1f-ieee.c: New file.
5724
5725         New module 'expm1f-ieee'.
5726         * modules/expm1f-ieee: New file.
5727
5728         Tests for module 'expm1-ieee'.
5729         * modules/expm1-ieee-tests: New file.
5730         * tests/test-expm1-ieee.c: New file.
5731         * tests/test-expm1-ieee.h: New file.
5732
5733         New module 'expm1-ieee'.
5734         * modules/expm1-ieee: New file.
5735         * m4/expm1-ieee.m4: New file.
5736         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5737         whether expm1 works with a minus zero argument. Replace it if not.
5738         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5740         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5741         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5742         (Depends-on): Update conditions.
5743         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5744         AIX problem.
5745
5746 2012-03-06  Bruno Haible  <bruno@clisp.org>
5747
5748         Work around expm1f bug on IRIX 6.5.
5749         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5750         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5751         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5752         not work.
5753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5754         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5755         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5756         (Depends-on): Update conditions.
5757         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5758
5759 2012-03-06  Bruno Haible  <bruno@clisp.org>
5760
5761         Tests for module 'expm1l'.
5762         * modules/expm1l-tests: New file.
5763         * tests/test-expm1l.c: New file.
5764
5765         New module 'expm1l'.
5766         * lib/math.in.h (expm1l): New declaration.
5767         * lib/expm1l.c: New file.
5768         * m4/expm1l.m4: New file.
5769         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5771         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5772         * modules/expm1l: New file.
5773         * tests/test-math-c++.cc: Check the declaration of expm1l.
5774         * doc/posix-functions/expm1l.texi: Mention the new module.
5775
5776 2012-03-06  Bruno Haible  <bruno@clisp.org>
5777
5778         Tests for module 'expm1f'.
5779         * modules/expm1f-tests: New file.
5780         * tests/test-expm1f.c: New file.
5781
5782         New module 'expm1f'.
5783         * lib/math.in.h (expm1f): New declaration.
5784         * lib/expm1f.c: New file.
5785         * m4/expm1f.m4: New file.
5786         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5788         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5789         * modules/expm1f: New file.
5790         * tests/test-math-c++.cc: Check the declaration of expm1f.
5791         * doc/posix-functions/expm1f.texi: Mention the new module.
5792
5793 2012-03-06  Bruno Haible  <bruno@clisp.org>
5794
5795         Tests for module 'expm1'.
5796         * modules/expm1-tests: New file.
5797         * tests/test-expm1.c: New file.
5798         * tests/test-expm1.h: New file.
5799
5800         New module 'expm1'.
5801         * lib/math.in.h (expm1): New declaration.
5802         * lib/expm1.c: New file.
5803         * m4/expm1.m4: New file.
5804         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5806         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5807         * modules/expm1: New file.
5808         * tests/test-math-c++.cc: Check the declaration of expm1.
5809         * doc/posix-functions/expm1.texi: Mention the new module.
5810
5811 2012-03-06  Bruno Haible  <bruno@clisp.org>
5812
5813         math: Ensure declarations of math functions.
5814         * modules/acosf (Depends-on): Add 'extensions'.
5815         * modules/asinf (Depends-on): Likewise.
5816         * modules/atan2f (Depends-on): Likewise.
5817         * modules/atanf (Depends-on): Likewise.
5818         * modules/cbrt (Depends-on): Likewise.
5819         * modules/cbrtf (Depends-on): Likewise.
5820         * modules/cbrtl (Depends-on): Likewise.
5821         * modules/copysignf (Depends-on): Likewise.
5822         * modules/copysignl (Depends-on): Likewise.
5823         * modules/cosf (Depends-on): Likewise.
5824         * modules/coshf (Depends-on): Likewise.
5825         * modules/expf (Depends-on): Likewise.
5826         * modules/fabsf (Depends-on): Likewise.
5827         * modules/fabsl (Depends-on): Likewise.
5828         * modules/fmaf (Depends-on): Likewise.
5829         * modules/fmal (Depends-on): Likewise.
5830         * modules/fmodf (Depends-on): Likewise.
5831         * modules/fmodl (Depends-on): Likewise.
5832         * modules/frexpf (Depends-on): Likewise.
5833         * modules/frexpl (Depends-on): Likewise.
5834         * modules/hypot (Depends-on): Likewise.
5835         * modules/hypotf (Depends-on): Likewise.
5836         * modules/hypotl (Depends-on): Likewise.
5837         * modules/ldexpf (Depends-on): Likewise.
5838         * modules/ldexpl (Depends-on): Likewise.
5839         * modules/log10f (Depends-on): Likewise.
5840         * modules/log10l (Depends-on): Likewise.
5841         * modules/log1p (Depends-on): Likewise.
5842         * modules/logb (Depends-on): Likewise.
5843         * modules/logf (Depends-on): Likewise.
5844         * modules/modff (Depends-on): Likewise.
5845         * modules/modfl (Depends-on): Likewise.
5846         * modules/powf (Depends-on): Likewise.
5847         * modules/remainderf (Depends-on): Likewise.
5848         * modules/remainderl (Depends-on): Likewise.
5849         * modules/rintf (Depends-on): Likewise.
5850         * modules/rintl (Depends-on): Likewise.
5851         * modules/sinf (Depends-on): Likewise.
5852         * modules/sinhf (Depends-on): Likewise.
5853         * modules/sqrtf (Depends-on): Likewise.
5854         * modules/tanf (Depends-on): Likewise.
5855         * modules/tanhf (Depends-on): Likewise.
5856         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5857         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5858         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5859         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5860         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5861         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5862         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5863         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5864         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5865         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5866         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5867         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5868         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5869         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5870         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5871         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5872         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5873         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5874         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5875         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5876         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5877         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5878         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5879         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5880         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5881         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5882         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5883         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5884         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5885         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5886         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5887         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5888         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5889         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5890         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5891         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5892         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5893         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5894         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5895         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5896         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5897
5898 2012-03-06  Bruno Haible  <bruno@clisp.org>
5899
5900         math: Update module names in warnings.
5901         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5902         tanl): Use specific module name in warn-on-use warning.
5903
5904 2012-03-06  Bruno Haible  <bruno@clisp.org>
5905
5906         expl: Simplify computation.
5907         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5908
5909 2012-03-05  Bruno Haible  <bruno@clisp.org>
5910
5911         exp* tests: More tests.
5912         * tests/test-exp.h: New file.
5913         * tests/test-exp.c: Include <float.h> and test-exp.h.
5914         (main): Invoke test_function.
5915         * tests/test-expf.c: Include <float.h> and test-exp.h.
5916         (main): Invoke test_function.
5917         * tests/test-expl.c: Include <float.h> and test-exp.h.
5918         (main): Invoke test_function.
5919         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5920         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5921         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5922         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5923         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5924         (Depends-on): Add 'float'.
5925         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5926
5927         expl: Fix precision of computed result.
5928         * lib/expl.c: Completely rewritten.
5929         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5930         (Maintainer): Add me.
5931         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5932
5933 2012-03-05  Bruno Haible  <bruno@clisp.org>
5934
5935         cbrt* tests: More tests.
5936         * tests/test-cbrt.h: New file.
5937         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5938         (main): Invoke test_function.
5939         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5940         (main): Invoke test_function.
5941         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5942         (main): Invoke test_function.
5943         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5944         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5945         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5946         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5947         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5948         (Depends-on): Add 'float'.
5949         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5950
5951 2012-03-05  Bruno Haible  <bruno@clisp.org>
5952
5953         hypot* tests: More tests.
5954         * tests/test-hypot.h: New file, partially extracted from
5955         tests/test-hypotl.c.
5956         * tests/test-hypot.c: Include test-hypot.h.
5957         (main): Invoke test_function.
5958         * tests/test-hypotf.c: Include test-hypot.h.
5959         (main): Invoke test_function.
5960         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5961         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5962         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5963         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5964         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5965         tests/randomf.c.
5966         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5967         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5968         tests/randoml.c.
5969         (Depends-on): Add 'fpucw', 'float'.
5970         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5971
5972 2012-03-05  Bruno Haible  <bruno@clisp.org>
5973
5974         fpucw: Doc about FreeBSD.
5975         * lib/fpucw.h: Mention FreeBSD in comments.
5976
5977 2012-03-04  Bruno Haible  <bruno@clisp.org>
5978
5979         sqrt* tests: More tests.
5980         * tests/test-sqrt.h: New file.
5981         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5982         (main): Invoke test_function.
5983         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5984         (main): Invoke test_function.
5985         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5986         (main): Invoke test_function.
5987         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5988         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5989         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5990         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5991         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5992         (Depends-on): Add 'float'.
5993         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5994
5995 2012-03-04  Bruno Haible  <bruno@clisp.org>
5996
5997         remainder* tests: More tests.
5998         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5999         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6000         (main): Invoke test_function.
6001         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6002         (main): Invoke test_function.
6003         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6004         (main): Invoke test_function.
6005         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6006         tests/randomd.c.
6007         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6008         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6009         tests/randomf.c.
6010         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6011         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6012         tests/randoml.c.
6013         (Depends-on): Add 'float'.
6014         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6015
6016 2012-03-04  Bruno Haible  <bruno@clisp.org>
6017
6018         remainder, remainderf, remainderl: Fix computation for large quotients.
6019         * lib/remainder.c: Completely rewritten.
6020         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6021         USE_FLOAT.
6022         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6023         USE_LONG_DOUBLE.
6024         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6025         isnand, isinf. Remove round, fma.
6026         * modules/remainderf (Files): Add lib/remainder.c.
6027         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6028         Remove roundf, fmaf.
6029         * modules/remainderl (Files): Add lib/remainder.c.
6030         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6031         isinf. Remove roundl, fmal.
6032         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6033         REMAINDER_LIBM.
6034         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6035         REMAINDERF_LIBM.
6036         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6037         REMAINDERL_LIBM.
6038
6039 2012-03-04  Bruno Haible  <bruno@clisp.org>
6040
6041         fmod* tests: More tests.
6042         * tests/test-fmod.h (my_ldexp): New function.
6043         (test_function): Reduce amount of random numbers to test. Add tests
6044         of very large quotients x / y.
6045         * tests/test-fmod.c (MAX_EXP): New macro.
6046         * tests/test-fmodf.c (MAX_EXP): Likewise.
6047         * tests/test-fmodl.c (MAX_EXP): Likewise.
6048
6049 2012-03-04  Bruno Haible  <bruno@clisp.org>
6050
6051         fmod, fmodl: Fix computation for large quotients x / y.
6052         * lib/fmod.c: Completely rewritten.
6053         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6054         USE_LONG_DOUBLE.
6055         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6056         isnand. Remove fma.
6057         * modules/fmodl (Files): Add lib/fmod.c.
6058         (Depends-on): Add float, isfinite, signbit, fabsl,
6059         frexpl, ldexpl, isnanl. Remove fma.
6060         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6061         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6062
6063 2012-03-03  Bruno Haible  <bruno@clisp.org>
6064
6065         fmod* tests: More tests.
6066         * tests/test-fmod.h: New file.
6067         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6068         (main): Invoke test_function.
6069         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6070         (main): Invoke test_function.
6071         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6072         (main): Invoke test_function.
6073         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6074         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6075         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6076         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6077         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6078         (Depends-on): Add 'float'.
6079         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6080
6081 2012-03-03  Bruno Haible  <bruno@clisp.org>
6082
6083         rint* tests: More tests.
6084         * tests/test-rint.h: New file, partially extracted from
6085         tests/test-rintl.c.
6086         * tests/test-rint.c: Include test-rint.h.
6087         (main): Invoke test_function.
6088         * tests/test-rintf.c: Include test-rint.h.
6089         (main): Invoke test_function.
6090         * tests/test-rintl.c: Include test-rint.h.
6091         (main): Invoke test_function.
6092         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6093         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6094         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6095         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6096         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6097         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6098
6099 2012-03-03  Bruno Haible  <bruno@clisp.org>
6100
6101         modf* tests: More tests.
6102         * tests/test-modf.h: New file.
6103         * tests/test-modf.c: Include <float.h> and test-modf.h.
6104         (main): Invoke test_function.
6105         * tests/test-modff.c: Include <float.h> and test-modf.h.
6106         (main): Invoke test_function.
6107         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6108         (main): Invoke test_function.
6109         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6110         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6111         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6112         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6113         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6114         (Depends-on): Add 'float'.
6115         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6116
6117 2012-03-03  Bruno Haible  <bruno@clisp.org>
6118
6119         fabs* tests: More tests.
6120         * tests/test-fabs.h: New file, partially extracted from
6121         tests/test-fabsl.c.
6122         * tests/test-fabs.c (RANDOM): New macro.
6123         * tests/test-fabsf.c (RANDOM): New macro.
6124         * tests/test-fabsl.c (RANDOM): New macro.
6125         * modules/fabs-tests (Files): Add tests/randomd.c.
6126         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6127         * modules/fabsf-tests (Files): Add tests/randomf.c.
6128         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6129         * modules/fabsl-tests (Files): Add tests/randoml.c.
6130         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6131
6132 2012-03-03  Bruno Haible  <bruno@clisp.org>
6133
6134         ldexp* tests: More tests.
6135         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6136         * tests/test-ldexp.c (RANDOM): New macro.
6137         * tests/test-ldexpf.c (RANDOM): New macro.
6138         * tests/test-ldexpl.c (RANDOM): New macro.
6139         * modules/ldexp-tests (Files): Add tests/randomd.c.
6140         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6141         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6142         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6143         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6144         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6145
6146 2012-03-03  Bruno Haible  <bruno@clisp.org>
6147
6148         frexp* tests: More tests.
6149         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6150         * tests/test-frexp.c (RANDOM): New macro.
6151         * tests/test-frexpf.c (RANDOM): New macro.
6152         * tests/test-frexpl.c (RANDOM): New macro.
6153         * modules/frexp-tests (Files): Add tests/randomd.c.
6154         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6155         * modules/frexpf-tests (Files): Add tests/randomf.c.
6156         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6157         * modules/frexpl-tests (Files): Add tests/randoml.c.
6158         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6159
6160 2012-03-03  Bruno Haible  <bruno@clisp.org>
6161
6162         Support for pseudo-random numbers in tests.
6163         * tests/randomf.c: New file.
6164         * tests/randomd.c: New file.
6165         * tests/randoml.c: New file.
6166         * tests/macros.h (randomf, randomd, randoml): New declarations.
6167
6168 2012-03-03  Bruno Haible  <bruno@clisp.org>
6169
6170         frexp* tests: Refactor.
6171         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6172         * tests/test-frexp.c: Include and use it.
6173         * tests/test-frexpf.c: Likewise.
6174         * tests/test-frexpl.c: Likewise.
6175         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6176         * modules/frexpf-tests (Files): Likewise.
6177         * modules/frexpl-tests (Files): Likewise.
6178
6179 2012-03-02  Jim Meyering  <meyering@redhat.com>
6180
6181         maint: don't specify XZ_OPT=-9ev in dist-related rule
6182         Using xz's -9 option is warranted only if you have a very large
6183         tarball (see xz's documentation for the sizes vs. presets), and
6184         requires 64MiB of memory at decompression time.
6185         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6186         Automake's default of just "-e" is fine.  Override on a
6187         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6188
6189 2012-03-01  Eric Blake  <eblake@redhat.com>
6190
6191         maint.mk: allow announcement for non-gnulib project
6192         * maint.mk (announcement): Skip gnulib version if not used.
6193
6194 2012-03-01  Jim Meyering  <meyering@redhat.com>
6195
6196         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6197         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6198         envvar settings cannot interfere.  Otherwise, setting envvars like
6199         prohibit=foo require=bar, etc. would cause spurious test failures.
6200
6201 2012-03-01  Eric Blake  <eblake@redhat.com>
6202
6203         maint.mk: add per-line exclusions to prohibitions
6204         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6205         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6206         (sc_const_long_option): Use it.
6207
6208 2012-03-01  Bruno Haible  <bruno@clisp.org>
6209
6210         Tests for module 'expl-ieee'.
6211         * modules/expl-ieee-tests: New file.
6212         * tests/test-expl-ieee.c: New file.
6213
6214         New module 'expl-ieee'.
6215         * modules/expl-ieee: New file.
6216
6217         Tests for module 'exp-ieee'.
6218         * modules/exp-ieee-tests: New file.
6219         * tests/test-exp-ieee.c: New file.
6220
6221         New module 'exp-ieee'.
6222         * modules/exp-ieee: New file.
6223
6224         Tests for module 'expf-ieee'.
6225         * modules/expf-ieee-tests: New file.
6226         * tests/test-expf-ieee.c: New file.
6227         * tests/test-exp-ieee.h: New file.
6228
6229         New module 'expf-ieee'.
6230         * modules/expf-ieee: New file.
6231
6232 2012-02-29  Bruno Haible  <bruno@clisp.org>
6233
6234         cbrtl-ieee: Work around test failure on IRIX 6.5.
6235         * m4/cbrtl-ieee.m4: New file.
6236         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6237         test whether cbrtl works with a minus zero argument. Replace it if not.
6238         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6240         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6241         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6242         (Depends-on): Update conditions.
6243         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6244         m4/signbit.m4.
6245         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6246         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6247         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6248
6249         Tests for module 'cbrtl-ieee'.
6250         * modules/cbrtl-ieee-tests: New file.
6251         * tests/test-cbrtl-ieee.c: New file.
6252
6253         New module 'cbrtl-ieee'.
6254         * modules/cbrtl-ieee: New file.
6255
6256         Tests for module 'cbrt-ieee'.
6257         * modules/cbrt-ieee-tests: New file.
6258         * tests/test-cbrt-ieee.c: New file.
6259
6260         New module 'cbrt-ieee'.
6261         * modules/cbrt-ieee: New file.
6262
6263         Tests for module 'cbrtf-ieee'.
6264         * modules/cbrtf-ieee-tests: New file.
6265         * tests/test-cbrtf-ieee.c: New file.
6266         * tests/test-cbrt-ieee.h: New file.
6267
6268         New module 'cbrtf-ieee'.
6269         * modules/cbrtf-ieee: New file.
6270
6271 2012-02-29  Bruno Haible  <bruno@clisp.org>
6272
6273         cbrtf: Work around bug in IRIX 6.5 system function.
6274         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6275         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6276         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6277         work.
6278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6279         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6280         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6281         (Depends-on): Update conditions.
6282         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6283
6284 2012-02-29  Bruno Haible  <bruno@clisp.org>
6285
6286         Tests for module 'cbrtl'.
6287         * modules/cbrtl-tests: New file.
6288         * tests/test-cbrtl.c: New file.
6289
6290         New module 'cbrtl'.
6291         * lib/math.in.h (cbrtl): New declaration.
6292         * lib/cbrtl.c: New file.
6293         * m4/cbrtl.m4: New file.
6294         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6296         HAVE_DECL_CBRTL.
6297         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6298         HAVE_DECL_CBRTL.
6299         * modules/cbrtl: New file.
6300         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6301         * doc/posix-functions/cbrtl.texi: Mention the new module.
6302
6303 2012-02-29  Bruno Haible  <bruno@clisp.org>
6304
6305         Tests for module 'cbrtf'.
6306         * modules/cbrtf-tests: New file.
6307         * tests/test-cbrtf.c: New file.
6308
6309         New module 'cbrtf'.
6310         * lib/math.in.h (cbrtf): New declaration.
6311         * lib/cbrtf.c: New file.
6312         * m4/cbrtf.m4: New file.
6313         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6315         HAVE_DECL_CBRTF.
6316         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6317         HAVE_DECL_CBRTF.
6318         * modules/cbrtf: New file.
6319         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6320         * doc/posix-functions/cbrtf.texi: Mention the new module.
6321
6322 2012-02-29  Bruno Haible  <bruno@clisp.org>
6323
6324         cbrt: Provide replacement on MSVC and Minix.
6325         * lib/math.in.h (cbrt): New declaration.
6326         * lib/cbrt.c: New file.
6327         * m4/cbrt.m4: New file.
6328         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6329         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6330         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6331         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6332         (Depends-on): Add dependencies.
6333         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6334         * tests/test-math-c++.cc: Check the declaration of cbrt.
6335         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6336         replacement.
6337
6338 2012-02-29  Bruno Haible  <bruno@clisp.org>
6339
6340         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6341         * m4/hypotl-ieee.m4: New file.
6342         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6343         test whether hypotl works with mixed NaN and Infinity arguments.
6344         Replace it if not.
6345         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6347         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6348         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6349         (Depends-on): Update conditions.
6350         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6351         (Depends-on): Add hypot-ieee.
6352         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6353         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6354
6355         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6356         * m4/hypotf-ieee.m4: New file.
6357         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6358         test whether hypotf works with mixed NaN and Infinity arguments.
6359         Replace it if not.
6360         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6361         (Depends-on): Add hypot-ieee.
6362         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6363         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6364
6365         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6366         * lib/math.in.h (hypot): New declaration.
6367         * lib/hypot.c: New file.
6368         * m4/hypot-ieee.m4: New file.
6369         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6370         whether hypot works with mixed NaN and Infinity arguments. Replace it
6371         if not.
6372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6373         REPLACE_HYPOT.
6374         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6375         * modules/hypot (Files): Add lib/hypot.c.
6376         (Depends-on): Add dependencies.
6377         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6378         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6379         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6380         * tests/test-math-c++.cc: Check the declaration of hypot.
6381         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6382
6383         Tests for module 'hypotl-ieee'.
6384         * modules/hypotl-ieee-tests: New file.
6385         * tests/test-hypotl-ieee.c: New file.
6386
6387         New module 'hypotl-ieee'.
6388         * modules/hypotl-ieee: New file.
6389
6390         Tests for module 'hypot-ieee'.
6391         * modules/hypot-ieee-tests: New file.
6392         * tests/test-hypot-ieee.c: New file.
6393
6394         New module 'hypot-ieee'.
6395         * modules/hypot-ieee: New file.
6396
6397         Tests for module 'hypotf-ieee'.
6398         * modules/hypotf-ieee-tests: New file.
6399         * tests/test-hypotf-ieee.c: New file.
6400         * tests/test-hypot-ieee.h: New file.
6401
6402         New module 'hypotf-ieee'.
6403         * modules/hypotf-ieee: New file.
6404
6405 2012-02-29  Bruno Haible  <bruno@clisp.org>
6406
6407         Remove unused variables.
6408         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6409         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6410         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6411         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6412
6413 2012-02-29  Eric Blake  <eblake@redhat.com>
6414
6415         termios: fix pid_t always, not just for tcgetsid
6416         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6417         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6418         just when building tcgetsid.
6419
6420 2012-02-29  Bruno Haible  <bruno@clisp.org>
6421
6422         Tests for module 'hypotl'.
6423         * modules/hypotl-tests: New file.
6424         * tests/test-hypotl.c: New file.
6425
6426         New module 'hypotl'.
6427         * lib/math.in.h (hypotl): New declaration.
6428         * lib/hypotl.c: New file.
6429         * m4/hypotl.m4: New file.
6430         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6432         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6433         * modules/hypotl: New file.
6434         * tests/test-math-c++.cc: Check the hypotl declaration.
6435         * doc/posix-functions/hypotl.texi: Mention the new module.
6436
6437 2012-02-29  Eric Blake  <eblake@redhat.com>
6438
6439         tcgetsid: fix cygwin header bug
6440         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6441
6442         docs: update cygwin progress
6443         * doc/posix-functions/llround.texi (llround): Added in cygwin
6444         1.7.8.
6445         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6446         * doc/glibc-functions/program_invocation_name.texi
6447         (program_invocation_name): Likewise.
6448         * doc/glibc-functions/program_invocation_short_name.texi
6449         (program_invocation_short_name): Likewise.
6450         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6451         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6452         Likewise.
6453         * doc/posix-functions/pthread_spin_destroy.texi
6454         (pthread_spin_destroy): Added in cygwin 1.7.10.
6455         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6456         Likewise.
6457         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6458         Likewise.
6459         * doc/posix-functions/pthread_spin_trylock.texi
6460         (pthread_spin_trylock): Likewise.
6461         * doc/posix-functions/pthread_spin_unlock.texi
6462         (pthread_spin_unlock): Likewise.
6463         * doc/posix-functions/pthread_setschedprio.texi
6464         (pthread_setschedprio): Likewise.
6465         * doc/posix-functions/pthread_attr_getstack.texi
6466         (pthread_attr_getstack): Likewise.
6467         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6468         (pthread_attr_getstackaddr): Likewise.
6469         * doc/glibc-functions/pthread_getattr_np.texi
6470         (pthread_getattr_np): Likewise.
6471         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6472         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6473         * doc/posix-functions/clock_settime.texi (clock_settime):
6474         Likewise.
6475         * doc/posix-functions/pthread_attr_getguardsize.texi
6476         (pthread_attr_getguardsize): Likewise.
6477         * doc/posix-functions/pthread_attr_setguardsize.texi
6478         (pthread_attr_setguardsize): Likewise.
6479         * doc/posix-functions/pthread_attr_setstack.texi
6480         (pthread_attr_setstack): Likewise.
6481         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6482         (pthread_attr_setstackaddr): Likewise.
6483         * doc/posix-functions/clock_getcpuclockid.texi
6484         (clock_getcpuclockid): Likewise.
6485         * doc/posix-functions/pthread_getcpuclockid.texi
6486         (pthread_getcpuclockid): Likewise.
6487         * doc/glibc-functions/error.texi (error): Likewise.
6488         * doc/glibc-functions/error_at_line.texi (error_at_line):
6489         Likewise.
6490         * doc/glibc-functions/error_message_count.texi
6491         (error_message_count): Likewise.
6492         * doc/glibc-functions/error_one_per_line.texi
6493         (error_one_per_line): Likewise.
6494         * doc/glibc-functions/error_print_progname.texi
6495         (error_print_progname): Likewise.
6496         * doc/posix-functions/pthread_condattr_getclock.texi
6497         (pthread_condattr_getclock): Likewise.
6498         * doc/posix-functions/pthread_condattr_setclock.texi
6499         (pthread_condattr_setclock): Likewise.
6500         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6501         Likewise.
6502         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6503         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6504         * doc/glibc-functions/get_current_dir_name.texi
6505         (get_current_dir_name): Likewise.
6506         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6507         Likewise.
6508         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6509         wrong return type.
6510         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6511         1.7.11.
6512
6513 2012-02-29  Bruno Haible  <bruno@clisp.org>
6514
6515         Tests for module 'hypotf'.
6516         * modules/hypotf-tests: New file.
6517         * tests/test-hypotf.c: New file.
6518
6519         New module 'hypotf'.
6520         * lib/math.in.h (hypotf): New declaration.
6521         * lib/hypotf.c: New file.
6522         * m4/hypotf.m4: New file.
6523         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6525         REPLACE_HYPOTF.
6526         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6527         REPLACE_HYPOTF.
6528         * modules/hypotf: New file.
6529         * tests/test-math-c++.cc: Check the hypotf declaration.
6530         * doc/posix-functions/hypotf.texi: Mention the new module.
6531
6532         hypot: Prepare for hypotf module.
6533         * m4/hypot.m4: New file.
6534         * modules/hypot (Files): Add m4/hypot.m4.
6535         (configure.ac): Invoke gl_FUNC_HYPOT.
6536
6537 2012-02-29  Bruno Haible  <bruno@clisp.org>
6538
6539         hypot tests: More tests.
6540         * tests/test-hypot.c: Include <float.h>.
6541         (main): Add tests about overflow and underflow.
6542
6543 2012-02-29  Bruno Haible  <bruno@clisp.org>
6544
6545         math code: Add comments.
6546         * lib/acosl.c: Add comment about related glibc source files.
6547         * lib/asinl.c: Likewise.
6548         * lib/atanl.c: Likewise.
6549         * lib/expl.c: Likewise.
6550         * lib/logl.c: Likewise.
6551         * lib/sincosl.c: Likewise.
6552         * lib/sinl.c: Likewise.
6553         * lib/tanl.c: Likewise.
6554         * lib/trigl.c: Likewise.
6555         * lib/cosl.c: Likewise. Fix comments.
6556
6557 2012-02-28  Bruno Haible  <bruno@clisp.org>
6558
6559         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6560         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6561         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6562         HUGE_VALL are defined.
6563         (numeric_equald): Renamed from numeric_equal.
6564         (numeric_equalf, numeric_equall): New functions.
6565         (main): Check also HUGE_VALF, HUGE_VALL.
6566         * modules/math-tests (Files): Add tests/macros.h.
6567         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6568         HUGE_VALL.
6569
6570 2012-02-28  Bruno Haible  <bruno@clisp.org>
6571
6572         doc: Move ISO C11 feature notes into POSIX chapters.
6573         * doc/posix-functions/aligned_alloc.texi: Renamed from
6574         doc/glibc-functions/aligned_alloc.texi.
6575         * doc/posix-functions/quick_exit.texi: Renamed from
6576         doc/glibc-functions/quick_exit.texi.
6577         * doc/posix-headers/uchar.texi: Renamed from
6578         doc/glibc-headers/uchar.texi.
6579         * doc/posix-functions/c16rtomb.texi: Renamed from
6580         doc/glibc-functions/c16rtomb.texi.
6581         * doc/posix-functions/c32rtomb.texi: Renamed from
6582         doc/glibc-functions/c32rtomb.texi.
6583         * doc/posix-functions/mbrtoc16.texi: Renamed from
6584         doc/glibc-functions/mbrtoc16.texi.
6585         * doc/posix-functions/mbrtoc32.texi: Renamed from
6586         doc/glibc-functions/mbrtoc32.texi.
6587         * doc/gnulib.texi: Update.
6588         (Glibc uchar.h): Remove section.
6589         Suggested by Eric Blake.
6590
6591 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6592
6593         stdnoreturn: port to MSVC better
6594         MSVC standard headers use __declspec(noreturn), so #define noreturn
6595         to empty on that platform.  Reported by Bruno Haible in
6596         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6597         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6598         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6599
6600 2012-02-28  Bruno Haible  <bruno@clisp.org>
6601
6602         doc: Mention new glibc headers and functions.
6603         * doc/glibc-headers/uchar.texi: New file.
6604         * doc/glibc-functions/aligned_alloc.texi: New file.
6605         * doc/glibc-functions/c16rtomb.texi: New file.
6606         * doc/glibc-functions/c32rtomb.texi: New file.
6607         * doc/glibc-functions/clock_adjtime.texi: New file.
6608         * doc/glibc-functions/fanotify_init.texi: New file.
6609         * doc/glibc-functions/fanotify_mark.texi: New file.
6610         * doc/glibc-functions/inet6_opt_append.texi: New file.
6611         * doc/glibc-functions/inet6_opt_find.texi: New file.
6612         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6613         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6614         * doc/glibc-functions/inet6_opt_init.texi: New file.
6615         * doc/glibc-functions/inet6_opt_next.texi: New file.
6616         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6617         * doc/glibc-functions/inet6_rth_add.texi: New file.
6618         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6619         * doc/glibc-functions/inet6_rth_init.texi: New file.
6620         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6621         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6622         * doc/glibc-functions/inet6_rth_space.texi: New file.
6623         * doc/glibc-functions/login.texi: New file.
6624         * doc/glibc-functions/mbrtoc16.texi: New file.
6625         * doc/glibc-functions/mbrtoc32.texi: New file.
6626         * doc/glibc-functions/name_to_handle_at.texi: New file.
6627         * doc/glibc-functions/ntp_gettimex.texi: New file.
6628         * doc/glibc-functions/open_by_handle_at.texi: New file.
6629         * doc/glibc-functions/prlimit.texi: New file.
6630         * doc/glibc-functions/process_vm_readv.texi: New file.
6631         * doc/glibc-functions/process_vm_writev.texi: New file.
6632         * doc/glibc-functions/recvmmsg.texi: New file.
6633         * doc/glibc-functions/scandirat.texi: New file.
6634         * doc/glibc-functions/sendmmsg.texi: New file.
6635         * doc/glibc-functions/setns.texi: New file.
6636         * doc/glibc-functions/timespec_get.texi: New file.
6637         * doc/gnulib.texi: Include them.
6638         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6639         sections.
6640         Reported by Eric Blake.
6641
6642 2012-02-28  Bruno Haible  <bruno@clisp.org>
6643
6644         Avoid compilation errors with MSVC option -fp:strict.
6645         * lib/floor.c: Use MSVC specific pragma fenv_access.
6646         * lib/ceil.c: Likewise.
6647         * lib/trunc.c: Likewise.
6648         * lib/round.c: Likewise.
6649         * lib/rint.c: Likewise.
6650         * lib/fma.c: Likewise.
6651         * lib/integer_length.c: Likewise.
6652         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6653         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6654         * tests/test-floor2.c: Likewise.
6655         * tests/test-floorf2.c: Likewise.
6656         * tests/test-ceil2.c: Likewise.
6657         * tests/test-ceilf2.c: Likewise.
6658         * tests/test-trunc2.c: Likewise.
6659         * tests/test-truncf2.c: Likewise.
6660         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6661
6662 2012-02-27  Bruno Haible  <bruno@clisp.org>
6663
6664         Tests for module 'sqrtl-ieee'.
6665         * modules/sqrtl-ieee-tests: New file.
6666         * tests/test-sqrtl-ieee.c: New file.
6667
6668         New module 'sqrtl-ieee'.
6669         * modules/sqrtl-ieee: New file.
6670
6671         Tests for module 'sqrt-ieee'.
6672         * modules/sqrt-ieee-tests: New file.
6673         * tests/test-sqrt-ieee.c: New file.
6674
6675         New module 'sqrt-ieee'.
6676         * modules/sqrt-ieee: New file.
6677
6678         Tests for module 'sqrtf-ieee'.
6679         * modules/sqrtf-ieee-tests: New file.
6680         * tests/test-sqrtf-ieee.c: New file.
6681         * tests/test-sqrt-ieee.h: New file.
6682
6683         New module 'sqrtf-ieee'.
6684         * modules/sqrtf-ieee: New file.
6685
6686 2012-02-27  Bruno Haible  <bruno@clisp.org>
6687
6688         remainderl-ieee: Work around test failure on OSF/1.
6689         * m4/remainderl-ieee.m4: New file.
6690         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6691         present, test whether remainderl works with a zero second argument.
6692         Replace it if not.
6693         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6695         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6696         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6697         (Depends-on): Update conditions.
6698         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6699         (Depends-on): Add remainder-ieee.
6700         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6701         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6702         module.
6703
6704         remainderf-ieee: Work around test failure on OSF/1.
6705         * m4/remainderf-ieee.m4: New file.
6706         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6707         present, test whether remainderf works with a zero second argument.
6708         Replace it if not.
6709         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6711         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6712         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6713         (Depends-on): Update conditions.
6714         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6715         (Depends-on): Add remainder-ieee.
6716         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6717         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6718         module.
6719
6720         remainder-ieee: Work around test failure on OSF/1.
6721         * m4/remainder-ieee.m4: New file.
6722         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6723         present, test whether remainder works with a zero second argument.
6724         Replace it if not.
6725         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6727         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6728         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6729         (Depends-on): Update dependencies.
6730         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6731         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6732         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6733
6734         Tests for module 'remainderl-ieee'.
6735         * modules/remainderl-ieee-tests: New file.
6736         * tests/test-remainderl-ieee.c: New file.
6737
6738         New module 'remainderl-ieee'.
6739         * modules/remainderl-ieee: New file.
6740
6741         Tests for module 'remainder-ieee'.
6742         * modules/remainder-ieee-tests: New file.
6743         * tests/test-remainder-ieee.c: New file.
6744
6745         New module 'remainder-ieee'.
6746         * modules/remainder-ieee: New file.
6747
6748         Tests for module 'remainderf-ieee'.
6749         * modules/remainderf-ieee-tests: New file.
6750         * tests/test-remainderf-ieee.c: New file.
6751         * tests/test-remainder-ieee.h: New file.
6752
6753         New module 'remainderf-ieee'.
6754         * modules/remainderf-ieee: New file.
6755
6756 2012-02-27  Bruno Haible  <bruno@clisp.org>
6757
6758         modff, modfl: Fix configure syntax error.
6759         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6760         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6761
6762 2012-02-27  Bruno Haible  <bruno@clisp.org>
6763
6764         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6765         * m4/fmodl-ieee.m4: New file.
6766         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6767         whether fmodl works with zero arguments. Replace it if not.
6768         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6769         (Depends-on): Add fmod-ieee.
6770         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6771         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6772
6773         fmodf-ieee: Work around test failure on OSF/1.
6774         * m4/fmodf-ieee.m4: New file.
6775         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6776         whether fmodf works with zero arguments. Replace it if not.
6777         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6779         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6780         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6781         (Depends-on): Update dependencies.
6782         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6783         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6784         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6785
6786         fmodf-ieee: Work around test failure on MSVC 9.
6787         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6788         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6789
6790         fmod-ieee: Work around test failures on OSF/1, mingw.
6791         * m4/fmod-ieee.m4: New file.
6792         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6793         whether fmod works with zero arguments. Replace it if not.
6794         * lib/math.in.h (fmod): New declaration.
6795         * lib/fmod.c: New file.
6796         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6798         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6799         * modules/fmod (Files): Add lib/fmod.c.
6800         (Depends-on): Add math, isinf, trunc, fma.
6801         (configure.ac): Arrange to compile lib/fmod.c if needed.
6802         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6803         m4/signbit.m4.
6804         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6805         * tests/test-math-c++.cc: Check the declaration of fmod.
6806         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6807
6808         fmodl-ieee: Fix test failures.
6809         * lib/fmodl.c (fmodl): Treat Inf specially.
6810         * modules/fmodl (Depends-on): Add isinf.
6811
6812         Tests for module 'fmodl-ieee'.
6813         * modules/fmodl-ieee-tests: New file.
6814         * tests/test-fmodl-ieee.c: New file.
6815
6816         New module 'fmodl-ieee'.
6817         * modules/fmodl-ieee: New file.
6818
6819         Tests for module 'fmod-ieee'.
6820         * modules/fmod-ieee-tests: New file.
6821         * tests/test-fmod-ieee.c: New file.
6822
6823         New module 'fmod-ieee'.
6824         * modules/fmod-ieee: New file.
6825
6826         Tests for module 'fmodf-ieee'.
6827         * modules/fmodf-ieee-tests: New file.
6828         * tests/test-fmodf-ieee.c: New file.
6829         * tests/test-fmod-ieee.h: New file.
6830
6831         New module 'fmodf-ieee'.
6832         * modules/fmodf-ieee: New file.
6833
6834 2012-02-27  Bruno Haible  <bruno@clisp.org>
6835
6836         Tests for module 'rintl-ieee'.
6837         * modules/rintl-ieee-tests: New file.
6838         * tests/test-rintl-ieee.c: New file.
6839
6840         New module 'rintl-ieee'.
6841         * modules/rintl-ieee: New file.
6842
6843         Tests for module 'rint-ieee'.
6844         * modules/rint-ieee-tests: New file.
6845         * tests/test-rint-ieee.c: New file.
6846
6847         New module 'rint-ieee'.
6848         * modules/rint-ieee: New file.
6849
6850         Tests for module 'rintf-ieee'.
6851         * modules/rintf-ieee-tests: New file.
6852         * tests/test-rintf-ieee.c: New file.
6853         * tests/test-rint-ieee.h: New file.
6854
6855         New module 'rintf-ieee'.
6856         * modules/rintf-ieee: New file.
6857
6858 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6859
6860         regex: re_search etc. should return -2 when memory exhausted
6861         This bug was uncovered when testing 'grep'.  Without the fix,
6862         re_search and friends return -1 when memory is exhausted, but -1
6863         means no match, and this causes grep to falsely report no-match
6864         instead of memory-exhaustion.  See
6865         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6866         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6867         trouble; this can occur if re_search_internal ran out of memory.
6868
6869 2012-02-26  Bruno Haible  <bruno@clisp.org>
6870
6871         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6872         * m4/modfl-ieee.m4: New file.
6873         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6874         whether modfl works with Inf. Replace it if not.
6875         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6877         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6878         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6879         (Depends-on): Update dependencies.
6880         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6881         m4/signbit.m4.
6882         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6883         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6884
6885         modfl-ieee: Fix dependencies.
6886         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6887
6888         modfl-ieee: Fix test failures.
6889         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6890         * modules/modfl (Depends-on): Add isfinite, isinf.
6891
6892         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6893         * m4/modff-ieee.m4: New file.
6894         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6895         whether modff works with NaN and Inf. Replace it if not.
6896         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6898         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6899         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6900         (Depends-on): Update dependencies.
6901         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6902         m4/signbit.m4.
6903         (Depends-on): Add modf-ieee.
6904         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6905         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6906
6907         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6908         * m4/modf-ieee.m4: New file.
6909         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6910         whether modf works with NaN and Inf. Replace it if not.
6911         * lib/math.in.h (modf): New declaration.
6912         * lib/modf.c: New file.
6913         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6915         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6916         * modules/modf (Files): Add lib/modf.c.
6917         (Depends-on): Add math, isfinite, trunc, isinf.
6918         (configure.ac): Addrange to compile lib/modf.c if needed.
6919         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6920         m4/signbit.m4.
6921         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6922         * tests/test-math-c++.cc: Check the declaration of modf.
6923         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6924
6925         Tests for module 'modfl-ieee'.
6926         * modules/modfl-ieee-tests: New file.
6927         * tests/test-modfl-ieee.c: New file.
6928
6929         New module 'modfl-ieee'.
6930         * modules/modfl-ieee: New file.
6931
6932         Tests for module 'modf-ieee'.
6933         * modules/modf-ieee-tests: New file.
6934         * tests/test-modf-ieee.c: New file.
6935
6936         New module 'modf-ieee'.
6937         * modules/modf-ieee: New file.
6938
6939         Tests for module 'modff-ieee'.
6940         * modules/modff-ieee-tests: New file.
6941         * tests/test-modff-ieee.c: New file.
6942         * tests/test-modf-ieee.h: New file.
6943
6944         New module 'modff-ieee'.
6945         * modules/modff-ieee: New file.
6946
6947 2012-02-26  Bruno Haible  <bruno@clisp.org>
6948
6949         Tests for module 'fabsl-ieee'.
6950         * modules/fabsl-ieee-tests: New file.
6951         * tests/test-fabsl-ieee.c: New file.
6952
6953         New module 'fabsl-ieee'.
6954         * modules/fabsl-ieee: New file.
6955
6956         Tests for module 'fabs-ieee'.
6957         * modules/fabs-ieee-tests: New file.
6958         * tests/test-fabs-ieee.c: New file.
6959
6960         New module 'fabs-ieee'.
6961         * modules/fabs-ieee: New file.
6962
6963         Tests for module 'fabsf-ieee'.
6964         * modules/fabsf-ieee-tests: New file.
6965         * tests/test-fabsf-ieee.c: New file.
6966         * tests/test-fabs-ieee.h: New file.
6967
6968         New module 'fabsf-ieee'.
6969         * modules/fabsf-ieee: New file.
6970
6971 2012-02-26  Bruno Haible  <bruno@clisp.org>
6972
6973         Tests for module 'fmal-ieee'.
6974         * modules/fmal-ieee-tests: New file.
6975         * tests/test-fmal-ieee.c: New file.
6976
6977         New module 'fmal-ieee'.
6978         * modules/fmal-ieee: New file.
6979
6980         Tests for module 'fma-ieee'.
6981         * modules/fma-ieee-tests: New file.
6982         * tests/test-fma-ieee.c: New file.
6983
6984         New module 'fma-ieee'.
6985         * modules/fma-ieee: New file.
6986
6987         Tests for module 'fmaf-ieee'.
6988         * modules/fmaf-ieee-tests: New file.
6989         * tests/test-fmaf-ieee.c: New file.
6990         * tests/test-fma-ieee.h: New file.
6991
6992         New module 'fmaf-ieee'.
6993         * modules/fmaf-ieee: New file.
6994
6995 2012-02-26  Bruno Haible  <bruno@clisp.org>
6996
6997         Tests for module 'ldexpl-ieee'.
6998         * modules/ldexpl-ieee-tests: New file.
6999         * tests/test-ldexpl-ieee.c: New file.
7000
7001         New module 'ldexpl-ieee'.
7002         * modules/ldexpl-ieee: New file.
7003
7004         Tests for module 'ldexp-ieee'.
7005         * modules/ldexp-ieee-tests: New file.
7006         * tests/test-ldexp-ieee.c: New file.
7007
7008         New module 'ldexp-ieee'.
7009         * modules/ldexp-ieee: New file.
7010
7011         Tests for module 'ldexpf-ieee'.
7012         * modules/ldexpf-ieee-tests: New file.
7013         * tests/test-ldexpf-ieee.c: New file.
7014         * tests/test-ldexp-ieee.h: New file.
7015
7016         New module 'ldexpf-ieee'.
7017         * modules/ldexpf-ieee: New file.
7018
7019 2012-02-26  Bruno Haible  <bruno@clisp.org>
7020
7021         Refactor frexp*-ieee tests.
7022         * tests/test-frexp-ieee.h: New file.
7023         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7024         (main): Just call test_function.
7025         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7026         (main): Just call test_function.
7027         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7028         (main): Just call test_function.
7029         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7030         * modules/frexp-ieee-tests (Files): Likewise.
7031         * modules/frexpl-ieee-tests (Files): Likewise.
7032
7033         Tests for module 'frexpl-ieee'.
7034         * modules/frexpl-ieee-tests: New file.
7035         * tests/test-frexpl-ieee.c: New file.
7036
7037         New module 'frexpl-ieee'.
7038         * modules/frexpl-ieee: New file.
7039
7040         Tests for module 'frexp-ieee'.
7041         * modules/frexp-ieee-tests: New file.
7042         * tests/test-frexp-ieee.c: New file.
7043
7044         New module 'frexp-ieee'.
7045         * modules/frexp-ieee: New file.
7046
7047         Tests for module 'frexpf-ieee'.
7048         * modules/frexpf-ieee-tests: New file.
7049         * tests/test-frexpf-ieee.c: New file.
7050
7051         New module 'frexpf-ieee'.
7052         * modules/frexpf-ieee: New file.
7053
7054 2012-02-26  Bruno Haible  <bruno@clisp.org>
7055
7056         roundl-ieee tests: More tests.
7057         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7058         (main): Add tests for [MX] shaded specification in POSIX.
7059         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7060         (Depends-on): Add isnanl-nolibm.
7061
7062         round-ieee tests: More tests.
7063         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7064         (main): Add tests for [MX] shaded specification in POSIX.
7065         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7066         (Depends-on): Add isnand-nolibm.
7067
7068         roundf-ieee tests: More tests.
7069         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7070         (main): Add tests for [MX] shaded specification in POSIX.
7071         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7072         (Depends-on): Add isnanf-nolibm.
7073
7074         truncl-ieee tests: More tests.
7075         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7076         (main): Add tests for [MX] shaded specification in POSIX.
7077         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7078         (Depends-on): Add isnanl-nolibm.
7079
7080         trunc-ieee tests: More tests.
7081         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7082         (main): Add tests for [MX] shaded specification in POSIX.
7083         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7084         (Depends-on): Add isnand-nolibm.
7085
7086         truncf-ieee tests: More tests.
7087         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7088         (main): Add tests for [MX] shaded specification in POSIX.
7089         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7090         (Depends-on): Add isnanf-nolibm.
7091
7092         ceill-ieee tests: More tests.
7093         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7094         (main): Add tests for [MX] shaded specification in POSIX.
7095         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7096         (Depends-on): Add isnanl-nolibm.
7097
7098         ceil-ieee tests: More tests.
7099         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7100         (main): Add tests for [MX] shaded specification in POSIX.
7101         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7102         (Depends-on): Add isnand-nolibm.
7103
7104         ceilf-ieee tests: More tests.
7105         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7106         (main): Add tests for [MX] shaded specification in POSIX.
7107         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7108         (Depends-on): Add isnanf-nolibm.
7109
7110         floorl-ieee tests: More tests.
7111         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7112         (main): Add tests for [MX] shaded specification in POSIX.
7113         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7114         (Depends-on): Add isnanl-nolibm.
7115
7116         floor-ieee tests: More tests.
7117         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7118         (main): Add tests for [MX] shaded specification in POSIX.
7119         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7120         (Depends-on): Add isnand-nolibm.
7121
7122         floorf-ieee tests: More tests.
7123         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7124         (main): Add tests for [MX] shaded specification in POSIX.
7125         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7126         (Depends-on): Add isnanf-nolibm.
7127
7128 2012-02-26  Bruno Haible  <bruno@clisp.org>
7129
7130         fpieee: More comments.
7131         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7132
7133 2012-02-25  Bruno Haible  <bruno@clisp.org>
7134
7135         Tests for module 'log10l'.
7136         * modules/log10l-tests: New file.
7137         * tests/test-log10l.c: New file.
7138         * tests/test-math-c++.cc: Check the declaration of log10l.
7139
7140         New module 'log10l'.
7141         * lib/math.in.h (log10l): New declaration.
7142         * lib/log10l.c: New file.
7143         * m4/log10l.m4: New file.
7144         * modules/log10l: New file.
7145         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7147         HAVE_DECL_LOG10L.
7148         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7149         HAVE_DECL_LOG10L.
7150         * doc/posix-functions/log10l.texi: Mention the new module.
7151
7152 2012-02-25  Bruno Haible  <bruno@clisp.org>
7153
7154         fmodl, remainder*: Avoid wrong results due to rounding errors.
7155         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7156         expected bounds.
7157         * lib/remainderf.c (remainderf): Likewise.
7158         * lib/remainder.c (remainder): Likewise.
7159         * lib/remainderl.c (remainderl): Likewise.
7160
7161 2012-02-25  Bruno Haible  <bruno@clisp.org>
7162
7163         Tests for module 'remainderl'.
7164         * modules/remainderl-tests: New file.
7165         * tests/test-remainderl.c: New file.
7166         * tests/test-math-c++.cc: Check the declaration of remainderl.
7167
7168         New module 'remainderl'.
7169         * lib/math.in.h (remainderl): New declaration.
7170         * lib/remainderl.c: New file.
7171         * m4/remainderl.m4: New file.
7172         * modules/remainderl: New file.
7173         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7175         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7176         HAVE_REMAINDERL.
7177         * doc/posix-functions/remainderl.texi: Mention the new module.
7178
7179 2012-02-25  Bruno Haible  <bruno@clisp.org>
7180
7181         Tests for module 'remainderf'.
7182         * modules/remainderf-tests: New file.
7183         * tests/test-remainderf.c: New file.
7184         * tests/test-math-c++.cc: Check the declaration of remainderf.
7185
7186         New module 'remainderf'.
7187         * lib/math.in.h (remainderf): New declaration.
7188         * lib/remainderf.c: New file.
7189         * m4/remainderf.m4: New file.
7190         * modules/remainderf: New file.
7191         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7193         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7194         HAVE_REMAINDERF.
7195         * doc/posix-functions/remainderf.texi: Mention the new module.
7196
7197 2012-02-25  Bruno Haible  <bruno@clisp.org>
7198
7199         remainder: Support for MSVC.
7200         * lib/math.in.h (remainder): New declaration.
7201         * lib/remainder.c: New file.
7202         * m4/remainder.m4: New file.
7203         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7204         (Depends-on): Add math, round, fma.
7205         (configure.ac): Use results of gl_FUNC_REMAINDER.
7206         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7208         HAVE_DECL_REMAINDER.
7209         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7210         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7211         * tests/test-math-c++.cc: Check the declaration of remainder.
7212         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7213         problems are fixed.
7214
7215 2012-02-25  Bruno Haible  <bruno@clisp.org>
7216
7217         Tests for module 'fmodl'.
7218         * modules/fmodl-tests: New file.
7219         * tests/test-fmodl.c: New file.
7220         * tests/test-math-c++.cc: Check the declaration of fmodl.
7221
7222         New module 'fmodl'.
7223         * lib/math.in.h (fmodl): New declaration.
7224         * lib/fmodl.c: New file.
7225         * m4/fmodl.m4: New file.
7226         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7227         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7228         REPLACE_FMODL.
7229         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7230         REPLACE_FMODL.
7231         * modules/fmodl: New file.
7232         * doc/posix-functions/fmodl.texi: Mention the new module.
7233
7234 2012-02-25  Bruno Haible  <bruno@clisp.org>
7235
7236         Tests for module 'modfl'.
7237         * modules/modfl-tests: New file.
7238         * tests/test-modfl.c: New file.
7239         * tests/test-math-c++.cc: Check the declaration of modfl.
7240
7241         New module 'modfl'.
7242         * lib/math.in.h (modfl): New declaration.
7243         * lib/modfl.c: New file.
7244         * m4/modfl.m4: New file.
7245         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7247         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7248         * modules/modfl: New file.
7249         * doc/posix-functions/modfl.texi: Mention the new module.
7250
7251 2012-02-25  Bruno Haible  <bruno@clisp.org>
7252
7253         Tests for module 'fabsl'.
7254         * modules/fabsl-tests: New file.
7255         * tests/test-fabsl.c: New file.
7256         * tests/test-math-c++.cc: Check the declaration of fabsl.
7257
7258         New module 'fabsl'.
7259         * lib/math.in.h (fabsl): New declaration.
7260         * lib/fabsl.c: New file.
7261         * m4/fabsl.m4: New file.
7262         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7264         REPLACE_FABSL.
7265         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7266         REPLACE_FABSL.
7267         * modules/fabsl: New file.
7268         * doc/posix-functions/fabsl.texi: Mention the new module.
7269
7270 2012-02-25  Bruno Haible  <bruno@clisp.org>
7271
7272         fabs tests: More tests.
7273         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7274         (zero): New variable.
7275         (main): Add tests for signed zero.
7276         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7277
7278         fabsf tests: More tests.
7279         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7280         (zero): New variable.
7281         (main): Add tests for signed zero.
7282         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7283
7284 2012-02-24  Bruno Haible  <bruno@clisp.org>
7285
7286         atanl: Provide function definition on MSVC.
7287         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7288         function pointer.
7289         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7290
7291 2012-02-24  Bruno Haible  <bruno@clisp.org>
7292
7293         acosl: Provide function definition on MSVC.
7294         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7295         function pointer.
7296         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7297
7298 2012-02-24  Bruno Haible  <bruno@clisp.org>
7299
7300         asinl: Provide function definition on MSVC.
7301         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7302         function pointer.
7303         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7304
7305 2012-02-24  Bruno Haible  <bruno@clisp.org>
7306
7307         tanl: Provide function definition on MSVC.
7308         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7309         function pointer.
7310         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7311
7312 2012-02-24  Bruno Haible  <bruno@clisp.org>
7313
7314         cosl: Provide function definition on MSVC.
7315         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7316         function pointer.
7317         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7318
7319 2012-02-24  Bruno Haible  <bruno@clisp.org>
7320
7321         sinl: Provide function definition on MSVC.
7322         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7323         function pointer.
7324         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7325
7326 2012-02-24  Bruno Haible  <bruno@clisp.org>
7327
7328         logl: Provide function definition on MSVC.
7329         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7330         function pointer.
7331         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7332
7333 2012-02-24  Bruno Haible  <bruno@clisp.org>
7334
7335         expl: Provide function definition on MSVC.
7336         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7337         function pointer.
7338         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7339
7340 2012-02-24  Bruno Haible  <bruno@clisp.org>
7341
7342         sqrtl: Provide function definition on MSVC.
7343         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7344         a function pointer.
7345         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7346
7347 2012-02-24  Bruno Haible  <bruno@clisp.org>
7348
7349         ceill: Provide function definition on MSVC.
7350         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7351         used as a function pointer.
7352         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7353
7354 2012-02-24  Bruno Haible  <bruno@clisp.org>
7355
7356         floorl: Provide function definition on MSVC.
7357         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7358         used as a function pointer.
7359         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7360
7361 2012-02-24  Bruno Haible  <bruno@clisp.org>
7362
7363         ceilf: Provide function definition on MSVC.
7364         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7365         used as a function pointer.
7366         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7367
7368 2012-02-24  Bruno Haible  <bruno@clisp.org>
7369
7370         floorf: Provide function definition on MSVC.
7371         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7372         used as a function pointer.
7373         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7374
7375 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7376
7377         stdnoreturn: new module
7378         This implements a replacement for C11's <stdnoreturn.h>.
7379         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7380         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7381         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7382         * tests/test-stdnoreturn.c: New files.
7383
7384 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7385
7386         regex: fix false multibyte matches in some regular expressions
7387         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7388         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7389         * lib/regex_internal.c (re_string_skip_chars):
7390         Fix miscomputation of remain_len that may cause incomplete
7391         multi-byte character and false match.
7392
7393 2012-02-24  Jim Meyering  <meyering@redhat.com>
7394
7395         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7396         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7397         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7398         Remove now-unnecessary str''cmp obfuscation.
7399         Suggested by Akim Demaille.
7400
7401 2012-02-24  Bruno Haible  <bruno@clisp.org>
7402
7403         streq: Rename macro.
7404         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7405         * NEWS: Mention the change.
7406         * lib/mbrtowc.c (mbrtowc): Update.
7407         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7408         * lib/wcwidth.c (wcwidth): Update.
7409         Suggested by Akim Demaille and Jim Meyering.
7410
7411 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7412
7413         regex: fix typo in definition of MIN
7414         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7415         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7416
7417 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7418             Bruno Haible  <bruno@clisp.org>
7419
7420         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7421         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7422         entries into a stack-allocated buffer directly.
7423         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7424
7425 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7426             Bruno Haible  <bruno@clisp.org>
7427
7428         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7429
7430          - There were several instances of this pattern:
7431
7432              for (;;) {
7433                n = acl (f, GETACLCNT, 0, NULL);
7434                [ allocate an array A of size N ]
7435                if (acl (f, GETACL, n, a) == n)
7436                  break;
7437              }
7438
7439            This loop might never terminate if some other process is constantly
7440            manipulating the file's ACL.  The loop should be rewritten to
7441            terminate.
7442
7443          - The acl (... GETACLNT ...) call is merely an optimization; its value
7444            is merely a hint as to how big to make the array.  A better
7445            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7446            and just guess a reasonably-big size, growing the size and trying
7447            again if it's not large enough.  This guarantees termination, and
7448            saves a system call.
7449
7450         * lib/acl-internal.h: Include <limits.h>.
7451         (MIN, SIZE_MAX): New macros.
7452         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7453         a stack-allocated buffer, and use malloc if it does not fit. Don't
7454         use GETACLCNT.
7455         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7456
7457 2012-02-19  Bruno Haible  <bruno@clisp.org>
7458
7459         acl: Fix endless loop on Solaris with vxfs.
7460         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7461         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7462         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7463         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7464         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7465         Reported by Bill Jones in
7466         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7467
7468 2012-02-19  Bruno Haible  <bruno@clisp.org>
7469
7470         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7471         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7472         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7473         that this function returns 0 in some more cases.
7474
7475 2012-02-19  Bruno Haible  <bruno@clisp.org>
7476
7477         acl: Update doc references.
7478         * doc/acl-resources.txt: Update links to Solaris documentation.
7479
7480 2012-02-19  Bruno Haible  <bruno@clisp.org>
7481
7482         Fix test failure in many locales on Solaris 11.
7483         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7484         'tr' arguments.
7485         * tests/test-pipe-filter-ii1.c (main): Likewise.
7486         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7487         expressions in the C locale.
7488         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7489         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7490
7491 2012-02-19  Bruno Haible  <bruno@clisp.org>
7492
7493         gnulib-tool: Improve usage message.
7494         * gnulib-tool (func_usage): Move doc of --help and --version to the
7495         section "Operation modes".
7496
7497 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7498
7499         README-release: make it easier to execute commands
7500         * top/README-release: break commands out on to separate lines.
7501
7502 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7503
7504         GNUmakefile: simplify detection of unconfigured trees
7505         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7506         whether the tree make is being run from is already configured or
7507         not.  Related simplifications.
7508
7509 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7510
7511         * gnulib-tool (func_usage): Document --help and --version.
7512
7513 2012-02-11  Jim Meyering  <meyering@redhat.com>
7514
7515         bootstrap: don't exit 0 upon gnulib-tool failure
7516         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7517         its exit status, not 0.
7518
7519 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7520
7521         README-release: various improvements
7522         * top/README-release: Give a command to push changes for the
7523         release.  Add "distcheck" to list of other pre-release checks.
7524         Fix instance of "make stable" which should be "make TYPE".
7525
7526 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7527
7528         maint: replace FSF snail-mail addresses with URLs
7529         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7530         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7531         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7532         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7533         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7534         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7535         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7536         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7537         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7538         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7539         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7540         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7541         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7542         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7543         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7544         * lib/glthread/thread.c, lib/glthread/thread.h:
7545         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7546         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7547         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7548         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7549         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7550         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7551         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7552         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7553         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7554         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7555         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7556         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7557         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7558         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7559         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7560         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7561         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7562         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7563         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7564         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7565         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7566         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7567         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7568         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7569         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7570         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7571         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7572         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7573         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7574         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7575         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7576         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7577         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7578         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7579         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7580         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7581         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7582         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7583         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7584         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7585         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7586         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7587         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7588         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7589         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7590         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7591         * tests/test-poll.c, tests/test-quotearg-simple.c:
7592         * tests/test-quotearg.c, tests/test-quotearg.h:
7593         * tests/test-round-ieee.c, tests/test-round1.c:
7594         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7595         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7596         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7597         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7598         * tests/test-strerror.c, tests/test-strerror_r.c:
7599         * tests/test-strsignal.c, tests/test-strverscmp.c:
7600         * tests/test-xmemdup0.c:
7601         Replace FSF snail mail addresses with URLs, as per GNU coding
7602         standards.  See glibc bug
7603         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7604
7605 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7606
7607         README-release: capitalize a word and split a line
7608         * top/README-release: Fix punctuation and spacing.
7609
7610 2012-02-08  Akim Demaille  <demaille@gostai.com>
7611
7612         fatal-signal: use C prototypes (with explicit void).
7613         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7614         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7615
7616 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7617
7618         regex: spelling fix
7619         * lib/regexec.c: spelling fix
7620
7621         regex: rely on stdint.h for SIZE_MAX
7622         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7623
7624 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7625
7626         regex: merge glibc changes
7627
7628         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7629         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7630         (init_word_char): Work even if bitset words are not exactly 32 or
7631         64 bits wide.  Don't assume there are no padding bits.
7632         * lib/regex.c [_LIBC]: Do not include <config.h>.
7633         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7634         and -Wtype-limits.
7635         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7636         needless disagreement with glibc.  All uses changed.  Define it to
7637         1 only if _GNU_SOURCE, to match glibc.
7638         (_REG_RM_NAME): Remove; no longer needed, since the names in
7639         question are now all protected by __USE_GNU.
7640         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7641         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7642         * lib/regex_internal.h (MIN): New macro.
7643
7644         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7645         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7646
7647         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7648         * lib/regex_internal.c (re_string_fetch_byte_case):
7649         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7650         is miscompiled, and it turns out it is because of an incorrect
7651         attribute on re_string_fetch_byte_case.  Unlike
7652         re_string_peek_byte_case, this one is really not pure, it modifies
7653         memory (increments pstr->cur_idx), and with the pure attribute GCC
7654         assumed it doesn't and it cached the presumed value of
7655         regexp->cur_idx in a variable across the
7656          for (;; ++i)
7657            {
7658              if (i >= BRACKET_NAME_BUF_SIZE)
7659                return REG_EBRACK;
7660              if (token->type == OP_OPEN_CHAR_CLASS)
7661                ch = re_string_fetch_byte_case (regexp);
7662              else
7663                ch = re_string_fetch_byte (regexp);
7664              if (re_string_eoi(regexp))
7665                return REG_EBRACK;
7666              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7667                break;
7668              elem->opr.name[i] = ch;
7669            }
7670
7671         2011-11-29 Andreas Schwab <schwab@redhat.com>
7672         * lib/regcomp.c (build_equiv_class):
7673         Fix access after end of search string in regex matcher.
7674
7675         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7676         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7677
7678         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7679         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7680
7681         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7682         * lib/regcomp.c (parse_branch, parse_sub_exp):
7683         More regex memory leak fixes and tests.
7684         (parse_sub_exp, parse_bracket_exp):
7685         Fix memory leak for some invalid regular expressions.
7686
7687         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7688         * lib/regex_internal.c, lib/regexec.c:
7689         Fix unnecessary overallocation due to incomplete character.  When
7690         incomplete characters are found at the end of a string the code
7691         ran amok and allocated lots of memory.  Stricter limits are now in
7692         place.
7693
7694         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7695         * lib/regex.h: Update documentation.
7696
7697         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7698         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7699
7700         2010-05-05 Andreas Schwab <schwab@redhat.com>
7701         * lib/regexec.c (find_collation_sequence_value):
7702         Fix lookup of collation sequence value during regexp matching.
7703
7704         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7705         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7706
7707         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7708         * lib/regex.h: Cleanup namespace.
7709
7710         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7711         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7712
7713         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7714         * lib/regex_internal.h: Prevent some declarations and definitions
7715         to be seen when used in tests.
7716
7717         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7718         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7719         __libc_lock_* macros if not _LIBC.
7720         (struct re_dfa_t): Add lock.
7721
7722 2012-02-07  Eric Blake  <eblake@redhat.com>
7723
7724         maint.mk: also prohibit lower-case @var@
7725         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7726         lower case, like @top_srcdir@.
7727
7728 2012-02-04  Eric Blake  <eblake@redhat.com>
7729
7730         canonicalize: avoid uninitialized memory use
7731         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7732         random '/' left in dest.
7733         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7734
7735 2012-02-04  Bruno Haible  <bruno@clisp.org>
7736
7737         isatty: Fix test failure of ptsname_r on native Windows.
7738         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7739         and don't set errno.
7740         (isatty): Test first whether fd is valid. Set errno when returning 0.
7741
7742 2012-02-04  Bruno Haible  <bruno@clisp.org>
7743
7744         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7745         * tests/test-spawn-pipe-main.c: Include progname.h.
7746         (main): Invoke set_program_name.
7747         * modules/spawn-pipe-tests (Depends-on): Add progname.
7748
7749         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7750         * tests/test-nonblocking-socket-main.c: Include progname.h.
7751         (main): Invoke set_program_name.
7752         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7753
7754         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7755         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7756         (main): Invoke set_program_name.
7757         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7758
7759 2012-02-04  Eric Blake  <eblake@redhat.com>
7760
7761         canonicalize-lgpl: fix // handling
7762         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7763
7764         canonicalize: fix // handling
7765         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7766         /// to //, since only // is special.
7767
7768 2012-02-04  Bruno Haible  <bruno@clisp.org>
7769
7770         ioctl: Fix test failure on native Windows.
7771         * lib/ioctl.c: Include msvc-nothrow.h.
7772         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7773
7774 2012-02-04  Bruno Haible  <bruno@clisp.org>
7775
7776         fsync: Avoid test failure on native Windows.
7777         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7778         read-only.
7779
7780 2012-02-04  Bruno Haible  <bruno@clisp.org>
7781
7782         sys_select: Avoid syntax error on OpenBSD 5.0.
7783         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7784         currently being included, just include the system's <sys/select.h>.
7785
7786 2012-02-04  Bruno Haible  <bruno@clisp.org>
7787
7788         sys_select: Avoid syntax error on OpenBSD 5.0.
7789         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7790         <sys/select.h>, not before.
7791         Reported by Jiri B <jirib@devio.us>.
7792
7793 2012-02-04  Bruno Haible  <bruno@clisp.org>
7794
7795         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7796         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7797         global variables.
7798         * tests/test-get-rusage-data.c (main): Likewise.
7799         Reported by Jim Meyering.
7800
7801 2012-02-04  Bruno Haible  <bruno@clisp.org>
7802
7803         stdioext: Fix last commit.
7804         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7805
7806 2012-02-03  Bruno Haible  <bruno@clisp.org>
7807
7808         stdioext: Add tentative support for Plan9.
7809         * lib/stdio-impl.h: Include <errno.h>.
7810         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7811         * lib/freadable.c (freadable): Likewise.
7812         * lib/fwritable.c (fwritable): Likewise.
7813         * lib/fbufmode.c (fbufmode): Likewise.
7814         * lib/freading.c (freading): Likewise.
7815         * lib/fwriting.c (fwriting): Likewise.
7816         * lib/freadptr.c (freadptr): Likewise.
7817         * lib/freadseek.c (freadptrinc): Likewise.
7818         * lib/freadahead.c (freadahead): Likewise.
7819         * lib/fpurge.c (fpurge): Likewise.
7820         * lib/fseeko.c (rpl_fseeko): Likewise.
7821         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7822         Reported by Jens Staal <staal1978@gmail.com>.
7823
7824 2012-02-02  Jim Meyering  <meyering@redhat.com>
7825
7826         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7827         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7828         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7829         not even to try to add the attribute.  Instead, add a pragma to suppress
7830         the suggestion/warning.
7831
7832 2012-01-31  Karl Berry  <karl@gnu.org>
7833
7834         setstate doc: typo.
7835         * doc/posix-functions/setstate.texi (setstate): { not (.
7836
7837 2012-01-31  Bruno Haible  <bruno@clisp.org>
7838
7839         popen: Make more robust on Windows.
7840         * lib/popen.c: On native Windows, use the _popen based code even if
7841         HAVE_POPEN is set.
7842         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7843         environment variable on native Windows.
7844
7845 2012-01-30  Bruno Haible  <bruno@clisp.org>
7846
7847         pclose: Fix typo.
7848         * lib/stdio.in.h (pclose): Fix typo in warning message.
7849
7850 2012-01-30  Bruno Haible  <bruno@clisp.org>
7851
7852         doc about getlogin_r, setstate.
7853         * doc/posix-functions/getlogin_r.texi: List the incompatible
7854         declaration problem under "not fixed by gnulib".
7855         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7856         problem on Solaris 11 and other platforms.
7857
7858 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7859             Bruno Haible  <bruno@clisp.org>
7860
7861         poll tests: Make test more robust.
7862         * tests/test-poll.c: Include macros.h.
7863         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7864         return value of various I/O operations.
7865         * modules/poll-tests (Files): Add tests/macros.h.
7866
7867 2012-01-30  Bruno Haible  <bruno@clisp.org>
7868
7869         sys_stat: Fix support for mingw64 and MSVC.
7870         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7871         header files already do it.
7872         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7873         stat itself.
7874         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7875
7876 2012-01-30  Bruno Haible  <bruno@clisp.org>
7877
7878         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7880         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7881
7882 2012-01-29  Bruno Haible  <bruno@clisp.org>
7883
7884         quotearg: Fix test failure on MacOS X 10.5.
7885         * tests/test-quotearg-simple.c: Include localcharset.h.
7886         (main): If the locale encoding is not ASCII, bypass the tests of
7887         locale_quoting_style and clocale_quoting_style.
7888         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7889
7890 2012-01-29  Jim Meyering  <meyering@redhat.com>
7891
7892         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7893         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7894         detect uses of canonicalize_file_name.
7895
7896 2012-01-28  Bruno Haible  <bruno@clisp.org>
7897
7898         test-framework-sh: Fix test failure with AIX 7.1 diff.
7899         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7900         in column 1, like 'diff -c' does.
7901         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7902         whether 'diff -u' is used. Instead, test whether the output contains
7903         some '@' character.
7904
7905 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7906
7907         strtoimax: eliminate need for stdint.h, inttypes.h checks
7908         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7909         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7910         the prerequisites for a recently-introduced strtoimax test.
7911         I guess this might cause strtoimax to be replaced when not
7912         strictly necessary on older hosts, but this shouldn't introduce
7913         any bugs and it should make Emacs 'configure' faster on typical
7914         modern hosts.  Problem discovered when importing the latest gnulib
7915         to an Emacs test version.
7916         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7917
7918 2012-01-28  Bruno Haible  <bruno@clisp.org>
7919
7920         sys_time: Override 'struct timeval' on some native Windows platforms.
7921         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7922         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7923         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7924         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7925         needs to be overridden.
7926         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7927         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7928         * tests/test-sys_select.c: Check that the tv_sec member has the same
7929         size as a 'time_t'.
7930         * tests/test-sys_time.c: Likewise.
7931         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7932         is set, set also REPLACE_GETTIMEOFDAY.
7933         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7934         convert the resulting 'struct timeval' before returning.
7935         * lib/select.c: Include <sys/time.h>.
7936         (select, timeval): Undefine at the right place.
7937         * modules/select (Depends-on): Add sys_time.
7938         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7939         some Windows platforms.
7940         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7941
7942 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7943
7944         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7945         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7946         an integer.
7947         * lib/fcntl.c (dupfd): Likewise.
7948         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7949
7950 2012-01-28  Bruno Haible  <bruno@clisp.org>
7951
7952         fcntl: Avoid compilation error on native Windows.
7953         * modules/fcntl (Depends-on): Add 'close'.
7954
7955 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7956
7957         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7958         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7959         pointer to an integer.
7960         * lib/poll.c (IsConsoleHandle): Likewise.
7961         * lib/isatty.c (IsConsoleHandle): Likewise.
7962
7963 2012-01-28  Jim Meyering  <meyering@redhat.com>
7964
7965         doc: clarify README-release
7966         * top/README-release: Clarify: you should make a point to have
7967         the latest stable versions of build tools in your PATH, and the
7968         reference to buildreq is solely for its list of tool names, not
7969         for its minimal-functional version numbers.
7970         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7971
7972         maint.mk: use more readable (yet functionally equivalent) quoting
7973         It is common to quote a single quote in a single quoted string like
7974         this:  '...'\''...'.  Unless you know the idiom, that looks like
7975         gibberish, so prefer to double-quote the string when possible.
7976         Then you can use a more readable, lone single quote: "...'..."
7977         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7978         "don't" is more readable than the equivalent 'don'\''t'.
7979         (sc_cast_of_x_alloc_return_value): Likewise.
7980         (sc_cast_of_alloca_return_value): Likewise.
7981         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7982         rather than '\'':'\''.
7983
7984 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7985
7986         stdalign: relax _Alignof and tighten _Alignas test
7987         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7988         as it was too strict: alignof must divide offsetof, but it need
7989         not equal offsetof.  Inspired by Joseph S. Myers's comment
7990         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7991         Conversely, tighten the _Alignas test a bit, as the resulting
7992         alignment must be exactly 8.
7993
7994 2012-01-27  Bruno Haible  <bruno@clisp.org>
7995
7996         stdalign: Document the last change.
7997         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7998
7999 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8000
8001         stdalign: check that alignof and offsetof are consistent
8002         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8003         Problem reported for gnulib by Richard W.M. Jones in
8004         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8005
8006 2012-01-27  Jim Meyering  <meyering@redhat.com>
8007
8008         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8009         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8010         convert a sequence with gaps to the minimal containing range.
8011         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8012         * tests/test-update-copyright.sh: Test for this.
8013         The FSF confirmed it is ok to do this, assuming there is at
8014         least one significant change per year in the affected range:
8015         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8016
8017 2012-01-26  Bruno Haible  <bruno@clisp.org>
8018
8019         pipe2: refine doc about thread-safety
8020         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8021         multithread-safety problem.
8022         * doc/glibc-functions/accept4.texi: Likewise.
8023
8024 2012-01-26  Bruno Haible  <bruno@clisp.org>
8025
8026         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8027         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8028         In the test program, include <fcntl.h>, for O_RDONLY.
8029
8030 2012-01-26  Eric Blake  <eblake@redhat.com>
8031
8032         pipe2: document lack of thread-safety in replacement
8033         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8034         issue in replacement.
8035         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8036         Based on a report by Eric Wong.
8037
8038 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8039             Bruno Haible  <bruno@clisp.org>
8040
8041         malloca: Avoid warnings on x86_64 mingw64.
8042         * lib/malloca.c: Include <stdint.h>.
8043         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8044         * modules/malloca (Depends-on): Add stdint.
8045         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8046
8047 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8048
8049         obstack: remove __STDC__ conditionals
8050         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8051         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8052         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8053         m4/include_next.m4 as the only gnulib-maintained places that still
8054         refer to __STDC__.
8055
8056 2012-01-24  Bruno Haible  <bruno@clisp.org>
8057
8058         havelib: Modern quoting.
8059         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8060         the recent change to the GNU coding standards.
8061
8062 2012-01-24  Bruno Haible  <bruno@clisp.org>
8063
8064         stdint: Improve support for Android.
8065         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8066         Reported by Simon Josefsson <simon@josefsson.org>.
8067
8068 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8069
8070         doc: omit trailing empty lines from INSTALL etc.
8071         * doc/Makefile (INSTALL): Omit trailing empty lines.
8072         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8073         omit trailing empty lines.  This simplifies the build procedure.
8074
8075 2012-01-23  Jim Meyering  <meyering@redhat.com>
8076
8077         tests: avoid spurious warnings about gl_sockets_startup
8078         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8079         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8080         reporting a "statement with no effect".
8081         * tests/test-accept.c (main): Mark as "(void)".
8082         * tests/test-accept4.c (main): Likewise.
8083         * tests/test-bind.c (main): Likewise.
8084         * tests/test-connect.c (main): Likewise.
8085         * tests/test-getpeername.c (main): Likewise.
8086         * tests/test-getsockname.c (main): Likewise.
8087         * tests/test-getsockopt.c (main): Likewise.
8088         * tests/test-listen.c (main): Likewise.
8089         * tests/test-recv.c (main): Likewise.
8090         * tests/test-recvfrom.c (main): Likewise.
8091         * tests/test-send.c (main): Likewise.
8092         * tests/test-sendto.c (main): Likewise.
8093         * tests/test-setsockopt.c (main): Likewise.
8094         * tests/test-shutdown.c (main): Likewise.
8095
8096 2012-01-21  Bruno Haible  <bruno@clisp.org>
8097
8098         locale-fr.m4: Fix for Android.
8099         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8100         failure of the test program on Bionic libc.
8101
8102 2012-01-21  Jim Meyering  <meyering@redhat.com>
8103
8104         bootstrap: fail when bootstrap_post_import_hook fails
8105         Otherwise, it's far too easy to miss diagnostics emitted
8106         between gnulib-tool's output and that of running configure.
8107         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8108
8109 2012-01-17  Jim Meyering  <meyering@redhat.com>
8110
8111         maint: enable sc_trailing_blank
8112         * build-aux/pmccabe.css: Remove trailing blanks.
8113         * doc/acl-cygwin.txt: Likewise.
8114         * doc/gnu-oids.texi: Likewise
8115         * cfg.mk: Enable sc_trailing_blank.
8116         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8117
8118 2012-01-17  Jim Meyering  <meyering@redhat.com>
8119
8120         maint: enable sc_prohibit_openat_without_use
8121         * cfg.mk: Enable sc_prohibit_openat_without_use.
8122         Exempt lib/selinux-at.c.
8123
8124 2012-01-17  Jim Meyering  <meyering@redhat.com>
8125
8126         maint: enable sc_prohibit_cloexec_without_use
8127         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8128         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8129
8130 2012-01-17  Jim Meyering  <meyering@redhat.com>
8131
8132         maint: enable sc_prohibit_intprops_without_use
8133         * cfg.mk: Enable sc_prohibit_intprops_without_use
8134         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8135
8136 2012-01-17  Jim Meyering  <meyering@redhat.com>
8137
8138         maint: enable sc_prohibit_hash_pjw_without_use
8139         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8140         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8141         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8142         following " (".
8143
8144 2012-01-17  Jim Meyering  <meyering@redhat.com>
8145
8146         maint: enable double-word-prohibiting rule
8147         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8148         Exempt three files.
8149
8150 2012-01-17  Jim Meyering  <meyering@redhat.com>
8151
8152         maint: remove empty lines at EOF, but excluding modules/*
8153         Apply syntax rules at home as well as abroad.  Most changes
8154         were induced by running this:
8155           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8156             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8157             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8158         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8159         Exempt modules/* and two binary files.
8160         Also exempt doc/INSTALL*, per request from Bruno Haible.
8161         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8162         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8163         * doc/Copyright/request-assign.future: Likewise.
8164         * doc/Copyright/request-disclaim.changes: Likewise.
8165         * doc/INSTALL: Likewise.
8166         * doc/INSTALL.ISO: Likewise.
8167         * doc/INSTALL.UTF-8: Likewise.
8168         * doc/acl-cygwin.txt: Likewise.
8169         * doc/acl-resources.txt: Likewise.
8170         * doc/fdl-1.2.texi: Likewise.
8171         * doc/fdl-1.3.texi: Likewise.
8172         * doc/fdl.texi: Likewise.
8173         * lib/argp-pin.c: Likewise.
8174         * lib/round.c: Likewise.
8175         * lib/unicase/u16-totitle.c: Likewise.
8176         * lib/unictype/block_test.c: Likewise.
8177         * lib/uninorm/canonical-decomposition.c: Likewise.
8178         * m4/README: Likewise.
8179         * m4/relocatable-lib.m4: Likewise.
8180         * tests/test-isnand-nolibm.c: Likewise.
8181         * tests/test-isnand.c: Likewise.
8182         * tests/uninorm/NormalizationTest.txt: Likewise.
8183
8184 2012-01-17  Jim Meyering  <meyering@redhat.com>
8185
8186         maint: add framework to run syntax-check rules against gnulib sources
8187         * cfg.mk: New file, to disable all currently-failing tests.
8188         We'll enable them one by one, as they are made to pass.
8189         * Makefile (sc_maint): New rule.
8190
8191 2012-01-21  Bruno Haible  <bruno@clisp.org>
8192
8193         stdint: Add support for Android.
8194         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8195         include the system's <stdint.h>.
8196         Reported by Simon Josefsson <simon@josefsson.org>.
8197
8198 2012-01-19  Jim Meyering  <meyering@redhat.com>
8199
8200         bootstrap: add bootstrap_post_import_hook
8201         Bison does still need something like the gnulib_mk_hook whose
8202         invocation I had to remove along with slurp in commit 767ccd40.
8203         Technically, we could get along without it, but doing so would
8204         have required living with a warning and a mandatory post-bootstrap
8205         automake rerun.
8206         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8207         (bootstrap_post_import_hook): New function.
8208         Invoke it after gnulib-tool --import and before autoreconf.
8209
8210 2012-01-18  Jim Meyering  <meyering@redhat.com>
8211
8212         gitlog-to-changelog: don't use "no_"-prefixed variable name
8213         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8214         to enable both --cluster and --no-cluster.  Change variable name,
8215         s/\$no_cluster/$cluster/, and reverse usage to match.
8216
8217         gitlog-to-changelog: use "||", not "or" in expressions
8218         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8219         expressions.
8220
8221 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8222
8223         gitlog-to-changelog: new option --no-cluster
8224         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8225         clustering of adjacent commit messages.
8226
8227 2012-01-17  Jim Meyering  <meyering@redhat.com>
8228
8229         maint: spell file systems with two words, not one
8230         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8231         two words, not one.
8232
8233 2012-01-16  Jim Meyering  <meyering@redhat.com>
8234
8235         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8236         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8237
8238 2012-01-16  Eric Blake  <eblake@redhat.com>
8239
8240         bootstrap: cater to autoconf 2.59
8241         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8242         is not available.
8243
8244         bootstrap: properly check for libtool
8245         * build-aux/bootstrap (libtoolize): Also run libtool when older
8246         usage is detected.
8247
8248 2012-01-15  Bruno Haible  <bruno@clisp.org>
8249
8250         Improve support for MSVC 9.
8251         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8252         clashes on MSVC.
8253         * lib/fcntl.in.h: Likewise.
8254         * lib/stdlib.in.h: Likewise.
8255         * lib/sys_stat.in.h: Likewise.
8256
8257 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8258
8259         gnupload: we hold the master copy of this script now
8260         For motivation and more information, see:
8261         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8262         * build-aux/gnupload: Make it clear in the heading comments that the
8263         master copy of this file is maintained by gnulib.  Since we are at
8264         it, bump its copyright year and ...
8265         ($scriptversion): ... the date in its version.
8266         ($usage): Patches and bug reports should be sent to the gnulib list,
8267         not the automake one.
8268         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8269         anymore.
8270
8271 2012-01-15  Bruno Haible  <bruno@clisp.org>
8272
8273         Fix module 'random'.
8274         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8275         initstate, setstate are declared.
8276
8277 2012-01-14  Bruno Haible  <bruno@clisp.org>
8278
8279         Tests for module 'random'.
8280         * modules/random-tests: New file.
8281         * tests/test-random.c: New file, based on tests/test-random_r.c.
8282
8283         New module 'random'.
8284         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8285         declarations.
8286         * lib/random.c: New file, based on glibc/stdlib/random.c.
8287         * m4/random.m4: New file.
8288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8289         HAVE_RANDOM.
8290         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8291         * modules/random: New file.
8292         * config/srclist.txt: Add an entry for random.c.
8293         * doc/posix-functions/random.texi: Mention the 'random' module.
8294         * doc/posix-functions/initstate.texi: Likewise.
8295         * doc/posix-functions/setstate.texi: Likewise.
8296         * doc/posix-functions/srandom.texi: Likewise.
8297
8298 2012-01-12  Bruno Haible  <bruno@clisp.org>
8299
8300         random_r: Use common idioms.
8301         * lib/random_r.c: Include <stdlib.h> first.
8302
8303         random_r: Override incompatible API on AIX, OSF/1.
8304         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8305         Override the system function if REPLACE_RANDOM_R is 1.
8306         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8307         and OSF/1, set REPLACE_RANDOM_R.
8308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8309         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8310         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8311         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8312         * doc/glibc-functions/random_r.texi: Likewise.
8313         * doc/glibc-functions/setstate_r.texi: Likewise.
8314
8315         random_r: Support for MSVC 9.
8316         * lib/random_r.c: Include stdint.h, not inttypes.h.
8317
8318 2012-01-12  Eric Blake  <eblake@redhat.com>
8319
8320         inet_ntop: guard extra work by IF_LINT
8321         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8322         better code generation when not checking for warnings.
8323         Suggested by Paul Eggert and Jim Meyering.
8324
8325         strptime: fix regression on mingw
8326         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8327         Fix regression.  Reported by Bruno Haible.
8328
8329 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8330             Bruno Haible  <bruno@clisp.org>
8331
8332         copy-file: add error-code-returning variant.
8333         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8334         (qcopy_file_preserving): New declaration.
8335         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8336         copy_file_preserving. Change return type to 'int'. Don't emit an error
8337         message here.
8338         (copy_file_preserving): New function.
8339         * tests/test-copy-file.c: Include <stdlib.h>.
8340         (main): Test qcopy_file_preserving if the environment variable
8341         NO_STDERR_OUTPUT is set.
8342         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8343         with NO_STDERR_OUTPUT
8344         * tests/test-copy-file-2.sh: Likewise.
8345
8346 2012-01-10  Bruno Haible  <bruno@clisp.org>
8347
8348         copy-file: Use 'quote' module consistently.
8349         * lib/copy-file.c (copy_file_preserving): Use quote().
8350
8351         copy-file: Refactor.
8352         * lib/copy-file.c: Include quote.h.
8353         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8354         message here.
8355         * modules/copy-file (Depends-on): Add quote.
8356
8357         acl: Export qcopy_acl.
8358         * lib/acl.h (qcopy_acl): New declaration.
8359         * lib/copy-acl.c (qcopy_acl): Make non-static.
8360
8361         acl: Rename a local variable.
8362         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8363
8364         acl: Align return values of copy_acl and qcopy_acl.
8365         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8366         maybe < -1.
8367
8368 2012-01-11  Eric Blake  <eblake@redhat.com>
8369
8370         strptime: silence gcc warnings
8371         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8372         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8373         Reported by Daniel P. Berrange.
8374
8375         inet_ntop: silence gcc warning
8376         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8377         Reported by Daniel P. Berrange.
8378
8379 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8380
8381         getloadavg test: skip the test on GNU/Linux without /proc mounted
8382         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8383         file.  When /proc is not mounted, it always fails with ENOENT.
8384         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8385         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8386
8387 2012-01-10  Bruno Haible  <bruno@clisp.org>
8388
8389         regex: Avoid link error on MSVC 9.
8390         * modules/regex (Depends-on): Add wctype.
8391
8392 2012-01-10  Bruno Haible  <bruno@clisp.org>
8393
8394         doc: Mention --with-tests option.
8395         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8396         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8397         --with-tests.
8398         Reported by Reuben Thomas.
8399
8400 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8401
8402         users.txt: order package names lexicographically.
8403         * users.txt: Order package names lexicographically.
8404
8405 2012-01-10  Jim Meyering  <meyering@redhat.com>
8406
8407         maint.mk: fix description in comment
8408         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8409
8410         ignore-value: remove deprecated ignore_ptr function
8411         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8412         * NEWS: Note this.
8413
8414 2012-01-09  Jim Meyering  <meyering@redhat.com>
8415
8416         test-init.sh: avoid a subshell
8417         * tests/test-init.sh: Remove protective subshell.
8418         Suggested by Bernhard Voelker.  While a subshell is normally
8419         required to protect against older shells (Solaris, FreeBSD) that
8420         warn about a missing program before performing redirection, the
8421         shell-selection tests performed by init.sh probably exclude any
8422         offending shell.
8423
8424 2012-01-08  Bruno Haible  <bruno@clisp.org>
8425
8426         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8427         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8428         variable.
8429
8430 2012-01-08  Bruno Haible  <bruno@clisp.org>
8431
8432         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8433         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8434         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8435         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8436         macro.
8437         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8438         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8439         * lib/spawn_faction_addopen.c: Add workaround implementation if
8440         HAVE_WORKING_POSIX_SPAWN.
8441         * modules/spawn (Makefile): Substitute
8442         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8443         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8444         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8445         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8446         (Depends-on): Update conditions.
8447         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8448         the Solaris 11 bug.
8449
8450 2012-01-08  Bruno Haible  <bruno@clisp.org>
8451
8452         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8453         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8454         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8455         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8456         macro.
8457         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8458         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8459         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8460         HAVE_WORKING_POSIX_SPAWN.
8461         * modules/spawn (Makefile): Substitute
8462         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8463         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8464         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8465         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8466         (Depends-on): Update conditions.
8467         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8468         the Solaris 11 bug.
8469
8470 2012-01-08  Bruno Haible  <bruno@clisp.org>
8471
8472         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8473         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8474         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8475         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8476         HAVE_WORKING_POSIX_SPAWN.
8477         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8478         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8479         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8480         * lib/spawn_faction_addclose.c: Add workaround implementation if
8481         HAVE_WORKING_POSIX_SPAWN.
8482         * modules/spawn (Makefile): Substitute
8483         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8484         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8485         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8486         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8487         (Depends-on): Update conditions.
8488         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8489         the Solaris 11 bug.
8490
8491 2012-01-08  Bruno Haible  <bruno@clisp.org>
8492
8493         doc: Update for Solaris 11 2011-11.
8494         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8495         * m4/printf.m4: Update comments.
8496
8497 2012-01-08  Bruno Haible  <bruno@clisp.org>
8498
8499         mktime: Avoid compilation error on Solaris 11.
8500         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8501
8502 2012-01-08  Bruno Haible  <bruno@clisp.org>
8503
8504         doc: Small fix.
8505         * doc/posix-headers/nl_types.texi: Correct platforms list.
8506
8507 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8508
8509         Add lgpl-3.0 module.
8510         * MODULES.html.sh (Support for building documentation): Add
8511         lgpl-3.0.
8512         * modules/lgpl-3.0: New file.
8513
8514 2012-01-08  Jim Meyering  <meyering@redhat.com>
8515
8516         select.c: indent with spaces, not TABs
8517         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8518
8519 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8520
8521         quotearg: do not use grave accent for left quote
8522         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8523         locale_quoting_style.
8524         (quotearg_buffer_restyled): Fix example.
8525         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8526
8527 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8528
8529         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8530         Most programs do not have translation catalogs for English and much
8531         less separate catalogs for British and American English.  Drop the
8532         suggestion to translators about these two, and provide it
8533         automatically for Unicode locales.  Like most programs, even those
8534         using American English, we use single quotation marks.  This conflicts
8535         with the American typographic convention, but works better when you
8536         cite the entire error message within double quotes.  It also tries not
8537         to clash with established practice and with what non-gnulib programs
8538         will usually do.
8539         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8540         using an UTF-8 or GB-18030 locale.  The list of other locales with
8541         quotes was provided by Bruno Haible.
8542         (quotearg_buffer_restyled): Adjust instructions to translators.
8543         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8544         text, since this would be wrong when using Unicode.
8545         * modules/quotearg: Depend on c-strcaseeq.
8546
8547 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8548
8549         quotearg: fix Wikipedia link
8550         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8551
8552 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8553
8554         Fix for mingw with MSVC9.
8555         * m4/ld-version-script.m4: Check that compiler rejects version
8556         scripts with syntax errors.  Reported by Bruno Haible
8557         <bruno@clisp.org>.
8558
8559 2012-01-06  Bruno Haible  <bruno@clisp.org>
8560
8561         Talk about "native Windows API", not "Woe32".
8562         * lib/accept4.c: Update comments to mention native Windows.
8563         * lib/execute.c: Likewise.
8564         * lib/fatal-signal.c: Likewise.
8565         * lib/localcharset.c: Likewise.
8566         * lib/nanosleep.c: Likewise.
8567         * lib/nl_langinfo.c: Likewise.
8568         * lib/pclose.c: Likewise.
8569         * lib/pipe-filter-gi.c: Likewise.
8570         * lib/pipe-filter-ii.c: Likewise.
8571         * lib/pipe.c: Likewise.
8572         * lib/pipe2.c: Likewise.
8573         * lib/popen.c: Likewise.
8574         * lib/progreloc.c: Likewise.
8575         * lib/relocatable.c: Likewise.
8576         * lib/sigaction.c: Likewise.
8577         * lib/sigprocmask.c: Likewise.
8578         * lib/spawn-pipe.h: Likewise.
8579         * lib/spawn-pipe.c: Likewise.
8580         * lib/spawni.c: Likewise.
8581         * lib/stat-time.h: Likewise.
8582         * lib/w32spawn.h: Likewise.
8583         * tests/test-isatty.c: Likewise.
8584         * lib/config.charset: More comments.
8585         * doc/gnulib-intro.texi: Mention native Windows.
8586         * doc/posix-functions/_Exit_C99.texi: Likewise.
8587         * doc/posix-headers/fcntl.texi: Likewise.
8588
8589 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8590
8591         argp: Avoid crash if translator uses % characters in a translation.
8592         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8593         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8594
8595 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8596
8597         doc: C11 and C++11 are now official
8598         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8599         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8600         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8601         * modules/stdalign:
8602         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8603
8604 2012-01-06  Bruno Haible  <bruno@clisp.org>
8605
8606         uc-is-grapheme-break tests: Tweak.
8607         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8608         message.
8609
8610 2012-01-06  Bruno Haible  <bruno@clisp.org>
8611
8612         test-init.sh: correct the test for diff -u
8613         * tests/test-init.sh: Also redirect stdout to /dev/null.
8614
8615 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8616
8617         Use ', not `, for quoting output.
8618         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8619         (print_changelog_deltas, get_tool_versions, main program):
8620         * build-aux/git-version-gen:
8621         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8622         * build-aux/move-if-change (help):
8623         * build-aux/useless-if-before-free (usage, main program):
8624         * check-module (parse_module_file, usage)
8625         (find_included_lib_files, check_module):
8626         * lib/argmatch.c (main) [TEST]:
8627         * lib/argp-help.c (_help):
8628         * lib/getopt1.c (main) [TEST]:
8629         * lib/git-merge-changelog.c (usage):
8630         * lib/xstrtol-error.c (xstrtol_error):
8631         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8632         * m4/argz.m4 (gl_FUNC_ARGZ):
8633         * m4/bison.m4 (gl_BISON):
8634         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8635         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8636         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8637         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8638         * m4/gc-random.m4 (gl_GC_RANDOM):
8639         * m4/intl.m4 (gt_CHECK_DECL):
8640         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8641         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8642         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8643         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8644         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8645         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8646         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8647         * tests/test-dirname.c (main):
8648         * tests/test-getpass.c (main):
8649         * tests/test-iconvme.c (main):
8650         * tests/test-parse-datetime.c (LOG):
8651         * tests/test-xstrtoimax.sh:
8652         * tests/test-xstrtol.sh:
8653         * tests/test-xstrtoll.sh:
8654         * tests/test-xstrtoumax.sh:
8655         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8656         * top/GNUmakefile (abort-due-to-no-makefile):
8657         Quote 'like this', not `like this', as per the recent change to
8658         the GNU coding standards.
8659
8660 2012-01-05  Bruno Haible  <bruno@clisp.org>
8661
8662         strtoimax: Don't force a replacement on systems where intmax_t is int.
8663         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8664         'intmax_t' is not larger than 'int'.
8665         Reported by Pádraig Brady <P@draigBrady.com>.
8666
8667 2012-01-05  Bruno Haible  <bruno@clisp.org>
8668
8669         doc: Mention NetBSD bugs.
8670         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8671         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8672
8673 2012-01-05  Bruno Haible  <bruno@clisp.org>
8674
8675         strtoumax tests: Enhance tests.
8676         * tests/test-strtoumax.c (main): Add tests for large values.
8677
8678 2012-01-05  Bruno Haible  <bruno@clisp.org>
8679
8680         strtoimax: Work around AIX 5.1 bug.
8681         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8682         definition.
8683         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8684         Set HAVE_STRTOIMAX.
8685         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8686         REPLACE_STRTOIMAX.
8687         * modules/inttypes-incomplete (Makefile.am): Substitute
8688         REPLACE_STRTOIMAX.
8689         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8690         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8691         (Depends-on): Update conditions.
8692         * tests/test-strtoimax.c (main): Add tests for large values.
8693         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8694
8695 2012-01-05  Bruno Haible  <bruno@clisp.org>
8696
8697         inttypes: Modernize.
8698         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8699         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8700         (Makefile.am): Update inttypes.h rule.
8701
8702 2012-01-05  Jim Meyering  <meyering@redhat.com>
8703
8704         init.sh: don't waste a subshell just to redirect stderr
8705         * tests/init.sh: In testing for diff -u and diff -c, use a
8706         stderr-redirecting exec inside `...` rather than a subshell.
8707
8708         test-init.sh: avoid failure on HP-UX 11.00
8709         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8710         resolves to diff -c or cmp.  Reported by Bruno Haible.
8711
8712 2012-01-05  Bruno Haible  <bruno@clisp.org>
8713
8714         Tests for module 'strtoull'.
8715         * modules/strtoull-tests: New file.
8716         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8717
8718 2012-01-05  Bruno Haible  <bruno@clisp.org>
8719
8720         Tests for module 'strtoll'.
8721         * modules/strtoll-tests: New file.
8722         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8723
8724 2012-01-05  Bruno Haible  <bruno@clisp.org>
8725
8726         Tests for module 'strtoul'.
8727         * modules/strtoul-tests: New file.
8728         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8729
8730 2012-01-05  Bruno Haible  <bruno@clisp.org>
8731
8732         Tests for module 'strtol'.
8733         * modules/strtol-tests: New file.
8734         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8735
8736 2012-01-04  Jim Meyering  <meyering@redhat.com>
8737
8738         test-init.sh: accommodate Solaris 5.10's different diff -u output
8739         * tests/test-init.sh: Also exempt @@ lines from the comparison
8740         of diff output, since Solaris 5.10 and GNU diff formats differ.
8741         Reported by Stefano Lattarini.
8742
8743 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8744
8745         test-posixtm: don't assume signed integer wraparound
8746         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8747         after signed integer overflow.  Inspired by (though it may not
8748         fix) Bruno Haible's bug report in
8749         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8750
8751         Spell out "Windows 9x" and "Windows XP".
8752         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8753         "Windows 9x" and "WinXP" with "Windows XP".
8754
8755 2012-01-04  Jim Meyering  <meyering@redhat.com>
8756
8757         test-vc-list-files-cvs.sh: remove obsolete comment
8758         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8759         double exit.  Now that's all encapsulated via skip_ and Exit.
8760
8761 2012-01-04  Bruno Haible  <bruno@clisp.org>
8762
8763         Talk about "native Windows API", not "Win32".
8764         * lib/classpath.c: Update comments to mention native Windows.
8765         * lib/csharpexec.c: Likewise.
8766         * lib/dup2.c: Likewise.
8767         * lib/error.c: Likewise.
8768         * lib/fcntl.c: Likewise.
8769         * lib/filename.h: Likewise.
8770         * lib/findprog.c: Likewise.
8771         * lib/get-rusage-as.c: Likewise.
8772         * lib/get-rusage-data.c: Likewise.
8773         * lib/getpagesize.c: Likewise.
8774         * lib/javaexec.c: Likewise.
8775         * lib/msvc-inval.c: Likewise.
8776         * lib/msvc-nothrow.c: Likewise.
8777         * lib/nanosleep.c: Likewise.
8778         * lib/nonblocking.c: Likewise.
8779         * lib/printf-parse.c: Likewise.
8780         * lib/setlocale.c: Likewise.
8781         * lib/sigaction.c: Likewise.
8782         * lib/strerror_r.c: Likewise.
8783         * lib/tmpdir.c: Likewise.
8784         * lib/vasnprintf.c: Likewise.
8785         * lib/w32spawn.h: Likewise.
8786         * lib/waitpid.c: Likewise.
8787         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8788         * m4/locale-ar.m4: Likewise.
8789         * m4/locale-fr.m4: Likewise.
8790         * m4/locale-ja.m4: Likewise.
8791         * m4/locale-tr.m4: Likewise.
8792         * m4/locale-zh.m4: Likewise.
8793         * m4/printf.m4: Likewise.
8794         * tests/test-cloexec.c: Likewise.
8795         * tests/test-copy-acl.sh: Likewise.
8796         * tests/test-copy-file.sh: Likewise.
8797         * tests/test-file-has-acl.sh: Likewise.
8798         * tests/test-set-mode-acl.sh: Likewise.
8799         * tests/test-dup-safer.c: Likewise.
8800         * tests/test-dup2.c: Likewise.
8801         * tests/test-dup3.c: Likewise.
8802         * tests/test-fcntl.c: Likewise.
8803         * tests/test-nonblocking-pipe.h: Likewise.
8804         * tests/test-nonblocking-socket.h: Likewise.
8805         * tests/test-pipe.c: Likewise.
8806         * tests/test-pipe2.c: Likewise.
8807         * tests/test-spawn-pipe-child.c: Likewise.
8808         * doc/acl-resources.txt: Likewise.
8809         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8810         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8811         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8812         * lib/localcharset.c: Update comments to mention native Windows.
8813         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8814         * lib/localename.c: Likewise.
8815         * lib/progreloc.c: Likewise.
8816         * lib/relocatable.c: Likewise.
8817         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8818         (windows_compute_revents): Renamed from win32_compute_revents.
8819         (windows_compute_revents_socket): Renamed from
8820         win32_compute_revents_socket.
8821         * lib/select.c: Update comments to mention native Windows.
8822         (windows_poll_handle): Renamed from win32_poll_handle.
8823         * m4/threadlib.m4: Update comments to mention native Windows.
8824         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8825         --enable-threads=windows instead of --enable-threads=win32. Set
8826         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8827         * lib/glthread/lock.h: Update comments to mention native Windows.
8828         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8829         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8830         USE_WIN32_THREADS.
8831         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8832         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8833         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8834         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8835         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8836         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8837         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8838         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8839         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8840         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8841         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8842         * tests/test-tls.c: Likewise.
8843         Rationale:
8844         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8845         on both 32-bit and 64-bit Windows systems.
8846         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8847         line of distinction is between "native Windows" on one side and Unix/
8848         POSIX systems on the other side. More details in
8849         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8850         Suggested by Paul Eggert.
8851
8852 2012-01-03  Bruno Haible  <bruno@clisp.org>
8853
8854         isatty: Support for MSVC 9.
8855         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8856         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8857         (_isatty_nothrow): New function.
8858         (isatty): Use it instead of _isatty.
8859         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8860         * lib/poll.c (IsConsoleHandle): Likewise.
8861         * lib/select.c (IsConsoleHandle): Likewise.
8862         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8863         (gl_PREREQ_ISATTY): New macro.
8864         * modules/isatty (Depends-on): Add msvc-inval.
8865         (configure.ac): Invoke gl_PREREQ_ISATTY.
8866
8867 2012-01-03  Jim Meyering  <meyering@redhat.com>
8868
8869         maint.mk: remove temporary transition aid from over 1.5 years ago
8870         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8871         purpose was to aid in the transition (avoiding silent malfunction)
8872         from that old name to the new _sc_search_regexp.  This shim was
8873         added by commit 219c504b.
8874
8875         init.sh: do not try to accommodate compare arguments starting with "-"
8876         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8877         compare arguments that start with "-".  Besides, we do not worry
8878         about this when invoking diff or cmp; why start now with sed?
8879         Using "--" to separate options from argument would trigger sed
8880         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8881         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8882
8883 2012-01-02  Bruno Haible  <bruno@clisp.org>
8884
8885         Enhance tests for module 'isatty'.
8886         * modules/isatty-tests (Depends-on): Add pipe-posix.
8887         * tests/test-isatty.c: Include <fcntl.h>.
8888         (DEV_NULL): New macro.
8889         (main): Test the resut of isatty() also on regular files, pipes, and
8890         /dev/null.
8891
8892         New module 'isatty'.
8893         * lib/unistd.in.h (isatty): New declaration.
8894         * lib/isatty.c: New file, based on an idea of
8895         Bastien Roucariès <roucaries.bastien@gmail.com>.
8896         * m4/isatty.m4: New file.
8897         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8898         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8899         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8900         REPLACE_ISATTY.
8901         * modules/isatty: New file.
8902         * doc/posix-functions/isatty.texi: Mention the new module.
8903         Suggested by Paolo Bonzini.
8904
8905 2012-01-02  Bruno Haible  <bruno@clisp.org>
8906
8907         canonicalize: Tweak 2011-12-29 commit.
8908         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8909         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8910
8911 2012-01-02  Jim Meyering  <meyering@redhat.com>
8912
8913         gitlog-to-changelog: describe input syntax in --help output
8914         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8915
8916         gitlog-to-changelog: fix typo in --help: show backslash before email @
8917         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8918         in sources, but not in actual output.
8919
8920 2011-12-30  Jim Meyering  <meyering@redhat.com>
8921
8922         gitlog-to-changelog: don't malfunction when name contains %-directive
8923         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8924         in a name string cause trouble.  E.g., with a user name of "%s",
8925         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8926
8927 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8928
8929         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8930         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8931         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8932         the "  (tiny change)" notation that is appended to the standard
8933         ChangeLog "date  name  email" header line.
8934
8935 2012-01-01  Jim Meyering  <meyering@redhat.com>
8936
8937         test-framework-sh: init.sh: fix "make dist" failure
8938         When using gnulib-tool's --with-tests option and any module that
8939         depends on test-framework-sh, "make dist" would fail due to the
8940         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8941         in the gltests directory, and not in the gllib/ directory.
8942         One way to work around that is to move the EXTRA_DIST += init.sh
8943         from the primary module to the -tests one:
8944         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8945         * modules/test-framework-sh (Makefile.am): ...not here.
8946         Reported by Tom G. Christensen in
8947         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8948
8949         version-etc: update copyright year reported by --version
8950         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8951
8952 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8953
8954         canonicalize: only stat() if required
8955         * lib/canonicalize.c (canonicalize_filename_mode):
8956         Avoid calling l?stat() when both CAN_MISSING,
8957         and CAN_NOLINKS are set, as we neither need
8958         to resolve symlinks or test component existence.
8959
8960 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8961
8962         doc: cover st_ino issues once; add OpenVMS etc.
8963         * doc/posix-functions/stat.texi (stat):
8964         * doc/posix-functions/lstat.texi (lstat):
8965         * doc/posix-functions/fstatat.texi (fstatat):
8966         * doc/posix-functions/fstat.texi (fstat):
8967         Move general 'struct stat' stuff to sys_stat.texi,
8968         leaving behind a pointer.
8969         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8970         Merge duplicate info about 'struct stat' problems into here.
8971         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8972         and suggest partial workarounds.
8973
8974         same-inode: port to OpenVMS
8975         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8976         three st_ino values.
8977
8978 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8979
8980         canonicalize: fix references to stat() and lstat()
8981         * lib/canonicalize.c (canonicalize_filename_mode):
8982         Ensure references always resolve to a replacement
8983         function if required (even via a macro).
8984
8985 2011-12-30  Jim Meyering  <meyering@redhat.com>
8986
8987         gitlog-to-changelog: remove a little duplication
8988         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8989         rather than twice.
8990
8991 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8992
8993         canonicalize: add support for not resolving symlinks
8994         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8995         indicate we don't want to follow symlinks.  Also
8996         provide CAN_MODE_MASK to aid setting these existing
8997         mutually exclusive values.
8998         * lib/canonicalize.c (canonicalize_filename_mode):
8999         Extract the flags from can_mode parameter, which
9000         are currently just used to select between stat()
9001         and lstat().  Also ensure that mutually exclusive
9002         values are flagged immediately as invalid.
9003         * tests/test-canonicalize.c: Verify symlinks are
9004         not followed, and that invalid flag combinations
9005         are diagnosed.
9006
9007 2011-12-25  Jim Meyering  <meyering@redhat.com>
9008
9009         gitlog-to-changelog: do not clump multi-paragraph entries
9010         Identical header lines (date,name,email+coauthors) are suppressed,
9011         thus putting all entries with those same characteristics under
9012         a single header.  However, when a log entry consists of two or
9013         more paragraphs, it may not be clear where it starts and ends.
9014         This change makes it so that such an entry is always separated
9015         from others by a header line, even when that header would
9016         otherwise be suppressed.
9017         * build-aux/gitlog-to-changelog: Implement the above.
9018         Inspired by a related request from Stefano Lattarini in
9019         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9020
9021 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9022
9023         announce-gen: fix `cmd' typo in diagnostic
9024         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9025         diagnostic: a missing '$' meant that the command was not output.
9026
9027 2011-12-23  Jim Meyering  <meyering@redhat.com>
9028
9029         test-framework-sh: distribute init.sh
9030         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9031         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9032         fail due to the lack of init.sh.
9033
9034         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9035         * modules/atexit-tests: Rather than listing tests/init.sh,
9036         now that there's a module for it, simply depend on that new module.
9037         * modules/closein-tests: Likewise.
9038         * modules/exclude-tests: Likewise.
9039         * modules/getcwd-tests: Likewise.
9040         * modules/perror-tests: Likewise.
9041         * modules/pread-tests: Likewise.
9042         * modules/pwrite-tests: Likewise.
9043         * modules/vc-list-files-tests: Likewise.
9044         * modules/verify-tests: Likewise.
9045         * modules/xalloc-die-tests: Likewise.
9046         * modules/xstrtoimax-tests: Likewise.
9047         * modules/xstrtol-tests: Likewise.
9048         * modules/xstrtoll-tests: Likewise.
9049         * modules/xstrtoumax-tests: Likewise.
9050         * modules/yesno-tests: Likewise.
9051
9052 2011-12-22  Jim Meyering  <meyering@redhat.com>
9053
9054         test-framework-sh: add minimal tests of init.sh's compare function
9055         * modules/test-framework-sh-tests: New file.
9056         * tests/test-init.sh: New file.
9057
9058         test-framework-sh: new module
9059         * modules/test-framework-sh: New file.
9060         * MODULES.html.sh (Support for maintaining and releasing projects):
9061         List it.
9062
9063         init.sh: do not emit simulated diff output to stderr
9064         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9065
9066 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9067
9068         .gitignore: ignore gnulib.dvi and regex.info
9069         * doc/.gitignore:add gnulib.dvi and regex.info
9070
9071 2011-12-22  Jim Meyering  <meyering@redhat.com>
9072
9073         init.sh: correct previous change
9074         * tests/init.sh (compare): My previous change was wrong.
9075         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9076
9077         init.sh: avoid unwarranted test failure when using "set -e"
9078         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9079         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9080         a use like "compare exp out" would get evoke an unconditional failure.
9081
9082 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9083
9084         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9085         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9086         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9087         autoreconf that did not.
9088         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9089         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9090
9091 2011-12-17  Jim Meyering  <meyering@redhat.com>
9092
9093         bootstrap: remove some now-unneeded code
9094         This script arose back when gnulib-tool was young.
9095         Since then, it has seen improvements that render much of this
9096         script unnecessary.  In particular, it can now make symlinks
9097         to the files it uses.  Also, I no longer see as much value in
9098         marking files as read-only via comments.
9099         If you relied on the symlink-creation feature of the preceding
9100         version of this script, you can get most of that functionality
9101         by adding the --symlink option to the definition of
9102         gnulib_tool_option_extras in your bootstrap.conf file.
9103         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9104         Run autopoint and libtoolize *before* gnulib-tool.
9105         After it, run an abbreviated autoreconf, rather than a loop around
9106         all tools.
9107         (slirp, bt_mark_as_generated): Remove functions.
9108
9109 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9110
9111         ftoastr: fix typo
9112         * lib/ftoastr.h: Fix misspelling in comment.
9113
9114 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9115
9116         * top/README-release: fix punctuation.
9117
9118 2011-12-17  Jim Meyering  <meyering@redhat.com>
9119
9120         bootstrap: correct the recent buildreq change
9121         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9122         had no effect.
9123         * build-aux/bootstrap (buildreq): Bracket each search term with
9124         "*...*", so that the shell "case" statement works as intended.
9125         Add comments.
9126
9127 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9128
9129         build: let bootstrap resort to wget when downloading .po files
9130         * build-aux/bootstrap (download_po_files): Fallback to wget when
9131         downloading the .po files via rsync fails.  This is necessary to
9132         bootstrap from behind a strict firewall.
9133
9134 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9135
9136         stdint: don't assume C++11 when compiling with g++
9137         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9139         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9140         work also in C++ before C++11, as that improperly inhibits
9141         generating a substitute stdint.h for that case.
9142
9143 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9144
9145         alloca: protect comment from gnulib-tool
9146         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9147         that gnulib-tool doesn't think it's a license, and munge it to
9148         say "GCC version 3".
9149
9150 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9151
9152         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9153         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9154         $(abs_top_builddir) instead of $(top_builddir).
9155
9156 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9157
9158         strftime-tests: also test nanoseconds
9159         * tests/test-strftime.c (T): Add a test of %N.
9160
9161 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9162
9163         inttypes, stdint: add C++11 support
9164         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9165         when including inttypes.h and stdint.h.  Support this change to
9166         the standard.
9167         * doc/posix-headers/inttypes.texi (inttypes.h):
9168         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9169         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9170         Define if not defined already, for the benefit of pre-C++11 hosts.
9171         Define the standard format macros (e.g., PRId8) always.
9172         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9173         Likewise, if __cpluspus.  Define the standard constant and limit
9174         macros (e.g., INT8_C, INT8_MAX) always.
9175         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9176         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9177         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9178         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9179         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9180         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9181         Likewise.
9182
9183 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9184
9185         nonblocking tests: Fix test failure on Linux/PPC.
9186         Suggested by Prerna Saxena in
9187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9188         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9189         Set to 1100000.
9190
9191 2011-12-12  Jim Meyering  <meyering@redhat.com>
9192
9193         argmatch: don't hard-code `' when listing valid option arguments
9194         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9195         use the quote function to add quotes.  Use fputs rather than
9196         fprintf for the format string with no format directive.
9197
9198 2011-12-07  Eric Blake  <eblake@redhat.com>
9199
9200         bootstrap: detect tools required by gnulib-tool
9201         * build-aux/bootstrap (buildreq): Provide minimum implicit
9202         dependencies.
9203         * DEPENDENCIES: Mention patch as a prereq.
9204
9205 2011-12-04  Bruno Haible  <bruno@clisp.org>
9206
9207         sethostname: Port to Windows platforms.
9208         * lib/sethostname.c: Provide an alternate implementation for Windows
9209         platforms.
9210         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9211         (main): Skip the test if sethostname() fails with EPERM. On Windows
9212         platforms, don't check the result of gethostname().
9213
9214 2011-12-04  Bruno Haible  <bruno@clisp.org>
9215             Jim Meyering  <meyering@redhat.com>
9216
9217         tests: Avoid spurious error message on platforms without mktemp program.
9218         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9219
9220 2011-12-04  Bruno Haible  <bruno@clisp.org>
9221
9222         sethostname: Fix documentation.
9223         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9224         "not fixed" section.
9225
9226 2011-12-03  Bruno Haible  <bruno@clisp.org>
9227
9228         gnulib-tool: Verify that the License field is present and non-empty.
9229         * gnulib-tool (func_get_license_raw): New function, extracted from
9230         func_get_license.
9231         (func_get_license): Use it. Warn if the module is not a test module and
9232         has no license.
9233         Suggested by Jim Meyering.
9234
9235 2011-12-03  Bruno Haible  <bruno@clisp.org>
9236
9237         sethostname tests: Fix link error on mingw.
9238         * tests/test-sethostname1.c: New file, extracted from
9239         tests/test-sethostname.c.
9240         * tests/test-sethostname2.c: New file, extracted from
9241         tests/test-sethostname.c.
9242         * tests/test-sethostname.c: Remove file.
9243         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9244         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9245         (Depends-on): Add gethostname.
9246         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9247         Link the latter with $(GETHOSTNAME_LIB).
9248
9249         sethostname tests: Fix compilation error on mingw.
9250         * tests/test-sethostname.c: Don't include <sys/types.h>.
9251         (geteuid): Use a dummy value without uid_t.
9252         * modules/sethostname-tests (Depends-on): Remove sys_types.
9253
9254         sethostname tests: Avoid a gcc warning.
9255         * tests/test-sethostname.c (main): Remove an unused variable.
9256
9257         Tweak last commit.
9258         * modules/sethostname-tests (Files): Sort by decreasing importance.
9259         (configure.ac): Check for geteuid.
9260         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9261         the test when there's nothing to test. Drop an unnecessary cast.
9262         Improve an error message. Verify that the final sethostname() call
9263         succeeds.
9264
9265 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9266
9267         Add a test suite for the sethostname module.
9268         * modules/sethostname-tests: New file.  A test program
9269         for the sethostname module.
9270         * tests/test-sethostname.c: Likewise.
9271
9272 2011-12-03  Bruno Haible  <bruno@clisp.org>
9273
9274         Tweak last commit.
9275         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9276         Fix preprocessor directives indentation. Fix typos.
9277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9278         * modules/unistd (Makefile): Likewise.
9279
9280 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9281
9282         Integrate the sethostname module into unistd.
9283         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9284         into the unistd.h header.
9285         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9286         preprocessor directives.
9287         * modules/unistd: Setup the Makefile substitutions of the
9288         SETHOSTNAME preprocessor directives.
9289
9290 2011-12-03  Bruno Haible  <bruno@clisp.org>
9291
9292         Tweak last commit.
9293         * lib/sethostname.c: Don't include <string.h>.
9294         (sethostname): No need to copy the argument string to the stack. Don't
9295         call clearerr. Preserve errno when fprintf failed.
9296         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9297         Don't invoke AC_REPLACE_FUNCS.
9298         * modules/sethostname (Link): Remove empty section.
9299         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9300         failure problem.
9301
9302 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9303
9304         New module 'sethostname'.
9305         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9306         for systems that lack it.
9307         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9308         sethostname declaration and function.
9309         * modules/sethostname: New file.  Define the sethostname module.
9310
9311 2011-12-03  Bruno Haible  <bruno@clisp.org>
9312
9313         Tweak last commit.
9314         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9315
9316 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9317
9318         Split the HOST_NAME_MAX detection into a separate m4 macro.
9319         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9320         macro so it can be used by the pending sethostname module.
9321
9322 2011-12-03  Bruno Haible  <bruno@clisp.org>
9323
9324         Fix module descriptions syntax.
9325         * modules/argv-iter (License): Fix syntax.
9326         * modules/di-set (License): Likewise.
9327         * modules/ino-map (License): Likewise.
9328         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9329
9330 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9331
9332         stdalign: port to Clang 3.0
9333         Problem reported by Simon Josefsson in
9334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9335         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9336         which has <stdalign.h> but which does not define alignof.
9337         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9338
9339 2011-12-01  Eric Blake  <eblake@redhat.com>
9340
9341         mktempd: silence dd usage
9342         * build-aux/mktempd (rand_bytes): Silence dd.
9343
9344 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9345
9346         manywarnings: Don't mention gcc version in docstring.
9347         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9348         Jim Meyering <meyering@redhat.com>.
9349
9350 2011-11-30  Jim Meyering  <meyering@redhat.com>
9351
9352         hash: mark a few floating point constants with "f" suffix
9353         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9354         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9355         floating point constants with "f", since they're destined to be
9356         saved/used as "float"s.
9357
9358 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9359
9360         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9361         * tests/test-float.c (test_long_double): Correct and re-enable the
9362         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9363
9364 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9365
9366         Avoid subtracting two pointers that don't point into the same block.
9367         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9368         only pointers into the same memory block are subtracted. We cannot
9369         assume that sizeof (ptrdiff_t) == sizeof (void *).
9370
9371 2011-11-29  Eric Blake  <eblake@redhat.com>
9372
9373         maint.mk: add syntax check for use of compare from init.sh
9374         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9375         moved here from coreutils.
9376
9377         manywarnings: drop -Wunsuffixed-float-constants
9378         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9379         '1.0D', which is the only way to silence this warning for 'double'.
9380
9381 2011-11-29  Jim Meyering  <meyering@redhat.com>
9382
9383         hash: mark compute_bucket_size with the pure attribute
9384         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9385
9386         quotearg, propername: correct pragma guard expression
9387         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9388         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9389
9390 2011-11-28  Jim Meyering  <meyering@redhat.com>
9391
9392         propername: do not mark proper_name with the const attribute
9393         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9394         since it examines data pointed to by its parameter.
9395         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9396         the suggestion from -Wsuggest-attribute=const.
9397
9398         propername: mark one more function as const
9399         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9400
9401 2011-11-27  Jim Meyering  <meyering@redhat.com>
9402
9403         mark functions with const and pure attributes
9404
9405         Mark functions per suggestions from gcc-4.6 when using these options:
9406         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9407         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9408         Follow these guidelines: when possible, apply the attribute to
9409         an extern declaration, not to its definition.  Apply it to the
9410         definition only when the definition is static.
9411         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9412         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9413         * lib/base64.h (isbase64): Likewise.
9414         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9415         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9416         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9417         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9418         (c_tolower, c_toupper): Likewise.
9419         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9420         * lib/chdir-long.c (find_non_slash): Likewise.
9421         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9422         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9423         * lib/file-type.h (file_type): Likewise.
9424         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9425         * lib/filevercmp.c (verrevcmp): Likewise.
9426         * lib/freadahead.h (freadahead): Likewise.
9427         * lib/fts.c (fts_maxarglen): Likewise.
9428         * lib/hash-pjw.h (hash_pjw): Likewise.
9429         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9430         * lib/hash.c (is_prime, next_prime): Likewise.
9431         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9432         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9433         (hash_table_ok, hash_get_first, hash_string): Likewise.
9434         (compute_bucket_size): Likewise.
9435         * lib/i-ring.h (i_ring_empty): Likewise.
9436         * lib/isnan.c (isnanl): Likewise.
9437         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9438         * lib/memcasecmp.h (memcasecmp): Likewise.
9439         * lib/memchr2.h (memchr2): Likewise.
9440         * lib/memcmp2.h (memcmp2): Likewise.
9441         * lib/parse-datetime.y (lookup_zone): Likewise.
9442         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9443         [!WINDOWS_SOCKETS]: Likewise.
9444         * lib/strnlen1.h (strnlen1): Likewise.
9445         * lib/uniwidth.in.h (uc_width): Likewise.
9446         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9447         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9448         (quoting_options_from_style): Add a comment.
9449         * lib/propername.h (proper_name): Add a comment.
9450
9451 2011-11-27  Bruno Haible  <bruno@clisp.org>
9452
9453         Remove unused macros from !_LIBC code in glibc-borrowed files.
9454         * lib/fnmatch.c (STRCOLL): Remove macro.
9455         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9456         * lib/glob.c (__stat, __readdir64): Remove macros.
9457         * lib/tempname.c (__open64, __xstat64): Remove macros.
9458         Suggested by Paul Eggert.
9459
9460 2011-11-27  Bruno Haible  <bruno@clisp.org>
9461
9462         getcwd: Fix link error on MSVC 9.
9463         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9464
9465 2011-11-27  Bruno Haible  <bruno@clisp.org>
9466
9467         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9468         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9469         HAVE_OPENDIR is 0.
9470         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9471         HAVE_CLOSEDIR is 0.
9472         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9473         is 0.
9474         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9475
9476 2011-11-27  Bruno Haible  <bruno@clisp.org>
9477
9478         getcwd: Fix bug from 2011-08-17.
9479         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9480         platforms that need it.
9481         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9482         code of 4 to be a failure, not a success. This ensures that
9483         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9484
9485 2011-11-27  Bruno Haible  <bruno@clisp.org>
9486
9487         binary-io tests: Avoid test failure on mingw when libtool is used.
9488         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9489         Don't verify the size of t-bin-out1.tmp here.
9490         * tests/test-binary-io.sh: Verify it here.
9491         Reported by Simon Josefsson.
9492
9493 2011-11-26  Bruno Haible  <bruno@clisp.org>
9494
9495         Fix conflict between two instantiations of module 'unistd'.
9496         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9497         ${include_guard_prefix} also in the autoconf snippet.
9498         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9500         GNULIB_UNISTD_H_GETOPT.
9501         * modules/getopt-posix (configure.ac): Set the
9502         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9503         * modules/getopt-gnu (configure.ac): Likewise.
9504         * modules/unistd (Makefile.am): Change the substitution value of
9505         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9506         Reported by Simon Josefsson.
9507
9508 2011-11-25  Bruno Haible  <bruno@clisp.org>
9509
9510         pagealign_alloc: Doc and comments.
9511         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9512         module.
9513         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9514
9515 2011-11-25  Jim Meyering  <meyering@redhat.com>
9516
9517         test-update-copyright.sh: avoid false-positive failure
9518         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9519         around false positive failure on Cygwin/Windows.  The latter was
9520         matching erroneously-created files with names like
9521         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9522
9523 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9524
9525         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9526         * m4/valgrind-tests.m4: Check that the parameters that will be
9527         used works, not just a subset of them.  Reported by Bruno Haible
9528         <bruno@clisp.org>.
9529
9530 2011-11-24  Jim Meyering  <meyering@redhat.com>
9531
9532         test-stdalign.c: comment out long double tests
9533         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9534         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9535         error: '_Alignas' specifiers cannot reduce alignment of \
9536         'static_longdouble_alignas'.
9537
9538 2011-11-22  Jim Meyering  <meyering@redhat.com>
9539
9540         init.sh: make "compare /dev/null FILE" output more readable
9541         * tests/init.sh (compare_): Document the preferred order of arguments.
9542         (emit_diff_u_header_): New function.
9543         (compare_dev_null_): Emit a simulated diff, rather than just the
9544         contents of the unexpected file.  Suggestion from Bruno Haible.
9545
9546 2011-11-21  Jim Meyering  <meyering@redhat.com>
9547             Eric Blake  <eblake@redhat.com>
9548
9549         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9550         * tests/init.sh: Make our compare function slightly more portable.
9551         Reported by Bruno Haible in
9552         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9553
9554 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9555
9556         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9557         before using it, in code that ends up in config.h.
9558
9559 2011-11-20  Bruno Haible  <bruno@clisp.org>
9560
9561         getcwd: Work around getcwd bug on AIX 5..7.
9562         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9563         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9564         Use a different value for gl_cv_func_getcwd_path_max. Move the
9565         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9566         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9567         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9568         Define HAVE_MINIMALLY_WORKING_GETCWD.
9569         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9570         where it is not even minimally working, that is, on AIX.
9571         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9572         m4/getcwd-path-max.m4.
9573         (main): Update exit code computation.
9574         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9575         getcwd does not handle long file names.
9576
9577 2011-11-20  Bruno Haible  <bruno@clisp.org>
9578
9579         getcwd: Fix bug from 2009-09-10.
9580         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9581         like "no".
9582
9583 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9584
9585         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9586
9587 2011-11-20  Bruno Haible  <bruno@clisp.org>
9588
9589         fma tests: Avoid shadowing local variables.
9590         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9591         expected.
9592
9593 2011-11-20  Bruno Haible  <bruno@clisp.org>
9594
9595         copysignf tests: Fix.
9596         * tests/test-copysignf.c: Fix signature check.
9597
9598 2011-11-20  Bruno Haible  <bruno@clisp.org>
9599
9600         fma: Remove unused code.
9601         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9602         unused macros.
9603
9604 2011-11-20  Bruno Haible  <bruno@clisp.org>
9605
9606         sethostname: Fix doc about AIX.
9607         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9608         sethostname; it has it.
9609
9610         sethostname: Mention more portability problems.
9611         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9612         problem.
9613         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9614
9615 2011-11-19  Bruno Haible  <bruno@clisp.org>
9616
9617         Depend on module fcntl-h when AT_FDCWD is used.
9618         * modules/utimens (Depends-on): Add fcntl-h.
9619         * modules/areadlinkat (Depends-on): Likewise.
9620         * modules/areadlinkat-with-size (Depends-on): Likewise.
9621         * modules/faccessat (Depends-on): Likewise.
9622         * modules/fchmodat (Depends-on): Likewise.
9623         * modules/fchownat (Depends-on): Likewise.
9624         * modules/getcwd (Depends-on): Likewise.
9625         * modules/mkdirat (Depends-on): Likewise.
9626         * modules/mkfifoat (Depends-on): Likewise.
9627         * modules/readlinkat (Depends-on): Likewise.
9628         * modules/symlinkat (Depends-on): Likewise.
9629         * modules/dup2-tests (Depends-on): Likewise.
9630         * modules/fdutimensat-tests (Depends-on): Likewise.
9631         * modules/futimens-tests (Depends-on): Likewise.
9632
9633 2011-11-19  Bruno Haible  <bruno@clisp.org>
9634
9635         euidaccess: Update a comment.
9636         * lib/euidaccess.c: Update comment about platforms with faccessat.
9637
9638 2011-11-19  Bruno Haible  <bruno@clisp.org>
9639
9640         openat: Fix file list.
9641         * modules/openat (Files): Remove lib/at-func.c.
9642
9643 2011-11-19  Bruno Haible  <bruno@clisp.org>
9644
9645         fstatat: Simplify.
9646         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9647         gnulib should define rpl_fstatat, there is a
9648         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9649
9650 2011-11-19  Bruno Haible  <bruno@clisp.org>
9651
9652         Ensure 'inline' can be used in tests/test-utimens-common.h.
9653         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9654         * modules/futimens-tests (configure.ac): Likewise.
9655         * modules/utimens-tests (configure.ac): Likewise.
9656         * modules/utimensat-tests (configure.ac): Likewise.
9657
9658 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9659
9660         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9661         not hash_insert0.
9662         (hash_insert_if_absent): Doc fix.
9663
9664 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9665
9666         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9667
9668 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9669
9670         test-getcwd: disambiguate exit status
9671         * tests/test-getcwd.c (test_long_name): Return 0..7.
9672         (main): Exit with an unambiguous exit status.  The old
9673         code yielded a mysterious mixture of two failure codes.
9674
9675         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9676         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9677         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9678         rpl_fstatat or fstatat.  This should fix the other problem
9679         reported by Kai Habel in
9680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9681         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9683         and I reproduced it on a Solaris 8 host we still have in production.
9684
9685 2011-11-18  Jim Meyering  <meyering@redhat.com>
9686
9687         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9688         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9689         Add a sentence to the comment.
9690         (hash_insert0): New function that simply calls hash_insert_if_absent.
9691         * lib/hash.h (hash_insert_if_absent): Declare it.
9692         (hash_insert0): Add deprecation attribute.
9693         (_GL_ATTRIBUTE_DEPRECATED): Define.
9694         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9695         not hash_insert0.
9696         * NEWS: Mention it, even though it's not really an incompatible change.
9697
9698 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9699
9700         openat: avoid compilation failure due to lack of <errno.h> inclusion
9701         * lib/openat.c: Include <errno.h>.
9702
9703 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9704
9705         * modules/getcwd (Depends-on): Add fdopendir.
9706         This fixes one of the two problems reported by Kai Habel in
9707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9708
9709         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9710         stdalign problem reported by Ian Beckwith in
9711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9712         * modules/crypto/gc-arcfour (Depends-on):
9713         Depend conditionally on crypto/arcfour.
9714         * modules/crypto/gc-arctwo (Depends-on):
9715         Depend conditionally on crypto/arctwo.
9716         * modules/crypto/gc-des (Depends-on):
9717         Depend conditionally on crypto/des.
9718         * modules/crypto/gc-hmac-md5 (Depends-on):
9719         Depend conditionally on crypto/hmac-md5.
9720         * modules/crypto/gc-hmac-sha1 (Depends-on):
9721         Depend conditionally on crypto/hmac-sha1.
9722         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9723         * modules/crypto/gc-md4 (Depends-on):
9724         Depend conditionally on crypto/md4.
9725         * modules/crypto/gc-md5 (Depends-on):
9726         Depend conditionally on crypto/md5.
9727         * modules/crypto/gc-rijndael (Depends-on):
9728         Depend conditionally on crypto/rijndael.
9729         * modules/crypto/gc-sha1 (Depends-on):
9730         Depend conditionally on crypto/sha1.
9731         * modules/crypto/gc-arcfour:
9732         * modules/crypto/gc-arctwo:
9733         * modules/crypto/gc-des:
9734         * modules/crypto/gc-hmac-md5:
9735         * modules/crypto/gc-hmac-sha1:
9736         * modules/crypto/gc-md2:
9737         * modules/crypto/gc-md4:
9738         * modules/crypto/gc-md5:
9739         * modules/crypto/gc-rijndael:
9740         * modules/crypto/gc-sha1:
9741         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9742         now that the conditional dependencies do the work for us.
9743
9744 2011-11-17  Jim Meyering  <meyering@redhat.com>
9745
9746         tests: factor st_ctime-comparison out of two headers
9747         * tests/test-utimens-common.h (ctime_compare): Define.
9748         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9749         * tests/test-lutimens.h (test_lutimens): Likewise.
9750         * tests/test-utimens.h (test_utimens): Likewise.
9751
9752         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9753         Invoke the test program via an init.sh-using wrapper.
9754         * tests/test-getcwd.sh: New file.
9755         * modules/getcwd-tests (Files): Add it.
9756         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9757
9758 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9759
9760         gitlog-to-changelog: support multi-author commits.
9761         The FSF cares about keeping track of all authors of patches to its
9762         projects, but Git doesn't provide obvious support for multi-author
9763         changesets. Consensus seems to be forming around the use of extra
9764         Signed-off-by inspired lines in the log message formatted as
9765         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9766         multi-author commits between version control systems.
9767         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9768         log message and output in standard ChangeLog multi-author format.
9769         Reported by Peter Rosin <peda@lysator.liu.se>
9770
9771 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9772             Bruno Haible  <bruno@clisp.org>
9773
9774         Fix some modules' file list.
9775         * modules/fstatat (Files): Add m4/lstat.m4.
9776         * modules/openat (Files): Likewise.
9777         * modules/unlinkat (Files): Likewise.
9778
9779 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9780
9781         maint.mk: fix tight-scope.mk generation in VPATH builds.
9782         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9783         reference with $(srcdir) so that the file is found correctly even
9784         when running `make syntax-check' in a VPATH build.
9785
9786 2011-11-13  Bruno Haible  <bruno@clisp.org>
9787             Jim Meyering  <meyering@redhat.com>
9788
9789         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9790         * tests/init.sh (compare): Remove "No differences encountered" or
9791         synonymous output from the 'diff' program.
9792
9793 2011-11-13  Bruno Haible  <bruno@clisp.org>
9794
9795         Makefile: Tweak indentation.
9796         * Makefile: Use tab as first character in every line that contains rule
9797         commands.
9798
9799 2011-11-13  Bruno Haible  <bruno@clisp.org>
9800
9801         Syntax check for copyright statements.
9802         * check-copyright: New file.
9803         * Makefile (sc_check_copyright): New rule.
9804
9805 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9806
9807         * build-aux/git-version-gen: Add --prefix to configure the tag
9808         match string.
9809
9810 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9811
9812         * build-aux/git-version-gen: Add --help and --version.
9813
9814 2011-11-12  Jim Meyering  <meyering@redhat.com>
9815
9816         revamp the other test-exclude?.sh scripts to use init.sh, too
9817         * tests/test-exclude1.sh: Use init.sh.
9818         * tests/test-exclude2.sh: Likewise.
9819         * tests/test-exclude3.sh: Likewise.
9820         * tests/test-exclude4.sh: Likewise.
9821         * tests/test-exclude5.sh: Likewise.
9822         * tests/test-exclude6.sh: Likewise.
9823         * tests/test-exclude7.sh: Likewise.
9824         * tests/test-exclude8.sh: Likewise.
9825         * modules/exclude-tests (Files): List init.sh.
9826
9827         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9828         These shell scripts ignored failure of the binary test-exclude,
9829         so making the latter return 77 didn't cause them to be skipped.
9830         * tests/test-exclude5.sh: Exit with test-exclude's error status
9831         when that program fails.  Revamp to use init.sh.
9832         * tests/test-exclude2.sh: Likewise.
9833
9834         test-exclude: fix a typo
9835         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9836
9837 2011-11-11  Bruno Haible  <bruno@clisp.org>
9838
9839         obstack: Fix compilation error on MSVC 9.
9840         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9841
9842 2011-11-11  Jim Meyering  <meyering@redhat.com>
9843
9844         test-exclude: skip tests rather than failing on deficient systems
9845         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9846         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9847         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9848         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9849
9850 2011-11-10  Bruno Haible  <bruno@clisp.org>
9851
9852         ptsname_r test: Avoid gcc warning on glibc systems.
9853         * tests/test-ptsname_r.c (null_ptr): New function.
9854         (test_errors): Use it.
9855
9856 2011-11-10  Bruno Haible  <bruno@clisp.org>
9857
9858         ptsname_r: Avoid compilation error on OSF/1 5.1.
9859         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9861         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9862         function is not declared or incompatibly declared.
9863         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9864         * modules/ptsname_r (Depends-on, configure.ac): Update.
9865         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9866
9867 2011-11-10  Bruno Haible  <bruno@clisp.org>
9868
9869         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9870         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9871         When cross-compiling, guess yes on all platforms except AIX.
9872         Reported by Ludovic Courtès <ludo@gnu.org>.
9873
9874 2011-11-09  Bruno Haible  <bruno@clisp.org>
9875
9876         ptsname_r tests: Fix bugs.
9877         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9878         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9879
9880 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9881
9882         fstatat: work with cross-compilation
9883         Problem reported by Ludovic Courtès in
9884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9885         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9886         "cross-compiling" and assume the bug is present.  Replace
9887         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9888         an inverted sense, to be more conservative about our assumptions.
9889         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9890
9891 2011-11-09  Bruno Haible  <bruno@clisp.org>
9892
9893         Improve MODULES.html output.
9894         * modules/mkfifoat (Description): Use the word "function".
9895         * modules/readlinkat (Description): Likewise.
9896         * modules/symlinkat (Description): Likewise.
9897
9898 2011-11-09  Eric Blake  <eblake@redhat.com>
9899
9900         ptsname_r-tests: new test module
9901         * modules/ptsname_r-tests: New module.
9902         * tests/test-ptsname_r.c: New file.
9903
9904         ptsname_r: new module
9905         * modules/ptsname_r: New module.
9906         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9907         * lib/ptsname.c (__ptsname_r): Split...
9908         * lib/ptsname_r.c: ...into new file.
9909         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9910         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9911         * modules/stdlib (Makefile.am): Substitute witnesses.
9912         * lib/stdlib.in.h (ptsname_r): Declare it.
9913         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9914         * MODULES.html.sh (Misc): Likewise.
9915         * modules/ptsname (Depends-on): Alter dependency.
9916         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9917
9918 2011-11-09  Jim Meyering  <meyering@redhat.com>
9919
9920         announce-gen: be more concise when there's only one URL+tarball
9921         * build-aux/announce-gen (get_tool_versions): When you distribute
9922         only one type of tarball, combine the first two "Here are..."
9923         sections and make the key-checking grammar independent of
9924         how many tarballs there are.
9925
9926 2011-11-09  Eric Blake  <eblake@redhat.com>
9927
9928         openpty: provide a stub on mingw
9929         * lib/pty.in.h (includes): Provide forward declarations.
9930         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9931
9932         raise: fix mingw handling of SIGPIPE
9933         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9934
9935 2011-11-08  Bruno Haible  <bruno@clisp.org>
9936
9937         More conditional dependencies.
9938         * modules/faccessat (Depends-on): Add conditions.
9939         * modules/fchmodat (Depends-on): Likewise.
9940         * modules/fchownat (Depends-on): Likewise.
9941         * modules/fstatat (Depends-on): Likewise.
9942         * modules/mkfifoat (Depends-on): Likewise.
9943         * modules/readlinkat (Depends-on): Likewise.
9944         * modules/symlinkat (Depends-on): Likewise.
9945         * modules/unlinkat (Depends-on): Likewise.
9946         * modules/utimensat (Depends-on): Likewise.
9947         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9948         * modules/linkat (Depends-on): Refine the conditions.
9949         * modules/renameat (Depends-on): Likewise.
9950
9951 2011-11-08  Bruno Haible  <bruno@clisp.org>
9952
9953         faccessat: Move AC_LIBOBJ invocation to module description.
9954         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9955         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9956         invocation from here...
9957         * modules/faccessat (configure.ac): ... to here. Invoke
9958         gl_PREREQ_FACCESSAT.
9959
9960 2011-11-08  Bruno Haible  <bruno@clisp.org>
9961
9962         faccessat: Simplify autoconf macro.
9963         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9964         gl_FUNC_EUIDACCESS.
9965
9966 2011-11-08  Bruno Haible  <bruno@clisp.org>
9967
9968         renameat: Fix dependencies.
9969         * modules/renameat (Depends-on): Add stdbool.
9970
9971 2011-11-08  Bruno Haible  <bruno@clisp.org>
9972
9973         mkfifoat: Fix module description.
9974         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9975         not gl_UNISTD_MODULE_INDICATOR.
9976
9977 2011-11-08  Bruno Haible  <bruno@clisp.org>
9978
9979         fstatat: Remove unused dependency.
9980         * modules/fstatat (Depends-on): Remove fstat.
9981
9982 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9983
9984         GNUmakefile: behave when Makefile is missing.
9985         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9986
9987 2011-11-08  Bruno Haible  <bruno@clisp.org>
9988
9989         openat: Conditionalize dependencies.
9990         * lib/openat.c: Reduce the scope of some #includes.
9991         * modules/openat (Depends-on): Add conditions.
9992
9993 2011-11-07  Jim Meyering  <meyering@redhat.com>
9994
9995         maint.mk: extract GPG key ID without using a temporary file
9996         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9997         without using a temporary file.  Based on a suggestion from Werner Koch
9998         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9999
10000 2011-11-07  Eric Blake  <eblake@redhat.com>
10001
10002         grantpt: fix typo
10003         * lib/stdlib.in.h (grantpt): Check correct function.
10004
10005         maint.mk: silence new syntax check
10006         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10007
10008 2011-11-06  Bruno Haible  <bruno@clisp.org>
10009
10010         Doc about floating-point and math API.
10011         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10012         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10013
10014 2011-11-06  Bruno Haible  <bruno@clisp.org>
10015
10016         stdalign tests: Skip the test when compiled by Sun C.
10017         * tests/test-stdalign.c (main): Skip the test on Sun C.
10018
10019 2011-11-06  Bruno Haible  <bruno@clisp.org>
10020
10021         ansi-c++-opt: Complete the 2011-06-05 change.
10022         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10023         does not support namespaces, set the variable to "no", not to ":".
10024
10025 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10026
10027         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10028
10029 2011-11-06  Bruno Haible  <bruno@clisp.org>
10030
10031         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10032         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10033         (minus_zerol) [HP-UX]: New macro.
10034         (unary_minus) [HP-UX]: New function.
10035         (copysignl) [HP-UX]: Use unary_minus function.
10036
10037 2011-11-06  Bruno Haible  <bruno@clisp.org>
10038
10039         ldexp, ldexpf, ldexpl: Enhance tests.
10040         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10041         and tests/test-ldexpl.c.
10042         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10043         LDEXP, MIN_EXP, MAX_EXP): New macros.
10044         Include test-ldexp.h.
10045         (main): Just call test_function.
10046         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10047         infinity.h, nan.h.
10048         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10049         MAX_EXP): New macros.
10050         Include test-ldexp.h.
10051         (x, y): Remove variables.
10052         (main): Just call test_function.
10053         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10054         infinity.h, nan.h.
10055         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10056         MAX_EXP): New macros.
10057         Include test-ldexp.h.
10058         (x, y): Remove variables.
10059         (main): Just call test_function.
10060         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10061         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10062         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10063         (Depends-on): Add isnand-nolibm, signbit, float.
10064         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10065         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10066         (Depends-on): Add isnanf-nolibm, signbit, float.
10067
10068 2011-11-06  Bruno Haible  <bruno@clisp.org>
10069
10070         math tests: Cosmetics.
10071         * tests/test-math-c++.cc: Reorder declarations.
10072
10073 2011-11-05  Bruno Haible  <bruno@clisp.org>
10074
10075         fma*: Simplify test.
10076         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10077         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10078
10079         Tests for module 'fmal'.
10080         * modules/fmal-tests: New file.
10081         * tests/test-fmal1.c: New file.
10082         * tests/test-fmal2.c: New file.
10083
10084         New module 'fmal'.
10085         * lib/math.in.h (fmal): New declaration.
10086         * lib/fmal.c: New file.
10087         * m4/fmal.m4: New file.
10088         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10090         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10091         REPLACE_FMAL.
10092         * modules/fmal: New file.
10093         * doc/posix-functions/fmal.texi: Mention the new module and the various
10094         bugs.
10095
10096         Tests for module 'fmaf'.
10097         * modules/fmaf-tests: New file.
10098         * tests/test-fmaf1.c: New file.
10099         * tests/test-fmaf2.c: New file.
10100
10101         New module 'fmaf'.
10102         * lib/math.in.h (fmaf): New declaration.
10103         * lib/fmaf.c: New file.
10104         * m4/fmaf.m4: New file.
10105         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10106         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10107         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10108         REPLACE_FMAF.
10109         * modules/fmaf: New file.
10110         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10111         bugs.
10112
10113         Tests for module 'fma'.
10114         * modules/fma-tests: New file.
10115         * tests/test-fma1.c: New file.
10116         * tests/test-fma1.h: New file.
10117         * tests/test-fma2.c: New file.
10118         * tests/test-fma2.h: New file.
10119
10120         New module 'fma'.
10121         * lib/math.in.h (fma): New declaration.
10122         * lib/fma.c: New file.
10123         * m4/fma.m4: New file.
10124         * m4/fegetround.m4: New file.
10125         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10127         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10128         REPLACE_FMA.
10129         * modules/fma: New file.
10130         * doc/posix-functions/fma.texi: Mention the new module and the various
10131         bugs.
10132
10133         Extend gl_MATHFUNC.
10134         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10135         Support 'void' as argument type.
10136         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10137
10138 2011-11-05  Jim Meyering  <meyering@redhat.com>
10139
10140         maint.mk: also prohibit inclusion of dirent.h without use
10141         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10142
10143 2011-11-05  Bruno Haible  <bruno@clisp.org>
10144
10145         ldexpl tests: Avoid test failure on MSVC 9.
10146         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10147         value. Needed in order to enforce the conversion from a value greater
10148         than LDBL_MAX to Infinity.
10149
10150 2011-11-05  Bruno Haible  <bruno@clisp.org>
10151
10152         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10153         * modules/at-internal: New file, extracted from modules/openat.
10154         * modules/openat-h: New file.
10155         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10156         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10157         * modules/openat (Description): Add reference to POSIX function.
10158         (Files): Remove lib/openat.h, lib/openat-proc.c.
10159         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10160         intprops, unistd.
10161         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10162         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10163         gl_FCNTL_MODULE_INDICATOR.
10164         (Include): Remove unistd.h, openat.h.
10165         * modules/areadlinkat (Files): Add lib/at-func.c.
10166         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10167         openat-die, openat-h, save-cwd.
10168         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10169         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10170         openat-die, openat-h, save-cwd, unistd.
10171         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10172         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10173         openat-h, save-cwd. Remove fcntl-h, openat.
10174         * modules/fchmodat (Files): Remove lib/openat.h.
10175         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10176         openat, stdbool, unistd.
10177         * modules/fchownat (Files): Remove lib/openat.h.
10178         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10179         openat, stdbool, sys_stat.
10180         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10181         lib/openat-proc.c.
10182         (Depends-on): Add at-internal.
10183         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10184         * modules/fstatat (Files): Remove lib/openat.h.
10185         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10186         stdbool, unistd.
10187         * modules/fts (Depends-on): Add openat-h.
10188         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10189         openat.
10190         * modules/mkdirat (Files): Remove lib/openat.h.
10191         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10192         openat, stdbool, sys_stat.
10193         * modules/mkfifoat (Files): Add lib/at-func.c.
10194         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10195         openat-h, save-cwd. Remove fcntl-h, openat.
10196         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10197         * modules/readlinkat (Files): Add lib/at-func.c.
10198         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10199         openat-h, save-cwd. Remove fcntl-h, openat.
10200         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10201         openat.
10202         * modules/selinux-at (Files): Add lib/at-func.c.
10203         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10204         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10205         * modules/symlinkat (Files): Add lib/at-func.c.
10206         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10207         openat-h, save-cwd. Remove fcntl-h, openat.
10208         * modules/unlinkat (Files): Remove lib/openat.h.
10209         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10210         stdbool.
10211         * modules/utimensat (Files): Add lib/at-func.c.
10212         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10213         openat-die, openat-h, save-cwd.
10214         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10215         * modules/fdutimensat-tests (Depends-on): Add openat.
10216         * modules/fstatat-tests (Depends-on): Add openat-h.
10217         * modules/readlinkat-tests (Depends-on): Add openat.
10218         * modules/symlinkat-tests (Depends-on): Add openat.
10219
10220 2011-11-05  Bruno Haible  <bruno@clisp.org>
10221
10222         openat: Include <stdbool.h>.
10223         * lib/openat.c: Include <stdbool.h>.
10224
10225 2011-11-04  Bruno Haible  <bruno@clisp.org>
10226
10227         fchownat, renameat, unlinkat: Fix dependencies.
10228         * modules/fchownat (Depends-on): Add fstatat.
10229         * modules/renameat (Depends-on): Likewise.
10230         * modules/unlinkat (Depends-on): Likewise.
10231
10232 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10233
10234         openat: remove direct dependency on dirent
10235         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10236         and hasn't been needed ever since fdopendir was split into its own
10237         module on 2009-08-31.
10238         * modules/openat (Depends-on): Remove dirent.
10239
10240 2011-11-04  Bruno Haible  <bruno@clisp.org>
10241
10242         renameat: Optimize code size.
10243         * modules/renameat (configure.ac): Don't compile at-func2.c if
10244         REPLACE_RENAMEAT is 1.
10245
10246 2011-11-04  Bruno Haible  <bruno@clisp.org>
10247
10248         openat tests: Fix file list.
10249         * modules/openat-tests (Files): Add tests/test-open.h.
10250
10251 2011-11-04  Bruno Haible  <bruno@clisp.org>
10252
10253         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10254         * modules/fchmodat (Depends-on): Add openat-die.
10255         * modules/fchownat (Depends-on): Likewise.
10256         * modules/linkat (Depends-on): Likewise.
10257         * modules/renameat (Depends-on): Likewise.
10258         * modules/openat (Depends-on): Add dirent.
10259
10260 2011-11-04  Jim Meyering  <meyering@redhat.com>
10261
10262         at-func*.c: fix comments
10263         * lib/at-func2.c: Correct/improve first-line comment.
10264         * lib/at-func.c: Correct grammar in first-line comment.
10265
10266 2011-11-04  Bruno Haible  <bruno@clisp.org>
10267
10268         New module 'mkdirat', split off from module 'openat'.
10269         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10270         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10271         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10272         * modules/mkdirat: New file, extracted from modules/openat.
10273         * modules/openat (Files): Remove lib/mkdirat.c.
10274         (Depends-on): Remove mkdir.
10275         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10276         (Include): Remove <sys/stat.h>.
10277         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10278         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10279         tests/test-mkdir.h.
10280         (Depends-on): Remove ignore-value.
10281         (Makefile.am): Remove rules for test-mkdirat.
10282         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10283         of module 'openat'.
10284         * NEWS: Mention the change.
10285
10286 2011-11-04  Bruno Haible  <bruno@clisp.org>
10287
10288         closedir: Avoid warning on mingw.
10289         * lib/closedir.c: Include <unistd.h>.
10290
10291 2011-11-04  Bruno Haible  <bruno@clisp.org>
10292
10293         New module 'fstatat', split off from module 'openat'.
10294         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10295         defined.
10296         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10297         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10298         gl_FUNC_FSTATAT.
10299         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10300         * modules/fstatat: New file, extracted from modules/openat.
10301         * modules/openat (Files): Remove lib/fstatat.c.
10302         (Depends-on): Remove lstat.
10303         (configure.ac): Remove AC_LIBOBJ of fstatat.
10304         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10305         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10306         tests/test-lstat.h, tests/test-stat.h.
10307         (Depends-on): Remove getcwd-lgpl.
10308         (Makefile.am): Remove rules for test-fstatat.
10309         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10310         of module 'openat'.
10311         * NEWS: Mention the change.
10312         * modules/getcwd (Depends-on): Add fstatat.
10313         * modules/linkat (Depends-on): Likewise.
10314         * modules/mkfifoat-tests (Depends-on): Likewise.
10315         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10316
10317 2011-11-03  Bruno Haible  <bruno@clisp.org>
10318
10319         New module 'unlinkat', split off from module 'openat'.
10320         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10321         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10322         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10323         * modules/unlinkat: New file, extracted from modules/openat. Correct
10324         the dependency conditions.
10325         * modules/openat (Files): Remove lib/unlinkat.c.
10326         (Depends-on): Remove rmdir, unlink.
10327         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10328         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10329         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10330         tests/test-rmdir.h, tests/test-unlink.h.
10331         (Depends-on): Remove unlinkdir.
10332         (Makefile.am): Remove rules for test-unlinkat.
10333         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10334         of module 'openat'.
10335         * NEWS: Mention the change.
10336         * modules/linkat-tests (Depends-on): Add unlinkat.
10337         * modules/mkfifoat-tests (Depends-on): Likewise.
10338         * modules/readlinkat-tests (Depends-on): Likewise.
10339
10340 2011-11-02  Bruno Haible  <bruno@clisp.org>
10341
10342         New module 'fchmodat', split off from module 'openat'.
10343         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10344         defined.
10345         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10346         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10347         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10348         * modules/fchmodat: New file, extracted from modules/openat.
10349         * modules/openat (Files): Remove lib/fchmodat.c.
10350         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10351         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10352         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10353         (Makefile.am): Remove rules for test-fchmodat.
10354         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10355         of module 'openat'.
10356         * NEWS: Mention the change.
10357
10358 2011-11-02  Jim Meyering  <meyering@redhat.com>
10359
10360         putenv: indent #definition of "environ" to placate cppi
10361         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10362
10363         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10364         Git logs are often treated as immutable, because editing them
10365         changes the SHA1 checksums of all descendants.  Thus, errors in
10366         git logs tend to stay there forever.  However, when we generate
10367         a ChangeLog file -- typically for distribution -- from that git log,
10368         we can actually make corrections in the generated file.  The key
10369         lies in recording in machine-readable/applicable form the desired
10370         corrections.  See --help for description and an example.
10371         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10372         (usage): Describe it; alphabetize option descriptions.
10373         (main): Honor the new option, carefully.
10374
10375 2011-11-01  Jim Meyering  <meyering@redhat.com>
10376
10377         gitlog-to-changelog: avoid an infloop
10378         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10379         that ends up being empty.
10380
10381 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10382
10383         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10384         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10385         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10386         contains (possibly-quoted) backslashes.  This should avoid
10387         all-too-common shell bugs if COMPLICATED contains backslashes in
10388         the "wrong" places.  Reported by David Evans in
10389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10390         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10391         because we want ASCII ranges.  Is there some reason we don't use
10392         the C locale everywhere in this script?
10393         (func_module, top level): Avoid unwanted pathname expansion when
10394         $repo_url_prefix or $repo_url_suffix_repl contain shell
10395         metacharacters like '?' and '*'.
10396
10397 2011-11-01  Bruno Haible  <bruno@clisp.org>
10398
10399         fchownat: Improve description.
10400         * modules/fchownat (Description): Add link to function.
10401
10402 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10403
10404         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10405         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10407         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10408
10409 2011-11-01  Bruno Haible  <bruno@clisp.org>
10410
10411         alignof: Avoid collision with stdalign module.
10412         * lib/alignof.h (alignof): Remove macro.
10413         * NEWS: Mention the change.
10414         Reported by Paul Eggert.
10415
10416 2011-11-01  Bruno Haible  <bruno@clisp.org>
10417
10418         New module 'fchownat', split off from module 'openat'.
10419         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10420         defined.
10421         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10422         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10423         invoke gl_FUNC_FCHOWNAT.
10424         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10425         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10426         * modules/fchownat: New file, extracted from modules/openat.
10427         * modules/openat (Files): Remove lib/fchownat.c.
10428         (Depends-on): Remove lchown.
10429         (configure.ac): Remove AC_LIBOBJ of fchownat.
10430         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10431         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10432         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10433         (Depends-on): Remove mgetgroups, usleep, stat-time.
10434         (configure.ac): Remove test for getegid.
10435         (Makefile.am): Remove rules for test-fchownat.
10436         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10437         of module 'openat'.
10438         * NEWS: Mention the change.
10439
10440 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10441
10442         stdalign: port better to MSVC and to Sun C 5.11
10443         This fixes some of the problems reported by Bruno Haible in
10444         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10445         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10446         shortcomings of MSVC and of Sun C 5.11.
10447         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10448         around __declspec arg.
10449         * modules/stdalign-tests (Files): Add tests/macros.h.
10450         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10451         Include macros.h, for ASSERT.
10452         (DECLARE_ALIGNED): Remove.
10453         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10454         to catch bug), and to 1 if not (simplifies the rest of the code).
10455         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10456         (CHECK_AUTO): Remove.
10457         (CHECK_ALIGNED): Check only the alignment of the static vars,
10458         since auto var alignment isn't supported by Sun C 5.11.
10459         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10460         ASSERT failures are easier to diagnose.
10461
10462 2011-10-31  Bruno Haible  <bruno@clisp.org>
10463
10464         doc about some IRIX 5.3 problems.
10465         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10466         on IRIX 5.3.
10467         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10468         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10469         5.3.
10470         * doc/posix-functions/grantpt.texi: Likewise.
10471         * doc/posix-functions/unlockpt.texi: Likewise.
10472         * doc/posix-functions/lgamma.texi: Likewise.
10473         * doc/posix-functions/nextafter.texi: Likewise.
10474         * doc/posix-functions/remainder.texi: Likewise.
10475         * doc/posix-functions/select.texi: Mention misplaced declaration on
10476         IRIX 5.3.
10477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10478
10479 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10480
10481         gitlog-to-changelog: fix git-log invocation.
10482         git-log mishandles date strings before 1970-01-01 UTC, and there is
10483         no use to specify --since=1970-01-01 by default anyway.
10484         * build-aux/gitlog-to-changelog: By default, when no --since option
10485         was given, do not specify explicit --since option to git-log.
10486
10487 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10488
10489         gitlog-to-changelog: new option --append-dot.
10490         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10491         first non-blank line of each commit message terminated with a dot.
10492
10493 2011-10-30  Bruno Haible  <bruno@clisp.org>
10494
10495         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10496         * lib/ffsl.h: Include <config.h>.
10497         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10498
10499 2011-10-30  Jim Meyering  <meyering@redhat.com>
10500
10501         GNUmakefile: reenable "make syntax-check" for most projects
10502         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10503         build-aux variable", "syntax-check" would do nothing but succeed with
10504         the "No version control files detected..." diagnostic (unless you
10505         happened to override _build-aux via cfg.mk).
10506         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10507         to precede inclusion of maint.mk.  Otherwise, these variables would
10508         be used undefined in any project that does not override the default.
10509
10510 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10511
10512         gitlog-to-changelog: treat a message with only blank lines as empty.
10513         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10514         trailing blank lines before the code that issues a warning about an
10515         empty commit message.
10516
10517 2011-10-30  Jim Meyering  <meyering@redhat.com>
10518
10519         test-parse-datetime.c: avoid new DST-related false positive test failure
10520         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10521         based on the time/date we'll convert, not the current time.
10522         Otherwise, the moment we cross a DST boundary like today's in
10523         Europe, (CEST to CET), that offset ends up being one hour off.
10524
10525 2011-10-27  Bruno Haible  <bruno@clisp.org>
10526
10527         fstat: Tweak documentation.
10528         * modules/fstat (Description): More precise description.
10529
10530 2011-10-27  Bruno Haible  <bruno@clisp.org>
10531
10532         Update documentation regarding 'largefile' module.
10533         * doc/posix-functions/fstat.texi: Tweak wording.
10534         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10535         problems with huge directories and/or small ino_t types.
10536         * doc/posix-functions/readdir.texi: Likewise.
10537         * doc/posix-functions/rewinddir.texi: Likewise.
10538
10539 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10540
10541         maint.mk: don't maintain a second build-aux variable.
10542         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10543         depends on GNUmakefile, which already maintains a cfg.mk
10544         overridable $(_build-aux) for projects with a non-standard
10545         build-aux directory location, although without the $(srcdir)
10546         prefix.  Use that variable consistently instead of introducing a
10547         second one.  Adjust all call sites.
10548
10549 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10550
10551         Add stdalign module and use it in other modules.
10552         This is based on a previous proposal by Bruno Haible
10553         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10554
10555         stdalign: new module
10556         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10557         * modules/stdalign: New files.
10558         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10559         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10560
10561         stdalign-tests: new module
10562         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10563
10564         argp: use stdalign
10565         * lib/argp-parse.c: Include <stdalign.h>.
10566         (alignof): Remove.
10567         * modules/argp (Depends-on): Add stdalign.
10568
10569         crypto libraries: use stdalign
10570         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10571         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10572         Do not include <stdlib.h> twice, in md4.c.
10573         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10574         because we are accessing a pointer's bit-pattern, not a size.
10575         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10576         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10577         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10578         * modules/crypto/sha512: Likewise.
10579
10580         sys_socket: use stdalign, not alignof
10581         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10582         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10583
10584 2011-10-27  Bruno Haible  <bruno@clisp.org>
10585
10586         raise test: Avoid a test failure on Linux/MIPS.
10587         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10588         because 99 is a valid signal on Linux/MIPS.
10589
10590 2011-10-27  Bruno Haible  <bruno@clisp.org>
10591
10592         nonblocking tests: Fix test failure on Linux/MIPS.
10593         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10594         Set to 270000.
10595
10596 2011-10-27  Bruno Haible  <bruno@clisp.org>
10597
10598         utimensat: Work around problem on Linux/hppa.
10599         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10600         values.
10601         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10602
10603 2011-10-25  Jim Meyering  <meyering@redhat.com>
10604
10605         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10606         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10607         after symbols like NULL, size_t, etc.
10608         Reported by Alfred M. Szmidt.
10609
10610         maint.mk: exempt ENODATA from a syntax-check rule
10611         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10612         from the sc_prohibit_always-defined_macros syntax-check rule.
10613         Add a comment.  See this for more details:
10614         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10615
10616 2011-10-23  Jim Meyering  <meyering@redhat.com>
10617
10618         fts: close parent dir FD before returning from post-traversal fts_read
10619         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10620         unlink A, even though an FD open on A remained.  This is suboptimal
10621         (holding a file descriptor open longer than needed), but otherwise not
10622         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10623         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10624         that represents a real problem: it causes the removal of A to fail
10625         with e.g., "rm: cannot remove `A': Device or resource busy"
10626
10627         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10628         directory file descriptors.  After completing the final, FTS_DP,
10629         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10630         cache, but then proceeded to add a new FD to it via the subsequent
10631         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10632         final file descriptor would be closed only via fts_close's call to
10633         fd_ring_clear.  Now, it is usually closed earlier, via the final
10634         FTS_DP-returning fts_read call.
10635         * lib/fts.c (restore_initial_cwd): New function, converted from
10636         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10637         Update callers.
10638         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10639         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10640
10641 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10642             Bruno Haible  <bruno@clisp.org>
10643             Jim Meyering  <jim@meyering.net>
10644
10645         readme-release: improve safety of release prep instructions.
10646         * README-release: Don't git pull all branches when only master
10647         is needed for the release process.
10648         Run make maintainer-clean before changing trees and merging.
10649         Don't try to run ./configure right after git pull in case files
10650         that influence the bootstrap process have changed, move the
10651         ./configure step to after running ./bootstrap.
10652         Don't bootstrap "one last time"... it's the first time!
10653
10654 2011-10-22  Bruno Haible  <bruno@clisp.org>
10655
10656         errno, strerror-override: Support for MSVC 10.
10657         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10658         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10659         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10660         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10661         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10662         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10663         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10664         Assign values compatible with MSVC 10.
10665         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10666         New macros.
10667         (GNULIB_defined_EWINSOCK): New macro.
10668         * lib/strerror-override.c (strerror_override): Update accordingly.
10669         * lib/strerror-override.h: Likewise.
10670         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10671         longer equal to the corresponding errno value.
10672         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10673
10674 2011-10-22  Bruno Haible  <bruno@clisp.org>
10675
10676         perror: Recognize when test program crashes.
10677         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10678         strerror, set gl_cv_func_perror_works to no.
10679         Reported by Daniel Richard G. <skunk@iskunk.org>.
10680
10681         perror: Fix indentation.
10682         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10683
10684 2011-10-22  Bruno Haible  <bruno@clisp.org>
10685
10686         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10687         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10688         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10689         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10690         functions, not as a macro.
10691         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10692         macros.
10693         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10694         absence of macro.
10695         Suggested by Eric Blake.
10696         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10697
10698 2011-10-21  Bruno Haible  <bruno@clisp.org>
10699
10700         relocatable-prog-wrapper: Don't leave object files behind.
10701         * build-aux/install-reloc: Re-synchronize list of .o files to be
10702         removed with list of compilation units.
10703
10704 2011-10-20  Bruno Haible  <bruno@clisp.org>
10705
10706         openpty, posix_openpt: Remove code duplication.
10707         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10708         * lib/openpty.c: Include <stdlib.h>.
10709         (openpty): Use posix_openpt on all platforms except IRIX.
10710         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10711
10712 2011-10-20  Bruno Haible  <bruno@clisp.org>
10713
10714         unlockpt: Detect invalid argument.
10715         * lib/unlockpt.c: Include <fcntl.h>.
10716         (unlockpt): Check whether fd is valid, using fcntl().
10717         * modules/unlockpt (Depends-on): Add fcntl-h.
10718
10719 2011-10-20  Bruno Haible  <bruno@clisp.org>
10720
10721         openpty: Avoid compilation error on AIX 6.1.
10722         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10723
10724 2011-10-20  Bruno Haible  <bruno@clisp.org>
10725
10726         posix_openpt: Support for OpenBSD.
10727         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10728         (posix_openpt) [OpenBSD]: New code.
10729         * lib/grantpt.c: Include <fcntl.h>.
10730         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10731         * modules/grantpt (Depends-on): Add fcntl-h.
10732
10733 2011-10-20  Bruno Haible  <bruno@clisp.org>
10734
10735         posix_openpt test: Coding style.
10736         * tests/test-posix_openpt.c: Use GNU coding style.
10737
10738 2011-10-20  Bruno Haible  <bruno@clisp.org>
10739
10740         grantpt: Support --avoid=pt_chown.
10741         * modules/grantpt (Files): Add lib/pty-private.h.
10742
10743 2011-10-20  Bruno Haible  <bruno@clisp.org>
10744
10745         posix_openpt: Fix autoconf macro.
10746         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10747         unneeded check for _getpty.
10748
10749 2011-10-20  Bruno Haible  <bruno@clisp.org>
10750
10751         openpty: Update comments.
10752         * lib/openpty.c: Add comments about Minix.
10753
10754 2011-10-19  Eric Blake  <eblake@redhat.com>
10755
10756         openpty: relax license
10757         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10758
10759         pt_chown: use configmake to simplify build
10760         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10761
10762         ptsname and others: relax license
10763         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10764         * modules/unlockpt (License): Likewise.
10765         * modules/pt_chown (License): Likewise.
10766         * modules/ptsname (License): Likewise.
10767         * modules/ttyname_r (License): Likewise.
10768
10769 2011-10-19  Jim Meyering  <meyering@redhat.com>
10770
10771         posix_openpt: remove spurious #endif
10772         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10773
10774 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10775
10776         maint.mk: Respect $(build_aux) in web-manual rule.
10777         * top/maint.mk (web-manual): Find gen-announce script in user's
10778         $(build_aux) directory instead of hard-coding 'build-aux'.
10779
10780 2011-10-19  Bruno Haible  <bruno@clisp.org>
10781
10782         posix_openpt: Fix compilation error.
10783         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10784         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10785         Mention the openpty module as an alternative.
10786
10787 2011-10-19  Bruno Haible  <bruno@clisp.org>
10788
10789         Support for old NeXTstep 3.3 frexp().
10790         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10791         execution time of the test to 5 seconds.
10792         Reported by Daniel Richard G. <skunk@iskunk.org>.
10793
10794 2011-10-19  Bruno Haible  <bruno@clisp.org>
10795
10796         Support for old NeXTstep 3.3 sed.
10797         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10798         part, use /.../, not \|...|. Escape periods in the header file name.
10799         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10800         Reported by Daniel Richard G. <skunk@iskunk.org>.
10801
10802 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10803
10804         Support for old NeXTstep 3.3 gcc.
10805         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10806         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10807         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10808         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10809         * lib/regex.h (_Restrict_arr_): Likewise.
10810         * lib/regex_internal.h (re_token_t): Likewise.
10811         * lib/regexec.c (check_node_accept_bytes): Likewise.
10812         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10813
10814 2011-10-18  Eric Blake  <eblake@redhat.com>
10815
10816         posix_openpt: new module
10817         * modules/posix_openpt: New module.
10818         * m4/posix_openpt.m4: New file.
10819         * lib/posix_openpt.c: Likewise.
10820         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10821         (gl_STDLIB_H_DEFAULTS): Set defaults.
10822         * modules/stdlib (Makefile.am): Substitute macros.
10823         * lib/stdlib.in.h (posix_openpt): Declare.
10824         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10825         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10826         * modules/posix_openpt-tests: New test module.
10827         * tests/test-posix_openpt.c: New test.
10828
10829 2011-10-15  Bruno Haible  <bruno@clisp.org>
10830
10831         xstrtoll: Fix compilation failure.
10832         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10833         from lib/strtol.c.
10834         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10835         some platforms.
10836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10837
10838 2011-10-15  Bruno Haible  <bruno@clisp.org>
10839
10840         vasnprintf: Optimize bit search operation.
10841         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10843         gl_DOUBLE_EXPONENT_LOCATION.
10844         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10845         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10846         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10847         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10848         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10849         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10850         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10851         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10852         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10853
10854 2011-10-15  Bruno Haible  <bruno@clisp.org>
10855
10856         vasnprintf: Fix comments.
10857         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10858
10859 2011-10-14  Bruno Haible  <bruno@clisp.org>
10860
10861         Tests for module 'integer_length_ll'.
10862         * modules/integer_length_ll-tests: New file.
10863         * tests/test-integer_length_ll.c: New file.
10864
10865         New module 'integer_length_ll'.
10866         * lib/integer_length_ll.c: New file.
10867         * modules/integer_length_ll: New file.
10868
10869 2011-10-14  Bruno Haible  <bruno@clisp.org>
10870
10871         Tests for module 'integer_length_l'.
10872         * modules/integer_length_l-tests: New file.
10873         * tests/test-integer_length_l.c: New file.
10874
10875         New module 'integer_length_l'.
10876         * lib/integer_length_l.c: New file.
10877         * modules/integer_length_l: New file.
10878
10879 2011-10-14  Bruno Haible  <bruno@clisp.org>
10880
10881         Tests for module 'integer_length'.
10882         * modules/integer_length-tests: New file.
10883         * tests/test-integer_length.c: New file.
10884
10885         New module 'integer_length'.
10886         * lib/integer_length.h: New file.
10887         * lib/integer_length.c: New file.
10888         * modules/integer_length: New file.
10889
10890 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10891
10892         popen: Fix dependency conditions.
10893         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10894
10895 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10896
10897         perror: Fix autoconf test.
10898         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10899         <stdlib.h> and <string.h>.
10900
10901 2011-10-14  Bruno Haible  <bruno@clisp.org>
10902
10903         ffsl: Optimize on 64-bit platforms.
10904         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10905         unrolling.
10906
10907 2011-10-13  Bruno Haible  <bruno@clisp.org>
10908
10909         ffsl: Optimize on 32-bit platforms.
10910         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10911         use ffs() without a loop.
10912
10913         ffsl, ffsll: Optimize for GCC.
10914         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10915         * lib/ffsl.c (GCC_BUILTIN): New macro.
10916         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10917
10918 2011-10-13  Bruno Haible  <bruno@clisp.org>
10919
10920         ffs, bcopy, memset: Support symbol renaming via config.h.
10921         * lib/ffs.c: Include <config.h>.
10922         * lib/bcopy.c: Likewise.
10923         * lib/memset.c: Likewise.
10924
10925 2011-10-10  Bruno Haible  <bruno@clisp.org>
10926
10927         atanl: Simplify for platforms where 'long double' == 'double'.
10928         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10929         alternative implementation.
10930         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10931         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10932         * modules/atanl (Depends-on): Add atan. Update conditions.
10933
10934 2011-10-10  Bruno Haible  <bruno@clisp.org>
10935
10936         acosl: Simplify for platforms where 'long double' == 'double'.
10937         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10938         alternative implementation.
10939         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10940         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10941         * modules/acosl (Depends-on): Add acos. Update conditions.
10942
10943 2011-10-10  Bruno Haible  <bruno@clisp.org>
10944
10945         asinl: Simplify for platforms where 'long double' == 'double'.
10946         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10947         alternative implementation.
10948         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10949         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10950         * modules/asinl (Depends-on): Add asin. Update conditions.
10951
10952 2011-10-10  Bruno Haible  <bruno@clisp.org>
10953
10954         tanl: Simplify for platforms where 'long double' == 'double'.
10955         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10956         implementation.
10957         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10958         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10959         * modules/tanl (Depends-on): Add tan. Update conditions.
10960         (configure.ac): Don't compile trigl.c if
10961         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10962
10963 2011-10-10  Bruno Haible  <bruno@clisp.org>
10964
10965         cosl: Simplify for platforms where 'long double' == 'double'.
10966         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10967         implementation.
10968         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10969         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10970         * modules/cosl (Depends-on): Add cos. 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         sinl: Simplify for platforms where 'long double' == 'double'.
10977         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10978         implementation.
10979         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10980         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10981         * modules/sinl (Depends-on): Add sin. Update conditions.
10982         (configure.ac): Don't compile sincosl.c and trigl.c if
10983         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10984
10985 2011-10-10  Bruno Haible  <bruno@clisp.org>
10986
10987         logl: Simplify for platforms where 'long double' == 'double'.
10988         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10989         implementation.
10990         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10991         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10992         * modules/logl (Depends-on): Add log. Update conditions.
10993
10994 2011-10-10  Bruno Haible  <bruno@clisp.org>
10995
10996         expl: Simplify for platforms where 'long double' == 'double'.
10997         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10998         implementation.
10999         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11000         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11001         * modules/expl (Depends-on): Add exp. Update conditions.
11002
11003 2011-10-10  Bruno Haible  <bruno@clisp.org>
11004
11005         sqrtl: Simplify for platforms where 'long double' == 'double'.
11006         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11007         alternative implementation.
11008         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11009         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11010         * modules/sqrtl (Depends-on): Update conditions.
11011
11012 2011-10-10  Bruno Haible  <bruno@clisp.org>
11013
11014         ldexpl: Simplify for platforms where 'long double' == 'double'.
11015         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11016         alternative implementation.
11017         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11018         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11019         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11020
11021 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11022
11023         ffsll: set correct witness
11024         * modules/ffsll (configure.ac): Fix typo.
11025
11026 2011-10-10  Bruno Haible  <bruno@clisp.org>
11027
11028         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11029         * lib/printf-frexpl.c: Include <config.h>.
11030         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11031         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11032         second time.
11033         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11034         gl_LONG_DOUBLE_VS_DOUBLE.
11035         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11036         conditions.
11037
11038 2011-10-10  Bruno Haible  <bruno@clisp.org>
11039
11040         frexpl: Simplify for platforms where 'long double' == 'double'.
11041         * lib/frexpl.c: Include <config.h>.
11042         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11043         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11044         time.
11045         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11046         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11047         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11048         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11049         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11050         conditions.
11051
11052 2011-10-10  Jim Meyering  <meyering@redhat.com>
11053
11054         test-renameat: don't leave behind a temporary file
11055         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11056           ERROR: files left in build directory after distclean:
11057           ./gltests/test-renameat.too
11058           make[1]: *** [distcleancheck] Error 1
11059         Reported by Tom G. Christensen.
11060
11061 2011-10-09  Bruno Haible  <bruno@clisp.org>
11062
11063         rint: Determine RINT_LIBM correctly on AIX 7.
11064         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11065         directly, not only through a function pointer. Also accept an optional
11066         4th argument with extra code.
11067         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11068         rintf() call by gcc when optimizing.
11069
11070         mathfunc.m4: Refactor.
11071         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11072         m4 variable.
11073
11074 2011-10-09  Bruno Haible  <bruno@clisp.org>
11075
11076         rintl: Simplify for platforms where 'long double' == 'double'.
11077         * lib/rintl.c: Include <config.h>.
11078         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11079         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11080         time.
11081         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11082         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11083         * modules/rintl (Depends-on): Add rint. Update conditions.
11084
11085 2011-10-09  Bruno Haible  <bruno@clisp.org>
11086
11087         roundl: Simplify for platforms where 'long double' == 'double'.
11088         * lib/roundl.c: Include <config.h>.
11089         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11090         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11091         time.
11092         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11093         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11094         * modules/roundl (Depends-on): Add round. Update conditions.
11095
11096 2011-10-09  Bruno Haible  <bruno@clisp.org>
11097
11098         truncl: Simplify for platforms where 'long double' == 'double'.
11099         * lib/truncl.c: Include <config.h>.
11100         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11101         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11102         time.
11103         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11104         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11105         * modules/truncl (Depends-on): Add trunc. Update conditions.
11106
11107 2011-10-09  Bruno Haible  <bruno@clisp.org>
11108
11109         ceill: Simplify for platforms where 'long double' == 'double'.
11110         * lib/ceill.c: Include <config.h>.
11111         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11112         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11113         time.
11114         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11115         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11116         * modules/ceill (Depends-on): Add ceil. Update conditions.
11117
11118 2011-10-09  Bruno Haible  <bruno@clisp.org>
11119
11120         floorl: Simplify for platforms where 'long double' == 'double'.
11121         * lib/floorl.c: Include <config.h>.
11122         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11123         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11124         time.
11125         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11126         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11127         * modules/floorl (Depends-on): Add floor. Update conditions.
11128
11129 2011-10-09  Bruno Haible  <bruno@clisp.org>
11130
11131         rint: Fix ordering constraints.
11132         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11133         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11134         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11135
11136 2011-10-09  Bruno Haible  <bruno@clisp.org>
11137
11138         copysignl: Simplify for platforms where 'long double' == 'double'.
11139         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11140         alternative.
11141         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11142         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11143         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11144
11145 2011-10-09  Bruno Haible  <bruno@clisp.org>
11146
11147         Tests for module 'rintl'.
11148         * modules/rintl-tests: New file.
11149         * tests/test-rintl.c: New file.
11150
11151         New module 'rintl'.
11152         * lib/math.in.h (rintl): New declaration.
11153         * lib/rintl.c: New file.
11154         * m4/rintl.m4: New file.
11155         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11157         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11158         * modules/rintl: New file.
11159         * tests/test-math-c++.cc: Check the declaration of rintl.
11160         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11161         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11162         * doc/posix-functions/rintl.texi: Mention the new module.
11163
11164 2011-10-09  Bruno Haible  <bruno@clisp.org>
11165
11166         Tests for module 'rintf'.
11167         * modules/rintf-tests: New file.
11168         * tests/test-rintf.c: New file.
11169
11170         New module 'rintf'.
11171         * lib/math.in.h (rintf): New declaration.
11172         * lib/rintf.c: New file.
11173         * m4/rintf.m4: New file.
11174         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11176         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11177         * modules/rintf: New file.
11178         * tests/test-math-c++.cc: Check the declaration of rintf.
11179         * doc/posix-functions/rintf.texi: Mention the new module.
11180
11181 2011-10-09  Bruno Haible  <bruno@clisp.org>
11182
11183         rint: Support for MSVC.
11184         * lib/math.in.h (rint): New declaration.
11185         * lib/rint.c: New file.
11186         * m4/rint.m4: New file.
11187         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11189         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11190         * modules/rint (Description): Fix.
11191         (Files): Add lib/rint.c, m4/rint.m4.
11192         (Depends-on): Add math.
11193         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11194         gl_MATH_MODULE_INDICATOR.
11195         * tests/test-math-c++.cc: Check the declaration of rint.
11196         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11197         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11198         * doc/posix-functions/rint.texi: Mention the replacement provided by
11199         the module.
11200
11201         rint tests: More tests.
11202         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11203         minus-zero.h, infinity.h, nan.h.
11204         (main): Skip the test if the current rounding mode is not standard. Add
11205         tests for negative numbers, minus zero, infinity, NaN.
11206         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11207         tests/nan.h.
11208         (Depends-on): Add isnand-nolibm.
11209
11210 2011-10-09  Bruno Haible  <bruno@clisp.org>
11211
11212         Tests for module 'copysignl'.
11213         * modules/copysignl-tests: New file.
11214         * tests/test-copysignl.c: New file.
11215
11216         New module 'copysignl'.
11217         * lib/math.in.h (copysignl): New declaration.
11218         * lib/copysignl.c: New file.
11219         * m4/copysignl.m4: New file.
11220         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11222         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11223         HAVE_COPYSIGNL.
11224         * modules/copysignl: New file.
11225         * tests/test-math-c++.cc: Check the declaration of copysignl.
11226         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11227         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11228         * doc/posix-functions/copysignl.texi: Mention the new module.
11229
11230 2011-10-09  Bruno Haible  <bruno@clisp.org>
11231
11232         Tests for module 'copysignf'.
11233         * modules/copysignf-tests: New file.
11234         * tests/test-copysignf.c: New file.
11235
11236         New module 'copysignf'.
11237         * lib/math.in.h (copysignf): New declaration.
11238         * lib/copysignf.c: New file.
11239         * m4/copysignf.m4: New file.
11240         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11242         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11243         HAVE_COPYSIGNF.
11244         * modules/copysignf: New file.
11245         * tests/test-math-c++.cc: Check the declaration of copysignf.
11246         * doc/posix-functions/copysignf.texi: Mention the new module.
11247
11248 2011-10-09  Bruno Haible  <bruno@clisp.org>
11249
11250         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11251         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11252         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11253         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11254         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11255         gl_SIGNAL_H_DEFAULTS.
11256
11257 2011-10-09  Bruno Haible  <bruno@clisp.org>
11258
11259         poll: Make macro safer.
11260         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11261         ac_cv_header_poll_h is not set.
11262
11263 2011-10-09  Bruno Haible  <bruno@clisp.org>
11264
11265         copysign: Provide replacement.
11266         * lib/math.in.h (copysign): New declaration.
11267         * lib/copysign.c: New file.
11268         * m4/copysign.m4: New file.
11269         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11271         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11272         HAVE_COPYSIGN.
11273         * modules/copysign (Description): Clarify.
11274         (Files): Add lib/copysign.c, m4/copysign.m4.
11275         (Depends-on): Add math, signbit.
11276         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11277         gl_MATH_MODULE_INDICATOR.
11278         * tests/test-math-c++.cc: Check the declaration of copysign.
11279         * doc/posix-functions/copysign.texi: Mention the effects of the module
11280         on Minix and MSVC.
11281
11282 2011-10-09  Bruno Haible  <bruno@clisp.org>
11283
11284         isinf: Ensure macro on AIX 5.1.
11285         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11286         macro.
11287         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11288
11289 2011-10-09  Bruno Haible  <bruno@clisp.org>
11290
11291         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11292         * modules/snprintf-posix-tests (configure.ac): Require
11293         gl_LONG_DOUBLE_VS_DOUBLE.
11294         * modules/sprintf-posix-tests (configure.ac): Likewise.
11295         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11296         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11297         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11298         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11299         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11300         tests on platforms where 'long double' is the same as 'double'.
11301         * tests/test-sprintf-posix.h (test_function): Likewise.
11302         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11303         * tests/test-vasprintf-posix.c (test_function): Likewise.
11304
11305         *printf: Fix for platforms where 'long double' == 'double'.
11306         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11307         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11308         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11309         * modules/fprintf-posix (Files): Likewise.
11310         * modules/obstack-printf-posix (Files): Likewise.
11311         * modules/snprintf-posix (Files): Likewise.
11312         * modules/sprintf-posix (Files): Likewise.
11313         * modules/vasnprintf (Files): Likewise.
11314         * modules/vasnprintf-posix (Files): Likewise.
11315         * modules/vasprintf-posix (Files): Likewise.
11316         * modules/vdprintf-posix (Files): Likewise.
11317         * modules/vfprintf-posix (Files): Likewise.
11318         * modules/vsnprintf-posix (Files): Likewise.
11319         * modules/vsprintf-posix (Files): Likewise.
11320         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11321         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11322         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11323         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11324         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11325         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11326         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11327
11328         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11329         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11330         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11331         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11332         'long double'.
11333         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11334
11335         isinf: Fix for platforms where 'long double' == 'double'.
11336         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11337         Don't blindly assume 80-bit 'long double'.
11338
11339         isfinite: Fix for platforms where 'long double' == 'double'.
11340         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11341         Don't blindly assume 80-bit 'long double'.
11342
11343         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11344         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11345         * modules/isfinite-tests (configure.ac): Require
11346         gl_LONG_DOUBLE_VS_DOUBLE.
11347         * modules/isinf-tests (configure.ac): Likewise.
11348         * modules/isnan-tests (configure.ac): Likewise.
11349         * modules/isnanl-tests (configure.ac): Likewise.
11350         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11351         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11352         tests on platforms where 'long double' is the same as 'double'.
11353         * tests/test-isinf.c (test_isinfl): Likewise.
11354         * tests/test-isnan.c (test_long_double): Likewise.
11355         * tests/test-isnanl.h (main): Likewise.
11356
11357 2011-10-08  Bruno Haible  <bruno@clisp.org>
11358
11359         Tests for module 'tanhf'.
11360         * modules/tanhf-tests: New file.
11361         * tests/test-tanhf.c: New file.
11362
11363         New module 'tanhf'.
11364         * lib/math.in.h (tanhf): New declaration.
11365         * lib/tanhf.c: New file.
11366         * m4/tanhf.m4: New file.
11367         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11369         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11370         * modules/tanhf: New file.
11371         * tests/test-math-c++.cc: Check the declaration of tanhf.
11372         * doc/posix-functions/tanhf.texi: Mention the new module.
11373
11374         tanh: Use a .m4 file.
11375         * m4/tanh.m4: New file.
11376         * modules/tanh (Files): Add it.
11377         (configure.ac): Just invoke gl_FUNC_TANH.
11378
11379 2011-10-08  Bruno Haible  <bruno@clisp.org>
11380
11381         Tests for module 'coshf'.
11382         * modules/coshf-tests: New file.
11383         * tests/test-coshf.c: New file.
11384
11385         New module 'coshf'.
11386         * lib/math.in.h (coshf): New declaration.
11387         * lib/coshf.c: New file.
11388         * m4/coshf.m4: New file.
11389         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11391         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11392         * modules/coshf: New file.
11393         * tests/test-math-c++.cc: Check the declaration of coshf.
11394         * doc/posix-functions/coshf.texi: Mention the new module.
11395
11396         cosh: Use a .m4 file.
11397         * m4/cosh.m4: New file.
11398         * modules/cosh (Files): Add it.
11399         (configure.ac): Just invoke gl_FUNC_COSH.
11400
11401 2011-10-08  Bruno Haible  <bruno@clisp.org>
11402
11403         Tests for module 'sinhf'.
11404         * modules/sinhf-tests: New file.
11405         * tests/test-sinhf.c: New file.
11406
11407         New module 'sinhf'.
11408         * lib/math.in.h (sinhf): New declaration.
11409         * lib/sinhf.c: New file.
11410         * m4/sinhf.m4: New file.
11411         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11413         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11414         * modules/sinhf: New file.
11415         * tests/test-math-c++.cc: Check the declaration of sinhf.
11416         * doc/posix-functions/sinhf.texi: Mention the new module.
11417
11418         sinh: Use a .m4 file.
11419         * m4/sinh.m4: New file.
11420         * modules/sinh (Files): Add it.
11421         (configure.ac): Just invoke gl_FUNC_SINH.
11422
11423 2011-10-08  Bruno Haible  <bruno@clisp.org>
11424
11425         Tests for module 'atan2f'.
11426         * modules/atan2f-tests: New file.
11427         * tests/test-atan2f.c: New file.
11428
11429         New module 'atan2f'.
11430         * lib/math.in.h (atan2f): New declaration.
11431         * lib/atan2f.c: New file.
11432         * m4/atan2f.m4: New file.
11433         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11435         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11436         * modules/atan2f: New file.
11437         * tests/test-math-c++.cc: Check the declaration of atan2f.
11438         * doc/posix-functions/atan2f.texi: Mention the new module.
11439
11440         atan2: Use a .m4 file.
11441         * m4/atan2.m4: New file.
11442         * modules/atan2 (Files): Add it.
11443         (configure.ac): Just invoke gl_FUNC_ATAN2.
11444
11445 2011-10-08  Bruno Haible  <bruno@clisp.org>
11446
11447         Tests for module 'atanf'.
11448         * modules/atanf-tests: New file.
11449         * tests/test-atanf.c: New file.
11450
11451         New module 'atanf'.
11452         * lib/math.in.h (atanf): New declaration.
11453         * lib/atanf.c: New file.
11454         * m4/atanf.m4: New file.
11455         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11457         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11458         * modules/atanf: New file.
11459         * tests/test-math-c++.cc: Check the declaration of atanf.
11460         * doc/posix-functions/atanf.texi: Mention the new module.
11461
11462         atan: Use a .m4 file.
11463         * m4/atan.m4: New file.
11464         * modules/atan (Files): Add it.
11465         (configure.ac): Just invoke gl_FUNC_ATAN.
11466
11467 2011-10-08  Bruno Haible  <bruno@clisp.org>
11468
11469         Tests for module 'acosf'.
11470         * modules/acosf-tests: New file.
11471         * tests/test-acosf.c: New file.
11472
11473         New module 'acosf'.
11474         * lib/math.in.h (acosf): New declaration.
11475         * lib/acosf.c: New file.
11476         * m4/acosf.m4: New file.
11477         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11478         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11479         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11480         * modules/acosf: New file.
11481         * tests/test-math-c++.cc: Check the declaration of acosf.
11482         * doc/posix-functions/acosf.texi: Mention the new module.
11483
11484         acos: Use a .m4 file.
11485         * m4/acos.m4: New file.
11486         * modules/acos (Files): Add it.
11487         (configure.ac): Just invoke gl_FUNC_ACOS.
11488
11489 2011-10-08  Bruno Haible  <bruno@clisp.org>
11490
11491         Tests for module 'asinf'.
11492         * modules/asinf-tests: New file.
11493         * tests/test-asinf.c: New file.
11494
11495         New module 'asinf'.
11496         * lib/math.in.h (asinf): New declaration.
11497         * lib/asinf.c: New file.
11498         * m4/asinf.m4: New file.
11499         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11500         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11501         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11502         * modules/asinf: New file.
11503         * tests/test-math-c++.cc: Check the declaration of asinf.
11504         * doc/posix-functions/asinf.texi: Mention the new module.
11505
11506         asin: Use a .m4 file.
11507         * m4/asin.m4: New file.
11508         * modules/asin (Files): Add it.
11509         (configure.ac): Just invoke gl_FUNC_ASIN.
11510
11511 2011-10-08  Bruno Haible  <bruno@clisp.org>
11512
11513         Tests for module 'tanf'.
11514         * modules/tanf-tests: New file.
11515         * tests/test-tanf.c: New file.
11516
11517         New module 'tanf'.
11518         * lib/math.in.h (tanf): New declaration.
11519         * lib/tanf.c: New file.
11520         * m4/tanf.m4: New file.
11521         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11523         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11524         * modules/tanf: New file.
11525         * tests/test-math-c++.cc: Check the declaration of tanf.
11526         * doc/posix-functions/tanf.texi: Mention the new module.
11527
11528         tan: Use a .m4 file.
11529         * m4/tan.m4: New file.
11530         * modules/tan (Files): Add it.
11531         (configure.ac): Just invoke gl_FUNC_TAN.
11532
11533 2011-10-08  Bruno Haible  <bruno@clisp.org>
11534
11535         Tests for module 'cosf'.
11536         * modules/cosf-tests: New file.
11537         * tests/test-cosf.c: New file.
11538
11539         New module 'cosf'.
11540         * lib/math.in.h (cosf): New declaration.
11541         * lib/cosf.c: New file.
11542         * m4/cosf.m4: New file.
11543         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11545         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11546         * modules/cosf: New file.
11547         * tests/test-math-c++.cc: Check the declaration of cosf.
11548         * doc/posix-functions/cosf.texi: Mention the new module.
11549
11550         cos: Use a .m4 file.
11551         * m4/cos.m4: New file.
11552         * modules/cos (Files): Add it.
11553         (configure.ac): Just invoke gl_FUNC_COS.
11554
11555 2011-10-08  Bruno Haible  <bruno@clisp.org>
11556
11557         Tests for module 'sinf'.
11558         * modules/sinf-tests: New file.
11559         * tests/test-sinf.c: New file.
11560
11561         New module 'sinf'.
11562         * lib/math.in.h (sinf): New declaration.
11563         * lib/sinf.c: New file.
11564         * m4/sinf.m4: New file.
11565         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11567         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11568         * modules/sinf: New file.
11569         * tests/test-math-c++.cc: Check the declaration of sinf.
11570         * doc/posix-functions/sinf.texi: Mention the new module.
11571
11572         sin: Use a .m4 file.
11573         * m4/sin.m4: New file.
11574         * modules/sin (Files): Add it.
11575         (configure.ac): Just invoke gl_FUNC_SIN.
11576
11577 2011-10-08  Bruno Haible  <bruno@clisp.org>
11578
11579         Tests for module 'powf'.
11580         * modules/powf-tests: New file.
11581         * tests/test-powf.c: New file.
11582
11583         New module 'powf'.
11584         * lib/math.in.h (powf): New declaration.
11585         * lib/powf.c: New file.
11586         * m4/powf.m4: New file.
11587         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11589         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11590         * modules/powf: New file.
11591         * tests/test-math-c++.cc: Check the declaration of powf.
11592         * doc/posix-functions/powf.texi: Mention the new module.
11593
11594         pow: Use a .m4 file.
11595         * m4/pow.m4: New file.
11596         * modules/pow (Files): Add it.
11597         (configure.ac): Just invoke gl_FUNC_POW.
11598
11599 2011-10-08  Bruno Haible  <bruno@clisp.org>
11600
11601         Tests for module 'log10f'.
11602         * modules/log10f-tests: New file.
11603         * tests/test-log10f.c: New file.
11604
11605         New module 'log10f'.
11606         * lib/math.in.h (log10f): New declaration.
11607         * lib/log10f.c: New file.
11608         * m4/log10f.m4: New file.
11609         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11611         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11612         * modules/log10f: New file.
11613         * tests/test-math-c++.cc: Check the declaration of log10f.
11614         * doc/posix-functions/log10f.texi: Mention the new module.
11615
11616         log10: Use a .m4 file.
11617         * m4/log10.m4: New file.
11618         * modules/log10 (Files): Add it.
11619         (configure.ac): Just invoke gl_FUNC_LOG10.
11620
11621 2011-10-08  Bruno Haible  <bruno@clisp.org>
11622
11623         Tests for module 'logf'.
11624         * modules/logf-tests: New file.
11625         * tests/test-logf.c: New file.
11626
11627         New module 'logf'.
11628         * lib/math.in.h (logf): New declaration.
11629         * lib/logf.c: New file.
11630         * m4/logf.m4: New file.
11631         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11633         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11634         * modules/logf: New file.
11635         * tests/test-math-c++.cc: Check the declaration of logf.
11636         * doc/posix-functions/logf.texi: Mention the new module.
11637
11638         log: Use a .m4 file.
11639         * m4/log.m4: New file.
11640         * modules/log (Files): Add it.
11641         (configure.ac): Just invoke gl_FUNC_LOG.
11642
11643 2011-10-08  Bruno Haible  <bruno@clisp.org>
11644
11645         Tests for module 'expf'.
11646         * modules/expf-tests: New file.
11647         * tests/test-expf.c: New file.
11648
11649         New module 'expf'.
11650         * lib/math.in.h (expf): New declaration.
11651         * lib/expf.c: New file.
11652         * m4/expf.m4: New file.
11653         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11655         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11656         * modules/expf: New file.
11657         * tests/test-math-c++.cc: Check the declaration of expf.
11658         * doc/posix-functions/expf.texi: Mention the new module.
11659
11660         exp: Use a .m4 file.
11661         * m4/exp.m4: New file.
11662         * modules/exp (Files): Add it.
11663         (configure.ac): Just invoke gl_FUNC_EXP.
11664
11665 2011-10-08  Bruno Haible  <bruno@clisp.org>
11666
11667         Tests for module 'sqrtf'.
11668         * modules/sqrtf-tests: New file.
11669         * tests/test-sqrtf.c: New file.
11670
11671         New module 'sqrtf'.
11672         * lib/math.in.h (sqrtf): New declaration.
11673         * lib/sqrtf.c: New file.
11674         * m4/sqrtf.m4: New file.
11675         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11677         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11678         * modules/sqrtf: New file.
11679         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11680         * doc/posix-functions/sqrtf.texi: Mention the new module.
11681
11682 2011-10-08  Bruno Haible  <bruno@clisp.org>
11683
11684         Tests: Avoid link failures w.r.t. libintl.
11685         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11686         $(LIBINTL).
11687         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11688         $(LIBINTL).
11689         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11690         against $(LIBINTL).
11691         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11692         $(LIBINTL).
11693         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11694         $(LIBINTL).
11695         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11696
11697 2011-10-08  Bruno Haible  <bruno@clisp.org>
11698
11699         pow tests: Defeat compiler optimizations.
11700         * tests/test-pow.c (main): Assign arguments to x and y before use.
11701
11702 2011-10-08  Bruno Haible  <bruno@clisp.org>
11703
11704         gnulib-tool: Improve last commit.
11705         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11706         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11707         ignore dependencies that are not among the modules list.
11708
11709 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11710
11711         gnulib-tool: don't follow dependencies to avoided modules
11712         This fixes a bug that is related to the previous one.
11713         * gnulib-tool (func_modules_transitive_closure)
11714         (func_emit_autoconf_snippets):
11715         Check whether a dependency is acceptable before using it.
11716         (--extract-dependencies): Report an error if --avoid is also used,
11717         since this combination of options is not yet supported.
11718
11719         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11720         Problem reported by Peter Dyballa in
11721         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11722         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11723         when echoing "$condition".
11724
11725 2011-10-07  Bruno Haible  <bruno@clisp.org>
11726
11727         Fix documentation about math functions on MacOS X.
11728         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11729         MacOS X 10.5.
11730         * doc/posix-functions/fdim.texi: Likewise.
11731         * doc/posix-functions/feclearexcept.texi: Likewise.
11732         * doc/posix-functions/fegetenv.texi: Likewise.
11733         * doc/posix-functions/fegetround.texi: Likewise.
11734         * doc/posix-functions/feholdexcept.texi: Likewise.
11735         * doc/posix-functions/feraiseexcept.texi: Likewise.
11736         * doc/posix-functions/fesetenv.texi: Likewise.
11737         * doc/posix-functions/fesetround.texi: Likewise.
11738         * doc/posix-functions/fetestexcept.texi: Likewise.
11739         * doc/posix-functions/feupdateenv.texi: Likewise.
11740         * doc/posix-functions/fmax.texi: Likewise.
11741         * doc/posix-functions/fmin.texi: Likewise.
11742         * doc/posix-functions/log2.texi: Likewise.
11743         * doc/posix-functions/modff.texi: Likewise.
11744         * doc/posix-functions/nan.texi: Likewise.
11745         * doc/posix-functions/nanf.texi: Likewise.
11746         * doc/posix-functions/nextafterf.texi: Likewise.
11747         * doc/posix-functions/remquo.texi: Likewise.
11748
11749 2011-10-07  Bruno Haible  <bruno@clisp.org>
11750
11751         modff: Drop assumption about library that defines modff.
11752         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11753         AC_CHECK_FUNCS.
11754         * modules/modff (Files): Add m4/mathfunc.m4.
11755
11756 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11757
11758         raise tests: Avoid a GCC warning.
11759         * tests/test-raise.c (handler): Use _Noreturn.
11760
11761 2011-10-07  Bruno Haible  <bruno@clisp.org>
11762
11763         Tests for module 'ldexpf'.
11764         * modules/ldexpf-tests: New file.
11765         * tests/test-ldexpf.c: New file.
11766
11767         New module 'ldexpf'.
11768         * lib/math.in.h (ldexpf): New declaration.
11769         * lib/ldexpf.c: New file.
11770         * m4/ldexpf.m4: New file.
11771         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11773         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11774         * modules/ldexpf: New file.
11775         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11776         * doc/posix-functions/ldexpf.texi: Mention the new module.
11777
11778 2011-10-06  Bruno Haible  <bruno@clisp.org>
11779
11780         frexpf: Work around problems on IRIX and mingw.
11781         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11783         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11784         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11785         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11786         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11787         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11788
11789 2011-10-06  Bruno Haible  <bruno@clisp.org>
11790
11791         fabsf: Drop assumption about library that defines fabsf.
11792         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11793         AC_CHECK_FUNCS.
11794         * modules/fabsf (Files): Add m4/mathfunc.m4.
11795
11796 2011-10-06  Bruno Haible  <bruno@clisp.org>
11797
11798         frexpf: Drop assumption about library that defines frexpf.
11799         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11800         'int *', 'float *', 'long double *', 'float', 'long double'.
11801         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11802         AC_CHECK_FUNCS.
11803         * modules/frexpf (Files): Add m4/mathfunc.m4.
11804
11805         Tests for module 'frexpf'.
11806         * modules/frexpf-tests: New file.
11807         * tests/test-frexpf.c: New file.
11808
11809         New module 'frexpf'.
11810         * lib/math.in.h (frexpf): New declaration.
11811         * lib/frexpf.c: New file.
11812         * m4/frexpf.m4: New file.
11813         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11815         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11816         * modules/frexpf: New file.
11817         * tests/test-math-c++.cc: Check the declaration of frexpf.
11818         * doc/posix-functions/frexpf.texi: Mention the new module.
11819
11820 2011-10-06  Bruno Haible  <bruno@clisp.org>
11821
11822         math: Sort function declarations of math.in.h.
11823         * lib/math.in.h (frexp, logb): Move declarations.
11824
11825 2011-10-05  Bruno Haible  <bruno@clisp.org>
11826
11827         Tests for module 'modff'.
11828         * modules/modff-tests: New file.
11829         * tests/test-modff.c: New file.
11830
11831         New module 'modff'.
11832         * lib/math.in.h (modff): New declaration.
11833         * lib/modff.c: New file.
11834         * m4/modff.m4: New file.
11835         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11837         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11838         * modules/modff: New file.
11839         * tests/test-math-c++.cc: Check the declaration of modff.
11840         * doc/posix-functions/modff.texi: Mention the new module.
11841
11842         modf tests: Make test sharper.
11843         * tests/test-modf.c (main): Strengthen upper bound.
11844
11845         modf: Use a .m4 file.
11846         * m4/modf.m4: New file.
11847         * modules/modf (Files): Add it.
11848         (configure.ac): Just invoke gl_FUNC_MODF.
11849
11850 2011-10-05  Bruno Haible  <bruno@clisp.org>
11851
11852         Tests for module 'fmodf'.
11853         * modules/fmodf-tests: New file.
11854         * tests/test-fmodf.c: New file.
11855
11856         New module 'fmodf'.
11857         * lib/math.in.h (fmodf): New declaration.
11858         * lib/fmodf.c: New file.
11859         * m4/fmodf.m4: New file.
11860         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11862         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11863         * modules/fmodf: New file.
11864         * tests/test-math-c++.cc: Check the declaration of fmodf.
11865         * doc/posix-functions/fmodf.texi: Mention the new module.
11866
11867         fmod: Use a .m4 file.
11868         * m4/fmod.m4: New file.
11869         * modules/fmod (Files): Add it.
11870         (configure.ac): Just invoke gl_FUNC_FMOD.
11871
11872 2011-10-05  Bruno Haible  <bruno@clisp.org>
11873
11874         Tests for module 'fabsf'.
11875         * modules/fabsf-tests: New file.
11876         * tests/test-fabsf.c: New file.
11877
11878         New module 'fabsf'.
11879         * lib/math.in.h (fabsf): New declaration.
11880         * lib/fabsf.c: New file.
11881         * m4/fabsf.m4: New file.
11882         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11884         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11885         * modules/fabsf: New file.
11886         * tests/test-math-c++.cc: Check the declaration of fabsf.
11887         * doc/posix-functions/fabsf.texi: Mention the new module.
11888
11889         fabs: Use a .m4 file.
11890         * m4/fabs.m4: New file.
11891         * modules/fabs (Files): Add it.
11892         (configure.ac): Just invoke gl_FUNC_FABS.
11893
11894 2011-10-05  Jim Meyering  <meyering@redhat.com>
11895
11896         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11897         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11898         ls -lL regression introduced in coreutils-8.12, it does so at the
11899         cost of an additional stat call in the common case.  Besides, now
11900         that the kernel change that prompted commit 95f7c57f has been reverted
11901         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11902         we have no use for commit 95f7c57f, "file-has-acl: use
11903         acl_extended_file_nofollow if available".
11904
11905 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11906
11907         file-has-acl: revert unintended change in behavior of ls -L
11908         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11909         derived from...
11910         (file_has_acl): ...code here.  Call it.
11911         This problem was introduced with 2011-07-22 commit 95f7c57f,
11912         "file-has-acl: use acl_extended_file_nofollow if available".
11913         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11914
11915 2011-10-03  Bruno Haible  <bruno@clisp.org>
11916
11917         poll: Avoid link errors on MSVC.
11918         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11919         * modules/poll (Depends-on): Add sockets.
11920         (Link): New section.
11921         * NEWS: Mention the change.
11922         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11923         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11924         $(LIB_POLL) instead of $(LIBSOCKET).
11925
11926 2011-10-03  Bruno Haible  <bruno@clisp.org>
11927
11928         sys_select tests: Fix link error on MSVC 9.
11929         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11930         with $(LIB_SELECT) instead of $(LIBSOCKET).
11931
11932 2011-10-03  Bruno Haible  <bruno@clisp.org>
11933
11934         sys_select: Fix compilation error on mingw.
11935         * lib/sys_select.in.h: On native Windows, include <io.h>.
11936
11937 2011-10-03  Bruno Haible  <bruno@clisp.org>
11938
11939         wmemset: Support for MSVC.
11940         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11941         whether wmemset() exists.
11942
11943 2011-10-03  Bruno Haible  <bruno@clisp.org>
11944
11945         wmemmove: Support for MSVC.
11946         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11947         whether wmemmove() exists.
11948
11949 2011-10-03  Bruno Haible  <bruno@clisp.org>
11950
11951         wmemcpy: Support for MSVC.
11952         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11953         whether wmemcpy() exists.
11954
11955 2011-10-03  Bruno Haible  <bruno@clisp.org>
11956
11957         wmemcmp: Support for MSVC.
11958         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11959         whether wmemcmp() exists.
11960
11961 2011-10-03  Bruno Haible  <bruno@clisp.org>
11962
11963         wmemchr: Support for MSVC.
11964         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11965         whether wmemchr() exists.
11966
11967 2011-10-03  Bruno Haible  <bruno@clisp.org>
11968
11969         glthread/*, strsignal: Support for MSVC.
11970         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11971         including <winsock.h> on MSVC 9.
11972         * lib/glthread/lock.h: Likewise.
11973         * lib/glthread/thread.h: Likewise.
11974         * lib/glthread/tls.h: Likewise.
11975         * lib/glthread/yield.h: Likewise.
11976         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11977         if HAVE_UNISTD_H is false.
11978         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11979
11980 2011-10-03  Bruno Haible  <bruno@clisp.org>
11981
11982         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11983         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11984         Set to 100000.
11985
11986 2011-10-03  Bruno Haible  <bruno@clisp.org>
11987
11988         acl: Fix specification.
11989         * lib/file-has-acl.c (file_has_acl): Fix specification.
11990
11991 2011-10-03  Bruno Haible  <bruno@clisp.org>
11992
11993         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11994         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11995         (compute_curr_prefix, shared_library_fullname,
11996         find_shared_library_fullname, get_shared_library_fullname, relocate):
11997         Use it together with PIC && INSTALLDIR.
11998         Reported by <jojelino@gmail.com>
11999         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12000
12001 2011-10-01  Jim Meyering  <meyering@redhat.com>
12002
12003         maint.mk: adjust a release-related rule not to require use of gzip
12004         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12005         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12006         projects that build only .tar.xz files.  Also fix an erroneous test.
12007
12008         test-linkat: don't leave behind a temporary file
12009         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12010         Otherwise, coreutils' "make distcheck" would fail with this:
12011           Only in /c/cu/tests/torture/coreutils/test/\
12012             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12013           make[2]: *** [my-distcheck] Error 1
12014
12015         float, math: add omitted file
12016         * lib/itold.c: Add file, required for yesterday's float change.
12017
12018 2011-10-01  Bruno Haible  <bruno@clisp.org>
12019
12020         isinf: Fix for OpenBSD/x86.
12021         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12022         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12023         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12024
12025 2011-10-01  Bruno Haible  <bruno@clisp.org>
12026
12027         isfinite: Fix syntax error in configure test.
12028         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12029
12030         isfinite: Fix typo.
12031         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12032         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12033
12034 2011-10-01  Bruno Haible  <bruno@clisp.org>
12035
12036         nonblocking tests: Fix test failure on Linux/IA-64.
12037         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12038         Set to 270000.
12039
12040 2011-10-01  Bruno Haible  <bruno@clisp.org>
12041
12042         mkfifoat tests: Fix a test failure on mingw.
12043         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12044         with error ENOSYS.
12045
12046 2011-09-30  Bruno Haible  <bruno@clisp.org>
12047
12048         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12049         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12050         'long double'. Set REPLACE_ITOLD.
12051         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12052         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12053         * lib/itold.c: New file.
12054         * modules/float (Files): Add lib/itold.c.
12055         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12056         (Makefile.am): Substitute REPLACE_ITOLD.
12057         * modules/math (Depends-on): Add float.
12058         (Makefile.am): Substitute REPLACE_ITOLD.
12059         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12060         * doc/posix-headers/math.texi: Likewise.
12061         * doc/posix-functions/logl.texi: Likewise.
12062
12063 2011-09-30  Bruno Haible  <bruno@clisp.org>
12064
12065         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12066         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12067         Set to 140000.
12068
12069 2011-09-30  Bruno Haible  <bruno@clisp.org>
12070
12071         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12072         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12073         invocation, say "right after AC_PROG_CC_STDC", not "right after
12074         AC_PROG_CC".
12075         Reported by Gary V. Vaughan <gary@gnu.org>.
12076
12077 2011-09-30  Bruno Haible  <bruno@clisp.org>
12078
12079         Centralize C99 requirement.
12080         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12081         * modules/stdarg (configure.ac-early): Invoke it instead of
12082         AC_PROG_CC_STDC.
12083         Reported by Gary V. Vaughan and Paul Eggert.
12084
12085 2011-09-29  Bruno Haible  <bruno@clisp.org>
12086
12087         float: Fix LDBL_MAX value on Linux/PowerPC.
12088         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12089         on Linux/PowerPC.
12090         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12091         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12092         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12093         platform.
12094         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12095
12096 2011-09-29  Bruno Haible  <bruno@clisp.org>
12097
12098         doc: Improve doc about gl_EARLY.
12099         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12100         AC_PROG_CC_STDC invocation.
12101         Reported by Gary V. Vaughan <gary@gnu.org>.
12102
12103 2011-09-28  Bruno Haible  <bruno@clisp.org>
12104
12105         fgetc, fputc, fread, fwrite tests: Fix link error.
12106         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12107         on non-MSVC platforms.
12108         * tests/test-fputc.c (main): Likewise.
12109         * tests/test-fread.c (main): Likewise.
12110         * tests/test-fwrite.c (main): Likewise.
12111         Reported by Jim Meyering.
12112
12113 2011-09-27  Bruno Haible  <bruno@clisp.org>
12114
12115         fputc, fwrite tests: Avoid test failure on MSVC.
12116         * tests/test-fgetc.c: Include msvc-inval.h.
12117         (main): Invoke gl_msvc_inval_ensure_handler.
12118         * tests/test-fputc.c: Include msvc-inval.h.
12119         (main): Invoke gl_msvc_inval_ensure_handler.
12120         * tests/test-fread.c: Include msvc-inval.h.
12121         (main): Invoke gl_msvc_inval_ensure_handler.
12122         * tests/test-fwrite.c: Include msvc-inval.h.
12123         (main): Invoke gl_msvc_inval_ensure_handler.
12124         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12125         * modules/fputc-tests (Depends-on): Likewise.
12126         * modules/fread-tests (Depends-on): Likewise.
12127         * modules/fwrite-tests (Depends-on): Likewise.
12128
12129 2011-09-27  Bruno Haible  <bruno@clisp.org>
12130
12131         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12132         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12133         (raise): Remove older, duplicated declaration.
12134         (_gl_raise_SIGPIPE): New declaration.
12135         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12136         (rpl_raise): Remove function.
12137         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12138         a gnulib-defined SIGPIPE here.
12139         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12140         'sigprocmask' has detected missing signal-blocking and the module
12141         'sigpipe' is enabled.
12142         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12143
12144 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12145
12146         base64-tests: avoid memory leak
12147         * tests/test-base64.c (main): Plug memory leak.
12148
12149         base32: new module
12150         * modules/base32: New module.
12151         * lib/base32.c: New file.
12152         * lib/base32.h: Likewise.
12153         * m4/base32.m4: Likewise.
12154         * modules/base32-tests: New test.
12155         * tests/test-base32.c: Likewise.
12156         * MODULES.html.sh (Misc): Mention it.
12157
12158 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12159
12160         gnulib: use more-standard license notice wording
12161         * gnulib-tool (func_emit_copyright_notice): When emitting a
12162         license notice into a file, use the standard wording as suggested
12163         by the current information for GNU maintainers, except say "file"
12164         rather than "program".  The new wording gives a license version
12165         number, which addresses an issue raised by Glenn Morris in
12166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12167         * m4/onceonly.m4: Use that same wording here, too.
12168
12169         dup2: minor simplification
12170         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12171         as lib/dup2.c no longer uses 'inline'.
12172
12173 2011-09-25  Bruno Haible  <bruno@clisp.org>
12174
12175         strings: Fix compilation error on MSVC.
12176         * lib/strings.in.h: Include <stddef.h> for size_t.
12177
12178 2011-09-25  Bruno Haible  <bruno@clisp.org>
12179
12180         fflush et al.: Document limitation on MSVC.
12181         * doc/posix-functions/fflush.texi: Document possible crash in handling
12182         mode other than DEFAULT_HANDLING.
12183         * doc/posix-functions/fgetc.texi: Likewise.
12184         * doc/posix-functions/fputc.texi: Likewise.
12185         * doc/posix-functions/fread.texi: Likewise.
12186         * doc/posix-functions/fwrite.texi: Likewise.
12187
12188 2011-09-25  Bruno Haible  <bruno@clisp.org>
12189
12190         msvc-inval: Allow three invalid parameter handling modes.
12191         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12192         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12193         macros.
12194         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12195         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12196         SANE_LIBRARY_HANDLING as a no-op.
12197         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12198         <stdlib.h>.
12199         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12200
12201 2011-09-25  Bruno Haible  <bruno@clisp.org>
12202
12203         msvc-inval: Make handler multithread-safe.
12204         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12205         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12206         declarations.
12207         (gl_msvc_inval_current): New declaration.
12208         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12209         Operate on the structure returned by gl_msvc_inval_current().
12210         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12211         Remove varaiables.
12212         (tls_index, tls_initialized): New variables.
12213         (not_per_thread): New variable.
12214         (gl_msvc_inval_current): New function.
12215         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12216         returned by gl_msvc_inval_current().
12217
12218 2011-09-25  Bruno Haible  <bruno@clisp.org>
12219
12220         msvc-inval: Install handler globally.
12221         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12222         !_MSC_VER.
12223         (gl_msvc_invalid_parameter_handler): Remove declaration.
12224         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12225         declarations.
12226         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12227         Install the handler globally, don't uninstall it.
12228         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12229         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12230         currently valid, call RaiseException instead.
12231         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12232         for !_MSC_VER.
12233
12234 2011-09-25  Bruno Haible  <bruno@clisp.org>
12235
12236         strerror_r-posix: Fix for MSVC 9.
12237         * lib/strerror_r.c (local_snprintf): New function.
12238         (snprintf): Define to local_snprintf, not to _snprintf.
12239
12240 2011-09-25  Bruno Haible  <bruno@clisp.org>
12241
12242         ftruncate: Support for MSVC 9.
12243         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12244         (chsize_nothrow): New function.
12245         (chsize): Redefine as a macro.
12246         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12247         * modules/ftruncate (Depends-on): Add msvc-inval.
12248
12249 2011-09-25  Bruno Haible  <bruno@clisp.org>
12250
12251         New module 'fstat'.
12252         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12253         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12254         * lib/fchdir.c (rpl_fstat): Remove function.
12255         * m4/fstat.m4: New file.
12256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12257         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12258         declared.
12259         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12260         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12261         * modules/fstat: New file.
12262         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12263         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12264         is set.
12265         * doc/posix-functions/fstat.texi: Mention the new module and the
12266         problem on MSVC.
12267         * NEWS: Mention the change.
12268         * modules/acl (Depends-on): Add fstat.
12269         * modules/chdir-safer (Depends-on): Likewise.
12270         * modules/chown (Depends-on): Likewise.
12271         * modules/copy-file (Depends-on): Likewise.
12272         * modules/fchdir (Depends-on): Likewise.
12273         * modules/fdopendir (Depends-on): Likewise.
12274         * modules/fopen (Depends-on): Likewise.
12275         * modules/fts (Depends-on): Likewise.
12276         * modules/getcwd (Depends-on): Likewise.
12277         * modules/isapipe (Depends-on): Likewise.
12278         * modules/linkat (Depends-on): Likewise.
12279         * modules/lseek (Depends-on): Likewise.
12280         * modules/mkdir-p (Depends-on): Likewise.
12281         * modules/open (Depends-on): Likewise.
12282         * modules/openat (Depends-on): Likewise.
12283         * modules/read-file (Depends-on): Likewise.
12284         * modules/renameat (Depends-on): Likewise.
12285         * modules/utimens (Depends-on): Likewise.
12286
12287 2011-09-25  Bruno Haible  <bruno@clisp.org>
12288
12289         linkat: Fix compilation on MSVC 9.
12290         * lib/linkat.c: Don't include <stdint.h>.
12291
12292 2011-09-25  Bruno Haible  <bruno@clisp.org>
12293
12294         fclose: Support for MSVC 9.
12295         * lib/fclose.c: Include msvc-inval.h.
12296         (fclose_nothrow): New function.
12297         (rpl_fclose): Use it.
12298         * modules/fclose (Depends-on): Add msvc-inval.
12299         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12300
12301 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12302
12303         dup2: minor simplifications
12304         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12305         that it's a performance win.
12306         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12307         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12308
12309 2011-09-24  Jim Meyering  <meyering@redhat.com>
12310
12311         test-futimens: avoid a warning from gcc -Wshadow
12312         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12313         to avoid a shadowing warning.
12314
12315 2011-09-24  Bruno Haible  <bruno@clisp.org>
12316
12317         fdopen: Support for MSVC 9.
12318         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12319         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12320         * lib/fdopen.c: Include msvc-inval.h.
12321         (fdopen_nothrow): New function.
12322         (rpl_fdopen): Use it.
12323         * modules/fdopen (Depends-on): Add msvc-inval.
12324         * modules/fclose-tests (Depends-on): Add fdopen.
12325         * modules/fflush-tests (Depends-on): Likewise.
12326         * modules/fgetc-tests (Depends-on): Likewise.
12327         * modules/fputc-tests (Depends-on): Likewise.
12328         * modules/fread-tests (Depends-on): Likewise.
12329         * modules/freopen-tests (Depends-on): Likewise.
12330         * modules/fseeko-tests (Depends-on): Likewise.
12331         * modules/ftello-tests (Depends-on): Likewise.
12332         * modules/fwrite-tests  (Depends-on): Likewise.
12333         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12334
12335 2011-09-24  Bruno Haible  <bruno@clisp.org>
12336
12337         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12338         * modules/fgetc-tests (Depends-on): Add unistd.
12339         * modules/fputc-tests (Depends-on): Likewise.
12340         * modules/fread-tests (Depends-on): Likewise.
12341         * modules/fwrite-tests (Depends-on): Likewise.
12342
12343 2011-09-24  Bruno Haible  <bruno@clisp.org>
12344
12345         dup: Simplify autoconf test.
12346         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12347         on gl_MSVC_INVAL's result.
12348
12349 2011-09-24  Bruno Haible  <bruno@clisp.org>
12350
12351         Tests for function fwrite().
12352         * modules/fwrite-tests: New file.
12353         * tests/test-fwrite.c: New file.
12354         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12355
12356         Tests for function fread().
12357         * modules/fread-tests: New file.
12358         * tests/test-fread.c: New file.
12359         * modules/stdio-tests (Depends-on): Add fread-tests.
12360
12361         Activate fputc tests.
12362         * modules/stdio-tests (Depends-on): Add fputc-tests.
12363
12364         Enhance fgetc, fputc tests.
12365         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12366         * tests/test-fputc.c (main): Likewise.
12367
12368 2011-09-24  Bruno Haible  <bruno@clisp.org>
12369
12370         write: Support for MSVC 9.
12371         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12372         is not 1.
12373         * lib/write.c (write_nothrow): New function.
12374         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12375         not 1. Use write_nothrow.
12376         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12377         invalid parameter handler.
12378         (gl_PREREQ_WRITE): New macro.
12379         * modules/write (Depends-on): Add msvc-inval.
12380         (configure.ac): Invoke gl_PREREQ_WRITE.
12381         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12382
12383 2011-09-24  Bruno Haible  <bruno@clisp.org>
12384
12385         read: Fix last commit.
12386         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12387
12388 2011-09-24  Bruno Haible  <bruno@clisp.org>
12389
12390         dup2: Fix last commit.
12391         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12392         (rpl_dup2): Disable fcntl workaround on native Windows.
12393
12394         sigprocmask: Make code safer.
12395         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12396         section that changes macro definitions for this compilation unit.
12397
12398 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12399
12400         dup2: clarify by coalescing Windows-specific material
12401         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12402         "msvc-nothrow.h"' to the Windows-specific section, so that the
12403         Emacs source need not contain these include files.
12404         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12405         Windows-specific fixes into this function rather than just the
12406         nothrow fix, as this shortens and clarifies the code.  Always
12407         define as a function, as that's a bit cleaner than having it be
12408         sometimes a function and sometimes a macro.
12409         (rpl_dup2): Move the Windows-specific stuff out of here and into
12410         ms_windows_dup2.  Don't protect the Haiku-related fix with
12411         "#if !defined __linux__", as the same code also works around
12412         a Linux kernel bug, and it doesn't add any system calls on any
12413         platform.  Add comment about FreeBSD 6.1.
12414
12415         sigprocmask: move #include directive
12416         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12417         Windows-specific section, so that the Emacs source need not
12418         contain msvc-inval.h.
12419
12420 2011-09-23  Bruno Haible  <bruno@clisp.org>
12421
12422         read: Support for MSVC 9.
12423         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12424         is not 1.
12425         * lib/read.c (read_nothrow): New function.
12426         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12427         read_nothrow.
12428         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12429         invalid parameter handler.
12430         (gl_PREREQ_READ): New macro.
12431         * modules/read (Depends-on): Add msvc-inval.
12432         (configure.ac): Invoke gl_PREREQ_READ.
12433         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12434
12435 2011-09-23  Bruno Haible  <bruno@clisp.org>
12436
12437         close: Support for MSVC 9.
12438         * lib/close.c: Include <errno.h>, msvc-inval.h.
12439         (close_nothrow): New function.
12440         (rpl_close): Use it.
12441         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12442         invalid parameter handler.
12443         * modules/close (Depends-on): Add msvc-inval.
12444         * modules/dup2-tests (Depends-on): Add close.
12445         * modules/dup3-tests (Depends-on): Likewise.
12446         * modules/fcntl-tests (Depends-on): Likewise.
12447         * modules/spawn-pipe-tests (Depends-on): Likewise.
12448         * modules/unistd-safer-tests (Depends-on): Likewise.
12449         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12450
12451 2011-09-23  Bruno Haible  <bruno@clisp.org>
12452
12453         New module 'dup'.
12454         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12455         Allow replacement.
12456         * lib/dup.c: New file.
12457         * lib/fchdir.c (rpl_dup): Remove function.
12458         * m4/dup.m4: New file.
12459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12460         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12461         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12462         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12463         * modules/dup: New file.
12464         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12465         'dup' module is in use.
12466         * modules/fdopendir (Depends-on): Add dup.
12467         * modules/fdutimensat-tests (Depends-on): Likewise.
12468         * modules/fts (Depends-on): Likewise.
12469         * modules/futimens-tests (Depends-on): Likewise.
12470         * modules/posix_spawnp-tests (Depends-on): Likewise.
12471         * modules/unistd-safer-tests (Depends-on): Likewise.
12472         * modules/utimens-tests (Depends-on): Likewise.
12473         * doc/posix-functions/dup.texi: Mention the new module and the problem
12474         on MSVC.
12475
12476 2011-09-23  Bruno Haible  <bruno@clisp.org>
12477
12478         getdtablesize: Support for MSVC 9.
12479         * lib/getdtablesize.c: Include msvc-inval.h.
12480         (_setmaxstdio_nothrow): New function.
12481         (_setmaxstdio): Redefine it.
12482         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12483         * modules/getdtablesize (Depends-on): Add msvc-inval.
12484         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12485
12486 2011-09-23  Bruno Haible  <bruno@clisp.org>
12487
12488         signal-h: Rename from signal.
12489         * modules/signal-h: Renamed from modules/signal.
12490         * modules/pthread_sigmask (Depends-on): Update.
12491         * modules/raise (Depends-on): Likewise.
12492         * modules/sigaction (Depends-on): Likewise.
12493         * modules/sigpipe (Depends-on): Likewise.
12494         * modules/sigprocmask (Depends-on): Likewise.
12495         * modules/sys_select (Depends-on): Likewise.
12496         * modules/signal-h-tests: Renamed from modules/signal-tests.
12497         (Files, Depends-on, Makefile.am): Update.
12498         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12499         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12500         (Files, Makefile.am): Update.
12501         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12502         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12503         * modules/signal: New placeholder file.
12504         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12505         * doc/posix-headers/signal.texi: Update.
12506         * NEWS: Mention the change.
12507
12508 2011-09-23  Bruno Haible  <bruno@clisp.org>
12509
12510         sigprocmask: Avoid crashes through signal() on MSVC 9.
12511         * lib/sigprocmask.c: Include msvc-inval.h.
12512         (signal_nothrow): New function.
12513         (signal): Redefine it.
12514         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12515         * modules/sigprocmask (Depends-on): Add msvc-inval.
12516         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12517
12518 2011-09-23  Bruno Haible  <bruno@clisp.org>
12519
12520         Tests for module 'raise'.
12521         * modules/raise-tests: New file.
12522         * tests/test-raise.c: New file.
12523
12524         raise: Support for MSVC.
12525         * lib/signal.in.h (raise): New declaration.
12526         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12527         for native Windows platforms.
12528         * m4/raise.m4: New file.
12529         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12530         HAVE_RAISE, REPLACE_RAISE.
12531         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12532         REPLACE_RAISE.
12533         * modules/raise (Status, Notice): Remove fields.
12534         (Files): Add m4/raise.m4.
12535         (Depends-on): Add signal, msvc-inval.
12536         (configure.ac): Use the common idioms.
12537         (Maintainer): Add me.
12538         * tests/test-signal-c++.cc: Check the signature of raise.
12539         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12540
12541 2011-09-23  Bruno Haible  <bruno@clisp.org>
12542
12543         pipe2: Fix compilation on pre-C99 compilers.
12544         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12545
12546 2011-09-23  Bruno Haible  <bruno@clisp.org>
12547
12548         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12549         * lib/msvc-nothrow.h: New file.
12550         * lib/msvc-nothrow.c: New file.
12551         * m4/msvc-nothrow.m4: New file.
12552         * modules/msvc-nothrow: New file.
12553         * lib/dup2.c: Include msvc-nothrow.h.
12554         (rpl_dup2): No need to protect _get_osfhandle call here.
12555         * lib/accept4.c: Include msvc-nothrow.h.
12556         * lib/error.c: Likewise.
12557         * lib/fcntl.c: Likewise.
12558         * lib/lseek.c: Likewise.
12559         * lib/nonblocking.c: Likewise.
12560         * lib/poll.c: Likewise.
12561         * lib/read.c: Likewise.
12562         * lib/select.c: Likewise.
12563         * lib/sockets.h: Likewise.
12564         * lib/sockets.c: Likewise.
12565         * lib/stdio-read.c: Likewise.
12566         * lib/stdio-write.c: Likewise.
12567         * lib/write.c: Likewise.
12568         * lib/w32sock.h: Likewise.
12569         * lib/w32spawn.h: Likewise.
12570         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12571         * lib/fsync.c: Likewise.
12572         * lib/isapipe.c: Likewise.
12573         * modules/dup2 (Depends-on): Add msvc-nothrow.
12574         * modules/accept4 (Depends-on): Likewise.
12575         * modules/error (Depends-on): Likewise.
12576         * modules/fcntl (Depends-on): Likewise.
12577         * modules/lseek (Depends-on): Likewise.
12578         * modules/nonblocking (Depends-on): Likewise.
12579         * modules/poll (Depends-on): Likewise.
12580         * modules/read (Depends-on): Likewise.
12581         * modules/select (Depends-on): Likewise.
12582         * modules/sockets (Depends-on): Likewise.
12583         * modules/sigpipe (Depends-on): Likewise.
12584         * modules/write (Depends-on): Likewise.
12585         * modules/accept (Depends-on): Likewise.
12586         * modules/bind (Depends-on): Likewise.
12587         * modules/connect (Depends-on): Likewise.
12588         * modules/gethostname (Depends-on): Likewise.
12589         * modules/getpeername (Depends-on): Likewise.
12590         * modules/getsockname (Depends-on): Likewise.
12591         * modules/getsockopt (Depends-on): Likewise.
12592         * modules/ioctl (Depends-on): Likewise.
12593         * modules/listen (Depends-on): Likewise.
12594         * modules/recv (Depends-on): Likewise.
12595         * modules/recvfrom (Depends-on): Likewise.
12596         * modules/send (Depends-on): Likewise.
12597         * modules/sendto (Depends-on): Likewise.
12598         * modules/setsockopt (Depends-on): Likewise.
12599         * modules/shutdown (Depends-on): Likewise.
12600         * modules/socket (Depends-on): Likewise.
12601         * modules/execute (Depends-on): Likewise.
12602         * modules/spawn-pipe (Depends-on): Likewise.
12603         * modules/flock (Depends-on): Likewise.
12604         * modules/fsync (Depends-on): Likewise.
12605         * modules/isapipe (Depends-on): Likewise.
12606         * tests/test-cloexec.c: Include msvc-nothrow.h.
12607         * tests/test-dup-safer.c: Likewise.
12608         * tests/test-dup2.c: Likewise.
12609         * tests/test-dup3.c: Likewise.
12610         * tests/test-fcntl.c: Likewise.
12611         * tests/test-pipe.c: Likewise.
12612         * tests/test-pipe2.c: Likewise.
12613         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12614         * modules/unistd-safer-tests (Depends-on): Likewise.
12615         * modules/dup2-tests (Depends-on): Likewise.
12616         * modules/dup3-tests (Depends-on): Likewise.
12617         * modules/fcntl-tests (Depends-on): Likewise.
12618         * modules/pipe-posix-tests (Depends-on): Likewise.
12619         * modules/pipe2-tests (Depends-on): Likewise.
12620
12621 2011-09-23  Bruno Haible  <bruno@clisp.org>
12622
12623         dup2: Make code more maintainable.
12624         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12625         (rpl_dup2): Use it.
12626         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12627         * modules/dup2 (configure.ac): Invoke it.
12628         Reported by Paul Eggert.
12629
12630 2011-09-23  Bruno Haible  <bruno@clisp.org>
12631
12632         msvc-inval: Fix compilation error.
12633         * lib/msvc-inval.h: Include <excpt.h>.
12634
12635 2011-09-23  Bruno Haible  <bruno@clisp.org>
12636
12637         mkdir: Tweak for MSVC 9.
12638         * lib/sys_stat.in.h: Update comments.
12639         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12640
12641         Tests for module 'chdir'.
12642         * modules/chdir-tests: New file.
12643         * tests/test-chdir.c: New file.
12644
12645         New module 'chdir'.
12646         * modules/chdir: New file.
12647         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12648         (chdir): New declaration.
12649         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12650         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12651         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12652         * tests/test-unistd-c++.cc: Check signature of chdir.
12653         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12654         * modules/chdir-long (Depends-on): Add chdir.
12655         * modules/fchdir (Depends-on): Likewise.
12656         * modules/rename (Depends-on): Likewise.
12657         * modules/savewd (Depends-on): Likewise.
12658
12659         rmdir: Support for mingw, MSVC 9.
12660         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12661         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12662
12663         getcwd: Tweak for MSVC 9.
12664         * lib/unistd.in.h: Update comments.
12665         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12666
12667 2011-09-22  Bruno Haible  <bruno@clisp.org>
12668
12669         strerror_r-posix: Avoid a link error on MSVC.
12670         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12671         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12672
12673 2011-09-22  Bruno Haible  <bruno@clisp.org>
12674
12675         select: Avoid link errors on MSVC.
12676         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12677         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12678         * modules/pselect (Link): Likewise.
12679         * NEWS: Mention the change.
12680         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12681         test-select-stdin against $(LIB_SELECT).
12682         * modules/pselect-tests (Makefile.am): Link test-pselect against
12683         $(LIB_SELECT).
12684
12685 2011-09-22  Bruno Haible  <bruno@clisp.org>
12686
12687         select: Avoid compilation error on MSVC.
12688         * lib/select.c: Don't include <stdbool.h>.
12689
12690 2011-09-21  Bruno Haible  <bruno@clisp.org>
12691
12692         Consolidate all uses of PATH_MAX in *.m4 files.
12693         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12694         macros.
12695         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12696         and gl_PATHMAX_SNIPPET.
12697         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12698         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12699         * modules/chdir-long (Files): Add m4/pathmax.m4.
12700         * modules/getcwd (Files): Likewise.
12701
12702 2011-09-21  Bruno Haible  <bruno@clisp.org>
12703
12704         ftruncate: Un-deprecate, concentrate on Win32 support.
12705         * modules/ftruncate (Status, Notice): Remove sections.
12706         (Depends-on): Add largefile.
12707         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12708         non-mingw platforms.
12709         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12710         include <io.h>.
12711         * modules/perror-tests (Depends-on): Add ftruncate.
12712         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12713         'ftruncate' module.
12714
12715 2011-09-21  Bruno Haible  <bruno@clisp.org>
12716
12717         Add dependencies to new dirent related modules.
12718         * modules/opendir (Depends-on): Add closedir.
12719         * modules/getcwd (Depends-on): Add opendir, closedir.
12720         * modules/dirent-safer-tests (Depends-on): Likewise.
12721         * modules/fdopendir-tests (Depends-on): Likewise.
12722         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12723         * modules/renameat-tests (Depends-on): Likewise.
12724
12725 2011-09-21  Bruno Haible  <bruno@clisp.org>
12726
12727         opendir: Avoid compilation error on mingw.
12728         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12729         * modules/opendir (Depends-on): Add unistd.
12730
12731 2011-09-21  Bruno Haible  <bruno@clisp.org>
12732
12733         ftruncate tests: Avoid a test failure on mingw.
12734         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12735
12736 2011-09-21  Bruno Haible  <bruno@clisp.org>
12737
12738         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12739         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12740         native Windows.
12741
12742 2011-09-21  Bruno Haible  <bruno@clisp.org>
12743
12744         New module 'fdopen'.
12745         * lib/stdio.in.h (fdopen): New declaration.
12746         * lib/fdopen.c: New file.
12747         * m4/fdopen.m4: New file.
12748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12749         REPLACE_FDOPEN.
12750         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12751         REPLACE_FDOPEN.
12752         * modules/fdopen: New file.
12753         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12754         * tests/test-stdio-c++.cc: Check signature of fdopen.
12755         * doc/posix-functions/fdopen.texi: Mention the new module.
12756
12757 2011-09-21  Bruno Haible  <bruno@clisp.org>
12758
12759         unlockpt tests: Avoid test failure on NetBSD 5.1.
12760         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12761         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12762
12763 2011-09-21  Bruno Haible  <bruno@clisp.org>
12764
12765         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12766         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12767         * tests/test-getlogin_r.c (main): Likewise.
12768
12769 2011-09-20  Bruno Haible  <bruno@clisp.org>
12770
12771         time tests: Don't require pid_t.
12772         * doc/posix-headers/time.texi: Revert last change.
12773         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12774         * tests/test-time.c: Comment out the check for pid_t.
12775
12776 2011-09-20  Bruno Haible  <bruno@clisp.org>
12777
12778         fsync tests: Avoid a test failure on mingw.
12779         * tests/test-fsync.c (main): Allow a failure with EIO.
12780
12781 2011-09-20  Bruno Haible  <bruno@clisp.org>
12782
12783         euidaccess: Update comments.
12784         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12785
12786 2011-09-20  Bruno Haible  <bruno@clisp.org>
12787
12788         Ensure EBADF returns for socket functions on mingw.
12789         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12790         descriptor is invalid.
12791         * lib/bind.c (rpl_bind): Likewise.
12792         * lib/connect.c (rpl_connect): Likewise.
12793         * lib/getpeername.c (rpl_getpeername): Likewise.
12794         * lib/getsockname.c (rpl_getsockname): Likewise.
12795         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12796         * lib/listen.c (rpl_listen): Likewise.
12797         * lib/recv.c (rpl_recv): Likewise.
12798         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12799         * lib/send.c (rpl_send): Likewise.
12800         * lib/sendto.c (rpl_sendto): Likewise.
12801         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12802         * lib/shutdown.c (rpl_shutdown): Likewise.
12803
12804 2011-09-20  Bruno Haible  <bruno@clisp.org>
12805
12806         select tests: EBADF tests.
12807         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12808         test_bad_fd): New functions.
12809         (test_function): Invoke also test_bad_fd.
12810
12811 2011-09-20  Bruno Haible  <bruno@clisp.org>
12812
12813         Tests for module 'posix_spawn_file_actions_addopen.
12814         * modules/posix_spawn_file_actions_addopen-tests: New file.
12815         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12816
12817         Tests for module 'posix_spawn_file_actions_adddup2'.
12818         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12819         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12820
12821         Tests for module 'posix_spawn_file_actions_addclose'.
12822         * modules/posix_spawn_file_actions_addclose-tests: New file.
12823         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12824
12825 2011-09-20  Bruno Haible  <bruno@clisp.org>
12826
12827         Tests for module 'unlockpt'.
12828         * modules/unlockpt-tests: New file.
12829         * tests/test-unlockpt.c: New file.
12830         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12831
12832         Tests for module 'grantpt'.
12833         * modules/grantpt-tests: New file.
12834         * tests/test-grantpt.c: New file.
12835         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12836
12837 2011-09-20  Bruno Haible  <bruno@clisp.org>
12838
12839         freopen tests: EBADF tests.
12840         * tests/test-freopen.c: Include errno.h, unistd.h.
12841         (main): Add tests for EBADF, commented out for the moment.
12842
12843         fclose tests: EBADF tests.
12844         * tests/test-fclose.c (main): Add tests for EBADF.
12845
12846         fflush tests: EBADF tests.
12847         * tests/test-fflush.c: Include errno.h, macros.h.
12848         (main): Add tests for EBADF.
12849
12850         ftello tests: EBADF tests.
12851         * tests/test-ftello4.sh: New file.
12852         * tests/test-ftello4.c: New file.
12853         * modules/ftello-tests (Files): Add them.
12854         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12855
12856         fseeko tests: EBADF tests.
12857         * tests/test-fseeko4.sh: New file.
12858         * tests/test-fseeko4.c: New file.
12859         * modules/fseeko-tests (Files): Add them.
12860         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12861
12862         Tests for function fputc().
12863         * modules/fputc-tests: New file.
12864         * tests/test-fputc.c: New file.
12865         * modules/stdio-tests (Depends-on): Add fputc-tests.
12866
12867         Tests for function fgetc().
12868         * modules/fgetc-tests: New file.
12869         * tests/test-fgetc.c: New file.
12870         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12871
12872         Tests for function fdopen().
12873         * modules/fdopen-tests: New file.
12874         * tests/test-fdopen.c: New file.
12875         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12876
12877         Tests for module 'vdprintf'.
12878         * modules/vdprintf-tests: New file.
12879         * tests/test-vdprintf.c: New file.
12880
12881         Tests for module 'dprintf'.
12882         * modules/dprintf-tests: New file.
12883         * tests/test-dprintf.c: New file.
12884
12885 2011-09-20  Bruno Haible  <bruno@clisp.org>
12886
12887         Tests for module 'ioctl'.
12888         * modules/ioctl-tests: New file.
12889         * tests/test-ioctl.c: New file.
12890
12891 2011-09-20  Bruno Haible  <bruno@clisp.org>
12892
12893         fcntl tests: EBADF tests.
12894         * tests/test-fcntl.c (main): Add more tests for EBADF.
12895
12896 2011-09-20  Bruno Haible  <bruno@clisp.org>
12897
12898         utimensat tests: EBADF tests.
12899         * tests/test-utimensat.c (main): Add tests for EBADF.
12900
12901         renameat tests: EBADF tests.
12902         * tests/test-renameat.c (main): Add tests for EBADF.
12903
12904         mkfifoat tests: EBADF tests.
12905         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12906
12907         readlinkat tests: EBADF tests.
12908         * tests/test-readlinkat.c (main): Add tests for EBADF.
12909
12910         symlinkat tests: EBADF tests.
12911         * tests/test-symlinkat.c (main): Add tests for EBADF.
12912
12913         linkat tests: EBADF tests.
12914         * tests/test-linkat.c (main): Add tests for EBADF.
12915
12916         Tests for module 'faccessat'.
12917         * modules/faccessat-tests: New file.
12918         * tests/test-faccessat.c: New file.
12919
12920         fdopendir tests: EBADF tests.
12921         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12922
12923         openat tests: EBADF tests.
12924         * tests/test-fchownat.c (main): Add tests for EBADF.
12925         * tests/test-fstatat.c (main): Likewise.
12926         * tests/test-mkdirat.c (main): Likewise.
12927         * tests/test-openat.c (main): Likewise.
12928         * tests/test-unlinkat.c (main): Likewise.
12929         * tests/test-fchmodat.c: New file.
12930         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12931         (Makefile.am): Also run 'test-fchmodat'.
12932
12933 2011-09-20  Bruno Haible  <bruno@clisp.org>
12934
12935         utimens, futimens, fdutimensat tests: EBADF tests.
12936         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12937
12938         Tests for function fstat().
12939         * modules/fstat-tests: New file.
12940         * tests/test-fstat.c: New file.
12941         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12942
12943 2011-09-20  Bruno Haible  <bruno@clisp.org>
12944
12945         test-ttyname_r tests: EBADF tests.
12946         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12947
12948         Tests for module 'isatty'.
12949         * modules/isatty-tests: New file.
12950         * tests/test-isatty.c: New file.
12951
12952         Tests for module 'write'.
12953         * modules/write-tests: New file.
12954         * tests/test-write.c: New file.
12955
12956         Tests for module 'read'.
12957         * modules/read-tests: New file.
12958         * tests/test-read.c: New file.
12959
12960         pwrite tests: EBADF tests.
12961         * tests/test-pwrite.c (main): Add tests for EBADF.
12962
12963         pread tests: EBADF tests.
12964         * tests/test-pread.c (main): Add tests for EBADF.
12965
12966         lseek tests: EBADF tests.
12967         * tests/test-lseek.c (main): Add more tests for EBADF.
12968
12969         Tests for module 'ftruncate'.
12970         * modules/ftruncate-tests: New file.
12971         * tests/test-ftruncate.sh: New file.
12972         * tests/test-ftruncate.c: New file.
12973
12974         fsync tests: EBADF tests.
12975         * tests/test-fsync.c (main): Add more tests for EBADF.
12976
12977         fdatasync tests: EBADF tests.
12978         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12979
12980         Tests for module 'fchown'.
12981         * modules/fchown-tests: New file.
12982         * tests/test-fchown.c: New file.
12983
12984         Tests for module 'fchmod'.
12985         * modules/fchmod-tests: New file.
12986         * tests/test-fchmod.c: New file.
12987
12988         fchdir tests: EBADF tests.
12989         * tests/test-fchdir.c (main): Add more tests for EBADF.
12990
12991         dup2 tests: EBADF tests.
12992         * tests/test-dup2.c (main): Add more tests for EBADF.
12993
12994         Tests for module 'dup'.
12995         * modules/dup-tests: New file.
12996         * tests/test-dup.c: New file.
12997
12998         Tests for module 'close'.
12999         * modules/close-tests: New file.
13000         * tests/test-close.c: New file.
13001
13002 2011-09-20  Bruno Haible  <bruno@clisp.org>
13003
13004         Tests for module 'shutdown'.
13005         * modules/shutdown-tests: New file.
13006         * tests/test-shutdown.c: New file.
13007
13008         Tests for module 'setsockopt'.
13009         * modules/setsockopt-tests: New file.
13010         * tests/test-setsockopt.c: New file.
13011
13012         Tests for module 'sendto'.
13013         * modules/sendto-tests: New file.
13014         * tests/test-sendto.c: New file.
13015
13016         Tests for module 'send'.
13017         * modules/send-tests: New file.
13018         * tests/test-send.c: New file.
13019
13020         Tests for module 'recvfrom'.
13021         * modules/recvfrom-tests: New file.
13022         * tests/test-recvfrom.c: New file.
13023
13024         Tests for module 'recv'.
13025         * modules/recv-tests: New file.
13026         * tests/test-recv.c: New file.
13027
13028         Tests for module 'listen'.
13029         * modules/listen-tests: New file.
13030         * tests/test-listen.c: New file.
13031
13032         Tests for module 'getsockopt'.
13033         * modules/getsockopt-tests: New file.
13034         * tests/test-getsockopt.c: New file.
13035
13036         Tests for module 'getsockname'.
13037         * modules/getsockname-tests: New file.
13038         * tests/test-getsockname.c: New file.
13039
13040         Tests for module 'getpeername'.
13041         * modules/getpeername-tests: New file.
13042         * tests/test-getpeername.c: New file.
13043
13044         Tests for module 'connect'.
13045         * modules/connect-tests: New file.
13046         * tests/test-connect.c: New file.
13047
13048         Tests for module 'bind'.
13049         * modules/bind-tests: New file.
13050         * tests/test-bind.c: New file.
13051
13052         accept4 tests: Fix for native Windows.
13053         * tests/test-accept4.c: Include sockets.h.
13054         (main): Invoke gl_sockets_startup.
13055         * modules/accept4-tests (Depends-on): Add sockets.
13056
13057         accept tests: Fix for native Windows.
13058         * tests/test-accept.c: Include sockets.h.
13059         (main): Invoke gl_sockets_startup.
13060         * modules/accept-tests (Depends-on): Add sockets.
13061
13062 2011-09-19  Bruno Haible  <bruno@clisp.org>
13063
13064         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13065         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13066         do...while(0).
13067         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13068         Suggested by Paul Eggert.
13069
13070 2011-09-19  Bruno Haible  <bruno@clisp.org>
13071
13072         sched: Ensure pid_t is defined.
13073         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13074         not define pid_t.
13075         * lib/sched.in.h: Include <sys/types.h>.
13076         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13078
13079 2011-09-19  Bruno Haible  <bruno@clisp.org>
13080
13081         msvc-inval: Ensure the entire expansion is a single statement.
13082         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13083         of braces.
13084
13085 2011-09-19  Jim Meyering  <meyering@redhat.com>
13086
13087         tests: use printf, not echo in init.sh's warn_ function
13088         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13089         misbehave when given strings containing a backslash or starting
13090         with e.g., -n.  James Youngman suggested setting IFS.
13091
13092 2011-09-19  Eric Blake  <eblake@redhat.com>
13093
13094         futimens: enhance test
13095         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13096         closed non-negative fd.
13097
13098         date: accept 'hence' as opposite of 'ago'
13099         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13100         * tests/test-parse-datetime.c (main): Enhance test.
13101         Suggested by Jesse Wilson.
13102
13103 2011-09-19  Jim Meyering  <meyering@redhat.com>
13104
13105         getcwd: don't fail in a deep directory on a system without openat
13106         Before this change, getcwd would fail when called from a directory
13107         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13108         the non-openat implementation used "..", "../..", "../../..", etc.
13109         to access ancestor directories.  With too many, that string would
13110         be longer than PATH_MAX.
13111         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13112         using gnulib's openat replacement.
13113         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13114         we're using the replacement function.
13115
13116 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13117
13118         maint.mk: avoid warnings from perl about missing files
13119         * top/maint.mk (def_sym_regex): Ignore files listed in
13120         $(gl_other_headers_) that do not exist, say because a project
13121         does not use a corresponding module.
13122
13123 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13124
13125         stat: use pathmax.h only if needed
13126         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13127         This is better for Emacs, which does not have a mingw port and
13128         therefore can avoid the pathmax module.
13129
13130         utimens: remove dependency on dup2
13131         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13132         to work around the Linux kernel bug.
13133         * modules/utimens (Depends-on): Remove dup2.
13134
13135 2011-09-18  Bruno Haible  <bruno@clisp.org>
13136
13137         inet_ntop, inet_pton: Look for it also in libresolv.
13138         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13139         libnsl, search for it in libresolv.
13140         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13141         Needed on Solaris 7.
13142
13143 2011-09-18  Bruno Haible  <bruno@clisp.org>
13144
13145         accept, accept4 tests: Avoid link error on Solaris.
13146         * modules/accept-tests (Makefile.am): Link test-accept against
13147         $(LIBSOCKET).
13148         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13149         $(LIBSOCKET).
13150
13151         accept4: Avoid link error on Solaris.
13152         * modules/accept4 (Link): New section.
13153
13154         socket functions: Avoid link errors on Solaris.
13155         * modules/accept (Depends-on): Add socketlib.
13156         (Link): New section.
13157         * modules/bind (Depends-on): Add socketlib.
13158         (Link): New section.
13159         * modules/connect (Depends-on): Add socketlib.
13160         (Link): New section.
13161         * modules/getpeername (Depends-on): Add socketlib.
13162         (Link): New section.
13163         * modules/getsockname (Depends-on): Add socketlib.
13164         (Link): New section.
13165         * modules/getsockopt (Depends-on): Add socketlib.
13166         (Link): New section.
13167         * modules/listen (Depends-on): Add socketlib.
13168         (Link): New section.
13169         * modules/recv (Depends-on): Add socketlib.
13170         (Link): New section.
13171         * modules/recvfrom (Depends-on): Add socketlib.
13172         (Link): New section.
13173         * modules/send (Depends-on): Add socketlib.
13174         (Link): New section.
13175         * modules/sendto (Depends-on): Add socketlib.
13176         (Link): New section.
13177         * modules/setsockopt (Depends-on): Add socketlib.
13178         (Link): New section.
13179         * modules/shutdown (Depends-on): Add socketlib.
13180         (Link): New section.
13181         * modules/socket (Depends-on): Add socketlib.
13182         (Link): New section.
13183
13184 2011-09-18  Bruno Haible  <bruno@clisp.org>
13185
13186         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13187         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13188         than 5 seconds.
13189         * modules/ptsname-tests (configure.ac): Test for alarm.
13190
13191 2011-09-18  Bruno Haible  <bruno@clisp.org>
13192
13193         posix_spawn_file_actions_add*: Fix module dependencies.
13194         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13195         posix_spawn_file_actions_init.
13196         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13197         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13198
13199 2011-09-18  Bruno Haible  <bruno@clisp.org>
13200
13201         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13202         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13203         * tests/test-renameat.c (main): Likewise.
13204
13205 2011-09-18  Bruno Haible  <bruno@clisp.org>
13206
13207         Tests for module 'accept4'.
13208         * modules/accept4-tests: New file.
13209         * tests/test-accept4.c: New file.
13210
13211 2011-09-18  Bruno Haible  <bruno@clisp.org>
13212
13213         Tests for module 'accept'.
13214         * modules/accept-tests: New file.
13215         * tests/test-accept.c: New file.
13216
13217 2011-09-18  Bruno Haible  <bruno@clisp.org>
13218
13219         dup2: Support for MSVC.
13220         * lib/dup2.c: Include msvc-inval.h.
13221         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13222         _get_osfhandle calls.
13223         * modules/dup2 (Depends-on): Add msvc-inval.
13224         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13225
13226         New module 'msvc-inval'.
13227         * lib/msvc-inval.h: New file.
13228         * lib/msvc-inval.c: New file.
13229         * m4/msvc-inval.m4: New file.
13230         * modules/msvc-inval: New file.
13231
13232 2011-09-17  Bruno Haible  <bruno@clisp.org>
13233
13234         Tests for module 'pclose'.
13235         * modules/pclose-tests: New file.
13236
13237         New module 'pclose'.
13238         * lib/stdio.in.h (pclose): New declaration.
13239         * lib/pclose.c: New file.
13240         * m4/pclose.m4: New file.
13241         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13242         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13243         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13244         * modules/pclose: New file.
13245         * modules/popen-tests (Depends-on): Add pclose.
13246         * modules/popen-safer-tests (Depends-on): Likewise.
13247         * doc/posix-functions/pclose.texi: Mention the new module.
13248
13249 2011-09-17  Bruno Haible  <bruno@clisp.org>
13250
13251         popen: Support for MSVC.
13252         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13253         * lib/popen.c (popen): Provide alternate definition for native Windows.
13254         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13256         * modules/popen (Depends-on, configure.ac): Update condition.
13257         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13258         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13259         fixed.
13260
13261 2011-09-17  Bruno Haible  <bruno@clisp.org>
13262
13263         isnanl, isnand, isnanf: Work around MSVC bug.
13264         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13265
13266 2011-09-17  Bruno Haible  <bruno@clisp.org>
13267
13268         sys_socket tests: Fix recent mistake.
13269         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13270
13271 2011-09-17  Bruno Haible  <bruno@clisp.org>
13272
13273         putenv: Support for MSVC.
13274         * modules/putenv (Depends-on): Add environ.
13275         * lib/putenv.c (environ): Disable declaration.
13276         * lib/unistd.in.h: Update comment.
13277
13278 2011-09-17  Bruno Haible  <bruno@clisp.org>
13279
13280         math: Avoid macro redefinition warnings on MSVC.
13281         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13282         Undefine before redefining.
13283
13284 2011-09-17  Bruno Haible  <bruno@clisp.org>
13285
13286         doc: Mention functions which are declared as macros.
13287         * doc/posix-functions/*[fl].texi: Mention that some functions are
13288         defined as macros with arguments only.
13289
13290 2011-09-17  Bruno Haible  <bruno@clisp.org>
13291
13292         Add dependencies to new dirent related modules.
13293         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13294         * modules/fts (Depends-on): Likewise.
13295         * modules/glob (Depends-on): Likewise.
13296         * modules/savedir (Depends-on): Likewise.
13297         * modules/scandir (Depends-on): Likewise.
13298         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13299         * modules/fdopendir (Depends-on): Add opendir.
13300
13301 2011-09-17  Bruno Haible  <bruno@clisp.org>
13302
13303         inet_pton: Support for MSVC on Windows Vista or newer.
13304         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13305         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13306         HAVE_DECL_INET_PTON is defined.
13307         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13308         On platforms with <winsock2.h>, test whether inet_pton is declared in
13309         <ws2tcpip.h>. If so, arrange to replace it.
13310         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13311         REPLACE_INET_PTON.
13312         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13313         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13314         (Depends-on, configure.ac): Update condition.
13315         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13316
13317 2011-09-17  Bruno Haible  <bruno@clisp.org>
13318
13319         inet_ntop: Support for MSVC on Windows Vista or newer.
13320         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13321         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13322         HAVE_DECL_INET_NTOP is defined.
13323         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13324         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13325         <ws2tcpip.h>. If so, arrange to replace it.
13326         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13327         REPLACE_INET_NTOP.
13328         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13329         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13330         (Depends-on, configure.ac): Update condition.
13331         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13332
13333 2011-09-16  Eric Blake  <eblake@redhat.com>
13334
13335         test-fsync: yet another enhancement
13336         * tests/test-fsync.c (main): Also test behavior on read-only text
13337         file.
13338
13339 2011-09-16  Bruno Haible  <bruno@clisp.org>
13340
13341         Enhance fsync, fdatasync tests.
13342         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13343         * tests/test-fdatasync.c (main): Likewise.
13344
13345 2011-09-16  Bruno Haible  <bruno@clisp.org>
13346
13347         Support for MSVC compiler: Ensure mode_t gets defined.
13348         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13349         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13351         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13352         * tests/test-fcntl-h.c: Check that mode_t is defined.
13353         * tests/test-sys_stat.c: Likewise.
13354         * tests/test-sys_types.c: Likewise.
13355         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13356         * doc/posix-headers/sys_stat.texi: Likewise.
13357         * doc/posix-headers/sys_types.texi: Likewise.
13358
13359 2011-09-16  Bruno Haible  <bruno@clisp.org>
13360
13361         sys_stat: Support for MSVC.
13362         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13363         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13364         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13365         MSVC.
13366
13367 2011-09-16  Bruno Haible  <bruno@clisp.org>
13368
13369         Support for MSVC compiler: Ensure off_t gets defined.
13370         * lib/unistd.in.h: Include <sys/types.h>.
13371         * tests/test-fcntl-h.c: Check that off_t is defined.
13372         * tests/test-sys_stat.c: Likewise.
13373         * tests/test-sys_types.c: Likewise.
13374
13375 2011-09-16  Eric Blake  <eblake@redhat.com>
13376
13377         fdatasync: port to Solaris
13378         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13379         * modules/fdatasync (Link): Document it.
13380         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13381
13382         fdatasync: port to MacOS X 10.7
13383         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13384         declared.
13385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13386         * modules/unistd (Makefile.am): Substitute it.
13387         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13388         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13389
13390         fdatasync: minor improvements
13391         * modules/fdatasync (Depends-on): Add condition for fsync.
13392         * lib/fdatasync.c (fdatasync): Add comment.
13393         * tests/test-unistd-c++.cc: Test fdatasync.
13394
13395         unistd: update refs to newer POSIX
13396         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13397         Suggested by Bruno Haible.
13398
13399         fdatasync: new module
13400         * modules/fsync (Description): Document difference to fdatasync.
13401         * modules/fdatasync: New module.
13402         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13403         * lib/fdatasync.c (fdatasync): Likewise.
13404         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13405         defaults.
13406         * modules/unistd (Makefile.am): Set witnesses.
13407         * lib/unistd.in.h (fdatasync): Declare.
13408         * MODULES.html.sh: Document it.
13409         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13410         * modules/fdatasync-tests: New test.
13411         * tests/test-fdatasync.c: Likewise.
13412
13413 2011-09-16  Eric Blake  <eblake@redhat.com>
13414
13415         test-fsync: enhance tests
13416         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13417         * tests/test-fsync.c (main): Enhance test.
13418
13419 2011-09-15  Bruno Haible  <bruno@clisp.org>
13420
13421         Support for MSVC compiler: Ensure ssize_t gets defined.
13422         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13423         * doc/posix-headers/stdio.texi: Likewise.
13424         * modules/stdio (Depends-on): Add ssize_t.
13425         * modules/sys_socket (Depends-on): Likewise.
13426         * modules/sys_types (Depends-on): Likewise.
13427         * modules/sys_uio (Depends-on): Likewise.
13428         * modules/unistd (Depends-on): Likewise.
13429         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13430         * tests/test-sys_types.c: Check that ssize_t is defined.
13431
13432 2011-09-14  Bruno Haible  <bruno@clisp.org>
13433
13434         Avoid using #, the m4 comment starter character, near brackets.
13435         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13436         delimiter character in sed expressions.
13437         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13438         Suggested by Eric Blake.
13439
13440         Properly quote AC_CHECK_DECLS' 4th argument.
13441         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13442         argument.
13443         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13444         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13445         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13446         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13447         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13448         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13449         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13450         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13451         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13452         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13453         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13454         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13455         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13456         * m4/isinf.m4 (gl_ISINF): Likewise.
13457         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13458         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13459         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13460         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13461         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13462         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13463         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13464         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13465         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13466         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13467         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13468         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13470         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13472         Reported by Eric Blake.
13473
13474         Properly quote AC_CHECK_DECL's 4th argument.
13475         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13476         argument.
13477         * m4/argp.m4 (gl_ARGP): Likewise.
13478         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13479         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13480         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13481         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13482         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13483         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13484         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13485         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13486         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13487         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13488         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13489         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13490         Reported by Eric Blake.
13491
13492 2011-09-14  Eric Blake  <eblake@redhat.com>
13493
13494         opendir: avoid compile warning
13495         * lib/opendir.c (includes): Always include errno.h.
13496         Reported by Tatsuro MATSUOKA.
13497
13498 2011-09-14  Jim Meyering  <meyering@redhat.com>
13499
13500         maint.mk: sc_tight_scope: propagate failure from sub-make
13501         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13502         Reported by Martin von Gagern.
13503
13504 2011-09-13  Bruno Haible  <bruno@clisp.org>
13505
13506         tempname: Support for MSVC.
13507         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13508         MSVC.
13509         * modules/tempname (Depends-on): Add fcntl-h.
13510
13511 2011-09-13  Bruno Haible  <bruno@clisp.org>
13512
13513         sys_time: Support for MSVC.
13514         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13515         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13516         include <winsock2.h>.
13517         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13518         function declarations that collide with POSIX.
13519         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13520         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13521
13522 2011-09-13  Bruno Haible  <bruno@clisp.org>
13523
13524         stat: Support for MSVC.
13525         * lib/stat.c: Include pathmax.h.
13526         * modules/stat (Depends-on): Add pathmax.
13527
13528         pathmax: Support for native Windows.
13529         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13530
13531 2011-09-12  Bruno Haible  <bruno@clisp.org>
13532
13533         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13534         * lib/dirent.in.h (struct dirent): New type.
13535         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13536         DT_WHT): New macros.
13537         (DIR): New type.
13538         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13539         (readdir, rewinddir): New declarations.
13540         * lib/dirent-private.h: New file.
13541         * lib/opendir.c: New file.
13542         * lib/readdir.c: New file.
13543         * lib/rewinddir.c: New file.
13544         * lib/closedir.c: New file.
13545         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13546         * m4/opendir.m4: New file.
13547         * m4/readdir.m4: New file.
13548         * m4/rewinddir.m4: New file.
13549         * m4/closedir.m4: New file.
13550         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13551         REPLACE_CLOSEDIR here.
13552         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13553         readdir, rewinddir are declared.
13554         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13555         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13556         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13557         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13558         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13559         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13560         * modules/opendir: New file.
13561         * modules/readdir: New file.
13562         * modules/rewinddir: New file.
13563         * modules/closedir: New file.
13564         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13565         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13566         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13567         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13568         * NEWS: Mention the 'fchdir' change.
13569
13570 2011-09-11  Bruno Haible  <bruno@clisp.org>
13571
13572         asm-underscore.m4: Support for MSVC.
13573         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13574         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13575
13576 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13577
13578         Doc about crypt functions.
13579         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13580         needing for _GNU_SOURCE to get crypt.
13581         * doc/posix-functions/encrypt.texi: Likewise.
13582         * doc/posix-functions/setkey.texi: Likewise.
13583
13584 2011-09-11  Bruno Haible  <bruno@clisp.org>
13585
13586         doc: Update regarding MSVC 9.
13587         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13588         tested".
13589         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13590         * doc/posix-headers/*.texi: Likewise.
13591         * doc/pastposix-functions/*.texi: Likewise.
13592         * doc/glibc-functions/*.texi: Likewise.
13593         * doc/glibc-headers/*.texi: Likewise.
13594
13595 2011-09-11  Bruno Haible  <bruno@clisp.org>
13596
13597         unistd et al.: Don't assume <unistd.h> exists.
13598         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13599         does not exist.
13600         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13601         exist. But include <stdlib.h>.
13602         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13603         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13604         symlink() does not exist.
13605         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13606         include <io.h> instead.
13607         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13608         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13609         include <direct.h> instead.
13610         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13611         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13612         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13613         <io.h> instead.
13614         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13615         correctly if the system does not have hard links.
13616         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13617         <direct.h> instead.
13618         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13619         it when looking for function declarations.
13620         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13621         <direct.h> and <io.h> instead.
13622         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13623
13624 2011-09-11  Bruno Haible  <bruno@clisp.org>
13625
13626         strcase: Support for MSVC.
13627         * modules/strcase (Status, Notice): Remove obsoletion mark.
13628         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13629         * doc/posix-functions/strncasecmp.texi: Likewise.
13630
13631         strings: Don't assume <strings.h> exists.
13632         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13633         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13634         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13635         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13636
13637 2011-09-11  Bruno Haible  <bruno@clisp.org>
13638
13639         dirent: Don't assume <dirent.h> exists.
13640         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13641         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13642         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13643         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13644
13645 2011-09-11  Bruno Haible  <bruno@clisp.org>
13646
13647         Fix wint_t on MSVC.
13648         * lib/wchar.in.h (wint_t): On MSVC, override it.
13649         * lib/wctype.in.h (wint_t): Likewise.
13650         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13651         MSVC.
13652         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13653         * doc/posix-headers/wctype.texi: Likewise.
13654
13655 2011-09-11  Bruno Haible  <bruno@clisp.org>
13656
13657         sys_types: Fix typo.
13658         * lib/sys_types.in.h: Fix typo in comment.
13659         Reported by Paul Eggert.
13660
13661         Support for MSVC compiler: Ensure size_t gets defined.
13662         * modules/strings (Depends-on): Add 'sys_types'.
13663         * modules/sys_uio (Depends-on): Likewise.
13664         * lib/sys_uio.in.h: Update comment.
13665
13666         C++ tests for module 'sys_types'.
13667         * modules/sys_types-c++-tests: New file.
13668         * tests/test-sys_types-c++.cc: New file.
13669
13670         Tests for module 'sys_types'.
13671         * modules/sys_types-tests: New file.
13672         * tests/test-sys_types.c: New file.
13673
13674         New module 'sys_types'.
13675         * lib/sys_types.in.h: New file.
13676         * m4/sys_types_h.m4: New file.
13677         * modules/sys_types: New file.
13678         * doc/posix-headers/sys_types.texi: Mention the new module and the
13679         size_t problem on MSVC 9.
13680
13681 2011-09-11  Bruno Haible  <bruno@clisp.org>
13682
13683         Support for MSVC compiler: Avoid division by a literal 0.
13684         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13685         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13686         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13687         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13688         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13689         * tests/infinity.h: New file.
13690         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13691         on MSVC.
13692         * tests/test-ceilf1.c: Include infinity.h.
13693         (main): Use Infinityf.
13694         * tests/test-ceil1.c: Include infinity.h.
13695         (main): Use Infinityd.
13696         * tests/test-ceill.c: Include infinity.h.
13697         (main): Use Infinityl.
13698         * tests/test-dprintf-posix.c: Include infinity.h.
13699         (test_function): Use Infinityd.
13700         * tests/test-floorf1.c: Include infinity.h.
13701         (main): Use Infinityf.
13702         * tests/test-floor1.c: Include infinity.h.
13703         (main): Use Infinityd.
13704         * tests/test-floorl.c: Include infinity.h.
13705         (main): Use Infinityl.
13706         * tests/test-fprintf-posix.c: Include infinity.h.
13707         (test_function): Use Infinityd.
13708         * tests/test-frexp.c: Include infinity.h.
13709         (main): Use Infinityd.
13710         * tests/test-frexpl.c: Include infinity.h.
13711         (main): Use Infinityl.
13712         * tests/test-isfinite.c: Include infinity.h.
13713         (test_isfinitef): Use Infinityf.
13714         (test_isfinited): Use Infinityd.
13715         (test_isfinitel): Use Infinityl.
13716         * tests/test-isinf.c: Include infinity.h.
13717         (test_isinff): Use Infinityf.
13718         (test_isinfd): Use Infinityd.
13719         (test_isinfl): Use Infinityl.
13720         * tests/test-isnan.c: Include infinity.h.
13721         (test_float): Use Infinityf.
13722         (test_double): Use Infinityd.
13723         (test_long_double): Use Infinityl.
13724         * tests/test-isnanf.h: Include infinity.h.
13725         (main): Use Infinityf.
13726         * tests/test-isnand.h: Include infinity.h.
13727         (main): Use Infinityd.
13728         * tests/test-isnanl.h: Include infinity.h.
13729         (main): Use Infinityl.
13730         * tests/test-ldexpl.c: Include infinity.h.
13731         (main): Use Infinityl.
13732         * tests/test-printf-posix.h: Include infinity.h.
13733         (test_function): Use Infinityd.
13734         * tests/test-roundf1.c: Include infinity.h.
13735         (main): Use Infinityf.
13736         * tests/test-round1.c: Include infinity.h.
13737         (main): Use Infinityd.
13738         * tests/test-roundl.c: Include infinity.h.
13739         (main): Use Infinityl.
13740         * tests/test-signbit.c: Include infinity.h.
13741         (test_signbitf): Use Infinityf.
13742         (test_signbitd): Use Infinityd.
13743         (test_signbitl): Use Infinityl.
13744         * tests/test-snprintf-posix.h: Include infinity.h.
13745         (test_function): Use Infinityd, Infinityl.
13746         * tests/test-sprintf-posix.h: Include infinity.h.
13747         (test_function): Use Infinityd, Infinityl.
13748         * tests/test-truncf1.c: Include infinity.h.
13749         (main): Use Infinityf.
13750         * tests/test-trunc1.c: Include infinity.h.
13751         (main): Use Infinityd.
13752         * tests/test-truncl.c: Include infinity.h.
13753         (main): Use Infinityl.
13754         * tests/test-vasnprintf-posix.c: Include infinity.h.
13755         (test_function): Use Infinityd, Infinityl.
13756         * tests/test-vasprintf-posix.c: Include infinity.h.
13757         (test_function): Use Infinityd, Infinityl.
13758         * modules/ceilf-tests (Files): Add tests/infinity.h.
13759         * modules/ceil-tests (Files): Likewise.
13760         * modules/ceill-tests (Files): Likewise.
13761         * modules/dprintf-posix-tests (Files): Likewise.
13762         * modules/floorf-tests (Files): Likewise.
13763         * modules/floor-tests (Files): Likewise.
13764         * modules/floorl-tests (Files): Likewise.
13765         * modules/fprintf-posix-tests (Files): Likewise.
13766         * modules/frexp-tests (Files): Likewise.
13767         * modules/frexp-nolibm-tests (Files): Likewise.
13768         * modules/frexpl-tests (Files): Likewise.
13769         * modules/frexpl-nolibm-tests (Files): Likewise.
13770         * modules/isfinite-tests (Files): Likewise.
13771         * modules/isinf-tests (Files): Likewise.
13772         * modules/isnan-tests (Files): Likewise.
13773         * modules/isnanf-tests (Files): Likewise.
13774         * modules/isnanf-nolibm-tests (Files): Likewise.
13775         * modules/isnand-tests (Files): Likewise.
13776         * modules/isnand-nolibm-tests (Files): Likewise.
13777         * modules/isnanl-tests (Files): Likewise.
13778         * modules/isnanl-nolibm-tests (Files): Likewise.
13779         * modules/ldexpl-tests (Files): Likewise.
13780         * modules/printf-posix-tests (Files): Likewise.
13781         * modules/roundf-tests (Files): Likewise.
13782         * modules/round-tests (Files): Likewise.
13783         * modules/roundl-tests (Files): Likewise.
13784         * modules/signbit-tests (Files): Likewise.
13785         * modules/snprintf-posix-tests (Files): Likewise.
13786         * modules/sprintf-posix-tests (Files): Likewise.
13787         * modules/truncf-tests (Files): Likewise.
13788         * modules/trunc-tests (Files): Likewise.
13789         * modules/truncl-tests (Files): Likewise.
13790         * modules/vasnprintf-posix-tests (Files): Likewise.
13791         * modules/vasprintf-posix-tests (Files): Likewise.
13792         * modules/vdprintf-posix-tests (Files): Likewise.
13793         * modules/vfprintf-posix-tests (Files): Likewise.
13794         * modules/vprintf-posix-tests (Files): Likewise.
13795         * modules/vsnprintf-posix-tests (Files): Likewise.
13796         * modules/vsprintf-posix-tests (Files): Likewise.
13797         * modules/xprintf-posix-tests (Files): Likewise.
13798
13799 2011-09-11  Bruno Haible  <bruno@clisp.org>
13800
13801         Ensure pid_t gets defined.
13802         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13803         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13804         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13805         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13806         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13807         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13808         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13809         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13810         * tests/test-fcntl-h.c: Check that pid_t is defined.
13811         * tests/test-sched.c: Likewise.
13812         * tests/test-termios.c: Likewise.
13813         * tests/test-time.c: Likewise.
13814         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13815         * doc/posix-headers/signal.texi: Likewise.
13816         * doc/posix-headers/sys_types.texi: Likewise.
13817         * doc/posix-headers/time.texi: Likewise.
13818
13819 2011-09-11  Bruno Haible  <bruno@clisp.org>
13820
13821         acl: Fix compilation on Solaris 10 (older version).
13822         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13823         of ACE_EVERYONE.
13824         * lib/set-mode-acl.c (qset_acl): Likewise.
13825         Reported by Christian Jullien <eligis@orange.fr>.
13826
13827 2011-09-10  Bruno Haible  <bruno@clisp.org>
13828
13829         iconv, unsetenv: Add support for MSVC compiler.
13830         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13831         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13832
13833 2011-09-10  Bruno Haible  <bruno@clisp.org>
13834
13835         *printf: Add support for MSVC compiler.
13836         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13837         handles the exception caused by the %n directive. When cross-compiling,
13838         guess no on native Windows.
13839         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13840         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13841         emulate it through vsnprintf.
13842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13843         * doc/posix-functions/dprintf.texi: Update documentation regarding
13844         MSVC 9.
13845         * doc/posix-functions/fprintf.texi: Likewise.
13846         * doc/posix-functions/printf.texi: Likewise.
13847         * doc/posix-functions/snprintf.texi: Likewise.
13848         * doc/posix-functions/sprintf.texi: Likewise.
13849         * doc/posix-functions/swprintf.texi: Likewise.
13850         * doc/posix-functions/vdprintf.texi: Likewise.
13851         * doc/posix-functions/vfprintf.texi: Likewise.
13852         * doc/posix-functions/vprintf.texi: Likewise.
13853         * doc/posix-functions/vsnprintf.texi: Likewise.
13854         * doc/posix-functions/vsprintf.texi: Likewise.
13855         * doc/glibc-functions/asprintf.texi: Likewise.
13856         * doc/glibc-functions/obstack_printf.texi: Likewise.
13857         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13858         * doc/glibc-functions/vasprintf.texi: Likewise.
13859
13860 2011-09-10  Bruno Haible  <bruno@clisp.org>
13861
13862         nocrash: Add support for native Windows.
13863         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13864
13865 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13866             Bruno Haible  <bruno@clisp.org>
13867
13868         absolute-header, include-next: Add support for MSVC compiler.
13869         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13870         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13871         directory separator in #line directives.
13872         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13873         recognize also backslash as directory separator in #line directives.
13874
13875 2011-09-08  Jim Meyering  <meyering@redhat.com>
13876
13877         maint.mk: mark the post-release commit log with "maint: " prefix
13878         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13879         one-line commit-log summary.
13880
13881 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13882             Bruno Haible  <bruno@clisp.org>
13883
13884         Doc about crypt functions.
13885         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13886         systems.
13887         * doc/posix-functions/encrypt.texi: Likewise.
13888         * doc/posix-functions/setkey.texi: Likewise.
13889
13890 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13891
13892         * lib/gc.h: Fix copyright header.
13893
13894 2011-09-07  Bruno Haible  <bruno@clisp.org>
13895
13896         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13897         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13898         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13899
13900 2011-09-07  Bruno Haible  <bruno@clisp.org>
13901
13902         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13903         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13904         * lib/freopen.c: Likewise.
13905         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13906         * lib/lstat.c: Likewise.
13907         * lib/stat.c: Likewise.
13908         * lib/open.c: Use different syntax for include of <fcntl.h>.
13909         * lib/openat.c: Include fcntl.h again, explicitly.
13910
13911 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13912
13913         parse-datetime: document the newly accepted format
13914         * doc/parse-datetime.texi (Combined date and time of day items):
13915         New section.
13916
13917 2011-09-06  Bruno Haible  <bruno@clisp.org>
13918
13919         acl: Fix a test failure on newer Solaris 10 with ZFS.
13920         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13921         ENOSYS as no ACL.
13922         Reported by Jim Meyering.
13923
13924 2011-09-06  Bruno Haible  <bruno@clisp.org>
13925
13926         acl: Update for AIX >= 5.3 with NFS.
13927         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13928         ENOSYS as no ACL.
13929
13930         acl: Fix a test failure on AIX >= 5.3 with NFS.
13931         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13932         as no ACL.
13933
13934 2011-09-06  Bruno Haible  <bruno@clisp.org>
13935
13936         acl: Fix a test failure on IRIX 6.5 with NFS.
13937         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13938         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13939         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13940         * lib/copy-acl.c (qcopy_acl): Likewise.
13941
13942 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13943
13944         openat: port to AIX 7.1 with large files
13945         AIX 7.1 does a "#define openat open64at" if large files are in use,
13946         so we can't simply #undef openat.  Use the orig_openat trick (similar
13947         to orig_open in lib/open.c) to work around the problem.  Problem
13948         reported by Kevin Brott for GNU tar, in the thread containing
13949         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13950         * lib/openat.c (__need_system_fcntl_h): Define first.
13951         Include <fcntl.h> and <sys/types.h> before undefining.
13952         (orig_openat) [HAVE_OPENAT]: New inline function.
13953         (openat) [HAVE_OPENAT]: Do not undef.
13954         (rpl_openat): Use orig_openat, not openat.
13955
13956 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13957             Bruno Haible  <bruno@clisp.org>
13958
13959         acl: Avoid errors on NonStop Kernel.
13960         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13961         ENOTSUP errors.
13962
13963 2011-09-05  Bruno Haible  <bruno@clisp.org>
13964
13965         acl: Clean up Solaris code.
13966         * lib/acl-internal.h: Remove no-op #if.
13967         * lib/file-has-acl.c: Likewise.
13968         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13969         * lib/copy-acl.c (qcopy_acl): Likewise.
13970
13971 2011-09-05  Bruno Haible  <bruno@clisp.org>
13972
13973         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13974         binaries built on the original Solaris 10.
13975         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13976         trivial.
13977
13978 2011-09-05  Bruno Haible  <bruno@clisp.org>
13979
13980         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13981         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13982         10.
13983         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13984         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13985         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13986         instead of acl_get, facl_get, acl_set, facl_set.
13987
13988 2011-09-05  Bruno Haible  <bruno@clisp.org>
13989
13990         copy-file: Try unit tests on more file systems.
13991         * tests/test-copy-file-1.sh: New file.
13992         * tests/test-copy-file-2.sh: New file.
13993         * modules/copy-file-tests (Files): Add them.
13994         (Makefile.am): Add them to TESTS.
13995
13996         acl: Try unit tests on more file systems.
13997         * tests/test-file-has-acl-1.sh: New file.
13998         * tests/test-file-has-acl-2.sh: New file.
13999         * tests/test-set-mode-acl-1.sh: New file.
14000         * tests/test-set-mode-acl-2.sh: New file.
14001         * tests/test-copy-acl-1.sh: New file.
14002         * tests/test-copy-acl-2.sh: New file.
14003         * modules/acl-tests (Files): Add them.
14004         (Makefile.am): Add them to TESTS.
14005
14006 2011-09-04  Bruno Haible  <bruno@clisp.org>
14007
14008         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14009         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14010         10.
14011         (OLD_ALLOW, OLD_DENY): New macros.
14012         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14013         ACE_ACCESS_ALLOWED_ACE_TYPE.
14014         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14015         ACE_ACCESS_DENIED_ACE_TYPE.
14016         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14017         (NEW_ACE_EXECUTE): Fix value.
14018         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14019         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14020         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14021         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14022         NEW_ACE_SYNCHRONIZE): New macros.
14023         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14024         instead of acl_fromtext, acl_set, facl_set.
14025         Fixes a coreutils/tests/cp/perm failure.
14026
14027 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14028
14029         openat: test for fstatat (..., 0) bug
14030         Further testing with tar suggests that fstatat (..., 0)
14031         does not work in general, on AIX 7.1; see
14032         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14033         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14034         replacement fstatat (which is what older AIX releases were using
14035         anyway).
14036         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14037         use is now changed to orig_fstatat.  This was probably the right
14038         thing to do anyway.
14039         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14040         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14041         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14042         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14043         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14044         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14045         if the bug is found.
14046
14047         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14048         This tests for another fstatat bug on AIX 7.1:
14049         fstatat (AT_FDCWD, ..., 0) does not work.  See
14050         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14051         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14052         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14053         (rpl_fstatat): Adjust so that it works around either (or both)
14054         bugs if present.
14055         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14056
14057 2011-09-03  Karl Berry  <karl@gnu.org>
14058
14059         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14060         in index entries.
14061
14062 2011-09-02  Bruno Haible  <bruno@clisp.org>
14063
14064         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14065         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14066         values of AR, ARFLAGS, RANLIB.
14067         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14068
14069 2011-09-02  Bruno Haible  <bruno@clisp.org>
14070
14071         Find 'ar' program that fits with --host argument.
14072         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14073
14074 2011-09-02  Bruno Haible  <bruno@clisp.org>
14075
14076         tests: init.sh: Support any non-GNU diff.
14077         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14078         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14079         Solaris 8.
14080
14081 2011-09-02  Bruno Haible  <bruno@clisp.org>
14082
14083         tests: init.sh: work also with any non-GNU diff that supports -u
14084         * tests/init.sh: Relax check for diff -u support.
14085         Rather than checking for GNU diff via --version, simply check
14086         for support for -u itself.  Useful at least on OpenBSD 4.9,
14087         AIX 7.1, IRIX 6.5, and Solaris 10.
14088
14089 2011-09-01  Bruno Haible  <bruno@clisp.org>
14090
14091         strtoimax, strtoumax: Document problem on HP-UX 11.
14092         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14093         * doc/posix-functions/strtoumax.texi: Likewise.
14094
14095 2011-09-01  Bruno Haible  <bruno@clisp.org>
14096
14097         strtoumax: Avoid link error on OSF/1 with DTK cc.
14098         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14099         defined as a function.
14100         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14101         strtoumax is defined, not whether it is declared.
14102
14103 2011-09-01  Bruno Haible  <bruno@clisp.org>
14104
14105         strtoimax: Avoid link error on OSF/1 with DTK cc.
14106         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14107         defined as a function.
14108         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14109         strtoimax is defined, not whether it is declared.
14110
14111 2011-09-01  Bruno Haible  <bruno@clisp.org>
14112
14113         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14114         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14115         as a function.
14116         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14117         whether it is declared.
14118
14119 2011-09-01  Bruno Haible  <bruno@clisp.org>
14120
14121         imaxabs: Avoid link error on OSF/1 with DTK cc.
14122         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14123         as a function.
14124         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14125         whether it is declared.
14126
14127 2011-09-01  Bruno Haible  <bruno@clisp.org>
14128
14129         Tests for module 'strtoumax'.
14130         * modules/strtoumax-tests: New file.
14131         * tests/test-strtoumax.c: New file.
14132
14133         Tests for module 'strtoimax'.
14134         * modules/strtoimax-tests: New file.
14135         * tests/test-strtoimax.c: New file.
14136
14137         Tests for module 'imaxdiv'.
14138         * modules/imaxdiv-tests: New file.
14139         * tests/test-imaxdiv.c: New file.
14140
14141         Tests for module 'imaxabs'.
14142         * modules/imaxabs-tests: New file.
14143         * tests/test-imaxabs.c: New file.
14144
14145 2011-09-01  Bruno Haible  <bruno@clisp.org>
14146
14147         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14148         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14149         pthread_create.
14150
14151 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14152
14153         openat: work around AIX 7.1 fstatat issue
14154         This should fix the problem that was not properly fixed
14155         in the previous change, dated 2011-08-30.
14156         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14157         __need_system_stat_h defined.
14158         (orig_fstatat) [HAVE_FSTATAT]: New function.
14159         (rpl_fstatat): Go back to the old way of doing things,
14160         except call orig_fstatat instead of fstatat.
14161         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14162         Remove unnecessary check whether fstatat fills in st_size etc.
14163
14164 2011-09-01  Bruno Haible  <bruno@clisp.org>
14165
14166         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14167         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14168         just include the system's header.
14169
14170 2011-08-31  Jim Meyering  <meyering@redhat.com>
14171
14172         tests: avoid spurious assertion failure in test-float.c on ppc64
14173         * tests/test-float.c (test_long_double): Comment out an assertion,
14174         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14175         with gcc-4.4.4.
14176
14177         maint: indent with spaces, not TABs
14178         I need to get in the habit of running gnulib's "make check".
14179         Both of these would have been caught.
14180         * m4/largefile.m4: Indent with spaces, not TABs.
14181         * lib/parse-datetime.y (iso_8601_time): Likewise.
14182         Spotted by Pádraig Brady.
14183
14184         test-parse-datetime.c: accommodate a relatively strict gcc warning
14185         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14186         to avoid a warning from gcc's -Werror=missing-declarations.
14187         Insert a few spaces-before-funcall-parenthesis.
14188
14189 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14190
14191         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14192         The parser now accepts ISO 8601 date-time strings with "T" as the
14193         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14194         with a space between the date and time strings.  Now it also parses
14195         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14196         variants like "2004-02-29T16:21:42.333-07:00"
14197         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14198         of day representation using the 'T' separator character.
14199         * doc/parse-datetime.texi (General date syntax): replace use of
14200         deprecated --iso-8601 option with --rfc-3339 in example of date
14201         command output formats that can be parsed.
14202         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14203         lib/parse-datetime.y.
14204         (gmt_offset): New function.
14205         (main): Add additional test cases to validate ISO8601 extended
14206         date and time of day parsing.
14207
14208 2011-08-31  Bruno Haible  <bruno@clisp.org>
14209
14210         freopen: Documentation.
14211         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14212         name.
14213         Reported by Claudio Bley <claudio.bley@gmail.com>.
14214
14215 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14216
14217         freopen: Don't crash if the filename argument is NULL.
14218         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14219         NULL.
14220
14221 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14222
14223         openat: work around AIX 7.1 fstatat bug
14224         Problem reported by Kevin Brott for GNU tar, in the thread containing
14225         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14226         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14227         FSTATAT_ST_SIZE_ETC_BROKEN.
14228         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14229         rpl_fstatat.
14230         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14231         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14232         AC_CHECK_FUNCS_ONCE for fstatat.
14233         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14234         fchmodat, mkdirat, openat and unlinkat.
14235
14236 2011-08-30  Bruno Haible  <bruno@clisp.org>
14237
14238         Avoid endless recursions if config.h includes some header files.
14239         * lib/fopen.c (__need_FILE): Define already before including config.h.
14240         * lib/freopen.c (__need_FILE): Likewise.
14241         * lib/open.c (__need_system_fcntl_h): Likewise.
14242         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14243         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14244         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14245
14246 2011-08-25  Karl Berry  <karl@gnu.org>
14247
14248         * config/srclist.txt (ylwrap): new try.
14249         * build-aux/ylwrap: new file.
14250
14251 2011-08-23  Bruno Haible  <bruno@clisp.org>
14252
14253         tmpdir: Use a good default directory on native Windows.
14254         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14255         (P_tmpdir): Default to _P_tmpdir on native Windows.
14256         (path_search): On native Windows, try the value returned by GetTempPath
14257         before trying P_tmpdir.
14258         * modules/tmpdir (Depends-on): Add pathmax.
14259         Suggested by John Darrington <john@darrington.wattle.id.au>.
14260
14261 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14262
14263         doc: fix typo in README-release
14264         * top/README-release: Capitalize first word of a sentence.
14265
14266 2011-08-19  Jim Meyering  <meyering@redhat.com>
14267
14268         fts: do not exhaust memory when processing million-entry directories
14269         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14270         directory would require about 256*N bytes of memory.  Thus, it was
14271         easy to construct a directory too large to be processed by any of
14272         those tools.  With this change, fts' maximum memory utilization is
14273         now limited to around 30MB.
14274         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14275         (fts_read): When we've processed the final entry (i.e., when
14276         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14277         using the parent entry to read any remaining entries.  Dispatch
14278         depending on what fts_build returns:
14279         - NULL+stop, aka failure: stop
14280         - NULL otherwise: move up in the dir hierarchy
14281         - non-NULL: handle this new entry
14282         (fts_build): Declare and use new local, continue_readdir.
14283         Prepare to be called from fts_read, when the entries
14284         from a partially-read directory have just been exhausted.
14285         In that case, we'll skip the opendir and instead use the parent's
14286         fts_dirp and derive dir_fd from that.
14287         Finally, in the readdir loop, if we read max_entries entries,
14288         exit the loop ensuring *not* to call closedir.  This is required
14289         so that fts_dirp can be reused on a subsequent call.
14290         Prompted by Ben England's report of memory exhaustion in find
14291         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14292
14293         maint: fts: move decl of `dp' down into while loop; split a long line
14294         * lib/fts.c (fts_build): No semantic change.
14295
14296         fts: add/use new struct member, fts_dirp
14297         We are about to use this to manage any directory with
14298         too many entries to read all of them into memory at once.
14299         To do that, we'll need to save the DIR* pointer in each
14300         affected FTSENT struct.
14301         * lib/fts_.h: Include <dirent.h>.
14302         (struct FTSENT) [fts_dirp]: New member.
14303         * lib/fts.c (closedir_and_clear): Define.
14304         Use it in place of closedir so that we are sure to
14305         clear the new fts_dirp member when done with it.
14306         (fts_alloc): Initialize the new member.
14307         (fts_lfree): Free, if needed.
14308
14309         maint: fts: give __opendir2 a new parameter and rename
14310         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14311         than surreptitiously using sole caller's "dir_fd".
14312         (fts_opendir): Rename from __opendir2.
14313
14314         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14315         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14316
14317         maint: fts.c: correct off-by-one indentation
14318         * lib/fts.c (fts_build): Correct indentation, change style
14319         of a couple of block comments, and bracing style.
14320
14321         maint: fts.c: move __opendir2 #define "up" out of function body
14322         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14323
14324         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14325         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14326         out for a long time and besides was useful only on BSD systems.
14327
14328 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14329
14330         regex: port to Stratus OpenVOS
14331         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14332         define to empty, rather than attempting nonportable optimizations.
14333         Problem reported by Paul Green in:
14334         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14335         and fix suggested by Eric Blake in:
14336         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14337
14338 2011-08-17  Eric Blake  <eblake@redhat.com>
14339
14340         getcwd: fix test failures on mingw
14341         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14342         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14343         test if long directory cannot be created, and allow mingw errno.
14344
14345         getcwd-lgpl: fix m4 to match relaxed test for BSD
14346         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14347         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14348         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14349         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14350         signature problem.
14351
14352         getcwd: fix compilation on mingw64
14353         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14354         getcwd.
14355         Reported by Marc-André Lureau.
14356
14357         pipe2: silence compiler warning
14358         * lib/pipe2.c (pipe2): Hide label if it is not used.
14359
14360 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14361
14362         relocatable-prog: fix link error
14363         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14364         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14365         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14366         into modules/relocatable-lib without noticing that
14367         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14368         also needs to build relocatable.c.
14369
14370 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14371
14372         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14373         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14374         shell code: it contained a 'break' that was not in a loop.
14375         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14376         via a shell-language loop; this may have been true in old Autoconf
14377         versions, but it's not true in Autoconf 2.68.  I found this bug
14378         when testing coreutils git on Solaris 8, whose shell complains
14379         about the syntax error.
14380
14381 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14382
14383         * lib/base64.c: Fix comment to reference RFC 4648.
14384         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14385         <gvtulder@gmail.com>.
14386
14387 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14388
14389         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14390
14391         po/Makefile.in.in: fix make -q problem
14392         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14393         rule, since there's no file named 'check-macro-version' and its
14394         use as a file breaks make -q.
14395         (all): Don't depend on check-macro-version.
14396         (CHECK_MACRO_VERSION): New macro.
14397         (stamp-po): Use it.
14398
14399         configmake: fix make -q problem
14400         * modules/configmake (configmake.h): Update configmake.h's time stamp
14401         even if the file does not change.  Otherwise, 'make -q' fails.
14402         Problem reported by Simon Josefsson in
14403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14404
14405 2011-08-11  Jim Meyering  <meyering@redhat.com>
14406
14407         git-version-gen: correct the advice in a comment
14408         * build-aux/git-version-gen: Correct comment.
14409         Don't recommend to list .tarball-version in .gitignore.
14410
14411 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14412
14413         base64: fix off-by-one buffer size bug
14414         Problem and (trivial) fix reported by Gijs van Tulder in
14415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14416         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14417         * tests/test-base64.c (main): Catch the bug.
14418
14419 2011-08-10  Eric Blake  <eblake@redhat.com>
14420
14421         closein: correct comments
14422         * lib/closein.c (close_stdin): Improve comments.
14423
14424 2011-08-09  Bruno Haible  <bruno@clisp.org>
14425
14426         More tests for 'fseeko'.
14427         * tests/test-fseeko3.c: New file, from Eric Blake.
14428         * tests/test-fseeko3.sh: New file.
14429         * modules/fseeko-tests (Files): Add them.
14430         (TESTS): Add test-fseeko3.sh.
14431         (check_PROGRAMS): Add test-fseeko3.
14432
14433 2011-08-09  Eric Blake  <eblake@redhat.com>
14434
14435         fseeko: remove unneeded hack
14436         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14437
14438         fseeko: fix bug on glibc
14439         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14440         Reported by John W. Eaton.
14441
14442 2011-08-08  Bruno Haible  <bruno@clisp.org>
14443
14444         unictype/base: Fix interoperability with preinstalled libunistring.
14445         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14446         Reported by Simon Josefsson.
14447
14448 2011-08-08  Bruno Haible  <bruno@clisp.org>
14449
14450         iswblank: Detect declaration correctly.
14451         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14452         AC_CHECK_DECLS invocation.
14453
14454 2011-08-08  Bruno Haible  <bruno@clisp.org>
14455
14456         tcgetsid: Detect declaration correctly.
14457         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14458         AC_CHECK_DECLS invocation.
14459         Reported by Simon Josefsson.
14460
14461 2011-08-08  Eric Blake  <eblake@redhat.com>
14462
14463         largefile: fix typo that regressed large file support
14464         * modules/largefile (configure.ac-early): Fix section name.
14465
14466 2011-08-06  Karl Berry  <karl@gnu.org>
14467
14468         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14469         a separate module.
14470
14471 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14472
14473         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14474         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14475         get prototype for free.
14476
14477 2011-08-04  Bruno Haible  <bruno@clisp.org>
14478
14479         Tests for module 'pathmax'.
14480         * modules/pathmax-tests: New file.
14481         * tests/test-pathmax.c: New file.
14482
14483         canonicalize-lgpl: Support larger filenames on the Hurd.
14484         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14485         Reported by Paul Eggert.
14486
14487         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14488         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14489         * lib/chdir-long.h: Include pathmax.h.
14490         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14491         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14492         (PATH_MAX): Remove code that is done by pathmax.h.
14493         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14494         * lib/tmpfile.c: Add a comment.
14495         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14496         * modules/chdir-long (Depends-on): Add pathmax.
14497         * modules/getcwd (Depends-on): Add pathmax.
14498         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14499         is not defined.
14500         * doc/posix-headers/limits.texi: Mention the pathmax module.
14501         * NEWS: Mention the change.
14502
14503 2011-08-02  Bruno Haible  <bruno@clisp.org>
14504
14505         pthread_sigmask: Actually use results of gl_THREADLIB.
14506         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14507         gl_THREADLIB, not gl_[]THREADLIB.
14508         Reported by Eric Blake.
14509
14510 2011-08-02  Jim Meyering  <meyering@redhat.com>
14511
14512         maint.mk: relax the default _gl_TS_function_match regexp
14513         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14514         space between function name and "(" in an "extern" declaration.
14515         That would fail to match a decl with no space there: extern void foo();
14516
14517 2011-07-31  Iain Nicol  <iain@thenicols.net>
14518
14519         git-version-gen: document that EXTRA_DIST must include .version
14520         * build-aux/git-version-gen: In the how-to-use comment, document
14521         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14522         will fail when run from an unpacked distribution tarball.
14523
14524 2011-08-01  Bruno Haible  <bruno@clisp.org>
14525
14526         wctype-h: Fix last change.
14527         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14528         REPLACE_TOWLOWER to 0.
14529         Reported by Sam Steingold <sds@gnu.org>.
14530
14531 2011-07-31  Bruno Haible  <bruno@clisp.org>
14532
14533         frexpl: Update autoconf test.
14534         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14535         according to changes of 2011-06-20.
14536
14537 2011-07-31  Bruno Haible  <bruno@clisp.org>
14538
14539         sys_utsname: Add support for Minix.
14540         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14541         <sys/utsname.h>.
14542         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14543         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14544
14545 2011-07-31  Bruno Haible  <bruno@clisp.org>
14546
14547         strings: Add support for Minix.
14548         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14549         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14550         * doc/posix-headers/strings.texi: Document the Minix problem.
14551
14552 2011-07-31  Bruno Haible  <bruno@clisp.org>
14553
14554         wctype-h: Add support for Minix.
14555         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14556         REPLACE_TOWLOWER.
14557         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14558         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14559         REPLACE_ISWCNTRL.
14560
14561 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14562
14563         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14564         This is a performance improvement for 64-bit hosts: it causes the
14565         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14566
14567 2011-07-31  Bruno Haible  <bruno@clisp.org>
14568
14569         stdioext: Add support for Minix.
14570         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14571         * lib/fpurge.c (fpurge): Likewise.
14572         * lib/freadahead.c (freadahead): Likewise.
14573         * lib/freadable.c (freadable): Likewise.
14574         * lib/freading.c (freading): Likewise.
14575         * lib/freadptr.c (freadptr): Likewise.
14576         * lib/freadseek.c (freadptrinc): Likewise.
14577         * lib/fseeko.c (rpl_fseeko): Likewise.
14578         * lib/fseterr.c (fseterr): Likewise.
14579         * lib/fwritable.c (fwritable): Likewise.
14580         * lib/fwriting.c (fwriting): Likewise.
14581         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14582         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14583
14584 2011-07-31  Bruno Haible  <bruno@clisp.org>
14585
14586         errno: Port to Minix.
14587         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14588         ECONNABORTED are defined.
14589         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14590         GNULIB_defined_ECONNABORTED): New macros.
14591         * lib/strerror-override.h (strerror_override): Test also
14592         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14593         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14594         ECONNABORTED.
14595         * doc/posix-headers/errno.texi: Mention the Minix problem.
14596
14597 2011-07-31  Bruno Haible  <bruno@clisp.org>
14598
14599         Work around declaration collisions on Minix.
14600         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14601         defined, set REPLACE_MBSINIT.
14602         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14603         defined, set REPLACE_MBRTOWC.
14604         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14605         set REPLACE_MBRLEN.
14606         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14607         defined, set REPLACE_MBSRTOWCS.
14608         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14609         defined, set REPLACE_WCRTOMB.
14610         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14611         defined, set REPLACE_WCSRTOMBS.
14612
14613 2011-07-31  Bruno Haible  <bruno@clisp.org>
14614
14615         Add support for Minix with ACK compiler.
14616         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14617         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14618         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14619
14620 2011-07-31  Bruno Haible  <bruno@clisp.org>
14621
14622         Documentation about Minix.
14623         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14624         * doc/glibc-headers/*.texi: Likewise.
14625         * doc/posix-functions/*.texi: Likewise.
14626         * doc/glibc-functions/*.texi: Likewise.
14627
14628 2011-07-31  Bruno Haible  <bruno@clisp.org>
14629
14630         snippet/warn-on-use: Fix indentation.
14631         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14632
14633 2011-07-25  Jim Meyering  <meyering@redhat.com>
14634
14635         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14636         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14637         commands.
14638
14639 2011-07-27  Jim Meyering  <meyering@redhat.com>
14640
14641         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14642         * top/maint.mk (gl_extract_significant_defines_): Now that
14643         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14644         gnulib/lib/signal.in.h, and now that we recommend to
14645         define-if-undefined those two symbols in application code,
14646         we must filter them out of the "significant" list.
14647         This avoids a "make syntax-check" failure in coreutils.
14648
14649 2011-07-26  Eric Blake  <eblake@redhat.com>
14650
14651         warnings: add comments about previous patch
14652         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14653         * m4/include_next.m4: Likewise.
14654         * m4/warn-on-use.m4: Likewise.
14655         * m4/warnings.m4: Likewise, and simplify use.
14656         Suggested by Stefano Lattarini.
14657
14658         include-next, warnings: support older autoconf
14659         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14660         AS_VAR_PUSHDEF in a way that works with older autoconf.
14661         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14662         Reported by Daniel P. Berrange.
14663
14664 2011-07-25  Bruno Haible  <bruno@clisp.org>
14665
14666         fseek, ftell: Fix doc.
14667         * doc/posix-functions/fseek.texi: Reword statement about
14668         AC_SYS_LARGEFILE.
14669         * doc/posix-functions/ftell.texi: Likewise.
14670
14671 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14672             Bruno Haible  <bruno@clisp.org>
14673
14674         Add dependencies to the 'largefile' module.
14675         * modules/fopen (Depends-on): Add 'largefile'.
14676         * modules/freopen (Depends-on): Likewise.
14677         * modules/fseeko (Depends-on): Likewise.
14678         * modules/ftello (Depends-on): Likewise.
14679         * modules/glob (Depends-on): Likewise.
14680         * modules/lseek (Depends-on): Likewise.
14681         * modules/lstat (Depends-on): Likewise.
14682         * modules/mkostemp (Depends-on): Likewise.
14683         * modules/mkostemps (Depends-on): Likewise.
14684         * modules/mkstemp (Depends-on): Likewise.
14685         * modules/mkstemps (Depends-on): Likewise.
14686         * modules/open (Depends-on): Likewise.
14687         * modules/openat (Depends-on): Likewise.
14688         * modules/pread (Depends-on): Likewise.
14689         * modules/pwrite (Depends-on): Likewise.
14690         * modules/scandir (Depends-on): Likewise.
14691         * modules/stat (Depends-on): Likewise.
14692         * modules/tmpfile (Depends-on): Likewise.
14693         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14694         since the containing module now depends on the largefile module.
14695         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14696         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14697         off_t is fixed by gnulib.
14698         * doc/posix-functions/freopen.texi: Likewise.
14699         * doc/posix-functions/fseeko.texi: Likewise.
14700         * doc/posix-functions/fstatat.texi: Likewise.
14701         * doc/posix-functions/ftello.texi: Likewise.
14702         * doc/posix-functions/glob.texi: Likewise.
14703         * doc/posix-functions/lseek.texi: Likewise.
14704         * doc/posix-functions/lstat.texi: Likewise.
14705         * doc/posix-functions/mkstemp.texi: Likewise.
14706         * doc/posix-functions/open.texi: Likewise.
14707         * doc/posix-functions/openat.texi: Likewise.
14708         * doc/posix-functions/pread.texi: Likewise.
14709         * doc/posix-functions/pwrite.texi: Likewise.
14710         * doc/posix-functions/scandir.texi: Likewise.
14711         * doc/posix-functions/stat.texi: Likewise.
14712         * doc/posix-functions/tmpfile.texi: Likewise.
14713         * doc/glibc-functions/mkostemp.texi: Likewise.
14714         * doc/glibc-functions/mkostemps.texi: Likewise.
14715         * doc/glibc-functions/mkstemps.texi: Likewise.
14716
14717 2011-07-25  Bruno Haible  <bruno@clisp.org>
14718
14719         fcntl: Move AC_LIBOBJ invocation to module description.
14720         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14721         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14722
14723         fcntl: Remove call-in from fchdir.m4.
14724         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14726
14727         dup3: Remove potential call-in from fchdir.m4.
14728         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14729         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14730
14731         dup2: Move AC_LIBOBJ invocation to module description.
14732         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14733         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14734         Don't invoke AC_LIBOBJ.
14735         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14736
14737         dup2: Remove call-in from fchdir.m4.
14738         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14739         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14740
14741         fclose: Move AC_LIBOBJ invocation to module description.
14742         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14743         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14744         to 1.
14745         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14746
14747         fclose: Remove call-in from close.m4.
14748         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14749         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14750
14751         close: Move AC_LIBOBJ invocation to module description.
14752         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14753         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14754         1.
14755         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14756
14757         close: Remove call-in from fchdir.m4.
14758         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14760
14761         open: Move AC_LIBOBJ invocation to module description.
14762         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14763         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14764         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14765
14766         open: Remove call-in from fchdir.m4.
14767         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14769
14770         fchdir: Start to remove gl_REPLACE_* idiom.
14771         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14772         (gl_FUNC_FCHDIR): Invoke it.
14773
14774 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14775
14776         * lib/ftell.c (ftell): Comment out cast.
14777
14778         close: use gl_REPLACE_FCLOSE only if defined
14779         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14780         is defined.  The close module doesn't depend on the fclose module
14781         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14783         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14784
14785 2011-07-24  Jim Meyering  <meyering@redhat.com>
14786
14787         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14788         * tests/test-select.h (test_function): Declare as "static".
14789
14790 2011-07-24  Bruno Haible  <bruno@clisp.org>
14791
14792         doc: Mention the effects of AC_SYS_LARGEFILE.
14793         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14794         on this function.
14795         * doc/posix-functions/aio_error.texi: Likewise.
14796         * doc/posix-functions/aio_fsync.texi: Likewise.
14797         * doc/posix-functions/aio_read.texi: Likewise.
14798         * doc/posix-functions/aio_return.texi: Likewise.
14799         * doc/posix-functions/aio_suspend.texi: Likewise.
14800         * doc/posix-functions/aio_write.texi: Likewise.
14801         * doc/posix-functions/fgetpos.texi: Likewise.
14802         * doc/posix-functions/fopen.texi: Likewise.
14803         * doc/posix-functions/freopen.texi: Likewise.
14804         * doc/posix-functions/fsetpos.texi: Likewise.
14805         * doc/posix-functions/fstatvfs.texi: Likewise.
14806         * doc/posix-functions/ftruncate.texi: Likewise.
14807         * doc/posix-functions/ftw.texi: Likewise.
14808         * doc/posix-functions/getrlimit.texi: Likewise.
14809         * doc/posix-functions/glob.texi: Likewise.
14810         * doc/posix-functions/lio_listio.texi: Likewise.
14811         * doc/posix-functions/lockf.texi: Likewise.
14812         * doc/posix-functions/mkstemp.texi: Likewise.
14813         * doc/posix-functions/mmap.texi: Likewise.
14814         * doc/posix-functions/nftw.texi: Likewise.
14815         * doc/posix-functions/openat.texi: Likewise.
14816         * doc/posix-functions/opendir.texi: Likewise.
14817         * doc/posix-functions/posix_fadvise.texi: Likewise.
14818         * doc/posix-functions/posix_fallocate.texi: Likewise.
14819         * doc/posix-functions/pread.texi: Likewise.
14820         * doc/posix-functions/pwrite.texi: Likewise.
14821         * doc/posix-functions/readdir.texi: Likewise.
14822         * doc/posix-functions/readdir_r.texi: Likewise.
14823         * doc/posix-functions/rewinddir.texi: Likewise.
14824         * doc/posix-functions/scandir.texi: Likewise.
14825         * doc/posix-functions/seekdir.texi: Likewise.
14826         * doc/posix-functions/setrlimit.texi: Likewise.
14827         * doc/posix-functions/statvfs.texi: Likewise.
14828         * doc/posix-functions/telldir.texi: Likewise.
14829         * doc/posix-functions/tmpfile.texi: Likewise.
14830         * doc/posix-functions/truncate.texi: Likewise.
14831         * doc/glibc-functions/fallocate.texi: Likewise.
14832         * doc/glibc-functions/fstatfs.texi: Likewise.
14833         * doc/glibc-functions/fts_children.texi: Likewise.
14834         * doc/glibc-functions/fts_read.texi: Likewise.
14835         * doc/glibc-functions/getdirentries.texi: Likewise.
14836         * doc/glibc-functions/mkostemp.texi: Likewise.
14837         * doc/glibc-functions/mkostemps.texi: Likewise.
14838         * doc/glibc-functions/mkstemps.texi: Likewise.
14839         * doc/glibc-functions/preadv.texi: Likewise.
14840         * doc/glibc-functions/pwritev.texi: Likewise.
14841         * doc/glibc-functions/sendfile.texi: Likewise.
14842         * doc/glibc-functions/statfs.texi: Likewise.
14843
14844 2011-07-24  Bruno Haible  <bruno@clisp.org>
14845
14846         doc: Fix typo.
14847         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14848
14849 2011-07-24  Bruno Haible  <bruno@clisp.org>
14850
14851         doc: Mention fsusage.
14852         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14853
14854 2011-07-24  Bruno Haible  <bruno@clisp.org>
14855
14856         doc: Mention new glibc headers and functions.
14857         * doc/glibc-headers/gshadow.texi: New file.
14858         * doc/glibc-functions/endsgent.texi: New file.
14859         * doc/glibc-functions/fgetsgent.texi: New file.
14860         * doc/glibc-functions/fgetsgent_r.texi: New file.
14861         * doc/glibc-functions/getsgent.texi: New file.
14862         * doc/glibc-functions/getsgent_r.texi: New file.
14863         * doc/glibc-functions/getsgnam.texi: New file.
14864         * doc/glibc-functions/getsgnam_r.texi: New file.
14865         * doc/glibc-functions/putsgent.texi: New file.
14866         * doc/glibc-functions/setsgent.texi: New file.
14867         * doc/glibc-functions/sgetsgent.texi: New file.
14868         * doc/glibc-functions/sgetsgent_r.texi: New file.
14869         * doc/glibc-functions/malloc_info.texi: New file.
14870         * doc/glibc-functions/preadv.texi: New file.
14871         * doc/glibc-functions/pwritev.texi: New file.
14872         * doc/glibc-functions/register_printf_modifier.texi: New file.
14873         * doc/glibc-functions/register_printf_specifier.texi: New file.
14874         * doc/glibc-functions/register_printf_type.texi: New file.
14875         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14876         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14877         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14878         * doc/glibc-functions/pthread_getname_np.texi: New file.
14879         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14880         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14881         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14882         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14883         * doc/glibc-functions/pthread_setname_np.texi: New file.
14884         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14885         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14886         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14887         * doc/glibc-functions/qsort_r.texi: New file.
14888         * doc/glibc-functions/quick_exit.texi: New file.
14889         * doc/glibc-functions/syncfs.texi: New file.
14890         * doc/gnulib.texi: Include them.
14891         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14892         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14893         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14894         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14895         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14896         * doc/glibc-functions/execvpe.texi: Likewise.
14897
14898 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14899
14900         ftell: don't include <unistd.h>
14901         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14902         guaranteed to define off_t, and the ftell module depends on the
14903         stdio module.
14904
14905         ftell: do not assume wraparound signed arithmetic
14906         * lib/ftell.c: Include <limits.h>.
14907         (ftell): Don't assume wraparound signed arithmetic.
14908
14909 2011-07-24  Bruno Haible  <bruno@clisp.org>
14910
14911         close: No longer depend on module 'fclose'.
14912         * modules/close (Depends-on): Remove fclose.
14913         * NEWS: Mention the change.
14914         Suggested by Sam Steingold <sds@gnu.org>.
14915
14916 2011-07-24  Bruno Haible  <bruno@clisp.org>
14917
14918         fsusage: Enable large volume support on AIX >= 5.2.
14919         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14920         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14921         instead of STAT_STATVFS.
14922         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14923
14924         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14925         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14926         f_blocks field only on MacOS X.
14927
14928         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14929         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14930         * modules/fsusage (Depends-on): Add largefile.
14931
14932 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14933
14934         * README: Modernize discussion of signed integers.
14935         Assuming overflow wraparound is no longer safe.
14936         Mention ones' complement and signed magnitude.
14937
14938 2011-07-22  Bruno Haible  <bruno@clisp.org>
14939
14940         select tests, pselect tests: Refactor.
14941         * tests/test-select.h: New file, extracted from tests/test-select.c.
14942         (select_fn): New type.
14943         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14944         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14945         test_pipe): Add my_select argument.
14946         (test_function): Renamed from main. Add my_select argument.
14947         * tests/test-select.c: Move most code to tests/test-select.h. Include
14948         test-select.h.
14949         * modules/select-tests (Files): Add tests/test-select.h.
14950         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14951         (my_select, main): New functions.
14952         * modules/pselect-tests (Files): Add tests/test-select.h,
14953         tests/macros.h, tests/signature.h.
14954         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14955         (configure.ac): Check for <sys/wait.h>.
14956
14957 2011-07-22  Bruno Haible  <bruno@clisp.org>
14958
14959         sys_select tests: Check the signature of FD_*.
14960         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14961         signature tests from here...
14962         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14963         here.
14964         * modules/sys_select-tests (Files): Add tests/signature.h.
14965
14966 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14967
14968         largefile: new module, replacing large-inode
14969         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14970         * MODULES.html.sh: Add largefile, remove large-inode.
14971         * modules/largefile, m4/largefile.m4: New files.
14972         * modules/large-inode, m4/large-inode.m4: Remove.
14973
14974         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14975         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14976         implementations that use only 32 bits to count blocks.
14977         On typical hosts with 1024-byte blocks, this fails with file
14978         systems as small as 4 TiB.  Problem reported by Herb Wartens
14979         <http://debbugs.gnu.org/9140> and this should also fix a similar
14980         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14981
14982         large-inode: New module
14983         * MODULES.html.sh: Add it.
14984         * modules/large-inode, m4/large-inode.m4: New files.
14985
14986         extensions: Enable extensions on MacOS X 10.5 and later.
14987         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14988
14989 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14990
14991         file-has-acl: use acl_extended_file_nofollow if available
14992         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14993         (acl_extended_file): New macro.
14994         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14995         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14996
14997 2011-07-21  Bruno Haible  <bruno@clisp.org>
14998
14999         Declare system functions in a way that works with C++.
15000         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15001         declare fdopendir as extern "C".
15002         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15003         declare frexpl as extern "C".
15004         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15005         declare gai_strerror as extern "C".
15006         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15007         programs, declare gai_strerror as extern "C".
15008         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15009         declare getlogin_r as extern "C".
15010         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15011         as extern "C".
15012         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15013         declare ldexpl as extern "C".
15014         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15015         as extern "C".
15016         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15017         program, declare getmntinfo as extern "C".
15018         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15019         stpncpy as extern "C".
15020         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15021         program, declare __xpg_strerror_r as extern "C".
15022         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15023         strndup as extern "C".
15024         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15025         declare memset and bzero as extern "C".
15026         Reported by Sam Steingold <sds@gnu.org>.
15027
15028 2011-07-12  Jim Meyering  <meyering@redhat.com>
15029
15030         maint.mk: prohibit inclusion of "verify.h" without use
15031         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15032
15033 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15034
15035         timer-time: A new module to check for timer_settime()
15036         * m4/timer_time.m4: Check for the posix function.
15037         * modules/timer-time: Add the new module.
15038         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15039         Mention it.
15040
15041 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15042             Bruno Haible  <bruno@clisp.org>
15043
15044         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15045         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15046         not defined, assume POSIX threads and look for pthread_sigmask in
15047         $LIBS, without changing $CPPFLAGS.
15048
15049 2011-07-19  Bruno Haible  <bruno@clisp.org>
15050
15051         strstr: Update cross-compilation guess.
15052         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15053         CPUs, guess no, in view of glibc
15054         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15055         Suggested by Eric Blake. Reported by Reuben Thomas.
15056
15057 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15058
15059         getopt-gnu: suppress core dumps from detection code
15060         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15061         to suppress core dumps that may well occur on glibc systems.
15062         * modules/getopt-gnu: Depend on nocrash.
15063
15064 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15065
15066         pthread_sigmask: ensure usleep is declared
15067         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15068         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15069
15070 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15071
15072         doc: Document NonStop portability issues.
15073         * doc/posix-functions/sigaction.texi (sigaction):
15074         * doc/posix-headers/signal.texi (signal.h):
15075         Document NonStop.  See Joachim Schmitz in
15076         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15077
15078 2011-07-15  Bruno Haible  <bruno@clisp.org>
15079
15080         ffsl, ffsll: Avoid unportable behaviour.
15081         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15082
15083 2011-07-15  Bruno Haible  <bruno@clisp.org>
15084
15085         ffs: More tests.
15086         * tests/test-ffs.c (NBITS): New macro.
15087         (main): Add more tests.
15088         * tests/test-ffsl.c (NBITS): New macro.
15089         (main): Add more tests.
15090         * tests/test-ffsll.c (NBITS): New macro.
15091         (main): Add more tests.
15092
15093 2011-07-15  Eric Blake  <eblake@redhat.com>
15094
15095         ffsl, ffsll: new modules
15096         * modules/ffsl: New file.
15097         * modules/ffsll: Likewise.
15098         * m4/ffsl.m4: Likewise.
15099         * m4/ffsll.m4: Likewise.
15100         * lib/ffsl.c: Likewise.
15101         * lib/ffsl.h: Likewise.
15102         * lib/ffsll.c: Likewise.
15103         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15104         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15105         * modules/string (Makefile.am): Substitute witnesses.
15106         * lib/strings.in.h (ffsl, ffsll): Declare.
15107         * modules/ffsl-tests: New test file.
15108         * modules/ffsll-tests: Likewise.
15109         * tests/test-ffsl.c: Likewise.
15110         * tests/test-ffsll.c: Likewise.
15111         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15112         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15113         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15114
15115         ffs: fix m4 prerequisite
15116         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15117
15118         ffs: avoid undefined behavior
15119         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15120         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15121         Reported by Bruno Haible.
15122
15123 2011-07-12  Bruno Haible  <bruno@clisp.org>
15124
15125         pthread_sigmask: Rely on module 'threadlib'.
15126         * modules/pthread_sigmask (Depends-on): Add threadlib.
15127         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15128         is defined.
15129
15130 2011-07-12  Bruno Haible  <bruno@clisp.org>
15131
15132         regex: Depend on module 'strcase'.
15133         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15134
15135 2011-07-12  Jim Meyering  <meyering@redhat.com>
15136
15137         warn-on-use: fix typo in file name
15138         * modules/snippet/warn-on-use (Files): Correct file name:
15139         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15140
15141 2011-07-12  Bruno Haible  <bruno@clisp.org>
15142
15143         strings: Document module.
15144         * doc/posix-headers/strings.texi: Mention module 'strings'.
15145
15146 2011-07-12  Bruno Haible  <bruno@clisp.org>
15147
15148         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15149         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15150         (Files, Makefile.am): Update.
15151         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15152         * modules/stdlib (Depends-on): Update.
15153
15154 2011-07-12  Bruno Haible  <bruno@clisp.org>
15155
15156         * NEWS: Mention the changes.
15157
15158         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15159         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15160         (Files, Makefile.am): Update.
15161         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15162         * modules/arpa_inet (Depends-on): Update.
15163         * modules/ctype (Depends-on): Update.
15164         * modules/dirent (Depends-on): Update.
15165         * modules/fcntl-h (Depends-on): Update.
15166         * modules/glob (Depends-on): Update.
15167         * modules/iconv-h (Depends-on): Update.
15168         * modules/inttypes-incomplete (Depends-on): Update.
15169         * modules/langinfo (Depends-on): Update.
15170         * modules/locale (Depends-on): Update.
15171         * modules/math (Depends-on): Update.
15172         * modules/netdb (Depends-on): Update.
15173         * modules/poll-h (Depends-on): Update.
15174         * modules/pty (Depends-on): Update.
15175         * modules/search (Depends-on): Update.
15176         * modules/signal (Depends-on): Update.
15177         * modules/spawn (Depends-on): Update.
15178         * modules/stdio (Depends-on): Update.
15179         * modules/stdlib (Depends-on): Update.
15180         * modules/string (Depends-on): Update.
15181         * modules/strings (Depends-on): Update.
15182         * modules/sys_file (Depends-on): Update.
15183         * modules/sys_ioctl (Depends-on): Update.
15184         * modules/sys_select (Depends-on): Update.
15185         * modules/sys_socket (Depends-on): Update.
15186         * modules/sys_stat (Depends-on): Update.
15187         * modules/sys_time (Depends-on): Update.
15188         * modules/sys_times (Depends-on): Update.
15189         * modules/sys_utsname (Depends-on): Update.
15190         * modules/sys_wait (Depends-on): Update.
15191         * modules/termios (Depends-on): Update.
15192         * modules/time (Depends-on): Update.
15193         * modules/unistd (Depends-on): Update.
15194         * modules/wchar (Depends-on): Update.
15195         * modules/wctype-h (Depends-on): Update.
15196         * MODULES.html.sh (Support for building libraries and executables):
15197         Update.
15198
15199         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15200         * modules/snippet/unused-parameter: Renamed from
15201         modules/unused-parameter.
15202         (Files, Makefile.am): Update.
15203         * build-aux/snippet/unused-parameter.h: Renamed from
15204         build-aux/unused-parameter.h.
15205         * modules/selinux-h (Depends-on): Update.
15206         * modules/unistr/base (Depends-on): Update.
15207         * MODULES.html.sh (Core language properties): Update.
15208
15209         Rename module 'link-warning' to 'snippet/link-warning'.
15210         * modules/snippet/link-warning: Renamed from modules/link-warning.
15211         (Files, Makefile.am): Update.
15212         * build-aux/snippet/link-warning.h: Renamed from
15213         build-aux/link-warning.h.
15214         * MODULES.html.sh (Support for building libraries and executables):
15215         Update.
15216
15217         Rename module 'c++defs' to 'snippet/c++defs'.
15218         * modules/snippet/c++defs: Renamed from modules/c++defs.
15219         (Files, Makefile.am): Update.
15220         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15221         * modules/arpa_inet (Depends-on): Update.
15222         * modules/ctype (Depends-on): Update.
15223         * modules/dirent (Depends-on): Update.
15224         * modules/fcntl-h (Depends-on): Update.
15225         * modules/glob (Depends-on): Update.
15226         * modules/iconv-h (Depends-on): Update.
15227         * modules/langinfo (Depends-on): Update.
15228         * modules/locale (Depends-on): Update.
15229         * modules/math (Depends-on): Update.
15230         * modules/netdb (Depends-on): Update.
15231         * modules/poll-h (Depends-on): Update.
15232         * modules/pty (Depends-on): Update.
15233         * modules/search (Depends-on): Update.
15234         * modules/signal (Depends-on): Update.
15235         * modules/spawn (Depends-on): Update.
15236         * modules/stdio (Depends-on): Update.
15237         * modules/stdlib (Depends-on): Update.
15238         * modules/string (Depends-on): Update.
15239         * modules/strings (Depends-on): Update.
15240         * modules/sys_ioctl (Depends-on): Update.
15241         * modules/sys_select (Depends-on): Update.
15242         * modules/sys_socket (Depends-on): Update.
15243         * modules/sys_stat (Depends-on): Update.
15244         * modules/sys_time (Depends-on): Update.
15245         * modules/sys_wait (Depends-on): Update.
15246         * modules/termios (Depends-on): Update.
15247         * modules/time (Depends-on): Update.
15248         * modules/unistd (Depends-on): Update.
15249         * modules/wchar (Depends-on): Update.
15250         * modules/wctype-h (Depends-on): Update.
15251
15252         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15253         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15254         (Files, Makefile.am): Update.
15255         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15256         * modules/argv-iter (Depends-on): Update.
15257         * modules/arpa_inet (Depends-on): Update.
15258         * modules/dirent (Depends-on): Update.
15259         * modules/fcntl-h (Depends-on): Update.
15260         * modules/fnmatch (Depends-on): Update.
15261         * modules/getopt-posix (Depends-on): Update.
15262         * modules/glob (Depends-on): Update.
15263         * modules/iconv-h (Depends-on): Update.
15264         * modules/inttypes-incomplete (Depends-on): Update.
15265         * modules/locale (Depends-on): Update.
15266         * modules/math (Depends-on): Update.
15267         * modules/netdb (Depends-on): Update.
15268         * modules/search (Depends-on): Update.
15269         * modules/signal (Depends-on): Update.
15270         * modules/spawn (Depends-on): Update.
15271         * modules/stdio (Depends-on): Update.
15272         * modules/stdlib (Depends-on): Update.
15273         * modules/string (Depends-on): Update.
15274         * modules/strings (Depends-on): Update.
15275         * modules/sys_socket (Depends-on): Update.
15276         * modules/sys_stat (Depends-on): Update.
15277         * modules/sys_time (Depends-on): Update.
15278         * modules/sys_times (Depends-on): Update.
15279         * modules/sys_utsname (Depends-on): Update.
15280         * modules/time (Depends-on): Update.
15281         * modules/unistd (Depends-on): Update.
15282         * modules/wchar (Depends-on): Update.
15283         * MODULES.html.sh (Support for building libraries and executables):
15284         Update.
15285
15286 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15287
15288         Improvements on _Noreturn and related modules.
15289
15290         modules/_Exit-tests: test _Noreturn too
15291         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15292         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15293         (main): Use them.
15294
15295         stdnoreturn, stdnoreturn-tests: remove modules
15296         They're not needed here and a bit premature for use elsewhere.  See
15297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15298         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15299         * tests/test-stdnoreturn.c: Remove files.
15300         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15301         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15302         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15303         and using noreturn.
15304         * modules/openat, modules/sigpipe-die, modules/xalloc:
15305         * modules/xmemdup0, modules/xstrtol:
15306         Remove dependency on stdnoreturn.
15307
15308         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15309         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15310         Reparenthesize to avoid GCC warning.
15311         Support Microsoft's syntax.
15312         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15313
15314         _Noreturn-tests: remove module
15315         * modules/_Noreturn-tests: Remove.
15316         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15317         * tests/test-_Noreturn.c: Remove.
15318         * tests/test-stdnoreturn.c: Merge from the old
15319         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15320
15321 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15322
15323         _Noreturn, stdnoreturn, and related modules.
15324
15325         * top/maint.mk: Adjust to new noreturn support.
15326         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15327         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15328
15329         xalloc: use stdnoreturn.h
15330         * lib/xalloc.h: Include <stdnoreturn.h>.
15331         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15332         * modules/xalloc (Depends-on): Add stdnoreturn.
15333
15334         xstrtol: use stdnoreturn.h
15335         * lib/xstrtol.h: Include <stdnoreturn.h>.
15336         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15337         * modules/xstrtol (Depends-on): Add stdnoreturn.
15338
15339         xmemdup0: use stdnoreturn.h
15340         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15341         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15342         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15343
15344         sigpipe-die: use stdnoreturn.h
15345         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15346         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15347         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15348
15349         openat: use stdnoreturn.h
15350         * lib/openat.h: Include <stdnoreturn.h>.
15351         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15352         * modules/openat (Depends-on): Add stdnoreturn.
15353
15354         * lib/openat-die.c (openat_save_fail): Modernize comment.
15355
15356         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15357
15358         * lib/glthread/thread.h: Modernize comment.
15359
15360         obstack: use _Noreturn
15361         * lib/obstack.c (__attribute__): Remove macro.
15362         (print_and_abort): Use _Noreturn.
15363
15364         c-stack: use _Noreturn
15365         * lib/c-stack.c (die, overflow_handler, segv_handler):
15366         Use _Noreturn rather than __attribute__((noreturn)).
15367
15368         argmatch-tests, exclude_tests: use _Noreturn
15369         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15370         Remove.
15371         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15372
15373         stdlib: use _Noreturn
15374         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15375         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15376         * modules/stdlib (Depends-on): Add _Noreturn.
15377         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15378
15379         stdnoreturn-tests: new module
15380         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15381
15382         stdnoreturn: new module
15383         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15384         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15385
15386         _Noreturn-tests: new module
15387         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15388
15389         _Noreturn: new module
15390         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15391         New section, mentioning it.
15392         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15393
15394         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15395
15396 2011-07-11  Eric Blake  <eblake@redhat.com>
15397
15398         ffs: new module
15399         * modules/ffs: New file.
15400         * m4/ffs.m4: Likewise.
15401         * lib/ffs.c: Likewise.
15402         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15403         * modules/strings (Makefile.am): Substitute witness.
15404         (Depends-on): Add c++defs.
15405         * lib/strings.in.h (ffs): Declare.
15406         * modules/ffs-tests: New test file.
15407         * tests/test-ffs.c: Test new module.
15408         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15409         * doc/posix-functions/ffs.texi (ffs): Likewise.
15410
15411         regex: avoid compiler warning
15412         * lib/regex.c (includes): Include <strings.h>, for use of
15413         strcasecmp in regcomp.c.
15414         Reported by Joachim Schmitz.
15415
15416 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15417
15418         stdint: respect system's intmax_t if INTMAX_MAX
15419         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15420         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15421         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15422         long but int64_t is long long, and where we will clash with the
15423         system intmax_t if we override it.  See
15424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15425         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15426         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15427         similarly for UINTMAX_C.
15428
15429 2011-07-08  Bruno Haible  <bruno@clisp.org>
15430
15431         pthread_sigmask tests: Avoid a compiler warning.
15432         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15433         non-zero.
15434
15435         sigprocmask tests: A better way to avoid a compiler warning.
15436         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15437         (main): Complain if system() returns non-zero.
15438         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15439
15440 2011-07-08  Bruno Haible  <bruno@clisp.org>
15441
15442         pthread_sigmask: Work around IRIX bug.
15443         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15444         bug.
15445         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15446         there may be unblocked pending signals.
15447         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15448
15449 2011-07-08  Bruno Haible  <bruno@clisp.org>
15450
15451         pthread_sigmask: Work around Cygwin bug.
15452         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15453         bug.
15454         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15455         the system's pthread_sigmask function.
15456         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15457
15458 2011-07-08  Bruno Haible  <bruno@clisp.org>
15459
15460         pthread_sigmask: Work around bug in single-threaded implementation.
15461         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15462         FreeBSD, HP-UX, Solaris bug.
15463         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15464         * lib/pthread_sigmask.c: Include <stddef.h>.
15465         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15466         the system's pthread_sigmask function.
15467         * modules/pthread_sigmask (configure.ac): Invoke
15468         gl_PREREQ_PTHREAD_SIGMASK.
15469         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15470         HP-UX, Solaris.
15471
15472 2011-07-08  Eric Blake  <eblake@redhat.com>
15473
15474         test-sigprocmask: avoid compiler warning
15475         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15476         * tests/test-sigprocmask.c (main): Use it to silence warning.
15477         Reported by Jim Meyering.
15478
15479         test-snprintf: avoid compiler warning
15480         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15481         * tests/test-vsnprintf.c (main): Likewise.
15482         Reported by Jim Meyering.
15483
15484 2011-07-08  Bruno Haible  <bruno@clisp.org>
15485
15486         Tests for module 'pthread_sigmask'.
15487         * modules/pthread_sigmask-tests: New file.
15488         * tests/test-pthread_sigmask1.c: New file, based on
15489         tests/test-sigprocmask.c.
15490         * tests/test-pthread_sigmask2.c: New file.
15491
15492 2011-07-08  Jim Meyering  <meyering@redhat.com>
15493
15494         test-getopt.h: avoid warning about an unused variable
15495         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15496
15497 2011-07-07  Jim Meyering  <meyering@redhat.com>
15498
15499         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15500         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15501         now that it no longer contains leading TABs.
15502         Remove unused "url=FIXME" statement.
15503
15504 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15505
15506         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15507         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15508         When gl_THREADLIB is not in use, assume that the POSIX sematics
15509         are desired.  This is better for Emacs, which uses POSIX semantics
15510         on GNUish and/or POSIXish platforms, and does not use threads at
15511         all otherwise.
15512
15513         pthread_sigmask: fix typo when testing for libraries
15514         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15515         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15516
15517 2011-07-08  Eric Blake  <eblake@redhat.com>
15518
15519         fts: introduce FTS_NOATIME
15520         * lib/fts_.h (FTS_NOATIME): New bit flag.
15521         (FTS_OPTIONMASK): Adjust.
15522         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15523         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15524
15525 2011-07-08  Bruno Haible  <bruno@clisp.org>
15526
15527         Tests for module 'thread'.
15528         * modules/thread-tests: New file.
15529         * tests/test-thread_self.c: New file.
15530         * tests/test-thread_create.cc: New file.
15531
15532 2011-07-08  Bruno Haible  <bruno@clisp.org>
15533
15534         thread: Avoid gcc warnings when using gl_thread_self().
15535         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15536         'void *'.
15537         (gl_thread_self_pointer): Update.
15538
15539 2011-07-07  Bruno Haible  <bruno@clisp.org>
15540
15541         signal-c++-tests: Check declaration of pthread_sigmask.
15542         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15543         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15544         $(LIB_PTHREAD_SIGMASK).
15545
15546 2011-07-07  Bruno Haible  <bruno@clisp.org>
15547
15548         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15549         * lib/signal.in.h (pthread_sigmask): Override if
15550         REPLACE_PTHREAD_SIGMASK is 1.
15551         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15552         REPLACE_PTHREAD_SIGMASK.
15553         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15554         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15555         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15556         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15557         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15558
15559 2011-07-07  Bruno Haible  <bruno@clisp.org>
15560
15561         pthread_sigmask: Ensure declaration in <signal.h>.
15562         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15563         include <pthread.h>.
15564         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15565         problem.
15566
15567 2011-07-07  Bruno Haible  <bruno@clisp.org>
15568
15569         pthread_sigmask: Document the module.
15570         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15571
15572 2011-07-07  Bruno Haible  <bruno@clisp.org>
15573
15574         pthread_sigmask: Follow gnulib conventions.
15575         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15576         gl_PTHREAD_SIGMASK.
15577         * modules/pthread_sigmask (configure.ac): Update.
15578
15579 2011-07-07  Bruno Haible  <bruno@clisp.org>
15580
15581         pthread_sigmask: Make declaration C++ safe.
15582         * lib/signal.in.h: In two special conditions, just do an #include_next.
15583         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15584         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15585         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15586         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15587         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15588         not REPLACE_PTHREAD_MASK.
15589         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15590         not REPLACE_PTHREAD_MASK.
15591         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15592
15593 2011-07-07  Bruno Haible  <bruno@clisp.org>
15594
15595         pthread_sigmask: Fix return value.
15596         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15597         * lib/pthread_sigmask.c: New file.
15598         * modules/pthread_sigmask (Files): Add it.
15599         (configure.ac): Invoke AC_LIBOBJ.
15600
15601 2011-07-07  Eric Blake  <eblake@redhat.com>
15602
15603         getopt: more portable argv creation
15604         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15605         const, use char arrays rather than strings.
15606         Suggested by Paul Eggert.
15607
15608 2011-07-07  Bruno Haible  <bruno@clisp.org>
15609
15610         Tests for module 'sigprocmask'.
15611         * modules/sigprocmask-tests: New file.
15612         * tests/test-sigprocmask.c: New file.
15613
15614 2011-07-07  Bruno Haible  <bruno@clisp.org>
15615
15616         float tests: Tweak.
15617         * tests/test-float.c (main): Tweak skip message.
15618
15619 2011-07-07  Eric Blake  <eblake@redhat.com>
15620
15621         getopt: avoid compiler warning during configure
15622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15623         assigning string literals to non-const pointer.
15624
15625         getopt-gnu: avoid crash in glibc getopt
15626         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15627         * tests/test-getopt.h (test_getopt): Enhance test.
15628         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15629         * doc/posix-functions/getopt.texi (getopt): Document it.
15630         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15631         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15632         Likewise.
15633
15634 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15635
15636         getopt: handle W; without long options in getopt [BZ #12922]
15637         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15638         but no long options are defined, just return 'W'.
15639
15640 2011-07-07  Bruno Haible  <bruno@clisp.org>
15641
15642         Avoid literal tabs.
15643         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15644         variable containing a tab instead of a literal tab.
15645         Reported by Jim Meyering.
15646
15647 2011-07-07  Bruno Haible  <bruno@clisp.org>
15648
15649         Comments.
15650         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15651
15652 2011-07-06  Bruno Haible  <bruno@clisp.org>
15653
15654         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15655         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15656         <winsock2.h>.
15657         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15658         lib/sys_socket.in.h.
15659         (close, gethostname): Hide declarations from <winsock2.h>.
15660         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15661         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15662         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15663         (select): Don't override if gnulib's <sys/select.h> was already
15664         included.
15665         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15666         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15667         setsockopt, shutdown, select): Tweak indentation.
15668
15669 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15670
15671         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15672         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15673         in an application that does not use the sys_select module.
15674
15675 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15676
15677         poll: do not return 0 on timeout=-1
15678         * lib/poll.c: Loop with yield if no events occurred.
15679
15680 2011-07-06  Eric Blake  <eblake@redhat.com>
15681
15682         pthread_sigmask: always replace when not using pthread
15683         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15684         replacement when using some threading other than pthread.  Fix
15685         logic bug.
15686
15687 2011-07-06  Bruno Haible  <bruno@clisp.org>
15688
15689         Comments.
15690         * m4/printf.m4: Update comments about mingw.
15691
15692 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15693
15694         sys_select: define sigset_t more portably
15695         * lib/sys_select.in.h: Always include <sys/types.h>, since
15696         we now need sigset_t and mingw defines it there.
15697         Include <signal.h> before split inclusion guard, to avoid
15698         mishaps on Solaris, whose <signal.h> eventually includes us.
15699         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15700         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15701         which come from ...
15702         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15703         gl_CHECK_TYPE_SIGSET_T.
15704         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15705         does the real work.
15706         * modules/sys_select (Depends-on): Add 'signal'.
15707
15708         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15709         Suggested by Bruno Haible.
15710
15711         pselect: Use pthread_sigmask, not sigprocmask.
15712         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15713         multithreaded apps better than sigprocmask does.
15714         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15715         sigprocmask directly.
15716
15717 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15718
15719         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15720         Don't #undef,  since we don't need any underlying pselect.
15721         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15722         (Depends-on): Add select.
15723         (Link): Add $(LIBSOCKET).
15724         These changes suggested by Bruno Haible.
15725
15726         pselect: document better
15727         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15728         * doc/posix-functions/pselect.texi (pselect): Document new module.
15729
15730         pthread_sigmask: new module
15731         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15732         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15733         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15734         This is done only as a macro; I don't know how well that'll
15735         work for C++.  Move <sys/types.h> include before the include_next,
15736         to avoid mishap on Solaris.
15737         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15738         * modules/signal (Makefile.am): Substitute the check's results.
15739         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15740
15741         test-pselect: new module
15742         * modules/pselect-tests, tests/test-pselect.c: New files.
15743         * tests/test-select.c, tests/test-sys_select-c++.cc:
15744         If TEST_PSELECT is defined, test pselect instead of testing select.
15745
15746         * tests/test-sys_select.c (sigset_t): Test for it, too.
15747         Suggested by Bruno Haible.
15748
15749 2011-07-05  Eric Blake  <eblake@redhat.com>
15750
15751         snprintf: guarantee %1$d, for libintl
15752         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15753         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15754         * doc/posix-functions/snprintf.texi (snprintf): Update.
15755         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15756         * tests/test-snprintf.c (main): Enhance test.
15757         * tests/test-vsnprintf.c (main): Likewise.
15758
15759 2011-07-05  Jim Meyering  <meyering@redhat.com>
15760
15761         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15762         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15763         per Bruno's request, to accommodate this idiom (no space after "#")
15764         even when the function is inside an #if block:
15765         char *
15766         gets (char *s)
15767         #undef gets
15768         {
15769           ...
15770         }
15771
15772 2011-07-04  Jim Meyering  <meyering@redhat.com>
15773
15774         maint: indent with spaces, not TABs, and add a rule to check this
15775         * tests/test-userspec.c: Indent with spaces, not TABs.
15776         * tests/test-argp.c: Likewise.
15777         * tests/test-c-stack2.sh: Likewise.
15778         * tests/test-parse-duration.sh: Likewise
15779         * m4/strtod.m4: Likewise.
15780         * m4/alloca.m4: Likewise.
15781         * m4/pselect.m4: Likewise.
15782         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15783
15784 2011-07-03  Jim Meyering  <meyering@redhat.com>
15785
15786         maint.mk: correct omissions in prohibit_argmatch_without_use check
15787         This rule would mistakenly report that argmatch.h is included without
15788         use even when both the argmatch and invalid_arg macro were used.
15789         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15790         of argmatch and invalid_arg.
15791
15792 2011-07-03  Bruno Haible  <bruno@clisp.org>
15793
15794         Comments about EINTR.
15795         * lib/safe-read.h: Explain the purpose of this module.
15796         * lib/safe-write.h: Likewise.
15797         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15798         module.
15799         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15800         module.
15801         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15802
15803 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15804
15805         xnanosleep: Rewrite to use new dtotimespec module.
15806         It has the conversion code that used to be in xnanosleep.
15807         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15808         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15809         (TIME_T_MAX): Remove.
15810         (xnanosleep): Rewrite in terms of dtotimespec.
15811         * modules/xnanosleep (Depends-on): Add dtotimespec.
15812         Remove intprops, stdbool.
15813
15814         timespec-add, timespec-sub: new modules
15815         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15816         * lib/timespec-add.c, lib/timespec-sub.c:
15817         * modules/timespec-add, modules/timespec-sub: New files.
15818
15819         dtotimespec: new module
15820         * lib/timespec.h (dtotimespec): New decl.
15821         * lib/dtotimespec.c, modules/dtotimespec: New files.
15822
15823         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15824
15825         pselect: new module
15826         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15827         (pselect): New decls.
15828         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15829         since the standard pselect decl uses 'restrict'.
15830         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15831         HAVE_PSELECT, REPLACE_PSELECT.
15832         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15833         HAVE_PSELECT, REPLACE_PSELECT.
15834         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15835
15836         sys_select: don't depend on sys_socket
15837         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15839         This fix works on GNU and GNU-like platforms, but has not been tested
15840         on native Windows.
15841         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15842         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15843         gl_HEADER_SYS_SOCKET.
15844         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15845         gl_PREREQ_SYS_H_WINSOCK2.
15846
15847 2011-06-29  Eric Blake  <eblake@redhat.com>
15848
15849         pipe2: fix C89 compile problem
15850         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15851         Reported by Bruno Haible.
15852
15853         pipe, pipe2: don't corrupt fd on error
15854         * lib/pipe.c (pipe): Leave fd unchanged on error.
15855         * lib/pipe2.c (pipe2): Likewise.
15856         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15857         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15858
15859 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15860
15861         mmap-anon: do not use regular expressions inadvertently
15862         * m4/mmap-anon.m4: Remove trailing period from strings sought
15863         in the output.
15864
15865 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15866
15867         nanosleep: fix integer overflow problem
15868         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15869         arithmetic wraps around on overflow.
15870
15871         nanosleep: simplify carrying
15872         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15873         first call to the underyling nanosleep, not for the last one.
15874         This doesn't fix any bugs, but it simplifies the computation of
15875         the remaining delay.  Found while auditing integer overflow issues.
15876
15877         dup2: remove test for existence of fcntl
15878         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15879         "#if HAVE_FCNTL", in the configure-time test program.
15880         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15881         and therefore speeds up "configure" a bit.  Found while
15882         adding the dup2 module to Emacs.
15883
15884 2011-06-24  Eric Blake  <eblake@redhat.com>
15885
15886         maint.mk: enhance useless header checks
15887         * top/maint.mk (_sc_header_without_use): Check both include
15888         styles.
15889         (sc_prohibit_assert_without_use)
15890         (sc_prohibit_close_stream_without_use)
15891         (sc_prohibit_getopt_without_use)
15892         (sc_prohibit_quotearg_without_use)
15893         (sc_prohibit_quote_without_use)
15894         (sc_prohibit_long_options_without_use)
15895         (sc_prohibit_inttostr_without_use)
15896         (sc_prohibit_ignore_value_without_use)
15897         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15898         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15899         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15900         (sc_prohibit_hash_pjw_without_use)
15901         (sc_prohibit_safe_read_without_use)
15902         (sc_prohibit_argmatch_without_use)
15903         (sc_prohibit_canonicalize_without_use)
15904         (sc_prohibit_root_dev_ino_without_use)
15905         (sc_prohibit_openat_without_use)
15906         (sc_prohibit_c_ctype_without_use)
15907         (sc_prohibit_signal_without_use)
15908         (sc_prohibit_stdio--_without_use)
15909         (sc_prohibit_stdio-safer_without_use)
15910         (sc_prohibit_strings_without_use)
15911         (sc_prohibit_intprops_without_use)
15912         (sc_prohibit_stddef_without_use)
15913         (sc_prohibit_xfreopen_without_use): Update clients.
15914
15915 2011-06-24  Jim Meyering  <meyering@redhat.com>
15916
15917         syntax-check: keep one maint.mk rule in sync with its header
15918         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15919         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15920         I prefer to avoid temporary files here, so use <(...), but that
15921         is not supported by /bin/sh, so...
15922         (SHELL): Define to /bin/bash.
15923
15924 2011-06-24  Eric Blake  <eblake@redhat.com>
15925
15926         maint.mk: update sc_prohibit_intprops_without_use
15927         * top/maint.mk (_intprops_names): Match recent changes.
15928
15929 2011-06-24  Bruno Haible  <bruno@clisp.org>
15930
15931         strerror-override: No-op tweak.
15932         * lib/strerror-override.h (strerror_override): Reorder conditions,
15933         for consistency with lib/strerror-override.c.
15934
15935 2011-06-23  Eric Blake  <eblake@redhat.com>
15936
15937         maint.mk: test further PATH_MAX issues
15938         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15939         (sc_prohibit_path_max_allocation): ...and also test alloca.
15940         Suggested by Jim Meyering.
15941
15942 2011-06-22  Eric Blake  <eblake@redhat.com>
15943
15944         maint.mk: add syntax-check to avoid char[PATH_MAX]
15945         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15946
15947         stat: be robust to PATH_MAX definition
15948         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15949         * modules/stat (Depends-on): Add verify.
15950
15951         link: work around IRIX bug
15952         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15953         * lib/link.c (rpl_link): Work around it.
15954         * tests/test-link.h (test_link): Enhance test.
15955         * doc/posix-functions/link.texi (link): Document the bug.
15956
15957         getopt: silence clang warning
15958         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15959         dereference.
15960         Reported by Gustavo Martin Domato.
15961
15962 2011-06-22  Jim Meyering  <meyering@redhat.com>
15963
15964         bootstrap: do not insert a blank line into each .gitignore file
15965         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15966
15967 2011-06-21  Eric Blake  <eblake@redhat.com>
15968
15969         perror: test for output mismatch
15970         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15971         perror on IRIX.
15972
15973         strerror_r: fix OpenBSD behavior on out-of-range
15974         * lib/strerror_r.c (strerror_r): Always use maximal string.
15975         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15976
15977         strerror_r: fix OpenBSD behavior on 0
15978         * lib/strerror-override.c (strerror_override): Also override 0
15979         when needed.
15980         * lib/strerror-override.h (strerror_override): Likewise.
15981         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15982         earlier.
15983         * lib/strerror_r.c (strerror_r): Likewise.
15984         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15985         behavior...
15986         (gl_FUNC_STRERROR_0): ...into new macro.
15987         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15988         is overridden.
15989         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15990         * modules/strerror-override (Files): Add strerror.m4.
15991         (configure.ac): Also provide override for 0 when needed.
15992         * doc/posix-functions/strerror.texi (strerror): Document this.
15993         * doc/posix-functions/perror.texi (perror): Likewise.
15994
15995         perror: adjust array size
15996         * modules/perror (Depends-on): Add strerror-override.
15997         * lib/perror.c (perror): Use it to avoid magic number.
15998
15999         strerror-override: reduce size
16000         * lib/strerror-override.c (strerror_override): Use fewer lines.
16001
16002 2011-06-20  Bruno Haible  <bruno@clisp.org>
16003
16004         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16005         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16006
16007 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16008
16009         alloca: port to compilers that can optimize like GCC 4.6.0
16010         * lib/alloca.c (find_stack_direction): New signature, taken from
16011         Autoconf git.  This works with GCC 4.6.0.  This code should never
16012         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16013         be used with other compilers that optimize as well as GCC 4.6.0 does.
16014         (alloca): Adjust to new signature.
16015         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16016         New macro, which patches Autoconf in a similar way.
16017
16018         c-stack: stop worrying about stack direction
16019         * lib/c-stack.c (find_stack_direction): Remove.
16020         (segv_handler): Don't worry about stack direction growth, as it's
16021         too much of a pain to configure this correctly, given how compilers
16022         are optimizing-away our stack-growth detection code.  Instead, assume
16023         that any access to just before or just after the stack is OK.
16024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16025         Don't require AC_FUNC_ALLOCA; no longer needed.
16026
16027 2011-06-20  Eric Blake  <eblake@redhat.com>
16028
16029         test-stat: don't allocate PATH_MAX bytes
16030         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16031         PATH_MAX-sized buffer.
16032         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16033         * modules/stat-tests (Depends-on): Likewise.
16034         * tests/test-fstatat.c (includes): Drop pathmax.h.
16035         * tests/test-stat.c (includes): Likewise.
16036         Reported by Bruno Haible.
16037
16038 2011-06-20  Bruno Haible  <bruno@clisp.org>
16039
16040         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16041         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16042         * lib/float.c: New file.
16043         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16044         REPLACE_FLOAT_LDBL.
16045         * modules/float (Files): Add lib/float.c.
16046         (configure.ac): Invoke AC_LIBOBJ.
16047         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16048
16049 2011-06-20  Bruno Haible  <bruno@clisp.org>
16050
16051         Tests for module 'float'.
16052         * modules/float-tests: New file.
16053         * tests/test-float.c: New file.
16054
16055 2011-06-19  Bruno Haible  <bruno@clisp.org>
16056
16057         isinf: Coding style.
16058         * lib/isinf.c: Use GNU coding style.
16059
16060 2011-06-19  Bruno Haible  <bruno@clisp.org>
16061
16062         linkat test: Avoid test failure on AIX 7.1.
16063         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16064         * tests/test-link.h (test_link): Likewise.
16065
16066 2011-06-19  Bruno Haible  <bruno@clisp.org>
16067
16068         pread test: Avoid test failure on OpenBSD 4.9.
16069         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16070
16071 2011-06-19  Bruno Haible  <bruno@clisp.org>
16072
16073         sprintf-posix: Fix test failure on AIX 7.1.
16074         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16075         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16076         on AIX.
16077         * doc/posix-functions/fprintf.texi: Likewise.
16078         * doc/posix-functions/printf.texi: Likewise.
16079         * doc/posix-functions/snprintf.texi: Likewise.
16080         * doc/posix-functions/sprintf.texi: Likewise.
16081         * doc/posix-functions/vdprintf.texi: Likewise.
16082         * doc/posix-functions/vfprintf.texi: Likewise.
16083         * doc/posix-functions/vprintf.texi: Likewise.
16084         * doc/posix-functions/vsnprintf.texi: Likewise.
16085         * doc/posix-functions/vsprintf.texi: Likewise.
16086
16087 2011-06-19  Bruno Haible  <bruno@clisp.org>
16088
16089         roundl-ieee: Fix test failure on AIX 7.1.
16090         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16091         * doc/posix-functions/roundl.texi: Mention problem with negative
16092         arguments.
16093
16094 2011-06-19  Bruno Haible  <bruno@clisp.org>
16095
16096         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16097         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16098         * doc/posix-functions/round.texi: Mention problem with negative
16099         arguments.
16100         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16101
16102 2011-06-19  Bruno Haible  <bruno@clisp.org>
16103
16104         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16105         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16106         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16107         * doc/posix-functions/roundf.texi: Mention problem with negative
16108         arguments.
16109         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16110
16111 2011-06-19  Bruno Haible  <bruno@clisp.org>
16112
16113         ceilf-ieee: Work around bug on MacOS X 10.5.
16114         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16115
16116         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16117         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16118         IEEE compliant, avoid compiler optimizations.
16119         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16120         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16121         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16122         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16123         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16124         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16125         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16126         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16127         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16128         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16129
16130 2011-06-19  Bruno Haible  <bruno@clisp.org>
16131
16132         ceilf-ieee: Work around bug on AIX 7.1.
16133         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16134         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16135
16136 2011-06-19  Bruno Haible  <bruno@clisp.org>
16137
16138         ceil-ieee: Work around bug on AIX 7.1.
16139         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16140         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16141
16142 2011-06-18  Bruno Haible  <bruno@clisp.org>
16143
16144         fsync test: Avoid test failure on MacOS X and AIX.
16145         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16146         EINVAL.
16147
16148 2011-06-18  Bruno Haible  <bruno@clisp.org>
16149
16150         openat, fdopendir tests: Fix link errors.
16151         * modules/openat-tests (Depends-on): Add progname.
16152         * modules/fdopendir-tests (Depends-on): Likewise.
16153         * tests/test-fchownat.c: Include progname.h.
16154         (main): Call set_program_name.
16155         * tests/test-fstatat.c: Include progname.h.
16156         (main): Call set_program_name.
16157         * tests/test-mkdirat.c: Include progname.h.
16158         (main): Call set_program_name.
16159         * tests/test-openat.c: Include progname.h.
16160         (main): Call set_program_name.
16161         * tests/test-unlinkat.c: Include progname.h.
16162         (main): Call set_program_name.
16163         * tests/test-fdopendir.c: Include progname.h.
16164         (main): Call set_program_name.
16165
16166 2011-06-18  Bruno Haible  <bruno@clisp.org>
16167
16168         Doc update.
16169         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16170         HP-UX.
16171         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16172
16173 2011-06-18  Bruno Haible  <bruno@clisp.org>
16174
16175         getcwd tests: Avoid compilation error on HP-UX 11.31.
16176         * modules/getcwd-tests (Depends-on): Add pathmax.
16177         * tests/test-getcwd.c: Include pathmax.h.
16178
16179 2011-06-18  Bruno Haible  <bruno@clisp.org>
16180
16181         isfinite, isinf: Fix link error on AIX 6 and 7.
16182         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16183         needed, also test the macro with a 'float' argument.
16184         * m4/isinf.m4 (gl_ISINF): Likewise.
16185
16186 2011-06-18  Bruno Haible  <bruno@clisp.org>
16187
16188         getloadavg: Don't clobber LIBS. Regression from previous commit.
16189         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16190         AC_CHECK_LIB from here...
16191         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16192         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16193         gl_func_getloadavg_done.
16194         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16195
16196 2011-06-18  Bruno Haible  <bruno@clisp.org>
16197
16198         clean-temp: Improve documentation.
16199         * lib/clean-temp.h: Explain better how to use this module.
16200         Reported by John Darrington <john@darrington.wattle.id.au>.
16201
16202 2011-06-17  Bruno Haible  <bruno@clisp.org>
16203
16204         pread, pwrite: Avoid cc warning on AIX.
16205         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16206         (pwrite): Likewise.
16207
16208 2011-06-17  Bruno Haible  <bruno@clisp.org>
16209
16210         spawn-pipe tests: Fix link error.
16211         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16213
16214 2011-06-17  Bruno Haible  <bruno@clisp.org>
16215
16216         Tests: Remove unnecessary dependency.
16217         * modules/canonicalize-tests (Depends-on): Remove progname.
16218         * modules/chown-tests (Depends-on): Likewise.
16219         * modules/dirname-tests (Depends-on): Likewise.
16220         * modules/fdopendir-tests (Depends-on): Likewise.
16221         * modules/fdutimensat-tests (Depends-on): Likewise.
16222         * modules/hash-tests (Depends-on): Likewise.
16223         * modules/lchown-tests (Depends-on): Likewise.
16224         * modules/linkat-tests (Depends-on): Likewise.
16225         * modules/renameat-tests (Depends-on): Likewise.
16226         * modules/spawn-pipe-tests (Depends-on): Likewise.
16227         * modules/utimensat-tests (Depends-on): Likewise.
16228
16229 2011-06-17  Bruno Haible  <bruno@clisp.org>
16230
16231         spawn-pipe tests: Fix link error.
16232         * tests/test-spawn-pipe-child.c: Undefine fflush.
16233
16234 2011-06-17  Bruno Haible  <bruno@clisp.org>
16235
16236         Fix tests link errors.
16237         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16238         * modules/chown-tests (Makefile.am): Don't link test-chown with
16239         LIBINTL.
16240         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16241         LIBINTL.
16242         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16243         LIBINTL.
16244         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16245         LIBINTL.
16246
16247 2011-06-16  Bruno Haible  <bruno@clisp.org>
16248
16249         crypto/gc-sha1: Fix recent regression.
16250         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16251         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16252
16253         crypto/gc-md5: Fix recent regression.
16254         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16255
16256         crypto/gc-md4: Fix recent regression.
16257         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16258         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16259
16260         crypto/gc-arctwo: Fix recent regression.
16261         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16262         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16263
16264         crypto/gc-rijndael: Fix recent regression.
16265         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16266         (configure.ac): Invoke AC_LIBOBJ here.
16267         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16269
16270         crypto/gc-hmac-sha1: Fix recent regression.
16271         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16272         (configure.ac): Invoke AC_LIBOBJ here.
16273         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16274         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16275
16276         crypto/gc-hmac-md5: Fix recent regression.
16277         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16278         (configure.ac): Invoke AC_LIBOBJ here.
16279         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16281
16282         crypto/gc-des: Fix recent regression.
16283         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16284         (configure.ac): Invoke AC_LIBOBJ here.
16285         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16286         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16287
16288         crypto/gc-arcfour: Fix recent regression.
16289         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16290         (configure.ac): Invoke AC_LIBOBJ here.
16291         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16293
16294 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16295
16296         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16297         After the 2011-05-21 change, this macro requires
16298         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16299         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16300
16301 2011-06-16  Bruno Haible  <bruno@clisp.org>
16302
16303         fprintftime: Move AC_LIBOBJ invocations to module description.
16304         * m4/fprintftime.m4: Remove file.
16305         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16306         (configure.ac): Remove gl_FPRINTFTIME call.
16307         (Makefile.am): Augment lib_SOURCES.
16308         Reported by Jim Meyering.
16309
16310 2011-06-16  Bruno Haible  <bruno@clisp.org>
16311
16312         tmpfile-safer: Finish 2011-05-23 commit.
16313         * m4/stdio-safer.m4: Really remove file.
16314         Reported by Jim Meyering.
16315
16316 2011-06-16  Bruno Haible  <bruno@clisp.org>
16317
16318         syntax-check: Fix typo.
16319         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16320         printf-posix.m4.
16321         Reported by Jim Meyering.
16322
16323 2011-06-13  Jim Meyering  <meyering@redhat.com>
16324
16325         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16326         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16327
16328 2011-05-23  Bruno Haible  <bruno@clisp.org>
16329
16330         yesno: Move AC_LIBOBJ invocations to module description.
16331         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16332         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16333
16334 2011-05-23  Bruno Haible  <bruno@clisp.org>
16335
16336         xstrtol: Move AC_LIBOBJ invocations to module description.
16337         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16338         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16339
16340 2011-05-23  Bruno Haible  <bruno@clisp.org>
16341
16342         xstrtold: Move AC_LIBOBJ invocations to module description.
16343         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16344         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16345
16346 2011-05-23  Bruno Haible  <bruno@clisp.org>
16347
16348         xstrtod: Move AC_LIBOBJ invocations to module description.
16349         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16350         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16351
16352 2011-05-23  Bruno Haible  <bruno@clisp.org>
16353
16354         xnanosleep: Move AC_LIBOBJ invocations to module description.
16355         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16356         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16357
16358 2011-05-23  Bruno Haible  <bruno@clisp.org>
16359
16360         xgetcwd: Move AC_LIBOBJ invocations to module description.
16361         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16362         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16363
16364 2011-05-23  Bruno Haible  <bruno@clisp.org>
16365
16366         xalloc: Move AC_LIBOBJ invocations to module description.
16367         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16368         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16369
16370 2011-05-23  Bruno Haible  <bruno@clisp.org>
16371
16372         write-any-file: Move AC_LIBOBJ invocations to module description.
16373         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16374         invocation.
16375         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16376
16377 2011-05-23  Bruno Haible  <bruno@clisp.org>
16378
16379         utimens: Move AC_LIBOBJ invocations to module description.
16380         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16381         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16382
16383 2011-05-23  Bruno Haible  <bruno@clisp.org>
16384
16385         utimecmp: Move AC_LIBOBJ invocations to module description.
16386         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16387         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16388
16389 2011-05-23  Bruno Haible  <bruno@clisp.org>
16390
16391         userspec: Move AC_LIBOBJ invocations to module description.
16392         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16393         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16394
16395 2011-05-23  Bruno Haible  <bruno@clisp.org>
16396
16397         unlinkdir: Move AC_LIBOBJ invocations to module description.
16398         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16399         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16400
16401 2011-05-23  Bruno Haible  <bruno@clisp.org>
16402
16403         unistd-safer: Move AC_LIBOBJ invocations to module description.
16404         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16405         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16406
16407 2011-05-23  Bruno Haible  <bruno@clisp.org>
16408
16409         tempname: Move AC_LIBOBJ invocations to module description.
16410         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16411         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16412
16413 2011-05-23  Bruno Haible  <bruno@clisp.org>
16414
16415         strftime: Move AC_LIBOBJ invocations to module description.
16416         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16417         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16418
16419 2011-05-23  Bruno Haible  <bruno@clisp.org>
16420
16421         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16422         * m4/stdlib-safer.m4: Remove file.
16423         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16424         (configure.ac): Remove gl_STDLIB_SAFER call.
16425         (Makefile.am): Augment lib_SOURCES.
16426
16427 2011-05-23  Bruno Haible  <bruno@clisp.org>
16428
16429         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16430         * m4/stdio-safer.m4: Remove file.
16431         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16432         (configure.ac): Remove gl_TMPFILE_SAFER call.
16433         (Makefile.am): Augment lib_SOURCES.
16434
16435 2011-05-23  Bruno Haible  <bruno@clisp.org>
16436
16437         popen-safer: Move AC_LIBOBJ invocations to module description.
16438         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16439         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16440         (configure.ac): Remove gl_POPEN_SAFER call.
16441         (Makefile.am): Augment lib_SOURCES.
16442
16443 2011-05-23  Bruno Haible  <bruno@clisp.org>
16444
16445         freopen-safer: Move AC_LIBOBJ invocations to module description.
16446         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16447         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16448         (configure.ac): Remove gl_FREOPEN_SAFER call.
16449         (Makefile.am): Augment lib_SOURCES.
16450
16451 2011-05-23  Bruno Haible  <bruno@clisp.org>
16452
16453         fopen-safer: Move AC_LIBOBJ invocations to module description.
16454         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16455         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16456         (configure.ac): Remove gl_FOPEN_SAFER call.
16457         (Makefile.am): Augment lib_SOURCES.
16458
16459 2011-05-23  Bruno Haible  <bruno@clisp.org>
16460
16461         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16462         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16463         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16464
16465 2011-05-23  Bruno Haible  <bruno@clisp.org>
16466
16467         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16468         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16469         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16470
16471 2011-05-23  Bruno Haible  <bruno@clisp.org>
16472
16473         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16474         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16475         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16476
16477 2011-05-23  Bruno Haible  <bruno@clisp.org>
16478
16479         settime: Move AC_LIBOBJ invocations to module description.
16480         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16481         * modules/settime (Makefile.am): Augment lib_SOURCES.
16482
16483 2011-05-23  Bruno Haible  <bruno@clisp.org>
16484
16485         savedir: Move AC_LIBOBJ invocations to module description.
16486         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16487         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16488
16489 2011-05-23  Bruno Haible  <bruno@clisp.org>
16490
16491         save-cwd: Move AC_LIBOBJ invocations to module description.
16492         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16493         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16494
16495 2011-05-23  Bruno Haible  <bruno@clisp.org>
16496
16497         same: Move AC_LIBOBJ invocations to module description.
16498         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16499         * modules/same (Makefile.am): Augment lib_SOURCES.
16500
16501 2011-05-23  Bruno Haible  <bruno@clisp.org>
16502
16503         safe-write: Move AC_LIBOBJ invocations to module description.
16504         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16505         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16506         instead of gl_SAFE_WRITE.
16507         (Makefile.am): Augment lib_SOURCES.
16508
16509 2011-05-23  Bruno Haible  <bruno@clisp.org>
16510
16511         safe-read: Move AC_LIBOBJ invocations to module description.
16512         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16513         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16514         of gl_SAFE_READ.
16515         (Makefile.am): Augment lib_SOURCES.
16516
16517 2011-05-23  Bruno Haible  <bruno@clisp.org>
16518
16519         safe-alloc: Move AC_LIBOBJ invocations to module description.
16520         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16521         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16522
16523 2011-05-23  Bruno Haible  <bruno@clisp.org>
16524
16525         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16526         * m4/rijndael.m4: Remove file.
16527         * modules/crypto/rijndael (Files): Remove it.
16528         (configure.ac): Remove gl_RIJNDAEL call.
16529         (Makefile.am): Augment lib_SOURCES.
16530
16531 2011-05-23  Bruno Haible  <bruno@clisp.org>
16532
16533         readtokens: Move AC_LIBOBJ invocations to module description.
16534         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16535         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16536
16537 2011-05-23  Bruno Haible  <bruno@clisp.org>
16538
16539         read-file: Move AC_LIBOBJ invocations to module description.
16540         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16541         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16542         of gl_FUNC_READ_FILE.
16543         (Makefile.am): Augment lib_SOURCES.
16544
16545 2011-05-23  Bruno Haible  <bruno@clisp.org>
16546
16547         quotearg: Move AC_LIBOBJ invocations to module description.
16548         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16549         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16550
16551 2011-05-23  Bruno Haible  <bruno@clisp.org>
16552
16553         quote: Move AC_LIBOBJ invocations to module description.
16554         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16555         * modules/quote (Makefile.am): Augment lib_SOURCES.
16556
16557 2011-05-23  Bruno Haible  <bruno@clisp.org>
16558
16559         posixver: Move AC_LIBOBJ invocations to module description.
16560         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16561         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16562
16563 2011-05-23  Bruno Haible  <bruno@clisp.org>
16564
16565         posixtm: Move AC_LIBOBJ invocations to module description.
16566         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16567         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16568
16569 2011-05-23  Bruno Haible  <bruno@clisp.org>
16570
16571         physmem: Move AC_LIBOBJ invocations to module description.
16572         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16573         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16574
16575 2011-05-23  Bruno Haible  <bruno@clisp.org>
16576
16577         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16578         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16579         invocation.
16580         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16581
16582 2011-05-23  Bruno Haible  <bruno@clisp.org>
16583
16584         mpsort: Move AC_LIBOBJ invocations to module description.
16585         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16586         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16587
16588 2011-05-23  Bruno Haible  <bruno@clisp.org>
16589
16590         modechange: Move AC_LIBOBJ invocations to module description.
16591         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16592         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16593
16594 2011-05-23  Bruno Haible  <bruno@clisp.org>
16595
16596         mkdir-p: Move AC_LIBOBJ invocations to module description.
16597         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16598         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16599
16600 2011-05-23  Bruno Haible  <bruno@clisp.org>
16601
16602         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16603         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16604         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16605
16606 2011-05-23  Bruno Haible  <bruno@clisp.org>
16607
16608         mgetgroups: Move AC_LIBOBJ invocations to module description.
16609         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16610         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16611
16612 2011-05-23  Bruno Haible  <bruno@clisp.org>
16613
16614         memxor: Move AC_LIBOBJ invocations to module description.
16615         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16616         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16617
16618 2011-05-23  Bruno Haible  <bruno@clisp.org>
16619
16620         memcoll: Move AC_LIBOBJ invocations to module description.
16621         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16622         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16623
16624 2011-05-23  Bruno Haible  <bruno@clisp.org>
16625
16626         memcasecmp: Move AC_LIBOBJ invocations to module description.
16627         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16628         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16629
16630 2011-05-23  Bruno Haible  <bruno@clisp.org>
16631
16632         crypto/md5: Move AC_LIBOBJ invocations to module description.
16633         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16634         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16635
16636 2011-05-23  Bruno Haible  <bruno@clisp.org>
16637
16638         crypto/md4: Move AC_LIBOBJ invocations to module description.
16639         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16640         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16641
16642 2011-05-23  Bruno Haible  <bruno@clisp.org>
16643
16644         crypto/md2: Move AC_LIBOBJ invocations to module description.
16645         * m4/md2.m4: Remove file.
16646         * modules/crypto/md2 (Files): Remove it.
16647         (configure.ac): Remove gl_MD2 call.
16648         (Makefile.am): Augment lib_SOURCES.
16649
16650 2011-05-23  Bruno Haible  <bruno@clisp.org>
16651
16652         long-options: Move AC_LIBOBJ invocations to module description.
16653         * m4/long-options.m4: Remove file.
16654         * modules/long-options (Files): Remove it.
16655         (configure.ac): Remove gl_LONG_OPTIONS call.
16656         (Makefile.am): Augment lib_SOURCES.
16657
16658 2011-05-23  Bruno Haible  <bruno@clisp.org>
16659
16660         i-ring: Move AC_LIBOBJ invocations to module description.
16661         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16662         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16663
16664 2011-05-23  Bruno Haible  <bruno@clisp.org>
16665
16666         idcache: Move AC_LIBOBJ invocations to module description.
16667         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16668         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16669
16670 2011-05-23  Bruno Haible  <bruno@clisp.org>
16671
16672         human: Move AC_LIBOBJ invocations to module description.
16673         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16674         * modules/human (Makefile.am): Augment lib_SOURCES.
16675
16676 2011-05-23  Bruno Haible  <bruno@clisp.org>
16677
16678         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16679         * m4/hmac-sha1.m4: Remove file.
16680         * modules/crypto/hmac-sha1 (Files): Remove it.
16681         (configure.ac): Remove gl_HMAC_SHA1 call.
16682         (Makefile.am): Augment lib_SOURCES.
16683
16684 2011-05-23  Bruno Haible  <bruno@clisp.org>
16685
16686         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16687         * m4/hmac-md5.m4: Remove file.
16688         * modules/crypto/hmac-md5 (Files): Remove it.
16689         (configure.ac): Remove gl_HMAC_MD5 call.
16690         (Makefile.am): Augment lib_SOURCES.
16691
16692 2011-05-23  Bruno Haible  <bruno@clisp.org>
16693
16694         hash: Move AC_LIBOBJ invocations to module description.
16695         * m4/hash.m4: Remove file.
16696         * modules/hash (Files): Remove it.
16697         (configure.ac): Remove gl_HASH call.
16698         (Makefile.am): Augment lib_SOURCES.
16699
16700 2011-05-23  Bruno Haible  <bruno@clisp.org>
16701
16702         hard-locale: Move AC_LIBOBJ invocations to module description.
16703         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16704         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16705
16706 2011-05-23  Bruno Haible  <bruno@clisp.org>
16707
16708         getugroups: Move AC_LIBOBJ invocations to module description.
16709         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16710         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16711
16712 2011-05-23  Bruno Haible  <bruno@clisp.org>
16713
16714         gettime: Move AC_LIBOBJ invocations to module description.
16715         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16716         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16717
16718 2011-05-23  Bruno Haible  <bruno@clisp.org>
16719
16720         getndelim2: Move AC_LIBOBJ invocations to module description.
16721         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16722         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16723
16724 2011-05-23  Bruno Haible  <bruno@clisp.org>
16725
16726         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16727         * m4/gc-pbkdf2-sha1.m4: Remove file.
16728         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16729         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16730         (Makefile.am): Augment lib_SOURCES.
16731
16732 2011-05-23  Bruno Haible  <bruno@clisp.org>
16733
16734         fts: Move AC_LIBOBJ invocations to module description.
16735         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16736         * modules/fts (configure.ac): ... to here.
16737
16738 2011-05-23  Bruno Haible  <bruno@clisp.org>
16739
16740         file-type: Move AC_LIBOBJ invocations to module description.
16741         * m4/file-type.m4: Remove file.
16742         * modules/file-type (Files): Remove it.
16743         (configure.ac): Remove gl_FILE_TYPE call.
16744         (Makefile.am): Augment lib_SOURCES.
16745
16746 2011-05-23  Bruno Haible  <bruno@clisp.org>
16747
16748         filenamecat*: Respect rules for use of AC_LIBOBJ.
16749         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16750         Remove AC_LIBOBJ invocation.
16751         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16752         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16753
16754 2011-05-23  Bruno Haible  <bruno@clisp.org>
16755
16756         filemode: Move AC_LIBOBJ invocations to module description.
16757         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16758         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16759
16760 2011-05-23  Bruno Haible  <bruno@clisp.org>
16761
16762         openat-safer: Move AC_LIBOBJ invocations to module description.
16763         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16764         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16765
16766 2011-05-23  Bruno Haible  <bruno@clisp.org>
16767
16768         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16769         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16770         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16771
16772 2011-05-23  Bruno Haible  <bruno@clisp.org>
16773
16774         exclude: Move AC_LIBOBJ invocations to module description.
16775         * m4/exclude.m4: Remove file.
16776         * modules/exclude (Files): Remove it.
16777         (configure.ac): Remove gl_EXCLUDE call.
16778         (Makefile.am): Augment lib_SOURCES.
16779
16780 2011-05-23  Bruno Haible  <bruno@clisp.org>
16781
16782         dirname*: Respect rules for use of AC_LIBOBJ.
16783         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16784         invocations.
16785         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16786         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16787
16788 2011-05-23  Bruno Haible  <bruno@clisp.org>
16789
16790         dirent-safer: Move AC_LIBOBJ invocations to module description.
16791         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16792         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16793
16794 2011-05-23  Bruno Haible  <bruno@clisp.org>
16795
16796         crypto/des: Move AC_LIBOBJ invocations to module description.
16797         * m4/des.m4: Remove file.
16798         * modules/crypto/des (Files): Remove it.
16799         (configure.ac): Remove gl_DES call.
16800         (Makefile.am): Augment lib_SOURCES.
16801
16802 2011-05-23  Bruno Haible  <bruno@clisp.org>
16803
16804         cycle-check: Move AC_LIBOBJ invocations to module description.
16805         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16806         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16807
16808 2011-05-23  Bruno Haible  <bruno@clisp.org>
16809
16810         c-strtold: Move AC_LIBOBJ invocations to module description.
16811         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16812         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16813
16814 2011-05-23  Bruno Haible  <bruno@clisp.org>
16815
16816         c-strtod: Move AC_LIBOBJ invocations to module description.
16817         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16818         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16819
16820 2011-05-23  Bruno Haible  <bruno@clisp.org>
16821
16822         crc: Move AC_LIBOBJ invocations to module description.
16823         * m4/crc.m4: Remove file.
16824         * modules/crc (Files): Remove it.
16825         (configure.ac): Remove gl_CRC call.
16826         (Makefile.am): Augment lib_SOURCES.
16827
16828 2011-05-23  Bruno Haible  <bruno@clisp.org>
16829
16830         close-stream: Move AC_LIBOBJ invocations to module description.
16831         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16832         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16833
16834 2011-05-23  Bruno Haible  <bruno@clisp.org>
16835
16836         closeout: Move AC_LIBOBJ invocations to module description.
16837         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16838         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16839
16840 2011-05-23  Bruno Haible  <bruno@clisp.org>
16841
16842         closein: Move AC_LIBOBJ invocations to module description.
16843         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16844         * modules/closein (Makefile.am): Augment lib_SOURCES.
16845
16846 2011-05-23  Bruno Haible  <bruno@clisp.org>
16847
16848         cloexec: Move AC_LIBOBJ invocations to module description.
16849         * m4/cloexec.m4: Remove file.
16850         * modules/cloexec (Files): Remove it.
16851         (configure.ac): Remove gl_CLOEXEC call.
16852         (Makefile.am): Augment lib_SOURCES.
16853
16854 2011-05-23  Bruno Haible  <bruno@clisp.org>
16855
16856         check-version: Move AC_LIBOBJ invocations to module description.
16857         * m4/check-version.m4: Remove file.
16858         * modules/check-version (Files): Remove it.
16859         (configure.ac): Remove gl_CHECK_VERSION call.
16860         (Makefile.am): Augment lib_SOURCES.
16861
16862 2011-05-23  Bruno Haible  <bruno@clisp.org>
16863
16864         chdir-safer: Move AC_LIBOBJ invocations to module description.
16865         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16866         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16867
16868 2011-05-23  Bruno Haible  <bruno@clisp.org>
16869
16870         canonicalize: Move AC_LIBOBJ invocations to module description.
16871         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16872         AC_LIBOBJ invocation.
16873         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16874
16875 2011-05-23  Bruno Haible  <bruno@clisp.org>
16876
16877         canon-host: Move AC_LIBOBJ invocations to module description.
16878         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16879         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16880         instead of gl_CANON_HOST.
16881         (Makefile.am): Augment lib_SOURCES.
16882
16883 2011-05-23  Bruno Haible  <bruno@clisp.org>
16884
16885         backupfile: Move AC_LIBOBJ invocations to module description.
16886         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16887         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16888
16889 2011-05-23  Bruno Haible  <bruno@clisp.org>
16890
16891         argmatch: Move AC_LIBOBJ invocations to module description.
16892         * m4/argmatch.m4: Remove file.
16893         * modules/argmatch (Files): Remove it.
16894         (configure.ac): Remove gl_ARGMATCH call.
16895         (Makefile.am): Augment lib_SOURCES.
16896
16897 2011-05-23  Bruno Haible  <bruno@clisp.org>
16898
16899         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16900         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16901         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16902
16903 2011-05-23  Bruno Haible  <bruno@clisp.org>
16904
16905         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16906         * m4/arcfour.m4: Remove file.
16907         * modules/crypto/arcfour (Files): Remove it.
16908         (configure.ac): Remove gl_ARCFOUR call.
16909         (Makefile.am): Augment lib_SOURCES.
16910
16911 2011-05-22  Bruno Haible  <bruno@clisp.org>
16912
16913         write: Move AC_LIBOBJ invocations to module description.
16914         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16915         * modules/write (configure.ac): ... to here.
16916
16917 2011-05-22  Bruno Haible  <bruno@clisp.org>
16918
16919         wmemset: Move AC_LIBOBJ invocations to module description.
16920         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16921         here...
16922         * modules/wmemset (configure.ac): ... to here.
16923
16924 2011-05-22  Bruno Haible  <bruno@clisp.org>
16925
16926         wmemmove: Move AC_LIBOBJ invocations to module description.
16927         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16928         here...
16929         * modules/wmemmove (configure.ac): ... to here.
16930
16931 2011-05-22  Bruno Haible  <bruno@clisp.org>
16932
16933         wmemcpy: Move AC_LIBOBJ invocations to module description.
16934         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16935         here...
16936         * modules/wmemcpy (configure.ac): ... to here.
16937
16938 2011-05-22  Bruno Haible  <bruno@clisp.org>
16939
16940         wmemcmp: Move AC_LIBOBJ invocations to module description.
16941         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16942         here...
16943         * modules/wmemcmp (configure.ac): ... to here.
16944
16945 2011-05-22  Bruno Haible  <bruno@clisp.org>
16946
16947         wmemchr: Move AC_LIBOBJ invocations to module description.
16948         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16949         here...
16950         * modules/wmemchr (configure.ac): ... to here.
16951
16952 2011-05-22  Bruno Haible  <bruno@clisp.org>
16953
16954         wcswidth: Move AC_LIBOBJ invocations to module description.
16955         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16956         here...
16957         * modules/wcswidth (configure.ac): ... to here.
16958
16959 2011-05-22  Bruno Haible  <bruno@clisp.org>
16960
16961         wcwidth: Respect rules for use of AC_LIBOBJ.
16962         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16963         invocation from here...
16964         * modules/wcwidth (configure.ac): ... to here.
16965         (Depends-on): Update conditions.
16966
16967 2011-05-22  Bruno Haible  <bruno@clisp.org>
16968
16969         wctype: Move AC_LIBOBJ invocations to module description.
16970         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16971         invocation from here...
16972         * modules/wctype (configure.ac): ... to here.
16973         (Depends-on): Update conditions.
16974
16975 2011-05-22  Bruno Haible  <bruno@clisp.org>
16976
16977         wctrans: Move AC_LIBOBJ invocations to module description.
16978         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16979         invocation from here...
16980         * modules/wctrans (configure.ac): ... to here.
16981
16982 2011-05-22  Bruno Haible  <bruno@clisp.org>
16983
16984         wctomb: Move AC_LIBOBJ invocations to module description.
16985         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16986         invocations from here...
16987         * modules/wctomb (configure.ac): ... to here.
16988
16989 2011-05-22  Bruno Haible  <bruno@clisp.org>
16990
16991         wctob: Move AC_LIBOBJ invocations to module description.
16992         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16993         gl_PREREQ_WCTOB invocations from here...
16994         * modules/wctob (configure.ac): ... to here.
16995         (Depends-on): Update conditions.
16996
16997 2011-05-22  Bruno Haible  <bruno@clisp.org>
16998
16999         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17000         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17001         here...
17002         * modules/wcsxfrm (configure.ac): ... to here.
17003
17004 2011-05-22  Bruno Haible  <bruno@clisp.org>
17005
17006         wcstok: Move AC_LIBOBJ invocations to module description.
17007         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17008         * modules/wcstok (configure.ac): ... to here.
17009
17010 2011-05-22  Bruno Haible  <bruno@clisp.org>
17011
17012         wcsstr: Move AC_LIBOBJ invocations to module description.
17013         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17014         * modules/wcsstr (configure.ac): ... to here.
17015
17016 2011-05-22  Bruno Haible  <bruno@clisp.org>
17017
17018         wcsspn: Move AC_LIBOBJ invocations to module description.
17019         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17020         * modules/wcsspn (configure.ac): ... to here.
17021
17022 2011-05-22  Bruno Haible  <bruno@clisp.org>
17023
17024         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17025         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17026         gl_PREREQ_WCSRTOMBS invocations from here...
17027         * modules/wcsrtombs (configure.ac): ... to here.
17028
17029 2011-05-22  Bruno Haible  <bruno@clisp.org>
17030
17031         wcsrchr: Move AC_LIBOBJ invocations to module description.
17032         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17033         here...
17034         * modules/wcsrchr (configure.ac): ... to here.
17035
17036 2011-05-22  Bruno Haible  <bruno@clisp.org>
17037
17038         wcspbrk: Move AC_LIBOBJ invocations to module description.
17039         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17040         here...
17041         * modules/wcspbrk (configure.ac): ... to here.
17042
17043 2011-05-22  Bruno Haible  <bruno@clisp.org>
17044
17045         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17046         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17047         gl_PREREQ_WCSNRTOMBS invocations from here...
17048         * modules/wcsnrtombs (configure.ac): ... to here.
17049
17050 2011-05-22  Bruno Haible  <bruno@clisp.org>
17051
17052         wcsnlen: Move AC_LIBOBJ invocations to module description.
17053         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17054         here...
17055         * modules/wcsnlen (configure.ac): ... to here.
17056
17057 2011-05-22  Bruno Haible  <bruno@clisp.org>
17058
17059         wcsncpy: Move AC_LIBOBJ invocations to module description.
17060         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17061         here...
17062         * modules/wcsncpy (configure.ac): ... to here.
17063
17064 2011-05-22  Bruno Haible  <bruno@clisp.org>
17065
17066         wcsncmp: Move AC_LIBOBJ invocations to module description.
17067         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17068         here...
17069         * modules/wcsncmp (configure.ac): ... to here.
17070
17071 2011-05-22  Bruno Haible  <bruno@clisp.org>
17072
17073         wcsncat: Move AC_LIBOBJ invocations to module description.
17074         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17075         here...
17076         * modules/wcsncat (configure.ac): ... to here.
17077
17078 2011-05-22  Bruno Haible  <bruno@clisp.org>
17079
17080         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17081         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17082         from here...
17083         * modules/wcsncasecmp (configure.ac): ... to here.
17084
17085 2011-05-22  Bruno Haible  <bruno@clisp.org>
17086
17087         wcslen: Move AC_LIBOBJ invocations to module description.
17088         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17089         * modules/wcslen (configure.ac): ... to here.
17090
17091 2011-05-22  Bruno Haible  <bruno@clisp.org>
17092
17093         wcsdup: Move AC_LIBOBJ invocations to module description.
17094         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17095         * modules/wcsdup (configure.ac): ... to here.
17096
17097 2011-05-22  Bruno Haible  <bruno@clisp.org>
17098
17099         wcscspn: Move AC_LIBOBJ invocations to module description.
17100         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17101         here...
17102         * modules/wcscspn (configure.ac): ... to here.
17103
17104 2011-05-22  Bruno Haible  <bruno@clisp.org>
17105
17106         wcscpy: Move AC_LIBOBJ invocations to module description.
17107         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17108         * modules/wcscpy (configure.ac): ... to here.
17109
17110 2011-05-22  Bruno Haible  <bruno@clisp.org>
17111
17112         wcscoll: Move AC_LIBOBJ invocations to module description.
17113         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17114         here...
17115         * modules/wcscoll (configure.ac): ... to here.
17116
17117 2011-05-22  Bruno Haible  <bruno@clisp.org>
17118
17119         wcscmp: Move AC_LIBOBJ invocations to module description.
17120         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17121         * modules/wcscmp (configure.ac): ... to here.
17122
17123 2011-05-22  Bruno Haible  <bruno@clisp.org>
17124
17125         wcschr: Move AC_LIBOBJ invocations to module description.
17126         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17127         * modules/wcschr (configure.ac): ... to here.
17128
17129 2011-05-22  Bruno Haible  <bruno@clisp.org>
17130
17131         wcscat: Move AC_LIBOBJ invocations to module description.
17132         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17133         * modules/wcscat (configure.ac): ... to here.
17134
17135 2011-05-22  Bruno Haible  <bruno@clisp.org>
17136
17137         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17138         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17139         here...
17140         * modules/wcscasecmp (configure.ac): ... to here.
17141
17142 2011-05-22  Bruno Haible  <bruno@clisp.org>
17143
17144         wcrtomb: Move AC_LIBOBJ invocations to module description.
17145         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17146         invocations from here...
17147         * modules/wcrtomb (configure.ac): ... to here.
17148
17149 2011-05-22  Bruno Haible  <bruno@clisp.org>
17150
17151         wcpncpy: Move AC_LIBOBJ invocations to module description.
17152         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17153         here...
17154         * modules/wcpncpy (configure.ac): ... to here.
17155
17156 2011-05-22  Bruno Haible  <bruno@clisp.org>
17157
17158         wcpcpy: Move AC_LIBOBJ invocations to module description.
17159         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17160         * modules/wcpcpy (configure.ac): ... to here.
17161
17162 2011-05-22  Bruno Haible  <bruno@clisp.org>
17163
17164         waitpid: Move AC_LIBOBJ invocations to module description.
17165         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17166         invocation from here...
17167         * modules/waitpid (configure.ac): ... to here.
17168
17169 2011-05-22  Bruno Haible  <bruno@clisp.org>
17170
17171         utimensat: Move AC_LIBOBJ invocations to module description.
17172         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17173         here...
17174         * modules/utimensat (configure.ac): ... to here.
17175
17176 2011-05-22  Bruno Haible  <bruno@clisp.org>
17177
17178         usleep: Move AC_LIBOBJ invocations to module description.
17179         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17180         here...
17181         * modules/usleep (configure.ac): ... to here.
17182
17183 2011-05-22  Bruno Haible  <bruno@clisp.org>
17184
17185         unlockpt: Move AC_LIBOBJ invocations to module description.
17186         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17187         gl_PREREQ_UNLOCKPT invocations from here...
17188         * modules/unlockpt (configure.ac): ... to here.
17189
17190 2011-05-22  Bruno Haible  <bruno@clisp.org>
17191
17192         unlink: Respect rules for use of AC_LIBOBJ.
17193         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17194         * modules/unlink (configure.ac): ... to here.
17195
17196 2011-05-22  Bruno Haible  <bruno@clisp.org>
17197
17198         uname: Move AC_LIBOBJ invocations to module description.
17199         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17200         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17201         here...
17202         * modules/uname (configure.ac): ... to here.
17203
17204 2011-05-22  Bruno Haible  <bruno@clisp.org>
17205
17206         ttyname_r: Move AC_LIBOBJ invocations to module description.
17207         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17208         gl_PREREQ_TTYNAME_R invocations from here...
17209         * modules/ttyname_r (configure.ac): ... to here.
17210
17211 2011-05-22  Bruno Haible  <bruno@clisp.org>
17212
17213         tsearch: Move AC_LIBOBJ invocations to module description.
17214         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17215         invocations from here...
17216         * modules/tsearch (configure.ac): ... to here.
17217
17218 2011-05-22  Bruno Haible  <bruno@clisp.org>
17219
17220         towctrans: Move AC_LIBOBJ invocations to module description.
17221         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17222         AC_LIBOBJ invocation from here...
17223         * modules/towctrans (configure.ac): ... to here.
17224
17225 2011-05-22  Bruno Haible  <bruno@clisp.org>
17226
17227         tmpfile: Move AC_LIBOBJ invocations to module description.
17228         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17229         invocations from here...
17230         * modules/tmpfile (configure.ac): ... to here.
17231
17232 2011-05-22  Bruno Haible  <bruno@clisp.org>
17233
17234         times: Move AC_LIBOBJ invocations to module description.
17235         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17236         * modules/times (configure.ac): ... to here.
17237
17238 2011-05-22  Bruno Haible  <bruno@clisp.org>
17239
17240         time_r: Move AC_LIBOBJ invocations to module description.
17241         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17242         invocations from here...
17243         * modules/time_r (configure.ac): ... to here.
17244
17245 2011-05-22  Bruno Haible  <bruno@clisp.org>
17246
17247         timegm: Move AC_LIBOBJ invocations to module description.
17248         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17249         invocations from here...
17250         * modules/timegm (configure.ac): ... to here.
17251
17252 2011-05-22  Bruno Haible  <bruno@clisp.org>
17253
17254         tcgetsid: Move AC_LIBOBJ invocations to module description.
17255         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17256         and gl_PREREQ_TCGETSID invocations from here...
17257         * modules/tcgetsid (configure.ac): ... to here.
17258         (Depends-on): Update conditions.
17259
17260 2011-05-22  Bruno Haible  <bruno@clisp.org>
17261
17262         symlinkat: Move AC_LIBOBJ invocations to module description.
17263         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17264         here...
17265         * modules/symlinkat (configure.ac): ... to here.
17266
17267 2011-05-22  Bruno Haible  <bruno@clisp.org>
17268
17269         symlink: Move AC_LIBOBJ invocations to module description.
17270         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17271         here...
17272         * modules/symlink (configure.ac): ... to here.
17273
17274 2011-05-22  Bruno Haible  <bruno@clisp.org>
17275
17276         strverscmp: Move AC_LIBOBJ invocations to module description.
17277         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17278         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17279         from here...
17280         * modules/strverscmp (configure.ac): ... to here.
17281
17282 2011-05-22  Bruno Haible  <bruno@clisp.org>
17283
17284         strtok_r: Move AC_LIBOBJ invocations to module description.
17285         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17286         and gl_PREREQ_STRTOK_R invocations from here...
17287         * modules/strtok_r (configure.ac): ... to here.
17288         (Depends-on): Update conditions.
17289
17290 2011-05-22  Bruno Haible  <bruno@clisp.org>
17291
17292         strtoumax: Move AC_LIBOBJ invocations to module description.
17293         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17294         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17295         from here...
17296         * modules/strtoumax (configure.ac): ... to here.
17297
17298 2011-05-22  Bruno Haible  <bruno@clisp.org>
17299
17300         strtoimax: Move AC_LIBOBJ invocations to module description.
17301         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17302         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17303         from here...
17304         * modules/strtoimax (configure.ac): ... to here.
17305
17306 2011-05-22  Bruno Haible  <bruno@clisp.org>
17307
17308         strtoull: Move AC_LIBOBJ invocations to module description.
17309         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17310         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17311         from here...
17312         * modules/strtoull (configure.ac): ... to here.
17313
17314 2011-05-22  Bruno Haible  <bruno@clisp.org>
17315
17316         strtoll: Move AC_LIBOBJ invocations to module description.
17317         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17318         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17319         here...
17320         * modules/strtoll (configure.ac): ... to here.
17321
17322 2011-05-22  Bruno Haible  <bruno@clisp.org>
17323
17324         strtoul: Move AC_LIBOBJ invocations to module description.
17325         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17326         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17327         * modules/strtoul (configure.ac): ... to here.
17328
17329 2011-05-22  Bruno Haible  <bruno@clisp.org>
17330
17331         strtol: Move AC_LIBOBJ invocations to module description.
17332         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17333         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17334         * modules/strtol (configure.ac): ... to here.
17335
17336 2011-05-22  Bruno Haible  <bruno@clisp.org>
17337
17338         strtod: Move AC_LIBOBJ invocations to module description.
17339         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17340         invocations from here...
17341         * modules/strtod (configure.ac): ... to here.
17342
17343 2011-05-22  Bruno Haible  <bruno@clisp.org>
17344
17345         strstr*: Move AC_LIBOBJ invocations to module description.
17346         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17347         invocations from here...
17348         * modules/strstr-simple (configure.ac): ... to here.
17349         * modules/strstr (configure.ac): ... and here.
17350
17351 2011-05-22  Bruno Haible  <bruno@clisp.org>
17352
17353         strsignal: Move AC_LIBOBJ invocations to module description.
17354         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17355         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17356         * modules/strsignal (configure.ac): ... to here.
17357         (Depends-on): Update conditions.
17358
17359 2011-05-22  Bruno Haible  <bruno@clisp.org>
17360
17361         strsep: Move AC_LIBOBJ invocations to module description.
17362         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17363         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17364         here...
17365         * modules/strsep (configure.ac): ... to here.
17366
17367 2011-05-22  Bruno Haible  <bruno@clisp.org>
17368
17369         strptime: Move AC_LIBOBJ invocations to module description.
17370         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17371         gl_PREREQ_STRPTIME invocations from here...
17372         * modules/strptime (configure.ac): ... to here.
17373
17374 2011-05-22  Bruno Haible  <bruno@clisp.org>
17375
17376         strpbrk: Move AC_LIBOBJ invocations to module description.
17377         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17378         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17379         here...
17380         * modules/strpbrk (configure.ac): ... to here.
17381
17382 2011-05-22  Bruno Haible  <bruno@clisp.org>
17383
17384         strnlen: Move AC_LIBOBJ invocations to module description.
17385         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17386         invocations from here...
17387         * modules/strnlen (configure.ac): ... to here.
17388
17389 2011-05-22  Bruno Haible  <bruno@clisp.org>
17390
17391         strndup: Move AC_LIBOBJ invocations to module description.
17392         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17393         invocations from here...
17394         * modules/strndup (configure.ac): ... to here.
17395         (Depends-on): Update conditions.
17396
17397 2011-05-22  Bruno Haible  <bruno@clisp.org>
17398
17399         strncat: Move AC_LIBOBJ invocations to module description.
17400         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17401         invocations from here...
17402         * modules/strncat (configure.ac): ... to here.
17403
17404 2011-05-22  Bruno Haible  <bruno@clisp.org>
17405
17406         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17407         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17408         invocations from here...
17409         * modules/strdup (configure.ac): ... to here.
17410         * modules/strdup-posix (configure.ac): ... and here.
17411
17412 2011-05-22  Bruno Haible  <bruno@clisp.org>
17413
17414         strcspn: Move AC_LIBOBJ invocations to module description.
17415         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17416         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17417         here...
17418         * modules/strcspn (configure.ac): ... to here.
17419
17420 2011-05-22  Bruno Haible  <bruno@clisp.org>
17421
17422         strchrnul: Move AC_LIBOBJ invocations to module description.
17423         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17424         gl_PREREQ_STRCHRNUL invocations from here...
17425         * modules/strchrnul (configure.ac): ... to here.
17426
17427 2011-05-22  Bruno Haible  <bruno@clisp.org>
17428
17429         strcasestr*: Move AC_LIBOBJ invocations to module description.
17430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17431         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17432         * modules/strcasestr-simple (configure.ac): ... to here.
17433         * modules/strcasestr (configure.ac): ... and here.
17434
17435 2011-05-22  Bruno Haible  <bruno@clisp.org>
17436
17437         strcase: Move AC_LIBOBJ invocations to module description.
17438         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17439         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17440         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17441         gl_PREREQ_STRNCASECMP invocations from here...
17442         * modules/strcase (configure.ac): ... to here.
17443
17444 2011-05-22  Bruno Haible  <bruno@clisp.org>
17445
17446         stpncpy: Move AC_LIBOBJ invocations to module description.
17447         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17448         here...
17449         * modules/stpncpy (configure.ac): ... to here.
17450
17451 2011-05-22  Bruno Haible  <bruno@clisp.org>
17452
17453         stpcpy: Move AC_LIBOBJ invocations to module description.
17454         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17455         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17456         here...
17457         * modules/stpcpy (configure.ac): ... to here.
17458
17459 2011-05-21  Bruno Haible  <bruno@clisp.org>
17460
17461         stat: Move AC_LIBOBJ invocations to module description.
17462         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17463         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17464         here...
17465         * modules/stat (configure.ac): ... to here.
17466
17467 2011-05-21  Bruno Haible  <bruno@clisp.org>
17468
17469         sleep: Move AC_LIBOBJ invocations to module description.
17470         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17471         * modules/sleep (configure.ac): ... to here.
17472
17473 2011-05-21  Bruno Haible  <bruno@clisp.org>
17474
17475         signbit: Move AC_LIBOBJ invocations to module description.
17476         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17477         * modules/signbit (configure.ac): ... to here.
17478
17479 2011-05-21  Bruno Haible  <bruno@clisp.org>
17480
17481         sigprocmask: Move AC_LIBOBJ invocations to module description.
17482         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17483         gl_PREREQ_SIGPROMASK invocations from here...
17484         * modules/sigprocmask (configure.ac): ... to here.
17485
17486 2011-05-21  Bruno Haible  <bruno@clisp.org>
17487
17488         sigaction: Move AC_LIBOBJ invocations to module description.
17489         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17490         gl_PREREQ_SIGACTION invocations from here...
17491         * modules/sigaction (configure.ac): ... to here.
17492
17493 2011-05-21  Bruno Haible  <bruno@clisp.org>
17494
17495         sig2str: Move AC_LIBOBJ invocations to module description.
17496         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17497         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17498         here...
17499         * modules/sig2str (configure.ac): ... to here.
17500
17501 2011-05-21  Bruno Haible  <bruno@clisp.org>
17502
17503         setlocale: Move AC_LIBOBJ invocations to module description.
17504         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17505         gl_PREREQ_SETLOCALE invocations from here...
17506         * modules/setlocale (configure.ac): ... to here.
17507
17508 2011-05-21  Bruno Haible  <bruno@clisp.org>
17509
17510         unsetenv: Move AC_LIBOBJ invocations to module description.
17511         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17512         and gl_PREREQ_UNSETENV invocations from here...
17513         * modules/unsetenv (configure.ac): ... to here.
17514         (Depends-on): Update.
17515
17516 2011-05-21  Bruno Haible  <bruno@clisp.org>
17517
17518         setenv: Move AC_LIBOBJ invocations to module description.
17519         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17520         here...
17521         * modules/setenv (configure.ac): ... to here.
17522
17523 2011-05-21  Bruno Haible  <bruno@clisp.org>
17524
17525         selinux-h: Move AC_LIBOBJ invocations to module description.
17526         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17527         AC_LIBOBJ invocation from here...
17528         * modules/selinux-h (configure.ac): ... to here.
17529
17530 2011-05-21  Bruno Haible  <bruno@clisp.org>
17531
17532         select: Respect rules for use of AC_LIBOBJ.
17533         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17534         here...
17535         * modules/select (configure.ac): ... to here.
17536
17537 2011-05-21  Bruno Haible  <bruno@clisp.org>
17538
17539         scandir: Move AC_LIBOBJ invocations to module description.
17540         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17541         invocations from here...
17542         * modules/scandir (configure.ac): ... to here.
17543
17544 2011-05-21  Bruno Haible  <bruno@clisp.org>
17545
17546         rpmatch: Move AC_LIBOBJ invocations to module description.
17547         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17548         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17549         here...
17550         * modules/rpmatch (configure.ac): ... to here.
17551
17552 2011-05-21  Bruno Haible  <bruno@clisp.org>
17553
17554         rmdir: Respect rules for use of AC_LIBOBJ.
17555         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17556         * modules/rmdir (configure.ac): ... to here.
17557
17558 2011-05-21  Bruno Haible  <bruno@clisp.org>
17559
17560         renameat: Move AC_LIBOBJ invocations to module description.
17561         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17562         here...
17563         * modules/renameat (configure.ac): ... to here.
17564
17565 2011-05-21  Bruno Haible  <bruno@clisp.org>
17566
17567         rename: Respect rules for use of AC_LIBOBJ.
17568         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17569         here...
17570         * modules/rename (configure.ac): ... to here.
17571
17572 2011-05-21  Bruno Haible  <bruno@clisp.org>
17573
17574         remove: Move AC_LIBOBJ invocations to module description.
17575         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17576         here...
17577         * modules/remove (configure.ac): ... to here.
17578
17579 2011-05-21  Bruno Haible  <bruno@clisp.org>
17580
17581         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17582         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17583         macro.
17584         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17585         * modules/relocatable-lib (configure.ac): ... to here.
17586         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17587         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17588
17589 2011-05-21  Bruno Haible  <bruno@clisp.org>
17590
17591         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17592         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17593         here...
17594         * modules/relocatable-prog (configure.ac): ... to here.
17595
17596 2011-05-21  Bruno Haible  <bruno@clisp.org>
17597
17598         regex: Move AC_LIBOBJ invocations to module description.
17599         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17600         invocations from here...
17601         * modules/regex (configure.ac): ... to here.
17602
17603 2011-05-21  Bruno Haible  <bruno@clisp.org>
17604
17605         realloc-*: Move AC_LIBOBJ invocations to module description.
17606         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17607         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17608         AC_LIBOBJ invocations from here...
17609         * modules/realloc-gnu (configure.ac): ... to here.
17610         * modules/realloc-posix (configure.ac): ... and here.
17611
17612 2011-05-21  Bruno Haible  <bruno@clisp.org>
17613
17614         readutmp: Move AC_LIBOBJ invocations to module description.
17615         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17616         * modules/readutmp (configure.ac): ... to here.
17617
17618 2011-05-21  Bruno Haible  <bruno@clisp.org>
17619
17620         readlinkat: Move AC_LIBOBJ invocations to module description.
17621         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17622         here...
17623         * modules/readlinkat (configure.ac): ... to here.
17624
17625 2011-05-21  Bruno Haible  <bruno@clisp.org>
17626
17627         readlink: Move AC_LIBOBJ invocations to module description.
17628         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17629         gl_PREREQ_READLINK invocations from here...
17630         * modules/readlink (configure.ac): ... to here.
17631
17632 2011-05-21  Bruno Haible  <bruno@clisp.org>
17633
17634         readline: Move AC_LIBOBJ invocations to module description.
17635         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17636         gl_PREREQ_READLINE invocations from here...
17637         * modules/readline (configure.ac): ... to here.
17638
17639 2011-05-21  Bruno Haible  <bruno@clisp.org>
17640
17641         read: Move AC_LIBOBJ invocations to module description.
17642         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17643         * modules/read (configure.ac): ... to here.
17644
17645 2011-05-21  Bruno Haible  <bruno@clisp.org>
17646
17647         rawmemchr: Move AC_LIBOBJ invocations to module description.
17648         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17650         from here...
17651         * modules/rawmemchr (configure.ac): ... to here.
17652
17653 2011-05-21  Bruno Haible  <bruno@clisp.org>
17654
17655         random_r: Move AC_LIBOBJ invocations to module description.
17656         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17657         gl_PREREQ_RANDOM_R invocations from here...
17658         * modules/random_r (configure.ac): ... to here.
17659
17660 2011-05-21  Bruno Haible  <bruno@clisp.org>
17661
17662         pwrite: Move AC_LIBOBJ invocations to module description.
17663         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17664         * modules/pwrite (configure.ac): ... to here.
17665
17666 2011-05-21  Bruno Haible  <bruno@clisp.org>
17667
17668         putenv: Move AC_LIBOBJ invocations to module description.
17669         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17670         * modules/putenv (configure.ac): ... to here.
17671
17672 2011-05-21  Bruno Haible  <bruno@clisp.org>
17673
17674         login_tty: Move AC_LIBOBJ invocations to module description.
17675         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17676         * modules/login_tty (configure.ac): ... to here.
17677
17678 2011-05-21  Bruno Haible  <bruno@clisp.org>
17679
17680         openpty: Move AC_LIBOBJ invocations to module description.
17681         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17682         * modules/openpty (configure.ac): ... to here.
17683
17684 2011-05-21  Bruno Haible  <bruno@clisp.org>
17685
17686         forkpty: Move AC_LIBOBJ invocations to module description.
17687         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17688         * modules/forkpty (configure.ac): ... to here.
17689
17690 2011-05-21  Bruno Haible  <bruno@clisp.org>
17691
17692         ptsname: Move AC_LIBOBJ invocations to module description.
17693         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17694         invocations from here...
17695         * modules/ptsname (configure.ac): ... to here.
17696
17697 2011-05-21  Bruno Haible  <bruno@clisp.org>
17698
17699         pread: Move AC_LIBOBJ invocations to module description.
17700         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17701         * modules/pread (configure.ac): ... to here.
17702
17703 2011-05-21  Bruno Haible  <bruno@clisp.org>
17704
17705         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17706         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17707         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17708         * modules/posix_spawn (configure.ac): ... to here.
17709         * modules/posix_spawnp (configure.ac): ... and here.
17710
17711 2011-05-21  Bruno Haible  <bruno@clisp.org>
17712
17713         popen: Move AC_LIBOBJ invocations to module description.
17714         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17715         invocations from here...
17716         * modules/popen (configure.ac): ... to here.
17717
17718 2011-05-21  Bruno Haible  <bruno@clisp.org>
17719
17720         poll: Move AC_LIBOBJ invocations to module description.
17721         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17722         invocations from here...
17723         * modules/poll (configure.ac): ... to here.
17724
17725 2011-05-21  Bruno Haible  <bruno@clisp.org>
17726
17727         pipe-posix: Move AC_LIBOBJ invocations to module description.
17728         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17729         * modules/pipe-posix (configure.ac): ... to here.
17730
17731 2011-05-21  Bruno Haible  <bruno@clisp.org>
17732
17733         openat: Respect rules for use of AC_LIBOBJ.
17734         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17735         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17736         * modules/openat (configure.ac): ... to here.
17737
17738 2011-05-21  Bruno Haible  <bruno@clisp.org>
17739
17740         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17741         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17742         invocation from here...
17743         * modules/obstack-printf (configure.ac): ... to here.
17744         * modules/obstack-printf-posix (configure.ac): ... and here.
17745
17746 2011-05-21  Bruno Haible  <bruno@clisp.org>
17747
17748         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17749         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17750         from here...
17751         * modules/nl_langinfo (configure.ac): ... to here.
17752
17753 2011-05-21  Bruno Haible  <bruno@clisp.org>
17754
17755         nanosleep: Move AC_LIBOBJ invocations to module description.
17756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17757         gl_PREREQ_NANOSLEEP invocations from here...
17758         * modules/nanosleep (configure.ac): ... to here.
17759
17760 2011-05-21  Bruno Haible  <bruno@clisp.org>
17761
17762         mountlist: Move AC_LIBOBJ invocations to module description.
17763         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17764         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17765         * modules/mountlist (configure.ac): ... to here.
17766
17767 2011-05-21  Bruno Haible  <bruno@clisp.org>
17768
17769         mktime: Respect rules for use of AC_LIBOBJ.
17770         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17771         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17772         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17773         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17774         * modules/mktime (configure.ac): ... to here.
17775         * modules/mktime-internal (configure.ac): ... and here.
17776         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17777
17778 2011-05-21  Bruno Haible  <bruno@clisp.org>
17779
17780         mkstemps: Move AC_LIBOBJ invocations to module description.
17781         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17782         here...
17783         * modules/mkstemps (configure.ac): ... to here.
17784
17785 2011-05-21  Bruno Haible  <bruno@clisp.org>
17786
17787         mkstemp: Move AC_LIBOBJ invocations to module description.
17788         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17789         gl_PREREQ_MKSTEMP invocations from here...
17790         * modules/mkstemp (configure.ac): ... to here.
17791
17792 2011-05-21  Bruno Haible  <bruno@clisp.org>
17793
17794         mkostemps: Move AC_LIBOBJ invocations to module description.
17795         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17796         here...
17797         * modules/mkostemps (configure.ac): ... to here.
17798
17799 2011-05-21  Bruno Haible  <bruno@clisp.org>
17800
17801         mkostemp: Move AC_LIBOBJ invocations to module description.
17802         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17803         gl_PREREQ_MKOSTEMP invocations from here...
17804         * modules/mkostemp (configure.ac): ... to here.
17805
17806 2011-05-21  Bruno Haible  <bruno@clisp.org>
17807
17808         mknod: Move AC_LIBOBJ invocations to module description.
17809         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17810         * modules/mknod (configure.ac): ... to here.
17811
17812 2011-05-21  Bruno Haible  <bruno@clisp.org>
17813
17814         mkfifoat: Move AC_LIBOBJ invocations to module description.
17815         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17816         here...
17817         * modules/mkfifoat (configure.ac): ... to here.
17818
17819 2011-05-21  Bruno Haible  <bruno@clisp.org>
17820
17821         mkfifo: Respect rules for use of AC_LIBOBJ.
17822         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17823         here...
17824         * modules/mkfifo (configure.ac): ... to here.
17825
17826 2011-05-21  Bruno Haible  <bruno@clisp.org>
17827
17828         mkdtemp: Move AC_LIBOBJ invocations to module description.
17829         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17830         invocations from here...
17831         * modules/mkdtemp (configure.ac): ... to here.
17832
17833 2011-05-21  Bruno Haible  <bruno@clisp.org>
17834
17835         mkdir: Move AC_LIBOBJ invocations to module description.
17836         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17837         * modules/mkdir (configure.ac): ... to here.
17838
17839 2011-05-21  Bruno Haible  <bruno@clisp.org>
17840
17841         memset: Move AC_LIBOBJ invocations to module description.
17842         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17844         here...
17845         * modules/memset (configure.ac): ... to here.
17846
17847 2011-05-21  Bruno Haible  <bruno@clisp.org>
17848
17849         memrchr: Move AC_LIBOBJ invocations to module description.
17850         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17852         here...
17853         * modules/memrchr (configure.ac): ... to here.
17854
17855 2011-05-21  Bruno Haible  <bruno@clisp.org>
17856
17857         mempcpy: Move AC_LIBOBJ invocations to module description.
17858         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17859         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17860         here...
17861         * modules/mempcpy (configure.ac): ... to here.
17862
17863 2011-05-21  Bruno Haible  <bruno@clisp.org>
17864
17865         memmove: Move AC_LIBOBJ invocations to module description.
17866         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17867         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17868         here...
17869         * modules/memmove (configure.ac): ... to here.
17870
17871 2011-05-21  Bruno Haible  <bruno@clisp.org>
17872
17873         memmem*: Move AC_LIBOBJ invocations to module description.
17874         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17875         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17876         here...
17877         (gl_FUNC_MEMMEM): ... and here...
17878         * modules/memmem-simple (configure.ac): ... to here.
17879         * modules/memmem (configure.ac): ... and here.
17880
17881 2011-05-21  Bruno Haible  <bruno@clisp.org>
17882
17883         memcpy: Move AC_LIBOBJ invocations to module description.
17884         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17885         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17886         here...
17887         * modules/memcpy (configure.ac): ... to here.
17888
17889 2011-05-21  Bruno Haible  <bruno@clisp.org>
17890
17891         memcmp: Simplify autoconf macro.
17892         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17893         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17894         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17895
17896 2011-05-21  Bruno Haible  <bruno@clisp.org>
17897
17898         memcmp: Move AC_LIBOBJ invocations to module description.
17899         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17900         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17901         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17902         * modules/memcmp (configure.ac): ... to here.
17903         (Depends-on): Update conditions.
17904
17905 2011-05-21  Bruno Haible  <bruno@clisp.org>
17906
17907         memchr: Respect rules for use of AC_LIBOBJ.
17908         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17909         invocations from here...
17910         * modules/memchr (configure.ac): ... to here.
17911
17912 2011-05-21  Bruno Haible  <bruno@clisp.org>
17913
17914         mbtowc: Move AC_LIBOBJ invocations to module description.
17915         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17916         invocations from here...
17917         * modules/mbtowc (configure.ac): ... to here.
17918
17919 2011-05-21  Bruno Haible  <bruno@clisp.org>
17920
17921         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17922         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17923         gl_PREREQ_MBSRTOWCS invocations from here...
17924         * modules/mbsrtowcs (configure.ac): ... to here.
17925
17926 2011-05-21  Bruno Haible  <bruno@clisp.org>
17927
17928         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17929         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17930         gl_PREREQ_MBSNRTOWCS invocations from here...
17931         * modules/mbsnrtowcs (configure.ac): ... to here.
17932
17933 2011-05-21  Bruno Haible  <bruno@clisp.org>
17934
17935         mbsinit: Move AC_LIBOBJ invocations to module description.
17936         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17937         invocations from here...
17938         * modules/mbsinit (configure.ac): ... to here.
17939
17940 2011-05-21  Bruno Haible  <bruno@clisp.org>
17941
17942         mbrlen: Move AC_LIBOBJ invocations to module description.
17943         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17944         invocations from here...
17945         * modules/mbrlen (configure.ac): ... to here.
17946
17947 2011-05-21  Bruno Haible  <bruno@clisp.org>
17948
17949         mbrtowc: Respect rules for use of AC_LIBOBJ.
17950         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17951         invocations from here...
17952         * modules/mbrtowc (configure.ac): ... to here.
17953
17954 2011-05-21  Bruno Haible  <bruno@clisp.org>
17955
17956         malloc-*: Move AC_LIBOBJ invocations to module description.
17957         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17958         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17959         AC_LIBOBJ invocations from here...
17960         * modules/malloc-gnu (configure.ac): ... to here.
17961         * modules/malloc-posix (configure.ac): ... and here.
17962
17963 2011-05-21  Bruno Haible  <bruno@clisp.org>
17964
17965         lstat, openat: Respect rules for use of AC_LIBOBJ.
17966         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17967         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17968         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17969         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17970         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17971         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17972         here.
17973         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17974
17975 2011-05-21  Bruno Haible  <bruno@clisp.org>
17976
17977         lseek: Move AC_LIBOBJ invocations to module description.
17978         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17979         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17980         * modules/lseek (configure.ac): ... to here.
17981
17982 2011-05-21  Bruno Haible  <bruno@clisp.org>
17983
17984         linkat: Move AC_LIBOBJ invocations to module description.
17985         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17986         here...
17987         * modules/linkat (configure.ac): ... to here.
17988
17989 2011-05-21  Bruno Haible  <bruno@clisp.org>
17990
17991         link: Respect rules for use of AC_LIBOBJ.
17992         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17993         * modules/link (configure.ac): ... to here.
17994
17995 2011-05-21  Bruno Haible  <bruno@clisp.org>
17996
17997         lchown: Move AC_LIBOBJ invocations to module description.
17998         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17999         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18000         * modules/lchown (configure.ac): ... to here.
18001
18002 2011-05-21  Bruno Haible  <bruno@clisp.org>
18003
18004         iswctype: Move AC_LIBOBJ invocations to module description.
18005         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18006         here...
18007         * modules/iswctype (configure.ac): ... to here.
18008
18009 2011-05-21  Bruno Haible  <bruno@clisp.org>
18010
18011         iswblank: Move AC_LIBOBJ invocations to module description.
18012         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18013         here...
18014         * modules/iswblank (configure.ac): ... to here.
18015
18016 2011-05-21  Bruno Haible  <bruno@clisp.org>
18017
18018         atanl: Move AC_LIBOBJ invocations to module description.
18019         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18020         * modules/atanl (configure.ac): ... to here.
18021
18022 2011-05-21  Bruno Haible  <bruno@clisp.org>
18023
18024         acosl: Move AC_LIBOBJ invocations to module description.
18025         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18026         * modules/acosl (configure.ac): ... to here.
18027
18028 2011-05-21  Bruno Haible  <bruno@clisp.org>
18029
18030         asinl: Respect rules for use of AC_LIBOBJ.
18031         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18032         * modules/asinl (configure.ac): ... to here.
18033
18034 2011-05-21  Bruno Haible  <bruno@clisp.org>
18035
18036         tanl: Move AC_LIBOBJ invocations to module description.
18037         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18038         * modules/tanl (configure.ac): ... to here.
18039
18040 2011-05-21  Bruno Haible  <bruno@clisp.org>
18041
18042         cosl: Move AC_LIBOBJ invocations to module description.
18043         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18044         * modules/cosl (configure.ac): ... to here.
18045
18046 2011-05-21  Bruno Haible  <bruno@clisp.org>
18047
18048         sinl: Move AC_LIBOBJ invocations to module description.
18049         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18050         * modules/sinl (configure.ac): ... to here.
18051
18052 2011-05-21  Bruno Haible  <bruno@clisp.org>
18053
18054         logl: Move AC_LIBOBJ invocations to module description.
18055         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18056         * modules/logl (configure.ac): ... to here.
18057
18058 2011-05-21  Bruno Haible  <bruno@clisp.org>
18059
18060         expl: Move AC_LIBOBJ invocations to module description.
18061         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18062         * modules/expl (configure.ac): ... to here.
18063
18064 2011-05-21  Bruno Haible  <bruno@clisp.org>
18065
18066         roundl: Move AC_LIBOBJ invocations to module description.
18067         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18068         * modules/roundl (configure.ac): ... to here.
18069
18070 2011-05-21  Bruno Haible  <bruno@clisp.org>
18071
18072         round: Move AC_LIBOBJ invocations to module description.
18073         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18074         * modules/round (configure.ac): ... to here.
18075
18076 2011-05-21  Bruno Haible  <bruno@clisp.org>
18077
18078         roundf: Move AC_LIBOBJ invocations to module description.
18079         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18080         * modules/roundf (configure.ac): ... to here.
18081
18082 2011-05-21  Bruno Haible  <bruno@clisp.org>
18083
18084         truncl: Move AC_LIBOBJ invocations to module description.
18085         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18086         * modules/truncl (configure.ac): ... to here.
18087
18088 2011-05-21  Bruno Haible  <bruno@clisp.org>
18089
18090         trunc: Move AC_LIBOBJ invocations to module description.
18091         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18092         * modules/trunc (configure.ac): ... to here.
18093
18094 2011-05-21  Bruno Haible  <bruno@clisp.org>
18095
18096         truncf: Move AC_LIBOBJ invocations to module description.
18097         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18098         * modules/truncf (configure.ac): ... to here.
18099
18100 2011-05-21  Bruno Haible  <bruno@clisp.org>
18101
18102         ceill: Move AC_LIBOBJ invocations to module description.
18103         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18104         * modules/ceill (configure.ac): ... to here.
18105
18106 2011-05-21  Bruno Haible  <bruno@clisp.org>
18107
18108         ceil: Move AC_LIBOBJ invocations to module description.
18109         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18110         * modules/ceil (configure.ac): ... to here.
18111
18112 2011-05-21  Bruno Haible  <bruno@clisp.org>
18113
18114         ceilf: Move AC_LIBOBJ invocations to module description.
18115         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18116         * modules/ceilf (configure.ac): ... to here.
18117
18118 2011-05-21  Bruno Haible  <bruno@clisp.org>
18119
18120         floorl: Respect rules for use of AC_LIBOBJ.
18121         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18122         * modules/floorl (configure.ac): ... to here.
18123
18124 2011-05-21  Bruno Haible  <bruno@clisp.org>
18125
18126         floor: Respect rules for use of AC_LIBOBJ.
18127         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18128         * modules/floor (configure.ac): ... to here.
18129
18130 2011-05-21  Bruno Haible  <bruno@clisp.org>
18131
18132         floorf: Move AC_LIBOBJ invocations to module description.
18133         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18134         * modules/floorf (configure.ac): ... to here.
18135
18136 2011-05-20  Bruno Haible  <bruno@clisp.org>
18137
18138         sqrtl: Respect rules for use of AC_LIBOBJ.
18139         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18140         * modules/sqrtl (configure.ac): ... to here.
18141
18142 2011-05-20  Bruno Haible  <bruno@clisp.org>
18143
18144         ldexpl: Respect rules for use of AC_LIBOBJ.
18145         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18146         * modules/ldexpl (configure.ac): ... to here.
18147
18148 2011-05-20  Bruno Haible  <bruno@clisp.org>
18149
18150         frexpl*: Respect rules for use of AC_LIBOBJ.
18151         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18152         invocation from here...
18153         * modules/frexpl (configure.ac): ... to here.
18154         * modules/frexpl-nolibm (configure.ac): ... and here.
18155
18156 2011-05-20  Bruno Haible  <bruno@clisp.org>
18157
18158         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18159         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18160         invocation from here...
18161         * modules/frexp (configure.ac): ... to here.
18162         * modules/frexp-nolibm (configure.ac): ... and here.
18163
18164 2011-05-20  Bruno Haible  <bruno@clisp.org>
18165
18166         isnan: Respect rules for use of AC_LIBOBJ.
18167         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18168         invocations here.
18169         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18170         REPLACE_ISNAN.
18171         * modules/isnand (configure.ac): Likewise.
18172         * modules/isnanl (configure.ac): Likewise.
18173
18174 2011-05-20  Bruno Haible  <bruno@clisp.org>
18175
18176         isnanl*: Respect rules for use of AC_LIBOBJ.
18177         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18178         invocation from here...
18179         * modules/isnanl (configure.ac): ... to here.
18180         * modules/isnanl-nolibm (configure.ac): ... and here.
18181
18182 2011-05-20  Bruno Haible  <bruno@clisp.org>
18183
18184         isnand*: Move AC_LIBOBJ invocations to module description.
18185         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18186         invocation from here...
18187         * modules/isnand (configure.ac): ... to here.
18188         * modules/isnand-nolibm (configure.ac): ... and here.
18189
18190 2011-05-20  Bruno Haible  <bruno@clisp.org>
18191
18192         isnanf*: Move AC_LIBOBJ invocations to module description.
18193         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18194         invocation from here...
18195         * modules/isnanf (configure.ac): ... to here.
18196         * modules/isnanf-nolibm (configure.ac): ... and here.
18197
18198 2011-05-20  Bruno Haible  <bruno@clisp.org>
18199
18200         isnan*: Separate the AC_LIBOBJ invocations.
18201         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18202         AC_LIBOBJ invocation.
18203         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18204         here.
18205         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18206         AC_LIBOBJ invocation.
18207         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18208         here.
18209         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18210         AC_LIBOBJ invocation.
18211         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18212         here.
18213         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18214
18215 2011-05-08  Bruno Haible  <bruno@clisp.org>
18216
18217         isinf: Move AC_LIBOBJ invocations to module description.
18218         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18219         * modules/isinf (configure.ac): ... to here.
18220
18221 2011-05-08  Bruno Haible  <bruno@clisp.org>
18222
18223         isfinite: Move AC_LIBOBJ invocations to module description.
18224         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18225         * modules/isfinite (configure.ac): ... to here.
18226
18227 2011-05-08  Bruno Haible  <bruno@clisp.org>
18228
18229         isblank: Move AC_LIBOBJ invocations to module description.
18230         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18231         here...
18232         * modules/isblank (configure.ac): ... to here.
18233
18234 2011-05-08  Bruno Haible  <bruno@clisp.org>
18235
18236         isapipe: Move AC_LIBOBJ invocations to module description.
18237         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18238         gl_PREREQ_ISAPIPE invocations from here...
18239         * modules/isapipe (configure.ac): ... to here.
18240         (Depends-on): Update condition.
18241
18242 2011-05-08  Bruno Haible  <bruno@clisp.org>
18243
18244         ioctl: Move AC_LIBOBJ invocations to module description.
18245         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18246         invocations from here...
18247         * modules/ioctl (configure.ac): ... to here.
18248         (Depends-on): Update condition.
18249
18250 2011-05-08  Bruno Haible  <bruno@clisp.org>
18251
18252         imaxdiv: Move AC_LIBOBJ invocations to module description.
18253         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18254         invocations from here...
18255         * modules/imaxdiv (configure.ac): ... to here.
18256
18257 2011-05-08  Bruno Haible  <bruno@clisp.org>
18258
18259         imaxabs: Move AC_LIBOBJ invocations to module description.
18260         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18261         invocations from here...
18262         * modules/imaxabs (configure.ac): ... to here.
18263
18264 2011-05-08  Bruno Haible  <bruno@clisp.org>
18265
18266         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18267         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18268         AC_LIBOBJ invocations from here...
18269         * modules/getaddrinfo (configure.ac): ... to here.
18270         (Depends-on): Add conditions.
18271
18272 2011-05-08  Bruno Haible  <bruno@clisp.org>
18273
18274         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18275         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18276         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18277         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18278         (gl_PREREQ_INET_PTON): ... from here.
18279         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18280         gl_PREREQ_INET_PTON here.
18281         (Depends-on): Update condition.
18282
18283 2011-05-08  Bruno Haible  <bruno@clisp.org>
18284
18285         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18286         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18287         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18288         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18289         (gl_PREREQ_INET_NTOP): ... from here.
18290         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18291         gl_PREREQ_INET_NTOP here.
18292         (Depends-on): Update condition.
18293
18294 2011-05-08  Bruno Haible  <bruno@clisp.org>
18295
18296         iconv_open: Move AC_LIBOBJ invocations to module description.
18297         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18298         AC_LIBOBJ invocations from here...
18299         * modules/iconv_open (configure.ac): ... to here.
18300
18301 2011-05-08  Bruno Haible  <bruno@clisp.org>
18302
18303         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18304         If module 'iconv_open' is among the main modules and module
18305         'iconv_open-utf' is among the tests dependencies, then
18306         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18307         return the special iconv_t values. Therefore iconv() and iconv_close()
18308         must support these special iconv_t values, already in lib, not only in
18309         tests.
18310         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18311         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18312         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18313         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18314         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18315         (Depends-on): Add the dependencies of iconv_open-utf.
18316         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18317         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18318         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18319
18320 2011-05-08  Bruno Haible  <bruno@clisp.org>
18321
18322         group-member: Move AC_LIBOBJ invocations to module description.
18323         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18324         gl_PREREQ_GROUP_MEMBER invocations from here...
18325         * modules/group-member (configure.ac): ... to here.
18326
18327 2011-05-08  Bruno Haible  <bruno@clisp.org>
18328
18329         grantpt: Move AC_LIBOBJ invocations to module description.
18330         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18331         invocations from here...
18332         * modules/grantpt (configure.ac): ... to here.
18333
18334 2011-05-08  Bruno Haible  <bruno@clisp.org>
18335
18336         glob: Move AC_LIBOBJ invocations to module description.
18337         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18338         from here...
18339         * modules/glob (configure.ac): ... to here.
18340
18341 2011-05-08  Bruno Haible  <bruno@clisp.org>
18342
18343         getusershell: Move AC_LIBOBJ invocations to module description.
18344         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18345         Move AC_LIBOBJ invocation from here...
18346         * modules/getusershell (configure.ac): ... to here.
18347         (Depends-on): Update condition.
18348
18349 2011-05-08  Bruno Haible  <bruno@clisp.org>
18350
18351         gettimeofday: Move AC_LIBOBJ invocations to module description.
18352         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18353         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18354         gl_PREREQ_GETTIMEOFDAY invocations from here...
18355         * modules/gettimeofday (configure.ac): ... to here.
18356
18357 2011-05-08  Bruno Haible  <bruno@clisp.org>
18358
18359         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18360         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18361         just gl_FUNC_TZSET.
18362         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18363         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18364         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18365         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18366
18367 2011-05-08  Bruno Haible  <bruno@clisp.org>
18368
18369         getsubopt: Move AC_LIBOBJ invocations to module description.
18370         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18371         gl_PREREQ_GETSUBOPT invocations from here...
18372         * modules/getsubopt (configure.ac): ... to here.
18373
18374 2011-05-08  Bruno Haible  <bruno@clisp.org>
18375
18376         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18377         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18378         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18379         * modules/getpass-gnu (configure.ac): ... to here.
18380
18381 2011-05-08  Bruno Haible  <bruno@clisp.org>
18382
18383         getpass: Move AC_LIBOBJ invocations to module description.
18384         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18385         gl_PREREQ_GETPASS invocations from here...
18386         * modules/getpass (configure.ac): ... to here.
18387
18388 2011-05-08  Bruno Haible  <bruno@clisp.org>
18389
18390         getpagesize: Move AC_LIBOBJ invocations to module description.
18391         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18392         from here...
18393         * modules/getpagesize (configure.ac): ... to here.
18394
18395 2011-05-08  Bruno Haible  <bruno@clisp.org>
18396
18397         getopt: Move AC_LIBOBJ invocations to module description.
18398         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18399         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18400         invocations from here...
18401         * modules/getopt-gnu (configure.ac): ... to here.
18402         * modules/getopt-posix (configure.ac): ... and here.
18403         (Depends-on): Update condition.
18404
18405 2011-05-08  Bruno Haible  <bruno@clisp.org>
18406
18407         getopt, argp: Respect rules for use of AC_LIBOBJ.
18408         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18409         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18410         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18411         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18412
18413 2011-05-08  Bruno Haible  <bruno@clisp.org>
18414
18415         getlogin_r: Move AC_LIBOBJ invocations to module description.
18416         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18417         gl_PREREQ_GETLOGIN_R invocations from here...
18418         * modules/getlogin_r (configure.ac): ... to here.
18419
18420 2011-05-08  Bruno Haible  <bruno@clisp.org>
18421
18422         getlogin: Move AC_LIBOBJ invocations to module description.
18423         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18424         here...
18425         * modules/getlogin (configure.ac): ... to here.
18426
18427 2011-05-08  Bruno Haible  <bruno@clisp.org>
18428
18429         getloadavg: Move AC_LIBOBJ invocations to module description.
18430         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18431         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18432         * modules/getloadavg (configure.ac): ... to here.
18433
18434 2011-05-08  Bruno Haible  <bruno@clisp.org>
18435
18436         gethrxtime: Move AC_LIBOBJ invocations to module description.
18437         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18438         LIB_GETHRXTIME from here...
18439         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18440         invocations from here...
18441         * modules/gethrxtime (configure.ac): ... to here.
18442
18443 2011-05-08  Bruno Haible  <bruno@clisp.org>
18444
18445         gethostname: Move AC_LIBOBJ invocations to module description.
18446         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18447         gl_PREREQ_GETHOSTNAME invocations from here...
18448         * modules/gethostname (configure.ac): ... to here.
18449
18450 2011-05-08  Bruno Haible  <bruno@clisp.org>
18451
18452         getgroups: Move AC_LIBOBJ invocations to module description.
18453         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18454         here...
18455         * modules/getgroups (configure.ac): ... to here.
18456
18457 2011-05-08  Bruno Haible  <bruno@clisp.org>
18458
18459         getdtablesize: Move AC_LIBOBJ invocations to module description.
18460         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18461         invocation from here...
18462         * modules/getdtablesize (configure.ac): ... to here.
18463
18464 2011-05-08  Bruno Haible  <bruno@clisp.org>
18465
18466         getdomainname: Move AC_LIBOBJ invocations to module description.
18467         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18468         gl_PREREQ_GETDOMAINNAME invocations from here...
18469         * modules/getdomainname (configure.ac): ... to here.
18470
18471 2011-05-08  Bruno Haible  <bruno@clisp.org>
18472
18473         getline: Move AC_LIBOBJ invocations to module description.
18474         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18475         invocations from here...
18476         * modules/getline (configure.ac): ... to here.
18477
18478 2011-05-08  Bruno Haible  <bruno@clisp.org>
18479
18480         getline: Simplify.
18481         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18482         It's already handled through the module dependency.
18483
18484 2011-05-08  Bruno Haible  <bruno@clisp.org>
18485
18486         getdelim: Move AC_LIBOBJ invocations to module description.
18487         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18488         and gl_PREREQ_GETDELIM invocations from here...
18489         * modules/getdelim (configure.ac): ... to here.
18490         (Depends-on): Fix condition.
18491
18492 2011-05-08  Bruno Haible  <bruno@clisp.org>
18493
18494         getcwd: Move AC_LIBOBJ invocations to module description.
18495         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18496         invocations from here...
18497         * modules/getcwd (configure.ac): ... to here.
18498
18499 2011-05-08  Bruno Haible  <bruno@clisp.org>
18500
18501         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18502         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18503         here...
18504         * modules/getcwd-lgpl (configure.ac): ... to here.
18505
18506 2011-05-07  Bruno Haible  <bruno@clisp.org>
18507
18508         crypto/gc: Move AC_LIBOBJ invocations to module description.
18509         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18510         * modules/crypto/gc (configure.ac): ... to here.
18511
18512 2011-05-07  Bruno Haible  <bruno@clisp.org>
18513
18514         fwriting: Move AC_LIBOBJ invocations to module description.
18515         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18516         here...
18517         * modules/fwriting (configure.ac): ... to here.
18518
18519 2011-05-07  Bruno Haible  <bruno@clisp.org>
18520
18521         fwritable: Move AC_LIBOBJ invocations to module description.
18522         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18523         here...
18524         * modules/fwritable (configure.ac): ... to here.
18525
18526 2011-05-07  Bruno Haible  <bruno@clisp.org>
18527
18528         futimens: Move AC_LIBOBJ invocations to module description.
18529         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18530         here...
18531         * modules/futimens (configure.ac): ... to here.
18532
18533 2011-05-07  Bruno Haible  <bruno@clisp.org>
18534
18535         ftruncate: Move AC_LIBOBJ invocations to module description.
18536         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18537         gl_PREREQ_FTRUNCATE invocations from here...
18538         * modules/ftruncate (configure.ac): ... to here.
18539
18540 2011-05-07  Bruno Haible  <bruno@clisp.org>
18541
18542         fsync: Move AC_LIBOBJ invocations to module description.
18543         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18544         invocations from here...
18545         * modules/fsync (configure.ac): ... to here.
18546
18547 2011-05-07  Bruno Haible  <bruno@clisp.org>
18548
18549         fsusage: Move AC_LIBOBJ invocations to module description.
18550         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18551         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18552         * modules/fsusage (configure.ac): ... to here.
18553
18554 2011-05-07  Bruno Haible  <bruno@clisp.org>
18555
18556         freopen: Move AC_LIBOBJ invocations to module description.
18557         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18558         invocations from here...
18559         * modules/freopen (configure.ac): ... to here.
18560
18561 2011-05-07  Bruno Haible  <bruno@clisp.org>
18562
18563         free: Move AC_LIBOBJ invocations to module description.
18564         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18565         invocations from here...
18566         * modules/free (configure.ac): ... to here.
18567
18568 2011-05-07  Bruno Haible  <bruno@clisp.org>
18569
18570         freadable: Move AC_LIBOBJ invocations to module description.
18571         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18572         here...
18573         * modules/freadable (configure.ac): ... to here.
18574
18575 2011-05-07  Bruno Haible  <bruno@clisp.org>
18576
18577         fpurge: Move AC_LIBOBJ invocations to module description.
18578         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18579         invocations from here...
18580         * modules/fpurge (configure.ac): ... to here.
18581
18582 2011-05-07  Bruno Haible  <bruno@clisp.org>
18583
18584         fpending: Move AC_LIBOBJ invocations to module description.
18585         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18586         gl_FUNC_FPENDING.
18587         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18588         invocations from here...
18589         * modules/fpending (configure.ac): ... to here.
18590
18591 2011-05-07  Bruno Haible  <bruno@clisp.org>
18592
18593         fopen: Move AC_LIBOBJ invocations to module description.
18594         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18595         invocations from here...
18596         * modules/fopen (configure.ac): ... to here.
18597
18598 2011-05-07  Bruno Haible  <bruno@clisp.org>
18599
18600         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18601         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18602         gl_FUNC_FNMATCH_POSIX.
18603         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18604         invocations from here...
18605         * modules/fnmatch (configure.ac): ... to here.
18606         * modules/fnmatch-gnu (configure.ac): ... and here.
18607
18608 2011-05-07  Bruno Haible  <bruno@clisp.org>
18609
18610         flock: Move AC_LIBOBJ invocations to module description.
18611         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18612         invocations from here...
18613         * modules/flock (configure.ac): ... to here.
18614
18615 2011-05-07  Bruno Haible  <bruno@clisp.org>
18616
18617         fileblocks: Move AC_LIBOBJ invocations to module description.
18618         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18619         gl_PREREQ_FILEBLOCKS invocations from here...
18620         * modules/fileblocks (configure.ac): ... to here.
18621
18622 2011-05-06  Bruno Haible  <bruno@clisp.org>
18623
18624         fflush: Move AC_LIBOBJ invocations to module description.
18625         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18626         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18627         invocations from here...
18628         * modules/fflush (configure.ac): ... to here.
18629
18630 2011-05-06  Bruno Haible  <bruno@clisp.org>
18631
18632         fdopendir: Move AC_LIBOBJ invocations to module description.
18633         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18634         here...
18635         * modules/fdopendir (configure.ac): ... to here.
18636         (Depends-on): Improve conditions.
18637
18638 2011-05-06  Bruno Haible  <bruno@clisp.org>
18639
18640         _Exit: Move AC_LIBOBJ invocations to module description.
18641         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18642         invocations from here...
18643         * modules/_Exit (configure.ac): ... to here.
18644
18645 2011-05-21  Bruno Haible  <bruno@clisp.org>
18646
18647         euidaccess: Respect rules for use of AC_LIBOBJ.
18648         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18650         from here...
18651         * modules/euidaccess (configure.ac): ... to here.
18652
18653 2011-05-06  Bruno Haible  <bruno@clisp.org>
18654
18655         error: Move AC_LIBOBJ invocations to module description.
18656         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18657         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18658         invocations from here...
18659         * modules/error (configure.ac): ... to here.
18660
18661 2011-05-06  Bruno Haible  <bruno@clisp.org>
18662
18663         duplocale: Move AC_LIBOBJ invocations to module description.
18664         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18665         gl_PREREQ_DUPLOCALE invocations from here...
18666         * modules/duplocale (configure.ac): ... to here.
18667
18668 2011-05-05  Bruno Haible  <bruno@clisp.org>
18669
18670         dirfd: Move AC_LIBOBJ invocations to module description.
18671         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18672         gl_FUNC_DIRFD.
18673         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18674         here...
18675         * modules/dirfd (configure.ac): ... to here.
18676         (Depends-on): Fix condition.
18677
18678 2011-05-05  Bruno Haible  <bruno@clisp.org>
18679
18680         chown: Respect rules for use of AC_LIBOBJ.
18681         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18682         * modules/chown (configure.ac): ... to here.
18683
18684 2011-05-05  Bruno Haible  <bruno@clisp.org>
18685
18686         chdir-long: Move AC_LIBOBJ invocations to module description.
18687         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18688         gl_PREREQ_CHDIR_LONG invocations from here...
18689         * modules/chdir-long (configure.ac): ... to here.
18690
18691 2011-05-05  Bruno Haible  <bruno@clisp.org>
18692
18693         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18694         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18695         from here...
18696         * modules/canonicalize-lgpl (configure.ac): ... to here.
18697
18698 2011-05-05  Bruno Haible  <bruno@clisp.org>
18699
18700         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18701         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18702         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18703         REPLACE_CALLOC.
18704         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18705         * modules/calloc-gnu (configure.ac): Likewise.
18706
18707 2011-05-05  Bruno Haible  <bruno@clisp.org>
18708
18709         btowc: Move AC_LIBOBJ invocations to module description.
18710         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18711         invocations from here...
18712         * modules/btowc (configure.ac): ... to here.
18713
18714 2011-05-21  Bruno Haible  <bruno@clisp.org>
18715
18716         atexit: Move AC_LIBOBJ invocations to module description.
18717         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18718         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18719         here...
18720         * modules/atexit (configure.ac): ... to here.
18721
18722 2011-05-05  Bruno Haible  <bruno@clisp.org>
18723
18724         atoll: Move AC_LIBOBJ invocations to module description.
18725         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18726         invocations from here...
18727         * modules/atoll (configure.ac): ... to here.
18728
18729 2011-05-05  Bruno Haible  <bruno@clisp.org>
18730
18731         argz: Move AC_LIBOBJ invocations to module description.
18732         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18733         * modules/argz (configure.ac): ... to here.
18734
18735 2011-05-05  Bruno Haible  <bruno@clisp.org>
18736
18737         alphasort: Move AC_LIBOBJ invocations to module description.
18738         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18739         gl_PREREQ_ALPHASORT invocations from here...
18740         * modules/alphasort (configure.ac): ... to here.
18741
18742 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18743
18744         verify: new macro verify_expr; verify_true deprecated
18745         * NEWS: Mention this.
18746         * doc/verify.texi (Compile-time Assertions): Document this.
18747         * lib/verify.h (verify_true): Deprecate.
18748         (verify_expr): New macro.
18749         * tests/test-verify.c (function): Test verify_expr.
18750
18751 2011-06-14  Jim Meyering  <meyering@redhat.com>
18752
18753         init.sh: give more portable redirection-related advice in a comment
18754         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18755         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18756         for lots of discussion.  Stefano Lattarini suggested the solution
18757         of putting "9>&2" after the command.  Reported by Bruno Haible.
18758
18759 2011-06-13  Bruno Haible  <bruno@clisp.org>
18760
18761         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18762         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18763         'none'.
18764
18765 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18766
18767         ftoastr: use strtof only if HAVE_STRTOF
18768         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18770         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18771         * modules/ftoastr (configure.ac): Check for strtof.
18772
18773 2011-06-13  Bruno Haible  <bruno@clisp.org>
18774
18775         gnulib-tool: Addendum to 2011-06-08 commit.
18776         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18777         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18778
18779 2011-06-13  Bruno Haible  <bruno@clisp.org>
18780
18781         fseeko: Provide a non-inline replacement of fseek().
18782         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18783         * modules/fseeko (Depends-on): Add fseek.
18784         * modules/fseek (License): Change to LGPLv2+.
18785
18786 2011-06-13  Bruno Haible  <bruno@clisp.org>
18787
18788         ftello: Provide a non-inline replacement of ftell().
18789         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18790         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18791         not have ftello() (such as on mingw).
18792         * modules/ftello (Depends-on): Add ftell.
18793         * modules/ftell (License): Change to LGPLv2+.
18794
18795 2011-05-07  Bruno Haible  <bruno@clisp.org>
18796
18797         ftell: Move AC_LIBOBJ invocations to module description.
18798         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18799         * modules/ftell (configure.ac): ... to here.
18800
18801 2011-05-07  Bruno Haible  <bruno@clisp.org>
18802
18803         ftello: Respect rules for use of AC_LIBOBJ.
18804         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18805         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18806         here...
18807         * modules/ftello (configure.ac): ... to here.
18808
18809 2011-05-07  Bruno Haible  <bruno@clisp.org>
18810
18811         fseeko: Simplify.
18812         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18813         (gl_FUNC_FSEEKO): Inline it here.
18814
18815 2011-05-07  Bruno Haible  <bruno@clisp.org>
18816
18817         fseek: Move AC_LIBOBJ invocations to module description.
18818         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18819         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18820         * modules/fseek (configure.ac): ... to here.
18821
18822 2011-05-07  Bruno Haible  <bruno@clisp.org>
18823
18824         fseek: Respect rules for use of AC_LIBOBJ.
18825         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18826         here...
18827         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18828
18829 2011-05-07  Bruno Haible  <bruno@clisp.org>
18830
18831         fseeko: Respect rules for use of AC_LIBOBJ.
18832         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18833         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18834         here...
18835         * modules/fseeko (configure.ac): ... to here.
18836
18837 2011-06-13  Bruno Haible  <bruno@clisp.org>
18838
18839         gnulib-tool: Allow comments in the 'Depends-on' section.
18840         * doc/gnulib.texi (Module description): Mention comment syntax in the
18841         Depends-on section.
18842         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18843
18844 2011-06-13  Bruno Haible  <bruno@clisp.org>
18845
18846         file-set.h: guard __attibute__ use, now that it's not always defined
18847         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18848         versions that support it.  This fixes a coreutils build failure with
18849         the vendor cc on HP-UX 11.31.
18850
18851 2011-06-12  Bruno Haible  <bruno@clisp.org>
18852
18853         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18854         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18855         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18856         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18857         (acl, aclsort): New declarations.
18858         (aclv_nontrivial): New declaration.
18859         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18860         (file_has_acl): Read also the second kind of HP-UX ACLs.
18861         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18862         kind of HP-UX ACLs if the first kind fails.
18863         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18864         second kind of HP-UX ACLs.
18865         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18866         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18867         agree.
18868         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18869         hpuxjfs.
18870         Handle hpuxjfs.
18871         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18872         hpuxjfs.
18873         Handle hpuxjfs.
18874         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18875         (func_test_same_acls): Use both lsacl and getacl.
18876         Handle hpuxjfs.
18877         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18878         (func_test_same_acls): Use both lsacl and getacl.
18879         Handle hpuxjfs.
18880
18881 2011-06-12  Bruno Haible  <bruno@clisp.org>
18882
18883         acl: Complete the 2010-08-10 fix.
18884         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18885         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18886         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18887         explicitly.
18888         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18889         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18890
18891 2011-06-12  Bruno Haible  <bruno@clisp.org>
18892
18893         spawn-pipe tests: Comments.
18894         * tests/test-spawn-pipe-child.c (main): Update comment.
18895         Reported by James Youngman <jay@gnu.org>.
18896
18897 2011-06-11  James Youngman  <jay@gnu.org>
18898
18899         New module 'stat-size'.
18900         * modules/stat-size: New module.  Provides macros for accessing
18901         file size information in instances of struct stat.  Depends on the
18902         fileblocks module because it calls st_blocks.
18903         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18904         * doc/gnulib.texi: Include stat-size.texi.
18905         * doc/stat-size.texi: Documentation for this module.
18906         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18907         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18908         AC_STRUCT_ST_BLOCKS.
18909
18910 2011-06-09  Bruno Haible  <bruno@clisp.org>
18911
18912         thread: Support pthreads-win32.
18913         * lib/glthread/thread.h (gl_thread_self): Define differently on
18914         pthreads-win32.
18915         (gl_null_thread): New declaration.
18916         (gl_thread_self_pointer): New macro.
18917         * lib/glthread/thread.c (gl_null_thread): New constant.
18918         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18919         gl_thread_self.
18920         * tests/test-tls.c: Likewise.
18921         Suggested by Paul Eggert. Reported by Eric Blake.
18922
18923 2011-06-09  Bruno Haible  <bruno@clisp.org>
18924
18925         thread: Fix confusion between NULL and 0.
18926         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18927         Reported by Paul Eggert.
18928
18929 2011-06-09  Bruno Haible  <bruno@clisp.org>
18930
18931         spawn-pipe tests: Avoid test failure on HP-UX 11.
18932         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18933         is closed.
18934
18935 2011-06-09  Bruno Haible  <bruno@clisp.org>
18936
18937         acl tests: Fix compilation error on HP-UX 11.
18938         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18939
18940 2011-06-09  Bruno Haible  <bruno@clisp.org>
18941
18942         rmdir: Avoid test failure on HP-UX 10.20.
18943         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18944         EEXIST.
18945
18946 2011-06-08  Eric Blake  <eblake@redhat.com>
18947
18948         perror: fix test on mingw
18949         * modules/perror-tests (Depends-on): Add dup2.
18950
18951         strerror_r-posix: fix on MacOS
18952         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18953         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18954         logic bug.
18955         * lib/strerror_r.c (strerror_r): Fix the bug.
18956         * lib/strerror.c (strerror): Likewise.
18957         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18958         problem.
18959         * doc/posix-functions/strerror.texi (strerror): Likewise.
18960         * doc/posix-functions/perror.texi (perror): Likewise.
18961         * tests/test-strerror.c (main): Enhance test.
18962         * tests/test-strerror_r.c (main): Likewise.
18963
18964 2011-06-08  Bruno Haible  <bruno@clisp.org>
18965
18966         gnulib-tool: Better isolation between different gnulib-tool invocations.
18967         * gnulib-tool: New option --witness-c-macro.
18968         (witness_c_macro): New variable.
18969         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18970         AM_CPPFLAGS define it as a C macro.
18971         (func_emit_tests_Makefile_am): Likewise.
18972         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18973         read it from there.
18974         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18975         m4_define, not AC_DEFUN.
18976         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18977         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18978         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18979         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18980         s|...|...|, to substitute the values of the GNULIB_* module indicator
18981         variables.
18982         * modules/dirent (Makefile.am): Likewise.
18983         * modules/fcntl-h (Makefile.am): Likewise.
18984         * modules/iconv-h (Makefile.am): Likewise.
18985         * modules/langinfo (Makefile.am): Likewise.
18986         * modules/locale (Makefile.am): Likewise.
18987         * modules/math (Makefile.am): Likewise.
18988         * modules/netdb (Makefile.am): Likewise.
18989         * modules/poll-h (Makefile.am): Likewise.
18990         * modules/pty (Makefile.am): Likewise.
18991         * modules/search (Makefile.am): Likewise.
18992         * modules/signal (Makefile.am): Likewise.
18993         * modules/spawn (Makefile.am): Likewise.
18994         * modules/stdio (Makefile.am): Likewise.
18995         * modules/stdlib (Makefile.am): Likewise.
18996         * modules/string (Makefile.am): Likewise.
18997         * modules/sys_ioctl (Makefile.am): Likewise.
18998         * modules/sys_select (Makefile.am): Likewise.
18999         * modules/sys_socket (Makefile.am): Likewise.
19000         * modules/sys_stat (Makefile.am): Likewise.
19001         * modules/sys_times (Makefile.am): Likewise.
19002         * modules/sys_utsname (Makefile.am): Likewise.
19003         * modules/sys_wait (Makefile.am): Likewise.
19004         * modules/termios (Makefile.am): Likewise.
19005         * modules/time (Makefile.am): Likewise.
19006         * modules/unistd (Makefile.am): Likewise.
19007         * modules/wchar (Makefile.am): Likewise.
19008
19009 2011-06-08  Eric Blake  <eblake@redhat.com>
19010
19011         strerror: simplify replacement
19012         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19013         * modules/strerror (configure.ac): No prereqs needed here...
19014         * modules/strerror-override (configure.ac): ...but this needs it.
19015         (Files): Add file for needed prereq macro.
19016
19017 2011-06-08  Bruno Haible  <bruno@clisp.org>
19018
19019         strerror_r-posix: Tweaks.
19020         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19021         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19022         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19023         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19024         (gl_FUNC_STRERROR_R): ... to here.
19025         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19026
19027 2011-06-07  Eric Blake  <eblake@redhat.com>
19028
19029         perror: document fixed bugs
19030         * doc/posix-functions/perror.texi (perror): Document recent
19031         patches.
19032
19033 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19034
19035         stat-time: get_stat_birthtime failure is better-defined
19036         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19037         return a timestamp whose tv_sec and tv_nsec values are both -1.
19038         Previously, the spec said only that the tv_nsec value was negative.
19039         This upward-compatible change simplifies GNU tar a bit.
19040
19041 2011-06-07  Eric Blake  <eblake@redhat.com>
19042
19043         strerror_r-posix: work around cygwin 1.7.9
19044         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19045         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19046         bug without replacing strerror_r.
19047         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19048         strerror_r is buggy, but without requiring strerror_r compilation.
19049         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19050
19051         test-perror: relax test to ignore cygwin bug
19052         * tests/test-perror2.c (main): Relax test on requiring detection
19053         of stream errors, and use unbuffered stream.
19054         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19055         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19056         * doc/posix-functions/fputc.texi (fputc): Likewise.
19057         * doc/posix-functions/fputs.texi (fputs): Likewise.
19058         * doc/posix-functions/fputws.texi (fputws): Likewise.
19059         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19060         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19061         * doc/posix-functions/getopt.texi (getopt): Likewise.
19062         * doc/posix-functions/perror.texi (perror): Likewise.
19063         * doc/posix-functions/printf.texi (printf): Likewise.
19064         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19065         * doc/posix-functions/psignal.texi (psignal): Likewise.
19066         * doc/posix-functions/putc.texi (putc): Likewise.
19067         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19068         Likewise.
19069         * doc/posix-functions/putchar.texi (putchar): Likewise.
19070         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19071         Likewise.
19072         * doc/posix-functions/puts.texi (puts): Likewise.
19073         * doc/posix-functions/putwc.texi (putwc): Likewise.
19074         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19075         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19076         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19077         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19078         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19079         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19080         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19081         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19082
19083 2011-05-22  Bruno Haible  <bruno@clisp.org>
19084
19085         strerror: Move AC_LIBOBJ invocations to module description.
19086         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19087         gl_PREREQ_STRERROR invocations from here...
19088         * modules/strerror (configure.ac): ... to here.
19089
19090 2011-05-21  Bruno Haible  <bruno@clisp.org>
19091
19092         perror: Use common idiom.
19093         * modules/perror (configure.ac): Reorder statements.
19094
19095 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19096
19097         tests: fix usage message in 'mktempd_'
19098         * tests/init.sh (mktempd_): In the usage message, use literal
19099         'mktempd_', not '$ME' (which is even undefined), as the name of
19100         the subroutine.
19101
19102 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19103
19104         tests init: new function 'fatal_', for hard errors
19105         Before this patch, the only way offered by tests/init.sh to
19106         properly signal a hard error was the `framework_failure_'
19107         function.  But the error message issued by that function,
19108         as its name would suggest, refers to a set-up failure in the
19109         testsuite, while hard errors can obviously also be due to
19110         other reasons.  The best way to fix this inconsistency is to
19111         introduce a new function with a more general error message.
19112         * tests/init.sh (fatal_): New function.
19113
19114 2011-06-06  Eric Blake  <eblake@redhat.com>
19115
19116         canonicalize-lgpl: use common idiom
19117         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19118         over newer POSIX -Rf.
19119         Reported by Bruno Haible.
19120
19121         canonicalize-lgpl: work around AIX realpath bug
19122         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19123         * doc/posix-functions/realpath.texi (realpath): Document it.
19124         Reported by Bruno Haible.
19125
19126         strerror: work around FreeBSD bug
19127         * lib/strerror.c (strerror): Special case 0.
19128         Reported by Bruno Haible.
19129
19130         strerror-override: avoid bloating errno module
19131         * modules/errno (Files, configure.ac): Move replacement strings...
19132         * modules/strerror-override: ...to new module.
19133         * modules/strerror (Depends-on): Add strerror-override.
19134         * modules/strerror_r-posix (Depends-on): Likewise.
19135         * MODULES.html.sh: Document new module.
19136         Reported by Bruno Haible.
19137
19138 2011-06-06  Bruno Haible  <bruno@clisp.org>
19139
19140         spawn-pipe tests: Rename program.
19141         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19142         * tests/test-spawn-pipe-child.c: Update comment.
19143         * tests/test-spawn-pipe.sh: Update.
19144         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19145
19146         spawn-pipe tests: Link the child program only against libc.
19147         * tests/test-spawn-pipe-child.c: New file, extracted from
19148         tests/test-spawn-pipe.c.
19149         (main): Expect only one argument.
19150         (is_open): New function, copied from tests/test-pipe.c.
19151         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19152         (child_main): Remove function.
19153         (test_pipe): Pass only one argument to the child program.
19154         (main): Remove child process code. Expect the child program's name as
19155         first argument.
19156         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19157         argument.
19158         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19159         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19160         test-spawn-pipe-child against no libraries.
19161
19162 2011-06-06  Bruno Haible  <bruno@clisp.org>
19163
19164         careadlinkat: Avoid mismatch between ssize_t and int.
19165         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19166         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19167
19168 2011-06-06  Jim Meyering  <meyering@redhat.com>
19169
19170         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19171         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19172         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19173
19174 2011-06-05  Bruno Haible  <bruno@clisp.org>
19175
19176         ansi-c++-opt: Interoperability with libtool.
19177         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19178         set the variable to "no", not to ":".
19179         * NEWS: Mention the change.
19180
19181 2011-06-05  Bruno Haible  <bruno@clisp.org>
19182
19183         acl: Fix test failure on AIX 7.
19184         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19185         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19186
19187 2011-06-05  Bruno Haible  <bruno@clisp.org>
19188
19189         pipe-filter-ii: Fix test failure on AIX and IRIX.
19190         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19191         with EAGAIN, retry with a smaller buffer size.
19192
19193 2011-06-05  Bruno Haible  <bruno@clisp.org>
19194
19195         localename: Fix link dependencies.
19196         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19197         * modules/localename-tests (Makefile.am): Link test-localename with
19198         $(LIBTHREAD).
19199
19200 2011-06-05  Bruno Haible  <bruno@clisp.org>
19201
19202         error: Avoid gcc warning.
19203         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19204
19205 2011-06-05  Bruno Haible  <bruno@clisp.org>
19206
19207         unsetenv: Avoid gcc warning.
19208         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19209
19210 2011-06-05  Bruno Haible  <bruno@clisp.org>
19211
19212         setenv: Avoid gcc warning.
19213         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19214
19215 2011-06-05  Bruno Haible  <bruno@clisp.org>
19216
19217         sys_select: Ensure memset is declared also on AIX 7.
19218         * lib/sys_select.in.h: Include <string.h> also on AIX.
19219         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19220         self-contained also on AIX 7.1.
19221
19222 2011-06-04  Jim Meyering  <meyering@redhat.com>
19223
19224         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19225         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19226         function name, "error".
19227         (_gl_translatable_diag_func_re): New configurable variable.
19228
19229 2011-06-04  Bruno Haible  <bruno@clisp.org>
19230
19231         getopt: Avoid gcc warning.
19232         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19233
19234 2011-06-04  Bruno Haible  <bruno@clisp.org>
19235
19236         strerror_r: Fix comments.
19237         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19238         commit.
19239
19240 2011-06-04  Bruno Haible  <bruno@clisp.org>
19241
19242         perror: Fix compilation error.
19243         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19244         Undefine fprintf, not sprintf.
19245         * modules/perror (Depends-on): Remove intprops, verify.
19246
19247 2011-06-04  Bruno Haible  <bruno@clisp.org>
19248
19249         setlocale: Enable replacement on Cygwin 1.5.
19250         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19251         Cygwin 1.5.x.
19252         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19253         LC_CTYPE category also exists on Cygwin 1.5.x.
19254
19255 2011-06-04  Bruno Haible  <bruno@clisp.org>
19256
19257         strerror-override: Don't disable symbol renamings.
19258         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19259         * lib/strerror-override.c: Include config.h.
19260         (strerror_override): Don't undefine.
19261
19262 2011-06-03  Bruno Haible  <bruno@clisp.org>
19263
19264         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19265         * lib/localename.h: Update copyright header.
19266         * lib/localename.c: Likewise.
19267         * lib/relocatable.h: Likewise.
19268         * lib/relocatable.c: Likewise.
19269
19270 2011-06-02  Bruno Haible  <bruno@clisp.org>
19271
19272         doc: Fix a module name.
19273         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19274
19275 2011-06-02  Bruno Haible  <bruno@clisp.org>
19276
19277         pipe2: Remove dependency on 'nonblocking' module.
19278         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19279         O_NONBLOCK is defined by gnulib.
19280         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19281         is zero.
19282         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19283         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19284         defined by gnulib.
19285         (get_nonblocking_flag): New function.
19286         (main): Test O_NONBLOCK flag only if it is nonzero.
19287         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19288
19289 2011-06-03  Jim Meyering  <meyering@redhat.com>
19290
19291         maint: three new prohibit-header-without-use rules
19292         Prohibit use of cloexec.h, posixver.h, same.h without use.
19293         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19294         (sc_prohibit_posixver_without_use): Likewise.
19295         (sc_prohibit_same_without_use): Likewise.
19296
19297 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19298
19299         allocator: 'die' routine is now given requested size
19300         * lib/allocator.h (struct allocator.die): New size arg.
19301         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19302         If the actual problem is an ssize_t limitation, not a size_t or
19303         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19304
19305 2011-06-01  Eric Blake  <eblake@redhat.com>
19306
19307         strerror: drop strerror_r dependency
19308         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19309         * lib/strerror-override.c (strerror_override): ...to new file.
19310         * lib/strerror-override.h: Add prototype.
19311         * lib/strerror-impl.h: Delete.
19312         * lib/strerror.c (strerror): New implementation.
19313         * modules/errno (Files): Add new files.
19314         (configure.ac): Compile new file as appropriate.
19315         * modules/strerror (Files): Drop unused file.
19316         (Depends-on): Drop strerror_r-posix.
19317         * MODULES.html.sh: Document strerror_r-posix.
19318         Requested by Sam Steingold.
19319
19320         perror: call strerror_r directly
19321         * modules/perror (Files): Drop strerror-impl.h.
19322         * lib/perror.c (perror): Use our own stack buffer, rather than
19323         calling a wrapper that uses static storage.
19324         * doc/posix-functions/perror.texi (perror): Document a limitation
19325         of our replacement.
19326
19327         strerror_r: fix includes for FreeBSD
19328         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19329         since we use abort on some platforms.
19330         Reported by Matthias Bolte.
19331
19332 2011-05-31  Bruno Haible  <bruno@clisp.org>
19333
19334         Fix link errors in tests: openat-die uses gettext-h.
19335         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19336         against $(LIBINTL).
19337         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19338         against $(LIBINTL).
19339         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19340         $(LIBINTL).
19341         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19342         against $(LIBINTL).
19343         * modules/linkat-tests (Makefile.am): Link test-linkat against
19344         $(LIBINTL).
19345         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19346         $(LIBINTL).
19347         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19348         against $(LIBINTL).
19349         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19350         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19351         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19352         $(LIBINTL).
19353         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19354         $(LIBINTL).
19355         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19356         $(LIBINTL).
19357         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19358
19359 2011-05-31  Bruno Haible  <bruno@clisp.org>
19360
19361         Fix link errors in tests: wait-process uses gettext-h.
19362         * modules/nonblocking-pipe-tests (Makefile.am): Set
19363         test_nonblocking_pipe_main_LDADD.
19364         * modules/nonblocking-socket-tests (Makefile.am): Link
19365         test-nonblocking-socket-main against $(LIBINTL).
19366         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19367
19368 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19369
19370         assert-h: work around 'verify' incompatibility
19371         * lib/verify.h: Use @...@ directives, not ifdef.
19372         * modules/assert-h (assert.h): Implement the directives.
19373         (assert.h): Substitute the symbol-prefix more consistently.
19374
19375 2011-05-29  Jim Meyering  <meyering@redhat.com>
19376
19377         trim: remove three superfluous assignments
19378         * lib/trim.c (trim2): Remove three superfluous assignments
19379         and correct brace positioning.
19380
19381 2011-05-29  Bruno Haible  <bruno@clisp.org>
19382
19383         wctype-h: Avoid namespace pollution on Solaris 2.6.
19384         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19385         identifiers.
19386         * doc/posix-headers/wctype.texi: Mention the problem.
19387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19388
19389 2011-05-28  Jim Meyering  <meyering@redhat.com>
19390
19391         parse-datetime.y: accommodate -Wstrict-overflow
19392         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19393         placate -Wstrict-overflow.
19394
19395         trim: avoid a warning from -O2 -Wstrict-overflow
19396         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19397
19398 2011-05-29  Bruno Haible  <bruno@clisp.org>
19399
19400         gnulib-tool: Fix bug in yesterday's commit.
19401         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19402         twice.
19403
19404 2011-05-29  Bruno Haible  <bruno@clisp.org>
19405
19406         Allow multiple gnulib generated include files to be combined.
19407         * gnulib-tool (func_compute_include_guard_prefix): New function.
19408         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19409         ${gl_include_guard_prefix} references.
19410         (func_import, func_create_testdir): Invoke
19411         func_compute_include_guard_prefix.
19412         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19413         * lib/ctype.in.h: Likewise.
19414         * lib/dirent.in.h: Likewise.
19415         * lib/errno.in.h: Likewise.
19416         * lib/fcntl.in.h: Likewise.
19417         * lib/float.in.h: Likewise.
19418         * lib/getopt.in.h: Likewise.
19419         * lib/iconv.in.h: Likewise.
19420         * lib/langinfo.in.h: Likewise.
19421         * lib/locale.in.h: Likewise.
19422         * lib/math.in.h: Likewise.
19423         * lib/netdb.in.h: Likewise.
19424         * lib/netinet_in.in.h: Likewise.
19425         * lib/poll.in.h: Likewise.
19426         * lib/pthread.in.h: Likewise.
19427         * lib/pty.in.h: Likewise.
19428         * lib/sched.in.h: Likewise.
19429         * lib/se-selinux.in.h: Likewise.
19430         * lib/search.in.h: Likewise.
19431         * lib/signal.in.h: Likewise.
19432         * lib/spawn.in.h: Likewise.
19433         * lib/stdarg.in.h: Likewise.
19434         * lib/stddef.in.h: Likewise.
19435         * lib/stdint.in.h: Likewise.
19436         * lib/stdio.in.h: Likewise.
19437         * lib/stdlib.in.h: Likewise.
19438         * lib/string.in.h: Likewise.
19439         * lib/strings.in.h: Likewise.
19440         * lib/sys_file.in.h: Likewise.
19441         * lib/sys_ioctl.in.h: Likewise.
19442         * lib/sys_select.in.h: Likewise.
19443         * lib/sys_socket.in.h: Likewise.
19444         * lib/sys_stat.in.h: Likewise.
19445         * lib/sys_time.in.h: Likewise.
19446         * lib/sys_times.in.h: Likewise.
19447         * lib/sys_uio.in.h: Likewise.
19448         * lib/sys_utsname.in.h: Likewise.
19449         * lib/sys_wait.in.h: Likewise.
19450         * lib/sysexits.in.h: Likewise.
19451         * lib/termios.in.h: Likewise.
19452         * lib/time.in.h: Likewise.
19453         * lib/unistd.in.h: Likewise.
19454         * lib/wchar.in.h: Likewise.
19455         * lib/wctype.in.h: Likewise.
19456         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19457         * modules/ctype (Makefile.am): Likewise.
19458         * modules/dirent (Makefile.am): Likewise.
19459         * modules/errno (Makefile.am): Likewise.
19460         * modules/fcntl-h (Makefile.am): Likewise.
19461         * modules/float (Makefile.am): Likewise.
19462         * modules/getopt-posix (Makefile.am): Likewise.
19463         * modules/iconv-h (Makefile.am): Likewise.
19464         * modules/langinfo (Makefile.am): Likewise.
19465         * modules/locale (Makefile.am): Likewise.
19466         * modules/math (Makefile.am): Likewise.
19467         * modules/netdb (Makefile.am): Likewise.
19468         * modules/netinet_in (Makefile.am): Likewise.
19469         * modules/poll-h (Makefile.am): Likewise.
19470         * modules/pthread (Makefile.am): Likewise.
19471         * modules/pty (Makefile.am): Likewise.
19472         * modules/sched (Makefile.am): Likewise.
19473         * modules/search (Makefile.am): Likewise.
19474         * modules/selinux-h (Makefile.am): Likewise.
19475         * modules/signal (Makefile.am): Likewise.
19476         * modules/spawn (Makefile.am): Likewise.
19477         * modules/stdarg (Makefile.am): Likewise.
19478         * modules/stddef (Makefile.am): Likewise.
19479         * modules/stdint (Makefile.am): Likewise.
19480         * modules/stdio (Makefile.am): Likewise.
19481         * modules/stdlib (Makefile.am): Likewise.
19482         * modules/string (Makefile.am): Likewise.
19483         * modules/strings (Makefile.am): Likewise.
19484         * modules/sys_file (Makefile.am): Likewise.
19485         * modules/sys_ioctl (Makefile.am): Likewise.
19486         * modules/sys_select (Makefile.am): Likewise.
19487         * modules/sys_socket (Makefile.am): Likewise.
19488         * modules/sys_stat (Makefile.am): Likewise.
19489         * modules/sys_time (Makefile.am): Likewise.
19490         * modules/sys_times (Makefile.am): Likewise.
19491         * modules/sys_uio (Makefile.am): Likewise.
19492         * modules/sys_utsname (Makefile.am): Likewise.
19493         * modules/sys_wait (Makefile.am): Likewise.
19494         * modules/sysexits (Makefile.am): Likewise.
19495         * modules/termios (Makefile.am): Likewise.
19496         * modules/time (Makefile.am): Likewise.
19497         * modules/unistd (Makefile.am): Likewise.
19498         * modules/wchar (Makefile.am): Likewise.
19499         * modules/wctype-h (Makefile.am): Likewise.
19500         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19501
19502 2011-05-29  Bruno Haible  <bruno@clisp.org>
19503
19504         assert-h: Allow multiple gnulib generated replacements to coexist.
19505         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19506
19507 2011-05-29  Bruno Haible  <bruno@clisp.org>
19508
19509         argp: Allow coexistence with strerror_r-posix module.
19510         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19511         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19512         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19513         not the glibc signature.
19514
19515 2011-05-28  Bruno Haible  <bruno@clisp.org>
19516
19517         gnulib-tool: Alternative structure of testdirs, similar to --import.
19518         * gnulib-tool: New option --single-configure.
19519         (func_usage): Document it.
19520         (single_configure): New variable.
19521         (func_modules_transitive_closure_separately,
19522         func_modules_transitive_closure_separately,
19523         func_determine_use_libtests, func_modules_add_dummy_separately,
19524         func_modules_to_filelist_separately): New functions, extracted from
19525         func_import.
19526         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19527         (func_import): Use the new functions.
19528         (func_create_testdir): Set final_modules. Handle $single_configure =
19529         true case.
19530
19531 2011-05-28  Bruno Haible  <bruno@clisp.org>
19532
19533         getloadavg: Remove an unreliable safety check.
19534         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19535         getloadavg.c is in place.
19536         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19537         Reported by Sam Steingold <sds@gnu.org>.
19538
19539 2011-05-28  Bruno Haible  <bruno@clisp.org>
19540
19541         doc: Cleanup yet another file produced by texinfo.tex.
19542         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19543
19544 2011-05-28  Bruno Haible  <bruno@clisp.org>
19545
19546         Finish the conditional dependencies mechanism.
19547         * gnulib-tool: New option --no-conditional-dependencies.
19548         (func_usage): Document it. Don't mark --conditional-dependencies as
19549         experimental.
19550         (cond_dependencies): The possible values can now be true, false, empty.
19551         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19552         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19553         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19554
19555 2011-05-28  Bruno Haible  <bruno@clisp.org>
19556
19557         doc: Use a recent texinfo.tex.
19558         * doc/Makefile (tex_opts): New variable.
19559         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19560
19561 2011-05-28  Jim Meyering  <meyering@redhat.com>
19562
19563         intprops.h: adjust comment to match code change
19564         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19565         only once, it *may* have side effects.  Also fix an unrelated typo.
19566         (_GL_INT_SIGNED): Likewise.
19567
19568 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19569
19570         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19571
19572 2011-05-26  Bruno Haible  <bruno@clisp.org>
19573
19574         mbsrchr: Avoid collision with system function on Interix.
19575         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19576         Reported by Markus Duft <mduft@gentoo.org>.
19577
19578 2011-05-15  James Youngman  <jay@gnu.org>
19579
19580         getopt: for ambiguous options, enumerate the possibilities.
19581         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19582         the ambiguous options when an ambiguous prefix is given. This was
19583         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19584         glibc change was
19585         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19586
19587 2011-05-25  Eric Blake  <eblake@redhat.com>
19588
19589         getcwd: work around mingw bug
19590         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19591         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19592         Reported by Matthias Bolte.
19593
19594 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19595
19596         test-intprops: disable -Wtype-limits diagnostics
19597         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19598         diagnostics.  Otherwise, the integer overflow macros generate many
19599         diagnostics.  Reported by Jim Meyering in
19600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19601
19602         intprops: shorten, to pacify gcc -Woverlength-strings
19603         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19604         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19605         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19606         likely to run afoul of C compiler limits for string constant lengths.
19607         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19608
19609 2011-05-24  Eric Blake  <eblake@redhat.com>
19610
19611         docs: document recently fixed glibc printf bug
19612         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19613         * doc/posix-functions/printf.texi (printf): Likewise.
19614         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19615         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19616
19617         closein-tests: convert to init.sh
19618         * modules/closein-tests (Files): Add init.sh
19619         * tests/test-closein.sh Use it.
19620
19621         yesno-tests: convert to init.sh
19622         * modules/yesno-tests (Files): Add init.sh.
19623         * tests/test-yesno.sh: Use it.
19624
19625         atexit-tests: ensure reliable exit status
19626         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19627         Reported by Bruno Haible.
19628
19629 2011-05-24  Bruno Haible  <bruno@clisp.org>
19630
19631         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19632         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19633         gl_PREREQ_STRERROR_R invocations from here...
19634         * modules/strerror_r-posix (configure.ac): ... to here.
19635
19636 2011-05-24  Eric Blake  <eblake@redhat.com>
19637
19638         strerror_r: fix missing header
19639         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19640
19641         strerror_r: fix AIX test failures
19642         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19643         ERANGE failure.
19644
19645         strerror_r: fix Solaris test failures
19646         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19647         failures.
19648         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19649
19650         strerror_r: enforce POSIX recommendations
19651         * lib/strerror_r.c (safe_copy): New helper method.
19652         (strerror_r): Guarantee a non-empty string.
19653         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19654         recent POSIX rulings and to match our strerror guarantees.
19655         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19656
19657 2011-05-24  Jim Meyering  <meyering@redhat.com>
19658
19659         test-perror2.c: avoid warning about unused variable
19660         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19661
19662 2011-05-24  Eric Blake  <eblake@redhat.com>
19663
19664         perror: avoid spurious test failure on HP-UX
19665         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19666
19667         tests: fix logic bug in init.sh
19668         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19669         shell.
19670
19671 2011-05-24  Jim Meyering  <meyering@redhat.com>
19672
19673         utimensat: do not reference an out-of-scope buffer
19674         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19675         declared in an inner scope, yet "times" would be dereferenced outside
19676         the scope in which "ts" was valid.
19677         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19678         of ts[2] "out/up", so that the use of aliased "times" (via
19679         "times = ts;") does not end up referencing an out-of-scope "ts"
19680
19681         opendir-safer.c: don't clobber errno; don't close negative FD
19682         * lib/opendir-safer.c (opendir_safer):
19683         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19684         file descriptor, and more importantly, don't clobber the
19685         offending errno value with EINVAL.  Before, upon failure
19686         of dup_safer, we would pass the negative file descriptor to
19687         fdopendir, which would clobber errno.
19688
19689 2011-05-23  Bruno Haible  <bruno@clisp.org>
19690
19691         idcache: Fix module description.
19692         * modules/idcache (Include): Set to "idcache.h".
19693
19694 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19695
19696         gnulib-tool: fix portability problem with MacOS sed
19697         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19698         before the "}".  Problem reported by Leo in
19699         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19700         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19701         sed_extract_condition1, sed_extract_condition2.
19702
19703 2011-05-23  Bruno Haible  <bruno@clisp.org>
19704
19705         hash: Simplify autoconf macro.
19706         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19707
19708 2011-05-23  Bruno Haible  <bruno@clisp.org>
19709
19710         getugroups: Fix module description.
19711         * modules/getugroups (Include): Set to "getugroups.h".
19712
19713 2011-05-23  Bruno Haible  <bruno@clisp.org>
19714
19715         linkat: Simplify autoconf macro.
19716         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19717
19718 2011-05-23  Bruno Haible  <bruno@clisp.org>
19719             Eric Blake  <eblake@redhat.com>
19720
19721         linkat, renameat: Update dependencies.
19722         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19723         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19724         symlinkat.
19725
19726 2011-05-23  Jim Meyering  <meyering@redhat.com>
19727
19728         maint.mk: more tight_scope improvements
19729         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19730         (_gl_TS_headers): Define only in if-0'd block.
19731         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19732         sometimes we must *not* use it.  Adjust uses accordingly.
19733         (sc_tight_scope): Use much simpler grep-based test to determine
19734         whether we skip this rule.
19735
19736         maint.mk: generalize/improve the tight-scope rule
19737         * top/maint.mk: Emit a warning when the test is skipped.
19738         (_gl_TS_dir): Add $(srcdir)/ prefix.
19739         (_gl_TS_function_match): Simplify, rather than trying
19740         to enumerate common types.  Otherwise, it would fail to match an
19741         "extern unsigned char const *" declaration in idutils.
19742         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19743         a way to support use of that type of macro.
19744         (_gl_TS_var_match): Simplify regexp.
19745         (_gl_TS_obj_files): New configurable variable.
19746         (_gl_TS_headers): Likewise.
19747
19748 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19749
19750         verify: fix bug when gnulib <assert.h> is also included
19751         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19752         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19753         Perhaps there's a better way, but this fixes the immediate problem.
19754         Problem reported by Bruno Haible in
19755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19756
19757 2011-05-22  Bruno Haible  <bruno@clisp.org>
19758
19759         xgetcwd: Simplify autoconf macro.
19760         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19761
19762 2011-05-22  Bruno Haible  <bruno@clisp.org>
19763
19764         New module 'mktime-internal'.
19765         * modules/mktime-internal: New file.
19766         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19767         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19768         mktime_internal as a C macro if libc has __mktime_internal.
19769         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19770         conditions.
19771         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19772
19773 2011-05-22  Bruno Haible  <bruno@clisp.org>
19774
19775         timegm: Correct mktime replacement statements.
19776         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19777         defining mktime as a C macro. This completes a 2009-07-28 commit.
19778
19779 2011-05-22  Bruno Haible  <bruno@clisp.org>
19780
19781         timegm: Simplify autoconf macro.
19782         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19783
19784 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19785
19786         clock-time: change to LGPLv2+.
19787         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19788         BSD-like but we have no mark for that; this is good enough for now.
19789
19790 2011-05-21  Bruno Haible  <bruno@clisp.org>
19791
19792         strerror_r: Fix comments.
19793         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19794
19795 2011-05-21  Bruno Haible  <bruno@clisp.org>
19796
19797         relocatable-prog-wrapper: Fix possible link error.
19798         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19799         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19800         (gl_FUNC_SETENV): ... to here.
19801         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19802         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19803
19804 2011-05-21  Bruno Haible  <bruno@clisp.org>
19805
19806         relocatable-prog-wrapper: Assume strerror() exists.
19807         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19808         m4/strerror.m4.
19809         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19810         * lib/relocwrapper.c: Remove mention of strerror module.
19811         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19812         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19813         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19814         C macro.
19815
19816 2011-05-21  Bruno Haible  <bruno@clisp.org>
19817
19818         select: Simplify replacement idiom.
19819         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19820         Win32 platforms.
19821         * lib/sys_select.in.h (select): Simplify accordingly.
19822         * modules/select (Depends-on): Likewise.
19823
19824 2011-05-21  Bruno Haible  <bruno@clisp.org>
19825
19826         mkdir-p: Simplify autoconf macro.
19827         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19828         gl_FUNC_LCHOWN.
19829
19830 2011-05-21  Eric Blake  <eblake@redhat.com>
19831
19832         strerror_r: avoid clobbering strerror on cygwin
19833         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19834         fall back instead to sys_errlist.
19835         * modules/strerror (configure.ac): Add witness.
19836         * tests/test-strerror_r.c (main): Enhance test.
19837         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19838         * tests/test-perror2.c (main): Free memory before exit.
19839
19840 2011-05-21  Bruno Haible  <bruno@clisp.org>
19841
19842         mkdtemp: Use gnulib naming conventions.
19843         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19844         * modules/mkdtemp (configure.ac): Update.
19845
19846 2011-05-20  Eric Blake  <eblake@redhat.com>
19847
19848         strerror_r: avoid corrupting errno on Solaris
19849         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19850         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19851
19852         strerror_r: avoid compiler warning
19853         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19854
19855         strerror_r: simplify AIX code
19856         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19857
19858         test-perror: avoid spurious failure on FreeBSD
19859         * modules/perror-tests (Depends-on): Add strerror, now that
19860         strerror_r no longer pulls it in.
19861
19862 2011-05-20  Bruno Haible  <bruno@clisp.org>
19863
19864         strerror_r-posix: Remove unused dependencies.
19865         * modules/strerror_r-posix (Depends-on): Remove strerror.
19866         Reported by Eric Blake.
19867
19868 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19869
19870         intprops: remove assumption about A|B representation
19871         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19872         is a valid integer if both A and B are.  Although this is true for
19873         all known practical hosts, the C standard doesn't guarantee it,
19874         and the code need not assume it.  Also, this change may work around
19875         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19877
19878 2011-05-20  Eric Blake  <eblake@redhat.com>
19879
19880         perror: work around FreeBSD bug
19881         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19882         is broken.  Move AC_LIBOBJ...
19883         * modules/perror (configure.ac): Here.
19884         * doc/posix-functions/perror.texi (perror): Document this.
19885         * tests/test-perror2.c (main): Enhance test.
19886
19887         test-perror: check for strerror interactions
19888         * tests/macros.h (STREQ): Add macro.
19889         * modules/perror-tests (Files): Add second test.
19890         * tests/test-perror2.c (main): New file.
19891         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19892
19893         test-perror: rewrite to use init script
19894         * modules/perror-tests (Files): Add init.sh.
19895         * tests/test-perror.sh: Use temporary directory.
19896
19897 2011-05-20  Jim Meyering  <meyering@redhat.com>
19898
19899         maint: replace misused "a" with "an"
19900         * doc/intprops.texi: "a integer"
19901         * doc/regex.texi: "a explanation"
19902         * lib/alignof.h: "a object"
19903         * lib/argmatch.h: "a explanation"
19904         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19905         * lib/stdint.in.h: "a integer"
19906         * lib/userspec.c: "a owner"
19907         * doc/gnulib.texi: Fix "a idea", and reword.
19908
19909 2011-05-19  Jim Meyering  <meyering@redhat.com>
19910
19911         maint: correct misuse of "a" and "an"
19912         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19913         * lib/argp-help.c: "an docum...": s/an/a/
19914         * lib/argp-parse.c: "An vector": s/An/A/
19915         * lib/execute.c: "an native": s/an/a/
19916         * lib/spawn-pipe.c: Likewise.
19917         * lib/gc.h: "an Gc_rc": s/an/a/
19918         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19919         * lib/fts.c: "an stat.st_dev": s/an/a/
19920
19921 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19922
19923         intprops-tests: work around HP-UX 11.23 cc bug with constants
19924         * tests/test-intprops.c (VERIFY): New macro.
19925         (main): Use it, instead of verify, to work around the compiler bug; see
19926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19927
19928         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19929         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19930         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19931         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19932         (_GL_REMAINDER_OVERFLOW): Use it.
19933
19934         intprops-tests: revert unsigned part of previous change
19935         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19936         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19937         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19939
19940 2011-05-19  Bruno Haible  <bruno@clisp.org>
19941
19942         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19943         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19944         strerror_r() returned without filling the buffer.
19945         Reported by Eric Blake.
19946
19947 2011-05-19  Eric Blake  <eblake@redhat.com>
19948
19949         strerror_r: guarantee unchanged errno
19950         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19951         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19952         failure.
19953         * tests/test-strerror_r.c (main): Enhance test.
19954
19955 2011-05-19  Bruno Haible  <bruno@clisp.org>
19956
19957         strerror_r: Reorder #if blocks.
19958         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19959         for consistency with the previous commit.
19960
19961 2011-05-19  Bruno Haible  <bruno@clisp.org>
19962
19963         perror: Avoid clobbering the strerror buffer when possible.
19964         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19965         * lib/strerror.c: Include it.
19966         * modules/strerror (Files): Add lib/strerror-impl.h.
19967         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19968         (my_strerror): New function, defined through lib/strerror-impl.h.
19969         (perror): Use it instead of strerror.
19970         * modules/perror (Files): Add lib/strerror-impl.h.
19971         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19972
19973 2011-05-19  Eric Blake  <eblake@redhat.com>
19974
19975         strerror_r: fix on newer cygwin
19976         * lib/strerror_r.c (strerror_r): Cygwin now has
19977         __xpg_strerror_r, use it.
19978
19979 2011-05-19  Bruno Haible  <bruno@clisp.org>
19980
19981         strerror_r: Avoid clobbering the strerror buffer when possible.
19982         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19983         (sys_nerr, sys_errlist): New declarations.
19984         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19985         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19986         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19987
19988 2011-05-19  Bruno Haible  <bruno@clisp.org>
19989
19990         strerror_r: Fix test failure on mingw.
19991         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19992         EXTEND_STRERROR_R.
19993         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19994         macros from errno.in.h instead.
19995
19996 2011-05-19  Eric Blake  <eblake@redhat.com>
19997
19998         strerror: relax test for Solaris
19999         * tests/test-strerror.c (main): Permit Solaris behavior.
20000         * tests/test-strerror_r.c (main): Likewise.
20001
20002         strerror: enforce POSIX ruling on strerror(0)
20003         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20004         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20005         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20006         * doc/posix-functions/strerror.texi (strerror): Document it.
20007         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20008         * tests/test-strerror.c (main): Strengthen test.
20009         * tests/test-strerror_r.c (main): Likewise.
20010
20011 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20012
20013         intprop-tests: port to older and more-pedantic compilers
20014         * modules/intprops-tests (Files): Add tests/macros.h.
20015         * tests/test-intprops.c: Include macros.h.
20016         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20017         it's no longer documented to expand to an integer constant expression.
20018         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20019         argument is floating point, as it's no longer documented to expand
20020         to an integer constant expression in that case.
20021         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20022         compiler bugs reported by Bruno Haible.  See
20023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20024         (U0, U1): New constants, to work around the same bugs.  Also,
20025         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20026
20027         intprops: work around C compiler bugs
20028         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20029         bug in Sun C 5.11 2010/08/13 and other compilers; see
20030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20031
20032         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20033         * doc/intprops.texi (Integer Type Determination): Fix
20034         documentation for TYPE_IS_INTEGER: it returns an constant
20035         expression, not an integer constant expression.  Fix doc for
20036         TYPE_SIGNED: it returns an integer constant expression only if its
20037         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20038         hardly worth documented that way....)
20039
20040 2011-05-18  Bruno Haible  <bruno@clisp.org>
20041
20042         strerror_r: Avoid clobbering the strerror buffer when possible.
20043         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20044         Handle gnulib defined errno values here. When strerror() returns NULL
20045         or an empty string, return EINVAL.
20046         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20047         gnulib defined errno values here.
20048         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20049
20050 2011-05-18  Eric Blake  <eblake@redhat.com>
20051
20052         fnmatch: avoid compiler warning
20053         * lib/fnmatch_loop.c (FCT): Use correct type.
20054         Reported by Matthias Bolte.
20055
20056 2011-05-13  Jim Meyering  <meyering@redhat.com>
20057
20058         maint.mk: three new prohibit_<HDR>_without_use rules
20059         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20060         (sc_prohibit_stdio-safer_without_use): Likewise.
20061         (sc_prohibit_xfreopen_without_use): Likewise.
20062
20063 2011-05-17  Jim Meyering  <meyering@redhat.com>
20064
20065         announce-gen: fail if the NEWS delta is empty
20066         If there's nothing noteworthy in NEWS, then either you forgot
20067         or you shouldn't be releasing.
20068         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20069
20070 2011-05-17  Pádraig Brady <P@draigBrady.com>
20071
20072         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20073         reserved symbols starting with double underscore from the check.
20074
20075 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20076
20077         intprops: add doc
20078         * doc/intprops.texi: New file, documenting intprops.
20079         * doc/gnulib.texi (Particular Modules): Include it.
20080
20081         verify: add doc to gnulib manual and fix example
20082         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20083         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20084         (Compile-time Assertions): Fix example so it can't overflow.
20085
20086 2011-05-17  Jim Meyering  <meyering@redhat.com>
20087
20088         warnings.m4: don't usurp save_CPPFLAGS variable name
20089         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20090
20091         doc: fix typo
20092         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20093
20094 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20095             Bruno Haible  <bruno@clisp.org>
20096
20097         doc: Tweak recent change.
20098         * README (Portability guidelines): Tweak new text.
20099         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20100         Interix 6.1.
20101
20102 2011-05-16  Eric Blake  <eblake@redhat.com>
20103
20104         inttypes: avoid autoconf warning
20105         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20106         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20107
20108 2011-05-16  Sam Steingold <sds@gnu.org>
20109         and Eric Blake  <eblake@redhat.com>
20110
20111         vc-list-files: accept multiple directory operands
20112         * build-aux/vc-list-files: Iterate over all remaining operands.
20113
20114 2011-05-16  Bruno Haible  <bruno@clisp.org>
20115
20116         Fix confusion regarding deprecated modules.
20117         * modules/calloc (Status, Notice): Mark module as deprecated, not
20118         obsolete.
20119         * modules/fnmatch-posix (Status, Notice): Likewise.
20120         * modules/getdate (Status, Notice): Likewise.
20121         * modules/getopt (Status, Notice): Likewise.
20122         * modules/malloc (Status, Notice): Likewise.
20123         * modules/pipe (Status, Notice): Likewise.
20124         * modules/realloc (Status, Notice): Likewise.
20125         * modules/rename-dest-slash (Status, Notice): Likewise.
20126         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20127         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20128         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20129         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20130         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20131
20132 2011-05-16  Bruno Haible  <bruno@clisp.org>
20133
20134         doc: List the target platforms.
20135         * doc/gnulib-intro.texi (Target Platforms): New section.
20136         * doc/gnulib.texi (Introduction): Update menu.
20137         * README (Portability guidelines): Refer to the new section. Update
20138         statement about oldest supported environment. Remove rationale why
20139         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20140         unportable C89 function.
20141         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20142         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20143
20144 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20145
20146         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20147
20148 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20149
20150         intprops-tests: new module
20151         * modules/intprops-tests, tests/test-intprops.c: New files.
20152
20153         intprops: add safe, portable integer overflow checking
20154         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20155         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20156         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20157         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20158         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20159         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20160         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20161         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20162         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20163         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20164         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20165
20166 2011-05-12  James Youngman  <jay@gnu.org>
20167
20168         Add a test for glibc's Bugzilla bug #12378.
20169         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20170         doesn't allow the literal matching of a lone "[" (which is
20171         required by POSIX).
20172         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20173
20174 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20175
20176         Sync glibc change fixing Bugzilla bug #12378.
20177         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20178         beginning and fall back to matching as normal character if the
20179         string ends before the matching ']' is found.  This is what POSIX
20180         requires.
20181
20182 2011-05-13  Eric Blake  <eblake@redhat.com>
20183
20184         getcwd-lgpl: relax test for FreeBSD
20185         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20186         issue.
20187         * tests/test-getcwd-lgpl.c (main): Relax test.
20188         Reported by Matthias Bolte.
20189
20190 2011-05-11  Eric Blake  <eblake@redhat.com>
20191
20192         test-fflush: silence compiler warning
20193         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20194
20195 2011-05-11  Bruno Haible  <bruno@clisp.org>
20196
20197         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20198         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20199         * modules/canonicalize (Depends-on): Add 'nocrash'.
20200         * modules/canonicalize-lgpl (Depends-on): Likewise.
20201         * doc/posix-functions/realpath.texi: Update platforms list.
20202         Reported by Ryan Schmidt <ryandesign@macports.org>.
20203
20204 2011-05-11  Bruno Haible  <bruno@clisp.org>
20205
20206         group-member: Declare function in <unistd.h>.
20207         * lib/unistd.in.h (group_member): New declaration.
20208         * lib/group-member.h: Remove file.
20209         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20210         * tests/test-unistd-c++.cc: Check signature of group_member.
20211         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20212         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20213         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20214         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20215         HAVE_GROUP_MEMBER.
20216         * modules/group-member (Files): Remove lib/group-member.h.
20217         (Depends-on): Add unistd. Specify conditions.
20218         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20219         (Include): Change to <unistd.h>.
20220         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20221         HAVE_GROUP_MEMBER.
20222         * NEWS: Mention the change.
20223         * lib/euidaccess.c: Don't include group-member.h.
20224
20225 2011-05-11  Bruno Haible  <bruno@clisp.org>
20226
20227         group-member: Document module.
20228         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20229         module.
20230
20231 2011-05-11  Bruno Haible  <bruno@clisp.org>
20232
20233         fclose: Fix mistake earlier today.
20234         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20235
20236 2011-05-11  Eric Blake  <eblake@redhat.com>
20237
20238         fclose: preserve fflush errors
20239         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20240         Reported by Jim Meyering.
20241
20242         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20243         * build-aux/bootstrap (check_versions): When no specific version
20244         is required, merely check that the app produces an exit status
20245         that indicates its existence.
20246
20247         maint.mk: drop redundant check
20248         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20249         the same but better.
20250
20251 2011-05-11  Bruno Haible  <bruno@clisp.org>
20252
20253         fclose: Fix possible link error.
20254         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20255         unregister_shadow_fd. Improve comments.
20256         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20257         Eric Blake.
20258
20259 2011-05-11  Jim Meyering  <meyering@redhat.com>
20260
20261         maint.mk: improve "can not" detection and generalize rule name
20262         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20263         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20264         Use the same technique as in sc_prohibit_doubled_word, so that
20265         we recognize "can not" also when the words are separated by a newline.
20266         Suggested by Eric Blake.
20267         (perl_filename_lineno_text_): Define.  Factored out of...
20268         (prohibit_doubled_word_): ...here.  Use the new definition.
20269         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20270         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20271         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20272
20273 2011-05-10  Eric Blake  <eblake@redhat.com>
20274
20275         fclose: avoid double close race when possible
20276         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20277         all but WINDOWS_SOCKETS.
20278
20279 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20280
20281         openat: correct new comment
20282         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20283
20284 2011-05-10  Jim Meyering  <meyering@redhat.com>
20285
20286         openat: add comments
20287         * lib/openat-proc.c (openat_proc_name): Add comments,
20288         mostly from Eric Blake.
20289
20290 2011-05-09  Eric Blake  <eblake@redhat.com>
20291
20292         openat: reduce syscalls in first probe of /proc
20293         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20294         be a directory.  Simplify the probe for .. bugs.
20295         * modules/openat (Depends-on): Drop same-inode.
20296         Reported by Bastien ROUCARIES.
20297
20298 2011-05-09  Jim Meyering  <meyering@redhat.com>
20299
20300         maint.mk: change semantics/name of tight_scope variables
20301         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20302         Rename variables to align with semantics that make them more useful.
20303
20304         maint.mk: tweak new rule's name not to impinge
20305         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20306         (sc_tight_scope): Use new rule name rather than $@-0.
20307
20308         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20309         * top/maint.mk (sc_tight_scope): New rule.
20310         (sc_tight_scope-0): New rule, ifdef'd out.
20311         (_gl_TS_dir): Default.
20312         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20313         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20314
20315 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20316
20317         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20318         Haible <bruno@clisp.org>.
20319
20320 2011-05-08  Bruno Haible  <bruno@clisp.org>
20321
20322         Comments.
20323         * m4/isnanf.m4: Add comment.
20324         * m4/isnanl.m4: Likewise.
20325
20326 2011-05-08  Bruno Haible  <bruno@clisp.org>
20327
20328         glob: Remove obsolete macro.
20329         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20330
20331 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20332
20333         intprops: Sun C 5.11 supports __typeof__
20334         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20335         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20336         which is new.
20337         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20338
20339         intprops: switch to usual gnulib indenting and naming
20340         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20341         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20342
20343         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20344
20345 2011-05-08  Jim Meyering  <meyering@redhat.com>
20346
20347         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20348         * top/maint.mk (release-prep): Use make's --no-print-directory
20349         option when generating the announcement.  This eliminates the
20350         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20351         generated announcement template.
20352
20353 2011-05-08  Bruno Haible  <bruno@clisp.org>
20354
20355         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20356         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20357         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20358
20359 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20360
20361         ignore-value, verify: Omit include files from lib_SOURCES.
20362         * modules/ignore-value, modules/verify (Makefile.am):
20363         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20364         that leads Automake to duplicate use of am__objects_... variables
20365         in Makefile.in.  See
20366         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20367
20368 2011-05-07  Bruno Haible  <bruno@clisp.org>
20369
20370         fclose: Simplify autoconf macro.
20371         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20372         defined.
20373
20374 2011-05-07  Bruno Haible  <bruno@clisp.org>
20375
20376         canonicalize-lgpl: Fix autoconf macro ordering bug.
20377         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20378         gl_STDLIB_H_DEFAULTS.
20379
20380 2011-05-06  Eric Blake  <eblake@redhat.com>
20381
20382         maintainer-makefile: make sc_po_check easier to tune
20383         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20384         to probe for strings, such as an alternate location for gnulib.
20385
20386         fclose: guarantee behavior on seekable stdin
20387         * modules/fclose (Depends-on): Add fflush.
20388         * doc/posix-functions/fclose.texi (fclose): Document this.
20389         * tests/test-fclose.c (main): Make test for this unconditional.
20390
20391 2011-05-06  Bruno Haible  <bruno@clisp.org>
20392
20393         fflush, fpurge: Relicense under LGPLv2+.
20394         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20395         * modules/fpurge (License): Likewise.
20396         With permission from Eric Blake and Jim Meyering.
20397         Suggested by Eric Blake.
20398
20399 2011-05-06  Karl Berry  <karl@gnu.org>
20400
20401         * MODULES.html.sh (func_all_modules): remove exit.
20402
20403 2011-05-06  Jim Meyering  <meyering@redhat.com>
20404
20405         maint.mk: use info-gnu@ as the default only for a stable release
20406         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20407         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20408         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20409         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20410
20411 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20412
20413         assert-h: new module, which supports C1X-style static_assert
20414         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20415         * lib/verify.h: Revamp so that this can be copied into assert.h,
20416         while retaining the ability to use it standalone as before.
20417         Rename private identifiers so as not to encroach on the
20418         standard C namespace, since this is now used by assert.h.
20419         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20420         the old verify_true.
20421         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20422         the old verify_true.  Use _GL_VERIFY_TYPE.
20423         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20424         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20425         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20426         defined when this file is copied into the replacement assert.h.
20427         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20428         and _Static_assert is not built in.
20429         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20430         defined, and use the new macros mentioned above.
20431         * doc/posix-headers/assert.texi: Document this.
20432
20433 2011-05-05  Bruno Haible  <bruno@clisp.org>
20434
20435         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20436         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20437         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20438         gl_REPLACE_FCLOSE here.
20439         * modules/fflush (Depends-on): Remove fclose.
20440         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20441         combination with module 'fclose'.
20442
20443 2011-05-05  Bruno Haible  <bruno@clisp.org>
20444
20445         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20446         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20447         gl_FUNC_FFLUSH.
20448         (gl_FUNC_FFLUSH): Use it.
20449         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20450         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20451         gl_REPLACE_FSEEKO here.
20452
20453 2011-05-05  Bruno Haible  <bruno@clisp.org>
20454
20455         tzset: Relicense under LGPL.
20456         * modules/tzset (License): Change to LGPL.
20457         No agreement needed; it's a no-op.
20458
20459         strtoimax, strtoumax: Relicense under LGPL.
20460         * modules/strtoimax (License): Change to LGPL.
20461         * modules/strtoumax (License): Likewise.
20462         With permission from Jim Meyering, Paul Eggert:
20463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20465
20466         getgroups: Relicense under LGPL.
20467         * modules/getgroups (License): Change to LGPL.
20468         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20472
20473         nanosleep: Relicense under LGPL.
20474         * modules/nanosleep (License): Change to LGPL.
20475         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20476         Haible:
20477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
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
20482         futimens: Relicense under LGPL.
20483         * modules/futimens (License): Change to LGPL.
20484         With permission from Eric Blake:
20485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20486
20487         fflush: Relicense under LGPL.
20488         * modules/fflush (License): Change to LGPL.
20489         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20491         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20493
20494         tmpfile: Relicense under LGPL.
20495         * modules/tmpfile (License): Change to LGPL.
20496         With permission from Ben Pfaff:
20497         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20498
20499         isfinite: Relicense under LGPL.
20500         * modules/isfinite (License): Change to LGPL.
20501         With permission from Ben Pfaff, Bruno Haible:
20502         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20504
20505         acosl..tanl: Relicense under LGPL.
20506         * modules/acosl (License): Change to LGPL.
20507         * modules/asinl (License): Likewise.
20508         * modules/atanl (License): Likewise.
20509         * modules/cosl (License): Likewise.
20510         * modules/expl (License): Likewise.
20511         * modules/logl (License): Likewise.
20512         * modules/sinl (License): Likewise.
20513         * modules/sqrtl (License): Likewise.
20514         * modules/tanl (License): Likewise.
20515         Source code originally from glibc and Paolo Bonzini. Agreements:
20516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20518
20519 2011-05-05  Bruno Haible  <bruno@clisp.org>
20520
20521         signal: Define sighandler_t.
20522         * lib/signal.in.h (sighandler_t): New type.
20523         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20524         whether sighandler_t is defined.
20525         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20526         * modules/signal (Depends-on): Add extensions.
20527         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20528         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20529         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20530
20531 2011-05-05  Eric Blake  <eblake@redhat.com>
20532
20533         maint: remove useless REPLACE_*_H macros
20534         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20535         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20536         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20537         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20538         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20539         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20540         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20541         * m4/btowc.m4: Update callers.
20542         * m4/dirfd.m4: Likewise.
20543         * m4/duplocale.m4: Likewise.
20544         * m4/fchdir.m4: Likewise.
20545         * m4/fdopendir.m4: Likewise.
20546         * m4/inet_ntop.m4: Likewise.
20547         * m4/inet_pton.m4: Likewise.
20548         * m4/ioctl.m4: Likewise.
20549         * m4/mbrlen.m4: Likewise.
20550         * m4/mbrtowc.m4: Likewise.
20551         * m4/mbsinit.m4: Likewise.
20552         * m4/mbsnrtowcs.m4: Likewise.
20553         * m4/mbsrtowcs.m4: Likewise.
20554         * m4/poll.m4: Likewise.
20555         * m4/setlocale.m4: Likewise.
20556         * m4/wcrtomb.m4: Likewise.
20557         * m4/wcsnrtombs.m4: Likewise.
20558         * m4/wcsrtombs.m4: Likewise.
20559         * m4/wctob.m4: Likewise.
20560         * m4/wcwidth.m4: Likewise.
20561         * modules/posix_spawn: Likewise.
20562         * modules/posix_spawn_file_actions_addclose: Likewise.
20563         * modules/posix_spawn_file_actions_adddup2: Likewise.
20564         * modules/posix_spawn_file_actions_addopen: Likewise.
20565         * modules/posix_spawn_file_actions_destroy: Likewise.
20566         * modules/posix_spawn_file_actions_init: Likewise.
20567         * modules/posix_spawnattr_destroy: Likewise.
20568         * modules/posix_spawnattr_getflags: Likewise.
20569         * modules/posix_spawnattr_getpgroup: Likewise.
20570         * modules/posix_spawnattr_getschedparam: Likewise.
20571         * modules/posix_spawnattr_getschedpolicy: Likewise.
20572         * modules/posix_spawnattr_getsigdefault: Likewise.
20573         * modules/posix_spawnattr_getsigmask: Likewise.
20574         * modules/posix_spawnattr_init: Likewise.
20575         * modules/posix_spawnattr_setflags: Likewise.
20576         * modules/posix_spawnattr_setpgroup: Likewise.
20577         * modules/posix_spawnattr_setschedparam: Likewise.
20578         * modules/posix_spawnattr_setschedpolicy: Likewise.
20579         * modules/posix_spawnattr_setsigdefault: Likewise.
20580         * modules/posix_spawnattr_setsigmask: Likewise.
20581         * modules/posix_spawnp: Likewise.
20582
20583 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20584
20585         Add option to do-release-commit-and-tag to specify branch.
20586         * build-aux/do-release-commit-and-tag: Add --branch.
20587
20588 2011-05-03  Bruno Haible  <bruno@clisp.org>
20589
20590         Avoid unnecessary compilation units, through conditional dependencies.
20591         * modules/accept (Depends-on): Add conditions to the dependencies.
20592         * modules/acosl (Depends-on): Likewise.
20593         * modules/argz (Depends-on): Likewise.
20594         * modules/asinl (Depends-on): Likewise.
20595         * modules/atanl (Depends-on): Likewise.
20596         * modules/atoll (Depends-on): Likewise.
20597         * modules/bind (Depends-on): Likewise.
20598         * modules/btowc (Depends-on): Likewise.
20599         * modules/canonicalize-lgpl (Depends-on): Likewise.
20600         * modules/ceil (Depends-on): Likewise.
20601         * modules/ceilf (Depends-on): Likewise.
20602         * modules/ceill (Depends-on): Likewise.
20603         * modules/chdir-long (Depends-on): Likewise.
20604         * modules/chown (Depends-on): Likewise.
20605         * modules/close (Depends-on): Likewise.
20606         * modules/connect (Depends-on): Likewise.
20607         * modules/cosl (Depends-on): Likewise.
20608         * modules/dirfd (Depends-on): Likewise.
20609         * modules/dprintf (Depends-on): Likewise.
20610         * modules/dprintf-posix (Depends-on): Likewise.
20611         * modules/error (Depends-on): Likewise.
20612         * modules/euidaccess (Depends-on): Likewise.
20613         * modules/expl (Depends-on): Likewise.
20614         * modules/faccessat (Depends-on): Likewise.
20615         * modules/fchdir (Depends-on): Likewise.
20616         * modules/fclose (Depends-on): Likewise.
20617         * modules/fcntl (Depends-on): Likewise.
20618         * modules/fdopendir (Depends-on): Likewise.
20619         * modules/fflush (Depends-on): Likewise.
20620         * modules/floor (Depends-on): Likewise.
20621         * modules/floorf (Depends-on): Likewise.
20622         * modules/floorl (Depends-on): Likewise.
20623         * modules/fnmatch (Depends-on): Likewise.
20624         * modules/fopen (Depends-on): Likewise.
20625         * modules/fprintf-posix (Depends-on): Likewise.
20626         * modules/frexp (Depends-on): Likewise.
20627         * modules/frexp-nolibm (Depends-on): Likewise.
20628         * modules/frexpl (Depends-on): Likewise.
20629         * modules/frexpl-nolibm (Depends-on): Likewise.
20630         * modules/fseek (Depends-on): Likewise.
20631         * modules/fsusage (Depends-on): Likewise.
20632         * modules/ftell (Depends-on): Likewise.
20633         * modules/ftello (Depends-on): Likewise.
20634         * modules/futimens (Depends-on): Likewise.
20635         * modules/getcwd (Depends-on): Likewise.
20636         * modules/getcwd-lgpl (Depends-on): Likewise.
20637         * modules/getdelim (Depends-on): Likewise.
20638         * modules/getdomainname (Depends-on): Likewise.
20639         * modules/getgroups (Depends-on): Likewise.
20640         * modules/gethostname (Depends-on): Likewise.
20641         * modules/getline (Depends-on): Likewise.
20642         * modules/getlogin_r (Depends-on): Likewise.
20643         * modules/getopt-posix (Depends-on): Likewise.
20644         * modules/getpeername (Depends-on): Likewise.
20645         * modules/getsockname (Depends-on): Likewise.
20646         * modules/getsockopt (Depends-on): Likewise.
20647         * modules/getsubopt (Depends-on): Likewise.
20648         * modules/getusershell (Depends-on): Likewise.
20649         * modules/glob (Depends-on): Likewise.
20650         * modules/grantpt (Depends-on): Likewise.
20651         * modules/iconv_open (Depends-on): Likewise.
20652         * modules/iconv_open-utf (Depends-on): Likewise.
20653         * modules/inet_ntop (Depends-on): Likewise.
20654         * modules/inet_pton (Depends-on): Likewise.
20655         * modules/ioctl (Depends-on): Likewise.
20656         * modules/isapipe (Depends-on): Likewise.
20657         * modules/isfinite (Depends-on): Likewise.
20658         * modules/isinf (Depends-on): Likewise.
20659         * modules/lchown (Depends-on): Likewise.
20660         * modules/ldexpl (Depends-on): Likewise.
20661         * modules/link (Depends-on): Likewise.
20662         * modules/linkat (Depends-on): Likewise.
20663         * modules/listen (Depends-on): Likewise.
20664         * modules/logl (Depends-on): Likewise.
20665         * modules/lstat (Depends-on): Likewise.
20666         * modules/mbrlen (Depends-on): Likewise.
20667         * modules/mbrtowc (Depends-on): Likewise.
20668         * modules/mbsinit (Depends-on): Likewise.
20669         * modules/mbsnrtowcs (Depends-on): Likewise.
20670         * modules/mbsrtowcs (Depends-on): Likewise.
20671         * modules/mbtowc (Depends-on): Likewise.
20672         * modules/memcmp (Depends-on): Likewise.
20673         * modules/mkdir (Depends-on): Likewise.
20674         * modules/mkdtemp (Depends-on): Likewise.
20675         * modules/mkfifo (Depends-on): Likewise.
20676         * modules/mkfifoat (Depends-on): Likewise.
20677         * modules/mknod (Depends-on): Likewise.
20678         * modules/mkostemp (Depends-on): Likewise.
20679         * modules/mkostemps (Depends-on): Likewise.
20680         * modules/mkstemp (Depends-on): Likewise.
20681         * modules/mkstemps (Depends-on): Likewise.
20682         * modules/mktime (Depends-on): Likewise.
20683         * modules/nanosleep (Depends-on): Likewise.
20684         * modules/open (Depends-on): Likewise.
20685         * modules/openat (Depends-on): Likewise.
20686         * modules/perror (Depends-on): Likewise.
20687         * modules/poll (Depends-on): Likewise.
20688         * modules/popen (Depends-on): Likewise.
20689         * modules/posix_spawn (Depends-on): Likewise.
20690         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20691         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20692         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20693         * modules/posix_spawnp (Depends-on): Likewise.
20694         * modules/pread (Depends-on): Likewise.
20695         * modules/printf-posix (Depends-on): Likewise.
20696         * modules/ptsname (Depends-on): Likewise.
20697         * modules/putenv (Depends-on): Likewise.
20698         * modules/pwrite (Depends-on): Likewise.
20699         * modules/readline (Depends-on): Likewise.
20700         * modules/readlink (Depends-on): Likewise.
20701         * modules/readlinkat (Depends-on): Likewise.
20702         * modules/recv (Depends-on): Likewise.
20703         * modules/recvfrom (Depends-on): Likewise.
20704         * modules/regex (Depends-on): Likewise.
20705         * modules/remove (Depends-on): Likewise.
20706         * modules/rename (Depends-on): Likewise.
20707         * modules/renameat (Depends-on): Likewise.
20708         * modules/rmdir (Depends-on): Likewise.
20709         * modules/round (Depends-on): Likewise.
20710         * modules/roundf (Depends-on): Likewise.
20711         * modules/roundl (Depends-on): Likewise.
20712         * modules/rpmatch (Depends-on): Likewise.
20713         * modules/select (Depends-on): Likewise.
20714         * modules/send (Depends-on): Likewise.
20715         * modules/sendto (Depends-on): Likewise.
20716         * modules/setenv (Depends-on): Likewise.
20717         * modules/setlocale (Depends-on): Likewise.
20718         * modules/setsockopt (Depends-on): Likewise.
20719         * modules/shutdown (Depends-on): Likewise.
20720         * modules/sigaction (Depends-on): Likewise.
20721         * modules/signbit (Depends-on): Likewise.
20722         * modules/sigprocmask (Depends-on): Likewise.
20723         * modules/sinl (Depends-on): Likewise.
20724         * modules/sleep (Depends-on): Likewise.
20725         * modules/snprintf (Depends-on): Likewise.
20726         * modules/snprintf-posix (Depends-on): Likewise.
20727         * modules/socket (Depends-on): Likewise.
20728         * modules/sprintf-posix (Depends-on): Likewise.
20729         * modules/sqrtl (Depends-on): Likewise.
20730         * modules/stat (Depends-on): Likewise.
20731         * modules/strchrnul (Depends-on): Likewise.
20732         * modules/strdup-posix (Depends-on): Likewise.
20733         * modules/strerror (Depends-on): Likewise.
20734         * modules/strerror_r-posix (Depends-on): Likewise.
20735         * modules/strndup (Depends-on): Likewise.
20736         * modules/strnlen (Depends-on): Likewise.
20737         * modules/strptime (Depends-on): Likewise.
20738         * modules/strsep (Depends-on): Likewise.
20739         * modules/strsignal (Depends-on): Likewise.
20740         * modules/strstr-simple (Depends-on): Likewise.
20741         * modules/strtod (Depends-on): Likewise.
20742         * modules/strtoimax (Depends-on): Likewise.
20743         * modules/strtok_r (Depends-on): Likewise.
20744         * modules/strtoumax (Depends-on): Likewise.
20745         * modules/symlink (Depends-on): Likewise.
20746         * modules/symlinkat (Depends-on): Likewise.
20747         * modules/tanl (Depends-on): Likewise.
20748         * modules/tcgetsid (Depends-on): Likewise.
20749         * modules/tmpfile (Depends-on): Likewise.
20750         * modules/trunc (Depends-on): Likewise.
20751         * modules/truncf (Depends-on): Likewise.
20752         * modules/truncl (Depends-on): Likewise.
20753         * modules/uname (Depends-on): Likewise.
20754         * modules/unlink (Depends-on): Likewise.
20755         * modules/unlockpt (Depends-on): Likewise.
20756         * modules/unsetenv (Depends-on): Likewise.
20757         * modules/usleep (Depends-on): Likewise.
20758         * modules/utimensat (Depends-on): Likewise.
20759         * modules/vasprintf (Depends-on): Likewise.
20760         * modules/vdprintf (Depends-on): Likewise.
20761         * modules/vdprintf-posix (Depends-on): Likewise.
20762         * modules/vfprintf-posix (Depends-on): Likewise.
20763         * modules/vprintf-posix (Depends-on): Likewise.
20764         * modules/vsnprintf (Depends-on): Likewise.
20765         * modules/vsnprintf-posix (Depends-on): Likewise.
20766         * modules/vsprintf-posix (Depends-on): Likewise.
20767         * modules/wcrtomb (Depends-on): Likewise.
20768         * modules/wcscasecmp (Depends-on): Likewise.
20769         * modules/wcscspn (Depends-on): Likewise.
20770         * modules/wcsdup (Depends-on): Likewise.
20771         * modules/wcsncasecmp (Depends-on): Likewise.
20772         * modules/wcsnrtombs (Depends-on): Likewise.
20773         * modules/wcspbrk (Depends-on): Likewise.
20774         * modules/wcsrtombs (Depends-on): Likewise.
20775         * modules/wcsspn (Depends-on): Likewise.
20776         * modules/wcsstr (Depends-on): Likewise.
20777         * modules/wcstok (Depends-on): Likewise.
20778         * modules/wcswidth (Depends-on): Likewise.
20779         * modules/wctob (Depends-on): Likewise.
20780         * modules/wctomb (Depends-on): Likewise.
20781         * modules/wctype (Depends-on): Likewise.
20782         * modules/wcwidth (Depends-on): Likewise.
20783         * modules/write (Depends-on): Likewise.
20784
20785 2011-05-03  Bruno Haible  <bruno@clisp.org>
20786
20787         Support for conditional dependencies.
20788         * doc/gnulib.texi (Module description): Document the syntax of
20789         conditional dependencies.
20790         * gnulib-tool: New option --conditional-dependencies.
20791         (func_usage): Document it.
20792         (cond_dependencies): New variable.
20793         (func_get_automake_snippet_conditional,
20794         func_get_automake_snippet_unconditional): New functions, extracted from
20795         func_get_automake_snippet.
20796         (func_get_automake_snippet): Use them.
20797         (sed_first_32_chars): New variable.
20798         (func_module_shellfunc_name): New function.
20799         (func_module_shellvar_name): New function.
20800         (func_module_conditional_name): New function.
20801         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20802         func_cond_module_condition): New functions.
20803         (func_modules_transitive_closure): Add support for conditional
20804         dependencies.
20805         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20806         conditional automake snippet in an automake conditional.
20807         (func_emit_autoconf_snippets): Emit shell functions that contain the
20808         code for conditional modules.
20809         (func_import, func_create_testdir): Update specification.
20810
20811 2011-05-03  Eric Blake  <eblake@redhat.com>
20812
20813         test-getaddrinfo: report error information
20814         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20815
20816 2011-05-03  Jim Meyering  <meyering@redhat.com>
20817
20818         bootstrap: avoid build failure when $GZIP is set
20819         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20820         program name.  If defined at all, it is supposed to list gzip options.
20821         Reported by Alan Curry in http://debbugs.gnu.org/8609
20822
20823 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20824
20825         readme-release: new module with release instructions
20826         * modules/readme-release: New module.
20827         * top/README-release: New file, from coreutils, grep, diffutils.
20828         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20829
20830 2011-05-02  Eric Blake  <eblake@redhat.com>
20831
20832         fflush: also replace fclose when fixing fflush
20833         * modules/fflush (Depends-on): Add fclose.
20834         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20835         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20836         memstreams with no backing fd.
20837         * doc/posix-functions/fclose.texi (fclose): Document the use of
20838         fflush module to fix the bug.
20839         * tests/test-fclose.c (main): Relax test when fclose is used in
20840         isolation.
20841
20842         fclose: add some tests
20843         * modules/fclose-tests: New test module.
20844         * tests/test-fclose.c: New file.
20845         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20846
20847         fclose: reduced dependencies
20848         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20849         simpler lseek.
20850         * lib/fclose.c (rpl_fclose): Likewise.
20851         Reported by Simon Josefsson.
20852
20853         exit: drop remaining clients
20854         * modules/argmatch (Depends-on): Replace exit with stdlib.
20855         * modules/copy-file (Depends-on): Likewise.
20856         * modules/execute (Depends-on): Likewise.
20857         * modules/exitfail (Depends-on): Likewise.
20858         * modules/obstack (Depends-on): Likewise.
20859         * modules/pagealign_alloc (Depends-on): Likewise.
20860         * modules/pipe-filter-gi (Depends-on): Likewise.
20861         * modules/pipe-filter-ii (Depends-on): Likewise.
20862         * modules/savewd (Depends-on): Likewise.
20863         * modules/spawn-pipe (Depends-on): Likewise.
20864         * modules/wait-process (Depends-on): Likewise.
20865         * modules/xsetenv (Depends-on): Likewise.
20866         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20867         * modules/git-merge-changelog (Depends-on): Likewise.
20868         * modules/long-options (Depends-on): Likewise.
20869         * modules/pt_chown (Depends-on): Likewise.
20870         * modules/sysexits (Depends-on): Likewise.
20871
20872         freading: relax license from LGPLv3+ to LGPLv2+
20873         * modules/freading (License): Relax LGPL version.
20874
20875 2011-05-02  Bruno Haible  <bruno@clisp.org>
20876
20877         fchdir: Remove unused dependencies.
20878         * modules/fchdir (Depends-on): Remove include_next.
20879
20880 2011-05-02  Bruno Haible  <bruno@clisp.org>
20881
20882         gnulib-tool: Refactor.
20883         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20884         from func_emit_autoconf_snippets.
20885         (func_emit_autoconf_snippets): Use it.
20886
20887 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20888
20889         * NEWS: Document removal of 'exit'.
20890         * modules/exit: Remove file.
20891
20892 2011-05-01  Bruno Haible  <bruno@clisp.org>
20893
20894         Update DEPENDENCIES.
20895         * DEPENDENCIES (gettext): Recommend the newest release.
20896         Reported by Simon Josefsson.
20897
20898 2011-05-01  Bruno Haible  <bruno@clisp.org>
20899
20900         gnulib-tool: Reduce code duplication.
20901         * gnulib-tool (func_emit_autoconf_snippets): New function.
20902         (func_import, func_create_testdir): Use it.
20903
20904 2011-04-30  Eric Blake  <eblake@redhat.com>
20905
20906         fclose: don't fail on non-seekable input stream
20907         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20908         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20909         since fflush is allowed to fail in that case.
20910
20911 2011-04-30  Bruno Haible  <bruno@clisp.org>
20912
20913         dup3: cleanup
20914         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20915
20916 2011-04-30  Bruno Haible  <bruno@clisp.org>
20917
20918         netdb: Make it work in C++ mode.
20919         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20920         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20921         module.
20922         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20923         gl_MODULE_INDICATOR_FOR_TESTS.
20924         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20925         * modules/netdb-c++-tests: New file.
20926         * tests/test-netdb-c++.cc: New file.
20927
20928 2011-04-30  Bruno Haible  <bruno@clisp.org>
20929
20930         New modules 'vfscanf', 'vscanf'.
20931         * modules/vfscanf: New file.
20932         * modules/vscanf: New file.
20933         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20934         here.
20935         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20936         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20937
20938 2011-04-30  Bruno Haible  <bruno@clisp.org>
20939
20940         passfd: Add comments.
20941         * lib/passfd.c: Add comments about platforms.
20942
20943 2011-04-30  Bruno Haible  <bruno@clisp.org>
20944
20945         sys_uio: Make <sys/uio.h> self-contained.
20946         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20947         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20948
20949 2011-04-30  Bruno Haible  <bruno@clisp.org>
20950
20951         sys_socket: Ensure 'struct iovec' definition.
20952         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20953         <sys/socket.h>.
20954         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20955
20956 2011-04-30  Bruno Haible  <bruno@clisp.org>
20957
20958         sys_uio: Protect definition of 'struct iovec'.
20959         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20960         it as a C struct.
20961
20962 2011-04-30  Bruno Haible  <bruno@clisp.org>
20963
20964         manywarnings: fix indentation
20965         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20966
20967 2011-04-30  Pádraig Brady <P@draigBrady.com>
20968
20969         manywarnings: add -Wno-missing-field-initializers if needed.
20970         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20971         option if it's needed to allow initialization with { 0, }
20972
20973 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20974
20975         announce-gen: cosmetic improvement
20976         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20977
20978 2011-04-29  Jim Meyering  <meyering@redhat.com>
20979
20980         vc-list-files: indent with spaces, not TABs
20981         * build-aux/vc-list-files: Convert leading TABs to spaces,
20982         to match the style of most other files in gnulib.
20983
20984         announce-gen: indent with spaces, not TABs
20985         * build-aux/announce-gen: Convert all TABs to spaces, to match
20986         the style of most other files in gnulib.
20987
20988 2011-04-29  Eric Blake  <eblake@redhat.com>
20989
20990         quotearg: avoid uninitialized variable use
20991         * lib/quotearg.c (quoting_options_from_style): Initialize
20992         remaining fields, and ensure that custom styles are only used via
20993         quoting_options rather than quoting_style.
20994
20995 2011-04-29  Jim Meyering  <meyering@redhat.com>
20996
20997         maint.mk: remove unused VC-tag variable
20998         * top/maint.mk (VC-tag): Remove unused variable.
20999
21000 2011-04-29  Bruno Haible  <bruno@clisp.org>
21001
21002         netdb: fix gai_strerror replacements
21003         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21004         * modules/netdb: Substitute it.
21005
21006 2011-04-29  Jim Meyering  <meyering@redhat.com>
21007
21008         test-getcwd.c: avoid new set-but-not-used warning
21009         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21010         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21011         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21012         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21013
21014         test-hash.c: avoid a new shadowing warning
21015         * tests/test-hash.c (main): Don't shadow "dup".
21016
21017 2011-04-28  Eric Blake  <eblake@redhat.com>
21018
21019         getaddrinfo: fix gai_strerror signature
21020         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21021         and work around mingw with UNICODE defined.
21022         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21023         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21024         * modules/netdb (Makefile.am): Substitute it.
21025         * lib/netdb.in.h (gai_strerror): Declare replacement.
21026         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21027         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21028         the fix.
21029
21030         getsockopt: avoid compiler warning
21031         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21032         Reported by Matthias Bolte.
21033
21034         tests: drop unused link dependency
21035         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21036         * modules/dirent-safer-tests (Makefile.am): Likewise.
21037         * modules/fdopendir-tests (Makefile.am): Likewise.
21038         * modules/mkfifoat-tests (Makefile.am): Likewise.
21039         * modules/openat-safer-tests (Makefile.am): Likewise.
21040         * modules/openat-tests (Makefile.am): Likewise.
21041         * modules/readlinkat-tests (Makefile.am): Likewise.
21042         * modules/symlinkat-tests (Makefile.am): Likewise.
21043         * modules/linkat-tests (Makefile.am): Likewise.
21044         (Depends-on): Switch to filenamecat-lgpl.
21045         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21046         LIBINTL.
21047         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21048         * tests/test-linkat.c (main): Don't require xalloc.
21049
21050         hash, mgetgroups: drop xalloc dependency
21051         * lib/hash.c (includes): Adjust includes.
21052         * lib/mgetgroups.c (includes): Likewise.
21053         (xgetgroups): Move...
21054         * lib/xgetgroups.c: ...to new file.
21055         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21056         * modules/xgetgroups: New file, split from...
21057         * modules/mgetgroups: ...here.
21058         (Depends-on): Add xalloc-oversized.
21059         * modules/hash (Depends-on): Likewise.
21060         * modules/hash-tests (Depends-on): Drop xalloc.
21061         (test_hash_LDADD): Drop unused library.
21062         * tests/test-hash.c (main): Break xalloc dependency.
21063         (includes): Drop unused include.
21064
21065         xalloc-oversized: new module
21066         * modules/xalloc-oversized: New module.
21067         * modules/xalloc (Depends-on): Add it.
21068         * lib/xalloc.h (xalloc_oversized): Move...
21069         * lib/xalloc-oversized.h: ...into new file.
21070
21071         utimecmp: drop dependency on xmalloc
21072         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21073         due to memory pressure.
21074         * modules/utimecmp (Depends-on): Drop xalloc.
21075
21076 2011-04-27  Eric Blake  <eblake@redhat.com>
21077
21078         getcwd: fix mingw bugs
21079         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21080         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21081         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21082
21083 2011-04-27  Bruno Haible  <bruno@clisp.org>
21084
21085         mkstemps: Ensure declaration on MacOS X 10.5.
21086         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21087         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21088         MacOS X.
21089
21090 2011-04-27  Bruno Haible  <bruno@clisp.org>
21091
21092         mkstemp: More documentation.
21093         * doc/posix-functions/mkstemp.texi: Document header file problem on
21094         MacOS X.
21095
21096 2011-04-27  Bruno Haible  <bruno@clisp.org>
21097
21098         mkstemp: Tweak configure message when cross-compiling.
21099         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21100         result as a guess.
21101
21102 2011-04-27  Bruno Haible  <bruno@clisp.org>
21103
21104         clean-temp: Clarify what it does.
21105         * lib/clean-temp.h: Add more comments.
21106         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21107         module.
21108         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21109         * doc/glibc-functions/mkstemps.texi: Likewise.
21110         * doc/glibc-functions/mkostemps.texi: Likewise.
21111
21112 2011-04-27  Eric Blake  <eblake@redhat.com>
21113
21114         fchdir: avoid extra chdir and fix test
21115         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21116         getcwd-lgpl.
21117         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21118         have to be canonical.
21119         (canonicalize_file_name): Drop unused macro.
21120         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21121
21122         filenamecat-lgpl: fix licence
21123         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21124         when it was first created.
21125
21126         linkat, renameat: add missing dependency
21127         * modules/linkat (Depends-on): Require getcwd-lgpl.
21128         * modules/renameat (Depends-on): Likewise.
21129
21130         tests: reduce dependencies
21131         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21132         * tests/test-renameat.c (main): Likewise.
21133         * modules/linkat-tests (Depends-on): Relax dependency.
21134         * modules/renameat-tests (Depends-on): Likewise.
21135         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21136         dependency explicit.
21137
21138         save-cwd: reduce default dependency
21139         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21140         * lib/save-cwd.c: Update comments.
21141         * NEWS: Document the semantic change.
21142
21143         getcwd: enhance tests
21144         * tests/test-getcwd-lgpl.c: New file, taken from...
21145         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21146         repeat long path stress tests from m4 probe.
21147         * modules/getcwd-lgpl-tests: New module.
21148         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21149         * m4/getcwd-abort-bug.m4: Update comment.
21150         * m4/getcwd-path-max.m4: Likewise.
21151
21152         getcwd-lgpl: new module
21153         * modules/getcwd-lgpl: New module.
21154         * lib/getcwd-lgpl.c: New file.
21155         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21156         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21157         * modules/getcwd (configure.ac): Set C witness.
21158         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21159
21160         getcwd: tweak comments
21161         * m4/getcwd-abort-bug.m4: Fix comments.
21162         * m4/getcwd-path-max.m4: Likewise.
21163         * m4/getcwd.m4: Likewise.
21164
21165 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21166         and Eric Blake  <eblake@redhat.com>
21167
21168         mkstemp: replace if system version uses wrong permissions
21169         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21170         read/write mode bits set in file created by mkstemp.
21171         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21172
21173 2011-04-27  Eric Blake  <eblake@redhat.com>
21174
21175         passfd: avoid compiler warning
21176         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21177         Reported by Laine Stump.
21178
21179 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21180
21181         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21182         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21183
21184 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21185         and Eric Blake  <eblake@redhat.com>
21186
21187         mkstemp: mention clean-temp module
21188         * lib/mkstemp.c: Add comment.
21189         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21190
21191 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21192
21193         inttypes: also provide default values for 32-bit tests
21194         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21195         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21196
21197 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21198
21199         strtoumax: remove dependency on strtoimax
21200         This is like the strtoull change of yesterday.
21201         * modules/strtoumax (Files): Add lib/strtoimax.c.
21202         (Depends-on): Remove strtoimax and add verify.
21203
21204         inttypes-incomplete: new module
21205         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21206         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21207         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21208         of gl_INTTYPES_H.
21209         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21210         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21211         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21212         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21213         * modules/strtoumax, modules/xstrtol (Depends-on):
21214         Depend on inttypes-incomplete, not inttypes.
21215         * modules/inttypes-incomplete: New module, containing the contents
21216         of the old modules/inttypes module, except that the Files: section
21217         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21218         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21219         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21220         (Depends-on): Depend only on inttypes-incomplete.
21221         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21222
21223         inttypes: omit now-redundant strtoimax and strtoumax work
21224         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21225         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21226
21227         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21228         This supports apps that need pointers to strtoimax and strtoumax,
21229         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21230         nonexistent functions.  See
21231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21232         et seq.
21233         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21234         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21235         a macro.
21236         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21237
21238 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21239
21240         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21241
21242 2011-04-25  Bruno Haible  <bruno@clisp.org>
21243
21244         strtol, strtoul: Mark modules as obsolete.
21245         * modules/strtol (Status, Notice): New sections.
21246         * modules/strtoul (Status, Notice): New sections.
21247
21248 2011-04-25  Bruno Haible  <bruno@clisp.org>
21249
21250         strtod: Remove check for strtod, unless supporting old platforms.
21251         * modules/strtod-obsolete: New file.
21252         * m4/strtod-obsolete.m4: New file.
21253         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21254         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21255         * modules/strtod (Depends-on): Add strtod-obsolete.
21256         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21257
21258 2011-04-25  Bruno Haible  <bruno@clisp.org>
21259
21260         strcase: Make module obsolete.
21261         * modules/strcase (Status, Notice): New sections.
21262
21263 2011-04-25  Bruno Haible  <bruno@clisp.org>
21264
21265         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21266         * modules/dup2-obsolete: New file.
21267         * m4/dup2-obsolete.m4: New file.
21268         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21269         gl_FUNC_DUP2_OBSOLETE is not also defined.
21270         * modules/dup2 (Depends-on): Add dup2-obsolete.
21271         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21272
21273 2011-04-25  Bruno Haible  <bruno@clisp.org>
21274
21275         strnlen: Avoid memchr related link error on old obsolete platforms.
21276         * modules/memchr-obsolete: New file.
21277         * m4/memchr-obsolete.m4: New file.
21278         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21279         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21280         * modules/memchr (Depends-on): Add memchr-obsolete.
21281         * modules/strnlen (Depends-on): Likewise.
21282         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21283
21284 2011-04-25  Jim Meyering  <meyering@redhat.com>
21285
21286         maint.mk: makefile_at_at_check extend and clean up
21287         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21288         in addition to */Makefile.am.
21289         Exempt legitimate uses of @VAR@ notation, e.g.,
21290         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21291         Remove obsolete coreutils-specific comment.
21292         Prompted by discussion here:
21293         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21294
21295 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21296
21297         strtoul: remove dependency on strtol
21298         This is so that 'configure' need not check for strtol merely because
21299         the application needs strtoul.
21300         * modules/strtoul (Files): Add lib/strtol.c.
21301         (Depends-on): Remove strtol.
21302
21303         strtoull: remove dependency on strtoul
21304         This is like the strtoll change.
21305         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21306         (Depends-on): Remove strtoul.
21307
21308         strtoll: remove dependency on strtol
21309         This is so that 'configure' need not check for strtol merely because
21310         the application needs strtoll.
21311         * modules/strtoll (Files): Add lib/strtol.c.
21312         (Depends-on): Remove strtol.
21313
21314 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21315
21316         inttypes: Move some configure check to module 'imaxdiv'.
21317         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21318         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21319         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21320
21321 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21322
21323         inttypes: Move some configure check to module 'imaxabs'.
21324         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21325         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21326         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21327
21328 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21329
21330         inttypes: Remove configure tests that are not needed since 2009-12-31.
21331         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21332         gl_cv_header_working_inttypes_h.
21333
21334 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21335
21336         * modules/strnlen (Depends-on): Remove memchr.
21337         The strnlen implementation doesn't need the memchr module's fixes; see
21338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21339
21340         strtol: remove dependency on wchar
21341         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21342         * modules/strtol (Depends-on): Remove wchar.
21343
21344 2011-04-21  Eric Blake  <eblake@redhat.com>
21345
21346         passfd: fix test regression on Linux
21347         * modules/passfd-tests (configure.ac): Correct socketpair check.
21348
21349         passfd: speed up configure and drop unused code
21350         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21351         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21352         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21353         Instead of probing at configure for unix_scm_rights_bsd44_way,
21354         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21355         check to a struct member probe.
21356         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21357         (sendfd, recvfd): Update preprocessor checks.
21358         * modules/passfd (Files): Reflect rename, and drop unused file.
21359         (Depends-on): Drop unused dependency.
21360
21361         passfd: allow compilation on mingw
21362         * modules/sys_socket (Depends-on): Add sys_uio.
21363         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21364         iovec and a minimal struct msghdr.
21365         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21366         * tests/test-sys_socket.c (main): Enhance test.
21367         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21368         guaranteed to provide what we need.
21369         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21370         * modules/passfd-tests (Depends-on): Add sys_wait.
21371         * tests/test-passfd.c (main): Skip test on mingw, for now.
21372         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21373         partial 'struct msghdr' implementation.
21374
21375         sys_uio: new module
21376         * modules/sys_uio: New module.
21377         * modules/sys_uio-tests: Likewise.
21378         * lib/sys_uio.in.h: New file.
21379         * m4/sys_uio_h.m4: Likewise.
21380         * tests/test-sys_uio.c: Likewise.
21381         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21382         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21383
21384 2011-04-20  Jim Meyering  <meyering@redhat.com>
21385
21386         useless-if-before-free: avoid false-positive
21387         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21388         disjunct so that it too requires a terminating ";".  Without that,
21389         this script would identify as useless one statement from gcc that
21390         was not:
21391           if (aligned_ptr)
21392             free (((void **) aligned_ptr) [-1]);
21393
21394 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21395
21396         doc: update users.txt.
21397         * users.txt: Add barcode.
21398
21399 2011-04-19  Bruno Haible  <bruno@clisp.org>
21400
21401         ioctl: Remove link dependency on native Windows.
21402         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21403         (gl_close_fn, gl_ioctl_fn): New types.
21404         (struct fd_hook): Renamed from struct close_hook. Change type of
21405         private_close_fn field. Add private_ioctl_fn field.
21406         (close_hook_fn): Add parameter for primary close method.
21407         (execute_close_hooks, execute_all_close_hooks): Likewise.
21408         (ioctl_hook_fn): New type.
21409         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21410         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21411         argument.
21412         (unregister_fd_hook): Renamed from unregister_close_hook.
21413         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21414         Don't include <unistd.h>.
21415         (close): Remove undef.
21416         (anchor): Update.
21417         (execute_close_hooks): Add argument for primary close method.
21418         (execute_all_close_hooks): Likewise.
21419         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21420         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21421         argument. Allow each argument to be NULL.
21422         (unregister_fd_hook): Renamed from unregister_close_hook.
21423         * lib/close.c (rpl_close): Pass 'close' function pointer to
21424         execute_all_close_hooks.
21425         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21426         (primary_ioctl): New function.
21427         (ioctl): Don't call ioctlsocket here. Instead, call
21428         execute_all_ioctl_hooks.
21429         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21430         close method.
21431         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21432         (fd_sockets_hook): Renamed from close_sockets_hook.
21433         (gl_sockets_startup, gl_sockets_cleanup): Update.
21434         * modules/fd-hook: Renamed from modules/close-hook. Update.
21435         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21436         * modules/sockets (Depends-on): Likewise.
21437         * modules/ioctl (Depends-on): Add fd-hook.
21438         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21439         GNULIB_SOCKET.
21440
21441 2011-04-19  Bruno Haible  <bruno@clisp.org>
21442
21443         Move the support of O_NONBLOCK in open() to the 'open' module.
21444         * modules/nonblocking (Depends-on): Remove 'open'.
21445         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21446         gl_cv_have_open_O_NONBLOCK.
21447         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21448         O_NONBLOCK support.
21449         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21450
21451 2011-04-17  Bruno Haible  <bruno@clisp.org>
21452
21453         pipe2: Simplify code.
21454         * lib/pipe2.c (pipe2): Reduce code duplication.
21455
21456 2011-04-17  Bruno Haible  <bruno@clisp.org>
21457
21458         nonblocking: Add comment.
21459         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21460
21461 2011-04-17  Bruno Haible  <bruno@clisp.org>
21462
21463         nonblocking: Add tests for sockets.
21464         * tests/test-nonblocking-socket.sh: New file.
21465         * tests/test-nonblocking-socket-main.c: New file.
21466         * tests/test-nonblocking-socket-child.c: New file.
21467         * tests/test-nonblocking-socket.h: New file.
21468         * tests/socket-server.h: New file.
21469         * tests/socket-client.h: New file.
21470         * modules/nonblocking-socket-tests: New file.
21471         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21472
21473 2011-04-17  Bruno Haible  <bruno@clisp.org>
21474
21475         nonblocking: Add tests for pipes.
21476         * tests/test-nonblocking-pipe.sh: New file.
21477         * tests/test-nonblocking-pipe-main.c: New file.
21478         * tests/test-nonblocking-pipe-child.c: New file.
21479         * tests/test-nonblocking-pipe.h: New file.
21480         * tests/test-nonblocking-writer.h: New file.
21481         * tests/test-nonblocking-reader.h: New file.
21482         * tests/test-nonblocking-misc.h: New file.
21483         * modules/nonblocking-pipe-tests: New file.
21484         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21485
21486 2011-04-16  Bruno Haible  <bruno@clisp.org>
21487
21488         gettext: Clarify the needed programmer actions.
21489         * modules/gettext (Notice): New field.
21490         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21491
21492 2011-04-16  Bruno Haible  <bruno@clisp.org>
21493
21494         strchrnul: Tweak last commit.
21495         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21496         bug.
21497         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21498         as in _GL_FUNCDECL_SYS.
21499         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21500         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21501
21502 2011-04-15  Eric Blake  <eblake@redhat.com>
21503
21504         strchrnul: work around cygwin bug
21505         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21506         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21508         * modules/string (Makefile.am): Substitute it.
21509         * lib/string.in.h (strchrnul): Use it.
21510
21511 2011-04-15  Bruno Haible  <bruno@clisp.org>
21512
21513         Don't require lib/stdio-write.c when only module 'stdio' is used.
21514         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21515         invocation.
21516         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21517
21518 2011-04-14  Bruno Haible  <bruno@clisp.org>
21519
21520         Support non-blocking pipe I/O in read() on native Windows.
21521         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21522         (read): New declaration.
21523         * lib/read.c: New file.
21524         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21525         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21526         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21527         vscanf): New declarations.
21528         * lib/stdio-read.c: New file.
21529         * m4/read.m4: New file.
21530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21531         REPLACE_READ.
21532         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21533         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21534         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21535         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21536         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21537         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21538         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21539         * modules/read: New file.
21540         * modules/nonblocking (Files): Add lib/stdio-read.c.
21541         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21542         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21543         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21544         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21545         * modules/pread (Depends-on): Add read.
21546         * modules/safe-read (Depends-on): Likewise.
21547         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21548         gets, scanf, vfscanf, vscanf): Verify signatures.
21549         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21550         problem with non-blocking pipes.
21551         * doc/posix-functions/fgetc.texi: Likewise.
21552         * doc/posix-functions/fgets.texi: Likewise.
21553         * doc/posix-functions/fread.texi: Likewise.
21554         * doc/posix-functions/fscanf.texi: Likewise.
21555         * doc/posix-functions/getc.texi: Likewise.
21556         * doc/posix-functions/getchar.texi: Likewise.
21557         * doc/posix-functions/gets.texi: Likewise.
21558         * doc/posix-functions/scanf.texi: Likewise.
21559         * doc/posix-functions/vfscanf.texi: Likewise.
21560         * doc/posix-functions/vscanf.texi: Likewise.
21561
21562 2011-04-14  Bruno Haible  <bruno@clisp.org>
21563
21564         Support non-blocking pipe I/O in write() on native Windows.
21565         * lib/write.c (rpl_write): Split a write request that failed merely
21566         because the byte count was larger than the pipe buffer's size.
21567         * doc/posix-functions/write.texi: Mention the problem with large byte
21568         counts.
21569
21570 2011-04-14  Bruno Haible  <bruno@clisp.org>
21571
21572         wchar: Ensure that wchar_t gets defined on uClibc.
21573         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21574         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21575
21576 2011-04-13  Bruno Haible  <bruno@clisp.org>
21577
21578         safe-write, full-read: Avoid unnecessary compilation units.
21579         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21580         (Depends-on): Remove safe-read. Add ssize_t.
21581         * modules/full-read (Files): Add lib/full-write.c.
21582         (Depends-on): Add full-write.
21583
21584 2011-04-13  Bruno Haible  <bruno@clisp.org>
21585
21586         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21587         * modules/pwrite (Depends-on): Add 'write'.
21588
21589 2011-04-13  Bruno Haible  <bruno@clisp.org>
21590
21591         Support non-blocking pipe I/O in write() on native Windows.
21592         * lib/unistd.in.h (write): Enable replacement also if
21593         GNULIB_UNISTD_H_NONBLOCKING is 1.
21594         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21595         (rpl_write): When failing to write on a non-blocking pipe, change
21596         errno from ENOSPC to EAGAIN.
21597         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21598         putchar, puts, vfprintf, vprintf): Enable replacement also if
21599         GNULIB_STDIO_H_NONBLOCKING is 1.
21600         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21601         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21602         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21603         CALL_WITH_SIGPIPE_EMULATION.
21604         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21605         * m4/nonblocking.m4: New file.
21606         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21607         for non-blocking I/O support.
21608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21609         GNULIB_UNISTD_H_NONBLOCKING.
21610         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21611         required for non-blocking I/O support.
21612         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21613         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21614         lib/stdio-write.c, m4/asm-underscore.m4.
21615         (Depends-on): Add stdio, unistd.
21616         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21617         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21618         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21619         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21620         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21621         problem with non-blocking pipes.
21622         * doc/posix-functions/fputc.texi: Likewise.
21623         * doc/posix-functions/fputs.texi: Likewise.
21624         * doc/posix-functions/fwrite.texi: Likewise.
21625         * doc/posix-functions/printf.texi: Likewise.
21626         * doc/posix-functions/putc.texi: Likewise.
21627         * doc/posix-functions/putchar.texi: Likewise.
21628         * doc/posix-functions/puts.texi: Likewise.
21629         * doc/posix-functions/vfprintf.texi: Likewise.
21630         * doc/posix-functions/vprintf.texi: Likewise.
21631         * doc/posix-functions/write.texi: Likewise.
21632
21633 2011-04-10  Jim Meyering  <meyering@redhat.com>
21634
21635         maint.mk: prohibit doubled words
21636         Detect them also when they're separated by a newline.
21637         There are 3 ways to customize it:
21638           - disable the test on a per file basis, as usual with rules using
21639             $(VC_LIST_EXCEPT)
21640           - replace the default doubled-word-selecting regexp (affects all files)
21641           - ignore a particular file-vs-doubled-word match
21642         I nearly used that last one to ignore the "is is" match in
21643         coreutils' NEWS file, since the text was "ls -is is ..."
21644         To do that, I would have added this line to cfg.mk:
21645           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21646         but it would have ignored any "is is" match in NEWS.
21647         Low probability, but still...
21648         Instead, I changed the text, slightly:
21649           -  ls -is is now consistent with ls -lis in ignoring values returned
21650           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21651         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21652         (prohibit_doubled_word_): Define.
21653         (sc_prohibit_doubled_word): New rule.
21654         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21655
21656 2011-04-10  Jim Meyering  <meyering@redhat.com>
21657
21658         maint: fix doubled-word typo in comment
21659         * m4/gethostname.m4: s/is is/it is/
21660         * m4/getdomainname.m4: Likewise.
21661
21662 2011-04-10  Jim Meyering  <meyering@redhat.com>
21663
21664         maint: remove doubled word: s/it it/it/
21665         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21666
21667 2011-04-10  Jim Meyering  <meyering@redhat.com>
21668
21669         maint.mk: remove useless semicolon and backslash
21670         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21671         semicolon and backslash.
21672
21673 2011-04-10  Bruno Haible  <bruno@clisp.org>
21674
21675         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21676         * modules/stdint-tests (Depends-on): Add wchar.
21677
21678 2011-04-10  Jim Meyering  <meyering@redhat.com>
21679
21680         maint: remove doubled words in comments, e.g., s/a a/a/
21681         * lib/strptime.c (day_of_the_week): s/the the/the/
21682         * tests/test-chown.h (test_chown): s/a a/a/
21683
21684         test-chown.h: correct a cast
21685         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21686         when the destination is a stat.st_gid.
21687
21688 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21689
21690         getaddrinfo: Fix test for sa_len member.
21691         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21692         include <sys/types.h> before <sys/socket.h>.
21693
21694 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21695
21696         maint: change "can not" to "cannot"
21697         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21698         boundaries.
21699
21700 2011-04-09  Jim Meyering  <meyering@redhat.com>
21701
21702         maint: change "a a" to "a"
21703         * tests/test-lchown.h (test_lchown): s/a a/a/
21704
21705         maint.mk: prohibit \<the the\>
21706         * top/maint.mk (sc_prohibit_the_the): New rule.
21707
21708         maint: fix "the the" in comment
21709         * lib/count-one-bits.h: s/the the/the/
21710
21711         maint: change "can not" to "cannot"
21712         But do not change the occurrences in maintain.texi or in
21713         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21714         * doc/gnulib-tool.texi: s/can not/cannot/
21715         * doc/posix-functions/accept.texi (accept): Likewise.
21716         * doc/posix-functions/socket.texi (socket): Likewise.
21717         * lib/mbrtowc.c: Likewise.
21718
21719         maint.mk: prohibit use of "can not"
21720         * top/maint.mk (sc_prohibit_can_not): New rule.
21721         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21722
21723 2011-04-09  Bruno Haible  <bruno@clisp.org>
21724
21725         careadlinkat: Guard against misuse of careadlinkatcwd.
21726         * lib/careadlinkat.c: Include <stdlib.h>.
21727         (careadlinkatcwd): Check that the fd argument is as expected.
21728
21729 2011-04-09  Bruno Haible  <bruno@clisp.org>
21730
21731         careadlinkat: Use common coding style.
21732         * lib/careadlinkat.c: Move gnulib includes after system includes.
21733
21734 2011-04-09  Bruno Haible  <bruno@clisp.org>
21735
21736         careadlinkat: Clarify specification.
21737         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21738         (careadlinkatcwd): Add comment.
21739         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21740
21741 2011-04-09  Bruno Haible  <bruno@clisp.org>
21742
21743         areadlinkat: Avoid link error on many platforms.
21744         * modules/areadlinkat (Depends-on): Add areadlink.
21745
21746 2011-04-09  Bruno Haible  <bruno@clisp.org>
21747
21748         allocator, careadlinkat: Fix double-inclusion guard.
21749         * lib/allocator.h: Fix double-inclusion guard.
21750         * lib/careadlinkat.h: Likewise.
21751
21752 2011-04-09  Bruno Haible  <bruno@clisp.org>
21753
21754         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21755         * lib/relocwrapper.c: Update dependencies hierarchy.
21756         * build-aux/install-reloc: Update list of files to be compiled.
21757         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21758         lib/allocator.[hc].
21759
21760 2011-04-08  Eric Blake  <eblake@redhat.com>
21761
21762         strftime: silence gnulib-tool warning
21763         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21764
21765 2011-04-08  Bruno Haible  <bruno@clisp.org>
21766
21767         verify: Fix syntax error with GCC 4.6 in C++ mode.
21768         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21769         (HAVE_STATIC_ASSERT): New macro.
21770         (verify_true, verify): Use 'static_assert' if it is supported and
21771         '_Static_assert' is not supported.
21772
21773 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21774
21775         allocator: New module.
21776         * modules/allocator, lib/allocator.c: New files.
21777         * lib/allocator.h (stdlib_allocator): New decl.
21778         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21779         Remove.  Do not include <stdlib.h>.
21780         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21781         * modules/careadlinkat (Files): Remove lib/allocator.h.
21782         (Depends-on): Add allocator.
21783
21784         stdlib: let modules use system malloc, realloc
21785         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21786         if !_GL_USE_STDLIB_ALLOC.
21787         (malloc, realloc): Limit this change to a smaller scope.
21788
21789         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21790         (malloc, realloc): Don't #undef; no longer needed.
21791         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21792         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21793         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21794         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21795         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21796         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21797         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21798         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21799
21800         careadlinkat: rename members to avoid problem
21801         * lib/allocator.h (struct allocator): Rename members from
21802         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21803         and realloc are #define'd.  Reported by Eric Blake in
21804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21805         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21806
21807 2011-04-08  Eric Blake  <eblake@redhat.com>
21808
21809         nonblocking: reduce dependency
21810         * tests/test-nonblocking.c: Only test sockets when in use.
21811         * modules/nonblocking-tests (Depends-on): Drop socket.
21812         (Makefile.am): Link even if sockets are not present.
21813         * modules/pipe2-tests (Makefile.am): Likewise.
21814         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21815
21816         pipe2: fix O_NONBLOCK support on mingw
21817         * modules/pipe2 (Depends-on): Add nonblocking.
21818         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21819         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21820         * tests/test-nonblocking.c (main): Likewise.
21821         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21822
21823         fcntl-h: fix O_ACCMODE on cygwin
21824         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21825         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21826
21827         pipe-filter: drop O_NONBLOCK workarounds
21828         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21829         * modules/pipe-filter-ii (Depends-on): Likewise.
21830         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21831
21832         nonblocking: provide O_NONBLOCK for mingw
21833         * modules/nonblocking (Depends-on): Add open.
21834         (configure.ac): Set new witness macro.
21835         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21836         * modules/fcntl-h (Makefile.am): Substitute it.
21837         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21838         nonblocking module is in use.
21839         * lib/nonblocking.c: Adjust portability test.
21840         * lib/open.c (open): Don't let native open see gnulib flag.
21841         * tests/test-fcntl-h.c (main): Enhance test.
21842         * tests/test-open.h (test_open): Likewise.
21843         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21844
21845         careadlinkat: fix compilation error on mingw
21846         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21847         within struct allocator.
21848
21849 2011-04-06  Eric Blake  <eblake@redhat.com>
21850
21851         binary-io: relicense under LGPLv2+
21852         * modules/binary-io (License): Relax to LGPLv2+.
21853         Requested for libvirt, and required by pipe2.
21854
21855 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21856
21857         verify: use _Static_assert if available
21858         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21859         (verify_true, verify): Use it if available.  This generates better
21860         diagnostics with GCC 4.6.0 and later.
21861
21862 2011-04-05  Bruno Haible  <bruno@clisp.org>
21863
21864         Remove leftover generated .h files after config.status changed.
21865
21866         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21867         GL_GENERATE_ALLOCA_H.
21868         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21869         GL_GENERATE_ALLOCA_H evaluates to false.
21870
21871         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21872         GL_GENERATE_ARGZ_H.
21873         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21874         evaluates to false.
21875
21876         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21877         GL_GENERATE_BYTESWAP_H.
21878         * modules/byteswap (Makefile.am): Remove byteswap.h if
21879         GL_GENERATE_BYTESWAP_H evaluates to false.
21880
21881         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21882         GL_GENERATE_ERRNO_H.
21883         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21884         evaluates to false.
21885
21886         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21887         GL_GENERATE_FLOAT_H.
21888         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21889         evaluates to false.
21890
21891         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21892         GL_GENERATE_FNMATCH_H.
21893         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21894         GL_GENERATE_FNMATCH_H evaluates to false.
21895
21896         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21897         GL_GENERATE_GLOB_H.
21898         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21899         evaluates to false.
21900
21901         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21902         automake conditional GL_GENERATE_ICONV_H.
21903         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21904         evaluates to false.
21905
21906         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21907         GL_GENERATE_NETINET_IN_H.
21908         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21909         GL_GENERATE_NETINET_IN_H evaluates to false.
21910
21911         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21912         conditional GL_GENERATE_PTHREAD_H.
21913         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21914         * modules/pthread (Makefile.am): Remove pthread.h if
21915         GL_GENERATE_PTHREAD_H evaluates to false.
21916
21917         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21918         GL_GENERATE_SCHED_H.
21919         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21920         evaluates to false.
21921
21922         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21923         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21924         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21925         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21926
21927         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21928         GL_GENERATE_STDARG_H.
21929         * modules/stdarg (Makefile.am): Remove stdarg.h if
21930         GL_GENERATE_STDARG_H evaluates to false.
21931
21932         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21933         GL_GENERATE_STDBOOL_H.
21934         * modules/stdbool (Makefile.am): Remove stdbool.h if
21935         GL_GENERATE_STDBOOL_H evaluates to false.
21936
21937         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21938         conditional GL_GENERATE_STDDEF_H.
21939         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21940         * modules/stddef (Makefile.am): Remove stddef.h if
21941         GL_GENERATE_STDDEF_H evaluates to false.
21942
21943         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21944         GL_GENERATE_STDINT_H.
21945         * modules/stdint (Makefile.am): Remove stdint.h if
21946         GL_GENERATE_STDINT_H evaluates to false.
21947
21948         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21949         GL_GENERATE_SYSEXITS_H.
21950         * modules/sysexits (Makefile.am): Remove sysexits.h if
21951         GL_GENERATE_SYSEXITS_H evaluates to false.
21952
21953         Reported by Karl Berry and Ralf Wildenhues.
21954
21955 2011-04-05  Bruno Haible  <bruno@clisp.org>
21956
21957         Ensure to rebuild generated .h files when config.status has changed.
21958         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21959         config.status.
21960         * modules/ctype (Makefile.am): Likewise.
21961         * modules/dirent (Makefile.am): Likewise.
21962         * modules/errno (Makefile.am): Likewise.
21963         * modules/fcntl-h (Makefile.am): Likewise.
21964         * modules/float (Makefile.am): Likewise.
21965         * modules/getopt-posix (Makefile.am): Likewise.
21966         * modules/glob (Makefile.am): Likewise.
21967         * modules/iconv-h (Makefile.am): Likewise.
21968         * modules/inttypes (Makefile.am): Likewise.
21969         * modules/langinfo (Makefile.am): Likewise.
21970         * modules/locale (Makefile.am): Likewise.
21971         * modules/math (Makefile.am): Likewise.
21972         * modules/netdb (Makefile.am): Likewise.
21973         * modules/netinet_in (Makefile.am): Likewise.
21974         * modules/poll-h (Makefile.am): Likewise.
21975         * modules/pthread (Makefile.am): Likewise.
21976         * modules/pty (Makefile.am): Likewise.
21977         * modules/sched (Makefile.am): Likewise.
21978         * modules/search (Makefile.am): Likewise.
21979         * modules/selinux-h (Makefile.am): Likewise.
21980         * modules/signal (Makefile.am): Likewise.
21981         * modules/spawn (Makefile.am): Likewise.
21982         * modules/stdarg (Makefile.am): Likewise.
21983         * modules/stdbool (Makefile.am): Likewise.
21984         * modules/stddef (Makefile.am): Likewise.
21985         * modules/stdint (Makefile.am): Likewise.
21986         * modules/stdio (Makefile.am): Likewise.
21987         * modules/stdlib (Makefile.am): Likewise.
21988         * modules/string (Makefile.am): Likewise.
21989         * modules/strings (Makefile.am): Likewise.
21990         * modules/sys_file (Makefile.am): Likewise.
21991         * modules/sys_ioctl (Makefile.am): Likewise.
21992         * modules/sys_select (Makefile.am): Likewise.
21993         * modules/sys_socket (Makefile.am): Likewise.
21994         * modules/sys_stat (Makefile.am): Likewise.
21995         * modules/sys_time (Makefile.am): Likewise.
21996         * modules/sys_times (Makefile.am): Likewise.
21997         * modules/sys_utsname (Makefile.am): Likewise.
21998         * modules/sys_wait (Makefile.am): Likewise.
21999         * modules/sysexits (Makefile.am): Likewise.
22000         * modules/termios (Makefile.am): Likewise.
22001         * modules/time (Makefile.am): Likewise.
22002         * modules/unistd (Makefile.am): Likewise.
22003         * modules/wchar (Makefile.am): Likewise.
22004         * modules/wctype-h (Makefile.am): Likewise.
22005         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22006
22007 2011-04-05  Bruno Haible  <bruno@clisp.org>
22008
22009         pipe2: Relicense under LGPLv2+.
22010         * modules/pipe2 (License): Change to LGPLv2+.
22011         Requested by Eric Blake, for libvirt.
22012
22013 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22014
22015         bootstrap: compute gnulib_extra_files after updating build_aux
22016         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22017         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22018
22019 2011-04-05  Eric Blake  <eblake@redhat.com>
22020
22021         bootstrap: preserve git whitelist item sorting
22022         * build-aux/bootstrap (sort_patterns): New function.
22023         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22024
22025 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22026
22027         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22028         sc_space_tab check.
22029
22030 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22031
22032         areadlink, areadlinkat: rewrite in terms of careadlinkat
22033         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22034         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22035         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22036         (malloc, realloc): Remove #undefs.
22037         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22038         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22039         readlink, ssize_t, stdint, unistd.
22040         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22041         areadlink, stdint.
22042
22043         careadlinkat: new module
22044         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22045         * modules/careadlinkat: New files, written by me with
22046         a review and feedback from Ben Pfaff in
22047         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22048
22049 2011-04-01  Bruno Haible  <bruno@clisp.org>
22050
22051         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22052         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22053         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22054         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22055         Reported by Bruce Korb <bruce.korb@gmail.com>.
22056
22057 2011-04-01  Bruno Haible  <bruno@clisp.org>
22058
22059         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22060         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22061         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22062         * modules/wcpcpy (Depends-on): Add extensions.
22063         * modules/wcpncpy (Depends-on): Likewise.
22064         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22065         systems.
22066         * doc/posix-functions/wcpncpy.texi: Likewise.
22067         * doc/posix-functions/wcwidth.texi: Likewise.
22068
22069 2011-03-31  Eric Blake  <eblake@redhat.com>
22070
22071         nonblocking: fix mingw test failures
22072         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22073         non-blocking flag on regular file.
22074         (get_nonblocking_flag): Set errno on invalid fd.
22075         * tests/test-nonblocking.c (main): Avoid test failure on
22076         directories if fchdir is not active.
22077         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22078
22079 2011-03-31  Bruno Haible  <bruno@clisp.org>
22080
22081         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22082         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22083         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22084         Reported by Simon Josefsson <simon@josefsson.org>.
22085
22086 2011-03-31  Bruno Haible  <bruno@clisp.org>
22087         and Eric Blake  <eblake@redhat.com>
22088
22089         nonblocking: new module
22090         * modules/nonblocking: New module.
22091         * modules/nonblocking-tests: Likewise.
22092         * lib/nonblocking.h: New file.
22093         * lib/nonblocking.c: Likewise.
22094         * tests/test-nonblocking.c: New test.
22095         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22096
22097 2011-03-30  Bruno Haible  <bruno@clisp.org>
22098
22099         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22100         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22101         instead of 'printf' format for GCC >= 4.4.
22102         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22103         (fprintf, printf, vfprintf, vprintf): Declare with
22104         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22105         the system's vfprintf() function.
22106         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22107
22108 2011-03-30  Eric Blake  <eblake@redhat.com>
22109
22110         passfd: fix scoping bug
22111         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22112         before sendmsg/recvmsg.
22113
22114         passfd: standardize coding conventions
22115         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22116         can be learned at compile time.
22117         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22118         ifdefs.
22119         (sendfd, recvfd): Follow gnulib code conventions.
22120
22121         passfd: fix incorrect sendmsg arguments
22122         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22123         incorrect msg_controllen value.
22124         * modules/passfd-tests (Depends-on): Check for alarm.
22125         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22126         Reported by Bastien ROUCARIES.
22127
22128 2011-03-30  Bruno Haible  <bruno@clisp.org>
22129
22130         c-strcasestr: Relicense under LGPLv2+.
22131         * modules/c-strcasestr (License): Change to LGPLv2+.
22132         Requested by Eric Blake, for libvirt.
22133
22134 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22135
22136         * users.txt: Add libidn2.  Fix libtasn1 link.
22137
22138 2011-03-30  Jim Meyering  <meyering@redhat.com>
22139
22140         tests: readlink* ("",... fails with EINVAL on newer kernels
22141         readlink and readlinkat have typically failed with ENOENT for
22142         the invalid, empty file name,  "".  However, with the advent
22143         of linux-2.6.39, they fail with EINVAL.
22144         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22145         when operating on the empty file name.
22146         * tests/test-readlink.h (test_readlink): Likewise.
22147
22148 2011-03-29  Bruno Haible  <bruno@clisp.org>
22149
22150         Relicense some modules under LGPLv2+, for libidn2.
22151         * modules/array-mergesort (License): Change to LGPLv2+.
22152         * modules/c-strcaseeq (License): Likewise.
22153         * modules/striconveh (License): Likewise.
22154         * modules/striconveha (License): Likewise.
22155         * modules/uniconv/base (License): Likewise.
22156         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22157         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22158         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22159         * modules/unictype/base (License): Likewise.
22160         * modules/unictype/bidiclass-of (License): Likewise.
22161         * modules/unictype/category-M (License): Likewise.
22162         * modules/unictype/category-none (License): Likewise.
22163         * modules/unictype/category-of (License): Likewise.
22164         * modules/unictype/category-test (License): Likewise.
22165         * modules/unictype/category-test-withtable (License): Likewise.
22166         * modules/unictype/combining-class (License): Likewise.
22167         * modules/unictype/joiningtype-of (License): Likewise.
22168         * modules/unictype/scripts (License): Likewise.
22169         * modules/uninorm/base (License): Likewise.
22170         * modules/uninorm/canonical-decomposition (License): Likewise.
22171         * modules/uninorm/composition (License): Likewise.
22172         * modules/uninorm/decompose-internal (License): Likewise.
22173         * modules/uninorm/decomposition-table (License): Likewise.
22174         * modules/uninorm/nfc (License): Likewise.
22175         * modules/uninorm/nfd (License): Likewise.
22176         * modules/uninorm/u32-normalize (License): Likewise.
22177         * modules/unistr/base (License): Likewise.
22178         * modules/unistr/u32-cpy (License): Likewise.
22179         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22180         * modules/unistr/u32-to-u8 (License): Likewise.
22181         * modules/unistr/u32-uctomb (License): Likewise.
22182         * modules/unistr/u8-check (License): Likewise.
22183         * modules/unistr/u8-mblen (License): Likewise.
22184         * modules/unistr/u8-mbtouc (License): Likewise.
22185         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22186         * modules/unistr/u8-mbtoucr (License): Likewise.
22187         * modules/unistr/u8-prev (License): Likewise.
22188         * modules/unistr/u8-strlen (License): Likewise.
22189         * modules/unistr/u8-to-u32 (License): Likewise.
22190         * modules/unistr/u8-uctomb (License): Likewise.
22191         * modules/unitypes (License): Likewise.
22192         Requested by Simon Josefsson.
22193
22194 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22195
22196         lib-symbol-visibility: Add a notice.
22197         * modules/lib-symbol-visibility (Notice): New field.
22198
22199 2011-03-29  Bruno Haible  <bruno@clisp.org>
22200
22201         getaddrinfo: Doc fix.
22202         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22203         section "fixed in Gnulib".
22204
22205 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22206
22207         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22208         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22209
22210 2011-03-26  Bruno Haible  <bruno@clisp.org>
22211
22212         unictype/property-byname: Reduce the number of load-time relocations.
22213         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22214         (UC_PROPERTY_INDEX_*): New enumeration values.
22215         (uc_property_byname): Convert an index from the lookup table to an
22216         uc_property_t.
22217         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22218         values.
22219
22220 2011-03-26  Bruno Haible  <bruno@clisp.org>
22221
22222         unictype/property-byname: Allow omitted word separators and aliases.
22223         * lib/unictype/pr_byname.gperf: Add property names without word
22224         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22225         for 'space'.
22226
22227 2011-03-26  Bruno Haible  <bruno@clisp.org>
22228
22229         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22230         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22231         also hyphens to space.
22232         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22233         without spaces.
22234         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22235
22236 2011-03-26  Bruno Haible  <bruno@clisp.org>
22237
22238         unictype/joiningtype-byname: Recognize long names as well.
22239         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22240         a long name.
22241         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22242         unictype/joiningtype_byname.h.
22243         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22244         * lib/unictype/joiningtype_byname.gperf: New file.
22245         * modules/unictype/joiningtype-byname (Files): Add
22246         lib/unictype/joiningtype_byname.gperf.
22247         (Depends-on): Add gperf.
22248         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22249         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22250         long names.
22251
22252         Tests for module 'unictype/joiningtype-longname'.
22253         * modules/unictype/joiningtype-longname-tests: New file.
22254         * tests/unictype/test-joiningtype_longname.c: New file.
22255
22256         New module 'unictype/joiningtype-longname'.
22257         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22258         * lib/unictype/joiningtype_longname.c: New file.
22259         * modules/unictype/joiningtype-longname: New file.
22260         * modules/unictype/joiningtype-all (Depends-on): Add
22261         unictype/joiningtype-longname.
22262
22263 2011-03-26  Bruno Haible  <bruno@clisp.org>
22264
22265         unictype/bidiclass-byname: Recognize long names as well.
22266         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22267         name.
22268         * lib/unictype/bidi_byname.c: Include <string.h>,
22269         unictype/bidi_byname.h.
22270         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22271         * lib/unictype/bidi_byname.gperf: New file.
22272         * modules/unictype/bidiclass-byname (Files): Add
22273         lib/unictype/bidi_byname.gperf.
22274         (Depends-on): Add gperf.
22275         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22276         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22277         long names.
22278
22279         Tests for module 'unictype/bidiclass-longname'.
22280         * modules/unictype/bidiclass-longname-tests: New file.
22281         * tests/unictype/test-bidi_longname.c: New file.
22282
22283         New module 'unictype/bidiclass-longname'.
22284         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22285         * lib/unictype/bidi_longname.c: New file.
22286         * modules/unictype/bidiclass-longname: New file.
22287         * modules/unictype/bidiclass-all (Depends-on): Add
22288         unictype/bidiclass-longname.
22289
22290 2011-03-26  Bruno Haible  <bruno@clisp.org>
22291
22292         unictype/bidi*: Rename modules.
22293         * modules/unictype/bidiclass-all: Renamed from
22294         modules/unictype/bidicategory-all.
22295         * modules/unictype/bidiclass-name: Renamed from
22296         modules/unictype/bidiclass-name.
22297         (Description): Update.
22298         * modules/unictype/bidiclass-name-tests: Renamed from
22299         modules/unictype/bidicategory-name-tests.
22300         * modules/unictype/bidiclass-byname: Renamed from
22301         modules/unictype/bidicategory-byname.
22302         (Description): Update.
22303         * modules/unictype/bidiclass-byname-tests: Renamed from
22304         modules/unictype/bidicategory-byname-tests.
22305         * modules/unictype/bidiclass-of: Renamed from
22306         modules/unictype/bidicategory-of.
22307         (Description): Update.
22308         * modules/unictype/bidiclass-of-tests: Renamed from
22309         modules/unictype/bidicategory-of-tests.
22310         * modules/unictype/bidiclass-test: Renamed from
22311         modules/unictype/bidicategory-test.
22312         (Description): Update.
22313         * modules/unictype/bidiclass-test-tests: Renamed from
22314         modules/unictype/bidicategory-test-tests.
22315         * modules/unictype/bidicategory-all: New file, a simple redirection.
22316         * modules/unictype/bidicategory-name: Likewise.
22317         * modules/unictype/bidicategory-byname: Likewise.
22318         * modules/unictype/bidicategory-of: Likewise.
22319         * modules/unictype/bidicategory-test: Likewise.
22320         * modules/unictype/property-bidi-* (Dependencies): Update.
22321         * lib/unictype/bidi_*.c: Update comment.
22322
22323 2011-03-26  Bruno Haible  <bruno@clisp.org>
22324
22325         unictype/bidi*: Rename functions, part 2.
22326         * modules/unictype/bidicategory-name (configure.ac): Update required
22327         libunistring version.
22328         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22329
22330 2011-03-25  Bruno Haible  <bruno@clisp.org>
22331
22332         New module 'unictype/combining-class-all'.
22333         * modules/unictype/combining-class-all: New file.
22334
22335         Tests for module 'unictype/combining-class-byname'.
22336         * modules/unictype/combining-class-byname-tests: New file.
22337         * tests/unictype/test-combiningclass_byname.c: New file.
22338
22339         New module 'unictype/combining-class-byname'.
22340         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22341         * lib/unictype/combiningclass_byname.c: New file.
22342         * lib/unictype/combiningclass_byname.gperf: New file.
22343         * modules/unictype/combining-class-byname: New file.
22344
22345         Tests for module 'unictype/combining-class-longname'.
22346         * modules/unictype/combining-class-longname-tests: New file.
22347         * tests/unictype/test-combiningclass_longname.c: New file.
22348
22349         New module 'unictype/combining-class-longname'.
22350         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22351         * lib/unictype/combiningclass_longname.c: New file.
22352         * modules/unictype/combining-class-longname: New file.
22353
22354         Tests for module 'unictype/combining-class-name'.
22355         * modules/unictype/combining-class-name-tests: New file.
22356         * tests/unictype/test-combiningclass_name.c: New file.
22357
22358         New module 'unictype/combining-class-name'.
22359         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22360         * lib/unictype/combiningclass_name.c: New file.
22361         * modules/unictype/combining-class-name: New file.
22362
22363 2011-03-25  Bruno Haible  <bruno@clisp.org>
22364
22365         unictype/combining-class: Rename source files.
22366         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22367         of unictype/combining.h.
22368         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22369         Update.
22370         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22371         * modules/unictype/combining-class (Description): Fix.
22372         (Files, Makefile.am): Update.
22373         * tests/unictype/test-combiningclass.c: Renamed from
22374         tests/unictype/test-combining.c.
22375         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22376
22377 2011-03-25  Bruno Haible  <bruno@clisp.org>
22378
22379         unictype: Update list of canonical combining classes.
22380         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22381
22382 2011-03-25  Bruno Haible  <bruno@clisp.org>
22383
22384         unictype/category-byname: Recognize long names as well.
22385         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22386         a long name.
22387         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22388         unictype/categ_byname.h.
22389         (UC_CATEGORY_INDEX_*): New enumeration values.
22390         (uc_general_category_byname): Use uc_general_category_lookup and
22391         convert from index to value.
22392         * lib/unictype/categ_byname.gperf: New file.
22393         * modules/unictype/category-byname (Files): Add
22394         lib/unictype/categ_byname.gperf.
22395         (Depends-on): Add gperf.
22396         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22397         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22398         long names.
22399
22400         Tests for module 'unictype/category-longname'.
22401         * modules/unictype/category-longname-tests: New file.
22402         * tests/unictype/test-categ_longname.c: New file.
22403
22404         New module 'unictype/category-longname'.
22405         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22406         * lib/unictype/categ_longname.c: New file.
22407         * modules/unictype/category-longname: New file.
22408         * modules/unictype/category-all (Depends-on): Add it.
22409
22410 2011-03-25  Bruno Haible  <bruno@clisp.org>
22411
22412         Tests for module 'unictype/category-LC'.
22413         * modules/unictype/category-LC-tests: New file.
22414         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22415
22416         New module 'unictype/category-LC'.
22417         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22418         (UC_CATEGORY_LC): New declaration.
22419         (UC_CASED_LETTER): New macro.
22420         * lib/gen-uni-tables.c (is_category_LC): New function.
22421         (output_categories): Also handle category LC.
22422         (UC_CATEGORY_MASK_LC): New enumeration value.
22423         (general_category_byname): Also handle category LC.
22424         * lib/unictype/categ_LC.c: New file.
22425         * lib/unictype/categ_LC.h: New file, automatically generated.
22426         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22427         category LC.
22428         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22429         * modules/unictype/category-LC: New file.
22430         * modules/unictype/category-byname (Depends-on): Add
22431         unictype/category-LC.
22432         * modules/unictype/category-all (Depends-on): Likewise.
22433
22434 2011-03-25  Eric Blake  <eblake@redhat.com>
22435
22436         xmalloc: revert yesterday's regression
22437         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22438         realloc's underlying behavior (allowing allocation of zero-size
22439         objects, especially if malloc-gnu is also in use).
22440
22441 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22442
22443         maint.mk: add missing version to VC-tag
22444         * top/maint.mk: git tag was missing actual tag name; add it.
22445
22446         valgrind: do leak checking, and exit with code 1 on error (not 0)
22447         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22448         to VALGRIND.
22449
22450 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22451
22452         posix-modules: say what it does.
22453         * posix-modules: Add a line to the --help output saying what it does.
22454
22455 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22456
22457         xmalloc: Do not leak if underlying realloc is C99 compatible.
22458         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22459         This avoids a leak on C99-based systems.  See
22460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22461
22462 2011-03-24  Eric Blake  <eblake@redhat.com>
22463
22464         realloc: document portability problem
22465         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22466         passing 0 size to realloc.
22467
22468 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22469
22470         doc: update users.txt
22471         * users.txt: Add cvsps, tmpwatch
22472
22473 2011-03-23  Matt Rice  <ratmice@gmail.com>
22474
22475         doc: update users.txt
22476         * users.txt: Add gdb.
22477
22478 2011-03-23  Jim Meyering  <meyering@redhat.com>
22479
22480         doc: update users.txt
22481         Looking through matches up to the following URL (there are still
22482         several more pages), I found several projects that use gnulib:
22483         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22484         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22485         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22486
22487 2011-03-22  Bruno Haible  <bruno@clisp.org>
22488
22489         unictype/bidi*: Rename functions.
22490         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22491         uc_bidi_class, uc_is_bidi_class): New declarations.
22492         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22493         uc_bidi_category_byname.
22494         (uc_bidi_category_byname): New function.
22495         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22496         u_bidi_category_name.
22497         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22498         (uc_bidi_category_name): New function.
22499         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22500         uc_bidi_category.
22501         (uc_bidi_category): New function.
22502         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22503         uc_is_bidi_category. Invoke uc_bidi_class.
22504         (uc_is_bidi_category): New function.
22505         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22506         instead of uc_bidi_category_byname.
22507         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22508         instead of uc_bidi_category_name.
22509         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22510         uc_bidi_category.
22511         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22512         instead of uc_is_bidi_category.
22513
22514 2011-03-21  Bruno Haible  <bruno@clisp.org>
22515
22516         New module 'unictype/joininggroup-all'.
22517         * modules/unictype/joininggroup-all: New file.
22518
22519         Tests for module 'unictype/joininggroup-of'.
22520         * modules/unictype/joininggroup-of-tests: New file.
22521         * tests/unictype/test-joininggroup_of.c: New file.
22522         * tests/unictype/test-joininggroup_of.h: New file, automatically
22523         generated by gen-uni-tables.
22524
22525         New module 'unictype/joininggroup-of'.
22526         * modules/unictype/joininggroup-of: New file.
22527         * lib/unictype/joininggroup_of.c: New file.
22528         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22529         gen-uni-tables.
22530
22531         Tests for module 'unictype/joininggroup-byname'.
22532         * modules/unictype/joininggroup-byname-tests: New file.
22533         * tests/unictype/test-joininggroup_byname.c: New file.
22534
22535         New module 'unictype/joininggroup-byname'.
22536         * modules/unictype/joininggroup-byname: New file.
22537         * lib/unictype/joininggroup_byname.c: New file.
22538         * lib/unictype/joininggroup_byname.gperf: New file.
22539
22540         Tests for module 'unictype/joininggroup-name'.
22541         * modules/unictype/joininggroup-name-tests: New file.
22542         * tests/unictype/test-joininggroup_name.c: New file.
22543
22544         New module 'unictype/joininggroup-name'.
22545         * modules/unictype/joininggroup-name: New file.
22546         * lib/unictype/joininggroup_name.c: New file.
22547         * lib/unictype/joininggroup_name.h: New file.
22548
22549         New module 'unictype/joiningtype-all'.
22550         * modules/unictype/joiningtype-all: New file.
22551
22552         Tests for module 'unictype/joiningtype-of'.
22553         * modules/unictype/joiningtype-of-tests: New file.
22554         * tests/unictype/test-joiningtype_of.c: New file.
22555         * tests/unictype/test-joiningtype_of.h: New file, automatically
22556         generated by gen-uni-tables.
22557
22558         New module 'unictype/joiningtype-of'.
22559         * modules/unictype/joiningtype-of: New file.
22560         * lib/unictype/joiningtype_of.c: New file.
22561         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22562         gen-uni-tables.
22563
22564         Tests for module 'unictype/joiningtype-byname'.
22565         * modules/unictype/joiningtype-byname-tests: New file.
22566         * tests/unictype/test-joiningtype_byname.c: New file.
22567
22568         New module 'unictype/joiningtype-byname'.
22569         * modules/unictype/joiningtype-byname: New file.
22570         * lib/unictype/joiningtype_byname.c: New file.
22571
22572         Tests for module 'unictype/joiningtype-name'.
22573         * modules/unictype/joiningtype-name-tests: New file.
22574         * tests/unictype/test-joiningtype_name.c: New file.
22575
22576         New module 'unictype/joiningtype-name'.
22577         * modules/unictype/joiningtype-name: New file.
22578         * lib/unictype/joiningtype_name.c: New file.
22579
22580         unictype: Add support for Arabic shaping properties.
22581         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22582         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22583         declarations.
22584         (UC_JOINING_GROUP_*): New enumeration values.
22585         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22586         declarations.
22587         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22588         (unicode_joining_type): New variable.
22589         (UC_JOINING_GROUP_*): New enumeration values.
22590         (unicode_joining_group): New variable.
22591         (fill_arabicshaping, joining_type_as_c_identifier,
22592         output_joining_type_test, output_joining_type,
22593         joining_group_as_c_identifier, output_joining_group_test,
22594         output_joining_group): New functions.
22595         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22596         fill_arabicshaping and output_joining_type_test, output_joining_type,
22597         output_joining_group_test, output_joining_group.
22598         Reported by Simon Josefsson.
22599
22600 2011-03-21  Jim Meyering  <meyering@redhat.com>
22601
22602         strftime: fix a bug in yesterday's change
22603         * lib/strftime.c (add): Accommodate width's initial value of -1.
22604         Otherwise, nstrftime would copy uninitialized data into
22605         the result buffer.
22606
22607 2011-03-21  Jim Meyering  <meyering@redhat.com>
22608
22609         tests: add strftime-tests module
22610         * tests/test-strftime.c: New file.
22611         * modules/strftime-tests: New module.
22612
22613 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22614
22615         strftime: don't assume a byte count fits in 'int'
22616         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22617         found this problem by static analysis, using gcc -Wstrict-overflow
22618         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22619         on an integer overflow having undefined behavior, but it turns out
22620         that the argument is a size, which might not fit in 'int' anyway,
22621
22622 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22623
22624         stdio: don't require ignore_value around fwrite
22625
22626         This patch works around libc bug 11959
22627         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22628         Without this patch, applications must often write
22629         ignore_value (fwrite (...)) even though the ignore_value is
22630         not helpful here.  It's common to write many objects, using
22631         fwrite/printf/etc., and then use ferror to detect output error.
22632
22633         I considered making this patch optional, but decided against it,
22634         because libc is obviously being inconsistent here: there is no
22635         reason libc should insist that user code must inspect fwrite
22636         return's value without also insisting that it inspect printf's,
22637         putchar's, etc.  If user code wants to have a strict style where
22638         all these functions' values are checked (so that ferror need not
22639         be checked), we could add support for that style in a new gnulib
22640         module, but in the meantime it's better to be consistent and to
22641         support common usage.
22642
22643         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22644         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22645         that we are compiling in checking mode, and if not C++, and
22646         if not already wrapping fwrite for some other reason.
22647         (fwrite): #define to rpl_fwrite if the latter is defined.
22648
22649 2011-03-20  Bruno Haible  <bruno@clisp.org>
22650
22651         verror: Fix compilation error introduced on 2011-02-13.
22652         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22653         instead of __attribute__.
22654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22655
22656 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22657             Bruno Haible  <bruno@clisp.org>
22658
22659         socklen: do not depend on sys_socket
22660         While trying to modify Emacs to use gnulib's socklen module,
22661         I discovered a circular dependency: socklen depends on sys_socket
22662         and vice versa.  Emacs can use socklen, but it does not need
22663         sys_socket because it has its own substitute for sys/socket.h.
22664         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22665         gl_TYPE_SOCKLEN_T.
22666         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22667         gl_PREREQ_SYS_H_SOCKET.
22668         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22669         gl_PREREQ_SYS_H_SOCKET.
22670         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22671         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22672         * modules/socklen (Depends-on): Do not depend on sys_socket.
22673         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22674
22675 2011-03-20  Jim Meyering  <meyering@redhat.com>
22676
22677         maint.mk: sort file names *after* new transformation
22678         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22679         prefix would have led to an unwarranted failure in GNU parted.
22680         Sort after that transformation.
22681
22682 2011-03-19  Jim Meyering  <meyering@redhat.com>
22683
22684         maint.mk: fix po-file syntax-check rule
22685         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22686         Patch by Bruno Haible.
22687
22688 2011-03-19  Bruno Haible  <bruno@clisp.org>
22689
22690         socklen: Update comment.
22691         * m4/socklen.m4: Update comment about platforms.
22692
22693 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22694             Bruno Haible  <bruno@clisp.org>
22695
22696         inet_ntop, inet_pton: Simplify.
22697         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22698         documented to provide socklen_t and we already depend on sys_socket.
22699         * modules/inet_pton (Depends-on): Likewise.
22700         * lib/arpa_inet.in.h: Adjust comment.
22701
22702 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22703             Bruno Haible  <bruno@clisp.org>
22704
22705         netdb: Simplify.
22706         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22707         documented to provide socklen_t and we already depend on sys_socket.
22708         * lib/netdb.in.h: Adjust comment.
22709
22710 2011-03-19  Bruno Haible  <bruno@clisp.org>
22711
22712         sys_socket, netdb: Document problem with socklen_t.
22713         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22714         platforms.
22715         * doc/posix-headers/netdb.texi: Likewise.
22716
22717 2011-03-18  Eric Blake  <eblake@redhat.com>
22718
22719         maint.mk: let po check work in VPATH build
22720         * top/maint.mk (po_file): Allow cfg.mk override.
22721         (sc_po_check): Allow VPATH use.
22722         Reported by Jiri Denemark.
22723
22724 2011-03-16  Jim Meyering  <meyering@redhat.com>
22725
22726         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22727         Before, you would have had to create one .x-sc_ file per rule in order
22728         to exempt offending files.  Now, you may instead use a Make variable --
22729         usually defined in cfg.mk -- whose name identifies the affected rule.
22730         * top/maint.mk (_sc_excl): Define.
22731         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22732         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22733
22734 2011-03-13  Bruno Haible  <bruno@clisp.org>
22735
22736         ignore-value tests: Avoid warnings.
22737         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22738         empty for gcc < 3.4.
22739
22740 2011-03-13  Bruno Haible  <bruno@clisp.org>
22741
22742         passfd: Fix link error on Solaris.
22743         * modules/passfd (Description): Correct.
22744         (Depends-on): Add socketlib.
22745         (Link): New section.
22746         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22747
22748 2011-03-13  Bruno Haible  <bruno@clisp.org>
22749
22750         passfd: Fix link error on AIX 5.2.
22751         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22752
22753 2011-03-13  Bruno Haible  <bruno@clisp.org>
22754
22755         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22756         * lib/sys_socket.in.h: Include <stddef.h>.
22757         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22758         CMSG_FIRSTHDR. Remove unused variable.
22759
22760 2011-03-13  Bruno Haible  <bruno@clisp.org>
22761
22762         passfd: Fix compilation error on OpenBSD.
22763         * lib/passfd.c: Include <sys/uio.h>.
22764
22765 2011-03-13  Bruno Haible  <bruno@clisp.org>
22766
22767         passfd test: Fix warnings.
22768         * tests/test-passfd.c: Include <sys/wait.h>.
22769         (main): Fix typo.
22770
22771 2011-03-13  Bruno Haible  <bruno@clisp.org>
22772
22773         passfd module, part 4, tweaks.
22774         * tests/test-passfd.c: Reorder includes.
22775         (main): Fix perror and printf calls.
22776
22777 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22778
22779         passfd module, part 4.
22780         * modules/passfd-tests: New file.
22781         * tests/test-passfd.c: New file.
22782
22783 2011-03-13  Jim Meyering  <meyering@redhat.com>
22784
22785         Makefile: rely on GNU make; derive syntax-check rule names
22786         Rather than requiring that each sc_ rule be listed as a dependent
22787         of "check", use features of GNU make to derive the list.
22788         * Makefile (syntax-check-rules): Define.
22789         (check): Depend on the new variable, not the hard-coded list.
22790
22791 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22792             Bruno Haible  <bruno@clisp.org>
22793
22794         passfd module, part 3.
22795         * lib/passfd.h (recvfd): Add a flags argument.
22796         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22797         (recvfd): Add a flags argument.
22798         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22799         exists.
22800         * modules/passfd (Depends-on): Add cloexec.
22801         Suggested by Eric Blake.
22802
22803 2011-03-13  Bruno Haible  <bruno@clisp.org>
22804
22805         passfd module, part 2, tweaks.
22806         * modules/passfd (Files): Reorder.
22807         (Depends-on): Remove errno.
22808         (Include): Remove <sys/socket.h>, <sys/un.h>.
22809         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22810         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22811         specification header. Include <sys/socket.h> always. Don't include
22812         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22813         (sendfd): Clarify that it sets errno when it fails.
22814         (recvfd): Fix specification.
22815
22816 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22817
22818         passfd module, part 2.
22819         * modules/passfd: New file.
22820         * lib/passfd.h: New file.
22821         * lib/passfd.c: New file.
22822
22823 2011-03-12  Bruno Haible  <bruno@clisp.org>
22824
22825         wcswidth, mbswidth: Avoid integer overflow.
22826         * lib/wcswidth.c: Include <limits.h>.
22827         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22828         * lib/mbswidth.c: Include <limits.h>.
22829         (mbsnwidth): Avoid 'int' overflow.
22830         Reported by Jim Meyering.
22831
22832 2011-03-12  Bruno Haible  <bruno@clisp.org>
22833
22834         futimens, utimensat: Avoid endless recursion on Solaris 10.
22835         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22836         Solaris.
22837         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22838         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22839
22840 2011-03-11  Jim Meyering  <meyering@redhat.com>
22841
22842         maint.mk: relax a regexp to accommodate other formatting styles
22843         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22844         between "ngettext" and the following "(".
22845
22846 2011-03-11  Pádraig Brady <P@draigBrady.com>
22847
22848         maint.mk: suppress a false positive warning
22849         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22850         diagnostics are marked with ngettext.
22851
22852 2011-03-10  Eric Blake  <eblake@redhat.com>
22853
22854         wchar: add explicit dependencies, for Tru64
22855         * modules/mbmemcasecoll (Depends-on): Add wchar.
22856         * modules/mbtowc (Depends-on): Likewise.
22857         * modules/vasnprintf (Depends-on): Likewise.
22858         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22859         * modules/wctomb (Depends-on): Likewise.
22860         Reported by Peter O'Gorman.
22861
22862 2011-03-08  Bruno Haible  <bruno@clisp.org>
22863
22864         passfd module, part 1, tweaks.
22865         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22866         Improve indentation. Improve AC_MSG_CHECKING messages.
22867         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22868         gl_SOCKET_FAMILIES.
22869
22870 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22871
22872         passfd module, part 1.
22873         * m4/afunix.m4: New file.
22874         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22875         sockets.
22876
22877 2011-03-08  Bruno Haible  <bruno@clisp.org>
22878
22879         regex-quote: New API.
22880         * lib/regex-quote.h: Include <stdbool.h>.
22881         (struct regex_quote_spec): New type.
22882         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22883         New declarations.
22884         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22885         'const struct regex_quote_spec *' argument.
22886         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22887         (pcre_special): New constant.
22888         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22889         New functions.
22890         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22891         'const struct regex_quote_spec *' argument.
22892         * modules/regex-quote (Depends-on): Add stdbool.
22893         * tests/test-regex-quote.c (check): Update for new API. Add test for
22894         anchored results.
22895         * NEWS: Mention the API change.
22896         Reported by Reuben Thomas and Eric Blake.
22897
22898 2011-03-06  Bruno Haible  <bruno@clisp.org>
22899
22900         regex-quote: Fix creation of POSIX extended regular expressions.
22901         * lib/regex-quote.c (ere_special): Add grouping and alternation
22902         operators.
22903
22904 2011-03-05  Bruno Haible  <bruno@clisp.org>
22905
22906         doc: Improve doc regarding autopoint vs. gnulib.
22907         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22908         disable autopoint while running autoreconf.
22909         Suggested by Ralf Wildenhues.
22910
22911 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22912
22913         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22914         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22915
22916 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22917
22918         parse-duration: remove xalloc.h dependency
22919         * lib/parse-duration.c (parse_period): handle NULL return from
22920         strdup instead of calling xstrdup().
22921         * modules/parse-duration: remove "xalloc" dependency
22922
22923 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22924
22925         bootstrap: honor m4_base when running aclocal
22926         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22927
22928 2011-03-02  Jim Meyering  <meyering@redhat.com>
22929
22930         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22931         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22932         on request from Matt Booth.
22933
22934 2011-03-01  Eric Blake  <eblake@redhat.com>
22935
22936         test-link: work on Hurd
22937         * tests/test-link.h (test_link): Hurd rejects linking directories
22938         with EISDIR instead of the POSIX-mandated EPERM.
22939
22940 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22941
22942         stdio: simplify by moving files to printf-posix, sigpipe
22943         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22944         since this symbol is needed only if printf is replaced.
22945         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22946         Require gl_ASM_SYMBOL_PREFIX.
22947         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22948         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22949         (Depends-on): Add 'raise'.
22950         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22951         * modules/stdio (Files): Remove lib/stdio-write.c,
22952         m4/asm-underscore.m4.
22953         (Depends-on): Remove 'raise'.
22954
22955         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22956         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22957         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22958         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22959
22960 2011-02-28  Bruno Haible  <bruno@clisp.org>
22961
22962         localcharset: Assume ANSI C behaviour of free().
22963         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22964         calling free().
22965         Suggested by Simon Josefsson <simon@josefsson.org>.
22966
22967 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22968             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22969             Bruno Haible  <bruno@clisp.org>  (tiny change)
22970
22971         On Cygwin, use /proc file system instead of win32 API.
22972         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22973         Win32 file names.
22974         (DllMain): Simplify by removing Cygwin specific code.
22975         (find_shared_library_fullname): Use Linux specific implementation also
22976         for Cygwin.
22977         (get_shared_library_fullname): Update accordingly.
22978         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22979         Win32 file names.
22980         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22981         Cygwin specific code.
22982
22983 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22984             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22985
22986         Fix OpenMP flag detection for various Fortran compilers.
22987         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22988         OpenMP-conditional compilation construct, to force compile
22989         failure with missing OpenMP flag.
22990         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22991
22992 2011-02-25  Eric Blake  <eblake@redhat.com>
22993
22994         strstr: expand test coverage
22995         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22996         compilation.
22997         * tests/test-memmem.c (main): Duplicate tests.
22998         * tests/test-strcasestr.c (main): Likewise.
22999         * tests/test-c-strcasestr.c (main): Likewise.
23000
23001 2011-02-25  Jim Meyering  <meyering@redhat.com>
23002
23003         maint.mk: detect missing-NL-at-EOF, too
23004         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23005         it also detects when a file lacks a newline at EOF.
23006         (require_exactly_one_NL_at_EOF_): Renamed from
23007         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23008         since people may well have .x-sc_... file names tied to the
23009         existing name.  Suggested by Eric Blake.
23010
23011 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23012
23013         dirname: move m4/dos.m4 functionality into lib/dosname.h
23014
23015         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23016         extracts symbols from it, puts them into config.h; but it's much
23017         easier to use the symbols directly.  filename.h already does this,
23018         but it disagrees with dos.m4 in some respects.  This patch
23019         introduces a different include file dosname.h that packages up
23020         dos.m4, and then later we can work on merging filename.h and
23021         dosname.h.  Applications that need only the easy-to-configure
23022         symbols should consider including dosname.h rather than dirname.h.
23023         * NEWS: Mention incompatible changes.
23024         * m4/dos.m4: Remove.
23025         * lib/dosname.h, modules/dosname: New files.
23026         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23027         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23028         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23029         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23030         Include dosname.h, not dirname.h.
23031         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23032         Include dosname.h, for definitions of symbols like ISSLASH
23033         that used to be in config.h.
23034         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23035         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23036         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23037         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23038         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23039         * modules/rmdir (Files): Likewise.
23040         * modules/stat (Files): Likewise.
23041         * modules/unlink (Files): Likewise.
23042         * modules/dirname-lgpl (Depends-on): Add dosname.
23043         * modules/lstat (Depends-on): Likewise.
23044         * modules/openat (Depends-on): Likewise.
23045         * modules/rmdir (Depends-on): Likewise.
23046         * modules/savewd (Depends-on): Likewise.
23047         * modules/stat (Depends-on): Likewise.
23048         * modules/unlink (Depends-on): Likewise.
23049         * modules/openat (Depends-on): Remove dirname-lgpl.
23050         * modules/savewd (Depends-on): Likewise.
23051         * tests/test-dirname.c: Do not use removed symbols like
23052         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23053         the remaining symbols, e.g., ISSLASH ('\\').
23054
23055 2011-02-25  Eric Blake  <eblake@redhat.com>
23056
23057         strstr: revert patches that introduced bug and pessimization
23058         * lib/str-two-way.h: Add another reference.
23059         (two_way_short_needle, two_way_long_needle): Revert changes from
23060         2011-02-24; they pessimize search speed.
23061         (critical_factorization): Partially revert changes from
23062         2010-06-22; they violate the requirement that the left half of the
23063         needle be smaller than the period of the needle.
23064
23065 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23066
23067         filenamecat: remove unnecessary dependency on dirname-lgpl
23068         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23069         is no direct dependency, just an indirect one via filenamecat-lgpl.
23070
23071         remove: remove unnecessary use of m4/dos.m4
23072         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23073         * modules/remove (FILES): Remove m4/dos.m4.
23074
23075         * lib/openat-proc.c: Don't include dirname.h; not needed.
23076
23077         backupfile: remove unnecessary use of m4/dos.m4
23078         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23079         of its symbols are used by the backupfile code.  backupfile.c does
23080         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23081         for the rare case of programs that want all their backup file
23082         names to live within 8+3 limits, and dos.m4 doesn't address that.
23083         * modules/backupfile (Files): Remove m4/dos.m4.
23084
23085 2011-02-24  Jim Meyering  <meyering@redhat.com>
23086
23087         strstr: fix a bug whereby strstr would mistakenly return NULL
23088         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23089         in period calculation.
23090         (two_way_long_needle): Likewise.
23091         The original problem was reported by Mike Stump in
23092         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23093         Ralf Wildenhues provided the short needle and haystack.
23094         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23095         Add a more involved test to trigger the bug in two_way_long_needle.
23096
23097 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23098
23099         gnulib-tool: remove use of bold display in help screen
23100         * gnulib-tool (func_usage): Do not use bold display anymore in the
23101         help screen.  That was just meant to be a temporary emphasis for a
23102         backward-incompatible change.
23103
23104 2011-02-23  Bruno Haible  <bruno@clisp.org>
23105
23106         Fix misindentation of preprocessor directives.
23107         * lib/argp-namefrob.h: Reindent preprocessor directives.
23108         * lib/getopt_int.h (struct _getopt_data): Likewise.
23109         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23110         * lib/vasnprintf.c (decode_long_double): Likewise.
23111         * tests/test-argmatch.c: Insert blank lines, for clarity.
23112         * tests/test-exclude.c: Likewise.
23113
23114 2011-02-22  Bruno Haible  <bruno@clisp.org>
23115
23116         ioctl: Fix for MacOS X in 64-bit mode.
23117         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23118         value.
23119         Suggested by Eric Blake.
23120         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23121
23122 2011-02-22  Jim Meyering  <meyering@redhat.com>
23123
23124         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23125         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23126         in lib/.
23127
23128 2011-02-22  Eric Blake  <eblake@redhat.com>
23129
23130         maint: avoid any CDPATH issue
23131         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23132
23133         maint: adjust cpp indentation for my modules, as well
23134         * Makefile (sc_cpp_indent_check): Add my name.
23135         * lib/fbufmode.c: Filter through cppi.
23136         * lib/fpurge.c: Likewise.
23137         * lib/freadable.c: Likewise.
23138         * lib/freading.c: Likewise.
23139         * lib/fwritable.c: Likewise.
23140         * lib/fwriting.c: Likewise.
23141         * lib/sigaction.c: Likewise.
23142
23143 2011-02-22  Jim Meyering  <meyering@redhat.com>
23144
23145         maint: adjust cpp indentation to reflect nesting depth
23146         I.e., in a block of code that begins with an unnested "#if",
23147         put one space between the "#" in column 1 and following token.
23148         For example,
23149         -#include <sys/vfs.h>
23150         +# include <sys/vfs.h>
23151         Do this only in .c files that are part of a module I maintain.
23152         * lib/linkat.c: Filter through cppi.
23153         * lib/nanosleep.c: Likewise.
23154         * lib/openat.c: Likewise.
23155         * lib/openat-die.c: Likewise.
23156         * lib/dup3.c: Likewise.
23157         * lib/fchownat.c: Likewise.
23158         * lib/flock.c: Likewise.
23159         * lib/fsync.c: Likewise.
23160         * lib/fts.c: Likewise.
23161         * lib/getpass.c: Likewise.
23162         * lib/gettimeofday.c: Likewise.
23163         * lib/userspec.c: Likewise.
23164         * Makefile (sc_cpp_indent_check): New rule, to check this.
23165
23166 2011-02-22  Bruno Haible  <bruno@clisp.org>
23167
23168         New module 'wctomb'.
23169         * lib/stdlib.in.h (wctomb): New declaration.
23170         * lib/wctomb.c: New file.
23171         * lib/wctomb-impl.h: New file.
23172         * m4/wctomb.m4: New file.
23173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23174         REPLACE_WCTOMB.
23175         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23176         REPLACE_WCTOMB.
23177         * modules/wctomb: New file.
23178         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23179         * doc/posix-functions/wctomb.texi: Mention the new module.
23180         * modules/wctob (Depends-on): Add wctomb.
23181
23182 2011-02-22  Bruno Haible  <bruno@clisp.org>
23183
23184         New module 'mbtowc'.
23185         * lib/stdlib.in.h (mbtowc): New declaration.
23186         * lib/mbtowc.c: New file.
23187         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23188         * m4/mbtowc.m4: New file.
23189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23190         REPLACE_MBTOWC.
23191         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23192         REPLACE_MBTOWC.
23193         * modules/mbtowc: New file.
23194         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23195         * doc/posix-functions/mbtowc.texi: Mention the new module.
23196         * modules/btowc (Depends-on): Add mbtowc.
23197
23198 2011-02-22  Bruno Haible  <bruno@clisp.org>
23199
23200         wcrtomb: Add more tests for native Windows platforms.
23201         * tests/test-wcrtomb-w32-1.sh: New file.
23202         * tests/test-wcrtomb-w32-2.sh: New file.
23203         * tests/test-wcrtomb-w32-3.sh: New file.
23204         * tests/test-wcrtomb-w32-4.sh: New file.
23205         * tests/test-wcrtomb-w32-5.sh: New file.
23206         * tests/test-wcrtomb-w32.c: New file.
23207         * modules/wcrtomb-tests (Files): Add them.
23208         (Makefile.am): Arrange to run these tests.
23209         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23210         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23211
23212 2011-02-20  Bruno Haible  <bruno@clisp.org>
23213
23214         wcrtomb: Enhance test.
23215         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23216
23217 2011-02-20  Bruno Haible  <bruno@clisp.org>
23218
23219         mbrtowc: Tiny optimization.
23220         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23221
23222 2011-02-20  Jim Meyering  <meyering@redhat.com>
23223
23224         test-exclude.c: remove unmatched #endif
23225         * tests/test-exclude.c: Remove stray #endif, left over from
23226         the change of a week ago.
23227
23228 2011-02-19  Jim Meyering  <meyering@redhat.com>
23229
23230         git-version-gen: skip "-dirty" check when appropriate
23231         * build-aux/git-version-gen: Don't run any git commands when the
23232         version string comes from .tarball-version.  Prior to this, we
23233         would run git update-index --refresh even from a just-unpacked
23234         tarball directory, and that could affect a .git/ directory in a
23235         parent of the build directory.  Reported by Mike Frysinger.
23236
23237 2011-02-19  Bruno Haible  <bruno@clisp.org>
23238
23239         unictype/property-byname: Reduce the size of the 'data' segment.
23240         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23241
23242 2011-02-19  Bruno Haible  <bruno@clisp.org>
23243
23244         unictype/scripts: Reduce the size of the 'data' segment.
23245         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23246         '%pic'.
23247         * lib/unictype/scripts_byname.gperf: Regenerated.
23248
23249 2011-02-19  Bruno Haible  <bruno@clisp.org>
23250
23251         stdint: Update documentation.
23252         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23253
23254 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23255
23256         stdint: omit redundant check for wchar.h
23257         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23258         always tests whether wchar.h exists, so remove the now-redundant test.
23259
23260 2011-02-18  Bruno Haible  <bruno@clisp.org>
23261
23262         stdint: Cut dependency to module 'wchar'.
23263         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23264         include the necessary prerequisites.
23265         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23266         * modules/stdint (Depends-on): Remove wchar.
23267         (Makefile.am): Substitute HAVE_WCHAR_H.
23268         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23269
23270 2011-02-18  Eric Blake  <eblake@redhat.com>
23271
23272         longlong: skip, rather than fail, on cross-compilation
23273         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23274         when cross-compiling; regression from 2011-02-16.
23275
23276 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23277
23278         * NEWS: Mention 2011-02-08 change to stdlib.
23279
23280 2011-02-17  Bruno Haible  <bruno@clisp.org>
23281
23282         getloadavg: Add comments about platforms.
23283         * m4/getloadavg.m4: Add comment.
23284         * lib/getloadavg.c: Likewise.
23285
23286 2011-02-17  Bruno Haible  <bruno@clisp.org>
23287
23288         getloadavg: Fix link error on Solaris 2.6.
23289         * modules/getloadavg (Link): New section.
23290         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23291         linking test-getloadavg.
23292         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23293         getloadavg.
23294
23295 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23296
23297         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23298         It was 'int', but this doesn't match the IRIX 6.5 manual.
23299         Suggested by Bruno Haible in
23300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23301
23302 2011-02-17  Bruno Haible  <bruno@clisp.org>
23303
23304         havelib: Fix comments.
23305         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23306         change.
23307
23308 2011-02-17  Bruno Haible  <bruno@clisp.org>
23309
23310         havelib: Update config.rpath.
23311         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23312
23313 2011-02-17  Bruno Haible  <bruno@clisp.org>
23314
23315         getloadavg test: Add some plausibility checks.
23316         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23317         is improbable.
23318
23319 2011-02-16  Eric Blake  <eblake@redhat.com>
23320
23321         maintainer-makefile: make syntax-check a no-op from tarballs
23322         * top/maint.mk (no-vc-detected): New rule.
23323         (local-checks-available): Use it to avoid hanging if someone tries
23324         'make syntax-check' from a tarball.  Also append to any non-syntax
23325         checks already defined in cfg.mk.
23326
23327 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23328
23329         longlong: tune, particularly for common case of c99
23330
23331         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23332         or running anything if c99, or if unsigned long long int does not
23333         work.  In either case, we know the answer without further tests.
23334         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23335         it at most once, and use its results for both long long int and
23336         unsigned long long int.  This is more likely to be efficient in
23337         the common case where the program wants to check for both long
23338         long int and unsigned long long int.
23339         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23340         since the answer is already known.
23341
23342 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23343
23344         getloadavg: set errno
23345         * lib/getloadavg.c: Set errno when returning -1.  If no other
23346         error number looks appropriate, set it to ENOSYS if the getloadavg
23347         looks like it can't possibly ever work, ENOTSUP otherwise.
23348         Suggested by Bruno Haible in
23349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23350
23351         getloadavg: trim unused parts and speed up 'configure'
23352         * NEWS: Document this.
23353         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23354         always compiled if getloadavg is absent.
23355         Move test code to ...
23356         * tests/test-getloadavg.c: New file, containing previous
23357         contents of test from lib/getloadavg.c.  It also contains
23358         suggestions by Bruno Haible in
23359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23360         * modules/getloadavg-tests: New file.
23361         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23362         Do tests in the same order as they're needed for getloadavg.c.
23363         Omit setgid-related tests that generate symbols KMEM_GROUP,
23364         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23365         Do only the tests that are needed to see whether the system has
23366         getloadavg, moving the other tests into ...
23367         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23368         NLIST_NAME_UNION; nobody should be using it.  Do not define
23369         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23370         relevant, as the user of this module shouldn't care how getloadavg
23371         is implemented.
23372
23373         getloadavg: omit unused var
23374         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23375
23376 2011-02-15  Jim Meyering  <meyering@redhat.com>
23377
23378         doc: update users.txt
23379         * users.txt: Update iwhd's URL.
23380
23381 2011-02-13  Bruno Haible  <bruno@clisp.org>
23382
23383         Consistent macro naming for macros that use GCC __attribute__.
23384         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23385         _ATTRIBUTE_NONNULL_.
23386         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23387         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23388         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23389         ATTRIBUTE_DEPRECATED.
23390         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23391         ATTRIBUTE_NORETURN.
23392         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23393         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23394         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23395         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23396         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23397         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23398         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23399         ATTRIBUTE_SENTINEL.
23400         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23401         ATTRIBUTE_RETURN_CHECK.
23402         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23403         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23404         ATTRIBUTE_NORETURN.
23405         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23406         Reported by Paul Eggert.
23407
23408 2011-02-13  Bruno Haible  <bruno@clisp.org>
23409
23410         Don't interfere with a program's definition of __attribute__.
23411         * lib/argp.h (__attribute__): Remove definition.
23412         (_GL_ATTRIBUTE_FORMAT): New macro.
23413         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23414         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23415         (_GL_ATTRIBUTE_FORMAT): New macro.
23416         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23417         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23418         GCC 3 or newer.
23419         * lib/error.h (__attribute__): Remove definition.
23420         (_GL_ATTRIBUTE_FORMAT): New macro.
23421         (error, error_at_line): Use it.
23422         * lib/hash.h (__attribute__): Remove definition.
23423         (ATTRIBUTE_WUR): Update definition. Define always.
23424         * lib/openat.h (__attribute__): Remove definition.
23425         (ATTRIBUTE_NORETURN): Update definition. Define always.
23426         * lib/sigpipe-die.h (__attribute__): Remove definition.
23427         (ATTRIBUTE_NORETURN): Update definition. Define always.
23428         * lib/vasnprintf.h (__attribute__): Remove definition.
23429         (_GL_ATTRIBUTE_FORMAT): New macro.
23430         (asnprintf, vasnprintf): Use it.
23431         * lib/xalloc.h (__attribute__): Remove definition.
23432         (ATTRIBUTE_NORETURN): Update definition. Define always.
23433         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23434         * lib/xmemdup0.h (__attribute__): Remove definition.
23435         (ATTRIBUTE_NORETURN): Update definition. Define always.
23436         * lib/xprintf.h (__attribute__): Remove definition.
23437         (_GL_ATTRIBUTE_FORMAT): New macro.
23438         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23439         * lib/xstrtol.h (__attribute__): Remove definition.
23440         (ATTRIBUTE_NORETURN): Update definition. Define always.
23441         * lib/xvasprintf.h (__attribute__): Remove definition.
23442         (_GL_ATTRIBUTE_FORMAT): New macro.
23443         (xasprintf, xvasprintf): Use it.
23444         * tests/test-argmatch.c (__attribute__): Remove definition.
23445         (ATTRIBUTE_NORETURN): Update definition. Define always.
23446         * tests/test-exclude.c (__attribute__): Remove definition.
23447         (ATTRIBUTE_NORETURN): Update definition. Define always.
23448         Reported by Paul Eggert.
23449
23450 2011-02-13  Bruno Haible  <bruno@clisp.org>
23451
23452         mbrtowc: Add more tests for native Windows platforms.
23453         * tests/test-mbrtowc-w32-1.sh: New file.
23454         * tests/test-mbrtowc-w32-2.sh: New file.
23455         * tests/test-mbrtowc-w32-3.sh: New file.
23456         * tests/test-mbrtowc-w32-4.sh: New file.
23457         * tests/test-mbrtowc-w32-5.sh: New file.
23458         * tests/test-mbrtowc-w32.c: New file.
23459         * modules/mbrtowc-tests (Files): Add them.
23460         (Makefile.am): Arrange to run these tests.
23461         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23462         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23463
23464 2011-02-13  Bruno Haible  <bruno@clisp.org>
23465
23466         mbrtowc: Work around native Windows bug.
23467         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23468         guess when no suitable locale for testing was found.
23469         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23470
23471 2011-02-13  Bruno Haible  <bruno@clisp.org>
23472
23473         mbsinit: Work around mingw bug.
23474         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23475         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23476         Windows.
23477         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23478
23479 2011-02-13  Bruno Haible  <bruno@clisp.org>
23480
23481         mbsinit: Don't crash for a NULL argument.
23482         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23483         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23484
23485 2011-02-13  Bruno Haible  <bruno@clisp.org>
23486
23487         Don't interfere with a program's definition of __attribute__.
23488         * lib/stdio.in.h (__attribute__): Remove definition.
23489         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23490         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23491         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23492         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23493         * lib/string.in.h (__attribute__): Remove definition.
23494         Reported by Paul Eggert.
23495
23496 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23497
23498         stdlib: don't get in the way of non-GCC __attribute__
23499         See thread starting at
23500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23501         Revert previous stdlib change, installing the following instead:
23502         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23503         to get in the way of a non-GCC compiler that supports __attribute__.
23504         (_GL_ATTRIBUTE_RETURN): New macro.
23505         (_Exit): Use it instead of __attribute__.
23506
23507 2011-02-12  Bruno Haible  <bruno@clisp.org>
23508
23509         quotearg test: Avoid test failure on mingw.
23510         * tests/test-quotearg.sh: Convert the locale identifier from native
23511         Windows syntax to Unix syntax.
23512
23513 2011-02-12  Bruno Haible  <bruno@clisp.org>
23514
23515         setlocale: Prefer gnulib's override over libintl's override.
23516         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23517         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23518         GNULIB_defined_setlocale is set.
23519
23520 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23521
23522         stdlib: support non-GCC __attribute__
23523
23524         Fix a serious and tricky problem encountered when attempting to
23525         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23526         5.5, but it crashed due to memory corruption on Solaris 10 with
23527         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23528         bits that are otherwise zero.  This tagging is optional inside
23529         Emacs but is preferred and is used when __attribute__ ((__aligned
23530         (8))) works, as it does with both recent-enough GCC and with Sun C
23531         5.11.  However, Sun C 5.11 is not GCC and does not #define
23532         __GNUC__ and __GNUC_MINOR__.
23533
23534         When I added the getloadavg module to Emacs, it brought in
23535         stdlib.in.h, which contained this fragment:
23536
23537            #ifndef __attribute__
23538            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23539            #  define __attribute__(Spec)   /* empty */
23540            # endif
23541            #endif
23542
23543         When files that include <stdlib.h> were compiled with Sun C 5.11,
23544         the above code disabled __attribute__ ((__aligned (8))), which
23545         caused variables to not be properly aligned, which eventually led
23546         to the pointer corruption mentioned above.  (This was a bit hard
23547         to diagnose, unfortunately.)
23548
23549         Several "#define __attribute__(X) /* empty */" code snippets need
23550         to be eradicated from Gnulib to work with non-GCC compilers that
23551         support __attribute__.  The Autoconf way to do this is to test for
23552         each kind of attribute that we want support for, and selectively
23553         enable that in source code.
23554
23555         Fix this problem just for stdlib.h, by adding a test for the
23556         __noreturn__ attribute, and change stdlib.in.h to use that test
23557         when needed.  This technique can be easily generalized to the
23558         other *.in.h files and attributes, and a similar technique can be
23559         used for *.h and *.c files.  This patch is enough to solve the
23560         problem for Emacs + getloadavg, and I thought I'd publish it for
23561         feedback before undertaking further, similar fixes in other
23562         modules.
23563
23564         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23565         because it's not needed for stdlib.h.  It merely substitutes the
23566         value directly into stdlib.h.  We may well need to #define it, or
23567         similar symbols, for other modules, but it's nice to also have an
23568         option to not #define it for applications like Emacs that do not
23569         need it.
23570
23571         * lib/stdlib.in.h (__attribute__): Do not #define.
23572         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23573         be defined only if the _Exit module is also used.
23574         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23576         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23577         platforms.
23578         * modules/_Exit (Files): Add m4/attribute.m4.
23579         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23580         * m4/attribute.m4: New file.
23581
23582 2011-02-12  Bruno Haible  <bruno@clisp.org>
23583
23584         wcsrtombs: Work around bug on native Windows.
23585         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23586         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23587         instead of len.
23588         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23589
23590 2011-02-12  Bruno Haible  <bruno@clisp.org>
23591
23592         mbsrtowcs: Work around bug on native Windows.
23593         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23594         against mingw bug.
23595         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23596
23597 2011-02-12  Bruno Haible  <bruno@clisp.org>
23598
23599         Avoid setlocale bugs in tests.
23600         * modules/btowc (Dependencies): Add setlocale.
23601         * modules/c-strcase (Dependencies): Likewise.
23602         * modules/mbmemcasecmp (Dependencies): Likewise.
23603         * modules/mbmemcasecoll (Dependencies): Likewise.
23604         * modules/mbrtowc (Dependencies): Likewise.
23605         * modules/mbscasecmp (Dependencies): Likewise.
23606         * modules/mbscasestr (Dependencies): Likewise.
23607         * modules/mbschr (Dependencies): Likewise.
23608         * modules/mbscspn (Dependencies): Likewise.
23609         * modules/mbsinit (Dependencies): Likewise.
23610         * modules/mbsncasecmp (Dependencies): Likewise.
23611         * modules/mbsnrtowcs (Dependencies): Likewise.
23612         * modules/mbspbrk (Dependencies): Likewise.
23613         * modules/mbspcasecmp (Dependencies): Likewise.
23614         * modules/mbsrchr (Dependencies): Likewise.
23615         * modules/mbsrtowcs (Dependencies): Likewise.
23616         * modules/mbsspn (Dependencies): Likewise.
23617         * modules/mbsstr (Dependencies): Likewise.
23618         * modules/nl_langinfo (Dependencies): Likewise.
23619         * modules/quotearg (Dependencies): Likewise.
23620         * modules/unicase/locale-language (Dependencies): Likewise.
23621         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23622         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23623         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23624         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23625         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23626         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23627         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23628         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23629         * modules/vasnprintf-posix (Dependencies): Likewise.
23630         * modules/wcrtomb (Dependencies): Likewise.
23631         * modules/wcsnrtombs (Dependencies): Likewise.
23632         * modules/wcsrtombs (Dependencies): Likewise.
23633
23634 2011-02-12  Bruno Haible  <bruno@clisp.org>
23635
23636         setlocale: Workaround native Windows bug.
23637         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23638         succeeds but sets LC_CTYPE to "C", report a failure.
23639         * tests/test-setlocale2.sh: New file.
23640         * tests/test-setlocale2.c: New file.
23641         * modules/setlocale-tests (Files): Add the new files.
23642         (Makefile.am): Enable test-setlocale2.sh test.
23643         * doc/posix-functions/setlocale.texi: Mention workaround.
23644
23645 2011-02-11  Bruno Haible  <bruno@clisp.org>
23646
23647         Tests for module 'setlocale'.
23648         * modules/setlocale-tests: New file.
23649         * tests/test-setlocale1.sh: New file.
23650         * tests/test-setlocale1.c: New file.
23651
23652         New module 'setlocale'.
23653         * lib/locale.in.h (setlocale): New declaration.
23654         * lib/setlocale.c: New file, based on
23655         gettext/gettext-runtime/intl/setlocale.c.
23656         * m4/setlocale.m4: New file.
23657         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23658         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23659         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23660         REPLACE_SETLOCALE.
23661         * modules/setlocale: New file.
23662         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23663         * doc/posix-functions/setlocale.texi: Mention the new module.
23664
23665 2011-02-11  Bruno Haible  <bruno@clisp.org>
23666
23667         Prepare for locale dependent tests on mingw.
23668         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23669         because it has the wrong locale encoding.
23670         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23671         French_France.1252 instead of "fr".
23672         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23673         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23674         because it has the wrong locale encoding.
23675         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23676         native Windows, try Turkish_Turkey.65001.
23677         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23678         Chinese_China.54936.
23679
23680         Prepare for locale dependent tests on mingw.
23681         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23682         differently.
23683         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23684         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23685         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23686         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23687
23688 2011-02-11  Eric Blake  <eblake@redhat.com>
23689
23690         strptime: avoid compiler warnings
23691         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23692         compiler warnings about dead code.
23693         Reported by Daniel P. Berrange.
23694
23695 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23696
23697         doc: update users.txt
23698         * users.txt: Add rcs.
23699
23700 2011-02-10  John W. Eaton  <jwe@gnu.org>
23701
23702         doc: update users.txt
23703         * users.txt: Add octave.
23704
23705 2011-02-10  Jim Meyering  <meyering@redhat.com>
23706
23707         doc: update users.txt
23708         * users.txt: Add iwhd.
23709
23710 2011-02-09  Bruno Haible  <bruno@clisp.org>
23711
23712         gnulib-tool: Make copyright notice adjustment more robust.
23713         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23714         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23715         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23716         License".
23717         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23718
23719 2011-02-06  Bruno Haible  <bruno@clisp.org>
23720
23721         New module 'towctrans'.
23722         * modules/towctrans: New file.
23723         * lib/wctype.in.h (towctrans): New declaration.
23724         * lib/towctrans.c: New file.
23725         * lib/towctrans-impl.h: New file.
23726         * m4/towctrans.m4: New file.
23727         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23728         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23729         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23730         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23731         * doc/posix-functions/towctrans.texi: Mention the new module.
23732
23733 2011-02-06  Bruno Haible  <bruno@clisp.org>
23734
23735         New module 'wctrans'.
23736         * modules/wctrans: New file.
23737         * lib/wctype.in.h (wctrans): New declaration.
23738         * lib/wctrans.c: New file.
23739         * lib/wctrans-impl.h: New file.
23740         * m4/wctrans.m4: New file.
23741         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23742         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23743         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23744         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23745         * doc/posix-functions/wctrans.texi: Mention the new module.
23746
23747 2011-02-06  Bruno Haible  <bruno@clisp.org>
23748
23749         New module 'iswctype'.
23750         * modules/iswctype: New file.
23751         * lib/wctype.in.h (iswctype): New declaration.
23752         * lib/iswctype.c: New file.
23753         * lib/iswctype-impl.h: New file.
23754         * m4/iswctype.m4: New file.
23755         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23756         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23757         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23758         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23759         * doc/posix-functions/iswctype.texi: Mention the new module and the
23760         HP-UX 11.00 problem.
23761
23762 2011-02-06  Bruno Haible  <bruno@clisp.org>
23763
23764         New module 'wctype'.
23765         * modules/wctype: Change to represent the wctype() substitute.
23766         * lib/wctype.in.h (wctype): New declaration.
23767         * lib/wctype.c: New file.
23768         * lib/wctype-impl.h: New file.
23769         * m4/wctype.m4: New file.
23770         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23771         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23772         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23773         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23774         * doc/posix-functions/wctype.texi: Mention the new module and the
23775         HP-UX 11.00 problem.
23776
23777 2011-02-06  Bruno Haible  <bruno@clisp.org>
23778
23779         wctype-h: Ensure wctype_t and wctrans_t are defined.
23780         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23781         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23782         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23783         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23784         HAVE_WCTRANS_T.
23785         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23786
23787 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23788
23789         flock: fix license typo
23790
23791         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23792         omitted.
23793
23794 2011-02-08  Bruno Haible  <bruno@clisp.org>
23795
23796         Split large sed scripts, for HP-UX sed.
23797         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23798         to avoid HP-UX limit of 99 commands, in the near future.
23799         * modules/stdlib (Makefile.am): Likewise.
23800         * modules/unistd (Makefile.am): Likewise.
23801         * modules/wchar (Makefile.am): Likewise.
23802         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23803         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23804         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23805
23806 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23807             Bruno Haible  <bruno@clisp.org>
23808
23809         stdlib: improve random_r modularization
23810         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23811         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23812         you also need the random_r module to get this material right.
23813         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23814         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23815         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23816
23817 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23818
23819         stdlib: don't depend on stdint
23820         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23821         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23822         be independent of whether stdint.h is needed.
23823         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23824         here, instead of ...
23825         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23826         struct random_data should be using the random_r module, not just
23827         the stdlib module (which wouldn't make sense: what package needs
23828         just struct random_data without also needing random_r?).
23829         * modules/stdlib (Depends-on): Remove stdint.
23830
23831         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23832         See the thread rooted at
23833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23834         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23835         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23836         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23837         __VMS)); previously it was always included (via fcntl--.h).
23838         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23839         hand; this is good enough for load averages.  Also, do not use
23840         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23841         flags directly if available and don't bother otherwise.  (Packages
23842         that need the extra reliability should use the modules that define
23843         these flags on older platforms that lack them.)
23844         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23845         fcntl-safer.
23846
23847 2011-02-08  Jim Meyering  <meyering@redhat.com>
23848
23849         di-set.h, ino-map.h: add multiple-inclusion guard
23850         Technically, the guard is required only for ino-map.h, due to its
23851         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23852         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23853         * lib/ino-map.h: Likewise.
23854
23855 2011-02-06  Bruno Haible  <bruno@clisp.org>
23856
23857         iswblank: Ensure declaration on glibc systems.
23858         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23859         * modules/iswblank (Dependencies): Add 'extensions'.
23860         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23861
23862 2011-02-06  Bruno Haible  <bruno@clisp.org>
23863
23864         New module 'iswblank'.
23865         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23866         * modules/iswblank: New file.
23867         * modules/wctype-h (Files): Remove lib/iswblank.c.
23868         (Makefile.am): Substitute GNULIB_ISWBLANK.
23869         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23870         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23871         (gl_WCTYPE_H_DEFAULTS): New macro.
23872         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23873         * modules/iswblank-tests: New file.
23874         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23875         * tests/test-wctype-h.c (main): Remove iswblank tests.
23876         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23877         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23878         of 'wctype-h'.
23879         * NEWS: Mention the change.
23880         * modules/mbchar (Depends-on): Add iswblank.
23881
23882 2011-02-08  Bruno Haible  <bruno@clisp.org>
23883
23884         di-set tests: Refactor.
23885         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23886         unnecessary includes.
23887         (ASSERT): Remove macro.
23888         (main): Make C90 compliant by avoiding variable declaration after
23889         statement.
23890         * modules/di-set-tests (Files): Add tests/macros.h.
23891
23892 2011-02-08  Bruno Haible  <bruno@clisp.org>
23893
23894         ino-map tests: Refactor.
23895         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23896         unnecessary includes.
23897         (ASSERT): Remove macro.
23898         (main): Make C90 compliant by avoiding variable declaration after
23899         statement.
23900         * modules/ino-map-tests (Files): Add tests/macros.h.
23901
23902 2011-02-08  Jim Meyering  <meyering@redhat.com>
23903
23904         di-set: add "const" to a cast
23905         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23906         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23907
23908 2011-02-06  Bruno Haible  <bruno@clisp.org>
23909
23910         Rename module 'wctype' to 'wctype-h'.
23911         * modules/wctype-h: Renamed from modules/wctype.
23912         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23913         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23914         (Files, Depends-on, Makefile.am): Update.
23915         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23916         (Files, Makefile.am): Update.
23917         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23918         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23919         * doc/posix-headers/wctype.texi: Update.
23920         * doc/posix-functions/iswalnum.texi: Update.
23921         * doc/posix-functions/iswalpha.texi: Update.
23922         * doc/posix-functions/iswblank.texi: Update.
23923         * doc/posix-functions/iswcntrl.texi: Update.
23924         * doc/posix-functions/iswdigit.texi: Update.
23925         * doc/posix-functions/iswgraph.texi: Update.
23926         * doc/posix-functions/iswlower.texi: Update.
23927         * doc/posix-functions/iswprint.texi: Update.
23928         * doc/posix-functions/iswpunct.texi: Update.
23929         * doc/posix-functions/iswspace.texi: Update.
23930         * doc/posix-functions/iswupper.texi: Update.
23931         * doc/posix-functions/iswxdigit.texi: Update.
23932         * doc/posix-functions/towlower.texi: Update.
23933         * doc/posix-functions/towupper.texi: Update.
23934         * NEWS: Mention the change.
23935         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23936         * modules/mbchar (Dependencies): Likewise.
23937         * modules/mbswidth (Dependencies): Likewise.
23938         * modules/quotearg (Dependencies): Likewise.
23939         * modules/regex (Dependencies): Likewise.
23940         * modules/wcscasecmp (Dependencies): Likewise.
23941         * modules/wcsncasecmp (Dependencies): Likewise.
23942         * modules/wcwidth (Dependencies): Likewise.
23943
23944 2011-02-06  Bruno Haible  <bruno@clisp.org>
23945
23946         New module 'wcswidth'.
23947         * modules/wcswidth: New file.
23948         * lib/wchar.in.h (wcswidth): New declaration.
23949         * lib/wcswidth.c: New file.
23950         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23951         * m4/wcswidth.m4: New file.
23952         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23953         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23954         REPLACE_WCSWIDTH.
23955         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23956         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23957         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23958         * doc/posix-functions/wcswidth.texi: Mention the new module.
23959
23960 2011-02-06  Bruno Haible  <bruno@clisp.org>
23961
23962         New module 'wcstok'.
23963         * modules/wcstok: New file.
23964         * lib/wchar.in.h (wcstok): New declaration.
23965         * lib/wcstok.c: New file.
23966         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23967         * m4/wcstok.m4: New file.
23968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23971         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23972         * doc/posix-functions/wcstok.texi: Mention the new module.
23973
23974 2011-02-06  Bruno Haible  <bruno@clisp.org>
23975
23976         New module 'wcsstr'.
23977         * modules/wcsstr: New file.
23978         * lib/wchar.in.h (wcsstr): New declaration.
23979         * lib/wcsstr.c: New file.
23980         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23981         * m4/wcsstr.m4: New file.
23982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23985         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23986         * doc/posix-functions/wcsstr.texi: Mention the new module.
23987
23988 2011-02-06  Bruno Haible  <bruno@clisp.org>
23989
23990         New module 'wcspbrk'.
23991         * modules/wcspbrk: New file.
23992         * lib/wchar.in.h (wcspbrk): New declaration.
23993         * lib/wcspbrk.c: New file.
23994         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23995         * m4/wcspbrk.m4: New file.
23996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23999         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24000         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24001
24002 2011-02-06  Bruno Haible  <bruno@clisp.org>
24003
24004         New module 'wcsspn'.
24005         * modules/wcsspn: New file.
24006         * lib/wchar.in.h (wcsspn): New declaration.
24007         * lib/wcsspn.c: New file.
24008         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24009         * m4/wcsspn.m4: New file.
24010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24013         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24014         * doc/posix-functions/wcsspn.texi: Mention the new module.
24015
24016 2011-02-06  Bruno Haible  <bruno@clisp.org>
24017
24018         New module 'wcscspn'.
24019         * modules/wcscspn: New file.
24020         * lib/wchar.in.h (wcscspn): New declaration.
24021         * lib/wcscspn.c: New file.
24022         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24023         * m4/wcscspn.m4: New file.
24024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24026         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24027         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24028         * doc/posix-functions/wcscspn.texi: Mention the new module.
24029
24030 2011-02-06  Bruno Haible  <bruno@clisp.org>
24031
24032         New module 'wcsrchr'.
24033         * modules/wcsrchr: New file.
24034         * lib/wchar.in.h (wcsrchr): New declaration.
24035         * lib/wcsrchr.c: New file.
24036         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24037         * m4/wcsrchr.m4: New file.
24038         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24039         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24040         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24041         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24042         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24043
24044 2011-02-06  Bruno Haible  <bruno@clisp.org>
24045
24046         New module 'wcschr'.
24047         * modules/wcschr: New file.
24048         * lib/wchar.in.h (wcschr): New declaration.
24049         * lib/wcschr.c: New file.
24050         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24051         * m4/wcschr.m4: New file.
24052         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24053         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24054         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24055         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24056         * doc/posix-functions/wcschr.texi: Mention the new module.
24057
24058 2011-02-06  Bruno Haible  <bruno@clisp.org>
24059
24060         New module 'wcsdup'.
24061         * modules/wcsdup: New file.
24062         * lib/wchar.in.h (wcsdup): New declaration.
24063         * lib/wcsdup.c: New file.
24064         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24065         * m4/wcsdup.m4: New file.
24066         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24067         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24068         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24069         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24070         * doc/posix-functions/wcsdup.texi: Mention the new module.
24071
24072 2011-02-06  Bruno Haible  <bruno@clisp.org>
24073
24074         New module 'wcsxfrm'.
24075         * modules/wcsxfrm: New file.
24076         * lib/wchar.in.h (wcsxfrm): New declaration.
24077         * lib/wcsxfrm.c: New file.
24078         * lib/wcsxfrm-impl.h: New file.
24079         * m4/wcsxfrm.m4: New file.
24080         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24081         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24082         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24083         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24084         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24085
24086 2011-02-06  Bruno Haible  <bruno@clisp.org>
24087
24088         New module 'wcscoll'.
24089         * modules/wcscoll: New file.
24090         * lib/wchar.in.h (wcscoll): New declaration.
24091         * lib/wcscoll.c: New file.
24092         * lib/wcscoll-impl.h: New file.
24093         * m4/wcscoll.m4: New file.
24094         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24095         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24096         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24097         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24098         * doc/posix-functions/wcscoll.texi: Mention the new module.
24099
24100 2011-02-06  Bruno Haible  <bruno@clisp.org>
24101
24102         New module 'wcsncasecmp'.
24103         * modules/wcsncasecmp: New file.
24104         * lib/wchar.in.h (wcsncasecmp): New declaration.
24105         * lib/wcsncasecmp.c: New file.
24106         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24107         * m4/wcsncasecmp.m4: New file.
24108         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24109         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24110         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24111         HAVE_WCSNCASECMP.
24112         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24113         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24114
24115 2011-02-06  Bruno Haible  <bruno@clisp.org>
24116
24117         New module 'wcscasecmp'.
24118         * modules/wcscasecmp: New file.
24119         * lib/wchar.in.h (wcscasecmp): New declaration.
24120         * lib/wcscasecmp.c: New file.
24121         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24122         * m4/wcscasecmp.m4: New file.
24123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24125         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24126         HAVE_WCSCASECMP.
24127         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24128         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24129
24130 2011-02-05  Bruno Haible  <bruno@clisp.org>
24131
24132         New module 'wcsncmp'.
24133         * modules/wcsncmp: New file.
24134         * lib/wchar.in.h (wcsncmp): New declaration.
24135         * lib/wcsncmp.c: New file.
24136         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24137         * m4/wcsncmp.m4: New file.
24138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24141         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24142         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24143
24144 2011-02-05  Bruno Haible  <bruno@clisp.org>
24145
24146         New module 'wcscmp'.
24147         * modules/wcscmp: New file.
24148         * lib/wchar.in.h (wcscmp): New declaration.
24149         * lib/wcscmp.c: New file.
24150         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24151         * m4/wcscmp.m4: New file.
24152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24154         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24155         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24156         * doc/posix-functions/wcscmp.texi: Mention the new module.
24157
24158 2011-02-05  Bruno Haible  <bruno@clisp.org>
24159
24160         New module 'wcsncat'.
24161         * modules/wcsncat: New file.
24162         * lib/wchar.in.h (wcsncat): New declaration.
24163         * lib/wcsncat.c: New file.
24164         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24165         * m4/wcsncat.m4: New file.
24166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24168         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24169         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24170         * doc/posix-functions/wcsncat.texi: Mention the new module.
24171
24172 2011-02-05  Bruno Haible  <bruno@clisp.org>
24173
24174         New module 'wcscat'.
24175         * modules/wcscat: New file.
24176         * lib/wchar.in.h (wcscat): New declaration.
24177         * lib/wcscat.c: New file.
24178         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24179         * m4/wcscat.m4: New file.
24180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24182         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24183         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24184         * doc/posix-functions/wcscat.texi: Mention the new module.
24185
24186 2011-02-05  Bruno Haible  <bruno@clisp.org>
24187
24188         New module 'wcpncpy'.
24189         * modules/wcpncpy: New file.
24190         * lib/wchar.in.h (wcpncpy): New declaration.
24191         * lib/wcpncpy.c: New file.
24192         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24193         * m4/wcpncpy.m4: New file.
24194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24196         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24197         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24198         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24199
24200 2011-02-05  Bruno Haible  <bruno@clisp.org>
24201
24202         New module 'wcsncpy'.
24203         * modules/wcsncpy: New file.
24204         * lib/wchar.in.h (wcsncpy): New declaration.
24205         * lib/wcsncpy.c: New file.
24206         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24207         * m4/wcsncpy.m4: New file.
24208         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24209         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24210         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24211         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24212         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24213
24214 2011-02-05  Bruno Haible  <bruno@clisp.org>
24215
24216         New module 'wcpcpy'.
24217         * modules/wcpcpy: New file.
24218         * lib/wchar.in.h (wcpcpy): New declaration.
24219         * lib/wcpcpy.c: New file.
24220         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24221         * m4/wcpcpy.m4: New file.
24222         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24223         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24224         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24225         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24226         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24227
24228 2011-02-05  Bruno Haible  <bruno@clisp.org>
24229
24230         New module 'wcscpy'.
24231         * modules/wcscpy: New file.
24232         * lib/wchar.in.h (wcscpy): New declaration.
24233         * lib/wcscpy.c: New file.
24234         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24235         * m4/wcscpy.m4: New file.
24236         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24237         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24238         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24239         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24240         * doc/posix-functions/wcscpy.texi: Mention the new module.
24241
24242 2011-02-05  Bruno Haible  <bruno@clisp.org>
24243
24244         New module 'wcsnlen'.
24245         * modules/wcsnlen: New file.
24246         * lib/wchar.in.h (wcsnlen): New declaration.
24247         * lib/wcsnlen.c: New file.
24248         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24249         * m4/wcsnlen.m4: New file.
24250         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24251         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24252         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24253         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24254         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24255
24256 2011-02-05  Bruno Haible  <bruno@clisp.org>
24257
24258         New module 'wcslen'.
24259         * modules/wcslen: New file.
24260         * lib/wchar.in.h (wcslen): New declaration.
24261         * lib/wcslen.c: New file.
24262         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24263         * m4/wcslen.m4: New file.
24264         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24265         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24266         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24267         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24268         * doc/posix-functions/wcslen.texi: Mention the new module.
24269
24270 2011-02-05  Bruno Haible  <bruno@clisp.org>
24271
24272         New module 'wmemset'.
24273         * modules/wmemset: New file.
24274         * lib/wchar.in.h (wmemset): New declaration.
24275         * lib/wmemset.c: New file.
24276         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24277         * m4/wmemset.m4: New file.
24278         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24279         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24280         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24281         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24282         * doc/posix-functions/wmemset.texi: Mention the new module.
24283
24284 2011-02-05  Bruno Haible  <bruno@clisp.org>
24285
24286         New module 'wmemmove'.
24287         * modules/wmemmove: New file.
24288         * lib/wchar.in.h (wmemmove): New declaration.
24289         * lib/wmemmove.c: New file.
24290         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24291         * m4/wmemmove.m4: New file.
24292         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24293         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24294         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24295         HAVE_WMEMMOVE.
24296         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24297         * doc/posix-functions/wmemmove.texi: Mention the new module.
24298
24299 2011-02-05  Bruno Haible  <bruno@clisp.org>
24300
24301         New module 'wmemcpy'.
24302         * modules/wmemcpy: New file.
24303         * lib/wchar.in.h (wmemcpy): New declaration.
24304         * lib/wmemcpy.c: New file.
24305         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24306         * m4/wmemcpy.m4: New file.
24307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24309         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24310         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24311         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24312
24313 2011-02-05  Bruno Haible  <bruno@clisp.org>
24314
24315         New module 'wmemcmp'.
24316         * modules/wmemcmp: New file.
24317         * lib/wchar.in.h (wmemcmp): New declaration.
24318         * lib/wmemcmp.c: New file.
24319         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24320         * m4/wmemcmp.m4: New file.
24321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24323         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24324         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24325         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24326
24327 2011-02-07  Jim Meyering  <meyering@redhat.com>
24328
24329         di-set, ino-map: new modules, from coreutils
24330         * lib/di-set.c: New file.
24331         * lib/di-set.h: Likewise.
24332         * lib/ino-map.c: Likewise.
24333         * lib/ino-map.h: Likewise.
24334         * modules/di-set: Likewise.
24335         * modules/di-set-tests: Likewise.
24336         * modules/ino-map: Likewise.
24337         * modules/ino-map-tests: Likewise.
24338         * tests/test-di-set.c: Likewise.
24339         * tests/test-ino-map.c: Likewise.
24340
24341 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24342
24343         getloadavg: merge minor changes from Emacs
24344
24345         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24346         (getloadavg): Use memset, not bzero.
24347
24348         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24349         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24350         clash (bug#86).
24351
24352 2010-11-14  Bruno Haible  <bruno@clisp.org>
24353
24354         Allow multiple gnulib generated replacements to coexist.
24355         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24356         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24357         * lib/langinfo.in.h (nl_item): Likewise.
24358         * lib/math.in.h (_NaN, NAN): Likewise.
24359         * lib/netdb.in.h (struct addrinfo): Likewise.
24360         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24361         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24362         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24363         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24364         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24365         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24366         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24367         pthread_mutexattr_init, pthread_mutexattr_settype,
24368         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24369         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24370         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24371         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24372         * lib/sched.in.h (struct sched_param): Likewise.
24373         * lib/se-selinux.in.h (security_class_t, security_context_t,
24374         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24375         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24376         lsetfilecon, fsetfilecon, security_check_context,
24377         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24378         Likewise.
24379         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24380         Likewise.
24381         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24382         _gl_function_taking_int_returning_void_t, union sigval,
24383         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24384         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24385         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24386         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24387         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24388         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24389         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24390         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24391         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24392         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24393         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24394         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24395         socklen_t, rpl_fd_isset): Likewise.
24396         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24397         * lib/sys_time.in.h (struct timeval): Likewise.
24398         * lib/sys_times.in.h (struct tms): Likewise.
24399         * lib/sys_utsname.in.h (struct utsname):
24400         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24401         * lib/unistd.in.h (getpagesize): Likewise.
24402         * lib/wchar.in.h (mbstate_t): Likewise.
24403         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24404         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24405         towlower, towupper): Likewise.
24406         Reported by Sam Steingold <sds@gnu.org>.
24407
24408 2011-02-05  Eric Blake  <eblake@redhat.com>
24409
24410         unsetenv: work around Haiku issues
24411         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24412         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24413
24414 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24415
24416         libposix: avoid calling error() within libposix
24417         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24418         is defined.
24419
24420 2011-02-05  Eric Blake  <eblake@redhat.com>
24421
24422         strerror_r-posix: port to cygwin
24423         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24424         implementation.
24425         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24426         * tests/test-strerror_r.c (main): Fix test.
24427         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24428         issue.
24429
24430 2011-02-05  Bruno Haible  <bruno@clisp.org>
24431
24432         New module 'wmemchr'.
24433         * modules/wmemchr: New file.
24434         * lib/wchar.in.h (wmemchr): New declaration.
24435         * lib/wmemchr.c: New file.
24436         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24437         * m4/wmemchr.m4: New file.
24438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24440         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24441         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24442         * doc/posix-functions/wmemchr.texi: Mention the new module.
24443
24444 2011-02-04  Eric Blake  <eblake@redhat.com>
24445
24446         fdopendir: detect FreeBSD bug
24447         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24448         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24449
24450 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24451
24452         stdbool: do not define HAVE_STDBOOL_H
24453         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24454         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24455         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24456         imported from the latest Autoconf git.  It was motivated by Emacs,
24457         which uses gnulib but does not need HAVE_STDBOOL_H.
24458
24459 2011-02-04  Bruno Haible  <bruno@clisp.org>
24460
24461         wcsnrtombs: Prepare for new module wwcsnrtombs.
24462         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24463         * lib/wcsnrtombs.c: Include it.
24464         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24465
24466         wcsrtombs: Prepare for new module wwcsrtombs.
24467         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24468         * lib/wcsrtombs.c: Include it.
24469         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24470
24471         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24472         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24473         * lib/mbsnrtowcs.c: Include it.
24474         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24475
24476         mbsrtowcs: Prepare for new module mbsrtowwcs.
24477         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24478         * lib/mbsrtowcs.c: Include it.
24479         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24480
24481 2011-02-04  Bruno Haible  <bruno@clisp.org>
24482
24483         vasnprintf: Reduce use of malloc for small format strings.
24484         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24485         (arguments): Add room for the first 7 arguments.
24486         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24487         (char_directives, u8_directives, u16_directives, u32_directives): Add
24488         room for the first 7 directives.
24489         * lib/printf-parse.c: Include <string.h>.
24490         (PRINTF_PARSE): Change memory handling code so that it uses the first
24491         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24492         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24493         Reported by Pádraig Brady <P@draigbrady.com>.
24494
24495 2011-01-31  Eric Blake  <eblake@redhat.com>
24496
24497         dup2: work around Haiku bug
24498         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24499         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24500         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24501         * tests/test-dup2.c (main): Enhance test.
24502
24503 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24504
24505         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24506         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24507         declared by eglibc 2.11.2.
24508         * lib/stdio.in.h: Likewise.
24509
24510 2011-01-31  Eric Blake  <eblake@redhat.com>
24511
24512         ignore-value: add missing test dependency
24513         * tests/test-ignore-value.c: Revert previous change; stdio.h
24514         provides off_t.
24515         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24516
24517 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24518
24519         mktime: clarify long_int width checking
24520         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24521         the top level, to make it clearer that the assumption about
24522         long_int width is being checked.  See
24523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24524
24525 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24526
24527         ignore-value: Fix self-test.
24528         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24529
24530 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24531
24532         TYPE_MAXIMUM: avoid theoretically undefined behavior
24533         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24534         negative number, which the C Standard says has undefined behavior.
24535         In practice this is not a problem, but might as well do it by the book.
24536         Reported by Rich Felker and Eric Blake; see
24537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24538         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24539         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24541         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24542         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24543         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24544
24545         mktime: #undef mktime before #defining it
24546         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24547
24548         mktime: systematically normalize tm_isdst comparisons
24549         * lib/mktime.c (isdst_differ): New function.
24550         (__mktime_internal): Use it systematically for all isdst comparisons.
24551         This completes the fix for libc BZ #6723, and removes the need for
24552         normalizing tm_isdst.  See
24553         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24554         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24555
24556         mktime: fix some integer overflow issues and sidestep the rest
24557
24558         This was prompted by a bug report by Benjamin Lindner for MinGW
24559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24560         His bug is due to signed integer overflow (0 - INT_MIN), and I
24561         I scanned through mktime.c looking for other integer overflow
24562         problems, fixing all the bugs I found.
24563
24564         Although the C Standard says the resulting code is still not safe
24565         in the presence of integer overflow, in practice it should be good
24566         enough for all real-world two's-complement implementations, except
24567         for debugging environments that deliberately trap on integer
24568         overflow (e.g., gcc -ftrapv).
24569
24570         * lib/mktime.c (WRAPV): New macro.
24571         (SHR): Also check that long_int and time_t shift right in the
24572         usual way, before using the fast-but-unportable method.
24573         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24574         used.  The code already assumed two's complement, so there's
24575         no need to test for alternatives.  All uses removed.
24576         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24577         the C standard.  Problem reported by Rich Felker in
24578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24579         (twos_complement_arithmetic): Also check long_int and time_t.
24580         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24581         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24582         (__mktime_internal): Avoid integer overflow with unary subtraction
24583         in two instances where -1 - X is an adequate replacement for -X,
24584         since the calculations are approximate.
24585
24586 2011-01-29  Eric Blake  <eblake@redhat.com>
24587
24588         mktime: avoid infinite loop
24589         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24590         type; behavior is still undefined but portable to all known targets.
24591         Reported by Rich Felker.
24592
24593 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24594
24595         rename, unlink, same-inode: Relicense.
24596         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24597         * modules/unlink (License): Likewise.
24598         * modules/same-inode (License): Likewise.
24599
24600 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24601
24602         mktime: avoid problems on NetBSD 5 / i386
24603         * lib/mktime.c (long_int): New type.  This works around a problem
24604         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24605         but time_t is 64 bits, and where I expect the existing code is
24606         wrong in some cases.
24607         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24608         (ydhms_diff): Bring back the compile-time check for wide-enough
24609         year and yday.
24610
24611         mktime: fix misspelling in comment
24612         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24613         This merges all recent glibc changes of importance.
24614
24615 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24616
24617         move-if-change: cope with concurrent mv of identical file.
24618         * build-aux/move-if-change (CMPPROG): Accept environment
24619         variable as an override for `cmp'.
24620         (usage): Document CMPPROG.
24621         Adjust comparison to drop stdout.  Cope with failure of mv if
24622         the target file exists and is identical to the source, for
24623         parallel builds.
24624         Report from H.J. Lu against binutils in PR binutils/12283.
24625
24626 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24627
24628         * users.txt: Mention sharutils.
24629
24630 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24631
24632         * users.txt: Mention OATH Toolkit.
24633
24634 2011-01-27  Bruno Haible  <bruno@clisp.org>
24635
24636         Prepare for supporting FreeBSD 10.
24637         * build-aux/config.libpath: Remove handling of freebsd1*.
24638
24639 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24640
24641         Prepare for supporting FreeBSD 10.
24642         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24643         match FreeBSD 10.0.
24644
24645 2011-01-27  Bruno Haible  <bruno@clisp.org>
24646
24647         vma-iter, get-rusage-as: Add OpenBSD support.
24648         * modules/vma-iter (configure.ac): Test for mquery.
24649         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24650         * lib/vma-iter.c: Include <sys/mman.h>.
24651         (vma_iterate): Add an implementation based on mquery().
24652         * lib/resource-ext.h (get_rusage_as): Update comments.
24653         * lib/get-rusage-as.c: Likewise.
24654         * lib/get-rusage-data.c: Likewise.
24655
24656 2011-01-26  Karl Berry  <karl@gnu.org>
24657
24658         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24659         variables to make it easier to override the makeinfo program used.
24660
24661 2011-01-26  Eric Blake  <eblake@redhat.com>
24662
24663         fcntl: work around Haiku F_DUPFD bugs
24664         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24665         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24666         cloexec bit on duplication.
24667         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24668
24669 2011-01-26  Bruno Haible  <bruno@clisp.org>
24670
24671         Enable memory leak tests on AIX.
24672         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24673         * tests/test-fprintf-posix3.c (main): Likewise.
24674
24675 2011-01-26  Bruno Haible  <bruno@clisp.org>
24676
24677         Tests for module 'get-rusage-data'.
24678         * modules/get-rusage-data-tests: New file.
24679         * tests/test-get-rusage-data.c: New file.
24680
24681         New module 'get-rusage-data'.
24682         * lib/resource-ext.h (get_rusage_data): New declaration.
24683         * lib/get-rusage-data.c: New file.
24684         * modules/get-rusage-data: New file.
24685
24686 2011-01-25  Bruno Haible  <bruno@clisp.org>
24687
24688         get-rusage-as: Allow for easier testing.
24689         * lib/resource-ext.h (get_rusage_as): Add comment.
24690         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24691         (main): New function for interactive testing.
24692
24693 2011-01-25  Bruno Haible  <bruno@clisp.org>
24694
24695         vma-iter: Treat Haiku like BeOS.
24696         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24697         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24698
24699 2011-01-25  Eric Blake  <eblake@redhat.com>
24700
24701         c-stack: fix regression on cygwin when libsigsegv is present
24702         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24703
24704 2011-01-24  Bruno Haible  <bruno@clisp.org>
24705
24706         vma-iter: Avoid empty intervals.
24707         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24708         on an empty interval.
24709
24710 2011-01-24  Jim Meyering  <meyering@redhat.com>
24711
24712         u64: remove unnecessary #include
24713         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24714
24715 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24716
24717         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24718         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24719
24720 2011-01-23  Bruno Haible  <bruno@clisp.org>
24721
24722         New module 'vma-iter'.
24723         * lib/vma-iter.h: New file.
24724         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24725         * modules/vma-iter: New file.
24726         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24727         for get_rusage_as_via_iterator.
24728         (vma_iterate_callback): New function.
24729         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24730         * modules/get-rusage-as (Depends-on): Add vma-iter.
24731
24732 2011-01-23  Bruno Haible  <bruno@clisp.org>
24733
24734         uninorm: Tweak includes.
24735         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24736         Reported by Jim Meyering.
24737
24738 2011-01-23  Bruno Haible  <bruno@clisp.org>
24739
24740         get-rusage-as: Improve on NetBSD.
24741         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24742         /proc, like on FreeBSD.
24743
24744 2011-01-23  Jim Meyering  <meyering@redhat.com>
24745
24746         xreadlink.h: remove unnecessary #include
24747         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24748
24749         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24750         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24751
24752 2011-01-23  Bruno Haible  <bruno@clisp.org>
24753
24754         get-rusage-as: Fix bug.
24755         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24756         original limit when aborting the first loop.
24757
24758 2011-01-23  Bruno Haible  <bruno@clisp.org>
24759
24760         wctype: Ensure valid C syntax.
24761         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24762         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24763
24764 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24765
24766         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24767         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24768         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24769         as they are needed only for configure's test case.
24770         This removes two unnecessary symbols from config.h.
24771
24772         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24773         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24775         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24776         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24777         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24778         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24779         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24780         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24781         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24782         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24784         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24785         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24786         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24787         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24788         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24789         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24790
24791 2011-01-21  Eric Blake  <eblake@redhat.com>
24792
24793         maintainer-makefile: work with older git for submodule check
24794         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24795         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24796         Reported by Matthias Bolte.
24797
24798         bootstrap: minor portability fixes
24799         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24800         (usage): Omit leading capital and trailing . on help phrases, per
24801         GNU Coding Standards.
24802         (check_versions, top level): Prefix messages with script name.
24803
24804 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24805
24806         bootstrap: support --no-git option
24807         * build-aux/bootstrap: Add --no-git option, to be used when
24808         --gnulib-srcdir points to the exact desired checkout.
24809
24810 2011-01-21  Eric Blake  <eblake@redhat.com>
24811
24812         strerror_r-posix: work with glibc 2.13
24813         * lib/strerror_r.c (strerror_r): Fix return type.
24814
24815 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24816             Bruno Haible  <bruno@clisp.org>
24817
24818         uN_strstr: New unit tests.
24819         * modules/unistr/u8-strstr-tests: New file.
24820         * modules/unistr/u16-strstr-tests: New file.
24821         * modules/unistr/u32-strstr-tests: New file.
24822         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24823         * tests/unistr/test-u8-strstr.c: New file.
24824         * tests/unistr/test-u16-strstr.c: New file.
24825         * tests/unistr/test-u32-strstr.c: New file.
24826
24827 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24828             Bruno Haible  <bruno@clisp.org>
24829
24830         Make uN_strstr functions O(n) worst-case.
24831         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24832         16-bit and 32-bit unit cases, use the unibyte algorithm from
24833         lib/mbsstr.c.
24834         * lib/unistr/u8-strstr.c: Include <string.h>.
24835         (UNIT_IS_UINT8_T): New macro.
24836         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24837         (U_STRLEN, U_STRNLEN): New macros.
24838         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24839         (U_STRLEN, U_STRNLEN): New macros.
24840         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24841         (configure.ac): Update required libunistring version.
24842         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24843         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24844         malloca.
24845         (configure.ac): Update required libunistring version.
24846         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24847         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24848         malloca.
24849         (configure.ac): Update required libunistring version.
24850
24851 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24852             Bruno Haible  <bruno@clisp.org>
24853
24854         Prepare for faster uN_strstr functions.
24855         * lib/str-kmp.h: Support definable UNITs.
24856         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24857         needle_len argument.
24858         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24859         * lib/mbscasestr.c (mbscasestr): Likewise.
24860
24861 2011-01-21  Pádraig Brady <P@draigBrady.com>
24862
24863         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24864         * tests/test-malloca.c (main): Unset the environment variable
24865         to greatly speed up the test.
24866         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24867         * modules/malloca-tests: Depend on unsetenv.
24868
24869 2011-01-21  Pádraig Brady <P@draigBrady.com>
24870
24871         ignore-value: remove stdint dependency
24872         * lib/ignore-value.h: Remove <stdint.h>
24873         * modules/ignore-value: Remove stdint dependency.
24874
24875 2011-01-21  Jim Meyering  <meyering@redhat.com>
24876
24877         maint.mk: adjust variable name to be consistent with other gl_ vars
24878         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24879         to be lower case.
24880
24881 2011-01-20  Jim Meyering  <meyering@redhat.com>
24882
24883         maint.mk: make "check" depend on public-submodule-commit by default
24884         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24885
24886 2011-01-20  Bruno Haible  <bruno@clisp.org>
24887
24888         mbfile, mbiter: Complete change from 2008-12-21.
24889         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24890         * m4/mbiter.m4 (gl_MBITER): Likewise.
24891
24892 2011-01-20  Jim Meyering  <meyering@redhat.com>
24893
24894         init.sh: insert space between each function name and "()"
24895         * tests/init.sh: Make it a little easier to see that a function's
24896         name is "warn_", and not "warn" when looking at the first part of
24897         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24898
24899 2011-01-20  Jim Meyering  <meyering@redhat.com>
24900
24901         mountlist: clean up code formatting
24902         * lib/mountlist.c (read_file_system_list): Split a long line,
24903         correct bracing style, use NULL in place of "(struct statfs *)0",
24904         don't parenthesize return value, add spaces around "=" and after
24905         ";-in-for-stmt".
24906
24907 2011-01-14  Markus Duft <mduft@gentoo.org>
24908
24909         mountlist: add support for Interix
24910         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24911         Apply statvfs to all entries of /dev/fs.
24912         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24913         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24914
24915 2011-01-20  Jim Meyering  <meyering@redhat.com>
24916
24917         maint.mk: improve the public-submodule-commit rule
24918         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24919         to suppress printing of its commands... unless V=1.
24920         Add git submodule's --quiet option to suppress printing of e.g.,
24921         "Entering gnulib" output.
24922         "cd" into $(srcdir) before running git submodule.
24923
24924 2011-01-20  Bruno Haible  <bruno@clisp.org>
24925
24926         include_next: Fix bug introduced on 2011-01-18.
24927         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24928         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24929         ac_cv_header_... variable if the second argument is not 'check'.
24930         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24931         gl_NEXT_HEADERS_INTERNAL.
24932
24933 2011-01-20  Bruno Haible  <bruno@clisp.org>
24934
24935         Allow the user to avoid the GNULIB_TEST_* macros.
24936         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24937         Suggested by Paul Eggert.
24938
24939 2011-01-14  Jim Meyering  <meyering@redhat.com>
24940
24941         bootstrap: avoid failure when there is no .gitmodules file
24942         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24943         has been assigned to, even when its value is the empty string.
24944         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24945         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24946         Reported by John W. Eaton <jwe@gnu.org>.
24947
24948 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24949
24950         assume <ctype.h>, ..., <time.h> exist
24951         For years gnulib has been assuming the existence of the headers
24952         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24953         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24954         them, since they don't appear to be needed.
24955         * README (Portability guidelines): Document this.
24956         * lib/flock.c: Assume <fcntl.h> exists.
24957         * lib/regex_internal.h: Assume <locale.h> exists.
24958         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24959         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24960         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24961         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24962         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24963         * m4/regex.m4 (gl_REGEX): Likewise.
24964         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24965         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24966         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24967         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24968         * tests/test-argp.c: Likewise.
24969         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24970
24971         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24972         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24973         AA_APPLE_UNIVERSAL_BUILD.  See
24974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24975         * NEWS: Document this.
24976
24977 2011-01-19  Eric Blake  <eblake@redhat.com>
24978
24979         c-stack: assume stack overflow if SA_SIGINFO unsupported
24980         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24981         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24982         sigaction will work.
24983         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24984         behavior match Linux.
24985         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24986
24987         stdbool-tests: accommodate Haiku
24988         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24989
24990         binary-io: fix O_TEXT on Haiku
24991         * modules/binary-io (Depends-on): Add fcntl-h.
24992         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24993         than blindly undefining O_TEXT.
24994         Reported by Scott McCreary.
24995
24996 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24997
24998         include_next: do not check for standard headers like stddef.h
24999
25000         I found this problem when modifying Emacs to use gnulib.
25001         I noticed that it added HAVE_STDDEF_H to config.h, even though
25002         gnulib always assumes <stddef.h> exists as per README and this
25003         symbol is unnecessary.
25004         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25005         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25006         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25007         faster for headers like stddef.h that are known to exist.
25008         (gl_CHECK_NEXT_HEADERS): Use it.
25009         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25010         rather than gl_CHECK_NEXT_HEADERS.
25011         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25012         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25013
25014 2011-01-18  Eric Blake  <eblake@redhat.com>
25015
25016         ansi-c++-opt: skip C++ dependency style if C++ is unused
25017         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25018         tests when we know C++ compilation is not desired.
25019         Reported by Scott McCreary.
25020
25021 2011-01-18  Bruno Haible  <bruno@clisp.org>
25022
25023         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25024         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25025         (main): Perform test also when getrlimit and setrlimit don't exist or
25026         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25027         limiting the address space size using setrlimit, compare the address
25028         space size before and after the the test.
25029         * tests/test-dprintf-posix2.c: Likewise.
25030         * tests/test-fprintf-posix3.sh: Update skip messages.
25031         * tests/test-dprintf-posix2.sh: Likewise.
25032         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25033         * modules/dprintf-posix-tests (Depends-on): Likewise.
25034         Reported by Bruce Korb <bkorb@gnu.org> and
25035         Gary V. Vaughan <gary@gnu.org>.
25036
25037 2011-01-18  Bruno Haible  <bruno@clisp.org>
25038
25039         get-rusage-as: Improvement for Cygwin.
25040         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25041         areas that are merely reserved.
25042
25043 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25044
25045         strftime: remove dependencies on multibyte modules
25046
25047         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25048         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25049         only if __osf__ is defined, and I suspect OSF doesn't need these
25050         other modules.  If my guess is wrong, we'll need to come up with a
25051         variant of strftime that doesn't need the multibyte modules.
25052
25053         I discovered this problem when attempting modify Emacs to use the
25054         strftime module.  With the previous gnulib, this caused Emacs to
25055         need 31 new files, ranging from lib/config.charset to
25056         m4/wint_t.m4.  This was overkill and I expect would be offputting
25057         to the Emacs maintainers.  After this change, only 6 new files are
25058         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25059         stdbool.m4, and tm_gmtoff.m4.
25060
25061         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25062         Suggested by Bruno Haible in
25063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25064         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25065         and do not check for wchar.h.
25066         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25067         (Depends-on): Remove mbrlen, mbsinit, wchar.
25068
25069 2011-01-18  Bruno Haible  <bruno@clisp.org>
25070
25071         Tests for module 'get-rusage-as'.
25072         * modules/get-rusage-as-tests: New file.
25073         * tests/test-get-rusage-as.c: New file.
25074
25075         New module 'get-rusage-as'.
25076         * modules/get-rusage-as: New file.
25077         * lib/resource-ext.h: New file.
25078         * lib/get-rusage-as.c: New file.
25079
25080 2011-01-17  Eric Blake  <eblake@redhat.com>
25081
25082         sigaction: relax license from LGPLv3+ to LGPLv2+
25083         * modules/sigaction (License): Relax to LGPLv2+.
25084
25085 2011-01-14  Bruno Haible  <bruno@clisp.org>
25086
25087         filemode: Make function declarations usable in C++ mode.
25088         * lib/filemode.h: Enclose function declarations in extern "C" block.
25089         Reported by John W. Eaton <jwe@gnu.org>.
25090
25091 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25092
25093         save-cwd: no longer include "xgetcwd.h"
25094         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25095         This avoids a compilation failure in projects that use save-cwd
25096         without also using the xgetcwd module.
25097
25098 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25099
25100         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25101         This is so that a program like Emacs, which needs only dtoastr,
25102         does not have to bother with distributing and compiling ftoastr
25103         and ldtoastr.
25104         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25105         * modules/dtoastr, modules/ldtoastr: New files.
25106         * modules/ftoastr: Now works just for 'float'.
25107         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25108         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25109         dtoastr.c, ldtoastr.c.
25110
25111 2011-01-11  Jim Meyering  <meyering@redhat.com>
25112
25113         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25114         There is no need to work around the lack of the fchdir function,
25115         since gnulib can now provide a replacement when required.
25116         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25117         * modules/save-cwd (Depends-on): Add fchdir.
25118
25119 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25120
25121         openat, save-cwd: avoid xmalloc
25122
25123         This removes a direct (but undocumented) dependency of openat on
25124         xalloc, along with an indirect dependency via save-cwd.  It also
25125         removes a dependency of save-cwd on xgetcwd, and thereby
25126         indirectly on xalloc.  This change causes the openat substitute
25127         to fall back on save_cwd when memory is tight, and for save_cwd to
25128         fail instead of dying when memory is tight, but that's good enough.
25129         Problem and initial idea for fix reported by Bastien Roucaries in
25130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25131
25132         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25133         xalloc.h (for xmalloc).
25134         (openat_proc_name): Use malloc, not xmalloc.
25135         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25136         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25137
25138         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25139         This avoids heap allocation for file names whose lengths are in
25140         the range 512..1023, with the upper bound increasing to at most
25141         4031 depending on the platform's PATH_MAX.  (We do not want
25142         pathmax.h here as it might supply a non-constant PATH_MAX.)
25143         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25144         Perhaps they should be moved to malloca.h?
25145         (OPENAT_BUFFER_SIZE): Use them.
25146
25147 2011-01-10  Bruno Haible  <bruno@clisp.org>
25148
25149         doc: Update users.txt.
25150         * users.txt: Add recutils.
25151
25152 2011-01-09  Karl Berry  <karl@gnu.org>
25153
25154         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25155
25156         * doc/configmake.texi: New file.
25157         * doc/gnulib.texi: Include it.
25158         * modules/configmake: Move documentation from here.
25159
25160 2011-01-09  Bruno Haible  <bruno@clisp.org>
25161
25162         Update to Unicode 6.0.0.
25163         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25164         (get_lbp): Update for Unicode 6.0.0.
25165         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25166         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25167         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25168         U+11001, U+11038..U+11046. Remove U+06DE.
25169         (uc_width): Fix bounds of planes.
25170         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25171         lib/uniwidth/width.c.
25172         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25173         trailing whitespace removed.
25174         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25175         without comments, but with the original copyright notice.
25176         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25177         * lib/unicase/ignorable.h: Likewise.
25178         * lib/unicase/tocasefold.h: Likewise.
25179         * lib/unicase/tolower.h: Likewise.
25180         * lib/unicase/totitle.h: Likewise.
25181         * lib/unicase/toupper.h: Likewise.
25182         * lib/unictype/bidi_of.h: Likewise.
25183         * lib/unictype/blocks.h: Likewise.
25184         * lib/unictype/categ_C.h: Likewise.
25185         * lib/unictype/categ_Cn.h: Likewise.
25186         * lib/unictype/categ_L.h: Likewise.
25187         * lib/unictype/categ_Ll.h: Likewise.
25188         * lib/unictype/categ_Lm.h: Likewise.
25189         * lib/unictype/categ_Lo.h: Likewise.
25190         * lib/unictype/categ_Lu.h: Likewise.
25191         * lib/unictype/categ_M.h: Likewise.
25192         * lib/unictype/categ_Mc.h: Likewise.
25193         * lib/unictype/categ_Me.h: Likewise.
25194         * lib/unictype/categ_Mn.h: Likewise.
25195         * lib/unictype/categ_N.h: Likewise.
25196         * lib/unictype/categ_Nd.h: Likewise.
25197         * lib/unictype/categ_No.h: Likewise.
25198         * lib/unictype/categ_P.h: Likewise.
25199         * lib/unictype/categ_Po.h: Likewise.
25200         * lib/unictype/categ_S.h: Likewise.
25201         * lib/unictype/categ_Sc.h: Likewise.
25202         * lib/unictype/categ_Sk.h: Likewise.
25203         * lib/unictype/categ_Sm.h: Likewise.
25204         * lib/unictype/categ_So.h: Likewise.
25205         * lib/unictype/categ_of.h: Likewise.
25206         * lib/unictype/combining.h: Likewise.
25207         * lib/unictype/ctype_alnum.h: Likewise.
25208         * lib/unictype/ctype_alpha.h: Likewise.
25209         * lib/unictype/ctype_graph.h: Likewise.
25210         * lib/unictype/ctype_lower.h: Likewise.
25211         * lib/unictype/ctype_print.h: Likewise.
25212         * lib/unictype/ctype_punct.h: Likewise.
25213         * lib/unictype/ctype_upper.h: Likewise.
25214         * lib/unictype/decdigit.h: Likewise.
25215         * lib/unictype/digit.h: Likewise.
25216         * lib/unictype/numeric.h: Likewise.
25217         * lib/unictype/pr_alphabetic.h: Likewise.
25218         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25219         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25220         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25221         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25222         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25223         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25224         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25225         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25226         * lib/unictype/pr_case_ignorable.h: Likewise.
25227         * lib/unictype/pr_cased.h: Likewise.
25228         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25229         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25230         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25231         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25232         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25233         * lib/unictype/pr_combining.h: Likewise.
25234         * lib/unictype/pr_composite.h: Likewise.
25235         * lib/unictype/pr_currency_symbol.h: Likewise.
25236         * lib/unictype/pr_decimal_digit.h: Likewise.
25237         * lib/unictype/pr_deprecated.h: Likewise.
25238         * lib/unictype/pr_format_control.h: Likewise.
25239         * lib/unictype/pr_grapheme_base.h: Likewise.
25240         * lib/unictype/pr_grapheme_extend.h: Likewise.
25241         * lib/unictype/pr_grapheme_link.h: Likewise.
25242         * lib/unictype/pr_id_continue.h: Likewise.
25243         * lib/unictype/pr_id_start.h: Likewise.
25244         * lib/unictype/pr_ideographic.h: Likewise.
25245         * lib/unictype/pr_lowercase.h: Likewise.
25246         * lib/unictype/pr_math.h: Likewise.
25247         * lib/unictype/pr_numeric.h: Likewise.
25248         * lib/unictype/pr_other_alphabetic.h: Likewise.
25249         * lib/unictype/pr_other_id_continue.h: Likewise.
25250         * lib/unictype/pr_other_math.h: Likewise.
25251         * lib/unictype/pr_punctuation.h: Likewise.
25252         * lib/unictype/pr_sentence_terminal.h: Likewise.
25253         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25254         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25255         * lib/unictype/pr_unified_ideograph.h: Likewise.
25256         * lib/unictype/pr_uppercase.h: Likewise.
25257         * lib/unictype/pr_xid_continue.h: Likewise.
25258         * lib/unictype/pr_xid_start.h: Likewise.
25259         * lib/unictype/scripts.h: Likewise.
25260         * lib/unictype/scripts_byname.gperf: Likewise.
25261         * lib/unictype/sy_java_ident.h: Likewise.
25262         * lib/unigbrk/gbrkprop.h: Likewise.
25263         * lib/unilbrk/lbrkprop1.h: Likewise.
25264         * lib/unilbrk/lbrkprop2.h: Likewise.
25265         * lib/uninorm/decomposition-table2.h: Likewise.
25266         * lib/uniwbrk/wbrkprop.h: Likewise.
25267         * tests/unicase/test-cased.c: Likewise.
25268         * tests/unicase/test-ignorable.c: Likewise.
25269         * tests/unicase/test-uc_tolower.c: Likewise.
25270         * tests/unicase/test-uc_totitle.c: Likewise.
25271         * tests/unicase/test-uc_toupper.c: Likewise.
25272         * tests/unictype/test-categ_C.c: Likewise.
25273         * tests/unictype/test-categ_Cn.c: Likewise.
25274         * tests/unictype/test-categ_L.c: Likewise.
25275         * tests/unictype/test-categ_Ll.c: Likewise.
25276         * tests/unictype/test-categ_Lm.c: Likewise.
25277         * tests/unictype/test-categ_Lo.c: Likewise.
25278         * tests/unictype/test-categ_Lu.c: Likewise.
25279         * tests/unictype/test-categ_M.c: Likewise.
25280         * tests/unictype/test-categ_Mc.c: Likewise.
25281         * tests/unictype/test-categ_Me.c: Likewise.
25282         * tests/unictype/test-categ_Mn.c: Likewise.
25283         * tests/unictype/test-categ_N.c: Likewise.
25284         * tests/unictype/test-categ_Nd.c: Likewise.
25285         * tests/unictype/test-categ_No.c: Likewise.
25286         * tests/unictype/test-categ_P.c: Likewise.
25287         * tests/unictype/test-categ_Po.c: Likewise.
25288         * tests/unictype/test-categ_S.c: Likewise.
25289         * tests/unictype/test-categ_Sc.c: Likewise.
25290         * tests/unictype/test-categ_Sk.c: Likewise.
25291         * tests/unictype/test-categ_Sm.c: Likewise.
25292         * tests/unictype/test-categ_So.c: Likewise.
25293         * tests/unictype/test-ctype_alnum.c: Likewise.
25294         * tests/unictype/test-ctype_alpha.c: Likewise.
25295         * tests/unictype/test-ctype_graph.c: Likewise.
25296         * tests/unictype/test-ctype_lower.c: Likewise.
25297         * tests/unictype/test-ctype_print.c: Likewise.
25298         * tests/unictype/test-ctype_punct.c: Likewise.
25299         * tests/unictype/test-ctype_upper.c: Likewise.
25300         * tests/unictype/test-decdigit.h: Likewise.
25301         * tests/unictype/test-digit.h: Likewise.
25302         * tests/unictype/test-numeric.h: Likewise.
25303         * tests/unictype/test-pr_alphabetic.c: Likewise.
25304         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25305         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25306         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25307         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25308         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25309         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25310         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25311         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25312         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25313         * tests/unictype/test-pr_cased.c: Likewise.
25314         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25315         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25316         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25317         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25318         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25319         * tests/unictype/test-pr_combining.c: Likewise.
25320         * tests/unictype/test-pr_composite.c: Likewise.
25321         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25322         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25323         * tests/unictype/test-pr_deprecated.c: Likewise.
25324         * tests/unictype/test-pr_format_control.c: Likewise.
25325         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25326         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25327         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25328         * tests/unictype/test-pr_id_continue.c: Likewise.
25329         * tests/unictype/test-pr_id_start.c: Likewise.
25330         * tests/unictype/test-pr_ideographic.c: Likewise.
25331         * tests/unictype/test-pr_lowercase.c: Likewise.
25332         * tests/unictype/test-pr_math.c: Likewise.
25333         * tests/unictype/test-pr_numeric.c: Likewise.
25334         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25335         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25336         * tests/unictype/test-pr_other_math.c: Likewise.
25337         * tests/unictype/test-pr_punctuation.c: Likewise.
25338         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25339         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25340         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25341         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25342         * tests/unictype/test-pr_uppercase.c: Likewise.
25343         * tests/unictype/test-pr_xid_continue.c: Likewise.
25344         * tests/unictype/test-pr_xid_start.c: Likewise.
25345         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25346         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25347         changes.
25348         * lib/unictype/categ_Cc.h: Likewise.
25349         * lib/unictype/categ_Cf.h: Likewise.
25350         * lib/unictype/categ_Co.h: Likewise.
25351         * lib/unictype/categ_Cs.h: Likewise.
25352         * lib/unictype/categ_Lt.h: Likewise.
25353         * lib/unictype/categ_Nl.h: Likewise.
25354         * lib/unictype/categ_Pc.h: Likewise.
25355         * lib/unictype/categ_Pd.h: Likewise.
25356         * lib/unictype/categ_Pe.h: Likewise.
25357         * lib/unictype/categ_Pf.h: Likewise.
25358         * lib/unictype/categ_Pi.h: Likewise.
25359         * lib/unictype/categ_Ps.h: Likewise.
25360         * lib/unictype/categ_Z.h: Likewise.
25361         * lib/unictype/categ_Zl.h: Likewise.
25362         * lib/unictype/categ_Zp.h: Likewise.
25363         * lib/unictype/categ_Zs.h: Likewise.
25364         * lib/unictype/ctype_blank.h: Likewise.
25365         * lib/unictype/ctype_cntrl.h: Likewise.
25366         * lib/unictype/ctype_digit.h: Likewise.
25367         * lib/unictype/ctype_space.h: Likewise.
25368         * lib/unictype/ctype_xdigit.h: Likewise.
25369         * lib/unictype/mirror.h: Likewise.
25370         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25371         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25372         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25373         * lib/unictype/pr_bidi_control.h: Likewise.
25374         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25375         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25376         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25377         * lib/unictype/pr_bidi_pdf.h: Likewise.
25378         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25379         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25380         * lib/unictype/pr_dash.h: Likewise.
25381         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25382         * lib/unictype/pr_diacritic.h: Likewise.
25383         * lib/unictype/pr_extender.h: Likewise.
25384         * lib/unictype/pr_hex_digit.h: Likewise.
25385         * lib/unictype/pr_hyphen.h: Likewise.
25386         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25387         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25388         * lib/unictype/pr_ignorable_control.h: Likewise.
25389         * lib/unictype/pr_iso_control.h: Likewise.
25390         * lib/unictype/pr_join_control.h: Likewise.
25391         * lib/unictype/pr_left_of_pair.h: Likewise.
25392         * lib/unictype/pr_line_separator.h: Likewise.
25393         * lib/unictype/pr_logical_order_exception.h: Likewise.
25394         * lib/unictype/pr_non_break.h: Likewise.
25395         * lib/unictype/pr_not_a_character.h: Likewise.
25396         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25397         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25398         * lib/unictype/pr_other_id_start.h: Likewise.
25399         * lib/unictype/pr_other_lowercase.h: Likewise.
25400         * lib/unictype/pr_other_uppercase.h: Likewise.
25401         * lib/unictype/pr_paired_punctuation.h: Likewise.
25402         * lib/unictype/pr_paragraph_separator.h: Likewise.
25403         * lib/unictype/pr_pattern_syntax.h: Likewise.
25404         * lib/unictype/pr_pattern_white_space.h: Likewise.
25405         * lib/unictype/pr_private_use.h: Likewise.
25406         * lib/unictype/pr_quotation_mark.h: Likewise.
25407         * lib/unictype/pr_radical.h: Likewise.
25408         * lib/unictype/pr_soft_dotted.h: Likewise.
25409         * lib/unictype/pr_space.h: Likewise.
25410         * lib/unictype/pr_titlecase.h: Likewise.
25411         * lib/unictype/pr_variation_selector.h: Likewise.
25412         * lib/unictype/pr_white_space.h: Likewise.
25413         * lib/unictype/pr_zero_width.h: Likewise.
25414         * lib/unictype/sy_c_ident.h: Likewise.
25415         * lib/unictype/sy_c_whitespace.h: Likewise.
25416         * lib/unictype/sy_java_whitespace.h: Likewise.
25417         * lib/uninorm/composition-table.gperf: Likewise.
25418         * lib/uninorm/decomposition-table1.h: Likewise.
25419         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25420         LB8.
25421         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25422         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25423         * modules/unictype/*: Bump version number of expected libunistring
25424         version.
25425
25426 2011-01-09  Bruno Haible  <bruno@clisp.org>
25427
25428         Update to Unicode 5.2.0.
25429         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25430         trailing whitespace removed.
25431
25432 2011-01-09  Bruno Haible  <bruno@clisp.org>
25433
25434         New Unicode character properties, from Unicode 5.2.0.
25435         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25436         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25437         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25438         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25439         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25440         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25441         uc_is_property_cased, uc_is_property_case_ignorable,
25442         uc_is_property_changes_when_lowercased,
25443         uc_is_property_changes_when_uppercased,
25444         uc_is_property_changes_when_titlecased,
25445         uc_is_property_changes_when_casefolded,
25446         uc_is_property_changes_when_casemapped): New declarations.
25447         * lib/unictype/pr_byname.gperf: Add the new properties.
25448         * modules/unictype/property-byname (Depends-on): Depend on the new
25449         properties modules.
25450         * modules/unictype/property-all (Depends-on): Likewise.
25451         * MODULES.html.sh (Unicode string functions): Add
25452         unictype/property-case-ignorable, unictype/property-cased,
25453         unictype/property-changes-when-casefolded,
25454         unictype/property-changes-when-casemapped,
25455         unictype/property-changes-when-lowercased,
25456         unictype/property-changes-when-titlecased,
25457         unictype/property-changes-when-uppercased.
25458
25459         New module 'unictype/property-changes-when-casemapped'.
25460         * modules/unictype/property-changes-when-casemapped: New file.
25461         * lib/unictype/pr_changes_when_casemapped.c: New file.
25462         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25463         generated by gen-uni-tables.
25464         * modules/unictype/property-changes-when-casemapped-tests: New file.
25465         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25466         automatically generated by gen-uni-tables.
25467
25468         New module 'unictype/property-changes-when-casefolded'.
25469         * modules/unictype/property-changes-when-casefolded: New file.
25470         * lib/unictype/pr_changes_when_casefolded.c: New file.
25471         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25472         generated by gen-uni-tables.
25473         * modules/unictype/property-changes-when-casefolded-tests: New file.
25474         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25475         automatically generated by gen-uni-tables.
25476
25477         New module 'unictype/property-changes-when-titlecased'.
25478         * modules/unictype/property-changes-when-titlecased: New file.
25479         * lib/unictype/pr_changes_when_titlecased.c: New file.
25480         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25481         generated by gen-uni-tables.
25482         * modules/unictype/property-changes-when-titlecased-tests: New file.
25483         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25484         automatically generated by gen-uni-tables.
25485
25486         New module 'unictype/property-changes-when-uppercased'.
25487         * modules/unictype/property-changes-when-uppercased: New file.
25488         * lib/unictype/pr_changes_when_uppercased.c: New file.
25489         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25490         generated by gen-uni-tables.
25491         * modules/unictype/property-changes-when-uppercased-tests: New file.
25492         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25493         automatically generated by gen-uni-tables.
25494
25495         New module 'unictype/property-changes-when-lowercased'.
25496         * modules/unictype/property-changes-when-lowercased: New file.
25497         * lib/unictype/pr_changes_when_lowercased.c: New file.
25498         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25499         generated by gen-uni-tables.
25500         * modules/unictype/property-changes-when-lowercased-tests: New file.
25501         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25502         automatically generated by gen-uni-tables.
25503
25504         New module 'unictype/property-case-ignorable'.
25505         * modules/unictype/property-case-ignorable: New file.
25506         * lib/unictype/pr_case_ignorable.c: New file.
25507         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25508         by gen-uni-tables.
25509         * modules/unictype/property-case-ignorable-tests: New file.
25510         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25511         generated by gen-uni-tables.
25512
25513         New module 'unictype/property-cased'.
25514         * modules/unictype/property-cased: New file.
25515         * lib/unictype/pr_cased.c: New file.
25516         * lib/unictype/pr_cased.h: New file, automatically generated by
25517         gen-uni-tables.
25518         * modules/unictype/property-cased-tests: New file.
25519         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25520         gen-uni-tables.
25521
25522 2011-01-09  Bruno Haible  <bruno@clisp.org>
25523
25524         Update to Unicode 5.2.0.
25525         * lib/gen-uni-tables.c (output_predicate, output_category,
25526         output_combclass, output_bidi_category, output_decimal_digit_test,
25527         output_decimal_digit, output_digit_test, output_digit,
25528         output_numeric_test, output_numeric, output_mirror, output_scripts,
25529         output_scripts_byname, output_blocks, output_ident_category): Fix
25530         comment header.
25531         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25532         get_wbp.
25533         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25534         items.
25535         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25536         Changes_When_Lowercased, Changes_When_Uppercased,
25537         Changes_When_Titlecased, Changes_When_Casefolded,
25538         Changes_When_Casemapped.
25539         (is_property_alphabetic, is_property_default_ignorable_code_point):
25540         Update for Unicode 5.2.0.
25541         (is_property_cased, is_property_case_ignorable,
25542         is_property_changes_when_lowercased,
25543         is_property_changes_when_uppercased,
25544         is_property_changes_when_titlecased,
25545         is_property_changes_when_casefolded,
25546         is_property_changes_when_casemapped): New functions.
25547         (output_properties): Output also the properties cased, case_ignorable,
25548         changes_when_lowercased, changes_when_uppercased,
25549         changes_when_titlecased, changes_when_casefolded,
25550         changes_when_casemapped.
25551         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25552         Unicode TR#11 revision 17 -> 19.
25553         (LBP_CP): New enumeration value.
25554         (LBP_*): Adjust values accordingly.
25555         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25556         TR#14 revision 22 -> 24.
25557         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25558         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25559         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25560         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25561         is_WBP_MIDLETTER.
25562         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25563         the code1 and code2 of each composition rule.
25564         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25565         * lib/unicase/ignorable.h: Likewise.
25566         * lib/unicase/tocasefold.h: Likewise.
25567         * lib/unicase/tolower.h: Likewise.
25568         * lib/unicase/totitle.h: Likewise.
25569         * lib/unicase/toupper.h: Likewise.
25570         * lib/unictype/bidi_of.h: Likewise.
25571         * lib/unictype/blocks.h: Likewise.
25572         * lib/unictype/categ_C.h: Likewise.
25573         * lib/unictype/categ_Cf.h: Likewise.
25574         * lib/unictype/categ_Cn.h: Likewise.
25575         * lib/unictype/categ_L.h: Likewise.
25576         * lib/unictype/categ_Ll.h: Likewise.
25577         * lib/unictype/categ_Lm.h: Likewise.
25578         * lib/unictype/categ_Lo.h: Likewise.
25579         * lib/unictype/categ_Lu.h: Likewise.
25580         * lib/unictype/categ_M.h: Likewise.
25581         * lib/unictype/categ_Mc.h: Likewise.
25582         * lib/unictype/categ_Mn.h: Likewise.
25583         * lib/unictype/categ_N.h: Likewise.
25584         * lib/unictype/categ_Nd.h: Likewise.
25585         * lib/unictype/categ_Nl.h: Likewise.
25586         * lib/unictype/categ_No.h: Likewise.
25587         * lib/unictype/categ_P.h: Likewise.
25588         * lib/unictype/categ_Pd.h: Likewise.
25589         * lib/unictype/categ_Po.h: Likewise.
25590         * lib/unictype/categ_S.h: Likewise.
25591         * lib/unictype/categ_Sc.h: Likewise.
25592         * lib/unictype/categ_So.h: Likewise.
25593         * lib/unictype/categ_of.h: Likewise.
25594         * lib/unictype/combining.h: Likewise.
25595         * lib/unictype/ctype_alnum.h: Likewise.
25596         * lib/unictype/ctype_alpha.h: Likewise.
25597         * lib/unictype/ctype_graph.h: Likewise.
25598         * lib/unictype/ctype_lower.h: Likewise.
25599         * lib/unictype/ctype_print.h: Likewise.
25600         * lib/unictype/ctype_punct.h: Likewise.
25601         * lib/unictype/ctype_upper.h: Likewise.
25602         * lib/unictype/decdigit.h: Likewise.
25603         * lib/unictype/digit.h: Likewise.
25604         * lib/unictype/numeric.h: Likewise.
25605         * lib/unictype/pr_alphabetic.h: Likewise.
25606         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25607         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25608         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25609         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25610         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25611         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25612         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25613         * lib/unictype/pr_combining.h: Likewise.
25614         * lib/unictype/pr_composite.h: Likewise.
25615         * lib/unictype/pr_currency_symbol.h: Likewise.
25616         * lib/unictype/pr_dash.h: Likewise.
25617         * lib/unictype/pr_decimal_digit.h: Likewise.
25618         * lib/unictype/pr_deprecated.h: Likewise.
25619         * lib/unictype/pr_diacritic.h: Likewise.
25620         * lib/unictype/pr_extender.h: Likewise.
25621         * lib/unictype/pr_grapheme_base.h: Likewise.
25622         * lib/unictype/pr_grapheme_extend.h: Likewise.
25623         * lib/unictype/pr_grapheme_link.h: Likewise.
25624         * lib/unictype/pr_id_continue.h: Likewise.
25625         * lib/unictype/pr_id_start.h: Likewise.
25626         * lib/unictype/pr_ideographic.h: Likewise.
25627         * lib/unictype/pr_ignorable_control.h: Likewise.
25628         * lib/unictype/pr_logical_order_exception.h: Likewise.
25629         * lib/unictype/pr_lowercase.h: Likewise.
25630         * lib/unictype/pr_numeric.h: Likewise.
25631         * lib/unictype/pr_other_alphabetic.h: Likewise.
25632         * lib/unictype/pr_punctuation.h: Likewise.
25633         * lib/unictype/pr_sentence_terminal.h: Likewise.
25634         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25635         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25636         * lib/unictype/pr_unified_ideograph.h: Likewise.
25637         * lib/unictype/pr_uppercase.h: Likewise.
25638         * lib/unictype/pr_xid_continue.h: Likewise.
25639         * lib/unictype/pr_xid_start.h: Likewise.
25640         * lib/unictype/pr_zero_width.h: Likewise.
25641         * lib/unictype/scripts.h: Likewise.
25642         * lib/unictype/scripts_byname.gperf: Likewise.
25643         * lib/unictype/sy_java_ident.h: Likewise.
25644         * lib/unigbrk/gbrkprop.h: Likewise.
25645         * lib/unilbrk/lbrkprop1.h: Likewise.
25646         * lib/unilbrk/lbrkprop2.h: Likewise.
25647         * lib/unilbrk/lbrktables.h: Likewise.
25648         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25649         LBP_CP. Implement rule LB30.
25650         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25651         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25652         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25653         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25654         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25655         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25656         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25657         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25658         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25659         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25660         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25661         bits instead of 16 bits in the code1 and code2 of each composition
25662         rule.
25663         (uc_composition): Update for Unicode 5.2.0.
25664         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25665         * lib/uninorm/decomposition-table2.h: Likewise.
25666         * lib/uniwbrk/wbrkprop.h: Likewise.
25667         * tests/unicase/test-cased.c: Likewise.
25668         * tests/unicase/test-ignorable.c: Likewise.
25669         * tests/unicase/test-uc_tolower.c: Likewise.
25670         * tests/unicase/test-uc_totitle.c: Likewise.
25671         * tests/unicase/test-uc_toupper.c: Likewise.
25672         * tests/unictype/test-categ_C.c: Likewise.
25673         * tests/unictype/test-categ_Cf.c: Likewise.
25674         * tests/unictype/test-categ_Cn.c: Likewise.
25675         * tests/unictype/test-categ_L.c: Likewise.
25676         * tests/unictype/test-categ_Ll.c: Likewise.
25677         * tests/unictype/test-categ_Lm.c: Likewise.
25678         * tests/unictype/test-categ_Lo.c: Likewise.
25679         * tests/unictype/test-categ_Lu.c: Likewise.
25680         * tests/unictype/test-categ_M.c: Likewise.
25681         * tests/unictype/test-categ_Mc.c: Likewise.
25682         * tests/unictype/test-categ_Mn.c: Likewise.
25683         * tests/unictype/test-categ_N.c: Likewise.
25684         * tests/unictype/test-categ_Nd.c: Likewise.
25685         * tests/unictype/test-categ_Nl.c: Likewise.
25686         * tests/unictype/test-categ_No.c: Likewise.
25687         * tests/unictype/test-categ_P.c: Likewise.
25688         * tests/unictype/test-categ_Pd.c: Likewise.
25689         * tests/unictype/test-categ_Po.c: Likewise.
25690         * tests/unictype/test-categ_S.c: Likewise.
25691         * tests/unictype/test-categ_Sc.c: Likewise.
25692         * tests/unictype/test-categ_So.c: Likewise.
25693         * tests/unictype/test-ctype_alnum.c: Likewise.
25694         * tests/unictype/test-ctype_alpha.c: Likewise.
25695         * tests/unictype/test-ctype_graph.c: Likewise.
25696         * tests/unictype/test-ctype_lower.c: Likewise.
25697         * tests/unictype/test-ctype_print.c: Likewise.
25698         * tests/unictype/test-ctype_punct.c: Likewise.
25699         * tests/unictype/test-ctype_upper.c: Likewise.
25700         * tests/unictype/test-decdigit.h: Likewise.
25701         * tests/unictype/test-digit.h: Likewise.
25702         * tests/unictype/test-numeric.h: Likewise.
25703         * tests/unictype/test-pr_alphabetic.c: Likewise.
25704         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25705         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25706         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25707         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25708         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25709         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25710         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25711         * tests/unictype/test-pr_combining.c: Likewise.
25712         * tests/unictype/test-pr_composite.c: Likewise.
25713         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25714         * tests/unictype/test-pr_dash.c: Likewise.
25715         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25716         * tests/unictype/test-pr_deprecated.c: Likewise.
25717         * tests/unictype/test-pr_diacritic.c: Likewise.
25718         * tests/unictype/test-pr_extender.c: Likewise.
25719         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25720         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25721         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25722         * tests/unictype/test-pr_id_continue.c: Likewise.
25723         * tests/unictype/test-pr_id_start.c: Likewise.
25724         * tests/unictype/test-pr_ideographic.c: Likewise.
25725         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25726         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25727         * tests/unictype/test-pr_lowercase.c: Likewise.
25728         * tests/unictype/test-pr_numeric.c: Likewise.
25729         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25730         * tests/unictype/test-pr_punctuation.c: Likewise.
25731         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25732         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25733         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25734         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25735         * tests/unictype/test-pr_uppercase.c: Likewise.
25736         * tests/unictype/test-pr_xid_continue.c: Likewise.
25737         * tests/unictype/test-pr_xid_start.c: Likewise.
25738         * tests/unictype/test-pr_zero_width.c: Likewise.
25739         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25740         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25741         changed behaviour: line breaking is now disallowed between a letter
25742         or '=' and '('.
25743         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25744         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25745         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25746         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25747         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25748         lib/uniwidth/width.c.
25749         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25750         without comments, but with the original copyright notice.
25751         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25752         changes.
25753         * lib/unictype/categ_Cc.h: Likewise.
25754         * lib/unictype/categ_Co.h: Likewise.
25755         * lib/unictype/categ_Cs.h: Likewise.
25756         * lib/unictype/categ_Lt.h: Likewise.
25757         * lib/unictype/categ_Me.h: Likewise.
25758         * lib/unictype/categ_Pc.h: Likewise.
25759         * lib/unictype/categ_Pe.h: Likewise.
25760         * lib/unictype/categ_Pf.h: Likewise.
25761         * lib/unictype/categ_Pi.h: Likewise.
25762         * lib/unictype/categ_Ps.h: Likewise.
25763         * lib/unictype/categ_Sk.h: Likewise.
25764         * lib/unictype/categ_Sm.h: Likewise.
25765         * lib/unictype/categ_Z.h: Likewise.
25766         * lib/unictype/categ_Zl.h: Likewise.
25767         * lib/unictype/categ_Zp.h: Likewise.
25768         * lib/unictype/categ_Zs.h: Likewise.
25769         * lib/unictype/ctype_blank.h: Likewise.
25770         * lib/unictype/ctype_cntrl.h: Likewise.
25771         * lib/unictype/ctype_digit.h: Likewise.
25772         * lib/unictype/ctype_space.h: Likewise.
25773         * lib/unictype/ctype_xdigit.h: Likewise.
25774         * lib/unictype/mirror.h: Likewise.
25775         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25776         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25777         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25778         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25779         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25780         * lib/unictype/pr_bidi_control.h: Likewise.
25781         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25782         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25783         * lib/unictype/pr_bidi_pdf.h: Likewise.
25784         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25785         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25786         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25787         * lib/unictype/pr_format_control.h: Likewise.
25788         * lib/unictype/pr_hex_digit.h: Likewise.
25789         * lib/unictype/pr_hyphen.h: Likewise.
25790         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25791         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25792         * lib/unictype/pr_iso_control.h: Likewise.
25793         * lib/unictype/pr_join_control.h: Likewise.
25794         * lib/unictype/pr_left_of_pair.h: Likewise.
25795         * lib/unictype/pr_line_separator.h: Likewise.
25796         * lib/unictype/pr_math.h: Likewise.
25797         * lib/unictype/pr_non_break.h: Likewise.
25798         * lib/unictype/pr_not_a_character.h: Likewise.
25799         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25800         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25801         * lib/unictype/pr_other_id_continue.h: Likewise.
25802         * lib/unictype/pr_other_id_start.h: Likewise.
25803         * lib/unictype/pr_other_lowercase.h: Likewise.
25804         * lib/unictype/pr_other_math.h: Likewise.
25805         * lib/unictype/pr_other_uppercase.h: Likewise.
25806         * lib/unictype/pr_paired_punctuation.h: Likewise.
25807         * lib/unictype/pr_paragraph_separator.h: Likewise.
25808         * lib/unictype/pr_pattern_syntax.h: Likewise.
25809         * lib/unictype/pr_pattern_white_space.h: Likewise.
25810         * lib/unictype/pr_private_use.h: Likewise.
25811         * lib/unictype/pr_quotation_mark.h: Likewise.
25812         * lib/unictype/pr_radical.h: Likewise.
25813         * lib/unictype/pr_soft_dotted.h: Likewise.
25814         * lib/unictype/pr_space.h: Likewise.
25815         * lib/unictype/pr_titlecase.h: Likewise.
25816         * lib/unictype/pr_variation_selector.h: Likewise.
25817         * lib/unictype/pr_white_space.h: Likewise.
25818         * lib/unictype/sy_c_ident.h: Likewise.
25819         * lib/unictype/sy_c_whitespace.h: Likewise.
25820         * lib/unictype/sy_java_whitespace.h: Likewise.
25821         * modules/uni*/*: Bump version number of expected libunistring version.
25822         Reported by Simon Josefsson.
25823
25824 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25825
25826         useless-if-before-free: fix typo in --help and make the internal,
25827         automatic version date update process work once again.
25828         --help output contained a NUL character instead of the
25829         backslash-zero that was intended.  Also, the "must lie within
25830         the first 8 lines" line is on line 9, and hence not getting
25831         automatically updated.
25832         * build-aux/useless-if-before-free: Fix the former by adding a
25833         backslash, and the latter by condensing the three lines of what-it-does
25834         to a single line, leaving one line of slack for the future.
25835
25836 2011-01-09  Bruno Haible  <bruno@clisp.org>
25837
25838         uniwidth/width: Fix width of U+1D173..U+1D17A.
25839         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25840         symbolic_width, output_width_property_test): New functions.
25841         (main): Invoke output_nonspacing_property, output_width_property_test.
25842         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25843         U+1D173..U+1D17A.
25844         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25845         1.
25846         * modules/uniwidth/*: Bump version number of expected libunistring
25847         version.
25848         * modules/unilbrk/*: Likewise.
25849
25850 2011-01-08  Bruno Haible  <bruno@clisp.org>
25851
25852         uninorm tests: Preserve copyright of Unicode data file.
25853         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25854         Mention modifications.
25855
25856 2011-01-08  Bruno Haible  <bruno@clisp.org>
25857
25858         gen-uni-tables: Prepare for Unicode 5.2.0.
25859         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25860         (debug_output_lbp, output_lbp): Update.
25861
25862 2011-01-08  Bruno Haible  <bruno@clisp.org>
25863
25864         unilbrk: Clarify gen-uni-tables.c code.
25865         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25866         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25867         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25868
25869 2011-01-07  Bruno Haible  <bruno@clisp.org>
25870
25871         strtod: Restore errno when successfully parsing Infinity or NaN.
25872         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25873         restore the original errno.
25874
25875 2011-01-07  Bruno Haible  <bruno@clisp.org>
25876
25877         remove test: Avoid failure on HP-UX 11.
25878         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25879
25880 2011-01-07  Bruno Haible  <bruno@clisp.org>
25881
25882         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25883         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25884         error code.
25885
25886 2011-01-07  Pádraig Brady <P@draigBrady.com>
25887
25888         ignore-value: fixup comments, and add Eric Blake
25889         as an author since he rewrote the macros.
25890         * lib/ignore-value.h (ignore_value):  State that
25891         we now support aggregates.  Also specify exactly
25892         when the GCC warn_unused_result feature was added.
25893
25894 2011-01-06  Eric Blake  <eblake@redhat.com>
25895
25896         ignore-value: support aggregate types
25897         * lib/ignore-value.h (ignore_value): Provide separate gcc
25898         definition.
25899         * modules/ignore-value-tests: New test module.
25900         * tests/test-ignore-value.c: New test.
25901
25902         maint.mk: improve sc_prohibit_strcmp regex
25903         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25904         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25905         definition of STRNEQ.
25906
25907         signal: work around Haiku issue with SIGBUS
25908         * lib/siglist.h: Add comment.
25909         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25910         strsignal's favoring of SIGSEGV.
25911         * tests/test-signal.c (main): Avoid test failure.
25912         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25913         Reported by Scott McCreary.
25914
25915         maint.mk: add pre-release check to ensure submodule commits are public
25916         * top/maint.mk (public-submodule-commit): New rule.
25917         (submodule-checks): New variable.
25918         (alpha beta stable): Depend on the variable.
25919
25920 2011-01-05  Pádraig Brady <P@draigBrady.com>
25921         and Jim Meyering  <meyering@redhat.com>
25922
25923         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25924         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25925         (ATTRIBUTE_DEPRECATED): Define.
25926         (_ignore_case): New function.
25927         (ignore_value): New macro, to replace the old function.
25928         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25929         * modules/ignore-value (Depends-on): Add stdint.
25930
25931 2011-01-04  Eric Blake  <eblake@redhat.com>
25932
25933         doc: regenerate INSTALL
25934         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25935         @firstparagraphindent support, now that autoconf dropped it.
25936         (INSTALL_PRELUDE): Reinstate old macro.
25937         * doc/install.texi: Resync from autoconf.
25938         * doc/INSTALL: Reflect recent autoconf update.
25939         * doc/INSTALL.ISO: Likewise.
25940         * doc/INSTALL.UTF-8: Likewise.
25941         Reported by Karl Berry.
25942
25943 2011-01-04  Bruce Korb  <address@hidden>
25944
25945         git-version-gen: avoid a sub-shell
25946         * build-aux/git-version-gen: Redirect stderr in `...` via
25947         "exec 2>...", rather than via an added sub-shell.
25948
25949 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25950
25951         git-version-gen: use (...) rather than sh -c '...'
25952         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25953         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25954
25955 2011-01-03  Jim Meyering  <meyering@redhat.com>
25956
25957         git-version-gen: convert leading TABs to spaces
25958         * build-aux/git-version-gen: Expand leading TABs.
25959
25960         git-version-gen: handle failed "git rev-list"
25961         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25962         from git and proceeding as if it had succeeded but printed no SHA1
25963         checksums, suppress the diagnostic and handle the failure.
25964         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25965
25966         git-version-gen: include command name in one more diagnostic
25967         * build-aux/git-version-gen: When the required .tarball-version file
25968         was missing or unreadable, you might see the diagnostic from "cat",
25969         but no trace of the name of the invoking script.  Now, you still see
25970         the diagnostic from cat, but also get one from "git-version-gen: ".
25971         Inspired by a patch from Bruce Korb.
25972
25973         update-copyright: adjust test to match changed code
25974         * tests/test-update-copyright.sh: Change test's expected output
25975         to match new actual output.
25976
25977 2011-01-02  Bruno Haible  <bruno@clisp.org>
25978
25979         getlogin_r: Avoid test failure on HP-UX 11.
25980         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25981         ERANGE when the second argument is zero.
25982         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25983         portability problem.
25984
25985 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25986
25987         * build-aux/update-copyright: doc Simon's changes
25988
25989 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25990
25991         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25992         environment variable.
25993
25994 2011-01-02  Bruno Haible  <bruno@clisp.org>
25995
25996         unigbrk: Avoid gcc warnings.
25997         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25998         unused variable.
25999         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26000         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26001         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26002         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26003         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26004         Change type of first argument to 'const char *'.
26005         (main): Remove unused variable.
26006         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26007         type of first argument to 'const char *'.
26008         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26009         Likewise.
26010         (main): Change type of variable 's'.
26011         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26012         to 'int'.
26013
26014 2011-01-02  Bruno Haible  <bruno@clisp.org>
26015
26016         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26017         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26018         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26019         bug.
26020         * lib/pwrite.c: Undo 2010-12-31 patch.
26021         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26022
26023 2011-01-02  Bruno Haible  <bruno@clisp.org>
26024
26025         pread: Fix test whether it works.
26026         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26027
26028 2011-01-02  Bruno Haible  <bruno@clisp.org>
26029
26030         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26031         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26032         ends in "6". Don't require a specific month name. Try also the locale
26033         names found on HP-UX 11 and Solaris 7.
26034
26035 2011-01-02  Bruno Haible  <bruno@clisp.org>
26036
26037         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26038         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26039         C linkage.
26040         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26041
26042 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26043
26044         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26045         for consistency, since the "cluster" term is not used elsewhere.
26046         * lib/unigbrk.in.h: Update name.
26047         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26048         * lib/unigbrk/u16-grapheme-next.c: Update name.
26049         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26050         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26051         * lib/unigbrk/u32-grapheme-next.c: Update name.
26052         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26053         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26054         * lib/unigbrk/u8-grapheme-next.c: Update name.
26055         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26056         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26057         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26058         Suggested by Bruno Haible.
26059
26060 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26061
26062         Remove module 'u8-grapheme-len' as too redundant with
26063         'u8-grapheme-next'.
26064         * modules/unigbrk/u8-grapheme-len: Delete file.
26065         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26066         * lib/unigbrk.in.h: Remove prototype for deleted function.
26067         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26068         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26069
26070         Remove module 'u16-grapheme-len' as too redundant with
26071         'u16-grapheme-next'.
26072         * modules/unigbrk/u16-grapheme-len: Delete file.
26073         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26074         * lib/unigbrk.in.h: Remove prototype for deleted function.
26075         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26076         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26077
26078         Remove module 'u32-grapheme-len' as too redundant with
26079         'u32-grapheme-next'.
26080         * modules/unigbrk/u32-grapheme-len: Delete file.
26081         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26082         * lib/unigbrk.in.h: Remove prototype for deleted function.
26083         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26084         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26085
26086         Suggested by Bruno Haible.
26087
26088 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26089
26090         * unigbrk.in.h: Fix typo: "ben" => "been".
26091         Reported by Bruno Haible.
26092
26093 2011-01-01  Jim Meyering  <meyering@redhat.com>
26094
26095         maint: update almost all copyright ranges to include 2011
26096         Run the new "make update-copyright" rule.
26097
26098 2011-01-01  Jim Meyering  <meyering@redhat.com>
26099
26100         maint: update-copyright: exempt doc/INSTALL*
26101         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26102         since they are generated.  Suggested by Bruno Haible.
26103
26104 2011-01-01  Jim Meyering  <meyering@redhat.com>
26105
26106         maint: refine the update-copyright rule
26107         * Makefile (update-copyright): Also exclude any file that includes
26108         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26109         code that merely generates the comment.
26110
26111 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26112
26113         New module 'u8-grapheme-len'.
26114         * modules/unigbrk/u8-grapheme-len: New file.
26115         * modules/unigbrk/u8-grapheme-len-tests: New file.
26116         * lib/unigbrk.in.h: Add prototype for new function.
26117         * lib/unigbrk/u8-grapheme-len.c: New file.
26118         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26119
26120         New module 'u16-grapheme-len'.
26121         * modules/unigbrk/u16-grapheme-len: New file.
26122         * modules/unigbrk/u16-grapheme-len-tests: New file.
26123         * lib/unigbrk.in.h: Add prototype for new function.
26124         * lib/unigbrk/u16-grapheme-len.c: New file.
26125         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26126
26127         New module 'u32-grapheme-len'.
26128         * modules/unigbrk/u32-grapheme-len: New file.
26129         * modules/unigbrk/u32-grapheme-len-tests: New file.
26130         * lib/unigbrk.in.h: Add prototype for new function.
26131         * lib/unigbrk/u32-grapheme-len.c: New file.
26132         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26133
26134         New module 'u8-grapheme-next'.
26135         * modules/unigbrk/u8-grapheme-next: New file.
26136         * modules/unigbrk/u8-grapheme-next-tests: New file.
26137         * lib/unigbrk.in.h: Add prototype for new function.
26138         * lib/unigbrk/u8-grapheme-next.c: New file.
26139         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26140
26141         New module 'u16-grapheme-next'.
26142         * modules/unigbrk/u16-grapheme-next: New file.
26143         * modules/unigbrk/u16-grapheme-next-tests: New file.
26144         * lib/unigbrk.in.h: Add prototype for new function.
26145         * lib/unigbrk/u16-grapheme-next.c: New file.
26146         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26147
26148         New module 'u32-grapheme-next'.
26149         * modules/unigbrk/u32-grapheme-next: New file.
26150         * modules/unigbrk/u32-grapheme-next-tests: New file.
26151         * lib/unigbrk.in.h: Add prototype for new function.
26152         * lib/unigbrk/u32-grapheme-next.c: New file.
26153         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26154
26155         New module 'u8-grapheme-prev'.
26156         * modules/unigbrk/u8-grapheme-prev: New file.
26157         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26158         * lib/unigbrk.in.h: Add prototype for new function.
26159         * lib/unigbrk/u8-grapheme-prev.c: New file.
26160         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26161
26162         New module 'u16-grapheme-prev'.
26163         * modules/unigbrk/u16-grapheme-prev: New file.
26164         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26165         * lib/unigbrk.in.h: Add prototype for new function.
26166         * lib/unigbrk/u16-grapheme-prev.c: New file.
26167         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26168
26169         New module 'u32-grapheme-prev'.
26170         * modules/unigbrk/u32-grapheme-prev: New file.
26171         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26172         * lib/unigbrk.in.h: Add prototype for new function.
26173         * lib/unigbrk/u32-grapheme-prev.c: New file.
26174         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26175
26176         New module 'u8-grapheme-breaks'.
26177         * modules/unigbrk/u8-grapheme-breaks: New file.
26178         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26179         * lib/unigbrk.in.h: Add prototype for new function.
26180         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26181         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26182
26183         New module 'u16-grapheme-breaks'.
26184         * modules/unigbrk/u16-grapheme-breaks: New file.
26185         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26186         * lib/unigbrk.in.h: Add prototype for new function.
26187         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26188         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26189
26190         New module 'u32-grapheme-breaks'.
26191         * modules/unigbrk/u32-grapheme-breaks: New file.
26192         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26193         * lib/unigbrk.in.h: Add prototype for new function.
26194         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26195         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26196
26197         New module 'ulc-grapheme-breaks'.
26198         * modules/unigbrk/ulc-grapheme-breaks: New file.
26199         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26200         * m4/locale-ar.m4: New file.
26201         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26202         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26203         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26204
26205 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26206
26207         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26208         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26209         modified how this file was generated before I initially submitted
26210         the module, but failed to regenerate it.  This meant that several
26211         of the level2 entries were wrong.
26212         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26213         Remove the division-by-2 that is folded into the table now that
26214         gbrkprop.h has been regenerated properly.  Now -1 entries are
26215         handled correctly.
26216
26217         New module 'unigbrk/uc-gbrk-prop-tests'.
26218         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26219         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26220         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26221         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26222
26223 2011-01-01  Bruno Haible  <bruno@clisp.org>
26224
26225         Avoid use of hexadecimal escapes.
26226         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26227         instead of hexadecimal escapes.
26228
26229 2011-01-01  Jim Meyering  <meyering@redhat.com>
26230
26231         maint: new rule to update copyright year ranges
26232         * Makefile (update-copyright): New rule.
26233
26234         maint: indent with TABs in Makefile
26235         * Makefile: Expand leading sequences of spaces to TABs
26236
26237         version-etc: update the copyright year it reports
26238         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26239
26240 2010-12-31  Bruno Haible  <bruno@clisp.org>
26241
26242         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26243         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26244         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26245         zero.
26246
26247 2010-12-31  Bruno Haible  <bruno@clisp.org>
26248
26249         pwrite: Work around HP-UX 11.11 bug.
26250         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26251         works and set REPLACE_PWRITE if not.
26252         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26253         function.
26254         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26255
26256 2010-12-31  Bruno Haible  <bruno@clisp.org>
26257
26258         pread: Work around HP-UX 11 bugs.
26259         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26260         and set REPLACE_PREAD if not.
26261         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26262
26263 2010-12-31  Eric Blake  <eblake@redhat.com>
26264
26265         nl_langinfo: fix YESEXPR on Irix 6.5
26266         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26267         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26268         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26269         it.
26270
26271 2010-12-31  Bruno Haible  <bruno@clisp.org>
26272
26273         iconv: Document HP-UX 11 bug.
26274         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26275
26276 2010-12-31  Bruno Haible  <bruno@clisp.org>
26277
26278         ldexpl: Fix link error on HP-UX 11.
26279         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26280         LDEXPL_LIBM, using $ISNANL_LIBM.
26281
26282 2010-12-31  Eric Blake  <eblake@redhat.com>
26283
26284         ftello: avoid compilation failure with SunStudio c89
26285         * lib/ftello.c (ftello): Use lseek, not llseek.
26286
26287         tests: avoid failing coreutils tests on cygwin
26288         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26289         (create_exe_shims_): Return 0 when skipping.
26290
26291 2010-12-31  Bruno Haible  <bruno@clisp.org>
26292
26293         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26294         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26295
26296 2010-12-31  Bruno Haible  <bruno@clisp.org>
26297
26298         waitpid: Fix link error in C++ mode.
26299         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26300
26301 2010-12-31  Bruno Haible  <bruno@clisp.org>
26302
26303         isnan: Use GCC built-ins when possible.
26304         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26305         __builtin_isnan.
26306         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26307         (isnan): Define using GCC built-ins for GCC >= 4.0.
26308
26309 2010-12-31  Bruno Haible  <bruno@clisp.org>
26310
26311         isnand: Fix mistake.
26312         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26313         __builtin_isnand.
26314
26315 2010-12-31  Bruno Haible  <bruno@clisp.org>
26316
26317         open: Avoid C++ error on HP-UX 11.
26318         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26319
26320 2010-12-31  Bruno Haible  <bruno@clisp.org>
26321
26322         time_r: Add missing declarations on HP-UX 11.
26323         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26324         instead of HAVE_LOCALTIME_R.
26325         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26326         HAVE_LOCALTIME_R always.
26327         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26328         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26329         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26330         HAVE_LOCALTIME_R.
26331         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26332         * doc/posix-functions/localtime_r.texi: Likewise.
26333
26334 2010-12-29  Eric Blake  <eblake@redhat.com>
26335
26336         mountlist: tweak previous commit
26337         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26338         Reported by Paul Eggert.
26339
26340         mountlist: fix local drive detection on cygwin
26341         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26342         that works for cygwin.
26343
26344 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26345
26346         ftoastr, snprintf: ftoastr + snprintf module
26347         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26348         since the snprintf module now should be good enough here.
26349         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26350         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26351         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26352         GNULIB_SNPRINTF only for the test directory, and the latter
26353         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26354         seems to suffice by itself.
26355
26356 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26357
26358         alloca: one step towards thread-safety
26359         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26360         need for a static variable.  All callers changed.  This does not
26361         make the alloca replacement thread-safe, but it's one step.
26362
26363         tests: minor indenting change
26364         * tests/init.sh: Sync from coreutils housekeeping patch
26365         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26366         to keep lines within 80 columns.
26367
26368 2010-12-28  Jim Meyering  <meyering@redhat.com>
26369
26370         regex: don't infloop on persistent failing calloc
26371         * lib/regexec.c (build_trtable): Return failure indication upon
26372         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26373         In glibc, this was fixed for version 2.13:
26374         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26375
26376 2010-12-28  Bruno Haible  <bruno@clisp.org>
26377             Paul Eggert <eggert@cs.ucla.edu>
26378
26379         linkat: Make implementation robust against system behaviour variations.
26380         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26381         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26382         way, and to -2 if it needs a generic runtime test.
26383         * lib/linkat.c (solaris_optimized_link_immediate,
26384         solaris_optimized_link_follow): New functions.
26385         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26386         (check_same_link): Use it.
26387
26388 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26389
26390         New module 'unigbrk/base'.
26391         * modules/unigbrk/base: New file.
26392         * lib/unigbrk.in.h: New file.
26393
26394         New module 'unigbrk/uc-gbrk-prop'.
26395         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26396         * modules/unigbrk/uc-gbrk-prop: New file.
26397         * lib/unigbrk/gbrkprop.h: New file.
26398         * lib/unigbrk/uc-gbrk-prop.c: New file.
26399
26400         New module 'unigbrk/uc-is-grapheme-break'.
26401         * modules/unigbrk/uc-is-grapheme-break: New file.
26402         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26403         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26404         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26405         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26406         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26407
26408         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26409
26410 2010-12-27  Bruno Haible  <bruno@clisp.org>
26411
26412         linkat test: Avoid failure on Solaris 11 2010-11.
26413         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26414
26415 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26416
26417         utimens: work around glibc rounding bug on more platforms
26418         * lib/utimens.c (fdutimens): Work around rounding bug even if
26419         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26420         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26421
26422 2010-12-27  Bruno Haible  <bruno@clisp.org>
26423
26424         select tests: Improve comments.
26425         * tests/test-select.c (do_select): Add comments.
26426
26427 2010-12-27  Bruno Haible  <bruno@clisp.org>
26428
26429         select tests: Safer way of handling timeout.
26430         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26431         at every invocation.
26432
26433 2010-12-27  Bruno Haible  <bruno@clisp.org>
26434
26435         select tests: Use 'bool' where appropriate.
26436         * tests/test-select.c (connect_to_socket): Change argument type to
26437         'bool'.
26438
26439 2010-12-27  Bruno Haible  <bruno@clisp.org>
26440
26441         select tests: Use existing modules.
26442         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26443         (configure.ac): Don't test for unistd.h.
26444         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26445         declared in <unistd.h>.
26446
26447 2010-12-27  Bruno Haible  <bruno@clisp.org>
26448
26449         mbrtowc: Work around a Solaris 7 bug.
26450         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26451         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26452         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26453         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26454         MBRTOWC_NULL_ARG1_BUG.
26455         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26456         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26457         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26458         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26459
26460 2010-12-27  Jim Meyering  <meyering@redhat.com>
26461
26462         read-file.c: tweak syntax
26463         * lib/read-file.c (fread_file): Remove space after "*" in function
26464         definitions.
26465
26466 2010-12-27  Bruno Haible  <bruno@clisp.org>
26467
26468         times test: Avoid gcc warnings on OSF/1.
26469         * tests/test-times.c (main): Cast printf arguments from clock_t to
26470         'long int'.
26471
26472 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26473
26474         utimens: work around glibc rounding bug on older Linux kernels
26475         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26476         on Linux with a glibc whose utimes might not work, then work
26477         around a longstanding glibc bug involving rounding rather than
26478         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26479         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26480
26481 2010-12-26  Bruno Haible  <bruno@clisp.org>
26482
26483         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26484         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26485         _GL_CXXALIAS_SYS.
26486         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26487
26488 2010-12-26  Bruno Haible  <bruno@clisp.org>
26489
26490         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26491         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26492         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26493         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26494         looking for the declaration.
26495         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26496         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26497         problem.
26498         * doc/posix-functions/inet_pton.texi: Likewise.
26499
26500 2010-12-26  Bruno Haible  <bruno@clisp.org>
26501
26502         arpa_inet: Use the common idioms with C++ support.
26503         * lib/arpa_inet.in.h: Include c++defs.h.
26504         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26505         support.
26506         * modules/arpa_inet (Depends-on): Add c++defs.
26507         (Makefile.am): Substitute the contents of c++defs.h.
26508         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26509         * modules/arpa_inet-c++-tests: New file.
26510         * tests/test-arpa_inet-c++.cc: New file.
26511
26512 2010-12-25  Bruno Haible  <bruno@clisp.org>
26513
26514         Fix more C++ link errors on Solaris 8.
26515         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26516         $(LIB_EACCESS).
26517         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26518         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26519         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26520         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26521         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26522
26523 2010-12-25  Bruno Haible  <bruno@clisp.org>
26524
26525         printf-posix: Fix link error when a non-GCC compiler is used.
26526         * lib/stdio.in.h (printf): When not using GCC, override printf
26527         correctly.
26528         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26529
26530 2010-12-25  Bruno Haible  <bruno@clisp.org>
26531
26532         strerror_r-posix: Update doc.
26533         * doc/posix-functions/strerror_r.texi: Update doc about the return
26534         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26535
26536 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26537
26538         utimens: simplify the logic of the previous change
26539         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26540         This should not affect whether the test succeeds or fails.
26541
26542         utimens: configure better on hosts with NFS clock skew
26543         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26544         uses the clock of the local host.  It might use the clock of the
26545         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26546         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26547
26548 2010-12-25  Bruno Haible  <bruno@clisp.org>
26549
26550         ptsname test: Avoid failure on Solaris.
26551         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26552         open a pseudo-terminal; don't use BSD-style ptys.
26553         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26554
26555 2010-12-25  Bruno Haible  <bruno@clisp.org>
26556
26557         ptsname: Avoid ERANGE failure on some systems.
26558         * lib/ptsname.c (buffer): Increase size.
26559
26560 2010-12-25  Bruno Haible  <bruno@clisp.org>
26561
26562         rename, renameat: Avoid test failures at NFS mounted locations.
26563         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26564         so that subsequent mkdir calls succeed.
26565
26566 2010-12-25  Bruno Haible  <bruno@clisp.org>
26567
26568         iswblank: Fix C++ link error on Solaris 8.
26569         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26570         _GL_FUNCDECL_SYS.
26571
26572 2010-12-25  Bruno Haible  <bruno@clisp.org>
26573
26574         unistd: Fix C++ link error on Solaris 8.
26575         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26576
26577 2010-12-25  Bruno Haible  <bruno@clisp.org>
26578
26579         readlink doc: Mention an old glibc bug.
26580         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26581
26582 2010-12-25  Bruno Haible  <bruno@clisp.org>
26583
26584         fcntl-h: Fix for use of C++ on glibc systems.
26585         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26586         also on glibc systems in C++ mode.
26587         Reported by Gary V. Vaughan <gary@gnu.org>.
26588
26589 2010-12-25  Bruno Haible  <bruno@clisp.org>
26590
26591         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26592         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26593
26594 2010-12-25  Bruno Haible  <bruno@clisp.org>
26595
26596         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26597         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26598         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26599         test whether truncl works according to ISO C 99 with IEC 60559.
26600         * m4/truncl-ieee.m4: New file.
26601         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26602         m4/signbit.m4.
26603         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26604
26605 2010-12-25  Bruno Haible  <bruno@clisp.org>
26606
26607         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26608         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26609         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26610         test whether ceill works according to ISO C 99 with IEC 60559.
26611         * m4/ceill-ieee.m4: New file.
26612         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26613         m4/signbit.m4.
26614         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26615
26616 2010-12-25  Bruno Haible  <bruno@clisp.org>
26617
26618         Ensure all prerequisites of <wchar.h> are included.
26619         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26620         before <wchar.h>.
26621         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26622         gl_MBRLEN_NUL_RETVAL): Likewise.
26623         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26624         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26625         AC_FUNC_MBRTOWC): Likewise.
26626         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26627         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26628         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26629         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26630         Likewise.
26631         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26632         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26633         (gl_WCHAR_H): Improve comments.
26634         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26635
26636 2010-12-25  Bruno Haible  <bruno@clisp.org>
26637
26638         strtok_r: Fix C syntax error in autoconf macro.
26639         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26640         characters in test program.
26641
26642 2010-12-24  Bruno Haible  <bruno@clisp.org>
26643
26644         ceil, trunc, round: Fix gcc warnings.
26645         * lib/ceil.c (MIN): Undefine before redefining.
26646         * lib/trunc.c (MIN): Likewise.
26647         * lib/round.c (MIN): Likewise.
26648         Include <math.h> first.
26649
26650 2010-12-24  Bruno Haible  <bruno@clisp.org>
26651
26652         select tests: Avoid failures on OSF/1 5.1.
26653         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26654         failure of closing the last socket; it may fail with ECONNRESET.
26655
26656 2010-12-24  Eric Blake  <eblake@redhat.com>
26657
26658         stdint: avoid HP-UX 10.20 preprocessor bug
26659         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26660         than #if.
26661         * tests/test-floor2.c (main): Likewise.
26662         Reported by Peter O'Gorman.
26663
26664         pipe: make obsoletion transition easier
26665         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26666         * modules/pipe (Files): Include revived file.
26667         (Include): Drop reference, to mirror getdate's behavior.
26668
26669 2010-12-24  Bruno Haible  <bruno@clisp.org>
26670
26671         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26672         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26673         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26674         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26675
26676 2010-12-24  Bruno Haible  <bruno@clisp.org>
26677
26678         gethostname: Ensure declaration on NonStop Kernel.
26679         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26680         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26681
26682 2010-12-24  Bruno Haible  <bruno@clisp.org>
26683
26684         sys_select: Ensure all necessary types on NonStop Kernel.
26685         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26686         include <sys/time.h>.
26687         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26688         NonStop Kernel.
26689         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26690
26691 2010-12-24  Bruno Haible  <bruno@clisp.org>
26692
26693         sys_select: Remove unneeded include.
26694         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26695         have <sys/select.h>.
26696
26697 2010-12-24  Bruno Haible  <bruno@clisp.org>
26698
26699         gethostname: Provide a fallback for HOST_NAME_MAX.
26700         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26701         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26702         instead.
26703         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26704
26705 2010-12-24  Bruno Haible  <bruno@clisp.org>
26706
26707         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26708         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26709         (SA_RESTART): Likewise.
26710         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26711
26712 2010-12-24  Bruno Haible  <bruno@clisp.org>
26713
26714         signal: Define NSIG.
26715         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26716         * tests/test-signal.c (nsig): New variable.
26717         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26718
26719 2010-12-24  Bruno Haible  <bruno@clisp.org>
26720
26721         rename, renameat: Avoid test failures on OSF/1 5.1.
26722         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26723         alternative error codes.
26724         * tests/test-renameat.c (main): Likewise.
26725
26726 2010-12-24  Bruno Haible  <bruno@clisp.org>
26727
26728         *printf: Detect large precisions bug on Solaris 10/SPARC.
26729         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26730         by Paul Eggert.
26731         * tests/test-snprintf-posix.h (test_function): Add this test code here
26732         too.
26733         * tests/test-sprintf-posix.h (test_function): Likewise.
26734         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26735         * tests/test-vasprintf-posix.c (test_function): Likewise.
26736         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26737         around by gnulib.
26738         * doc/posix-functions/printf.texi: Likewise.
26739         * doc/posix-functions/snprintf.texi: Likewise.
26740         * doc/posix-functions/sprintf.texi: Likewise.
26741         * doc/posix-functions/vfprintf.texi: Likewise.
26742         * doc/posix-functions/vprintf.texi: Likewise.
26743         * doc/posix-functions/vsnprintf.texi: Likewise.
26744         * doc/posix-functions/vsprintf.texi: Likewise.
26745         * doc/posix-functions/dprintf.texi: Undo last commit.
26746         * doc/posix-functions/vdprintf.texi: Likewise.
26747
26748 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26749
26750         tests: port test-fdutimensat.c to Solaris 8
26751         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26752         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26753         On Solaris 8, it fails with errno == ENOSYS, because there is no
26754         futimens (so it can't use the fd), and there is no lutimens (so it
26755         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26756
26757         vsnprintf: make more consistent with snprintf; doc fixes
26758
26759         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26760         the byte count return problem was promoted from the snprintf-posix
26761         to the snprintf module.
26762         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26763         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26764         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26765         * tests/test-snprintf.c (main): Check the byte count returned.
26766         * tests/test-vsnprintf.c (main): Likewise.
26767
26768 2010-12-23  Eric Blake  <eblake@redhat.com>
26769
26770         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26771         * modules/sigpipe (License): Relax license.
26772
26773 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26774
26775         doc: document Solaris printf bug with large float precisions
26776         * doc/posix-functions/dprintf.texi (dprintf):
26777         * doc/posix-functions/fprintf.texi (fprintf):
26778         * doc/posix-functions/printf.texi (printf):
26779         * doc/posix-functions/snprintf.texi (snprintf):
26780         * doc/posix-functions/sprintf.texi (sprintf):
26781         * doc/posix-functions/vdprintf.texi (vdprintf):
26782         * doc/posix-functions/vfprintf.texi (vfprintf):
26783         * doc/posix-functions/vprintf.texi (vprintf):
26784         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26785         * doc/posix-functions/vsprintf.texi (vsprintf):
26786         Mention that these functions mishandle large floating point
26787         precisions on Solaris 10.  The same bug is also present in Solaris
26788         8, and I assume earlier.  This causes "cd gnulib-tests; make
26789         check" to fail on Solaris 8 (and I assume, later) when building
26790         the latest coreutils, in test-vasprintf-posix's call to
26791         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26792         the wide flavors (e.g., wprintf) so this patch just updates the
26793         documentation for the narrow ones.
26794
26795         test-posixtm.c: add two tests
26796         * tests/test-posixtm.c: Add two tests, to highlight the
26797         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26798         around this bug; this is merely to document it.
26799
26800 2010-12-22  Bruno Haible  <bruno@clisp.org>
26801
26802         getlogin_r: Work around portability problem on OSF/1.
26803         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26804         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26805         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26806         test for a truncated result.
26807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26808         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26809         * modules/getlogin_r (Depends-on): Add memchr.
26810         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26811
26812 2010-12-22  Bruno Haible  <bruno@clisp.org>
26813
26814         ptsname: Avoid test failure on OSF/1 5.1.
26815         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26816         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26817         (same_slave): New function.
26818         (main): Use it to compare ptsname's result with the expected file name.
26819
26820 2010-12-22  Bruno Haible  <bruno@clisp.org>
26821
26822         Port extended stdio modules to HP NonStop Kernel.
26823         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26824         macros.
26825         * lib/fbufmode.c: Update comments.
26826         * lib/fflush.c: Likewise.
26827         * lib/fpurge.c: Likewise.
26828         * lib/freadable.c: Likewise.
26829         * lib/freadahead.c: Likewise.
26830         * lib/freading.c: Likewise.
26831         * lib/freadptr.c: Likewise.
26832         * lib/freadseek.c: Likewise.
26833         * lib/fseeko.c: Likewise.
26834         * lib/fseterr.c: Likewise.
26835         * lib/fwritable.c: Likewise.
26836         * lib/fwriting.c: Likewise.
26837         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26838
26839 2010-12-22  Bruno Haible  <bruno@clisp.org>
26840
26841         ttyname_r: Work around bug on OSF/1 5.1.
26842         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26843         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26844         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26845         present.
26846         * lib/ttyname_r.c (ttyname_r): Update comments.
26847
26848 2010-12-22  Bruno Haible  <bruno@clisp.org>
26849
26850         round: Implement result sign according to IEEE 754.
26851         * lib/round.c (MIN, MINUS_ZERO): New macros.
26852         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26853         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26854         * tests/test-round-ieee.c (main): Likewise.
26855         * tests/test-roundl-ieee.c (main): Likewise.
26856
26857         trunc: Implement result sign according to IEEE 754.
26858         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26859         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26860         * tests/test-trunc2.c: Include minus-zero.h.
26861         (MINUS_ZERO): New macro.
26862         (trunc_reference): Keep in sync with lib/trunc.c.
26863         * tests/test-truncf2.c: Include minus-zero.h.
26864         (MINUS_ZERO): New macro.
26865         (truncf_reference): Keep in sync with lib/trunc.c.
26866         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26867         * tests/test-trunc-ieee.c (main): Likewise.
26868         * tests/test-truncl-ieee.c (main): Likewise.
26869
26870         ceil: Implement result sign according to IEEE 754.
26871         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26872         (FUNC): Return -0.0 for -1 < x < 0.
26873         * tests/test-ceil2.c: Include minus-zero.h.
26874         (MINUS_ZERO): New macro.
26875         (ceil_reference): Keep in sync with lib/ceil.c.
26876         * tests/test-ceilf2.c: Include minus-zero.h.
26877         (MINUS_ZERO): New macro.
26878         (ceilf_reference): Keep in sync with lib/ceil.c.
26879         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26880         * tests/test-ceil-ieee.c (main): Likewise.
26881         * tests/test-ceill-ieee.c (main): Likewise.
26882
26883         floor: Implement result sign according to IEEE 754.
26884         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26885         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26886         * tests/test-floorf2.c (floorf_reference): Likewise.
26887         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26888         * tests/test-floor-ieee.c (main): Likewise.
26889         * tests/test-floorl-ieee.c (main): Likewise.
26890
26891 2010-12-22  Bruno Haible  <bruno@clisp.org>
26892
26893         getaddrinfo: Update doc.
26894         * doc/posix-functions/gai_strerror.texi: Return type is also different
26895         on AIX and HP-UX.
26896
26897 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26898
26899         getaddrinfo, inet_ntop: Update doc for Solaris.
26900         * doc/posix-functions/gai_strerror.texi: Return type is also an
26901         issue on Solaris 9 and earlier.
26902         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26903         on Solaris 10 and earlier.
26904
26905 2010-12-21  Bruno Haible  <bruno@clisp.org>
26906
26907         New module 'roundl-ieee'.
26908         * modules/roundl-ieee: New file.
26909         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26910         test whether roundl works according to ISO C 99 with IEC 60559.
26911         * m4/roundl-ieee.m4: New file.
26912         * modules/roundl-ieee-tests: New file.
26913         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26914         * tests/test-roundl.c (main): Remove signbit tests.
26915         * modules/roundl-tests (Depends-on): Remove signbit.
26916         * doc/posix-functions/roundl.texi: Mention the new module.
26917
26918 2010-12-21  Bruno Haible  <bruno@clisp.org>
26919
26920         New module 'truncl-ieee'.
26921         * modules/truncl-ieee: New file.
26922         * modules/truncl-ieee-tests: New file.
26923         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26924         * tests/test-truncl.c (main): Remove signbit tests.
26925         * modules/truncl-tests (Depends-on): Remove signbit.
26926         * doc/posix-functions/truncl.texi: Mention the new module.
26927
26928 2010-12-21  Bruno Haible  <bruno@clisp.org>
26929
26930         New module 'ceill-ieee'.
26931         * modules/ceill-ieee: New file.
26932         * modules/ceill-ieee-tests: New file.
26933         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26934         * tests/test-ceill.c (main): Remove signbit tests.
26935         * modules/ceill-tests (Depends-on): Remove signbit.
26936         * doc/posix-functions/ceill.texi: Mention the new module.
26937
26938 2010-12-21  Bruno Haible  <bruno@clisp.org>
26939
26940         New module 'floorl-ieee'.
26941         * modules/floorl-ieee: New file.
26942         * modules/floorl-ieee-tests: New file.
26943         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26944         * tests/test-floorl.c (main): Remove signbit tests.
26945         * modules/floorl-tests (Depends-on): Remove signbit.
26946         * doc/posix-functions/floorl.texi: Mention the new module.
26947
26948 2010-12-21  Bruno Haible  <bruno@clisp.org>
26949
26950         New module 'round-ieee'.
26951         * modules/round-ieee: New file.
26952         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26953         whether round works according to ISO C 99 with IEC 60559.
26954         * m4/round-ieee.m4: New file.
26955         * modules/round-ieee-tests: New file.
26956         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26957         * tests/test-round1.c (main): Remove signbit tests.
26958         * modules/round-tests (Depends-on): Remove 'signbit'.
26959         * doc/posix-functions/round.texi: Mention the new module.
26960
26961 2010-12-21  Bruno Haible  <bruno@clisp.org>
26962
26963         New module 'trunc-ieee'.
26964         * modules/trunc-ieee: New file.
26965         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26966         whether trunc works according to ISO C 99 with IEC 60559.
26967         * m4/trunc-ieee.m4: New file.
26968         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26970         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26971         * modules/trunc-ieee-tests: New file.
26972         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26973         * tests/test-trunc1.c (main): Remove signbit tests.
26974         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26975         * doc/posix-functions/trunc.texi: Mention the new module.
26976
26977 2010-12-21  Bruno Haible  <bruno@clisp.org>
26978
26979         New module 'ceil-ieee'.
26980         * modules/ceil-ieee: New file.
26981         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26982         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26983         ISO C 99 with IEC 60559.
26984         * m4/ceil-ieee.m4: New file.
26985         * modules/ceil (Files): Add lib/ceil.c.
26986         (Depends-on): Add 'float'.
26987         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26988         * lib/math.in.h (ceil): New declaration.
26989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26990         REPLACE_CEIL.
26991         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26992         * modules/ceil-ieee-tests: New file.
26993         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26994         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26995         * doc/posix-functions/ceil.texi: Mention the new module.
26996
26997 2010-12-21  Bruno Haible  <bruno@clisp.org>
26998
26999         New module 'floor-ieee'.
27000         * modules/floor-ieee: New file.
27001         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27002         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27003         ISO C 99 with IEC 60559.
27004         * m4/floor-ieee.m4: New file.
27005         * modules/floor (Files): Add lib/floor.c.
27006         (Depends-on): Add 'float'.
27007         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27008         * lib/math.in.h (floor): New declaration.
27009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27010         REPLACE_FLOOR.
27011         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27012         * modules/floor-ieee-tests: New file.
27013         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27014         * tests/test-math-c++.cc: Check the signature of 'floor'.
27015         * doc/posix-functions/floor.texi: Mention the new module.
27016
27017 2010-12-21  Bruno Haible  <bruno@clisp.org>
27018
27019         New module 'roundf-ieee'.
27020         * modules/roundf-ieee: New file.
27021         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27022         test whether roundf works according to ISO C 99 with IEC 60559.
27023         * m4/roundf-ieee.m4: New file.
27024         * modules/roundf-ieee-tests: New file.
27025         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27026         * tests/test-roundf1.c (main): Remove signbit tests.
27027         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27028         * doc/posix-functions/roundf.texi: Mention the new module.
27029
27030 2010-12-21  Bruno Haible  <bruno@clisp.org>
27031
27032         New module 'truncf-ieee'.
27033         * modules/truncf-ieee: New file.
27034         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27035         test whether truncf works according to ISO C 99 with IEC 60559.
27036         * m4/truncf-ieee.m4: New file.
27037         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27039         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27040         * modules/truncf-ieee-tests: New file.
27041         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27042         * tests/test-truncf1.c (main): Remove signbit tests.
27043         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27044         * doc/posix-functions/truncf.texi: Mention the new module.
27045
27046 2010-12-21  Bruno Haible  <bruno@clisp.org>
27047
27048         New module 'ceilf-ieee'.
27049         * modules/ceilf-ieee: New file.
27050         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27051         test whether ceilf works according to ISO C 99 with IEC 60559.
27052         * m4/ceilf-ieee.m4: New file.
27053         * modules/ceilf-ieee-tests: New file.
27054         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27055         * tests/test-ceilf1.c (main): Remove signbit tests.
27056         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27057         * doc/posix-functions/ceilf.texi: Mention the new module.
27058
27059 2010-12-21  Bruno Haible  <bruno@clisp.org>
27060
27061         New module 'floorf-ieee'.
27062         * modules/floorf-ieee: New file.
27063         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27064         test whether floorf works according to ISO C 99 with IEC 60559.
27065         * m4/floorf-ieee.m4: New file.
27066         * modules/floorf-ieee-tests: New file.
27067         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27068         * tests/test-floorf1.c (main): Remove signbit tests.
27069         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27070         * doc/posix-functions/floorf.texi: Mention the new module.
27071
27072 2010-12-21  Bruno Haible  <bruno@clisp.org>
27073
27074         Support for minus zero in autoconf macros.
27075         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27076         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27077         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27078         * tests/minus-zero.h: Update comments.
27079
27080 2010-12-21  Bruno Haible  <bruno@clisp.org>
27081
27082         Tests for module 'ceil'.
27083         * modules/ceil-tests: New file.
27084         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27085         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27086
27087 2010-12-21  Bruno Haible  <bruno@clisp.org>
27088
27089         Tests for module 'floor'.
27090         * modules/floor-tests: New file.
27091         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27092         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27093
27094 2010-12-21  Bruno Haible  <bruno@clisp.org>
27095
27096         math: Fix indentation.
27097         * lib/math.in.h (floorf): Fix indentation.
27098
27099 2010-12-21  Bruno Haible  <bruno@clisp.org>
27100
27101         Fix cross-compilation guesses on Solaris.
27102         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27103         not match "solaris2.10".
27104         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27105         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27106         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27107
27108 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27109
27110         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27111         This fixes a problem observed with the latest coreutils snapshot
27112         that caused a test to fail on Solaris 8.  src/csplit.c's call
27113         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27114         earlier, instead of returning the number of bytes that would have
27115         been generated; this causes csplit to incorrectly report memory
27116         exhaustion.
27117         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27118         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27119         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27120         comments to match.
27121         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27122         Fix typo in matching older versions of Solaris: "solaris2.10"
27123         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27124         only for guessing while cross-compiling.
27125         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27126
27127 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27128
27129         ftoastr: fix comment again
27130         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27131         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27132         Also, simplify example a bit by using flags = 0.
27133
27134 2010-12-20  Bruno Haible  <bruno@clisp.org>
27135
27136         round*, trunc*: Update documentation regarding glibc.
27137         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27138         * doc/posix-functions/round.texi: Likewise.
27139         * doc/posix-functions/roundl.texi: Likewise.
27140         * doc/posix-functions/truncf.texi: Likewise.
27141         * doc/posix-functions/trunc.texi: Likewise.
27142         * doc/posix-functions/truncl.texi: Likewise.
27143
27144 2010-12-20  Bruno Haible  <bruno@clisp.org>
27145
27146         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27147         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27148         * doc/posix-functions/round.texi: Likewise.
27149         * doc/posix-functions/roundl.texi: Likewise.
27150
27151 2010-12-20  Bruno Haible  <bruno@clisp.org>
27152
27153         ttyname_r: Add missing declaration on HP-UX 11.
27154         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27155         HAVE_TTYNAME_R.
27156         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27157         declared. Set HAVE_TTYNAME_R always.
27158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27159         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27160         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27161         HAVE_TTYNAME_R.
27162         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27163
27164 2010-12-20  Bruno Haible  <bruno@clisp.org>
27165
27166         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27167         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27168         * doc/posix-functions/getlogin_r.texi: Likewise.
27169         * tests/test-getlogin.c: Include <errno.h>.
27170         (main): Avoid test failure on HP-UX 11.11.
27171         * tests/test-getlogin_r.c (main): Likewise.
27172
27173 2010-12-20  Bruno Haible  <bruno@clisp.org>
27174
27175         getlogin_r: Add missing declaration on HP-UX 11.
27176         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27177         declared also when it exists as a function.
27178         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27179
27180 2010-12-20  Bruno Haible  <bruno@clisp.org>
27181
27182         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27183         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27184         through wcrtomb.
27185
27186 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27187
27188         ftoastr: fix comment
27189         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27190         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27191
27192 2010-12-19  Bruno Haible  <bruno@clisp.org>
27193
27194         isnan: Ensure it is a macro.
27195         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27196         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27197         Solaris.
27198
27199 2010-12-19  Bruno Haible  <bruno@clisp.org>
27200
27201         ldexpl test: Fix link error on OSF/1 5.1.
27202         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27203
27204 2010-12-19  Bruno Haible  <bruno@clisp.org>
27205
27206         wctype: Make it work in C++ mode on OSF/1 5.1.
27207         * lib/wctype.in.h (iswblank): Declare but not define here.
27208         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27209         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27210         * modules/wctype (Files): Add lib/iswblank.c.
27211
27212 2010-12-19  Bruno Haible  <bruno@clisp.org>
27213
27214         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27215         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27216         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27217
27218 2010-12-19  Bruno Haible  <bruno@clisp.org>
27219
27220         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27221         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27222         _POSIX_PII_SOCKET.
27223         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27224         * doc/posix-functions/recvfrom.texi: Likewise.
27225         * doc/posix-functions/send.texi: Likewise.
27226         * doc/posix-functions/sendto.texi: Likewise.
27227
27228 2010-12-19  Bruno Haible  <bruno@clisp.org>
27229
27230         tcgetsid: Add missing declaration on OSF/1 5.1.
27231         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27232         HAVE_TCGETSID.
27233         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27234         Don't set HAVE_TCGETSID.
27235         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27236         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27237         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27238         HAVE_TCGETSID.
27239         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27240
27241 2010-12-19  Bruno Haible  <bruno@clisp.org>
27242
27243         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27244         * lib/stdio.in.h: During the include_next statement, let recursive
27245         includes of this file include only the system header file.
27246
27247 2010-12-19  Bruno Haible  <bruno@clisp.org>
27248
27249         iconv_open: Fix regression from 2010-12-04.
27250         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27251         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27252
27253 2010-12-19  Bruno Haible  <bruno@clisp.org>
27254
27255         stdbool test: Avoid a gcc warning.
27256         * tests/test-stdbool.c (main): Fail if e1 is false.
27257         Reported by Jim Meyering.
27258
27259 2010-12-19  Jim Meyering  <meyering@redhat.com>
27260
27261         setenv: restore to working order
27262         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27263         mistakenly removed.
27264         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27265         HAVE_SETENV.
27266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27267         HAVE_SETENV.
27268
27269 2010-12-19  Bruno Haible  <bruno@clisp.org>
27270
27271         Document some different function declarations on OSF/1 5.1.
27272         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27273         * doc/posix-functions/inet_ntop.texi: Likewise.
27274         * doc/posix-functions/gethostname.texi: Likewise.
27275         * lib/unistd.in.h (gethostname): Update comment.
27276
27277 2010-12-19  Bruno Haible  <bruno@clisp.org>
27278
27279         doc: Mention vasprintf-posix module.
27280         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27281         the 'vasprintf-posix' module.
27282         * doc/glibc-functions/vasprintf.texi: Likewise.
27283
27284 2010-12-19  Bruno Haible  <bruno@clisp.org>
27285
27286         unsetenv: Add missing declaration on OSF/1 5.1.
27287         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27288         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27289         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27290         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27291         not HAVE_UNSETENV.
27292         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27293         HAVE_UNSETENV.
27294         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27295
27296 2010-12-19  Bruno Haible  <bruno@clisp.org>
27297
27298         setenv: Add missing declaration on OSF/1 5.1.
27299         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27300         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27301         declared. Don't set HAVE_SETENV.
27302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27303         not HAVE_SETENV.
27304         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27305         HAVE_SETENV.
27306         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27307
27308 2010-12-19  Bruno Haible  <bruno@clisp.org>
27309
27310         nl_langinfo tests: Avoid gcc warning.
27311         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27312
27313 2010-12-19  Bruno Haible  <bruno@clisp.org>
27314
27315         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27316         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27317         _GL_CXXALIAS_SYS.
27318
27319 2010-12-19  Bruno Haible  <bruno@clisp.org>
27320
27321         stdbool: Relax test.
27322         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27323         address to 'bool' work in static initializer, for compilers other than
27324         GCC.
27325
27326 2010-12-19  Bruno Haible  <bruno@clisp.org>
27327
27328         ftello: Add missing declaration on OSF/1 5.1.
27329         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27330         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27332         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27333         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27334
27335 2010-12-19  Bruno Haible  <bruno@clisp.org>
27336
27337         fseeko: Add missing declaration on OSF/1 5.1.
27338         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27339         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27341         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27342         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27343
27344 2010-12-19  Bruno Haible  <bruno@clisp.org>
27345
27346         fchdir: Add missing declaration on OSF/1 5.1.
27347         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27350         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27351         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27352
27353 2010-12-19  Bruno Haible  <bruno@clisp.org>
27354
27355         relocatable-prog-wrapper: Separate from relocatable-prog.
27356         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27357         uninstall-relocwrapper rule here.
27358         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27359         Reported by Ian Beckwith <ianb@erislabs.net>.
27360
27361 2010-12-19  Bruno Haible  <bruno@clisp.org>
27362
27363         unistr/u8-mbsnlen: Add missing dependency.
27364         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27365         Reported by Ian Beckwith <ianb@erislabs.net>.
27366
27367 2010-12-19  Bruno Haible  <bruno@clisp.org>
27368
27369         iconv: Make it possible again to use this module without 'iconv-h'.
27370         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27371         if it is not defined.
27372         Reported by Ian Beckwith <ianb@erislabs.net>.
27373
27374 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27375
27376         acl: port to Solaris 8 when copying from tmpfs to ufs
27377         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27378         error number.  Problem observed on Solaris 8 with latest
27379         coreutils, with "mv A B", where A is on a tmpfs file system and B
27380         is on a ufs file system.  This caused coreutils' mv/part-symlink
27381         test to fail.
27382
27383         tests: set fail=0 at start
27384         * tests/init.sh (setup_): Move fail=0 initialization here ...
27385         (mktempd_): ... from here, so that tests can rely on fail being
27386         set to 0 initially.  This fixes a problem in coreutils; see:
27387         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27388
27389 2010-12-18  Bruno Haible  <bruno@clisp.org>
27390
27391         memmem-simple: Stylistic changes.
27392         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27393         Fix preprocessor directive indentation.
27394
27395 2010-12-15  Pádraig Brady <P@draigBrady.com>
27396
27397         memmem, memmem-simple: reorganize and expand empty needle check
27398         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27399         functional checks to memmem-simple so that one has a fully functional
27400         memmem by using just this module.
27401         Restrict the performance only check to the memmem module.
27402         Also expand the empty needle check to ensure the correct
27403         pointer is returned, not just a non NULL pointer.
27404         * doc/glibc-functions/memmem.texi: Rearrange the portability
27405         documentation to correlate with the rearranged checks.
27406         Clarify exactly how the memmem and memmem-simple modules
27407         relate to each other.
27408
27409 2010-12-15  Pádraig Brady <P@draigBrady.com>
27410             Bruno Haible  <bruno@clisp.org>
27411
27412         Improve cross-compilation guesses for uClibc.
27413         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27414         that uClibc does not have the glibc bug.
27415         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27416         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27417
27418 2010-12-14  Eric Blake  <eblake@redhat.com>
27419
27420         configmake: provide fallbacks for oldest supported autotools
27421         * m4/configmake.m4: New file.
27422         * modules/configmake (Files): Ship it.
27423         (configure.ac): Use it to guarantee fallbacks.
27424
27425 2010-12-13  Pádraig Brady <P@draigBrady.com>
27426
27427         read-file: Improve handling of large files
27428         * lib/read-file.c (fread_file): Minimize realloc()s
27429         for regular files, and better manage sizes around SIZE_MAX.
27430
27431 2010-12-13  Eric Blake  <eblake@redhat.com>
27432
27433         cloexec, fcntl: relax license
27434         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27435         consent from all contributors.
27436         * modules/fcntl (License): Likewise.
27437
27438 2010-12-10  Bruno Haible  <bruno@clisp.org>
27439
27440         Tests for module 'pipe-posix'.
27441         * modules/pipe-posix-tests: New file.
27442         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27443
27444 2010-12-10  Bruno Haible  <bruno@clisp.org>
27445
27446         pipe-posix: Make it work in C++ mode.
27447         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27448         (pipe): Use common idiom, not a macro definition.
27449         * lib/pipe.c: New file.
27450         * m4/pipe.m4: New file.
27451         * modules/pipe-posix (Description): Enhance.
27452         (Files): Add lib/pipe.c, m4/pipe.m4.
27453         (configure.ac): Invoke gl_FUNC_PIPE.
27454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27455         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27456         * tests/test-unistd-c++.cc: Check the signature of pipe.
27457
27458 2010-12-10  Bruno Haible  <bruno@clisp.org>
27459
27460         Rename module 'pipe' to 'spawn-pipe'.
27461         * modules/spawn-pipe: New file, renamed from modules/pipe.
27462         (Files, configure.ac, Makefile.am): Update.
27463         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27464         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27465         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27466         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27467         "spawn-pipe.h" instead of "pipe.h".
27468         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27469         to gl_SPAWN_PIPE.
27470         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27471         (Files, Makefile.am): Update.
27472         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27473         Update.
27474         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27475         Include "spawn-pipe.h" instead of "pipe.h".
27476         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27477         * lib/javacomp.c: Likewise.
27478         * lib/javaversion.c: Likewise.
27479         * lib/pipe-filter-gi.c: Likewise.
27480         * lib/pipe-filter-ii.c: Likewise.
27481         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27482         * modules/javacomp (Depends-on): Likewise.
27483         * modules/javaversion (Depends-on): Likewise.
27484         * modules/pipe-filter-gi (Depends-on): Likewise.
27485         * modules/pipe-filter-ii (Depends-on): Likewise.
27486         * MODULES.html.sh (Executing programs): Update.
27487         * NEWS: Mention the change.
27488
27489 2010-12-10  Eric Blake  <eblake@redhat.com>
27490
27491         pipe-posix: new module
27492         * modules/pipe-posix: New file.
27493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27494         (gl_UNISTD_H): Check for declaration.
27495         * modules/unistd (Makefile.am): Substitute it.
27496         * lib/unistd.in.h (pipe): Provide it for mingw.
27497         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27498         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27499
27500 2010-12-07  Bruno Haible  <bruno@clisp.org>
27501
27502         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27503         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27504         u8_strcmp_gnu.
27505         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27506
27507 2010-12-06  Bruno Haible  <bruno@clisp.org>
27508
27509         Update internal documentation.
27510         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27511
27512 2010-12-04  Bruno Haible  <bruno@clisp.org>
27513
27514         Put more information about failed tests into the test return codes.
27515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27516         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27517         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27518         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27519         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27520         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27521         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27522         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27523         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27525         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27526         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27527         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27528         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27529         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27530         returns a bit mask.
27531         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27532         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27533         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27534         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27535         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27536         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27537         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27538         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27539         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27540         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27541         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27542         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27543         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27544         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27545         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27546         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27547         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27548         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27549         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27550         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27551         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27552         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27553         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27554         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27555         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27556         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27557         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27558         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27559         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27560         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27561         gl_PRINTF_PRECISION): Likewise.
27562         * m4/regex.m4 (gl_REGEX): Likewise.
27563         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27564         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27565         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27566         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27567         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27568         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27569         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27570         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27571         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27572         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27573         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27574         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27575         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27576         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27577         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27578         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27579         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27580         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27581         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27582         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27583         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27584         enumerated value.
27585         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27586
27587 2010-12-04  Bruno Haible  <bruno@clisp.org>
27588
27589         Update for Solaris 11 2010-11.
27590         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27591         Express, released in November 2010.
27592
27593 2010-12-04  Bruno Haible  <bruno@clisp.org>
27594
27595         nproc: Relax license.
27596         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27597         and Paul Eggert.
27598         Requested by Ludovic Courtès <ludo@gnu.org>.
27599
27600 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27601
27602         utimecmp: fine-grained src to nearby coarse-grained dest
27603
27604         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27605         and the source is on a file system with higher-resolution time
27606         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27607         not work, and the time stamps are close together, the algorithm to
27608         determine the exact resolution from the read-back mtime was buggy:
27609         it had a "!=" where it should have had an "==".  This bug has been
27610         in the code ever since it was introduced to gnulib.
27611         Problem reported by Dan Jacobson in
27612         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27613
27614 2010-11-30  Bruno Haible  <bruno@clisp.org>
27615
27616         strerror_r-posix: Fix autoconf test.
27617         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27618
27619 2010-11-28  Bruno Haible  <bruno@clisp.org>
27620             Paul Eggert  <eggert@cs.ucla.edu>
27621
27622         Tests for module 'getdomainname'.
27623         * modules/getdomainname-tests: New file.
27624         * tests/test-getdomainname.c: New file, based on
27625         tests/test-gethostname.c.
27626
27627 2010-11-28  Bruno Haible  <bruno@clisp.org>
27628             Paul Eggert  <eggert@cs.ucla.edu>
27629
27630         getdomainname: Use the system function when possible.
27631         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27632         (getdomainname): Replace if needed. Provide the declaration if it is
27633         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27634         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27635         (getdomainname): When the system has getdomainname, call the system
27636         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27637         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27638         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27639         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27640         the function if its second argument is of type 'int' or if it is found
27641         in libnsl.
27642         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27643         <sys/systeminfo.h> and sysinfo().
27644         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27646         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27647         HAVE_GETDOMAINNAME.
27648         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27649         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27650         * doc/glibc-functions/getdomainname.texi: Document the problems with
27651         the getdomainname declaration.
27652
27653 2010-11-28  Bruno Haible  <bruno@clisp.org>
27654
27655         sys_socket: Ensure ss_family field on AIX.
27656         * lib/sys_socket.in.h (ss_family): New macro definition.
27657         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27658         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27659         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27660         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27661         * modules/sys_socket (Makefile.am): Substitute
27662         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27663         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27664
27665 2010-11-27  Bruno Haible  <bruno@clisp.org>
27666
27667         readline: Improve configure output.
27668         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27669         "checking for readline..." result understandable.
27670
27671 2010-11-27  Bruno Haible  <bruno@clisp.org>
27672
27673         *printf-posix: Detect a bug on Solaris 10/x86.
27674         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27675         for floating-point output.
27676         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27677         directive.
27678         * tests/test-snprintf-posix.h (test_function): Likewise.
27679         * tests/test-sprintf-posix.h (test_function): Likewise.
27680         * tests/test-vasprintf-posix.c (test_function): Likewise.
27681         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27682         * doc/posix-functions/printf.texi: Likewise.
27683         * doc/posix-functions/snprintf.texi: Likewise.
27684         * doc/posix-functions/sprintf.texi: Likewise.
27685         * doc/posix-functions/vfprintf.texi: Likewise.
27686         * doc/posix-functions/vprintf.texi: Likewise.
27687         * doc/posix-functions/vsnprintf.texi: Likewise.
27688         * doc/posix-functions/vsprintf.texi: Likewise.
27689         * doc/glibc-functions/obstack_printf.texi: Likewise.
27690         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27691
27692 2010-11-27  Bruno Haible  <bruno@clisp.org>
27693
27694         Fix link error when module libunistring-optional is in use.
27695         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27696         * modules/striconveha-tests (Makefile.am): Likewise.
27697
27698 2010-11-27  Bruno Haible  <bruno@clisp.org>
27699
27700         regex: Mention link dependencies.
27701         * modules/regex (Link): New section.
27702         * modules/rpmatch (Link): Likewise.
27703         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27704
27705 2010-11-27  Bruno Haible  <bruno@clisp.org>
27706
27707         ftoastr: Fix compilation error on Solaris.
27708         * lib/ftoastr.c: Include <config.h>.
27709
27710 2010-11-27  Bruno Haible  <bruno@clisp.org>
27711
27712         getloadavg: Update documentation.
27713         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27714
27715 2010-11-27  Bruno Haible  <bruno@clisp.org>
27716
27717         sys_socket: Fix test whether the functions are declared.
27718         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27719         not <sys/select.h>.
27720
27721 2010-11-27  Bruno Haible  <bruno@clisp.org>
27722
27723         getpass: Make sure to get system declaration on some platforms.
27724         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27725         gl_USE_SYSTEM_EXTENSIONS.
27726         * modules/getpass (Depends-on): Add extensions.
27727
27728 2010-11-26  Bruno Haible  <bruno@clisp.org>
27729
27730         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27731         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27732         'iconv' module is present.
27733         (ICONV_CONST): New macro.
27734         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27735         ICONV_CONST.
27736         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27737         set ICONV_CONST.
27738         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27739         here.
27740         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27741         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27742         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27743         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27744         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27745         present.
27746
27747 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27748
27749         ftoastr: comment fix
27750         * lib/ftoastr.c: "little" -> "little or no" in comment
27751
27752 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27753
27754         stdint: port to GCC 4.3 + OSX + Octave
27755         On this platform, stdint.h is buggy and defines int64_t to long
27756         long int.  The replacement defined it to long int, causing
27757         problems with C++ style name mangling.  Instead, trust the system
27758         definition if INT64_MAX is defined, and likewise for the unsigned
27759         variant.   Problem reported by Jarno Rajahalme in
27760         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27761         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27762         and don't mess with int64_t and INT64_MAX in this case.
27763         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27764
27765 2010-11-24  Bruno Haible  <bruno@clisp.org>
27766
27767         doc: Corrections regarding MacOS X 10.4 and 10.5.
27768         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27769         MacOS X.
27770         Reported by Simon Josefsson.
27771
27772 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27773
27774         Uninstall ".bin" files installed by relocwrapper.
27775         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27776         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27777         unless it is already there.
27778
27779 2010-11-21  Bruno Haible  <bruno@clisp.org>
27780
27781         Update for NetBSD 5.0.
27782         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27783         NetBSD; the test fails on NetBSD 5.0.
27784         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27785         about NetBSD.
27786
27787 2010-11-21  Bruno Haible  <bruno@clisp.org>
27788
27789         Update for HP-UX 11.23 and HP-UX 11.31.
27790         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27791         HP-UX.
27792
27793 2010-11-21  Bruno Haible  <bruno@clisp.org>
27794
27795         Update for MacOS X 10.5.
27796         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27797         MacOS X; the test fails on MacOS X 10.5.8.
27798         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27799         about MacOS X.
27800
27801 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27802
27803         bootstrap: add bootstrap_sync option.
27804         See discussion at
27805         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27806         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27807         * build-aux/bootstrap: Accept --bootstrap-sync to update
27808         bootstrap if it is not identical to the local gnulib's
27809         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27810         enable this by default.  Accept --no-bootstrap-sync to disable
27811         it.
27812
27813 2010-11-20  Bruno Haible  <bruno@clisp.org>
27814
27815         Ensure that <features.h> is included before __GLIBC__ is tested.
27816         * lib/printf-parse.h: Include <features.h>.
27817         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27818         Reported by Mike Frysinger <vapier@gentoo.org>.
27819
27820         Ensure that <features.h> is included before __GLIBC__ is tested.
27821         * lib/wchar.in.h: Include <features.h>.
27822         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27823         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27824         Reported by Mike Frysinger <vapier@gentoo.org>.
27825
27826         Ensure that <features.h> is included before __GLIBC__ is tested.
27827         * lib/arpa_inet.in.h: Include <features.h>.
27828         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27829         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27830         Reported by Mike Frysinger <vapier@gentoo.org>.
27831
27832         Ensure that <features.h> is included before __GLIBC__ is tested.
27833         * build-aux/link-warning.h: Include <features.h>.
27834         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27835         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27836         Reported by Mike Frysinger <vapier@gentoo.org>.
27837
27838         Ensure that <features.h> is included before __GLIBC__ is tested.
27839         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27840         Reported by Mike Frysinger <vapier@gentoo.org>.
27841
27842 2010-11-20  Bruno Haible  <bruno@clisp.org>
27843
27844         memmem: Fix autoconf test.
27845         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27846
27847 2010-11-20  Bruno Haible  <bruno@clisp.org>
27848
27849         Port to uClibc.
27850         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27851         * lib/fcntl.in.h: Likewise.
27852         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27853         * lib/mbrtowc.c (mbrtowc): Likewise.
27854         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27855         * lib/strerror_r.c: Likewise.
27856         * lib/unistr/u8-strnlen.c: Likewise.
27857         * lib/vasnprintf.c (decimal_point_char): Likewise.
27858         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27859         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27860         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27861         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27862         * tests/test-sigaction.c (handler, main): Likewise.
27863         * lib/freading.h: Treat uClibc like a non-glibc platform.
27864         * lib/freading.c: Likewise.
27865         * lib/gettext.h: Likewise.
27866         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27867         Likewise.
27868         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27869         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27870         * lib/propername.c (proper_name_utf8): Likewise.
27871         * lib/spawn.in.h: Likewise.
27872         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27873         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27874         mem_cd_iconveh_internal): Likewise.
27875         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27876         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27877         strstr, strcasestr): Likewise.
27878         * lib/unicodeio.c (unicode_to_mb): Likewise.
27879         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27880         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27881         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27882         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27883         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27884         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27885         * lib/unistr/u8-stpncpy.c: Likewise.
27886         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27887         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27888         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27889         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27890         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27891         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27892         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27894         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27895         Likewise.
27896         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27897         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27898         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27899         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27901         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27902         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27903         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27904         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27905         * tests/test-striconveha.c (main): Likewise.
27906         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27907         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27908         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27909         * doc/posix-functions/getline.texi: Likewise.
27910         Reported by Mike Frysinger <vapier@gentoo.org>.
27911
27912 2010-11-20  Bruno Haible  <bruno@clisp.org>
27913
27914         nproc: Fix condition.
27915         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27916         HAVE_PTHREAD_AFFINITY_NP.
27917
27918 2010-11-20  Bruno Haible  <bruno@clisp.org>
27919
27920         Fix a comment.
27921         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27922
27923 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27924
27925         ftoastr: don't assume snprintf
27926         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27927         Implement a subset of snprintf here, by using sprintf safely.
27928         * modules/ftoastr (Depends-on): Remove snprintf.
27929
27930 2010-11-19  Jim Meyering  <meyering@redhat.com>
27931
27932         test-rename.h: fix compilation failure
27933         * tests/test-rename.h (test_rename): Add omitted "}".
27934
27935 2010-11-17  Jim Meyering  <meyering@redhat.com>
27936
27937         maint.mk: add a URL discussing the no-@acronym policy
27938         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27939
27940 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27941
27942         ftoastr: depend on snprintf, improve comments
27943         * lib/ftoastr.c: Also mention Loitsch's draft.
27944         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27945         needed in the current implementation, but it might simplify
27946         speeding up the code later.
27947         * modules/ftoastr: Depend on snprintf; this improves portability.
27948         Suggested by Bruno Haible in the same email.
27949
27950         ftoastr: port to hosts lacking strtof and strtold
27951         Problem reported by Bruno Haible in
27952         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27953         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27954         environment and strtold (and presumably strtof) are not available.
27955         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27956         (configure.ac): Require gl_C99_STRTOLD.
27957
27958 2010-11-18  Bruno Haible  <bruno@clisp.org>
27959
27960         c-strtold: Avoid link error on AIX 7.
27961         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27962         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27963         (gl_C_STRTOLD): Test whether strtold_l exists.
27964         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27965
27966 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27967
27968         intprops: new macro INT_BITS_STRLEN_BOUND
27969         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27970         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27971         not exposed.  Also, it uses a slightly tighter bound than before;
27972         though this makes no practical difference, we might as well be as
27973         tight as we easily can.
27974
27975         ftoastr: new module, for lossless conversion of floats to short strings
27976         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27977         * modules/ftoastr: New files.
27978
27979 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27980
27981         bootstrap: port to Solaris sed
27982         * build-aux/bootstrap (get_version): Port to Solaris sed.
27983         See Ralf Wildenhues's note in
27984         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27985
27986 2010-11-14  Jim Meyering  <meyering@redhat.com>
27987
27988         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27989         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27990         and move definition closer to sole use.
27991
27992 2010-11-13  Jim Meyering  <meyering@redhat.com>
27993
27994         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27995         Now we require at least autoconf-2.59, which means the work-around
27996         is no longer needed.
27997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27998         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27999         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28000         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28001         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28002
28003 2010-11-13  Bruno Haible  <bruno@clisp.org>
28004
28005         rename, renameat: Avoid test failures at NFS mounted locations.
28006         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28007         functions.
28008         (test_rename): Use assert_nonexistent.
28009         * tests/test-rename.c: Include <dirent.h>.
28010         * tests/test-renameat.c: Likewise.
28011         Reported by Gary V. Vaughan <gary@gnu.org>.
28012
28013         rename, renameat: Document Linux bug with NFS
28014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28015         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28016         * doc/posix-functions/renameat.texi: Likewise.
28017         Suggested by Eric Blake.
28018
28019 2010-11-13  Bruno Haible  <bruno@clisp.org>
28020
28021         rename test: Add comments.
28022         * tests/test-rename.h (test_rename): Add structure and comments.
28023
28024 2010-11-13  Eric Blake  <eblake@redhat.com>
28025
28026         maintainer-makefile: cover a few more files
28027         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28028         scripts generated within C files, for libvirt.
28029
28030 2010-11-13  Bruno Haible  <bruno@clisp.org>
28031
28032         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28033         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28034         character, return the number of bytes that belong together, not always
28035         1.
28036         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28037         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28038         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28039         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28040         number of bytes of an invalid character.
28041         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28042         (main): Invoke it.
28043         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28044         results.
28045         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28046         malformed byte sequences.
28047         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28048         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28049         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28050         Reported by Ben Pfaff and Paolo Bonzini.
28051
28052 2010-11-13  Bruno Haible  <bruno@clisp.org>
28053
28054         openat: Work around glibc bug with fchownat() and empty file names.
28055         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28056         (gl_FUNC_FCHOWNAT): Invoke it.
28057         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28058         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28059         Reported by Gary V. Vaughan <gary@gnu.org>.
28060
28061 2010-11-13  Bruno Haible  <bruno@clisp.org>
28062
28063         openat: Ensure autoconf macro ordering.
28064         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28065         gl_USE_SYSTEM_EXTENSIONS.
28066         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28067
28068 2010-11-13  Bruno Haible  <bruno@clisp.org>
28069
28070         Update comments.
28071         * lib/unistr/u8-check.c: Update file name in comments.
28072         * lib/unistr/u8-mblen.c: Likewise.
28073         * lib/unistr/u8-prev.c: Likewise.
28074         * lib/unistr/u8-strmblen.c: Likewise.
28075         * lib/unistr/u8-strmbtouc.c: Likewise.
28076
28077 2010-11-13  Jim Meyering  <meyering@redhat.com>
28078
28079         tests: avoid test failure on Solaris 10 due to lack of PATH export
28080         * tests/test-update-copyright.sh: Don't forget to export PATH.
28081
28082         init.sh: ensure that IFS is defined, just in case...
28083         * tests/init.sh (setup_): Ensure that IFS is defined,
28084         so that saving and restoring it works as expected.  This
28085         appears to be useful at least for an old version of dash
28086         from a long time ago (RH 6).  See here for details:
28087         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28088
28089         maint.mk: tighten "test a == b" check
28090         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28091         test to files that contain something like #!/bin/sh.
28092         Without this, coreutils would get two false positives in
28093         the comments of C source files.
28094
28095 2010-11-12  Eric Blake  <eblake@redhat.com>
28096
28097         bootstrap: fix typo in previous attempt
28098         * build-aux/bootstrap (buildreq): Correct the grouping.
28099         Reported by Paul Eggert.
28100
28101         maintainer-makefile: prohibit test x == x
28102         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28103         Based on a report by Matthias Bolte.
28104
28105         bootstrap: allow FreeBSD gzip
28106         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28107         which has no '.' and goes to stderr.
28108         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28109         Reported by Matthias Bolte.
28110
28111         maintainer-makefile: check for i18n setup
28112         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28113         will likely work.
28114
28115 2010-11-12  Bruno Haible  <bruno@clisp.org>
28116
28117         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28118         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28119         * lib/nanosleep.c (nanosleep): Likewise.
28120
28121 2010-11-11  Bruno Haible  <bruno@clisp.org>
28122
28123         fcntl-h: Fix for use of C++ on glibc systems.
28124         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28125         also on glibc systems in C++ mode.
28126         Reported by Gary V. Vaughan <gary@gnu.org>.
28127
28128 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28129
28130         mknod: avoid false failure with dash
28131         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28132
28133 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28134
28135         unlink: Fix "is it should" typo in diagnostic.
28136         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28137         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28138
28139 2010-11-11  Bruno Haible  <bruno@clisp.org>
28140
28141         Tests for module 'strerror_r-posix'.
28142         * modules/strerror_r-posix-tests: New file.
28143         * tests/test-strerror_r.c: New file.
28144         * tests/test-string-c++.cc: Check the signature of strerror_r.
28145
28146         New module 'strerror_r-posix'.
28147         * lib/string.in.h (strerror_r): New declaration.
28148         * lib/strerror_r.c: New file.
28149         * m4/strerror_r.m4: New file.
28150         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28151         of strerror_r.
28152         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28153         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28154         * modules/strerror_r-posix: New file.
28155         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28156         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28157         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28158         portability problems.
28159
28160 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28161
28162         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28163         line is also considered for output. Quoted function name in shell
28164         command, so temporary files for functions like MyClass::operator()
28165         are removed correctly without errors.
28166
28167 2010-11-09  Bruno Haible  <bruno@clisp.org>
28168
28169         * doc/posix-functions/strerror.texi: List more failing platforms.
28170
28171         * doc/posix-functions/strerror.texi: Add a comment.
28172
28173 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28174
28175         fdopendir: fix bug on MacOS X when low on file descriptors
28176
28177         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28178         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28179         All callers changed.
28180         (fdopendir): Invoke save_cwd at the top level, not after using
28181         multiple dup() calls to use up file descriptors.  Then retry
28182         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28183         less than the maximum number of open file descriptors, because
28184         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28185         on Mac OS X 10.6.4 for tar 1.24
28186         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28187         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28188         and for tar 1.25
28189         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28190
28191 2010-11-07  Bruno Haible  <bruno@clisp.org>
28192
28193         vasnprintf: Support I flag on glibc systems.
28194         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28195         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28196         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28197         snprintf function.
28198         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28199         glibc systems.
28200         * tests/test-vasnprintf-posix3.c: New file.
28201         * modules/vasnprintf-posix-tests (Files): Add it.
28202         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28203
28204 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28205
28206         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28207         * MODULES.html.sh: For compiler warnings, use name
28208         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28209
28210 2010-11-05  Eric Blake  <eblake@redhat.com>
28211
28212         ceil, floor: avoid spurious failure with icc
28213         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28214         [denormals-as-zero] when optimizing without -mieee-fp option.
28215         * tests/test-floorf2.c (floorf_reference): Likewise.
28216         * tests/test-ceilf1.c (dummy): New function.
28217         (main): Use it to outsmart icc's optimization.
28218         * tests/test-floorf1.c (dummy, main): Likewise.
28219
28220         tests: require working signbit
28221         * modules/ceilf-tests (Depends-on): Add signbit.
28222         * modules/ceill-tests (Depends-on): Likewise.
28223         * modules/floorf-tests (Depends-on): Likewise.
28224         * modules/floorl-tests (Depends-on): Likewise.
28225         * modules/round-tests (Depends-on): Likewise.
28226         * modules/roundf-tests (Depends-on): Likewise.
28227         * modules/roundl-tests (Depends-on): Likewise.
28228         * modules/trunc-tests (Depends-on): Likewise.
28229         * modules/truncf-tests (Depends-on): Likewise.
28230         * modules/truncl-tests (Depends-on): Likewise.
28231
28232         strtod: work around icc bug
28233         * lib/strtod.c (minus_zero): Define to working value.
28234         (strtod): Use it to avoid icc bug.
28235
28236         copysign: enhance tests
28237         * modules/copysign-tests (Files): Add minus-zero.h.
28238         * tests/test-copysign.c (main): Also test zeros.
28239
28240 2010-11-04  Eric Blake  <eblake@redhat.com>
28241
28242         ceil, floor, round, trunc: enhance tests of -0
28243         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28244         * tests/test-ceill.c (main): Likewise.
28245         * tests/test-floorf1.c (main): Likewise.
28246         * tests/test-floorl.c (main): Likewise.
28247         * tests/test-round1.c (main): Likewise.
28248         * tests/test-roundf1.c (main): Likewise.
28249         * tests/test-roundl.c (main): Likewise.
28250         * tests/test-trunc1.c (main): Likewise.
28251         * tests/test-truncf1.c (main): Likewise.
28252         * tests/test-truncl.c (main): Likewise.
28253
28254 2010-11-04  Eric Blake  <eblake@redhat.com>
28255
28256         frexp, tests: work around ICC bug with -zero
28257         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28258         works with more compilers.
28259         * tests/minus-zero.h: New file.
28260         * modules/ceilf-tests (Files): Include it.
28261         * modules/ceill-tests (Files): Likewise.
28262         * modules/floorf-tests (Files): Likewise.
28263         * modules/floorl-tests (Files): Likewise.
28264         * modules/frexp-nolibm-tests (Files): Likewise.
28265         * modules/frexp-tests (Files): Likewise.
28266         * modules/frexpl-nolibm-tests (Files): Likewise.
28267         * modules/frexpl-tests (Files): Likewise.
28268         * modules/isnan-tests (Files): Likewise.
28269         * modules/isnand-nolibm-tests (Files): Likewise.
28270         * modules/isnand-tests (Files): Likewise.
28271         * modules/isnanf-nolibm-tests (Files): Likewise.
28272         * modules/isnanf-tests (Files): Likewise.
28273         * modules/isnanl-nolibm-tests (Files): Likewise.
28274         * modules/isnanl-tests (Files): Likewise.
28275         * modules/round-tests (Files): Likewise.
28276         * modules/roundf-tests (Files): Likewise.
28277         * modules/roundl-tests (Files): Likewise.
28278         * modules/ldexpl-tests (Files): Likewise.
28279         * modules/signbit-tests (Files): Likewise.
28280         * modules/snprintf-posix-tests (Files): Likewise.
28281         * modules/sprintf-posix-tests (Files): Likewise.
28282         * modules/strtod-tests (Files): Likewise.
28283         * modules/trunc-tests (Files): Likewise.
28284         * modules/truncf-tests (Files): Likewise.
28285         * modules/truncl-tests (Files): Likewise.
28286         * modules/vsnprintf-posix-tests (Files): Likewise.
28287         * modules/vsprintf-posix-tests (Files): Likewise.
28288         * modules/vasnprintf-posix-tests (Files): Likewise.
28289         * modules/vasprintf-posix-tests (Files): Likewise.
28290         * tests/test-ceilf1.c (main): Use it.
28291         * tests/test-ceill.c (main): Likewise.
28292         * tests/test-floorf1.c (main): Likewise.
28293         * tests/test-floorl.c (main): Likewise.
28294         * tests/test-frexp.c (main): Likewise.
28295         * tests/test-frexpl.c (main): Likewise.
28296         * tests/test-isnan.c (main): Likewise.
28297         * tests/test-isnand.h (main): Likewise.
28298         * tests/test-isnanf.h (main): Likewise.
28299         * tests/test-isnanl.h (main): Likewise.
28300         * tests/test-ldexpl.c (main): Likewise.
28301         * tests/test-round.c (main): Likewise.
28302         * tests/test-roundf.c (main): Likewise.
28303         * tests/test-roundl.c (main): Likewise.
28304         * tests/test-signbit.c (test_signbitf, test_signbitd)
28305         (test_signbitl): Likewise.
28306         * tests/test-snprintf-posix.h (test_function): Likewise.
28307         * tests/test-sprintf-posix.h (test_function): Likewise.
28308         * tests/test-strtod.c (main): Likewise.
28309         * tests/test-trunc1.c (main): Likewise.
28310         * tests/test-truncf1.c (main): Likewise.
28311         * tests/test-truncl.c (main): Likewise.
28312
28313         isnanl: work around icc bug
28314         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28315
28316 2010-11-03  Eric Blake  <eblake@redhat.com>
28317
28318         tests: fix compiler warnings
28319         * tests/test-getopt.h (test_getopt): Fix condition.
28320         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28321         * tests/test-pipe2.c (main): Likewise.
28322         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28323
28324         utimens: fix broken m4 test
28325         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28326
28327 2010-10-28  Bruno Haible  <bruno@clisp.org>
28328
28329         posix_spawn*, getdtablesize: Relax license.
28330         * modules/posix_spawn (License): Change to LGPLv2+.
28331         * modules/posix_spawnp (License): Likewise.
28332         * modules/posix_spawn-internal (License): Likewise.
28333         * modules/posix_spawnattr_init (License): Likewise.
28334         * modules/posix_spawnattr_getflags (License): Likewise.
28335         * modules/posix_spawnattr_setflags (License): Likewise.
28336         * modules/posix_spawnattr_getpgroup (License): Likewise.
28337         * modules/posix_spawnattr_setpgroup (License): Likewise.
28338         * modules/posix_spawnattr_getschedparam (License): Likewise.
28339         * modules/posix_spawnattr_setschedparam (License): Likewise.
28340         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28341         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28342         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28343         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28344         * modules/posix_spawnattr_getsigmask (License): Likewise.
28345         * modules/posix_spawnattr_setsigmask (License): Likewise.
28346         * modules/posix_spawnattr_destroy (License): Likewise.
28347         * modules/posix_spawn_file_actions_init (License): Likewise.
28348         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28349         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28350         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28351         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28352         * modules/getdtablesize (License): Likewise.
28353         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28354
28355 2010-10-26  Bruno Haible  <bruno@clisp.org>
28356
28357         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28358         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28359         Cygwin and mingw.
28360         Suggested by Eric Blake.
28361
28362 2010-10-26  Bruno Haible  <bruno@clisp.org>
28363
28364         stdio: Work around compilation error due to renameat() on Solaris 10.
28365         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28366         * lib/renameat.c: Don't include <unistd.h> here.
28367         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28368         Reported by Paul Eggert and Eric Blake.
28369
28370 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28371
28372         renameat: port to Solaris 10, which declares renameat in unistd.h
28373
28374         * lib/renameat.c: Include unistd.h before stdio.h, because
28375         Solaris 10 declares renameat in unistd.h.  Problem encountered
28376         when building GNU tar 1.24 on Solaris 10.
28377
28378 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28379
28380         fdopendir: fix C89 compilation
28381         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28382         compilers.
28383
28384 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28385
28386         inttostr: simplify by removing unnecessary redundancy
28387         * lib/anytostr.c: Don't include verify.h.
28388         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28389         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28390         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28391         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28392         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28393         Likewise.
28394         * modules/inttostr (Depends-on): Remove 'verify'.
28395
28396 2010-10-23  Bruno Haible  <bruno@clisp.org>
28397
28398         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28399         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28400         Reported by Eric Blake.
28401
28402 2010-10-23  Bruno Haible  <bruno@clisp.org>
28403
28404         Tests: Fix LOCALE_JA on MirBSD 10.
28405         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28406         to an UTF-8 locale.
28407         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28408         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28409         Reported by Eric Blake.
28410
28411 2010-10-21  Bruno Haible  <bruno@clisp.org>
28412
28413         nl_langinfo test: Avoid test failure on NetBSD 5.
28414         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28415         Reported by Eric Blake.
28416
28417 2010-10-21  Eric Blake  <eblake@redhat.com>
28418
28419         c-stack: work around libsigsegv 2.8 bug
28420         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28421         overflow on at least PowerPC64.
28422
28423 2010-10-17  Bruno Haible  <bruno@clisp.org>
28424
28425         userspec: Drop redundant file.
28426         * modules/userspec (Files): Remove lib/inttostr.h.
28427
28428 2010-10-17  Bruno Haible  <bruno@clisp.org>
28429
28430         nl_langinfo tests: Silence some warnings.
28431         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28432         Reported by Jim Meyering.
28433
28434 2010-10-17  Bruno Haible  <bruno@clisp.org>
28435
28436         Make use of GCC's attribute __alloc_size__.
28437         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28438         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28439         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28440         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28441         __alloc_size__.
28442         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28443         Suggested by Jim Meyering.
28444
28445 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28446
28447         bootstrap: anchor .gitignore entries.
28448         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28449         with...
28450         (insert_vc_ignore): ... this new function, which prepends `/' to
28451         all .gitignore entries before passing them to
28452         insert_sorted_if_absent.
28453
28454 2010-10-16  Bruno Haible  <bruno@clisp.org>
28455
28456         nextafter: Fix configure check.
28457         * modules/nextafter (configure.ac): Correct expected prototype.
28458
28459 2010-10-16  Bruno Haible  <bruno@clisp.org>
28460
28461         termios: Update documentation.
28462         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28463
28464 2010-10-16  Bruno Haible  <bruno@clisp.org>
28465
28466         tests: Make them compile with TinyCC.
28467         * tests/test-strstr.c (main): Remove parentheses around array
28468         initializer.
28469
28470 2010-10-15  Eric Blake  <eblake@redhat.com>
28471
28472         ignore-value: make header idempotent
28473         * lib/ignore-value.h: Add double-inclusion guards.
28474         Reported by Stefan Berger.
28475
28476 2010-10-15  Jim Meyering  <meyering@redhat.com>
28477
28478         GNUmakefile: handle "stable" target, not "major"
28479         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28480         lists in maint.mk and announce-gen.  Without this, "make stable"
28481         would fail to ensure that $(VERSION) is up to date.
28482
28483 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28484
28485         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28486         & co.
28487
28488 2010-10-14  Bruno Haible  <bruno@clisp.org>
28489
28490         vasnprintf: Don't set errno to 0.
28491         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28492         block that sets it to 0.
28493         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28494
28495 2010-10-14  Bruno Haible  <bruno@clisp.org>
28496
28497         socketlib: Fix.
28498         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28499         gl_PREREQ_SYS_H_WINSOCK2.
28500         Reported by Ian Beckwith <ianb@erislabs.net>.
28501
28502 2010-10-13  Jim Meyering  <meyering@redhat.com>
28503
28504         test-select-stdin.c: avoid warn_unused_result warnings
28505         * tests/test-select-stdin.c: Include "macros.h".
28506         ASSERT that read and fflush succeed.
28507
28508 2010-10-13  Jim Meyering  <meyering@redhat.com>
28509
28510         git-version-gen: do require git-VC'd files in cwd
28511         * build-aux/git-version-gen: Reject a git version string
28512         if there are no commits associated with the current directory.
28513         This avoids an unlikely false-positive (unrelated dir whose parent
28514         repository also contains a tag matching v*), as pointed out
28515         by Giuseppe Scrivano in
28516         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28517
28518 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28519
28520         argv-iter: omit nonconforming declaration
28521         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28522         enum arg_iter_err declaration, which doesn't conform to C99.
28523         Solaris 10 cc warns about this.
28524
28525 2010-10-13  Eric Blake  <eblake@redhat.com>
28526
28527         termios: fix compilation on mingw
28528         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28529         (gl_TERMIOS_H): Adjust it on mingw.
28530         * modules/termios (Makefile.am): Substitute new key.
28531         * lib/termios.in.h (includes): Make include_next conditional.
28532         * doc/posix-headers/termios.texi (termios.h): Update
28533         documentation.
28534         Reported by Daniel P. Berrange.
28535
28536 2010-10-13  Jim Meyering  <meyering@redhat.com>
28537
28538         git-version-gen: don't require that .git/ be in the current dir
28539         * build-aux/git-version-gen: Adjust this script so that it works
28540         when run from any working directory beneath the top-level .git/-
28541         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28542         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28543
28544         test-select: avoid warn_unused_result warnings
28545         * tests/test-select.c: Include "macros.h".
28546         ASSERT that each call to read, write, and pipe succeeds.
28547         While not technically required, also check each "close".
28548         * modules/select-tests (Files): Add tests/macros.h.
28549
28550         test-symlinkat: remove declaration of unused local
28551         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28552
28553         test-inttostr: avoid shadowing warnings
28554         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28555         and use malloc rather than the stack for the same reason as
28556         mentioned in the comment justifying the other allocation.
28557
28558 2010-10-11  Bruno Haible  <bruno@clisp.org>
28559
28560         stdlib: Allow multiple gnulib generated replacements to coexist.
28561         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28562         Reported by Sam Steingold <sds@gnu.org>.
28563
28564 2010-10-11  Jim Meyering  <meyering@redhat.com>
28565
28566         fix a documentation typo
28567         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28568
28569 2010-10-11  Eric Blake  <eblake@redhat.com>
28570
28571         futimens: work around Solaris 11 bug
28572         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28573         * tests/test-futimens.h (test_futimens): Enhance, rather than
28574         weaken test.
28575         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28576
28577 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28578
28579         Indentation.
28580         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28581         higher-level operators more to the left.
28582
28583 2010-10-11  Jim Meyering  <meyering@redhat.com>
28584
28585         test-futimens: avoid unwarranted test failure on Solaris 5.11
28586         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28587         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28588         because it tries to dereference the NULL name argument.
28589
28590 2010-10-11  Bruno Haible  <bruno@clisp.org>
28591
28592         Indentation.
28593         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28594         indentation.
28595
28596 2010-10-11  Jim Meyering  <meyering@redhat.com>
28597
28598         spawn.in.h: make indentation consistent with parentheses
28599         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28600         Make indentation consistent with parentheses.
28601
28602 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28603
28604         Fix mismatched parens in previous commit
28605         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28606         parens.
28607
28608 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28609
28610         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28611
28612         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28613         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28614         * lib/malloca.c: Include "verify.h".
28615         (verify1): Remove, replacing with a verify call.
28616         * lib/relocwrapper.c (verify1): Likewise.
28617         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28618         Likewise.
28619         * modules/malloca (Depends-on): Add 'verify'.
28620         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28621         * modules/vasnprintf (Depends-on): Add 'verify'.
28622         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28623         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28624         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28625         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28626         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28627         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28628         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28629
28630         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28631
28632         Formerly the style was sometimes 2*X - 1, because the C standard
28633         was wrongly thought to disallow ?: in integral constant expressions.
28634         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28635         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28636         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28637         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28638         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28639         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28640         verify that time_t cannot be floating.
28641
28642 2010-10-08  Eric Blake  <eblake@redhat.com>
28643
28644         time: enforce recent POSIX ruling that time_t is integral
28645         * lib/time.in.h (__time_t_must_be_integral): Detect any
28646         problematic systems, allowing the rest of gnulib to assume POSIX.
28647
28648 2010-10-08  Jim Meyering  <meyering@redhat.com>
28649
28650         fdopendir: fix a bug on systems lacking openat and /proc support
28651         OpenBSD 4.7 is one such system.  The most noticeable effect was
28652         failure of any application making nontrivial use of fts: rm, du,
28653         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28654           ./rm: traversal failed: `a': Bad file descriptor
28655         Debugging that, you see that even though FD 6 was closed just
28656         prior to the opendir call in fd_clone_opendir, its resulting
28657         dir->dd_fd was 8, rather than the expected value of 6:
28658
28659         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28660         93                close (fd);
28661         (gdb) n
28662         94                dir = fd_clone_opendir (dupfd);
28663         (gdb) n
28664         95                saved_errno = errno;
28665         (gdb) p dir->dd_fd
28666         $11 = 8
28667
28668         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28669         The problem is that on OpenBSD, fd_clone_opendir has to resort
28670         to using the old-style save/restore CWD mechanism, due to its
28671         lack of openat/proc support, and *that* would steal the FD (6)
28672         that opendir was supposed to use.
28673
28674         The fix is to squirrel away the desired FD so that save_cwd uses a
28675         different one, and then free the dest FD right before calling opendir.
28676         That guarantees opendir will use the required file descriptor.
28677
28678         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28679
28680 2010-10-08  Bruno Haible  <bruno@clisp.org>
28681
28682         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28683         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28684
28685 2010-10-08  Bruno Haible  <bruno@clisp.org>
28686
28687         nanosleep: Make replacement POSIX compliant.
28688         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28689         is out of range.
28690         Reported by Jim Meyering.
28691
28692 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28693
28694         bootstrap: add hook for altering gnulib.mk, for Bison
28695         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28696         the Bison bootstrapping process can rewrite file names and variables
28697         in this file before later parts of 'bootstrap' use the file.
28698         Bison wants to include lib/gnulib.mk from the top-level makefile,
28699         so it needs the file names in this file to be relative to the top
28700         level, not relative to lib; plus it needs variable names to be
28701         rewritten.
28702         (slurp): Use the new function.
28703
28704         bootstrap: reformat for readability
28705         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28706
28707 2010-10-08  Eric Blake  <eblake@redhat.com>
28708
28709         docs: update cygwin progress
28710         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28711         1.7.7.
28712         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28713         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28714         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28715         * doc/posix-functions/carg.texi (carg): Likewise.
28716         * doc/posix-functions/cargf.texi (cargf): Likewise.
28717         * doc/posix-functions/casin.texi (casin): Likewise.
28718         * doc/posix-functions/casinf.texi (casinf): Likewise.
28719         * doc/posix-functions/casinh.texi (casinh): Likewise.
28720         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28721         * doc/posix-functions/catan.texi (catan): Likewise.
28722         * doc/posix-functions/catanf.texi (catanf): Likewise.
28723         * doc/posix-functions/catanh.texi (catanh): Likewise.
28724         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28725         * doc/posix-functions/ccos.texi (ccos): Likewise.
28726         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28727         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28728         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28729         * doc/posix-functions/cexp.texi (cexp): Likewise.
28730         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28731         * doc/posix-functions/cimag.texi (cimag): Likewise.
28732         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28733         * doc/posix-functions/clog.texi (clog): Likewise.
28734         * doc/posix-functions/clogf.texi (clogf): Likewise.
28735         * doc/posix-functions/conj.texi (conj): Likewise.
28736         * doc/posix-functions/conjf.texi (conjf): Likewise.
28737         * doc/posix-functions/cpow.texi (cpow): Likewise.
28738         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28739         * doc/posix-functions/cproj.texi (cproj): Likewise.
28740         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28741         * doc/posix-functions/creal.texi (creal): Likewise.
28742         * doc/posix-functions/crealf.texi (crealf): Likewise.
28743         * doc/posix-functions/csin.texi (csin): Likewise.
28744         * doc/posix-functions/csinf.texi (csinf): Likewise.
28745         * doc/posix-functions/csinh.texi (csinh): Likewise.
28746         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28747         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28748         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28749         * doc/posix-functions/ctan.texi (ctan): Likewise.
28750         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28751         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28752         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28753         * doc/posix-headers/complex.texi (complex.h): Likewise.
28754
28755 2010-10-07  Jim Meyering  <meyering@redhat.com>
28756
28757         parse-datetime: avoid compilation failure on OpenBSD 4.7
28758         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28759         This works around a compilation failure on OpenBSD 4.7:
28760         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28761
28762 2010-10-07  Eric Blake  <eblake@redhat.com>
28763
28764         docs: update cygwin progress
28765         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28766         1.7.6.
28767         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28768         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28769         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28770         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28771         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28772         Likewise.
28773         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28774         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28775         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28776         Likewise.
28777         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28778         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28779         Likewise.
28780         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28781         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28782         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28783         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28784         Likewise.
28785         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28786         Likewise.
28787         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28788
28789         docs: update parse-datetime history
28790         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28791         documentation of this function's history and alternatives.
28792
28793         cygwin: use more robust version check
28794         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28795         exclude an eventual cygwin 1.9.1.
28796         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28797         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28798         (gl_FUNC_STRCASESTR): Likewise.
28799         Reported by Bruno Haible.
28800
28801 2010-10-06  Bruno Haible  <bruno@clisp.org>
28802
28803         string, sys_select: Avoid #including large headers unless necessary.
28804         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28805         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28806         OSF/1, BeOS, Haiku.
28807         Reported by Jim Meyering.
28808
28809 2010-10-05  Eric Blake  <eblake@redhat.com>
28810
28811         memmem, strstr, strcasestr: fix bug with long periodic needle
28812         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28813         periodic needle having false positive.
28814         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28815         and cygwin 1.7.7.
28816         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28817         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28818         (gl_FUNC_STRCASESTR): Likewise.
28819         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28820         * tests/test-memmem.c (main): Expose the bug.
28821         * tests/test-strcasestr.c (main): Likewise.
28822         * tests/test-strstr.c (main): Likewise.
28823         * tests/test-c-strcasestr.c (main): Likewise.
28824         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28825         * doc/posix-functions/strstr.texi (strstr): Likewise.
28826         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28827         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28828
28829 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28830
28831         parse-datetime: do some more renaming
28832         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28833         parse_datetime, not get_date.  Mention the renaming.
28834         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28835         in comments.
28836         * m4/bison.m4: Likewise.
28837
28838 2010-10-05  Eric Blake  <eblake@redhat.com>
28839
28840         parse-datetime: better name than get_date
28841         * NEWS: Reword the deprecation notice.
28842         * modules/get_date: Rename to modules/parse-datetime.
28843         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28844         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28845         * lib/get_date.y: Rename to lib/parse-datetime.y.
28846         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28847         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28848         * doc/getdate.texi: Provide fallback wrapper.
28849         * lib/getdate.h: Move guts, and wrap...
28850         * lib/parse-datetime.h: ...new file.
28851         * lib/parse-datetime.y (get_date): Rename...
28852         (parse_datetime): ...to this.
28853         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28854         (gl_PARSE_DATETIME): ...to this.
28855         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28856         documentation.
28857         * modules/getdate (Files): Provide fallback docs and header.
28858         (Notice, Depends-on): Update references.
28859         * tests/test-parse-datetime.c: Likewise.
28860         * DEPENDENCIES: Likewise.
28861         * MODULES.html.sh (Date and time <time.h>): Likewise.
28862         * doc/parse-datetime.texi (Date input formats)
28863         (Authors of parse_datetime): Likewise.
28864         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28865         (Include): Likewise.
28866         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28867         * gnulib-tool: Likewise.
28868         * m4/bison.m4 (gl_BISON): Likewise.
28869         Suggested by Bruno Haible.
28870
28871 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28872
28873         more ports to Solaris tr, which needs [] around ranges
28874         * gnulib-tool: Solaris tr needs [] around ranges.
28875         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28876         * tests/test-pipe-filter-gi1.c (main): Likewise.
28877         * tests/test-pipe-filter-ii1.c (main): Likewise.
28878
28879 2010-10-05  Eric Blake  <eblake@redhat.com>
28880
28881         bootstrap: fix Solaris regression
28882         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28883         around ranges.
28884         Reported by Pádraig Brady.
28885
28886         bootstrap: work with pkg-config
28887         * build-aux/bootstrap (check_versions): Also transliterate - in
28888         prerequisite name.
28889         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28890         prerequisites that were already found, to avoid confusion.
28891         Reported by Justin Clift.
28892
28893         faccessat: remove unused wrappers
28894         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28895         presence of these wrappers dragged in -lgen on Solaris.
28896         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28897
28898 2010-10-05  Jim Meyering  <meyering@redhat.com>
28899
28900         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28901         * Makefile (sc_pragma_columns): New syntax-check rule.
28902
28903 2010-10-04  Bruno Haible  <bruno@clisp.org>
28904
28905         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28906         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28907         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28908         Reported by Bruce Korb and Eric Blake.
28909
28910 2010-10-04  Bruno Haible  <bruno@clisp.org>
28911
28912         threadlib: Make option --with-libpth-prefix work.
28913         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28914         use $LIBPTH, not just -lpth.
28915
28916 2010-10-04  Bruno Haible  <bruno@clisp.org>
28917
28918         Avoid line length limitation from HP NonStop system header files.
28919         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28920         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28921         * lib/ctype.in.h: Likewise.
28922         * lib/dirent.in.h: Likewise.
28923         * lib/errno.in.h: Likewise.
28924         * lib/fcntl.in.h: Likewise.
28925         * lib/float.in.h: Likewise.
28926         * lib/getopt.in.h: Likewise.
28927         * lib/iconv.in.h: Likewise.
28928         * lib/inttypes.in.h: Likewise.
28929         * lib/langinfo.in.h: Likewise.
28930         * lib/locale.in.h: Likewise.
28931         * lib/math.in.h: Likewise.
28932         * lib/netdb.in.h: Likewise.
28933         * lib/netinet_in.in.h: Likewise.
28934         * lib/poll.in.h: Likewise.
28935         * lib/pthread.in.h: Likewise.
28936         * lib/pty.in.h: Likewise.
28937         * lib/sched.in.h: Likewise.
28938         * lib/se-selinux.in.h: Likewise.
28939         * lib/search.in.h: Likewise.
28940         * lib/signal.in.h: Likewise.
28941         * lib/spawn.in.h: Likewise.
28942         * lib/stdarg.in.h: Likewise.
28943         * lib/stddef.in.h: Likewise.
28944         * lib/stdint.in.h: Likewise.
28945         * lib/stdio.in.h: Likewise.
28946         * lib/stdlib.in.h: Likewise.
28947         * lib/string.in.h: Likewise.
28948         * lib/strings.in.h: Likewise.
28949         * lib/sys_file.in.h: Likewise.
28950         * lib/sys_ioctl.in.h: Likewise.
28951         * lib/sys_select.in.h: Likewise.
28952         * lib/sys_socket.in.h: Likewise.
28953         * lib/sys_stat.in.h: Likewise.
28954         * lib/sys_time.in.h: Likewise.
28955         * lib/sys_times.in.h: Likewise.
28956         * lib/sys_utsname.in.h: Likewise.
28957         * lib/sys_wait.in.h: Likewise.
28958         * lib/sysexits.in.h: Likewise.
28959         * lib/termios.in.h: Likewise.
28960         * lib/time.in.h: Likewise.
28961         * lib/unistd.in.h: Likewise.
28962         * lib/wchar.in.h: Likewise.
28963         * lib/wctype.in.h: Likewise.
28964         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28965         * modules/ctype (Makefile.am): Likewise.
28966         * modules/dirent (Makefile.am): Likewise.
28967         * modules/errno (Makefile.am): Likewise.
28968         * modules/fcntl-h (Makefile.am): Likewise.
28969         * modules/float (Makefile.am): Likewise.
28970         * modules/getopt-posix (Makefile.am): Likewise.
28971         * modules/iconv-h (Makefile.am): Likewise.
28972         * modules/inttypes (Makefile.am): Likewise.
28973         * modules/langinfo (Makefile.am): Likewise.
28974         * modules/locale (Makefile.am): Likewise.
28975         * modules/math (Makefile.am): Likewise.
28976         * modules/netdb (Makefile.am): Likewise.
28977         * modules/netinet_in (Makefile.am): Likewise.
28978         * modules/poll-h (Makefile.am): Likewise.
28979         * modules/pthread (Makefile.am): Likewise.
28980         * modules/pty (Makefile.am): Likewise.
28981         * modules/sched (Makefile.am): Likewise.
28982         * modules/search (Makefile.am): Likewise.
28983         * modules/selinux-h (Makefile.am): Likewise.
28984         * modules/signal (Makefile.am): Likewise.
28985         * modules/spawn (Makefile.am): Likewise.
28986         * modules/stdarg (Makefile.am): Likewise.
28987         * modules/stddef (Makefile.am): Likewise.
28988         * modules/stdint (Makefile.am): Likewise.
28989         * modules/stdio (Makefile.am): Likewise.
28990         * modules/stdlib (Makefile.am): Likewise.
28991         * modules/string (Makefile.am): Likewise.
28992         * modules/strings (Makefile.am): Likewise.
28993         * modules/sys_file (Makefile.am): Likewise.
28994         * modules/sys_ioctl (Makefile.am): Likewise.
28995         * modules/sys_select (Makefile.am): Likewise.
28996         * modules/sys_socket (Makefile.am): Likewise.
28997         * modules/sys_stat (Makefile.am): Likewise.
28998         * modules/sys_time (Makefile.am): Likewise.
28999         * modules/sys_times (Makefile.am): Likewise.
29000         * modules/sys_utsname (Makefile.am): Likewise.
29001         * modules/sys_wait (Makefile.am): Likewise.
29002         * modules/sysexits (Makefile.am): Likewise.
29003         * modules/termios (Makefile.am): Likewise.
29004         * modules/time (Makefile.am): Likewise.
29005         * modules/unistd (Makefile.am): Likewise.
29006         * modules/wchar (Makefile.am): Likewise.
29007         * modules/wctype (Makefile.am): Likewise.
29008
29009 2010-10-04  Bruno Haible  <bruno@clisp.org>
29010
29011         read-file tests: Avoid a test failure on NonStop Kernel.
29012         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29013         a regular file.
29014         Reported by Joachim Schmitz <schmitz@hp.com>.
29015
29016 2010-10-03  Bruno Haible  <bruno@clisp.org>
29017
29018         gnulib-tool: Fixes for --create-testdir with --libtool.
29019         * gnulib-tool (func_get_automake_snippet): Don't augment
29020         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29021         an executable.
29022         (func_create_testdir): Handle module 'alloca' like func_import.
29023         Reported by Bruce Korb <bruce.korb@gmail.com>.
29024
29025 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29026
29027         Avoid some lines longer than 80 characters.
29028         * lib/stdint.in.h: Break long comment lines.
29029         * lib/math.in.h: Likewise.
29030         (_GL_NUM_UINT_WORDS): New macro, for readability.
29031         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29032         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29033         * lib/stdlib.in.h: Likewise.
29034         * lib/spawn.in.h: Likewise.
29035         * lib/sys_socket.in.h: Update an URL.
29036         * lib/sys_stat.in.h: Break long line.
29037
29038 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29039
29040         Improve pmccabe2html.
29041         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29042         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29043         when the sources change. Remove the line in the HTML about "Used
29044         ranges" (which implied that there might be other unused ranges),
29045         rename "Resume" to "Summary" (easier to understand for more users).
29046         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29047         styles, and some unnecessary blank lines.
29048
29049 2010-10-03  Bruno Haible  <bruno@clisp.org>
29050             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29051
29052         acl: Add support for ACLs on NonStop Kernel.
29053         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29054         Check whether the function aclsort() exists.
29055         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29056         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29057         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29058         (acl_nontrivial [HAVE_ACLSORT]: New function.
29059         (file_has_acl): Implement for NonStop Kernel.
29060         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29061         (qset_acl): Implement for NonStop Kernel.
29062         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29063         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29064         (main): Implement for NonStop Kernel.
29065         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29066         Kernel. Handle this flavor.
29067         * tests/test-set-mode-acl.sh: Likewise.
29068         * tests/test-copy-acl.sh: Likewise.
29069         * tests/test-copy-file.sh: Likewise.
29070
29071 2010-10-03  Bruno Haible  <bruno@clisp.org>
29072
29073         Info about ACLs on NonStop Kernel.
29074         * doc/acl-resources.txt: Add info about NonStop Kernel.
29075         References by Joachim Schmitz <schmitz@hp.com>.
29076
29077 2010-10-02  Bruno Haible  <bruno@clisp.org>
29078
29079         Define missing EDQUOT on NonStop Kernel.
29080         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29081         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29082         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29083         missing.
29084         * doc/posix-headers/errno.texi: Mention the NSK bug.
29085         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29086         Reported by Joachim Schmitz <schmitz@hp.com>.
29087
29088 2010-10-02  Bruno Haible  <bruno@clisp.org>
29089
29090         Update doc for POSIX:2008.
29091         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29092         Update URL of POSIX specification.
29093
29094 2010-10-02  Bruno Haible  <bruno@clisp.org>
29095
29096         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29097         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29098         from gnulib, not from Automake.
29099
29100 2010-10-02  Bruno Haible  <bruno@clisp.org>
29101
29102         New module 'system-posix'.
29103         * modules/system-posix: New file.
29104         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29105         module is present.
29106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29107         GNULIB_SYSTEM_POSIX.
29108         * modules/stdlib (Depends-on): Remove sys_wait.
29109         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29110         * doc/posix-functions/system.texi: Mention the new module.
29111         * doc/posix-headers/stdlib.texi: Likewise.
29112         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29113         define test_sys_wait_macros to a no-op.
29114         Reported by Sam Steingold <sds@gnu.org>.
29115
29116 2010-09-30  Bruno Haible  <bruno@clisp.org>
29117
29118         More renaming from 'getdate' to 'get_date'.
29119         * doc/get_date.texi: Renamed from doc/getdate.texi.
29120         * modules/get_date (Files): Update.
29121         * MODULES.html.sh (Date and time <time.h>): Update.
29122         * DEPENDENCIES: Update.
29123         * gnulib-tool: Update comment.
29124         * m4/bison.m4 (gl_BISON): Likewise.
29125         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29126
29127 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29128
29129         bootstrap: support ACLOCAL_FLAGS during aclocal
29130         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29131         can add additional -I dir for third-party .m4 files.
29132
29133 2010-09-30  Eric Blake  <eblake@redhat.com>
29134
29135         bootstrap: use glibtoolize on MacOS
29136         * build-aux/bootstrap (check_versions): Convert libtool into
29137         libtoolize.
29138         (tool search): Move libtool check earlier, and look for
29139         glibtoolize for MacOS.
29140         (gnulib_tool_options): Auto-add --libtool when appropriate.
29141         Reported by Justin Clift.
29142
29143         poll: fix typo that broke test on MacOS
29144         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29145         Reported by Justin Clift.
29146
29147         getdate: rename to get_date
29148         Note: getdate.h is not renamed, to minimize client impact.
29149         * modules/getdate: Mark obsolete.  Move old contents...
29150         * modules/get_date: ...to new module name.
29151         * modules/getdate-tests: Move...
29152         * modules/get_date-tests: ...here.
29153         * m4/getdate.m4: Move...
29154         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29155         * lib/getdate.y: Move...
29156         * lib/get_date.y: ...here.
29157         * tests/test-getdate.c: Move...
29158         * tests/test-get_date.c: ...here.
29159         * doc/posix-functions/getdate.texi (getdate): Update name.
29160         * NEWS: Mention the change.
29161
29162 2010-09-29  Bruno Haible  <bruno@clisp.org>
29163
29164         Separate the module 'waitpid' from the module 'sys_wait'.
29165         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29166         present.
29167         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29168         gl_MODULE_INDICATOR_FOR_TESTS.
29169         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29170         * modules/sys_wait (Depends-on): Remove waitpid.
29171         (Makefile.am): Substitute GNULIB_WAITPID.
29172         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29173         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29174         signature only if the 'waitpid' module is present.
29175         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29176         * NEWS: Mention the change.
29177         * modules/grantpt (Depends-on): Add waitpid.
29178         * modules/wait-process (Depends-on): Likewise.
29179
29180 2010-09-29  Bruno Haible  <bruno@clisp.org>
29181
29182         More tests for module 'sys_wait'.
29183         * modules/sys_wait-c++-tests: New file.
29184         * tests/test-sys_wait-c++.cc: New file.
29185         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29186         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29187
29188 2010-09-29  Bruno Haible  <bruno@clisp.org>
29189
29190         New module 'waitpid'.
29191         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29192         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29193         Don't include <process.h>.
29194         (waitpid): Declare only, using modern idiom.
29195         * m4/waitpid.m4: New file.
29196         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29197         * modules/waitpid: New file.
29198         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29199         (Makefile.am): Update.
29200         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29201
29202 2010-09-28  Bruno Haible  <bruno@clisp.org>
29203
29204         poll: Assume ANSI C.
29205         * lib/poll.c (poll): Use an ANSI C declaration.
29206
29207 2010-09-28  Bruno Haible  <bruno@clisp.org>
29208
29209         poll-h: Create poll.h on all platforms.
29210         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29211         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29212         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29213         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29214         (gl_REPLACE_POLL_H): Don't set POLL_H.
29215         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29216         * modules/poll-h (Depends-on): Add include_next.
29217         (Makefile.am): Create poll.h unconditionally. Substitute also
29218         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29219
29220 2010-09-28  Bruno Haible  <bruno@clisp.org>
29221
29222         Tests for module 'poll-h'.
29223         * modules/poll-h-c++-tests: New file.
29224         * tests/test-poll-h-c++.cc: New file.
29225
29226         Tests for module 'poll-h'.
29227         * modules/poll-h-tests: New file.
29228         * tests/test-poll-h.c: New file.
29229
29230 2010-09-28  Bruno Haible  <bruno@clisp.org>
29231
29232         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29233         * modules/poll-h (Depends-on): Add 'extensions'.
29234
29235 2010-09-28  Bruno Haible  <bruno@clisp.org>
29236
29237         New module 'poll-h'.
29238         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29239         (poll): Use modern idiom.
29240         * modules/poll-h: New file.
29241         * modules/poll (Files): Remove lib/poll.in.h.
29242         (Depends-on): Add poll-h.
29243         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29244         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29245         * m4/poll_h.m4: New file.
29246         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29247         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29248         and invoke gl_REPLACE_POLL_H.
29249         * lib/poll.c: Use common idiom.
29250         * tests/test-poll.c: Likewise.
29251         * doc/posix-headers/poll.texi: Mention the poll-h module.
29252         Suggested by Eric Blake.
29253
29254 2010-09-26  Bruno Haible  <bruno@clisp.org>
29255
29256         sys_wait: Implement WSTOPSIG.
29257         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29258         Reported by Simon Josefsson.
29259
29260 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29261
29262         stdlib, sys_wait: Avoid compilation error on mingw.
29263         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29264
29265 2010-09-26  Bruno Haible  <bruno@clisp.org>
29266
29267         stdlib tests: Avoid code duplication.
29268         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29269         * modules/sys_wait-tests (Files): Likewise.
29270         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29271         * tests/test-stdlib.c: Include test-sys_wait.h.
29272         (main): Invoke test_sys_wait_macros.
29273         * tests/test-sys_wait.c: Include test-sys_wait.h.
29274         (main): Invoke test_sys_wait_macros.
29275
29276 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29277
29278         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29279         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29280         sure Windows sockets are working before calling getaddrinfo.
29281         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29282         * doc/gnulib.texi (Windows sockets): Fix typo.
29283
29284 2010-09-25  Bruno Haible  <bruno@clisp.org>
29285
29286         Tests for module 'regex-quote'.
29287         * modules/regex-quote-tests: New file.
29288         * tests/test-regex-quote.c: New file.
29289
29290         New module 'regex-quote'.
29291         * lib/regex-quote.h: New file.
29292         * lib/regex-quote.c: New file.
29293         * modules/regex-quote: New file.
29294         Suggested by Reuben Thomas <rrt@sc3d.org>.
29295
29296 2010-09-24  Bruno Haible  <bruno@clisp.org>
29297
29298         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29299         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29300
29301 2010-09-23  Bruno Haible  <bruno@clisp.org>
29302
29303         setenv: Relax license.
29304         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29305         Blake.
29306         Requested by Eric Blake.
29307
29308 2010-09-22  Bruno Haible  <bruno@clisp.org>
29309
29310         termios: Relax license.
29311         * modules/termios (License): Change to LGPLv2+.
29312         Requested by Eric Blake.
29313
29314 2010-09-22  Bruno Haible  <bruno@clisp.org>
29315
29316         threadlib: Allow the package to change the default to 'no'.
29317         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29318         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29319         Reported by Paul Eggert.
29320
29321 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29322             Bruno Haible  <bruno@clisp.org>
29323
29324         Fix endless loop in mbmemcasecoll.
29325         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29326         byte.
29327         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29328
29329 2010-09-22  Bruno Haible  <bruno@clisp.org>
29330
29331         Tests for module 'memcoll'.
29332         * modules/memcoll-tests: New file.
29333         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29334
29335         memcoll, xmemcoll: Clarify size vs. length.
29336         * modules/memcoll.c (memcoll0): Clarify specification.
29337         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29338         passed to collate_error.
29339
29340 2010-09-22  Bruno Haible  <bruno@clisp.org>
29341
29342         Tests for module 'memcasecmp'.
29343         * modules/memcasecmp-tests: New file.
29344         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29345
29346 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29347
29348         * lib/pthread.in.h: Add split double-inclusion guard, and include
29349         system <pthread.h> if there is one.  Use @@-style as in other
29350         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29351         pthread.h doesn't.
29352         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29353         (pthread_mutexattr_settype, pthread_mutex_trylock):
29354         New static inline functions, if there's no system <pthread.h>.
29355         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29356         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29357         Approximate with mutexes if the system lacks spinlocks, as in
29358         MacOS.
29359         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29360         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29361         @@-style.  Check for spinlocks separately.
29362         (gl_PTHREAD_DEFAULTS): New macro.
29363         * modules/pthread: Redo to use a more typical style for in.h files.
29364
29365 2010-09-21  Eric Blake  <eblake@redhat.com>
29366
29367         net_if: enhance tests
29368         * tests/test-net_if.c (main): Move signature checks earlier.
29369         Print failures to stderr.
29370         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29371         Document the bug that we do not yet fix.
29372
29373 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29374
29375         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29376         about gnulib, not GSS.
29377
29378 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29379
29380         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29381         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29382         for Emacs.
29383         * build-aux/pmccabe2html: Make Makefile.am example code more
29384         cut-and-paste friendly.
29385
29386 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29387
29388         * tests/test-net_if.c: New file.
29389         * modules/net_if-tests: New file.
29390
29391 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29392
29393         pthread: add pthread_spin_destroy
29394         * lib/pthread.in.h (pthread_spin_destroy): New function.
29395
29396 2010-09-19  Bruno Haible  <bruno@clisp.org>
29397
29398         gnulib-tool: Fix --help output.
29399         * gnulib-tool (func_usage): Fix help message.
29400         Reported by Reuben Thomas <rrt@sc3d.org>.
29401
29402 2010-09-18  Jim Meyering  <meyering@redhat.com>
29403
29404         maint.mk: avoid unexpanded \n in two diagnostics
29405         * top/maint.mk (sc_prohibit_always_true_header_tests):
29406         Don't use a literal \n in a halt=... assignment.  It would not be
29407         expanded, and the two \n bytes would appear in the diagnostic output
29408         rather than the desired newline.  Use halt=$$(printf ... instead.
29409         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29410
29411 2010-09-18  Bruno Haible  <bruno@clisp.org>
29412
29413         netinet_in: Doc tweak.
29414         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29415         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29416
29417 2010-09-18  Jim Meyering  <meyering@redhat.com>
29418
29419         init.sh: correct an outdated comment
29420         * tests/init.sh (create_exe_shims_):  s/function/alias/
29421
29422         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29423         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29424         a file named "*.exe" is removed between the glob expansion and the
29425         processing of that oddly named file.
29426
29427 2010-09-17  Eric Blake  <eblake@redhat.com>
29428
29429         mirbsd: add some more support
29430         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29431         in BSD family.
29432         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29433         devices as OpenBSD.
29434         * m4/host-os.m4 (mirbsd): Add MirBSD.
29435
29436         tests: fix unportable assumption on sys/wait.h
29437         * tests/test-sys_wait.c (main): Relax test.
29438         * tests/test-stdlib.c (main): Likewise.
29439
29440         init.sh: accommodate directory with no .exes
29441         * tests/init.sh: Accomodate directory containing only scripts.
29442
29443         tests: avoid compiler warning
29444         * tests/test-stdlib.c (main): Use the variable.
29445
29446         fdutimens, fdutimensat: update signature, again
29447         * lib/utimens.h (gl_futimens): Delete, and move signature...
29448         (fdutimens): ...here.
29449         (fdutimensat): Rearrange signature.
29450         (lutimensat): Rename variable for clarity.
29451         * lib/fdutimensat.c (fdutimensat): Update signature.
29452         * lib/utimens.c (fdutimens): Likewise.
29453         (gl_futimens): Delete.
29454         (utimens, lutimens): Update callers.
29455         * lib/futimens.c (futimens): Likewise.
29456         * tests/test-fdutimensat.c: Likewise.
29457         * tests/test-utimens.c: Likewise.
29458         * tests/test-futimens.h: Update comment.
29459         * NEWS: Mention this.
29460         Suggested by Paul Eggert.
29461
29462 2010-09-17  Bruno Haible  <bruno@clisp.org>
29463
29464         Take over the maintenance of some older macros from Autoconf.
29465         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29466         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29467         GNU Autoconf.
29468         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29469         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29470
29471 2010-09-17  Eric Blake  <eblake@redhat.com>
29472
29473         fdutimensat: drop atflag validation
29474         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29475         with valid fd, to close a race scenario where futimens is
29476         unsupported and FILE was replaced by a symlink.
29477         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29478         accordingly.
29479         Suggested by Paul Eggert.
29480
29481 2010-09-16  Bruno Haible  <bruno@clisp.org>
29482
29483         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29484         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29485
29486 2010-09-16  Bruno Haible  <bruno@clisp.org>
29487
29488         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29489         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29490         login_tty exists.
29491         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29492
29493 2010-09-16  Bruno Haible  <bruno@clisp.org>
29494
29495         login_tty: Make the replacement code work on BSD systems.
29496         * lib/login_tty.c: Include <sys/ioctl.h>.
29497         (login_tty): Use ioctl TIOCSCTTY when available.
29498         * modules/login_tty (Depends-on): Add sys_ioctl.
29499         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29500
29501 2010-09-16  Bruno Haible  <bruno@clisp.org>
29502
29503         login_tty: Stricter unit test.
29504         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29505         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29506         and tcgetsid() after login_tty.
29507         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29508
29509 2010-09-16  Bruno Haible  <bruno@clisp.org>
29510
29511         New module 'tcgetsid'.
29512         * lib/tcgetsid.c: New file.
29513         * m4/tcgetsid.m4: New file.
29514         * modules/tcgetsid: New file.
29515         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29516         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29517         GNULIB_TCGETSID, HAVE_TCGETSID.
29518         * lib/termios.in.h: Include <sys/types.h>.
29519         (tcgetsid): New declaration.
29520         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29521         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29522         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29523         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29524
29525 2010-09-16  Bruno Haible  <bruno@clisp.org>
29526
29527         Tests for module 'termios'.
29528         * modules/termios-c++-tests: New file.
29529         * modules/termios-tests: New file.
29530         * tests/test-termios-c++.cc: New file.
29531         * tests/test-termios.c: New file.
29532
29533         New module 'termios'.
29534         * modules/termios: New file.
29535         * lib/termios.in.h: New file.
29536         * m4/termios_h.m4: New file.
29537         * doc/posix-headers/termios.texi: Mention the new module.
29538
29539 2010-09-16  Eric Blake  <eblake@redhat.com>
29540
29541         fdutimensat: add an atflag parameter
29542         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29543         * lib/utimens.h (fdutimensat): Update prototype.
29544         * tests/test-fdutimensat.c: Adjust test to match.
29545         * NEWS: Document the change.
29546         Suggested by Paul Eggert.
29547
29548 2010-09-16  Bruno Haible  <bruno@clisp.org>
29549
29550         Fix typos in comments.
29551         * lib/striconveh.h: Fix typo in comment.
29552         * lib/login_tty.c (login_tty): Likewise.
29553
29554 2010-09-15  Bruno Haible  <bruno@clisp.org>
29555
29556         stdlib: clarify MirBSD WEXITSTATUS bug
29557         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29558         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29559
29560 2010-09-15  Eric Blake  <eblake@redhat.com>
29561
29562         stdlib: work around MirBSD WEXITSTATUS bug
29563         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29564         * modules/stdlib (Depends-on): Add sys_wait.
29565         * tests/test-sys_wait.c (main): Enhance test.
29566         * tests/test-stdlib.c (main): Likewise.
29567         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29568
29569         docs: mention MacOS issue with WEXITSTATUS(constant)
29570         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29571         issue.
29572         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29573
29574         strnlen: add tests
29575         * modules/strnlen-tests: New file.
29576         * tests/test-strnlen.c: Likewise.
29577
29578 2010-09-14  Bruno Haible  <bruno@clisp.org>
29579
29580         unistr/base: Avoid link errors when module 'libunistring' is also used.
29581         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29582         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29583         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29584         Declare also when HAVE_LIBUNISTRING is set.
29585         Reported by Pádraig Brady <P@draigbrady.com>.
29586
29587 2010-09-14  Eric Blake  <eblake@redhat.com>
29588
29589         test-rawmemchr: make more robust
29590         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29591         (Depends-on, configure.ac): Add needed prerequisites to use it.
29592         * modules/memchr-tests (Files, Depends-on, configure.ac):
29593         Likewise, to avoid implicit reliance on memchr module prereqs.
29594         * tests/test-memchr.c (main): Ensure proper masking.
29595         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29596         reads.
29597
29598         memchr: detect glibc Alpha bug
29599         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29600         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29601         Alpha.
29602         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29603         * tests/test-memchr.c (main): Enhance test.
29604         Reported by Nelson H. F. Beebe.
29605
29606 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29607
29608         fts, getcwd, glob: audit for dirfd returning -1
29609         * lib/fts.c (opendir): Remove #define; no longer used.
29610         (opendirat): New arg PDIR_FD.  All callers changed.
29611         (fts_build, _opendir2): Use new opendirat to avoid the need for
29612         dirfd, or for checking whether dirfd returns a negative value.
29613         Don't use opendir; always use openat followed by fdopendir.
29614         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29615         it.
29616         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29617         returns -1 here.
29618         * modules/fts (Depends-on): Remove dirfd.
29619         * modules/getcwd (Depends-on): Likewise.
29620
29621 2010-09-13  Eric Blake  <eblake@redhat.com>
29622
29623         float: fix broken MirBSD header
29624         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29625         * doc/posix-headers/float.texi (float.h): Document it.
29626
29627 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29628
29629         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29630         * lib/fts.c (opendirat): New arg extra_flags.
29631         (__opendir2): Use it to avoid following symlinks when opening
29632         a directory, if symlinks are not supposed to be followed.  See
29633         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29634
29635         fdopendir: preserve argument fd before returning
29636         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29637         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29638         (fdopendir): Use them, arranging for FD to be open to the same
29639         directory that it was when it started.  (It might be temporarily
29640         closed while fdopendir is running, so this not thread- or
29641         signal-safe.)  Be careful to do the right thing even when file
29642         descriptors are scarce and dup fails with errno == EMFILE.  See
29643         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29644
29645 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29646
29647         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29648         * NEWS: Document change.
29649         * m4/regex.m4: Disable test for regoff_t size.
29650
29651 2010-09-13  Jim Meyering  <meyering@redhat.com>
29652
29653         fts: don't operate on an invalid file descriptor after failed dup
29654         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29655         negative file descriptor.
29656
29657 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29658
29659         savedir: add streamsavedir, deprecate fdsavedir
29660         * NEWS: Mention deprecation of fdsavedir.
29661         * lib/savedir.c (streamsavedir): New extern function, whose name
29662         ends in "savedir" to be consistent with the others.  This differs
29663         from savedirstream in that it doesn't close its argument.  The
29664         next version of GNU tar will use this instead of fdsavedir, to
29665         avoid some race conditions and conserve file descriptors.
29666         (savedirstream): Reimplement as a wrapper around streamsavedir.
29667         (fdsavedir): Add a comment deprecating this function.  As far as
29668         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29669         * lib/savedir.h (streamsavedir): New decl.
29670         (fdsavedir): Add a comment deprecating this.
29671
29672 2010-09-10  Bruno Haible  <bruno@clisp.org>
29673
29674         langinfo: Fix last commit.
29675         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29676         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29678
29679 2010-09-10  Bruno Haible  <bruno@clisp.org>
29680
29681         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29682         * lib/progreloc.c (O_EXEC): Define fallback.
29683
29684 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29685
29686         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29687         * NEWS: Document recent changes to fcntl-h.
29688         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29689         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29690         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29691         Similarly for O_SEARCH; this last was already true, but not documented.
29692         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29693         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29694         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29695         Likewise.
29696         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29697         is zero, not whether it is defined.
29698         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29699         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29700         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29701
29702 2010-09-10  Bruno Haible  <bruno@clisp.org>
29703
29704         langinfo, nl_langinfo: Fix for IRIX 5.3.
29705         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29706         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29707         HAVE_LANGINFO_YESEXPR.
29708         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29709         HAVE_LANGINFO_YESEXPR.
29710         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29711         HAVE_LANGINFO_T_FMT_AMPM is 0.
29712         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29713         HAVE_LANGINFO_YESEXPR is 0.
29714         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29715         NOEXPR.
29716         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29717         * doc/posix-functions/nl_langinfo.texi: Likewise.
29718         Reported by Eric Blake.
29719
29720 2010-09-10  Bruno Haible  <bruno@clisp.org>
29721
29722         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29723         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29724         on FreeBSD 8.0 and OpenBSD 4.6.
29725         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29726         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29727         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29728         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29729         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29730         ac_includes_default.
29731         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29732
29733 2010-09-09  Eric Blake  <eblake@redhat.com>
29734
29735         strsignal: work around NetBSD bug
29736         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29737         * lib/string.in.h (includes): Likewise.
29738         * doc/posix-functions/strsignal.texi (strsignal): Document the
29739         bug.
29740         Reported by Nelson H. F. Beebe.
29741
29742         gnulib-tool: work with NetBSD /bin/sh
29743         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29744         (func_get_description, func_get_comment, func_get_status)
29745         (func_get_notice, func_get_applicability, func_get_filelist)
29746         (func_get_dependencies, func_get_autoconf_early_snippet)
29747         (func_get_autoconf_snippet, func_get_automake_snippet)
29748         (func_get_include_directive, func_get_link_directive)
29749         (func_get_license, func_get_maintainer, func_import): Avoid
29750         shell syntax errors from parsing syntax extensions.
29751
29752 2010-09-09  Bruno Haible  <bruno@clisp.org>
29753
29754         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29755         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29756         a reliable way to determine whether the 'alias' command works.
29757
29758 2010-09-08  Jim Meyering  <meyering@redhat.com>
29759
29760         init.sh: penalize a set-x-impaired shell; don't disqualify it
29761         * tests/init.sh: Too many shells corrupt application stderr when
29762         you set -x, so we can't afford to disqualify them, since at least
29763         on Irix-6.5, that would disqualify all bourne shells.
29764         Instead, use a two-pass approach.
29765         On the first pass, try to find a shell that meets the stricter
29766         condition that set -x does not corrupt stderr.
29767         If no shell meets the stricter condition, retest each candidate
29768         shell, but without that extra condition.  Finally, when
29769         VERBOSE=yes is requested and set -x might cause trouble, simply
29770         issue a warning and refrain from enabling debug output.
29771
29772 2010-09-08  Eric Blake  <eblake@redhat.com>
29773
29774         unsetenv: fix OpenBSD bug
29775         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29776         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29777         documentation.
29778         Reported by Jim Meyering.
29779
29780         strtod: work around IRIX 6.5 bug
29781         * lib/strtod.c (strtod): Reparse number on shorter string if
29782         exponent parse was invalid.
29783         * tests/test-strtod.c (main): Add check for "0x1p 2".
29784         Reported by Tom G. Christensen.
29785
29786         getopt: optimize previous patch
29787         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29788         empty variable.  Speed up awk script.
29789         Reported by Paolo Bonzini.
29790
29791 2010-09-08  Jim Meyering  <meyering@redhat.com>
29792
29793         test.sh: disqualify shells for which set -x corrupts stderr
29794         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29795         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29796         appear in stderr output.  For example, this command:
29797             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29798         prints "P=1" on those two systems:
29799
29800 2010-09-08  Bruno Haible  <bruno@clisp.org>
29801
29802         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29803         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29804         commands, because some shells ignore redirections when there is an
29805         error in the command lookup.
29806         Reported by Eric Blake.
29807
29808 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29809
29810         * lib/regex.h: Fix a mention of `regex_compile' (should be
29811         `re_compile_pattern').
29812         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29813         (re_set_registers): Correct name of parameter in comment.
29814
29815         * doc/regex.texi: Add documentation for missing syntax flags.
29816         Remove commented-out documentation of defunct syntax option
29817         RE_NO_EMPTY_ALTS.
29818         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29819         Add documentation of re_set_registers.
29820         Document trick to re-use a pattern buffer by setting fastmap manually.
29821         Update documentation of struct re_pattern_buffer per public members.
29822         Uncomment documentation of equivalence class operators and
29823         collating symbol operators, since they are now implemented,
29824         Explain leftmost-longest matching in relation to alternatives.
29825         Tidy documentation of substring matching.
29826         Remove POSIX documentation, which is done better in
29827         glibc, and refer the reader there. Keep BSD API documentation, as
29828         that is not readily available elsewhere.
29829
29830 2010-09-07  Eric Blake  <eblake@redhat.com>
29831
29832         getopt: handle POSIXLY_CORRECT set but not exported
29833         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29834         export state of POSIXLY_CORRECT, due to bash set -o posix.
29835         Reported by Dustin J. Mitchell.
29836
29837 2010-09-05  Bruno Haible  <bruno@clisp.org>
29838
29839         gnulib-tool: Highlight the changed options.
29840         * gnulib-tool (func_usage): Display the --import, --add-import,
29841         --remove-import explanations in bold font.
29842
29843 2010-09-06  Karl Berry  <karl@gnu.org>
29844
29845         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29846
29847 2010-09-05  Bruno Haible  <bruno@clisp.org>
29848
29849         uniwidth/width: Update comment.
29850         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29851         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29852
29853 2010-09-05  Bruno Haible  <bruno@clisp.org>
29854
29855         isinf, isnan: Relax license.
29856         * modules/isinf (License): Change from GPL to LGPL, with consent from
29857         Ben Pfaff.
29858         * modules/isnan (License): Likewise.
29859         Requested by Ludovic Courtès.
29860
29861 2010-09-04  Bruno Haible  <bruno@clisp.org>
29862
29863         gnulib-tool: Help migration from --import to --add-import or --update.
29864         * gnulib-tool: Emit a verbose error message when --import is used
29865         without any module name.
29866
29867 2010-09-04  Bruno Haible  <bruno@clisp.org>
29868
29869         Update doc about gnulib-tool.
29870         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29871         'gnulib-tool --update' in more detail.
29872         Reported by Eric Blake.
29873
29874 2010-09-04  Bruno Haible  <bruno@clisp.org>
29875
29876         gnulib-tool: Change --import. New options --add/remove-import.
29877         * gnulib-tool: New options --add-import, --remove-import.
29878         (func_usage): Document them.
29879         (have_associative): Define always.
29880         (func_import): In import mode, don't merge the specified settings with
29881         the cached settings. Implement remove-import mode.
29882         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29883         Explain when to use them versus --import.
29884         (Simple update): Use --add-import instead of --import.
29885         * NEWS: Mention the change.
29886
29887 2010-09-04  Bruno Haible  <bruno@clisp.org>
29888
29889         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29890         separate gnulib.mk.
29891
29892 2010-09-04  Bruno Haible  <bruno@clisp.org>
29893
29894         gnulib-tool: Don't talk about CVS any more.
29895         * gnulib-tool (func_usage, func_import): Write "version control"
29896         instead of CVS.
29897
29898 2010-09-04  Jim Meyering  <meyering@redhat.com>
29899
29900         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29901         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29902         false positives (whose names may be ill-chosen) when searching
29903         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29904         would cause a false-positive.
29905
29906         avoid coreutils "make distcheck" failure
29907         Coreutils tests with an absolute build directory name that contains
29908         a space.  Not quoting this directory name caused a failure.
29909         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29910         * tests/test-vc-list-files-cvs.sh: Likewise.
29911
29912 2010-09-04  Bruno Haible  <bruno@clisp.org>
29913
29914         gnulib-tool: Avoid error when run in a package without Makefile.am.
29915         * gnulib-tool: When collecting the m4dirs in a package that does not
29916         have a Makefile.am, eliminate those directories that contain no
29917         gnulib-cache.m4. Fix expression that counts these directories.
29918
29919 2010-09-04  Bruno Haible  <bruno@clisp.org>
29920
29921         update-copyright test: Improve output when perl is missing or too old.
29922         * tests/test-update-copyright.sh: Move test of Perl version down after
29923         the test whether Perl exists. Provide an explanation relating Perl's
29924         error message to Automake's SKIP: message.
29925
29926 2010-09-04  Bruno Haible  <bruno@clisp.org>
29927
29928         Don't augment PATH in TESTS_ENVIRONMENT.
29929         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29930         set abs_aux_dir instead of augmenting PATH.
29931         * modules/vc-list-files-tests (Makefile.am): Likewise.
29932         * tests/test-update-copyright.sh: Augment PATH here.
29933         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29934         path_prepend_.
29935         * tests/test-vc-list-files-git.sh: Likewise.
29936
29937 2010-09-04  Jim Meyering  <meyering@redhat.com>
29938
29939         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29940         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29941
29942 2010-09-04  Bruno Haible  <bruno@clisp.org>
29943
29944         strdup: Fix compilation error in C++ mode.
29945         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29946         the macro.
29947
29948 2010-09-04  Bruno Haible  <bruno@clisp.org>
29949
29950         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29951         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29952         macro into a function.
29953         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29954
29955 2010-09-04  Bruno Haible  <bruno@clisp.org>
29956
29957         Set PATH_SEPARATOR the same way autoconf does.
29958         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29959         the value of PATH_SEPARATOR the same way autoconf-generated configure
29960         scripts do.
29961         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29962         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29963
29964 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29965
29966         Set PATH_SEPARATOR the same way autoconf does.
29967         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29968         the same way autoconf-generated configure scripts do.
29969         * posix-modules: Likewise.
29970
29971 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29972
29973         hash: fix safe_hasher const typo
29974         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29975         const; otherwise, there is a type error later.
29976
29977 2010-09-02  Jim Meyering  <meyering@redhat.com>
29978
29979         test-update-copyright.sh: require perl 5.8.0
29980         * tests/test-update-copyright.sh: Require 5.8.0,
29981         which Tom G. Christensen has confirmed is adequate,
29982         while 5.6.1 is not.
29983
29984 2010-09-02  Eric Blake  <eblake@redhat.com>
29985
29986         tests: init.sh improvements for re-exec'ing with zsh
29987         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29988         -vx through shell re-exec.
29989         Reported by Tom G. Christensen.
29990
29991         wctype: fix typo in previous commit
29992         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29993         Reported by Ludovic Courtès.
29994
29995 2010-09-02  Jim Meyering  <meyering@redhat.com>
29996
29997         test-update-copyright.sh: skip test if Perl is too old
29998         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29999         Reported by Tom G. Christensen.
30000
30001 2010-09-02  Bruno Haible  <bruno@clisp.org>
30002
30003         wctype: Avoid compilation error on IRIX 6.5.30.
30004         * lib/wctype.in.h (iswblank): Declare with a replacement if
30005         REPLACE_ISWBLANK is set.
30006         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30007         declared. Set REPLACE_ISWBLANK.
30008         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30009         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30010         * doc/posix-headers/wctype.texi: Likewise.
30011         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30012
30013 2010-09-01  Bruno Haible  <bruno@clisp.org>
30014
30015         New module 'socketlib'.
30016         * modules/socketlib: New file.
30017         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30018         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30019         * modules/sockets (Depends-on): Add socketlib.
30020         Suggested by Sam Steingold <sds@gnu.org>.
30021
30022 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30023
30024         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30025
30026         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30027         when one needs search access to a directory but not read access.
30028         On systems where it is available, it works in some cases where
30029         O_RDONLY does not, namely on directories that are searchable but
30030         not readable, and which need only to be searchable.  If O_SEARCH
30031         is not available, fall back to the traditional method of using
30032         O_RDONLY.
30033
30034         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30035         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30036         when opening a directory that needs only to be searchable.
30037         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30038         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30039         * lib/openat-proc.c (openat_proc_name): Likewise.
30040         * lib/openat.c (openat_needs_fchdir): Likewise.
30041         * lib/save-cwd.c (save_cwd): Likewise.
30042         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30043
30044 2010-08-28  Bruno Haible  <bruno@clisp.org>
30045
30046         New module 'host-cpu-c-abi'.
30047         * modules/host-cpu-c-abi: New file.
30048         * m4/host-cpu-c-abi.m4: New file, based on part of
30049         clisp/src/m4/general.m4.
30050         Requested by Sam Steingold <sds@gnu.org>.
30051
30052 2010-08-31  Eric Blake  <eblake@redhat.com>
30053         and Jim Meyering  <meyering@redhat.com>
30054
30055         hash: factor, and guard against misbehaving hasher function
30056         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30057         of table->hasher's return value.  Also protect against a hash value
30058         so large that adding it to table->bucket results in a NULL pointer.
30059         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30060         Use it in place of open-coded check-and-abort.
30061
30062 2010-08-30  Bruno Haible  <bruno@clisp.org>
30063
30064         hash: silence spurious clang warning
30065         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30066         Reported by Eric Blake.
30067
30068 2010-08-30  Eric Blake  <eblake@redhat.com>
30069
30070         strstr, memmem, strcasestr: avoid leaked shell message
30071         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30072         FreeBSD.
30073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30074         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30075
30076         tests: silence clang warning
30077         * tests/test-malloca.c (do_allocation): Avoid dead store.
30078
30079 2010-08-29  Bruno Haible  <bruno@clisp.org>
30080
30081         gettext: Fix recent mistake.
30082         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30083
30084 2010-08-29  Bruno Haible  <bruno@clisp.org>
30085
30086         selinux-h: Offer a --without-selinux option.
30087         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30088         --without-selinux was specified, skip all tests and define
30089         HAVE_SELINUX_SELINUX_H to 0.
30090         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30091         set LIB_SELINUX to empty.
30092         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30093         gl_LIBSELINUX. If --without-selinux was specified, replace
30094         selinux/context.h.
30095         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30096
30097 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30098             Bruno Haible  <bruno@clisp.org>
30099
30100         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30101         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30102         of HAVE_REALLOC.
30103         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30104         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30105         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30106         * modules/realloc-gnu (configure.ac): Use 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 'calloc-gnu' work again on AIX and OSF/1.
30112         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30113         HAVE_CALLOC.
30114         * lib/xmalloc.c: Update accordingly.
30115         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30116         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30117         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30118
30119 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30120             Bruno Haible  <bruno@clisp.org>
30121
30122         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30123         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30124         HAVE_MALLOC.
30125         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30126         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30127         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30128
30129 2010-08-29  Bruno Haible  <bruno@clisp.org>
30130
30131         Update modules list.
30132         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30133         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30134         (String handling <string.h>): Add astrxfrm.
30135         (File system functions): Add readlinkat.
30136
30137 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30138
30139         Tests for module 'realloc-gnu'.
30140         * modules/realloc-gnu-tests: New file.
30141         * tests/test-realloc-gnu.c: New file.
30142
30143         Tests for module 'calloc-gnu'.
30144         * modules/calloc-gnu-tests: New file.
30145         * tests/test-calloc-gnu.c: New file.
30146
30147         Tests for module 'malloc-gnu'.
30148         * modules/malloc-gnu-tests: New file.
30149         * tests/test-malloc-gnu.c: New file.
30150
30151 2010-08-28  Bruno Haible  <bruno@clisp.org>
30152
30153         Rename module 'realloc' -> 'realloc-gnu'.
30154         * modules/realloc-gnu: New file, copied from modules/realloc.
30155         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30156         obsolete.
30157         * modules/mgetgroups (Depends-on): Update.
30158         * doc/posix-functions/realloc.texi: Update.
30159         * NEWS: Mention the change.
30160
30161         Rename module 'calloc' -> 'calloc-gnu'.
30162         * modules/calloc-gnu: New file, copied from modules/calloc.
30163         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30164         obsolete.
30165         * doc/posix-functions/calloc.texi: Update.
30166         * NEWS: Mention the change.
30167
30168         Rename module 'malloc' -> 'malloc-gnu'.
30169         * modules/malloc-gnu: New file, copied from modules/malloc.
30170         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30171         obsolete.
30172         * modules/argp (Depends-on): Update.
30173         * modules/regex (Depends-on): Update.
30174         * doc/posix-functions/malloc.texi: Update.
30175         * NEWS: Mention the change.
30176
30177 2010-08-28  Eric Blake  <eblake@redhat.com>
30178
30179         pread, pwrite: add missing dependency
30180         * modules/pread (Depends-on): Add extensions.
30181         * modules/pwrite (Depends-on): Likewise.
30182
30183 2010-08-28  Bruno Haible  <bruno@clisp.org>
30184
30185         unistr/u*-strchr: Fix tests dependencies.
30186         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30187         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30188         Reported by Ian Beckwith <ianb@erislabs.net>.
30189
30190 2010-08-28  Bruno Haible  <bruno@clisp.org>
30191
30192         read-file: Don't occupy too much unused memory.
30193         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30194
30195 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30196             Eric Blake  <eblake@redhat.com>
30197             Bruno Haible  <bruno@clisp.org>
30198
30199         read-file: Avoid memory reallocations with regular files.
30200         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30201         (fread_file): With regular files, use the remaining length as the
30202         initial buffer size.  Check against overflow.
30203         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30204         sys_stat.
30205
30206 2010-08-28  Bruno Haible  <bruno@clisp.org>
30207
30208         ftello: Relax license.
30209         * modules/ftello (License): Relax to LGPLv2+.
30210         Reported by Eric Blake.
30211
30212 2010-08-28  Bruno Haible  <bruno@clisp.org>
30213
30214         Avoid relocwrapper link errors due to gnulib replacement functions.
30215         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30216         function.
30217         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30218
30219 2010-08-28  Bruno Haible  <bruno@clisp.org>
30220
30221         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30222         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30223         defined.
30224         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30225         Suggested by Eric Blake.
30226
30227 2010-08-28  Bruno Haible  <bruno@clisp.org>
30228
30229         sys_socket, netdb: Ensure socklen_t gets defined.
30230         * modules/sys_socket (Depends-on): Add socklen.
30231         * modules/netdb (Depends-on): Likewise.
30232         * modules/getaddrinfo (Depends-on): Remove socklen.
30233         * modules/getsockopt (Depends-on): Likewise.
30234         * modules/setsockopt (Depends-on): Likewise.
30235         * tests/test-sys_socket.c: Check that socklen_t is defined.
30236         * tests/test-netdb.c: Likewise.
30237         * m4/socklen.m4: Update comments.
30238         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30239
30240 2010-08-27  Eric Blake  <eblake@redhat.com>
30241
30242         login_tty: add missing dependency
30243         * modules/login_tty (Depends-on): Add pty.
30244
30245 2010-08-26  Eric Blake  <eblake@redhat.com>
30246
30247         lib-symbol-versions: fix m4 quoting
30248         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30249         format for AC_LINK_IFELSE.
30250
30251         glob: fix compile test
30252         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30253
30254         btowc: fix missing file
30255         * modules/btowc (Files): Also ship locale-fr.m4.
30256
30257         lseek: fix link test
30258         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30259         AC_LINK_IFELSE.
30260
30261         include_next: silence autoconf 2.68 warning
30262         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30263         AC_COMPILE_IFELSE as special.
30264         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30265         autoconf < 2.68.
30266
30267         acl: fix compilation test
30268         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30269         AC_COMPILE_IFELSE.
30270
30271 2010-08-26  Bruno Haible  <bruno@clisp.org>
30272
30273         Modernize AC_TRY_RUN invocations.
30274         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30275         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30276         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30277         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30278         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30279         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30280         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30282         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30283         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30284         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30285         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30286         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30287         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30288         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30289         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30290         gl_MBRLEN_NUL_RETVAL): Likewise.
30291         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30292         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30293         Likewise.
30294         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30295         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30296         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30297         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30298         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30299         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30300         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30301         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30302         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30303         Likewise.
30304         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30305         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30306         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30307         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30308         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30309         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30310         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30311         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30312         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30313         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30314
30315 2010-08-26  Bruno Haible  <bruno@clisp.org>
30316
30317         Modernize AC_TRY_LINK invocations.
30318         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30319         AC_TRY_LINK.
30320         * m4/argp.m4 (gl_ARGP): Likewise.
30321         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30322         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30323         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30324         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30325         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30326         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30327         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30328         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30329         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30330         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30331         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30332         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30333         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30334         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30335         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30336         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30337         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30338         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30339         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30340         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30341         Likewise.
30342         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30343         Likewise.
30344         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30345         Likewise.
30346         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30347         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30348         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30349         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30350         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30351         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30352         * m4/servent.m4 (gl_SERVENT): Likewise.
30353         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30354         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30355         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30356         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30357         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30358         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30359         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30360         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30361         * modules/tsearch-tests (configure.ac): Likewise.
30362
30363 2010-08-26  Bruno Haible  <bruno@clisp.org>
30364
30365         Modernize AC_TRY_COMPILE invocations.
30366         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30367         AC_TRY_COMPILE.
30368         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30369         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30370         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30371         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30372         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30373         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30374         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30375         * m4/lock.m4 (gl_LOCK): Likewise.
30376         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30377         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30378         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30379         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30380         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30381         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30382         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30383         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30384         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30385         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30386         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30387         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30388         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30389         extraneous semicolon.
30390
30391 2010-08-26  Jim Meyering  <meyering@redhat.com>
30392
30393         stat-time: relax license LGPL
30394         * modules/stat-time (License): Change from GPL to LGPL,
30395         with consent from all contributors, for use in libguile.
30396         Requested by Ludovic Courtès.
30397
30398 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30399
30400         poll: return immediately on POLLHUP.
30401         * lib/poll.c (poll): Always set timeout before wait_timeout is
30402         computed.
30403
30404 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30405
30406         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30407         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30408         rmdir ("dir/.//"), unlinkat.
30409
30410 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30411
30412         stdbool: avoid spurious failure with modern xlc
30413         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30414
30415 2010-08-24  Bruno Haible  <bruno@clisp.org>
30416
30417         getloadavg: simplify code
30418         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30419         gl_have_func. Update comments.
30420
30421 2010-08-24  Eric Blake  <eblake@redhat.com>
30422
30423         getloadavg: don't define SVR4 on cygwin
30424         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30425         only define SVR4 when -lkvm is required.
30426         Reported by Yaakov Selkowitz.
30427
30428 2010-08-24  Bruno Haible  <bruno@clisp.org>
30429
30430         priv-set: fix comment
30431         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30432
30433 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30434
30435         priv-set: fix comments
30436         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30437         to match code, as suggested by David Bartley in:
30438         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30439
30440 2010-08-23  Eric Blake  <eblake@redhat.com>
30441
30442         stdbool: avoid rejecting clang
30443         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30444         * tests/test-stdbool.c: Enable more tests if using the system
30445         <stdbool.h> instead of the gnulib replacement.
30446         (main): Move xlc bug test to a runtime test for all compilers.
30447         Reported by Anders Kaseorg.
30448
30449         argz: fix shell quoting issue
30450         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30451         Reported by Charles Wilson.
30452
30453 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30454             Erik Faye-Lund <kusmabite@gmail.com>
30455
30456         poll, select: handle ERROR_BROKEN_PIPE.
30457         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30458         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30459         * lib/select.c (win32_compute_revents): Do not mark a pipe
30460         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30461
30462 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30463
30464         fts: allow compilation with C++
30465         * lib/fts_.h: Specify extern "C" linkage with C++.
30466
30467 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30468
30469         Fix gnulib-tool sed script de-commentation for AIX sed.
30470         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30471         sed.
30472
30473 2010-08-17  Eric Blake  <eblake@redhat.com>
30474
30475         test-stddef: test for (some) offsetof bugs
30476         * tests/test-stddef.c: Enhance test to ensure correct type of
30477         offsetof.
30478         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30479         that we are not fixing at this time.
30480
30481 2010-08-15  Bruno Haible  <bruno@clisp.org>
30482
30483         stpncpy: Allow stpncpy to be defined as a macro.
30484         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30485         if it's already correctly declared.
30486         * lib/string.in.h (stpncpy): Undefine before redefining.
30487         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30488
30489 2010-08-14  Bruno Haible  <bruno@clisp.org>
30490
30491         Rename module 'memxfrm' to 'amemxfrm'.
30492         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30493         (amemxfrm): Renamed from memxfrm.
30494         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30495         (amemxfrm): Renamed from memxfrm.
30496         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30497         * NEWS: Mention the change.
30498         * MODULES.html.sh (String handling <string.h>): Update.
30499         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30500         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30501         * lib/unicase/u16-casexfrm.c: Likewise.
30502         * lib/unicase/u32-casexfrm.c: Likewise.
30503         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30504         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30505         * lib/uninorm/u16-normxfrm.c: Likewise.
30506         * lib/uninorm/u32-normxfrm.c: Likewise.
30507         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30508         memxfrm.
30509         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30510         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30511         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30512         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30513         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30514         Suggested by Paul Eggert.
30515
30516 2010-08-14  Bruno Haible  <bruno@clisp.org>
30517
30518         Tests for module 'astrxfrm'.
30519         * modules/astrxfrm-tests: New file.
30520         * tests/test-astrxfrm.c: New file.
30521
30522         New module 'astrxfrm'.
30523         * lib/astrxfrm.h: New file.
30524         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30525         * modules/astrxfrm: New file.
30526
30527 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30528
30529         regex: Tweak doc.
30530         * doc/regex.texi (Overview): Don't mention regex.c.
30531         (GNU Regular Expression Compiling): Likewise.
30532         (Match-end-of-line Operator): Mention 'not_eol'.
30533
30534 2010-08-14  Brian Gough  <bjg@gnu.org>
30535             Bruno Haible  <bruno@clisp.org>
30536
30537         git-merge-changelog: add doc relating to use with bzr and hg.
30538         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30539
30540 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30541
30542         pthread: fix pthread.h creation for srcdir != builddir
30543         * modules/pthread (Makefile.am): Fix the rule to work also in a
30544         non-srcdir build.
30545
30546 2010-08-13  Karl Berry  <karl@gnu.org>
30547
30548         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30549         * doc/posix-*/*: force line break before @url of POSIX
30550         specifications.
30551         Suggested by Werner Lemberg.
30552
30553 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30554
30555         strtod: fix const diagnostic
30556         * lib/strtod.c (strtod): Don't assign const char * to char *,
30557         as this elicits a warning from GCC when warnings are enabled.
30558
30559 2010-08-10  Pádraig Brady <P@draigbrady.com>
30560         and Eric Blake  <eblake@redhat.com>
30561
30562         copy-acl: ignore ENOTSUP on HP-UX
30563         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30564         so that it is available for HP-UX.
30565         * lib/copy-acl.c (qcopy_acl): Use it.
30566         Reported by Patrick M. Callahan.
30567
30568 2010-08-10  Eric Blake  <eblake@redhat.com>
30569
30570         open, chown: relax license
30571         * modules/open (License): Change to LGPLv2+, with consent by all
30572         authors, for use in augeas.
30573         * modules/chown (License): Likewise.
30574         * modules/lchown (Likewise): Likewise.
30575         Requested by Adam Stokes.
30576
30577 2010-08-09  Karl Berry  <karl@gnu.org>
30578
30579         * build-aux/ar-lib: new file, import from Automake.
30580         * config/srclist.txt: autocheck for updates.
30581
30582 2010-08-09  Eric Blake  <eblake@redhat.com>
30583
30584         readlinkat: adjust client modules
30585         * modules/areadlinkat (Depends-on): Use readlinkat, not
30586         symlinkat.
30587         * modules/areadlinkat-with-size (Depends-on): Likewise.
30588
30589         mknod: be more vocal about danger of running tests as root
30590         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30591         root, since that is just asking for problems.
30592         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30593
30594         readlinkat: split into its own module
30595         * modules/symlinkat: Split readlinkat...
30596         * modules/readlinkat: ...into separate module.
30597         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30598         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30599         * lib/symlinkat.c (readlinkat): Move...
30600         * lib/readlinkat.c: ...into new file.
30601         * modules/symlinkat-tests: Split readlinkat test...
30602         * modules/readlinkat-tests: ...into separate module.
30603         * tests/test-symlinkat.c: Split...
30604         * tests/test-readlinkat.c: ...into new file.
30605         * NEWS: Document the split.
30606         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30607         * lib/unistd.in.h (readlinkat): Likewise.
30608         Suggested by Bruno Haible.
30609
30610 2010-08-08  Bruno Haible  <bruno@clisp.org>
30611
30612         memxfrm: Speed up.
30613         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30614         that usually only one call to strxfrm is necessary for each string
30615         part.
30616         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30617
30618 2010-08-07  Karl Berry  <karl@gnu.org>
30619
30620         * doc/posix-headers/limits.texi,
30621         * doc/posix-functions/malloc.texi,
30622         * doc/posix-functions/strsignal.texi: missing @item.
30623         * doc/ld-version-script.texi: spurious leading i.
30624         * doc/regex.texi (Interval Operators): no commas inside @var.
30625
30626 2010-08-01  Bruno Haible  <bruno@clisp.org>
30627
30628         Integrate the regex documentation.
30629         * doc/gnulib.texi: Define 'cn' index.
30630         (Regular expressions): New a chapter that includes regex.texi and
30631         regexprops-generic.texi.
30632         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30633         syntax.
30634
30635         Whitespace cleanup.
30636         * doc/regex.texi: Remove trailing spaces.
30637
30638         Add regex documentation.
30639         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30640         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30641         Written by Kathy A. Hargreaves and Karl Berry.
30642
30643 2010-08-01  Bruno Haible  <bruno@clisp.org>
30644
30645         link: Update documentation.
30646         * doc/posix-functions/link.texi: Update regarding Solaris.
30647
30648 2010-07-31  Bruno Haible  <bruno@clisp.org>
30649
30650         Update modules list.
30651         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30652         (String handling <string.h>): Add memcmp2, memxfrm.
30653         (Container data structures): Add xlist, xsublist, xoset.
30654         (Core language properties): Add alignof, unused-parameter.
30655         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30656         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30657         (Unibyte characters <ctype.h>): New section.
30658         (String handling <string.h>): New section.
30659         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30660         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30661         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30662         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30663         tan, tanh, tanl, y0, y1, yn.
30664         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30665         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30666         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30667         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30668         unlockpt, vdprintf, vdprintf-posix.
30669         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30670         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30671         xconcat-filename.
30672         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30673         getdtablesize, pipe2, pipe2-safer.
30674         (Security): New section.
30675         (Networking functions): Add accept4.
30676         (Signal handling): Add sigpipe.
30677         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30678         mbmemcasecoll.
30679         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30680         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30681         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30682         pipe-filter-ii.
30683         (Misc): Add argp-version-etc, login_tty, parse-duration.
30684
30685 2010-07-31  Bruno Haible  <bruno@clisp.org>
30686
30687         Improve doc in MODULES.html.
30688         * modules/linkat (Description): Add the word "function".
30689         * modules/mkfifo (Description): Likewise.
30690         * modules/mknod (Description): Likewise.
30691         * modules/remove (Description): Likewise.
30692         * modules/renameat (Description): Likewise.
30693         * modules/stat (Description): Likewise.
30694         * modules/symlink (Description): Likewise.
30695         * modules/unlink (Description): Likewise.
30696
30697 2010-07-31  Bruno Haible  <bruno@clisp.org>
30698
30699         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30700         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30701         option --enable/disable-c++ instead of --enable/disable-cxx.
30702         * NEWS: Mention the change.
30703
30704 2010-07-31  Bruno Haible  <bruno@clisp.org>
30705
30706         readlink, areadlink: Relax test a bit.
30707         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30708         alternative to ENOTDIR.
30709         * tests/test-areadlink.h (test_areadlink): Likewise.
30710         Reported by Rainer Tammer.
30711
30712 2010-07-31  Bruno Haible  <bruno@clisp.org>
30713
30714         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30715         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30716         character, perform the search using U_STRCHR.
30717         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30718         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30719         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30720         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30721         Suggested by Paolo Bonzini.
30722
30723 2010-07-31  Bruno Haible  <bruno@clisp.org>
30724
30725         unistr/u*-strstr: Fix dependencies.
30726         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30727         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30728         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30729
30730 2010-07-31  Bruno Haible  <bruno@clisp.org>
30731
30732         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30733         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30734         the beginning of the loop.
30735         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30736         cases in 'switch' statement.
30737
30738         unistr/u8-strchr: Fix several bugs.
30739         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30740         the string. When not found, return NULL, not a pointer near the end.
30741
30742         More tests for unistr/u8-strchr.
30743         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30744         that the function does not read past the first occurrence of the byte
30745         being searched.
30746         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30747         * tests/unistr/test-u16-strchr.c (main): New function.
30748         * tests/unistr/test-u32-strchr.c (main): New function.
30749
30750 2010-07-31  Bruno Haible  <bruno@clisp.org>
30751
30752         posix-modules: Ignore backup files of documentation files.
30753         * posix-modules: grep only through files named *.texi.
30754
30755 2010-07-31  Bruno Haible  <bruno@clisp.org>
30756
30757         symlinkat: Fix documentation.
30758         * doc/posix-functions/readlinkat.texi: Fix module name.
30759
30760 2010-07-31  Bruno Haible  <bruno@clisp.org>
30761
30762         fchownat: Replace also when chown has the trailing slash bug.
30763         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30764         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30765         introduced on 2010-04-10.
30766         Reported by Rainer Tammer.
30767
30768 2010-07-31  Bruno Haible  <bruno@clisp.org>
30769
30770         linkat: Work around AIX 7.1 bug.
30771         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30772         whether linkat handles trailing slash correctly. If not, replace linkat
30773         and define LINKAT_TRAILING_SLASH_BUG.
30774         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30775         check whether (fd1,file1) points to a directory if file1 or file2 ends
30776         in a slash. Code taken from lib/link.c.
30777         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30778         Reported by Rainer Tammer.
30779
30780 2010-07-31  Bruno Haible  <bruno@clisp.org>
30781
30782         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30783         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30784         This disables an xlc optimization that was causing wrong test results.
30785         Reported by Rainer Tammer.
30786
30787 2010-07-31  Bruno Haible  <bruno@clisp.org>
30788
30789         iconv: Work around AIX 6.1..7.1 bug.
30790         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30791         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30792         cross-compiling, guess no on all versions of AIX.
30793         Reported by Rainer Tammer.
30794
30795 2010-07-31  Bruno Haible  <bruno@clisp.org>
30796
30797         readlink: Relax test a bit.
30798         * tests/test-readlink.h (test_readlink): Allow different errno value
30799         when readlink is called with a file name that ends in / and refers to
30800         a file.
30801         Suggested by Eric Blake.
30802         Reported by Rainer Tammer.
30803
30804 2010-07-31  Bruno Haible  <bruno@clisp.org>
30805
30806         copysign: Does not require -lm on glibc systems.
30807         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30808         gl_COMMON_DOUBLE_MATHFUNC.
30809         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30810
30811 2010-07-31  Bruno Haible  <bruno@clisp.org>
30812
30813         duplocale: Work around AIX 7.1 bug.
30814         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30815         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30816         * lib/duplocale.c (rpl_duplocale): Update comment.
30817         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30818         Reported by Rainer Tammer.
30819
30820 2010-07-30  Bruno Haible  <bruno@clisp.org>
30821
30822         dirfd: Avoid link error on AIX 7.1.
30823         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30824         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30825         exist, set REPLACE_DIRFD.
30826         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30827         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30828         * doc/posix-functions/dirfd.texi: Update.
30829         Reported by Rainer Tammer.
30830
30831 2010-07-30  Eric Blake  <eblake@redhat.com>
30832
30833         strtod: next round of AIX fixes
30834         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30835         exponent.
30836         * tests/test-strtod.c (main): Enhance tests.
30837         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30838         Reported by Rainer Tammer.
30839
30840         futimens: fix configure check
30841         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30842         Reported by Bruno Haible.
30843
30844 2010-07-30  Bruno Haible  <bruno@clisp.org>
30845
30846         getline: Update regarding AIX.
30847         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30848         Reported by Rainer Tammer.
30849
30850 2010-07-30  Bruno Haible  <bruno@clisp.org>
30851
30852         wcwidth: Drop replacement on AIX 7.
30853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30854         AIX 7.
30855         Reported by Rainer Tammer.
30856
30857 2010-07-30  Bruno Haible  <bruno@clisp.org>
30858
30859         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30860         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30861         a 'char *'.
30862         Reported by Rainer Tammer.
30863
30864 2010-07-30  Bruno Haible  <bruno@clisp.org>
30865
30866         unlink: Update regarding AIX.
30867         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30868         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30869         Reported by Rainer Tammer.
30870
30871 2010-07-30  Bruno Haible  <bruno@clisp.org>
30872
30873         symlink: Update regarding AIX.
30874         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30875         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30876         Reported by Rainer Tammer.
30877
30878 2010-07-30  Bruno Haible  <bruno@clisp.org>
30879
30880         strndup: Update regarding AIX.
30881         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30882         AIX 7.
30883         Reported by Rainer Tammer.
30884
30885 2010-07-30  Bruno Haible  <bruno@clisp.org>
30886
30887         stat: Update regarding AIX.
30888         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30889         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30890         Reported by Rainer Tammer.
30891
30892 2010-07-30  Bruno Haible  <bruno@clisp.org>
30893
30894         truncl: Fix autoconf test.
30895         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30896         whether truncl works.
30897         Reported by Rainer Tammer.
30898
30899 2010-07-30  Bruno Haible  <bruno@clisp.org>
30900
30901         round: Update regarding AIX.
30902         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30903         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30904         Reported by Rainer Tammer.
30905
30906 2010-07-30  Bruno Haible  <bruno@clisp.org>
30907
30908         rename: Update regarding AIX.
30909         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30910         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30911         Reported by Rainer Tammer.
30912
30913 2010-07-30  Bruno Haible  <bruno@clisp.org>
30914
30915         printf.m4: Update regarding AIX.
30916         * m4/printf.m4: Update comments regarding AIX.
30917         Reported by Rainer Tammer.
30918
30919 2010-07-30  Bruno Haible  <bruno@clisp.org>
30920
30921         iconv: Update regarding AIX.
30922         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30923         AIX 7.
30924         Reported by Rainer Tammer.
30925
30926 2010-07-30  Bruno Haible  <bruno@clisp.org>
30927
30928         getopt: Update regarding AIX.
30929         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30930         no on AIX.
30931         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30932         Reported by Rainer Tammer.
30933
30934 2010-07-30  Bruno Haible  <bruno@clisp.org>
30935
30936         ldexpl; Update regarding AIX.
30937         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30938         on AIX 7.
30939         Reported by Rainer Tammer.
30940
30941 2010-07-30  Bruno Haible  <bruno@clisp.org>
30942
30943         frexpl: Update regarding AIX.
30944         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30945         on AIX 7.
30946         Reported by Rainer Tammer.
30947
30948 2010-07-30  Bruno Haible  <bruno@clisp.org>
30949
30950         open, fopen: Update regarding AIX.
30951         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30952         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30953         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30954         * doc/posix-functions/fopen.texi: Likewise.
30955         Reported by Rainer Tammer.
30956
30957 2010-07-30  Bruno Haible  <bruno@clisp.org>
30958
30959         chown: Update doc regarding AIX.
30960         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30961         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30962         Reported by Rainer Tammer.
30963
30964 2010-07-30  Eric Blake  <eblake@redhat.com>
30965
30966         strtod: fix bug in replacement function on AIX
30967         * lib/strtod.c (strtod): Special case broken "0x" parse in
30968         underlying strtod.
30969         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30970         * doc/posix-functions/strtod.texi (strtod): Likewise.
30971         Reported by Rainer Tammer.
30972
30973 2010-07-30  Bruno Haible  <bruno@clisp.org>
30974
30975         mbrlen: Fix cross-compilation guess for AIX.
30976         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30977         guess. Leftover from 2008-12-22.
30978
30979 2010-07-30  Bruno Haible  <bruno@clisp.org>
30980
30981         mbrtowc: Fix cross-compilation guess for AIX.
30982         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30983         guess. Leftover from 2008-12-21.
30984
30985 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30986
30987         init.sh: work around trap limitation of some shells
30988         * tests/init.sh (setup_): Move exit trap outside of shell function.
30989
30990 2010-07-29  Eric Blake  <eblake@redhat.com>
30991
30992         strtod: aid debugging
30993         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30994         understanding why strtod is rejected.
30995
30996 2010-07-28  Bruno Haible  <bruno@clisp.org>
30997
30998         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30999         * lib/unistr/u8-chr.c: Include <string.h>.
31000         * tests/unistr/test-u8-chr.c: Likewise.
31001         * tests/unistr/test-u16-chr.c: Likewise.
31002         * tests/unistr/test-u32-chr.c: Likewise.
31003         * tests/unistr/test-u8-strchr.c: Likewise.
31004         * tests/unistr/test-u16-strchr.c: Likewise.
31005         * tests/unistr/test-u32-strchr.c: Likewise.
31006         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31007         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31008         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31009         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31010
31011 2010-07-28  Bruno Haible  <bruno@clisp.org>
31012
31013         Use spaces for indentation, not tabs.
31014         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31015
31016 2010-07-27  Bruno Haible  <bruno@clisp.org>
31017
31018         mbspcasecmp: Fix function specification.
31019         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31020         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31021         Reported by Eric Blake <eblake@redhat.com>.
31022
31023 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31024
31025         timespec: use cast and not conditional, as truncation isn't possible
31026         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31027         instead of a conditional.  Comment about the situation in more detail.
31028         This undoes most of the 2009-10-29 patch.
31029
31030 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31031
31032         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31033         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31034         * lib/unistr/u8-strchr.c: Likewise.
31035         * modules/unistr/u8-chr: Depend on memchr.
31036
31037         unistr/u*-strchr: add tests
31038         * modules/unistr/u8-strchr-tests: New file.
31039         * modules/unistr/u16-strchr-tests: New file.
31040         * modules/unistr/u32-strchr-tests: New file.
31041         * tests/unistr/test-strchr.h: New file.
31042         * tests/unistr/test-u8-strchr.c: New file.
31043         * tests/unistr/test-u16-strchr.c: New file.
31044         * tests/unistr/test-u32-strchr.c: New file.
31045
31046         unistr/u*-chr: test multibyte sequences more
31047         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31048         test vector.
31049         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31050         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31051         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31052
31053         unistr/u*-chr: test multibyte sequences
31054         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31055
31056         unistr/u*-chr: prepare for multibyte tests
31057         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31058         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31059         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31060         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31061         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31062         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31063
31064 2010-07-18  Bruno Haible  <bruno@clisp.org>
31065
31066         unistr/u8-strchr: Optimize non-ASCII argument case.
31067         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31068         because the first byte often matches anyway.
31069         Reported by Pádraig Brady <P@draigbrady.com>.
31070
31071 2010-07-15  Karl Berry  <karl@gnu.org>
31072
31073         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31074
31075 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31076
31077         getcwd: on Solaris, work better if ancestors are inaccessible
31078         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31079         buffer and size, try again with a large buffer.  This works better
31080         on Solaris, since its getcwd succeeds even if the path to the root
31081         is inaccessible, and this is helpful in common cases such as .zfs
31082         hidden directories.  Problem reported by J Chapman Flack in
31083         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31084         Use system getcwd if it's declared, not merely if it's partly
31085         working; use the partly-working test only to avoid needless effort
31086         if the system getcwd fails.
31087         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31088         comment that was already obsolete and is now even more obsolete.
31089         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31090         now might call strdup.
31091
31092 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31093
31094         pthread: Add enough so that coreutils/src/sort.c compiles.
31095         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31096         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31097         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31098         Include <sys/types.h>, in case it defines pthread_t.
31099         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31100         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31101         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31102         (pthread_rwlockattr_t, pthread_spinlock_t):
31103         New typedefs, if HAVE_PTHREAD_T is not defined.
31104         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31105         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31106         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31107         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31108         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31109         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31110         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31111         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31112         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31113         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31114         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31115         New macros.
31116         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31117         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31118         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31119         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31120         (pthread_spin_unlock): New dummy functions.
31121         (pthread_create): Return EAGAIN; don't set errno.
31122         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31123         require AC_C_INLINE.
31124         * modules/pthread (Depends-on): Add sched, time.
31125         (pthread.h): Use AM_V_GEN.
31126
31127 2010-07-13  Bruno Haible  <bruno@clisp.org>
31128
31129         striconveh: Don't malloc memory if the result buffer is sufficient.
31130         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31131         buffer if its size is sufficient.
31132         Reported by Ludovic Courtès <ludo@gnu.org>.
31133
31134 2010-07-13  Bruno Haible  <bruno@clisp.org>
31135
31136         strtod: Add safety check.
31137         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31138
31139 2010-07-12  Bruno Haible  <bruno@clisp.org>
31140
31141         Unify tests that set gl_cv_func_ldexpl_no_libm.
31142         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31143         gl_FUNC_LDEXPL.
31144         (gl_FUNC_LDEXPL): Invoke it.
31145         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31146
31147 2010-07-12  Bruno Haible  <bruno@clisp.org>
31148
31149         Unify tests that set gl_cv_func_ldexp_no_libm.
31150         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31151         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31152         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31153         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31154         * modules/strtod (Files): Add m4/ldexp.m4.
31155
31156 2010-07-12  Bruno Haible  <bruno@clisp.org>
31157
31158         Unify tests that set gl_cv_func_frexpl_no_libm.
31159         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31160         gl_FUNC_FREXPL_NO_LIBM.
31161         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31162         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31163
31164 2010-07-12  Bruno Haible  <bruno@clisp.org>
31165
31166         Unify tests that set gl_cv_func_frexp_no_libm.
31167         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31168         gl_FUNC_FREXP_NO_LIBM.
31169         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31170         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31171
31172 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31173
31174         memcoll: clarify sizes versus lengths, document better, and tweak perf
31175         * lib/memcoll.c (strcoll_loop, memcoll0):
31176         Improve quality of descriptive comments.  Name variables
31177         consistently as to whether they are lengths (which do not include
31178         terminating null) versus sizes (which do).
31179         * lib/xmemcoll.c (xmemcoll0): Likewise.
31180         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31181         returned when s1size == 0; this is easier to compile and saves
31182         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31183
31184 2010-07-12  Bruno Haible  <bruno@clisp.org>
31185
31186         Tests for module '_Exit'.
31187         * modules/_Exit-tests: New file.
31188         * tests/test-_Exit.sh: New file.
31189         * tests/test-_Exit.c: New file.
31190
31191         New module '_Exit'.
31192         * lib/stdlib.in.h (__attribute__): New macro.
31193         (_Exit): New declaration.
31194         * lib/_Exit.c: New file.
31195         * m4/_Exit.m4: New file.
31196         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31197         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31198         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31199         * modules/_Exit: New file.
31200         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31201         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31202
31203 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31204
31205         strtod: make it more-accurate typically, and don't require libm
31206         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31207         Include limits.h.  Don't include string.h.
31208         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31209         (locale_isspace): New function, so that no casts are needed to
31210         check whether *s is a space.
31211         (ldexp): Provide an unused dummy if not available.
31212         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31213         (strtod): Use them.  This implementation prefers to use the
31214         underlying strtod if available, falling back on our own code
31215         only to fix known bugs.  This is more likely to produce an
31216         accurate result.  Also, it avoids the use of libm functions.
31217         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31218         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31219         was absent, but it caused a test failure with coreutils.
31220         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31221         with libm.
31222         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31223         * modules/strtod-tests (Makefile.am): Likewise.
31224
31225 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31226             Bruno Haible  <bruno@clisp.org>
31227
31228         unistr/u8-strchr: Optimize ASCII argument case.
31229         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31230
31231 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31232
31233         (x)memcoll: minor tweaks
31234         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31235         is after the type that it qualifies.
31236         (memcoll0): Likewise.
31237         * lib/memcoll.h (memcoll0): Likewise.
31238         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31239         * lib/xmemcoll.h (xmemcoll0): Likewise.
31240         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31241         differs from memcoll in that the NUL byte is part of the argument.
31242         Omit the abort-checks, as performance is a real issue here.  Plus,
31243         the checks were wrong anyway (an off-by-one error).  Omit local
31244         variable 'diff', as it's a bit clearer that way.
31245         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31246         no longer needed.
31247
31248 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31249
31250         (x)memcoll: speedup when input is known to be NUL delimited
31251         * lib/memcoll.c: Include stdlib.
31252         (memcoll0): New function.
31253         (strcoll_loop): New function, refactored for use in both memcoll
31254         and memcoll0.
31255         * lib/memcoll.h (memcoll0): Add prototype.
31256         * lib/xmemcoll.c (xmemcoll0): New function.
31257         (collate_error): New function, refactored for use in both xmemcoll
31258         and xmemcoll0.
31259         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31260         * m4/memcoll.m4: add inline invocation.
31261
31262 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31263
31264         * build-aux/bootstrap: Remove any local translations
31265         from the translation project synchronization directory,
31266         so that local only translations are not distributed.
31267
31268 2010-07-04  Bruno Haible  <bruno@clisp.org>
31269
31270         fsusage: Clarify which code applies to which platforms.
31271         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31272         platform.
31273         * lib/fsusage.c (get_fs_usage): Likewise.
31274
31275 2010-07-04  Bruno Haible  <bruno@clisp.org>
31276
31277         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31278         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31279         Reported by Martin Lambers <marlam@marlam.de>.
31280
31281 2010-07-04  Jim Meyering  <meyering@redhat.com>
31282
31283         hash: once again explicitly disallow insertion of NULL
31284         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31285         inserting a NULL pointer cannot work with these functions.
31286         Add a comment with details.
31287         This reverts part of the 2010-07-01 commit, 5bef1a35
31288         "hash: extend module to deal with non-pointer keys".
31289
31290 2010-07-01  Bruno Haible  <bruno@clisp.org>
31291
31292         stdbool: Update doc.
31293         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31294         Info from Christian Weisgerber <naddy@mips.inka.de>.
31295
31296 2010-07-01  Jim Meyering  <meyering@redhat.com>
31297
31298         hash: extend module to deal with non-pointer keys
31299         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31300         but that allows insertion of non-pointer entries.
31301         Do not disallow an ENTRY value of NULL.
31302         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31303         * lib/hash.h (hash_insert0): Declare.
31304
31305 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31306
31307         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31308         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31309         not present (i.e. with autoconf 2.59 and when using gettextize, not
31310         gnulib), require AC_GNU_SOURCE instead.
31311
31312 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31313
31314         idpriv-drop: Fix tests.
31315         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31316         not to the test-idpriv-droptemp program.
31317
31318 2010-06-29  Bruno Haible  <bruno@clisp.org>
31319
31320         string: Fix syntax error with g++ 2.96.
31321         * lib/string.in.h (__pure__): Remove definition.
31322         (_GL_ATTRIBUTE_PURE): New macro.
31323         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31324         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31325         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31326
31327 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31328
31329         unitypes: Fix bug introduced on 2010-05-18.
31330         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31331
31332 2010-06-22  Eric Blake  <eblake@redhat.com>
31333
31334         memmem: slight optimization
31335         * lib/str-two-way.h (critical_factorization): Update comments.
31336         Reduce work during factorization phase.
31337         Reported by Carlos Bueno <carlos@bueno.org>.
31338
31339 2010-06-21  Bruno Haible  <bruno@clisp.org>
31340
31341         Fix HAVE_CALLOC_POSIX misnomer.
31342         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31343         !HAVE_CALLOC_POSIX.
31344         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31345         HAVE_CALLOC_POSIX.
31346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31347         instead of HAVE_CALLOC_POSIX.
31348         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31349         HAVE_CALLOC_POSIX.
31350
31351         Use modern idiom for calloc() replacement.
31352         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31353         AC_FUNC_CALLOC.
31354         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31355         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31356         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31357         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31358         (gl_REPLACE_CALLOC): New macro.
31359
31360 2010-06-21  Bruno Haible  <bruno@clisp.org>
31361
31362         Fix HAVE_REALLOC_POSIX misnomer.
31363         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31364         !HAVE_REALLOC_POSIX.
31365         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31366         HAVE_REALLOC_POSIX.
31367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31368         instead of HAVE_REALLOC_POSIX.
31369         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31370         HAVE_REALLOC_POSIX.
31371
31372         Use modern idiom for realloc() replacement.
31373         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31374         AC_FUNC_REALLOC.
31375         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31376         Autoconf's AC_FUNC_REALLOC.
31377         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31378         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31379         (gl_REPLACE_REALLOC): New macro.
31380         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31381
31382 2010-06-21  Bruno Haible  <bruno@clisp.org>
31383
31384         Fix HAVE_MALLOC_POSIX misnomer.
31385         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31386         !HAVE_MALLOC_POSIX.
31387         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31388         HAVE_MALLOC_POSIX.
31389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31390         instead of HAVE_MALLOC_POSIX.
31391         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31392         HAVE_MALLOC_POSIX.
31393
31394         Use modern idiom for malloc() replacement.
31395         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31396         AC_FUNC_MALLOC.
31397         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31398         Autoconf's AC_FUNC_MALLOC.
31399         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31400         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31401         (gl_REPLACE_MALLOC): New macro.
31402         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31403
31404 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31405
31406         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31407         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31408         This macro takes 3 arguments, not 4.
31409
31410 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31411
31412         ipv6: fix detection under mingw
31413         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31414         in6_addr.
31415
31416 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31417
31418         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31419         that strtod() works when cross-compiling to a glibc version known
31420         to work.
31421
31422 2010-06-15  Bruno Haible  <bruno@clisp.org>
31423
31424         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31425
31426 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31427
31428         select: Correct timeout.
31429         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31430
31431 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31432
31433         git-version-gen: init shell var to avoid env var influence
31434         * build-aux/git-version-gen (v): Init shell var to empty.
31435
31436 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31437
31438         priv-set: Don't assume that priv.h exists merely because getppriv does.
31439         See Jan Andersen's bug report about AIX 5L in
31440         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31441         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31442         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31443         * lib/priv-set.h: Likewise.
31444         * tests/test-priv-set.c: Likewise.
31445
31446 2010-06-13  Bruno Haible  <bruno@clisp.org>
31447
31448         relocatable: Make it easier to test whether to install wrappers.
31449         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31450         RELOCATABLE_VIA_WRAPPER.
31451
31452 2010-06-13  Bruno Haible  <bruno@clisp.org>
31453
31454         gnulib-tool: Display specified modules and dependencies differently.
31455         * gnulib-tool (func_show_module_list): New function.
31456         (func_import, func_create_testdir): Invoke it.
31457         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31458
31459 2010-06-13  Bruno Haible  <bruno@clisp.org>
31460
31461         gnulib-tool: Align code of func_import and func_create_testdir.
31462         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31463         specified_modules.
31464
31465 2010-06-12  Jim Meyering  <meyering@redhat.com>
31466
31467         test-inttostr: avoid spurious failure on Solaris 9
31468         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31469         to accept "%ju".  Reported by Bruno Haible.
31470
31471 2010-06-11  Jim Meyering  <meyering@redhat.com>
31472
31473         test-sys_socket: mark variables as used more readably
31474         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31475         as "used" explicitly via (void) statement casts.  This is more
31476         readable than using them in an artificial return expression.
31477         Suggestion from Bruno Haible.
31478
31479 2010-06-11  Bruno Haible  <bruno@clisp.org>
31480
31481         Avoid some more warnings from "gcc -Wwrite-strings".
31482         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31483         to 'const char *'.
31484         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31485         * tests/test-c-strcasestr.c (main): Likewise.
31486         * tests/test-mbscasestr1.c (main): Likewise.
31487         * tests/test-mbscasestr2.c (main): Likewise.
31488         * tests/test-memmem.c (main): Likewise.
31489         * tests/test-strstr.c (main): Likewise.
31490         * tests/test-strcasestr.c (main): Likewise.
31491
31492 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31493
31494         init.sh: change framework_failure_ to fail with status 99, not 1
31495         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31496         automake's parallel-tests rule that this is an unexpected failure,
31497         even if the test is listed in XFAIL_TESTS.
31498
31499 2010-06-11  Jim Meyering  <meyering@redhat.com>
31500
31501         test-inttostr: avoid warnings about 4-6KB literal strings
31502         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31503         Include "macros.h", for its definition of ASSERT.
31504         (CK): s/assert/ASSERT/
31505         * modules/inttostr-tests (Files): Add macros.h.
31506
31507         init.sh: don't use $ME_ or skip_ before they are defined
31508         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31509         their first uses.  Also hoist their companions: warn_, fail_,
31510         framework_failure_, $stderr_fileno.  Prompted by a patch from
31511         Stefano Lattarini.
31512
31513         test-sys_socket: avoid set-but-not-used warnings from gcc
31514         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31515         avoid warning about set-but-not-used variables.
31516
31517         test-xvasprintf: avoid 'const' discard warnings
31518         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31519         "const" when assigning from literal strings.
31520         (test_xasprintf): Add "void" in function argument list to placate
31521         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31522
31523         tests: avoid compilation warnings in argmatch and exclude tests...
31524         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31525         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31526         Since it always exits, declare with the "noreturn" attribute.
31527         * tests/test-argmatch.c: Likewise.
31528
31529         tests: avoid 'const' discard warnings in mbsstr tests
31530         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31531         * tests/test-mbsstr2.c (main): Likewise.
31532
31533         test-verify: avoid warning from gcc's -Wmissing-declarations
31534         * tests/test-verify.c (function): Declare to be static.
31535
31536         test-inttostr.c: include <string.h> for use of strcmp
31537         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31538
31539         test-linkat: avoid failed assertion on "other" architectures
31540         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31541         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31542         sparc: https://bugs.launchpad.net/bugs/591968
31543
31544 2010-06-11  Jim Meyering  <meyering@redhat.com>
31545
31546         printf.m4: avoid autoconf's "Expanded Before Required" warning
31547         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31548         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31549         autoconf warning.
31550
31551 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31552
31553         Replacement header templates are now named with ".in", not "_".
31554         * doc/gnulib-intro.texi: Correct.
31555
31556 2010-06-10  Jim Meyering  <meyering@redhat.com>
31557
31558         inttostr-tests: depend on snprintf, not snprintf-posix
31559         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31560         snprintf-posix, to avoid this aclocal failure:
31561           missing file gnulib-tests/vasnprintf.c
31562           configure.ac:45: error: expected source file, required through \
31563           AC_LIBSOURCES, not found
31564
31565 2010-06-10  Jim Meyering  <meyering@redhat.com>
31566
31567         inttostr: add a new function, inttostr, and tests
31568         The namesake function was not available.  The existence of the
31569         template file, inttostr.c makes its addition nontrivial.
31570         * lib/anytostr.c: Rename from inttostr.c.
31571         (anytostr): Rename from inttostr.
31572         * lib/inttostr.c: New file.
31573         * modules/inttostr (Files): Add anytostr.c.
31574         (Makefile.am): Set lib_SOURCES instead of ...
31575         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31576         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31577         * lib/offtostr.c: Likewise.
31578         * lib/uinttostr.c: Likewise.
31579         * lib/umaxtostr.c: Likewise.
31580         * modules/inttostr-tests: New file.
31581         * tests/test-inttostr.c: New file.  Test these functions.
31582
31583 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31584             Bruno Haible  <bruno@clisp.org>
31585
31586         Add "Extending Gnulib" chapter to manual.
31587         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31588         chapter.
31589         (Extending Gnulib): New chapter.
31590         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31591         chapter.
31592
31593 2010-06-09  Bruno Haible  <bruno@clisp.org>
31594
31595         Avoid relocwrapper link errors due to gnulib replacement functions.
31596         * lib/areadlink.c: Use the system's malloc, realloc functions.
31597         (areadlink): Set errno to ENOMEM explicitly.
31598         * modules/areadlink (Depends-on): Remove malloc-posix.
31599         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31600
31601 2010-06-09  Bruno Haible  <bruno@clisp.org>
31602
31603         Avoid relocwrapper link errors due to gnulib replacement functions.
31604         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31605         * lib/malloca.c: Likewise.
31606         * lib/relocatable.c: Likewise.
31607         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31608         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31609         * lib/setenv.c: Use the system's malloc, realloc functions.
31610         * lib/strerror.c: Use the system's sprintf function.
31611         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31612
31613 2010-06-04  Bruno Haible  <bruno@clisp.org>
31614
31615         Prefer documented low-level autoconf macro names.
31616         * m4/lib-link.m4: Use m4_translit instead of translit.
31617         * m4/environ.m4: Likewise.
31618         * m4/mathfunc.m4: Likewise.
31619         * m4/onceonly.m4: Likewise.
31620         * m4/stdint.m4: Likewise.
31621         Suggested by Eric Blake.
31622
31623 2010-06-04  Martin Lambers  <marlam@marlam.de>
31624             Bruno Haible  <bruno@clisp.org>
31625
31626         havelib: Allow library names with '+' characters.
31627         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31628         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31629
31630 2010-06-09  Bruno Haible  <bruno@clisp.org>
31631
31632         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31633         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31634         realloc failed.
31635
31636 2010-06-08  Peter Simons  <simons@cryp.to>
31637
31638         maint.mk: make the news-check rule more configurable
31639         * top/maint.mk (news-check-lines-spec): New variable.
31640         (news-check): Use "sed -n 1,10p" in place of "head".
31641
31642 2010-06-07  Jim Meyering  <meyering@redhat.com>
31643
31644         do-release-commit-and-tag: fix typo in --help
31645         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31646
31647         regex: avoid new dead-code warning with gcc-4.6.0
31648         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31649         if-block containing a while-loop.  It's been unused for at least
31650         5 years.
31651
31652 2010-06-05  Bruno Haible  <bruno@clisp.org>
31653
31654         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31655         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31656
31657 2010-06-04  Bruno Haible  <bruno@clisp.org>
31658
31659         Update to GNU gettext 0.18.1.
31660         * modules/gettext (configure.ac): Require gettext infrastructure from
31661         version 0.18.1.
31662
31663 2010-06-03  Bruno Haible  <bruno@clisp.org>
31664
31665         Don't use AC_LIBOBJ with file names in subdirectories.
31666         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31667         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31668         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31669         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31670         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31671         gl_LIBUNISTRING_LIBSOURCE.
31672         (Makefile.am): Augment lib_SOURCES here, conditionally.
31673         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31674
31675 2010-06-03  Bruno Haible  <bruno@clisp.org>
31676
31677         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31678         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31679         expansion does not end with a newline.
31680         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31681         unnecessary newline.
31682
31683 2010-06-03  Bruno Haible  <bruno@clisp.org>
31684
31685         Reduce dependencies.
31686         * tests/test-quotearg.h: New file, extracted from
31687         tests/test-quotearg.c.
31688         * tests/test-quotearg-simple.c: New file, extracted from
31689         tests/test-quotearg.c.
31690         * tests/test-quotearg.c: Don't include <ctype.h>.
31691         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31692         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31693         use_quote_double_quotes, use_quotearg_colon): Moved to
31694         tests/test-quotearg.h.
31695         (results_g, flag_results, custom_quotes, custom_results): Moved
31696         to tests/test-quotearg-simple.c.
31697         (main): Moved the part that does not depend on gettext to
31698         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31699         performed.
31700         * modules/quotearg-simple: New file.
31701         * modules/quotearg-simple-tests: New file.
31702         * modules/quotearg (Depends-on): Add quotearg-simple.
31703         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31704         (Files): Add tests/test-quotearg.h.
31705         Reported by Paolo Bonzini.
31706
31707 2010-06-03  Bruno Haible  <bruno@clisp.org>
31708
31709         Reduce dependencies.
31710         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31711
31712 2010-06-03  Bruno Haible  <bruno@clisp.org>
31713
31714         time: Undefine more broken macros.
31715         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31716         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31717         Reported by Eric Blake.
31718
31719 2010-06-03  Bruno Haible  <bruno@clisp.org>
31720
31721         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31722         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31723         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31724         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31725         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31726         Reported by Ludovic Courtès <ludo@gnu.org>.
31727
31728 2010-06-02  Eric Blake  <eblake@redhat.com>
31729
31730         time: work with mingw + pthreads-win32 library
31731         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31732         if timespec is defined only in pthread.h.
31733         * modules/time (Makefile.am): Substitute it.
31734         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31735         <pthread.h>, when needed.
31736         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31737         from the library.
31738
31739 2010-05-31  Bruno Haible  <bruno@clisp.org>
31740
31741         Avoid expanding two macros in the wrong order.
31742         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31743         gl_LIBUNISTRING if it is defined.
31744         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31745         autoconf >= 2.64.
31746         Reported by Ludovic Courtès <ludo@gnu.org>.
31747
31748 2010-05-27  Jim Meyering  <meyering@redhat.com>
31749
31750         maint.mk: also prohibit "#undef" of always-defined symbols
31751         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31752         Allow more than one space before the symbol name.
31753         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31754         the regexp uses alternation.
31755
31756 2010-05-26  Eric Blake  <eblake@redhat.com>
31757
31758         maint.mk: avoid echo -e
31759         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31760         Convert all uses of echo -* to printf.
31761         Reported by Matthias Bolte.
31762
31763 2010-05-25  Bruno Haible  <bruno@clisp.org>
31764
31765         Update to GNU gettext 0.18, part 2.
31766         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31767         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31768
31769 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31770
31771         Add missing include in test-pwrite.c.
31772         * tests/test-pwrite.c: Include string.h, for strcmp.
31773
31774 2010-05-24  Bruno Haible  <bruno@clisp.org>
31775
31776         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31777
31778 2010-05-24  Bruno Haible  <bruno@clisp.org>
31779
31780         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31781         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31782         iconveh_error argument.
31783         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31784         U_STRCONV_TO_LOCALE.
31785         * lib/unistr/u16-strcoll.c: Likewise.
31786         * lib/unistr/u32-strcoll.c: Likewise.
31787         * modules/unistr/u8-strcoll (Depends-on): Add
31788         uniconv/u8-strconv-to-enc, localcharset. Remove
31789         uniconv/u8-strconv-to-locale.
31790         (configure.ac): Bump version number.
31791         * modules/unistr/u16-strcoll (Depends-on): Add
31792         uniconv/u16-strconv-to-enc, localcharset. Remove
31793         uniconv/u16-strconv-to-locale.
31794         (configure.ac): Bump version number.
31795         * modules/unistr/u32-strcoll (Depends-on): Add
31796         uniconv/u32-strconv-to-enc, localcharset. Remove
31797         uniconv/u32-strconv-to-locale.
31798         (configure.ac): Bump version number.
31799
31800 2010-05-24  Bruno Haible  <bruno@clisp.org>
31801
31802         Avoid a test failure on NetBSD 5.0.
31803         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31804         an iconv() bug.
31805
31806 2010-05-24  Bruno Haible  <bruno@clisp.org>
31807
31808         Adjust #include directive style.
31809         * modules/regex (Includes): Recommend to write <regex.h>.
31810
31811 2010-05-24  Bruno Haible  <bruno@clisp.org>
31812
31813         regex: Don't require alloca.
31814         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31815         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31816         only inside if (0).
31817
31818 2010-05-23  Jim Meyering  <meyering@redhat.com>
31819
31820         test-renameat.c: include <sys/stat.h>
31821         * tests/test-renameat.c: Include <sys/stat.h>; required for
31822         definition of S_IS* macros.
31823
31824 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31825
31826         Update maintainer documentation for 'relocatable-prog' module.
31827         * doc/relocatable-maint.texi: Update.
31828         Comments by Bruno Haible.
31829
31830 2010-05-23  Bruno Haible  <bruno@clisp.org>
31831
31832         git-merge-changelog: Enable --split-merged-entry by default.
31833         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31834         (usage): Don't mention this option any more.
31835         Reported by Ralf Wildenhues.
31836
31837 2010-05-23  Jim Meyering  <meyering@redhat.com>
31838
31839         test-pwrite: do not leave behind a test file named "out"
31840         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31841         The trivial-looking use of init.sh is really necessary.
31842         It ensures that the temporary file, "out", is created in
31843         a temporary directory, and removed upon termination.
31844         * tests/test-pwrite.sh: Re-add file.
31845         * modules/pwrite-tests: Reference it.
31846
31847 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31848
31849         Fix output redirection buglet in init.sh.
31850         * tests/init.sh: Fix redirection of stderr.
31851
31852 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31853
31854         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31855
31856 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31857
31858         * modules/valgrind-tests: New file.
31859         * m4/valgrind-tests.m4: New file.
31860         * doc/valgrind-tests.texi: New file.
31861         * doc/gnulib.texi (Running self-tests under valgrind): New
31862         section.
31863
31864 2010-05-19  Bruno Haible  <bruno@clisp.org>
31865
31866         Clean up dead code in recent commit.
31867         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31868         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31869         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31870         Suggested by Paolo Bonzini.
31871
31872 2010-05-19  Bruno Haible  <bruno@clisp.org>
31873
31874         Avoid valgrind error reports from libunistring.
31875         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31876         * modules/libunistring (Files): Add it.
31877         * modules/libunistring-optional (Files): Likewise.
31878
31879 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31880             Bruno Haible  <bruno@clisp.org>
31881
31882         New module 'libunistring-optional'.
31883         * modules/libunistring-optional: New file.
31884         * m4/libunistring-base.m4: New file.
31885         * m4/libunistring-optional.m4: New file.
31886         * lib/unicase.in.h: Renamed from lib/unicase.h.
31887         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31888         * lib/unictype.in.h: Renamed from lib/unictype.h.
31889         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31890         * lib/uniname.in.h: Renamed from lib/uniname.h.
31891         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31892         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31893         * lib/unistr.in.h: Renamed from lib/unistr.h.
31894         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31895         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31896         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31897         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31898         gl_LIBUNISTRING. If the library was found, determine the installed
31899         version and set LIBUNISTRING_VERSION.
31900         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31901         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31902         handle a configuration option --with-included-libunistring.
31903         * modules/libunistring (Files): Add m4/absolute-header.m4.
31904         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31905         Add m4/libunistring-base.m4.
31906         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31907         (Makefile.am): Build unicase.h from unicase.in.h.
31908         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31909         Add m4/libunistring-base.m4.
31910         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31911         (Makefile.am): Build uniconv.h from uniconv.in.h.
31912         * modules/unictype/base (Files): Use unictype.in.h instead of
31913         unictype.h. Add m4/libunistring-base.m4.
31914         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31915         (Makefile.am): Build unictype.h from unictype.in.h.
31916         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31917         Add m4/libunistring-base.m4.
31918         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31919         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31920         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31921         Add m4/libunistring-base.m4.
31922         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31923         (Makefile.am): Build uniname.h from uniname.in.h.
31924         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31925         Add m4/libunistring-base.m4.
31926         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31927         (Makefile.am): Build uninorm.h from uninorm.in.h.
31928         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31929         unistdio.h. Add m4/libunistring-base.m4.
31930         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31931         (Makefile.am): Build unistdio.h from unistdio.in.h.
31932         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31933         Add m4/libunistring-base.m4.
31934         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31935         (Makefile.am): Build unistr.h from unistr.in.h.
31936         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31937         Add m4/libunistring-base.m4.
31938         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31939         (Makefile.am): Build unitypes.h from unitypes.in.h.
31940         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31941         Add m4/libunistring-base.m4.
31942         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31943         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31944         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31945         uniwidth.h. Add m4/libunistring-base.m4.
31946         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31947         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31948         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31949         instead of augmenting lib_SOURCES.
31950         * modules/unicase/empty-suffix-context: Likewise.
31951         * modules/unicase/locale-language: Likewise.
31952         * modules/unicase/tolower: Likewise.
31953         * modules/unicase/totitle: Likewise.
31954         * modules/unicase/toupper: Likewise.
31955         * modules/unicase/u8-casecmp: Likewise.
31956         * modules/unicase/u8-casecoll: Likewise.
31957         * modules/unicase/u8-casefold: Likewise.
31958         * modules/unicase/u8-casexfrm: Likewise.
31959         * modules/unicase/u8-ct-casefold: Likewise.
31960         * modules/unicase/u8-ct-tolower: Likewise.
31961         * modules/unicase/u8-ct-totitle: Likewise.
31962         * modules/unicase/u8-ct-toupper: Likewise.
31963         * modules/unicase/u8-is-cased: Likewise.
31964         * modules/unicase/u8-is-casefolded: Likewise.
31965         * modules/unicase/u8-is-lowercase: Likewise.
31966         * modules/unicase/u8-is-titlecase: Likewise.
31967         * modules/unicase/u8-is-uppercase: Likewise.
31968         * modules/unicase/u8-prefix-context: Likewise.
31969         * modules/unicase/u8-suffix-context: Likewise.
31970         * modules/unicase/u8-tolower: Likewise.
31971         * modules/unicase/u8-totitle: Likewise.
31972         * modules/unicase/u8-toupper: Likewise.
31973         * modules/unicase/u16-casecmp: Likewise.
31974         * modules/unicase/u16-casecoll: Likewise.
31975         * modules/unicase/u16-casefold: Likewise.
31976         * modules/unicase/u16-casexfrm: Likewise.
31977         * modules/unicase/u16-ct-casefold: Likewise.
31978         * modules/unicase/u16-ct-tolower: Likewise.
31979         * modules/unicase/u16-ct-totitle: Likewise.
31980         * modules/unicase/u16-ct-toupper: Likewise.
31981         * modules/unicase/u16-is-cased: Likewise.
31982         * modules/unicase/u16-is-casefolded: Likewise.
31983         * modules/unicase/u16-is-lowercase: Likewise.
31984         * modules/unicase/u16-is-titlecase: Likewise.
31985         * modules/unicase/u16-is-uppercase: Likewise.
31986         * modules/unicase/u16-prefix-context: Likewise.
31987         * modules/unicase/u16-suffix-context: Likewise.
31988         * modules/unicase/u16-tolower: Likewise.
31989         * modules/unicase/u16-totitle: Likewise.
31990         * modules/unicase/u16-toupper: Likewise.
31991         * modules/unicase/u32-casecmp: Likewise.
31992         * modules/unicase/u32-casecoll: Likewise.
31993         * modules/unicase/u32-casefold: Likewise.
31994         * modules/unicase/u32-casexfrm: Likewise.
31995         * modules/unicase/u32-ct-casefold: Likewise.
31996         * modules/unicase/u32-ct-tolower: Likewise.
31997         * modules/unicase/u32-ct-totitle: Likewise.
31998         * modules/unicase/u32-ct-toupper: Likewise.
31999         * modules/unicase/u32-is-cased: Likewise.
32000         * modules/unicase/u32-is-casefolded: Likewise.
32001         * modules/unicase/u32-is-lowercase: Likewise.
32002         * modules/unicase/u32-is-titlecase: Likewise.
32003         * modules/unicase/u32-is-uppercase: Likewise.
32004         * modules/unicase/u32-prefix-context: Likewise.
32005         * modules/unicase/u32-suffix-context: Likewise.
32006         * modules/unicase/u32-tolower: Likewise.
32007         * modules/unicase/u32-totitle: Likewise.
32008         * modules/unicase/u32-toupper: Likewise.
32009         * modules/unicase/ulc-casecmp: Likewise.
32010         * modules/unicase/ulc-casecoll: Likewise.
32011         * modules/unicase/ulc-casexfrm: Likewise.
32012         * modules/uniconv/u8-conv-from-enc: Likewise.
32013         * modules/uniconv/u8-conv-to-enc: Likewise.
32014         * modules/uniconv/u8-strconv-from-enc: Likewise.
32015         * modules/uniconv/u8-strconv-from-locale: Likewise.
32016         * modules/uniconv/u8-strconv-to-enc: Likewise.
32017         * modules/uniconv/u8-strconv-to-locale: Likewise.
32018         * modules/uniconv/u16-conv-from-enc: Likewise.
32019         * modules/uniconv/u16-conv-to-enc: Likewise.
32020         * modules/uniconv/u16-strconv-from-enc: Likewise.
32021         * modules/uniconv/u16-strconv-from-locale: Likewise.
32022         * modules/uniconv/u16-strconv-to-enc: Likewise.
32023         * modules/uniconv/u16-strconv-to-locale: Likewise.
32024         * modules/uniconv/u32-conv-from-enc: Likewise.
32025         * modules/uniconv/u32-conv-to-enc: Likewise.
32026         * modules/uniconv/u32-strconv-from-enc: Likewise.
32027         * modules/uniconv/u32-strconv-from-locale: Likewise.
32028         * modules/uniconv/u32-strconv-to-enc: Likewise.
32029         * modules/uniconv/u32-strconv-to-locale: Likewise.
32030         * modules/unictype/bidicategory-byname: Likewise.
32031         * modules/unictype/bidicategory-name: Likewise.
32032         * modules/unictype/bidicategory-of: Likewise.
32033         * modules/unictype/bidicategory-test: Likewise.
32034         * modules/unictype/block-list: Likewise.
32035         * modules/unictype/block-test: Likewise.
32036         * modules/unictype/category-C: Likewise.
32037         * modules/unictype/category-Cc: Likewise.
32038         * modules/unictype/category-Cf: Likewise.
32039         * modules/unictype/category-Cn: Likewise.
32040         * modules/unictype/category-Co: Likewise.
32041         * modules/unictype/category-Cs: Likewise.
32042         * modules/unictype/category-L: Likewise.
32043         * modules/unictype/category-Ll: Likewise.
32044         * modules/unictype/category-Lm: Likewise.
32045         * modules/unictype/category-Lo: Likewise.
32046         * modules/unictype/category-Lt: Likewise.
32047         * modules/unictype/category-Lu: Likewise.
32048         * modules/unictype/category-M: Likewise.
32049         * modules/unictype/category-Mc: Likewise.
32050         * modules/unictype/category-Me: Likewise.
32051         * modules/unictype/category-Mn: Likewise.
32052         * modules/unictype/category-N: Likewise.
32053         * modules/unictype/category-Nd: Likewise.
32054         * modules/unictype/category-Nl: Likewise.
32055         * modules/unictype/category-No: Likewise.
32056         * modules/unictype/category-P: Likewise.
32057         * modules/unictype/category-Pc: Likewise.
32058         * modules/unictype/category-Pd: Likewise.
32059         * modules/unictype/category-Pe: Likewise.
32060         * modules/unictype/category-Pf: Likewise.
32061         * modules/unictype/category-Pi: Likewise.
32062         * modules/unictype/category-Po: Likewise.
32063         * modules/unictype/category-Ps: Likewise.
32064         * modules/unictype/category-S: Likewise.
32065         * modules/unictype/category-Sc: Likewise.
32066         * modules/unictype/category-Sk: Likewise.
32067         * modules/unictype/category-Sm: Likewise.
32068         * modules/unictype/category-So: Likewise.
32069         * modules/unictype/category-Z: Likewise.
32070         * modules/unictype/category-Zl: Likewise.
32071         * modules/unictype/category-Zp: Likewise.
32072         * modules/unictype/category-Zs: Likewise.
32073         * modules/unictype/category-and: Likewise.
32074         * modules/unictype/category-and-not: Likewise.
32075         * modules/unictype/category-byname: Likewise.
32076         * modules/unictype/category-name: Likewise.
32077         * modules/unictype/category-none: Likewise.
32078         * modules/unictype/category-of: Likewise.
32079         * modules/unictype/category-or: Likewise.
32080         * modules/unictype/category-test: Likewise.
32081         * modules/unictype/combining-class: Likewise.
32082         * modules/unictype/ctype-alnum: Likewise.
32083         * modules/unictype/ctype-alpha: Likewise.
32084         * modules/unictype/ctype-blank: Likewise.
32085         * modules/unictype/ctype-cntrl: Likewise.
32086         * modules/unictype/ctype-digit: Likewise.
32087         * modules/unictype/ctype-graph: Likewise.
32088         * modules/unictype/ctype-lower: Likewise.
32089         * modules/unictype/ctype-print: Likewise.
32090         * modules/unictype/ctype-punct: Likewise.
32091         * modules/unictype/ctype-space: Likewise.
32092         * modules/unictype/ctype-upper: Likewise.
32093         * modules/unictype/ctype-xdigit: Likewise.
32094         * modules/unictype/decimal-digit: Likewise.
32095         * modules/unictype/digit: Likewise.
32096         * modules/unictype/mirror: Likewise.
32097         * modules/unictype/numeric: Likewise.
32098         * modules/unictype/property-alphabetic: Likewise.
32099         * modules/unictype/property-ascii-hex-digit: Likewise.
32100         * modules/unictype/property-bidi-arabic-digit: Likewise.
32101         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32102         * modules/unictype/property-bidi-block-separator: Likewise.
32103         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32104         * modules/unictype/property-bidi-common-separator: Likewise.
32105         * modules/unictype/property-bidi-control: Likewise.
32106         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32107         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32108         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32109         * modules/unictype/property-bidi-european-digit: Likewise.
32110         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32111         * modules/unictype/property-bidi-left-to-right: Likewise.
32112         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32113         * modules/unictype/property-bidi-other-neutral: Likewise.
32114         * modules/unictype/property-bidi-pdf: Likewise.
32115         * modules/unictype/property-bidi-segment-separator: Likewise.
32116         * modules/unictype/property-bidi-whitespace: Likewise.
32117         * modules/unictype/property-byname: Likewise.
32118         * modules/unictype/property-combining: Likewise.
32119         * modules/unictype/property-composite: Likewise.
32120         * modules/unictype/property-currency-symbol: Likewise.
32121         * modules/unictype/property-dash: Likewise.
32122         * modules/unictype/property-decimal-digit: Likewise.
32123         * modules/unictype/property-default-ignorable-code-point: Likewise.
32124         * modules/unictype/property-deprecated: Likewise.
32125         * modules/unictype/property-diacritic: Likewise.
32126         * modules/unictype/property-extender: Likewise.
32127         * modules/unictype/property-format-control: Likewise.
32128         * modules/unictype/property-grapheme-base: Likewise.
32129         * modules/unictype/property-grapheme-extend: Likewise.
32130         * modules/unictype/property-grapheme-link: Likewise.
32131         * modules/unictype/property-hex-digit: Likewise.
32132         * modules/unictype/property-hyphen: Likewise.
32133         * modules/unictype/property-id-continue: Likewise.
32134         * modules/unictype/property-id-start: Likewise.
32135         * modules/unictype/property-ideographic: Likewise.
32136         * modules/unictype/property-ids-binary-operator: Likewise.
32137         * modules/unictype/property-ids-trinary-operator: Likewise.
32138         * modules/unictype/property-ignorable-control: Likewise.
32139         * modules/unictype/property-iso-control: Likewise.
32140         * modules/unictype/property-join-control: Likewise.
32141         * modules/unictype/property-left-of-pair: Likewise.
32142         * modules/unictype/property-line-separator: Likewise.
32143         * modules/unictype/property-logical-order-exception: Likewise.
32144         * modules/unictype/property-lowercase: Likewise.
32145         * modules/unictype/property-math: Likewise.
32146         * modules/unictype/property-non-break: Likewise.
32147         * modules/unictype/property-not-a-character: Likewise.
32148         * modules/unictype/property-numeric: Likewise.
32149         * modules/unictype/property-other-alphabetic: Likewise.
32150         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32151         * modules/unictype/property-other-grapheme-extend: Likewise.
32152         * modules/unictype/property-other-id-continue: Likewise.
32153         * modules/unictype/property-other-id-start: Likewise.
32154         * modules/unictype/property-other-lowercase: Likewise.
32155         * modules/unictype/property-other-math: Likewise.
32156         * modules/unictype/property-other-uppercase: Likewise.
32157         * modules/unictype/property-paired-punctuation: Likewise.
32158         * modules/unictype/property-paragraph-separator: Likewise.
32159         * modules/unictype/property-pattern-syntax: Likewise.
32160         * modules/unictype/property-pattern-white-space: Likewise.
32161         * modules/unictype/property-private-use: Likewise.
32162         * modules/unictype/property-punctuation: Likewise.
32163         * modules/unictype/property-quotation-mark: Likewise.
32164         * modules/unictype/property-radical: Likewise.
32165         * modules/unictype/property-sentence-terminal: Likewise.
32166         * modules/unictype/property-soft-dotted: Likewise.
32167         * modules/unictype/property-space: Likewise.
32168         * modules/unictype/property-terminal-punctuation: Likewise.
32169         * modules/unictype/property-test: Likewise.
32170         * modules/unictype/property-titlecase: Likewise.
32171         * modules/unictype/property-unassigned-code-value: Likewise.
32172         * modules/unictype/property-unified-ideograph: Likewise.
32173         * modules/unictype/property-uppercase: Likewise.
32174         * modules/unictype/property-variation-selector: Likewise.
32175         * modules/unictype/property-white-space: Likewise.
32176         * modules/unictype/property-xid-continue: Likewise.
32177         * modules/unictype/property-xid-start: Likewise.
32178         * modules/unictype/property-zero-width: Likewise.
32179         * modules/unictype/scripts: Likewise.
32180         * modules/unictype/syntax-c-ident: Likewise.
32181         * modules/unictype/syntax-c-whitespace: Likewise.
32182         * modules/unictype/syntax-java-ident: Likewise.
32183         * modules/unictype/syntax-java-whitespace: Likewise.
32184         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32185         * modules/unilbrk/u8-width-linebreaks: Likewise.
32186         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32187         * modules/unilbrk/u16-width-linebreaks: Likewise.
32188         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32189         * modules/unilbrk/u32-width-linebreaks: Likewise.
32190         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32191         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32192         * modules/uniname/uniname: Likewise.
32193         * modules/uninorm/canonical-decomposition: Likewise.
32194         * modules/uninorm/composition: Likewise.
32195         * modules/uninorm/decomposing-form: Likewise.
32196         * modules/uninorm/decomposition: Likewise.
32197         * modules/uninorm/filter: Likewise.
32198         * modules/uninorm/nfc: Likewise.
32199         * modules/uninorm/nfd: Likewise.
32200         * modules/uninorm/nfkc: Likewise.
32201         * modules/uninorm/nfkd: Likewise.
32202         * modules/uninorm/u8-normalize: Likewise.
32203         * modules/uninorm/u8-normcmp: Likewise.
32204         * modules/uninorm/u8-normcoll: Likewise.
32205         * modules/uninorm/u8-normxfrm: Likewise.
32206         * modules/uninorm/u16-normalize: Likewise.
32207         * modules/uninorm/u16-normcmp: Likewise.
32208         * modules/uninorm/u16-normcoll: Likewise.
32209         * modules/uninorm/u16-normxfrm: Likewise.
32210         * modules/uninorm/u32-normalize: Likewise.
32211         * modules/uninorm/u32-normcmp: Likewise.
32212         * modules/uninorm/u32-normcoll: Likewise.
32213         * modules/uninorm/u32-normxfrm: Likewise.
32214         * modules/unistdio/u8-asnprintf: Likewise.
32215         * modules/unistdio/u8-asprintf: Likewise.
32216         * modules/unistdio/u8-snprintf: Likewise.
32217         * modules/unistdio/u8-sprintf: Likewise.
32218         * modules/unistdio/u8-u8-asnprintf: Likewise.
32219         * modules/unistdio/u8-u8-asprintf: Likewise.
32220         * modules/unistdio/u8-u8-snprintf: Likewise.
32221         * modules/unistdio/u8-u8-sprintf: Likewise.
32222         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32223         * modules/unistdio/u8-u8-vasprintf: Likewise.
32224         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32225         * modules/unistdio/u8-u8-vsprintf: Likewise.
32226         * modules/unistdio/u8-vasnprintf: Likewise.
32227         * modules/unistdio/u8-vasprintf: Likewise.
32228         * modules/unistdio/u8-vsnprintf: Likewise.
32229         * modules/unistdio/u8-vsprintf: Likewise.
32230         * modules/unistdio/u16-asnprintf: Likewise.
32231         * modules/unistdio/u16-asprintf: Likewise.
32232         * modules/unistdio/u16-snprintf: Likewise.
32233         * modules/unistdio/u16-sprintf: Likewise.
32234         * modules/unistdio/u16-u16-asnprintf: Likewise.
32235         * modules/unistdio/u16-u16-asprintf: Likewise.
32236         * modules/unistdio/u16-u16-snprintf: Likewise.
32237         * modules/unistdio/u16-u16-sprintf: Likewise.
32238         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32239         * modules/unistdio/u16-u16-vasprintf: Likewise.
32240         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32241         * modules/unistdio/u16-u16-vsprintf: Likewise.
32242         * modules/unistdio/u16-vasnprintf: Likewise.
32243         * modules/unistdio/u16-vasprintf: Likewise.
32244         * modules/unistdio/u16-vsnprintf: Likewise.
32245         * modules/unistdio/u16-vsprintf: Likewise.
32246         * modules/unistdio/u32-asnprintf: Likewise.
32247         * modules/unistdio/u32-asprintf: Likewise.
32248         * modules/unistdio/u32-snprintf: Likewise.
32249         * modules/unistdio/u32-sprintf: Likewise.
32250         * modules/unistdio/u32-u32-asnprintf: Likewise.
32251         * modules/unistdio/u32-u32-asprintf: Likewise.
32252         * modules/unistdio/u32-u32-snprintf: Likewise.
32253         * modules/unistdio/u32-u32-sprintf: Likewise.
32254         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32255         * modules/unistdio/u32-u32-vasprintf: Likewise.
32256         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32257         * modules/unistdio/u32-u32-vsprintf: Likewise.
32258         * modules/unistdio/u32-vasnprintf: Likewise.
32259         * modules/unistdio/u32-vasprintf: Likewise.
32260         * modules/unistdio/u32-vsnprintf: Likewise.
32261         * modules/unistdio/u32-vsprintf: Likewise.
32262         * modules/unistdio/ulc-asnprintf: Likewise.
32263         * modules/unistdio/ulc-asprintf: Likewise.
32264         * modules/unistdio/ulc-fprintf: Likewise.
32265         * modules/unistdio/ulc-snprintf: Likewise.
32266         * modules/unistdio/ulc-sprintf: Likewise.
32267         * modules/unistdio/ulc-vasnprintf: Likewise.
32268         * modules/unistdio/ulc-vasprintf: Likewise.
32269         * modules/unistdio/ulc-vfprintf: Likewise.
32270         * modules/unistdio/ulc-vsnprintf: Likewise.
32271         * modules/unistdio/ulc-vsprintf: Likewise.
32272         * modules/unistr/u8-check: Likewise.
32273         * modules/unistr/u8-chr: Likewise.
32274         * modules/unistr/u8-cmp: Likewise.
32275         * modules/unistr/u8-cmp2: Likewise.
32276         * modules/unistr/u8-cpy: Likewise.
32277         * modules/unistr/u8-cpy-alloc: Likewise.
32278         * modules/unistr/u8-endswith: Likewise.
32279         * modules/unistr/u8-mblen: Likewise.
32280         * modules/unistr/u8-mbsnlen: Likewise.
32281         * modules/unistr/u8-mbtouc: Likewise.
32282         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32283         * modules/unistr/u8-mbtoucr: Likewise.
32284         * modules/unistr/u8-move: Likewise.
32285         * modules/unistr/u8-next: Likewise.
32286         * modules/unistr/u8-prev: Likewise.
32287         * modules/unistr/u8-set: Likewise.
32288         * modules/unistr/u8-startswith: Likewise.
32289         * modules/unistr/u8-stpcpy: Likewise.
32290         * modules/unistr/u8-stpncpy: Likewise.
32291         * modules/unistr/u8-strcat: Likewise.
32292         * modules/unistr/u8-strchr: Likewise.
32293         * modules/unistr/u8-strcmp: Likewise.
32294         * modules/unistr/u8-strcoll: Likewise.
32295         * modules/unistr/u8-strcpy: Likewise.
32296         * modules/unistr/u8-strcspn: Likewise.
32297         * modules/unistr/u8-strdup: Likewise.
32298         * modules/unistr/u8-strlen: Likewise.
32299         * modules/unistr/u8-strmblen: Likewise.
32300         * modules/unistr/u8-strmbtouc: Likewise.
32301         * modules/unistr/u8-strncat: Likewise.
32302         * modules/unistr/u8-strncmp: Likewise.
32303         * modules/unistr/u8-strncpy: Likewise.
32304         * modules/unistr/u8-strnlen: Likewise.
32305         * modules/unistr/u8-strpbrk: Likewise.
32306         * modules/unistr/u8-strrchr: Likewise.
32307         * modules/unistr/u8-strspn: Likewise.
32308         * modules/unistr/u8-strstr: Likewise.
32309         * modules/unistr/u8-strtok: Likewise.
32310         * modules/unistr/u8-to-u16: Likewise.
32311         * modules/unistr/u8-to-u32: Likewise.
32312         * modules/unistr/u8-uctomb: Likewise.
32313         * modules/unistr/u16-check: Likewise.
32314         * modules/unistr/u16-chr: Likewise.
32315         * modules/unistr/u16-cmp: Likewise.
32316         * modules/unistr/u16-cmp2: Likewise.
32317         * modules/unistr/u16-cpy: Likewise.
32318         * modules/unistr/u16-cpy-alloc: Likewise.
32319         * modules/unistr/u16-endswith: Likewise.
32320         * modules/unistr/u16-mblen: Likewise.
32321         * modules/unistr/u16-mbsnlen: Likewise.
32322         * modules/unistr/u16-mbtouc: Likewise.
32323         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32324         * modules/unistr/u16-mbtoucr: Likewise.
32325         * modules/unistr/u16-move: Likewise.
32326         * modules/unistr/u16-next: Likewise.
32327         * modules/unistr/u16-prev: Likewise.
32328         * modules/unistr/u16-set: Likewise.
32329         * modules/unistr/u16-startswith: Likewise.
32330         * modules/unistr/u16-stpcpy: Likewise.
32331         * modules/unistr/u16-stpncpy: Likewise.
32332         * modules/unistr/u16-strcat: Likewise.
32333         * modules/unistr/u16-strchr: Likewise.
32334         * modules/unistr/u16-strcmp: Likewise.
32335         * modules/unistr/u16-strcoll: Likewise.
32336         * modules/unistr/u16-strcpy: Likewise.
32337         * modules/unistr/u16-strcspn: Likewise.
32338         * modules/unistr/u16-strdup: Likewise.
32339         * modules/unistr/u16-strlen: Likewise.
32340         * modules/unistr/u16-strmblen: Likewise.
32341         * modules/unistr/u16-strmbtouc: Likewise.
32342         * modules/unistr/u16-strncat: Likewise.
32343         * modules/unistr/u16-strncmp: Likewise.
32344         * modules/unistr/u16-strncpy: Likewise.
32345         * modules/unistr/u16-strnlen: Likewise.
32346         * modules/unistr/u16-strpbrk: Likewise.
32347         * modules/unistr/u16-strrchr: Likewise.
32348         * modules/unistr/u16-strspn: Likewise.
32349         * modules/unistr/u16-strstr: Likewise.
32350         * modules/unistr/u16-strtok: Likewise.
32351         * modules/unistr/u16-to-u32: Likewise.
32352         * modules/unistr/u16-to-u8: Likewise.
32353         * modules/unistr/u16-uctomb: Likewise.
32354         * modules/unistr/u32-check: Likewise.
32355         * modules/unistr/u32-chr: Likewise.
32356         * modules/unistr/u32-cmp: Likewise.
32357         * modules/unistr/u32-cmp2: Likewise.
32358         * modules/unistr/u32-cpy: Likewise.
32359         * modules/unistr/u32-cpy-alloc: Likewise.
32360         * modules/unistr/u32-endswith: Likewise.
32361         * modules/unistr/u32-mblen: Likewise.
32362         * modules/unistr/u32-mbsnlen: Likewise.
32363         * modules/unistr/u32-mbtouc: Likewise.
32364         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32365         * modules/unistr/u32-mbtoucr: Likewise.
32366         * modules/unistr/u32-move: Likewise.
32367         * modules/unistr/u32-next: Likewise.
32368         * modules/unistr/u32-prev: Likewise.
32369         * modules/unistr/u32-set: Likewise.
32370         * modules/unistr/u32-startswith: Likewise.
32371         * modules/unistr/u32-stpcpy: Likewise.
32372         * modules/unistr/u32-stpncpy: Likewise.
32373         * modules/unistr/u32-strcat: Likewise.
32374         * modules/unistr/u32-strchr: Likewise.
32375         * modules/unistr/u32-strcmp: Likewise.
32376         * modules/unistr/u32-strcoll: Likewise.
32377         * modules/unistr/u32-strcpy: Likewise.
32378         * modules/unistr/u32-strcspn: Likewise.
32379         * modules/unistr/u32-strdup: Likewise.
32380         * modules/unistr/u32-strlen: Likewise.
32381         * modules/unistr/u32-strmblen: Likewise.
32382         * modules/unistr/u32-strmbtouc: Likewise.
32383         * modules/unistr/u32-strncat: Likewise.
32384         * modules/unistr/u32-strncmp: Likewise.
32385         * modules/unistr/u32-strncpy: Likewise.
32386         * modules/unistr/u32-strnlen: Likewise.
32387         * modules/unistr/u32-strpbrk: Likewise.
32388         * modules/unistr/u32-strrchr: Likewise.
32389         * modules/unistr/u32-strspn: Likewise.
32390         * modules/unistr/u32-strstr: Likewise.
32391         * modules/unistr/u32-strtok: Likewise.
32392         * modules/unistr/u32-to-u16: Likewise.
32393         * modules/unistr/u32-to-u8: Likewise.
32394         * modules/unistr/u32-uctomb: Likewise.
32395         * modules/uniwbrk/u8-wordbreaks: Likewise.
32396         * modules/uniwbrk/u16-wordbreaks: Likewise.
32397         * modules/uniwbrk/u32-wordbreaks: Likewise.
32398         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32399         * modules/uniwbrk/wordbreak-property: Likewise.
32400         * modules/uniwidth/u8-strwidth: Likewise.
32401         * modules/uniwidth/u8-width: Likewise.
32402         * modules/uniwidth/u16-strwidth: Likewise.
32403         * modules/uniwidth/u16-width: Likewise.
32404         * modules/uniwidth/u32-strwidth: Likewise.
32405         * modules/uniwidth/u32-width: Likewise.
32406         * modules/uniwidth/width: Likewise.
32407         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32408         with $(LIBUNISTRING).
32409         * modules/unicase/ignorable-tests: Likewise.
32410         * modules/unicase/locale-language-tests: Likewise.
32411         * modules/unicase/tolower-tests: Likewise.
32412         * modules/unicase/totitle-tests: Likewise.
32413         * modules/unicase/toupper-tests: Likewise.
32414         * modules/unicase/u8-casecmp-tests: Likewise.
32415         * modules/unicase/u8-casecoll-tests: Likewise.
32416         * modules/unicase/u8-casefold-tests: Likewise.
32417         * modules/unicase/u8-is-cased-tests: Likewise.
32418         * modules/unicase/u8-is-casefolded-tests: Likewise.
32419         * modules/unicase/u8-is-lowercase-tests: Likewise.
32420         * modules/unicase/u8-is-titlecase-tests: Likewise.
32421         * modules/unicase/u8-is-uppercase-tests: Likewise.
32422         * modules/unicase/u8-tolower-tests: Likewise.
32423         * modules/unicase/u8-totitle-tests: Likewise.
32424         * modules/unicase/u8-toupper-tests: Likewise.
32425         * modules/unicase/u16-casecmp-tests: Likewise.
32426         * modules/unicase/u16-casecoll-tests: Likewise.
32427         * modules/unicase/u16-casefold-tests: Likewise.
32428         * modules/unicase/u16-is-cased-tests: Likewise.
32429         * modules/unicase/u16-is-casefolded-tests: Likewise.
32430         * modules/unicase/u16-is-lowercase-tests: Likewise.
32431         * modules/unicase/u16-is-titlecase-tests: Likewise.
32432         * modules/unicase/u16-is-uppercase-tests: Likewise.
32433         * modules/unicase/u16-tolower-tests: Likewise.
32434         * modules/unicase/u16-totitle-tests: Likewise.
32435         * modules/unicase/u16-toupper-tests: Likewise.
32436         * modules/unicase/u32-casecmp-tests: Likewise.
32437         * modules/unicase/u32-casecoll-tests: Likewise.
32438         * modules/unicase/u32-casefold-tests: Likewise.
32439         * modules/unicase/u32-is-cased-tests: Likewise.
32440         * modules/unicase/u32-is-casefolded-tests: Likewise.
32441         * modules/unicase/u32-is-lowercase-tests: Likewise.
32442         * modules/unicase/u32-is-titlecase-tests: Likewise.
32443         * modules/unicase/u32-is-uppercase-tests: Likewise.
32444         * modules/unicase/u32-tolower-tests: Likewise.
32445         * modules/unicase/u32-totitle-tests: Likewise.
32446         * modules/unicase/u32-toupper-tests: Likewise.
32447         * modules/unicase/ulc-casecmp-tests: Likewise.
32448         * modules/unicase/ulc-casecoll-tests: Likewise.
32449         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32450         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32451         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32452         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32453         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32454         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32455         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32456         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32457         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32458         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32459         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32460         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32461         * modules/unictype/bidicategory-byname-tests: Likewise.
32462         * modules/unictype/bidicategory-name-tests: Likewise.
32463         * modules/unictype/bidicategory-of-tests: Likewise.
32464         * modules/unictype/bidicategory-test-tests: Likewise.
32465         * modules/unictype/block-list-tests: Likewise.
32466         * modules/unictype/block-of-tests: Likewise.
32467         * modules/unictype/block-test-tests: Likewise.
32468         * modules/unictype/category-C-tests: Likewise.
32469         * modules/unictype/category-Cc-tests: Likewise.
32470         * modules/unictype/category-Cf-tests: Likewise.
32471         * modules/unictype/category-Cn-tests: Likewise.
32472         * modules/unictype/category-Co-tests: Likewise.
32473         * modules/unictype/category-Cs-tests: Likewise.
32474         * modules/unictype/category-L-tests: Likewise.
32475         * modules/unictype/category-Ll-tests: Likewise.
32476         * modules/unictype/category-Lm-tests: Likewise.
32477         * modules/unictype/category-Lo-tests: Likewise.
32478         * modules/unictype/category-Lt-tests: Likewise.
32479         * modules/unictype/category-Lu-tests: Likewise.
32480         * modules/unictype/category-M-tests: Likewise.
32481         * modules/unictype/category-Mc-tests: Likewise.
32482         * modules/unictype/category-Me-tests: Likewise.
32483         * modules/unictype/category-Mn-tests: Likewise.
32484         * modules/unictype/category-N-tests: Likewise.
32485         * modules/unictype/category-Nd-tests: Likewise.
32486         * modules/unictype/category-Nl-tests: Likewise.
32487         * modules/unictype/category-No-tests: Likewise.
32488         * modules/unictype/category-P-tests: Likewise.
32489         * modules/unictype/category-Pc-tests: Likewise.
32490         * modules/unictype/category-Pd-tests: Likewise.
32491         * modules/unictype/category-Pe-tests: Likewise.
32492         * modules/unictype/category-Pf-tests: Likewise.
32493         * modules/unictype/category-Pi-tests: Likewise.
32494         * modules/unictype/category-Po-tests: Likewise.
32495         * modules/unictype/category-Ps-tests: Likewise.
32496         * modules/unictype/category-S-tests: Likewise.
32497         * modules/unictype/category-Sc-tests: Likewise.
32498         * modules/unictype/category-Sk-tests: Likewise.
32499         * modules/unictype/category-Sm-tests: Likewise.
32500         * modules/unictype/category-So-tests: Likewise.
32501         * modules/unictype/category-Z-tests: Likewise.
32502         * modules/unictype/category-Zl-tests: Likewise.
32503         * modules/unictype/category-Zp-tests: Likewise.
32504         * modules/unictype/category-Zs-tests: Likewise.
32505         * modules/unictype/category-and-not-tests: Likewise.
32506         * modules/unictype/category-and-tests: Likewise.
32507         * modules/unictype/category-byname-tests: Likewise.
32508         * modules/unictype/category-name-tests: Likewise.
32509         * modules/unictype/category-none-tests: Likewise.
32510         * modules/unictype/category-of-tests: Likewise.
32511         * modules/unictype/category-or-tests: Likewise.
32512         * modules/unictype/category-test-withtable-tests: Likewise.
32513         * modules/unictype/combining-class-tests: Likewise.
32514         * modules/unictype/ctype-alnum-tests: Likewise.
32515         * modules/unictype/ctype-alpha-tests: Likewise.
32516         * modules/unictype/ctype-blank-tests: Likewise.
32517         * modules/unictype/ctype-cntrl-tests: Likewise.
32518         * modules/unictype/ctype-digit-tests: Likewise.
32519         * modules/unictype/ctype-graph-tests: Likewise.
32520         * modules/unictype/ctype-lower-tests: Likewise.
32521         * modules/unictype/ctype-print-tests: Likewise.
32522         * modules/unictype/ctype-punct-tests: Likewise.
32523         * modules/unictype/ctype-space-tests: Likewise.
32524         * modules/unictype/ctype-upper-tests: Likewise.
32525         * modules/unictype/ctype-xdigit-tests: Likewise.
32526         * modules/unictype/decimal-digit-tests: Likewise.
32527         * modules/unictype/digit-tests: Likewise.
32528         * modules/unictype/mirror-tests: Likewise.
32529         * modules/unictype/numeric-tests: Likewise.
32530         * modules/unictype/property-alphabetic-tests: Likewise.
32531         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32532         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32533         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32534         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32535         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32536         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32537         * modules/unictype/property-bidi-control-tests: Likewise.
32538         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32539         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32540         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32541         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32542         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32543         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32544         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32545         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32546         * modules/unictype/property-bidi-pdf-tests: Likewise.
32547         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32548         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32549         * modules/unictype/property-byname-tests: Likewise.
32550         * modules/unictype/property-combining-tests: Likewise.
32551         * modules/unictype/property-composite-tests: Likewise.
32552         * modules/unictype/property-currency-symbol-tests: Likewise.
32553         * modules/unictype/property-dash-tests: Likewise.
32554         * modules/unictype/property-decimal-digit-tests: Likewise.
32555         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32556         * modules/unictype/property-deprecated-tests: Likewise.
32557         * modules/unictype/property-diacritic-tests: Likewise.
32558         * modules/unictype/property-extender-tests: Likewise.
32559         * modules/unictype/property-format-control-tests: Likewise.
32560         * modules/unictype/property-grapheme-base-tests: Likewise.
32561         * modules/unictype/property-grapheme-extend-tests: Likewise.
32562         * modules/unictype/property-grapheme-link-tests: Likewise.
32563         * modules/unictype/property-hex-digit-tests: Likewise.
32564         * modules/unictype/property-hyphen-tests: Likewise.
32565         * modules/unictype/property-id-continue-tests: Likewise.
32566         * modules/unictype/property-id-start-tests: Likewise.
32567         * modules/unictype/property-ideographic-tests: Likewise.
32568         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32569         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32570         * modules/unictype/property-ignorable-control-tests: Likewise.
32571         * modules/unictype/property-iso-control-tests: Likewise.
32572         * modules/unictype/property-join-control-tests: Likewise.
32573         * modules/unictype/property-left-of-pair-tests: Likewise.
32574         * modules/unictype/property-line-separator-tests: Likewise.
32575         * modules/unictype/property-logical-order-exception-tests: Likewise.
32576         * modules/unictype/property-lowercase-tests: Likewise.
32577         * modules/unictype/property-math-tests: Likewise.
32578         * modules/unictype/property-non-break-tests: Likewise.
32579         * modules/unictype/property-not-a-character-tests: Likewise.
32580         * modules/unictype/property-numeric-tests: Likewise.
32581         * modules/unictype/property-other-alphabetic-tests: Likewise.
32582         * modules/unictype/property-other-default-ignorable-code-point-tests:
32583         Likewise.
32584         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32585         * modules/unictype/property-other-id-continue-tests: Likewise.
32586         * modules/unictype/property-other-id-start-tests: Likewise.
32587         * modules/unictype/property-other-lowercase-tests: Likewise.
32588         * modules/unictype/property-other-math-tests: Likewise.
32589         * modules/unictype/property-other-uppercase-tests: Likewise.
32590         * modules/unictype/property-paired-punctuation-tests: Likewise.
32591         * modules/unictype/property-paragraph-separator-tests: Likewise.
32592         * modules/unictype/property-pattern-syntax-tests: Likewise.
32593         * modules/unictype/property-pattern-white-space-tests: Likewise.
32594         * modules/unictype/property-private-use-tests: Likewise.
32595         * modules/unictype/property-punctuation-tests: Likewise.
32596         * modules/unictype/property-quotation-mark-tests: Likewise.
32597         * modules/unictype/property-radical-tests: Likewise.
32598         * modules/unictype/property-sentence-terminal-tests: Likewise.
32599         * modules/unictype/property-soft-dotted-tests: Likewise.
32600         * modules/unictype/property-space-tests: Likewise.
32601         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32602         * modules/unictype/property-test-tests: Likewise.
32603         * modules/unictype/property-titlecase-tests: Likewise.
32604         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32605         * modules/unictype/property-unified-ideograph-tests: Likewise.
32606         * modules/unictype/property-uppercase-tests: Likewise.
32607         * modules/unictype/property-variation-selector-tests: Likewise.
32608         * modules/unictype/property-white-space-tests: Likewise.
32609         * modules/unictype/property-xid-continue-tests: Likewise.
32610         * modules/unictype/property-xid-start-tests: Likewise.
32611         * modules/unictype/property-zero-width-tests: Likewise.
32612         * modules/unictype/scripts-tests: Likewise.
32613         * modules/unictype/syntax-c-ident-tests: Likewise.
32614         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32615         * modules/unictype/syntax-java-ident-tests: Likewise.
32616         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32617         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32618         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32619         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32620         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32621         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32622         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32623         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32624         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32625         * modules/uniname/uniname-tests: Likewise.
32626         * modules/uninorm/canonical-decomposition-tests: Likewise.
32627         * modules/uninorm/compat-decomposition-tests: Likewise.
32628         * modules/uninorm/composition-tests: Likewise.
32629         * modules/uninorm/decomposing-form-tests: Likewise.
32630         * modules/uninorm/decomposition-tests: Likewise.
32631         * modules/uninorm/filter-tests: Likewise.
32632         * modules/uninorm/nfc-tests: Likewise.
32633         * modules/uninorm/nfd-tests: Likewise.
32634         * modules/uninorm/nfkc-tests: Likewise.
32635         * modules/uninorm/nfkd-tests: Likewise.
32636         * modules/uninorm/u8-normcmp-tests: Likewise.
32637         * modules/uninorm/u8-normcoll-tests: Likewise.
32638         * modules/uninorm/u16-normcmp-tests: Likewise.
32639         * modules/uninorm/u16-normcoll-tests: Likewise.
32640         * modules/uninorm/u32-normcmp-tests: Likewise.
32641         * modules/uninorm/u32-normcoll-tests: Likewise.
32642         * modules/unistdio/u8-asnprintf-tests: Likewise.
32643         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32644         * modules/unistdio/u8-vasprintf-tests: Likewise.
32645         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32646         * modules/unistdio/u8-vsprintf-tests: Likewise.
32647         * modules/unistdio/u16-asnprintf-tests: Likewise.
32648         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32649         * modules/unistdio/u16-vasprintf-tests: Likewise.
32650         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32651         * modules/unistdio/u16-vsprintf-tests: Likewise.
32652         * modules/unistdio/u32-asnprintf-tests: Likewise.
32653         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32654         * modules/unistdio/u32-vasprintf-tests: Likewise.
32655         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32656         * modules/unistdio/u32-vsprintf-tests: Likewise.
32657         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32658         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32659         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32660         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32661         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32662         * modules/unistr/u8-check-tests: Likewise.
32663         * modules/unistr/u8-chr-tests: Likewise.
32664         * modules/unistr/u8-cmp-tests: Likewise.
32665         * modules/unistr/u8-cmp2-tests: Likewise.
32666         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32667         * modules/unistr/u8-cpy-tests: Likewise.
32668         * modules/unistr/u8-mblen-tests: Likewise.
32669         * modules/unistr/u8-mbsnlen-tests: Likewise.
32670         * modules/unistr/u8-mbtouc-tests: Likewise.
32671         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32672         * modules/unistr/u8-mbtoucr-tests: Likewise.
32673         * modules/unistr/u8-move-tests: Likewise.
32674         * modules/unistr/u8-next-tests: Likewise.
32675         * modules/unistr/u8-prev-tests: Likewise.
32676         * modules/unistr/u8-set-tests: Likewise.
32677         * modules/unistr/u8-stpcpy-tests: Likewise.
32678         * modules/unistr/u8-stpncpy-tests: Likewise.
32679         * modules/unistr/u8-strcat-tests: Likewise.
32680         * modules/unistr/u8-strcmp-tests: Likewise.
32681         * modules/unistr/u8-strcoll-tests: Likewise.
32682         * modules/unistr/u8-strcpy-tests: Likewise.
32683         * modules/unistr/u8-strdup-tests: Likewise.
32684         * modules/unistr/u8-strlen-tests: Likewise.
32685         * modules/unistr/u8-strmblen-tests: Likewise.
32686         * modules/unistr/u8-strmbtouc-tests: Likewise.
32687         * modules/unistr/u8-strncat-tests: Likewise.
32688         * modules/unistr/u8-strncmp-tests: Likewise.
32689         * modules/unistr/u8-strncpy-tests: Likewise.
32690         * modules/unistr/u8-strnlen-tests: Likewise.
32691         * modules/unistr/u8-to-u16-tests: Likewise.
32692         * modules/unistr/u8-to-u32-tests: Likewise.
32693         * modules/unistr/u8-uctomb-tests: Likewise.
32694         * modules/unistr/u16-check-tests: Likewise.
32695         * modules/unistr/u16-chr-tests: Likewise.
32696         * modules/unistr/u16-cmp-tests: Likewise.
32697         * modules/unistr/u16-cmp2-tests: Likewise.
32698         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32699         * modules/unistr/u16-cpy-tests: Likewise.
32700         * modules/unistr/u16-mblen-tests: Likewise.
32701         * modules/unistr/u16-mbsnlen-tests: Likewise.
32702         * modules/unistr/u16-mbtouc-tests: Likewise.
32703         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32704         * modules/unistr/u16-mbtoucr-tests: Likewise.
32705         * modules/unistr/u16-move-tests: Likewise.
32706         * modules/unistr/u16-next-tests: Likewise.
32707         * modules/unistr/u16-prev-tests: Likewise.
32708         * modules/unistr/u16-set-tests: Likewise.
32709         * modules/unistr/u16-stpcpy-tests: Likewise.
32710         * modules/unistr/u16-stpncpy-tests: Likewise.
32711         * modules/unistr/u16-strcat-tests: Likewise.
32712         * modules/unistr/u16-strcmp-tests: Likewise.
32713         * modules/unistr/u16-strcoll-tests: Likewise.
32714         * modules/unistr/u16-strcpy-tests: Likewise.
32715         * modules/unistr/u16-strdup-tests: Likewise.
32716         * modules/unistr/u16-strlen-tests: Likewise.
32717         * modules/unistr/u16-strmblen-tests: Likewise.
32718         * modules/unistr/u16-strmbtouc-tests: Likewise.
32719         * modules/unistr/u16-strncat-tests: Likewise.
32720         * modules/unistr/u16-strncmp-tests: Likewise.
32721         * modules/unistr/u16-strncpy-tests: Likewise.
32722         * modules/unistr/u16-strnlen-tests: Likewise.
32723         * modules/unistr/u16-to-u32-tests: Likewise.
32724         * modules/unistr/u16-to-u8-tests: Likewise.
32725         * modules/unistr/u16-uctomb-tests: Likewise.
32726         * modules/unistr/u32-check-tests: Likewise.
32727         * modules/unistr/u32-chr-tests: Likewise.
32728         * modules/unistr/u32-cmp-tests: Likewise.
32729         * modules/unistr/u32-cmp2-tests: Likewise.
32730         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32731         * modules/unistr/u32-cpy-tests: Likewise.
32732         * modules/unistr/u32-mblen-tests: Likewise.
32733         * modules/unistr/u32-mbsnlen-tests: Likewise.
32734         * modules/unistr/u32-mbtouc-tests: Likewise.
32735         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32736         * modules/unistr/u32-mbtoucr-tests: Likewise.
32737         * modules/unistr/u32-move-tests: Likewise.
32738         * modules/unistr/u32-next-tests: Likewise.
32739         * modules/unistr/u32-prev-tests: Likewise.
32740         * modules/unistr/u32-set-tests: Likewise.
32741         * modules/unistr/u32-stpcpy-tests: Likewise.
32742         * modules/unistr/u32-stpncpy-tests: Likewise.
32743         * modules/unistr/u32-strcat-tests: Likewise.
32744         * modules/unistr/u32-strcmp-tests: Likewise.
32745         * modules/unistr/u32-strcoll-tests: Likewise.
32746         * modules/unistr/u32-strcpy-tests: Likewise.
32747         * modules/unistr/u32-strdup-tests: Likewise.
32748         * modules/unistr/u32-strlen-tests: Likewise.
32749         * modules/unistr/u32-strmblen-tests: Likewise.
32750         * modules/unistr/u32-strmbtouc-tests: Likewise.
32751         * modules/unistr/u32-strncat-tests: Likewise.
32752         * modules/unistr/u32-strncmp-tests: Likewise.
32753         * modules/unistr/u32-strncpy-tests: Likewise.
32754         * modules/unistr/u32-strnlen-tests: Likewise.
32755         * modules/unistr/u32-to-u16-tests: Likewise.
32756         * modules/unistr/u32-to-u8-tests: Likewise.
32757         * modules/unistr/u32-uctomb-tests: Likewise.
32758         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32759         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32760         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32761         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32762         * modules/uniwidth/u8-strwidth-tests: Likewise.
32763         * modules/uniwidth/u8-width-tests: Likewise.
32764         * modules/uniwidth/u16-strwidth-tests: Likewise.
32765         * modules/uniwidth/u16-width-tests: Likewise.
32766         * modules/uniwidth/u32-strwidth-tests: Likewise.
32767         * modules/uniwidth/u32-width-tests: Likewise.
32768         * modules/uniwidth/width-tests: Likewise.
32769
32770 2010-05-18  Richard Jones  <rjones@redhat.com>
32771
32772         doc: users.txt: list hivex
32773         * users.txt: Add hivex.
32774
32775 2010-05-18  Richard Jones  <rjones@redhat.com>
32776
32777         doc: users.txt: list febootstrap
32778         * users.txt: Add febootstrap.
32779
32780 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32781
32782         bootstrap: fix an error when gnulib is not used as a git submodule
32783         * build-aux/bootstrap (gnulib_path): If its length is zero then
32784         assign "gnulib" to it.
32785         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32786
32787 2010-05-16  Bruno Haible  <bruno@clisp.org>
32788
32789         Avoid autoconf warnings about AM_ICONV.
32790         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32791         2.64.
32792
32793 2010-05-16  Bruno Haible  <bruno@clisp.org>
32794
32795         absolute-header: Make the macro usable in more situations.
32796         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32797         from gl_ABSOLUTE_HEADER.
32798         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32799
32800 2010-05-16  James Youngman  <jay@gnu.org>
32801
32802         doc: update users.txt
32803         * users.txt: Add CSSC.
32804
32805 2010-05-16  Jim Meyering  <meyering@redhat.com>
32806
32807         init.sh: fix an error in the previous change; add more comments
32808         * tests/init.sh: Compare exit code in loop against 9, not 2.
32809         Patch by Bruno Haible.
32810         Make the two tests more similar by adding an empty "then" clause.
32811         Add comments.
32812
32813         init.sh: avoid unnecessary shell re-exec
32814         * tests/init.sh: Improve the re-exec-required check to first test the
32815         current shell.  If it passes the test, do not search for a shell that
32816         does pass, and do not re-exec.  This test is particularly contorted to
32817         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32818         of $(...) evokes a syntax error and causes immediate shell exit with
32819         status 2.  Bruno Haible reported that the re-exec made it impossible
32820         to single-step through any init.sh-using script.
32821
32822 2010-05-16  Bruno Haible  <bruno@clisp.org>
32823
32824         Fix collision between gnulib's and libintl's printf replacements.
32825         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32826         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32827         (printf): When using GNU C, map the __printf__ function to rpl_printf
32828         via __asm__. When not using GNU C, define rpl_printf instead of
32829         __printf__.
32830         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32831         commit.
32832         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32833         commit.
32834         * m4/asm-underscore.m4: New file.
32835         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32836         * modules/stdio (Files): Add m4/asm-underscore.m4.
32837         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32838         Reported by Ben Pfaff.
32839
32840 2010-05-16  Bruno Haible  <bruno@clisp.org>
32841
32842         verify: Avoid skipping the test on openSUSE 11.0.
32843         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32844
32845 2010-05-13  Bruno Haible  <bruno@clisp.org>
32846
32847         Avoid useless warnings from G++.
32848         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32849         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32850         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32851
32852 2010-05-11  Jim Meyering  <meyering@redhat.com>
32853
32854         maint.mk: tweak preceding change
32855         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32856         regexps tighter by anchoring at EOL, and make the new group "shy"
32857         for slightly decreased overhead.
32858
32859 2010-05-11  Eric Blake  <eblake@redhat.com>
32860
32861         maint.mk: gnulib doesn't guarantee NSIG
32862         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32863
32864 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32865
32866         test-pwrite.c: Remove unused variable declaration.
32867         * tests/test-pwrite.c (main): Remove read_buf declaration.
32868
32869         Remove useless test-pwrite.sh file.
32870         * tests/test-pwrite.sh: Delete file.
32871         * modules/pwrite-tests: Remove references.
32872         Reported by Bruno Haible.
32873
32874 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32875
32876         init.sh: fix a typo
32877         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32878
32879 2010-05-10  Jim Meyering  <meyering@redhat.com>
32880
32881         maint.mk: avoid using a temporary file in the always-defined-macros check
32882         * top/maint.mk (.re-defmac): Remove rule.
32883         (gl_trap_): Remove definition.
32884         (sc_prohibit_always-defined_macros): Rewrite not to create and
32885         depend on a temporary file.  Instead, depend on GNU grep's ability
32886         to read a list of regular expressions from stdin when given "-f -".
32887
32888 2010-05-09  Bruno Haible  <bruno@clisp.org>
32889
32890         Update to GNU gettext 0.18, part 1.
32891         * m4/gettext.m4: Update to GNU gettext 0.18.
32892         * m4/intl.m4: Likewise.
32893         * m4/po.m4: Likewise.
32894         * modules/gettext (Files): Add m4/fcntl-o.m4.
32895         (configure.ac): Require gettext infrastructure from version 0.18.
32896
32897 2010-05-09  Jim Meyering  <meyering@redhat.com>
32898
32899         init.sh: enable MALLOC_PERTURB_
32900         * tests/init.sh: Enable glibc's malloc-perturbing option.
32901
32902         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32903         With my recent change in init.sh from the two-line form:
32904             -#   : ${srcdir=.}
32905             -#   . "$srcdir/init.sh"; path_prepend_ .
32906             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32907         I noticed that using the one-line form would cause this test
32908         to fail with a false-positive, or to stop working altogether,
32909         depending on whether help-version changed or all the tests did.
32910         * top/maint.mk (_hv_regex): Remove this definition.
32911         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32912         (_hv_regex_strong): Use a stronger regex to check for conformance.
32913         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32914         Give a separate diagnostic for lack of conforming use.
32915
32916         maint.mk: prohibit definition of symbols defined by gnulib
32917         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32918         definition of symbols defined by gnulib.
32919
32920 2010-05-09  Bruno Haible  <bruno@clisp.org>
32921
32922         acl: Avoid test failure on Cygwin-hosted mingw.
32923         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32924
32925 2010-05-09  Bruno Haible  <bruno@clisp.org>
32926
32927         error: Use system's fcntl function.
32928         * lib/error.c (fcntl): Undefine.
32929
32930 2010-05-09  Jim Meyering  <meyering@redhat.com>
32931
32932         verify: adjust formatting to be more consistent
32933         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32934         argument-list '('s, and after one comma.
32935
32936 2010-05-09  Bruno Haible  <bruno@clisp.org>
32937
32938         error: More reliable output on mingw.
32939         * lib/error.c: Include <windows.h>.
32940         (is_open): New function.
32941         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32942         defined.
32943
32944 2010-05-09  Bruno Haible  <bruno@clisp.org>
32945
32946         vasnprintf: Fix syntax errors in libintl build on mingw.
32947         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32948         pad_ourselves and prec_ourselves after use.
32949
32950 2010-05-08  Bruno Haible  <bruno@clisp.org>
32951
32952         * lib/config.charset: Update comments for Cygwin 1.7.
32953         * lib/localcharset.c: Likewise.
32954
32955 2010-05-07  Jim Meyering  <meyering@redhat.com>
32956
32957         init.sh: improve comments
32958         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32959         . "${srcdir=.}/init.sh"; path_prepend_ .
32960         Add a note about path_prepend_ and the alternative of using
32961         TESTS_ENVIRONMENT.
32962
32963 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32964
32965         exclude: Unescape hashed patterns in wildcard mode.
32966         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32967         to the hash list.
32968         * tests/test-exclude8.sh: New test case.
32969         * modules/exclude-tests: Add new test.
32970
32971 2010-05-05  Eric Blake  <eblake@redhat.com>
32972
32973         verify: automate tests
32974         * modules/verify-tests: New module.
32975         * tests/test-verify.sh: New file.
32976         * tests/test-verify.c: Guard each negative test with a unique id.
32977         Also avoid warning about unused left hand of comma expressions.
32978
32979 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32980
32981         Further improvements to verify.h, suggested by Eric Blake.
32982         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32983         the GL_* versions, to avoid collision with OpenGL.
32984         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32985         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32986         than testing merely whether it's defined.
32987
32988         Modify verify.h to pacify gcc -Wredundant_decls.
32989         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32990         These use the prefix "GL_" since they're likely to be useful elsewhere.
32991         We may need to break them out into a different .h file.
32992         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32993         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32994         of verify_function__.
32995
32996 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32997
32998         Tests for module pwrite.
32999         * modules/pwrite-tests: New file.
33000         * tests/test-pwrite.sh: New file.
33001         * tests/test-pwrite.c: New file.
33002
33003         New module pwrite.
33004         * lib/unistd.in.h (pwrite): New declaration.
33005         * lib/pwrite.c: New file, from glibc with modifications.
33006         * m4/pwrite.m4: New file.
33007         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33008         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33009         REPLACE_PWRITE.
33010         * modules/pwrite: New file.
33011         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33012         REPLACE_PWRITE.
33013         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33014         * doc/posix-functions/pwrite.texi: Mention the new module.
33015
33016 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33017
33018         pread: Update documentation.
33019         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33020
33021 2010-05-04  Eric Blake  <eblake@redhat.com>
33022
33023         docs: update cygwin progress
33024         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33025         this bug.
33026         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33027         Added in cygwin 1.7.2.
33028         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33029         Likewise.
33030         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33031         Likewise.
33032         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33033         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33034         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33035         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33036         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33037         Mention nproc module.
33038         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33039         bug in cygwin 1.7.5 addition.
33040         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33041         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33042         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33043         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33044         1.7.5.
33045         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33046         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33047         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33048         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33049         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33050         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33051         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33052         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33053         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33054         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33055         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33056         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33057         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33058         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33059         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33060         Likewise.
33061         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33062         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33063         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33064         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33065         Likewise.
33066         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33067         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33068         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33069         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33070         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33071         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33072         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33073         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33074         Likewise.
33075         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33076         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33077         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33078         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33079         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33080         Likewise.
33081         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33082         Likewise.
33083         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33084         Likewise.
33085         * doc/glibc-functions/xdrrec_endofrecord.texi
33086         (xdrrec_endofrecord): Likewise.
33087         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33088         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33089         Likewise.
33090         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33091         Likewise.
33092
33093 2010-05-04  Jim Meyering  <meyering@redhat.com>
33094
33095         gendocs.sh: make its "-s FILE" option more useful
33096         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33097         $PACKAGE to reflect the probably-different basename of "FILE".
33098
33099 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33100
33101         bootstrap: don't ignore download_po_files failure
33102         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33103         failure.
33104
33105 2010-05-03  Jim Meyering  <meyering@redhat.com>
33106
33107         maint.mk: allow to pass options to gendocs.sh
33108         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33109         (gendocs_options_): New overridable variable.
33110
33111         gnu-web-doc-update: don't ignore configure or build failure
33112         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33113
33114         announce-gen: backslash-escape '@'s in --help output
33115         * build-aux/announce-gen: Fix syntax errors.
33116
33117         maint.mk, announce-gen: allow project-specific announcement mail headers
33118         * top/maint.mk (translation_project_): Define default.
33119         (announcement_Cc_, announcement_mail_headers_): Likewise.
33120         (announcement): Invoke announce-gen with new --mail-headers option.
33121         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33122
33123         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33124         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33125         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33126         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33127         line in the "err2" output file when running "make check" in verbose
33128         mode (i.e., with set -x enabled).
33129
33130 2010-05-03  Bruno Haible  <bruno@clisp.org>
33131
33132         wctob: Fix for weird platforms.
33133         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33134         argument value.
33135
33136 2010-05-03  Jim Meyering  <meyering@redhat.com>
33137
33138         maint.mk: prohibit unwarranted use of <strings.h>
33139         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33140         strings.h in a file that does not also use strcasecmp, strncasecmp,
33141         ffs or ffsll.
33142
33143         maint.mk: remove obsolete comments
33144         * top/maint.mk: Remove stale, commented-out rules.
33145
33146 2010-05-02  Bruno Haible  <bruno@clisp.org>
33147
33148         wcwidth: Declare also when it's aliased.
33149         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33150         macro.
33151
33152 2010-05-02  Bruno Haible  <bruno@clisp.org>
33153
33154         Fix regression from 2010-04-25.
33155         * gnulib-tool (func_modules_transitive_closure): Check the status of
33156         all modules, not only of the tests that are of the form foo-tests where
33157         foo is a module.
33158
33159 2010-05-02  Bruno Haible  <bruno@clisp.org>
33160
33161         wctob: Work around nasty Cygwin 1.7.2 bug.
33162         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33163         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33164
33165 2010-05-01  Bruno Haible  <bruno@clisp.org>
33166
33167         fpurge: Sharper test.
33168         * tests/test-fpurge.c (main): Add one more ftell check.
33169         * modules/fpurge-tests (Depends-on): Add ftell.
33170         Suggested by Eric Blake.
33171
33172 2010-05-01  Bruno Haible  <bruno@clisp.org>
33173
33174         ftello: Another test.
33175         * tests/test-ftello3.c: New file.
33176         * modules/ftello-tests (Files): Add it.
33177         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33178         MOSTLYCLEANFILES.
33179
33180         ftell: Another test.
33181         * tests/test-ftell3.c: New file.
33182         * modules/ftell-tests (Files): Add it.
33183         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33184         MOSTLYCLEANFILES.
33185
33186 2010-05-01  Bruno Haible  <bruno@clisp.org>
33187
33188         ftell, ftello: Work around Solaris bug.
33189         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33190         * lib/ftello.c: Include stdio-impl.h.
33191         (ftello): On Solaris, when _IOWRT is set, compute the result without
33192         looking at _IOREAD.
33193         * modules/ftello (Files): Add lib/stdio-impl.h.
33194         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33195         * doc/posix-functions/ftello.texi: Likewise.
33196         Reported by Eric Blake.
33197
33198 2010-05-01  Bruno Haible  <bruno@clisp.org>
33199
33200         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33201         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33202         the _IOWRT flag is also set.
33203
33204 2010-05-01  Bruno Haible  <bruno@clisp.org>
33205
33206         Fix doc about a HP-UX stdio bug.
33207         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33208         * doc/posix-functions/ftello.texi: Likewise.
33209
33210 2010-05-01  Bruno Haible  <bruno@clisp.org>
33211
33212         lseek test: Fix failure on Solaris.
33213         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33214         output.
33215
33216 2010-04-30  Jim Meyering  <meyering@redhat.com>
33217
33218         bootstrap: don't ignore failure to generate po*/Makevars
33219         * build-aux/bootstrap (with_gettext): Don't ignore failure
33220         to create po/Makevars or runtime-po/Makevars.
33221
33222 2010-04-29  Eric Blake  <eblake@redhat.com>
33223
33224         headers: relax license to LGPLv2+
33225         * modules/fcntl-h (License): Relax license.
33226         * modules/getopt-posix (License): Likewise.
33227         * modules/locale (License): Likewise.
33228         * modules/math (License): Likewise.
33229         * modules/pty (License): Likewise.
33230         * modules/sched (License): Likewise.
33231         * modules/search (License): Likewise.
33232         * modules/spawn (License): Likewise.
33233         * modules/stdarg (License): Likewise.
33234         * modules/sysexits (License): Likewise.
33235
33236 2010-04-29  Jim Meyering  <meyering@redhat.com>
33237
33238         inttypes: relax license to LGPLv2+
33239         * modules/inttypes (License): Relax license.
33240
33241 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33242
33243         * top/maint.mk (indent): Run twice to produce idempotent results.
33244
33245 2010-04-28  Bruno Haible  <bruno@clisp.org>
33246
33247         getdate: Generate getdate.c in the source directory.
33248         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33249         MOSTLYCLEANFILES.
33250         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33251
33252 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33253
33254         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33255         is not declared as a const *; avoid warnings in that case.
33256
33257 2010-04-28  Eric Blake  <eblake@redhat.com>
33258
33259         canonicalize-lgpl: avoid compiler warning
33260         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33261         declaration' / 'extraneous semicolon' warning with some compilers.
33262         Reported by Andreas Gruenbacher.
33263
33264 2010-04-28  Jim Meyering  <meyering@redhat.com>
33265
33266         init.sh: ensure a more reliable exit status when exiting via trap
33267         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33268         Inspired by patches from Dmitry V. Levin.
33269         Also trap on signal 3 (SIGQUIT).
33270
33271 2010-04-27  Bruno Haible  <bruno@clisp.org>
33272
33273         Update doc about utimes().
33274         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33275         'utimens' module.
33276         Reported by Andreas Gruenbacher <agruen@suse.de>.
33277
33278 2010-04-27  Eric Blake  <eblake@redhat.com>
33279
33280         full-read, full-write: relax license
33281         * modules/full-read (License): Drop to LGPLv2+.
33282         * modules/full-write (License): Likewise.
33283         * modules/safe-read (License): Likewise.
33284         * modules/safe-write (License): Likewise.
33285
33286         pthread: mention library for linking
33287         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33288
33289 2010-04-27  Jim Meyering  <meyering@redhat.com>
33290
33291         maint.mk: fix a bug introduced in last change
33292         * top/maint.mk (gl_assured_headers_): Now that all names are on
33293         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33294         is not anchored to end of word, it should be adequate.
33295
33296         maint.mk: avoid side-effect in latest syntax-check
33297         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33298         to run commands via $(shell...), and hence to incur cost only when
33299         the new rule is actually run.
33300
33301         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33302         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33303         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33304         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33305         (gl_assured_headers_, az_, AZ_): Define.
33306         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33307
33308 2010-04-26  Jim Meyering  <jim@meyering.net>
33309             Bruno Haible  <bruno@clisp.org>
33310
33311         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33312         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33313         Prompted by an exchange with Gilles Espinasse.
33314
33315 2010-04-26  Jim Meyering  <meyering@redhat.com>
33316
33317         git-version-gen: aesthetic tweak
33318         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33319         so that the command remains on a single line.
33320
33321 2010-04-26  Eric Blake  <eblake@redhat.com>
33322
33323         git-version-gen: allow use on EBCDIC hosts
33324         * build-aux/git-version-gen (dirty): Use literal rather than tying
33325         ourselves to ascii.
33326         Reported by Steve Goetze.
33327
33328 2010-04-25  Bruno Haible  <bruno@clisp.org>
33329
33330         netdb: Add support for GNULIB_POSIXCHECK.
33331         * lib/netdb.in.h: Include warn-on-use.h.
33332         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33333         functions are used when GNULIB_POSIXCHECK is defined and the
33334         getaddrinfo module is not in use.
33335         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33336         freeaddrinfo, gai_strerror, getnameinfo are declared.
33337         * modules/netdb (Depends-on): Add warn-on-use.
33338         (Makefile.am): Include warn-on-use.h in netdb.h.
33339
33340 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33341
33342         build: avoid "make check" failure without .git/ directory
33343         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33344         there is no .git/ directory.
33345
33346 2010-04-25  Bruno Haible  <bruno@clisp.org>
33347
33348         ptsname: Fix misuse of ttyname_r.
33349         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33350         of errno.
33351
33352 2010-04-25  Bruno Haible  <bruno@clisp.org>
33353
33354         ttyname_r: Make it work on Solaris 10.
33355         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33356         if the system function has the POSIX declaration. Test whether the
33357         function fails if the buffer is less than 128 bytes large.
33358         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33359         system's ttyname_r function. Provide a reasonably large buffer.
33360         * modules/ttyname_r (Depends-on): Add extensions.
33361         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33362
33363 2010-04-25  Bruno Haible  <bruno@clisp.org>
33364
33365         Use the 'extensions' module for some more functions on Solaris.
33366         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33367         module.
33368         * doc/posix-functions/ctime_r.texi: Likewise.
33369         * doc/posix-functions/getgrgid_r.texi: Likewise.
33370         * doc/posix-functions/getgrnam_r.texi: Likewise.
33371         * doc/posix-functions/getpwnam_r.texi: Likewise.
33372         * doc/posix-functions/getpwuid_r.texi: Likewise.
33373         * doc/posix-functions/readdir_r.texi: Likewise.
33374         * doc/posix-functions/sigwait.texi: Likewise.
33375         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33376         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33377
33378 2010-04-25  Bruno Haible  <bruno@clisp.org>
33379
33380         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33381         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33382         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33383         * lib/ttyname_r.c: Include <limits.h>.
33384         (ttyname_r): Define using the system's ttyname_r function, if it exists
33385         and not on Solaris.
33386         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33387         set.
33388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33389         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33390         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33391         Reported by Simon Josefsson.
33392
33393 2010-04-25  Bruno Haible  <bruno@clisp.org>
33394
33395         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33396         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33397         * doc/posix-functions/ctime_r.texi: Likewise.
33398         * doc/posix-functions/getgrgid_r.texi: Likewise.
33399         * doc/posix-functions/getgrnam_r.texi: Likewise.
33400         * doc/posix-functions/getlogin_r.texi: Likewise.
33401         * doc/posix-functions/getpwnam_r.texi: Likewise.
33402         * doc/posix-functions/getpwuid_r.texi: Likewise.
33403         * doc/posix-functions/readdir_r.texi: Likewise.
33404         * doc/posix-functions/sigwait.texi: Likewise.
33405         * doc/posix-functions/ttyname_r.texi: Likewise.
33406         Reported by Simon Josefsson.
33407
33408 2010-04-25  Bruno Haible  <bruno@clisp.org>
33409
33410         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33411         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33412         also to --create-testdir.
33413         (func_acceptable): Don't consider the status of *-tests modules here.
33414         (func_modules_transitive_closure): Consider it here, before including a
33415         test module.
33416         (func_import, func_create_testdir): Set inc_all_direct_tests,
33417         inc_all_indirect_tests.
33418         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33419         --create-testdir and --create-megatestdir.
33420
33421 2010-04-25  Bruno Haible  <bruno@clisp.org>
33422
33423         gnulib-tool: Add --without-*-tests options.
33424         * gnulib-tool (func_usage): Document the --without-*-tests options.
33425         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33426         excl_unportable_tests): New variables.
33427         Fail if they are specified with --import or --update.
33428         (func_acceptable): Respect the excl_*_tests variables.
33429         (func_import): Set the excl_*_tests variables to empty.
33430
33431 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33432             Bruno Haible  <bruno@clisp.org>
33433
33434         Work around a MacOS X 10.4 bug with openpty.
33435         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33436         * tests/test-openpty.c (main): Close the master side explicitly.
33437
33438 2010-04-25  Bruno Haible  <bruno@clisp.org>
33439
33440         strnlen: Fix a C++ test error on MacOS X and Solaris.
33441         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33442         the function is not declared.
33443         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33444         Simon Josefsson.
33445
33446 2010-04-24  Bruno Haible  <bruno@clisp.org>
33447
33448         Avoid a gcc warning.
33449         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33450         of correct type for %08lx directive.
33451         Reported by Eric Blake.
33452
33453 2010-04-24  Bruno Haible  <bruno@clisp.org>
33454
33455         vasnprintf: Correct errno value in case of out-of-memory.
33456         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33457         or sprintf. Use the errno value from SNPRINTF or sprintf.
33458         Reported by Ian Beckwith <ianb@erislabs.net>.
33459
33460 2010-04-24  Bruno Haible  <bruno@clisp.org>
33461
33462         ansi-c++-opt: Find correct compiler when cross-compiling.
33463         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33464         AC_CHECK_PROGS.
33465         Reported by Simon Josefsson.
33466
33467 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33468
33469         vc-list-files: Add support for subversion
33470         * build-aux/vc-list-files: Use "svn list" to generate the list of
33471         files controlled by subversion.
33472
33473 2010-04-23  Jim Meyering  <meyering@redhat.com>
33474
33475         vc-list-files tests: convert to use init.sh
33476         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33477         path_prepend_.
33478         Use Exit, not exit.
33479         Use skip_ rather than open coding it.
33480         Remove trap set-up and compare definitions.
33481         * tests/test-vc-list-files-git.sh: Likewise.
33482         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33483
33484 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33485
33486         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33487         backup files.
33488
33489 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33490
33491         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33492
33493 2010-04-20  Eric Blake  <eblake@redhat.com>
33494
33495         tests: be robust to ignored SIGPIPE
33496         * tests/test-select-in.sh: Consume all output.
33497         * tests/test-lseek.sh: Check correct exit status, while avoiding
33498         EPIPE.
33499
33500 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33501             Bruno Haible  <bruno@clisp.org>
33502
33503         visibility: Don't use -fvisibility if it leads to a warning.
33504         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33505         yes, don't pretend that visibility works if it leads to a warning.
33506         Reported by Mike Gran <spk121@yahoo.com>.
33507
33508 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33509
33510         * build-aux/bootstrap: Use "git -h" for testing for supported options
33511         instead of "git --help".  The short-form option only shows a summary,
33512         and doesn't layout the full man page.  Grep for the full option name
33513         in the summary, too.
33514
33515 2010-04-19  Bruno Haible  <bruno@clisp.org>
33516
33517         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33518         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33519         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33520         mention of RELOCATABLE_STRIP.
33521         Reported by Sylvain Beucler <beuc@beuc.net>.
33522
33523 2010-04-19  Bruno Haible  <bruno@clisp.org>
33524
33525         * lib/diffseq.h: Fix typo in comment.
33526         Reported by Eric Blake.
33527
33528 2010-04-19  Bruno Haible  <bruno@clisp.org>
33529
33530         ioctl: Move autoconf macro to a .m4 file.
33531         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33532         * modules/ioctl (Files): Add it.
33533         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33534         Reported by Ian Beckwith <ianb@erislabs.net>.
33535
33536 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33537             Bruno Haible  <bruno@clisp.org>
33538
33539         diffseq: Accommodate use-case with abstract arrays.
33540         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33541         is not defined.
33542         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33543         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33544
33545 2010-04-18  Bruno Haible  <bruno@clisp.org>
33546
33547         * doc/posix-headers/stdbool.texi: More precise wording.
33548
33549 2010-04-17  Jim Meyering  <meyering@redhat.com>
33550
33551         maint.mk: use gnu-style indentation in an embedded perl script
33552         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33553         Rename variable: s/two/last_two_bytes/
33554
33555 2010-04-16  Eric Blake  <eblake@redhat.com>
33556
33557         test-stdbool: skip test that fails with Solaris CC
33558         * tests/test-stdbool.c (f): Skip test that causes compilation
33559         error under buggy C++ compiler.
33560         * lib/stdbool.in.h: Document the limitation.
33561         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33562
33563         setenv: allow compilation with C++
33564         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33565         register keyword.
33566
33567         stdint: allow test to pass with C++
33568         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33569
33570         getopt: allow compilation with C++
33571         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33572         struct.
33573         * lib/getopt.c (_getopt_internal_r): Use correct type.
33574         Reported by Dagobert Michelson, via Joel E. Denny.
33575
33576 2010-04-16  Bruno Haible  <bruno@clisp.org>
33577
33578         Override netdb.h always.
33579         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33580         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33581         Reported by Ludovic Courtès <ludo@gnu.org>.
33582
33583 2010-04-15  Bruno Haible  <bruno@clisp.org>
33584
33585         openpty: Fix mistake from 2010-03-21.
33586         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33587         Reported by Simon Josefsson.
33588
33589 2010-04-15  Eric Blake  <eblake@redhat.com>
33590
33591         test-forkpty: fix expected signature
33592         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33593         Reported by Simon Josefsson.
33594
33595 2010-04-15  Jim Meyering  <meyering@redhat.com>
33596
33597         maint.mk: texinfo_suffix_re_: correct the default regexp
33598         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33599
33600         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33601         make it configurable via texinfo_suffix_re_.
33602
33603 2010-04-14  Eric Blake  <eblake@redhat.com>
33604
33605         strtok_r: relax license to LGPLv2+
33606         * modules/strtok_r (License): Relax license.
33607         Reported by Matthias Bolte.
33608
33609 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33610
33611         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33612         version 1.4.4 by default instead of requiring the libgcrypt
33613         version used during build.  This makes it possible to use the
33614         application with older but still binary compatible libgcrypt
33615         versions.
33616
33617 2010-04-13  Eric Blake  <eblake@redhat.com>
33618
33619         getopt-gnu: match recent glibc fixes and posix ruling
33620         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33621         '+' handling, when requesting extensions.
33622         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33623         'W;' handling.
33624         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33625         * doc/posix-functions/getopt.texi (getopt): Document this.
33626         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33627         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33628         Likewise.
33629
33630         getopt: merge bug fixes from glibc
33631         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33632         diagnostics.  Honor '+:' correctly.  Reject ';'.
33633
33634         getopt-posix: detect MacOS bug
33635         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33636         optind when missing a required argument.
33637         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33638         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33639         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33640         Likewise.
33641
33642         getopt-posix: avoid spurious failure on Solaris
33643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33644         an indicator that setting optind=1 is sufficient for reset.
33645
33646         getopt-posix: avoid spurious failure on FreeBSD
33647         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33648         in POSIX mode, since the m4 test uses it.
33649
33650         gnulib-tool: silence warning on BSD sh
33651         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33652
33653 2010-04-13  Jim Meyering  <meyering@redhat.com>
33654
33655         doc: users.txt: GNU patch now uses gnulib
33656         * users.txt: Add patch.
33657
33658 2010-04-12  Jim Meyering  <meyering@redhat.com>
33659
33660         maint.mk: generate more concise timing data for syntax-check rules
33661         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33662         " done" from each line that reports a syntax-check test duration.
33663
33664 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33665
33666         git-version-gen: use "git update-index..." rather than "git status"
33667         * build-aux/git-version-gen: Use git update-index --refresh, not
33668         "git status".  With some versions of git, "git status" would fail
33669         to update the index and result in an unwarranted "-dirty" suffix.
33670
33671 2010-04-11  Jim Meyering  <meyering@redhat.com>
33672
33673         openat: correct formatting (no semantic change)
33674         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33675         Suggested by Bruno Haible.
33676
33677 2010-04-11  Bruno Haible  <bruno@clisp.org>
33678
33679         Stricter declaration checking in testdirs.
33680         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33681         If for_tests is true, augment AM_CPPFLAGS to define
33682         GNULIB_STRICT_CHECKING.
33683         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33684         GNULIB_STRICT_CHECKING is defined, verify that the function is
33685         declared.
33686
33687 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33688             Bruno Haible  <bruno@clisp.org>
33689
33690         libunistring: Improve configure output.
33691         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33692         Don't say "consider installing GNU libunistring" when checking again
33693         with libiconv.
33694
33695 2010-04-11  Bruno Haible  <bruno@clisp.org>
33696
33697         libunistring: Correct value of $LTLIBUNISTRING.
33698         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33699         correct the value of $LTLIBUNISTRING.
33700
33701 2010-04-11  Bruno Haible  <bruno@clisp.org>
33702
33703         havelib: Add static libraries to LIBS in the right order.
33704         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33705         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33706
33707 2010-04-11  Bruno Haible  <bruno@clisp.org>
33708
33709         libunistring: Detect libunistring also when it depends on libiconv.
33710         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33711         the second AC_LIB_HAVE_LINKFLAGS invocation.
33712
33713 2010-04-11  James Youngman  <jay@gnu.org>
33714
33715         close-stream: declare local scalars to be "const"
33716         * lib/close-stream.c (close_stream): Make boolean variables const
33717         to document the fact that we set but do not change them.
33718
33719 2010-04-11  Bruno Haible  <bruno@clisp.org>
33720
33721         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33722
33723 2010-04-11  Jim Meyering  <meyering@redhat.com>
33724
33725         maint.mk: don't include dist-check.mk
33726         * top/maint.mk: Remove bogus include directive.
33727
33728         maint.mk: improve empty-line-at-EOF check
33729         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33730         solution, rather than tail+Perl-based one.  The latter would read
33731         a few kilobytes from the end of each file, and did not handle empty
33732         files properly.
33733
33734         maint.mk: print the elapsed time for each syntax-check rule
33735         * top/maint.mk (sc_m_rules_): Save start time in a file.
33736         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33737         (local-check): Interpose the .z rules
33738
33739 2010-04-11  Jim Meyering  <meyering@redhat.com>
33740
33741         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33742         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33743         empty file with one that ends in an empty line.
33744
33745 2010-04-10  Bruno Haible  <bruno@clisp.org>
33746
33747         mkdir: Make it work on mingw64.
33748         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33749         * lib/mkdir.c: Update comment.
33750         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33751
33752 2010-04-10  Bruno Haible  <bruno@clisp.org>
33753
33754         Don't override improved macro from newer autoconf.
33755         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33756         autoconf >= 2.62.
33757         Reported by Joel E. Denny <jdenny@clemson.edu>.
33758
33759 2010-04-10  Jim Meyering  <meyering@redhat.com>
33760
33761         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33762         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33763
33764         maint.mk: correct a diagnostic
33765         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33766         in diagnostic; now use $prohibit.
33767
33768 2010-04-10  Bruno Haible  <address@hidden>
33769
33770         fchownat: Fix a C++ test error on Solaris 8.
33771         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33772         the function does not exist.
33773
33774 2010-04-10  Bruno Haible  <bruno@clisp.org>
33775
33776         vasnprintf: Add more tests.
33777         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33778         (test_function): Test converting an invalid wide string.
33779
33780         vasnprintf: Correct handling of unconvertible wide string arguments.
33781         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33782         VASNPRINTF.
33783         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33784         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33785         smaller than the expected maximum need for the directive. Set errno to
33786         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33787         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33788         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33789         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33790         * modules/vasnprintf (Files): Add m4/printf.m4.
33791         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33792
33793 2010-04-10  Bruno Haible  <bruno@clisp.org>
33794
33795         vasnprintf: Fix crash in %ls directive.
33796         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33797         string is passed as argument to %ls, with no precision and no width.
33798         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33799
33800 2010-04-10  Bruno Haible  <bruno@clisp.org>
33801
33802         vasnprintf: Fix multiple test failures on mingw.
33803         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33804         _snprintf, or snwprintf, not _snwprintf.
33805
33806 2010-04-10  Bruno Haible  <bruno@clisp.org>
33807
33808         write: Fix a C++ test error on mingw.
33809         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33810
33811 2010-04-10  Bruno Haible  <bruno@clisp.org>
33812
33813         vasnprintf test: Reduce code duplication.
33814         * tests/test-vasnprintf.c (test_function): New function, extracted from
33815         test_vasnprintf.
33816         (test_vasnprintf, test_asnprintf): Invoke it.
33817
33818 2010-04-10  Bruno Haible  <bruno@clisp.org>
33819
33820         strnlen: Fix warning in C++ mode on MacOS X.
33821         * lib/string.in.h (strnlen): Use the modern idiom.
33822         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33823         defining strnlen as a macro already in <config.h>.
33824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33825         REPLACE_STRNLEN.
33826         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33827         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33828
33829 2010-04-08  James Youngman  <jay@gnu.org>
33830
33831         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33832         the example.
33833
33834 2010-04-09  Jim Meyering  <meyering@redhat.com>
33835
33836         maint.mk: print better diagnostic when there is no $(_hv_file)
33837         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33838         announce that when $(_hv_file) (aka help-version) does not exist.
33839
33840         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33841         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33842         not try to interpret its random input bytes.  Jarno Rajahalme reported
33843         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33844         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33845         (mktempd_): Likewise, just in case.
33846
33847         ftruncate: add two years to projected module removal date: 2012
33848         * m4/ftruncate.m4: Adjust comments.
33849
33850         ftruncate: mark module as obsolete; even MinGW provides it, now
33851         * modules/ftruncate (Status): Obsolete.
33852         (Notice): Say that.
33853         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33854         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33855
33856 2010-04-08  Bruno Haible  <bruno@clisp.org>
33857
33858         Fix side effects from tests-related modules.
33859         * modules/dprintf-posix (Comment): New section.
33860         * modules/fprintf-posix (Comment): Likewise.
33861         * modules/obstack-printf-posix (Comment): Likewise.
33862         * modules/printf-posix (Comment): Likewise.
33863         * modules/snprintf-posix (Comment): Likewise.
33864         * modules/sprintf-posix (Comment): Likewise.
33865         * modules/vasnprintf-posix (Comment): Likewise.
33866         * modules/vasprintf-posix (Comment): Likewise.
33867         * modules/vdprintf-posix (Comment): Likewise.
33868         * modules/vfprintf-posix (Comment): Likewise.
33869         * modules/vprintf-posix (Comment): Likewise.
33870         * modules/vsnprintf-posix (Comment): Likewise.
33871         * modules/vsprintf-posix (Comment): Likewise.
33872         * modules/xprintf-posix (Comment): Likewise.
33873         * modules/xvasprintf-posix (Comment): Likewise.
33874         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33875         * modules/floorf-tests (Depends-on): Likewise.
33876         * modules/round-tests (Depends-on): Likewise.
33877         * modules/roundf-tests (Depends-on): Likewise.
33878         * modules/trunc-tests (Depends-on): Likewise.
33879         * modules/truncf-tests (Depends-on): Likewise.
33880         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33881         'fprintf-posix' module is not present.
33882         * tests/test-floorf2.c (check): Likewise.
33883         * tests/test-trunc2.c (check): Likewise.
33884         * tests/test-truncf2.c (check): Likewise.
33885         * tests/test-round2.c (equal): Likewise.
33886         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33887
33888 2010-04-07  Karl Berry  <karl@gnu.org>
33889
33890         * config/srclist.txt,
33891         * config/srclistvars.sh,
33892         * config/srclist-update: doc fixes.
33893
33894 2010-04-07  Jim Meyering  <meyering@redhat.com>
33895
33896         maint.mk: add a PATH crosschecking syntax-check rule
33897         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33898         Useful if you use a test like the one in help-version (coreutils,
33899         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33900         printed by prog --version.
33901
33902 2010-04-06  Bruno Haible  <bruno@clisp.org>
33903
33904         Fix link error on mingw.
33905         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33906         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33907
33908 2010-04-06  Bruno Haible  <bruno@clisp.org>
33909
33910         Assume rmdir exists.
33911         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33912
33913 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33914
33915         doc: update users.txt
33916         * users.txt: Add gcal.
33917
33918 2010-04-06  Jim Meyering  <meyering@redhat.com>
33919
33920         init.sh: simply unset TMPDIR rather than risking env -i
33921         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33922         although it probably works fine on all Unix-based systems, some
33923         systems (Cygwin?) cannot tolerate a totally cleared environment.
33924         Suggestion from Eric Blake.
33925
33926 2010-04-06  Jim Meyering  <meyering@redhat.com>
33927
33928         init.sh: portability fix: use env's POSIX-specified -i option not -u
33929         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33930         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33931
33932 2010-04-05  Bruno Haible  <bruno@clisp.org>
33933
33934         btowc: Work around Cygwin 1.7.2 bug.
33935         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33936         does not map NUL to 0.
33937         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33938
33939 2010-04-05  Bruno Haible  <bruno@clisp.org>
33940
33941         Make the multithread modules work on Cygwin 1.7.2.
33942         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33943         imported symbols can be declared weak, so that it returns "no" on
33944         Cygwin 1.7.2.
33945
33946 2010-04-05  Bruno Haible  <bruno@clisp.org>
33947
33948         Use the module 'strncat'.
33949         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33950
33951         Tests for module 'strncat'.
33952         * modules/strncat-tests: New file.
33953         * tests/test-strncat.c: New file.
33954
33955         New module 'strncat'.
33956         * lib/string.in.h (strncat): New declaration.
33957         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33958         * m4/strncat.m4: New file, based on m4/memchr.m4.
33959         * modules/strncat: New file.
33960         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33961         is declared.
33962         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33963         REPLACE_STRNCAT.
33964         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33965         REPLACE_STRNCAT.
33966         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33967         module.
33968         * tests/test-string-c++.cc: Check signature of strncat.
33969
33970 2010-04-05  Jim Meyering  <meyering@redhat.com>
33971
33972         xstrtoumax-tests: convert to use init.sh
33973         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33974         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33975         Use Exit, not exit.
33976         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33977
33978         xstrtoimax-tests: convert to use init.sh
33979         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33980         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33981         Use Exit, not exit.
33982         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33983
33984 2010-04-05  Bruno Haible  <bruno@clisp.org>
33985
33986         sys_socket: Avoid #define replacements in C++ mode.
33987         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33988         warning to the function if possible, rather than #defining the symbol
33989         to a dysfunctional alias.
33990
33991 2010-04-05  Bruno Haible  <bruno@clisp.org>
33992
33993         fseeko: Fix C++ test error on mingw.
33994         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33995         gl_FUNC_FSEEKO.
33996         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33997         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33998         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33999         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34000
34001 2010-04-05  Bruno Haible  <bruno@clisp.org>
34002
34003         duplocale: Improve test output.
34004         * tests/test-duplocale.c (main): Print reason for skipped test.
34005
34006 2010-04-05  Bruno Haible  <bruno@clisp.org>
34007
34008         Assume rmdir exists.
34009         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34010         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34011
34012 2010-04-05  Bruno Haible  <bruno@clisp.org>
34013
34014         Fix link error on Solaris 8 with cc.
34015         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34016
34017 2010-04-05  Bruno Haible  <bruno@clisp.org>
34018
34019         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34020         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34021
34022 2010-04-05  Bruno Haible  <bruno@clisp.org>
34023
34024         vasprintf: Update documentation.
34025         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34026
34027 2010-04-05  Bruno Haible  <bruno@clisp.org>
34028
34029         ptsname: Improve test.
34030         * tests/test-ptsname.c (main): Also try the various master names of BSD
34031         systems.
34032
34033 2010-04-05  Bruno Haible  <bruno@clisp.org>
34034
34035         memchr: Avoid a possible C++ test error.
34036         * lib/string.in.h (memchr): Provide declaration if function is missing.
34037         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34038         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34040         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34041
34042 2010-04-05  Bruno Haible  <bruno@clisp.org>
34043
34044         strtok_r: Improve idiom.
34045         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34046         AC_LIBOBJ is used.
34047
34048 2010-04-05  Bruno Haible  <bruno@clisp.org>
34049
34050         strdup: Improve idiom.
34051         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34052         AC_LIBOBJ is used.
34053         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34054         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34055         when AC_LIBOBJ is used.
34056
34057 2010-04-05  Bruno Haible  <bruno@clisp.org>
34058
34059         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34060         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34061         don't set REPLACE_MBSINIT to 1.
34062         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34063         don't set REPLACE_MBRTOWC to 1.
34064         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34065         exist, don't set REPLACE_MBSRTOWCS to 1.
34066         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34067         exist, don't set REPLACE_MBSNRTOWCS to 1.
34068         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34069         don't set REPLACE_WCRTOMB to 1.
34070         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34071         exist, don't set REPLACE_WCSRTOMBS to 1.
34072         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34073         exist, don't set REPLACE_WCSNRTOMBS to 1.
34074
34075 2010-04-05  Bruno Haible  <bruno@clisp.org>
34076
34077         ldexpl: Improve idiom.
34078         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34079         make sure to set HAVE_DECL_LDEXPL to 0.
34080
34081 2010-04-05  Jim Meyering  <meyering@redhat.com>
34082
34083         xstrtol-tests: convert to use init.sh
34084         * modules/xstrtol-tests (Files): Add tests/init.sh.
34085         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34086         Use Exit, not exit.
34087         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34088
34089         atexit-tests: convert to use init.sh
34090         * modules/atexit-tests (Files): Add tests/init.sh.
34091         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34092         Use Exit, not exit.
34093         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34094
34095         init.sh: fix typo
34096         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34097
34098         init.sh: make it easier for a test script to write to the tty, ...
34099         when using automake's parallel-tests mode.
34100         * tests/init.sh (stderr_fileno_): Define overridable variable.
34101         (warn_): New function, to use it.
34102         (fail_, skip_, framework_failure_): Use warn_.
34103
34104 2010-04-04  Bruno Haible  <bruno@clisp.org>
34105
34106         btowc: Avoid warning.
34107         * lib/btowc.c: Include <stdlib.h>.
34108         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34109
34110 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34111             Bruno Haible  <bruno@clisp.org>
34112
34113         wchar: Port to NetBSD 1.5.
34114         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34115         * lib/wctype.in.h (WEOF): Likewise.
34116
34117 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34118             Bruno Haible  <bruno@clisp.org>
34119
34120         Port extended stdio to NetBSD 1.5.
34121         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34122         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34123         older.
34124
34125 2010-04-04  Bruno Haible  <bruno@clisp.org>
34126
34127         string: Remove unused substitution.
34128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34129         HAVE_DECL_STRERROR.
34130         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34131
34132 2010-04-04  Bruno Haible  <bruno@clisp.org>
34133
34134         strtod: Avoid a possible C++ test error.
34135         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34136         set REPLACE_STRTOD.
34137
34138 2010-04-04  Bruno Haible  <bruno@clisp.org>
34139
34140         strerror: Update documentation.
34141         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34142
34143 2010-04-04  Bruno Haible  <bruno@clisp.org>
34144
34145         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34146         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34147         _GL_CXXALIAS_SYS_CAST.
34148
34149 2010-04-04  Bruno Haible  <bruno@clisp.org>
34150
34151         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34152         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34153         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34154         REPLACE_FREXPL to 1.
34155         * doc/posix-functions/frexpl.texi: Update documentation.
34156
34157 2010-04-04  Bruno Haible  <bruno@clisp.org>
34158
34159         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34160         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34161
34162 2010-04-04  Bruno Haible  <bruno@clisp.org>
34163
34164         Implement nanosleep for native Windows.
34165         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34166
34167 2010-04-04  Bruno Haible  <bruno@clisp.org>
34168
34169         math: Fix some C++ test errors on Solaris 8.
34170         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34171
34172 2010-04-04  Bruno Haible  <bruno@clisp.org>
34173
34174         math: Fix some C++ test errors on Cygwin.
34175         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34176         truncl): Provide declaration if the system does not have it.
34177         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34178         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34179         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34180         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34181         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34182         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34183         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34184         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34185         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34186         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34187         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34188         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34189         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34190         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34191         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34192         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34194         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34195         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34196         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34197         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34198         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34199
34200 2010-04-04  Bruno Haible  <bruno@clisp.org>
34201
34202         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34203         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34204         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34205         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34206         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34207         * m4/isinf.m4 (gl_ISINF): Likewise.
34208         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34209
34210 2010-04-04  Bruno Haible  <bruno@clisp.org>
34211
34212         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34213         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34214
34215 2010-04-04  Bruno Haible  <bruno@clisp.org>
34216
34217         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34218         * modules/tmpfile (configure.ac): Update.
34219
34220         tmpfile: Fix C++ test error on mingw.
34221         * lib/stdio.in.h (tmpfile): New declaration.
34222         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34223         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34224         * modules/tmpfile (Depends-on): Add stdio.
34225         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34226         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34227         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34228         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34229         REPLACE_TMPFILE.
34230         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34231
34232 2010-04-04  Bruno Haible  <bruno@clisp.org>
34233
34234         ioctl: Fix C++ test error on mingw.
34235         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34236         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34237         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34238
34239 2010-04-03  Bruno Haible  <bruno@clisp.org>
34240
34241         wcwidth: Fix C++ test error on mingw.
34242         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34244         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34245
34246 2010-04-03  Bruno Haible  <bruno@clisp.org>
34247
34248         nanosleep: Fix C++ test error on mingw.
34249         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34250         * lib/time.in.h (nanosleep): Use modern idiom.
34251         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34252         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34253         REPLACE_NANOSLEEP to 1.
34254         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34255         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34256
34257 2010-04-03  Bruno Haible  <bruno@clisp.org>
34258
34259         strptime: Fix C++ test error on mingw.
34260         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34261         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34262         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34263         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34264         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34265         not REPLACE_STRPTIME.
34266         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34267         REPLACE_STRPTIME.
34268
34269 2010-04-03  Bruno Haible  <bruno@clisp.org>
34270
34271         timegm: Fix C++ test error on mingw.
34272         * lib/time.in.h (timegm): Use modern idiom.
34273         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34274         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34275         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34276         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34277
34278 2010-04-03  Bruno Haible  <bruno@clisp.org>
34279
34280         timegm: Assume declaration if function exists.
34281         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34282         if it exists. Don't clobber ac_cv_func_timegm.
34283
34284 2010-04-03  Bruno Haible  <bruno@clisp.org>
34285
34286         time_r: Fix C++ test error on mingw.
34287         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34288         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34289         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34290         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34291         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34292
34293 2010-04-03  Bruno Haible  <bruno@clisp.org>
34294
34295         time_r: Minor updates.
34296         * modules/time_r (Description): Mention the provided functions.
34297         * lib/time_r.c: Don't include <string.h>.
34298         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34299         * doc/posix-functions/localtime_r.texi: Likewise.
34300
34301 2010-04-03  Bruno Haible  <bruno@clisp.org>
34302
34303         time: Fix regression introduced on 2010-03-08.
34304         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34305         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34306
34307 2010-04-03  Jim Meyering  <meyering@redhat.com>
34308
34309         maint.mk: don't silently disable project-specific syntax-check rules
34310         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34311         that they need to convert their project-specific syntax-check rules
34312         to use the new _sc_search_regexp.
34313
34314 2010-04-03  Bruno Haible  <bruno@clisp.org>
34315
34316         fchdir: Fix regression introduced on 2010-03-08.
34317         * lib/unistd.in.h (fchdir): Fix declaration.
34318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34320         REPLACE_FCHDIR.
34321         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34322         REPLACE_FCHDIR.
34323
34324 2010-04-03  Bruno Haible  <bruno@clisp.org>
34325
34326         getpagesize: Fix C++ test error on mingw.
34327         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34328         system does not declare the function.
34329         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34330         declared.
34331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34332         HAVE_DECL_GETPAGESIZE.
34333         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34334
34335 2010-04-03  Bruno Haible  <bruno@clisp.org>
34336
34337         stdio: Make C++ tests work on mingw.
34338         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34339         does not declare the function.
34340
34341 2010-04-03  Bruno Haible  <bruno@clisp.org>
34342
34343         ftello: Fix C++ test error on mingw.
34344         * lib/stdio.in.h (ftello): Use modern idiom.
34345         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34346         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34347         is missing and that it needs to be replaced.
34348         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34350         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34351
34352 2010-04-03  Bruno Haible  <bruno@clisp.org>
34353
34354         fseeko: Fix C++ test error on mingw.
34355         * lib/stdio.in.h (fseeko): Use modern idiom.
34356         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34357         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34358         is missing and that it needs to be replaced.
34359         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34361         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34362
34363 2010-04-03  Bruno Haible  <bruno@clisp.org>
34364
34365         mkstemp: Fix C++ test error on mingw.
34366         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34367         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34368         function is missing and that it needs to be replaced.
34369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34370         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34371
34372 2010-04-03  Bruno Haible  <bruno@clisp.org>
34373
34374         stpncpy: Fix C++ test error on mingw.
34375         * lib/string.in.h (stpncpy): Use modern idiom.
34376         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34377         function is missing and that it needs to be replaced.
34378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34379         REPLACE_STPNCPY.
34380         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34381
34382 2010-04-03  Bruno Haible  <bruno@clisp.org>
34383
34384         sys_stat: Fix C++ test error on mingw.
34385         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34386         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34387
34388 2010-04-03  Bruno Haible  <bruno@clisp.org>
34389
34390         pty: Update doc.
34391         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34392
34393 2010-04-03  Bruno Haible  <bruno@clisp.org>
34394
34395         unistd: Fix C++ test error on mingw.
34396         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34397
34398 2010-04-03  Bruno Haible  <bruno@clisp.org>
34399
34400         Update doc regarding mingw.
34401         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34402         * doc/glibc-functions/login_tty.texi: Likewise.
34403         * doc/glibc-functions/forkpty.texi: Likewise.
34404
34405 2010-04-03  Bruno Haible  <bruno@clisp.org>
34406
34407         stdlib: Avoid compilation failure of c-strtold on mingw.
34408         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34409
34410 2010-04-03  Bruno Haible  <bruno@clisp.org>
34411
34412         locale: Make C++ tests work on Cygwin and mingw.
34413         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34414         cannot provide the function.
34415         Reported by Simon Josefsson.
34416
34417 2010-04-03  Bruno Haible  <bruno@clisp.org>
34418
34419         localename: Port to MacOS X 10.6.
34420         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34421         memory layout of the locales in MacOS X 10.6 as well.
34422         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34423
34424 2010-04-02  Bruno Haible  <bruno@clisp.org>
34425
34426         gnulib-tool: Ensure that long-running tests are executed last.
34427         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34428         running tests after the one for the other tests.
34429
34430 2010-04-02  Bruno Haible  <bruno@clisp.org>
34431
34432         gnulib-tool: Ensure the tests in the main directory are executed first.
34433         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34434         start with the current directory.
34435
34436 2010-04-02  Bruno Haible  <bruno@clisp.org>
34437
34438         Tests for module 'havelib', moved here from GNU gettext.
34439         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34440         modifications.
34441         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34442         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34443         with modifications.
34444         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34445         modifications.
34446         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34447         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34448         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34449         with modifications.
34450         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34451         with modifications.
34452         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34453         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34454         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34455         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34456         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34457         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34458         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34459         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34460         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34461         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34462         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34463         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34464         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34465         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34466         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34467         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34468         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34469         with modifications.
34470         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34471         with modifications.
34472         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34473         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34474         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34475         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34476         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34477         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34478         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34479         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34480         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34481         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34482         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34483         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34484         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34485         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34486         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34487         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34488         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34489         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34490         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34491         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34492         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34493         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34494         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34495         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34496         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34497         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34498         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34499         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34500         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34501         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34502         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34503         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34504         * tests/havelib/rpathx/rpathx.c: New file, from
34505         gettext/autoconf-lib-link.
34506         * tests/havelib/rpathx/Makefile.am: New file, from
34507         gettext/autoconf-lib-link.
34508         * tests/havelib/rpathx/configure.ac: New file, from
34509         gettext/autoconf-lib-link with modifications.
34510         * tests/havelib/rpathy/rpathy.c: New file, from
34511         gettext/autoconf-lib-link.
34512         * tests/havelib/rpathy/Makefile.am: New file, from
34513         gettext/autoconf-lib-link.
34514         * tests/havelib/rpathy/configure.ac: New file, from
34515         gettext/autoconf-lib-link with modifications.
34516         * tests/havelib/rpathz/rpathz.c: New file, from
34517         gettext/autoconf-lib-link.
34518         * tests/havelib/rpathz/Makefile.am: New file, from
34519         gettext/autoconf-lib-link.
34520         * tests/havelib/rpathz/configure.ac: New file, from
34521         gettext/autoconf-lib-link with modifications.
34522         * tests/havelib/rpathlx/usex.c: New file, from
34523         gettext/autoconf-lib-link.
34524         * tests/havelib/rpathlx/Makefile.am: New file, from
34525         gettext/autoconf-lib-link.
34526         * tests/havelib/rpathlx/configure.ac: New file, from
34527         gettext/autoconf-lib-link with modifications.
34528         * tests/havelib/rpathly/usey.c: New file, from
34529         gettext/autoconf-lib-link.
34530         * tests/havelib/rpathly/Makefile.am: New file, from
34531         gettext/autoconf-lib-link.
34532         * tests/havelib/rpathly/configure.ac: New file, from
34533         gettext/autoconf-lib-link with modifications.
34534         * tests/havelib/rpathlz/usez.c: New file, from
34535         gettext/autoconf-lib-link.
34536         * tests/havelib/rpathlz/Makefile.am: New file, from
34537         gettext/autoconf-lib-link.
34538         * tests/havelib/rpathlz/configure.ac: New file, from
34539         gettext/autoconf-lib-link with modifications.
34540         * tests/havelib/rpathlyx/usey.c: New file, from
34541         gettext/autoconf-lib-link.
34542         * tests/havelib/rpathlyx/Makefile.am: New file, from
34543         gettext/autoconf-lib-link.
34544         * tests/havelib/rpathlyx/configure.ac: New file, from
34545         gettext/autoconf-lib-link with modifications.
34546         * tests/havelib/rpathlzyx/usez.c: New file, from
34547         gettext/autoconf-lib-link.
34548         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34549         gettext/autoconf-lib-link.
34550         * tests/havelib/rpathlzyx/configure.ac: New file, from
34551         gettext/autoconf-lib-link with modifications.
34552         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34553         with modifications.
34554
34555 2010-04-02  Bruno Haible  <bruno@clisp.org>
34556
34557         gnulib-tool: Create distributed built sources also for the tests.
34558         * gnulib-tool (func_create_testdir): Also generate distributed built
34559         sources in the tests directory.
34560
34561 2010-04-02  Bruno Haible  <bruno@clisp.org>
34562
34563         gnulib-tool: Obey user's environment variables.
34564         * gnulib-tool (func_create_testdir): When creating built sources,
34565         respect the environment variables for autoconf, automake, etc. given by
34566         the user.
34567
34568 2010-04-02  Bruno Haible  <bruno@clisp.org>
34569
34570         gnulib-tool: Provide the value of --m4-base to modules.
34571         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34572         of gl_m4_base.
34573
34574 2010-04-02  Eric Blake  <eblake@redhat.com>
34575
34576         maint.mk: fix some fallout
34577         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34578         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34579
34580 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34581
34582         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34583         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34584         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34585         (sc_cast_of_x_alloc_return_value): Likewise.
34586         (sc_cast_of_alloca_return_value): Likewise.
34587         (sc_space_tab): Likewise.
34588         (sc_prohibit_atoi_atof): Likewise.
34589         (sc_prohibit_magic_number_exit): Likewise.
34590         (sc_error_exit_success): Likewise.
34591         (sc_file_system): Likewise.
34592         (sc_prohibit_have_config_h): Likewise.
34593         (sc_require_config_h): Likewise.
34594         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34595         (sc_obsolete_symbols): Likewise.
34596         (sc_changelog): Likewise.
34597         (sc_program_name): Likewise.
34598         (sc_the_the): Likewise.
34599         (sc_trailing_blank): Likewise.
34600         (sc_two_space_separator_in_usage): Likewise.
34601         (sc_useless_cpp_parens): Likewise.
34602         (sc_GPL_version): Likewise.
34603         (sc_GFDL_version): Likewise.
34604         (sc_texinfo_acronym): Likewise.
34605         (sc_prohibit_cvs_keyword): Likewise.
34606         (sc_prohibit_stat_st_blocks): Likewise.
34607         (sc_prohibit_S_IS_definition): Likewise.
34608         (sc_redundant_const): Likewise.
34609         (sc_makefile_TAB_only_indentation): Likewise.
34610         (sc_m4_quote_check): Likewise.
34611         (sc_makefile_path_separator_check): Likewise.
34612         (sc_copyright_check): Likewise.
34613         (sc_Wundef_boolean): Likewise.
34614         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34615
34616         maint.mk: match 0 or more whitespace-before-function-call '('
34617         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34618         that have zero or two-and-more spaces between the function name
34619         and the open parenthesis.
34620         (sc_error_message_warn_fatal): Likewise.
34621         (sc_error_message_uppercase): Likewise.
34622         (sc_error_message_period): Likewise.
34623
34624 2010-03-31  Eric Blake  <eblake@redhat.com>
34625
34626         maint.mk: check for [ as well as test
34627         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34628         Based on a libvirt report by Matthias Bolte.
34629
34630         gnumakefile: don't squelch _version output
34631         * top/GNUmakefile (_version): Create one-shot dependency rather
34632         than using $(shell) when version must be regenerated.
34633         (_autoreconf): Run verbosely, by default.
34634
34635         sys_time: avoid compiler warnings
34636         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34637         unconditional, fixing regression from 2010-03-29.
34638         Reported by Simon Josefsson.
34639
34640 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34641
34642         maint.mk: s/_header_without_use/_sc_header_without_use/
34643         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34644         (sc_prohibit_assert_without_use): Use the new name.
34645         (sc_prohibit_close_stream_without_use): Likewise.
34646         (sc_prohibit_getopt_without_use): Likewise.
34647         (sc_prohibit_quotearg_without_use): Likewise.
34648         (sc_prohibit_quote_without_use): Likewise.
34649         (sc_prohibit_long_options_without_use): Likewise.
34650         (sc_prohibit_inttostr_without_use): Likewise.
34651         (sc_prohibit_ignore_value_without_use): Likewise.
34652         (sc_prohibit_error_without_use): Likewise.
34653         (sc_prohibit_xalloc_without_use): Likewise.
34654         (sc_prohibit_hash_without_use): Likewise.
34655         (sc_prohibit_hash_pjw_without_use): Likewise.
34656         (sc_prohibit_safe_read_without_use): Likewise.
34657         (sc_prohibit_argmatch_without_use): Likewise.
34658         (sc_prohibit_canonicalize_without_use): Likewise.
34659         (sc_prohibit_root_dev_ino_without_use): Likewise.
34660         (sc_prohibit_openat_without_use): Likewise.
34661         (sc_prohibit_c_ctype_without_use): Likewise.
34662         (sc_prohibit_signal_without_use): Likewise.
34663         (sc_prohibit_intprops_without_use): Likewise.
34664
34665 2010-03-30  Eric Blake  <eblake@redhat.com>
34666
34667         maint: improve module indicators
34668         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34669         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34670         columns, and avoid extra macro expansion.
34671
34672         fdopendir: work around FreeBSD bug
34673         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34674         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34675         * modules/dirent (Makefile.am): Substitute it.
34676         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34677         declaration.
34678         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34679         fix.
34680         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34681
34682 2010-03-29  Bruno Haible  <bruno@clisp.org>
34683
34684         Emit #pragma system_header after the inclusion guard, not before.
34685         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34686         guard that spans the entire file, not before. This enables an
34687         optimization in GCC's preprocessor.
34688         * lib/ctype.in.h: Likewise.
34689         * lib/dirent.in.h: Likewise.
34690         * lib/errno.in.h: Likewise.
34691         * lib/float.in.h: Likewise.
34692         * lib/getopt.in.h: Likewise.
34693         * lib/iconv.in.h: Likewise.
34694         * lib/langinfo.in.h: Likewise.
34695         * lib/locale.in.h: Likewise.
34696         * lib/math.in.h: Likewise.
34697         * lib/netdb.in.h: Likewise.
34698         * lib/netinet_in.in.h: Likewise.
34699         * lib/pty.in.h: Likewise.
34700         * lib/sched.in.h: Likewise.
34701         * lib/se-selinux.in.h: Likewise.
34702         * lib/search.in.h: Likewise.
34703         * lib/spawn.in.h: Likewise.
34704         * lib/stdarg.in.h: Likewise.
34705         * lib/stdint.in.h: Likewise.
34706         * lib/string.in.h: Likewise.
34707         * lib/strings.in.h: Likewise.
34708         * lib/sys_file.in.h: Likewise.
34709         * lib/sys_ioctl.in.h: Likewise.
34710         * lib/sys_time.in.h: Likewise.
34711         * lib/sys_times.in.h: Likewise.
34712         * lib/sys_utsname.in.h: Likewise.
34713         * lib/sys_wait.in.h: Likewise.
34714         * lib/sysexits.in.h: Likewise.
34715         * lib/wctype.in.h: Likewise.
34716
34717 2010-03-28  James Youngman  <jay@gnu.org>
34718
34719         save-cwd: don't leak a file descriptor when the caller execs.
34720         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34721         saved file descriptor.
34722         * modules/save-cwd (Depends-on): Depend on cloexec.
34723
34724 2010-03-29  Bruno Haible  <bruno@clisp.org>
34725
34726         Remove vestiges of fts-lgpl module.
34727         * lib/fts_.h: Assume GNULIB_FTS is 1.
34728         * lib/fts.c: Likewise.
34729         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34730
34731 2010-03-28  Bruno Haible  <bruno@clisp.org>
34732
34733         Fix definition of tests witness macro.
34734         * gnulib-tool (func_import): Fix definition of witness macro.
34735
34736 2010-03-28  Bruno Haible  <bruno@clisp.org>
34737
34738         Fix ioctl's protoype on glibc systems.
34739         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34740         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34741         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34742         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34743         signature. If not, arrange to replace the ioctl function.
34744         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34745         REPLACE_IOCTL.
34746         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34747         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34748         Reported by Ludovic Courtès <ludo@gnu.org>.
34749
34750 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34751
34752         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34753         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34754         made it so grep -r --include=GLOB* ... did not work.
34755
34756 2010-03-26  Jim Meyering  <meyering@redhat.com>
34757             Eric Blake  <eblake@redhat.com>
34758
34759         maint.mk: prohibit use of test's -o and -a operators
34760         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34761
34762 2010-03-28  Bruno Haible  <bruno@clisp.org>
34763
34764         Remove unused GNULIB_XYZ macro definitions.
34765         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34766         invocation.
34767
34768 2010-03-28  Bruno Haible  <bruno@clisp.org>
34769
34770         Mark privileged tests modules.
34771         * modules/idpriv-drop-tests (Status): New section.
34772         * modules/idpriv-droptemp-tests (Status): New section.
34773
34774 2010-03-28  Bruno Haible  <bruno@clisp.org>
34775
34776         Split C++ tests into separate tests modules.
34777         * modules/dirent-c++-tests: New file, extracted from
34778         modules/dirent-tests.
34779         * modules/dirent-tests: Depend on it.
34780         * modules/fcntl-h-c++-tests: New file, extracted from
34781         modules/fcntl-h-tests.
34782         * modules/fcntl-h-tests: Depend on it.
34783         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34784         * modules/glob-tests: Depend on it.
34785         * modules/iconv-h-c++-tests: New file, extracted from
34786         modules/iconv-h-tests.
34787         * modules/iconv-h-tests: Depend on it.
34788         * modules/langinfo-c++-tests: New file, extracted from
34789         modules/langinfo-tests.
34790         * modules/langinfo-tests: Depend on it.
34791         * modules/locale-c++-tests: New file, extracted from
34792         modules/locale-tests.
34793         * modules/locale-tests: Depend on it.
34794         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34795         * modules/math-tests: Depend on it.
34796         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34797         * modules/pty-tests: Depend on it.
34798         * modules/search-c++-tests: New file, extracted from
34799         modules/search-tests.
34800         * modules/search-tests: Depend on it.
34801         * modules/signal-c++-tests: New file, extracted from
34802         modules/signal-tests.
34803         * modules/signal-tests: Depend on it.
34804         * modules/spawn-c++-tests: New file, extracted from
34805         modules/spawn-tests.
34806         * modules/spawn-tests: Depend on it.
34807         * modules/stdio-c++-tests: New file, extracted from
34808         modules/stdio-tests.
34809         * modules/stdio-tests: Depend on it.
34810         * modules/stdlib-c++-tests: New file, extracted from
34811         modules/stdlib-tests.
34812         * modules/stdlib-tests: Depend on it.
34813         * modules/string-c++-tests: New file, extracted from
34814         modules/string-tests.
34815         * modules/string-tests: Depend on it.
34816         * modules/sys_ioctl-c++-tests: New file, extracted from
34817         modules/sys_ioctl-tests.
34818         * modules/sys_ioctl-tests: Depend on it.
34819         * modules/sys_select-c++-tests: New file, extracted from
34820         modules/sys_select-tests.
34821         * modules/sys_select-tests: Depend on it.
34822         * modules/sys_socket-c++-tests: New file, extracted from
34823         modules/sys_socket-tests.
34824         * modules/sys_socket-tests: Depend on it.
34825         * modules/sys_stat-c++-tests: New file, extracted from
34826         modules/sys_stat-tests.
34827         * modules/sys_stat-tests: Depend on it.
34828         * modules/sys_time-c++-tests: New file, extracted from
34829         modules/sys_time-tests.
34830         * modules/sys_time-tests: Depend on it.
34831         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34832         * modules/time-tests: Depend on it.
34833         * modules/unistd-c++-tests: New file, extracted from
34834         modules/unistd-tests.
34835         * modules/unistd-tests: Depend on it.
34836         * modules/wchar-c++-tests: New file, extracted from
34837         modules/wchar-tests.
34838         * modules/wchar-tests: Depend on it.
34839         * modules/wctype-c++-tests: New file, extracted from
34840         modules/wctype-tests.
34841         * modules/wctype-tests: Depend on it.
34842         Reported by Simon Josefsson.
34843
34844 2010-03-28  Bruno Haible  <bruno@clisp.org>
34845
34846         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34847         * gnulib-tool (func_exists_module): New function, extracted from
34848         func_verify_module.
34849         (func_verify_module): Use it.
34850         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34851         'foo' only if 'foo' exists.
34852         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34853         module.
34854
34855 2010-03-28  Bruno Haible  <bruno@clisp.org>
34856
34857         gnulib-tool: Add support for special categories of tests.
34858         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34859         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34860         (func_usage): Document them.
34861         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34862         inc_unportable_tests, inc_all_tests): New variables.
34863         (func_acceptable): Consider these variables.
34864         (func_modules_transitive_closure): Make it work when the 'Status' field
34865         consists of multiple words.
34866         (func_import): Store and restore the values of inc_cxx_tests,
34867         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34868         inc_all_tests in gnulib-comp.m4.
34869         (func_create_testdir): Set inc_all_tests to true.
34870         * doc/gnulib.texi (Extra tests modules): New section.
34871         Suggested by Jim Meyering.
34872
34873 2010-03-28  Bruno Haible  <bruno@clisp.org>
34874
34875         ansi-c++-opt: Allow turning off the C++ build by default.
34876         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34877         gl_CXX_CHOICE_DEFAULT_NO is defined.
34878         Requested by Eric Blake.
34879
34880 2010-03-28  Bruno Haible  <bruno@clisp.org>
34881
34882         unistd: Avoid #define replacements in C++ mode.
34883         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34884         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34885         setsockopt, shutdown, select): In C++, attach a warning to the function
34886         if possible, rather than #defining the symbol to a dysfunctional alias.
34887         Reported by John W. Eaton <jwe@gnu.org>.
34888
34889 2010-03-28  Bruno Haible  <bruno@clisp.org>
34890
34891         Fix link errors on mingw.
34892         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34893         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34894         $(LIBSOCKET).
34895         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34896         $(LIBSOCKET).
34897
34898 2010-03-28  Bruno Haible  <bruno@clisp.org>
34899             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34900
34901         lib-ignore: Determine different options for different compilers.
34902         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34903         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34904         Add comments.
34905         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34906         * NEWS: Mention the change.
34907
34908 2010-03-27  Bruno Haible  <bruno@clisp.org>
34909
34910         Remove unused GNULIB_XYZ macro definitions.
34911         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34912         * modules/fseek (configure.ac): Likewise.
34913         * modules/ioctl (configure.ac): Likewise.
34914         * modules/open (configure.ac): Likewise.
34915         * modules/stdlib-safer (configure.ac): Likewise.
34916
34917 2010-03-27  Bruno Haible  <bruno@clisp.org>
34918
34919         Add a remark about certain modules.
34920         * modules/malloc (Comment): New section.
34921         * modules/realloc (Comment): Likewise.
34922         * modules/sigpipe (Comment): Likewise.
34923
34924 2010-03-27  Bruno Haible  <bruno@clisp.org>
34925
34926         Resolve conflict between the two kinds of module indicators.
34927         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34928         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34929         * modules/canonicalize (configure.ac): Invoke
34930         gl_MODULE_INDICATOR_FOR_TESTS.
34931         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34932         GNULIB_XYZ.
34933         * tests/test-dirent-c++.cc: Likewise.
34934         * tests/test-dirent-safer.c: Likewise.
34935         * tests/test-dup2.c: Likewise.
34936         * tests/test-fchdir.c: Likewise.
34937         * tests/test-fcntl-h-c++.cc: Likewise.
34938         * tests/test-getopt.c: Likewise.
34939         * tests/test-getopt.h: Likewise.
34940         * tests/test-langinfo-c++.cc: Likewise.
34941         * tests/test-locale-c++.cc: Likewise.
34942         * tests/test-math-c++.cc: Likewise.
34943         * tests/test-pty-c++.cc: Likewise.
34944         * tests/test-search-c++.cc: Likewise.
34945         * tests/test-signal-c++.cc: Likewise.
34946         * tests/test-spawn-c++.cc: Likewise.
34947         * tests/test-stdio-c++.cc: Likewise.
34948         * tests/test-stdlib-c++.cc: Likewise.
34949         * tests/test-string-c++.cc: Likewise.
34950         * tests/test-sys_ioctl-c++.cc: Likewise.
34951         * tests/test-sys_select-c++.cc: Likewise.
34952         * tests/test-sys_socket-c++.cc: Likewise.
34953         * tests/test-sys_stat-c++.cc: Likewise.
34954         * tests/test-sys_time-c++.cc: Likewise.
34955         * tests/test-time-c++.cc: Likewise.
34956         * tests/test-unistd-c++.cc: Likewise.
34957         * tests/test-wchar-c++.cc: Likewise.
34958         * tests/uninorm/test-u8-nfc.c: Likewise.
34959         * tests/uninorm/test-u8-nfd.c: Likewise.
34960         * tests/uninorm/test-u8-nfkc.c: Likewise.
34961         * tests/uninorm/test-u8-nfkd.c: Likewise.
34962         * tests/uninorm/test-u16-nfc.c: Likewise.
34963         * tests/uninorm/test-u16-nfd.c: Likewise.
34964         * tests/uninorm/test-u16-nfkc.c: Likewise.
34965         * tests/uninorm/test-u16-nfkd.c: Likewise.
34966         * tests/uninorm/test-u32-nfc.c: Likewise.
34967         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34968         * tests/uninorm/test-u32-nfd.c: Likewise.
34969         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34970         * tests/uninorm/test-u32-nfkc.c: Likewise.
34971         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34972         * tests/uninorm/test-u32-nfkd.c: Likewise.
34973         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34974         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34975
34976 2010-03-27  Bruno Haible  <bruno@clisp.org>
34977
34978         Distinguish two kinds of module indicators.
34979         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34980         gl_MODULE_INDICATOR.
34981         (gl_MODULE_INDICATOR): New macro.
34982         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34983         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34984         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34985         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34986         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34987         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34988         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34989         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34990         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34991         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34992         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34993         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34994         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34995         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34996         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34997         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34998         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34999         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35000         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35001         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35002         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35003         * modules/cloexec (configure.ac): Likewise.
35004         * modules/getopt-gnu (configure.ac): Likewise.
35005         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35006         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35007         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35008         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35009
35010 2010-03-27  Bruno Haible  <bruno@clisp.org>
35011
35012         New module description field 'Comment'.
35013         * gnulib-tool: New option --extract-comment.
35014         (func_usage): Document it.
35015         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35016         (func_get_comment): New function.
35017         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35018
35019 2010-03-27  Bruno Haible  <bruno@clisp.org>
35020
35021         Addendum to 2010-02-07 commit.
35022         * gnulib-tool (func_usage): Document --extract-applicability option.
35023
35024 2010-03-27  Bruno Haible  <bruno@clisp.org>
35025
35026         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35027         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35028         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35029         rather than link errors.
35030
35031 2010-03-27  Bruno Haible  <bruno@clisp.org>
35032
35033         Avoid side effects from tests-related modules on the compilation of lib.
35034         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35035         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35036         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35037         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35038         macro.
35039         (func_import): Define a witness macro. Assign it a value that depends
35040         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35041         tests-related modules.
35042         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35043         Reported by Jim Meyering.
35044
35045 2010-03-27  Bruno Haible  <bruno@clisp.org>
35046
35047         Factorize common .m4 code.
35048         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35049         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35050         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35051         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35052         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35053         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35054         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35055         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35056         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35057         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35058         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35059         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35060         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35061         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35062         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35063         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35064         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35065         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35066         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35067         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35068         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35069         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35070         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35071         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35072         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35073         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35074         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35075         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35076         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35077         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35078         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35079         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35080
35081 2010-03-27  Bruno Haible  <bruno@clisp.org>
35082
35083         Fix a compilation error on Cygwin with g++ >= 4.3.
35084         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35085         if it is undefined or if we alias it to chmod.
35086         (lstat): Don't warn about the use of this function if it is undefined
35087         or if we alias it to stat.
35088         Reported by Simon Josefsson.
35089
35090 2010-03-27  Bruno Haible  <bruno@clisp.org>
35091
35092         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35093         * modules/getlogin (configure.ac): Update.
35094
35095         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35096         * modules/getlogin_r (configure.ac): Update.
35097
35098         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35099         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35100         * modules/inet_ntop (configure.ac): Update.
35101
35102         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35103         * modules/inet_pton (configure.ac): Update.
35104
35105         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35106         * modules/mbslen (configure.ac): Update.
35107
35108         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35109         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35110         * modules/forkpty (configure.ac): Update.
35111         * modules/openpty (configure.ac): Update.
35112
35113 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35114
35115         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35116         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35117
35118 2010-03-25  Eric Blake  <eblake@redhat.com>
35119
35120         maint: use pragma consistently across replacement headers
35121         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35122         * lib/dirent.in.h (system_header): Likewise.
35123         * lib/errno.in.h (system_header): Likewise.
35124         * lib/float.in.h (system_header): Likewise.
35125         * lib/getopt.in.h (system_header): Likewise.
35126         * lib/iconv.in.h (system_header): Likewise.
35127         * lib/inttypes.in.h (system_header): Likewise.
35128         * lib/langinfo.in.h (system_header): Likewise.
35129         * lib/locale.in.h (system_header): Likewise.
35130         * lib/math.in.h (system_header): Likewise.
35131         * lib/netdb.in.h (system_header): Likewise.
35132         * lib/netinet_in.in.h (system_header): Likewise.
35133         * lib/pty.in.h (system_header): Likewise.
35134         * lib/sched.in.h (system_header): Likewise.
35135         * lib/se-selinux.in.h (system_header): Likewise.
35136         * lib/search.in.h (system_header): Likewise.
35137         * lib/spawn.in.h (system_header): Likewise.
35138         * lib/stdarg.in.h (system_header): Likewise.
35139         * lib/stdint.in.h (system_header): Likewise.
35140         * lib/string.in.h (system_header): Likewise.
35141         * lib/strings.in.h (system_header): Likewise.
35142         * lib/sys_file.in.h (system_header): Likewise.
35143         * lib/sys_ioctl.in.h (system_header): Likewise.
35144         * lib/sys_socket.in.h (system_header): Likewise.
35145         * lib/sys_times.in.h (system_header): Likewise.
35146         * lib/sys_utsname.in.h (system_header): Likewise.
35147         * lib/sys_wait.in.h (system_header): Likewise.
35148         * lib/sysexits.in.h (system_header): Likewise.
35149         * lib/unistd.in.h (system_header): Likewise.
35150         * lib/wctype.in.h (system_header): Likewise.
35151
35152         arpa/inet: fix mingw compilation warning
35153         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35154         Reported by Matthew Bolte.
35155
35156 2010-03-25  Bruno Haible  <bruno@clisp.org>
35157
35158         Avoid collision between gnulib wrapper and libintl wrapper.
35159         * lib/printf.c (printf): Don't define if a printf wrapper is already
35160         defined in intl/printf.c.
35161         Reported by Michel Boaventura <michel@michelboaventura.com>.
35162
35163 2010-03-25  Bruno Haible  <bruno@clisp.org>
35164
35165         Use ANSI C.
35166         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35167
35168 2010-03-25  Bruno Haible  <bruno@clisp.org>
35169
35170         Minor formatting changes.
35171         * lib/acosl.c: Insert space before function argument list.
35172         * lib/argz.c: Likewise.
35173         * lib/asinl.c: Likewise.
35174         * lib/expl.c: Likewise.
35175         * lib/gen-uni-tables.c: Likewise.
35176         * lib/gettext.h: Likewise.
35177         * lib/glthread/lock.h: Likewise.
35178         * lib/tanl.c: Likewise.
35179         * lib/uniname/uniname.c: Likewise.
35180         * tests/test-idpriv-drop.c: Likewise.
35181         * tests/test-idpriv-droptemp.c: Likewise.
35182         * tests/test-lock.c: Likewise.
35183         * tests/test-tls.c: Likewise.
35184         * lib/argp-help.c: Insert space before function-like macro argument
35185         list.
35186         * lib/memcmp.c: Likewise.
35187         * tests/test-base64.c: Likewise.
35188         * lib/localename.c: Insert space before sizeof's argument list.
35189         * lib/safe-alloc.h: Likewise.
35190         * lib/file-set.h: Insert space before macro argument list.
35191         * tests/test-argp.c: Likewise.
35192         * lib/argp-namefrob.h: Insert space before function parameter list.
35193         * lib/getaddrinfo.c: Likewise.
35194         * lib/netdb.in.h: Likewise.
35195         * lib/parse-duration.h: Likewise.
35196         * lib/parse-duration.c: Likewise.
35197         * lib/poll.c: Likewise.
35198         * lib/select.c: Likewise.
35199         * lib/trim.h: Likewise.
35200         * tests/test-usleep.c: Likewise.
35201         * lib/ldexpl.c: Insert space before function parameter list and before
35202         function argument list.
35203         * lib/logl.c: Likewise.
35204         * lib/sqrtl.c: Likewise.
35205         * lib/trim.c: Likewise.
35206         * lib/cosl.c: Use GNU style indentation. Insert space before function
35207         argument list.
35208         * lib/sinl.c: Likewise.
35209         * lib/tsearch.c: Insert space after 'for'.
35210         Reported by Jim Meyering.
35211
35212 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35213
35214         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35215         config header before grepping, as it's not present before
35216         autoreconf/configure are run.  Reported by Simon Josefsson.
35217
35218 2010-03-23  Bruno Haible  <bruno@clisp.org>
35219
35220         pt_chown: Make it work with automake < 1.11.
35221         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35222         Reported by Simon Josefsson.
35223
35224 2010-03-23  Bruno Haible  <bruno@clisp.org>
35225
35226         pt_chown: Don't depend on GPLed modules.
35227         * lib/pt_chown.c: Don't include idpriv.h.
35228         (main): Don't drop privileges.
35229         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35230         Reported by Simon Josefsson.
35231
35232 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35233
35234         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35235         suggestions from karl@freefriends.org (Karl Berry).
35236
35237 2010-03-22  Eric Blake  <eblake@redhat.com>
35238
35239         gethostname: further tweaks
35240         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35241         are overriding gethostname.
35242         Suggested by Bruno Haible.
35243
35244 2010-03-21  Bruno Haible  <bruno@clisp.org>
35245
35246         Fix comments.
35247         * lib/forkpty.c (rpl_forkpty): Fix comment.
35248         * lib/openpty.c (rpl_openpty): Likewise.
35249         Reported by Eric Blake.
35250
35251 2010-03-22  Eric Blake  <eblake@redhat.com>
35252
35253         gethostname: fix build on mingw
35254         * lib/unistd.in.h (includes): Work around fact that mingw
35255         <winsock2.h> re-includes <unistd.h>, by avoiding any
35256         redeclarations if we are being included by <winsock2.h>.
35257         Reported by Matthias Bolte.
35258
35259 2010-03-21  Bruno Haible  <bruno@clisp.org>
35260
35261         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35262         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35263         modifications.
35264         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35265         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35266         provide the replacement.
35267         * modules/forkpty (Depends-on): Add openpty, login_tty.
35268         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35269         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35270         * doc/glibc-functions/forkpty.texi: More supported platforms.
35271         * config/srclist.txt: Add forkpty.c (commented).
35272
35273 2010-03-21  Bruno Haible  <bruno@clisp.org>
35274
35275         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35276         (Makefile.am): Verify that PTY_LIB is defined.
35277
35278         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35279
35280 2010-03-21  Bruno Haible  <bruno@clisp.org>
35281
35282         Tests for module 'login_tty'.
35283         * modules/login_tty-tests: New file.
35284         * tests/test-login_tty.c: New file.
35285
35286         New module 'login_tty'.
35287         * lib/login_tty.c: New file.
35288         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35289         * modules/login_tty: New file.
35290         * doc/glibc-functions/login_tty.texi: Mention the new module.
35291
35292 2010-03-21  Bruno Haible  <bruno@clisp.org>
35293
35294         login_tty: Documentation.
35295         * doc/glibc-functions/login_tty.texi: New file.
35296         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35297
35298 2010-03-21  Bruno Haible  <bruno@clisp.org>
35299
35300         pty: Consistent macro naming.
35301         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35302         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35303         * modules/pty (configure.ac): Update.
35304
35305 2010-03-21  Bruno Haible  <bruno@clisp.org>
35306
35307         Tests for openpty: Make stricter.
35308         * tests/test-openpty.c (main): Add test of canonical processing and
35309         erase.
35310         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35311
35312         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35313         * lib/openpty.c (openpty): New replacement function.
35314         * lib/pty.in.h: Include <termios.h>.
35315         (openpty): Update declaration. Add comments.
35316         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35317         is not declared, arrange to provide the replacement. Check for _getpty
35318         and posix_openpt.
35319         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35320         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35321         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35322         * modules/pty-tests (test_pty_c___LDADD): New variable.
35323         * doc/glibc-functions/openpty.texi: More supported platforms.
35324
35325 2010-03-21  Bruno Haible  <bruno@clisp.org>
35326
35327         setenv: Tweaks.
35328         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35329         the test program.
35330         * doc/posix-functions/setenv.texi: Update platforms list.
35331
35332 2010-03-21  Bruno Haible  <bruno@clisp.org>
35333
35334         New module 'unlockpt'.
35335         * lib/unlockpt.c: New file, from glibc with modifications.
35336         * m4/unlockpt.m4: New file.
35337         * modules/unlockpt: New file.
35338         * lib/stdlib.in.h (unlockpt): New declaration.
35339         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35340         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35341         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35342         HAVE_UNLOCKPT.
35343         * doc/posix-functions/unlockpt.texi: Mention the new module.
35344         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35345         * config/srclist.txt: Add unlockpt.c (commented).
35346
35347 2010-03-21  Jim Meyering  <meyering@redhat.com>
35348
35349         maint.mk: prohibit inclusion of "intprops.h" without use
35350         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35351
35352 2010-03-21  Bruno Haible  <bruno@clisp.org>
35353
35354         New module 'grantpt'.
35355         * lib/grantpt.c: New file, from glibc with modifications.
35356         * m4/grantpt.m4: New file.
35357         * modules/grantpt: New file.
35358         * lib/stdlib.in.h (grantpt): New declaration.
35359         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35360         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35361         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35362         HAVE_GRANTPT.
35363         * doc/posix-functions/grantpt.texi: Mention the new module.
35364         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35365         * config/srclist.txt: Add grantpt.c (commented).
35366
35367 2010-03-21  Bruno Haible  <bruno@clisp.org>
35368
35369         New module 'pt_chown'.
35370         * lib/pt_chown.c: New file, from glibc with modifications.
35371         * lib/pty-private.h: New file, from glibc with modifications.
35372         * modules/pt_chown: New file.
35373         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35374
35375 2010-03-21  Bruno Haible  <bruno@clisp.org>
35376
35377         Tests for module 'ptsname'.
35378         * modules/ptsname-tests: New file.
35379         * tests/test-ptsname.c: New file.
35380
35381         New module 'ptsname'.
35382         * lib/ptsname.c: New file, from glibc with modifications.
35383         * m4/ptsname.m4: New file.
35384         * modules/ptsname: New file.
35385         * lib/stdlib.in.h (ptsname): New declaration.
35386         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35387         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35388         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35389         HAVE_PTSNAME.
35390         * doc/posix-functions/ptsname.texi: Mention the new module.
35391         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35392         * config/srclist.txt: Add ptsname.c (commented).
35393
35394 2010-03-21  Bruno Haible  <bruno@clisp.org>
35395
35396         Tests for module 'ttyname_r'.
35397         * modules/ttyname_r-tests: New file.
35398         * tests/test-ttyname_r.c: New file.
35399
35400         New module 'ttyname_r'.
35401         * lib/ttyname_r.c: New file.
35402         * m4/ttyname_r.m4: New file.
35403         * modules/ttyname_r: New file.
35404         * lib/unistd.in.h (ttyname_r): New declaration.
35405         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35406         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35407         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35408         HAVE_TTYNAME_R.
35409         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35410         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35411
35412 2010-03-20  Bruno Haible  <bruno@clisp.org>
35413
35414         signal: Undefine macro definitions in C++ mode.
35415         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35416         sigfillset): Undefine macro definitions from the system header in C++
35417         mode.
35418         Reported by John W. Eaton <jwe@gnu.org>.
35419
35420 2010-03-20  Bruno Haible  <bruno@clisp.org>
35421
35422         Ensure no #include statements inside extern "C" { ... }.
35423         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35424         contain #include statements.
35425         * lib/time.in.h: Likewise.
35426
35427 2010-03-20  Bruno Haible  <bruno@clisp.org>
35428
35429         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35430         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35431         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35432         Reported by John W. Eaton <jwe@gnu.org>.
35433
35434 2010-03-20  Bruno Haible  <bruno@clisp.org>
35435
35436         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35437         Reported by Jim Meyering.
35438
35439 2010-03-20  Bruno Haible  <bruno@clisp.org>
35440
35441         pipe: Set errno upon failure.
35442         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35443         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35444         errno value in error message.
35445
35446 2010-03-20  Bruno Haible  <bruno@clisp.org>
35447             Jim Meyering  <meyering@redhat.com>
35448
35449         lchown: Avoid "unused variable" warning.
35450         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35451
35452 2010-03-20  Bruno Haible  <bruno@clisp.org>
35453
35454         Work around unlink() bug on MacOS X 10.5.6.
35455         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35456         attempting to unlink a parent directory.
35457         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35458         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35459         activate for the replacement function.
35460         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35461
35462 2010-03-20  Bruno Haible  <bruno@clisp.org>
35463
35464         Fix link errors on Solaris 8.
35465         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35466         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35467
35468 2010-03-19  Jim Meyering  <meyering@redhat.com>
35469
35470         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35471         The _LIBC implementation of build_range_exp correctly honors the
35472         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35473         However, the non-_LIBC implementation would ignore that syntax-bit
35474         flag and return REG_ERANGE unconditionally.
35475         This change makes it honor that flag.
35476         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35477         Make two pointer parameters "const".
35478         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35479         (parse_bracket_exp): Update caller.
35480
35481         regex.m4: correct the reversed range endpoint ([b-a]) test
35482         * m4/regex.m4: When requiring that [b-a] evoke failure,
35483         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35484         test pass once again for x86-based systems.
35485
35486 2010-03-19  Bruno Haible  <bruno@clisp.org>
35487
35488         scandir: Fix link error on Solaris 8.
35489         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35490         macros.
35491
35492 2010-03-19  Bruno Haible  <bruno@clisp.org>
35493
35494         getusershell: Fix documentation.
35495         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35496         module.
35497         * doc/glibc-functions/setusershell.texi: Likewise.
35498
35499         getusershell: Provide declaration, missing on Solaris 9.
35500         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35501         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35502         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35503         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35505         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35506         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35507         HAVE_GETUSERSHELL.
35508         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35509
35510 2010-03-19  Bruno Haible  <bruno@clisp.org>
35511
35512         wctype: Provide iswblank function.
35513         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35514         exists and is fine.
35515         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35516         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35517         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35518         * doc/posix-functions/iswblank.texi: Update.
35519
35520 2010-03-19  Bruno Haible  <bruno@clisp.org>
35521
35522         Tests of module 'pty' in C++ mode.
35523         * modules/pty-tests: New file.
35524         * tests/test-pty-c++.cc: New file.
35525         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35526
35527 2010-03-19  Eric Blake  <eblake@redhat.com>
35528
35529         logb: fix documentation
35530         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35531         1.5 declaration bug.
35532
35533         forkpty, openpty: prefer glibc's const-safe prototype
35534         * lib/forkpty.c (rpl_forkpty): New file.
35535         * lib/openpty.c (rpl_openpty): Likewise.
35536         * modules/forkpty (Files): Distribute it.
35537         * modules/openpty (Files): Likewise.
35538         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35539         check...
35540         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35541         replacement for for non-const BSD signature.
35542         * modules/pty (Makefile.am): Substitute witnesses.
35543         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35544         * tests/test-forkpty.c: Update signature check.
35545         * tests/test-openpty.c: Likewise.
35546         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35547         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35548
35549         forkpty, openpty: split functions into new modules
35550         * modules/pty (Makefile.am): Substitute new witnesses.
35551         (Libraries): Move library detection...
35552         * modules/forkpty: ...into new module.
35553         * modules/openpty: Another new module.
35554         * modules/pty-tests: Rename and split...
35555         * modules/forkpty-tests: ...to this...
35556         * modules/openpty-tests: ...and this.
35557         * tests/test-pty.c: Rename and split...
35558         * tests/test-forkpty.c: ...to this...
35559         * tests/test-openpty.c: ...and this.
35560         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35561         (gl_PTY): Split library searching...
35562         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35563         (gl_FORKPTY, gl_OPENPTY): New macros.
35564         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35565         * NEWS: Mention the split.
35566         * MODULES.html.sh (Misc): Document the modules.
35567         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35568         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35569
35570         pty: improve replacement header
35571         * lib/pty.in.h: New file.
35572         * modules/pty (Files): Ship it.
35573         (Makefile.am): Always build replacement.
35574         * m4/pty.m4: Rename...
35575         * m4/pty_h.m4: ...to this.
35576         (gl_PTY): Modernize setting of witness macros; update check of
35577         forkpty to take proper advantage of cache.
35578         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35579
35580         getopt: avoid compiler warning
35581         * lib/getopt.c (attribute_hidden): Remove unused macro.
35582
35583 2010-03-18  Bruno Haible  <bruno@clisp.org>
35584
35585         Fix link errors on Solaris 8.
35586         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35587         * modules/search-tests (test_search_c___LDADD): Likewise.
35588         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35589         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35590         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35591         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35592         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35593         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35594         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35595
35596 2010-03-18  Bruno Haible  <bruno@clisp.org>
35597
35598         Fix bug introduced on 2010-03-14.
35599         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35600         (gl_SPAWN_H): Require it.
35601         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35602         Reported by Simon Josefsson.
35603
35604 2010-03-18  Bruno Haible  <bruno@clisp.org>
35605
35606         Fix typo introduced on 2009-12-31.
35607         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35608         posix_spawn_file_actions_adddup2.
35609
35610 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35611         and Eric Blake  <eblake@redhat.com>
35612
35613         test-vc-list-files-git: make more robust
35614         * tests/test-vc-list-files-git.sh: Unset problematic environment
35615         variables.  Chain commands together.
35616
35617 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35618
35619         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35620         `AC_CHECK_DECL' invocation.
35621
35622 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35623
35624         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35625         appears before executable statements. Suggested by Petr Sumbera
35626         <Petr.Sumbera@Sun.COM>.
35627
35628 2010-03-14  Bruno Haible  <bruno@clisp.org>
35629
35630         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35631         portability problems. Instead use a simpler test.
35632         (main): Check that invalid arguments are rejected only on Linux.
35633
35634 2010-03-14  Bruno Haible  <bruno@clisp.org>
35635
35636         Fix bug introduced on 2009-12-31.
35637         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35638         gl_PREREQ_SYS_H_WINSOCK2 always.
35639         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35640         SYS_SOCKET_H variable.
35641         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35642         Update comments.
35643         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35644         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35645         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35646         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35647         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35648
35649 2010-03-14  Bruno Haible  <bruno@clisp.org>
35650
35651         Fix values returned by sinl, cosl.
35652         * lib/trigl.h: Add specification comments.
35653         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35654         that combines the values from the precomputed table with the values of
35655         the Chebyshev polynomials.
35656
35657 2010-03-14  Bruno Haible  <bruno@clisp.org>
35658
35659         Fix compilation error when modules 'posix_spawn[p]' are not used.
35660         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35661         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35662
35663 2010-03-14  Bruno Haible  <bruno@clisp.org>
35664
35665         Fix compilation error on mingw when module 'time_r' is not used.
35666         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35667         is 1.
35668         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35669         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35670         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35671         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35672
35673 2010-03-14  Bruno Haible  <bruno@clisp.org>
35674
35675         Fix compilation error with Sun C.
35676         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35677         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35678         instead of GCC specific ULONG_LONG_MAX.
35679         * lib/xstrtoll.c: Likewise.
35680         * lib/xstrtoull.c: Likewise.
35681
35682 2010-03-13  Bruno Haible  <bruno@clisp.org>
35683
35684         Allow the user to disable C++ code and tests.
35685         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35686         (gl_PROG_ANSI_CXX): Require it.
35687
35688 2010-03-13  Bruno Haible  <bruno@clisp.org>
35689
35690         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35691         cases.
35692
35693 2010-03-13  Bruno Haible  <bruno@clisp.org>
35694
35695         Test that gnulib does not break the standard C++ headers.
35696         * tests/test-locale-c++2.cc: New file.
35697         * modules/locale-tests (Files): Add it.
35698         (Makefile.am): Compile it for test-locale-c++.
35699         * tests/test-math-c++2.cc: New file.
35700         * modules/math-tests (Files): Add it.
35701         (Makefile.am): Compile it for test-math-c++.
35702         * tests/test-signal-c++2.cc: New file.
35703         * modules/signal-tests (Files): Add it.
35704         (Makefile.am): Compile it for test-signal-c++.
35705         * tests/test-stdio-c++2.cc: New file.
35706         * modules/stdio-tests (Files): Add it.
35707         (Makefile.am): Compile it for test-stdio-c++.
35708         * tests/test-stdlib-c++2.cc: New file.
35709         * modules/stdlib-tests (Files): Add it.
35710         (Makefile.am): Compile it for test-stdlib-c++.
35711         * tests/test-string-c++2.cc: New file.
35712         * modules/string-tests (Files): Add it.
35713         (Makefile.am): Compile it for test-string-c++.
35714         * tests/test-time-c++2.cc: New file.
35715         * modules/time-tests (Files): Add it.
35716         (Makefile.am): Compile it for test-time-c++.
35717         Reported by John W. Eaton <jwe@gnu.org>.
35718
35719 2010-03-13  Bruno Haible  <bruno@clisp.org>
35720
35721         * gnulib-tool (func_usage): Clarify which options are available for
35722         --create-testdir and --create-megatestdir.
35723
35724 2010-03-13  Bruno Haible  <bruno@clisp.org>
35725
35726         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35727         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35728         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35729         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35730         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35731         when appropriate.
35732         Reported by Jim Meyering.
35733
35734 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35735
35736         * gnulib-tool (func_import): Explain origin of code.
35737
35738 2010-03-12  Bruno Haible  <bruno@clisp.org>
35739
35740         Fix problem with automake's definition of CXXLINK.
35741         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35742         Reported by Simon Josefsson and Ludovic Courtès.
35743
35744 2010-03-12  Bruno Haible  <bruno@clisp.org>
35745
35746         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35747         stable releases.
35748
35749 2010-03-11  Bruno Haible  <bruno@clisp.org>
35750
35751         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35752         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35753         whether the system provides one variant or multiple variants of the
35754         function.
35755         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35756         C++ compilers.
35757         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35758         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35759         Reported by Jim Meyering.
35760
35761 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35762
35763         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35764
35765 2010-03-08  Bruno Haible  <bruno@clisp.org>
35766
35767         gnulib-tool: Add support for --libtool in --create-testdir.
35768         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35769         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35770
35771 2010-03-08  Eric Blake  <eblake@redhat.com>
35772
35773         gnulib-tool.texi: mention possibility of git submodule
35774         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35775         submodules.
35776         * doc/.gitignore: Ignore another generated file.
35777
35778 2010-03-08  Karl Berry  <karl@gnu.org>
35779
35780         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35781         of committing gnulib files while skipping others.
35782
35783 2010-03-07  Bruno Haible  <bruno@clisp.org>
35784
35785         Tests of module 'wctype' in C++ mode.
35786         * tests/test-wctype-c++.cc: New file.
35787         * modules/wctype-tests (Files): Add it and tests/signature.h.
35788         (Depends-on): Add ansi-c++-opt.
35789         (Makefile.am): Arrange to compile and run test-wctype-c++.
35790
35791         Tests of module 'wchar' in C++ mode.
35792         * tests/test-wchar-c++.cc: New file.
35793         * modules/wchar-tests (Files): Add it and tests/signature.h.
35794         (Depends-on): Add ansi-c++-opt.
35795         (Makefile.am): Arrange to compile and run test-wchar-c++.
35796         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35797         gl_MODULE_INDICATOR.
35798
35799         Tests of module 'unistd' in C++ mode.
35800         * tests/test-unistd-c++.cc: New file.
35801         * modules/unistd-tests (Files): Add it and tests/signature.h.
35802         (Depends-on): Add ansi-c++-opt.
35803         (Makefile.am): Arrange to compile and run test-unistd-c++.
35804         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35805         gl_MODULE_INDICATOR.
35806
35807         Tests of module 'time' in C++ mode.
35808         * tests/test-time-c++.cc: New file.
35809         * modules/time-tests (Files): Add it and tests/signature.h.
35810         (Depends-on): Add ansi-c++-opt.
35811         (Makefile.am): Arrange to compile and run test-time-c++.
35812         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35813
35814         Tests of module 'sys_time' in C++ mode.
35815         * tests/test-sys_time-c++.cc: New file.
35816         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35817         (Depends-on): Add ansi-c++-opt.
35818         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35819         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35820         gl_MODULE_INDICATOR.
35821
35822         Tests of module 'sys_stat' in C++ mode.
35823         * tests/test-sys_stat-c++.cc: New file.
35824         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35825         (Depends-on): Add ansi-c++-opt.
35826         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35827         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35828         gl_MODULE_INDICATOR.
35829
35830         Tests of module 'sys_socket' in C++ mode.
35831         * tests/test-sys_socket-c++.cc: New file.
35832         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35833         (Depends-on): Add ansi-c++-opt.
35834         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35835         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35836         gl_MODULE_INDICATOR.
35837
35838         Tests of module 'sys_select' in C++ mode.
35839         * tests/test-sys_select-c++.cc: New file.
35840         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35841         (Depends-on): Add ansi-c++-opt.
35842         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35843         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35844         gl_MODULE_INDICATOR.
35845
35846         Tests of module 'sys_ioctl' in C++ mode.
35847         * tests/test-sys_ioctl-c++.cc: New file.
35848         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35849         (Depends-on): Add ansi-c++-opt.
35850         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35851         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35852         gl_MODULE_INDICATOR.
35853
35854         Tests of module 'string' in C++ mode.
35855         * tests/test-string-c++.cc: New file.
35856         * modules/string-tests (Files): Add it and tests/signature.h.
35857         (Depends-on): Add ansi-c++-opt.
35858         (Makefile.am): Arrange to compile and run test-string-c++.
35859         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35860         gl_MODULE_INDICATOR.
35861
35862         Tests of module 'stdlib' in C++ mode.
35863         * tests/test-stdlib-c++.cc: New file.
35864         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35865         (Depends-on): Add ansi-c++-opt.
35866         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35867         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35868         gl_MODULE_INDICATOR.
35869
35870         Tests of module 'stdio' in C++ mode.
35871         * tests/test-stdio-c++.cc: New file.
35872         * modules/stdio-tests (Files): Add it and tests/signature.h.
35873         (Depends-on): Add ansi-c++-opt.
35874         (Makefile.am): Arrange to compile and run test-stdio-c++.
35875         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35876         gl_MODULE_INDICATOR.
35877
35878         Tests of module 'spawn' in C++ mode.
35879         * tests/test-spawn-c++.cc: New file.
35880         * modules/spawn-tests (Files): Add it and tests/signature.h.
35881         (Depends-on): Add ansi-c++-opt.
35882         (Makefile.am): Arrange to compile and run test-spawn-c++.
35883         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35884         gl_MODULE_INDICATOR.
35885
35886         Tests of module 'signal' in C++ mode.
35887         * tests/test-signal-c++.cc: New file.
35888         * modules/signal-tests (Files): Add it and tests/signature.h.
35889         (Depends-on): Add ansi-c++-opt.
35890         (Makefile.am): Arrange to compile and run test-signal-c++.
35891         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35892         gl_MODULE_INDICATOR.
35893
35894         Tests of module 'search' in C++ mode.
35895         * tests/test-search-c++.cc: New file.
35896         * modules/search-tests (Files): Add it and tests/signature.h.
35897         (Depends-on): Add ansi-c++-opt.
35898         (Makefile.am): Arrange to compile and run test-search-c++.
35899         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35900         gl_MODULE_INDICATOR.
35901
35902         Tests of module 'math' in C++ mode.
35903         * tests/test-math-c++.cc: New file.
35904         * modules/math-tests (Files): Add it and tests/signature.h.
35905         (Depends-on): Add ansi-c++-opt.
35906         (Makefile.am): Arrange to compile and run test-math-c++.
35907         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35908
35909         Tests of module 'locale' in C++ mode.
35910         * tests/test-locale-c++.cc: New file.
35911         * modules/locale-tests (Files): Add it and tests/signature.h.
35912         (Depends-on): Add ansi-c++-opt.
35913         (Makefile.am): Arrange to compile and run test-locale-c++.
35914         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35915         gl_MODULE_INDICATOR.
35916
35917         Tests of module 'langinfo' in C++ mode.
35918         * tests/test-langinfo-c++.cc: New file.
35919         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35920         (Depends-on): Add ansi-c++-opt.
35921         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35922         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35923         gl_MODULE_INDICATOR.
35924
35925         Tests of module 'iconv-h' in C++ mode.
35926         * tests/test-iconv-h-c++.cc: New file.
35927         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35928         (Depends-on): Add ansi-c++-opt.
35929         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35930
35931         Tests of module 'glob' in C++ mode.
35932         * tests/test-glob-c++.cc: New file.
35933         * modules/glob-tests (Files): Add it.
35934         (Depends-on): Add ansi-c++-opt.
35935         (Makefile.am): Arrange to compile and run test-glob-c++.
35936
35937         Tests of module 'fcntl-h' in C++ mode.
35938         * tests/test-fcntl-h-c++.cc: New file.
35939         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35940         (Depends-on): Add ansi-c++-opt.
35941         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35942         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35943         gl_MODULE_INDICATOR.
35944
35945         Tests of module 'dirent' in C++ mode.
35946         * tests/test-dirent-c++.cc: New file.
35947         * modules/dirent-tests (Files): Add it and tests/signature.h.
35948         (Depends-on): Add ansi-c++-opt.
35949         (Makefile.am): Arrange to compile and run test-dirent-c++.
35950         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35951         gl_MODULE_INDICATOR.
35952
35953         New module 'ansi-c++-opt'.
35954         * modules/ansi-c++-opt: New file.
35955         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35956
35957         Document C++ namespace mode.
35958         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35959
35960         wctype: Avoid #define replacements in C++ mode.
35961         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35962         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35963         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35964         In C++, define a namespaced alias symbol.
35965         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35966         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35967         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35968         rule.
35969
35970         wchar: Avoid #define replacements in C++ mode.
35971         * lib/wchar.in.h: Include c++defs.h.
35972         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35973         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35974         symbol.
35975         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35976         * modules/wchar (Depends-on): Add c++defs.
35977         (Makefile.am): Update wchar.h rule.
35978
35979         unistd: Avoid #define replacements in C++ mode.
35980         * lib/unistd.in.h: Include c++defs.h.
35981         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35982         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35983         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35984         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35985         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35986         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35987         symbol.
35988         (environ): Update.
35989         * modules/unistd (Depends-on): Add c++defs.
35990         (Makefile.am): Update unistd.h rule.
35991
35992         time: Avoid #define replacements in C++ mode.
35993         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35994         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35995         define a namespaced alias symbol.
35996         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35997         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35998         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35999         * modules/time (Depends-on): Add c++defs, warn-on-use.
36000         (Makefile.am): Update time.h rule.
36001         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36002         * modules/nanosleep (configure.ac): Likewise.
36003         * modules/strptime (configure.ac): Likewise.
36004         * modules/timegm (configure.ac): Likewise.
36005
36006         sys_time: Avoid #define replacements in C++ mode.
36007         * lib/sys_time.in.h: Include c++defs.h.
36008         (gettimeofday): In C++, define a namespaced alias symbol.
36009         * modules/sys_time (Depends-on): Add c++defs.
36010         (Makefile.am): Update sys/time.h rule.
36011
36012         sys_stat: Avoid #define replacements in C++ mode.
36013         * lib/sys_stat.in.h: Include c++defs.h.
36014         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36015         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36016         namespaced alias symbol.
36017         In C++, define a namespaced alias symbol.
36018         * modules/sys_stat (Depends-on): Add c++defs.
36019         (Makefile.am): Update sys/stat.h rule.
36020
36021         sys_socket: Avoid #define replacements in C++ mode.
36022         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36023         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36024         definitions also when the system has a <sys/socket.h>.
36025         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36026         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36027         In C++, define a namespaced alias symbol.
36028         * modules/sys_socket (Depends-on): Add c++defs.
36029         (Makefile.am): Update sys/socket.h rule.
36030
36031         sys_select: Avoid #define replacements in C++ mode.
36032         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36033         definitions also when the system has a <sys/select.h>.
36034         (select): In C++, define a namespaced alias symbol.
36035         * modules/sys_select (Depends-on): Add c++defs.
36036         (Makefile.am): Update sys/select.h rule.
36037
36038         sys_ioctl: Avoid #define replacements in C++ mode.
36039         * lib/sys_ioctl.in.h: Include c++defs.h.
36040         (ioctl): In C++, define a namespaced alias symbol.
36041         * modules/sys_ioctl (Depends-on): Add c++defs.
36042         (Makefile.am): Update sys/ioctl.h rule.
36043
36044         string: Avoid #define replacements in C++ mode.
36045         * lib/string.in.h: Include c++defs.h.
36046         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36047         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36048         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36049         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36050         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36051         * modules/string (Depends-on): Add c++defs.
36052         (Makefile.am): Update string.h rule.
36053
36054         stdlib: Avoid #define replacements in C++ mode.
36055         * lib/stdlib.in.h: Include c++defs.h.
36056         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36057         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36058         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36059         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36060         symbol.
36061         * modules/stdlib (Depends-on): Add c++defs.
36062         (Makefile.am): Update stdlib.h rule.
36063
36064         stdio: Avoid #define replacements in C++ mode.
36065         * lib/stdio.in.h: Include c++defs.h.
36066         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36067         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36068         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36069         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36070         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36071         namespaced alias symbol.
36072         * modules/stdio (Depends-on): Add c++defs.
36073         (Makefile.am): Update stdio.h rule.
36074
36075         spawn: Avoid #define replacements in C++ mode.
36076         * lib/spawn.in.h: Include c++defs.h.
36077         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36078         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36079         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36080         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36081         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36082         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36083         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36084         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36085         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36086         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36087         In C++, define a namespaced alias symbol.
36088         * modules/spawn (Depends-on): Add c++defs.
36089         (Makefile.am): Update spawn.h rule.
36090
36091         signal: Avoid #define replacements in C++ mode.
36092         * lib/signal.in.h: Include c++defs.h.
36093         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36094         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36095         namespaced alias symbol.
36096         * modules/signal (Depends-on): Add c++defs.
36097         (Makefile.am): Update signal.h rule.
36098
36099         search: Avoid #define replacements in C++ mode.
36100         * lib/search.in.h: Include c++defs.h.
36101         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36102         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36103         symbol.
36104         * modules/search (Depends-on): Add c++defs.
36105         (Makefile.am): Update search.h rule.
36106
36107         math: Avoid #define replacements in C++ mode.
36108         * lib/math.in.h: Include c++defs.h.
36109         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36110         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36111         trunc, truncl): In C++, define a namespaced alias symbol.
36112         * modules/math (Depends-on): Add c++defs.
36113         (Makefile.am): Update math.h rule.
36114
36115         locale: Avoid #define replacements in C++ mode.
36116         * lib/locale.in.h: Include c++defs.h.
36117         (duplocale): In C++, define a namespaced alias symbol.
36118         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36119         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36120         * modules/locale (Depends-on): Add c++defs.
36121         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36122
36123         langinfo: Avoid #define replacements in C++ mode.
36124         * lib/langinfo.in.h: Include c++defs.h.
36125         (nl_langinfo): In C++, define a namespaced alias symbol.
36126         * modules/langinfo (Depends-on): Add c++defs.
36127         (Makefile.am): Update langinfo.h rule.
36128
36129         iconv-h: Avoid #define replacements in C++ mode.
36130         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36131         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36132         symbol.
36133         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36134         whenever iconv is present.
36135         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36136         (Makefile.am): Update iconv.h rule.
36137
36138         glob: Avoid #define replacements in C++ mode.
36139         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36140         (_gl_glob_errfunc_fn): New type.
36141         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36142         symbol.
36143         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36144         (Makefile.am): Update glob.h rule.
36145
36146         fcntl-h: Avoid #define replacements in C++ mode.
36147         * lib/fcntl.in.h: Include c++defs.h.
36148         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36149         * modules/fcntl-h (Depends-on): Add c++defs.
36150         (Makefile.am): Update fcntl.h rule.
36151
36152         dirent: Avoid #define replacements in C++ mode.
36153         * lib/dirent.in.h: Include c++defs.h.
36154         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36155         namespaced alias symbol.
36156         (dirfd): Update declaration.
36157         * modules/dirent (Depends-on): Add c++defs.
36158         (Makefile.am): Update dirent.h rule.
36159
36160         ctype: Make it usable in C++ code.
36161         * lib/ctype.in.h: Include c++defs.h.
36162         (isblank): Declare as extern "C".
36163         * modules/ctype (Depends-on): Add c++defs.
36164         (Makefile.am): Update ctype.h rule.
36165
36166         New module 'c++defs'.
36167         * modules/c++defs: New file.
36168         * build-aux/c++defs.h: New file.
36169         Reported by John W. Eaton <jwe@gnu.org>.
36170
36171 2010-03-07  Bruno Haible  <bruno@clisp.org>
36172
36173         logb: Provide missing declaration for Cygwin.
36174         * lib/math.in.h (logb): New declaration.
36175         * m4/logb.m4: New file.
36176         * modules/logb (Files): Add m4/logb.m4.
36177         (Depends-on): Add math.
36178         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36179         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36181         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36182         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36183
36184 2010-03-07  Bruno Haible  <bruno@clisp.org>
36185
36186         Fix test-cond link error.
36187         * tests/test-cond.c: Include <stdio.h>.
36188
36189 2010-03-07  Bruno Haible  <bruno@clisp.org>
36190
36191         Fix test-dirent-safer link error.
36192         * modules/dirent-safer-tests (Makefile.am): Define
36193         test_dirent_safer_LDADD.
36194
36195 2010-03-07  Bruno Haible  <bruno@clisp.org>
36196
36197         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36198         among default module list.
36199
36200 2010-03-07  Bruno Haible  <bruno@clisp.org>
36201
36202         Fix link error on platforms with GNU libiconv.
36203         * modules/unistr/u8-strcoll-tests (Makefile): Define
36204         test_u8_strcoll_LDADD.
36205         * modules/unistr/u16-strcoll-tests (Makefile): Define
36206         test_u16_strcoll_LDADD.
36207         * modules/unistr/u32-strcoll-tests (Makefile): Define
36208         test_u32_strcoll_LDADD.
36209
36210 2010-03-07  Bruno Haible  <bruno@clisp.org>
36211
36212         Use POSIX declarations for socket functions.
36213         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36214         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36215         rpl_sendto): Change declaration to match POSIX.
36216         * lib/connect.c (rpl_connect): Likewise.
36217         * lib/accept.c (rpl_accept): Likewise.
36218         * lib/bind.c (rpl_bind): Likewise.
36219         * lib/getpeername.c (rpl_getpeername): Likewise.
36220         * lib/getsockname.c (rpl_getsockname): Likewise.
36221         * lib/recv.c (rpl_recv): Likewise.
36222         * lib/send.c (rpl_send): Likewise.
36223         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36224         * lib/sendto.c (rpl_sendto): Likewise.
36225
36226 2010-03-06  Bruno Haible  <bruno@clisp.org>
36227
36228         Clarify access, euidaccess, faccessat.
36229         * doc/posix-functions/faccessat.texi: Mention security problem under
36230         "Other problems", not "Portability problems".
36231         * doc/posix-functions/access.texi: Likewise. Mention a related security
36232         problem.
36233         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36234         * lib/euidaccess.c: Add comments about platforms.
36235         * lib/unistd.in.h (access, euidaccess): Add warnings.
36236
36237 2010-03-07  Bruno Haible  <bruno@clisp.org>
36238
36239         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36240         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36241         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36242         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36243         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36244         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36245         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36246         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36247         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36248         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36249         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36250         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36251         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36252         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36253         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36254         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36255         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36256         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36257         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36258         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36259         Likewise.
36260         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36261         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36262         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36263         Likewise.
36264         * tests/test-spawn.c (main): Make it work when
36265         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36266
36267 2010-03-07  Bruno Haible  <bruno@clisp.org>
36268
36269         Fix incorrect Makefile.am generation in German locale.
36270         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36271         Execute sed command with character range in C locale.
36272
36273 2010-03-06  Bruno Haible  <bruno@clisp.org>
36274
36275         Tests for module 'iconv-h'.
36276         * modules/iconv-h-tests: New file.
36277         * tests/test-iconv-h.c: New file.
36278
36279         New module 'iconv-h'.
36280         * modules/iconv-h: New file.
36281         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36282         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36283         (configure.ac): Remove gl_ICONV_H.
36284         (Makefile.am): Remove rule for iconv.h.
36285
36286 2010-03-06  Bruno Haible  <bruno@clisp.org>
36287
36288         More consistent naming of *.m4 files.
36289         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36290         * modules/wctype (Files): Update.
36291
36292         More consistent naming of *.m4 files.
36293         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36294         * modules/wchar (Files): Update.
36295
36296 2010-03-06  Jim Meyering  <meyering@redhat.com>
36297
36298         euidaccess: relax license to LGPLv2+
36299         * modules/euidaccess (License): Relax to LGPLv2+.
36300
36301 2010-03-06  Bruno Haible  <bruno@clisp.org>
36302
36303         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36304         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36305         (Makefile.am): Augment lib_SOURCES instead.
36306
36307 2010-03-04  Jim Meyering  <meyering@redhat.com>
36308
36309         utime: remove obsolete module
36310         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36311         unnecessary for years, and has been marked as obsolete for 10 months.
36312         * modules/utime: Remove file.
36313         * lib/utime.c: Remove file.
36314         * m4/utime.m4: Remove file.
36315         * m4/utimes-null.m4: Remove file.
36316         * doc/posix-functions/utime.texi (utime): Remove reference to
36317         the module.  Move the sole "fixed by gnulib" item into the
36318         "problems not fixed by Gnulib" list.
36319         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36320
36321 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36322
36323         * modules/exit (License): Relax license to LGPLv2+.
36324         (Status): Mark as obsolete.
36325         * NEWS: Mention deprecated 'exit' module.
36326         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36327         of now obsolete 'exit'.
36328
36329 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36330
36331         fts-lgpl: remove unused module
36332         * modules/fts-lgpl: Remove.
36333         * MODULES.html.sh (func_all_modules): Adjust.
36334         * check-module (find_included_lib_files): Adjust.
36335         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36336
36337 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36338
36339         copy-acl: enhance Solaris ACL error handling
36340         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36341         * lib/set-mode-acl.c (qset_acl): Likewise.
36342
36343 2010-03-02  Bruno Haible  <bruno@clisp.org>
36344
36345         spawn: Don't override the system defined values on FreeBSD 8.
36346         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36347         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36348         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36349         if HAVE_POSIX_SPAWN is 1.
36350         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36351
36352 2010-03-01  Bruno Haible  <bruno@clisp.org>
36353
36354         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36355         regarding Automake.
36356
36357 2010-02-25  Bruno Haible  <bruno@clisp.org>
36358
36359         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36360         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36361         setting, not afterwards.
36362         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36363
36364 2010-02-24  Eric Blake  <eblake@redhat.com>
36365
36366         bootstrap, git-version-gen: use timestamp
36367         * build-aux/git-version-gen (scriptversion): Force UTC.
36368         * build-aux/bootstrap (scriptversion): New variable.
36369
36370         bootstrap: allow older git
36371         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36372         older than 1.6.4.  Requested by the libvirt project.
36373
36374 2010-02-23  Eric Blake  <eblake@redhat.com>
36375
36376         warn-on-use: work with old autoconf
36377         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36378         AS_VAR semantics of autoconf 2.60.
36379         Reported by Bruno Haible.
36380
36381         bootstrap: improve some comments
36382         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36383         clarification comments.
36384
36385         gettimeofday: provide correct function
36386         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36387         when replacement is declared, otherwise provide gettimeofday.
36388         Reported by Michael Goffioul.
36389
36390 2010-02-23  Jim Meyering  <meyering@redhat.com>
36391
36392         lib-ignore: relax license to "unlimited", not LGPLv2+
36393         * modules/lib-ignore (License): Relax to "unlimited".
36394
36395 2010-02-23  Jim Meyering  <meyering@redhat.com>
36396
36397         lib-ignore: relax license to LGPLv2+
36398         * modules/lib-ignore (License): Relax to LGPLv2+.
36399
36400 2010-02-22  Eric Blake  <eblake@redhat.com>
36401
36402         lseek: avoid bash 3.2 broken pipe bug
36403         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36404         warning from bash 3.2.
36405         Reported by Ben Pfaff, with analysis from Bruno Haible.
36406
36407         bootstrap: support non-FSF copyright holder
36408         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36409         bootstrap.conf override of COPYRIGHT_HOLDER.
36410         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36411
36412         bootstrap: interoperate with gettext 0.14.1
36413         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36414
36415         bootstrap: allow for alternate submodule location
36416         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36417         hardcoding submodule location.
36418         (gnulib_mk): Allow direct use of Makefile.am.
36419
36420         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36421         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36422         rather than reconfiguring where the submodule points.
36423
36424         gettimeofday: restore support for platforms that lack function
36425         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36426         replacement if function is missing.
36427         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36428         * modules/sys_time (Makefile.am): Substitute it.
36429         * lib/sys_time.in.h (gettimeofday): Check it.
36430         Reported by Michael Goffioul.
36431
36432 2010-02-21  Bruno Haible  <bruno@clisp.org>
36433
36434         * lib/stdio.in.h (obstack_printf): Fix typo.
36435
36436 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36437
36438         vc-list-files: use bzr ls's -R option
36439         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36440         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36441
36442 2010-02-21  Jim Meyering  <meyering@redhat.com>
36443
36444         init.sh: fix EXEEXT shims to work also for names like test-prog
36445         * tests/init.sh: Re-exec a better shell, when needed.
36446         If the current shell lacks support for posix $(...), an init.sh-using
36447         test will now try to find a shell that supports that.  If EXEEXT is
36448         nonempty, we also require support for hyphen-in-alias-name and shell
36449         substitutions like ${var#glob}.  Failure to find such a shell results
36450         in a skipped test.
36451
36452 2010-02-21  Bruno Haible  <bruno@clisp.org>
36453
36454         Really work around around "broken pipe" error message from bash 3.2.
36455         * gnulib-tool (func_reset_sigpipe): Remove function.
36456         (echo): In bash 3.2, define to a function that uses printf.
36457         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36458
36459 2010-02-20  Bruno Haible  <bruno@clisp.org>
36460
36461         Restore support for automake 1.9.6 with autoconf 2.61.
36462         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36463         Reported by James Youngman <jay@gnu.org>.
36464
36465 2010-02-20  Bruno Haible  <bruno@clisp.org>
36466
36467         Improve *printf warning condition.
36468         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36469         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36470         and the function is overridden due to SIGPIPE emulation.
36471
36472 2010-02-20  Bruno Haible  <bruno@clisp.org>
36473
36474         * lib/stdio.in.h: Tweak comments.
36475
36476 2010-02-19  Bruno Haible  <bruno@clisp.org>
36477
36478         Make it easier to find modules. New gnulib-tool option '--find'.
36479         * gnulib-tool: New option --find.
36480         (func_usage): Document it.
36481         (func_sanitize_modulelist): New function, extracted from
36482         func_all_modules.
36483         (func_all_modules): Invoke it.
36484         * doc/gnulib-tool.texi (Which modules?): New node.
36485
36486 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36487
36488         * lib/sys_select.in.h: Provide select replacement even if
36489         sys/select.h exists on a system, for Interix.
36490
36491 2010-02-18  Jim Meyering  <meyering@redhat.com>
36492
36493         init.sh: don't use $(...) just yet
36494         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36495         to accommodate e.g., Solaris' /bin/sh.
36496
36497 2010-02-17  Bruno Haible  <bruno@clisp.org>
36498
36499         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36500         Reported by Ludovic Courtès <ludo@gnu.org>.
36501
36502 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36503
36504         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36505         linking with -lintl.
36506
36507 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36508
36509         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36510         if not provided by the system's netdb.h.  Reported by
36511         ludo@gnu.org (Ludovic Courtès).
36512
36513 2010-02-15  Jim Meyering  <meyering@redhat.com>
36514
36515         init.sh: improve portability and efficiency
36516         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36517         "dummy" in a for loop.
36518         Use '!', not '^' to select the complement of a character set used
36519         in a "case" statement.
36520         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36521         Suggestions from Eric Blake.
36522
36523         init.sh: automatically accommodate programs with the .exe suffix
36524         Automatically arrange for an invocation of "prog" to execute the
36525         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36526         may use the simpler "prog", yet still work when built on a system
36527         that requires specifying the added suffix.
36528         Do this by constructing a function named "prog" that invokes
36529         "prog.exe" for each .exe file in selected directories.
36530         * tests/init.sh (find_exe_basenames_): New function.
36531         (create_exe_shim_functions_): New function.
36532         (path_prepend_): Use it.
36533
36534         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36535         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36536         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36537
36538 2010-02-14  Jim Meyering  <meyering@redhat.com>
36539
36540         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36541         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36542         (sc_prohibit_hash_pjw_without_use): New rule.
36543
36544         maint.mk: allow the default upload destination dir to be overridden
36545         * top/maint.mk (upload_dest_dir_): Define with a default that
36546         preserves the status quo.
36547         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36548         Reported by Peter Simons.
36549
36550         maint.mk: prohibit inclusion of "hash.h" without_use
36551         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36552
36553 2010-02-10  Jim Meyering  <meyering@redhat.com>
36554
36555         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36556         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36557
36558 2010-02-09  Eric Blake  <ebb9@byu.net>
36559         and Bruno Haible  <bruno@clisp.org>
36560
36561         obstack-printf-posix: ensure declaration
36562         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36563         extracted from gl_FUNC_OBSTACK_PRINTF.
36564         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36565         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36566         Likewise.
36567         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36568         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36569         0.
36570
36571 2010-02-08  Bruno Haible  <bruno@clisp.org>
36572
36573         gnulib-tool: Fix typo in 2010-02-07 commit.
36574         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36575         Reported by Eric Blake.
36576
36577 2010-02-07  Bruno Haible  <bruno@clisp.org>
36578
36579         gnulib-tool: Fix up caching patches.
36580         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36581         option --no-cache. Use associative arrays when supported by the shell.
36582         (sed_comments): New variable.
36583         (modcache): Renamed from do_cache.
36584         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36585         abbreviate unnecessarily.
36586         (have_associative): New variable.
36587         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36588         way also for ksh and zsh.
36589         (func_init_sed_convert_to_cache_statements): New function, extracted
36590         from func_cache_lookup_module. Add support for associative arrays.
36591         Don't set the c_MODULE_cached variable here. Ignore all lines before
36592         the first field header. Remove only the final newline, not all trailing
36593         newlines. Support empty fields correctly. Limit the use of 'eval' to
36594         assignments.
36595         (func_get_description, func_get_status, func_get_notice,
36596         func_get_applicability, func_get_filelist, func_get_dependencies,
36597         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36598         func_get_automake_snippet, func_get_include_directive,
36599         func_get_link_directive, func_get_license, func_get_maintainer):
36600         Update documentation. List the unoptimized code first. Add support for
36601         associative arrays. Limit the use of 'eval' to assignments.
36602         (func_get_applicability): Undo stylistic pessimisations.
36603         (func_get_automake_snippet, func_get_include_directive): Reduce code
36604         duplication.
36605         (func_modules_transitive_closure, func_modules_add_dummy,
36606         func_modules_notice, func_modules_to_filelist, func_add_file,
36607         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36608         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36609         func_create_testdir, func_create_megatestdir): Update documentation.
36610
36611 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36612
36613         * gnulib-tool (func_cache_lookup_module): Store the module name
36614         belonging to the cache variable; error out if two different
36615         module names map to the same cache variable name.
36616
36617 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36618
36619         gnulib-tool: Make caching optional.
36620         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36621         Update matching short versions of --no-changelog.
36622         (func_usage): Update.
36623         (sed_extract_cache_prog): Renamed from ...
36624         (sed_extract_prog): ... this; revert to old extraction script.
36625         (func_get_description, func_get_status)
36626         (func_get_notice, func_get_applicability, func_get_filelist)
36627         (func_get_dependencies, func_get_autoconf_early_snippet)
36628         (func_get_autoconf_snippet, func_get_automake_snippet)
36629         (func_get_include_directive, func_get_link_directive)
36630         (func_get_license, func_get_maintainer): If $do_cache is false,
36631         use old, non-caching extraction scripts.
36632         Suggestion by Bruno Haible.
36633
36634 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36635
36636         gnulib-tool: cache module metainformation.
36637         * gnulib-tool (sed_extract_prog): Match newline before each
36638         header, and rewrite header to a shell variable suffix.
36639         (func_cache_var, func_cache_lookup_module): New functions,
36640         to turn a module name into a cache variable prefix, and to
36641         look up and cache module metainformation.
36642         (func_get_description, func_get_status)
36643         (func_get_notice, func_get_applicability, func_get_filelist)
36644         (func_get_dependencies, func_get_autoconf_early_snippet)
36645         (func_get_autoconf_snippet, func_get_automake_snippet)
36646         (func_get_include_directive, func_get_link_directive)
36647         (func_get_license, func_get_maintainer): Use
36648         func_cache_lookup_module.
36649
36650 2010-02-07  Bruno Haible  <bruno@clisp.org>
36651
36652         fnctl: Fix missing dependency.
36653         * modules/fcntl (Depends-on): Add getdtablesize.
36654         Reported by John W. Eaton <jwe@gnu.org>.
36655
36656 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36657
36658         Argp: fix recognition of short alias options.
36659
36660         * lib/argp-parse.c (convert_options): Fix improper use of
36661         `|' between character values.
36662         * tests/test-argp.c (group1_option): New alias option
36663         --read (-r).
36664         (group1_parser): Special handling for 'r'.
36665         (test15): New test case.
36666         (test_fun): Add test15.
36667         * tests/test-argp-2.sh: Update expected --help and --usage
36668         outputs.
36669
36670 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36671
36672         * tests/test-argp.c: Fix indentation.
36673
36674 2010-02-04  Eric Blake  <ebb9@byu.net>
36675
36676         gettimeofday: expose type of second argument
36677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36678         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36679         * tests/test-gettimeofday.c: Use it to silence warning.
36680         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36681         the issue.
36682
36683 2010-02-03  Jim Meyering  <meyering@redhat.com>
36684
36685         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36686         * lib/regcomp.c (TYPE_SIGNED): Define.
36687         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36688
36689         regcomp.c: avoid a new -Wshadow warning
36690         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36691
36692 2010-02-01  Jim Meyering  <meyering@redhat.com>
36693
36694         removing useless parentheses in cpp #define directives
36695         For motivation, see commit c0221df4, "define STREQ(a,b)
36696         consistently, removing useless parentheses"
36697         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36698         * lib/mountlist.c (MNT_IGNORE): Likewise.
36699         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36700
36701 2010-02-01  Eric Blake  <ebb9@byu.net>
36702
36703         sys_time: use link-warning
36704         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36705         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36706         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36707         * modules/sys_time (Depends-on): Add warn-on-use.
36708         (Makefile.am): Always build replacement.
36709         (configure.ac): Update substitutions.
36710         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36711         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36712         bother with SYS_TIME_H.
36713         * modules/gettimeofday (configure.ac): Declare indicator.
36714         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36715         in use.
36716
36717         closein-tests: silence compiler warning
36718         * tests/test-closein.c (main): Ignore fread result.
36719         * modules/closein-tests (Depends-on): Add ignore-value.
36720
36721         tests: silence warning about system return
36722         * tests/test-areadlink-with-size.c (main): Ignore system result.
36723         * tests/test-areadlink.c (main): Likewise.
36724         * tests/test-areadlinkat-with-size.c (main): Likewise.
36725         * tests/test-areadlinkat.c (main): Likewise.
36726         * tests/test-canonicalize-lgpl.c (main): Likewise.
36727         * tests/test-canonicalize.c (main): Likewise.
36728         * tests/test-chown.c (main): Likewise.
36729         * tests/test-fchownat.c (main): Likewise.
36730         * tests/test-fdutimensat.c (main): Likewise.
36731         * tests/test-fstatat.c (main): Likewise.
36732         * tests/test-futimens.c (main): Likewise.
36733         * tests/test-lchown.c (main): Likewise.
36734         * tests/test-link.c (main): Likewise.
36735         * tests/test-linkat.c (main): Likewise.
36736         * tests/test-lstat.c (main): Likewise.
36737         * tests/test-mkdir.c (main): Likewise.
36738         * tests/test-mkdirat.c (main): Likewise.
36739         * tests/test-mkfifo.c (main): Likewise.
36740         * tests/test-mkfifoat.c (main): Likewise.
36741         * tests/test-mknod.c (main): Likewise.
36742         * tests/test-readlink.c (main): Likewise.
36743         * tests/test-remove.c (main): Likewise.
36744         * tests/test-rename.c (main): Likewise.
36745         * tests/test-renameat.c (main): Likewise.
36746         * tests/test-rmdir.c (main): Likewise.
36747         * tests/test-symlink.c (main): Likewise.
36748         * tests/test-symlinkat.c (main): Likewise.
36749         * tests/test-unlink.c (main): Likewise.
36750         * tests/test-unlinkat.c (main): Likewise.
36751         * tests/test-utimens.c (main): Likewise.
36752         * tests/test-utimensat.c (main): Likewise.
36753         * modules/areadlink-tests (Depends-on): Add ignore-value.
36754         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36755         * modules/areadlinkat-tests (Depends-on): Likewise.
36756         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36757         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36758         * modules/canonicalize-tests (Depends-on): Likewise.
36759         * modules/chown-tests (Depends-on): Likewise.
36760         * modules/fdutimensat-tests (Depends-on): Likewise.
36761         * modules/futimens-tests (Depends-on): Likewise.
36762         * modules/lchown-tests (Depends-on): Likewise.
36763         * modules/link-tests (Depends-on): Likewise.
36764         * modules/linkat-tests (Depends-on): Likewise.
36765         * modules/lstat-tests (Depends-on): Likewise.
36766         * modules/mkdir-tests (Depends-on): Likewise.
36767         * modules/mkfifo-tests (Depends-on): Likewise.
36768         * modules/mkfifoat-tests (Depends-on): Likewise.
36769         * modules/mknod-tests (Depends-on): Likewise.
36770         * modules/openat-tests (Depends-on): Likewise.
36771         * modules/readlink-tests (Depends-on): Likewise.
36772         * modules/remove-tests (Depends-on): Likewise.
36773         * modules/rename-tests (Depends-on): Likewise.
36774         * modules/renameat-tests (Depends-on): Likewise.
36775         * modules/rmdir-tests (Depends-on): Likewise.
36776         * modules/symlink-tests (Depends-on): Likewise.
36777         * modules/symlinkat-tests (Depends-on): Likewise.
36778         * modules/unlink-tests (Depends-on): Likewise.
36779         * modules/utimens-tests (Depends-on): Likewise.
36780         * modules/utimensat-tests (Depends-on): Likewise.
36781
36782 2010-01-31  Bruno Haible  <bruno@clisp.org>
36783
36784         Perform the same test for many <math.h> functions.
36785         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36786         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36787         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36788         of gl_MATHFUNC.
36789         * modules/acos (configure.ac): Likewise.
36790         * modules/asin (configure.ac): Likewise.
36791         * modules/atan (configure.ac): Likewise.
36792         * modules/atan2 (configure.ac): Likewise.
36793         * modules/cbrt (configure.ac): Likewise.
36794         * modules/copysign (configure.ac): Likewise.
36795         * modules/cos (configure.ac): Likewise.
36796         * modules/cosh (configure.ac): Likewise.
36797         * modules/erf (configure.ac): Likewise.
36798         * modules/erfc (configure.ac): Likewise.
36799         * modules/exp (configure.ac): Likewise.
36800         * modules/fmod (configure.ac): Likewise.
36801         * modules/hypot (configure.ac): Likewise.
36802         * modules/j0 (configure.ac): Likewise.
36803         * modules/j1 (configure.ac): Likewise.
36804         * modules/jn (configure.ac): Likewise.
36805         * modules/lgamma (configure.ac): Likewise.
36806         * modules/log (configure.ac): Likewise.
36807         * modules/log10 (configure.ac): Likewise.
36808         * modules/log1p (configure.ac): Likewise.
36809         * modules/pow (configure.ac): Likewise.
36810         * modules/remainder (configure.ac): Likewise.
36811         * modules/sin (configure.ac): Likewise.
36812         * modules/sinh (configure.ac): Likewise.
36813         * modules/tan (configure.ac): Likewise.
36814         * modules/tanh (configure.ac): Likewise.
36815         * modules/y0 (configure.ac): Likewise.
36816         * modules/y1 (configure.ac): Likewise.
36817         * modules/yn (configure.ac): Likewise.
36818         Suggested by Paolo Bonzini.
36819
36820 2010-01-31  Bruno Haible  <bruno@clisp.org>
36821
36822         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36823
36824 2010-01-31  Bruno Haible  <bruno@clisp.org>
36825
36826         Work around getdelim() bug on FreeBSD 8.0.
36827         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36828         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36829         not work.
36830         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36831         is 1.
36832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36833         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36834         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36835         a non-zero size.
36836         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36837
36838 2010-01-31  Bruno Haible  <bruno@clisp.org>
36839
36840         Work around getline() bug on FreeBSD 8.0.
36841         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36842         and a non-zero size.
36843         * tests/test-getline.c (main): Likewise.
36844         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36845         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36846
36847 2010-01-28  Eric Blake  <ebb9@byu.net>
36848
36849         regex: fix build failure
36850         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36851         platforms.
36852
36853 2010-01-28  Jim Meyering  <meyering@redhat.com>
36854
36855         regex: do not ignore memory allocation failure
36856         * lib/regex_internal.c (create_cd_newstate): Detect
36857         re_node_set_init_copy failure.   Extracted from glibc commit
36858         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36859
36860         regex: sync more white-space changes from libc
36861         * lib/regex_internal.c: White-space only changes.
36862         * lib/regexec.c: Likewise.
36863
36864         regex: add many uses of __attribute_warn_unused_result__
36865         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36866         * lib/regexec.c: Likewise.
36867         Extracted from a messy glibc commit.
36868
36869         regcomp.c: spelling and merge-artifact from glibc
36870         * lib/regcomp.c: Merge remainder of glibc's
36871         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36872
36873         regcomp.c: sync white-space changes from glibc
36874         * lib/regcomp.c: Merge to accommodate white space
36875         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36876
36877         regcomp.c: do not ignore internal return values
36878         * lib/regcomp.c: Do not ignore internal return values.
36879         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36880         but without its white-space changes and spelling fixes.
36881
36882         regex_internal.h: define __attribute_warn_unused_result__
36883         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36884
36885         maint: add a syntax-check rule to check for vulnerable Makefile.in
36886         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36887
36888 2010-01-27  Jim Meyering  <meyering@redhat.com>
36889
36890         ncftpput-ftp: clean up spaces
36891         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36892         Remove trailing blanks.
36893
36894 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36895
36896         * build-aux/git-version-gen: Fix copyright statement.
36897         * build-aux/gnupload: Likewise.
36898         * tests/test-arcfour.c: Likewise.
36899         * tests/test-arctwo.c: Likewise.
36900         * tests/test-count-one-bits.c: Likewise.
36901         * tests/test-crc.c: Likewise.
36902         * tests/test-des.c: Likewise.
36903         * tests/test-gc-arcfour.c: Likewise.
36904         * tests/test-gc-arctwo.c: Likewise.
36905         * tests/test-gc-des.c: Likewise.
36906         * tests/test-gc-hmac-md5.c: Likewise.
36907         * tests/test-gc-hmac-sha1.c: Likewise.
36908         * tests/test-gc-md2.c: Likewise.
36909         * tests/test-gc-md4.c: Likewise.
36910         * tests/test-gc-md5.c: Likewise.
36911         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36912         * tests/test-gc-rijndael.c: Likewise.
36913         * tests/test-gc-sha1.c: Likewise.
36914         * tests/test-gc.c: Likewise.
36915         * tests/test-gethostname.c: Likewise.
36916         * tests/test-gettimeofday.c: Likewise.
36917         * tests/test-hash.c: Likewise.
36918         * tests/test-hmac-md5.c: Likewise.
36919         * tests/test-hmac-sha1.c: Likewise.
36920         * tests/test-md2.c: Likewise.
36921         * tests/test-md4.c: Likewise.
36922         * tests/test-md5.c: Likewise.
36923         * tests/test-memchr.c: Likewise.
36924         * tests/test-memchr2.c: Likewise.
36925         * tests/test-memcmp.c: Likewise.
36926         * tests/test-memmem.c: Likewise.
36927         * tests/test-memrchr.c: Likewise.
36928         * tests/test-rawmemchr.c: Likewise.
36929         * tests/test-read-file.c: Likewise.
36930         * tests/test-rijndael.c: Likewise.
36931         * tests/test-sockets.c: Likewise.
36932         * tests/test-strchrnul.c: Likewise.
36933         * tests/test-strstr.c: Likewise.
36934         * tests/test-strtod.c: Likewise.
36935         * build-aux/ncftpput-ftp: Likewise.
36936
36937 2010-01-26  Eric Blake  <ebb9@byu.net>
36938
36939         ignore-value: update recommended header name
36940         * modules/ignore-value (Include): Only use <> for headers that
36941         exist in glibc.
36942
36943 2010-01-26  Jim Meyering  <meyering@redhat.com>
36944
36945         test-userspec.c: avoid compiler warnings
36946         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36947         and "initialization discards qualifiers..." warnings.
36948         Put the first "uid" in its own scope, and make char* members "const".
36949
36950 2010-01-25  Bruno Haible  <bruno@clisp.org>
36951
36952         gnulib-tool: Make warning diagnostics consistent.
36953         * gnulib-tool (func_warning): New function.
36954         Use it everywhere where gnulib-tool produces output to stderr and it is
36955         not a fatal error.
36956
36957 2010-01-25  Bruno Haible  <bruno@clisp.org>
36958
36959         Fix test dependencies.
36960         * modules/xstrtol-tests (Depends-on): Add inttypes.
36961         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36962
36963 2010-01-25 Pádraig Brady <P@draigBrady.com>
36964
36965         syntax-check: detect incorrect boolean macro values in config.h
36966         * modules/maintainer-makefile (configure.ac): Parameterize the location
36967         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36968         The logic is from Eric Blake and the location indicated by Jim Meyering.
36969         Note the more natural CONFIG_HEADER name is prohibited by automake
36970         for backwards compatibility reasons.
36971         * top/maint.mk (sc_Wundef_boolean): New rule.
36972
36973 2010-01-25  Jim Meyering  <meyering@redhat.com>
36974
36975         bootstrap: detect MacOS 10.6's shasum, too
36976         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36977         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36978
36979 2010-01-23  Jim Meyering  <meyering@redhat.com>
36980
36981         xstrtoll: new module
36982         * modules/xstrtoll: New file.
36983         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36984         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36985         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36986         ./configure fails if you use this module and lack "long long".
36987         * modules/xstrtoll-tests: New module.
36988         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36989         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36990         new init.sh-based test framework.
36991
36992 2010-01-24  Bruno Haible  <bruno@clisp.org>
36993
36994         Tests for module 'yn'.
36995         * modules/yn-tests: New file.
36996         * tests/test-yn.c: New file.
36997
36998         Tests for module 'y1'.
36999         * modules/y1-tests: New file.
37000         * tests/test-y1.c: New file.
37001
37002         Tests for module 'y0'.
37003         * modules/y0-tests: New file.
37004         * tests/test-y0.c: New file.
37005
37006         Tests for module 'tanh'.
37007         * modules/tanh-tests: New file.
37008         * tests/test-tanh.c: New file.
37009
37010         Tests for module 'tan'.
37011         * modules/tan-tests: New file.
37012         * tests/test-tan.c: New file.
37013
37014         Tests for module 'sqrt'.
37015         * modules/sqrt-tests: New file.
37016         * tests/test-sqrt.c: New file.
37017
37018         Tests for module 'sinh'.
37019         * modules/sinh-tests: New file.
37020         * tests/test-sinh.c: New file.
37021
37022         Tests for module 'sin'.
37023         * modules/sin-tests: New file.
37024         * tests/test-sin.c: New file.
37025
37026         Tests for module 'rint'.
37027         * modules/rint-tests: New file.
37028         * tests/test-rint.c: New file.
37029
37030         Tests for module 'remainder'.
37031         * modules/remainder-tests: New file.
37032         * tests/test-remainder.c: New file.
37033
37034         Tests for module 'pow'.
37035         * modules/pow-tests: New file.
37036         * tests/test-pow.c: New file.
37037
37038         Tests for module 'nextafter'.
37039         * modules/nextafter-tests: New file.
37040         * tests/test-nextafter.c: New file.
37041
37042         Tests for module 'modf'.
37043         * modules/modf-tests: New file.
37044         * tests/test-modf.c: New file.
37045
37046         Tests for module 'logb'.
37047         * modules/logb-tests: New file.
37048         * tests/test-logb.c: New file.
37049
37050         Tests for module 'log1p'.
37051         * modules/log1p-tests: New file.
37052         * tests/test-log1p.c: New file.
37053
37054         Tests for module 'log10'.
37055         * modules/log10-tests: New file.
37056         * tests/test-log10.c: New file.
37057
37058         Tests for module 'log'.
37059         * modules/log-tests: New file.
37060         * tests/test-log.c: New file.
37061
37062         Tests for module 'lgamma'.
37063         * modules/lgamma-tests: New file.
37064         * tests/test-lgamma.c: New file.
37065
37066         Tests for module 'ldexp'.
37067         * modules/ldexp-tests: New file.
37068         * tests/test-ldexp.c: New file.
37069
37070         Tests for module 'jn'.
37071         * modules/jn-tests: New file.
37072         * tests/test-jn.c: New file.
37073
37074         Tests for module 'j1'.
37075         * modules/j1-tests: New file.
37076         * tests/test-j1.c: New file.
37077
37078         Tests for module 'j0'.
37079         * modules/j0-tests: New file.
37080         * tests/test-j0.c: New file.
37081
37082         Tests for module 'hypot'.
37083         * modules/hypot-tests: New file.
37084         * tests/test-hypot.c: New file.
37085
37086         Tests for module 'fmod'.
37087         * modules/fmod-tests: New file.
37088         * tests/test-fmod.c: New file.
37089
37090         Tests for module 'fabs'.
37091         * modules/fabs-tests: New file.
37092         * tests/test-fabs.c: New file.
37093
37094         Tests for module 'exp'.
37095         * modules/exp-tests: New file.
37096         * tests/test-exp.c: New file.
37097
37098         Tests for module 'erfc'.
37099         * modules/erfc-tests: New file.
37100         * tests/test-erfc.c: New file.
37101
37102         Tests for module 'erf'.
37103         * modules/erf-tests: New file.
37104         * tests/test-erf.c: New file.
37105
37106         Tests for module 'cosh'.
37107         * modules/cosh-tests: New file.
37108         * tests/test-cosh.c: New file.
37109
37110         Tests for module 'cos'.
37111         * modules/cos-tests: New file.
37112         * tests/test-cos.c: New file.
37113
37114         Tests for module 'copysign'.
37115         * modules/copysign-tests: New file.
37116         * tests/test-copysign.c: New file.
37117
37118         Tests for module 'cbrt'.
37119         * modules/cbrt-tests: New file.
37120         * tests/test-cbrt.c: New file.
37121
37122         Tests for module 'atan2'.
37123         * modules/atan2-tests: New file.
37124         * tests/test-atan2.c: New file.
37125
37126         Tests for module 'atan'.
37127         * modules/atan-tests: New file.
37128         * tests/test-atan.c: New file.
37129
37130         Tests for module 'asin'.
37131         * modules/asin-tests: New file.
37132         * tests/test-asin.c: New file.
37133
37134         Tests for module 'acos'.
37135         * modules/acos-tests: New file.
37136         * tests/test-acos.c: New file.
37137
37138 2010-01-24  Bruno Haible  <bruno@clisp.org>
37139
37140         Fix tests for common <math.h> functions.
37141         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37142         code snippet that references the function pointer, rather than merely
37143         calling the function. Substitute the FUNC_LIBM variable.
37144         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37145         * modules/acos (configure.ac): Likewise.
37146         * modules/asin (configure.ac): Likewise.
37147         * modules/atan (configure.ac): Likewise.
37148         * modules/atan2 (configure.ac): Likewise.
37149         * modules/cbrt (configure.ac): Likewise.
37150         * modules/copysign (configure.ac): Likewise.
37151         * modules/cos (configure.ac): Likewise.
37152         * modules/cosh (configure.ac): Likewise.
37153         * modules/erf (configure.ac): Likewise.
37154         * modules/erfc (configure.ac): Likewise.
37155         * modules/exp (configure.ac): Likewise.
37156         * modules/fabs (configure.ac): Likewise.
37157         * modules/fmod (configure.ac): Likewise.
37158         * modules/hypot (configure.ac): Likewise.
37159         * modules/j0 (configure.ac): Likewise.
37160         * modules/j1 (configure.ac): Likewise.
37161         * modules/jn (configure.ac): Likewise.
37162         * modules/ldexp (configure.ac): Likewise.
37163         * modules/lgamma (configure.ac): Likewise.
37164         * modules/log (configure.ac): Likewise.
37165         * modules/log10 (configure.ac): Likewise.
37166         * modules/log1p (configure.ac): Likewise.
37167         * modules/logb (configure.ac): Likewise.
37168         * modules/modf (configure.ac): Likewise.
37169         * modules/nextafter (configure.ac): Likewise.
37170         * modules/pow (configure.ac): Likewise.
37171         * modules/remainder (configure.ac): Likewise.
37172         * modules/rint (configure.ac): Likewise.
37173         * modules/sin (configure.ac): Likewise.
37174         * modules/sinh (configure.ac): Likewise.
37175         * modules/tan (configure.ac): Likewise.
37176         * modules/tanh (configure.ac): Likewise.
37177         * modules/y0 (configure.ac): Likewise.
37178         * modules/y1 (configure.ac): Likewise.
37179         * modules/yn (configure.ac): Likewise.
37180
37181 2010-01-24  Bruno Haible  <bruno@clisp.org>
37182
37183         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37184         * tests/test-acosl.c (x): New variable.
37185         (main): Store argument in x and fetch it from x.
37186         * tests/test-asinl.c (x): New variable.
37187         (main): Store argument in x and fetch it from x.
37188         * tests/test-atanl.c (x): New variable.
37189         (main): Store argument in x and fetch it from x.
37190         * tests/test-cosl.c (x): New variable.
37191         (main): Store argument in x and fetch it from x.
37192         * tests/test-expl.c (x): New variable.
37193         (main): Store argument in x and fetch it from x.
37194         * tests/test-logl.c (x): New variable.
37195         (main): Store argument in x and fetch it from x.
37196         * tests/test-sinl.c (x): New variable.
37197         (main): Store argument in x and fetch it from x.
37198         * tests/test-sqrtl.c (x): New variable.
37199         (main): Store argument in x and fetch it from x.
37200         * tests/test-tanl.c (x): New variable.
37201         (main): Store argument in x and fetch it from x.
37202
37203 2010-01-24  Bruno Haible  <bruno@clisp.org>
37204
37205         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37206         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37207         assignments to the initial TESTS_ENVIRONMENT.
37208         * doc/gnulib.texi (Unit test modules): Document it.
37209         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37210         TESTS_ENVIRONMENT.
37211         * modules/btowc-tests (Makefile.am): Likewise.
37212         * modules/c-stack-tests (Makefile.am): Likewise.
37213         * modules/c-strcase-tests (Makefile.am): Likewise.
37214         * modules/copy-file-tests (Makefile.am): Likewise.
37215         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37216         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37217         * modules/mbrtowc-tests (Makefile.am): Likewise.
37218         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37219         * modules/mbscasestr-tests (Makefile.am): Likewise.
37220         * modules/mbschr-tests (Makefile.am): Likewise.
37221         * modules/mbscspn-tests (Makefile.am): Likewise.
37222         * modules/mbsinit-tests (Makefile.am): Likewise.
37223         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37224         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37225         * modules/mbspbrk-tests (Makefile.am): Likewise.
37226         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37227         * modules/mbsrchr-tests (Makefile.am): Likewise.
37228         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37229         * modules/mbsspn-tests (Makefile.am): Likewise.
37230         * modules/mbsstr-tests (Makefile.am): Likewise.
37231         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37232         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37233         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37234         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37235         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37236         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37237         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37238         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37239         * modules/wcrtomb-tests (Makefile.am): Likewise.
37240         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37241         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37242         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37243         assignments from TESTS_ENVIRONMENT.
37244         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37245         augmentation.
37246         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37247         * modules/atexit-tests (Makefile.am): Likewise.
37248         * modules/binary-io-tests (Makefile.am): Likewise.
37249         * modules/closein-tests (Makefile.am): Likewise.
37250         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37251         * modules/exclude-tests (Makefile.am): Likewise.
37252         * modules/fflush-tests (Makefile.am): Likewise.
37253         * modules/fpending-tests (Makefile.am): Likewise.
37254         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37255         * modules/freadahead-tests (Makefile.am): Likewise.
37256         * modules/freadptr-tests (Makefile.am): Likewise.
37257         * modules/freadseek-tests (Makefile.am): Likewise.
37258         * modules/fseek-tests (Makefile.am): Likewise.
37259         * modules/fseeko-tests (Makefile.am): Likewise.
37260         * modules/ftell-tests (Makefile.am): Likewise.
37261         * modules/ftello-tests (Makefile.am): Likewise.
37262         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37263         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37264         * modules/lseek-tests (Makefile.am): Likewise.
37265         * modules/parse-duration-tests (Makefile.am): Likewise.
37266         * modules/perror-tests (Makefile.am): Likewise.
37267         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37268         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37269         * modules/pipe-tests (Makefile.am): Likewise.
37270         * modules/pread-tests (Makefile.am): Likewise.
37271         * modules/printf-posix-tests (Makefile.am): Likewise.
37272         * modules/select-tests (Makefile.am): Likewise.
37273         * modules/sigpipe-tests (Makefile.am): Likewise.
37274         * modules/tsearch-tests (Makefile.am): Likewise.
37275         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37276         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37277         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37278         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37279         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37280         * modules/version-etc-tests (Makefile.am): Likewise.
37281         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37282         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37283         * modules/xalloc-die-tests (Makefile.am): Likewise.
37284         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37285         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37286         * modules/xstrtol-tests (Makefile.am): Likewise.
37287         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37288         * modules/yesno-tests (Makefile.am): Likewise.
37289         Suggested by Jim Meyering.
37290
37291 2010-01-24  Bruno Haible  <bruno@clisp.org>
37292
37293         More documentation.
37294         * doc/gnulib.texi (Writing modules): New chapter.
37295         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37296         the new chapter.
37297
37298 2010-01-24  Jim Meyering  <meyering@redhat.com>
37299
37300         maint.mk: do not prepend "./" after filtering
37301         * top/maint.mk (_prepend_srcdir_prefix): New variable
37302         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37303         "./" when $(srcdir) is ".".
37304
37305         define STREQ(a,b) consistently, removing useless parentheses
37306         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37307         since the only risk is that "a" or "b" contains an unparenthesized
37308         comma, but if either did that, STREQ would have 3 or more arguments.
37309         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37310         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37311         * lib/hash-triple.c (STREQ): Likewise.
37312         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37313         * lib/getugroups.c (STREQ): Likewise.
37314
37315 2010-01-23  Jim Meyering  <meyering@redhat.com>
37316
37317         maint.mk: fix syntax-check in a non-srcdir build directory
37318         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37319         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37320
37321 2010-01-22  Jim Meyering  <meyering@redhat.com>
37322
37323         userspec: add unit tests
37324         * tests/test-userspec.c: New file.
37325         * modules/userspec-tests: Likewise.
37326
37327 2010-01-21  Jim Meyering  <meyering@redhat.com>
37328
37329         maint.mk: handle source file names containing "." robustly
37330         * top/maint.mk (_dot_escaped_srcdir): Define.
37331         (VC_LIST): Use it in LHS of sed substitution.
37332
37333 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37334
37335         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37336         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37337         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37338         from a non-srcdir build.
37339
37340 2010-01-20  Eric Blake  <ebb9@byu.net>
37341
37342         warn-on-use: use instead of link-warning
37343         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37344         * modules/unistd (Depends-on, Makefile.am): Likewise.
37345         * modules/arpa_inet (Depends-on): Replace link-warning with
37346         warn-on-use.
37347         (Makefile.am): Update rules accordingly.
37348         * modules/ctype (Depends-on, Makefile.am): Likewise.
37349         * modules/dirent (Depends-on, Makefile.am): Likewise.
37350         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37351         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37352         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37353         * modules/locale (Depends-on, Makefile.am): Likewise.
37354         * modules/math (Depends-on, Makefile.am): Likewise.
37355         * modules/search (Depends-on, Makefile.am): Likewise.
37356         * modules/signal (Depends-on, Makefile.am): Likewise.
37357         * modules/spawn (Depends-on, Makefile.am): Likewise.
37358         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37359         * modules/string (Depends-on, Makefile.am): Likewise.
37360         * modules/strings (Depends-on, Makefile.am): Likewise.
37361         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37362         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37363         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37364         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37365         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37366         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37367         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37368         * modules/wchar (Depends-on, Makefile.am): Likewise.
37369         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37370         should be poisoned.
37371         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37372         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37373         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37374         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37375         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37376         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37377         * m4/math_h.m4 (gl_MATH_H): Likewise.
37378         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37379         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37380         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37381         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37382         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37383         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37384         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37385         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37386         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37388         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37389         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37390         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37391         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37392         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37393         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37394         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37395         GL_LINK_WARNING.
37396         * lib/ctype.in.h: Likewise.
37397         * lib/dirent.in.h: Likewise.
37398         * lib/fcntl.in.h: Likewise.
37399         * lib/inttypes.in.h: Likewise.
37400         * lib/langinfo.in.h: Likewise.
37401         * lib/locale.in.h: Likewise.
37402         * lib/math.in.h: Likewise.
37403         * lib/search.in.h: Likewise.
37404         * lib/signal.in.h: Likewise.
37405         * lib/spawn.in.h: Likewise.
37406         * lib/stdio.in.h: Likewise.
37407         * lib/stdlib.in.h: Likewise.
37408         * lib/string.in.h: Likewise.
37409         * lib/strings.in.h: Likewise.
37410         * lib/sys_file.in.h: Likewise.
37411         * lib/sys_ioctl.in.h: Likewise.
37412         * lib/sys_select.in.h: Likewise.
37413         * lib/sys_socket.in.h: Likewise.
37414         * lib/sys_stat.in.h: Likewise.
37415         * lib/sys_times.in.h: Likewise.
37416         * lib/sys_utsname.in.h: Likewise.
37417         * lib/unistd.in.h: Likewise.
37418         * lib/wchar.in.h: Likewise.
37419
37420 2010-01-20  Bruno Haible  <bruno@clisp.org>
37421
37422         Avoid duplicate -lm.
37423         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37424         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37425         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37426         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37427         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37428         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37429         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37430         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37431         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37432         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37433         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37434         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37435         Reported by Paolo Bonzini.
37436
37437 2010-01-19  Bruno Haible  <bruno@clisp.org>
37438
37439         langinfo, nl_langinfo: Relicense under LGPLv2+.
37440         * modules/langinfo (License): Change to LGPLv2+.
37441         * modules/nl_langinfo (License): Likewise.
37442         Patch by David Lutterkort <lutter@redhat.com>.
37443
37444 2010-01-19  Bruno Haible  <bruno@clisp.org>
37445
37446         Avoid compilation error with cc on OSF/1 5.1.
37447         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37448         statement, not before.
37449         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37450
37451 2010-01-18  Bruno Haible  <bruno@clisp.org>
37452
37453         Avoid a link error due to the __printf__ symbol.
37454         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37455         and 2.6.x.
37456         (__format__, __printf__): Remove definitions.
37457         * lib/argp-fmtstream.h: Likewise.
37458         * lib/argp.h: Likewise.
37459         * lib/error.h: Likewise.
37460         * lib/vasnprintf.h: Likewise.
37461         * lib/xprintf.h: Likewise.
37462         * lib/xvasprintf.h: Likewise.
37463         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37464
37465 2010-01-18  Bruno Haible  <bruno@clisp.org>
37466
37467         Tests for module 'tanl'.
37468         * modules/tanl-tests: New file.
37469         * tests/test-tanl.c: New file.
37470
37471         Tests for module 'sqrtl'.
37472         * modules/sqrtl-tests: New file.
37473         * tests/test-sqrtl.c: New file.
37474
37475         Tests for module 'sinl'.
37476         * modules/sinl-tests: New file.
37477         * tests/test-sinl.c: New file.
37478
37479         Tests for module 'logl'.
37480         * modules/logl-tests: New file.
37481         * tests/test-logl.c: New file.
37482
37483         Tests for module 'expl'.
37484         * modules/expl-tests: New file.
37485         * tests/test-expl.c: New file.
37486
37487         Tests for module 'cosl'.
37488         * modules/cosl-tests: New file.
37489         * tests/test-cosl.c: New file.
37490
37491         Tests for module 'atanl'.
37492         * modules/atanl-tests: New file.
37493         * tests/test-atanl.c: New file.
37494
37495         Tests for module 'asinl'.
37496         * modules/asinl-tests: New file.
37497         * tests/test-asinl.c: New file.
37498
37499         Tests for module 'acosl'.
37500         * modules/acosl-tests: New file.
37501         * tests/test-acosl.c: New file.
37502
37503         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37504         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37505         tanl): Use the standard gnulib idiom.
37506         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37507         * lib/sinl.c: Likewise.
37508         * lib/tanl.c: Don't include trigl.c.
37509         (kernel_tanl): Make static.
37510         * lib/sincosl.c: Include trigl.h first.
37511         * lib/trigl.c: Likewise.
37512         * m4/acosl.m4: New file.
37513         * m4/asinl.m4: New file.
37514         * m4/atanl.m4: New file.
37515         * m4/cosl.m4: New file.
37516         * m4/expl.m4: New file.
37517         * m4/logl.m4: New file.
37518         * m4/sinl.m4: New file.
37519         * m4/sqrtl.m4: New file.
37520         * m4/tanl.m4: New file.
37521         * m4/mathl.m4: Remove file.
37522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37523         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37524         Don't initialize GNULIB_MATHL.
37525         * modules/acosl: New file.
37526         * modules/asinl: New file.
37527         * modules/atanl: New file.
37528         * modules/cosl: New file.
37529         * modules/expl: New file.
37530         * modules/logl: New file.
37531         * modules/sinl: New file.
37532         * modules/sqrtl: New file.
37533         * modules/tanl: New file.
37534         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37535         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37536         substitute GNULIB_MATHL.
37537         * modules/mathl: Rewritten.
37538         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37539         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37540         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37541         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37542         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37543         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37544         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37545         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37546         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37547
37548 2010-01-18  Bruno Haible  <bruno@clisp.org>
37549
37550         sqrt: Make gl_FUNC_SQRT requirable.
37551         * m4/sqrt.m4: New file.
37552         * modules/sqrt (Files): Add it.
37553         (configure.ac): Invoke gl_FUNC_SQRT.
37554
37555 2010-01-18  Bruno Haible  <bruno@clisp.org>
37556
37557         New modules for common <math.h> functions.
37558         * m4/mathfunc.m4: New file.
37559         * modules/acos: New file.
37560         * modules/asin: New file.
37561         * modules/atan: New file.
37562         * modules/atan2: New file.
37563         * modules/cbrt: New file.
37564         * modules/copysign: New file.
37565         * modules/cos: New file.
37566         * modules/cosh: New file.
37567         * modules/erf: New file.
37568         * modules/erfc: New file.
37569         * modules/exp: New file.
37570         * modules/fabs: New file.
37571         * modules/fmod: New file.
37572         * modules/hypot: New file.
37573         * modules/j0: New file.
37574         * modules/j1: New file.
37575         * modules/jn: New file.
37576         * modules/ldexp: New file.
37577         * modules/lgamma: New file.
37578         * modules/log: New file.
37579         * modules/log10: New file.
37580         * modules/log1p: New file.
37581         * modules/logb: New file.
37582         * modules/modf: New file.
37583         * modules/nextafter: New file.
37584         * modules/pow: New file.
37585         * modules/remainder: New file.
37586         * modules/rint: New file.
37587         * modules/sin: New file.
37588         * modules/sinh: New file.
37589         * modules/sqrt: New file.
37590         * modules/tan: New file.
37591         * modules/tanh: New file.
37592         * modules/y0: New file.
37593         * modules/y1: New file.
37594         * modules/yn: New file.
37595         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37596         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37597         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37598         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37599         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37600         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37601         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37602         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37603         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37604         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37605         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37606         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37607         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37608         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37609         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37610         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37611         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37612         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37613         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37614         * doc/posix-functions/log.texi: Mention the 'log' module.
37615         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37616         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37617         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37618         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37619         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37620         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37621         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37622         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37623         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37624         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37625         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37626         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37627         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37628         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37629         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37630         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37631
37632 2010-01-18  Jim Meyering  <meyering@redhat.com>
37633
37634         ignore-value: relax license to LGPLv2+
37635         * modules/ignore-value (License): Relax to LGPLv2+.
37636
37637         getdate: don't leak when TZ contains two or more '"'s
37638         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37639         double quote in TZ after the first one.
37640
37641         readtokens: do not leak internal token_lengths buffer
37642         * lib/readtokens.c (readtokens): Free the local, lengths,
37643         when the supplied "token_lengths" parameter is NULL.
37644
37645 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37646
37647         Fix a couple of missing LIBTHREAD link failures on AIX.
37648         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37649         $(LIBTHREAD).
37650         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37651
37652         Link test-poll against INET_PTON_LIB.
37653         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37654         for inet_pton on Solaris 10.
37655
37656 2010-01-17  Bruno Haible  <bruno@clisp.org>
37657
37658         unistdio/*-sprintf: Fix typo in module description.
37659         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37660         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37661         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37662         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37663         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37664         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37665         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37666         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37667
37668 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37669
37670         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37671         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37672         variables in shell case patterns, for AIX and HP-UX ksh.
37673
37674         Split large sed scripts, for HP-UX sed.
37675         * modules/stdio: Split sed scripts around 50 sed commands,
37676         to avoid HP-UX limit of 99 commands, in the near future.
37677         * modules/string: Likewise.
37678         * modules/unistd: Likewise.
37679
37680         gnulib-tool: avoid writing in the current directory.
37681         * gnulib-tool (func_emit_lib_Makefile_am)
37682         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37683         not in the current directory, so concurrent gnulib-tool
37684         instances do not interfere.
37685
37686 2010-01-16  Jim Meyering  <meyering@redhat.com>
37687
37688         doc: update users.txt
37689         * users.txt: Add grep.
37690         (diffutils, gzip): Update URLs.
37691
37692 2010-01-12  Bruno Haible  <bruno@clisp.org>
37693
37694         posix_spawn: Avoid test failure on Cygwin.
37695         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37696         characters.
37697         Reported by Simon Josefsson.
37698
37699 2010-01-12  Bruno Haible  <bruno@clisp.org>
37700
37701         * tests/test-cond.c (main): When skipping the test, show the reason.
37702
37703 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37704
37705         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37706
37707 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37708
37709         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37710         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37711
37712 2010-01-12  Eric Blake  <ebb9@byu.net>
37713
37714         build: guarantee AS_VAR_IF
37715         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37716         (gl_AS_VAR_IF): Move...
37717         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37718         Reported by Simon Josefsson.
37719
37720 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37721
37722         * lib/stdio.in.h: Fix typo.
37723
37724 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37725
37726         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37727         libgpg-error.
37728
37729 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37730
37731         * tests/test-xalloc-die.sh: Use $EXEEXT.
37732
37733 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37734             Bruno Haible  <bruno@clisp.org>
37735
37736         getlogin, getlogin_r: Avoid test failure.
37737         * tests/test-getlogin.c: Include <stdio.h>.
37738         (main): Skip the test when the function fails because stdin is not a
37739         tty.
37740         * tests/test-getlogin_r.c: Include <stdio.h>.
37741         (main): Skip the test when the function fails because stdin is not a
37742         tty.
37743
37744 2010-01-11  Eric Blake  <ebb9@byu.net>
37745
37746         tests: avoid more large file warnings
37747         * tests/test-fflush.c: Avoid warning about ftell use.
37748         * tests/test-fseek.c: Avoid warning about fseek use.
37749
37750 2010-01-10  Bruno Haible  <bruno@clisp.org>
37751
37752         nproc: Work better on Linux when /proc and /sys are not mounted.
37753         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37754         as lower bound when, on glibc/Linux systems,
37755         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37756         Suggested by Pádraig Brady <P@draigbrady.com>.
37757         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37758
37759         nproc: Refactor.
37760         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37761         extracted from num_processors.
37762         (num_processors): Call it.
37763
37764 2010-01-11  Jim Meyering  <meyering@redhat.com>
37765
37766         utimecmp: avoid new warning from upcoming gcc-4.5.0
37767         * lib/utimecmp.c (BILLION): Define using #define rather than an
37768         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37769
37770 2010-01-11  Eric Blake  <ebb9@byu.net>
37771
37772         math: add portability warnings for classification macros
37773         * modules/math (Depends-on): Add warn-on-use.
37774         (Makefile.am): Provide new substitutions.
37775         * m4/math_h.m4 (gl_MATH_H): Require inline.
37776         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37777         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37778         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37779         implement warnings.
37780
37781         unistd: warn on use of environ without module
37782         * modules/unistd (Depends-on): Add warn-on-use.
37783         (Makefile.am): Provide new substitutions.
37784         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37785         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37786
37787         stdio: warn on suspicious uses
37788         * modules/stdio (Depends-on): Add warn-on-use.
37789         (Makefile.am): Provide new substitutions.
37790         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37791         fseeko.
37792         * lib/stdio.in.h (gets): Always warn on use.
37793         (fseek, ftell): Adjust when warnings are issued, and honor
37794         _GL_NO_LARGE_FILES as a way to silence the warning.
37795         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37796         any warning about large file offsets.
37797         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37798         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37799         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37800         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37801         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37802         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37803         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37804         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37805
37806         warn-on-use: new module
37807         * modules/warn-on-use: New file.
37808         * build-aux/warn-on-use.h: Likewise.
37809         * m4/warn-on-use.m4: Likewise.
37810         * MODULES.html.sh (Support for building): Mention it.
37811
37812 2010-01-10  Bruno Haible  <bruno@clisp.org>
37813
37814         Tests for module 'unistr/u32-strdup'.
37815         * modules/unistr/u32-strdup-tests: New file.
37816         * tests/unistr/test-u32-strdup.c: New file.
37817
37818         Tests for module 'unistr/u16-strdup'.
37819         * modules/unistr/u16-strdup-tests: New file.
37820         * tests/unistr/test-u16-strdup.c: New file.
37821
37822         Tests for module 'unistr/u8-strdup'.
37823         * modules/unistr/u8-strdup-tests: New file.
37824         * tests/unistr/test-u8-strdup.c: New file.
37825         * tests/unistr/test-strdup.h: New file.
37826
37827         Tests for module 'unistr/u32-strncmp'.
37828         * modules/unistr/u32-strncmp-tests: New file.
37829         * tests/unistr/test-u32-strncmp.c: New file.
37830
37831         Tests for module 'unistr/u16-strncmp'.
37832         * modules/unistr/u16-strncmp-tests: New file.
37833         * tests/unistr/test-u16-strncmp.c: New file.
37834
37835         Tests for module 'unistr/u8-strncmp'.
37836         * modules/unistr/u8-strncmp-tests: New file.
37837         * tests/unistr/test-u8-strncmp.c: New file.
37838         * tests/unistr/test-strncmp.h: New file.
37839
37840         Tests for module 'unistr/u32-strcoll'.
37841         * modules/unistr/u32-strcoll-tests: New file.
37842         * tests/unistr/test-u32-strcoll.c: New file.
37843
37844         Tests for module 'unistr/u16-strcoll'.
37845         * modules/unistr/u16-strcoll-tests: New file.
37846         * tests/unistr/test-u16-strcoll.c: New file.
37847
37848         Tests for module 'unistr/u8-strcoll'.
37849         * modules/unistr/u8-strcoll-tests: New file.
37850         * tests/unistr/test-u8-strcoll.c: New file.
37851
37852         Tests for module 'unistr/u32-strcmp'.
37853         * modules/unistr/u32-strcmp-tests: New file.
37854         * tests/unistr/test-u32-strcmp.c: New file.
37855         * tests/unistr/test-u32-strcmp.h: New file.
37856
37857         Tests for module 'unistr/u16-strcmp'.
37858         * modules/unistr/u16-strcmp-tests: New file.
37859         * tests/unistr/test-u16-strcmp.c: New file.
37860         * tests/unistr/test-u16-strcmp.h: New file.
37861
37862         Tests for module 'unistr/u8-strcmp'.
37863         * modules/unistr/u8-strcmp-tests: New file.
37864         * tests/unistr/test-u8-strcmp.c: New file.
37865         * tests/unistr/test-u8-strcmp.h: New file.
37866         * tests/unistr/test-strcmp.h: New file.
37867
37868         Tests for module 'unistr/u32-strncat'.
37869         * modules/unistr/u32-strncat-tests: New file.
37870         * tests/unistr/test-u32-strncat.c: New file.
37871
37872         Tests for module 'unistr/u16-strncat'.
37873         * modules/unistr/u16-strncat-tests: New file.
37874         * tests/unistr/test-u16-strncat.c: New file.
37875
37876         Tests for module 'unistr/u8-strncat'.
37877         * modules/unistr/u8-strncat-tests: New file.
37878         * tests/unistr/test-u8-strncat.c: New file.
37879         * tests/unistr/test-strncat.h: New file.
37880
37881         Tests for module 'unistr/u32-strcat'.
37882         * modules/unistr/u32-strcat-tests: New file.
37883         * tests/unistr/test-u32-strcat.c: New file.
37884
37885         Tests for module 'unistr/u16-strcat'.
37886         * modules/unistr/u16-strcat-tests: New file.
37887         * tests/unistr/test-u16-strcat.c: New file.
37888
37889         Tests for module 'unistr/u8-strcat'.
37890         * modules/unistr/u8-strcat-tests: New file.
37891         * tests/unistr/test-u8-strcat.c: New file.
37892         * tests/unistr/test-strcat.h: New file.
37893
37894         Tests for module 'unistr/u32-stpncpy'.
37895         * modules/unistr/u32-stpncpy-tests: New file.
37896         * tests/unistr/test-u32-stpncpy.c: New file.
37897
37898         Tests for module 'unistr/u16-stpncpy'.
37899         * modules/unistr/u16-stpncpy-tests: New file.
37900         * tests/unistr/test-u16-stpncpy.c: New file.
37901
37902         Tests for module 'unistr/u8-stpncpy'.
37903         * modules/unistr/u8-stpncpy-tests: New file.
37904         * tests/unistr/test-u8-stpncpy.c: New file.
37905         * tests/unistr/test-stpncpy.h: New file.
37906
37907         Tests for module 'unistr/u32-strncpy'.
37908         * modules/unistr/u32-strncpy-tests: New file.
37909         * tests/unistr/test-u32-strncpy.c: New file.
37910
37911         Tests for module 'unistr/u16-strncpy'.
37912         * modules/unistr/u16-strncpy-tests: New file.
37913         * tests/unistr/test-u16-strncpy.c: New file.
37914
37915         Tests for module 'unistr/u8-strncpy'.
37916         * modules/unistr/u8-strncpy-tests: New file.
37917         * tests/unistr/test-u8-strncpy.c: New file.
37918         * tests/unistr/test-strncpy.h: New file.
37919
37920         Tests for module 'unistr/u32-stpcpy'.
37921         * modules/unistr/u32-stpcpy-tests: New file.
37922         * tests/unistr/test-u32-stpcpy.c: New file.
37923
37924         Tests for module 'unistr/u16-stpcpy'.
37925         * modules/unistr/u16-stpcpy-tests: New file.
37926         * tests/unistr/test-u16-stpcpy.c: New file.
37927
37928         Tests for module 'unistr/u8-stpcpy'.
37929         * modules/unistr/u8-stpcpy-tests: New file.
37930         * tests/unistr/test-u8-stpcpy.c: New file.
37931         * tests/unistr/test-stpcpy.h: New file.
37932
37933         Tests for module 'unistr/u32-strcpy'.
37934         * modules/unistr/u32-strcpy-tests: New file.
37935         * tests/unistr/test-u32-strcpy.c: New file.
37936
37937         Tests for module 'unistr/u16-strcpy'.
37938         * modules/unistr/u16-strcpy-tests: New file.
37939         * tests/unistr/test-u16-strcpy.c: New file.
37940
37941         Tests for module 'unistr/u8-strcpy'.
37942         * modules/unistr/u8-strcpy-tests: New file.
37943         * tests/unistr/test-u8-strcpy.c: New file.
37944         * tests/unistr/test-strcpy.h: New file.
37945
37946         Tests for module 'unistr/u32-strnlen'.
37947         * modules/unistr/u32-strnlen-tests: New file.
37948         * tests/unistr/test-u32-strnlen.c: New file.
37949
37950         Tests for module 'unistr/u16-strnlen'.
37951         * modules/unistr/u16-strnlen-tests: New file.
37952         * tests/unistr/test-u16-strnlen.c: New file.
37953
37954         Tests for module 'unistr/u8-strnlen'.
37955         * modules/unistr/u8-strnlen-tests: New file.
37956         * tests/unistr/test-u8-strnlen.c: New file.
37957         * tests/unistr/test-strnlen.h: New file.
37958
37959         Tests for module 'unistr/u32-strlen'.
37960         * modules/unistr/u32-strlen-tests: New file.
37961         * tests/unistr/test-u32-strlen.c: New file.
37962
37963         Tests for module 'unistr/u16-strlen'.
37964         * modules/unistr/u16-strlen-tests: New file.
37965         * tests/unistr/test-u16-strlen.c: New file.
37966
37967         Tests for module 'unistr/u8-strlen'.
37968         * modules/unistr/u8-strlen-tests: New file.
37969         * tests/unistr/test-u8-strlen.c: New file.
37970
37971         Tests for module 'unistr/u32-prev'.
37972         * modules/unistr/u32-prev-tests: New file.
37973         * tests/unistr/test-u32-prev.c: New file.
37974
37975         Tests for module 'unistr/u16-prev'.
37976         * modules/unistr/u16-prev-tests: New file.
37977         * tests/unistr/test-u16-prev.c: New file.
37978
37979         Tests for module 'unistr/u8-prev'.
37980         * modules/unistr/u8-prev-tests: New file.
37981         * tests/unistr/test-u8-prev.c: New file.
37982
37983         Tests for module 'unistr/u32-next'.
37984         * modules/unistr/u32-next-tests: New file.
37985         * tests/unistr/test-u32-next.c: New file.
37986
37987         Tests for module 'unistr/u16-next'.
37988         * modules/unistr/u16-next-tests: New file.
37989         * tests/unistr/test-u16-next.c: New file.
37990
37991         Tests for module 'unistr/u8-next'.
37992         * modules/unistr/u8-next-tests: New file.
37993         * tests/unistr/test-u8-next.c: New file.
37994
37995         Tests for module 'unistr/u32-strmbtouc'.
37996         * modules/unistr/u32-strmbtouc-tests: New file.
37997         * tests/unistr/test-u32-strmbtouc.c: New file.
37998
37999         Tests for module 'unistr/u16-strmbtouc'.
38000         * modules/unistr/u16-strmbtouc-tests: New file.
38001         * tests/unistr/test-u16-strmbtouc.c: New file.
38002
38003         Tests for module 'unistr/u8-strmbtouc'.
38004         * modules/unistr/u8-strmbtouc-tests: New file.
38005         * tests/unistr/test-u8-strmbtouc.c: New file.
38006
38007         Tests for module 'unistr/u32-strmblen'.
38008         * modules/unistr/u32-strmblen-tests: New file.
38009         * tests/unistr/test-u32-strmblen.c: New file.
38010
38011         Tests for module 'unistr/u16-strmblen'.
38012         * modules/unistr/u16-strmblen-tests: New file.
38013         * tests/unistr/test-u16-strmblen.c: New file.
38014
38015         Tests for module 'unistr/u8-strmblen'.
38016         * modules/unistr/u8-strmblen-tests: New file.
38017         * tests/unistr/test-u8-strmblen.c: New file.
38018
38019         Tests for module 'unistr/u32-cpy-alloc'.
38020         * modules/unistr/u32-cpy-alloc-tests: New file.
38021         * tests/unistr/test-u32-cpy-alloc.c: New file.
38022
38023         Tests for module 'unistr/u16-cpy-alloc'.
38024         * modules/unistr/u16-cpy-alloc-tests: New file.
38025         * tests/unistr/test-u16-cpy-alloc.c: New file.
38026
38027         Tests for module 'unistr/u8-cpy-alloc'.
38028         * modules/unistr/u8-cpy-alloc-tests: New file.
38029         * tests/unistr/test-u8-cpy-alloc.c: New file.
38030         * tests/unistr/test-cpy-alloc.h: New file.
38031
38032         Tests for module 'unistr/u32-mbsnlen'.
38033         * modules/unistr/u32-mbsnlen-tests: New file.
38034         * tests/unistr/test-u32-mbsnlen.c: New file.
38035
38036         Tests for module 'unistr/u16-mbsnlen'.
38037         * modules/unistr/u16-mbsnlen-tests: New file.
38038         * tests/unistr/test-u16-mbsnlen.c: New file.
38039
38040         Tests for module 'unistr/u8-mbsnlen'.
38041         * modules/unistr/u8-mbsnlen-tests: New file.
38042         * tests/unistr/test-u8-mbsnlen.c: New file.
38043
38044         Tests for module 'unistr/u32-chr'.
38045         * modules/unistr/u32-chr-tests: New file.
38046         * tests/unistr/test-u32-chr.c: New file.
38047
38048         Tests for module 'unistr/u16-chr'.
38049         * modules/unistr/u16-chr-tests: New file.
38050         * tests/unistr/test-u16-chr.c: New file.
38051
38052         Tests for module 'unistr/u8-chr'.
38053         * modules/unistr/u8-chr-tests: New file.
38054         * tests/unistr/test-u8-chr.c: New file.
38055         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38056
38057         Tests for module 'unistr/u32-cmp2'.
38058         * modules/unistr/u32-cmp2-tests: New file.
38059         * tests/unistr/test-u32-cmp2.c: New file.
38060
38061         Tests for module 'unistr/u16-cmp2'.
38062         * modules/unistr/u16-cmp2-tests: New file.
38063         * tests/unistr/test-u16-cmp2.c: New file.
38064
38065         Tests for module 'unistr/u8-cmp2'.
38066         * modules/unistr/u8-cmp2-tests: New file.
38067         * tests/unistr/test-u8-cmp2.c: New file.
38068         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38069
38070         Tests for module 'unistr/u32-cmp'.
38071         * modules/unistr/u32-cmp-tests: New file.
38072         * tests/unistr/test-u32-cmp.c: New file.
38073
38074         Tests for module 'unistr/u16-cmp'.
38075         * modules/unistr/u16-cmp-tests: New file.
38076         * tests/unistr/test-u16-cmp.c: New file.
38077
38078         Tests for module 'unistr/u8-cmp'.
38079         * modules/unistr/u8-cmp-tests: New file.
38080         * tests/unistr/test-u8-cmp.c: New file.
38081         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38082
38083         Tests for module 'unistr/u32-set'.
38084         * modules/unistr/u32-set-tests: New file.
38085         * tests/unistr/test-u32-set.c: New file.
38086
38087         Tests for module 'unistr/u16-set'.
38088         * modules/unistr/u16-set-tests: New file.
38089         * tests/unistr/test-u16-set.c: New file.
38090
38091         Tests for module 'unistr/u8-set'.
38092         * modules/unistr/u8-set-tests: New file.
38093         * tests/unistr/test-u8-set.c: New file.
38094         * tests/unistr/test-set.h: New file.
38095
38096         Tests for module 'unistr/u32-move'.
38097         * modules/unistr/u32-move-tests: New file.
38098         * tests/unistr/test-u32-move.c: New file.
38099
38100         Tests for module 'unistr/u16-move'.
38101         * modules/unistr/u16-move-tests: New file.
38102         * tests/unistr/test-u16-move.c: New file.
38103
38104         Tests for module 'unistr/u8-move'.
38105         * modules/unistr/u8-move-tests: New file.
38106         * tests/unistr/test-u8-move.c: New file.
38107         * tests/unistr/test-move.h: New file.
38108
38109         Tests for module 'unistr/u32-cpy'.
38110         * modules/unistr/u32-cpy-tests: New file.
38111         * tests/unistr/test-u32-cpy.c: New file.
38112
38113         Tests for module 'unistr/u16-cpy'.
38114         * modules/unistr/u16-cpy-tests: New file.
38115         * tests/unistr/test-u16-cpy.c: New file.
38116
38117         Tests for module 'unistr/u8-cpy'.
38118         * modules/unistr/u8-cpy-tests: New file.
38119         * tests/unistr/test-u8-cpy.c: New file.
38120         * tests/unistr/test-cpy.h: New file.
38121
38122 2010-01-09  Bruno Haible  <bruno@clisp.org>
38123
38124         Tests for module 'unistr/u32-uctomb'.
38125         * modules/unistr/u32-uctomb-tests: New file.
38126         * tests/unistr/test-u32-uctomb.c: New file.
38127
38128         Tests for module 'unistr/u16-uctomb'.
38129         * modules/unistr/u16-uctomb-tests: New file.
38130         * tests/unistr/test-u16-uctomb.c: New file.
38131
38132         Tests for module 'unistr/u8-uctomb'.
38133         * modules/unistr/u8-uctomb-tests: New file.
38134         * tests/unistr/test-u8-uctomb.c: New file.
38135
38136         Tests for module 'unistr/u32-mbtoucr'.
38137         * modules/unistr/u32-mbtoucr-tests: New file.
38138         * tests/unistr/test-u32-mbtoucr.c: New file.
38139
38140         Tests for module 'unistr/u16-mbtoucr'.
38141         * modules/unistr/u16-mbtoucr-tests: New file.
38142         * tests/unistr/test-u16-mbtoucr.c: New file.
38143
38144         Tests for module 'unistr/u8-mbtoucr'.
38145         * modules/unistr/u8-mbtoucr-tests: New file.
38146         * tests/unistr/test-u8-mbtoucr.c: New file.
38147
38148         Tests for module 'unistr/u32-mbtouc'.
38149         * modules/unistr/u32-mbtouc-tests: New file.
38150         * tests/unistr/test-u32-mbtouc.c: New file.
38151
38152         Tests for module 'unistr/u16-mbtouc'.
38153         * modules/unistr/u16-mbtouc-tests: New file.
38154         * tests/unistr/test-u16-mbtouc.c: New file.
38155
38156         Tests for module 'unistr/u8-mbtouc'.
38157         * modules/unistr/u8-mbtouc-tests: New file.
38158         * tests/unistr/test-u8-mbtouc.c: New file.
38159
38160         Tests for module 'unistr/u32-mbtouc-unsafe'.
38161         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38162         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38163         * tests/unistr/test-u32-mbtouc.h: New file.
38164
38165         Tests for module 'unistr/u16-mbtouc-unsafe'.
38166         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38167         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38168         * tests/unistr/test-u16-mbtouc.h: New file.
38169
38170         Tests for module 'unistr/u8-mbtouc-unsafe'.
38171         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38172         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38173         * tests/unistr/test-u8-mbtouc.h: New file.
38174
38175         Tests for module 'unistr/u32-mblen'.
38176         * modules/unistr/u32-mblen-tests: New file.
38177         * tests/unistr/test-u32-mblen.c: New file.
38178
38179         Tests for module 'unistr/u16-mblen'.
38180         * modules/unistr/u16-mblen-tests: New file.
38181         * tests/unistr/test-u16-mblen.c: New file.
38182
38183         Tests for module 'unistr/u8-mblen'.
38184         * modules/unistr/u8-mblen-tests: New file.
38185         * tests/unistr/test-u8-mblen.c: New file.
38186
38187         Tests for module 'unistr/u32-to-u16'.
38188         * modules/unistr/u32-to-u16-tests: New file.
38189         * tests/unistr/test-u32-to-u16.c: New file.
38190
38191         Tests for module 'unistr/u32-to-u8'.
38192         * modules/unistr/u32-to-u8-tests: New file.
38193         * tests/unistr/test-u32-to-u8.c: New file.
38194
38195         Tests for module 'unistr/u16-to-u32'.
38196         * modules/unistr/u16-to-u32-tests: New file.
38197         * tests/unistr/test-u16-to-u32.c: New file.
38198
38199         Tests for module 'unistr/u16-to-u8'.
38200         * modules/unistr/u16-to-u8-tests: New file.
38201         * tests/unistr/test-u16-to-u8.c: New file.
38202
38203         Tests for module 'unistr/u8-to-u32'.
38204         * modules/unistr/u8-to-u32-tests: New file.
38205         * tests/unistr/test-u8-to-u32.c: New file.
38206
38207         Tests for module 'unistr/u8-to-u16'.
38208         * modules/unistr/u8-to-u16-tests: New file.
38209         * tests/unistr/test-u8-to-u16.c: New file.
38210
38211         Tests for module 'unistr/u32-check'.
38212         * modules/unistr/u32-check-tests: New file.
38213         * tests/unistr/test-u32-check.c: New file.
38214
38215         Tests for module 'unistr/u16-check'.
38216         * modules/unistr/u16-check-tests: New file.
38217         * tests/unistr/test-u16-check.c: New file.
38218
38219         Tests for module 'unistr/u8-check'.
38220         * modules/unistr/u8-check-tests: New file.
38221         * tests/unistr/test-u8-check.c: New file.
38222
38223         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38224         (category_equals): New function.
38225         (main): Add more tests.
38226         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38227
38228         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38229
38230 2010-01-10  Bruno Haible  <bruno@clisp.org>
38231
38232         unistr/u*-strcoll: Try harder to distinguish different strings.
38233         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38234         compare s1 and s2 to see if they are different.
38235
38236 2010-01-10  Bruno Haible  <bruno@clisp.org>
38237
38238         unistr/u*-stpncpy: Fix the return value.
38239         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38240         description of the return value consistent with stpncpy in glibc.
38241         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38242         written non-NUL unit.
38243
38244 2010-01-10  Bruno Haible  <bruno@clisp.org>
38245
38246         unistr/u*-next: Add missing dependencies.
38247         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38248         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38249         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38250
38251 2010-01-10  Bruno Haible  <bruno@clisp.org>
38252
38253         unistr/u8-mbsnlen: Fix return value for incomplete character.
38254         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38255         u8_mblen.
38256         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38257         Remove unistr/u8-mblen.
38258         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38259         u16_mblen.
38260         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38261         Remove unistr/u16-mblen.
38262
38263 2010-01-10  Bruno Haible  <bruno@clisp.org>
38264
38265         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38266         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38267         Reported by Brian Gough <bjg@gnu.org> and
38268         Chris Clayton <chris2553@googlemail.com> via
38269         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38270
38271 2010-01-09  Bruno Haible  <bruno@clisp.org>
38272
38273         unistr/u16-to-u32: Reject invalid input.
38274         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38275         u16_mbtouc.
38276         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38277         Remove unistr/u16-mbtouc.
38278
38279         unistr/u16-to-u8: Reject invalid input.
38280         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38281         u16_mbtouc.
38282         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38283         Remove unistr/u16-mbtouc.
38284
38285         unistr/u8-to-u32: Reject invalid input.
38286         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38287         u8_mbtouc.
38288         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38289         Remove unistr/u8-mbtouc.
38290
38291         unistr/u8-to-u16: Reject invalid input.
38292         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38293         u8_mbtouc.
38294         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38295         Remove unistr/u8-mbtouc.
38296
38297 2010-01-09  Bruno Haible  <bruno@clisp.org>
38298
38299         Tests for module 'getlogin'.
38300         * modules/getlogin-tests: New file.
38301         * tests/test-getlogin.c: New file.
38302
38303         New module 'getlogin'.
38304         * lib/unistd.in.h (getlogin): New declaration.
38305         * lib/getlogin.c: New file.
38306         * m4/getlogin.m4: New file.
38307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38308         HAVE_GETLOGIN.
38309         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38310         HAVE_GETLOGIN.
38311         * modules/getlogin: New file.
38312         * doc/posix-functions/getlogin.texi: Mention the new module.
38313         Reported by John W. Eaton <jwe@gnu.org>.
38314
38315 2010-01-09  Bruno Haible  <bruno@clisp.org>
38316
38317         getlogin_r: Support for native Windows.
38318         * lib/getlogin_r.c: Include <windows.h>
38319         (getlogin_r): Implement for native Windows.
38320         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38321         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38322         via John W. Eaton <jwe@gnu.org>.
38323
38324 2010-01-09  Bruno Haible  <bruno@clisp.org>
38325
38326         getlogin_r: Small fixes.
38327         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38328         succeeds.
38329         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38330         before testing whether getlogin_r is declared. No need to set
38331         HAVE_DECL_GETLOGIN_R to 1.
38332         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38333
38334 2010-01-09  Bruno Haible  <bruno@clisp.org>
38335
38336         * lib/unistd.in.h (getlogin_r): Add comment.
38337
38338 2010-01-09  Bruno Haible  <bruno@clisp.org>
38339
38340         Tests for module 'getlogin_r'.
38341         * modules/getlogin_r-tests: New file.
38342         * tests/test-getlogin_r.c: New file.
38343
38344 2010-01-09  Jim Meyering  <meyering@redhat.com>
38345
38346         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38347         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38348         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38349
38350 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38351
38352         * lib/dup2.c (rpl_dup2): Improve comment.
38353
38354 2010-01-08  Eric Blake  <ebb9@byu.net>
38355
38356         maint.mk: allow packages to add makefile @@ exceptions
38357         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38358         (sc_makefile_check): Rename...
38359         (sc_makefile_at_at_check): ...to this, and use hook.
38360
38361         dup2: work around mingw bug
38362         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38363         Reported by Simon Josefsson.
38364
38365 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38366
38367         glob: Fix C++ compilation.
38368         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38369         C++.
38370
38371 2010-01-07  Bruno Haible  <bruno@clisp.org>
38372
38373         Fix indentation of wctype.in.h, broken since 2007-01-06.
38374         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38375
38376 2010-01-07  Bruno Haible  <bruno@clisp.org>
38377
38378         mbslen: Avoid collision with system function.
38379         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38380         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38381         * m4/mbslen.m4: New file.
38382         * modules/mbslen (Files): Add it.
38383         (configure.ac): Invoke gl_MBSLEN.
38384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38385         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38386         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38387         via Ian Beckwith <ianb@erislabs.net>.
38388
38389 2010-01-07  Bruno Haible  <bruno@clisp.org>
38390
38391         dirent: Document the last fix.
38392         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38393
38394 2010-01-07  Bruno Haible  <bruno@clisp.org>
38395
38396         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38397         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38398         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38399         va_list are defined.
38400         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38401         Reported by Eric Blake.
38402
38403 2010-01-07  Bruno Haible  <bruno@clisp.org>
38404
38405         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38406         * modules/xlist (Depends-on): Add 'list',
38407         * modules/xoset (Depends-on): Add 'oset'.
38408         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38409
38410 2010-01-07  Bruno Haible  <bruno@clisp.org>
38411
38412         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38413         * doc/posix-functions/strncasecmp.texi: Likewise.
38414
38415 2010-01-07  Bruno Haible  <bruno@clisp.org>
38416
38417         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38418
38419 2010-01-07  John W. Eaton  <jwe@octave.org>
38420
38421         wctype: allow C++ use
38422         * lib/wctype.in.h: Add extern "C" block for C++.
38423
38424 2010-01-06  Eric Blake  <ebb9@byu.net>
38425
38426         maint.mk: detect incorrect GFDL usage
38427         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38428
38429 2010-01-06  Jim Meyering  <meyering@redhat.com>
38430         and Eric Blake  <ebb9@byu.net>
38431
38432         maint.mk: ignore multi-line copyright in NEWS
38433         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38434
38435 2010-01-06  Eric Blake  <ebb9@byu.net>
38436
38437         select: add missing dependency
38438         * modules/select-tests (Depends-on): Move sockets dependency...
38439         * modules/select (Depends-on): ...here.
38440         Reported by Ian Beckwith.
38441
38442         doc: regenerate INSTALL
38443         * doc/INSTALL: Reflect recent autoconf update.
38444         * doc/INSTALL.ISO: Likewise.
38445         * doc/INSTALL.UTF-8: Likewise.
38446
38447         pread: fix compilation on glibc
38448         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38449         Reported by Ralf Wildenhues.
38450
38451         dirent: fix test failure
38452         * lib/dirent.in.h (includes): Guarantee ino_t.
38453         Reported by Ralf Wildenhues.
38454
38455 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38456
38457         linkat, renameat: avoid bad free
38458         * lib/at-func2.c (at_func2): Fix typo.
38459         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38460
38461 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38462
38463         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38464         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38465         to avoid failure of symlink test later.
38466
38467 2010-01-06  Eric Blake  <ebb9@byu.net>
38468
38469         stdio, unistd: guarantee ssize_t
38470         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38471         2008 are exposed when needed.
38472         * lib/stdio.in.h (includes): Likewise.
38473         Reported by Ralf Wildenhues.
38474
38475 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38476
38477         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38478         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38479         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38480
38481 2010-01-06  Jim Meyering  <meyering@redhat.com>
38482
38483         readtokens: this module *does* require xalloc.h
38484         It uses only functions that were omitted by the old syntax-check rule.
38485         * lib/readtokens.c: Include "xalloc.h" once again.
38486         * modules/readtokens (Depends-on): Add xalloc.
38487         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38488
38489 2010-01-05  Eric Blake  <ebb9@byu.net>
38490
38491         maint: support 'make announcement' from a VPATH build
38492         * top/maint.mk (announcement): Look for correct NEWS file.
38493
38494 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38495
38496         utimens (fdutimens): ignore a negative FD, per contract
38497         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38498         when we have a valid file descriptor.  Otherwise, using a brand
38499         new glibc (with just-patched futimens that now fails with EBADF)
38500         would cause this function to fail with ENOSYS.
38501         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38502         See also http://bugzilla.redhat.com/552320.
38503
38504 2010-01-05  Eric Blake  <ebb9@byu.net>
38505
38506         strcase: document what it provides
38507         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38508         gnulib module.
38509         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38510         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38511
38512 2010-01-05  Jim Meyering  <meyering@redhat.com>
38513
38514         maint: remove useless inclusions of "xalloc.h"
38515         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38516         * lib/readtokens.c: Likewise.
38517         * lib/same.c: Likewise.
38518         * modules/getloadavg (Depends-on): Remove xalloc.
38519         * modules/readtokens: Likewise.
38520         * modules/same: Likewise.
38521
38522         maint.mk: include 4 more function names in alloca.h-checking regexp
38523         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38524         regexp.  Before, we would give a false-positive (saying alloca.h
38525         is included unnecessarily) when the only uses involved omitted symbols.
38526
38527         xalloc.h: use consistent formatting
38528         * lib/xalloc.h: Move declarations to start in the first column.
38529
38530 2010-01-05  Eric Blake  <ebb9@byu.net>
38531
38532         mkdir: avoid xalloc
38533         * lib/mkdir.c (includes): Drop unused header.
38534         Reported by John W. Eaton.
38535
38536 2010-01-04  Jim Meyering  <meyering@redhat.com>
38537
38538         nl_langinfo: avoid configure-time syntax error
38539         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38540         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38541         the empty string.  Don't let that provoke a shell syntax error.
38542
38543         regcomp, regexec, fnmatch: avoid array bounds read error
38544         * lib/regcomp.c (build_equiv_class): From glibc:
38545         Use only the low 24 bits of a findidx return value as an index
38546         into the weights array.  Patch by Ulrich Drepper:
38547         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38548         * lib/regexec.c (check_node_accept_bytes): Likewise.
38549         * lib/fnmatch_loop.c (FCT): Likewise.
38550
38551         regcomp: skip collseq lookup when there are no rules
38552         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38553         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38554
38555         regcomp: recognize ill-formed { } expressions
38556         * lib/regcomp.c (parse_dup_op): From glibc:
38557         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38558
38559         regcomp: fix typo in comment
38560         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38561         s/satisfy/satisfies/.
38562
38563         regcomp: sync from glibc: remove dead store
38564         * lib/regcomp.c (duplicate_node_closure): Remove useless
38565         search_duplicated_node call and dead store.
38566
38567         regcomp: sync from glibc; always use nl_langinfo
38568         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38569         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38570         * modules/regex (Depends-on): Add nl_langinfo.
38571
38572 2010-01-04  Eric Blake  <ebb9@byu.net>
38573
38574         fdopendir: fix configure test
38575         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38576
38577 2010-01-01  Bruno Haible  <bruno@clisp.org>
38578
38579         wchar: Remove unused configure check.
38580         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38581
38582 2010-01-01  Eric Blake  <ebb9@byu.net>
38583
38584         headers: make check of system header explicit
38585         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38586         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38587         ourselves.
38588         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38589         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38590         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38591         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38592         internals.
38593         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38594         missing.
38595         Suggested by Bruno Haible.
38596
38597 2010-01-01  Jim Meyering  <meyering@redhat.com>
38598
38599         ChangeLog: tweak to eliminate unnecessary copyright line
38600         * ChangeLog: Remove a copyright line that was mistakenly updated
38601         by today's update-copyright run.  Reported by Eric Blake.
38602
38603         test-update-copyright: don't let envvar setting cause test failure
38604         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38605
38606 2010-01-01  Bruno Haible  <bruno@clisp.org>
38607
38608         localename: Avoid gcc warning.
38609         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38610         function if it is not used.
38611
38612 2010-01-01  Jim Meyering  <meyering@redhat.com>
38613
38614         update nearly all FSF copyright year lists to include 2010
38615         Use the same procedure as for 2009, outlined in
38616         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38617
38618         version-etc: set COPYRIGHT_YEAR to 2010
38619         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38620
38621 2009-12-31  Eric Blake  <ebb9@byu.net>
38622
38623         doc: correct availability of cygwin 1.5.x getopt
38624         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38625         variables.
38626         * doc/posix-functions/opterr.texi (opterr): Likewise.
38627         * doc/posix-functions/optind.texi (optind): Likewise.
38628         * doc/posix-functions/optopt.texi (optopt): Likewise.
38629         * doc/posix-functions/tzname.texi (tzname): Likewise.
38630
38631         openat: update maintainer
38632         * modules/openat (Maintainer): Add myself.
38633
38634         utimens: avoid shadowing warning
38635         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38636         buffers into one, to avoid shadowing, as well as avoiding a
38637         redundant stat.
38638         Reported by Jim Meyering.
38639
38640         test-dup2: avoid compiler warning
38641         * tests/test-dup2.c (is_inheritable): Only define if used.
38642
38643 2010-01-01  Bruno Haible  <bruno@clisp.org>
38644
38645         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38646         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38647         defined, use wctomb instead of wcrtomb.
38648
38649 2010-01-01  Bruno Haible  <bruno@clisp.org>
38650
38651         iconv: Reject native Solaris iconv.
38652         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38653         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38654
38655 2009-12-31  Bruno Haible  <bruno@clisp.org>
38656
38657         * tests/test-signal.c (main): Remove test of 'SIG'.
38658
38659 2009-12-31  Bruno Haible  <bruno@clisp.org>
38660
38661         spawn: Fix incomplete fix.
38662         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38663         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38664         warnings for GNULIB_POSIXCHECK again.
38665         Reported by Eric Blake.
38666
38667 2009-12-31  Bruno Haible  <bruno@clisp.org>
38668
38669         Avoid namespace pollution on glibc systems.
38670         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38671         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38672         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38673         glibc systems.
38674
38675 2009-12-31  Bruno Haible  <bruno@clisp.org>
38676
38677         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38678         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38679         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38680         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38681         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38682         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38683         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38684
38685 2009-12-31  Bruno Haible  <bruno@clisp.org>
38686
38687         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38688         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38689         afterwards.
38690
38691 2009-12-31  Bruno Haible  <bruno@clisp.org>
38692
38693         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38694         SYS_UTSNAME_H.
38695
38696 2009-12-31  Bruno Haible  <bruno@clisp.org>
38697
38698         spawn: Fix misapplied patch.
38699         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38700         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38701         warnings for GNULIB_POSIXCHECK.
38702
38703 2009-12-31  Bruno Haible  <bruno@clisp.org>
38704
38705         times: Update after sys_times changed.
38706         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38707         * modules/times (Files): Add it.
38708         (configure.ac): Invoke gl_FUNC_TIMES.
38709
38710 2009-12-31  Bruno Haible  <bruno@clisp.org>
38711
38712         Use AC_C_INLINE where necessary.
38713         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38714         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38715         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38716         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38717         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38718         * m4/mbiter.m4 (gl_MBITER): Likewise.
38719         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38720         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38721         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38722         * modules/u64 (configure.ac): Likewise.
38723
38724 2009-12-31  Bruno Haible  <bruno@clisp.org>
38725
38726         Use AC_C_INLINE instead of module 'inline' where possible.
38727         * modules/inline (Description): Clarify purpose.
38728         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38729         * modules/count-one-bits (Depends-on): Remove inline.
38730         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38731         * modules/openat (Depends-on): Remove inline.
38732         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38733         instead of depending on module 'inline'.
38734         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38735         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38736         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38737         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38738         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38739         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38740         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38741         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38742         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38743         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38744         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38745         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38746         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38747         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38748         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38749         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38750         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38751         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38752         Likewise.
38753         * modules/unictype/property-ascii-hex-digit (Depends-on,
38754         configure.ac): Likewise.
38755         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38756         configure.ac): Likewise.
38757         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38758         configure.ac): Likewise.
38759         * modules/unictype/property-bidi-block-separator (Depends-on,
38760         configure.ac): Likewise.
38761         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38762         configure.ac): Likewise.
38763         * modules/unictype/property-bidi-common-separator (Depends-on,
38764         configure.ac): Likewise.
38765         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38766         Likewise.
38767         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38768         configure.ac): Likewise.
38769         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38770         configure.ac): Likewise.
38771         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38772         configure.ac): Likewise.
38773         * modules/unictype/property-bidi-european-digit (Depends-on,
38774         configure.ac): Likewise.
38775         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38776         configure.ac): Likewise.
38777         * modules/unictype/property-bidi-left-to-right (Depends-on,
38778         configure.ac): Likewise.
38779         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38780         configure.ac): Likewise.
38781         * modules/unictype/property-bidi-other-neutral (Depends-on,
38782         configure.ac): Likewise.
38783         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38784         Likewise.
38785         * modules/unictype/property-bidi-segment-separator (Depends-on,
38786         configure.ac): Likewise.
38787         * modules/unictype/property-bidi-whitespace (Depends-on,
38788         configure.ac): Likewise.
38789         * modules/unictype/property-combining (Depends-on, configure.ac):
38790         Likewise.
38791         * modules/unictype/property-composite (Depends-on, configure.ac):
38792         Likewise.
38793         * modules/unictype/property-currency-symbol (Depends-on,
38794         configure.ac): Likewise.
38795         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38796         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38797         Likewise.
38798         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38799         configure.ac): Likewise.
38800         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38801         Likewise.
38802         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38803         Likewise.
38804         * modules/unictype/property-extender (Depends-on, configure.ac):
38805         Likewise.
38806         * modules/unictype/property-format-control (Depends-on, configure.ac):
38807         Likewise.
38808         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38809         Likewise.
38810         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38811         Likewise.
38812         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38813         Likewise.
38814         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38815         Likewise.
38816         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38817         Likewise.
38818         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38819         Likewise.
38820         * modules/unictype/property-id-start (Depends-on, configure.ac):
38821         Likewise.
38822         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38823         Likewise.
38824         * modules/unictype/property-ids-binary-operator (Depends-on,
38825         configure.ac): Likewise.
38826         * modules/unictype/property-ids-trinary-operator (Depends-on,
38827         configure.ac): Likewise.
38828         * modules/unictype/property-ignorable-control (Depends-on,
38829         configure.ac): Likewise.
38830         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38831         Likewise.
38832         * modules/unictype/property-join-control (Depends-on, configure.ac):
38833         Likewise.
38834         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38835         Likewise.
38836         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38837         Likewise.
38838         * modules/unictype/property-logical-order-exception (Depends-on,
38839         configure.ac): Likewise.
38840         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38841         Likewise.
38842         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38843         * modules/unictype/property-non-break (Depends-on, configure.ac):
38844         Likewise.
38845         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38846         Likewise.
38847         * modules/unictype/property-numeric (Depends-on, configure.ac):
38848         Likewise.
38849         * modules/unictype/property-other-alphabetic (Depends-on,
38850         configure.ac): Likewise.
38851         * modules/unictype/property-other-default-ignorable-code-point
38852         (Depends-on, configure.ac): Likewise.
38853         * modules/unictype/property-other-grapheme-extend (Depends-on,
38854         configure.ac): Likewise.
38855         * modules/unictype/property-other-id-continue (Depends-on,
38856         configure.ac): Likewise.
38857         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38858         Likewise.
38859         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38860         Likewise.
38861         * modules/unictype/property-other-math (Depends-on, configure.ac):
38862         Likewise.
38863         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38864         Likewise.
38865         * modules/unictype/property-paired-punctuation (Depends-on,
38866         configure.ac): Likewise.
38867         * modules/unictype/property-paragraph-separator (Depends-on,
38868         configure.ac): Likewise.
38869         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38870         Likewise.
38871         * modules/unictype/property-pattern-white-space (Depends-on,
38872         configure.ac): Likewise.
38873         * modules/unictype/property-private-use (Depends-on, configure.ac):
38874         Likewise.
38875         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38876         Likewise.
38877         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38878         Likewise.
38879         * modules/unictype/property-radical (Depends-on, configure.ac):
38880         Likewise.
38881         * modules/unictype/property-sentence-terminal (Depends-on,
38882         configure.ac): Likewise.
38883         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38884         Likewise.
38885         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38886         * modules/unictype/property-terminal-punctuation (Depends-on,
38887         configure.ac): Likewise.
38888         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38889         Likewise.
38890         * modules/unictype/property-unassigned-code-value (Depends-on,
38891         configure.ac): Likewise.
38892         * modules/unictype/property-unified-ideograph (Depends-on,
38893         configure.ac): Likewise.
38894         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38895         Likewise.
38896         * modules/unictype/property-variation-selector (Depends-on,
38897         configure.ac): Likewise.
38898         * modules/unictype/property-white-space (Depends-on, configure.ac):
38899         Likewise.
38900         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38901         Likewise.
38902         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38903         Likewise.
38904         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38905         Likewise.
38906         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38907         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38908         Likewise.
38909
38910 2009-12-31  Bruno Haible  <bruno@clisp.org>
38911
38912         Remove unnecessary AC_C_INLINE invocation.
38913         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38914         since 2009-08-21.
38915
38916 2009-12-31  Jim Meyering  <meyering@redhat.com>
38917
38918         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38919         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38920         With this change, we can all remove the gpg_key_ID = ... definition
38921         from our respective cfg.mk files.
38922
38923         maint.mk: create announcement template in ~/, not in /tmp
38924         * top/maint.mk (emit_upload_commands): Adjust.
38925         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38926         Remove temporary file, .ci-msg.
38927
38928 2009-12-31  Eric Blake  <ebb9@byu.net>
38929
38930         link-warning: always build headers with link warnings
38931         * modules/arpa_inet (Makefile.am): Always build replacement
38932         header.
38933         * modules/ctype (Makefile.am): Likewise.
38934         * modules/dirent (Makefile.am): Likewise.
38935         * modules/inttypes (Makefile.am): Likewise.
38936         * modules/langinfo (Makefile.am): Likewise.
38937         * modules/locale (Makefile.am): Likewise.
38938         * modules/spawn (Makefile.am): Likewise.
38939         * modules/sys_file (Makefile.am): Likewise.
38940         * modules/sys_ioctl (Makefile.am): Likewise.
38941         * modules/sys_select (Makefile.am): Likewise.
38942         * modules/sys_socket (Makefile.am): Likewise.
38943         * modules/sys_times (Makefile.am): Likewise.
38944         * modules/sys_utsname (Makefile.am): Likewise.
38945         * modules/sys_wait (Makefile.am): Likewise.
38946         * modules/wchar (Makefile.am): Likewise.
38947         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38948         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38949         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38950         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38951         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38952         Likewise.
38953         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38954         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38955         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38956         Likewise.
38957         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38958         Likewise.
38959         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38960         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38961         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38962         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38963         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38964         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38965         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38966         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38967         (gl_WCHAR_H_DEFAULTS): Likewise.
38968
38969 2009-12-31  Eric Blake  <ebb9@byu.net>
38970
38971         signal, spawn: use link warnings
38972         * lib/signal.in.h (sigset_t): Make unconditional.
38973         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38974         (sigpending, sigprocmask, sigaction): Add link warnings.
38975         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38976         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38977         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38978         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38979         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38980         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38981         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38982         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38983         (posix_spawn_file_actions_destroy)
38984         (posix_spawn_file_actions_addopen)
38985         (posix_spawn_file_actions_addclose)
38986         (posix_spawn_file_actions_adddup2): Likewise.
38987         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38988         * tests/test-signal.c (main): Enhance test.
38989
38990         spawn: improve wrapper support
38991         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38992         (gl_SPAWN_H_DEFAULTS): New defaults.
38993         * modules/spawn (Makefile.am): Substitute them.
38994         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38995         Only declare if missing or broken.
38996
38997         sys_times, sys_utsname: use include_next
38998         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38999         header.
39000         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39001         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39002         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39003         * modules/sys_times (Depends-on): Add include_next.
39004         (Makefile.am): Substitute additional values.
39005         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39006         * lib/sys_times.in.h (includes): Include native header, if
39007         available.
39008         * lib/sys_utsname.in.h (includes): Likewise.
39009         * tests/test-sys_times.c (main): Enhance test.
39010
39011         fdutimensat: revert prior patch
39012         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39013         utimens.h.
39014         Reported by Bruno Haible.
39015
39016 2009-12-30  Eric Blake  <ebb9@byu.net>
39017
39018         sys_wait: drop link-warning dependency
39019         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39020         link-warning efforts.
39021         * lib/sys_wait.in.h: Likewise.
39022
39023         fdutimensat: remove bogus dependency
39024         * modules/fdutimensat (Depends-on): Drop inline.
39025
39026         unistd: fix typo
39027         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39028
39029 2009-12-30  Bruno Haible  <bruno@clisp.org>
39030
39031         Fix compilation error with Solaris cc.
39032         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39033         * lib/unicase/u16-is-invariant.c: Likewise.
39034         * lib/unicase/u32-is-invariant.c: Likewise.
39035         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39036
39037 2009-12-30  Bruno Haible  <bruno@clisp.org>
39038
39039         Fix test crash.
39040         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39041         locales.
39042         Reported by Simon Josefsson <simon@josefsson.org>.
39043
39044 2009-12-30  Bruno Haible  <bruno@clisp.org>
39045
39046         Fix compilation error on most platforms.
39047         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39048         Reported by Simon Josefsson <simon@josefsson.org>
39049         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39050
39051 2009-12-30  Eric Blake  <ebb9@byu.net>
39052
39053         futimens, utimensat: work around ntfs-3g bug
39054         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39055         a ctime bug is present, and expand workaround to cover ntfs-3g.
39056         * lib/utimens.c (fdutimens, lutimens): Likewise.
39057         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39058         (validate_timespec): Adjust return value.
39059         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39060         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39061         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39062
39063 2009-12-29  Eric Blake  <ebb9@byu.net>
39064
39065         link-warning: make usage consistent
39066         * modules/ctype (Depends-on): Add link-warning.
39067         (Makefile.am): Update rules accordingly.
39068         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39069         * modules/locale (Depends-on, Makefile.am): Likewise.
39070         * modules/sys_file (Makefile.am): Likewise.
39071         * modules/getopt-posix (Makefile.am): Delete unused link warning
39072         efforts.
39073         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39074         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39075         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39076         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39077
39078         stdio: remove unused variables
39079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39080         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39081         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39082
39083         tests: test more substitute headers
39084         * modules/ctype-tests: New file.
39085         * modules/dirent-tests: Likewise.
39086         * modules/spawn-tests: Likewise.
39087         * modules/sys_file-tests: Likewise.
39088         * modules/sys_ioctl-tests: Likewise.
39089         * modules/sys_wait-tests: Likewise.
39090         * tests/test-ctype.c: Likewise.
39091         * tests/test-dirent.c: Likewise.
39092         * tests/test-spawn.c: Likewise.
39093         * tests/test-sys_file.c: Likewise.
39094         * tests/test-sys_ioctl.c: Likewise.
39095         * tests/test-sys_wait.c: Likewise.
39096         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39097         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39098         whether or not flock is in use.
39099
39100         tests: remove License section from module
39101         * modules/arpa_inet-tests: Remove unneeded section.
39102         * modules/byteswap-tests: Likewise.
39103         * modules/ceilf-tests: Likewise.
39104         * modules/ceill-tests: Likewise.
39105         * modules/crypto/des-tests: Likewise.
39106         * modules/crypto/gc-arcfour-tests: Likewise.
39107         * modules/crypto/gc-arctwo-tests: Likewise.
39108         * modules/crypto/gc-des-tests: Likewise.
39109         * modules/crypto/gc-hmac-md5-tests: Likewise.
39110         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39111         * modules/crypto/gc-md2-tests: Likewise.
39112         * modules/crypto/gc-md4-tests: Likewise.
39113         * modules/crypto/gc-md5-tests: Likewise.
39114         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39115         * modules/crypto/gc-rijndael-tests: Likewise.
39116         * modules/crypto/gc-sha1-tests: Likewise.
39117         * modules/crypto/gc-tests: Likewise.
39118         * modules/crypto/md2-tests: Likewise.
39119         * modules/crypto/md4-tests: Likewise.
39120         * modules/fcntl-h-tests: Likewise.
39121         * modules/floorf-tests: Likewise.
39122         * modules/floorl-tests: Likewise.
39123         * modules/frexp-nolibm-tests: Likewise.
39124         * modules/frexp-tests: Likewise.
39125         * modules/frexpl-nolibm-tests: Likewise.
39126         * modules/frexpl-tests: Likewise.
39127         * modules/getaddrinfo-tests: Likewise.
39128         * modules/inttypes-tests: Likewise.
39129         * modules/isfinite-tests: Likewise.
39130         * modules/isinf-tests: Likewise.
39131         * modules/ldexpl-tests: Likewise.
39132         * modules/locale-tests: Likewise.
39133         * modules/math-tests: Likewise.
39134         * modules/netdb-tests: Likewise.
39135         * modules/netinet_in-tests: Likewise.
39136         * modules/printf-frexp-tests: Likewise.
39137         * modules/printf-frexpl-tests: Likewise.
39138         * modules/priv-set-tests: Likewise.
39139         * modules/random_r-tests: Likewise.
39140         * modules/round-tests: Likewise.
39141         * modules/roundf-tests: Likewise.
39142         * modules/roundl-tests: Likewise.
39143         * modules/search-tests: Likewise.
39144         * modules/select-tests: Likewise.
39145         * modules/signal-tests: Likewise.
39146         * modules/stdbool-tests: Likewise.
39147         * modules/stddef-tests: Likewise.
39148         * modules/stdint-tests: Likewise.
39149         * modules/stdio-tests: Likewise.
39150         * modules/stdlib-tests: Likewise.
39151         * modules/string-tests: Likewise.
39152         * modules/strings-tests: Likewise.
39153         * modules/sys_select-tests: Likewise.
39154         * modules/sys_socket-tests: Likewise.
39155         * modules/sys_stat-tests: Likewise.
39156         * modules/sys_time-tests: Likewise.
39157         * modules/sys_utsname-tests: Likewise.
39158         * modules/sysexits-tests: Likewise.
39159         * modules/time-tests: Likewise.
39160         * modules/trunc-tests: Likewise.
39161         * modules/truncf-tests: Likewise.
39162         * modules/truncl-tests: Likewise.
39163         * modules/tsearch-tests: Likewise.
39164         * modules/unistd-tests: Likewise.
39165         * modules/wchar-tests: Likewise.
39166         * modules/wctype-tests: Likewise.
39167
39168         tests: fix license on several tests
39169         * tests/test-des.c: Update to GPLv3+.
39170         * tests/test-flock.c: Likewise.
39171         * tests/test-fsync.c: Likewise.
39172         * tests/test-futimens.h: Likewise.
39173         * tests/test-gc-arcfour.c: Likewise.
39174         * tests/test-gc-arctwo.c: Likewise.
39175         * tests/test-gc-des.c: Likewise.
39176         * tests/test-gc-hmac-md5.c: Likewise.
39177         * tests/test-gc-hmac-sha1.c: Likewise.
39178         * tests/test-gc-md2.c: Likewise.
39179         * tests/test-gc-md4.c: Likewise.
39180         * tests/test-gc-md5.c: Likewise.
39181         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39182         * tests/test-gc-rijndael.c: Likewise.
39183         * tests/test-gc-sha1.c: Likewise.
39184         * tests/test-gc.c: Likewise.
39185         * tests/test-getcwd.c: Likewise.
39186         * tests/test-link.c: Likewise.
39187         * tests/test-link.h: Likewise.
39188         * tests/test-lutimens.h: Likewise.
39189         * tests/test-md2.c: Likewise.
39190         * tests/test-md4.c: Likewise.
39191         * tests/test-mkdir.h: Likewise.
39192         * tests/test-rename.c: Likewise.
39193         * tests/test-rename.h: Likewise.
39194         * tests/test-safe-alloc.c: Likewise.
39195         * tests/test-utimens-common.h: Likewise.
39196         * tests/test-utimens.h: Likewise.
39197
39198         maint: sync license texts
39199         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39200         * doc/gpl-3.0.texi: Revert copyright year update.
39201         * doc/lgpl-3.0.texi: Likewise.
39202
39203 2009-12-29  Jim Meyering  <meyering@redhat.com>
39204
39205         update nearly all FSF copyright year lists to include 2009
39206         The files named by the following are exempted:
39207             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39208               test -f "$dst" && { echo "$dst"; continue; }
39209               test -d "$dst" || continue
39210               echo "$dst"/$(basename "$src")
39211             done > exempt
39212             git ls-files tests/unictype >> exempt
39213         In the remaining files, convert to all-interval notation if
39214         - there is already at least one year interval like 2000-2003
39215         - the file is maintained by me
39216         - the file is in lib/uni*/, where that style already prevails
39217         Otherwise, use update-copyright's default.
39218
39219 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39220         and Eric Blake  <ebb9@byu.net>
39221
39222         tests: don't require debug system() to pass
39223         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39224         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39225         * tests/test-unlink.h (test_unlink_func): Likewise.
39226         * tests/test-fstatat.c (main): ...into callers.
39227         * tests/test-lstat.c (main): Likewise.
39228         * tests/test-rmdir.c (main): Likewise.
39229         * tests/test-unlink.c (main): Likewise.
39230         * tests/test-unlinkat.c (main): Likewise.
39231         * tests/test-areadlink-with-size.c (main): Don't require a
39232         debug-only system call to pass, aiding cross-testing to mingw.
39233         * tests/test-areadlink.c (main): Likewise.
39234         * tests/test-areadlinkat-with-size.c (main): Likewise.
39235         * tests/test-areadlinkat.c (main): Likewise.
39236         * tests/test-canonicalize-lgpl.c (main): Likewise.
39237         * tests/test-canonicalize.c (main): Likewise.
39238         * tests/test-chown.c (main): Likewise.
39239         * tests/test-fchownat.c (main): Likewise.
39240         * tests/test-lchown.c (main): Likewise.
39241         * tests/test-fdutimensat.c (main): Likewise.
39242         * tests/test-futimens.c (main): Likewise.
39243         * tests/test-link.c (main): Likewise.
39244         * tests/test-linkat.c (main): Likewise.
39245         * tests/test-mkdir.c (main): Likewise.
39246         * tests/test-mkdirat.c (main): Likewise.
39247         * tests/test-mkfifo.c (main): Likewise.
39248         * tests/test-mkfifoat.c (main): Likewise.
39249         * tests/test-mknod.c (main): Likewise.
39250         * tests/test-readlink.c (main): Likewise.
39251         * tests/test-remove.c (main): Likewise.
39252         * tests/test-rename.c (main): Likewise.
39253         * tests/test-renameat.c (main): Likewise.
39254         * tests/test-symlink.c (main): Likewise.
39255         * tests/test-symlinkat.c (main): Likewise.
39256         * tests/test-utimens.c (main): Likewise.
39257         * tests/test-utimensat.c (main): Likewise.
39258
39259 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39260
39261         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39262         on $(UNUSED_PARAMETER_H) to avoid build failure.
39263
39264 2009-12-28  Jim Meyering  <meyering@redhat.com>
39265
39266         update-copyright: you may specify a max. line length other than 72
39267         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39268
39269         maint: use consistent FSF copyright line syntax
39270         * lib/posixtm.c: Add missing comma in FSF copyright line.
39271         * lib/posixtm.h: Likewise.
39272         * lib/getugroups.c: Add missing ", Inc.".
39273
39274         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39275         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39276         FSF copyright line.  Remove trailing blanks.
39277
39278 2009-12-28  Eric Blake  <ebb9@byu.net>
39279
39280         test-dup2: reduce dependencies
39281         * modules/cloexec (Configure.ac): Set witness.
39282         * modules/dup2-tests (Depends-on): Drop cloexec.
39283         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39284         not present.
39285         Suggested by Bruno Haible.
39286
39287 2009-12-26  Bruno Haible  <bruno@clisp.org>
39288
39289         Remove an unneeded dependency.
39290         * modules/fseterr (Depends-on): Remove dup2.
39291
39292 2009-12-26  Eric Blake  <ebb9@byu.net>
39293
39294         tests: use macros.h in more places
39295         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39296         (ASSERT_STREAM): Provide default of stderr.
39297         * tests/test-dirent-safer.c: Include macros.h, using alternate
39298         stream for assertions.
39299         * tests/test-dup-safer.c: Likewise.
39300         * tests/test-freopen-safer.c: Likewise.
39301         * tests/test-getopt.c: Likewise.
39302         * tests/test-openat-safer.c: Likewise.
39303         * tests/test-pipe.c: Likewise.
39304         * tests/test-popen-safer.c: Likewise.
39305         * modules/dirent-safer-tests (Files): Include macros.h.
39306         * modules/unistd-safer-tests (Files): Likewise.
39307         * modules/freopen-safer-tests (Files): Likewise.
39308         * modules/getopt-posix-tests (Files): Likewise.
39309         * modules/openat-safer-tests (Files): Likewise.
39310         * modules/pipe-tests (Files): Likewise.
39311
39312 2009-12-26  Bruno Haible  <bruno@clisp.org>
39313
39314         javacomp: Portability fix.
39315         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39316         that it also works on Solaris.
39317
39318 2009-12-26  Bruno Haible  <bruno@clisp.org>
39319
39320         localename: Fix storage allocation of gl_locale_name_thread's result.
39321         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39322         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39323         all platforms that have 'uselocale'.
39324         (gl_locale_name_thread_unsafe): New function, extracted from
39325         gl_locale_name_thread.
39326         (gl_locale_name_thread): Call struniq on all platforms that have
39327         'uselocale'.
39328         * tests/test-localename.c (test_locale_name_thread): Check that the
39329         resulting strings are permanently allocated.
39330         * modules/localename-tests (Depends-on): Add strdup.
39331
39332 2009-12-26  Bruno Haible  <bruno@clisp.org>
39333
39334         * tests/test-localename.c (categories): Fill in the strings.
39335
39336 2009-12-26  Jim Meyering  <meyering@redhat.com>
39337
39338         isdir: complete the removal of m4/isdir.m4
39339         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39340
39341         isdir: clean up, since at least grep still uses it
39342         * lib/isdir.c: Include "isdir.h".
39343         (S_ISDIR): Remove now-unneeded definition.
39344         * modules/isdir (Files): Add lib/isdir.h.
39345         * lib/isdir.h: New file, with declaration.
39346         * m4/isdir.m4: Remove file -- unneeded.
39347
39348 2009-12-25  Bruno Haible  <bruno@clisp.org>
39349
39350         selinux-h: Make generated .h files standalone.
39351         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39352         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39353         * lib/se-selinux.in.h: Likewise.
39354         * modules/selinux-h (Depends-on): Add unused-parameter.
39355         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39356         selinux/selinux.h and selinux/context.h.
39357         Suggested by Eric Blake.
39358
39359 2009-12-25  Bruno Haible  <bruno@clisp.org>
39360
39361         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39362         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39363         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39364         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39365         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39366
39367 2009-12-24  Bruno Haible  <bruno@clisp.org>
39368
39369         openat: Fix warning.
39370         * lib/openat-proc.c: Include <unistd.h>.
39371
39372 2009-12-24  Bruno Haible  <bruno@clisp.org>
39373
39374         New module 'unused-parameter'.
39375         * build-aux/unused-parameter.h: New file, extracted from earlier
39376         gnulib-common.m4.
39377         * modules/unused-parameter: New file.
39378         * lib/unistr.h: Include unused-parameter.h.
39379         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39380         _GL_UNUSED.
39381         * modules/unistr/base (Depends-on): Add unused-parameter.
39382
39383 2009-12-24  Bruno Haible  <bruno@clisp.org>
39384
39385         Add missing dependencies to 'extensions' module.
39386         * m4/extensions.m4: Add comment.
39387         * modules/accept4 (Depends-on): Add extensions.
39388         * modules/dup3 (Depends-on): Likewise.
39389         * modules/fcntl (Depends-on): Likewise.
39390         * modules/futimens (Depends-on): Likewise.
39391         * modules/mknod (Depends-on): Likewise.
39392         * modules/pipe2 (Depends-on): Likewise.
39393         * modules/stat-time (Depends-on): Likewise.
39394         * modules/strcasestr-simple (Depends-on): Likewise.
39395         * modules/strsignal (Depends-on): Likewise.
39396         * modules/utimensat (Depends-on): Likewise.
39397         * modules/localcharset (Depends-on): Likewise. Needed because of
39398         gl_FCNTL_O_FLAGS.
39399         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39400         AC_TYPE_MBSTATE_T.
39401         * modules/wcsnrtombs (Depends-on): Likewise.
39402         * modules/wcsrtombs (Depends-on): Likewise.
39403
39404 2009-12-24  Bruno Haible  <bruno@clisp.org>
39405
39406         binary-io: Avoid gcc warning due to SET_BINARY.
39407         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39408         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39409
39410 2009-12-24  Bruno Haible  <bruno@clisp.org>
39411
39412         Avoid future namespace pollution on glibc systems.
39413         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39414         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39415         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39416         glibc systems.
39417
39418 2009-12-24  Bruno Haible  <bruno@clisp.org>
39419
39420         Refactor common macros used in tests.
39421         * tests/macros.h: New file.
39422         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39423         and/or <stdlib.h>, if appropriate.
39424         (ASSERT, SIZEOF): Remove macros.
39425         * tests/test-areadlink-with-size.c: Likewise.
39426         * tests/test-areadlinkat.c: Likewise.
39427         * tests/test-areadlinkat-with-size.c: Likewise.
39428         * tests/test-argmatch.c: Likewise.
39429         * tests/test-argv-iter.c: Likewise.
39430         * tests/test-array-mergesort.c: Likewise.
39431         * tests/test-array_list.c: Likewise.
39432         * tests/test-array_oset.c: Likewise.
39433         * tests/test-avltree_list.c: Likewise.
39434         * tests/test-avltree_oset.c: Likewise.
39435         * tests/test-avltreehash_list.c: Likewise.
39436         * tests/test-base64.c: Likewise.
39437         * tests/test-binary-io.c: Likewise.
39438         * tests/test-bitrotate.c: Likewise.
39439         * tests/test-btowc.c: Likewise.
39440         * tests/test-byteswap.c: Likewise.
39441         * tests/test-c-ctype.c: Likewise.
39442         * tests/test-c-stack.c: Likewise.
39443         * tests/test-c-strcasecmp.c: Likewise.
39444         * tests/test-c-strcasestr.c: Likewise.
39445         * tests/test-c-strncasecmp.c: Likewise.
39446         * tests/test-c-strstr.c: Likewise.
39447         * tests/test-canonicalize-lgpl.c: Likewise.
39448         * tests/test-canonicalize.c: Likewise.
39449         * tests/test-carray_list.c: Likewise.
39450         * tests/test-ceilf1.c: Likewise.
39451         * tests/test-ceilf2.c: Likewise.
39452         * tests/test-ceill.c: Likewise.
39453         * tests/test-chown.c: Likewise.
39454         * tests/test-cloexec.c: Likewise.
39455         * tests/test-copy-acl.c: Likewise.
39456         * tests/test-copy-file.c: Likewise.
39457         * tests/test-count-one-bits.c: Likewise.
39458         * tests/test-dprintf-posix.c: Likewise.
39459         * tests/test-dup2.c: Likewise.
39460         * tests/test-dup3.c: Likewise.
39461         * tests/test-duplocale.c: Likewise.
39462         * tests/test-fbufmode.c: Likewise.
39463         * tests/test-fchdir.c: Likewise.
39464         * tests/test-fchownat.c: Likewise.
39465         * tests/test-fcntl-safer.c: Likewise.
39466         * tests/test-fcntl.c: Likewise.
39467         * tests/test-fdopendir.c: Likewise.
39468         * tests/test-fdutimensat.c: Likewise.
39469         * tests/test-fflush2.c: Likewise.
39470         * tests/test-file-has-acl.c: Likewise.
39471         * tests/test-filevercmp.c: Likewise.
39472         * tests/test-flock.c: Likewise.
39473         * tests/test-floorf1.c: Likewise.
39474         * tests/test-floorf2.c: Likewise.
39475         * tests/test-floorl.c: Likewise.
39476         * tests/test-fnmatch.c: Likewise.
39477         * tests/test-fopen.h: Likewise.
39478         * tests/test-fpending.c: Likewise.
39479         * tests/test-fprintf-posix.c: Likewise.
39480         * tests/test-fpurge.c: Likewise.
39481         * tests/test-freadable.c: Likewise.
39482         * tests/test-freadahead.c: Likewise.
39483         * tests/test-freading.c: Likewise.
39484         * tests/test-freadptr.c: Likewise.
39485         * tests/test-freadptr2.c: Likewise.
39486         * tests/test-freadseek.c: Likewise.
39487         * tests/test-freopen.c: Likewise.
39488         * tests/test-frexp.c: Likewise.
39489         * tests/test-frexpl.c: Likewise.
39490         * tests/test-fseek.c: Likewise.
39491         * tests/test-fseeko.c: Likewise.
39492         * tests/test-fstatat.c: Likewise.
39493         * tests/test-fstrcmp.c: Likewise.
39494         * tests/test-fsync.c: Likewise.
39495         * tests/test-ftell.c: Likewise.
39496         * tests/test-ftello.c: Likewise.
39497         * tests/test-func.c: Likewise.
39498         * tests/test-futimens.c: Likewise.
39499         * tests/test-fwritable.c: Likewise.
39500         * tests/test-fwriting.c: Likewise.
39501         * tests/test-getcwd.c: Likewise.
39502         * tests/test-getdate.c: Likewise.
39503         * tests/test-getdelim.c: Likewise.
39504         * tests/test-getdtablesize.c: Likewise.
39505         * tests/test-getgroups.c: Likewise.
39506         * tests/test-getline.c: Likewise.
39507         * tests/test-getndelim2.c: Likewise.
39508         * tests/test-glob.c: Likewise.
39509         * tests/test-hash.c: Likewise.
39510         * tests/test-i-ring.c: Likewise.
39511         * tests/test-iconv-utf.c: Likewise.
39512         * tests/test-iconv.c: Likewise.
39513         * tests/test-idpriv-drop.c: Likewise.
39514         * tests/test-idpriv-droptemp.c: Likewise.
39515         * tests/test-inet_ntop.c: Likewise.
39516         * tests/test-inet_pton.c: Likewise.
39517         * tests/test-isblank.c: Likewise.
39518         * tests/test-isfinite.c: Likewise.
39519         * tests/test-isinf.c: Likewise.
39520         * tests/test-isnan.c: Likewise.
39521         * tests/test-isnand.h: Likewise.
39522         * tests/test-isnanf.h: Likewise.
39523         * tests/test-isnanl.h: Likewise.
39524         * tests/test-lchown.c: Likewise.
39525         * tests/test-ldexpl.c: Likewise.
39526         * tests/test-link.c: Likewise.
39527         * tests/test-linkat.c: Likewise.
39528         * tests/test-linked_list.c: Likewise.
39529         * tests/test-linkedhash_list.c: Likewise.
39530         * tests/test-localename.c: Likewise.
39531         * tests/test-lseek.c: Likewise.
39532         * tests/test-lstat.c: Likewise.
39533         * tests/test-mbmemcasecmp.c: Likewise.
39534         * tests/test-mbmemcasecoll.c: Likewise.
39535         * tests/test-mbrtowc.c: Likewise.
39536         * tests/test-mbscasecmp.c: Likewise.
39537         * tests/test-mbscasestr1.c: Likewise.
39538         * tests/test-mbscasestr2.c: Likewise.
39539         * tests/test-mbscasestr3.c: Likewise.
39540         * tests/test-mbscasestr4.c: Likewise.
39541         * tests/test-mbschr.c: Likewise.
39542         * tests/test-mbscspn.c: Likewise.
39543         * tests/test-mbsinit.c: Likewise.
39544         * tests/test-mbsncasecmp.c: Likewise.
39545         * tests/test-mbsnrtowcs.c: Likewise.
39546         * tests/test-mbspbrk.c: Likewise.
39547         * tests/test-mbspcasecmp.c: Likewise.
39548         * tests/test-mbsrchr.c: Likewise.
39549         * tests/test-mbsrtowcs.c: Likewise.
39550         * tests/test-mbsspn.c: Likewise.
39551         * tests/test-mbsstr1.c: Likewise.
39552         * tests/test-mbsstr2.c: Likewise.
39553         * tests/test-mbsstr3.c: Likewise.
39554         * tests/test-memchr.c: Likewise.
39555         * tests/test-memchr2.c: Likewise.
39556         * tests/test-memcmp.c: Likewise.
39557         * tests/test-memmem.c: Likewise.
39558         * tests/test-memrchr.c: Likewise.
39559         * tests/test-mkdir.c: Likewise.
39560         * tests/test-mkdirat.c: Likewise.
39561         * tests/test-mkfifo.c: Likewise.
39562         * tests/test-mkfifoat.c: Likewise.
39563         * tests/test-mknod.c: Likewise.
39564         * tests/test-nanosleep.c: Likewise.
39565         * tests/test-nl_langinfo.c: Likewise.
39566         * tests/test-obstack-printf.c: Likewise.
39567         * tests/test-open.c: Likewise.
39568         * tests/test-openat.c: Likewise.
39569         * tests/test-pipe-filter-gi1.c: Likewise.
39570         * tests/test-pipe-filter-gi2-main.c: Likewise.
39571         * tests/test-pipe-filter-ii1.c: Likewise.
39572         * tests/test-pipe-filter-ii2-main.c: Likewise.
39573         * tests/test-pipe2.c: Likewise.
39574         * tests/test-popen.h: Likewise.
39575         * tests/test-posixtm.c: Likewise.
39576         * tests/test-pread.c: Likewise.
39577         * tests/test-printf-frexp.c: Likewise.
39578         * tests/test-printf-frexpl.c: Likewise.
39579         * tests/test-printf-posix.c: Likewise.
39580         * tests/test-priv-set.c: Likewise.
39581         * tests/test-quotearg.c: Likewise.
39582         * tests/test-random_r.c: Likewise.
39583         * tests/test-rawmemchr.c: Likewise.
39584         * tests/test-rbtree_list.c: Likewise.
39585         * tests/test-rbtree_oset.c: Likewise.
39586         * tests/test-rbtreehash_list.c: Likewise.
39587         * tests/test-readlink.c: Likewise.
39588         * tests/test-remove.c: Likewise.
39589         * tests/test-rename.c: Likewise.
39590         * tests/test-renameat.c: Likewise.
39591         * tests/test-rmdir.c: Likewise.
39592         * tests/test-round1.c: Likewise.
39593         * tests/test-roundf1.c: Likewise.
39594         * tests/test-roundl.c: Likewise.
39595         * tests/test-safe-alloc.c: Likewise.
39596         * tests/test-sameacls.c: Likewise.
39597         * tests/test-set-mode-acl.c: Likewise.
39598         * tests/test-setenv.c: Likewise.
39599         * tests/test-sigaction.c: Likewise.
39600         * tests/test-signbit.c: Likewise.
39601         * tests/test-sleep.c: Likewise.
39602         * tests/test-snprintf-posix.c: Likewise.
39603         * tests/test-snprintf.c: Likewise.
39604         * tests/test-sprintf-posix.c: Likewise.
39605         * tests/test-stat-time.c: Likewise.
39606         * tests/test-stat.c: Likewise.
39607         * tests/test-strcasestr.c: Likewise.
39608         * tests/test-strchrnul.c: Likewise.
39609         * tests/test-strerror.c: Likewise.
39610         * tests/test-striconv.c: Likewise.
39611         * tests/test-striconveh.c: Likewise.
39612         * tests/test-striconveha.c: Likewise.
39613         * tests/test-strsignal.c: Likewise.
39614         * tests/test-strstr.c: Likewise.
39615         * tests/test-strtod.c: Likewise.
39616         * tests/test-strverscmp.c: Likewise.
39617         * tests/test-symlink.c: Likewise.
39618         * tests/test-symlinkat.c: Likewise.
39619         * tests/test-trunc1.c: Likewise.
39620         * tests/test-trunc2.c: Likewise.
39621         * tests/test-truncf1.c: Likewise.
39622         * tests/test-truncf2.c: Likewise.
39623         * tests/test-truncl.c: Likewise.
39624         * tests/test-uname.c: Likewise.
39625         * tests/test-unlink.c: Likewise.
39626         * tests/test-unlinkat.c: Likewise.
39627         * tests/test-unsetenv.c: Likewise.
39628         * tests/test-usleep.c: Likewise.
39629         * tests/test-utimens.c: Likewise.
39630         * tests/test-utimensat.c: Likewise.
39631         * tests/test-vasnprintf-posix.c: Likewise.
39632         * tests/test-vasnprintf-posix2.c: Likewise.
39633         * tests/test-vasnprintf.c: Likewise.
39634         * tests/test-vasprintf-posix.c: Likewise.
39635         * tests/test-vasprintf.c: Likewise.
39636         * tests/test-vdprintf-posix.c: Likewise.
39637         * tests/test-vfprintf-posix.c: Likewise.
39638         * tests/test-vprintf-posix.c: Likewise.
39639         * tests/test-vsnprintf-posix.c: Likewise.
39640         * tests/test-vsnprintf.c: Likewise.
39641         * tests/test-vsprintf-posix.c: Likewise.
39642         * tests/test-wcrtomb.c: Likewise.
39643         * tests/test-wcsnrtombs.c: Likewise.
39644         * tests/test-wcsrtombs.c: Likewise.
39645         * tests/test-wctype.c: Likewise.
39646         * tests/test-wcwidth.c: Likewise.
39647         * tests/test-xfprintf-posix.c: Likewise.
39648         * tests/test-xmemdup0.c: Likewise.
39649         * tests/test-xprintf-posix.c: Likewise.
39650         * tests/test-xvasprintf.c: Likewise.
39651         * tests/unicase/test-locale-language.c: Likewise.
39652         * tests/unicase/test-mapping-part1.h: Likewise.
39653         * tests/unicase/test-predicate-part1.h: Likewise.
39654         * tests/unicase/test-u8-casecmp.c: Likewise.
39655         * tests/unicase/test-u8-casecoll.c: Likewise.
39656         * tests/unicase/test-u8-casefold.c: Likewise.
39657         * tests/unicase/test-u8-is-cased.c: Likewise.
39658         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39659         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39660         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39661         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39662         * tests/unicase/test-u8-tolower.c: Likewise.
39663         * tests/unicase/test-u8-totitle.c: Likewise.
39664         * tests/unicase/test-u8-toupper.c: Likewise.
39665         * tests/unicase/test-u16-casecmp.c: Likewise.
39666         * tests/unicase/test-u16-casecoll.c: Likewise.
39667         * tests/unicase/test-u16-casefold.c: Likewise.
39668         * tests/unicase/test-u16-is-cased.c: Likewise.
39669         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39670         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39671         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39672         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39673         * tests/unicase/test-u16-tolower.c: Likewise.
39674         * tests/unicase/test-u16-totitle.c: Likewise.
39675         * tests/unicase/test-u16-toupper.c: Likewise.
39676         * tests/unicase/test-u32-casecmp.c: Likewise.
39677         * tests/unicase/test-u32-casecoll.c: Likewise.
39678         * tests/unicase/test-u32-casefold.c: Likewise.
39679         * tests/unicase/test-u32-is-cased.c: Likewise.
39680         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39681         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39682         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39683         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39684         * tests/unicase/test-u32-tolower.c: Likewise.
39685         * tests/unicase/test-u32-totitle.c: Likewise.
39686         * tests/unicase/test-u32-toupper.c: Likewise.
39687         * tests/unicase/test-ulc-casecmp.c: Likewise.
39688         * tests/unicase/test-ulc-casecoll.c: Likewise.
39689         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39690         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39691         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39692         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39693         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39694         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39695         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39696         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39697         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39698         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39699         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39700         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39701         * tests/unictype/test-bidi_byname.c: Likewise.
39702         * tests/unictype/test-bidi_name.c: Likewise.
39703         * tests/unictype/test-bidi_of.c: Likewise.
39704         * tests/unictype/test-bidi_test.c: Likewise.
39705         * tests/unictype/test-block_list.c: Likewise.
39706         * tests/unictype/test-block_of.c: Likewise.
39707         * tests/unictype/test-block_test.c: Likewise.
39708         * tests/unictype/test-categ_and.c: Likewise.
39709         * tests/unictype/test-categ_and_not.c: Likewise.
39710         * tests/unictype/test-categ_byname.c: Likewise.
39711         * tests/unictype/test-categ_name.c: Likewise.
39712         * tests/unictype/test-categ_none.c: Likewise.
39713         * tests/unictype/test-categ_of.c: Likewise.
39714         * tests/unictype/test-categ_or.c: Likewise.
39715         * tests/unictype/test-categ_test_withtable.c: Likewise.
39716         * tests/unictype/test-combining.c: Likewise.
39717         * tests/unictype/test-decdigit.c: Likewise.
39718         * tests/unictype/test-digit.c: Likewise.
39719         * tests/unictype/test-mirror.c: Likewise.
39720         * tests/unictype/test-numeric.c: Likewise.
39721         * tests/unictype/test-pr_byname.c: Likewise.
39722         * tests/unictype/test-pr_test.c: Likewise.
39723         * tests/unictype/test-predicate-part1.h: Likewise.
39724         * tests/unictype/test-scripts.c: Likewise.
39725         * tests/unictype/test-sy_c_ident.c: Likewise.
39726         * tests/unictype/test-sy_java_ident.c: Likewise.
39727         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39728         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39729         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39730         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39731         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39732         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39733         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39734         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39735         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39736         * tests/uninorm/test-compat-decomposition.c: Likewise.
39737         * tests/uninorm/test-composition.c: Likewise.
39738         * tests/uninorm/test-decomposing-form.c: Likewise.
39739         * tests/uninorm/test-decomposition.c: Likewise.
39740         * tests/uninorm/test-u8-nfc.c: Likewise.
39741         * tests/uninorm/test-u8-nfd.c: Likewise.
39742         * tests/uninorm/test-u8-nfkc.c: Likewise.
39743         * tests/uninorm/test-u8-nfkd.c: Likewise.
39744         * tests/uninorm/test-u8-normcmp.c: Likewise.
39745         * tests/uninorm/test-u8-normcoll.c: Likewise.
39746         * tests/uninorm/test-u16-nfc.c: Likewise.
39747         * tests/uninorm/test-u16-nfd.c: Likewise.
39748         * tests/uninorm/test-u16-nfkc.c: Likewise.
39749         * tests/uninorm/test-u16-nfkd.c: Likewise.
39750         * tests/uninorm/test-u16-normcmp.c: Likewise.
39751         * tests/uninorm/test-u16-normcoll.c: Likewise.
39752         * tests/uninorm/test-u32-nfc.c: Likewise.
39753         * tests/uninorm/test-u32-nfd.c: Likewise.
39754         * tests/uninorm/test-u32-nfkc.c: Likewise.
39755         * tests/uninorm/test-u32-nfkd.c: Likewise.
39756         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39757         * tests/uninorm/test-u32-normcmp.c: Likewise.
39758         * tests/uninorm/test-u32-normcoll.c: Likewise.
39759         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39760         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39761         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39762         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39763         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39764         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39765         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39766         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39767         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39768         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39769         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39770         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39771         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39772         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39773         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39774         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39775         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39776         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39777         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39778         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39779         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39780         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39781         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39782         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39783         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39784         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39785         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39786         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39787         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39788         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39789         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39790         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39791         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39792         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39793         * tests/uniwidth/test-u8-width.c: Likewise.
39794         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39795         * tests/uniwidth/test-u16-width.c: Likewise.
39796         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39797         * tests/uniwidth/test-u32-width.c: Likewise.
39798         * tests/uniwidth/test-uc_width.c: Likewise.
39799         * tests/uniwidth/test-uc_width2.c: Likewise.
39800         * modules/acl-tests (Files): Add tests/macros.h.
39801         * modules/areadlink-tests (Files): Likewise.
39802         * modules/areadlink-with-size-tests (Files): Likewise.
39803         * modules/areadlinkat-tests (Files): Likewise.
39804         * modules/areadlinkat-with-size-tests (Files): Likewise.
39805         * modules/argmatch-tests (Files): Likewise.
39806         * modules/argv-iter-tests (Files): Likewise.
39807         * modules/array-list-tests (Files): Likewise.
39808         * modules/array-mergesort-tests (Files): Likewise.
39809         * modules/array-oset-tests (Files): Likewise.
39810         * modules/avltree-list-tests (Files): Likewise.
39811         * modules/avltree-oset-tests (Files): Likewise.
39812         * modules/avltreehash-list-tests (Files): Likewise.
39813         * modules/base64-tests (Files): Likewise.
39814         * modules/binary-io-tests (Files): Likewise.
39815         * modules/bitrotate-tests (Files): Likewise.
39816         * modules/btowc-tests (Files): Likewise.
39817         * modules/byteswap-tests (Files): Likewise.
39818         * modules/c-ctype-tests (Files): Likewise.
39819         * modules/c-stack-tests (Files): Likewise.
39820         * modules/c-strcase-tests (Files): Likewise.
39821         * modules/c-strcasestr-tests (Files): Likewise.
39822         * modules/c-strstr-tests (Files): Likewise.
39823         * modules/canonicalize-lgpl-tests (Files): Likewise.
39824         * modules/canonicalize-tests (Files): Likewise.
39825         * modules/carray-list-tests (Files): Likewise.
39826         * modules/ceilf-tests (Files): Likewise.
39827         * modules/ceill-tests (Files): Likewise.
39828         * modules/chown-tests (Files): Likewise.
39829         * modules/cloexec-tests (Files): Likewise.
39830         * modules/copy-file-tests (Files): Likewise.
39831         * modules/count-one-bits-tests (Files): Likewise.
39832         * modules/dprintf-posix-tests (Files): Likewise.
39833         * modules/dup2-tests (Files): Likewise.
39834         * modules/dup3-tests (Files): Likewise.
39835         * modules/duplocale-tests (Files): Likewise.
39836         * modules/fbufmode-tests (Files): Likewise.
39837         * modules/fchdir-tests (Files): Likewise.
39838         * modules/fcntl-safer-tests (Files): Likewise.
39839         * modules/fcntl-tests (Files): Likewise.
39840         * modules/fdopendir-tests (Files): Likewise.
39841         * modules/fdutimensat-tests (Files): Likewise.
39842         * modules/fflush-tests (Files): Likewise.
39843         * modules/filevercmp-tests (Files): Likewise.
39844         * modules/flock-tests (Files): Likewise.
39845         * modules/floorf-tests (Files): Likewise.
39846         * modules/floorl-tests (Files): Likewise.
39847         * modules/fnmatch-tests (Files): Likewise.
39848         * modules/fopen-safer-tests (Files): Likewise.
39849         * modules/fopen-tests (Files): Likewise.
39850         * modules/fpending-tests (Files): Likewise.
39851         * modules/fprintf-posix-tests (Files): Likewise.
39852         * modules/fpurge-tests (Files): Likewise.
39853         * modules/freadable-tests (Files): Likewise.
39854         * modules/freadahead-tests (Files): Likewise.
39855         * modules/freading-tests (Files): Likewise.
39856         * modules/freadptr-tests (Files): Likewise.
39857         * modules/freadseek-tests (Files): Likewise.
39858         * modules/freopen-tests (Files): Likewise.
39859         * modules/frexp-nolibm-tests (Files): Likewise.
39860         * modules/frexp-tests (Files): Likewise.
39861         * modules/frexpl-nolibm-tests (Files): Likewise.
39862         * modules/frexpl-tests (Files): Likewise.
39863         * modules/fseek-tests (Files): Likewise.
39864         * modules/fseeko-tests (Files): Likewise.
39865         * modules/fstrcmp-tests (Files): Likewise.
39866         * modules/fsync-tests (Files): Likewise.
39867         * modules/ftell-tests (Files): Likewise.
39868         * modules/ftello-tests (Files): Likewise.
39869         * modules/func-tests (Files): Likewise.
39870         * modules/futimens-tests (Files): Likewise.
39871         * modules/fwritable-tests (Files): Likewise.
39872         * modules/fwriting-tests (Files): Likewise.
39873         * modules/getcwd-tests (Files): Likewise.
39874         * modules/getdate-tests (Files): Likewise.
39875         * modules/getdelim-tests (Files): Likewise.
39876         * modules/getdtablesize-tests (Files): Likewise.
39877         * modules/getgroups-tests (Files): Likewise.
39878         * modules/getline-tests (Files): Likewise.
39879         * modules/getndelim2-tests (Files): Likewise.
39880         * modules/glob-tests (Files): Likewise.
39881         * modules/hash-tests (Files): Likewise.
39882         * modules/i-ring-tests (Files): Likewise.
39883         * modules/iconv-tests (Files): Likewise.
39884         * modules/iconv_open-utf-tests (Files): Likewise.
39885         * modules/idpriv-drop-tests (Files): Likewise.
39886         * modules/idpriv-droptemp-tests (Files): Likewise.
39887         * modules/inet_ntop-tests (Files): Likewise.
39888         * modules/inet_pton-tests (Files): Likewise.
39889         * modules/isblank-tests (Files): Likewise.
39890         * modules/isfinite-tests (Files): Likewise.
39891         * modules/isinf-tests (Files): Likewise.
39892         * modules/isnan-tests (Files): Likewise.
39893         * modules/isnand-nolibm-tests (Files): Likewise.
39894         * modules/isnand-tests (Files): Likewise.
39895         * modules/isnanf-nolibm-tests (Files): Likewise.
39896         * modules/isnanf-tests (Files): Likewise.
39897         * modules/isnanl-nolibm-tests (Files): Likewise.
39898         * modules/isnanl-tests (Files): Likewise.
39899         * modules/lchown-tests (Files): Likewise.
39900         * modules/ldexpl-tests (Files): Likewise.
39901         * modules/link-tests (Files): Likewise.
39902         * modules/linkat-tests (Files): Likewise.
39903         * modules/linked-list-tests (Files): Likewise.
39904         * modules/linkedhash-list-tests (Files): Likewise.
39905         * modules/localename-tests (Files): Likewise.
39906         * modules/lseek-tests (Files): Likewise.
39907         * modules/lstat-tests (Files): Likewise.
39908         * modules/mbmemcasecmp-tests (Files): Likewise.
39909         * modules/mbmemcasecoll-tests (Files): Likewise.
39910         * modules/mbrtowc-tests (Files): Likewise.
39911         * modules/mbscasecmp-tests (Files): Likewise.
39912         * modules/mbscasestr-tests (Files): Likewise.
39913         * modules/mbschr-tests (Files): Likewise.
39914         * modules/mbscspn-tests (Files): Likewise.
39915         * modules/mbsinit-tests (Files): Likewise.
39916         * modules/mbsncasecmp-tests (Files): Likewise.
39917         * modules/mbsnrtowcs-tests (Files): Likewise.
39918         * modules/mbspbrk-tests (Files): Likewise.
39919         * modules/mbspcasecmp-tests (Files): Likewise.
39920         * modules/mbsrchr-tests (Files): Likewise.
39921         * modules/mbsrtowcs-tests (Files): Likewise.
39922         * modules/mbsspn-tests (Files): Likewise.
39923         * modules/mbsstr-tests (Files): Likewise.
39924         * modules/memchr-tests (Files): Likewise.
39925         * modules/memchr2-tests (Files): Likewise.
39926         * modules/memcmp-tests (Files): Likewise.
39927         * modules/memmem-tests (Files): Likewise.
39928         * modules/memrchr-tests (Files): Likewise.
39929         * modules/mkdir-tests (Files): Likewise.
39930         * modules/mkfifo-tests (Files): Likewise.
39931         * modules/mkfifoat-tests (Files): Likewise.
39932         * modules/mknod-tests (Files): Likewise.
39933         * modules/nanosleep-tests (Files): Likewise.
39934         * modules/nl_langinfo-tests (Files): Likewise.
39935         * modules/obstack-printf-tests (Files): Likewise.
39936         * modules/open-tests (Files): Likewise.
39937         * modules/openat-tests (Files): Likewise.
39938         * modules/pipe-filter-gi-tests (Files): Likewise.
39939         * modules/pipe-filter-ii-tests (Files): Likewise.
39940         * modules/pipe2-tests (Files): Likewise.
39941         * modules/popen-safer-tests (Files): Likewise.
39942         * modules/popen-tests (Files): Likewise.
39943         * modules/posixtm-tests (Files): Likewise.
39944         * modules/pread-tests (Files): Likewise.
39945         * modules/printf-frexp-tests (Files): Likewise.
39946         * modules/printf-frexpl-tests (Files): Likewise.
39947         * modules/printf-posix-tests (Files): Likewise.
39948         * modules/priv-set-tests (Files): Likewise.
39949         * modules/quotearg-tests (Files): Likewise.
39950         * modules/random_r-tests (Files): Likewise.
39951         * modules/rawmemchr-tests (Files): Likewise.
39952         * modules/rbtree-list-tests (Files): Likewise.
39953         * modules/rbtree-oset-tests (Files): Likewise.
39954         * modules/rbtreehash-list-tests (Files): Likewise.
39955         * modules/readlink-tests (Files): Likewise.
39956         * modules/remove-tests (Files): Likewise.
39957         * modules/rename-tests (Files): Likewise.
39958         * modules/renameat-tests (Files): Likewise.
39959         * modules/rmdir-tests (Files): Likewise.
39960         * modules/round-tests (Files): Likewise.
39961         * modules/roundf-tests (Files): Likewise.
39962         * modules/roundl-tests (Files): Likewise.
39963         * modules/safe-alloc-tests (Files): Likewise.
39964         * modules/setenv-tests (Files): Likewise.
39965         * modules/sigaction-tests (Files): Likewise.
39966         * modules/signbit-tests (Files): Likewise.
39967         * modules/sleep-tests (Files): Likewise.
39968         * modules/snprintf-posix-tests (Files): Likewise.
39969         * modules/snprintf-tests (Files): Likewise.
39970         * modules/sprintf-posix-tests (Files): Likewise.
39971         * modules/stat-tests (Files): Likewise.
39972         * modules/stat-time-tests (Files): Likewise.
39973         * modules/strcasestr-tests (Files): Likewise.
39974         * modules/strchrnul-tests (Files): Likewise.
39975         * modules/strerror-tests (Files): Likewise.
39976         * modules/striconv-tests (Files): Likewise.
39977         * modules/striconveh-tests (Files): Likewise.
39978         * modules/striconveha-tests (Files): Likewise.
39979         * modules/strsignal-tests (Files): Likewise.
39980         * modules/strstr-tests (Files): Likewise.
39981         * modules/strtod-tests (Files): Likewise.
39982         * modules/strverscmp-tests (Files): Likewise.
39983         * modules/symlink-tests (Files): Likewise.
39984         * modules/symlinkat-tests (Files): Likewise.
39985         * modules/trunc-tests (Files): Likewise.
39986         * modules/truncf-tests (Files): Likewise.
39987         * modules/truncl-tests (Files): Likewise.
39988         * modules/uname-tests (Files): Likewise.
39989         * modules/unicase/cased-tests (Files): Likewise.
39990         * modules/unicase/ignorable-tests (Files): Likewise.
39991         * modules/unicase/locale-language-tests (Files): Likewise.
39992         * modules/unicase/tolower-tests (Files): Likewise.
39993         * modules/unicase/totitle-tests (Files): Likewise.
39994         * modules/unicase/toupper-tests (Files): Likewise.
39995         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39996         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39997         * modules/unicase/u8-casefold-tests (Files): Likewise.
39998         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39999         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40000         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40001         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40002         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40003         * modules/unicase/u8-tolower-tests (Files): Likewise.
40004         * modules/unicase/u8-totitle-tests (Files): Likewise.
40005         * modules/unicase/u8-toupper-tests (Files): Likewise.
40006         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40007         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40008         * modules/unicase/u16-casefold-tests (Files): Likewise.
40009         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40010         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40011         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40012         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40013         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40014         * modules/unicase/u16-tolower-tests (Files): Likewise.
40015         * modules/unicase/u16-totitle-tests (Files): Likewise.
40016         * modules/unicase/u16-toupper-tests (Files): Likewise.
40017         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40018         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40019         * modules/unicase/u32-casefold-tests (Files): Likewise.
40020         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40021         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40022         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40023         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40024         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40025         * modules/unicase/u32-tolower-tests (Files): Likewise.
40026         * modules/unicase/u32-totitle-tests (Files): Likewise.
40027         * modules/unicase/u32-toupper-tests (Files): Likewise.
40028         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40029         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40030         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40031         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40032         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40033         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40034         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40035         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40036         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40037         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40038         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40039         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40040         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40041         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40042         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40043         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40044         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40045         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40046         * modules/unictype/block-list-tests (Files): Likewise.
40047         * modules/unictype/block-of-tests (Files): Likewise.
40048         * modules/unictype/block-test-tests (Files): Likewise.
40049         * modules/unictype/category-C-tests (Files): Likewise.
40050         * modules/unictype/category-Cc-tests (Files): Likewise.
40051         * modules/unictype/category-Cf-tests (Files): Likewise.
40052         * modules/unictype/category-Cn-tests (Files): Likewise.
40053         * modules/unictype/category-Co-tests (Files): Likewise.
40054         * modules/unictype/category-Cs-tests (Files): Likewise.
40055         * modules/unictype/category-L-tests (Files): Likewise.
40056         * modules/unictype/category-Ll-tests (Files): Likewise.
40057         * modules/unictype/category-Lm-tests (Files): Likewise.
40058         * modules/unictype/category-Lo-tests (Files): Likewise.
40059         * modules/unictype/category-Lt-tests (Files): Likewise.
40060         * modules/unictype/category-Lu-tests (Files): Likewise.
40061         * modules/unictype/category-M-tests (Files): Likewise.
40062         * modules/unictype/category-Mc-tests (Files): Likewise.
40063         * modules/unictype/category-Me-tests (Files): Likewise.
40064         * modules/unictype/category-Mn-tests (Files): Likewise.
40065         * modules/unictype/category-N-tests (Files): Likewise.
40066         * modules/unictype/category-Nd-tests (Files): Likewise.
40067         * modules/unictype/category-Nl-tests (Files): Likewise.
40068         * modules/unictype/category-No-tests (Files): Likewise.
40069         * modules/unictype/category-P-tests (Files): Likewise.
40070         * modules/unictype/category-Pc-tests (Files): Likewise.
40071         * modules/unictype/category-Pd-tests (Files): Likewise.
40072         * modules/unictype/category-Pe-tests (Files): Likewise.
40073         * modules/unictype/category-Pf-tests (Files): Likewise.
40074         * modules/unictype/category-Pi-tests (Files): Likewise.
40075         * modules/unictype/category-Po-tests (Files): Likewise.
40076         * modules/unictype/category-Ps-tests (Files): Likewise.
40077         * modules/unictype/category-S-tests (Files): Likewise.
40078         * modules/unictype/category-Sc-tests (Files): Likewise.
40079         * modules/unictype/category-Sk-tests (Files): Likewise.
40080         * modules/unictype/category-Sm-tests (Files): Likewise.
40081         * modules/unictype/category-So-tests (Files): Likewise.
40082         * modules/unictype/category-Z-tests (Files): Likewise.
40083         * modules/unictype/category-Zl-tests (Files): Likewise.
40084         * modules/unictype/category-Zp-tests (Files): Likewise.
40085         * modules/unictype/category-Zs-tests (Files): Likewise.
40086         * modules/unictype/category-and-not-tests (Files): Likewise.
40087         * modules/unictype/category-and-tests (Files): Likewise.
40088         * modules/unictype/category-byname-tests (Files): Likewise.
40089         * modules/unictype/category-name-tests (Files): Likewise.
40090         * modules/unictype/category-none-tests (Files): Likewise.
40091         * modules/unictype/category-of-tests (Files): Likewise.
40092         * modules/unictype/category-or-tests (Files): Likewise.
40093         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40094         * modules/unictype/combining-class-tests (Files): Likewise.
40095         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40096         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40097         * modules/unictype/ctype-blank-tests (Files): Likewise.
40098         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40099         * modules/unictype/ctype-digit-tests (Files): Likewise.
40100         * modules/unictype/ctype-graph-tests (Files): Likewise.
40101         * modules/unictype/ctype-lower-tests (Files): Likewise.
40102         * modules/unictype/ctype-print-tests (Files): Likewise.
40103         * modules/unictype/ctype-punct-tests (Files): Likewise.
40104         * modules/unictype/ctype-space-tests (Files): Likewise.
40105         * modules/unictype/ctype-upper-tests (Files): Likewise.
40106         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40107         * modules/unictype/decimal-digit-tests (Files): Likewise.
40108         * modules/unictype/digit-tests (Files): Likewise.
40109         * modules/unictype/mirror-tests (Files): Likewise.
40110         * modules/unictype/numeric-tests (Files): Likewise.
40111         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40112         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40113         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40114         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40115         Likewise.
40116         * modules/unictype/property-bidi-block-separator-tests (Files):
40117         Likewise.
40118         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40119         Likewise.
40120         * modules/unictype/property-bidi-common-separator-tests (Files):
40121         Likewise.
40122         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40123         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40124         Likewise.
40125         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40126         Likewise.
40127         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40128         Likewise.
40129         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40130         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40131         Likewise.
40132         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40133         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40134         Likewise.
40135         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40136         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40137         * modules/unictype/property-bidi-segment-separator-tests (Files):
40138         Likewise.
40139         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40140         * modules/unictype/property-byname-tests (Files): Likewise.
40141         * modules/unictype/property-combining-tests (Files): Likewise.
40142         * modules/unictype/property-composite-tests (Files): Likewise.
40143         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40144         * modules/unictype/property-dash-tests (Files): Likewise.
40145         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40146         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40147         Likewise.
40148         * modules/unictype/property-deprecated-tests (Files): Likewise.
40149         * modules/unictype/property-diacritic-tests (Files): Likewise.
40150         * modules/unictype/property-extender-tests (Files): Likewise.
40151         * modules/unictype/property-format-control-tests (Files): Likewise.
40152         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40153         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40154         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40155         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40156         * modules/unictype/property-hyphen-tests (Files): Likewise.
40157         * modules/unictype/property-id-continue-tests (Files): Likewise.
40158         * modules/unictype/property-id-start-tests (Files): Likewise.
40159         * modules/unictype/property-ideographic-tests (Files): Likewise.
40160         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40161         * modules/unictype/property-ids-trinary-operator-tests (Files):
40162         Likewise.
40163         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40164         * modules/unictype/property-iso-control-tests (Files): Likewise.
40165         * modules/unictype/property-join-control-tests (Files): Likewise.
40166         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40167         * modules/unictype/property-line-separator-tests (Files): Likewise.
40168         * modules/unictype/property-logical-order-exception-tests (Files):
40169         Likewise.
40170         * modules/unictype/property-lowercase-tests (Files): Likewise.
40171         * modules/unictype/property-math-tests (Files): Likewise.
40172         * modules/unictype/property-non-break-tests (Files): Likewise.
40173         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40174         * modules/unictype/property-numeric-tests (Files): Likewise.
40175         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40176         * modules/unictype/property-other-default-ignorable-code-point-tests
40177         (Files): Likewise.
40178         * modules/unictype/property-other-grapheme-extend-tests (Files):
40179         Likewise.
40180         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40181         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40182         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40183         * modules/unictype/property-other-math-tests (Files): Likewise.
40184         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40185         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40186         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40187         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40188         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40189         * modules/unictype/property-private-use-tests (Files): Likewise.
40190         * modules/unictype/property-punctuation-tests (Files): Likewise.
40191         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40192         * modules/unictype/property-radical-tests (Files): Likewise.
40193         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40194         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40195         * modules/unictype/property-space-tests (Files): Likewise.
40196         * modules/unictype/property-terminal-punctuation-tests (Files):
40197         Likewise.
40198         * modules/unictype/property-test-tests (Files): Likewise.
40199         * modules/unictype/property-titlecase-tests (Files): Likewise.
40200         * modules/unictype/property-unassigned-code-value-tests (Files):
40201         Likewise.
40202         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40203         * modules/unictype/property-uppercase-tests (Files): Likewise.
40204         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40205         * modules/unictype/property-white-space-tests (Files): Likewise.
40206         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40207         * modules/unictype/property-xid-start-tests (Files): Likewise.
40208         * modules/unictype/property-zero-width-tests (Files): Likewise.
40209         * modules/unictype/scripts-tests (Files): Likewise.
40210         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40211         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40212         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40213         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40214         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40215         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40216         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40217         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40218         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40219         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40220         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40221         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40222         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40223         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40224         * modules/uninorm/composition-tests (Files): Likewise.
40225         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40226         * modules/uninorm/decomposition-tests (Files): Likewise.
40227         * modules/uninorm/filter-tests (Files): Likewise.
40228         * modules/uninorm/nfc-tests (Files): Likewise.
40229         * modules/uninorm/nfd-tests (Files): Likewise.
40230         * modules/uninorm/nfkc-tests (Files): Likewise.
40231         * modules/uninorm/nfkd-tests (Files): Likewise.
40232         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40233         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40234         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40235         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40236         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40237         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40238         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40239         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40240         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40241         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40242         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40243         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40244         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40245         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40246         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40247         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40248         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40249         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40250         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40251         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40252         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40253         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40254         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40255         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40256         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40257         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40258         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40259         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40260         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40261         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40262         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40263         * modules/uniwidth/u8-width-tests (Files): Likewise.
40264         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40265         * modules/uniwidth/u16-width-tests (Files): Likewise.
40266         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40267         * modules/uniwidth/u32-width-tests (Files): Likewise.
40268         * modules/uniwidth/width-tests (Files): Likewise.
40269         * modules/unlink-tests (Files): Likewise.
40270         * modules/unsetenv-tests (Files): Likewise.
40271         * modules/usleep-tests (Files): Likewise.
40272         * modules/utimens-tests (Files): Likewise.
40273         * modules/utimensat-tests (Files): Likewise.
40274         * modules/vasnprintf-posix-tests (Files): Likewise.
40275         * modules/vasnprintf-tests (Files): Likewise.
40276         * modules/vasprintf-posix-tests (Files): Likewise.
40277         * modules/vasprintf-tests (Files): Likewise.
40278         * modules/vdprintf-posix-tests (Files): Likewise.
40279         * modules/vfprintf-posix-tests (Files): Likewise.
40280         * modules/vprintf-posix-tests (Files): Likewise.
40281         * modules/vsnprintf-posix-tests (Files): Likewise.
40282         * modules/vsnprintf-tests (Files): Likewise.
40283         * modules/vsprintf-posix-tests (Files): Likewise.
40284         * modules/wcrtomb-tests (Files): Likewise.
40285         * modules/wcsnrtombs-tests (Files): Likewise.
40286         * modules/wcsrtombs-tests (Files): Likewise.
40287         * modules/wctype-tests (Files): Likewise.
40288         * modules/wcwidth-tests (Files): Likewise.
40289         * modules/xmemdup0-tests (Files): Likewise.
40290         * modules/xprintf-posix-tests (Files): Likewise.
40291         * modules/xvasprintf-tests (Files): Likewise.
40292
40293 2009-12-24  Eric Blake  <ebb9@byu.net>
40294
40295         test-nanosleep: fix typo
40296         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40297         patch.
40298         Reported by Bruno Haible.
40299
40300 2009-12-24  Bruno Haible  <bruno@clisp.org>
40301
40302         Reduce namespace pollution on glibc systems.
40303         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40304         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40305         systems.
40306         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40307         <getopt.h> on glibc systems.
40308         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40309         systems.
40310         * lib/fcntl.c: Include <unistd.h> here instead.
40311
40312 2009-12-24  Bruno Haible  <bruno@clisp.org>
40313
40314         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40315
40316 2009-12-24  Eric Blake  <ebb9@byu.net>
40317
40318         tests: add signature checks
40319         * tests/signature.h (SIGNATURE_CHECK): New file.
40320         * modules/atexit-tests (Files): Use it.
40321         * modules/btowc-tests (Files): Likewise.
40322         * modules/canonicalize-lgpl-tests (Files): Likewise.
40323         * modules/ceilf-tests (Files): Likewise.
40324         * modules/ceill-tests (Files): Likewise.
40325         * modules/chown-tests (Files): Likewise.
40326         * modules/dprintf-posix-tests (Files): Likewise.
40327         * modules/dup2-tests (Files): Likewise.
40328         * modules/dup3-tests (Files): Likewise.
40329         * modules/duplocale-tests (Files): Likewise.
40330         * modules/fchdir-tests (Files): Likewise.
40331         * modules/fcntl-tests (Files): Likewise.
40332         * modules/fdopendir-tests (Files): Likewise.
40333         * modules/fflush-tests (Files): Likewise.
40334         * modules/flock-tests (Files): Likewise.
40335         * modules/floorf-tests (Files): Likewise.
40336         * modules/floorl-tests (Files): Likewise.
40337         * modules/fnmatch-tests (Files): Likewise.
40338         * modules/fopen-tests (Files): Likewise.
40339         * modules/fprintf-posix-tests (Files): Likewise.
40340         * modules/freopen-tests (Files): Likewise.
40341         * modules/frexp-nolibm-tests (Files): Likewise.
40342         * modules/frexp-tests (Files): Likewise.
40343         * modules/frexpl-nolibm-tests (Files): Likewise.
40344         * modules/frexpl-tests (Files): Likewise.
40345         * modules/fseek-tests (Files): Likewise.
40346         * modules/fseeko-tests (Files): Likewise.
40347         * modules/fsync-tests (Files): Likewise.
40348         * modules/ftell-tests (Files): Likewise.
40349         * modules/ftello-tests (Files): Likewise.
40350         * modules/futimens-tests (Files): Likewise.
40351         * modules/getaddrinfo-tests (Files): Likewise.
40352         * modules/getcwd-tests (Files): Likewise.
40353         * modules/getdelim-tests (Files): Likewise.
40354         * modules/getdtablesize-tests (Files): Likewise.
40355         * modules/getgroups-tests (Files): Likewise.
40356         * modules/gethostname-tests (Files): Likewise.
40357         * modules/getline-tests (Files): Likewise.
40358         * modules/getopt-posix-tests (Files): Likewise.
40359         * modules/gettimeofday-tests (Files): Likewise.
40360         * modules/glob-tests (Files): Likewise.
40361         * modules/iconv-tests (Files): Likewise.
40362         * modules/inet_ntop-tests (Files): Likewise.
40363         * modules/inet_pton-tests (Files): Likewise.
40364         * modules/isblank-tests (Files): Likewise.
40365         * modules/lchown-tests (Files): Likewise.
40366         * modules/ldexpl-tests (Files): Likewise.
40367         * modules/link-tests (Files): Likewise.
40368         * modules/linkat-tests (Files): Likewise.
40369         * modules/lseek-tests (Files): Likewise.
40370         * modules/lstat-tests (Files): Likewise.
40371         * modules/mbrtowc-tests (Files): Likewise.
40372         * modules/mbsinit-tests (Files): Likewise.
40373         * modules/mbsnrtowcs-tests (Files): Likewise.
40374         * modules/mbsrtowcs-tests (Files): Likewise.
40375         * modules/memchr-tests (Files): Likewise.
40376         * modules/memcmp-tests (Files): Likewise.
40377         * modules/memmem-tests (Files): Likewise.
40378         * modules/memrchr-tests (Files): Likewise.
40379         * modules/mkdir-tests (Files): Likewise.
40380         * modules/mkfifo-tests (Files): Likewise.
40381         * modules/mkfifoat-tests (Files): Likewise.
40382         * modules/mknod-tests (Files): Likewise.
40383         * modules/nanosleep-tests (Files): Likewise.
40384         * modules/nl_langinfo-tests (Files): Likewise.
40385         * modules/obstack-printf-tests (Files): Likewise.
40386         * modules/open-tests (Files): Likewise.
40387         * modules/openat-tests (Files): Likewise.
40388         * modules/perror-tests (Files): Likewise.
40389         * modules/pipe2-tests (Files): Likewise.
40390         * modules/poll-tests (Files): Likewise.
40391         * modules/popen-tests (Files): Likewise.
40392         * modules/posix_spawn-tests (Files): Likewise.
40393         * modules/posix_spawnp-tests (Files): Likewise.
40394         * modules/pread-tests (Files): Likewise.
40395         * modules/printf-posix-tests (Files): Likewise.
40396         * modules/pty-tests (Files): Likewise.
40397         * modules/random_r-tests (Files): Likewise.
40398         * modules/rawmemchr-tests (Files): Likewise.
40399         * modules/readlink-tests (Files): Likewise.
40400         * modules/remove-tests (Files): Likewise.
40401         * modules/rename-tests (Files): Likewise.
40402         * modules/renameat-tests (Files): Likewise.
40403         * modules/rmdir-tests (Files): Likewise.
40404         * modules/round-tests (Files): Likewise.
40405         * modules/roundf-tests (Files): Likewise.
40406         * modules/roundl-tests (Files): Likewise.
40407         * modules/select-tests (Files): Likewise.
40408         * modules/setenv-tests (Files): Likewise.
40409         * modules/sigaction-tests (Files): Likewise.
40410         * modules/sleep-tests (Files): Likewise.
40411         * modules/snprintf-posix-tests (Files): Likewise.
40412         * modules/snprintf-tests (Files): Likewise.
40413         * modules/sprintf-posix-tests (Files): Likewise.
40414         * modules/stat-tests (Files): Likewise.
40415         * modules/strcasestr-tests (Files): Likewise.
40416         * modules/strchrnul-tests (Files): Likewise.
40417         * modules/strerror-tests (Files): Likewise.
40418         * modules/strsignal-tests (Files): Likewise.
40419         * modules/strstr-tests (Files): Likewise.
40420         * modules/strtod-tests (Files): Likewise.
40421         * modules/strverscmp-tests (Files): Likewise.
40422         * modules/symlink-tests (Files): Likewise.
40423         * modules/symlinkat-tests (Files): Likewise.
40424         * modules/times-tests (Files): Likewise.
40425         * modules/trunc-tests (Files): Likewise.
40426         * modules/truncf-tests (Files): Likewise.
40427         * modules/truncl-tests (Files): Likewise.
40428         * modules/tsearch-tests (Files): Likewise.
40429         * modules/uname-tests (Files): Likewise.
40430         * modules/unlink-tests (Files): Likewise.
40431         * modules/unsetenv-tests (Files): Likewise.
40432         * modules/usleep-tests (Files): Likewise.
40433         * modules/utimensat-tests (Files): Likewise.
40434         * modules/vasprintf-tests (Files): Likewise.
40435         * modules/vdprintf-posix-tests (Files): Likewise.
40436         * modules/vfprintf-posix-tests (Files): Likewise.
40437         * modules/vprintf-posix-tests (Files): Likewise.
40438         * modules/vsnprintf-posix-tests (Files): Likewise.
40439         * modules/vsnprintf-tests (Files): Likewise.
40440         * modules/vsprintf-posix-tests (Files): Likewise.
40441         * modules/wcrtomb-tests (Files): Likewise.
40442         * modules/wcsnrtombs-tests (Files): Likewise.
40443         * modules/wcsrtombs-tests (Files): Likewise.
40444         * modules/wcwidth-tests (Files): Likewise.
40445         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40446         * tests/test-isinf.c (isinf): Likewise.
40447         * tests/test-isnan.c (isnan): Likewise.
40448         * tests/test-signbit.c (signbit): Likewise.
40449         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40450         declaration, either as macro or with correct signature.
40451         (select): Ensure function under test is declared with correct
40452         signature in correct header.
40453         * tests/test-atexit.c (atexit): Likewise.
40454         * tests/test-btowc.c (btowc): Likewise.
40455         * tests/test-canonicalize-lgpl.c (realpath)
40456         (canonicalize_file_name): Likewise.
40457         * tests/test-ceilf1.c (ceilf): Likewise.
40458         * tests/test-ceill.c (ceill): Likewise.
40459         * tests/test-chown.c (chown): Likewise.
40460         * tests/test-dprintf-posix.c (dprintf): Likewise.
40461         * tests/test-dup2.c (dup2): Likewise.
40462         * tests/test-dup3.c (dup3): Likewise.
40463         * tests/test-duplocale.c (duplocale): Likewise.
40464         * tests/test-fchdir.c (fchdir): Likewise.
40465         * tests/test-fchownat.c (fchownat): Likewise.
40466         * tests/test-fcntl.c (fcntl): Likewise.
40467         * tests/test-fdopendir.c (fdopendir): Likewise.
40468         * tests/test-fflush.c (fflush): Likewise.
40469         * tests/test-flock.c (flock): Likewise.
40470         * tests/test-floorf1.c (floorf): Likewise.
40471         * tests/test-floorl.c (floorl): Likewise.
40472         * tests/test-fnmatch.c (fnmatch): Likewise.
40473         * tests/test-fopen.c (fopen): Likewise.
40474         * tests/test-fprintf-posix.c (fprintf): Likewise.
40475         * tests/test-freopen.c (freopen): Likewise.
40476         * tests/test-frexp.c (frexp): Likewise.
40477         * tests/test-frexpl.c (frexpl): Likewise.
40478         * tests/test-fseek.c (fseek): Likewise.
40479         * tests/test-fseeko.c (fseeko): Likewise.
40480         * tests/test-fstatat.c (fstatat): Likewise.
40481         * tests/test-fsync.c (fsync): Likewise.
40482         * tests/test-ftell.c (ftell): Likewise.
40483         * tests/test-ftello.c (ftello): Likewise.
40484         * tests/test-futimens.c (futimens): Likewise.
40485         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40486         (gai_strerror): Likewise.
40487         * tests/test-getcwd.c (getcwd): Likewise.
40488         * tests/test-getdelim.c (getdelim): Likewise.
40489         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40490         * tests/test-getgroups.c (getgroups): Likewise.
40491         * tests/test-gethostname.c (gethostname): Likewise.
40492         * tests/test-getline.c (getline): Likewise.
40493         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40494         Likewise.
40495         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40496         * tests/test-glob.c (glob, globfree): Likewise.
40497         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40498         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40499         * tests/test-inet_pton.c (inet_pton): Likewise.
40500         * tests/test-isblank.c (isblank): Likewise.
40501         * tests/test-lchown.c (lchown): Likewise.
40502         * tests/test-ldexpl.c (ldexpl): Likewise.
40503         * tests/test-link.c (link): Likewise.
40504         * tests/test-linkat.c (linkat): Likewise.
40505         * tests/test-lseek.c (lseek): Likewise.
40506         * tests/test-lstat.c (lstat): Likewise.
40507         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40508         * tests/test-mbsinit.c (mbsinit): Likewise.
40509         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40510         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40511         * tests/test-memchr.c (memchr): Likewise.
40512         * tests/test-memcmp.c (memcmp): Likewise.
40513         * tests/test-memmem.c (memmem): Likewise.
40514         * tests/test-memrchr.c (memrchr): Likewise.
40515         * tests/test-mkdir.c (mkdir): Likewise.
40516         * tests/test-mkdirat.c (mkdirat): Likewise.
40517         * tests/test-mkfifo.c (mkfifo): Likewise.
40518         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40519         * tests/test-mknod.c (mknod): Likewise.
40520         * tests/test-nanosleep.c (nanosleep): Likewise.
40521         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40522         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40523         Likewise.
40524         * tests/test-open.c (open): Likewise.
40525         * tests/test-openat.c (openat): Likewise.
40526         * tests/test-perror.c (perror): Likewise.
40527         * tests/test-pipe2.c (pipe2): Likewise.
40528         * tests/test-poll.c (poll): Likewise.
40529         * tests/test-popen.c (popen, pclose): Likewise.
40530         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40531         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40532         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40533         (posix_spawn_file_actions_destroy)
40534         (posix_spawn_file_actions_addclose)
40535         (posix_spawn_file_actions_addopen)
40536         (posix_spawn_file_actions_adddup2): Likewise.
40537         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40538         * tests/test-pread.c (pread): Likewise.
40539         * tests/test-printf-posix.c (printf): Likewise.
40540         * tests/test-pty.c (openpty, forkpty): Likewise.
40541         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40542         (random_r): Likewise.
40543         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40544         * tests/test-readlink.c (readlink): Likewise.
40545         * tests/test-remove.c (remove): Likewise.
40546         * tests/test-rename.c (rename): Likewise.
40547         * tests/test-renameat.c (renameat): Likewise.
40548         * tests/test-rmdir.c (rmdir): Likewise.
40549         * tests/test-round1.c (round): Likewise.
40550         * tests/test-roundf1.c (roundf): Likewise.
40551         * tests/test-roundl.c (roundl): Likewise.
40552         * tests/test-setenv.c (setenv): Likewise.
40553         * tests/test-sigaction.c (sigaction): Likewise.
40554         * tests/test-sleep.c (sleep): Likewise.
40555         * tests/test-snprintf.c (snprintf): Likewise.
40556         * tests/test-sprintf-posix.c (sprintf): Likewise.
40557         * tests/test-stat.c (stat): Likewise.
40558         * tests/test-stpncpy.c (stpncpy): Likewise.
40559         * tests/test-strcasestr.c (strcasestr): Likewise.
40560         * tests/test-strchrnul.c (strchrnul): Likewise.
40561         * tests/test-strerror.c (strerror): Likewise.
40562         * tests/test-strsignal.c (strsignal): Likewise.
40563         * tests/test-strstr.c (strstr): Likewise.
40564         * tests/test-strtod.c (strtod): Likewise.
40565         * tests/test-strverscmp.c (strverscmp): Likewise.
40566         * tests/test-symlink.c (symlink): Likewise.
40567         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40568         * tests/test-times.c (times): Likewise.
40569         * tests/test-trunc1.c (trunc): Likewise.
40570         * tests/test-truncf1.c (truncf): Likewise.
40571         * tests/test-truncl.c (truncl): Likewise.
40572         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40573         Likewise.
40574         * tests/test-uname.c (uname): Likewise.
40575         * tests/test-unlink.c (unlink): Likewise.
40576         * tests/test-unlinkat.c (unlinkat): Likewise.
40577         * tests/test-unsetenv.c (unsetenv): Likewise.
40578         * tests/test-usleep.c (usleep): Likewise.
40579         * tests/test-utimensat.c (utimensat): Likewise.
40580         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40581         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40582         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40583         * tests/test-vprintf-posix.c (vprintf): Likewise.
40584         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40585         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40586         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40587         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40588         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40589         * tests/test-wcwidth.c (wcwidth): Likewise.
40590
40591         build: pull in conditional headers during GNULIB_POSIXCHECK
40592         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40593         definitions from any conditionally-included headers.
40594         * lib/stdlib.in.h (includes): Likewise.
40595         * lib/unistd.in.h (includes): Likewise.
40596
40597 2009-12-24  Bruno Haible  <bruno@clisp.org>
40598
40599         * tests/test-argv-iter.c: Include header file being tested immediately
40600         after config.h.
40601         * tests/test-base64.c: Likewise.
40602         * tests/test-flock.c: Likewise.
40603         * tests/test-fsync.c: Likewise.
40604         * tests/test-getdate.c: Likewise.
40605         * tests/test-getndelim2.c: Likewise.
40606         * tests/test-isfinite.c: Likewise.
40607         * tests/test-isinf.c: Likewise.
40608         * tests/test-strerror.c: Likewise.
40609         * tests/test-strsignal.c: Likewise.
40610
40611 2009-12-23  Eric Blake  <ebb9@byu.net>
40612
40613         unistd: work around cygwin bug
40614         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40615         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40616         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40617
40618 2009-12-23  Bruno Haible  <bruno@clisp.org>
40619
40620         localename: More tests.
40621         * tests/test-localename.c (SIZEOF): New macro.
40622         (categories): New variable.
40623         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40624         test_locale_name_default): Add test w.r.t. thread locale.
40625         (test_locale_name_thread): New function.
40626         (main): Invoke it.
40627
40628         localename: Make aware of thread locale.
40629         * lib/localename.h (gl_locale_name_thread): New declaration.
40630         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40631         behaviour with respect to thread locale.
40632         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40633         <langinfo.h>, glthread/lock.h.
40634         (SIZE_BITS): New macro.
40635         (string_hash): New function.
40636         (struct hash_node): New type.
40637         (HASH_TABLE_SIZE): New macro.
40638         (struniq_hash_table, struniq_lock): New variables.
40639         (struniq): New function.
40640         (gl_locale_name_thread): New function.
40641         (gl_locale_name): Invoke it.
40642         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40643         * modules/localename (Depends-on): Add lock.
40644         Reported by Mike Gran <spk121@yahoo.com>.
40645
40646 2009-12-23  Eric Blake  <ebb9@byu.net>
40647
40648         va-args: new module
40649         * modules/va-args: New file.
40650         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40651         * MODULES.html.sh (Core language properties): Mention it.
40652
40653         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40654         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40655         named alias for __attribute__((__unused__)).
40656         * lib/chown.c: Update client.
40657         * lib/fchmodat.c: Likewise.
40658         * lib/fts.c: Likewise.
40659         * lib/getdate.y: Likewise.
40660         * lib/getgroups.c: Likewise.
40661         * lib/getopt.c: Likewise.
40662         * lib/getugroups.c: Likewise.
40663         * lib/mkdir.c: Likewise.
40664         * lib/mkfifo.c: Likewise.
40665         * lib/mkfifoat.c: Likewise.
40666         * lib/mknod.c: Likewise.
40667         * lib/mknodat.c: Likewise.
40668         * lib/readlink.c: Likewise.
40669         * lib/se-context.in.h: Likewise.
40670         * lib/se-selinux.in.h: Likewise.
40671         * lib/sockets.c: Likewise.
40672         * lib/symlink.c: Likewise.
40673         * lib/symlinkat.c: Likewise.
40674         * lib/unicodeio.c: Likewise.
40675         * lib/unistr.h: Likewise.
40676         * tests/test-areadlink.c: Likewise.
40677         * tests/test-areadlinkat.c: Likewise.
40678         * tests/test-filenamecat.c: Likewise.
40679         * tests/test-fseeko.c: Likewise.
40680         * tests/test-ftello.c: Likewise.
40681         * tests/test-getdate.c: Likewise.
40682         * tests/test-getgroups.c: Likewise.
40683         * tests/test-gethostname.c: Likewise.
40684         * tests/test-quotearg.c: Likewise.
40685         * tests/test-version-etc.c: Likewise.
40686         * tests/test-xalloc-die.c: Likewise.
40687         * tests/test-xfprintf-posix.c: Likewise.
40688         * tests/test-xprintf-posix.c: Likewise.
40689         * tests/test-xvasprintf.c: Likewise.
40690
40691         tests: avoid compiler warnings
40692         * tests/test-fcntl.c (main): Delete unused parameters.
40693         * tests/test-freopen-safer.c (main): Likewise.
40694         * tests/test-xalloc-die.c (main): Mark unused parameters.
40695         * tests/test-fseeko.c (main): Likewise.
40696         * tests/test-ftello.c (main): Likewise.
40697         * tests/test-nanosleep.c (main): Avoid declaration warning.
40698         * tests/test-sleep.c (main): Likewise.
40699         * tests/test-unsetenv.c (main): Silence warning about string
40700         literal.
40701         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40702
40703 2009-12-23  Bruno Haible  <bruno@clisp.org>
40704
40705         * tests/test-localename.c (test_locale_name): New function, extracted
40706         from main. Also test mixed situations.
40707         (test_locale_name_posix, test_locale_name_environ,
40708         test_locale_name_default): New functions.
40709         (main): Invoke them all.
40710         * modules/localename-tests (configure.ac): Test for newlocale.
40711
40712 2009-12-23  Bruno Haible  <bruno@clisp.org>
40713
40714         unistd: Ensure getcwd gets declared before being overridden.
40715         * lib/unistd.in.h: Conditionally include <io.h>.
40716
40717 2009-12-22  Bruno Haible  <bruno@clisp.org>
40718
40719         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40720         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40721         (gl_WCHAR_H): Invoke it.
40722         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40723         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40724         Reported by Karl Berry <karl@freefriends.org>.
40725
40726 2009-12-22  Eric Blake  <ebb9@byu.net>
40727
40728         math, unistd: avoid redundant includes
40729         * lib/math.in.h (isnan): No need to re-include <math.h>.
40730         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40731
40732         getsubopt: work around cygwin bug
40733         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40734         avoid conflicting with system getsubopt.
40735         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40736         bug.
40737
40738         getopt: synchronize from glibc
40739         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40740         parameter order.  Adjust all callers.
40741         (_getopt_internal_r, main): Adjust quoting in error messages.
40742         Drop considerations for outdated POSIX 1003.2 error message.
40743         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40744         callers.
40745         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40746
40747         test-getopt: test stderr behavior
40748         * modules/getopt-posix-tests (Depends-on): Add dup2.
40749         * tests/test-getopt.c (ASSERT): Avoid stderr.
40750         (main): Move stderr to a temporary file.
40751         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40752         Instead, add parameter to inform caller if output occurred.
40753         (test_getopt): Adjust all existing tests to expect silence, and
40754         add new tests of leading ":".
40755         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40756         glibc shortcomings with leading "-:" or "+:" in optstring.
40757         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40758         Likewise.
40759         * doc/posix-functions/getopt.texi (getopt): Likewise.
40760
40761         test-getopt: enhance test
40762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40763         supports optind=0.
40764         * tests/test-getopt.c (OPTIND_MIN): Move...
40765         * tests/test-getopt.h (OPTIND_MIN): ...here.
40766         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40767         Require that optind=0 works, since modern BSD supports it in
40768         addition to optreset, and since coreutils expects it.
40769         (test_getopt_long_only): New test.
40770         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40771         glibc shortcomings with 'W;', and enforcement of optind=0.
40772         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40773         Likewise.
40774
40775 2009-12-21  Bruno Haible  <bruno@clisp.org>
40776
40777         localename: Improvements for MacOS X and Cygwin.
40778         * lib/localename.h (gl_locale_name_environ): New declaration.
40779         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40780         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40781         (gl_locale_name_posix): Invoke it.
40782         (gl_locale_name_default): Add comments. Use Windows native API also on
40783         Cygwin.
40784
40785 2009-12-21  Bruno Haible  <bruno@clisp.org>
40786
40787         Update list of Win32 locale ids.
40788         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40789         (LANG_SAMI): Renamed from LANG_SAAMI.
40790         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40791         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40792         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40793         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40794         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40795         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40796         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40797         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40798         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40799         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40800         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40801         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40802         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40803         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40804         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40805         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40806         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40807         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40808         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40809         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40810         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40811         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40812         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40813         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40814         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40815         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40816         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40817         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40818         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40819         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40820         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40821         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40822         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40823         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40824         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40825         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40826         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40827         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40828         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40829         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40830         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40831         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40832         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40833         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40834         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40835         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40836         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40837         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40838         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40839         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40840         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40841         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40842         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40843         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40844         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40845         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40846         Add more languages and countries for Sami, Sorbian. Add more countries
40847         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40848         for Pashto. Change country for Syriac, Tswana.
40849
40850 2009-12-21  Eric Blake  <ebb9@byu.net>
40851
40852         test-utimens: avoid spurious failure
40853         * tests/test-chown.h (nap): Factor...
40854         * tests/nap.h: ...into new file.
40855         * tests/test-lchown.h (nap): Avoid duplication.
40856         * tests/test-utimens-common.h (nap): Use shared implementation,
40857         necessary on file systems with 1-second resolution.
40858         * modules/chown-tests (Files): Include new file.
40859         * modules/fdutimensat-tests (Files): Likewise.
40860         * modules/futimens-tests (Files): Likewise.
40861         * modules/lchown-tests (Files): Likewise.
40862         * modules/openat-tests (Files): Likewise.
40863         * modules/utimens-tests (Files): Likewise.
40864         * modules/utimensat-tests (Files): Likewise.
40865
40866 2009-12-19  Eric Blake  <ebb9@byu.net>
40867
40868         futimens, utimensat: work around Linux bug
40869         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40870         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40871         * lib/utimensat.c (rpl_utimensat): Work around it.
40872         * lib/futimens.c (rpl_futimens): Adjust comment.
40873
40874         utimens: work around Linux ctime bug
40875         * lib/utimens.c (detect_ctime_bug): New helper function.
40876         (update_timespec): Differentiate between workaround needed for
40877         this bug vs. what is needed for systems that lack utimensat.
40878         (fdutimens, lutimens): Work around bug.
40879
40880         utimens: check for ctime update
40881         * tests/test-utimens-common.h (check_ctime): Define.
40882         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40883         * tests/test-futimens.h (test_futimens): Likewise.
40884         * tests/test-lutimens.h (test_lutimens): Likewise.
40885         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40886         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40887
40888 2009-12-19  Bruno Haible  <bruno@clisp.org>
40889
40890         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40891         * tests/test-dprintf-posix2.sh: New file.
40892         * tests/test-dprintf-posix2.c: New file.
40893         * modules/dprintf-posix-tests (Files): Add them.
40894         (configure.ac): Check for getrlimit and setrlimit.
40895         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40896
40897 2009-12-19  Bruno Haible  <bruno@clisp.org>
40898
40899         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40900         * tests/test-fprintf-posix3.sh: New file.
40901         * tests/test-fprintf-posix3.c: New file.
40902         * modules/fprintf-posix-tests (Files): Add them.
40903         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40904
40905 2009-12-19  Eric Blake  <ebb9@byu.net>
40906
40907         dirfd: fix prototype
40908         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40909         * lib/dirfd.c (dirfd): Likewise.
40910
40911         canonicalize: reduce memory usage
40912         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40913         allocation to size.
40914         Reported by Solar Designer <solar@openwall.com>.
40915
40916 2009-12-19  Bruno Haible  <bruno@clisp.org>
40917
40918         New module attribute 'Applicability'.
40919         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40920         * gnulib-tool: New option --extract-applicability.
40921         (func_usage): Document it.
40922         (sed_extract_prog): Recognize it.
40923         (func_get_applicability): New function.
40924         (func_import): Generalize handling of 'link-warning' module.
40925         * modules/link-warning (Applicability): New section.
40926         * modules/arg-nonnull (Applicability): New section.
40927         Repoted by Simon Josefsson <simon@josefsson.org>.
40928
40929 2009-12-19  Bruno Haible  <bruno@clisp.org>
40930
40931         fflush: tweak
40932         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40933         * lib/fseeko.c (rpl_fseeko): Likewise.
40934
40935 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40936
40937         * lib/gl_list.h: Fix typo in comment.
40938
40939 2009-12-16  Eric Blake  <ebb9@byu.net>
40940
40941         fcntl: use to simplify other modules
40942         * modules/cloexec (Depends-on): Add fcntl.
40943         * modules/fchdir (Depends-on): Likewise.
40944         * modules/fd-safer-flag (Depends-on): Likewise.
40945         * modules/unistd-safer (Depends-on): Likewise.
40946         * modules/dup3 (configure.ac): Set module indicator.
40947         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40948         missing.
40949         * lib/fchdir.c (_gl_register_dup): Fix comment.
40950         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40951         * lib/dup-safer.c (dup_safer): Likewise.
40952         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40953         * lib/dup3.c (dup3): Likewise.
40954         * tests/test-fchdir.c (main): Enhance test.
40955         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40956
40957         fcntl: port portions of fcntl to mingw
40958         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40959         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40960         replacement for mingw.
40961         * modules/fcntl (Description): Update.
40962         (Depends-on): Add dup2.
40963         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40964         * modules/fcntl-h (Makefile.am): Substitute it.
40965         * lib/fcntl.in.h (fcntl): Update declaration.
40966         (F_DUPFD, F_GETFD): New macros, when needed.
40967         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40968         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40969         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40970         we now guarantee.
40971
40972         fcntl: work around cygwin bug in F_DUPFD
40973         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40974         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40975         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40976         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40977         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40978
40979         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40980         * modules/fcntl (Files): List new files.
40981         (configure.ac): Run a test.
40982         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40983         * lib/fcntl.c (rpl_fcntl): Likewise.
40984         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40985         (gl_FCNTL_H): Always replace fcntl.h.
40986         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40987         * lib/fcntl.in.h (fcntl): Declare replacement.
40988         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40989         needed, plus a witness.
40990         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40991         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40992         * tests/test-fcntl.c: New file.
40993         * modules/fcntl-tests: Likewise.
40994
40995         binary-io: avoid potential compilation warning
40996         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40997         directives.
40998
40999         fflush: avoid compilation error on NetBSD
41000         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41001         between off_t and fpos_t, since the latter is sometimes a struct.
41002         * lib/fseeko.c (rpl_fseeko): Likewise.
41003         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41004
41005 2009-12-15  Eric Blake  <ebb9@byu.net>
41006
41007         fcntl-h, stdio, sys_ioctl: fix declarations
41008         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41009         function must not take arguments.
41010         * lib/sys_ioctl.in.h (ioctl): Likewise.
41011         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41012         (open): Add a link warning.
41013
41014 2009-12-15  Jim Meyering  <meyering@redhat.com>
41015
41016         areadlink, areadlink-with-size: relax license to LGPLv2+
41017         * modules/areadlink (License): Relax to LGPLv2+.
41018         * modules/areadlink-with-size (License): Likewise.
41019
41020 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41021             Bruno Haible  <bruno@clisp.org>
41022
41023         *printf: Fix memory leak.
41024         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41025         * lib/vfprintf.c (vfprintf): Likewise.
41026         * lib/dprintf.c (dprintf): Likewise.
41027         * lib/vdprintf.c (vdprintf): Likewise.
41028
41029 2009-12-14  Eric Blake  <ebb9@byu.net>
41030
41031         accept4: adjust module dependencies
41032         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41033
41034         utimens: one more try at avoiding compiler warning
41035         * lib/utimens.c (lutimens): Lower scope of result.
41036
41037 2009-12-13  Bruno Haible  <bruno@clisp.org>
41038
41039         Move the malloc checking from module 'list' to new module 'xlist'.
41040         * modules/xlist: New file.
41041         * lib/gl_xlist.h: New file.
41042         * lib/gl_xlist.c: New file.
41043         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41044         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41045         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41046         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41047         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41048         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41049         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41050         gl_sortedlist_nx_add): New declarations.
41051         (struct gl_list_implementation): Rename and change methods accordingly.
41052         (gl_list_nx_create_empty): Renamed from 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_list.c (gl_list_nx_create_empty): Renamed from
41063         gl_list_create_empty.
41064         (gl_list_nx_create): Renamed from gl_list_create.
41065         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41066         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41067         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41068         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41069         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41070         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41071         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41072         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41073         * lib/gl_array_list.c: Don't include xalloc.h.
41074         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41075         NULL upon out-of-memory.
41076         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41077         out-of-memory.
41078         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41079         Change return type to 'int'.
41080         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41081         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41082         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41083         upon out-of-memory.
41084         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41085         upon out-of-memory.
41086         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41087         upon out-of-memory.
41088         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41089         upon out-of-memory.
41090         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41091         out-of-memory.
41092         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41093         Update.
41094         (gl_array_list_implementation): Update.
41095         * lib/gl_carray_list.c: Don't include xalloc.h.
41096         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41097         Return NULL upon out-of-memory.
41098         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41099         out-of-memory.
41100         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41101         Change return type to 'int'.
41102         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41103         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41104         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41105         upon out-of-memory.
41106         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41107         upon out-of-memory.
41108         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41109         out-of-memory.
41110         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41111         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41112         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41113         Update.
41114         (gl_carray_list_implementation): Update.
41115         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41116         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41117         gl_linked_create_empty. Return NULL upon out-of-memory.
41118         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41119         out-of-memory.
41120         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41121         Change return type to 'int'. Return -1 upon out-of-memory.
41122         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41123         out-of-memory.
41124         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41125         upon out-of-memory.
41126         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41127         upon out-of-memory.
41128         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41129         NULL upon out-of-memory.
41130         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41131         upon out-of-memory.
41132         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41133         out-of-memory.
41134         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41135         Update.
41136         * lib/gl_linked_list.c: Don't include xalloc.h.
41137         (gl_linked_list_implementation): Update.
41138         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41139         (add_to_bucket): Change return type to 'int'.
41140         (gl_linkedhash_list_implementation): Update.
41141         * lib/gl_anytree_list1.h (free_subtree): New function.
41142         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41143         gl_tree_create_empty. Return NULL upon out-of-memory.
41144         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41145         Change return type to 'int'. Return -1 upon out-of-memory.
41146         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41147         out-of-memory.
41148         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41149         (gl_tree_remove_node): New function, moved here from
41150         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41151         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41152         Update.
41153         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41154         malloc, not xmalloc. Return NULL upon out-of-memory.
41155         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41156         out-of-memory.
41157         (gl_tree_remove_node_from_tree): New function, extracted from
41158         gl_tree_remove_node.
41159         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41160         upon out-of-memory.
41161         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41162         out-of-memory.
41163         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41164         upon out-of-memory.
41165         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41166         upon out-of-memory.
41167         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41168         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41169         not xmalloc. Return NULL upon out-of-memory.
41170         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41171         out-of-memory.
41172         (gl_tree_remove_node_from_tree): New function, extracted from
41173         gl_tree_remove_node.
41174         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41175         upon out-of-memory.
41176         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41177         out-of-memory.
41178         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41179         upon out-of-memory.
41180         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41181         upon out-of-memory.
41182         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41183         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41184         gl_anytree_list1.h before gl_anyavltree_list2.h.
41185         (gl_avltree_list_implementation): Update.
41186         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41187         gl_anytree_list1.h before gl_anyavltree_list2.h.
41188         (gl_rbtree_list_implementation): Update.
41189         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41190         Change return type to 'int'. Return -1 upon out-of-memory. Use
41191         __builtin_expect.
41192         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41193         (gl_avltreehash_list_implementation): Update.
41194         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41195         (gl_rbtreehash_list_implementation): Update.
41196         * modules/array-list (Depends-on): Remove xalloc.
41197         * modules/carray-list (Depends-on): Likewise.
41198         * modules/linked-list (Depends-on): Likewise.
41199         * modules/linkedhash-list (Depends-on): Likewise.
41200         * modules/avltree-list (Depends-on): Likewise.
41201         * modules/rbtree-list (Depends-on): Likewise.
41202         * modules/avltreehash-list (Depends-on): Likewise.
41203         * modules/rbtreehash-list (Depends-on): Likewise.
41204
41205         * modules/xsublist: New file.
41206         * lib/gl_xsublist.h: New file.
41207         * lib/gl_xsublist.c: New file.
41208         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41209         (gl_sublist_nx_create): New declaration.
41210         * lib/gl_sublist.c: Don't include xalloc.h.
41211         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41212         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41213         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41214         Change return type to 'int'. Return -1 upon out-of-memory.
41215         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41216         upon out-of-memory.
41217         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41218         NULL upon out-of-memory.
41219         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41220         upon out-of-memory.
41221         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41222         NULL upon out-of-memory.
41223         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41224         NULL upon out-of-memory.
41225         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41226         upon out-of-memory.
41227         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41228         (gl_sublist_list_implementation): Update.
41229         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41230         upon out-of-memory.
41231         * modules/sublist (Depends-on): Remove xalloc.
41232
41233         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41234         * tests/test-carray_list.c: Likewise.
41235         * tests/test-linked_list.c: Likewise.
41236         * tests/test-linkedhash_list.c: Likewise.
41237         * tests/test-avltree_list.c: Likewise.
41238         * tests/test-rbtree_list.c: Likewise.
41239         * tests/test-avltreehash_list.c: Likewise.
41240         * tests/test-rbtreehash_list.c: Likewise.
41241         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41242         * modules/carray-list-tests (Makefile.am): Likewise.
41243         * modules/linked-list-tests (Makefile.am): Likewise.
41244         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41245         * modules/avltree-list-tests (Makefile.am): Likewise.
41246         * modules/rbtree-list-tests (Makefile.am): Likewise.
41247         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41248         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41249
41250         * NEWS: Mention the changes.
41251
41252         * lib/clean-temp.c: Include gl_xlist.h.
41253         * modules/clean-temp (Depends-on): Add xlist.
41254
41255         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41256         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41257
41258         * tests/test-array_oset.c: Include gl_xlist.h.
41259         * modules/array-oset-tests (Depends-on): Add xlist.
41260
41261         Reported by José E. Marchesi <jemarch@gnu.org>.
41262
41263 2009-12-13  Bruno Haible  <bruno@clisp.org>
41264
41265         Move the malloc checking from module 'oset' to new module 'xoset'.
41266         * modules/xoset: New file.
41267         * lib/gl_xoset.h: New file.
41268         * lib/gl_xoset.c: New file.
41269         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41270         declarations.
41271         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41272         (struct gl_oset_implementation): Rename and change methods accordingly.
41273         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41274         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41275         'int'. Mark as __warn_unused_result__.
41276         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41277         gl_oset_create_empty.
41278         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41279         'int'.
41280         * lib/gl_array_oset.c: Don't include xalloc.h.
41281         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41282         malloc, not xmalloc.
41283         (grow): Change return type to 'int'. Don't call xalloc_die.
41284         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41285         to 'int'.
41286         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41287         'int'.
41288         (gl_array_oset_implementation): Update.
41289         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41290         gl_tree_create_empty.
41291         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41292         'int'.
41293         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41294         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41295         xmalloc.
41296         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41297         not xmalloc.
41298         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41299         xmalloc.
41300         (gl_avltree_oset_implementation): Update.
41301         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41302         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41303         xmalloc.
41304         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41305         not xmalloc.
41306         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41307         xmalloc.
41308         (gl_rbtree_oset_implementation): Update.
41309         * modules/array-oset (Depends-on): Remove xalloc.
41310         * modules/avltree-oset (Depends-on): Likewise.
41311         * modules/rbtree-oset (Depends-on): Likewise.
41312         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41313         * tests/test-avltree_oset.c: Likewise.
41314         * tests/test-rbtree_oset.c: Likewise.
41315         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41316         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41317         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41318         * NEWS: Mention the change.
41319
41320 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41321
41322         maint.mk: allow a project to override release-prep commands
41323         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41324         commands into a new rule.
41325         (release-prep): New rule.
41326         (release-prep-hook): New overridable variable.
41327
41328 2009-12-13  Bruno Haible  <bruno@clisp.org>
41329
41330         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41331
41332 2009-12-13  Jim Meyering  <meyering@redhat.com>
41333
41334         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41335         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41336
41337 2009-12-12  Bruno Haible  <bruno@clisp.org>
41338
41339         duplocale: Tweak.
41340         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41341
41342 2009-12-12  Karl Berry  <karl@gnu.org>
41343
41344         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41345
41346 2009-12-12  Bruno Haible  <bruno@clisp.org>
41347
41348         * m4/po.m4: Undo incorrect untabification.
41349
41350 2009-12-12  Bruno Haible  <bruno@clisp.org>
41351
41352         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41353         * modules/c-strtod (Depends-on): Add locale.
41354         * modules/c-strtold (Depends-on): Likewise.
41355
41356 2009-12-12  Bruno Haible  <bruno@clisp.org>
41357
41358         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41359
41360 2009-12-11  Eric Blake  <ebb9@byu.net>
41361
41362         setenv: relax requirement in light of POSIX ruling
41363         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41364         not NULL.
41365         * tests/test-setenv.c (main): Relax test.
41366         * tests/test-unsetenv.c (main): Likewise.
41367         * doc/posix-functions/setenv.texi (setenv): Document this.
41368         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41369
41370 2009-12-11  Bruno Haible  <bruno@clisp.org>
41371
41372         New module 'fd-safer-flag'.
41373         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41374         * lib/dup-safer.c (dup_safer_flag): Remove function.
41375         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41376         * lib/fd-safer.c (fd_safer_flag): Remove function.
41377         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41378         * modules/cloexec (configure.ac): Drop indicator macro.
41379         * modules/fd-safer-flag: New file.
41380         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41381         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41382         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41383
41384 2009-12-11  Bruno Haible  <bruno@clisp.org>
41385
41386         Tests for module 'nl_langinfo'.
41387         * modules/nl_langinfo-tests: New file.
41388         * tests/test-nl_langinfo.sh: New file.
41389         * tests/test-nl_langinfo.c: New file.
41390
41391         New module 'nl_langinfo'.
41392         * lib/nl_langinfo.c: New file.
41393         * m4/nl_langinfo.m4: New file.
41394         * modules/nl_langinfo: New file.
41395         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41396
41397 2009-12-11  Bruno Haible  <bruno@clisp.org>
41398
41399         Tests for module 'langinfo'.
41400         * modules/langinfo-tests: New file.
41401         * tests/test-langinfo.c: New file.
41402
41403         New module 'langinfo'.
41404         * lib/langinfo.in.h: New file.
41405         * m4/langinfo_h.m4: New file.
41406         * modules/langinfo: New file.
41407         * doc/posix-headers/langinfo.texi: Mention the new module.
41408
41409 2009-12-11  Bruno Haible  <bruno@clisp.org>
41410
41411         * lib/config.charset: Untabify.
41412
41413 2009-12-11  Bruno Haible  <bruno@clisp.org>
41414
41415         * modules/unistd-safer (configure.ac): Drop indicator macro.
41416
41417 2009-12-11  Bruno Haible  <bruno@clisp.org>
41418
41419         Move pipe2-safer code to its own file.
41420         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41421         * lib/pipe-safer.c (pipe2_safer): Remove function.
41422         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41423         (Makefile.am): Add it to lib_SOURCES.
41424
41425 2009-12-10  Bruno Haible  <bruno@clisp.org>
41426
41427         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41428
41429 2009-12-10  Bruno Haible  <bruno@clisp.org>
41430
41431         Declare which arguments expect non-NULL values, for GCC and clang.
41432         * build-aux/arg-nonnull.h: New file.
41433         * modules/arg-nonnull: New file.
41434         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41435         (inet_ntop, inet_pton): Use it.
41436         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41437         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41438         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41439         (open, openat): Use it.
41440         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41441         (fnmatch): Use it.
41442         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41443         (getopt, getopt_long, getopt_long_only): Use it.
41444         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41445         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41446         Use it.
41447         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41448         (iconv_open): Use it.
41449         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41450         (strtoimax, strtoumax): Use it.
41451         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41452         (duplocale): Use it.
41453         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41454         (frexp, frexpl): Use it.
41455         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41456         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41457         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41458         (tsearch, tfind, tdelete, twalk): Use it.
41459         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41460         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41461         sigpending): Use it.
41462         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41463         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41464         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41465         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41466         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41467         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41468         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41469         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41470         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41471         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41472         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41473         Use it.
41474         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41475         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41476         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41477         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41478         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41479         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41480         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41481         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41482         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41483         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41484         strtoull, unsetenv): Use it.
41485         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41486         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41487         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41488         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41489         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41490         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41491         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41492         (strcasecmp, strncasecmp): Use it.
41493         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41494         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41495         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41496         rpl_setsockopt): Use it.
41497         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41498         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41499         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41500         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41501         (gettimeofday): Use it.
41502         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41503         (times): Use it.
41504         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41505         (uname): Use it.
41506         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41507         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41508         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41509         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41510         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41511         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41512         unlinkat, write): Use it.
41513         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41514         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41515         * lib/argv-iter.h: Include arg-nonnull.h.
41516         (_ATTRIBUTE_NONNULL_): Remove macro.
41517         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41518         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41519         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41520         optimization.
41521         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41522         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41523         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41524         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41525         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41526         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41527         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41528         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41529         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41530         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41531         * modules/dirent (Depends-on): Add arg-nonnull.
41532         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41533         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41534         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41535         * modules/fnmatch (Depends-on): Add arg-nonnull.
41536         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41537         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41538         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41539         * modules/glob (Depends-on): Add arg-nonnull.
41540         (Makefile.am): Insert arg-nonnull.h into glob.h.
41541         * modules/iconv_open (Depends-on): Add arg-nonnull.
41542         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41543         * modules/inttypes (Depends-on): Add arg-nonnull.
41544         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41545         * modules/locale (Depends-on): Add arg-nonnull.
41546         (Makefile.am): Insert arg-nonnull.h into locale.h.
41547         * modules/math (Depends-on): Add arg-nonnull.
41548         (Makefile.am): Insert arg-nonnull.h into math.h.
41549         * modules/netdb (Depends-on): Add arg-nonnull.
41550         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41551         * modules/search (Depends-on): Add arg-nonnull.
41552         (Makefile.am): Insert arg-nonnull.h into search.h.
41553         * modules/signal (Depends-on): Add arg-nonnull.
41554         (Makefile.am): Insert arg-nonnull.h into signal.h.
41555         * modules/spawn (Depends-on): Add arg-nonnull.
41556         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41557         * modules/stdio (Depends-on): Add arg-nonnull.
41558         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41559         * modules/stdlib (Depends-on): Add arg-nonnull.
41560         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41561         * modules/string (Depends-on): Add arg-nonnull.
41562         (Makefile.am): Insert arg-nonnull.h into string.h.
41563         * modules/strings (Depends-on): Add arg-nonnull.
41564         (Makefile.am): Insert arg-nonnull.h into strings.h.
41565         * modules/sys_socket (Depends-on): Add arg-nonnull.
41566         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41567         * modules/sys_stat (Depends-on): Add arg-nonnull.
41568         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41569         * modules/sys_time (Depends-on): Add arg-nonnull.
41570         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41571         * modules/sys_times (Depends-on): Add arg-nonnull.
41572         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41573         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41574         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41575         * modules/time (Depends-on): Add arg-nonnull.
41576         (Makefile.am): Insert arg-nonnull.h into time.h.
41577         * modules/unistd (Depends-on): Add arg-nonnull.
41578         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41579         * modules/wchar (Depends-on): Add arg-nonnull.
41580         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41581         * modules/argv-iter (Depends-on): Add arg-nonnull.
41582         * tests/test-canonicalize.c (null_ptr): New function.
41583         (main): Use it.
41584         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41585         (main): Use it.
41586         * tests/test-memmem.c (null_ptr): New function.
41587         (main): Use it.
41588         Reported by Jim Meyering.
41589
41590 2009-12-10  Bruno Haible  <bruno@clisp.org>
41591
41592         Use spaces for indentation, not tabs.
41593         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41594         * m4/*.m4: Untabify.
41595         * build-aux/*.h: Untabify.
41596         * tests/**/*.[hc]: Untabify.
41597         * README: New section "Indent with spaces, not TABs", based on
41598         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41599         * NEWS: Mention the change.
41600
41601 2009-12-10  Bruno Haible  <bruno@clisp.org>
41602
41603         pty test: Fix link error.
41604         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41605         test_pty_LDADD.
41606
41607 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41608
41609         * modules/pty: New file.
41610         * modules/pty-tests: New file.
41611         * m4/pty.m4: New file.
41612         * tests/test-pty.c: New file.
41613         * doc/glibc-headers/pty.texi: Modified.
41614         * doc/glibc-functions/forkpty.texi: Modified.
41615         * doc/glibc-functions/openpty.texi: Modified.
41616
41617 2009-12-10  Bruno Haible  <bruno@clisp.org>
41618
41619         Avoid syntax error in C++ mode.
41620         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41621
41622 2009-12-10  Bruno Haible  <bruno@clisp.org>
41623
41624         Use sed with option -e.
41625         * gnulib-tool (func_version, func_emit_copyright_notice,
41626         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41627         option -e to sed.
41628         * modules/link-warning (Makefile.am): Likewise.
41629
41630 2009-12-10  Jim Meyering  <meyering@redhat.com>
41631
41632         mgetgroups: do not write bytes beyond end of malloc'd buffer
41633         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41634         username, we call getgroups with a one-element-shorter buffer,
41635         but still told it the length was original, max_n_groups.
41636
41637 2009-12-09  Eric Blake  <ebb9@byu.net>
41638
41639         cloexec: relax license
41640         * modules/cloexec (Maintainer): Add myself.
41641         (License): Use LGPL, not GPL.
41642
41643         link-warning: optimize generation
41644         * modules/link-warning (Makefile.am): Reduce process usage.
41645
41646 2009-12-09  Bruno Haible  <bruno@clisp.org>
41647
41648         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41649         workaround was added on 2009-11-17.
41650
41651 2009-12-09  Jim Meyering  <meyering@redhat.com>
41652             Bruno Haible  <bruno@clisp.org>
41653
41654         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41655         * modules/link-warning (Makefile.am): Make the comment-removing sed
41656         command more robust in the face of bootstrap-prepended comment lines.
41657
41658 2009-12-09  Bruno Haible  <bruno@clisp.org>
41659
41660         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41661         most one group.
41662
41663 2009-12-09  Simon Josefsson <simon@josefsson.org>
41664             Bruno Haible  <bruno@clisp.org>
41665
41666         * build-aux/link-warning.h: Add copyright notice.
41667         * modules/link-warning (Makefile.am): Generate link-warning.h from
41668         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41669         * NEWS: Mention change in link-warning module.
41670         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41671         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41672         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41673         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41674         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41675         * modules/math (Makefile.am): Add dependency to math.h.
41676         * modules/search (Makefile.am): Add dependency to search.h.
41677         * modules/signal (Makefile.am): Add dependency to signal.h.
41678         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41679         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41680         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41681         * modules/string (Makefile.am): Add dependency to string.h.
41682         * modules/strings (Makefile.am): Add dependency to strings.h.
41683         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41684         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41685         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41686         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41687         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41688         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41689         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41690         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41691         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41692
41693 2009-12-09  Bruno Haible  <bruno@clisp.org>
41694
41695         fchdir: Optimize away rpl_fstat when possible.
41696         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41697         REPLACE_OPEN_DIRECTORY.
41698         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41699
41700 2009-12-09  Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/fchdir.c: Update comment.
41703
41704 2009-12-09  Bruno Haible  <bruno@clisp.org>
41705
41706         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41707
41708 2009-12-08  Eric Blake  <ebb9@byu.net>
41709
41710         fchdir: avoid memory leak on re-registration.
41711         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41712
41713 2009-12-08  Jim Meyering  <meyering@redhat.com>
41714
41715         init.sh: avoid Solaris 10 /bin/sh portability problem
41716         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41717         sourced script:
41718           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41719           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41720           bar
41721         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41722         and two tests used that idiom.
41723         * tests/init.sh: Update suggested usage comments.
41724         (path_prepend_): New function, to be used in place
41725         of the --src-path=DIR option.
41726         (setup_): Move PATH-prepending code into path_prepend_.
41727         * tests/test-pread.sh: Adapt to new usage.
41728         * tests/test-xalloc-die.sh: Likewise.
41729
41730 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41731
41732         * doc/gnulib.texi (Glibc pty.h): Add.
41733         * doc/glibc-functions/forkpty.texi: Add.
41734         * doc/glibc-functions/openpty.texi: Add.
41735         Suggested by Bruno Haible.
41736
41737 2009-12-08  Eric Blake  <ebb9@byu.net>
41738
41739         fchdir: fix logic bugs
41740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41741         * tests/test-fchdir.c (main): Enhance test.
41742         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41743         is in use.
41744
41745         dup2: fix logic bugs
41746         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41747         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41748         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41749         exists.
41750         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41751
41752 2009-12-07  Eric Blake  <ebb9@byu.net>
41753
41754         unlink: fix m4 detection
41755         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41756
41757         unistd-safer: add unit test
41758         * modules/unistd-safer-tests: New file.
41759         * tests/test-dup-safer.c: Likewise.
41760         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41761         * tests/test-dup2.c (setmode): Likewise.
41762         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41763
41764         cloexec: preserve text vs. binary across dup_cloexec
41765         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41766         mode.
41767         * modules/dup2-tests (Depends-on): Add binary-io.
41768         * modules/cloexec-tests (Depends-on): Likewise.
41769         * tests/test-dup2.c (setmode, is_mode): New helpers.
41770         (main): Add tests that translation mode is preserved.
41771         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41772         Reported by Bruno Haible.
41773
41774         mgetgroups: reduce duplicate listings
41775         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41776         resulting array.
41777         * tests/test-chown.h (test_chown): Simplify client.
41778         * tests/test-lchown.h (test_lchown): Likewise.
41779
41780 2009-12-06  Bruno Haible  <bruno@clisp.org>
41781
41782         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41783         value.
41784
41785 2009-12-06  Bruno Haible  <bruno@clisp.org>
41786
41787         * lib/progname.c: Include stdio.h, stdlib.h.
41788         (set_program_name): Reject a NULL argument.
41789
41790 2009-12-05  Eric Blake  <ebb9@byu.net>
41791
41792         pipe2-safer: new module
41793         * modules/pipe2-safer: New file.
41794         * lib/unistd-safer.h (pipe2_safer): New prototype.
41795         * lib/unistd--.h (pipe2): New wrapper.
41796         * lib/pipe-safer.c (pipe2_safer): New function.
41797         * modules/pipe (Depends-on): Add pipe2-safer.
41798         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41799
41800         stdlib-safer: preserve cloexec flag for mkostemp[s]
41801         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41802         fd_safer_flag.
41803
41804         unistd-safer: allow preservation of cloexec status via flag
41805         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41806         prototypes.
41807         * lib/dup-safer.c (dup_safer_flag): New function.
41808         * lib/fd-safer.c (fd_safer_flag): Likewise.
41809         * modules/cloexec (configure.ac): Set witness.
41810
41811         test-dup2: enhance test
41812         * modules/dup2-tests (Depends-on): Add cloexec.
41813         * tests/test-dup2.c (main): Enhance test.
41814
41815         cloexec: add dup_cloexec
41816         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41817         header and comments.
41818         * lib/cloexec.c (set_cloexec_flag): Add comments.
41819         (dup_cloexec): New function, with mingw implementation borrowed
41820         from...
41821         * lib/w32spawn.h (dup_noinherit): ...here.
41822         * modules/execute (Depends-on): Add cloexec.
41823         * modules/pipe (Depends-on): Likewise.
41824         * modules/cloexec (Depends-on): Add dup2.
41825         * modules/cloexec-tests (Files): New file.
41826         * tests/test-cloexec.c: Likewise.
41827
41828         test-xalloc-die: fix test for mingw
41829         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41830         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41831         directory and .exe suffix off argv[0] output.
41832
41833         test-fseeko: fix test for mingw
41834         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41835         than undefining fseek, so test will pass on mingw.
41836
41837 2009-12-05  Bruno Haible  <bruno@clisp.org>
41838
41839         * lib/progname.h (set_program_name): Clarify specification.
41840         * lib/progname.c (set_program_name): Likewise.
41841         Reported by Jim Meyering.
41842
41843 2009-12-05  Jim Meyering  <meyering@redhat.com>
41844
41845         maint.mk: backslash-escape parens in default regexp
41846         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41847         backslash-escape the literal parentheses.
41848
41849         maint.mk: news-date-check: use grep -E
41850         * top/maint.mk (today): Define a Make variable, not a...
41851         (news-date-check): ...shell variable.
41852         (news-date-regexp): Use the Make variable.
41853         Use grep's -E option.  Change the failing diagnostic to mention
41854         the variable, $(news-date-regexp).
41855
41856 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41857
41858         maintainer-makefile: allow customization of NEWS entry format
41859         * top/maint.mk (news-date-regexp): New overridable variable.
41860         (news-date-check): Use it.
41861
41862 2009-12-04  Eric Blake  <ebb9@byu.net>
41863
41864         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41865         * lib/mgetgroups.h (xgetgroups): New prototype.
41866         * lib/mgetgroups.c (xgetgroups): New wrapper.
41867         (mgetgroups): Handle ENOSYS.
41868         * modules/mgetgroups (Depends-on): Add realloc.
41869         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41870
41871         mgetgroups: avoid argument promotion issues with -1
41872         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41873         for invalid gid_t.
41874         * tests/test-chown.h (getegid, test_chown): Likewise.
41875         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41876
41877 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41878
41879         exclude: Fix header file problems.
41880         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41881
41882 2009-12-01  Jim Meyering  <meyering@redhat.com>
41883
41884         fts: fts_open: do not let an empty string cause immediate failure
41885         This is required in support of GNU rm, for which the command
41886         "rm A '' B" must process and remove both A and B, in spite of
41887         the empty string argument.
41888         * lib/fts.c (fts_open): Do not let the presence of an empty string
41889         cause fts_open to fail immediately.  Most fts-using tools must be
41890         able to process all arguments, in order, and can be expected to
41891         diagnose such arguments themselves.
41892
41893 2009-11-30  Eric Blake  <ebb9@byu.net>
41894
41895         utimens: fix compilation error
41896         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41897         Declare variable at right scope.
41898
41899 2009-11-29  Jim Meyering  <meyering@redhat.com>
41900
41901         bootstrap: handle perl-5.11's changed --version output
41902         * build-aux/bootstrap (get_version): Handle perl separately,
41903         since perl-5.11's --version output is different.
41904
41905 2009-11-28  Jim Meyering  <meyering@redhat.com>
41906
41907         userspec: depend on the inttostr module, too
41908         * modules/userspec (Depends-on): Add inttostr.
41909
41910         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41911         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41912         number of MAXUID when it evaluates to (uid_t) -1.
41913         Likewise for group ID.  Reported by Matt McCutchen in
41914         <http://savannah.gnu.org/bugs/?28113>
41915
41916         userspec: reformat to use spaces, not TABs
41917         * lib/userspec.c: Expand TABs to spaces.
41918         Add Emacs' "indent-tabs-mode: nil" hint.
41919
41920 2009-11-27  Eric Blake  <ebb9@byu.net>
41921
41922         getopt-gnu: flush out another BSD bug
41923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41924         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41925         flush out BSD bug.
41926         * tests/test-getopt.h (test_getopt): End lists with NULL.
41927         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41928         (test_getopt_long_posix): Enhance test.
41929         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41930         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41931         getopt-gnu.
41932         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41933         Likewise.
41934
41935 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41936
41937         * modules/idpriv-droptemp-tests (Notice): Fix text.
41938
41939 2009-11-27  Jim Meyering  <meyering@redhat.com>
41940
41941         test-xalloc-die: avoid spurious failure due to libtool argv difference
41942         In a libtool-enabled project, this test would fail due to a difference
41943         in the emitted program name, e.g.,
41944         -test-xalloc-die: memory exhausted
41945         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41946         Use program to avoid that.
41947         * modules/xalloc-die-tests (Depends-on): Add progname.
41948         * tests/test-xalloc-die.c: Include progname.h".
41949         (program_name): Remove decl.
41950         (main): Call set_program_name.
41951         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41952
41953 2009-11-26  Richard Jones  <rjones@redhat.com>
41954
41955         w32sock: leave win32 error in place.
41956         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41957
41958 2009-11-26  Eric Blake  <ebb9@byu.net>
41959
41960         init.sh: suggest to use skip_ and fail_ functions in comments
41961         * tests/init.sh: Add a sentence.
41962
41963 2009-11-25  Bruno Haible  <bruno@clisp.org>
41964
41965         init.sh: add documentation in comments
41966         * tests/init.sh: Add some developer and user documentation.
41967
41968 2009-11-26  Jim Meyering  <meyering@redhat.com>
41969
41970         init.sh: accommodate even those who specify bogus srcdir manually
41971         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41972         configure-time tests to be sanitized, so that there is no need to
41973         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41974         (with no double quotes) suffices.  However, since tests may be
41975         invoked manually, and since you may explicitly set srcdir to the
41976         name of a directory containing spaces, do quote its uses here.
41977         * tests/test-pread.sh: Likewise.
41978         Suggested by Bruno Haible.
41979
41980         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41981         * tests/test-pread.sh: Write no data into the pipe, because
41982         test-pread actually reads none.  This avoids a diagnostic,
41983         "bash: echo: write error: Broken pipe", that arises in the unusual
41984         event something is ignoring SIGPIPE, and might be interpreted
41985         as some sort of failure.  Reported by Bruno Haible.
41986
41987 2009-11-25  Jim Meyering  <meyering@redhat.com>
41988
41989         test-pread: cover failure with ESPIPE and EINVAL
41990         * tests/test-pread.c (main): Test for failure, too.
41991         * tests/test-pread.sh: Invoke with stdin on a pipe.
41992         Suggested by Eric Blake.
41993
41994         pread: improvement and fix
41995         * modules/pread (Depends-on): Depend on lseek, for portability to
41996         e.g., mingw.  Suggested by Eric Blake.
41997         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41998
41999         unistd.in.h: correct declaration of pread
42000         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42001         Reported by Richard W.M. Jones.
42002
42003         test-pread.sh: distribute the test script
42004         * modules/pread-tests (Files): Include test-pread.sh.
42005
42006         test-pread.sh: clean up
42007         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42008         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42009         That is unnecessary, since it's always ".".
42010         Suggestion from Eric Blake.
42011
42012         test-pread.sh: make executable
42013         * tests/test-pread.sh: Set executable bit.
42014         Reported by Eric Blake.
42015
42016         correct typo in test-pread.sh
42017         * tests/test-pread.sh: Add #! line.
42018
42019         test pread
42020         * tests/test-pread.c: New file.
42021         * tests/test-pread.sh: Likewise.
42022         * modules/pread-tests: Likewise.
42023
42024         pread: new module
42025         * modules/pread: New file.
42026         * lib/unistd.in.h (pread): Define/declare.
42027         * lib/pread.c (pread): New file.
42028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42029         * modules/unistd (Makefile.am): Substitute witnesses.
42030         * doc/posix-functions/pread.texi (pread): Update.
42031         * MODULES.html.sh: Add pread.
42032
42033 2009-11-25  Jim Meyering  <meyering@redhat.com>
42034
42035         tests/init.sh: new file to be used via most *.sh tests
42036         * tests/init.sh: New file.
42037
42038 2009-11-25  Eric Blake  <ebb9@byu.net>
42039
42040         utimens: work around older Linux failure with symlinks
42041         * lib/utimens.c (lutimensat_works_really): New variable.
42042         (fdutimens, lutimens): Use it to manage kernels that support
42043         nanosecond times on files, but not on symlinks.
42044         Reported by OndÅ™ej Vašík.
42045
42046         utimes: fix configure grammar
42047         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42048
42049 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42050
42051         regex: Fix fastmap for multibyte character ranges.
42052         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42053         characters when a multibyte character range is included.
42054
42055 2009-11-22  Andy Wingo  <wingo@pobox.com>
42056
42057         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42058         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42059
42060 2009-11-24  Bruno Haible  <bruno@clisp.org>
42061
42062         doc: Most *_l functions exist in MacOS X 10.5.
42063         * doc/posix-functions/duplocale.texi: Update platforms list.
42064         * doc/posix-functions/freelocale.texi: Likewise.
42065         * doc/posix-functions/newlocale.texi: Likewise.
42066         * doc/posix-functions/uselocale.texi: Likewise.
42067         * doc/posix-functions/isalnum_l.texi: Likewise.
42068         * doc/posix-functions/isalpha_l.texi: Likewise.
42069         * doc/posix-functions/isblank_l.texi: Likewise.
42070         * doc/posix-functions/iscntrl_l.texi: Likewise.
42071         * doc/posix-functions/isdigit_l.texi: Likewise.
42072         * doc/posix-functions/isgraph_l.texi: Likewise.
42073         * doc/posix-functions/islower_l.texi: Likewise.
42074         * doc/posix-functions/isprint_l.texi: Likewise.
42075         * doc/posix-functions/ispunct_l.texi: Likewise.
42076         * doc/posix-functions/isspace_l.texi: Likewise.
42077         * doc/posix-functions/isupper_l.texi: Likewise.
42078         * doc/posix-functions/iswalnum_l.texi: Likewise.
42079         * doc/posix-functions/iswalpha_l.texi: Likewise.
42080         * doc/posix-functions/iswblank_l.texi: Likewise.
42081         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42082         * doc/posix-functions/iswctype_l.texi: Likewise.
42083         * doc/posix-functions/iswdigit_l.texi: Likewise.
42084         * doc/posix-functions/iswgraph_l.texi: Likewise.
42085         * doc/posix-functions/iswlower_l.texi: Likewise.
42086         * doc/posix-functions/iswprint_l.texi: Likewise.
42087         * doc/posix-functions/iswpunct_l.texi: Likewise.
42088         * doc/posix-functions/iswspace_l.texi: Likewise.
42089         * doc/posix-functions/iswupper_l.texi: Likewise.
42090         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42091         * doc/posix-functions/isxdigit_l.texi: Likewise.
42092         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42093         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42094         * doc/posix-functions/strcoll_l.texi: Likewise.
42095         * doc/posix-functions/strfmon_l.texi: Likewise.
42096         * doc/posix-functions/strftime_l.texi: Likewise.
42097         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42098         * doc/posix-functions/strxfrm_l.texi: Likewise.
42099         * doc/posix-functions/tolower_l.texi: Likewise.
42100         * doc/posix-functions/toupper_l.texi: Likewise.
42101         * doc/posix-functions/towctrans_l.texi: Likewise.
42102         * doc/posix-functions/towlower_l.texi: Likewise.
42103         * doc/posix-functions/towupper_l.texi: Likewise.
42104         * doc/posix-functions/wcscoll_l.texi: Likewise.
42105         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42106         * doc/posix-functions/wctrans_l.texi: Likewise.
42107         * doc/posix-functions/wctype_l.texi: Likewise.
42108         * doc/glibc-functions/strptime_l.texi: Likewise.
42109         * doc/glibc-functions/strtod_l.texi: Likewise.
42110         * doc/glibc-functions/strtof_l.texi: Likewise.
42111         * doc/glibc-functions/strtol_l.texi: Likewise.
42112         * doc/glibc-functions/strtold_l.texi: Likewise.
42113         * doc/glibc-functions/strtoll_l.texi: Likewise.
42114         * doc/glibc-functions/strtoul_l.texi: Likewise.
42115         * doc/glibc-functions/strtoull_l.texi: Likewise.
42116         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42117         * doc/glibc-functions/wcstod_l.texi: Likewise.
42118         * doc/glibc-functions/wcstof_l.texi: Likewise.
42119         * doc/glibc-functions/wcstol_l.texi: Likewise.
42120         * doc/glibc-functions/wcstold_l.texi: Likewise.
42121         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42122         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42123         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42124
42125 2009-11-24  Bruno Haible  <bruno@clisp.org>
42126
42127         duplocale: Fix logic bug.
42128         * lib/duplocale.c: Don't include <langinfo.h>.
42129         (_NL_LOCALE_NAME): Remove macro.
42130         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42131         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42132
42133 2009-11-23  Jim Meyering  <meyering@redhat.com>
42134
42135         test-update-copyright: don't hard-code /usr/bin/perl
42136         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42137         perl to print the current year.  Gilles Espinasse reported that
42138         the replaced use of perl was hard-coded as /usr/bin/perl.
42139
42140 2009-11-23  Bruno Haible  <bruno@clisp.org>
42141
42142         duplocale: Add support for glibc 2.3.x.
42143         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42144
42145 2009-11-22  Bruno Haible  <bruno@clisp.org>
42146
42147         vasnprintf: Tiny optimization.
42148         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42149         MacOS X.
42150
42151 2009-11-22  Bruno Haible  <bruno@clisp.org>
42152
42153         Tests for module 'duplocale'.
42154         * modules/duplocale-tests: New file.
42155         * tests/test-duplocale.c: New file.
42156
42157         New module 'duplocale'.
42158         * m4/duplocale.m4: New file.
42159         * lib/locale.in.h (duplocale): New declaration.
42160         * lib/duplocale.c: New file.
42161         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42162         gl_LOCALE_H_DEFAULTS): New macros.
42163         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42164         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42165         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42166         REPLACE_DUPLOCALE.
42167         * modules/duplocale: New file.
42168         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42169
42170 2009-11-22  Bruno Haible  <bruno@clisp.org>
42171
42172         * modules/locale-tests (configure.ac): Test for newlocale function.
42173         * tests/test-locale.c: When the system has extended locale functions,
42174         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42175
42176         locale: Make locale_t available when possible.
42177         * lib/locale.in.h: Include <xlocale.h> when it exists.
42178         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42179         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42180         * modules/locale (Depends-on): Add extensions.
42181         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42182         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42183
42184 2009-11-22  Bruno Haible  <bruno@clisp.org>
42185
42186         Add comments.
42187         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42188         invocation.
42189         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42190         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42191         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42192
42193 2009-11-22  Bruno Haible  <bruno@clisp.org>
42194
42195         error: account for the possibility of freopen (stdout).
42196         * lib/error.c: Include <unistd.h>.
42197         (flush_stdout): New function, extracted from error and error_at_line.
42198         Determine stdout's fd dynamically.
42199         (error, error_at_line): Invoke flush_stdout.
42200         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42201         * modules/error (Depends-on): Add unistd.
42202
42203 2009-11-22  Bruno Haible  <bruno@clisp.org>
42204
42205         diffseq: Add comment.
42206         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42207
42208 2009-11-22  Jim Meyering  <meyering@redhat.com>
42209
42210         c-stack: avoid defining an unused static function
42211         * lib/c-stack.c (find_stack_direction): Do not define this function
42212         when it will not be used.
42213
42214         diffseq: avoid spurious gcc warnings
42215         * lib/diffseq.h (IF_LINT2): Define.
42216         (compareseq): Use it to initialize two members of "part".
42217         This avoids two used-uninitialized warnings.
42218
42219 2009-11-21  Jim Meyering  <meyering@redhat.com>
42220
42221         c-stack: avoid "ignoring return value of `write'" warning
42222         * lib/c-stack.c: Include "ignore-value.h".
42223         (die): Explicitly ignore each write return value.
42224         * modules/c-stack (Depends-on): Add ignore-value.
42225
42226 2009-11-21  Bruno Haible  <bruno@clisp.org>
42227
42228         diffseq: reduce scope of variable 'best'.
42229         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42230         variable, earlier used for two different purposes.
42231
42232 2009-11-21  Jim Meyering  <meyering@redhat.com>
42233
42234         diffseq: remove useless assignment to "best"
42235         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42236         assignment.  At that point "best" is already guaranteed to be zero.
42237
42238 2009-11-20  Eric Blake  <ebb9@byu.net>
42239
42240         build: mention ftp redirector in release announcements
42241         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42242         values that used to come from cfg.mk; mention FTP redirect URL.
42243         * build-aux/announce-gen: Mention the mirror list.
42244         Suggested by Karl Berry.
42245
42246         nanosleep: improve port to mingw
42247         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42249         LIB_NANOSLEEP, but only when needed.
42250         * modules/select (Link): Document LIBSOCKET.
42251         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42252         enough.
42253
42254         nanosleep: work around cygwin bug
42255         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42256         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42257         bug.
42258         (getnow): Delete, not needed.
42259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42260         LIB_CLOCK_GETTIME.
42261         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42262         clock-time, gettime.
42263         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42264         bug.
42265         * modules/nanosleep-tests: New test.
42266         * tests/test-nanosleep.c: New file.
42267
42268         sleep: work around cygwin bug
42269         * lib/sleep.c (rpl_sleep): Work around the bug.
42270         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42271         (gl_PREREQ_SLEEP): Delete unused macro.
42272         * modules/sleep (Depends-on): Add verify.
42273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42274         * modules/unistd (Makefile.am): Substitute witness.
42275         * lib/unistd.in.h (sleep): Update prototype.
42276         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42277         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42278         * modules/sleep-tests (Depends-on): Check for alarm.
42279
42280 2009-11-20  Jim Meyering  <meyering@redhat.com>
42281
42282         maint.mk: improve sc_prohibit_magic_number_exit
42283         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42284         so it does not match uses like System.exit(1).
42285         Add comments showing how to correct all offenders.
42286
42287 2009-11-19  Eric Blake  <ebb9@byu.net>
42288
42289         xalloc-die-tests: add missing library
42290         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42291
42292         test-xvasprintf: silence compiler warnings
42293         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42294         empty string from gcc.
42295
42296 2009-11-19  Jim Meyering  <meyering@redhat.com>
42297
42298         xfreopen: new module, from coreutils
42299         * modules/xfreopen: New module.
42300         * lib/xfreopen.c: New file.
42301         * lib/xfreopen.h: New file.
42302         * MODULES.html.sh (File stream based Input/Output"): Add it.
42303
42304 2009-11-19  Eric Blake  <ebb9@byu.net>
42305
42306         manywarnings: depend on warnings
42307         * modules/manywarnings (Depends-on): Add warnings.
42308
42309         build: avoid compiler warnings
42310         * lib/select.c (rpl_select): Delete unused variable.
42311         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42312
42313 2009-11-18  Eric Blake  <ebb9@byu.net>
42314
42315         tests: avoid false negative with --with-packager
42316         * tests/test-version-etc.sh: Discard packager information.
42317         * tests/test-argp-version-etc-1.sh: Likewise.
42318         Reported by Mike Frysinger.
42319
42320         utimens: fix regression on Solaris
42321         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42322         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42323         can only change fd timestamps via futimesat.  Instead, use an
42324         additional witness macro to avoid BSD bug.
42325         Reported by Jim Meyering.
42326
42327 2009-11-17  Eric Blake  <ebb9@byu.net>
42328
42329         usleep: use it to simplify tests
42330         * modules/stat-time-tests (Depends-on): Add usleep.
42331         (configure.ac): Drop usleep check.
42332         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42333         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42334         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42335         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42336         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42337         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42338         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42339         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42340         Likewise.
42341         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42342         * tests/test-lchown.h (nap): Likewise.
42343         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42344         * tests/test-stat-time.c (nap): Likewise.
42345         * tests/test-utimens-common.h (nap): Update comments.
42346
42347         usleep: new module
42348         * modules/usleep: New file.
42349         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42350         * lib/usleep.c (usleep): Likewise.
42351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42352         * modules/unistd (Makefile.am): Substitute witnesses.
42353         * lib/unistd.in.h (usleep): Add declaration.
42354         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42355         * MODULES.html.sh (Date and time): Likewise.
42356         * modules/usleep-tests (Depends-on): New test.
42357         * tests/test-usleep.c: New file.
42358
42359         chown: work around OpenBSD bug
42360         * lib/chown.c (rpl_chown): Work around the bug.
42361         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42362         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42363         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42364         * modules/chown (Depends-on): Add stdbool.
42365         * modules/lchown (Depends-on): Likewise.
42366         * doc/posix-functions/chown.texi (chown): Document the bug.
42367         * doc/posix-functions/lchown.texi (lchown): Likewise.
42368         * tests/test-lchown.h (test_chown): Relax test.
42369
42370         mkstemp: avoid conflict with C++ keyword template
42371         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42372         * lib/mkostemp.c (mkostemp): Likewise.
42373         * lib/mkostemps.c (mkostemps): Likewise.
42374         * lib/mkstemp.c (mkstemp): Likewise.
42375         * lib/mkstemps.c (mkstemps): Likewise.
42376
42377         xalloc-die-tests: optimize
42378         * tests/test-xalloc-die.sh: Reduce number of processes.
42379
42380 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42381
42382         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42383         patch from ludo@gnu.org (Ludovic Courtès).
42384
42385 2009-11-17  Jim Meyering  <meyering@redhat.com>
42386
42387         version-etc: use proper license string
42388         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42389         * modules/version-etc-fsf: Likewise.
42390
42391 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42392
42393         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42394         printed to stdout.  Deal with EOL differences.
42395
42396 2009-11-17  Eric Blake  <ebb9@byu.net>
42397
42398         unsetenv: work around Solaris bug
42399         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42400         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42401         Reported by Jim Meyering.
42402
42403         vasnprintf: avoid compiler warnings
42404         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42405         variables.
42406         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42407
42408 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42409
42410         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42411         settings since xalloc-die is no longer the self test,
42412         xalloc-die.sh is.
42413
42414 2009-11-17  Jim Meyering  <meyering@redhat.com>
42415
42416         test-xalloc-die.sh: make the code agree with the commit log
42417         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42418         at the end, just in case you happen to have a test-xalloc-die
42419         program in some other PATH directory.
42420
42421         test-xalloc-die.sh: fix a portability bug
42422         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42423         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42424         Otherwise, argv[0] (as often seen in diagnostics) would be too
42425         system-dependent, sometimes with, and sometimes without the leading "./".
42426
42427         version-etc-fsf: relax license to LGPLv3+
42428         * modules/version-etc-fsf (License): Relax license.
42429
42430 2009-11-16  Eric Blake  <ebb9@byu.net>
42431
42432         xalloc-die-tests: avoid printing null pointer
42433         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42434         shell script.
42435         * tests/test-xalloc-die.c (program_name): Declare.
42436         * tests/test-xalloc-die.sh (tmpfiles): New file.
42437
42438         setenv, unsetenv: work around various bugs
42439         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42440         (setenv) [HAVE_SETENV]: Work around bugs.
42441         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42442         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42443         for bugs.
42444         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42445         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42447         * modules/stdlib (Makefile.am): Update substitutions.
42448         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42449         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42450         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42451         * modules/setenv-tests: New test.
42452         * modules/unsetenv-tests: Likewise.
42453         * tests/test-setenv.c: New file.
42454         * tests/test-unsetenv.c: Likewise.
42455
42456 2009-11-16  Jim Meyering  <meyering@redhat.com>
42457
42458         version-etc: relax license to LGPLv3+
42459         * modules/version-etc (License): Relax license.
42460
42461         better AC_REQUIRE expanded-before-required-warning avoidance
42462         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42463         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42464         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42465         which is no longer needed.
42466
42467 2009-11-16  Eric Blake  <ebb9@byu.net>
42468
42469         test-freading: clean up temporary file
42470         * tests/test-freading.c (main): Remove file on success, and use
42471         ASSERT more liberally.
42472         Reported by Jim Meyering.
42473
42474 2009-11-16  Jim Meyering  <meyering@redhat.com>
42475
42476         avoid new AC_REQUIRE expanded-before-required warnings
42477         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42478         merely using it.
42479         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42480         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42481
42482 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42483
42484         * tests/test-xalloc-die.c: New file.
42485         * modules/xalloc-die-tests: New file.
42486         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42487         XFAIL_TESTS so it can be appended by modules.
42488
42489 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42490
42491         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42492         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42493
42494 2009-11-14  Eric Blake  <ebb9@byu.net>
42495
42496         fnmatch: avoid compiler warning
42497         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42498         to silence compiler warning about mismatch signedness in ?:.
42499         Reported by Robert Millan.
42500
42501         intprops: add double-inclusion guard
42502         * lib/intprops.h: Allow idempotent includes.
42503         Suggested by Bruce Korb.
42504
42505         openat: detect Solaris fchownat bug
42506         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42507         penalizing glibc chownat when only lchownat is broken.
42508         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42509         trailing slash bugs.
42510         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42511         * modules/openat-tests (Files): Include more files.
42512         (Depends-on): Add mgetgroups, sleep, stat-time.
42513         (configure.ac): Add additional checks.
42514         (Makefile.am): Build new test.
42515         * tests/test-fchownat.c: New file.
42516
42517         lchown: detect Solaris and FreeBSD bug
42518         * lib/lchown.c (rpl_lchown): Work around bug.
42519         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42521         * modules/unistd (Makefile.am): Populate it.
42522         * lib/unistd.in.h (lchown): Update declaration.
42523         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42524         * modules/lchown-tests: New file.
42525         * tests/test-lchown.h (test_lchown): Likewise.
42526         * tests/test-lchown.c (main): Likewise.
42527
42528         chown: detect Solaris and FreeBSD bug
42529         * lib/chown.c (rpl_chown): Work around bug.
42530         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42531         (gl_PREREQ_CHOWN): Delete.
42532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42533         * modules/unistd (Makefile.am): Populate it.
42534         * lib/unistd.in.h (chown): Update declaration.
42535         * lib/lchown.c (chown): Update client.
42536         * modules/lchown (Depends-on): Add lstat.
42537         * doc/posix-functions/chown.texi (chown): Document the bug.
42538         * doc/posix-functions/getgroups.texi (getgroups): Document
42539         getgroups pitfall.
42540         * modules/chown-tests: New file.
42541         * tests/test-chown.h (test_chown): Likewise.
42542         * tests/test-chown.c (main): Likewise.
42543
42544 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42545
42546         gnulib-tool: correctly detect absence of m4 directories
42547         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42548
42549 2009-11-14  Jim Meyering  <meyering@redhat.com>
42550
42551         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42552         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42553
42554 2009-11-14  John W. Eaton  <jwe@gnu.org>
42555
42556         strftime.h: wrap function declaration in extern "C" block
42557         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42558
42559 2009-11-13  Eric Blake  <ebb9@byu.net>
42560
42561         getgroups: avoid compiler warning
42562         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42563
42564         getgroups: work around FreeBSD bug
42565         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42566         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42567         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42568         * tests/test-getgroups.c (main): Fix buffer overrun.
42569
42570         getgroups: avoid compilation failure
42571         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42572         * modules/getgroups (Depends-on): Add stdint.
42573
42574 2009-11-13  Jim Meyering  <meyering@redhat.com>
42575
42576         test-getgroups: avoid compilation failure
42577         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42578
42579 2009-11-13  Eric Blake  <ebb9@byu.net>
42580
42581         mgetgroups: new module, taken from coreutils
42582         * modules/mgetgroups: New file.
42583         * lib/mgetgroups.h: Likewise.
42584         * lib/mgetgroups.c (mgetgroups): Likewise.
42585         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42586         * MODULES.html.sh (Users and groups): Mention it.
42587
42588         getgroups: don't expose GETGROUPS_T to user
42589         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42590         an element at a time if GETGROUPS_T is wrong size.
42591         * lib/getugroups.h (getugroups): Change signature.
42592         * lib/unistd.in.h (getgroups): Likewise.
42593         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42594         signature needs fixing.
42595         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42596         AC_TYPE_GETGROUPS.
42597         * modules/group-member (Depends-on): Add getgroups.
42598         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42599         (group_member): Rely on getgroups replacement.
42600         * lib/getugroups.c (getugroups): Use gid_t.
42601         * tests/test-getgroups.c (main): Likewise.
42602         * NEWS: Mention the signature change.
42603         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42604         problem with signature.
42605         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42606         GETGROUPS_T is still useful for setgroups.
42607
42608         getgroups, getugroups: provide stubs for mingw
42609         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42610         * lib/getugroups.c (getugroups): Likewise.
42611         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42612         function.  Modernize replacement scheme.
42613         (gl_PREREQ_GETGROUPS): Delete.
42614         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42615         * modules/getgroups (configure.ac): Declare witness.
42616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42617         * modules/unistd (Depends-on): Substitute witness.
42618         * lib/unistd.in.h (getgroups): Declare replacement.
42619
42620         getgroups: avoid calling exit
42621         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42622         drop xalloc.
42623         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42624         dependencies.
42625         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42626         exiting, in the rare case of malloc failure.
42627
42628         getgroups: fix logic error
42629         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42630         has more than 20 groups.
42631         * modules/getgroups-tests: New test.
42632         * tests/test-getgroups.c: New file.
42633
42634 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42635
42636         * tests/test-base64.c: Improve.
42637
42638 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42639
42640         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42641         Blake <ebb9@byu.net>.
42642
42643 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42644
42645         * tests/test-xvasprintf.c: Add %s%s related checks.
42646
42647 2009-11-12  Eric Blake  <ebb9@byu.net>
42648
42649         version-etc: match standards.texi style
42650         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42651         and use <> only for URLs.
42652
42653 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42654
42655         fts: do not fail on a submount during traversal
42656         * lib/fts.c (fts_build): Read the stat info again after opening
42657         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42658         Original report at http://bugzilla.redhat.com/501848.
42659
42660 2009-11-12  Jim Meyering  <meyering@redhat.com>
42661
42662         bootstrap: sync from coreutils
42663         * build-aux/bootstrap (bootstrap_epilogue): New function.
42664         Use git_modules_config in one more place.  This make bootstrap's
42665         --gnulib-srcdir option more useful for testing.
42666
42667         bootstrap: generalize autoheader check
42668         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42669         AC_CONFIG_HEADERS.
42670
42671 2009-11-11  Eric Blake  <ebb9@byu.net>
42672
42673         mkfifoat: use new modules for Solaris and BSD bugs
42674         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42675         * lib/mkfifoat.c (mknodat): Split...
42676         * lib/mknodat.c (mknodat): ...into new file.
42677         * modules/mkfifoat (Files): Ship new file.
42678         (Depends-on): Add mkfifo, mknod.
42679         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42680         (Depends-on): Add symlink.
42681         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42682         redundant with test_mkfifo.h.
42683         (do_mkfifoat, do_mknodat): New helpers.
42684
42685         mknod: new module
42686         * modules/mknod: New file.
42687         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42688         * lib/mknod.c (mknod): Likewise.
42689         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42690         defaults.
42691         * modules/sys_stat (Makefile.am): Substitute them.
42692         * lib/sys_stat.in.h (mknod): Declare replacement.
42693         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42694         Document it.
42695         * doc/posix-functions/mknod.texi (mknod): Likewise.
42696         * modules/mknod-tests: New test.
42697         * tests/test-mknod.c: Likewise.
42698
42699         mkfifo: new module
42700         * modules/mkfifo: New file.
42701         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42702         * lib/mkfifo.c (mkfifo): Likewise.
42703         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42704         defaults.
42705         * modules/sys_stat (Makefile.am): Substitute them.
42706         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42707         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42708         Document it.
42709         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42710         * modules/mkfifo-tests: New test.
42711         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42712         from test-mkfifoat.c.
42713         * tests/test-mkfifo.c: New file.
42714
42715         readlink: detect FreeBSD bug
42716         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42717         slash on symlink.
42718         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42719         * tests/test-readlink.h (test_readlink): Enhance test.
42720
42721         symlink: detect FreeBSD bug
42722         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42723         slash on symlink.
42724         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42725         * tests/test-symlink.h (test_symlink): Enhance test.
42726
42727 2009-11-10  Eric Blake  <ebb9@byu.net>
42728
42729         link: detect FreeBSD bug
42730         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42731         symlink.
42732         * doc/posix-functions/link.texi (link): Document the bug.
42733         * tests/test-link.h (test_link): Enhance test.
42734         * tests/test-linkat.c (main): Update caller.
42735
42736         unlink, remove: detect FreeBSD bug
42737         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42738         slash on symlink.
42739         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42740         * doc/posix-functions/remove.texi (remove): Likewise.
42741         * tests/test-unlink.h (test_unlink): Enhance test.
42742         * tests/test-remove.c (main): Likewise.
42743
42744 2009-11-09  Eric Blake  <ebb9@byu.net>
42745
42746         rename: detect FreeBSD bug
42747         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42748         slash on symlink.
42749         * modules/renameat-tests (Depends-on): Add filenamecat.
42750         * tests/test-rename.h (test_rename): Allow one more errno.
42751         * tests/test-renameat.c (main): Likewise.
42752         * doc/posix-functions/rename.texi (rename): Document the bug.
42753
42754         open: detect FreeBSD bug
42755         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42756         symlink.
42757         * doc/posix-functions/open.texi (open): Document the bug.
42758         * doc/posix-functions/utimes.texi (utimes): Likewise.
42759         * tests/test-open.h (test_open): Add parameters, and test symlink
42760         handling.
42761         * tests/test-open.c (main): Adjust caller.
42762         * tests/test-fcntl-safer.c (main): Likewise.
42763         * modules/open-tests (Depends-on): Add stdbool, symlink.
42764         * modules/fcntl-safer-tests (Depends-on): Likewise.
42765         * tests/test-openat.c (main): Add test-open tests.
42766
42767         stat: detect FreeBSD bug
42768         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42769         symlink.
42770         * doc/posix-functions/stat.texi (stat): Document the bug.
42771         * tests/test-stat.h (test_stat_func): Add argument.
42772         * tests/test-stat.c (main): Adjust caller.
42773         * tests/test-fstatat.c (main): Likewise.
42774         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42775         Reported by Jim Meyering.
42776
42777 2009-11-09  James Youngman  <jay@gnu.org>
42778
42779         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42780         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42781
42782 2009-11-08  Jim Meyering  <meyering@redhat.com>
42783
42784         utimens: remove invalid futimesat call
42785         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42786         It used the file descriptor of the target file as the DIR_FD
42787         parameter and NULL as the file name.  That caused failure with
42788         errno == EFAULT on FreeBSD-8.0-rc2
42789
42790 2009-11-07  Eric Blake  <ebb9@byu.net>
42791
42792         fflush, freadseek: use fseeko, not fseek
42793         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42794         (clear_ungetc_buffer): Avoid potential problems on large files.
42795         * lib/freadseek.c (freadseek): Likewise.
42796         * modules/freadseek (Depends-on): Add fseeko.
42797         * modules/fseek (configure.ac): Set a witness.
42798         * tests/test-fflush.c (main): Use fseeko.
42799         * tests/test-fpurge.c (fseek): Disable link warning.
42800         * tests/test-freadable.c (fseek): Likewise.
42801         * tests/test-freading.c (fseek): Likewise.
42802         * tests/test-fseeko.c (fseek): Likewise.
42803         * tests/test-ftell.c (fseek): Likewise.
42804         * tests/test-ftello.c (fseek): Likewise.
42805         * tests/test-fwritable.c (fseek): Likewise.
42806         * tests/test-fwriting.c (fseek): Likewise.
42807
42808 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42809
42810         * modules/memchr (Depends-on): Drop getpagesize dependency.
42811
42812 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42813
42814         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42815         Reported by Ludovic Courtès.
42816         * build-aux/pmccabe2html: Improve example usage.
42817         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42818
42819 2009-11-06  Jim Meyering  <meyering@redhat.com>
42820
42821         do-release-commit-and-tag: New module.
42822         Automate the release-commit and tag process.
42823         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42824         * modules/do-release-commit-and-tag: New file.
42825         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42826
42827 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42828
42829         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42830         because test-select.c uses inet_pton.
42831
42832 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42833
42834         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42835         GETADDRINFO_LIB.  Bump serial number.
42836         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42837         Suggested by Eric Blake <ebb9@byu.net>.
42838
42839 2009-11-05  Eric Blake  <ebb9@byu.net>
42840
42841         strtod: detect darwin bug
42842         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42843         Reported by Leo Davis.
42844
42845         freopen-safer: new module
42846         * modules/freopen-safer: New module.
42847         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42848         * lib/freopen-safer.c (freopen_safer): New file.
42849         * lib/stdio-safer.h (freopen_safer): New declaration.
42850         * lib/stdio--.h (freopen): New override.
42851         * MODULES.html.sh (File stream based Input/Output): Mention it.
42852         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42853         freopen-safer module.
42854         * doc/posix-functions/stderr.texi (stderr): Likewise.
42855         * doc/posix-functions/stdin.texi (stdin): Likewise.
42856         * doc/posix-functions/stdout.texi (stdout): Likewise.
42857         * modules/freopen-safer-tests: New test.
42858         * tests/test-reopen-safer.c: New file.
42859
42860 2009-11-05  Jim Meyering  <meyering@redhat.com>
42861
42862         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42863         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42864
42865 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42866
42867         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42868
42869 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42870
42871         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42872
42873 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42874
42875         Fix link error.
42876         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42877         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42878
42879 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42880
42881         * tests/test-func.c: Also test value of __func__.
42882
42883 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42884
42885         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42886         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42887
42888 2009-11-05  Bruno Haible  <bruno@clisp.org>
42889
42890         Fix link error.
42891         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42892         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42893         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42894
42895 2009-11-05  Bruno Haible  <bruno@clisp.org>
42896
42897         Tests for module 'inet_pton'.
42898         * modules/inet_pton-tests: New file.
42899         * tests/test-inet_pton.c: New file.
42900
42901 2009-11-05  Bruno Haible  <bruno@clisp.org>
42902
42903         Tests for module 'inet_ntop'.
42904         * modules/inet_ntop-tests: New file.
42905         * tests/test-inet_ntop.c: New file.
42906
42907 2009-11-04  Eric Blake  <ebb9@byu.net>
42908
42909         stdlib-safer: wrap all mkstemp variants
42910         * modules/mkostemp (configure.ac): Set witness.
42911         * modules/mkostemps (configure.ac): Likewise.
42912         * modules/mkstemps (configure.ac): Likewise.
42913         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42914         (mkstemps_safer): Wrap more functions.
42915         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42916         wrapping.
42917         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42918         (mkstemps_safer): Implement the wrappers.
42919
42920         mkstemps, mkostemps: new modules
42921         * modules/mkostemps: New module.
42922         * modules/mkstemps: Likewise.
42923         * lib/mkostemps.c (mkostemps): New file.
42924         * lib/mkstemps.c (mkstemps): Likewise.
42925         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42926         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42928         * modules/stdlib (Makefile.am): Substitute them.
42929         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42930         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42931         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42932         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42933         * MODULES.html.sh (File system functions): Mention them.
42934
42935         tempname: resync from glibc
42936         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42937         same values for __GT_FILE as glibc.  Abort even when assertions
42938         are disabled.
42939         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42940         match its value otherwise.  Allow idempotent inclusion.
42941         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42942         * lib/mkostemp.c (mkostemp): Likewise.
42943         * lib/mkstemp.c (mkstemp): Likewise.
42944         * lib/tmpfile.c (tmpfile): Likewise.
42945         * NEWS: Document this.
42946
42947         utimens: fix use of futimens on older Linux
42948         * lib/utimens.c (fdutimens): Use updated, rather than original,
42949         timespec to avoid bug in older Linux kernel.
42950         Reported by Simon Josefsson.
42951
42952 2009-11-04  Bruno Haible  <bruno@clisp.org>
42953
42954         Make num_processors more flexible and consistent.
42955         * lib/nproc.h (enum nproc_query): New type.
42956         (num_processors): Add a 'query' argument.
42957         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42958         (num_processors): Add a 'query' argument. Test the value of the
42959         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42960         mingw, count the number of CPUs available for the current process.
42961         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42962         Check for sched_getaffinity and sched_getaffinity_np.
42963         * modules/nproc (Depends-on): Add c-ctype, extensions.
42964         * NEWS: Mention the change.
42965
42966 2009-11-03  Bruno Haible  <bruno@clisp.org>
42967
42968         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42969
42970 2009-11-03  Jim Meyering  <meyering@redhat.com>
42971
42972         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42973         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42974         if it is defined.
42975
42976 2009-11-02  Eric Blake  <ebb9@byu.net>
42977
42978         mktime, timegm: share common declaration
42979         * lib/mktime-internal.h: New file.
42980         * lib/mktime.c: Use it rather than open-coding a declaration.
42981         * lib/timegm.c: Likewise.
42982         * modules/mktime (Files): Ship it.
42983         * modules/timegm (Files): Likewise.
42984         Suggested by Bruno Haible.
42985
42986         test-update-copyright: update test to match script changes
42987         * tests/test-update-copyright.sh: Avoid hard-coding perl
42988         location.  Don't update *.bak created by earlier runs.
42989
42990 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42991             Simon Josefsson  <simon@josefsson.org>
42992             Bruno Haible  <bruno@clisp.org>
42993
42994         Fix link error on Solaris 8.
42995         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42996         also in libnsl. Define also INET_PTON_LIB.
42997         * modules/inet_pton (Link): New section.
42998
42999 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43000             Bruno Haible  <bruno@clisp.org>
43001
43002         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43003         * modules/inet_ntop (Link): New section.
43004         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43005
43006 2009-11-02  Eric Blake  <ebb9@byu.net>
43007
43008         maint: avoid compiler warnings in m4 macros
43009         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43010         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43011
43012 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43013
43014         * m4/pmccabe2html.m4: Remove file.
43015         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43016         function.  Change maintainer.
43017         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43018         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43019         Courtès).
43020
43021 2009-10-31  Eric Blake  <ebb9@byu.net>
43022
43023         fseeko: fix m4 regression
43024         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43025         regression from 2009-10-27.
43026         Reported by Ralf Wildenhues.
43027
43028 2009-10-31  Jim Meyering  <meyering@redhat.com>
43029
43030         inttostr: aesthetics and improved (compile-time) safety
43031         Define inttype_is_signed rather than inttype_is_unsigned,
43032         since the sole use is via "#if inttype_is_signed".
43033         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43034         inttype_is_unsigned.
43035         * lib/offtostr.c (inttype_is_signed): Likewise.
43036         * lib/uinttostr.c (inttype_is_signed): Likewise.
43037         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43038         * lib/inttostr.c (inttostr): Use verify to cross-check the
43039         inttype_is_signed value and the signedness of the actual type.
43040         * modules/inttostr (Depends-on): Add verify.
43041
43042 2009-10-30  Eric Blake  <ebb9@byu.net>
43043
43044         build: avoid compiler warnings
43045         * lib/fchmodat.c (lchmod): Mark unused variables.
43046         * lib/getopt.c (_getopt_initialize): Likewise.
43047         * lib/mktime.c (__mktime_internal): Provide prototype.
43048         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43049         older gcc that do not understand #pragma GCC diagnostic.
43050         * lib/uinttostr.c (inttype_is_unsigned): Define.
43051         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43052
43053 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43054
43055         stat: fix compilation on AIX
43056         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43057         only see struct stat64.
43058
43059 2009-10-30  Eric Blake  <ebb9@byu.net>
43060
43061         exclude: make more robust
43062         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43063         rather than masking a coding bug.
43064         Suggested by Bruno Haible.
43065
43066 2009-10-30  Jim Meyering  <meyering@redhat.com>
43067
43068         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43069         Rather than putting #!/usr/bin/perl on the first line,
43070         start with a variant of what's recommended by "man perlrun" that
43071         invokes the first "perl" program from your shell's search path.
43072         * build-aux/gitlog-to-changelog: Replace #!... as above.
43073         Add a "Local Variables" perl mode setting.
43074         Prompted by a patch from Ludovic Courtès.
43075         Improved by Eric Blake.
43076         * build-aux/useless-if-before-free: Likewise.
43077         * build-aux/announce-gen: Likewise.
43078         * build-aux/update-copyright: Likewise.
43079
43080 2009-10-29  Eric Blake  <ebb9@byu.net>
43081
43082         filenamecat-lgpl: adjust clients
43083         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43084         filenamecat.
43085         * modules/renameat (Depends-on): Likewise.
43086
43087         filenamecat: split into filenamecat-lgpl
43088         * modules/filenamecat-lgpl: New module.
43089         * modules/filenamecat (Files): Move library-safe files into
43090         filenamecat-lgpl.
43091         (Depends-on): Add filenamecat-lgpl.
43092         (configure.ac): Declare witness.
43093         * lib/filenamecat.h (file_name_concat): Only declare when using
43094         GPL module.
43095         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43096         Move...
43097         * lib/filenamecat-lgpl.c: ...into new file.
43098         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43099         (gl_FILE_NAME_CONCAT): Use it.
43100         * MODULES.html.sh (File system functions): Mention new module.
43101
43102         argp: avoid memory leak
43103         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43104         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43105         base_name, since the latter malloc()s and can call exit().
43106         Leak introduced 2006-07-03.
43107
43108         dirname-lgpl: adjust clients that don't need full dirname
43109         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43110         * modules/filenamecat (Depends-on): Likewise.
43111         * modules/linkat (Depends-on): Likewise.
43112         * modules/mkancesdirs (Depends-on): Likewise.
43113         * modules/mkdir (Depends-on): Likewise.
43114         * modules/openat (Depends-on): Likewise.
43115         * modules/savewd (Depends-on): Likewise.
43116         * modules/rename (Depends-on): Likewise.
43117         (License): Relax license.
43118         * modules/mkdir-tests (Depends-on): Drop progname.
43119         (Makefile.am): Delete unneeded LDADD.
43120         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43121
43122         dirname: split into dirname-lgpl
43123         * modules/dirname-lgpl: New module.
43124         * modules/dirname (Files): Move library-safe files into
43125         dirname-lgpl.
43126         (Depends-on): Add dirname-lgpl.
43127         (configure.ac): Declare witness.
43128         * modules/double-slash-root (License): Relax license.
43129         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43130         module.
43131         * lib/dirname.c (dir_len, mdir_name): Move...
43132         * lib/dirname-lgpl.c: ...into new file.
43133         * lib/basename.c (last_component, base_len): Move...
43134         * lib/basename-lgpl.c: ...into new file.
43135         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43136         (gl_DIRNAME): Use it.
43137         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43138         Mention new module.
43139         * modules/dirname-tests (Depends-on): Add progname.
43140         * tests/test-dirname.c (program_name): Delete.
43141
43142         mkdir: make safe for libraries
43143         * modules/mkdir (Depends-on): Drop xalloc.
43144         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43145         exit.
43146
43147         tests: avoid some compiler warnings
43148         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43149         literals.
43150         * tests/test-memchr.c (main): Avoid type mismatch.
43151         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43152         * tests/test-base64.c (main): Likewise.
43153         * tests/test-getdelim.c (main): Likewise.
43154         * tests/test-gethostname.c (main): Likewise.
43155         * tests/test-getline.c (main): Likewise.
43156         * tests/test-netinet_in.c (main): Likewise.
43157         * tests/test-select.c (open_server_socket, main): Likewise.
43158         * tests/test-select-stdin.c (main): Likewise.
43159         * tests/test-sockets.c (main): Likewise.
43160         * tests/test-strsignal.c (main): Likewise.
43161         * tests/test-sys_select.c (main): Likewise.
43162         * tests/test-sys_socket.c (main): Likewise.
43163         * tests/test-u64.c (main): Likewise.
43164         * tests/test-xfprintf-posix.c (main): Likewise.
43165         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43166
43167         sockets: avoid compiler warning
43168         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43169
43170         maint: detect usage(1) and other suspicious exits
43171         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43172
43173 2009-10-29  Jim Meyering  <meyering@redhat.com>
43174
43175         timespec: long-to-int truncation could make timespec_cmp malfunction
43176         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43177         a multiple of 2^32 nanoseconds as no difference.
43178
43179 2009-10-28  Jim Meyering  <meyering@redhat.com>
43180
43181         fprintftime: wrap macro code argument in "do {...} while(0)"
43182         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43183         cpy macro must be a statement that can be followed by a semicolon.
43184         Now that the else clause contains a comment and is hence longer
43185         than one line, I require curly braces.  That in turn requires
43186         that we wrap this code block in the standard do...while(0).
43187
43188         fprintftime: remove stray semicolon from previous change
43189         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43190
43191         fprintftime: avoid a warning about ignored fwrite return value
43192         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43193         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43194         that is unsafe.
43195         * modules/fprintftime (Depends-on): Add ignore-value.
43196
43197         exclude: avoid an unwarranted warning
43198         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43199
43200 2009-10-27  Eric Blake  <ebb9@byu.net>
43201
43202         fseek: avoid compilation failure when fflush is replaced
43203         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43204         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43205         module is in use.
43206         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43207         module is not in use; since REPLACE_FSEEK worked otherwise.
43208         (GNULIB_FTELLO): Likewise for ftell.
43209         Reported by Ian Beckwith and others.
43210
43211 2009-10-27  Bruno Haible  <bruno@clisp.org>
43212
43213         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43214         Reported by Jim Meyering.
43215
43216 2009-10-27  Jim Meyering  <jim@meyering.net>
43217             Bruno Haible  <bruno@clisp.org>
43218
43219         Avoid warning despite dropping the return value of fwrite.
43220         * lib/unicodeio.c: Include ignore-value.h.
43221         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43222         * modules/unicodeio (Depends-on): Add ignore-value.
43223
43224 2009-10-26  Eric Blake  <ebb9@byu.net>
43225
43226         areadlinkat: fix fallback path
43227         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43228         pointer and zero.
43229
43230 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43231
43232         Use a better IO block size for modern systems
43233         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43234         * lib/md2.c: Likewise.
43235         * lib/md4.c: Likewise.
43236         * lib/md5.c: Likewise.
43237         * lib/sha1.c: Likewise.
43238         * lib/sha256.c: Likewise.
43239         * lib/sha512.c: Likewise.
43240
43241 2009-10-22  Eric Blake  <ebb9@byu.net>
43242
43243         tests: avoid several compiler warnings
43244         * tests/test-getcwd.c (main): Avoid buffer underflow.
43245         * tests/test-getdate.c (main): String literals are not safe with
43246         putenv, so use setenv.  Declare unused argument.
43247         * modules/getdate-tests (Depends-on): Add setenv.
43248         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43249         problems with string literals in char *.
43250         * tests/test-hash.c (main): Avoid shadowing declaration.
43251         (insert_new): Treat string literals as char const *.
43252         * tests/test-getopt.h (test_getopt): Likewise.
43253         (getopt_loop): Alter types to minimize casting elsewhere.
43254         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43255         (test_getopt_long_posix): Likewise.
43256         (do_getopt_long): Add wrapper to minimize casting.
43257         * tests/test-atexit.c (clear_temp_file): Use void.
43258         * tests/test-areadlink-with-size.c (main): Declare unused
43259         arguments.
43260         * tests/test-areadlink.c (main): Likewise.
43261         * tests/test-areadlinkat-with-size.c (main): Likewise.
43262         * tests/test-areadlinkat.c (main): Likewise.
43263         * tests/test-canonicalize-lgpl.c (main): Likewise.
43264         * tests/test-canonicalize.c (main): Likewise.
43265         * tests/test-dirent-safer.c (main): Likewise.
43266         * tests/test-dirname.c (main): Likewise.
43267         * tests/test-dup2.c (main): Likewise.
43268         * tests/test-fchdir.c (main): Likewise.
43269         * tests/test-fcntl-h.c (main): Likewise.
43270         * tests/test-fcntl-safer.c (main): Likewise.
43271         * tests/test-fdopendir.c (main): Likewise.
43272         * tests/test-fdutimensat.c (main): Likewise.
43273         * tests/test-fflush.c (main): Likewise.
43274         * tests/test-filenamecat.c (main): Likewise.
43275         * tests/test-filevercmp.c (main): Likewise.
43276         * tests/test-fopen-safer.c (main): Likewise.
43277         * tests/test-fopen.c (main): Likewise.
43278         * tests/test-fpending.c (main): Likewise.
43279         * tests/test-fpurge.c (main): Likewise.
43280         * tests/test-freading.c (main): Likewise.
43281         * tests/test-fstatat.c (main): Likewise.
43282         * tests/test-fsync.c (main): Likewise.
43283         * tests/test-futimens.c (main): Likewise.
43284         * tests/test-getndelim2.c (main): Likewise.
43285         * tests/test-gettimeofday.c (main): Likewise.
43286         * tests/test-getopt.c (main): Likewise.
43287         * tests/test-i-ring.c (main): Likewise.
43288         * tests/test-inttypes.c (main): Likewise.
43289         * tests/test-link.c (main): Likewise.
43290         * tests/test-lstat.c (main): Likewise.
43291         * tests/test-math.c (main): Likewise.
43292         * tests/test-md5.c (main): Likewise.
43293         * tests/test-memchr2.c (main): Likewise.
43294         * tests/test-memrchr.c (main): Likewise.
43295         * tests/test-mkdir.c (main): Likewise.
43296         * tests/test-mkdirat.c (main): Likewise.
43297         * tests/test-mkfifoat.c (main): Likewise.
43298         * tests/test-open.c (main): Likewise.
43299         * tests/test-openat-safer.c (main): Likewise.
43300         * tests/test-openat.c (main): Likewise.
43301         * tests/test-quotearg.c (main): Likewise.
43302         * tests/test-rawmemchr.c (main): Likewise.
43303         * tests/test-readlink.c (main): Likewise.
43304         * tests/test-remove.c (main): Likewise.
43305         * tests/test-rename.c (main): Likewise.
43306         * tests/test-renameat.c (main): Likewise.
43307         * tests/test-rmdir.c (main): Likewise.
43308         * tests/test-sha1.c (main): Likewise.
43309         * tests/test-signal.c (main): Likewise.
43310         * tests/test-sigaction.c (main): Likewise.
43311         * tests/test-stat.c (main): Likewise.
43312         * tests/test-stat-time.c (main): Likewise.
43313         * tests/test-stddef.c (main): Likewise.
43314         * tests/test-stdint.c (main): Likewise.
43315         * tests/test-stdio.c (main): Likewise.
43316         * tests/test-stdlib.c (main): Likewise.
43317         * tests/test-strchrnul.c (main): Likewise.
43318         * tests/test-strerror.c (main): Likewise.
43319         * tests/test-string.c (main): Likewise.
43320         * tests/test-strtod.c (main): Likewise.
43321         * tests/test-strverscmp.c (main): Likewise.
43322         * tests/test-symlink.c (main): Likewise.
43323         * tests/test-symlinkat.c (main): Likewise.
43324         * tests/test-sys_stat.c (main): Likewise.
43325         * tests/test-sys_time.c (main): Likewise.
43326         * tests/test-time.c (main): Likewise.
43327         * tests/test-unistd.c (main): Likewise.
43328         * tests/test-unlink.c (main): Likewise.
43329         * tests/test-unlinkat.c (main): Likewise.
43330         * tests/test-utimens.c (main): Likewise.
43331         * tests/test-utimensat.c (main): Likewise.
43332         * tests/test-version-etc.c (main): Likewise.
43333         * tests/test-wchar.c (main): Likewise.
43334         * tests/test-wctype.c (main): Likewise.
43335         * tests/test-xprintf-posix.c (main): Likewise.
43336         * tests/test-posixtm.c (main): Likewise.
43337         (STREQ): Delete unused macro.
43338         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43339         shadowed variables.
43340         * tests/test-memchr.c (main): Likewise.
43341
43342 2009-10-21  Eric Blake  <ebb9@byu.net>
43343
43344         areadlinkat: avoid failure on older glibc
43345         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43346         rather than mis-comparing 0 against FUNC_RESULT of char*.
43347
43348 2009-10-21  Bruno Haible  <bruno@clisp.org>
43349
43350         * modules/stpncpy (License): Relicense under LGPLv2+.
43351         Reported by David Lutterkort <lutter@redhat.com>.
43352
43353 2009-10-20  Eric Blake  <ebb9@byu.net>
43354
43355         utimensat: work around Solaris 9 bug
43356         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43357         has trailing slash bugs.
43358         * tests/test-lutimens.h (test_lutimens): Enhance test.
43359         * tests/test-utimens.h (test_utimens): Likewise.
43360         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43361         * doc/posix-functions/utimes.texi (utimes): Likewise.
43362         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43363         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43364         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43365         * doc/posix-functions/futimens.texi (futimens): Likewise.
43366
43367         fdutimensat: new module
43368         * modules/fdutimensat: New file.
43369         * lib/fdutimensat.c (fdutimensat): Likewise.
43370         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43371         * MODULES.html.sh (File system functions): Mention module.
43372         * modules/fdutimensat-tests: New test.
43373         * tests/test-fdutimensat.c: Likewise.
43374
43375         doc: regenerate INSTALL
43376         * doc/INSTALL: Reflect recent autoconf update.
43377         * doc/INSTALL.ISO: Likewise.
43378         * doc/INSTALL.UTF-8: Likewise.
43379
43380 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43381
43382         acl: warn if ACL support is not detected
43383         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43384
43385 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43386
43387         * lib/nproc.h: Add extern "C" block for C++.
43388
43389 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43390             Bruno Haible  <bruno@clisp.org>
43391
43392         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43393         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43394         * doc/posix-functions/isalpha.texi: Likewise.
43395         * doc/posix-functions/isblank.texi: Likewise.
43396         * doc/posix-functions/iscntrl.texi: Likewise.
43397         * doc/posix-functions/isdigit.texi: Likewise.
43398         * doc/posix-functions/isgraph.texi: Likewise.
43399         * doc/posix-functions/islower.texi: Likewise.
43400         * doc/posix-functions/isprint.texi: Likewise.
43401         * doc/posix-functions/ispunct.texi: Likewise.
43402         * doc/posix-functions/isspace.texi: Likewise.
43403         * doc/posix-functions/isupper.texi: Likewise.
43404         * doc/posix-functions/isxdigit.texi: Likewise.
43405
43406 2009-10-18  Bruno Haible  <bruno@clisp.org>
43407
43408         Tests for module 'isblank'.
43409         * modules/isblank-tests: New file.
43410         * tests/test-isblank.c: New file.
43411
43412         New module 'isblank'.
43413         * lib/isblank.c: New file.
43414         * m4/isblank.m4: New file.
43415         * modules/isblank: New file.
43416         * doc/posix-functions/isblank.texi: Mention the new module.
43417
43418 2009-10-18  Bruno Haible  <bruno@clisp.org>
43419
43420         New module 'ctype'.
43421         * lib/ctype.in.h: New file.
43422         * m4/ctype.m4: New file.
43423         * modules/ctype: New file.
43424         * doc/posix-headers/ctype.texi: Mention the new module.
43425
43426 2009-10-18  Jim Meyering  <meyering@redhat.com>
43427
43428         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43429         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43430         right after its initialization, rather than farther down.
43431         Keeping these in close proximity makes it easier to ensure
43432         that each such variable is initialized.  E.g.,
43433
43434             LIB_CLOCK_GETTIME=
43435             AC_SUBST([LIB_CLOCK_GETTIME])
43436
43437         This change also increments these serial numbers.
43438         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43439         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43440         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43441
43442 2009-10-18  Bruno Haible  <bruno@clisp.org>
43443
43444         Don't let environment variables perturb build.
43445         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43446         (gl_PREREQ_GETHRXTIME): ... not here.
43447
43448 2009-10-18  Bruno Haible  <bruno@clisp.org>
43449
43450         Avoid symlink attack in localcharset module.
43451         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43452         (O_NOFOLLOW): Define fallback.
43453         (get_charset_aliases): Don't open the file if it is a symbolic link.
43454         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43455         gl_FCNTL_H.
43456         (gl_FCNTL_H): Require it.
43457         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43458         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43459         Reported by Fergal Glynn <fglynn@veracode.com>.
43460
43461 2009-10-18  Bruno Haible  <bruno@clisp.org>
43462
43463         Implement nproc for mingw.
43464         * lib/nproc.c: Include <windows.h>
43465         (num_processors): On native Windows platforms, try GetSystemInfo.
43466
43467 2009-10-18  Bruno Haible  <bruno@clisp.org>
43468
43469         Implement nproc for IRIX.
43470         * lib/nproc.c: Include <sys/sysmp.h>.
43471         (num_processors): On IRIX systems, try sysmp.
43472         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43473
43474 2009-10-18  Bruno Haible  <bruno@clisp.org>
43475
43476         Implement nproc for HP-UX.
43477         * lib/nproc.c: Include <sys/pstat.h>
43478         (num_processors): On HP-UX systems, try pstat_getdynamic.
43479         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43480         pstat_getdynamic.
43481
43482 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43483             Bruno Haible  <bruno@clisp.org>
43484
43485         Implement nproc for NetBSD, OpenBSD.
43486         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43487         (ARRAY_SIZE): New macro.
43488         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43489         * m4/nproc.m4: New file.
43490         * modules/nproc (Files): Add m4/nproc.m4.
43491         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43492         (Makefile.am): Instead, augment lib_SOURCES.
43493
43494 2009-10-18  Bruno Haible  <bruno@clisp.org>
43495
43496         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43497         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43498         sys/param.h.
43499
43500 2009-10-16  Eric Blake  <ebb9@byu.net>
43501
43502         utimensat: new module
43503         * modules/utimensat: New file.
43504         * lib/utimensat.c (utimensat): Likewise.
43505         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43506         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43507         so we can work around Linux bugs.
43508         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43509         * modules/sys_stat (Makefile.am): Substitute them.
43510         * lib/sys_stat.in.h (utimensat): Declare it.
43511         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43512         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43513         * modules/utimensat-tests: New test.
43514         * tests/test-utimensat.c: Likewise.
43515
43516         utimens: let lutimens work on non-symlinks
43517         * lib/utimens.c (lutimens): Fall back to utimens rather than
43518         failing with ENOSYS, when file is not a symlink.
43519         (utimens): Reduce redirection.
43520         * tests/test-lutimens.h (test_lutimens): Update test to cover
43521         non-symlinks.
43522         * tests/test-utimens.h (test_utimens): Update test to cover
43523         symlinks.
43524         * tests/test-utimens.c (main): Update caller.
43525
43526         utimens: cache whether utimensat syscall works
43527         * lib/utimens.c (utimensat_works_really): New cache variable.
43528         (fdutimens, lutimens): Use it to avoid failing syscall.
43529
43530         test-stat-time, test-utimens: improve portability
43531         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43532         ext4 on alpha, and for cygwin.
43533         * tests/test-utimens-common.h: New file.
43534         (nap): Factor delays into single function.
43535         * tests/test-lutimens.h (test_lutimens): Use new header.
43536         * tests/test-futimens.h (test_futimens): Likewise.
43537         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43538         timestamps to occur from same machine, as was done previously for
43539         test_utimens.
43540         * modules/utimens-tests (Files): Ship new file.
43541         * modules/futimens-tests (Files): Likewise.
43542         Reported in part by Jim Meyering.
43543
43544         sys_stat: sort replacement declarations
43545         * lib/sys_stat.in.h: Sort declarations.
43546         * lib/futimens.c (futimens): Fix typo.
43547
43548 2009-10-15  Jim Meyering  <meyering@redhat.com>
43549
43550         don't let environment settings perturb build
43551         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43552         could cause a configure-time and/or build-time malfunction.
43553         Typically, a configure-time function-in-library test is performed
43554         via code like this:
43555
43556           LIB_VAR=
43557           AC_SUBST([LIB_VAR])
43558           prefix_saved_LIBS=$LIBS
43559             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43560                        [test "$ac_cv_search_FUNC" = "none required" ||
43561                         LIB_VAR=$ac_cv_search_FUNC])
43562           LIBS=$prefix_saved_LIBS
43563
43564         However, in each of the files affected by this change, the LIB_VAR=
43565         initialization was omitted.  Thus, when set in the environment, its
43566         value would propagate into generated Makefiles when FUNC is not found
43567         in LIB_NAME.
43568         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43569         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43571
43572 2009-10-14  Eric Blake  <ebb9@byu.net>
43573
43574         fchdir: avoid infinite recursion in mingw
43575         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43576         recursing.
43577
43578         test-stat-time: port to mingw
43579         * tests/test-stat-time.c (force_unlink): Return a value.
43580         (test_ctime) [W32]: Fix compilation error.
43581         (nap): Don't call usleep with too large an argument.  Use
43582         force_unlink.
43583         * doc/pastposix-functions/usleep.texi (usleep): Document the
43584         portability issue.
43585
43586 2009-10-13  Jim Meyering  <meyering@redhat.com>
43587
43588         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43589         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43590         * modules/pipe-filter-ii: Likewise.
43591         * modules/sys_socket-tests: Likewise.
43592         * modules/tsearch-tests: Likewise.
43593         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43594         (check): Depend on it.
43595
43596 2009-10-12  Eric Blake  <ebb9@byu.net>
43597
43598         utimens-tests: port to NFS file systems
43599         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43600         comparisons to avoid spurious failures from timestamp drift
43601         between NFS machines.
43602
43603 2009-10-12  Eric Blake  <ebb9@byu.net>
43604
43605         stat-time-tests: minor cleanups
43606         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43607         * tests/test-stat-time.c (nap): Separate assignment from call.
43608         Suggested by Paolo Bonzini and Bruno Haible.
43609
43610         sys_stat: guarantee struct timespec
43611         * lib/sys_stat.in.h (includes): Always include <time.h>
43612         * modules/sys_stat (Depends-on): Add time.
43613         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43614         mode_t permission values.
43615         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43616         get at subsecond timestamps.
43617
43618 2009-10-10  Eric Blake  <ebb9@byu.net>
43619
43620         futimens: new module
43621         * modules/futimens: New file.
43622         * lib/futimens.c (futimens): Likewise.
43623         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43624         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43625         we can work around Linux bugs.
43626         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43627         * modules/sys_stat (Makefile.am): Substitute them.
43628         * lib/sys_stat.in.h (futimens): Declare it.
43629         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43630         * doc/posix-functions/futimens.texi (futimens): Likewise.
43631         * modules/futimens-tests: New test.
43632         * tests/test-futimens.c: Likewise.
43633
43634         utimens: introduce fdutimens
43635         * lib/utimens.h (fdutimens): New prototype.
43636         * lib/utimens.c (gl_futimens): Move guts...
43637         (fdutimens): ...to new interface.
43638         * tests/test-utimens.c (do_fdutimens): Use it.
43639
43640         utimens: add UTIME_NOW and UTIME_OMIT support
43641         * lib/utimens.c (validate_timespec, update_timespec): New helper
43642         functions.
43643         (gl_futimens, lutimens): Use them.
43644         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43645         stdbool, sys_stat.
43646         (Link): Mention resulting library dependency.
43647         * modules/utimecmp (Link): Likewise.
43648         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43649         (Makefile.am): Pick up library dependency.
43650         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43651         definition.
43652         * tests/test-sys_stat.c: Test the definitions.
43653         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43654         * NEWS: Document library dependency.
43655
43656         utimecmp: support symlink timestamps
43657         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43658         hashing when possible.  Use pathconf when available.
43659         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43660         * modules/utimecmp (Depends-on): Add lstat.
43661
43662         utimens: add lutimens interface
43663         * lib/utimens.c (lutimens): New function.
43664         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43665         * lib/utimens.h (lutimens): Declare new interface.
43666         * tests/test-utimens.c (main): Enhance test.
43667         * tests/test-lutimens.h (test_lutimens): New file.
43668         * modules/utimens-tests (Files): Distribute it.
43669         (Depends-on): Add symlink.
43670         (configure.ac): Check for usleep.
43671
43672         utimens: validate futimens usage
43673         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43674         fewer syscalls on failure later on.  Avoid compiler warning on
43675         mingw.
43676         * modules/utimens (Depends-on): Add dup2.
43677
43678         utimens: add test
43679         * modules/utimens-tests: New test.
43680         * tests/test-utimens.h: New file.
43681         * tests/test-futimens.h: Likewise.
43682         * tests/test-utimens.c: Likewise.
43683
43684         doc: mention timestamp portability issues
43685         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43686         instead.
43687         * doc/posix-functions/utime.texi (utime): Likewise.
43688         * doc/posix-functions/utimes.texi (utimes): Likewise.
43689         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43690         instead.
43691         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43692         module.
43693         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43694         Mention weakness with symlink timestamps.
43695         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43696         to utimensat/futimens instead.
43697         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43698
43699         test-dup2: enhance test
43700         * tests/test-dup2.c (main): Also check AT_FDCWD.
43701
43702         test-stat-time: avoid more spurious failures
43703         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43704         xfs; and avoid race if the two timestamps cross quantization edge.
43705
43706         relocatable: prefer 'file system' over 'filesystem'
43707         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43708         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43709         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43710         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43711         * lib/relocatable.c (compute_curr_prefix): Likewise.
43712
43713 2009-10-10  Jim Meyering  <meyering@redhat.com>
43714
43715         stat-time-tests: check for the usleep function
43716         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43717
43718 2009-10-10  Bruno Haible  <bruno@clisp.org>
43719
43720         * modules/xnanosleep: Put the Link section after the Include section.
43721
43722 2009-10-09  Eric Blake  <ebb9@byu.net>
43723
43724         dup2: work around FreeBSD 6.1 bug
43725         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43726         * doc/posix-functions/dup2.texi (dup2): Document it.
43727         Reported by Nelson H. F. Beebe and Jim Meyering.
43728
43729         test-stat-time: port to buggy NFS clients
43730         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43731         (test_ctime): Also skip test if mtime and ctime are skewed.
43732
43733         maint: prefer 'file system' over 'filesystem'
43734         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43735         * doc/posix-functions/lstat.texi (lstat): Likewise.
43736         * lib/file-has-acl.c (file_has_acl): Likewise.
43737         * lib/fwriteerror.c [TEST]: Likewise.
43738         * tests/test-areadlink.h (test_areadlink): Likewise.
43739         * tests/test-areadlinkat-with-size.c (main): Likewise.
43740         * tests/test-areadlinkat.c (main): Likewise.
43741         * tests/test-canonicalize-lgpl.c (main): Likewise.
43742         * tests/test-canonicalize.c (main): Likewise.
43743         * tests/test-fstatat.c (main): Likewise.
43744         * tests/test-linkat.c (main): Likewise.
43745         * tests/test-lstat.h (test_lstat_func): Likewise.
43746         * tests/test-mkdir.h (test_mkdir): Likewise.
43747         * tests/test-readlink.h (test_readlink): Likewise.
43748         * tests/test-remove.c (main): Likewise.
43749         * tests/test-rename.h (test_rename): Likewise.
43750         * tests/test-renameat.c (main): Likewise.
43751         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43752         * tests/test-symlink.h (test_symlink): Likewise.
43753         * tests/test-symlinkat.c (main): Likewise.
43754         * tests/test-unlink.h (test_unlink_func): Likewise.
43755         * tests/test-unlinkat.c (main): Likewise.
43756
43757         maint: make realtime library usage explicit
43758         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43759         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43760         * modules/settime (Link): Likewise.
43761         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43762
43763         test-stat-time: speed up execution
43764         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43765         warning on mingw.
43766         (nap): New helper function.
43767         (prepare_test): Use it to reduce sleep time.
43768         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43769         execution.
43770         * modules/stat-time-tests (configure.ac): Check for usleep.
43771
43772 2009-10-09  Jim Meyering  <meyering@redhat.com>
43773
43774         selinux-h: always use getfilecon wrappers
43775         * lib/getfilecon.c: New file.
43776         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43777         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43778         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43779         (fgetfilecon): Provide a stub.
43780         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43781         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43782         file unconditionally.
43783         When <selinux/selinux.h> is found, arrange to use wrappers.
43784         * modules/selinux-h (Files): Add getfilecon.c.
43785         (Makefile.am): Substitute include-next-related bits
43786         into the now-always-generated selinux/selinux.h file.
43787         * doc/glibc-functions/lgetfilecon.texi: New file.
43788         * doc/glibc-functions/fgetfilecon.texi: New file.
43789         * doc/glibc-functions/getfilecon.texi: New file.
43790         * doc/glibc-functions/getfilecon-desc.texi: New file.
43791         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43792         which to pull in the new files.
43793         * MODULES.html.sh (Misc): Add selinux-h.
43794
43795 2009-10-08  Jim Meyering  <meyering@redhat.com>
43796
43797         unistd: fix comment typo
43798         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43799
43800 2009-10-08  Eric Blake  <ebb9@byu.net>
43801
43802         areadlink: use SIZE_MAX consistently
43803         * modules/areadlink (Depends-on): Add stdint.
43804         * modules/areadlink-with-size (Depends-on): Likewise.
43805         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43806         gives NULL; drop sys/types, since unistd gives size_t; and add
43807         stdint for SIZE_MAX.
43808         (SIZE_MAX): Rely on headers.
43809         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43810         and add stdint.
43811         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43812         (SIZE_MAX): Likewise.
43813         (INITIAL_BUF_SIZE): Turn into enum.
43814         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43815
43816 2009-10-08  Jim Meyering  <meyering@redhat.com>
43817
43818         areadlinkat: avoid compilation failure
43819         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43820         Fix typo in comment.
43821
43822 2009-10-07  Eric Blake  <ebb9@byu.net>
43823
43824         areadlinkat-with-size: new module
43825         * modules/areadlinkat-with-size: New module.
43826         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43827         * lib/areadlink.h (areadlinkat): Declare it.
43828         * MODULES.html.sh (File system functions): Mention it.
43829         * modules/areadlinkat-with-size-tests: New test.
43830         * tests/test-areadlinkat-with-size.c: New file.
43831
43832         xreadlinkat: new module
43833         * modules/xreadlinkat: New module.
43834         * lib/xreadlinkat.c (xreadlinkat): New file.
43835         * lib/xreadlink.h (xreadlinkat): Declare it.
43836         * MODULES.html.sh (File system functions): Mention it.
43837
43838         areadlinkat: new module
43839         * lib/at-func.c (FUNC_FAIL): New define.
43840         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43841         * modules/areadlinkat: New module.
43842         * lib/linkat.c (areadlinkat): Move...
43843         * lib/areadlinkat.c (areadlinkat): ...to new file.
43844         * lib/areadlink.h (areadlinkat): Declare it.
43845         * modules/linkat (Depends-on): Add areadlinkat.
43846         * MODULES.html.sh (File system functions): Mention it.
43847         * modules/areadlinkat-tests: New test.
43848         * tests/test-areadlinkat.c: New file.
43849
43850         areadlink, areadlink-with-size: add tests
43851         * modules/areadlink-tests: New test.
43852         * modules/areadlink-with-size-tests: Likewise.
43853         * tests/test-areadlink.h: New file.
43854         * tests/test-areadlink.c: Likewise.
43855         * tests/test-areadlink-with-size.c: Likewise.
43856
43857         maint: minor cleanups
43858         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43859         _UNUSED_PARAMETER_ instead.
43860         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43861         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43862         * modules/linkat-tests (Files): Distribute test-link.h.
43863
43864         openat, utimens: whitespace cleanup
43865         * lib/openat.c: Prefer space throughout, rather than mix of 8
43866         spaces vs. tabs.
43867         * lib/at-func.c: Likewise.
43868         * lib/utimens.c: Likewise.
43869
43870         openat: avoid using wrong fd
43871         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43872         working directory chooses same fd.
43873         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43874
43875         mkdir, mkdirat: fix cygwin 1.5.x bug
43876         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43877         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43878         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43879         bug.
43880         (gl_PREREQ_MKDIR): Delete unused macro.
43881         * modules/mkdir (Files): Track file rename.
43882         (configure.ac): Update macro name.
43883         * modules/openat (Depends-on): Add mkdir.
43884         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43885
43886         mkdir, mkdirat: add tests
43887         * modules/mkdir-tests: New test.
43888         * tests/test-mkdir.h: New file.
43889         * tests/test-mkdir.c: Likewise.
43890         * tests/test-mkdirat.c: Likewise.
43891         * modules/openat-tests (Files): Add new files.
43892         (Makefile.am): Run new test.
43893
43894 2009-10-06  Eric Blake  <ebb9@byu.net>
43895
43896         doc: tweak *at function documentation
43897         * doc/posix-functions/faccessat.texi (faccessat): Mention
43898         known issue with replacement.
43899         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43900         * doc/posix-functions/linkat.texi (linkat): Likewise.
43901         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43902         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43903         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43904         * doc/posix-functions/renameat.texi (renameat): Likewise.
43905         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43906
43907         openat: fix GNU/Hurd bug in unlinkat
43908         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43909         broken.
43910         * doc/posix-functions/unlink.texi (unlink): Document this.
43911         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43912
43913         fdopendir: fix GNU/Hurd bug
43914         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43915         allowing non-directory fds.
43916         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43917         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43918         * modules/dirent (Makefile.am): Substitute it.
43919         * lib/dirent.in.h (fdopendir): Declare replacement.
43920         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43921         * tests/test-fdopendir.c (main): Test something other than
43922         /dev/null, since on Hurd that behaves like a directory.
43923
43924         test-symlink: port to GNU/Hurd
43925         * tests/test-symlink.h (test_symlink): Relax expected errno.
43926
43927         doc: tweak more cygwin information
43928         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43929         now compatible with glibc.
43930         * doc/posix-functions/getopt.texi (getopt): Likewise.
43931
43932         getopt-gnu: add another test
43933         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43934         guarantee behavior relied on by m4.
43935         * tests/test-getopt.c (main): Use it.
43936         * modules/getopt-posix-tests (Depends-on): Add setenv.
43937         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43938
43939         getopt: fix compilation on darwin
43940         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43941         include.
43942         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43943         Reported by Ludovic Courtès.
43944
43945 2009-10-06  Bruno Haible  <bruno@clisp.org>
43946
43947         * modules/size_max (Description): Discourage its use.
43948         Reported by Simon Josefsson.
43949
43950 2009-10-06  Jim Meyering  <meyering@redhat.com>
43951
43952         linkat: avoid compilation failure
43953         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43954
43955 2009-10-05  Eric Blake  <ebb9@byu.net>
43956
43957         linkat: support Linux 2.6.17
43958         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43959         linkat on Linux, but allow cache variable override.
43960         * lib/linkat.c (rpl_linkat): Define override.
43961         * modules/linkat (Depends-on): Add symlinkat.
43962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43963         * modules/unistd (Makefile.am): Substitute it.
43964         * lib/unistd.in.h (linkat): Declare replacement.
43965         Reported by Pádraig Brady.
43966
43967         quotearg: port test to systems with C.UTF-8 locale
43968         * tests/test-quotearg.c (struct result_strings): Add another
43969         member, differentiating between C.ASCII and C.UTF-8 handling.
43970         (compare_strings): Add parameter.
43971         (main): Adjust all callers.
43972
43973         getopt: avoid clash with FreeBSD _getopt_internal
43974         * lib/getopt.in.h (_getopt_internal): Override the name.
43975         * lib/getopt_int.h (includes): Pick up any overrides.
43976         Reported by Reuben Thomas.
43977
43978         hash: allow C89 compilation
43979         * lib/hash.c (check_tuning): Move declaration before statement.
43980         Reported by Reuben Thomas.
43981
43982 2009-10-05  Karl Berry  <karl@gnu.org>
43983
43984         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43985
43986 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43987             Bruno Haible  <bruno@clisp.org>
43988
43989         * lib/uname.c (uname): Use a table-driven algorithm to compute
43990         Windows NT versions.
43991
43992 2009-10-04  Bruno Haible  <bruno@clisp.org>
43993
43994         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43995         program_invocation_short_name.
43996         * modules/progname (configure.ac): Test for presence of
43997         program_invocation_short_name.
43998         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43999
44000 2009-10-04  Bruno Haible  <bruno@clisp.org>
44001
44002         * lib/progname.c (set_program_name): Fix comment.
44003         Reported by Jim Meyering.
44004
44005 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44006             Bruno Haible  <bruno@clisp.org>
44007
44008         * lib/uname.c: Include <string.h>.
44009         (uname): Do only one call to GetVersionEx in the common case.
44010
44011 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44012             Bruno Haible  <bruno@clisp.org>
44013
44014         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44015         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44016         (uname): Add support for Windows CE and various non-x86 CPU types.
44017
44018 2009-10-03  Bruno Haible  <bruno@clisp.org>
44019
44020         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44021         invocation to tests/configure.ac.
44022         Reported by Ian Beckwith <ianb@erislabs.net>.
44023
44024 2009-10-02  Eric Blake  <ebb9@byu.net>
44025
44026         fchdir: avoid compiler warning
44027         * lib/fchdir.c (canonicalize_file_name)
44028         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44029
44030         test-open: support mingw errno values
44031         * tests/test-open.h (test_open): Relax test.
44032         * tests/test-fopen.h (test_fopen): Likewise.
44033         * tests/test-openat-safer.c (main): Likewise.
44034
44035         open: fix opening directory on mingw
44036         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44037
44038         test-open: on GNU/Hurd, /dev/null is a directory
44039         * tests/test-fopen.h (main): Rename...
44040         (test_fopen): ...to this.  Use a guaranteed non-directory when
44041         confirming open behavior on trailing slash.
44042         * tests/test-openat-safer.c (main): Likewise.
44043         * tests/test-open.h (main): Likewise....
44044         (test_open): ...to this.
44045         * tests/test-fopen.c (main): Adjust caller.
44046         * tests/test-fopen-safer.c (main): Likewise.
44047         * tests/test-open.c (main): Likewise.
44048         * tests/test-fcntl-safer.c (main): Likewise.
44049         Reported by Samuel Thibault.
44050
44051         rename, fchdir: don't ignore chdir failure
44052         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44053         * lib/rename.c (rpl_rename) [W32]: Likewise.
44054         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44055         an empty destination directory if source cannot be renamed,
44056         although there is still possibility for failure.
44057         * doc/posix-functions/rename.texi (rename): Document the race.
44058         Reported by Jim Meyering.
44059
44060         maint: cleanup whitespace in recent commits
44061         * lib/rename.c (rpl_rename): Remove tabs.
44062         * tests/test-link.h (test_link): Likewise.
44063         * lib/fchdir.c (get_name): Likewise.
44064         Reported by Jim Meyering.
44065
44066 2009-10-02  Ben Pfaff  <blp@gnu.org>
44067
44068         relocatable-prog-wrapper: Add missing dependency on
44069         double-slash-root.
44070         * modules/relocatable-prog-wrapper: Add dependency.
44071         Reported by Ian Beckwith <ianb@erislabs.net>.
44072
44073 2009-10-02  Eric Blake  <ebb9@byu.net>
44074
44075         renameat: fix Solaris bugs
44076         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44077         needed fixing.
44078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44079         * modules/stdio (Makefile.am): Substitute it.
44080         * lib/stdio.in.h (renameat): Declare replacement.
44081         * lib/renameat.c (rpl_renameat): Implement fix.
44082
44083         renameat: new module
44084         * modules/renameat: New file.
44085         * lib/renameat.c (renameat): Likewise.
44086         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44088         * modules/stdio (Makefile.am): Substitute them.
44089         * lib/stdio.in.h (renameat): Declare it.
44090         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44091         * doc/posix-functions/renameat.texi (renameat): Likewise.
44092         * modules/renameat-tests: New test.
44093         * tests/test-renameat.c: Likewise.
44094
44095         rename: fix mingw bugs
44096         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44097         directory overwrite bugs.
44098
44099         rename: fix another cygwin 1.5 bug
44100         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44101         checks.
44102         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44103         unnecessary cygwin workarounds.  Also work around bug with moving
44104         full directory onto an empty one.
44105         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44106
44107         rename-dest-slash: merge into rename module
44108         * modules/rename-dest-slash (Status): Mark obsolete.
44109         (Depends-on): Add rename.
44110         (Files): Let rename do it all.
44111         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44112         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44113         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44114         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44115         * lib/rename.c (rpl_rename): Update comments.
44116
44117         rename: fix cygwin 1.5.x bugs
44118         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44119         * lib/rename.c (rpl_rename): Work around them.
44120         * modules/rename (Depends-on): Add same-inode.
44121
44122         rename: fix Solaris 10 bug
44123         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44124         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44125         was the only bug.
44126
44127         rename: fix Solaris 9 bug
44128         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44129         on non-directory.  Avoid calling exit.
44130         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44131         strdup.
44132         * modules/rename-tests (Depends-on): Drop lstat.
44133         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44134         (gl_PREREQ_RENAME): Delete unused macro.
44135
44136         rename-dest-slash: fix NetBSD bug
44137         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44138         links.
44139         * modules/rename-dest-slash (Depends-on): Add same-inode.
44140
44141         rename-tests: new test, exposes several platform bugs
44142         * modules/rename-tests: New file.
44143         * tests/test-rename.h: Likewise.
44144         * tests/test-rename.c: Likewise.
44145         * doc/posix-functions/rename.texi (rename): Improve documentation,
44146         including bugs that will eventually be fixed in gnulib.
44147
44148 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44149
44150         * lib/uname.c: Include <stdlib.h>
44151         (uname): Assume version info is available.
44152
44153 2009-10-02  Jim Meyering  <meyering@redhat.com>
44154
44155         gnu-web-doc-update: correct --help output
44156         * build-aux/gnu-web-doc-update: Make --help output relevant.
44157
44158         gnu-web-doc-update: add standard options
44159         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44160
44161         gnu-web-doc-update: New module.
44162         Use this script to automatically update the on-line web documentation
44163         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44164         * modules/gnu-web-doc-update: New file, from coreutils.
44165         * build-aux/gnu-web-doc-update: New script.
44166
44167 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44168
44169         link: LoadLibrary is not needed.
44170         * lib/link.c: Use GetModuleHandle.
44171
44172 2009-10-01  Eric Blake  <ebb9@byu.net>
44173
44174         getopt: bump serial number
44175         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44176         change.
44177
44178         tests: tighten link, rmdir, and remove tests
44179         * tests/test-link.h (includes): No need to use <config.h> here.
44180         Clean up if directory hard link was created, otherwise test for
44181         trailing '.'.
44182         * tests/test-linkat.c (main): Simplify.
44183         * tests/test-remove.c (main): Enhance test for trailing '.'.
44184         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44185
44186 2009-10-01  Jim Meyering  <meyering@redhat.com>
44187
44188         maint.mk: requiring "make major" was annoying, for a "minor" release.
44189         What is intended is "stable", to contrast with alpha and beta,
44190         so require "make stable", not "make major".
44191         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44192         (get_tool_versions): Likewise.
44193         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44194
44195 2009-09-30  Ben Pfaff  <blp@gnu.org>
44196
44197         Fix broken build of replacement for Windows tmpfile().
44198         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44199         flags argument added along with the 'mkostemp' module.
44200
44201 2009-09-28  Bruno Haible  <bruno@clisp.org>
44202
44203         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44204         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44205         to 'remove_elt'.
44206         (gl_list_remove): Update.
44207         * lib/gl_list.c (gl_list_remove): Update.
44208         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44209         to 'remove_elt'.
44210         (gl_oset_remove): Update.
44211         * lib/gl_list.c (gl_oset_remove): Update.
44212         Reported by Eric Blake.
44213
44214 2009-09-28  Eric Blake  <ebb9@byu.net>
44215
44216         doc: mention yet more cygwin 1.7 status
44217         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44218         cygwin.
44219         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44220         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44221
44222         argp: fix test failure
44223         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44224         that are not upper-case.  Pass correct range to tolower.
44225
44226 2009-09-27  Jim Meyering  <meyering@redhat.com>
44227
44228         test-yesno: work around sparc-dash here-document infelicity
44229         Without this change, the literal \177 byte in a here document
44230         would make dash 0.5.5.1-3 access uninitialized memory.
44231         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44232         Instead, use a marker, "@", and filter through tr to create the desired
44233         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44234
44235 2009-09-27  Bruno Haible  <bruno@clisp.org>
44236
44237         Disable untested support for new flavours of ACLs on AIX.
44238         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44239         progress.
44240         * lib/set-mode-acl.c (qset_acl): Likewise.
44241
44242 2008-12-07  Bruno Haible  <bruno@clisp.org>
44243
44244         Add support for new flavours of ACLs on AIX. (Untested.)
44245         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44246         (file_has_acl): Add support for newer AIX.
44247         * lib/set-mode-acl.c (qset_acl): Likewise.
44248         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44249         Rainer Tammer <tammer@tammer.net>.
44250
44251 2009-09-26  Eric Blake  <ebb9@byu.net>
44252
44253         argp: fix compilation of getopt
44254         * lib/getopt.in.h (includes): Use different guard than glibc.
44255         Reported by Sergey Poznyakoff.
44256
44257         doc: mention more cygwin 1.7 status
44258         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44259         bug.
44260         * doc/posix-functions/execl.texi (execl): Likewise.
44261         * doc/posix-functions/execle.texi (execle): Likewise.
44262         * doc/posix-functions/execlp.texi (execlp): Likewise.
44263         * doc/posix-functions/execv.texi (execv): Likewise.
44264         * doc/posix-functions/execve.texi (execve): Likewise.
44265         * doc/posix-functions/execvp.texi (execvp): Likewise.
44266         * doc/glibc-functions/canonicalize_file_name.texi
44267         (canonicalize_file_name): Cygwin 1.7 now provides this.
44268         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44269         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44270         on AT_SYMLINK_NOFOLLOW.
44271
44272 2009-09-24  Eric Blake  <ebb9@byu.net>
44273
44274         test-linkat: make test more robust
44275         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44276
44277         getopt: fix inclusion guards for cygwin
44278         * modules/getopt-posix (Depends-on): Add include-next.
44279         (Makefile.am): Substitute more items in replacement header.
44280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44281         <getopt.h>.
44282         * lib/getopt.in.h (includes): Use split inclusion guard, and
44283         prefer <getopt.h> over include <unistd.h> when one is present.
44284         (option): Also override name of 'struct option'.
44285
44286         same-inode: revert prior change; it is not yet ready
44287         * NEWS: Undo mention of this change.
44288         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44289         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44290         * lib/cycle-check.c (cycle_check): Likewise.
44291         * lib/same.c (same_name): Likewise.
44292         * lib/at-func2.c (at_func2): Likewise.
44293
44294 2009-09-23  Eric Blake  <ebb9@byu.net>
44295
44296         linkat: new module
44297         * modules/linkat: New file.
44298         * lib/at-func2.c (at_func2): Likewise.
44299         * lib/linkat.c (linkat): Likewise.
44300         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44301         * lib/openat-priv.h (at_func2): Add declaration.
44302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44303         * modules/unistd (Makefile.am): Substitute them.
44304         * lib/unistd.in.h (linkat): Declare it.
44305         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44306         * doc/posix-functions/linkat.texi (linkat): Likewise.
44307         * doc/posix-functions/link.texi (link): Tweak wording.
44308         * tests/test-link.c (main): Move guts...
44309         * tests/test-link.h (test_link): ...into new file.
44310         * modules/linkat-tests: New test.
44311         * tests/test-linkat.c: Likewise.
44312         * modules/link-tests (Files): Ship new file.
44313         (Depends-on): Add stdbool.
44314
44315         dirname: add library-safe mdir_name
44316         * lib/dirname.h (mdir_name): New prototype.
44317         * lib/dirname.c (dir_name): Move guts...
44318         (mdir_name): ...to new function that avoids xalloc_die.
44319
44320         fchdir: another mingw fix
44321         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44322         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44323         on mingw (where it has not yet been ported), and make it optional
44324         elsewhere.
44325         (_gl_register_fd): Use it.
44326
44327         same-inode: make SAME_INODE tri-state, to port to mingw
44328         * NEWS: Mention this change.
44329         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44330         st_ino always being 0.
44331         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44332         * lib/cycle-check.c (cycle_check): Likewise.
44333         * lib/same.c (same_name): Likewise.
44334
44335         lstat: avoid mingw compilation error
44336         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44337         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44338         lstat ourselves.
44339         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44340         was adequate.
44341         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44342         the checks for lstat.
44343         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44344
44345         link: fix test failure on Solaris 9
44346         * lib/link.c (rpl_link): Don't assume link will catch bogus
44347         trailing slash on source.
44348
44349         test-symlinkat: enhance test
44350         * tests/test-readlink.c (main): Move guts...
44351         * tests/test-readlink.h (test_readlink): ...into new file.
44352         * tests/test-symlink.c (main): Move guts...
44353         * tests/test-symlink.h (test_symlink): ...into new file.
44354         * tests/test-symlinkat.c (main): Use new files for further
44355         coverage.
44356         (do_symlink, do_readlink): New helper functions.
44357         * modules/symlink-tests (Files): Ship new file.
44358         (Depends-on): Add stdbool.
44359         * modules/readlink-tests (Files): Ship new file.
44360         (Depends-on): Add stdbool.
44361         * modules/symlinkat-tests (Files): Use new files.
44362
44363 2009-09-23  Eric Blake  <ebb9@byu.net>
44364
44365         readlink: document portability issue with symlink length
44366         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44367         systems have bogus st_size on symlinks, and mention the
44368         areadlink-with-size module.
44369         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44370         * doc/posix-functions/readlink.texi (readlink): Mention the
44371         areadlink module, and ERANGE failure.
44372         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44373         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44374
44375         readlink: fix Solaris 9 bug with trailing slash
44376         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44377         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44378         * doc/posix-functions/readlink.texi (readlink): Document this.
44379         * modules/readlink-tests: New test.
44380         * tests/test-readlink.c: Likewise.
44381
44382         readlink: fix cygwin 1.5.x bug with return type
44383         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44384         * lib/unistd.in.h (readlink): Use ssize_t.
44385         * lib/readlink.c (readlink): Likewise.
44386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44387         * modules/unistd (Makefile.am): Substitute it.
44388         * lib/unistd.in.h (readlink): Declare replacement.
44389         * doc/posix-functions/readlink.texi (readlink): Document this.
44390
44391         symlink: use throughout gnulib
44392         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44393         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44394         symlink is not used.
44395         * modules/symlinkat (Depends-on): Add symlink.
44396         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44397         * modules/canonicalize-tests (Depends-on): Likewise.
44398         * modules/lstat-tests (Depends-on): Likewise.
44399         * modules/openat-tests (Depends-on): Likewise.
44400         * modules/remove-tests (Depends-on): Likewise.
44401         * modules/rmdir-tests (Depends-on): Likewise.
44402         * modules/unlink-tests (Depends-on): Likewise.
44403         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44404         * tests/test-canonicalize.c (symlink): Likewise.
44405         * tests/test-fstatat.c (symlink): Likewise.
44406         * tests/test-lstat.c (symlink): Likewise.
44407         * tests/test-remove.c (symlink): Likewise.
44408         * tests/test-rmdir.c (symlink): Likewise.
44409         * tests/test-unlink.c (symlink): Likewise.
44410         * tests/test-unlinkat.c (symlink): Likewise.
44411
44412         symlink: new module, for Solaris 9 bug
44413         * modules/symlink: New file.
44414         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44415         * lib/symlink.c: Likewise.
44416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44417         * modules/unistd (Makefile.am): Substitute them.
44418         * lib/unistd.in.h (symlink): Declare replacement.
44419         * MODULES.html.sh (File system functions): Mention it.
44420         * doc/posix-functions/symlink.texi (symlink): Likewise.
44421         * modules/symlink-tests: New test.
44422         * tests/test-symlink.c: Likewise.
44423
44424 2009-09-23  Bruno Haible  <bruno@clisp.org>
44425
44426         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44427         when needed.
44428         Test case: gnulib-tool --import --with-tests atexit inttypes.
44429         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44430
44431 2009-09-23  Bruno Haible  <bruno@clisp.org>
44432
44433         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44434         subcommand, not in a subshell.
44435
44436 2009-09-22  Eric Blake  <ebb9@byu.net>
44437
44438         unistd: sort replacement declarations
44439         * lib/unistd.in.h: Sort declarations.
44440
44441         open, openat: minor optimization
44442         * lib/open.c (open): If open succeeded, len is non-zero.
44443         * lib/openat.c (rpl_openat): Likewise.
44444
44445         link-follow: ensure correct result
44446         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44447         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44448         distinguish between possible failures.
44449
44450 2009-09-21  Eric Blake  <ebb9@byu.net>
44451
44452         fts: avoid compiler warning
44453         * lib/fts.c (dirent_inode_sort_may_be_useful)
44454         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44455
44456 2009-09-19  Bruno Haible  <bruno@clisp.org>
44457
44458         * lib/progreloc.c (canonicalize_file_name): New declaration.
44459
44460 2009-09-19  Eric Blake  <ebb9@byu.net>
44461
44462         link: fix quoting
44463         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44464
44465         openat: fix openat bugs on Solaris 9
44466         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44467         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44468         * modules/openat (Depends-on): Add open.
44469         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44470         * modules/fcntl-h (Makefile.am): Substitute it.
44471         * lib/fcntl.in.h (openat): Declare replacement.
44472         * doc/posix-functions/openat.texi (openat): Document this.
44473
44474         openat: move fstatat and unlinkat into correct files
44475         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44476         compiled.
44477         * lib/openat.c (fstatat, unlinkat): Move...
44478         * lib/fstatat.c (fstatat): ...into correct files.
44479         * lib/unlinkat.c (unlinkat): Likewise.
44480
44481         openat: fix unlinkat bugs on Solaris 9
44482         * lib/unlinkat.c (unlinkat): New file.
44483         * modules/openat (Depends-on): Add unlink.
44484         (Files): Distribute it.
44485         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44486         trailing slash behavior is broken.
44487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44488         * modules/unistd (Makefile.am): Substitute it.
44489         * lib/unistd.in.h (unlinkat): Declare replacement.
44490         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44491
44492         openat: fix fstatat bugs on Solaris 9
44493         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44494         stat.
44495         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44496
44497         test-unlinkat: enhance test, to expose Solaris 9 bug
44498         * tests/test-unlink.c (main): Factor guts...
44499         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44500         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44501         * tests/test-rmdir.c (main): Adjust caller.
44502         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44503         (unlinker): New helper function.
44504         (rmdirat): Enhance check.
44505         * modules/rmdir-tests (Depends-on): Add stdbool.
44506         * modules/unlink-tests (Depends-on): Likewise.
44507         (Files): Add test-unlink.h.
44508         * modules/openat-tests (Files): Likewise.
44509         (Depends-on): Add unlinkdir.
44510
44511         test-fstatat: new test, to expose Solaris 9 bugs
44512         * tests/test-stat.c (main): Factor guts...
44513         * tests/test-stat.h (test_stat_func): ...into new file.
44514         * tests/test-lstat.c (main): Factor guts...
44515         * tests/test-lstat.h (test_lstat_func): ...into new file.
44516         * tests/test-fstatat.c: New file.
44517         * modules/stat-tests (Files): Add test-stat.h.
44518         * modules/lstat-tests (Files): Add test-lstat.h.
44519         (Depends-on): Add stdbool.
44520         * modules/openat-tests (Depends-on): Add pathmax.
44521         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44522         (Makefile.am): Run new test.
44523
44524         remove: new module, for mingw and Solaris 9 bugs
44525         * modules/remove: New file.
44526         * lib/remove.c: Likewise.
44527         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44529         * modules/stdio (Makefile.am): Use them.
44530         * lib/stdio.in.h (remove): Declare replacement.
44531         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44532         * doc/posix-functions/remove.texi (remove): Likewise.
44533         * modules/remove-tests: New test.
44534         * tests/test-remove.c: Likewise.
44535
44536         unlink: new module, for Solaris 9 bug
44537         * modules/unlink: New file.
44538         * lib/unlink.c: Likewise.
44539         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44541         * modules/unistd (Makefile.am): Use them.
44542         * lib/unistd.in.h (stat): Declare replacement.
44543         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44544         * doc/posix-functions/unlink.texi (unlink): Likewise.
44545         * modules/unlink-tests: New test.
44546         * tests/test-unlink.c: Likewise.
44547
44548         lstat: fix Solaris 9 bug
44549         * lib/lstat.c (lstat): Also check for trailing slash on
44550         non-symlink, non-directories.  Use stat module to simplify logic.
44551         * doc/posix-functions/lstat.texi (lstat): Document it.
44552         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44553         (configure.ac): Check for symlink.
44554         * tests/test-lstat.c (main): Add more tests.
44555
44556         stat: add as dependency to other modules
44557         * modules/chown (Depends-on): Add stat.
44558         * modules/euidaccess (Depends-on): Likewise.
44559         * modules/fchdir (Depends-on): Likewise.
44560         * modules/isdir (Depends-on): Likewise.
44561         * modules/link (Depends-on): Likewise.
44562         * modules/lstat (Depends-on): Likewise.
44563         * modules/mkdir-p (Depends-on): Likewise.
44564         * modules/modechange (Depends-on): Likewise.
44565         * modules/open (Depends-on): Likewise.
44566         * modules/readlink (Depends-on): Likewise.
44567         * modules/same (Depends-on): Likewise.
44568
44569         stat: fix Solaris 9 bug
44570         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44571         slash.
44572         * lib/stat.c (rpl_stat): Work around it.
44573         * doc/posix-functions/stat.texi (stat): Update documentation.
44574
44575         stat: new module, for mingw bug
44576         * modules/stat: New file.
44577         * lib/stat.c: Likewise.
44578         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44579         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44580         * modules/sys_stat (Makefile.am): Use them.
44581         * lib/sys_stat.in.h (stat): Declare replacement.
44582         * lib/openat.c (fstatat): Deal with lstat and stat being function
44583         macros.
44584         * modules/openat (Depends-on): Add inline.
44585         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44586         * doc/posix-functions/stat.texi (stat): Likewise.
44587         * modules/stat-tests: New test.
44588         * tests/test-stat.c: Likewise.
44589
44590 2009-09-19  Jim Meyering  <meyering@redhat.com>
44591
44592         syntax-check: detect unnecessary inclusion of canonicalize.h
44593         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44594
44595 2009-09-19  Eric Blake  <ebb9@byu.net>
44596
44597         canonicalize-lgpl: adjust clients to use correct header
44598         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44599         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44600         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44601         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44602         * lib/progreloc.c (includes): Likewise.
44603
44604 2009-09-19  Jim Meyering  <meyering@redhat.com>
44605
44606         test-posixtm.c: correct a comment
44607         * tests/test-posixtm.c: Correct first-line comment.
44608         Spotted by Eric Blake.
44609
44610 2009-09-16  Jim Meyering  <meyering@redhat.com>
44611
44612         posixtm-tests: make T const-correct; add a test case
44613         * tests/test-posixtm.c (T): Declare const.
44614         Add a test for -(2^31+1).
44615         Remove useless can-succeed-only-in-2002 test.
44616
44617         posixtm-tests: adjust the sole failing test
44618         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44619         expected output matches what mktime now produces.  Cross-checked via
44620         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44621
44622         posixtm: move #ifdef'd tests into a new module
44623         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44624         * tests/test-posixtm.c: ... this new file.
44625         * modules/posixtm-tests: New module.
44626
44627 2009-09-19  Eric Blake  <ebb9@byu.net>
44628
44629         openat: simplify use of at-func.c
44630         * lib/at-func.c (includes): Include prerequisites here, to
44631         simplify requirements on client files.
44632         * lib/openat-priv.h: Add double-inclusion guard.
44633         * lib/faccessat.c (includes): Simplify.
44634         * lib/fchmodat.c (includes): Likewise.
44635         * lib/fchownat.c (includes): Likewise.
44636         * lib/mkdirat.c (includes): Likewise.
44637         * lib/mkfifoat.c (includes): Likewise.
44638         * lib/symlinkat.c (includes): Likewise.
44639
44640         openat: allow return of fd 0
44641         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44642         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44643         unistd-safer.
44644         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44645         <fcntl.h>; this module does not leak fds.
44646         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44647         must be allowed to return 0, leaving openat_safer to add the
44648         safety.
44649         (openat_permissive): Avoid writing to just-opened fd 2 if
44650         restoring the current directory fails.
44651         * lib/openat-die.c (openat_restore_fail): Add comment.
44652         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44653         (save_cwd): Guarantee safe fd, but without use of open_safer.
44654         * tests/test-openat.c: New test.
44655         * modules/openat-tests (Files, Makefile.am): Distribute and build
44656         new file.
44657
44658         relocatable-prog-wrapper: fix build
44659         * modules/relocatable-prog-wrapper (Files): Update name of
44660         canonicalize m4 file, broken on 2009-09-17.
44661         Reported by emad hajjar <aleppos@hotmail.com>.
44662
44663 2009-09-19  Bruno Haible  <bruno@clisp.org>
44664
44665         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44666         * lib/safe-alloc.c: Likewise.
44667         Reported by Ian Beckwith <ianb@erislabs.net>.
44668
44669 2009-09-18  Bruno Haible  <bruno@clisp.org>
44670
44671         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44672         Reported by <erobles@sensacd.com.mx>.
44673
44674 2009-09-17  Eric Blake  <ebb9@byu.net>
44675
44676         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44677         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44678         slashes when checking if last component is missing.
44679         * tests/test-canonicalize.c (main): Test this.
44680
44681         canonicalize, canonicalize-lgpl: honor // if distinct from /
44682         * modules/canonicalize (Files): Add double-slash-root.m4.
44683         * modules/canonicalize-lgpl (Files): Likewise.
44684         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44685         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44686         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44687         fallback definition.
44688         (canonicalize_filename_mode): Use it to protect //.
44689         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44690         (__realpath): Likewise.
44691         * tests/test-canonicalize.c (main): Test this.
44692         * tests/test-canonicalize-lgpl.c (main): Likewise.
44693         * modules/canonicalize-tests (Depends-on): Add same-inode.
44694         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44695
44696         canonicalize-lgpl: fix glibc bug with trailing slash
44697         * m4/canonicalize-lgpl.m4: Move contents...
44698         * m4/canonicalize.m4: ...here.
44699         (gl_CANONICALIZE_LGPL): Factor realpath check...
44700         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44701         glibc 2.3.5 bug, fixed 2005-04-27.
44702         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44703         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44704         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44705         * modules/canonicalize-lgpl (Files): Manage file rename.
44706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44707         * modules/stdlib (Makefile.am): Substitute witness.
44708         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44709         is needed.
44710         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44711         replacement is required.
44712         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44713         * doc/glibc-functions/canonicalize_file_name.texi
44714         (canonicalize_file_name): Document this.
44715         * doc/posix-functions/realpath.texi (realpath): Likewise.
44716
44717         canonicalize-lgpl: reject non-directory with trailing slash
44718         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44719         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44720         catches failures in glibc 2.3.5.
44721         * tests/test-canonicalize.c (main): Likewise.
44722
44723         canonicalize-lgpl: use native realpath if it works
44724         * lib/canonicalize-lgpl.c (realpath): Guard with
44725         FUNC_REALPATH_WORKS.
44726         * lib/stdlib.in.h (realpath): Make declaration optional based on
44727         HAVE_REALPATH.
44728         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44729         native realpath works.
44730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44731         * modules/stdlib (Makefile.am): Substitute witness.
44732
44733         canonicalize, canonicalize-lgpl: use <stdlib.h>
44734         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44735         (Include): Mention <stdlib.h>.
44736         (configure.ac): Mention functions we provide.
44737         * modules/canonicalize (configure.ac): Likewise.
44738         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44739         realpath if canonicalize_file_name is missing.
44740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44741         * modules/stdlib (Makefile.am): Substitute witnesses.
44742         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44743         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44744         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44745         * NEWS: Document this.
44746         * doc/glibc-functions/canonicalize_file_name.texi
44747         (canonicalize_file_name): Likewise.
44748         * doc/posix-functions/realpath.texi (realpath): Likewise.
44749         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44750
44751         test-canonicalize: consolidate into single C program
44752         * tests/test-canonicalize.sh: Delete; move setup into...
44753         * tests/test-canonicalize.c (main): ...the program, making it
44754         easier to run in debugger.  Add some tests.
44755         * modules/canonicalize-tests (Files): Remove unused file.
44756         (Depends-on): Add progname.
44757         (configure.ac, Makefile.am): Simplify.
44758
44759         test-canonicalize-lgpl: consolidate into single C program
44760         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44761         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44762         easier to run in debugger.  Add some tests.
44763         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44764         (configure.ac, Makefile.am): Simplify.
44765
44766         canonicalize: avoid resolvepath
44767         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44768         unnecessary checks.
44769         * lib/canonicalize.c (includes): Simplify.
44770         (canonicalize_file_name): Drop resolvepath implementation.
44771         * modules/canonicalize (Depends-on): Drop filenamecat.
44772
44773         canonicalize: don't lose errno
44774         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44775         over calls to free.
44776
44777         canonicalize: simplify errno handling
44778         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44779         assignment.
44780
44781         canonicalize, canonicalize-lgpl: update module dependencies
44782         * modules/canonicalize (Depends-on): Add extensions, lstat,
44783         pathmax, stdlib.
44784         (Files): Drop pathmax.h.
44785         (configure.ac): Adjust macro name.
44786         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44787         lstat, stdlib, sys_stat.
44788         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44789         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44790         extensions.
44791         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44792         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44793         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44794         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44795         declaration, if available.
44796         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44797         we can rely on the readlink module.
44798         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44799         (includes): Use <unistd.h> unconditionally.
44800
44801 2009-09-17  Eric Blake  <ebb9@byu.net>
44802
44803         maint: make Include sections of modules consistent
44804         * modules/alloca: Use only header name; no need to list #include.
44805         * modules/alloca-opt: Likewise.
44806         * modules/arpa_inet: Likewise.
44807         * modules/canon-host: Likewise.
44808         * modules/configmake: Likewise.
44809         * modules/dirent: Likewise.
44810         * modules/eealloc: Likewise.
44811         * modules/environ: Likewise.
44812         * modules/fchdir: Likewise.
44813         * modules/fcntl: Likewise.
44814         * modules/fcntl-h: Likewise.
44815         * modules/gethrxtime: Likewise.
44816         * modules/gettime: Likewise.
44817         * modules/ignore-value: Likewise.
44818         * modules/inet_ntop: Likewise.
44819         * modules/inet_pton: Likewise.
44820         * modules/inttypes: Likewise.
44821         * modules/isnand-nolibm: Likewise.
44822         * modules/isnanf-nolibm: Likewise.
44823         * modules/mbchar: Likewise.
44824         * modules/mbfile: Likewise.
44825         * modules/mbiter: Likewise.
44826         * modules/mbuiter: Likewise.
44827         * modules/netdb: Likewise.
44828         * modules/netinet_in: Likewise.
44829         * modules/nproc: Likewise.
44830         * modules/pagealign_alloc: Likewise.
44831         * modules/poll: Likewise.
44832         * modules/printf-frexp: Likewise.
44833         * modules/pthread: Likewise.
44834         * modules/putenv: Likewise.
44835         * modules/random_r: Likewise.
44836         * modules/relocatable-prog: Likewise.
44837         * modules/search: Likewise.
44838         * modules/select: Likewise.
44839         * modules/selinux-h: Likewise.
44840         * modules/settime: Likewise.
44841         * modules/signal: Likewise.
44842         * modules/size_max: Likewise.
44843         * modules/socklen: Likewise.
44844         * modules/ssize_t: Likewise.
44845         * modules/stdarg: Likewise.
44846         * modules/stdbool: Likewise.
44847         * modules/stddef: Likewise.
44848         * modules/stdint: Likewise.
44849         * modules/stdio: Likewise.
44850         * modules/stdlib: Likewise.
44851         * modules/string: Likewise.
44852         * modules/strings: Likewise.
44853         * modules/sys_file: Likewise.
44854         * modules/sys_ioctl: Likewise.
44855         * modules/sys_select: Likewise.
44856         * modules/sys_socket: Likewise.
44857         * modules/sys_stat: Likewise.
44858         * modules/sys_time: Likewise.
44859         * modules/sys_times: Likewise.
44860         * modules/sys_utsname: Likewise.
44861         * modules/sys_wait: Likewise.
44862         * modules/sysexits: Likewise.
44863         * modules/time: Likewise.
44864         * modules/times: Likewise.
44865         * modules/tmpfile: Likewise.
44866         * modules/trim: Likewise.
44867         * modules/unistd: Likewise.
44868         * modules/wchar: Likewise.
44869         * modules/wctype: Likewise.
44870
44871 2009-09-17  Bruno Haible  <bruno@clisp.org>
44872
44873         Make getdate.y compile on QNX and NetBSD 5 / i386.
44874         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44875         TIME_T_FITS_IN_LONG_INT.
44876         * lib/getdate.y (long_time_t): New type.
44877         (relative_time): Change type of 'seconds' field to long_time_t.
44878         (get_date): Update types of local variables. Check against overflow
44879         during conversion from long_time_t to time_t.
44880         Reported by Matt Kraai <kraai@ftbfs.org>
44881         and Hasso Tepper <hasso@netbsd.org>.
44882
44883 2009-09-17  Bruno Haible  <bruno@clisp.org>
44884
44885         * modules/COPYING: Update copyright years.
44886         * modules/README: Likeiwse.
44887         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44888         Reported by Ian Beckwith <ianb@erislabs.net>.
44889
44890 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44891
44892         * users.txt: Update references for gnuit package.
44893
44894 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44895
44896         * m4/getdelim.m4: Fix typo in copyright line.
44897
44898 2009-09-17  Bruno Haible  <bruno@clisp.org>
44899
44900         * lib/atoll.c: Use the standard header with GPL copyright.
44901         * lib/argz.in.h: Likewise.
44902         * lib/glob.c: Likewise.
44903         * lib/glob-libc.h: Likewise.
44904         * lib/random_r.c: Likewise.
44905         * lib/siglist.h: Likewise.
44906         * lib/strsignal.c: Likewise.
44907         Reported by Ian Beckwith <ianb@erislabs.net>.
44908
44909 2009-09-17  Eric Blake  <ebb9@byu.net>
44910
44911         rmdir: ensure correct dependency order
44912         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44913
44914 2009-09-17  Bruno Haible  <bruno@clisp.org>
44915
44916         Disable assertion that fails on NetBSD 5 / i386.
44917         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44918         Reported by Sam Steingold <sds@gnu.org>
44919         and Hasso Tepper <hasso@netbsd.org>.
44920
44921 2009-09-16  Eric Blake  <ebb9@byu.net>
44922
44923         unlinkdir: port to mingw
44924         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44925         on which no one can unlink a directory.
44926
44927         stdlib: sort witness names
44928         * modules/stdlib (Makefile.am): Sort replacements.
44929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44930         * lib/stdlib.in.h: Likewise.
44931
44932         parse-duration-tests: avoid link failure
44933         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44934         LIBINTL.
44935         Reported by Tom G. Christensen.
44936
44937         openat-tests: ensure unlinkat behaves like rmdir
44938         * tests/test-rmdir.c (main): Factor guts...
44939         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44940         * modules/rmdir-tests (Files): Ship new file.
44941         * modules/openat-tests: New test.
44942         * tests/test-unlinkat.c: Likewise.
44943
44944         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44945         * modules/rmdir-errno (Status, Notice): Now obsolete.
44946
44947         rmdir: work around cygwin 1.5.x and mingw bugs
44948         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44949         * lib/rmdir.c (rmdir): Work around it.
44950         * modules/rmdir (Status, Notice): No longer obsolete.
44951         (Files): Add dos.m4.
44952         (Depends-on): Add unistd.
44953         (configure.ac): Set witnesses.
44954         (License): Relax to LGPLv2+.
44955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44956         * modules/unistd (Makefile.am): Substitute witnesses.
44957         * lib/unistd.in.h (rmdir): Declare replacement.
44958         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44959         * modules/rmdir-tests: New tests.
44960         * tests/test-rmdir.c: Likewise.
44961
44962 2009-09-15  Eric Blake  <ebb9@byu.net>
44963
44964         fchdir: improve use of replacement functions
44965         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44966         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44967         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44968         REPLACE_CLOSEDIR.
44969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44970         * modules/sys_stat (Makefile.am): Substitute correct witness.
44971         * modules/dirent (Makefile.am): Likewise.
44972         * modules/unistd (Makefile.am): Likewise.
44973         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44974         * lib/unistd.in.h (dup): Likewise.
44975         * lib/sys_stat.in.h (fstat): Likewise.
44976
44977         maint: ignore gnulib-tool temp files
44978         * .gitignore: Ignore files created during gnulib-tool --test.
44979
44980 2009-09-13  Jim Meyering  <meyering@redhat.com>
44981
44982         posixtm: don't reject a time that specify "60" as the number of seconds
44983         * lib/posixtm.c (posixtime): The code to reject invalid dates
44984         would also reject a time specified with the .60 suffix.
44985         But POSIX allows that, in order to accommodate leap seconds.
44986         So don't reject it.
44987         (main): Adjust tests accordingly.
44988         * modules/posixtm (Depends-on): Add stpcpy.
44989
44990 2009-09-11  Jim Meyering  <meyering@redhat.com>
44991
44992         announce-gen: include [$release_type] in emitted Subject:
44993         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44994         e.g., [stable] in the emitted Subject: line.
44995
44996 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44997
44998         Remove obsolete macros from several modules.
44999         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45000         obsolete Autoconf macros with their modern counterparts.
45001         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45002         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45003         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45004         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45005         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45006         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45008         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45009         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45010         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45011         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45012         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45013         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45014         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45015         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45016         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45017         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45018         * m4/time_r.m4 (gl_TIME_R): Likewise.
45019         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45020         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45021         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45022
45023         Fix copyright header in build-aux scripts.
45024         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45025         recommendation.
45026         * build-aux/ncftpput-ftp: Likewise.
45027         * build-aux/update-copyright: Likewise.
45028
45029 2009-09-09  Eric Blake  <ebb9@byu.net>
45030
45031         test-link: allow Linux choice of errno
45032         * tests/test-link.c (main): Relax test for alternate error.
45033
45034         strndup: fix improper m4 caching
45035         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45036         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45037         (gl_PREREQ_STRNDUP): Delete.
45038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45039         * modules/string (Makefile.am): Substitute it.
45040         * lib/string.in.h (strndup): Modernize prototype.
45041
45042         getcwd: port to mingw
45043         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45044         different from the POSIX assumptions made throughout the getcwd
45045         module; fortunately, the mingw getcwd does not need replacement.
45046         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45047         * modules/getcwd-tests: New test.
45048         * tests/test-getcwd.c: Likewise.
45049
45050         link: fix platform bugs
45051         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45052         * lib/link.c (link): Work around them.  Fix related mingw bug.
45053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45054         * modules/unistd (Makefile.am): Substitute it.
45055         * lib/unistd.in.h (link): Declare replacement.
45056         * doc/posix-functions/link.texi (link): Document this.
45057         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45058
45059         test-link: consolidate into single C program, test more cases
45060         * tests/test-link.sh: Delete.
45061         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45062         at least Cygwin and Solaris.
45063         * modules/link-tests (Files): Remove unused file.
45064         (Depends-on): Add errno, sys_stat.
45065         (Makefile.am): Simplify.
45066
45067 2009-09-08  Bruno Haible  <bruno@clisp.org>
45068
45069         Work around towlower, towupper bug on mingw.
45070         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45071         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45072         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45073         * doc/posix-functions/towupper.texi: Likewise.
45074         Reported by Eric Blake.
45075
45076 2009-09-08  Jim Meyering  <meyering@redhat.com>
45077
45078         build: don't try to run autoheader if we don't use it
45079         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45080         is not used in configure.ac.
45081
45082 2009-09-08  Eric Blake  <ebb9@byu.net>
45083
45084         euidaccess: fix compilation error
45085         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45086
45087         rawmemchr: relax license
45088         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45089         okay.
45090         Reported by Jim Meyering.
45091
45092         mkfifoat: new module
45093         * modules/mkfifoat: New file.
45094         * lib/mkfifoat.c: Likewise.
45095         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45096         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45097         * modules/sys_stat (Makefile.am): Use them.
45098         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45099         * MODULES.html.sh (File system functions): Mention module.
45100         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45101         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45102         * modules/mkfifoat-tests: New test.
45103         * tests/test-mkfifoat.c: Likewise.
45104
45105         strchrnul: relax license
45106         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45107         okay.
45108         Reported by Jim Meyering.
45109
45110 2009-09-08  Eric Blake  <ebb9@byu.net>
45111
45112         fstatat: fix compilation on Solaris
45113         * lib/fstatat.c (includes): Add fcntl.h.
45114         Reported by Pádraig Brady.
45115
45116 2009-09-07  Eric Blake  <ebb9@byu.net>
45117
45118         rename: modernize replacement
45119         * modules/rename (Depends-on): Add stdio.
45120         (configure.ac): Declare witness.
45121         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45122         stdio take care of replacement.
45123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45124         * modules/stdio (Makefile.am): Substitute them.
45125         * lib/stdio.in.h (rename): Declare replacement.
45126         * lib/rename.c (includes): Allow cross-compilation to non-windows
45127         machines.
45128         * doc/posix-functions/rename.texi (rename): Improve
45129         documentation.
45130
45131         stdio: sort witness names
45132         * modules/stdio (Makefile.am): Sort replacements.
45133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45134         * lib/stdio.in.h: Likewise.
45135
45136         getcwd: minor cleanups
45137         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45138         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45139
45140         openat: provide more convenience names
45141         * modules/faccessat (configure.ac): Add C witness.
45142         * lib/unistd.in.h (readlinkat): Fix typo.
45143         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45144         convenience wrappers.
45145         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45146         wrappers in syntax checks.
45147
45148 2009-09-06  Eric Blake  <ebb9@byu.net>
45149
45150         doc: fix comments in recent patches
45151         * lib/faccessat.c: Mention correct function.
45152         * lib/fchmodat.c: Likewise.
45153         * lib/fchownat.c: Likewise.
45154         * lib/symlinkat.c: Likewise.
45155         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45156         constants.
45157
45158         faccessat, symlinkat: continue cleanup of previous patch
45159         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45160         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45161         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45163         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45164         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45165         set.
45166
45167 2009-09-06  Bruno Haible  <bruno@clisp.org>
45168
45169         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45170         (fstatat): Declare if GNULIB_FSTATAT is set.
45171         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45172         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45173         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45174         * modules/fcntl-h (Files): Remove m4/openat.m4.
45175         * modules/sys_stat (Files): Remove m4/openat.m4.
45176         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45177         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45178         * modules/unistd (Files): Remove m4/openat.m4.
45179         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45180         GNULIB_OPENAT.
45181         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45182         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45183         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45184         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45185         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45186         gl_OPENAT_DEFAULTS.
45187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45188         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45189         Don't require gl_OPENAT_DEFAULTS.
45190         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45191         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45192         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45193         (gl_OPENAT_DEFAULTS): Remove macro.
45194
45195 2009-09-06  Bruno Haible  <bruno@clisp.org>
45196
45197         * modules/openat (configure.ac): Remove unneeded witness.
45198
45199 2009-09-06  Bruno Haible  <bruno@clisp.org>
45200
45201         Set errno to ENOSYS when a function is entirely unsupported.
45202         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45203         EOPNOTSUPP.
45204         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45205         * modules/chown (Depends-on): Remove errno.
45206
45207 2009-09-06  Bruno Haible  <bruno@clisp.org>
45208
45209         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45210
45211 2009-09-06  Bruno Haible  <bruno@clisp.org>
45212
45213         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45214
45215 2009-09-06  Ben Pfaff  <blp@gnu.org>
45216             Bruno Haible  <bruno@clisp.org>
45217
45218         Work around a glibc bug in strtok_r.
45219         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45220         Undefine if UNDEFINE_STRTOK_R is set.
45221         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45223         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45224         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45225         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45226         UNDEFINE_STRTOK_R.
45227         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45228
45229 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45230
45231         exclude: minor fix
45232         * lib/exclude.c: Include wctype.h
45233
45234 2009-09-06  Akim Demaille  <demaille@gostai.com>
45235
45236         bootstrap: improve error message
45237         * build-aux/bootstrap (find_tool): Upon failure, report the list
45238         of candidates.
45239         Honor the initial value of the envvar.
45240
45241 2009-09-05  Eric Blake  <ebb9@byu.net>
45242
45243         symlinkat: new module
45244         * modules/symlinkat: New file.
45245         * lib/symlinkat.c: Likewise.
45246         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45248         * modules/unistd (Makefile.am): Use them.
45249         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45250         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45251         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45252         * MODULES.html.sh (File system functions): Mention module.
45253         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45254         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45255         * modules/symlinkat-tests: New test.
45256         * tests/test-symlinkat.c: Likewise.
45257
45258         test-openat-safer: add more checks
45259         * tests/test-openat-safer.c (main): Check more code paths.
45260
45261 2009-09-05  Jim Meyering  <meyering@redhat.com>
45262
45263         syntax-check: detect unnecessary inclusion of openat.h
45264         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45265
45266 2009-09-05  Bruno Haible  <bruno@clisp.org>
45267
45268         Support towlower, towupper.
45269         * doc/posix-functions/towlower.texi: Mention module wctype.
45270         * doc/posix-functions/towupper.texi: Likewise.
45271         * lib/wctype.in.h (towlower, towupper): New functions.
45272         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45273         (ASSERT): New macro.
45274         (e): New variable.
45275         (main): Test also towlower, towupper. Test WEOF argument.
45276         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45277
45278 2009-09-05  Bruno Haible  <bruno@clisp.org>
45279
45280         Fix conversion behaviour when the input is invalid.
45281         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45282         mark occurring in first pass of indirect conversion.
45283         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45284         input.
45285         Found by clang's static analyzer.
45286
45287 2009-09-05  Bruno Haible  <bruno@clisp.org>
45288
45289         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45290         where direct conversion is possible.
45291
45292 2009-09-04  Eric Blake  <ebb9@byu.net>
45293
45294         openat: fail with ENOENT on empty name
45295         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45296         buffer.
45297
45298         link-follow: fix logic bug in prior patch
45299         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45300         reversed sense of yes and no in prior patch.  Avoid confusing
45301         compilation failure with desired semantics.
45302
45303         link-follow: accommodate mingw and cross-compilation
45304         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45305         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45306         cross-compilation results to -1, to make linkat easier to
45307         implement when cross-compiling.  Trivially support mingw.
45308         * modules/link-follow (configure.ac): Call new name.
45309         * NEWS: Mention this.
45310
45311 2009-09-03  Eric Blake  <ebb9@byu.net>
45312
45313         faccessat: compile replacement
45314         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45315         needed.
45316
45317         fts: fix compilation error
45318         * lib/fts.c (includes): Re-add "openat.h", for
45319         openat_needs_fchdir.
45320
45321         faccessat: new module
45322         * modules/faccessat: New file.
45323         * lib/faccessat.c: Likewise.
45324         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45326         * modules/unistd (Makefile.am): Use it.
45327         * lib/unistd.in.h (faccessat): Declare it.
45328         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45329         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45330         * MODULES.html.sh (File system functions): Mention it.
45331         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45332         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45333
45334         euidaccess: prefer POSIX over non-standard implementation
45335         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45336         * lib/euidaccess.c (euidaccess): Use it if available.
45337
45338         openat: make template easier to use
45339         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45340         AT_FUNC_F2 to be undefined.
45341         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45342         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45343         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45344         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45345         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45346         Likewise.
45347         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45348         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45349         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45350         Likewise.
45351
45352         openat: declare in POSIX headers
45353         * NEWS: Mention this.
45354         * modules/openat (configure.ac): Declare witnesses.
45355         (Depends-on): Add fcntl-h, sys_stat, unistd.
45356         (Include): Mention correct headers.
45357         * modules/fcntl-h (Depends-on): Add link-warning.
45358         (Files): Add openat.m4.
45359         (Makefile.am): Substitute witnesses.
45360         * modules/sys_stat (Files, Makefile.am): Likewise.
45361         * modules/unistd (Files, Makefile.am): Likewise.
45362         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45363         (gl_OPENAT_DEFAULTS): New macro.
45364         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45366         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45367         (SYS_STAT_H): Remove unused variable.
45368         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45369         * lib/fcntl--.h (includes): Remove unneeded header.
45370         * lib/openat-safer.c (includes): Likewise.
45371         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45372         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45373         appropriate headers.
45374         (__OPENAT_PREFIX): Delete.
45375         * lib/fcntl.in.h (openat): Provide declaration.
45376         (AT_FDCWD): Fix Solaris bug.
45377         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45378         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45379         * lib/fchmodat.c (includes):  Adjust to find declaration.
45380         * lib/fchownat.c (includes): Likewise.
45381         * lib/mkdirat.c (includes): Likewise.
45382         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45383         still visible.
45384
45385 2009-09-02  Eric Blake  <ebb9@byu.net>
45386
45387         errno: use consistently
45388         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45389         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45390         * lib/canonicalize.c (ELOOP): Likewise.
45391         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45392         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45393         * lib/lchown.c (EOPNOTSUPP): Likewise.
45394         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45395         * lib/savewd.c (ESTALE): Likewise.
45396         * lib/settime.c (ENOSYS): Likewise.
45397         * lib/utimens.c (ENOSYS): Likewise.
45398         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45399         * lib/chdir-safer.c (ELOOP): Likewise.
45400         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45401         * modules/c-stack (Depends-on): Add errno.
45402         * modules/canonicalize (Depends-on): Likewise.
45403         * modules/chdir-safer (Depends-on): Likewise.
45404         * modules/fdopendir (Depends-on): Likewise.
45405         * modules/inet_ntop (Depends-on): Likewise.
45406         * modules/inet_pton (Depends-on): Likewise.
45407         * modules/lchown (Depends-on): Likewise.
45408         * modules/openat (Depends-on): Likewise.
45409         * modules/savewd (Depends-on): Likewise.
45410         * modules/settime (Depends-on): Likewise.
45411         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45412
45413         fts: avoid leaking fds
45414         * modules/fts (Depends-on): Add cloexec.
45415         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45416         flag.
45417
45418         fts: make directory fds more robust
45419         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45420         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45421
45422         backupfile, chdir-long, fts, savedir: make safer
45423         * lib/backupfile.c (includes): Use "dirent--.h", since
45424         numbered_backup can write to stderr during readdir.
45425         * lib/savedir.c (includes): Likewise.
45426         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45427         emulation can write to stderr on failure.
45428         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45429         * lib/getcwd.c: Document why opendir_safer is unused.
45430         * lib/glob.c: Likewise.
45431         * lib/scandir.c: Likewise.
45432         * lib/openat-proc.c: Likewise, for open_safer.
45433         * modules/backupfile (Depends-on): Add dirent-safer.
45434         * modules/savedir (Depends-on): Likewise.
45435         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45436         * modules/chdir-long (Depends-on): Add openat-safer.
45437
45438         openat-safer: new module
45439         * modules/openat-safer: New file.
45440         * lib/openat-safer.c: Likewise.
45441         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45442         * lib/fcntl-safer.h (openat_safer): Declare.
45443         * lib/fcntl--.h (openat): Override.
45444         * MODULES.html.sh (File descriptor based I/O): Mention it.
45445         * lib/openat.h: Add double-inclusion guards.
45446         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45447         "fcntl--.h", so we can implement openat.
45448         * modules/openat-safer-tests: New test.
45449         * tests/test-openat-safer.c: New file.
45450
45451         dirent-safer: new module
45452         * modules/dirent-safer: New file.
45453         * lib/dirent--.h: Likewise.
45454         * lib/dirent-safer.h: Likewise.
45455         * lib/opendir-safer.c: Likewise.
45456         * m4/dirent-safer.m4: Likewise.
45457         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45458         * modules/dirent-safer-tests: New test.
45459         * tests/test-dirent-safer.c: New file.
45460         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45461
45462         fdopendir: optimize on mingw
45463         * lib/unistd.in.h (_gl_directory_name): New prototype.
45464         * lib/fchdir.c (_gl_directory_name): Implement it.
45465         (fchdir): Use it to simplify implementation.
45466         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45467         fchdir, when available, to avoid calling [f]chdir().
45468
45469         fdopendir: split into its own module
45470         * lib/openat.c (fdopendir): Move...
45471         * lib/fdopendir.c: ...into new file.
45472         * modules/fdopendir: New module.
45473         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45474         * modules/openat (Depends-on): Add fdopendir.
45475         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45476         fdopendir here.
45477         * modules/savedir (Depends-on): Only need fdopendir, not full
45478         openat.
45479         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45480         * lib/openat.h (fdopendir): Drop prototype.
45481         * lib/dirent.in.h (fdopendir): Provide prototype.
45482         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45483         * modules/dirent (Makefile.am): Substitute them.
45484         * MODULES.html.sh (File system functions): Mention it.
45485         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45486         * modules/fdopendir-tests: New file.
45487         * tests/test-fdopendir.c: Likewise.
45488
45489         fchdir: use more consistent macro convention
45490         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45491         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45492         REPLACE_FCHDIR, rather than relying on config.h macros.
45493         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45494         inside a single make-time REPLACE_FCHDIR block, rather than using
45495         the config.h FCHDIR_REPLACEMENT.
45496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45497         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45498         Manage fstat replacement.
45499         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45500         REPLACE_FCHDIR.
45501         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45502         (Makefile.am): Substitute REPLACE_FCHDIR.
45503         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45504         FCHDIR_REPLACEMENT.
45505         * lib/dup-safer.c (dup_safer): Likewise.
45506         * lib/dup2.c (rpl_dup2): Likewise.
45507         * lib/dup3.c (rpl_dup3): Likewise.
45508         * lib/open.c (rpl_open): Likewise.
45509
45510         fchdir: simplify error handling, and support dup3
45511         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45512         stdbool, malloc-posix, realloc-posix.
45513         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45514         (ensure_dirs_slot): Return false on allocation failure.
45515         (rpl_dup2): Delete.
45516         (_gl_register_dup): New function.
45517         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45518         (_gl_register_fd): Close fd on allocation failure.
45519         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45520         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45521         prototype.
45522         (rpl_dup2_fchdir): Delete prototype.
45523         * lib/open.c (open): Update caller.
45524         * lib/dup2.c (dup2): Track fchdir metadata.
45525         * lib/dup3.c (dup3): Likewise.
45526         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45528
45529 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45530
45531         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45532         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45533         don't pass arguments to AC_OUTPUT.
45534
45535 2009-09-02  Bruno Haible  <bruno@clisp.org>
45536
45537         * modules/mkdtemp (License): Relicense under LGPLv2+.
45538         Reported by Paolo Bonzini.
45539
45540 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45541
45542         Replace uses of obsolete autoconf macros in Jim's modules.
45543         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45544         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45545         can evoke a warning from autoconf when run with -Wobsolete
45546         enabled.  They were declared obsolete for good reasons (see
45547         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45548         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45549         should not continue using the deprecated macros.
45550         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45551         obsolete Autoconf macros with modern counterparts.
45552         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45553         * m4/dos.m4 (gl_AC_DOS): Likewise.
45554         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45555         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45556         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45557         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45558         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45559         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45560         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45561         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45562         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45563         Likewise.
45564         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45565         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45566         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45567         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45568         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45569         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45570
45571 2009-09-01  Eric Blake  <ebb9@byu.net>
45572
45573         fchdir: fix off-by-one bug in previous patch
45574         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45575         (_gl_unregister_fd): Delete useless if.
45576
45577 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45578
45579         maint.mk: sort the list of syntax-check rules
45580         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45581         easier to get a sense of progress when the rules are run sequentially
45582         and take a long time.
45583
45584 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45585
45586         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45587         * modules/netinet_in: Likewise.
45588         * modules/sys_file: Likewise.
45589         * modules/sys_ioctl: Likewise.
45590         * modules/sys_select: Likewise.
45591         * modules/sys_socket: Likewise.
45592         * modules/sys_stat: Likewise.
45593         * modules/sys_time: Likewise.
45594         * modules/sys_times: Likewise.
45595         * modules/sys_utsname: Likewise.
45596         * modules/sys_wait: Likewise.
45597
45598 2009-09-01  Jim Meyering  <meyering@redhat.com>
45599
45600         fts: help ensure that return values are not ignored
45601         * lib/fts_.h (__GNUC_PREREQ): Define.
45602         (__attribute_warn_unused_result__): Define.
45603         (fts_children, fts_close, fts_open, fts_read): Declare with
45604         __attribute_warn_unused_result__.
45605
45606         fts: fts_close now fails also when closing a dir file descriptor fails
45607         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45608         and propagate to caller, along with errno.
45609
45610         announce-gen: correct formatting in --help output
45611         * build-aux/announce-gen (usage): Move the one-line description in
45612         --help output "up", to where it belongs, just after Usage:.
45613
45614 2009-08-31  Eric Blake  <ebb9@byu.net>
45615
45616         fchdir: port to mingw
45617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45618         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45619         opened, then use a substitute.
45620         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45621         replacement.
45622         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45623         (_gl_register_fd): No need to check stat if open already filters
45624         all directories.
45625         (fchdir): Fix error condition to match POSIX.
45626         * modules/fchdir (Depends-on): Add sys_stat.
45627         * doc/posix-functions/open.texi (open): Document the limitation.
45628         * modules/fchdir-tests: New file.
45629         * tests/test-fchdir.c: Likewise.
45630
45631         canonicalize: allow cross-testing from cygwin to mingw
45632         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45633         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45634         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45635         Likewise.
45636         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45637         target does not support symlinks.
45638         * tests/test-canonicalize-lgpl.sh: Likewise.
45639
45640         chown: avoid compilation warning on mingw
45641         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45642         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45643         mingw.
45644         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45645         * modules/chown (Depends-on): Add errno.
45646
45647 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45648
45649         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45650         command.
45651
45652 2009-08-31  Jim Meyering  <meyering@redhat.com>
45653
45654         canonicalize: remove useless initialization
45655         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45656         initialization of local, "end".
45657
45658 2009-08-30  Bruno Haible  <bruno@clisp.org>
45659
45660         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45661         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45662         ENOSYS.
45663
45664 2009-08-30  Bruno Haible  <bruno@clisp.org>
45665
45666         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45667         /usr/xpg4/bin/tr when it exists.
45668         * tests/test-pipe-filter-gi1.sh: Likewise.
45669
45670 2009-08-30  Bruno Haible  <bruno@clisp.org>
45671
45672         Work around deficient /usr/bin/id program on Solaris.
45673         * tests/test-file-has-acl.sh (ID): New variable.
45674         * tests/test-set-mode-acl.sh (ID): Likewise.
45675         * tests/test-copy-acl.sh (ID): Likewise.
45676         * tests/test-copy-file.sh (ID): Likewise.
45677
45678 2009-08-30  Bruno Haible  <bruno@clisp.org>
45679
45680         New module 'xstriconveh'.
45681         * lib/xstriconveh.h: New file.
45682         * lib/xstriconveh.c: New file.
45683         * modules/xstriconveh: New file.
45684
45685 2009-08-30  Bruno Haible  <bruno@clisp.org>
45686
45687         Make it easier to use mem_cd_iconveh.
45688         * lib/striconveh.h (iconveh_t): New type.
45689         (iconveh_open, iconveh_close): New declarations.
45690         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45691         with a single 'const iconveh_t *' argument.
45692         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45693         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45694         with a single 'const iconveh_t *' argument.
45695         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45696         * tests/test-striconveh.c (main): Update.
45697         * NEWS: Mention the change.
45698
45699 2009-08-30  Bruno Haible  <bruno@clisp.org>
45700
45701         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45702         problem.
45703
45704 2009-08-30  Bruno Haible  <bruno@clisp.org>
45705
45706         Work around iconv_open problem on Solaris.
45707         * lib/iconv_open-solaris.gperf: New file.
45708         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45709         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45710         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45711         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45712         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45713         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45714
45715 2009-08-29  Jim Meyering  <meyering@redhat.com>
45716
45717         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45718         * top/maint.mk (cvs-check): Remove target; it was just an alias
45719         to the better-named vc-diff-check.
45720         (maintainer-distcheck): Remove rule.  It was used only from
45721         the (alpha/beta/major) target, and all of its commands but one
45722         were coreutils-specific.
45723         (vc-dist): Remove rule.
45724         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45725         Run vc-diff-check, not vc-dist.
45726         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45727
45728 2009-08-27  Bruno Haible  <bruno@clisp.org>
45729
45730         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45731         of 0.
45732
45733 2009-08-27  Bruno Haible  <bruno@clisp.org>
45734
45735         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45736         compilers.
45737         * doc/func.texi: Document the SunPRO C bug.
45738
45739 2009-08-27  Bruno Haible  <bruno@clisp.org>
45740
45741         Fix link error on Solaris.
45742         * tests/test-parse-duration.c (xstrdup): Remove function.
45743
45744 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45745
45746         ignore-value: handle pointer types, too
45747         * lib/ignore-value.h (__attribute__): Remove definition.
45748         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45749         of a more concise and more-often effective "(void) i" statement.
45750         (ignore_ptr): New function to suppress warnings from functions that
45751         return pointers, and to make it explicit that one function doesn't
45752         handle all cases.
45753
45754 2009-08-25  Bruno Haible  <bruno@clisp.org>
45755
45756         dup2: work around a Linux bug.
45757         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45758         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45759         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45760         Reported by Simon Josefsson.
45761
45762 2009-08-25  Jim Meyering  <meyering@redhat.com>
45763
45764         libguestfs uses gnulib
45765         * users.txt: Add libguestfs.
45766
45767 2009-08-24  Eric Blake  <ebb9@byu.net>
45768
45769         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45770         * lib/pipe2.c (includes): Add binary-io.h.
45771         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45772
45773 2009-08-24  Bruno Haible  <bruno@clisp.org>
45774
45775         Tolerate declared but missing accept4 syscall.
45776         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45777         available.
45778         * lib/sys_socket.in.h (accept4): If the function is already present,
45779         override it.
45780         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45781         * modules/accept4 (Makefile.am): Compile accept4.c always.
45782         Reported by Paolo Bonzini and Eric Blake.
45783
45784 2009-08-23  Bruno Haible  <bruno@clisp.org>
45785
45786         New module 'accept4'.
45787         * lib/sys_socket.in.h (accept4): New declaration.
45788         * lib/accept4.c: New file.
45789         * m4/accept4.m4: New file.
45790         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45791         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45792         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45793         HAVE_ACCEPT4.
45794         * modules/accept4: New file.
45795         * doc/glibc-functions/accept4.texi: Mention the new module.
45796
45797 2009-08-24  Jim Meyering  <meyering@redhat.com>
45798
45799         progname: also set global program_invocation_name, when possible
45800         Before this change, a libtool-enabled program that calls glibc's
45801         error function would report the program name as
45802         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45803         * modules/progname (configure.ac): Check for a declaration of
45804         program_invocation_name.
45805         * lib/progname.c:  Include <errno.h>.
45806         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45807         Set program_invocation_name.
45808
45809 2009-08-23  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/dup3.c: Include <string.h>.
45812
45813 2009-08-23  Bruno Haible  <bruno@clisp.org>
45814
45815         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45816         * lib/pipe2.c (pipe2): Likewise.
45817         Suggested by Eric Blake.
45818
45819 2009-08-23  Bruno Haible  <bruno@clisp.org>
45820
45821         Tolerate declared but missing dup3 syscall.
45822         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45823         * lib/unistd.in.h (dup3): If the function is already present,
45824         override it.
45825         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45826         * modules/dup3 (Makefile.am): Compile dup3.c always.
45827         Reported by Paolo Bonzini.
45828
45829 2009-08-23  Bruno Haible  <bruno@clisp.org>
45830
45831         Tolerate declared but missing pipe2 syscall.
45832         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45833         available.
45834         * lib/unistd.in.h (pipe2): If the function is already present,
45835         override it.
45836         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45837         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45838         Reported by Paolo Bonzini.
45839
45840 2009-08-23  Bruno Haible  <bruno@clisp.org>
45841
45842         * lib/pipe2.c (pipe2): Move #ifs inside function.
45843
45844 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45845
45846         quotearg: document limitations of quote_these_too
45847         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45848         those limitations are created.
45849         * lib/quotearg.h (set_char_quoting): Document that digits and
45850         letters that are special after backslash are not permitted.
45851         (quotearg_char): Cross-reference set_char_quoting documentation.
45852
45853 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45854
45855         quotearg: implement custom_quoting_style
45856         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45857         right_quote fields.
45858         (set_custom_quoting): New public function.
45859         (quotearg_buffer_restyled): Add left_quote and right_quote
45860         arguments, handle them very much like locale quoting, and update
45861         all uses.
45862         (quotearg_n_custom): New public function.
45863         (quotearg_n_custom_mem): New public function.
45864         (quotearg_custom): New public function.
45865         (quotearg_custom_mem): New public function.
45866         * lib/quotearg.h: Prototype and document new public functions.
45867         (enum quoting_style): For escape_quoting_style and
45868         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45869         ignored even though they're otherwise like c_quoting_style.
45870         Add custom_quoting_style member and document with comparison to
45871         clocale_quoting_style.
45872         * tests/test-quotearg.c (custom_quotes): New array.
45873         (custom_results): New array.
45874         (main): Extend to test custom quoting.
45875
45876 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45877
45878         quotearg: fix right quote escaping when it's in quote_these_too
45879         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45880         quote, be sure to prepend only one backslash.
45881         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45882         (main): Test it.
45883
45884 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45885
45886         quotearg-tests: test escaping of embedded locale quotes
45887         * tests/test-quotearg.c (struct result_strings): Add member for
45888         new input.
45889         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45890         (inputs): Add new input.
45891         (results_g): Add expected results.
45892         (flag_results): Likewise.
45893         (locale_results): Likewise.
45894         (compare_strings): Check those.
45895
45896 2009-08-23  Bruno Haible  <bruno@clisp.org>
45897
45898         Tests for module 'dup3'.
45899         * modules/dup3-tests: New file.
45900         * tests/test-dup3.c: New file.
45901
45902         New module 'dup3'.
45903         * lib/unistd.in.h (dup3): New declaration.
45904         * lib/dup3.c: New file.
45905         * m4/dup3.m4: New file.
45906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45907         HAVE_DUP3.
45908         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45909         * modules/dup3: New file.
45910         * doc/glibc-functions/dup3.texi: Mention the new module.
45911
45912 2009-08-23  Bruno Haible  <bruno@clisp.org>
45913
45914         Tweak the dup2 test.
45915         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45916         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45917         the test file is still empty. Fix argument order of lseek.
45918
45919 2009-08-23  Bruno Haible  <bruno@clisp.org>
45920
45921         Avoid test link errors when the modules getopt-gnu, gettext are used.
45922         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45924
45925 2009-08-23  Bruno Haible  <bruno@clisp.org>
45926
45927         Fix getdtablesize() on mingw.
45928         * lib/getdtablesize.c (getdtablesize): Implement differently.
45929         * lib/unistd.in.h (getdtablesize): Improve comment.
45930
45931 2009-08-23  Bruno Haible  <bruno@clisp.org>
45932
45933         New module 'mkostemp'.
45934         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45935         * lib/stdlib.in.h (mksotemp): New declaration.
45936         * lib/mkostemp.c: New file, from glibc with modifications.
45937         * lib/tempname.h (GT_FILE): Remove outdated comment.
45938         (gen_tempname): Add flags argument.
45939         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45940         (__GT_FILE): Map to 1.
45941         (small_open, large_open): Remove macros.
45942         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45943         * lib/mkstemp.c (mkstemp): Update.
45944         * lib/mkdtemp.c (mkdtemp): Likewise.
45945         * m4/mkostemp.m4: New file.
45946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45947         HAVE_MKOSTEMP.
45948         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45949         HAVE_MKOSTEMP.
45950         * modules/mkostemp: New file, based on modules/mkstemp.
45951         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45952         * NEWS: Mention the change.
45953
45954 2009-08-23  Bruno Haible  <bruno@clisp.org>
45955
45956         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45957         Reported by Eric Blake.
45958
45959 2009-08-23  Bruno Haible  <bruno@clisp.org>
45960
45961         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45962         Reported by Eric Blake.
45963
45964 2009-08-23  Bruno Haible  <bruno@clisp.org>
45965
45966         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45967         * modules/pipe2 (Depends-on): Likewise.
45968
45969 2009-08-23  Eric Blake  <ebb9@byu.net>
45970
45971         fcntl-h: add O_TTY_INIT support
45972         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45973         * tests/test-fcntl-h.c (o): Test it.
45974         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45975
45976         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45977         * modules/fcntl: Move <fcntl.h> header replacement...
45978         * modules/fcntl-h: ...to new name, so as not to collide with
45979         like-named function.
45980         * tests/test-fcntl.c: Rename...
45981         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45982         * modules/fcntl-tests: Rename...
45983         * modules/fcntl-h-tests: ...to this.  Update test file name.
45984         * modules/chdir-long (Depends-on): Update clients.
45985         * modules/chdir-safer (Depends-on): Likewise.
45986         * modules/fcntl-safer (Depends-on): Likewise.
45987         * modules/fts (Depends-on): Likewise.
45988         * modules/mkancesdirs (Depends-on): Likewise.
45989         * modules/mkdir-p (Depends-on): Likewise.
45990         * modules/open (Depends-on): Likewise.
45991         * modules/savewd (Depends-on): Likewise.
45992         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45993         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45994
45995 2009-08-22  Bruno Haible  <bruno@clisp.org>
45996
45997         * modules/binary-io (License): Relicense under LGPL.
45998         * modules/pipe2 (License): Likewise.
45999
46000 2009-08-22  Bruno Haible  <bruno@clisp.org>
46001
46002         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46003         return value.
46004         * lib/pipe-filter-gi.c (filter_init): Likewise.
46005         Reported by Eric Blake.
46006
46007 2009-08-22  Bruno Haible  <bruno@clisp.org>
46008
46009         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46010         * modules/pipe (Depends-on): Add pipe2.
46011
46012 2009-08-22  Bruno Haible  <bruno@clisp.org>
46013
46014         Tests for module 'pipe2'.
46015         * modules/pipe2-tests: New file.
46016         * tests/test-pipe2.c: New file.
46017
46018         New module 'pipe2'.
46019         * lib/unistd.in.h (pipe2): New declaration.
46020         * lib/pipe2.c: New file.
46021         * m4/pipe2.m4: New file.
46022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46023         HAVE_PIPE2.
46024         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46025         * modules/pipe2: New file.
46026         * doc/glibc-functions/pipe2.texi: Mention the new module.
46027
46028 2009-08-22  Bruno Haible  <bruno@clisp.org>
46029
46030         Reference some new glibc functions.
46031         * doc/glibc-functions/accept4.texi: New file.
46032         * doc/glibc-functions/dup3.texi: New file.
46033         * doc/glibc-functions/mkostemp.texi: New file.
46034         * doc/glibc-functions/pipe2.texi: New file.
46035         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46036         (Glibc sys/socket.h): Refer to accept4.
46037         (Glibc unistd.h): Refer to dup3, pipe2.
46038         Reported by Eric Blake.
46039
46040 2009-08-22  Jim Meyering  <meyering@redhat.com>
46041             Bruno Haible  <bruno@clisp.org>
46042
46043         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46044         This makes it so packages using automake-1.11's silent-rules option
46045         can print e.g., a single "GEN    configmake.h" line, rather than
46046         the 30+ statements that perform the job.  If you want to see the
46047         actual commands, you can still run "make V=1".
46048         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46049         so that make output is abbreviated when those variables are defined
46050         appropriately.
46051         * modules/argz: Likewise.
46052         * modules/arpa_inet: Likewise.
46053         * modules/byteswap: Likewise.
46054         * modules/configmake: Likewise.
46055         * modules/dirent: Likewise.
46056         * modules/errno: Likewise.
46057         * modules/fcntl: Likewise.
46058         * modules/float: Likewise.
46059         * modules/fnmatch: Likewise.
46060         * modules/getopt-posix: Likewise.
46061         * modules/glob: Likewise.
46062         * modules/iconv_open: Likewise.
46063         * modules/inttypes: Likewise.
46064         * modules/localcharset: Likewise.
46065         * modules/locale: Likewise.
46066         * modules/math: Likewise.
46067         * modules/netdb: Likewise.
46068         * modules/netinet_in: Likewise.
46069         * modules/poll: Likewise.
46070         * modules/posix_spawnp-tests: Likewise.
46071         * modules/sched: Likewise.
46072         * modules/search: Likewise.
46073         * modules/selinux-h: Likewise.
46074         * modules/signal: Likewise.
46075         * modules/spawn: Likewise.
46076         * modules/stdarg: Likewise.
46077         * modules/stdbool: Likewise.
46078         * modules/stddef: Likewise.
46079         * modules/stdint: Likewise.
46080         * modules/stdio: Likewise.
46081         * modules/stdlib: Likewise.
46082         * modules/string: Likewise.
46083         * modules/strings: Likewise.
46084         * modules/sys_file: Likewise.
46085         * modules/sys_ioctl: Likewise.
46086         * modules/sys_select: Likewise.
46087         * modules/sys_socket: Likewise.
46088         * modules/sys_stat: Likewise.
46089         * modules/sys_time: Likewise.
46090         * modules/sys_times: Likewise.
46091         * modules/sys_utsname: Likewise.
46092         * modules/sys_wait: Likewise.
46093         * modules/sysexits: Likewise.
46094         * modules/time: Likewise.
46095         * modules/unistd: Likewise.
46096         * modules/wchar: Likewise.
46097         * modules/wctype: Likewise.
46098
46099 2009-08-22  Jim Meyering  <meyering@redhat.com>
46100
46101         announce-gen: detect write failure
46102         * build-aux/announce-gen: Add Coda at end.
46103         Remove equivalent-but-more-verbose block at top.
46104
46105 2009-08-19  Akim Demaille  <demaille@gostai.com>
46106
46107         bootstrap: --help to stdout.
46108         * bootstrap (usage): Don't send --help to stderr.
46109         Use a here doc instead of a long string.
46110
46111 2009-08-21  Eric Blake  <ebb9@byu.net>
46112
46113         test-popen-safer: split from test-popen
46114         * tests/test-popen.c (main): Move...
46115         * tests/test-popen.h: ...into new file.
46116         * tests/test-popen-safer2.c: New file.
46117         * modules/popen-tests (Files): Add test-popen.h.
46118         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46119         Suggested by Bruno Haible.
46120
46121         test-fcntl-safer: split from test-open
46122         * tests/test-open.c (main): Move...
46123         * tests/test-open.h: ...into new file.
46124         * tests/test-fcntl-safer.c: New file.
46125         * modules/open-tests (Files): Add test-open.h.
46126         * modules/fcntl-safer-tests: New file.
46127         Suggested by Bruno Haible.
46128
46129         test-fopen-safer: split from test-fopen
46130         * tests/test-fopen.c (main): Move...
46131         * tests/test-fopen.h: ...into new file.
46132         * tests/test-fopen-safer.c: New file.
46133         * modules/fopen-tests (Files): Add test-fopen.h.
46134         * modules/fopen-safer-tests: New file.
46135         Suggested by Bruno Haible.
46136
46137 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46138
46139         popen-safer: test O_CLOEXEC at run-time.
46140         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46141
46142 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46143
46144         fcntl: move more flags to the header
46145         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46146         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46147         * lib/fcntl.in.h: Do both things here.
46148
46149 2009-08-21  Jim Meyering  <meyering@redhat.com>
46150
46151         consistently remove $@-t before redirecting to it
46152         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46153         * modules/alloca-opt: Likewise.
46154         * modules/byteswap: Likewise.
46155         * modules/fnmatch: Likewise.
46156         * modules/getopt-posix: Likewise.
46157         * modules/glob: Likewise.
46158         * modules/poll: Likewise.
46159         * modules/posix_spawnp-tests: Likewise.
46160         * modules/sys_socket: Likewise.
46161         * modules/sysexits: Likewise.
46162
46163 2009-08-21  Eric Blake  <ebb9@byu.net>
46164
46165         popen: simplify access to original popen
46166         * lib/popen.c (rpl_popen): No need to worry about popen being a
46167         macro.
46168         Reported by Bruno Haible.
46169
46170 2009-08-20  Eric Blake  <ebb9@byu.net>
46171
46172         build: avoid some compiler warnings
46173         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46174         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46175         type.
46176         (new_exclude_segment, excluded_file_pattern_p)
46177         (excluded_file_name_p): Reduce scope.
46178         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46179         old-style declaration.
46180
46181 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46182
46183         * tests/test-exclude1.sh: Handle Windows EOL.
46184         * tests/test-exclude2.sh: Likewise.
46185         * tests/test-exclude3.sh: Likewise.
46186         * tests/test-exclude4.sh: Likewise.
46187         * tests/test-exclude5.sh: Likewise.
46188         * tests/test-exclude6.sh: Likewise.
46189         * tests/test-exclude7.sh: Likewise.
46190
46191 2009-08-19  Akim Demaille  <demaille@gostai.com>
46192
46193         bootstrap: find sha1sum when named gsha1sum.
46194         * bootstrap (find_tool): New.
46195         ($SHA1SUM): New.
46196         Use it.
46197
46198 2009-08-20  Jim Meyering  <meyering@redhat.com>
46199
46200         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46201         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46202         expression that converts "." in a file name to "\." in the resulting
46203         regexp.  Start with a dummy statement, so that prior shell variable
46204         definitions are expanded portably.  Reported by Simon Josefsson.
46205
46206 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46207
46208         Fix polling for writeability of a screen buffer.
46209         * lib/poll.c: Distinguish input and screen buffers for the
46210         Win32 implementation.
46211         * lib/select.c: Likewise.
46212
46213 2009-08-19  Eric Blake  <ebb9@byu.net>
46214
46215         popen-safer: prevent popen from clobbering std descriptors
46216         * modules/popen-safer: New file.
46217         * lib/popen-safer.c: Likewise.
46218         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46219         * lib/stdio--.h (popen): Provide override.
46220         * lib/stdio-safer.h (popen_safer): Provide declaration.
46221         * tests/test-popen.c (includes): Partially test this.
46222         * modules/popen-safer-tests: New file, for more tests.
46223         * tests/test-popen-safer.c: Likewise.
46224         * MODULES.html.sh (file stream based Input/Output): Mention it.
46225
46226         tests: test some of the *-safer modules
46227         * modules/fopen-safer (Depends-on): Add fopen.
46228         * modules/fcntl-safer (Depends-on): Add fcntl.
46229         * modules/stdlib-safer (Depends-on): Add stdlib.
46230         (configure.ac): Set indicator.
46231         * modules/unistd-safer (configure.ac): Likewise.
46232         * modules/tmpfile-safer (configure.ac): Likewise.
46233         (Depends-on): Add tmpfile.
46234         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46235         active.
46236         * tests/test-fopen.c (includes): Test safer versions when they are
46237         in use.
46238         * tests/test-open.c (includes): Likewise.
46239
46240         popen: fix cygwin 1.5 bug when stdin closed
46241         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46242         * modules/popen: New file.
46243         * modules/popen-tests: Likewise.
46244         * tests/test-popen.c: Likewise.
46245         * m4/popen.m4: Likewise.
46246         * lib/popen.c: Likewise.
46247         * lib/stdio.in.h (popen): New declaration.
46248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46249         * modules/stdio (Makefile.am): Likewise.
46250         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46251
46252 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46253
46254         maint.mk: give full control over update-copyright exclusions
46255         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46256         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46257         (update-copyright): Don't force inclusion of top-level
46258         ChangeLog.  Don't force exclusion of all COPYING files, but make
46259         them the default exclusion instead.
46260
46261 2009-08-16  Bruno Haible  <bruno@clisp.org>
46262
46263         Fix test failures on Solaris 10.
46264         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46265         tests when Solaris iconv() is used.
46266         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46267         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46268         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46269         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46270         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46271
46272 2009-08-16  Bruno Haible  <bruno@clisp.org>
46273
46274         Fix test failures on Solaris 10.
46275         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46276         'tr' program and pass it as first argument.
46277         * tests/test-pipe-filter-gi1.sh: Likewise.
46278         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46279         program as first argument.
46280         * tests/test-pipe-filter-gi1.c (main): Likewise.
46281
46282 2009-08-16  Eric Blake  <ebb9@byu.net>
46283
46284         fpurge: fix previous commits
46285         * modules/fpurge (Makefile.am): Make replacement conditional,
46286         partially reverting 2007-04-29 change; missed in previous
46287         attempt.
46288         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46289         is missing.
46290
46291 2009-08-16  Bruno Haible  <bruno@clisp.org>
46292
46293         Clarify fpurge's effect on the file position.
46294         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46295         * tests/test-fpurge.c (main): Make a second pass for checking the file
46296         position.
46297
46298 2009-08-16  Bruno Haible  <bruno@clisp.org>
46299
46300         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46301         declaration of fpurge is missing.
46302         * tests/test-fpurge.c (main): Check that the file has not more contents
46303         than expected. Close the file before removing it.
46304
46305 2009-08-15  Eric Blake  <ebb9@byu.net>
46306
46307         fpurge: don't wrap working cygwin implementation
46308         * lib/fpurge.c (fpurge): Fix comment typo.
46309         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46310         1.7 to avoid replacement.
46311         * tests/test-fpurge.c (main): Enhance test.
46312
46313 2009-08-15  Eric Blake  <ebb9@byu.net>
46314         and Jim Meyering  <meyering@redhat.com>
46315
46316         test-update-copyright: skip if perl is insufficient
46317         * tests/test-update-copyright.sh: Failure to run maintainer tool
46318         should not cause testsuite failure on cygwin 1.5.
46319
46320 2009-08-14  Eric Blake  <ebb9@byu.net>
46321
46322         doc: mention more functions added in cygwin 1.7.0
46323         * doc/posix-headers/limits.texi (limits.h): Update for recent
46324         cygwin additions.
46325         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46326         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46327         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46328         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46329         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46330
46331 2009-08-14  Eric Blake  <ebb9@byu.net>
46332
46333         maint.mk: simplify update-copyright rule
46334         * top/maint.mk (update-copyright-local): Delete, and document how
46335         to do it in cfg.mk instead.
46336         (update-copyright-exclude-regexp): Delete, and document how to do
46337         it in .x-update-copyright instead.
46338         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46339         exclude ChangeLog.
46340
46341 2009-08-14  Bruno Haible  <bruno@clisp.org>
46342
46343         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46344
46345 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46346
46347         maint.mk: support update-copyright-env
46348         * top/maint.mk (update-copyright-env): Define place-holder.
46349         (update-copyright): Expand $(update-copyright-env) before
46350         invoking update-copyright.
46351
46352 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46353
46354         update-copyright: implement forced reformatting
46355         * build-aux/update-copyright: Implement and document
46356         UPDATE_COPYRIGHT_FORCE.
46357         * tests/test-update-copyright.sh: Test it.
46358
46359 2009-08-14  Eric Blake  <ebb9@byu.net>
46360         and Bruno Haible  <bruno@clisp.org>
46361
46362         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46363         * tests/test-locale.c: Revert previous patch related to NULL.
46364         * tests/test-stdio.c: Likewise.
46365         * tests/test-stdlib.c: Likewise.
46366         * tests/test-string.c: Likewise.
46367         * tests/test-unistd.c: Likewise.
46368         * modules/time-tests (Depends-on): Add verify.
46369         * modules/wchar-tests (Depends-on): Likewise.
46370         * tests/test-time.c: Test for NULL compliance.
46371         * tests/test-wchar.c: Likewise.
46372         * modules/locale (Depends-on): Add stddef.
46373         * modules/stdio (Depends-on): Likewise.
46374         * modules/stdlib (Depends-on): Likewise.
46375         * modules/string (Depends-on): Likewise.
46376         * modules/time (Depends-on): Likewise.
46377         * modules/unistd (Depends-on): Likewise.
46378         * modules/wchar (Depends-on): Likewise.
46379         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46380         * lib/stdlib.in.h (includes): Likewise.
46381         * lib/string.in.h (includes): Likewise.
46382         * lib/time.in.h (includes): Likewise.
46383         * lib/unistd.in.h (includes): Likewise.
46384         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46385         replaced.
46386         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46387         * m4/stddef_h.m4: New file.
46388         * modules/stddef: Likewise.
46389         * lib/stddef.in.h: Likewise.
46390         * modules/stddef-tests: Likewise.
46391         * tests/test-stddef.c: Likewise.
46392         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46393         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46394         * doc/posix-headers/locale.texi (locale.h): Likewise.
46395         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46396         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46397         * doc/posix-headers/string.texi (string.h): Likewise.
46398         * doc/posix-headers/time.texi (time.h): Likewise.
46399         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46400         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46401
46402 2009-08-14  Eric Blake  <ebb9@byu.net>
46403
46404         doc: improve git diff of texinfo files
46405         * .gitattributes: Add rule for *.texi files, with hint on how to
46406         use it.
46407         Copied from m4, and based on a report by Bruno Haible.
46408
46409 2009-08-14  Bruno Haible  <bruno@clisp.org>
46410
46411         Disable multithread support by default on Cygwin 1.5.x for real.
46412         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46413
46414 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46415
46416         update-copyright: much ado about intervals
46417         * build-aux/update-copyright: Implement and document
46418         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46419         of copyright year intervals.
46420         Also, document UPDATE_COPYRIGHT_YEAR.
46421         * tests/test-update-copyright.sh: Test it.
46422
46423         update-copyright: convert 2-digit to 4-digit years
46424         * build-aux/update-copyright: Implement and document.
46425         * tests/test-update-copyright.sh: Update.
46426
46427 2009-08-14  Jim Meyering  <meyering@redhat.com>
46428
46429         test-exclude: avoid coreutils "make check" failure
46430         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46431         just as in test-argmatch.c.
46432
46433 2009-08-13  Eric Blake  <ebb9@byu.net>
46434
46435         test-dup2: fix bad assumption
46436         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46437         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46438
46439         test-version-etc: fix CRLF portability issue
46440         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46441         recognize \r.
46442         * tests/test-argp-version-etc-1.sh: Likewise.
46443
46444         getopt: update client modules
46445         * modules/argp (Depends-on): Use getopt-gnu.
46446         * modules/git-merge-changelog (Depends-on): Likewise.
46447         * modules/long-options (Depends-on): Likewise.
46448         * modules/xstrtol (Depends-on): Likewise.
46449
46450 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46451
46452         * tests/test-version-etc.sh: Don't fail on different
46453         project/version.  Don't fail on CRLF differences.  Rewrite to use
46454         multiple -e instead of multiple sed forks, suggested by Eric Blake
46455         <ebb9@byu.net>.
46456         * tests/test-argp-version-etc-1.sh: Likewise.
46457
46458 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46459
46460         * tests/test-version-etc.sh: Don't fail on different
46461         project/version.
46462
46463 2009-08-12  Bruno Haible  <bruno@clisp.org>
46464
46465         Tests for modules 'getopt-posix', 'getopt-gnu'.
46466         * modules/getopt-posix-tests: New file.
46467         * tests/test-getopt.c: New file.
46468         * tests/test-getopt.h: New file.
46469         * tests/test-getopt_long.h: New file.
46470
46471         New modules 'getopt-posix', 'getopt-gnu'.
46472         * modules/getopt-gnu: New file, renamed from modules/getopt.
46473         * modules/getopt-posix: New file.
46474         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46475         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46476         (gl_GETOPT): Remove macro.
46477         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46478         Disable the test against BSD systems that declare optreset. Test
46479         against mingw bug. Test against lack of support of optional arguments
46480         on many platforms.
46481         * doc/glibc-headers/getopt.texi: Update module name and list of
46482         relevant platforms.
46483         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46484         'getopt-gnu' and more portability problems.
46485         * NEWS: Mention the changes.
46486
46487 2009-08-12  Bruno Haible  <bruno@clisp.org>
46488
46489         Ensure that optarg etc. get declared by <unistd.h>.
46490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46491         AC_USE_SYSTEM_EXTENSIONS.
46492         * modules/getopt (Depends-on): Add 'extensions'.
46493
46494 2009-08-12  Bruno Haible  <bruno@clisp.org>
46495
46496         Avoid test link errors.
46497         * modules/pipe-filter-ii-tests (Makefile.am): Define
46498         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46499         * modules/pipe-filter-gi-tests (Makefile.am): Define
46500         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46502
46503 2009-08-12  Bruno Haible  <bruno@clisp.org>
46504
46505         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46506         gl_GETOPT_SUBSTITUTE before.
46507         (gl_GETOPT): Use it.
46508         * m4/argp.m4 (gl_ARGP): Update.
46509         Reported by Sergey Poznyakoff.
46510
46511         * m4/getopt.m4: Reorder macros.
46512         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46513         (gl_GETOPT_SUBSTITUTE): Remove macro.
46514
46515 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46516
46517         Minor improvement in gitlog-to-changelog
46518
46519         * build-aux/gitlog-to-changelog: New option `--format' makes
46520         output format string configurable.
46521
46522 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46523
46524         Optimize exclude: use hash tables for non-wildcard patterns.
46525
46526         * lib/exclude.c: Include hash.h and mbuiter.h
46527         (struct exclude_pattern, exclude_segment): New data types.
46528         (struct exclude): Rewrite.
46529         (fnmatch_pattern_has_wildcards): New function.
46530         (new_exclude_segment, free_exclude_segment): New functions.
46531         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46532         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46533         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46534         * modules/exclude: Depend on hash and mbuiter.
46535
46536         * modules/exclude-tests: New file.
46537         * tests/test-exclude.c: New file.
46538         * tests/test-exclude1.sh: New file.
46539         * tests/test-exclude2.sh: New file.
46540         * tests/test-exclude3.sh: New file.
46541         * tests/test-exclude4.sh: New file.
46542         * tests/test-exclude5.sh: New file.
46543         * tests/test-exclude6.sh: New file.
46544         * tests/test-exclude7.sh: New file.
46545
46546 2009-08-12  Bruno Haible  <bruno@clisp.org>
46547
46548         Ensure that getopt() gets declared by <unistd.h>.
46549         * lib/unistd.in.h: Conditionally include getopt.h.
46550         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46551         Set GNULIB_UNISTD_H_GETOPT.
46552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46553         GNULIB_UNISTD_H_GETOPT.
46554         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46555
46556 2009-08-12  Bruno Haible  <bruno@clisp.org>
46557
46558         Clarify logic.
46559         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46560         gl_replace_getopt instead of GETOPT_H.
46561
46562 2009-08-12  Bruno Haible  <bruno@clisp.org>
46563
46564         * m4/getopt.m4: Add comments.
46565
46566 2009-08-12  Bruno Haible  <bruno@clisp.org>
46567
46568         Disable multithread support by default on Cygwin 1.5.x.
46569         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46570         set gl_use_threads=no if not specified otherwise.
46571
46572 2009-08-11  Bruno Haible  <bruno@clisp.org>
46573
46574         Avoid compilation error on NetBSD 5.0.
46575         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46576         * tests/test-stdio.c: Likewise.
46577         * tests/test-stdlib.c: Likewise.
46578         * tests/test-string.c: Likewise.
46579         * tests/test-unistd.c: Likewise.
46580         Reported by Greg Troxel <gdt@ir.bbn.com>
46581         at <https://savannah.gnu.org/support/?106973>.
46582
46583 2009-08-11  Bruno Haible  <bruno@clisp.org>
46584
46585         * modules/dup2-tests (Depends-on): Remove close.
46586
46587         Undo 2009-07-19 commit.
46588         * modules/acl-tests (Depends-on): Remove close.
46589         * modules/binary-io-tests (Depends-on): Likewise.
46590         * modules/closein-tests (Depends-on): Likewise.
46591         * modules/flock-tests (Depends-on): Likewise.
46592         * modules/fsync-tests (Depends-on): Likewise.
46593         * modules/lseek-tests (Depends-on): Likewise.
46594         * modules/pipe-tests (Depends-on): Likewise.
46595         * modules/posix_spawn-tests (Depends-on): Likewise.
46596         * modules/posix_spawnp-tests (Depends-on): Likewise.
46597         * modules/stat-time-tests (Depends-on): Likewise.
46598         * modules/yesno-tests (Depends-on): Likewise.
46599
46600 2009-08-10  Bruno Haible  <bruno@clisp.org>
46601
46602         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46603
46604 2009-08-10  Bruno Haible  <bruno@clisp.org>
46605
46606         Fix a gcc warning.
46607         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46608
46609 2009-08-10  Bruno Haible  <bruno@clisp.org>
46610
46611         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46612         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46613         not only the first time.
46614         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46615         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46616         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46617         is 1, not only the the first time.
46618
46619 2009-08-10  Bruno Haible  <bruno@clisp.org>
46620
46621         Make it possible to use module 'gethostname' without module 'close'.
46622         * lib/unistd.in.h (close): Evoke a link error only if
46623         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46625         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46626         * modules/unistd (Makefile.am): Substitute
46627         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46628         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46629         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46630         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46631         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46632         * modules/sys_ioctl (Makefile.am): Substitute
46633         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46634         * modules/socket (configure.ac): On native Windows, set
46635         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46636         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46637         Reported by Sam Steingold <sds@gnu.org>.
46638
46639 2009-08-10  Bruno Haible  <bruno@clisp.org>
46640
46641         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46642         * modules/ioctl (configure.ac): Likewise.
46643
46644 2009-08-10  Bruno Haible  <bruno@clisp.org>
46645
46646         Avoid collision between gnulib wrapper and libintl wrapper.
46647         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46648         already defined in intl/printf.c.
46649         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46650         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46651
46652 2009-08-09  Bruno Haible  <bruno@clisp.org>
46653
46654         Make <sys/select.h> really self-contained, also on Solaris 10.
46655         * lib/sys_select.in.h: Include <string.h>.
46656         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46657         Solaris 10 problem.
46658         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46659         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46660         Reported by Jim Meyering.
46661
46662 2009-08-09  Bruno Haible  <bruno@clisp.org>
46663
46664         Avoid warnings from 'aclocal' that are due to a use of macro name
46665         AM_XGETTEXT_OPTION that is not defined in automake.
46666         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46667         automake.
46668         * modules/error (configure.ac): Likewise.
46669         * modules/propername (configure.ac): Likewise.
46670         * modules/vasprintf (configure.ac): Likewise.
46671         * modules/verror (configure.ac): Likewise.
46672         * modules/xprintf (configure.ac): Likewise.
46673         * modules/xvasprintf (configure.ac): Likewise.
46674
46675 2009-08-08  Bruno Haible  <bruno@clisp.org>
46676
46677         Avoid compilation error in C++ mode.
46678         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46679         Reported by Sam Steingold <sds@gnu.org>.
46680
46681 2009-08-08  Bruno Haible  <bruno@clisp.org>
46682
46683         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46684         for the various Unix platforms.
46685         * doc/posix-headers/limits.texi: Update platforms list regarding
46686         HOST_NAME_MAX.
46687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46688
46689 2009-08-07  Jim Meyering  <meyering@redhat.com>
46690
46691         selinux-at: fix typo in a comment
46692         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46693         Spotted by Paolo Bonzini.
46694
46695         selinux-at: remove redundant m4 code, add documentation
46696         * modules/selinux-at (configure.ac): Remove redundant code.
46697         LIB_SELINUX is already set via the dependent module, selinux-h.
46698         (Include): Add quotes around selinux-at.h.
46699         * lib/selinux-at.h: Add documentation.
46700         Reported by Bruno Haible in
46701         http://marc.info/?l=gnulib-bug&m=124958988300749
46702
46703 2009-08-07  Bruno Haible  <bruno@clisp.org>
46704
46705         Avoid link error on MacOS X 10.3 and 10.4.
46706         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46707         on non-ELF systems.
46708         * lib/argp-pv.c (argp_program_version): Likewise.
46709         Reported by Simon Josefsson.
46710
46711 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46712
46713         * tests/test-version-etc.sh: Use $EXEEXT.
46714
46715 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46716
46717         update-copyright: update documentation to point to maint.mk
46718         * build-aux/update-copyright: Here.
46719
46720 2009-08-06  Jim Meyering  <meyering@redhat.com>
46721
46722         maint.mk: support update-copyright-local
46723         * top/maint.mk (update-copyright-local): Define place-holder.
46724         (update-copyright): Depend on $(update-copyright-local).
46725
46726 2009-08-06  Jim Meyering  <meyering@redhat.com>
46727
46728         selinux-at: new module
46729         Initially written for coreutils, this module will soon be
46730         used by findutils, too.
46731         * MODULES.html.sh [Misc]: Add selinux-at.
46732         * lib/selinux-at.h: New file, from coreutils.
46733         * lib/selinux-at.c: Likewise.
46734         * modules/selinux-at: Likewise.
46735         (License): Change from LGPL to GPL, since it depends
46736         on the GPL'd openat module.
46737
46738         doc: update README
46739         * README: Remove references to cogito.
46740         Remove cvs-repo-updating instructions from 2007.
46741         Don't imply that CVS is better if you have limited disk space.
46742
46743 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46744
46745         update-copyright: support C-style comments
46746         * build-aux/update-copyright: Implement and document.
46747         * tests/test-update-copyright.sh: Test.
46748
46749 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46750
46751         update-copyright: support omitted "(C)"
46752         * build-aux/update-copyright: Implement and document.  Also,
46753         allow variable whitespace before "(C)".
46754         * tests/test-update-copyright.sh: Test.
46755
46756 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46757
46758         update-copyright: don't trip on non-FSF copyright statements
46759         * build-aux/update-copyright: Fix so that the first correctly
46760         formatted FSF copyright statement is recognized no matter what
46761         appears before it.  Update documentation.
46762         * tests/test-update-copyright.sh: Test that.
46763
46764 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46765
46766         update-copyright: clean up code a little
46767         * build-aux/update-copyright: Append "_re" to the name of any
46768         variable holding a regular expression.
46769         Replace "old" and "new" with "stmt" in variable names.
46770         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46771         handled correctly.
46772         Format code more consistently.
46773
46774 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46775
46776         update-copyright-tests: improve portability
46777         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46778         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46779
46780 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46781
46782         update-copyright: support @copyright{} and &copy;
46783         * build-aux/update-copyright: Implement and document.
46784         * tests/test-update-copyright.sh: Test.
46785
46786 2009-08-04  Jim Meyering  <meyering@redhat.com>
46787
46788         update-copyright-tests: correctly test EOL=\r\n handling
46789         * tests/test-update-copyright.sh: Put \r at the end of some lines
46790         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46791
46792         maint.mk: make update-copyright exclusion list more configurable
46793         * top/maint.mk (update-copyright): Default to excluding COPYING,
46794         but allow an override, in case someone does want to update that file.
46795
46796         maint.mk: don't update copyright date in COPYING
46797         * top/maint.mk (update-copyright): Exclude COPYING.
46798
46799         maint.mk: add a copyright-updating rule
46800         * top/maint.mk (update-copyright): New rule.
46801         Derived from coreutils/Makefile.am.
46802
46803         update-copyright: rename some variables
46804         * build-aux/update-copyright: Rename a few variables for clarity.
46805         Tweak syntax.  List Joel E. Denny as coauthor.
46806
46807 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46808
46809         update-copyright: fix bug for 2-digit last year and add tests
46810         * build-aux/update-copyright: Fix bug.
46811         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46812         specified.
46813         * modules/update-copyright-tests: New
46814         * tests/test-update-copyright.sh: New.
46815
46816 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46817
46818         update-copyright: handle leading tabs in line prefix
46819         * build-aux/update-copyright: Count leading tabs as 8 spaces
46820         when computing margin.  This helps with the formatting of
46821         ChangeLogs, for example.
46822         Fix documentation a little.
46823
46824 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46825
46826         update-copyright: support EOL=\r\n
46827         * build-aux/update-copyright: Implement that.
46828
46829 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46830
46831         update-copyright: automatically format copyright statements
46832         * build-aux/update-copyright: Implement that.
46833         Also, be a little more predictable and safer by always failing
46834         when the full copyright format is not perfectly recognized as an
46835         unbroken whole.  Discussed at
46836         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46837         Rewrite documentation.
46838
46839 2009-08-03  Bruno Haible  <bruno@clisp.org>
46840
46841         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46842
46843 2009-08-02  Bruno Haible  <bruno@clisp.org>
46844
46845         Tests for module 'uname'.
46846         * modules/uname-tests: New file.
46847         * tests/test-uname.c: New file.
46848
46849         New module 'uname'.
46850         * lib/uname.c: New file.
46851         * m4/uname.m4: New file.
46852         * modules/uname: New file.
46853         * doc/posix-functions/uname.texi: Mention the new module.
46854
46855 2009-08-02  Bruno Haible  <bruno@clisp.org>
46856
46857         Tests for module 'sys_utsname'.
46858         * modules/sys_utsname-tests: New file.
46859         * tests/test-sys_utsname.c: New file.
46860
46861         New module 'sys_utsname'.
46862         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46863         * m4/sys_utsname_h.m4: New file.
46864         * modules/sys_utsname: New file.
46865         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46866
46867 2009-08-02  Bruno Haible  <bruno@clisp.org>
46868
46869         Implicitly initialize the sockets library.
46870         * lib/gethostname.c: Include sockets.h.
46871         (rpl_gethostname): Invoke gl_sockets_startup.
46872         * lib/socket.c: Include sockets.h.
46873         (rpl_socket): Invoke gl_sockets_startup.
46874         * modules/gethostname (Depends-on): Add sockets.
46875         * modules/socket (Depends-on): Likewise.
46876         * tests/test-poll.c: Don't include sockets.h.
46877         (main): Don't invoke gl_sockets_startup.
46878         * tests/test-select.c: Don't include sockets.h.
46879         (main): Don't invoke gl_sockets_startup.
46880
46881 2009-08-02  Bruno Haible  <bruno@clisp.org>
46882
46883         Allow multiple calls to gl_sockets_startup.
46884         * lib/sockets.c (initialized_sockets_version): New variable.
46885         (gl_sockets_startup): Do nothing if already called for this or a higher
46886         version.
46887         (gl_sockets_cleanup): Reset initialized_sockets_version.
46888
46889 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46890
46891         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46892         different project/version.
46893
46894 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46895             Bruno Haible  <bruno@clisp.org>
46896
46897         Tests for module 'pipe-filter-gi'.
46898         * modules/pipe-filter-gi-tests: New file.
46899         * tests/test-pipe-filter-gi1.sh: New file.
46900         * tests/test-pipe-filter-gi1.c: New file.
46901         * tests/test-pipe-filter-gi2.sh: New file.
46902         * tests/test-pipe-filter-gi2-main.c: New file.
46903         * tests/test-pipe-filter-gi2-child.c: New file.
46904
46905         New module 'pipe-filter-gi'.
46906         * lib/pipe-filter-gi.c: New file.
46907         * modules/pipe-filter-gi: New file.
46908
46909 2009-08-02  Bruno Haible  <bruno@clisp.org>
46910             Paolo Bonzini  <bonzini@gnu.org>
46911
46912         Tests for module 'pipe-filter-ii'.
46913         * modules/pipe-filter-ii-tests: New file.
46914         * tests/test-pipe-filter-ii1.sh: New file.
46915         * tests/test-pipe-filter-ii1.c: New file.
46916         * tests/test-pipe-filter-ii2.sh: New file.
46917         * tests/test-pipe-filter-ii2-main.c: New file.
46918         * tests/test-pipe-filter-ii2-child.c: New file.
46919
46920         New module 'pipe-filter-ii'.
46921         * lib/pipe-filter.h: New file.
46922         * lib/pipe-filter-ii.c: New file.
46923         * lib/pipe-filter-aux.h: New file.
46924         * modules/pipe-filter-ii: New file.
46925
46926 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46927
46928         * lib/gc-libgcrypt.c: Change copyright to FSF.
46929         * lib/gc-gnulib.c: Likewise.
46930
46931 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46932
46933         * lib/gethostname.c: Include limits.h.
46934
46935 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46936             Bruno Haible  <bruno@clisp.org>
46937
46938         Ensure HOST_NAME_MAX as part of the gethostname module.
46939         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46940         define also HOST_NAME_MAX.
46941         * tests/test-gethostname.c: Include <limits.h>.
46942         (main): Check also HOST_NAME_MAX.
46943         * doc/posix-headers/limits.texi: Document the mingw problem.
46944
46945 2009-08-02  Bruno Haible  <bruno@clisp.org>
46946
46947         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46948         Add comments.
46949
46950 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46951
46952         * lib/gethostname.c: Add Windows wrapper.
46953         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46954         * modules/gethostname: Depend on sys_socket & errno, for also
46955         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46956         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46957
46958 2009-07-31  Jim Meyering  <meyering@redhat.com>
46959
46960         getloadavg: fix symbol name in comment
46961         * lib/getloadavg.c: Correct a typo I introduced when adding
46962         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46963         Matt Kraai spotted the problem.
46964
46965 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46966
46967         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46968         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46969         code also if ! defined N_NAME_POINTER.
46970         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46971         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46972         but the n_name member is a 12-byte array.
46973
46974 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46975
46976         update-copyright: generalize comment handling
46977         * build-aux/update-copyright: Handle copyright statements
46978         within more comment styles.
46979         Document usage.
46980         Report any file with an external copyright holder or parse failure.
46981
46982 2009-07-29  Jim Meyering  <meyering@redhat.com>
46983
46984         mktime: correct setting of REPLACE_MKTIME
46985         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46986
46987         update-copyright: new module
46988         * modules/update-copyright: New file.
46989         * build-aux/update-copyright: New file.
46990         * MODULES.html.sh (maint+release support): Add update-copyright.
46991
46992 2009-07-27  Bruno Haible  <bruno@clisp.org>
46993
46994         Fix compilation error when <ctime> is used and mktime is replaced.
46995         * lib/time.in.h (mktime): New declaration.
46996         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46997         REPLACE_MKTIME instead of defining mktime in config.h.
46998         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46999         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47000         Reported by Ross McFarland <rwmcfa1@neces.com>.
47001
47002 2009-07-27  Bruno Haible  <bruno@clisp.org>
47003
47004         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47005         Reported by Matt Kraai <mkraai@beckman.com>.
47006
47007 2009-07-25  Jim Meyering  <meyering@redhat.com>
47008
47009         maint.mk: avoid warnings about missing files
47010         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47011         diagnostic when .prev-version does not exist.
47012         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47013         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47014         nonexistent cfg.mk.
47015         Suggestions from Simon Josefsson.
47016
47017 2009-07-25  Bruno Haible  <bruno@clisp.org>
47018
47019         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47020         defined as macros. Needed on QNX 6.4.1.
47021         Reported by Matt Kraai <mkraai@beckman.com>.
47022
47023 2009-07-23  Jim Meyering  <meyering@redhat.com>
47024
47025         maint.mk: invoke "make dist" with a working value of XZ_OPT
47026         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47027
47028 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47029
47030         Make fseeko.c compile on QNX.
47031         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47032
47033 2009-07-22  Peter Simons  <simons@cryp.to>
47034
47035         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47036         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47037         * lib/md4.h: Likewise.
47038         * lib/md5.h: Likewise.
47039         * lib/sha1.h: Likewise.
47040         * lib/sha256.h: Likewise.
47041         * lib/sha512.h: Likewise.
47042
47043         tests-sha1: don't assign literal string to 'char *' variable
47044         * tests/test-sha1.c (main): Declare locals with "const" to match
47045         attributes of the right hand side.
47046
47047 2009-07-21  Eric Blake  <ebb9@byu.net>
47048
47049         dup2: fix more mingw problems
47050         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47051         fd to itself.
47052         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47053         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47054         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47055         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47056         care of mingw bugs.
47057
47058 2009-07-21  Jim Meyering  <meyering@redhat.com>
47059
47060         vc-list-files: avoid failure when /bin/sh is dash
47061         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47062         On some Debian based systems, /bin/sh is a symlink to dash, and running
47063         this command would omit the "/" following each 'tests' prefix:
47064           dash -x build-aux/vc-list-files -C . tests
47065         That is because bash and dash work differently:
47066           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47067           bash ok
47068           dash odd
47069
47070 2009-07-21  Eric Blake  <ebb9@byu.net>
47071
47072         dup2-tests: test previous patch
47073         * modules/dup2-tests: New file.
47074         * tests/test-dup2.c: Likewise.
47075         * tests/test-open.c (main): Avoid unspecified behavior.
47076         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47077         test.
47078
47079         dup2: work around mingw and cygwin 1.5 bug
47080         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47082         * modules/unistd (Makefile.am): Substitute it.
47083         * lib/unistd.in.h (dup2): Declare the replacement.
47084         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47085         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47086         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47087         * modules/execute (Depends-on): Add dup2.
47088         * modules/fseterr (Depends-on): Likewise.
47089         * modules/pipe (Depends-on): Likewise.
47090         * modules/posix_spawn-internal (Depends-on): Likewise.
47091
47092 2009-07-21  Bruno Haible  <bruno@clisp.org>
47093
47094         * modules/.gitattributes: New file.
47095
47096 2009-07-20  Bruno Haible  <bruno@clisp.org>
47097
47098         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47099         (main): Use it.
47100
47101 2009-07-20  Eric Blake  <ebb9@byu.net>
47102
47103         test-pipe: make a bit more robust.
47104         * tests/test-pipe.c (myerr): Allow error messages regardless of
47105         what we do to stderr.
47106         (test_pipe): Rearrange to avoid deadlock.
47107         (child_main): Try a larger read, to ensure we avoided deadlock.
47108         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47109         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47110         if misused.
47111
47112 2009-07-19  Jim Meyering  <meyering@redhat.com>
47113
47114         fts: avoid false-positive cycle-detection
47115         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47116         for each new command line argument.
47117
47118 2009-07-19  Bruno Haible  <bruno@clisp.org>
47119
47120         Fix build error on mingw with the modules sys_select and unistd.
47121         * modules/acl-tests (Depends-on): Add close.
47122         * modules/binary-io-tests (Depends-on): Likewise.
47123         * modules/closein-tests (Depends-on): Likewise.
47124         * modules/flock-tests (Depends-on): Likewise.
47125         * modules/fsync-tests (Depends-on): Likewise.
47126         * modules/lseek-tests (Depends-on): Likewise.
47127         * modules/pipe-tests (Depends-on): Likewise.
47128         * modules/posix_spawn-tests (Depends-on): Likewise.
47129         * modules/posix_spawnp-tests (Depends-on): Likewise.
47130         * modules/stat-time-tests (Depends-on): Likewise.
47131         * modules/yesno-tests (Depends-on): Likewise.
47132
47133 2009-07-19  Bruno Haible  <bruno@clisp.org>
47134
47135         Unify conditionals.
47136         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47137         macros, not at the compiler macros.
47138         * lib/pipe.c: Likewise.
47139         * lib/execute.c: Likewise.
47140         * lib/spawni.c: Likewise.
47141
47142 2009-07-19  Bruno Haible  <bruno@clisp.org>
47143
47144         Fix handling of closed stdin/stdout/stderr on mingw.
47145         * lib/w32spawn.h: Include unistd.h.
47146         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47147         file descriptor with O_NOINHERIT flag.
47148         (fd_safer_noinherit): New function, based on fd-safer.c.
47149         (dup_safer_noinherit): New function, based on dup-safer.c.
47150         (undup_safer_noinherit): New function.
47151         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47152         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47153         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47154         instead of fd_safer.
47155         * tests/test-pipe.c: Include <windows.h>.
47156         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47157         result.
47158
47159         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47160         from main.
47161         (test_pipe): Pass an extra argument for disambiguation.
47162         (main): Invoke parent_main or child_main.
47163
47164         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47165         consistently.
47166
47167 2009-07-18  Eric Blake  <ebb9@byu.net>
47168
47169         test-pipe: fix mingw build
47170         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47171
47172 2009-07-18  Bruno Haible  <bruno@clisp.org>
47173
47174         * modules/pipe-tests (Makefile.am): Fix typo.
47175
47176 2009-07-18  Eric Blake  <ebb9@byu.net>
47177
47178         error: fix mingw build
47179         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47180         Reported by Bruno Haible.
47181
47182         error: avoid undefined use of stdout
47183         * lib/error.c (error, error_at_line): Check that fd 1 is open
47184         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47185         is handling faults and the close_stdout module wants to report the
47186         detection of closed stdout as an error.
47187
47188 2009-07-17  Eric Blake  <ebb9@byu.net>
47189
47190         pipe: be robust in face of closed fds
47191         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47192         should cause child to misbehave.
47193         * modules/pipe-tests: New module.
47194         * tests/test-pipe.c: New file.
47195         * tests/test-pipe.sh: New file.
47196         Reported by Akim Demaille.
47197
47198 2009-07-14  Bruno Haible  <bruno@clisp.org>
47199
47200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47201         Reported by anonymous kc.
47202
47203 2009-07-07  Jim Meyering  <meyering@redhat.com>
47204
47205         maint.mk: don't look for translatable strings in *.m4 or *.mk
47206         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47207         when searching for translatable strings.
47208
47209 2009-07-05  Jim Meyering  <meyering@redhat.com>
47210
47211         remove superfluous parentheses in STREQ definition
47212         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47213         * lib/getugroups.c (STREQ): Likewise.
47214         * lib/fnmatch.c (STREQ): Likewise.
47215         Spotted by Bruno Haible.
47216
47217 2009-07-04  Jim Meyering  <meyering@redhat.com>
47218
47219         argv-iter: new module
47220         * MODULES.html.sh: Add argv-iter.
47221         * lib/argv-iter.c, lib/argv-iter.h: New files.
47222         * modules/argv-iter: New file.
47223         * modules/argv-iter-tests: New file.
47224         * tests/test-argv-iter.c: Test it.
47225
47226 2009-07-04  Bruno Haible  <bruno@clisp.org>
47227
47228         Fix assertion.
47229         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47230         contains more exact copies of a given entry than file2, leave the extra
47231         copies unpaired rather than aborting.
47232         Reported by Eric Blake.
47233
47234 2009-07-02  Bruno Haible  <bruno@clisp.org>
47235
47236         Speedup git-merge-changelog for git cherry-pick.
47237         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47238         (entries_mapping_get): New function, extracted from compute_mapping.
47239         (entries_mapping_reverse_get): New function.
47240         (compute_mapping): Add a 'full' argument. Return the result in a
47241         'struct entries_mapping'.
47242         (main): Update. Access the mappings through entries_mapping_get.
47243         Reported by Eric Blake.
47244
47245 2009-07-02  Bruno Haible  <bruno@clisp.org>
47246
47247         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47248         best_i.
47249
47250 2009-07-02  Bruno Haible  <bruno@clisp.org>
47251
47252         Speed up approximate search for matching ChangeLog entries.
47253         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47254         argument. Call fstrcmp_bounded instead of fstrcmp.
47255         (compute_mapping, try_split_merged_entry, main): Update callers.
47256
47257 2009-07-02  Bruno Haible  <bruno@clisp.org>
47258
47259         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47260
47261 2009-06-30  Bruno Haible  <bruno@clisp.org>
47262
47263         Reduce the number of uc_is_cased calls.
47264         * lib/unicase.h (casing_suffix_context_t): Add
47265         'first_char_except_ignorable' field.
47266         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47267         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47268         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47269         Update initializer.
47270         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47271         case-ignorable characters.
47272         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47273         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47274         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47275         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47276         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47277
47278 2009-06-30  Bruno Haible  <bruno@clisp.org>
47279
47280         Tests for module 'unicase/ignorable'.
47281         * modules/unicase/ignorable-tests: New file.
47282         * tests/unicase/test-ignorable.c: New file, generated by
47283         gen-uni-tables.
47284
47285         Tests for module 'unicase/cased'.
47286         * modules/unicase/cased-tests: New file.
47287         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47288         * tests/unicase/test-predicate-part1.h: New file, derived from
47289         tests/unictype/test-predicate-part1.h.
47290         * tests/unicase/test-predicate-part2.h: New file, same as
47291         tests/unictype/test-predicate-part2.h.
47292
47293         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47294         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47295         (output_casing_properties): New function.
47296         (main): Call it.
47297         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47298         * lib/unicase/cased.c: Include unictype/bitmap.h.
47299         (uc_is_cased): Define through a bitmap lookup.
47300         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47301         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47302         (uc_is_case_ignorable): Define through a bitmap lookup.
47303         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47304         lib/unictype/bitmap.h.
47305         (Depends-on): Add inline. Clean up.
47306         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47307         lib/unictype/bitmap.h.
47308         (Depends-on): Add inline. Clean up.
47309         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47310         recognition.
47311         * tests/unicase/test-u16-tolower.c (main): Likewise.
47312         * tests/unicase/test-u32-tolower.c (main): Likewise.
47313
47314 2009-06-30  Bruno Haible  <bruno@clisp.org>
47315
47316         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47317         * lib/unicase/u16-casemap.c: Likewise.
47318         * lib/unicase/u32-casemap.c: Likewise.
47319
47320 2009-06-29  Bruno Haible  <bruno@clisp.org>
47321
47322         Define u32_casefold as a wrapper around u32_ct_casefold.
47323         * lib/unicase/u32-casefold.c: Update.
47324         * modules/unicase/u32-casefold (Depends-on): Add
47325         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47326         unicase/empty-suffix-context. Clean up.
47327
47328         Define u16_casefold as a wrapper around u16_ct_casefold.
47329         * lib/unicase/u16-casefold.c: Update.
47330         * modules/unicase/u16-casefold (Depends-on): Add
47331         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47332         unicase/empty-suffix-context. Clean up.
47333
47334         Define u8_casefold as a wrapper around u8_ct_casefold.
47335         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47336         * lib/unicase/u8-casefold.c: Update.
47337         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47338         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47339
47340         Define u32_totitle as a wrapper around u32_ct_totitle.
47341         * lib/unicase/u32-totitle.c: Update.
47342         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47343         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47344
47345         Define u16_totitle as a wrapper around u16_ct_totitle.
47346         * lib/unicase/u16-totitle.c: Update.
47347         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47348         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47349
47350         Define u8_totitle as a wrapper around u8_ct_totitle.
47351         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47352         functions.
47353         (FUNC): Delegate to U_CT_TOTITLE.
47354         * lib/unicase/u8-totitle.c: Update.
47355         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47356         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47357
47358         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47359         invocation.
47360         * modules/unicase/u32-tolower (Depends-on): Add
47361         unicase/empty-prefix-context, unicase/empty-suffix-context.
47362
47363         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47364         invocation.
47365         * modules/unicase/u16-tolower (Depends-on): Add
47366         unicase/empty-prefix-context, unicase/empty-suffix-context.
47367
47368         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47369         * modules/unicase/u8-tolower (Depends-on): Add
47370         unicase/empty-prefix-context, unicase/empty-suffix-context.
47371
47372         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47373         invocation.
47374         * modules/unicase/u32-toupper (Depends-on): Add
47375         unicase/empty-prefix-context, unicase/empty-suffix-context.
47376
47377         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47378         invocation.
47379         * modules/unicase/u16-toupper (Depends-on): Add
47380         unicase/empty-prefix-context, unicase/empty-suffix-context.
47381
47382         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47383         * modules/unicase/u8-toupper (Depends-on): Add
47384         unicase/empty-prefix-context, unicase/empty-suffix-context.
47385
47386         New module 'unicase/u32-ct-casefold'.
47387         * lib/unicase/u32-ct-casefold.c: New file.
47388         * modules/unicase/u32-ct-casefold: New file.
47389
47390         New module 'unicase/u16-ct-casefold'.
47391         * lib/unicase/u16-ct-casefold.c: New file.
47392         * modules/unicase/u16-ct-casefold: New file.
47393
47394         New module 'unicase/u8-ct-casefold'.
47395         * lib/unicase/u8-ct-casefold.c: New file.
47396         * lib/unicase/u-ct-casefold.h: New file, derived from
47397         lib/unicase/u-casefold.h.
47398         * modules/unicase/u8-ct-casefold: New file.
47399
47400         New module 'unicase/u32-ct-totitle'.
47401         * lib/unicase/u32-ct-totitle.c: New file.
47402         * modules/unicase/u32-ct-totitle: New file.
47403
47404         New module 'unicase/u16-ct-totitle'.
47405         * lib/unicase/u16-ct-totitle.c: New file.
47406         * modules/unicase/u16-ct-totitle: New file.
47407
47408         New module 'unicase/u8-ct-totitle'.
47409         * lib/unicase/u8-ct-totitle.c: New file.
47410         * lib/unicase/u-ct-totitle.h: New file, derived from
47411         lib/unicase/u-totitle.h.
47412         * modules/unicase/u8-ct-totitle: New file.
47413
47414         New module 'unicase/u32-ct-tolower'.
47415         * lib/unicase/u32-ct-tolower.c: New file.
47416         * modules/unicase/u32-ct-tolower: New file.
47417
47418         New module 'unicase/u16-ct-tolower'.
47419         * lib/unicase/u16-ct-tolower.c: New file.
47420         * modules/unicase/u16-ct-tolower: New file.
47421
47422         New module 'unicase/u8-ct-tolower'.
47423         * lib/unicase/u8-ct-tolower.c: New file.
47424         * modules/unicase/u8-ct-tolower: New file.
47425
47426         New module 'unicase/u32-ct-toupper'.
47427         * lib/unicase/u32-ct-toupper.c: New file.
47428         * modules/unicase/u32-ct-toupper: New file.
47429
47430         New module 'unicase/u16-ct-toupper'.
47431         * lib/unicase/u16-ct-toupper.c: New file.
47432         * modules/unicase/u16-ct-toupper: New file.
47433
47434         New module 'unicase/u8-ct-toupper'.
47435         * lib/unicase/u8-ct-toupper.c: New file.
47436         * modules/unicase/u8-ct-toupper: New file.
47437
47438         Add context arguments to u*_casemap functions.
47439         * lib/unicase/unicasemap.h: Include unicase.h.
47440         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47441         suffix_context arguments.
47442         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47443         functions.
47444         (FUNC): Add prefix_context and suffix_context arguments. Use
47445         uc_is_cased and uc_is_case_ignorable.
47446         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47447         * lib/unicase/u16-casemap.c: Likewise.
47448         * lib/unicase/u32-casemap.c: Likewise.
47449         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47450         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47451         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47452         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47453         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47454         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47455
47456         New module 'unicase/u32-suffix-context'.
47457         * lib/unicase/u32-suffix-context.c: New file.
47458         * modules/unicase/u32-suffix-context: New file.
47459
47460         New module 'unicase/u16-suffix-context'.
47461         * lib/unicase/u16-suffix-context.c: New file.
47462         * modules/unicase/u16-suffix-context: New file.
47463
47464         New module 'unicase/u8-suffix-context'.
47465         * lib/unicase/u8-suffix-context.c: New file.
47466         * lib/unicase/u-suffix-context.h: New file.
47467         * modules/unicase/u8-suffix-context: New file.
47468
47469         New module 'unicase/empty-suffix-context'.
47470         * lib/unicase/empty-suffix-context.c: New file.
47471         * modules/unicase/empty-suffix-context: New file.
47472
47473         New module 'unicase/u32-prefix-context'.
47474         * lib/unicase/u32-prefix-context.c: New file.
47475         * modules/unicase/u32-prefix-context: New file.
47476
47477         New module 'unicase/u16-prefix-context'.
47478         * lib/unicase/u16-prefix-context.c: New file.
47479         * modules/unicase/u16-prefix-context: New file.
47480
47481         New module 'unicase/u8-prefix-context'.
47482         * lib/unicase/u8-prefix-context.c: New file.
47483         * lib/unicase/u-prefix-context.h: New file.
47484         * lib/unicase/context.h: New file.
47485         * modules/unicase/u8-prefix-context: New file.
47486
47487         New module 'unicase/empty-prefix-context'.
47488         * lib/unicase/empty-prefix-context.c: New file.
47489         * modules/unicase/empty-prefix-context: New file.
47490
47491         New module 'unicase/ignorable'.
47492         * lib/unicase/ignorable.c: New file.
47493         * modules/unicase/ignorable: New file.
47494
47495         New module 'unicase/cased'.
47496         * lib/unicase/caseprop.h: New file.
47497         * lib/unicase/cased.c: New file.
47498         * modules/unicase/cased: New file.
47499
47500         New functions for case mapping of substrings.
47501         * lib/unicase.h (casing_prefix_context_t): New type.
47502         (unicase_empty_prefix_context): New variable.
47503         (u8_casing_prefix_context, u16_casing_prefix_context,
47504         u32_casing_prefix_context, u8_casing_prefixes_context,
47505         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47506         declarations.
47507         (casing_suffix_context_t): New type.
47508         (unicase_empty_suffix_context): New variable.
47509         (u8_casing_suffix_context, u16_casing_suffix_context,
47510         u32_casing_suffix_context, u8_casing_suffixes_context,
47511         u16_casing_suffixes_context, u32_casing_suffixes_context,
47512         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47513         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47514         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47515         declarations.
47516
47517 2009-06-28  Jim Meyering  <meyering@redhat.com>
47518
47519         boostrap: indent only with spaces
47520         * build-aux/bootstrap: Indent only with spaces, never TABs.
47521
47522         bootstrap: split long lines
47523         * build-aux/bootstrap: Keep line length < 80.
47524
47525         bootstrap: sync from coreutils
47526         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47527         just as autoreconf does.  Verify a list of prerequisite
47528         package-name,version-number pairs if defined in bootstrap.conf.
47529         Refer to README-prereq, if prerequisites are not satisfied.
47530
47531 2009-06-27  Eric Blake  <ebb9@byu.net>
47532
47533         tests: add test for bogus NULL definition
47534         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47535         * tests/test-stdlib.c: Likewise.
47536         * tests/test-string.c: Likewise.
47537         * tests/test-locale.c: Likewise.
47538         * tests/test-unistd.c: Likewise.
47539         * modules/stdio-tests (Depends-on): Add verify.
47540         * modules/stdlib-tests (Depends-on): Likewise.
47541         * modules/string-tests (Depends-on): Likewise.
47542         * modules/locale-tests (Depends-on): Likewise.
47543         * modules/unistd-tests (Depends-on): Likewise.
47544
47545 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47546
47547         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47548         self-explaining comment.
47549         * m4/selinux-selinux-h: Update serial.
47550         (gl_LIBSELINUX): New macro, adding a warning for missing development
47551         packages to code extracted from...
47552         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47553         Add warning for missing development packages here, too.
47554
47555 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47556
47557         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47558
47559 2009-06-25  Eric Blake  <ebb9@byu.net>
47560
47561         version-etc: fix regression
47562         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47563         gcc.
47564         (version_etc): Use it, to catch bugs with trailing NULL.
47565         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47566         (version_etc_va): Fix logic bug.
47567         * modules/version-etc-tests: Add test.
47568         * tests/test-version-etc.c: New file.
47569         * tests/test-version-etc.sh: Likewise.
47570
47571 2009-06-25  Sam Steingold  <sds@gnu.org>
47572
47573         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47574         mbtowc declaration.
47575
47576 2009-06-25  Eric Blake  <ebb9@byu.net>
47577
47578         fpurge: migrate into <stdio.h>
47579         * lib/fpurge.h: Delete...
47580         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47581         * lib/fpurge.c (fpurge): Change declaring header.
47582         * modules/fpurge (Files): Drop deleted file.
47583         (Depends-on): Add stdio.
47584         (configure.ac): Set witness.
47585         * modules/stdio (Makefile.am): Support fpurge macros.
47586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47587         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47588         * lib/fflush.c: Update client.
47589         * tests/test-fpurge.c: Likewise.
47590         * NEWS: Mention the change.
47591
47592 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47593
47594         * lib/argp-version-etc.c (program_authors): Add const
47595         qualifier.
47596         * lib/version-etc.c: Fix typos in the comments.
47597         * modules/argp-version-etc: Depends on version-etc.
47598
47599 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47600
47601         argp-version-etc: new module.
47602
47603         * lib/argp-version-etc.c: New file.
47604         * lib/argp-version-etc.h: New file.
47605         * modules/argp-version-etc: New file.
47606         * modules/argp-version-etc-tests: New file.
47607         * tests/test-argp-version-etc.c: New test.
47608         * tests/test-argp-version-etc-1.sh: New test.
47609
47610 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47611
47612         Provide additional interfaces and documentation for version-etc
47613         module.
47614
47615         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47616         interfaces.
47617         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47618         prototypes.
47619
47620 2009-06-24  Bruno Haible  <bruno@clisp.org>
47621
47622         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47623         HAVE_LIB${NAME} macro.
47624         Reported by Sam Steingold <sds@gnu.org>.
47625
47626 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47627
47628         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47629         needed.
47630
47631 2009-06-21  Bruno Haible  <bruno@clisp.org>
47632
47633         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47634         work.
47635         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47636         together with LIB${NAME}, LTLIB${NAME}.
47637         Reported by Sam Steingold <sds@gnu.org>.
47638
47639 2009-06-20  Jim Meyering  <meyering@redhat.com>
47640
47641         tests: make sc_require_test_exit_idiom more generic
47642         * top/maint.mk (Exit_witness_file): New overridable variable.
47643         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47644         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47645
47646 2009-06-19  Jim Meyering  <meyering@redhat.com>
47647
47648         hash: reverse order of src/dst parameters in an internal interface
47649         * lib/hash.c (transfer_entries): Reverse order of parameters to
47650         put DST before SRC.  Adjust callers.
47651
47652         tests: test-hash: avoid wholesale duplication
47653         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47654         Instead, use a loop and add a single conditional.
47655
47656         tests: test-hash: allow seed selection via a command line argument
47657         * tests/test-hash.c (get_seed): New function.
47658         (main): Use it.
47659
47660 2009-06-19  Eric Blake  <ebb9@byu.net>
47661
47662         hash: avoid memory leak on allocation failure
47663         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47664         failure.  Factor repeated algorithm...
47665         (transfer_entries): ...into new helper routine.
47666         (hash_delete): React to hash_rehash return value.
47667
47668         hash: reduce memory pressure in hash_rehash no-op case
47669         * lib/hash.c (next_prime): Avoid overflow.
47670         (hash_initialize): Factor bucket size computation...
47671         (compute_bucket_size): ...into new helper function.
47672         (hash_rehash): Use new function and open coding to reduce memory
47673         pressure, and avoid a memory leak in USE_OBSTACK code.
47674         Reported by Jim Meyering.
47675
47676 2009-06-18  Eric Blake  <ebb9@byu.net>
47677
47678         hash: make rotation more obvious
47679         * modules/hash (Depends-on): Add bitrotate and stdint.
47680         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47681         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47682         (SIZE_MAX): Rely on headers for definition.
47683         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47684         (raw_hasher): Use rotr_sz.
47685         Suggested by Jim Meyering.
47686
47687         hash: fix memory leak in last patch
47688         * lib/hash.c (hash_rehash): Avoid memory leak.
47689
47690         hash: avoid no-op rehashing
47691         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47692
47693         hash: provide default callback functions
47694         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47695         (hash_initialize): Use them as defaults.
47696         * tests/test-hash.c (main): Test this.
47697
47698         hash: minor optimization
47699         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47700         when possible.
47701         (hash_initialize): Document this promise.
47702         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47703         * tests/test-hash.c (hash_compare_strings): Test this.
47704
47705 2009-06-18  Bruno Haible  <bruno@clisp.org>
47706
47707         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47708         going to be replaced anyway.
47709
47710 2009-06-18  Bruno Haible  <bruno@clisp.org>
47711
47712         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47713         in one place.
47714         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47715         be replaced anyway.
47716
47717 2009-06-18  Eric Blake  <ebb9@byu.net>
47718
47719         hash: check for resize before insertion
47720         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47721         threshold before insertion, so that a pathological hash_rehash
47722         that fills every bucket can still trigger another rehash.
47723
47724 2009-06-18  Jim Meyering  <meyering@redhat.com>
47725
47726         hash-tests: add a loop around the small tests
47727         * tests/test-hash.c (main): Repeat small tests with selected
47728         small initial table sizes.
47729
47730 2009-06-17  Eric Blake  <ebb9@byu.net>
47731
47732         hash: minor cleanups
47733         * lib/hash.h (hash_entry): Make opaque, by moving...
47734         * lib/hash.c (hash_entry): ...here.
47735         (hash_insert): Clarify restrictions on what can be inserted.
47736         (hash_get_next): Clarify when it is safe to remove an element
47737         during traversal.
47738         (check_tuning): Skip verification when tuning is known safe.
47739         (hash_initialize): Clarify restrictions on tuning.
47740
47741 2009-06-17  Jim Meyering  <jim@meyering.net>
47742         and Eric Blake  <ebb9@byu.net>
47743
47744         hash-tests: new module
47745         * modules/hash-tests: New file.
47746         * tests/test-hash.c: New file.
47747
47748 2009-06-17  Eric Blake  <ebb9@byu.net>
47749
47750         strstr-simple: document new module
47751         * MODULES.html.sh: Document new module.
47752
47753         strstr, strcasestr: replace on platforms with broken memchr
47754         * modules/strstr: Split into...
47755         * modules/strstr-simple: ...new module that does not care about
47756         performance, but does care about glibc bug.
47757         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47758         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47759         if platform memchr is broken, per Debian bug 521737.
47760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47761         memchr.
47762         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47763         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47764         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47765         * modules/mountlist (Depends-on): Add strstr-simple.
47766         * modules/gen-uni-tables (Depends-on): Likewise.
47767         * modules/argz (Depends-on): Add strstr.
47768
47769 2009-06-17  Bruno Haible  <bruno@clisp.org>
47770
47771         * modules/posix_spawn-internal (Depends-on): Add errno.
47772
47773 2009-06-17  Bruno Haible  <bruno@clisp.org>
47774
47775         Define missing ESTALE on Interix 3.5.
47776         * lib/errno.in.h (ESTALE): Assign a value if missing.
47777         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47778         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47779         missing.
47780         * doc/posix-headers/errno.texi: Mention the Interix bug.
47781         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47782
47783 2009-06-15  Eric Blake  <ebb9@byu.net>
47784
47785         memchr, memchr2: add valgrind exception
47786         * lib/memchr.valgrind: New file.
47787         * lib/memchr2.valgrind: New file.
47788         * modules/memchr (Files): Distribute valgrind file.
47789         * modules/memchr2 (Files): Likewise.
47790
47791         docs: memchr is no longer obsolete
47792         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47793         * lib/string.in.h (memchr): Simplify logic.
47794
47795 2009-06-14  Jim Meyering  <meyering@redhat.com>
47796
47797         link-follow: fix the "checking..." message to not mention trailing slash
47798         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47799         never considered trailing slashes.
47800
47801 2009-06-14  Bruno Haible  <bruno@clisp.org>
47802
47803         * m4/memchr.m4: Mention also the bug on IA-64.
47804         * doc/posix-functions/memchr.texi: Likewise.
47805
47806 2009-06-12  Eric Blake  <ebb9@byu.net>
47807
47808         memchr: detect broken x86_64 and alpha implementations
47809         * modules/memchr-tests (Depends-on): Move mmap detection...
47810         * modules/memchr (Depends-on): ...here.
47811         (configure.ac): Set indicator.
47812         * lib/string.in.h (memchr): Declare replacement.
47813         * modules/string (Makefile.am): Trigger replacement.
47814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47815         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47816         bugs.
47817         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47818         * modules/getpagesize (License): Relax license.
47819
47820 2009-06-11  Bruno Haible  <bruno@clisp.org>
47821
47822         * lib/idpriv.h: Add more references.
47823
47824 2009-06-08  Bruno Haible  <bruno@clisp.org>
47825
47826         Tests for module 'idpriv-droptemp'.
47827         * modules/idpriv-droptemp-tests: New file.
47828         * tests/test-idpriv-droptemp.sh: New file.
47829         * tests/test-idpriv-droptemp.su.sh: New file.
47830         * tests/test-idpriv-droptemp.c: New file.
47831
47832         New module 'idpriv-droptemp'.
47833         * lib/idpriv-droptemp.c: New file.
47834         * modules/idpriv-droptemp: New file.
47835
47836 2009-06-08  Bruno Haible  <bruno@clisp.org>
47837
47838         Tests for module 'idpriv-drop'.
47839         * modules/idpriv-drop-tests: New file.
47840         * tests/test-idpriv-drop.sh: New file.
47841         * tests/test-idpriv-drop.su.sh: New file.
47842         * tests/test-idpriv-drop.c: New file.
47843
47844         New module 'idpriv-drop'.
47845         * lib/idpriv.h: New file.
47846         * lib-idpriv-drop.c: New file.
47847         * m4/idpriv.m4: New file.
47848         * modules/idpriv-drop: New file.
47849
47850 2009-06-08  Bruno Haible  <bruno@clisp.org>
47851
47852         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47853         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47854         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47855         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47856         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47857         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47858         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47859
47860 2009-06-08  Eric Blake  <ebb9@byu.net>
47861
47862         test-strstr: use memory fence, when possible
47863         * tests/test-strstr.c (main): Use memory fence, in order to be
47864         more likely to trigger Debian bug 521737.
47865         * modules/strstr-tests (Files): Pull in additional files.
47866
47867         memchr: no longer obsolete, for wider field testing
47868         * modules/memchr (Status, Notice): Delete, this module is no
47869         longer obsolete.
47870         * modules/vasnprintf (Depends-on): Add memchr.
47871
47872 2009-06-07  Jim Meyering  <meyering@redhat.com>
47873
47874         hash: declare some functions with the warn_unused_result attribute
47875         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47876
47877 2009-06-07  Bruno Haible  <bruno@clisp.org>
47878
47879         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47880         Reported by Eric Blake.
47881
47882 2009-06-06  Eric Blake  <ebb9@byu.net>
47883
47884         test-alignof: fix typo with long double
47885         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47886         compiler error.
47887
47888 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47889
47890         Escape non-texinfo { and }s.
47891         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47892         markup error.
47893
47894 2009-06-04  Jim Meyering  <meyering@redhat.com>
47895
47896         gitlog-to-changelog: don't infloop on an empty commit log
47897         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47898         Reported by Boris Petersen <transacid@centerim.org>.
47899
47900 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47901
47902         version-etc: extend for packagers
47903         Add three new configure options, intended for packagers:
47904           --with-packager="packager name"
47905           --with-packager-version="packager-specific version"
47906           --with-packager-bug-reports="packager bug reporting"
47907         An example with coreutils:
47908           $ ./configure \
47909             --with-packager=Gentoo \
47910             --with-packager-bug-report=http://bugs.gentoo.org/ \
47911             --with-packager-version="patchset 1.6"
47912           $ ./src/ls --version | head -n2
47913           ls (GNU coreutils) 7.1-dirty
47914           Packaged by Gentoo (patchset 1.6)
47915         Note that the bug reporting info via --help doesn't show up because
47916         coreutils uses its own custom emit_bug_reporting_address() implementation
47917         in src/system.h.  If it didn't, it'd look like:
47918           $ ./src/ls --help | tail -n4
47919           Report bugs to <bug-coreutils@gnu.org>.
47920           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47921           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47922           General help using GNU software: <http://www.gnu.org/gethelp/>.
47923         * lib/version-etc.c: Print new information, if provided.
47924         * m4/version-etc.m4: New file.
47925         * modules/version-etc (Files): Add m4/version-etc.m4.
47926         (configure.ac): Add gl_VERSION_ETC.
47927
47928 2009-05-31  Bruno Haible  <bruno@clisp.org>
47929
47930         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47931         and 'int64_t'.
47932         * modules/alignof-tests (Dependencies): Add stdint.
47933         Reported by Eric Blake.
47934
47935 2009-05-31  Bruno Haible  <bruno@clisp.org>
47936
47937         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47938         restriction due to compiler bugs.
47939         Reported by Eric Blake.
47940
47941 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47942             Bruno Haible  <bruno@clisp.org>
47943
47944         Fix test-alignof failure.
47945         * lib/alignof.h (alignof_slot): New macro.
47946         (alignof_type): New macro, with the same semantics as the previous
47947         'alignof'.
47948         (alignof): Alias to alignof_slot.
47949         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47950         check that the results are usable as constant expressions.
47951
47952 2009-05-31  Bruno Haible  <bruno@clisp.org>
47953
47954         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47955         * tests/test-memchr.c (main): Check that memchr does not read past the
47956         first occurrence of the byte.
47957         * tests/test-strstr.c (main): Update comment.
47958         Suggested by Eric Blake.
47959
47960 2009-05-30  Bruno Haible  <bruno@clisp.org>
47961
47962         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47963         detail how to use dumpbin.
47964         Reported by David Byron <dbyron@dbyron.com>.
47965
47966 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47967
47968         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47969
47970 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47971
47972         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47973
47974 2009-05-28  Bruno Haible  <bruno@clisp.org>
47975
47976         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47977         build-aux/ files.
47978
47979 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47980
47981         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47982
47983 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47984
47985         * gnulib-tool (sed_transform_main_lib_file)
47986         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47987         regexps.
47988
47989 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47990
47991         * tests/test-strstr.c: Add another self-test.
47992         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47993         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47994
47995 2009-05-23  Bruno Haible  <bruno@clisp.org>
47996
47997         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47998         change.
47999
48000 2009-05-21  Bruno Haible  <bruno@clisp.org>
48001
48002         Simplify use of mode_t varargs.
48003         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48004         uses 'mode_t' or 'int'.
48005         * lib/openat.c (openat): Likewise.
48006         * lib/open-safer.c (open_safer): Likewise.
48007         * m4/mode_t.m4: New file.
48008         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48009         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48010         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48011         * modules/open (Files): Add m4/mode_t.m4.
48012         * modules/openat (Files): Likewise.
48013         * modules/fcntl-safer (Files): Likewise.
48014         Suggested by Eric Blake.
48015
48016 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48017
48018         * doc/glibc-functions/fallocate.texi: New file.
48019         * doc/gnulib.texi: Include it.
48020
48021 2009-05-21  Eric Blake  <ebb9@byu.net>
48022             Bruno Haible  <bruno@clisp.org>
48023
48024         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48025         invocations.
48026         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48027
48028 2009-05-21  Eric Blake  <ebb9@byu.net>
48029             Bruno Haible  <bruno@clisp.org>
48030
48031         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48032         include_next. Fix of 2008-11-20 commit.
48033         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48034         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48035         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48036         NEXT_MATH_H.
48037         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48038         instead of NEXT_MATH_H.
48039
48040 2009-05-21  Bruno Haible  <bruno@clisp.org>
48041
48042         Avoid redefinition warnings for SIZE_MAX.
48043         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48044         Reported by Simon Josefsson.
48045
48046 2009-05-21  Bruno Haible  <bruno@clisp.org>
48047
48048         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48049         AC_CACHE_VAL.
48050
48051 2009-05-20  Bruno Haible  <bruno@clisp.org>
48052
48053         Make zeroptr.h work on mingw.
48054         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48055         mprotect.
48056         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48057         * modules/memchr2-tests (configure.ac): Likewise.
48058         * modules/memcmp-tests (configure.ac): Likewise.
48059         * modules/memmem-tests (configure.ac): Likewise.
48060         * modules/memrchr-tests (configure.ac): Likewise.
48061         Reported by Simon Josefsson.
48062
48063 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48064
48065         * tests/test-glob.c: Include string.h for strcmp prototype.
48066
48067 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48068
48069         * modules/getdelim (Depends-on): Add explicit stdint, although it
48070         was implicitly already pulled in via realloc-posix.
48071         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48072
48073 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48074
48075         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48076         G. Christensen" <tgc@jupiterrise.com>.
48077         * m4/sys_socket_h.m4: Check for sa_family_t.
48078         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48079         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48080         * tests/test-sys_socket.c: Check that sa_family_t works.
48081
48082 2009-05-18  Eric Blake  <ebb9@byu.net>
48083
48084         maint.mk: allow gnulib_dir in VPATH build
48085         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48086
48087 2009-05-15  Jim Meyering  <meyering@redhat.com>
48088
48089         maint.mk: Give gnulib_dir a default definition.
48090         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48091         Thus, most packages no longer need to specify this variable in cfg.mk
48092
48093 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48094
48095         rename.m4: fix typos that would make non-mingw cross-configure fail
48096         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48097
48098 2009-05-13  Eric Blake  <ebb9@byu.net>
48099
48100         mmap-anon: avoid out-of-order autoconf expansion
48101         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48102         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48103         * modules/memchr-tests (Depends-on): Add extensions.
48104         * modules/memchr2-tests (Depends-on): Add extensions.
48105         * modules/memcmp-tests (Depends-on): Add extensions.
48106         * modules/memmem-tests (Depends-on): Add extensions.
48107         * modules/memrchr-tests (Depends-on): Add extensions.
48108
48109 2009-05-13  Bruno Haible  <bruno@clisp.org>
48110
48111         Make some tests ISO C 99 compliant.
48112         * tests/zerosize-ptr.h: New file.
48113         * tests/test-memchr.c: Include zerosize-ptr.h.
48114         (main): Use a zero-size object pointer instead of NULL.
48115         * tests/test-memchr2.c: Include zerosize-ptr.h.
48116         (main): Use a zero-size object pointer instead of NULL.
48117         * tests/test-memcmp.c: Include zerosize-ptr.h.
48118         (main): Use a zero-size object pointer instead of NULL.
48119         * tests/test-memmem.c: Include zerosize-ptr.h.
48120         (main): Use a zero-size object pointer instead of NULL.
48121         * tests/test-memrchr.c: Include zerosize-ptr.h.
48122         (main): Use a zero-size object pointer instead of NULL.
48123         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48124         m4/mmap-anon.m4.
48125         (Depends-on): Add getpagesize.
48126         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48127         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48128         m4/mmap-anon.m4.
48129         (Depends-on): Add getpagesize.
48130         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48131         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48132         m4/mmap-anon.m4.
48133         (Depends-on): Add getpagesize.
48134         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48135         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48136         m4/mmap-anon.m4.
48137         (Depends-on): Add getpagesize.
48138         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48139         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48140         m4/mmap-anon.m4.
48141         (Depends-on): Add getpagesize.
48142         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48143
48144 2009-05-12  Bruno Haible  <bruno@clisp.org>
48145
48146         Tests for module 'alignof'.
48147         * modules/alignof-tests: New file.
48148         * tests/test-alignof.c: New file.
48149
48150 2009-05-12  Bruno Haible  <bruno@clisp.org>
48151
48152         Fix alignof macro.
48153         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48154         vendor compilers that are always correct.
48155
48156 2009-05-12  Bruno Haible  <bruno@clisp.org>
48157
48158         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48159         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48160         not whether its fully works.
48161
48162 2009-05-12  Bruno Haible  <bruno@clisp.org>
48163
48164         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48165
48166 2009-05-12  Jim Meyering  <meyering@redhat.com>
48167
48168         * top/maint.mk: Adjust backslash alignment.
48169
48170 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48171
48172         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48173
48174 2009-05-11  Eric Blake  <ebb9@byu.net>
48175
48176         argp: avoid undefined behavior
48177         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48178         macros.
48179
48180 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48181
48182         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48183         user.name to prevent git commit from complaining.
48184
48185 2009-05-10  Bruno Haible  <bruno@clisp.org>
48186
48187         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48188         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48189         it rewrites every file name only once.
48190         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48191
48192 2009-05-08  Bruno Haible  <bruno@clisp.org>
48193
48194         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48195         instead of 'max'.
48196
48197 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48198
48199         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48200         sockaddr_storage test.
48201
48202 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48203
48204         * modules/sys_socket (Makefile.am): Substitute
48205         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48206         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48207         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48208         * tests/test-sys_socket.c: Check sockaddr_storage.
48209
48210 2009-05-08  Bruno Haible  <bruno@clisp.org>
48211
48212         New module 'alignof'.
48213         * lib/alignof.h: New file.
48214         * modules/alignof: New file.
48215
48216 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48217             Bruno Haible  <bruno@clisp.org>
48218
48219         Fix test-file-has-acl on FreeBSD.
48220         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48221         mask is implicitly added.
48222         * tests/test-file-has-acl.c: Include <signal.h>.
48223         (main): Terminate the test after 5 seconds.
48224         * modules/acl-tests (configure.ac): Check for alarm function.
48225
48226 2009-05-04  Bruno Haible  <bruno@clisp.org>
48227
48228         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48229         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48230         * modules/errno (configure.ac): Drop AC_REQUIRE.
48231         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48232         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48233
48234 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48235
48236         * modules/glob-tests: New module.
48237         * tests/test-glob.c: Add.
48238
48239 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48240
48241         * modules/fnmatch-tests: New module.
48242         * tests/test-fnmatch.c: Add.
48243
48244 2009-05-04  Eric Blake  <ebb9@byu.net>
48245
48246         maint: make the new no-submodule-changes rule VPATH-safe
48247         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48248
48249 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48250             Bruno Haible  <bruno@clisp.org>
48251
48252         acl: Fix infinite loop on FreeBSD.
48253         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48254         of return value from acl_get_entry.
48255         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48256         Likewise.
48257
48258 2009-05-03  Bruno Haible  <bruno@clisp.org>
48259
48260         * lib/acl-internal.h (acl_entries): Clarify return value.
48261         * lib/acl_entries.c (acl_entries): Likewise.
48262
48263 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48264
48265         Bug fix in acl module.
48266         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48267
48268 2009-05-03  Bruno Haible  <bruno@clisp.org>
48269
48270         Create gperf-generated file in the source dir, not in the build dir.
48271         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48272         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48273         * modules/unicase/locale-language (unicase/locale-languages.h):
48274         Likewise.
48275         * modules/unicase/special-casing (unicase/special-casing-table.h):
48276         Likewise.
48277         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48278         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48279         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48280         Reported by Ralf Wildenhues.
48281
48282 2009-05-03  Bruno Haible  <bruno@clisp.org>
48283
48284         * modules/fnmatch (Description, configure.ac): Taken from
48285         fnmatch-posix.
48286         * modules/fnmatch-posix: Turn into a symbolic reference to the
48287         'fnmatch' module, and deprecate.
48288         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48289
48290 2009-05-03  Bruno Haible  <bruno@clisp.org>
48291
48292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48293         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48294         Reported by Ralf Wildenhues.
48295
48296 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48297
48298         * m4/fnmatch.m4: Fix fnmatch re-define.
48299
48300 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48301
48302         priv-set: new module and tests; adapt write-any-file
48303         * lib/priv-set.c: New file.
48304         * lib/priv-set.h: New file.
48305         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48306         * lib/write-any-file.c: Simplify by using priv-set module.
48307         * m4/priv-set.m4: New file.
48308         * modules/priv-set: New file.
48309         * modules/unlinkdir: Add dependency on priv-set module.
48310         * modules/write-any-file: Likewise.
48311
48312         Tests for module 'priv-set'.
48313         * modules/priv-set-tests: New file.
48314         * tests/test-priv-set.c: New file.
48315
48316 2009-05-03  Jim Meyering  <meyering@redhat.com>
48317             Bruno Haible  <bruno@clisp.org>
48318
48319         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48320         use the converted UTF-8 variant of the name instead.
48321
48322 2009-05-03  Jim Meyering  <meyering@redhat.com>
48323
48324         tests: tighten some getdate tests
48325         * tests/test-getdate.c (main): Tighten tests: require equality,
48326         not just greater than.  Set TZ envvar to UTC0.
48327
48328 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48329
48330         getdate: correctly interpret "next monday" when run on a Monday
48331         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48332         that e.g., "next tues" (when run on a tuesday) results in a date
48333         that is one week in the future, and not today's date.
48334         I.e., add a week when the wday is the same as the current one.
48335         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48336         and earlier by Martin Bernreuther and Jan Minář.
48337         * tests/test-getdate.c (main): Check that "next DAY" is always in
48338         the future and that "last DAY" is always in the past.
48339
48340 2009-05-02  Jim Meyering  <meyering@redhat.com>
48341
48342         build: ensure that a release build fails when a submodule is unclean
48343         * top/maint.mk (no-submodule-changes): New rule.
48344         (alpha beta major): Depend on it.
48345
48346 2009-05-02  Bruno Haible  <bruno@clisp.org>
48347
48348         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48349         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48350         shell variable gl_fnmatch_required to detect which variant is
48351         requested.
48352         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48353         gl_FUNC_FNMATCH_POSIX.
48354         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48355         exclude fnmatch-posix.
48356
48357 2009-05-02  Bruno Haible  <bruno@clisp.org>
48358
48359         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48360         * modules/mbsrtowcs (License): Change to LGPLv2+.
48361         * modules/strnlen1 (License): Likewise.
48362         Reported by Simon Josefsson.
48363
48364 2009-05-02  Bruno Haible  <bruno@clisp.org>
48365
48366         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48367         "cross".
48368         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48369         gnulib-tool was called with option --source-base=lib.
48370
48371 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48372
48373         Use automake *-local hooks without commands, for extensibility.
48374         * modules/localcharset (Makefile.am): Rename install-exec-local
48375         rule to install-exec-localcharset, and make it a prerequisite of
48376         install-exec-local.  Likewise, rename the uninstall-local rule to
48377         uninstall-localcharset, and make it a prerequisite of the former.
48378
48379 2009-05-01  Bruno Haible  <bruno@clisp.org>
48380
48381         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48382         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48383         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48385         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48386         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48387         m4/locale-zh.m4, m4/codeset.m4.
48388
48389         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48390         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48391         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48392         m4/locale-zh.m4.
48393
48394         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48395         REPLACE_WCRTOMB if mbstate_t must be replaced.
48396         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48397         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48398
48399 2009-05-01  Bruno Haible  <bruno@clisp.org>
48400
48401         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48402         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48403         dngettext, dcngettext, textdomain, bindtextdomain,
48404         bind_textdomain_codeset): Undefine before redefining.
48405
48406 2009-04-30  Bruno Haible  <bruno@clisp.org>
48407
48408         Fix bug introduced on 2009-04-25.
48409         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48410         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48411         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48412         is defined.
48413         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48414         is defined.
48415         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48416         is defined.
48417         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48418
48419 2009-04-28  Bruno Haible  <bruno@clisp.org>
48420
48421         Comment tweaks.
48422         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48423         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48424         * lib/unicase.h (u*_casexfrm): Likewise.
48425         Reported by Paolo Bonzini.
48426
48427 2009-04-28  Bruno Haible  <bruno@clisp.org>
48428
48429         Fix a compilation error.
48430         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48431         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48432         Reported by Jim Meyering.
48433
48434 2009-04-27  Bruno Haible  <bruno@clisp.org>
48435
48436         New module 'libunistring'.
48437         * modules/libunistring: New file.
48438         * m4/libunistring.m4: New file.
48439         * MODULES.html.sh (Unicode string functions): Add it.
48440
48441 2009-04-27  Eric Blake  <ebb9@byu.net>
48442
48443         maint.mk: allow package-specific header to provide <config.h>
48444         * top/maint.mk (sc_require_config_h): New variable.
48445         (sc_require_config_h, sc_require_config_h_first): Use it.
48446
48447 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48448
48449         * top/maint.mk (sc_avoid_if_before_free): Except
48450         useless-if-before-free script.
48451
48452 2009-04-27  Eric Blake  <ebb9@byu.net>
48453
48454         maintainer-makefile: depend on all required helper scripts
48455         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48456         useless-if-before-free.
48457         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48458         version, rather than assuming gnulib checkout is available.
48459         Reported by Simen Josefsson.
48460
48461 2009-04-26  Bruno Haible  <bruno@clisp.org>
48462
48463         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48464         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48465         "../" or "..".
48466
48467 2009-04-26  Bruno Haible  <bruno@clisp.org>
48468
48469         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48470         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48471         AC_LIB_HAVE_LINKFLAGS.
48472
48473 2009-04-26  Bruno Haible  <bruno@clisp.org>
48474
48475         Simplify calling convention of u*_conv_from_encoding.
48476         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48477         u32_conv_from_encoding): Expect a resultbuf argument and return the
48478         result directly as a pointer.
48479         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48480         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48481         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48482         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48483         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48484         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48485         Update.
48486         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48487         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48488         * lib/vasnprintf.c (VASNPRINTF): Update.
48489         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48490         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48491         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48492         * NEWS: Mention the change.
48493
48494 2009-04-26  Bruno Haible  <bruno@clisp.org>
48495
48496         Simplify calling convention of u*_conv_to_encoding.
48497         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48498         u32_conv_to_encoding): Expect a resultbuf argument and return the
48499         result directly as a pointer.
48500         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48501         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48502         freeing scaled_offsets if mem_iconveha failed.
48503         * lib/unicase/u-casexfrm.h (FUNC): Update.
48504         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48505         * lib/vasnprintf.c (VASNPRINTF): Update.
48506         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48507         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48508         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48509         * NEWS: Mention the change.
48510
48511 2009-04-26  Bruno Haible  <bruno@clisp.org>
48512
48513         Avoid test failures on AIX and OSF/1.
48514         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48515         malloc(0).
48516         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48517         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48518         Likewise.
48519         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48520         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48521         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48522         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48523         * doc/posix-functions/malloc.texi: Document the portability problem
48524         related to malloc(0).
48525
48526 2009-04-26  Bruno Haible  <bruno@clisp.org>
48527
48528         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48529         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48530         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48531
48532 2009-04-25  Bruno Haible  <bruno@clisp.org>
48533
48534         Avoid link error when creating a namespace clean library.
48535         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48536         as macro with arguments if already defined as an alias.
48537         * lib/signbitf.c (gl_signbitf): Don't undefine.
48538         * lib/signbitd.c (gl_signbitd): Don't undefine.
48539         * lib/signbitl.c (gl_signbitl): Don't undefine.
48540
48541 2009-04-25  Jim Meyering  <meyering@redhat.com>
48542
48543         vc-list-files: fix another quoting bug
48544         * build-aux/vc-list-files: Avoid sed backslash expansion
48545         of pathological directory names.
48546
48547 2009-04-25  Eric Blake  <ebb9@byu.net>
48548
48549         vc-list-files: fix shell quoting error
48550         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48551         timestamp.
48552
48553 2009-04-25  Jim Meyering  <meyering@redhat.com>
48554
48555         vc-list-files: restore lost functionality with subdir argument
48556         * build-aux/vc-list-files: When given a non-"." sub-directory
48557         argument, substitute the $dir/ prefix back onto each resulting name.
48558         Otherwise, coreutils' root_tests check would fail.
48559
48560 2009-04-24  Eric Blake  <ebb9@byu.net>
48561
48562         vc-list-files: ignore git symlinks
48563         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48564         than ls-files, to ignore git symlinks.
48565
48566         maint.mk: import improvements from m4
48567         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48568         (move_if_change): Delete unused macro.
48569         (news-date-check, vc-diff-check): Support VPATH builds.
48570         (announcement): Likewise.  Split --bootstrap-tools list...
48571         (boostrap-tools): ...into separate list, which can be overridden
48572         in cfg.mk.
48573         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48574         requiring dependency on useless-if-before-free module.
48575         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48576         Support VPATH builds.
48577
48578 2009-04-24  Jim Meyering  <meyering@redhat.com>
48579
48580         maint.mk: remove coreutils-specific rules and variables
48581         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48582         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48583         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48584
48585         maint.mk: remove obsolete rule
48586         * top/maint.mk (rel-check): Remove rule.
48587         (WGET, WGETFLAGS): Remove now-unused variables.
48588
48589 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48590
48591         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48592         consistency.
48593
48594         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48595         '$(PATH_SEPARATOR)' instead of ':'.
48596
48597 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48598
48599         * lib/getopt1.c (main): Use 'const' for static array.
48600
48601 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48602
48603         * top/maint.mk: Sync with coreutils.
48604         * NEWS: Explain incompatibilities.
48605
48606 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48607             Bruno Haible  <bruno@clisp.org>
48608
48609         Fix cross-compilation results.
48610         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48611         statement, as third argument of AC_TRY_RUN.
48612         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48613         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48614         Likewise.
48615         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48616         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48617         Likewise.
48618         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48619         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48620         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48621
48622 2009-04-20  Bruno Haible  <bruno@clisp.org>
48623
48624         Avoid test failure on mingw.
48625         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48626
48627 2009-04-20  Bruno Haible  <bruno@clisp.org>
48628
48629         Avoid compilation error on mingw.
48630         * modules/localename-tests (Depends-on): Add locale.
48631
48632 2009-04-19  Bruno Haible  <bruno@clisp.org>
48633
48634         Support for building a shared library on Windows platforms.
48635         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48636         (main): Test the presence of UNINORM_NFC here.
48637         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48638         (main): Test the presence of UNINORM_NFD here.
48639         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48640         (main): Test the presence of UNINORM_NFKC here.
48641         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48642         (main): Test the presence of UNINORM_NFKD here.
48643
48644 2009-04-19  Bruno Haible  <bruno@clisp.org>
48645
48646         Avoid a compiler warning.
48647         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48648         Change type of variable 'sequence'.
48649
48650 2009-04-19  Bruno Haible  <bruno@clisp.org>
48651
48652         * modules/configmake (Makefile.am): When the contents of configmake.h
48653         does not change, arrange to preserve its modification time.
48654
48655 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48656
48657         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48658         gettext domain.
48659
48660 2009-04-16  Jim Meyering  <meyering@redhat.com>
48661
48662         useless-if-before-free: improve conversion code
48663         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48664         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48665
48666 2009-04-14  Bruno Haible  <bruno@clisp.org>
48667
48668         * modules/fcntl (Depends-on): Add extensions.
48669         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48670
48671 2009-04-12  Ben Pfaff  <blp@gnu.org>
48672
48673         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48674         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48675
48676 2009-03-20  Ben Pfaff  <blp@gnu.org>
48677
48678         Make rename replace existing destinations on Windows.
48679         * m4/rename.m4: Add test for Mingw.
48680         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48681         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48682         * doc/posix-functions/rename.texi: Document.
48683
48684 2009-04-10  Bruno Haible  <bruno@clisp.org>
48685
48686         New include file "iconveh.h".
48687         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48688         * lib/striconveh.h: Include it.
48689         (enum iconv_ilseq_handler): Remove definition.
48690         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48691         striconveh.h.
48692         * lib/striconveha.c: Include striconveh.h.
48693         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48694         * modules/striconveh (Files): Add lib/iconveh.h.
48695         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48696         lib/striconveh.h.
48697
48698 2009-04-10  Bruno Haible  <bruno@clisp.org>
48699
48700         * lib/uniconv.h: Update comment.
48701
48702 2009-04-10  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48705         always.
48706         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48707         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48708         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48709         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48710         "unistring-notinline.h", so that the function gets defined always.
48711         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48712         * lib/unistr/u8-uctomb.c: Likewise.
48713         * lib/unistr/u16-mbtouc.c: Likewise.
48714         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48715         * lib/unistr/u16-uctomb.c: Likewise.
48716         * lib/unistr/u32-mbtouc.c: Likewise.
48717         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48718         * lib/unistr/u32-uctomb.c: Likewise.
48719
48720 2009-04-10  Bruno Haible  <bruno@clisp.org>
48721
48722         Mark 'utime' obsolete.
48723         * modules/utime (Status, Notice): New sections.
48724         Suggested by Jim Meyering.
48725
48726         Fix cross-compile guess for utime test.
48727         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48728         autoconf.
48729         * doc/posix-functions/utime.texi: Give more precisions.
48730         Reported by Jan <ipif@ymail.com>.
48731
48732 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48733
48734         filevercmp: correct today's change
48735         * lib/filevercmp.c: Also handle coreutils' test inputs.
48736         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48737
48738         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48739         for reporting it.
48740         * lib/filevercmp.c: Special handle for "", "." and "..".
48741         * tests/test-filevercmp.c: Enlarge the set suite.
48742
48743 2009-04-07  Jim Meyering  <meyering@redhat.com>
48744
48745         useless-if-before-free: show how to remove braced useless free, too
48746         * build-aux/useless-if-before-free: still only in a comment, though.
48747
48748 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48749
48750         maint.mk: import changes to syntax-check macros from coreutils
48751         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48752         Use them in the relevant macros.
48753
48754 2009-04-06  Bruno Haible  <bruno@clisp.org>
48755
48756         Fix unportable use of bit-fields.
48757         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48758         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48759         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48760
48761 2009-04-06  Bruno Haible  <bruno@clisp.org>
48762
48763         Avoid test failures on AIX and OSF/1.
48764         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48765         that malloc(0) = NULL.
48766         * tests/unicase/test-u8-tolower.c (check): Likewise.
48767         * tests/unicase/test-u8-totitle.c (check): Likewise.
48768         * tests/unicase/test-u8-toupper.c (check): Likewise.
48769         * tests/unicase/test-u16-casefold.c (check): Likewise.
48770         * tests/unicase/test-u16-tolower.c (check): Likewise.
48771         * tests/unicase/test-u16-totitle.c (check): Likewise.
48772         * tests/unicase/test-u16-toupper.c (check): Likewise.
48773         * tests/unicase/test-u32-casefold.c (check): Likewise.
48774         * tests/unicase/test-u32-tolower.c (check): Likewise.
48775         * tests/unicase/test-u32-totitle.c (check): Likewise.
48776         * tests/unicase/test-u32-toupper.c (check): Likewise.
48777         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48778         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48779         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48780         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48781         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48782         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48783         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48784         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48785         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48786         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48787         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48788         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48789
48790 2009-04-05  Bruno Haible  <bruno@clisp.org>
48791
48792         Work around an autoconf limitation.
48793         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48794         comment line if it would be longer than 3 KB.
48795
48796 2009-04-05  Bruno Haible  <bruno@clisp.org>
48797
48798         Avoid test failure with libiconv-1.13.
48799         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48800         of the expected test results.
48801
48802 2009-04-05  Bruno Haible  <bruno@clisp.org>
48803
48804         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48805         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48806         that it should be installed.
48807
48808 2009-04-05  Bruno Haible  <bruno@clisp.org>
48809
48810         * gnulib-tool: New option --copy-file.
48811         (func_usage): Document it.
48812         (func_dest_tmpfilename): Moved out of func_import.
48813         (func_add_file, func_update_file): New functions, extracted from
48814         func_import.
48815         (func_import): Update.
48816
48817 2009-04-05  Karl Berry  <karl@gnu.org>
48818
48819         * README: prominently mention gnulib-tool.
48820         Rearrange sections so getting the code is near the top.
48821
48822 2009-04-05  Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/unicase.h: Mention u*_cmp2.
48825         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48826         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48827         * lib/unicase/ulc-casecmp.c: Likewise.
48828         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48829         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48830         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48831         unistr/u8-cmp.
48832         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48833         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48834         unistr/u16-cmp.
48835         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48836         unistr/u32-cmp.
48837
48838         * lib/uninorm.h: Mention u*_cmp2.
48839         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48840         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48841         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48842         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48843         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48844         unistr/u8-cmp.
48845         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48846         unistr/u16-cmp.
48847         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48848         unistr/u32-cmp.
48849
48850         New module 'unistr/u32-cmp2'.
48851         * lib/unistr/u32-cmp2.c: New file.
48852         * modules/unistr/u32-cmp2: New file.
48853
48854         New module 'unistr/u16-cmp2'.
48855         * lib/unistr/u16-cmp2.c: New file.
48856         * modules/unistr/u16-cmp2: New file.
48857
48858         New module 'unistr/u8-cmp2'.
48859         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48860         * lib/unistr/u8-cmp2.c: New file.
48861         * lib/unistr/u-cmp2.h: New file.
48862         * modules/unistr/u8-cmp2: New file.
48863
48864 2009-04-05  Bruno Haible  <bruno@clisp.org>
48865
48866         * lib/unictype.h (uc_property_is_valid): New macro.
48867         * tests/unictype/test-pr_byname.c (main): Use it.
48868
48869         * lib/unistr.h: Doc fixes.
48870         * lib/uniconv.h: Doc fixes.
48871         * lib/unictype.h: Doc fixes.
48872
48873 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48874
48875         Port coreutils 7.2 to Solaris 8.
48876
48877         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48878         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48879         for Solaris 8.  This is a bit of a hack, as it means it's the
48880         caller's responsibility to add -lnsl if needed, but most likely it
48881         won't be needed since only getaddrinfo uses this and getaddrinfo
48882         isn't needed on Solaris 8.
48883
48884         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48885         problem to Solaris 8 encountered with coreutils 7.2, which
48886         resulted in a message "fnmatch.c:292: warning: passing argument 4
48887         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48888         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48889
48890 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48891
48892         * m4/ld-version-script.m4: Add FIXME comment.
48893
48894 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48895
48896         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48897         SOVERSION variable.
48898
48899 2009-04-02  Bruno Haible  <bruno@clisp.org>
48900
48901         * Makefile (info, html, dvi, pdf): Combine the rules.
48902         Suggested by Jim Meyering.
48903
48904 2009-04-01  Bruno Haible  <bruno@clisp.org>
48905
48906         * Makefile (info, html, dvi, pdf): New targets.
48907         Reported by Reuben Thomas <rrt@sc3d.org>.
48908
48909 2009-04-01  Bruno Haible  <bruno@clisp.org>
48910
48911         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48912         can be put into PATH.
48913         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48914
48915 2009-04-01  Bruno Haible  <bruno@clisp.org>
48916
48917         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48918
48919 2009-04-01  Bruno Haible  <bruno@clisp.org>
48920
48921         Rename module 'visibility'.
48922         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48923         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48924         * doc/gnulib.texi: Update.
48925         * MODULES.html.sh (Misc): Update.
48926         * NEWS: Mention the change.
48927
48928 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48929
48930         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48931         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48932         Eric Blake <ebb9@byu.net> for review.
48933         * MODULES.html.sh: Add lib-msvc-compat.
48934         * doc/gnulib.texi: Link to new section.
48935         * m4/ld-output-def.m4: New file.
48936         * doc/ld-output-def.texi: New file.
48937
48938 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48939
48940         Rename ld-version-script to lib-symbol-versions.  Suggested by
48941         Bruno Haible <bruno@clisp.org>.
48942         * modules/ld-version-script: Renamed to lib-symbol-versions.
48943         * doc/ld-version-script.texi: Fix module name.
48944         * MODULES.html.sh: Add lib-symbol-versions.
48945
48946 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48947
48948         * modules/u64-tests: New file.
48949         * tests/test-u64.c: New file.
48950
48951 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48952
48953         * MODULES.html.sh: Mention u64.
48954         * modules/u64: New module.
48955         * modules/crypto/sha512: Depend on u64 module instead of providing
48956         u64.h.
48957
48958 2009-03-27  Eric Blake  <ebb9@byu.net>
48959
48960         test-strerror: make debugging EAI_SYSTEM easier
48961         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48962         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48963         failure was EAI_SYSTEM.
48964
48965 2009-03-25  Bruno Haible  <bruno@clisp.org>
48966
48967         Fix a problem with --enable-relocatable on Solaris 7.
48968         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48969         since 2008-02-24.
48970
48971 2009-03-25  Eric Blake  <ebb9@byu.net>
48972
48973         test-sockets: avoid gcc warning
48974         * tests/test-sockets.c (main): Silence compiler warning.
48975
48976 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48977
48978         New modules nproc, pthread, contributed by Glen Lenker.
48979
48980         * MODULES.html.sh: Add pthread, nproc.
48981         * lib/nproc.c: New file.
48982         * lib/nproc.h: New file.
48983         * lib/pthread.in.h: New file.
48984         * m4/pthread.m4: New file.
48985         * modules/nproc: New file.
48986         * modules/pthread: New file.
48987
48988 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48989
48990         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48991         New variable.
48992
48993 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48994
48995         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48996         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48997         * tests/test-filevercmp.c: Add tests for backup suffixes.
48998
48999 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49000
49001         * modules/stdlib (Depends-on): Add stdint, needed when defining
49002         struct random_data on, for example, HP-UX 10.20.  Reported by
49003         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49004
49005 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49006
49007         * lib/readline.c (readline): Call fflush on stdout after printing
49008         prompt.
49009
49010 2009-03-20  Bruno Haible  <bruno@clisp.org>
49011
49012         Remove dependency from 'close' module to -lws2_32 on native Windows.
49013         * lib/close-hook.h: New file.
49014         * lib/close-hook.c: New file.
49015         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49016         w32sock.h.
49017         (_gl_close_fd_maybe_socket): Remove function.
49018         (rpl_close): Invoke execute_all_close_hooks instead of
49019         _gl_close_fd_maybe_socket.
49020         * lib/sockets.c: Include close-hook.h, w32sock.h.
49021         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49022         (close_sockets_hook): New variable.
49023         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49024         (gl_sockets_cleanup): Unregister it.
49025         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49026         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49027         * modules/close-hook: New file.
49028         * modules/close (Files): Remove lib/w32sock.h.
49029         (Depends-on): Add close-hook.
49030         (Link): Remove section.
49031         * modules/sockets (Files): Add lib/w32sock.h.
49032         (Depends-on): Add close-hook.
49033         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49034         invocation.
49035         * NEWS: Mention that LIB_CLOSE is gone.
49036
49037 2009-03-23  Eric Blake  <ebb9@byu.net>
49038
49039         signal-tests: test previous patch
49040         * tests/test-signal.c: New file.
49041         * modules/signal-tests: Likewise.
49042
49043         signal.h: always support 'volatile sig_atomic_t'
49044         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49045         (gl_SIGNAL_H_DEFAULTS): Add a default.
49046         * modules/signal (Makefile.am): Substitute if needed.
49047         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49048         users can blindly add volatile.
49049         * doc/posix-headers/signal.texi (signal.h): Document it.
49050         Reported by Matthew Woehlke.
49051
49052 2009-03-23  Jim Meyering  <meyering@redhat.com>
49053
49054         pathmax: PATH_MAX: use pathconf only when available
49055         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49056         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49057         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49058         This avoids a link failure in a PSP cross-compilation environment
49059         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49060
49061         * lib/vasnprintf.c (divide): Fix typo in comment.
49062
49063 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49064
49065         * gnulib-tool (func_filter_filelist): Fix comment.
49066
49067 2009-03-20  Bruno Haible  <bruno@clisp.org>
49068
49069         Make sockets.h self-contained.
49070         * lib/sockets.c: Include sockets.h first.
49071         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49072
49073 2009-03-19  Eric Blake  <ebb9@byu.net>
49074
49075         doc: mention more functions added in cygwin 1.7.0
49076         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49077         addition.
49078         * doc/posix-functions/log2f.texi: Likewise.
49079
49080 2009-03-19  Jim Meyering  <meyering@redhat.com>
49081
49082         fsusage: avoid syntax error due to statement-before-declaration
49083         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49084         after all declarations.  Reported by Matthew Woehlke in
49085         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49086
49087 2009-03-18  Eric Blake  <ebb9@byu.net>
49088
49089         build-aux/compile: sync from automake
49090         * build-aux/compile: New file, from automake.
49091         * config/srclist.txt: Mention build-aux/compile.
49092
49093 2009-03-17  Bruno Haible  <bruno@clisp.org>
49094
49095         * lib/git-merge-changelog.c: Fix typo in comment.
49096         Reported by Reuben Thomas <rrt@sc3d.org>.
49097
49098 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49099
49100         * m4/regex.m4: update and improve help for
49101         --without-included-regex.
49102
49103 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49104
49105         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49106         failure on missing include files.
49107
49108 2009-03-17  Eric Blake  <ebb9@byu.net>
49109
49110         doc: mention more functions added in cygwin 1.7.0
49111         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49112         addition.
49113         * doc/posix-functions/fwscanf.texi: Likewise.
49114         * doc/posix-functions/swprintf.texi: Likewise.
49115         * doc/posix-functions/swscanf.texi: Likewise.
49116         * doc/posix-functions/vfwprintf.texi: Likewise.
49117         * doc/posix-functions/vfwscanf.texi: Likewise.
49118         * doc/posix-functions/vswprintf.texi: Likewise.
49119         * doc/posix-functions/vswscanf.texi: Likewise.
49120         * doc/posix-functions/vwprintf.texi: Likewise.
49121         * doc/posix-functions/vwscanf.texi: Likewise.
49122         * doc/posix-functions/wcscasecmp.texi: Likewise.
49123         * doc/posix-functions/wcsdup.texi: Likewise.
49124         * doc/posix-functions/wcsftime.texi: Likewise.
49125         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49126         * doc/posix-functions/wprintf.texi: Likewise.
49127         * doc/posix-functions/wscanf.texi: Likewise.
49128         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49129
49130 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49131
49132         maint.mk: really add $(AM_MAKEFLAGS)
49133         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49134         was inadvertently omitted in the last commit.
49135         Spotted by Bruno Haible.
49136
49137         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49138         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49139         $(AM_MAKEFLAGS)' rather than plain `make'.
49140
49141         gnulib-tool: execute $MAKE not make
49142         * gnulib-tool: Default $MAKE to 'make'.
49143         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49144         than make.  Initialize $MAKE in the do-autobuild script.
49145
49146         gnulib-tool: use $MAKE not make in generated files
49147         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49148         make, in generated files.  Initialize $MAKE in the do-autobuild
49149         script.
49150
49151         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49152
49153         GNUmakefile: disable parallelism only for multiple, recursive targets
49154         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49155         additions in the Makefile.
49156         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49157         by Automake.
49158         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49159         are listed on the command line and at least one of them is
49160         listed in $(ALL_RECURSIVE_TARGETS).
49161
49162 2009-03-14  Bruno Haible  <bruno@clisp.org>
49163
49164         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49165         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49166         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49167         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49168         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49169         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49170         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49171         unistr/u8-uctomb.
49172         * modules/unistr/u8-strchr (Depends-on): Likewise.
49173         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49174         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49175         unistr/u16-uctomb.
49176         * modules/unistr/u16-strchr (Depends-on): Likewise.
49177         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49178
49179 2009-03-12  Bruno Haible  <bruno@clisp.org>
49180
49181         Work around select() bug on Interix 3.5.
49182         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49183         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49184         * m4/select.m4: New file.
49185         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49186         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49187         * modules/select (Files): Add m4/select.m4.
49188         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49189         * modules/nanosleep (Depends-on): Add select.
49190         * modules/poll (Depends-on): Likewise.
49191         * doc/posix-functions/select.texi: Mention the Interix bug.
49192         Reported by Markus Duft <mduft@gentoo.org>.
49193
49194         * lib/select.c: Renamed from lib/winsock-select.c.
49195         * modules/select (Files): Add lib/select.c, remove
49196         lib/winsock-select.c.
49197         (configure.ac): Update.
49198
49199 2009-03-12  Jim Meyering  <meyering@redhat.com>
49200
49201         avoid gcc warnings about unused macro definitions
49202         * lib/readtokens.c (STREQ): Remove unused definition.
49203         * lib/xmalloc.c (SIZE_MAX): Likewise.
49204         * lib/openat-die.c (N_): Likewise.
49205         * lib/mountlist.c (SIZE_MAX): Remove definition.
49206         Instead, include <stdint.h>.
49207         * lib/readutmp.c: Likewise.
49208         * modules/readutmp (Depends-on): Add stdint.
49209         * modules/mountlist (Depends-on): Add stdint.
49210         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49211
49212 2009-03-10  Bruno Haible  <bruno@clisp.org>
49213
49214         Tests for module 'mbmemcasecoll'.
49215         * modules/mbmemcasecoll-tests: New file.
49216         * tests/test-mbmemcasecoll1.sh: New file.
49217         * tests/test-mbmemcasecoll2.sh: New file.
49218         * tests/test-mbmemcasecoll3.sh: New file.
49219         * tests/test-mbmemcasecoll.c: New file.
49220
49221         New module 'mbmemcasecoll'.
49222         * lib/mbmemcasecoll.h: New file.
49223         * lib/mbmemcasecoll.c: New file.
49224         * modules/mbmemcasecoll: New file.
49225
49226         * tests/test-mbmemcasecmp.h: New file, extracted from
49227         tests/test-mbmemcasecmp.c.
49228         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49229         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49230         (main): Update.
49231         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49232
49233 2009-03-09  Bruno Haible  <bruno@clisp.org>
49234
49235         Tests for module 'mbmemcasecmp'.
49236         * modules/mbmemcasecmp-tests: New file.
49237         * tests/test-mbmemcasecmp1.sh: New file.
49238         * tests/test-mbmemcasecmp2.sh: New file.
49239         * tests/test-mbmemcasecmp3.sh: New file.
49240         * tests/test-mbmemcasecmp.c: New file.
49241
49242         New module 'mbmemcasecmp'.
49243         * lib/mbmemcasecmp.h: New file.
49244         * lib/mbmemcasecmp.c: New file.
49245         * modules/mbmemcasecmp: New file.
49246
49247 2009-03-09  Bruno Haible  <bruno@clisp.org>
49248
49249         Tests for module 'unicase/ulc-casecoll'.
49250         * modules/unicase/ulc-casecoll-tests: New file.
49251         * tests/unicase/test-ulc-casecoll1.sh: New file.
49252         * tests/unicase/test-ulc-casecoll2.sh: New file.
49253         * tests/unicase/test-ulc-casecoll.c: New file.
49254
49255         New module 'unicase/ulc-casecoll'.
49256         * lib/unicase.h (ulc_casecoll): New declaration.
49257         * lib/unicase/ulc-casecoll.c: New file.
49258         * modules/unicase/ulc-casecoll: New file.
49259
49260         New module 'unicase/ulc-casexfrm'.
49261         * lib/unicase.h (ulc_casexfrm): New declaration.
49262         * lib/unicase/ulc-casexfrm.c: New file.
49263         * modules/unicase/ulc-casexfrm: New file.
49264
49265 2009-03-09  Bruno Haible  <bruno@clisp.org>
49266
49267         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49268         invocations.
49269
49270         * m4/mbscasecmp.m4: Remove file.
49271         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49272         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49273
49274         * m4/mbscasestr.m4: Remove file.
49275         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49276         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49277
49278         * m4/mbschr.m4: Remove file.
49279         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49280         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49281
49282         * m4/mbscspn.m4: Remove file.
49283         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49284         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49285
49286         * m4/mbslen.m4: Remove file.
49287         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49288         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49289
49290         * m4/mbsncasecmp.m4: Remove file.
49291         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49292         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49293
49294         * m4/mbsnlen.m4: Remove file.
49295         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49296         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49297
49298         * m4/mbspbrk.m4: Remove file.
49299         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49300         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49301
49302         * m4/mbspcasecmp.m4: Remove file.
49303         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49304         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49305
49306         * m4/mbsrchr.m4: Remove file.
49307         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49308         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49309
49310         * m4/mbssep.m4: Remove file.
49311         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49312         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49313
49314         * m4/mbsspn.m4: Remove file.
49315         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49316         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49317
49318         * m4/mbsstr.m4: Remove file.
49319         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49320         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49321
49322         * m4/mbstok_r.m4: Remove file.
49323         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49324         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49325
49326         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49327
49328         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49329         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49330
49331         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49332
49333 2009-03-08  Bruno Haible  <bruno@clisp.org>
49334
49335         Tests for module 'unicase/ulc-casecmp'.
49336         * modules/unicase/ulc-casecmp-tests: New file.
49337         * tests/unicase/test-ulc-casecmp1.sh: New file.
49338         * tests/unicase/test-ulc-casecmp2.sh: New file.
49339         * tests/unicase/test-ulc-casecmp.c: New file.
49340
49341         New module 'unicase/ulc-casecmp'.
49342         * lib/unicase.h (ulc_casecmp): New declaration.
49343         * lib/unicase/ulc-casecmp.c: New file.
49344         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49345         'const SRC_UNIT *'.
49346         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49347         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49348         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49349         * modules/unicase/ulc-casecmp: New file.
49350
49351         Tests for module 'unicase/u32-is-cased'.
49352         * modules/unicase/u32-is-cased-tests: New file.
49353         * tests/unicase/test-u32-is-cased.c: New file.
49354
49355         Tests for module 'unicase/u16-is-cased'.
49356         * modules/unicase/u16-is-cased-tests: New file.
49357         * tests/unicase/test-u16-is-cased.c: New file.
49358
49359         Tests for module 'unicase/u8-is-cased'.
49360         * modules/unicase/u8-is-cased-tests: New file.
49361         * tests/unicase/test-u8-is-cased.c: New file.
49362         * tests/unicase/test-is-cased.h: New file.
49363
49364         New module 'unicase/u32-is-cased'.
49365         * lib/unicase/u32-is-cased.c: New file.
49366         * modules/unicase/u32-is-cased: New file.
49367
49368         New module 'unicase/u16-is-cased'.
49369         * lib/unicase/u16-is-cased.c: New file.
49370         * modules/unicase/u16-is-cased: New file.
49371
49372         New module 'unicase/u8-is-cased'.
49373         * lib/unicase/u8-is-cased.c: New file.
49374         * lib/unicase/u-is-cased.h: New file.
49375         * modules/unicase/u8-is-cased: New file.
49376
49377         Tests for module 'unicase/u32-is-casefolded'.
49378         * modules/unicase/u32-is-casefolded-tests: New file.
49379         * tests/unicase/test-u32-is-casefolded.c: New file.
49380
49381         Tests for module 'unicase/u16-is-casefolded'.
49382         * modules/unicase/u16-is-casefolded-tests: New file.
49383         * tests/unicase/test-u16-is-casefolded.c: New file.
49384
49385         Tests for module 'unicase/u8-is-casefolded'.
49386         * modules/unicase/u8-is-casefolded-tests: New file.
49387         * tests/unicase/test-u8-is-casefolded.c: New file.
49388         * tests/unicase/test-is-casefolded.h: New file.
49389
49390         New module 'unicase/u32-is-casefolded'.
49391         * lib/unicase/u32-is-casefolded.c: New file.
49392         * modules/unicase/u32-is-casefolded: New file.
49393
49394         New module 'unicase/u16-is-casefolded'.
49395         * lib/unicase/u16-is-casefolded.c: New file.
49396         * modules/unicase/u16-is-casefolded: New file.
49397
49398         New module 'unicase/u8-is-casefolded'.
49399         * lib/unicase/u8-is-casefolded.c: New file.
49400         * modules/unicase/u8-is-casefolded: New file.
49401
49402         Tests for module 'unicase/u32-is-titlecase'.
49403         * modules/unicase/u32-is-titlecase-tests: New file.
49404         * tests/unicase/test-u32-is-titlecase.c: New file.
49405
49406         Tests for module 'unicase/u16-is-titlecase'.
49407         * modules/unicase/u16-is-titlecase-tests: New file.
49408         * tests/unicase/test-u16-is-titlecase.c: New file.
49409
49410         Tests for module 'unicase/u8-is-titlecase'.
49411         * modules/unicase/u8-is-titlecase-tests: New file.
49412         * tests/unicase/test-u8-is-titlecase.c: New file.
49413         * tests/unicase/test-is-titlecase.h: New file.
49414
49415         New module 'unicase/u32-is-titlecase'.
49416         * lib/unicase/u32-is-titlecase.c: New file.
49417         * modules/unicase/u32-is-titlecase: New file.
49418
49419         New module 'unicase/u16-is-titlecase'.
49420         * lib/unicase/u16-is-titlecase.c: New file.
49421         * modules/unicase/u16-is-titlecase: New file.
49422
49423         New module 'unicase/u8-is-titlecase'.
49424         * lib/unicase/u8-is-titlecase.c: New file.
49425         * modules/unicase/u8-is-titlecase: New file.
49426
49427         Tests for module 'unicase/u32-is-lowercase'.
49428         * modules/unicase/u32-is-lowercase-tests: New file.
49429         * tests/unicase/test-u32-is-lowercase.c: New file.
49430
49431         Tests for module 'unicase/u16-is-lowercase'.
49432         * modules/unicase/u16-is-lowercase-tests: New file.
49433         * tests/unicase/test-u16-is-lowercase.c: New file.
49434
49435         Tests for module 'unicase/u8-is-lowercase'.
49436         * modules/unicase/u8-is-lowercase-tests: New file.
49437         * tests/unicase/test-u8-is-lowercase.c: New file.
49438         * tests/unicase/test-is-lowercase.h: New file.
49439
49440         New module 'unicase/u32-is-lowercase'.
49441         * lib/unicase/u32-is-lowercase.c: New file.
49442         * modules/unicase/u32-is-lowercase: New file.
49443
49444         New module 'unicase/u16-is-lowercase'.
49445         * lib/unicase/u16-is-lowercase.c: New file.
49446         * modules/unicase/u16-is-lowercase: New file.
49447
49448         New module 'unicase/u8-is-lowercase'.
49449         * lib/unicase/u8-is-lowercase.c: New file.
49450         * modules/unicase/u8-is-lowercase: New file.
49451
49452         Tests for module 'unicase/u32-is-uppercase'.
49453         * modules/unicase/u32-is-uppercase-tests: New file.
49454         * tests/unicase/test-u32-is-uppercase.c: New file.
49455
49456         Tests for module 'unicase/u16-is-uppercase'.
49457         * modules/unicase/u16-is-uppercase-tests: New file.
49458         * tests/unicase/test-u16-is-uppercase.c: New file.
49459
49460         Tests for module 'unicase/u8-is-uppercase'.
49461         * modules/unicase/u8-is-uppercase-tests: New file.
49462         * tests/unicase/test-u8-is-uppercase.c: New file.
49463         * tests/unicase/test-is-uppercase.h: New file.
49464
49465         New module 'unicase/u32-is-uppercase'.
49466         * lib/unicase/u32-is-uppercase.c: New file.
49467         * modules/unicase/u32-is-uppercase: New file.
49468
49469         New module 'unicase/u16-is-uppercase'.
49470         * lib/unicase/u16-is-uppercase.c: New file.
49471         * modules/unicase/u16-is-uppercase: New file.
49472
49473         New module 'unicase/u8-is-uppercase'.
49474         * lib/unicase/u8-is-uppercase.c: New file.
49475         * modules/unicase/u8-is-uppercase: New file.
49476
49477         New module 'unicase/u32-is-invariant'.
49478         * lib/unicase/u32-is-invariant.c: New file.
49479         * modules/unicase/u32-is-invariant: New file.
49480
49481         New module 'unicase/u16-is-invariant'.
49482         * lib/unicase/u16-is-invariant.c: New file.
49483         * modules/unicase/u16-is-invariant: New file.
49484
49485         New module 'unicase/u8-is-invariant'.
49486         * lib/unicase/u8-is-invariant.c: New file.
49487         * lib/unicase/invariant.h: New file.
49488         * lib/unicase/u-is-invariant.h: New file.
49489         * modules/unicase/u8-is-invariant: New file.
49490
49491         Tests for module 'unicase/u32-casecoll'.
49492         * modules/unicase/u32-casecoll-tests: New file.
49493         * tests/unicase/test-u32-casecoll.c: New file.
49494
49495         Tests for module 'unicase/u16-casecoll'.
49496         * modules/unicase/u16-casecoll-tests: New file.
49497         * tests/unicase/test-u16-casecoll.c: New file.
49498
49499         Tests for module 'unicase/u8-casecoll'.
49500         * modules/unicase/u8-casecoll-tests: New file.
49501         * tests/unicase/test-u8-casecoll.c: New file.
49502
49503         New module 'unicase/u32-casecoll'.
49504         * lib/unicase/u32-casecoll.c: New file.
49505         * modules/unicase/u32-casecoll: New file.
49506
49507         New module 'unicase/u16-casecoll'.
49508         * lib/unicase/u16-casecoll.c: New file.
49509         * modules/unicase/u16-casecoll: New file.
49510
49511         New module 'unicase/u8-casecoll'.
49512         * lib/unicase/u8-casecoll.c: New file.
49513         * lib/unicase/u-casecoll.h: New file.
49514         * modules/unicase/u8-casecoll: New file.
49515
49516         New module 'unicase/u32-casexfrm'.
49517         * lib/unicase/u32-casexfrm.c: New file.
49518         * modules/unicase/u32-casexfrm: New file.
49519
49520         New module 'unicase/u16-casexfrm'.
49521         * lib/unicase/u16-casexfrm.c: New file.
49522         * modules/unicase/u16-casexfrm: New file.
49523
49524         New module 'unicase/u8-casexfrm'.
49525         * lib/unicase/u8-casexfrm.c: New file.
49526         * lib/unicase/u-casexfrm.h: New file.
49527         * modules/unicase/u8-casexfrm: New file.
49528
49529         Tests for module 'unicase/u32-casecmp'.
49530         * modules/unicase/u32-casecmp-tests: New file.
49531         * tests/unicase/test-u32-casecmp.c: New file.
49532
49533         Tests for module 'unicase/u16-casecmp'.
49534         * modules/unicase/u16-casecmp-tests: New file.
49535         * tests/unicase/test-u16-casecmp.c: New file.
49536
49537         Tests for module 'unicase/u8-casecmp'.
49538         * modules/unicase/u8-casecmp-tests: New file.
49539         * tests/unicase/test-u8-casecmp.c: New file.
49540         * tests/unicase/test-casecmp.h: New file.
49541
49542         New module 'unicase/u32-casecmp'.
49543         * lib/unicase/u32-casecmp.c: New file.
49544         * modules/unicase/u32-casecmp: New file.
49545
49546         New module 'unicase/u16-casecmp'.
49547         * lib/unicase/u16-casecmp.c: New file.
49548         * modules/unicase/u16-casecmp: New file.
49549
49550         New module 'unicase/u8-casecmp'.
49551         * lib/unicase/u8-casecmp.c: New file.
49552         * lib/unicase/u-casecmp.h: New file.
49553         * modules/unicase/u8-casecmp: New file.
49554
49555         Tests for module 'unicase/u32-casefold'.
49556         * modules/unicase/u32-casefold-tests: New file.
49557         * tests/unicase/test-u32-casefold.c: New file.
49558
49559         Tests for module 'unicase/u16-casefold'.
49560         * modules/unicase/u16-casefold-tests: New file.
49561         * tests/unicase/test-u16-casefold.c: New file.
49562
49563         Tests for module 'unicase/u8-casefold'.
49564         * modules/unicase/u8-casefold-tests: New file.
49565         * tests/unicase/test-u8-casefold.c: New file.
49566
49567         New module 'unicase/u32-casefold'.
49568         * lib/unicase/u32-casefold.c: New file.
49569         * modules/unicase/u32-casefold: New file.
49570
49571         New module 'unicase/u16-casefold'.
49572         * lib/unicase/u16-casefold.c: New file.
49573         * modules/unicase/u16-casefold: New file.
49574
49575         New module 'unicase/u8-casefold'.
49576         * lib/unicase/u8-casefold.c: New file.
49577         * lib/unicase/u-casefold.h: New file.
49578         * modules/unicase/u8-casefold: New file.
49579
49580         New module 'unicase/tocasefold'.
49581         * lib/unicase/casefold.h: New file.
49582         * lib/unicase/tocasefold.c: New file.
49583         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49584         * modules/unicase/tocasefold: New file.
49585
49586         Tests for module 'unicase/u32-totitle'.
49587         * modules/unicase/u32-totitle-tests: New file.
49588         * tests/unicase/test-u32-totitle.c: New file.
49589
49590         Tests for module 'unicase/u16-totitle'.
49591         * modules/unicase/u16-totitle-tests: New file.
49592         * tests/unicase/test-u16-totitle.c: New file.
49593
49594         Tests for module 'unicase/u8-totitle'.
49595         * modules/unicase/u8-totitle-tests: New file.
49596         * tests/unicase/test-u8-totitle.c: New file.
49597
49598         New module 'unicase/u32-totitle'.
49599         * lib/unicase/u32-totitle.c: New file.
49600         * modules/unicase/u32-totitle: New file.
49601
49602         New module 'unicase/u16-totitle'.
49603         * lib/unicase/u16-totitle.c: New file.
49604         * modules/unicase/u16-totitle: New file.
49605
49606         New module 'unicase/u8-totitle'.
49607         * lib/unicase/u8-totitle.c: New file.
49608         * lib/unicase/u-totitle.h: New file.
49609         * modules/unicase/u8-totitle: New file.
49610
49611         Tests for module 'unicase/u32-tolower'.
49612         * modules/unicase/u32-tolower-tests: New file.
49613         * tests/unicase/test-u32-tolower.c: New file.
49614
49615         Tests for module 'unicase/u16-tolower'.
49616         * modules/unicase/u16-tolower-tests: New file.
49617         * tests/unicase/test-u16-tolower.c: New file.
49618
49619         Tests for module 'unicase/u8-tolower'.
49620         * modules/unicase/u8-tolower-tests: New file.
49621         * tests/unicase/test-u8-tolower.c: New file.
49622
49623         New module 'unicase/u32-tolower'.
49624         * lib/unicase/u32-tolower.c: New file.
49625         * modules/unicase/u32-tolower: New file.
49626
49627         New module 'unicase/u16-tolower'.
49628         * lib/unicase/u16-tolower.c: New file.
49629         * modules/unicase/u16-tolower: New file.
49630
49631         New module 'unicase/u8-tolower'.
49632         * lib/unicase/u8-tolower.c: New file.
49633         * modules/unicase/u8-tolower: New file.
49634
49635         Tests for module 'unicase/u32-toupper'.
49636         * modules/unicase/u32-toupper-tests: New file.
49637         * tests/unicase/test-u32-toupper.c: New file.
49638
49639         Tests for module 'unicase/u16-toupper'.
49640         * modules/unicase/u16-toupper-tests: New file.
49641         * tests/unicase/test-u16-toupper.c: New file.
49642
49643         Tests for module 'unicase/u8-toupper'.
49644         * modules/unicase/u8-toupper-tests: New file.
49645         * tests/unicase/test-u8-toupper.c: New file.
49646
49647         New module 'unicase/u32-toupper'.
49648         * lib/unicase/u32-toupper.c: New file.
49649         * modules/unicase/u32-toupper: New file.
49650
49651         New module 'unicase/u16-toupper'.
49652         * lib/unicase/u16-toupper.c: New file.
49653         * modules/unicase/u16-toupper: New file.
49654
49655         New module 'unicase/u8-toupper'.
49656         * lib/unicase/u8-toupper.c: New file.
49657         * modules/unicase/u8-toupper: New file.
49658
49659         New module 'unicase/u32-casemap'.
49660         * lib/unicase/u32-casemap.c: New file.
49661         * modules/unicase/u32-casemap: New file.
49662
49663         New module 'unicase/u16-casemap'.
49664         * lib/unicase/u16-casemap.c: New file.
49665         * modules/unicase/u16-casemap: New file.
49666
49667         New module 'unicase/u8-casemap'.
49668         * lib/unicase/unicasemap.h: New file.
49669         * lib/unicase/u8-casemap.c: New file.
49670         * lib/unicase/u-casemap.h: New file.
49671         * modules/unicase/u8-casemap: New file.
49672
49673         New module 'unicase/special-casing'.
49674         * lib/unicase/special-casing.h: New file.
49675         * lib/unicase/special-casing.c: New file.
49676         * lib/unicase/special-casing-table.gperf: New file, generated by
49677         gen-uni-tables.c.
49678         * modules/unicase/special-casing: New file.
49679
49680         Tests for module 'unicase/locale-language'.
49681         * modules/unicase/locale-language-tests: New file.
49682         * tests/unicase/test-locale-language.sh: New file.
49683         * tests/unicase/test-locale-language.c: New file.
49684
49685         New module 'unicase/locale-language'.
49686         * lib/unicase/locale-language.c: New file.
49687         * lib/unicase/locale-languages.gperf: New file.
49688         * modules/unicase/locale-language: New file.
49689
49690         Generate more tables for case conversion and case folding.
49691         * lib/gen-uni-tables.c (SCC_*): New enum items.
49692         (struct special_casing_rule): New type.
49693         (casing_rules, num_casing_rules, allocated_casing_rules): New
49694         variables.
49695         (add_casing_rule, fill_casing_rules): New functions.
49696         (struct casefold_rule): New type.
49697         (casefolding_rules, num_casefolding_rules,
49698         allocated_casefolding_rules): New variables.
49699         (fill_casefolding_rules): New function.
49700         (unicode_casefold): New variable.
49701         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49702         sort_casing_rules, output_casing_rules): New functions.
49703         (main): Accept to more arguments: SpecialCasing.txt and
49704         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49705         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49706         Output mapping for casefolding.
49707
49708         * lib/unicase.h: Include stdbool.h, uninorm.h.
49709         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49710         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49711         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49712         arguments.
49713         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49714         resultp arguments.
49715         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49716         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49717         resultp arguments.
49718         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49719         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49720         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49721         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49722         declarations.
49723         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49724
49725 2009-03-08  Bruno Haible  <bruno@clisp.org>
49726
49727         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49728         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49729         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49730         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49731
49732 2009-03-07  Bruno Haible  <bruno@clisp.org>
49733
49734         Adjust u*_normcmp, u*_normcoll API.
49735         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49736         u16_normcoll, u32_normcoll): Change failure conventions.
49737         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49738         errno and return -1.
49739         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49740
49741 2009-03-07  Bruno Haible  <bruno@clisp.org>
49742
49743         Tests for module 'uninorm/u32-normcoll'.
49744         * modules/uninorm/u32-normcoll-tests: New file.
49745         * tests/uninorm/test-u32-normcoll.c: New file.
49746
49747         Tests for module 'uninorm/u16-normcoll'.
49748         * modules/uninorm/u16-normcoll-tests: New file.
49749         * tests/uninorm/test-u16-normcoll.c: New file.
49750
49751         Tests for module 'uninorm/u8-normcoll'.
49752         * modules/uninorm/u8-normcoll-tests: New file.
49753         * tests/uninorm/test-u8-normcoll.c: New file.
49754
49755 2009-03-07  Bruno Haible  <bruno@clisp.org>
49756
49757         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49758         tests/uninorm/test-u32-normcmp.c.
49759         * tests/uninorm/test-u32-normcmp.c: Include it.
49760         (test_nonascii): New function, extracted from main. Add some more
49761         tests.
49762         (main): Invoke test_ascii and test_nonascii.
49763         * modules/uninorm/u32-normcmp-tests (Files): Add
49764         tests/uninorm/test-u32-normcmp.h.
49765         (Depends-on): Remove uninorm/u32-normcmp.
49766
49767         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49768         tests/uninorm/test-u16-normcmp.c.
49769         * tests/uninorm/test-u16-normcmp.c: Include it.
49770         (test_nonascii): New function, extracted from main. Add some more
49771         tests.
49772         (main): Invoke test_ascii and test_nonascii.
49773         * modules/uninorm/u16-normcmp-tests (Files): Add
49774         tests/uninorm/test-u16-normcmp.h.
49775         (Depends-on): Remove uninorm/u16-normcmp.
49776
49777         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49778         tests/uninorm/test-u8-normcmp.c.
49779         * tests/uninorm/test-u8-normcmp.c: Include it.
49780         (test_nonascii): New function, extracted from main. Add some more
49781         tests.
49782         (main): Invoke test_ascii and test_nonascii.
49783         * modules/uninorm/u8-normcmp-tests (Files): Add
49784         tests/uninorm/test-u8-normcmp.h.
49785         (Depends-on): Remove uninorm/u8-normcmp.
49786
49787 2009-03-07  Bruno Haible  <bruno@clisp.org>
49788
49789         New module 'uninorm/u32-normcoll'.
49790         * lib/uninorm/u32-normcoll.c: New file.
49791         * modules/uninorm/u32-normcoll: New file.
49792
49793         New module 'uninorm/u16-normcoll'.
49794         * lib/uninorm/u16-normcoll.c: New file.
49795         * modules/uninorm/u16-normcoll: New file.
49796
49797         New module 'uninorm/u8-normcoll'.
49798         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49799         declarations.
49800         * lib/uninorm/u8-normcoll.c: New file.
49801         * lib/uninorm/u-normcoll.h: New file.
49802         * modules/uninorm/u8-normcoll: New file.
49803
49804         New module 'uninorm/u32-normxfrm'.
49805         * lib/uninorm/u32-normxfrm.c: New file.
49806         * modules/uninorm/u32-normxfrm: New file.
49807
49808         New module 'uninorm/u16-normxfrm'.
49809         * lib/uninorm/u16-normxfrm.c: New file.
49810         * modules/uninorm/u16-normxfrm: New file.
49811
49812         New module 'uninorm/u8-normxfrm'.
49813         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49814         declarations.
49815         * lib/uninorm/u8-normxfrm.c: New file.
49816         * lib/uninorm/u-normxfrm.h: New file.
49817         * modules/uninorm/u8-normxfrm: New file.
49818
49819 2009-03-07  Bruno Haible  <bruno@clisp.org>
49820
49821         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49822         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49823         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49824
49825 2009-03-07  Bruno Haible  <bruno@clisp.org>
49826
49827         New module 'memxfrm'.
49828         * lib/memxfrm.h: New file.
49829         * lib/memxfrm.c: New file.
49830         * modules/memxfrm: New file.
49831
49832 2009-03-07  Bruno Haible  <bruno@clisp.org>
49833
49834         New module 'memcmp2'.
49835         * lib/memcmp2.h: New file.
49836         * lib/memcmp2.c: New file.
49837         * modules/memcmp2: New file.
49838
49839 2009-03-07  Bruno Haible  <bruno@clisp.org>
49840
49841         Tests for module 'uninorm/decomposing-form'.
49842         * modules/uninorm/decomposing-form-tests: New file.
49843         * tests/uninorm/test-decomposing-form.c: New file.
49844
49845         New module 'uninorm/decomposing-form'.
49846         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49847         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49848         Add 'decomposing_variant' field.
49849         * lib/uninorm/decomposing-form.c: New file.
49850         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49851         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49852         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49853         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49854         * modules/uninorm/decomposing-form: New file.
49855         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49856         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49857
49858 2009-03-07  Bruno Haible  <bruno@clisp.org>
49859
49860         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49861         strings.
49862
49863 2009-03-06  Bruno Haible  <bruno@clisp.org>
49864
49865         Tests for module 'uninorm/u32-normcmp'.
49866         * tests/uninorm/test-u32-normcmp.c: New file.
49867         * modules/uninorm/u32-normcmp-tests: New file.
49868
49869         Tests for module 'uninorm/u16-normcmp'.
49870         * tests/uninorm/test-u16-normcmp.c: New file.
49871         * modules/uninorm/u16-normcmp-tests: New file.
49872
49873         Tests for module 'uninorm/u8-normcmp'.
49874         * tests/uninorm/test-u8-normcmp.c: New file.
49875         * modules/uninorm/u8-normcmp-tests: New file.
49876
49877         New module 'uninorm/u32-normcmp'.
49878         * lib/uninorm/u32-normcmp.c: New file.
49879         * modules/uninorm/u32-normcmp: New file.
49880
49881         New module 'uninorm/u16-normcmp'.
49882         * lib/uninorm/u16-normcmp.c: New file.
49883         * modules/uninorm/u16-normcmp: New file.
49884
49885         New module 'uninorm/u8-normcmp'.
49886         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49887         declarations.
49888         * lib/uninorm/u8-normcmp.c: New file.
49889         * lib/uninorm/u-normcmp.h: New file.
49890         * modules/uninorm/u8-normcmp: New file.
49891
49892 2009-03-06  Bruno Haible  <bruno@clisp.org>
49893
49894         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49895         Reported by Eric Blake.
49896
49897 2009-03-06  Eric Blake  <ebb9@byu.net>
49898             Bruno Haible  <bruno@clisp.org>
49899
49900         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49901         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49902         condition.
49903         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49904         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49905         condition.
49906         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49907
49908 2009-03-06  Eric Blake  <ebb9@byu.net>
49909
49910         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49911         to avoid compiler warnings.
49912         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49913
49914 2009-03-05  Bruno Haible  <bruno@clisp.org>
49915
49916         * tests/test-ftell.c (main): Disable test beyond end of file on
49917         FreeMiNT.
49918         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49919
49920 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49921
49922         * lib/filevercmp.c: Move hidden files up in ordering.
49923         * tests/test-filevercmp.c: Add tests for hidden files.
49924
49925 2009-03-04  Bruno Haible  <bruno@clisp.org>
49926
49927         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49928         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49929         AM_CFLAGS.
49930         Reported by Simon Josefsson.
49931
49932 2009-03-03  Bruno Haible  <bruno@clisp.org>
49933
49934         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49935         Reported by Simon Josefsson.
49936
49937         * doc/ld-version-script.texi: Update node reference.
49938
49939 2009-03-03  Bruno Haible  <bruno@clisp.org>
49940
49941         * modules/visibility (License): Change to 'unlimited'.
49942         Suggested by Simon Josefsson.
49943
49944 2009-03-03  Jim Meyering  <meyering@redhat.com>
49945
49946         unlinkdir: cannot_unlink_dir may modify process state
49947         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49948         it's neither thread-safe nor appropriate for use in a library.
49949
49950 2009-03-03  Eric Blake  <ebb9@byu.net>
49951
49952         test-closein: silence test under Darwin
49953         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49954         care if it dies from EPIPE or EBADF.
49955
49956 2009-03-03  Bruno Haible  <bruno@clisp.org>
49957
49958         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49959         earlier.
49960         * doc/visibility.texi: Fix @node and @section.
49961
49962 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49963
49964         * doc/gnulib.texi: Link to sections for ld version script and
49965         visibility.
49966         * doc/visibility.texi: Add @node and @section.
49967         * modules/ld-version-script: New module.
49968         * m4/ld-version-script.m4: New file.
49969         * doc/ld-version-script.texi: New file.
49970
49971 2009-03-02  David Lutterkort  <lutter@redhat.com>
49972
49973         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49975
49976 2009-03-02  Bruno Haible  <bruno@clisp.org>
49977
49978         * doc/visibility.texi: Mention libtool's -export-symbols option.
49979
49980 2009-03-02  Jim Meyering  <meyering@redhat.com>
49981
49982         announce-gen: new option: --no-print-checksums
49983         * build-aux/announce-gen (usage): Describe it.
49984         (print_checksums): Print a newline here, not in the [*] footnote.
49985         (main): Honor it.
49986
49987 2009-03-01  Bruno Haible  <bruno@clisp.org>
49988
49989         Use socklen_t in the native Windows replacements prototypes.
49990         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49991         instead of 'int'.
49992         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49993         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49994         * modules/getsockopt (Depends-on): Add socklen.
49995         * modules/setsockopt (Depends-on): Add socklen.
49996
49997 2009-03-01  Bruno Haible  <bruno@clisp.org>
49998
49999         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50000         least 4.2.
50001
50002 2009-03-01  Eric Blake  <ebb9@byu.net>
50003             Bruno Haible  <bruno@clisp.org>
50004
50005         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50006         error messages.
50007         * lib/wait-process.c (wait_subprocess): Omit error message about
50008         deadly signal sent to the child of termsigp != NULL.
50009
50010 2009-03-01  Eric Blake  <ebb9@byu.net>
50011
50012         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50013
50014 2009-03-01  Bruno Haible  <bruno@clisp.org>
50015
50016         Avoid a gcc warning.
50017         * tests/test-sched.c (b): Make global.
50018         Reported by Eric Blake.
50019
50020 2009-01-19  Martin Lambers  <marlam@marlam.de>
50021
50022         Provide POSIX semantics for socket timeout options on W32.
50023         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50024         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50025         * modules/setsockopt: Depend on sys_time module for struct timeval.
50026         * modules/getsockopt: Depend on sys_time module for struct timeval.
50027
50028 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50029
50030         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50031         __USE_GNU, for consistency with netdb.in.h.
50032         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50033
50034 2009-03-01  Bruno Haible  <bruno@clisp.org>
50035
50036         More support for FreeMiNT.
50037         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50038         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50039
50040 2009-03-01  Bruno Haible  <bruno@clisp.org>
50041
50042         More support for FreeMiNT.
50043         * lib/fpurge.c (fpurge): Correct last commit.
50044         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50045
50046 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50047
50048         Fix unportable awk script in vc-list-files.
50049         * build-aux/vc-list-files: In the replacement awk script, use
50050         substr with a second argument of 1, not zero.
50051         Report by Simon Josefsson.
50052
50053 2009-02-28  Bruno Haible  <bruno@clisp.org>
50054
50055         More support for FreeMiNT.
50056         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50057         to FreeMiNT today.
50058         * lib/fwriting.c (fwriting): Likewise.
50059         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50060
50061 2009-02-28  Bruno Haible  <bruno@clisp.org>
50062
50063         * tests/test-freadseek.c (main): Disable test beyond end of file on
50064         FreeMiNT.
50065         * tests/test-ftello.c (main): Likewise.
50066         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50067
50068 2009-02-28  Bruno Haible  <bruno@clisp.org>
50069
50070         Add tentative support for FreeMiNT.
50071         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50072         * lib/fpurge.c (fpurge): Likewise.
50073         * lib/freadable.c (freadable): Likewise.
50074         * lib/freading.c (freading): Likewise.
50075         * lib/freadptr.c (freadptr): Likewise.
50076         * lib/freadseek.c (freadptrinc): Likewise.
50077         * lib/fseeko.c (rpl_fseeko): Likewise.
50078         * lib/fseterr.c (fseterr): Likewise.
50079         * lib/fwritable.c (fwritable): Likewise.
50080         * lib/fwriting.c (fwriting): Likewise.
50081         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50082         Hourihane.
50083         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50084
50085 2009-02-28  Bruno Haible  <bruno@clisp.org>
50086
50087         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50088         SIGCHLD.
50089         Reported by Jim Meyering.
50090
50091 2009-02-28  Bruno Haible  <bruno@clisp.org>
50092
50093         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50094         Mention the results of these tests on various platforms.
50095         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50096         order.
50097         * doc/posix-functions/printf.texi: Likewise.
50098         * doc/posix-functions/snprintf.texi: Likewise.
50099         * doc/posix-functions/sprintf.texi: Likewise.
50100         * doc/posix-functions/vfprintf.texi: Likewise.
50101         * doc/posix-functions/vprintf.texi: Likewise.
50102         * doc/posix-functions/vsnprintf.texi: Likewise.
50103         * doc/posix-functions/vsprintf.texi: Likewise.
50104         * doc/glibc-functions/obstack_printf.texi: Likewise.
50105         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50106
50107 2009-02-28  Bruno Haible  <bruno@clisp.org>
50108
50109         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50110         Reported by Loïc Minier <lool@dooz.org>.
50111
50112 2009-02-27  Bruno Haible  <bruno@clisp.org>
50113
50114         * gnulib-tool (func_import): Make the sed expression used to create the
50115         sed script for updating the .gitignore file POSIX compliant.
50116         Reported by Eric Blake.
50117
50118 2009-02-27  Bruno Haible  <bruno@clisp.org>
50119
50120         * gnulib-tool (sed): Don't alias as "sed --posix".
50121         Reported by Eric Blake.
50122
50123 2009-02-27  Bruno Haible  <bruno@clisp.org>
50124
50125         Avoid test link errors.
50126         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50127         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50128         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50129         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50130         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50131
50132 2009-02-27  Bruno Haible  <bruno@clisp.org>
50133
50134         Avoid spurious "(cached)" in configure output.
50135         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50136         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50137         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50138         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50139         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50140         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50141         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50142         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50143         Reported by Eric Blake.
50144
50145 2009-02-27  Eric Blake  <ebb9@byu.net>
50146
50147         printf: fix regression in previous patch
50148         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50149
50150 2009-02-27  Bruno Haible  <bruno@clisp.org>
50151
50152         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50153         value.
50154         * lib/stdint.in.h: Likewise.
50155         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50156
50157 2009-02-27  Eric Blake  <ebb9@byu.net>
50158
50159         doc: mention more functions added in cygwin 1.7.0
50160         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50161         addition.
50162         * doc/posix-functions/open_wmemstream.texi: Likewise.
50163         * doc/posix-functions/wcsnlen.texi: Likewise.
50164         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50165         * doc/posix-functions/wcstod.texi: Likewise.
50166         * doc/posix-functions/wcstof.texi: Likewise.
50167         * doc/posix-functions/wcstoimax.texi: Likewise.
50168         * doc/posix-functions/wcstok.texi: Likewise.
50169         * doc/posix-functions/wcstoumax.texi: Likewise.
50170
50171         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50172         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50173         * doc/posix-functions/fprintf.texi: Update.
50174         * doc/posix-functions/printf.texi: Update.
50175         * doc/posix-functions/snprintf.texi: Update.
50176         * doc/posix-functions/sprintf.texi: Update.
50177         * doc/posix-functions/vfprintf.texi: Update.
50178         * doc/posix-functions/vprintf.texi: Update.
50179         * doc/posix-functions/vsnprintf.texi: Update.
50180         * doc/posix-functions/vsprintf.texi: Update.
50181         * doc/glibc-functions/obstack_printf.texi: Update.
50182         * doc/glibc-functions/obstack_vprintf.texi: Update.
50183
50184 2009-02-26  Eric Blake  <ebb9@byu.net>
50185
50186         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50187         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50188         compilation bug by using runtime conversion.
50189         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50190         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50191         * modules/ceill-tests (Files): Use nan.h.
50192         * modules/floorl-tests (Files): Likewise.
50193         * modules/frexpl-tests (Files): Likewise.
50194         * modules/isnanl-tests (Files): Likewise.
50195         * modules/ldexpl-tests (Files): Likewise.
50196         * modules/roundl-tests (Files): Likewise.
50197         * modules/truncl-tests (Files): Likewise.
50198         * tests/test-ceill.c (main): Use a working NaN.
50199         * tests/test-floorl.c (main): Likewise.
50200         * tests/test-frexpl.c (main): Likewise.
50201         * tests/test-isnan.c (test_long_double): Likewise.
50202         * tests/test-isnanl.h (main): Likewise.
50203         * tests/test-ldexpl.h (main): Likewise.
50204         * tests/test-roundl.h (main): Likewise.
50205         * tests/test-truncl.h (main): Likewise.
50206         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50207
50208 2009-02-26  Eric Blake  <ebb9@byu.net>
50209             Bruno Haible  <bruno@clisp.org>
50210
50211         Work around a *printf bug with %ls on Solaris.
50212         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50213         precision is specified, sprintf stops converting the wide string
50214         argument when the number of bytes that have been produced by this
50215         conversion equals or exceeds the precision.
50216         * doc/posix-functions/fprintf.texi: Update.
50217         * doc/posix-functions/printf.texi: Update.
50218         * doc/posix-functions/snprintf.texi: Update.
50219         * doc/posix-functions/sprintf.texi: Update.
50220         * doc/posix-functions/vfprintf.texi: Update.
50221         * doc/posix-functions/vprintf.texi: Update.
50222         * doc/posix-functions/vsnprintf.texi: Update.
50223         * doc/posix-functions/vsprintf.texi: Update.
50224         * doc/glibc-functions/obstack_printf.texi: Update.
50225         * doc/glibc-functions/obstack_vprintf.texi: Update.
50226
50227 2009-02-26  Eric Blake  <ebb9@byu.net>
50228
50229         stdlib: favor compiler check of random.h
50230         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50231         to avoid an ObjC random.h installed by Swarm.
50232
50233 2009-02-26  Bruno Haible  <bruno@clisp.org>
50234
50235         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50236         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50237         Reported by Gary V. Vaughan <gary@gnu.org>.
50238
50239 2009-02-26  Bruno Haible  <bruno@clisp.org>
50240
50241         Fix *printf behaviour regarding the %ls directive.
50242         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50243         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50244         NEED_PRINTF_DIRECTIVE_LS.
50245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50246         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50247         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50248         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50249         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50250         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50251         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50252         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50253         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50254         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50255         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50256         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50257         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50258         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50259         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50260         * doc/posix-functions/fprintf.texi: Update.
50261         * doc/posix-functions/printf.texi: Update.
50262         * doc/posix-functions/snprintf.texi: Update.
50263         * doc/posix-functions/sprintf.texi: Update.
50264         * doc/posix-functions/vfprintf.texi: Update.
50265         * doc/posix-functions/vprintf.texi: Update.
50266         * doc/posix-functions/vsnprintf.texi: Update.
50267         * doc/posix-functions/vsprintf.texi: Update.
50268         * doc/glibc-functions/obstack_printf.texi: Update.
50269         * doc/glibc-functions/obstack_vprintf.texi: Update.
50270         Reported by Eric Blake.
50271
50272 2009-02-25  Bruno Haible  <bruno@clisp.org>
50273
50274         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50275         with known value.
50276         Reported by Gary V. Vaughan <gary@gnu.org>.
50277
50278 2009-02-25  Bruno Haible  <bruno@clisp.org>
50279
50280         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50281         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50282         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50283         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50284         Reported by Gary V. Vaughan <gary@gnu.org>.
50285
50286 2009-02-25  Bruno Haible  <bruno@clisp.org>
50287
50288         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50289         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50290         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50291         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50292         Reported by Gary V. Vaughan <gary@gnu.org>.
50293
50294 2009-02-25  Eric Blake  <ebb9@byu.net>
50295
50296         tests: skip fseek/ftell tests if ungetc is broken
50297         * m4/ungetc.m4: New file.
50298         * modules/fseek-tests: Split test, so ungetc dependency is
50299         separate from rest of test.
50300         * modules/fseeko-tests: Likewise.
50301         * modules/ftell-tests: Likewise.
50302         * modules/ftello-tests: Likewise.
50303         * tests/test-fseek.c (main): Isolate ungetc dependency.
50304         * tests/test-fseeko.c (main): Likewise.
50305         * tests/test-ftell.c (main): Likewise.
50306         * tests/test-ftello.c (main): Likewise.
50307         * tests/test-fseek2.sh: New file.
50308         * tests/test-fseeko2.sh: Likewise.
50309         * tests/test-ftell2.sh: Likewise.
50310         * tests/test-ftello2.sh: Likewise.
50311
50312 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
50313
50314         test-getaddrinfo: fix usage of skip return code 77
50315         * tests/test-gettaddrinfo.c: Return skip code 77 only
50316         for first occurrence of skip (4x77 is not 77)
50317
50318 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50319
50320         strtod: avoid C99 decl-after-statement
50321         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50322
50323 2009-02-24  Eric Blake  <ebb9@byu.net>
50324
50325         strtod: detect HP-UX 11.31 bug
50326         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50327         Reported by Gary V. Vaughan.
50328
50329 2009-02-23  Bruno Haible  <bruno@clisp.org>
50330
50331         Fix invalid read past end of memory block.
50332         * lib/vasnprintf.c (DCHAR_SET): Define.
50333         (local_wcslen): Define only when needed.
50334         (local_strnlen, local_wcsnlen): New functions.
50335         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50336         directives that involve a conversion ourselves.
50337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50338         wcsnlen, mbrtowc, wcrtomb.
50339         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50340         * tests/test-vasprintf-posix.c (test_function): Likewise.
50341         * tests/test-snprintf-posix.h (test_function): Likewise.
50342         * tests/test-sprintf-posix.h (test_function): Likewise.
50343         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50344
50345 2009-02-22  Bruno Haible  <bruno@clisp.org>
50346
50347         Implement new clarified decomposition of Hangul syllables.
50348         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50349         of type LTV, return only a pairwise decomposition.
50350         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50351         Likewise.
50352         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50353         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50354         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50355
50356 2009-02-22  Bruno Haible  <bruno@clisp.org>
50357
50358         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50359         zero-length results and shrink excess allocated memory.
50360         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50361         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50362         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50363         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50364         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50365         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50366         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50367         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50368         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50369         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50370         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50371         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50372
50373 2009-02-21  Bruno Haible  <bruno@clisp.org>
50374
50375         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50376         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50377         spaces after a period. Put a space between a macro name and its
50378         argument list. Trivial rewordings.
50379         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50380         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50381         (main): Return 0 explicitly.
50382
50383 2009-02-21  Bruno Haible  <bruno@clisp.org>
50384
50385         Tests for module 'uninorm/filter'.
50386         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50387         * modules/uninorm/filter-tests: New file.
50388
50389         New module 'uninorm/filter'.
50390         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50391         uninorm_filter_flush, uninorm_filter_free): New declarations.
50392         * lib/uninorm/uninorm-filter.c: New file.
50393         * modules/uninorm/filter: New file.
50394
50395 2009-02-21  Bruno Haible  <bruno@clisp.org>
50396
50397         Tests for module 'uninorm/nfkc'.
50398         * tests/uninorm/test-nfkc.c: New file.
50399         * tests/uninorm/test-u8-nfkc.c: New file.
50400         * tests/uninorm/test-u16-nfkc.c: New file.
50401         * tests/uninorm/test-u32-nfkc.c: New file.
50402         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50403         * tests/uninorm/test-u32-nfkc-big.c: New file.
50404         * modules/uninorm/nfkc-tests: New file.
50405
50406         New module 'uninorm/nfkc'.
50407         * lib/uninorm/nfkc.c: New file.
50408         * modules/uninorm/nfkc: New file.
50409
50410         Tests for module 'uninorm/nfkd'.
50411         * tests/uninorm/test-nfkd.c: New file.
50412         * tests/uninorm/test-u8-nfkd.c: New file.
50413         * tests/uninorm/test-u16-nfkd.c: New file.
50414         * tests/uninorm/test-u32-nfkd.c: New file.
50415         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50416         * tests/uninorm/test-u32-nfkd-big.c: New file.
50417         * modules/uninorm/nfkd-tests: New file.
50418
50419         New module 'uninorm/nfkd'.
50420         * lib/uninorm/nfkd.c: New file.
50421         * modules/uninorm/nfkd: New file.
50422
50423         Tests for module 'uninorm/nfc'.
50424         * tests/uninorm/test-nfc.c: New file.
50425         * tests/uninorm/test-u8-nfc.c: New file.
50426         * tests/uninorm/test-u16-nfc.c: New file.
50427         * tests/uninorm/test-u32-nfc.c: New file.
50428         * tests/uninorm/test-u32-nfc-big.sh: New file.
50429         * tests/uninorm/test-u32-nfc-big.c: New file.
50430         * modules/uninorm/nfc-tests: New file.
50431
50432         New module 'uninorm/nfc'.
50433         * lib/uninorm/nfc.c: New file.
50434         * modules/uninorm/nfc: New file.
50435
50436         Tests for module 'uninorm/nfd'.
50437         * tests/uninorm/test-nfd.c: New file.
50438         * tests/uninorm/test-u8-nfd.c: New file.
50439         * tests/uninorm/test-u16-nfd.c: New file.
50440         * tests/uninorm/test-u32-nfd.c: New file.
50441         * tests/uninorm/test-u32-nfd-big.sh: New file.
50442         * tests/uninorm/test-u32-nfd-big.c: New file.
50443         * tests/uninorm/test-u32-normalize-big.h: New file.
50444         * tests/uninorm/test-u32-normalize-big.c: New file.
50445         * tests/uninorm/NormalizationTest.txt: New file, created from
50446         Unicode 5.1.0 NormalizationTest.txt.
50447         * modules/uninorm/nfd-tests: New file.
50448
50449         New module 'uninorm/nfd'.
50450         * lib/uninorm/nfd.c: New file.
50451         * modules/uninorm/nfd: New file.
50452
50453         New module 'uninorm/u32-normalize'.
50454         * lib/uninorm/u32-normalize.c: New file.
50455         * modules/uninorm/u32-normalize: New file.
50456
50457         New module 'uninorm/u16-normalize'.
50458         * lib/uninorm/u16-normalize.c: New file.
50459         * modules/uninorm/u16-normalize: New file.
50460
50461         New module 'uninorm/u8-normalize'.
50462         * lib/uninorm/u8-normalize.c: New file.
50463         * lib/uninorm/normalize-internal.h: New file.
50464         * lib/uninorm/u-normalize-internal.h: New file.
50465         * modules/uninorm/u8-normalize: New file.
50466
50467         New module 'uninorm/decompose-internal'.
50468         * lib/uninorm/decompose-internal.c: New file.
50469         * modules/uninorm/decompose-internal: New file.
50470
50471         Tests for module 'uninorm/composition'.
50472         * tests/uninorm/test-composition.c: New file.
50473         * modules/uninorm/composition-tests: New file.
50474
50475         New module 'uninorm/composition'.
50476         * lib/uninorm/composition.c: New file.
50477         * lib/uninorm/composition-table.gperf: New file, generated by
50478         gen-uni-tables.
50479         * modules/uninorm/composition: New file.
50480
50481         Tests for module 'uninorm/compat-decomposition'.
50482         * tests/uninorm/test-compat-decomposition.c: New file.
50483         * modules/uninorm/compat-decomposition-tests: New file.
50484
50485         New module 'uninorm/compat-decomposition'.
50486         * lib/uninorm/decompose-internal.h: New file.
50487         * lib/uninorm/compat-decomposition.c: New file.
50488         * modules/uninorm/compat-decomposition: New file.
50489
50490         Tests for module 'uninorm/canonical-decomposition'.
50491         * tests/uninorm/test-canonical-decomposition.c: New file.
50492         * modules/uninorm/canonical-decomposition-tests: New file.
50493
50494         New module 'uninorm/canonical-decomposition'.
50495         * lib/uninorm/canonical-decomposition.c: New file.
50496         * modules/uninorm/canonical-decomposition: New file.
50497
50498         Tests for module 'uninorm/decomposition'.
50499         * tests/uninorm/test-decomposition.c: New file.
50500         * modules/uninorm/decomposition-tests: New file.
50501
50502         New module 'uninorm/decomposition'.
50503         * lib/uninorm/decomposition.c: New file.
50504         * modules/uninorm/decomposition: New file.
50505
50506         New module 'uninorm/decomposition-table'.
50507         * lib/uninorm/decomposition-table.h: New file.
50508         * lib/uninorm/decomposition-table.c: New file.
50509         * lib/uninorm/decomposition-table1.h: New file, generated by
50510         gen-uni-tables.
50511         * lib/uninorm/decomposition-table2.h: New file, generated by
50512         gen-uni-tables.
50513         * modules/uninorm/decomposition-table: New file.
50514
50515         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50516         (UC_DECOMP_*): New enumeration items.
50517         (get_decomposition): New function.
50518         (struct decomp_table): New type.
50519         (output_decomposition, output_decomposition_tables): New functions.
50520         (unicode_composition_exclusions): New variable.
50521         (fill_composition_exclusions, debug_output_composition_tables): New
50522         functions.
50523         (main): Accept one more argument. Invoke fill_composition_exclusions.
50524         Output decomposition and composition tables.
50525
50526         New module 'uninorm/base'.
50527         * lib/uninorm.h: New file.
50528         * lib/unictype.h: Update comment.
50529         * modules/uninorm/base: New file.
50530
50531 2009-02-21  David Lutterkort  <lutter@redhat.com>
50532
50533         Tests for module 'safe-alloc'.
50534         * tests/test-safe-alloc.c: New file.
50535         * modules/safe-alloc-tests: New file.
50536
50537         New module 'safe-alloc'.
50538         * lib/safe-alloc.h: New file.
50539         * lib/safe-alloc.c: New file.
50540         * m4/safe-alloc.m4: New file.
50541         * modules/safe-alloc: New file.
50542         * doc/safe-alloc.texi: New file.
50543         * doc/gnulib.texi: Include it.
50544         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50545         safe-alloc.
50546
50547 2009-02-18  Bruno Haible  <bruno@clisp.org>
50548
50549         Fix link error on non-glibc systems.
50550         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50551         variable.
50552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50553
50554 2009-02-18  Jim Meyering  <meyering@redhat.com>
50555
50556         fts: avoid used-uninitialized error due to recent change
50557         * lib/fts.c (fts_read): Guard uses of the new member,
50558         parent->fts_n_dirs_remaining, since it's not relevant for
50559         the parent of a directory specified on the command-line.
50560
50561 2009-02-17  James Youngman  <jay@gnu.org>
50562             Bruno Haible  <bruno@clisp.org>
50563
50564         * m4/include_next.m4: Reformulate comment.
50565
50566 2009-02-16  Jim Meyering  <meyering@redhat.com>
50567
50568         fts: add #if guards so that the fts_lgpl module still builds
50569         * lib/fts.c: Guard just-added hash-table-using parts with
50570         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50571         Reported by Simon Josefsson.
50572
50573 2009-02-15  Bruno Haible  <bruno@clisp.org>
50574
50575         * modules/array-mergesort-tests: New file.
50576         * tests/test-array-mergesort.c: New file.
50577
50578         New module 'array-mergesort'.
50579         * modules/array-mergesort: New file.
50580         * lib/array-mergesort.h: New file.
50581
50582 2009-02-15  Bruno Haible  <bruno@clisp.org>
50583
50584         Fix 2009-02-07 commit.
50585         * lib/gen-uni-tables.c (output_predicate, output_category,
50586         output_combclass, output_bidi_category, output_decimal_digit,
50587         output_digit, output_numeric, output_mirror, output_scripts,
50588         output_ident_category, output_simple_mapping): Fix format directives.
50589         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50590
50591 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50592
50593         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50594         fixes are available from IBM.
50595
50596 2009-02-13  Jim Meyering  <meyering@redhat.com>
50597
50598         fts: arrange not to stat non-directories in more cases
50599         This makes GNU find (when it doesn't need to stat each file)
50600         *much* more efficient at traversing reiserfs file systems.
50601         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50602         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50603         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50604         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50605         (leaf_optimization_applies): New function.
50606         (LCO_hash, LCO_compare): New helper functions.
50607         (link_count_optimize_ok): New function.
50608         (fts_stat): Initialize new member (if dir).
50609         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50610         we've just stat'ed a directory.  Skip the stat call when possible.
50611         ---
50612         Note this AFS-related exchange:
50613         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50614         and note find's pioctl call in find/fstype.c.
50615         But that is necessary only if you want to enable the
50616         optimization for AFS, and for now, I don't.
50617
50618         fts: move a function definition "up" (no semantic change)
50619         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50620         "up" to precede upcoming use of a related function.
50621
50622 2009-02-11  Jim Meyering  <meyering@redhat.com>
50623
50624         fts: correct internal computation of nlinks (optimization-related)
50625         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50626         whether the current entry is a directory, so don't test it.
50627
50628 2009-02-10  Bruno Haible  <bruno@clisp.org>
50629
50630         Tests for module 'uniwbrk/ulc-wordbreaks'.
50631         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50632         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50633         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50634
50635         Tests for module 'uniwbrk/u32-wordbreaks'.
50636         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50637         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50638
50639         Tests for module 'uniwbrk/u16-wordbreaks'.
50640         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50641         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50642
50643         Tests for module 'uniwbrk/u8-wordbreaks'.
50644         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50645         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50646
50647 2009-02-10  Bruno Haible  <bruno@clisp.org>
50648
50649         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50650         property.
50651         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50652         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50653         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50654
50655 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50656
50657         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50658         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50659
50660 2009-02-10  Bruno Haible  <bruno@clisp.org>
50661
50662         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50663         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50664         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50665         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50666         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50667         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50668
50669 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50670
50671         * lib/sockets.h (gl_fd_to_handle): New function.
50672
50673         * tests/test-sockets.c: Call gl_fd_to_handle.
50674
50675 2009-02-09  Bruno Haible  <bruno@clisp.org>
50676
50677         * doc/havelib.texi: Document the conventions on bi-arch systems.
50678
50679 2009-02-08  Bruno Haible  <bruno@clisp.org>
50680
50681         Document the AC_LIB_LINKFLAGS macro.
50682         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50683         * doc/gnulib.texi: Include it.
50684
50685 2009-02-08  Bruno Haible  <bruno@clisp.org>
50686
50687         Fix wrong order of sections, compared to TOC.
50688         * doc/gnulib.texi: Include relocatable-maint.texi after the
50689         "Regular expressions" node, not before.
50690
50691 2009-02-08  Bruno Haible  <bruno@clisp.org>
50692
50693         Tests for module 'unicase/totitle'.
50694         * modules/unicase/totitle-tests: New file.
50695
50696         Tests for module 'unicase/tolower'.
50697         * modules/unicase/tolower-tests: New file.
50698
50699         Tests for module 'unicase/toupper'.
50700         * modules/unicase/toupper-tests: New file.
50701         * tests/unicase/test-mapping-part1.h: New file.
50702         * tests/unicase/test-mapping-part2.h: New file.
50703
50704         New module 'unicase/totitle'.
50705         * modules/unicase/totitle: New file.
50706         * lib/unicase/totitle.c: New file.
50707
50708         New module 'unicase/tolower'.
50709         * modules/unicase/tolower: New file.
50710         * lib/unicase/tolower.c: New file.
50711
50712         New module 'unicase/toupper'.
50713         * modules/unicase/toupper: New file.
50714         * lib/unicase/toupper.c: New file.
50715         * lib/unicase/simple-mapping.h: New file.
50716
50717         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50718         (mapping_table): New structure.
50719         (output_simple_mapping): New function.
50720         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50721         * modules/gen-uni-tables (Description): Update.
50722         * lib/unicase/toupper.h: New file, automatically generated by
50723         gen-uni-tables.
50724         * lib/unicase/tolower.h: New file, automatically generated by
50725         gen-uni-tables.
50726         * lib/unicase/totitle.h: New file, automatically generated by
50727         gen-uni-tables.
50728         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50729         gen-uni-tables.
50730         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50731         gen-uni-tables.
50732         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50733         gen-uni-tables.
50734
50735         New module 'unicase/base'.
50736         * modules/unicase/base: New file.
50737         * lib/unicase.h: New file.
50738
50739 2009-02-08  Bruno Haible  <bruno@clisp.org>
50740
50741         New module 'uniwbrk/ulc-wordbreaks'.
50742         * modules/uniwbrk/ulc-wordbreaks: New file.
50743         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50744
50745         New module 'uniwbrk/u32-wordbreaks'.
50746         * modules/uniwbrk/u32-wordbreaks: New file.
50747         * lib/uniwbrk/u32-wordbreaks.c: New file.
50748
50749         New module 'uniwbrk/u16-wordbreaks'.
50750         * modules/uniwbrk/u16-wordbreaks: New file.
50751         * lib/uniwbrk/u16-wordbreaks.c: New file.
50752
50753         New module 'uniwbrk/u8-wordbreaks'.
50754         * modules/uniwbrk/u8-wordbreaks: New file.
50755         * lib/uniwbrk/u8-wordbreaks.c: New file.
50756         * lib/uniwbrk/u-wordbreaks.h: New file.
50757
50758         New module 'uniwbrk/table'.
50759         * modules/uniwbrk/table: New file.
50760         * lib/uniwbrk/wbrktable.h: New file.
50761         * lib/uniwbrk/wbrktable.c: New file.
50762
50763         New module 'uniwbrk/wordbreak-property'.
50764         * modules/uniwbrk/wordbreak-property: New file.
50765         * lib/uniwbrk/wordbreak-property.c: New file.
50766
50767         * lib/gen-uni-tables.c (WBP_*): New enum items.
50768         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50769         (unicode_org_wbp): New variable.
50770         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50771         New functions.
50772         (wbp_table): New structure.
50773         (output_wbp, output_wbrk_tables): New functions.
50774         (main): Accept additional argument. Invoke fill_org_wbp,
50775         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50776         output_wbrk_tables.
50777         * modules/gen-uni-tables (Description): Update.
50778         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50779         gen-uni-tables.
50780
50781         New module 'uniwbrk/base'.
50782         * modules/uniwbrk/base: New file.
50783         * lib/uniwbrk.h: New file.
50784
50785 2009-02-08  Bruno Haible  <bruno@clisp.org>
50786
50787         Update to Unicode 5.1.0.
50788         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50789         U+2185..U+2188.
50790         (is_property_default_ignorable_code_point): Don't include characters
50791         of category Cc or Cs and not-a-characters.
50792         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50793         U+0D79, U+109E, U+109F, U+A60C.
50794         * lib/unictype/bidi_of.h: Regenerated.
50795         * lib/unictype/blocks.h: Regenerated.
50796         * lib/unictype/categ_C.h: Regenerated.
50797         * lib/unictype/categ_Cf.h: Regenerated.
50798         * lib/unictype/categ_Cn.h: Regenerated.
50799         * lib/unictype/categ_L.h: Regenerated.
50800         * lib/unictype/categ_Ll.h: Regenerated.
50801         * lib/unictype/categ_Lm.h: Regenerated.
50802         * lib/unictype/categ_Lo.h: Regenerated.
50803         * lib/unictype/categ_Lu.h: Regenerated.
50804         * lib/unictype/categ_M.h: Regenerated.
50805         * lib/unictype/categ_Mc.h: Regenerated.
50806         * lib/unictype/categ_Me.h: Regenerated.
50807         * lib/unictype/categ_Mn.h: Regenerated.
50808         * lib/unictype/categ_N.h: Regenerated.
50809         * lib/unictype/categ_Nd.h: Regenerated.
50810         * lib/unictype/categ_Nl.h: Regenerated.
50811         * lib/unictype/categ_No.h: Regenerated.
50812         * lib/unictype/categ_P.h: Regenerated.
50813         * lib/unictype/categ_Pd.h: Regenerated.
50814         * lib/unictype/categ_Pe.h: Regenerated.
50815         * lib/unictype/categ_Pf.h: Regenerated.
50816         * lib/unictype/categ_Pi.h: Regenerated.
50817         * lib/unictype/categ_Po.h: Regenerated.
50818         * lib/unictype/categ_Ps.h: Regenerated.
50819         * lib/unictype/categ_S.h: Regenerated.
50820         * lib/unictype/categ_Sk.h: Regenerated.
50821         * lib/unictype/categ_Sm.h: Regenerated.
50822         * lib/unictype/categ_So.h: Regenerated.
50823         * lib/unictype/categ_of.h: Regenerated.
50824         * lib/unictype/combining.h: Regenerated.
50825         * lib/unictype/ctype_alnum.h: Regenerated.
50826         * lib/unictype/ctype_alpha.h: Regenerated.
50827         * lib/unictype/ctype_graph.h: Regenerated.
50828         * lib/unictype/ctype_lower.h: Regenerated.
50829         * lib/unictype/ctype_print.h: Regenerated.
50830         * lib/unictype/ctype_punct.h: Regenerated.
50831         * lib/unictype/ctype_upper.h: Regenerated.
50832         * lib/unictype/decdigit.h: Regenerated.
50833         * lib/unictype/digit.h: Regenerated.
50834         * lib/unictype/mirror.h: Regenerated.
50835         * lib/unictype/numeric.h: Regenerated.
50836         * lib/unictype/pr_alphabetic.h: Regenerated.
50837         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50838         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50839         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50840         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50841         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50842         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50843         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50844         * lib/unictype/pr_combining.h: Regenerated.
50845         * lib/unictype/pr_dash.h: Regenerated.
50846         * lib/unictype/pr_decimal_digit.h: Regenerated.
50847         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50848         * lib/unictype/pr_deprecated.h: Regenerated.
50849         * lib/unictype/pr_diacritic.h: Regenerated.
50850         * lib/unictype/pr_extender.h: Regenerated.
50851         * lib/unictype/pr_format_control.h: Regenerated.
50852         * lib/unictype/pr_grapheme_base.h: Regenerated.
50853         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50854         * lib/unictype/pr_grapheme_link.h: Regenerated.
50855         * lib/unictype/pr_id_continue.h: Regenerated.
50856         * lib/unictype/pr_id_start.h: Regenerated.
50857         * lib/unictype/pr_ideographic.h: Regenerated.
50858         * lib/unictype/pr_ignorable_control.h: Regenerated.
50859         * lib/unictype/pr_lowercase.h: Regenerated.
50860         * lib/unictype/pr_math.h: Regenerated.
50861         * lib/unictype/pr_numeric.h: Regenerated.
50862         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50863         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50864         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50865         * lib/unictype/pr_other_id_continue.h: Regenerated.
50866         * lib/unictype/pr_other_lowercase.h: Regenerated.
50867         * lib/unictype/pr_other_math.h: Regenerated.
50868         * lib/unictype/pr_punctuation.h: Regenerated.
50869         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50870         * lib/unictype/pr_soft_dotted.h: Regenerated.
50871         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50872         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50873         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50874         * lib/unictype/pr_uppercase.h: Regenerated.
50875         * lib/unictype/pr_xid_continue.h: Regenerated.
50876         * lib/unictype/pr_xid_start.h: Regenerated.
50877         * lib/unictype/pr_zero_width.h: Regenerated.
50878         * lib/unictype/scripts.h: Regenerated.
50879         * lib/unictype/scripts_byname.gperf: Regenerated.
50880         * lib/unictype/sy_java_ident.h: Regenerated.
50881         * lib/unilbrk/lbrkprop1.h: Regenerated.
50882         * lib/unilbrk/lbrkprop2.h: Regenerated.
50883         * tests/unictype/test-categ_C.c: Regenerated.
50884         * tests/unictype/test-categ_Cf.c: Regenerated.
50885         * tests/unictype/test-categ_Cn.c: Regenerated.
50886         * tests/unictype/test-categ_L.c: Regenerated.
50887         * tests/unictype/test-categ_Ll.c: Regenerated.
50888         * tests/unictype/test-categ_Lm.c: Regenerated.
50889         * tests/unictype/test-categ_Lo.c: Regenerated.
50890         * tests/unictype/test-categ_Lu.c: Regenerated.
50891         * tests/unictype/test-categ_M.c: Regenerated.
50892         * tests/unictype/test-categ_Mc.c: Regenerated.
50893         * tests/unictype/test-categ_Me.c: Regenerated.
50894         * tests/unictype/test-categ_Mn.c: Regenerated.
50895         * tests/unictype/test-categ_N.c: Regenerated.
50896         * tests/unictype/test-categ_Nd.c: Regenerated.
50897         * tests/unictype/test-categ_Nl.c: Regenerated.
50898         * tests/unictype/test-categ_No.c: Regenerated.
50899         * tests/unictype/test-categ_P.c: Regenerated.
50900         * tests/unictype/test-categ_Pd.c: Regenerated.
50901         * tests/unictype/test-categ_Pe.c: Regenerated.
50902         * tests/unictype/test-categ_Pf.c: Regenerated.
50903         * tests/unictype/test-categ_Pi.c: Regenerated.
50904         * tests/unictype/test-categ_Po.c: Regenerated.
50905         * tests/unictype/test-categ_Ps.c: Regenerated.
50906         * tests/unictype/test-categ_S.c: Regenerated.
50907         * tests/unictype/test-categ_Sk.c: Regenerated.
50908         * tests/unictype/test-categ_Sm.c: Regenerated.
50909         * tests/unictype/test-categ_So.c: Regenerated.
50910         * tests/unictype/test-ctype_alnum.c: Regenerated.
50911         * tests/unictype/test-ctype_alpha.c: Regenerated.
50912         * tests/unictype/test-ctype_graph.c: Regenerated.
50913         * tests/unictype/test-ctype_lower.c: Regenerated.
50914         * tests/unictype/test-ctype_print.c: Regenerated.
50915         * tests/unictype/test-ctype_punct.c: Regenerated.
50916         * tests/unictype/test-ctype_upper.c: Regenerated.
50917         * tests/unictype/test-decdigit.h: Regenerated.
50918         * tests/unictype/test-digit.h: Regenerated.
50919         * tests/unictype/test-numeric.h: Regenerated.
50920         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50921         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50922         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50923         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50924         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50925         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50926         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50927         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50928         * tests/unictype/test-pr_combining.c: Regenerated.
50929         * tests/unictype/test-pr_dash.c: Regenerated.
50930         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50931         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50932         * tests/unictype/test-pr_deprecated.c: Regenerated.
50933         * tests/unictype/test-pr_diacritic.c: Regenerated.
50934         * tests/unictype/test-pr_extender.c: Regenerated.
50935         * tests/unictype/test-pr_format_control.c: Regenerated.
50936         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50937         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50938         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50939         * tests/unictype/test-pr_id_continue.c: Regenerated.
50940         * tests/unictype/test-pr_id_start.c: Regenerated.
50941         * tests/unictype/test-pr_ideographic.c: Regenerated.
50942         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50943         * tests/unictype/test-pr_lowercase.c: Regenerated.
50944         * tests/unictype/test-pr_math.c: Regenerated.
50945         * tests/unictype/test-pr_numeric.c: Regenerated.
50946         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50947         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50948         Regenerated.
50949         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50950         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50951         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50952         * tests/unictype/test-pr_other_math.c: Regenerated.
50953         * tests/unictype/test-pr_punctuation.c: Regenerated.
50954         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50955         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50956         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50957         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50958         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50959         * tests/unictype/test-pr_uppercase.c: Regenerated.
50960         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50961         * tests/unictype/test-pr_xid_start.c: Regenerated.
50962         * tests/unictype/test-pr_zero_width.c: Regenerated.
50963
50964         Update to Unicode 5.1.0.
50965         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50966         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50967         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50968         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50969         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50970         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50971         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50972         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50973         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50974         (nonspacing_table_ind): Update.
50975         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50976
50977         Update to Unicode 5.1.0.
50978         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50979         code transform.
50980         * lib/uniname/uniname.c (unicode_character_name,
50981         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50982         * lib/uniname/uninames.h: Regenerated.
50983         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50984
50985 2009-02-07  Bruno Haible  <bruno@clisp.org>
50986
50987         Merge gen-ctype and gen-lbrk into a single program.
50988         * lib/gen-uni-tables.c: New file, incorporating
50989         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50990         Add directory prefixes to the names of the generated files.
50991         * lib/unictype/gen-ctype.c: Remove file.
50992         * lib/unilbrk/gen-lbrk.c: Remove file.
50993         * modules/gen-uni-tables: New file.
50994         * modules/unictype/gen-ctype: Remove file.
50995         * modules/unilbrk/gen-lbrk: Remove file.
50996
50997 2009-02-07  Bruno Haible  <bruno@clisp.org>
50998
50999         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51000
51001         New module 'unistr/u32-strcoll'.
51002         * modules/unistr/u32-strcoll: New file.
51003         * lib/unistr/u32-strcoll.c: New file.
51004
51005         New module 'unistr/u16-strcoll'.
51006         * modules/unistr/u16-strcoll: New file.
51007         * lib/unistr/u16-strcoll.c: New file.
51008
51009         New module 'unistr/u8-strcoll'.
51010         * modules/unistr/u8-strcoll: New file.
51011         * lib/unistr/u8-strcoll.c: New file.
51012         * lib/unistr/u-strcoll.h: New file.
51013
51014 2009-02-07  Bruno Haible  <bruno@clisp.org>
51015
51016         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51017         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51018         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51019         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51020         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51021         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51022
51023 2009-02-07  Bruno Haible  <bruno@clisp.org>
51024
51025         Make 64-bit clean.
51026         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51027         output_combclass, output_bidi_category, output_decimal_digit,
51028         output_digit, output_numeric, output_mirror, output_scripts,
51029         output_ident_category): Use proper width specifier in format strings.
51030
51031 2009-02-07  Bruno Haible  <bruno@clisp.org>
51032
51033         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51034         failure behaviour.
51035
51036 2009-02-07  Jim Meyering  <meyering@redhat.com>
51037
51038         regex: avoid compilation failure with upcoming gcc-4.4
51039         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51040         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51041         "... error: integer overflow in preprocessor expression".
51042
51043 2009-02-05  Ben Pfaff  <blp@gnu.org>
51044
51045         Fix link errors on Windows when close module is used.
51046         * modules/close: Add $(LIB_CLOSE) to Link section.
51047         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51048         $(LIB_CLOSE) on Windows.
51049
51050 2009-02-05  Jim Meyering  <meyering@redhat.com>
51051
51052         still avoid unused-parameter warnings, but do it cleanly
51053         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51054         (get_fs_usage): Cast to void instead.
51055         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51056         (dev_from_mount_options, read_file_system_list): Cast to void.
51057         Prompted by Bruno Haible.
51058
51059 2009-02-04  Jim Meyering  <meyering@redhat.com>
51060
51061         fsusage.c: correct copyright year
51062         * lib/fsusage.c: Reflect year in which the change is pushed into
51063
51064         avoid misc. warnings
51065         * lib/fsusage.c (UNUSED_PARAM): Define.
51066         (get_fs_usage): Mark parameter "disk" as unused.
51067         * lib/getugroups.c (getgrent): Use "void" in prototype.
51068         * lib/mountlist.c: Mark unused parameters.
51069         (read_file_system_list): Declare a local with "const".
51070         * lib/nanosleep.c (getnow): Declare static.
51071         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51072
51073         dirfd: set errno upon failure
51074         * lib/dirfd.c: Include <errno.h>.
51075         Set errno to ENOTSUP when returning -1.
51076         * modules/dirfd (Depends-on): Add errno.
51077         Suggested by John Kodis <kodis@comcast.net>.
51078
51079 2009-02-01  Bruno Haible  <bruno@clisp.org>
51080
51081         Don't assume sizeof (long) >= sizeof (void *).
51082         * lib/memcmp.c: Include stdint.h.
51083         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51084         srcp2 to 'const byte *'.
51085         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51086         types to uintptr_t.
51087         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51088         * modules/memcmp (Depends-on): Add stdint.
51089         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51090
51091 2009-01-30  Eric Blake  <ebb9@byu.net>
51092
51093         fix more require-before-expand issues
51094         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51095         expand, AC_PROG_AWK.
51096         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51097
51098 2009-01-28  Eric Blake  <ebb9@byu.net>
51099
51100         version-etc: use consistent URL formatting
51101         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51102         Improve formatting.  Use fputs for string without %.
51103
51104 2009-01-28  Jim Meyering  <meyering@redhat.com>
51105
51106         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51107         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51108         "underquoted definition of NAME" from autoconf-2.59.
51109
51110 2009-01-28  Bruno Haible  <bruno@clisp.org>
51111
51112         * doc/gnulib.texi: Add "Obsolete modules" to index.
51113
51114 2009-01-28  Jim Meyering  <meyering@redhat.com>
51115
51116         useless-if-before-free: recognize more variants
51117         * build-aux/useless-if-before-free: Also recognize e.g.,
51118         if (NULL != p) free (p);
51119
51120 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51121
51122         test-getaddrinfo: skip (don't fail) this test when there's no network
51123         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51124         on the presumption that it means you lack network access.
51125
51126 2009-01-26  Jim Meyering  <meyering@redhat.com>
51127
51128         fflush: avoid warnings on modern systems
51129         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51130         pos and result, into scopes where they're used.
51131
51132 2009-01-26  Eric Blake  <ebb9@byu.net>
51133
51134         Silence warning reintroduced by recent extensions patch.
51135         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51136         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51137         autoconf.
51138
51139         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51140         * m4/00gnulib.m4: New file.
51141         * gnulib-tool (func_get_filelist): Always use it.
51142         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51143         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51144
51145 2009-01-25  Bruno Haible  <bruno@clisp.org>
51146
51147         Make test-quotearg work on MacOS X and AIX.
51148         * tests/test-quotearg.sh: New file.
51149         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51150         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51151         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51152         include <libintl.h>.
51153         (fake_locale): Remove variable.
51154         (gettext, dgettext, dcgettext): Remove functions.
51155         (main): Instead of setting a fake locale, set a real locale. Call
51156         textdomain and bindtextdomain.
51157         * modules/quotearg-tests (Files): Add the new files.
51158         (Depends-on): Add gettext, setenv, unsetenv.
51159         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51160         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51161         Augment TESTS_ENVIRONMENT.
51162
51163 2009-01-25  Bruno Haible  <bruno@clisp.org>
51164
51165         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51166         fr_FR.ISO8859-1 locale on MacOS X.
51167         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51168         ja_JP.eucJP locale on MacOS X.
51169         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51170         zh_CN.GB18030 locale on MacOS X.
51171
51172 2009-01-25  Bruno Haible  <bruno@clisp.org>
51173
51174         Avoid link errors on MacOS X 10.3.
51175         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51176         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51177
51178 2009-01-25  Bruno Haible  <bruno@clisp.org>
51179
51180         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51181         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51182         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51183         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51184         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51185         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51186         posix_spawnattr_init, posix_spawnattr_setsigmask,
51187         posix_spawnattr_setflags, posix_spawnattr_destroy.
51188
51189         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51190         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51191         * modules/execute (Files): Remove m4/posix_spawn.m4.
51192         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51193         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51194         posix_spawnattr_init, posix_spawnattr_setsigmask,
51195         posix_spawnattr_setflags, posix_spawnattr_destroy.
51196
51197 2009-01-25  Bruno Haible  <bruno@clisp.org>
51198
51199         * lib/glthread/threadlib.c: Include <stdlib.h>.
51200
51201 2009-01-25  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/glthread/threadlib.c (dummy): New declaration.
51204
51205 2009-01-25  Bruno Haible  <bruno@clisp.org>
51206
51207         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51208         multibyte characters also for the GB18030 encoding. Don't crash when
51209         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51210
51211 2009-01-25  Bruno Haible  <bruno@clisp.org>
51212
51213         Avoid redefining 'struct random_data' on OSF/1 5.1.
51214         * lib/stdlib.in.h: Include <random.h> if it exists.
51215         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51216         HAVE_RANDOM_H. Include <random.h> when testing whether
51217         'struct random_data' exists.
51218         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51219
51220 2009-01-25  Bruno Haible  <bruno@clisp.org>
51221
51222         Don't install charset.alias on MacOS X >= 10.3.
51223         * lib/localcharset.c (DARWIN7): New macro.
51224         (get_charset_aliases): Hardcode the result for Darwin7.
51225         * modules/localcharset (install-exec-local): Don't install
51226         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51227
51228 2009-01-25  Bruno Haible  <bruno@clisp.org>
51229
51230         Don't install charset.alias on mingw and Cygwin.
51231         * modules/localcharset (install-exec-local): Don't install
51232         charset.alias on mingw and Cygwin, if the file does not yet exist.
51233         The result for these platforms is hardcoded in localcharset.c.
51234
51235 2009-01-25  Bruno Haible  <bruno@clisp.org>
51236
51237         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51238         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51239         before requiring AC_USE_SYSTEM_EXTENSIONS.
51240
51241 2009-01-25  Jim Meyering  <meyering@redhat.com>
51242
51243         c-strtod: avoid warnings
51244         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51245         "assignment discards qualifiers from pointer target type" warnings.
51246
51247 2009-01-24  Bruno Haible  <bruno@clisp.org>
51248
51249         Add support for non-UTF-8 locales on MacOS X.
51250         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51251         canonical encodings. For Darwin 7 and newer, don't map traditional
51252         encodings to UTF-8.
51253         Reported by Vincent Lefevre <vincent@vinc17.org>
51254         at <http://savannah.gnu.org/bugs/?25235>.
51255
51256 2009-01-24  Bruno Haible  <bruno@clisp.org>
51257
51258         * doc/gnulib.texi (Obsolete modules): New section.
51259         Reported by Mike Frysinger <vapier@gentoo.org>.
51260
51261 2009-01-24  Bruno Haible  <bruno@clisp.org>
51262
51263         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51264         (%.dvi): New rule.
51265
51266 2009-01-24  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51269         Reported by Eric Blake.
51270
51271 2009-01-24  Bruno Haible  <bruno@clisp.org>
51272
51273         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51274         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51275         Reported by Gary V. Vaughan <gary@gnu.org>.
51276
51277 2009-01-24  Bruno Haible  <bruno@clisp.org>
51278
51279         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51280
51281 2009-01-23  Bruno Haible  <bruno@clisp.org>
51282
51283         Make c-strtod, c-strtold usable in libraries.
51284         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51285         (C_STRTOD): Call strdup instead of xstrdup.
51286         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51287         * modules/c-strtold (Depends-on): Likewise.
51288         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51289         * NEWS: Mention the change.
51290         Reported by Michael Gold <mgold@ncf.ca>.
51291
51292 2009-01-23  Jim Meyering  <meyering@redhat.com>
51293
51294         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51295         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51296         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51297
51298 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51299
51300         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51301         GNU CoreUtils.
51302         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51303         * modules/version-etc (Description): Update.
51304
51305 2009-01-22  Bruno Haible  <bruno@clisp.org>
51306
51307         Cache the C locale object.
51308         * lib/c-strtod.c (c_locale_cache): New variable.
51309         (c_locale): New function.
51310         (C_STRTOD): Use it, and don't call freelocale.
51311         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51312         Suggested by Paolo Bonzini.
51313
51314 2009-01-21  Bruno Haible  <bruno@clisp.org>
51315
51316         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51317         conditions other than overflow.
51318
51319 2009-01-21  Bruno Haible  <bruno@clisp.org>
51320
51321         * lib/c-strtod.c: Include errno.h.
51322         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51323         value from STRTOD_L and STRTOD.
51324
51325 2009-01-21  Bruno Haible  <bruno@clisp.org>
51326         and Jim Meyering  <meyering@redhat.com>
51327
51328         nanosleep: skip configure test (fail it) for apple universal builds
51329         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51330         universal builds, assume that nanosleep does not work.
51331         * modules/nanosleep (Depends-on): Add multiarch.
51332
51333         mktime: skip configure test (fail it) for apple universal builds
51334         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51335         universal builds, assume that mktime does not work.
51336         * modules/mktime (Depends-on): Add multiarch.
51337
51338 2009-01-21  Eric Blake  <ebb9@byu.net>
51339
51340         multiarch: avoid expand-before-require warning
51341         * modules/multiarch (configure.ac): Require, rather than expand,
51342         gl_MULTIARCH.
51343         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51344         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51345         enforce that all clients require it.  Partial reversion of
51346         2008-12-29 patch.
51347
51348         error: avoid expand-before-require warning
51349         * modules/errno (configure.ac): Require, rather than expand,
51350         gl_HEADER_ERRNO_H.
51351         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51352         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51353         enforce that all clients require it.
51354
51355         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51356         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51357         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51358         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51359
51360 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51361
51362         Revert:
51363         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51364
51365         regex: do not depend on obsolete modules.
51366         * modules/regex: Remove memcmp and memmove.
51367
51368 2009-01-20  Bruno Haible  <bruno@clisp.org>
51369
51370         Make the 'link' module link on Windows NT 4.
51371         * lib/link.c (_WIN32_WINNT): Don't define.
51372         (CreateHardLinkFuncType): New type.
51373         (CreateHardLinkFunc, initialized): New variables.
51374         (initialize): New function.
51375         (link): Invoke CreateHardLink indirectly through the function pointer.
51376
51377 2009-01-20  Bruno Haible  <bruno@clisp.org>
51378
51379         Fix compilation failure on mingw.
51380         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51381
51382 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51383
51384         * doc/c-strtod.texi: Mention a couple of restrictions.
51385
51386 2009-01-20  Jim Meyering  <meyering@redhat.com>
51387
51388         gettimeofday: move more declarations out of functions
51389         * lib/gettimeofday.c: Move extern declarations of tzset and
51390         gmtime out of containing functions.  Prompted by Bruno Haible.
51391
51392 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51393
51394         regex: do not depend on obsolete modules.
51395         * modules/regex: Remove memcmp and memmove.
51396
51397 2009-01-19  Bruno Haible  <bruno@clisp.org>
51398
51399         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51400         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51401         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51402         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51403         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51404
51405 2009-01-19  Bruno Haible  <bruno@clisp.org>
51406
51407         * tests/test-link.c: Include <errno.h>.
51408         (main): Exit with code 77 when a hard link cannot be created due to
51409         the file system.
51410         * tests/test-link.sh: Skip test when a hard link cannot be created due
51411         to the file system.
51412         Suggested by Eric Blake.
51413
51414 2009-01-19  Martin Lambers  <marlam@marlam.de>
51415
51416         * modules/link-tests: New file.
51417         * tests/test-link.sh: New file.
51418         * tests/test-link.c: New file.
51419
51420 2009-01-19  Eric Blake  <ebb9@byu.net>
51421
51422         doc: mention another function added in cygwin 1.7.0
51423         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51424         Another new function in cygwin 1.7.
51425
51426 2009-01-19  Bruno Haible  <bruno@clisp.org>
51427
51428         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51429         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51430         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51431         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51432         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51433         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51434         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51435         * m4/md4.m4 (gl_MD4): Likewise.
51436         * m4/md5.m4 (gl_MD5): Likewise.
51437         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51438         * m4/sha1.m4 (gl_SHA1): Likewise.
51439         * m4/sha256.m4 (gl_SHA256): Likewise.
51440         * m4/sha512.m4 (gl_SHA512): Likewise.
51441
51442 2009-01-19  Bruno Haible  <bruno@clisp.org>
51443
51444         * modules/uniname/uniname-tests (Depends-on): Add progname.
51445         * tests/uniname/test-uninames.c: Include progname.h.
51446         (main): Call set_program_name.
51447
51448         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51449         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51450         (main): Call set_program_name.
51451
51452         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51453         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51454         (main): Call set_program_name.
51455
51456         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51457         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51458         (main): Call set_program_name.
51459
51460         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51461         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51462         (main): Call set_program_name.
51463
51464         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51465         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51466         (main): Call set_program_name.
51467
51468         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51469         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51470         (main): Call set_program_name.
51471
51472         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51473         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51474         (main): Call set_program_name.
51475
51476         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51477         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51478         (main): Call set_program_name.
51479
51480 2009-01-19  Eric Blake  <ebb9@byu.net>
51481
51482         test-unistd: test previous patch
51483         * tests/test-unistd.c: Test *_FILENO macros.
51484
51485         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51486         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51487         Guarantee a definition.
51488         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51489         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51490         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51491         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51492         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51493         Likewise.
51494         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51495         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51496         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51497         Likewise.
51498         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51499         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51500         (STDERR_FILENO): Likewise.
51501         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51502         (STDERR_FILENO): Likewise.
51503         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51504         (STDERR_FILENO): Likewise.
51505         Reported by Elbert Pol.
51506
51507 2009-01-19  Eric Blake  <ebb9@byu.net>
51508
51509         doc: mention more functions added in cygwin 1.7.0
51510         * doc/posix-functions/abort.texi (abort): Update wording related
51511         to cygwin.
51512         * doc/posix-functions/daylight.texi (daylight): Likewise.
51513         * doc/posix-functions/optarg.texi (optarg): Likewise.
51514         * doc/posix-functions/optarg.texi (opterr): Likewise.
51515         * doc/posix-functions/optarg.texi (optind): Likewise.
51516         * doc/posix-functions/optarg.texi (optopt): Likewise.
51517         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51518         worked in 1.5.x, and was withdrawn in 1.7.
51519         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51520         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51521         cygwin versions.
51522         * doc/posix-functions/perror.texi (perror): Likewise.
51523         * doc/posix-functions/printf.texi (printf): Likewise.
51524         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51525         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51526         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51527         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51528         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51529         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51530         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51531         Likewise.
51532         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51533         Likewise.
51534         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51535         this function.
51536         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51537         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51538         Likewise.
51539         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51540         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51541         * doc/posix-functions/confstr.texi (confstr): Likewise.
51542         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51543         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51544         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51545         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51546         * doc/posix-functions/fputws.texi (fputws): Likewise.
51547         * doc/posix-functions/fwide.texi (fwide): Likewise.
51548         * doc/posix-functions/getwc.texi (getwc): Likewise.
51549         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51550         * doc/posix-functions/putwc.texi (putwc): Likewise.
51551         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51552         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51553         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51554         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51555         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51556         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51557         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51558         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51559         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51560         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51561         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51562
51563 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51564
51565         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51566         * lib/ioctl.c: Include <sys/ioctl.h>.
51567
51568 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51569
51570         * modules/getdate-tests (Depends-on): Add progname.
51571         * tests/test-getdate.c: Use progname module, to avoid link errors
51572         on non-glibc systems.
51573
51574 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51575
51576         * modules/filenamecat-tests (Depends-on): Add progname.
51577         * modules/fstrcmp-tests (Depends-on): Likewise.
51578
51579         * tests/test-filenamecat.c: Use progname module, to avoid link
51580         errors on non-glibc systems.
51581         * tests/test-fstrcmp.c: Likewise.
51582
51583 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51584
51585         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51586         * lib/gettimeofday.c: Move extern declaration out of function.
51587
51588 2009-01-18  Bruno Haible  <bruno@clisp.org>
51589
51590         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51591         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51592         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51593
51594 2009-01-18  Bruno Haible  <bruno@clisp.org>
51595
51596         * lib/strftime.c (MEMPCPY): Remove unused macro.
51597         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51598
51599 2009-01-18  Martin Lambers  <marlam@marlam.de>
51600
51601         New module 'link'.
51602         * lib/unistd.in.h (link): New declaration.
51603         * lib/link.c: New file.
51604         * m4/link.m4: New file.
51605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51606         HAVE_LINK.
51607         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51608         * modules/link: New file.
51609         * doc/posix-functions/link.texi: Mention the new module.
51610
51611 2009-01-18  Bruno Haible  <bruno@clisp.org>
51612
51613         * tests/test-avltree_list.c (main): Call set_program_name.
51614         * tests/test-avltree_oset.c (main): Likewise.
51615         * tests/test-obstack-printf.c: Include progname.h.
51616         (main): Call set_program_name.
51617         * tests/test-quotearg.c: Include progname.h.
51618         (main): Call set_program_name.
51619         * tests/test-xmemdup0.c: Include progname.h.
51620         (main): Call set_program_name.
51621
51622 2009-01-18  Bruno Haible  <bruno@clisp.org>
51623
51624         New module 'alphasort'.
51625         * lib/dirent.in.h (alphasort): New declaration.
51626         * lib/alphasort.c: New file, from glibc with modifications.
51627         * m4/alphasort.m4: New file.
51628         * modules/alphasort: New file.
51629         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51630         HAVE_ALPHASORT.
51631         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51632         HAVE_ALPHASORT.
51633         * doc/posix-functions/alphasort.texi: Mention the new module and the
51634         portability problems.
51635
51636 2009-01-18  Bruno Haible  <bruno@clisp.org>
51637
51638         New module 'scandir'.
51639         * lib/dirent.in.h (scandir): New declaration.
51640         * lib/scandir.c: New file, from glibc with modifications.
51641         * m4/scandir.m4: New file.
51642         * modules/scandir: New file.
51643         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51644         HAVE_SCANDIR.
51645         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51646         HAVE_SCANDIR.
51647         * doc/posix-functions/scandir.texi: Mention the new module and the
51648         portability problems.
51649
51650 2009-01-17  Bruno Haible  <bruno@clisp.org>
51651
51652         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51653         Update documentation.
51654         (func_remove_suffix): Escape all dots in the suffix. Update
51655         documentation.
51656         (func_filter_filelist): Update documentation.
51657         Reported by Ralf Wildenhues.
51658
51659 2009-01-17  Bruno Haible  <bruno@clisp.org>
51660
51661         * modules/dprintf-posix-tests: New file.
51662         * tests/test-dprintf-posix.sh: New file.
51663         * tests/test-dprintf-posix.c: New file.
51664
51665         New modules 'dprintf', 'dprintf-posix'.
51666         * lib/stdio.in.h (dprintf): New declaration.
51667         * lib/dprintf.c: New file.
51668         * m4/dprintf.m4: New file.
51669         * m4/dprintf-posix.m4: New file.
51670         * modules/dprintf: New file.
51671         * modules/dprintf-posix: New file.
51672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51673         HAVE_DPRINTF, REPLACE_DPRINTF.
51674         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51675         HAVE_DPRINTF, REPLACE_DPRINTF.
51676         * doc/posix-functions/dprintf.texi: Mention the new modules.
51677
51678 2009-01-17  Bruno Haible  <bruno@clisp.org>
51679
51680         * modules/vdprintf-posix-tests: New file.
51681         * tests/test-vdprintf-posix.sh: New file.
51682         * tests/test-vdprintf-posix.c: New file.
51683
51684         New modules 'vdprintf', 'vdprintf-posix'.
51685         * lib/stdio.in.h (vdprintf): New declaration.
51686         * lib/vdprintf.c: New file.
51687         * m4/vdprintf.m4: New file.
51688         * m4/vdprintf-posix.m4: New file.
51689         * modules/vdprintf: New file.
51690         * modules/vdprintf-posix: New file.
51691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51692         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51693         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51694         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51695         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51696
51697 2009-01-17  Bruno Haible  <bruno@clisp.org>
51698
51699         Fix replacement of fopen on mingw.
51700         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51701         mingw.
51702
51703 2009-01-17  Bruno Haible  <bruno@clisp.org>
51704
51705         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51706         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51707
51708 2009-01-17  Bruno Haible  <bruno@clisp.org>
51709
51710         Avoid test-fflush2.sh failure on mingw.
51711         * tests/test-fflush2.c: Include binary-io.h.
51712         (main): Put standard input into binary mode.
51713         * modules/fflush-tests (Depends-on): Add binary-io.
51714
51715 2009-01-17  Bruno Haible  <bruno@clisp.org>
51716
51717         * lib/wchar.in.h: In another particular situation, include only the
51718         system's <wchar.h> file.
51719         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51720         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51721         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51722
51723 2009-01-17  Bruno Haible  <bruno@clisp.org>
51724
51725         Support for stripping executables in --enable-relocatable.
51726         * build-aux/install-reloc: Expect one more argument, or an environment
51727         variable RELOC_STRIP_PROG. If set, strip the destination program and
51728         its wrapper.
51729         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51730         RELOC_STRIP_PROG.
51731         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51732         to set RELOCATABLE_STRIP.
51733         * NEWS: Mention the new Makefile requirement.
51734
51735 2009-01-17  Bruno Haible  <bruno@clisp.org>
51736
51737         * build-aux/install-reloc: Remove debugging information left over by
51738         C compiler on MacOS X.
51739
51740 2009-01-17  Bruno Haible  <bruno@clisp.org>
51741
51742         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51743         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51744         _NSGetExecutablePath.
51745
51746 2009-01-16  Jim Meyering  <meyering@redhat.com>
51747
51748         strerror: avoid warnings about discarding "const"
51749         * lib/strerror.c (rpl_strerror): Instead of returning a const
51750         string from each and every "case", use a variable, and add a single
51751         cast after the switch.
51752
51753 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51754
51755         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51756
51757 2009-01-16  Bruno Haible  <bruno@clisp.org>
51758
51759         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51760         array initializer syntax that also works in C++ mode.
51761         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51762
51763 2009-01-16  Jim Meyering  <meyering@redhat.com>
51764
51765         poll: suppress a warning
51766         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51767         to ignore "...unsigned expression < 0 is always false" warnings.
51768
51769 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51770
51771         poll: remove declarations of unused variables
51772         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51773         sockbuf and optlen.
51774
51775 2009-01-15  Bruno Haible  <bruno@clisp.org>
51776
51777         Make fflush-after-ungetc POSIX compliant on BSD systems.
51778         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51779         (clear_ungetc_buffer): Implement also for other systems.
51780         (rpl_fflush): On glibc systems, invoke
51781         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51782         clear_ungetc_buffer after fetching the stream's position, not before.
51783
51784 2009-01-15  Bruno Haible  <bruno@clisp.org>
51785
51786         Make fflush-after-ungetc POSIX compliant on glibc systems.
51787         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51788         after ungetc.
51789         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51790         (rpl_fflush): On glibc systems, simply call the system's fflush
51791         function after clearing the ungetc buffer.
51792         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51793         Instead, lseek only to the end of file, then use the system's fseeko
51794         for the rest. On glibc systems, reset the EOF indicator bit.
51795
51796 2009-01-15  Jim Meyering  <meyering@redhat.com>
51797
51798         openmp.m4: revert quote-adding change, for portability to older autoconf
51799         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51800         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51801         Simon Josefsson noticed the problem when using autoconf-2.61.
51802
51803 2009-01-15  Bruno Haible  <bruno@clisp.org>
51804
51805         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51806         * tests/test-fflush2.c (ASSERT): Always fail.
51807         (main): Add two tests for fflush() after ungetc(), taking into account
51808         the Austin Group's clarification.
51809         Suggested by Eric Blake.
51810
51811 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51812
51813         mktime.m4: remove K&R-style function prototypes
51814         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51815         for the Sun C++ compiler.
51816
51817 2009-01-14  Bruno Haible  <bruno@clisp.org>
51818
51819         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51820         while including <wchar.h>.
51821         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51822         the system's <wchar.h> file.
51823         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51824
51825 2009-01-14  Bruno Haible  <bruno@clisp.org>
51826
51827         * m4/csharp.m4: Don't mention gettext on the serial number line.
51828         * m4/csharpexec.m4: Likewise.
51829         * m4/eaccess.m4: Likewise.
51830         * m4/javaexec.m4: Likewise.
51831         * m4/sig_atomic_t.m4: Likewise.
51832         * m4/tmpdir.m4: Likewise.
51833         * m4/intldir.m4: Bump gettext version.
51834         * m4/lib-ld.m4: Likewise.
51835
51836 2009-01-14  Bruno Haible  <bruno@clisp.org>
51837
51838         * lib/progname.c (set_program_name): Add more comments.
51839         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51840
51841 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51842
51843         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51844         were sys/stat.h does not define it.
51845
51846 2009-01-14  Jim Meyering  <meyering@redhat.com>
51847
51848         many *.m4 files: improve m4 quoting
51849         99% of this change was performed by running the following commands:
51850         git ls-files | grep '\.m4$' | xargs perl -pi \
51851           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51852           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51853           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51854           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51855         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51856         The remainder were to add Copyright dates, increment serial numbers,
51857         undo some changes in comments, exclude m4/intl.m4, and add quotes
51858         around the "1" in ",1" where the unusual spacing prohibited the
51859         above regexps from doing the job.  For more details, see
51860         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51861         * m4/acl.m4: Modified.
51862         * m4/afs.m4: Likewise.
51863         * m4/alloca.m4: Likewise.
51864         * m4/argp.m4: Likewise.
51865         * m4/argz.m4: Likewise.
51866         * m4/atexit.m4: Likewise.
51867         * m4/bison-i18n.m4: Likewise.
51868         * m4/bison.m4: Likewise.
51869         * m4/byteswap.m4: Likewise.
51870         * m4/c-stack.m4: Likewise.
51871         * m4/c-strtod.m4: Likewise.
51872         * m4/calloc.m4: Likewise.
51873         * m4/canonicalize-lgpl.m4: Likewise.
51874         * m4/chown.m4: Likewise.
51875         * m4/clock_time.m4: Likewise.
51876         * m4/codeset.m4: Likewise.
51877         * m4/copy-file.m4: Likewise.
51878         * m4/csharp.m4: Likewise.
51879         * m4/csharpcomp.m4: Likewise.
51880         * m4/csharpexec.m4: Likewise.
51881         * m4/d-ino.m4: Likewise.
51882         * m4/d-type.m4: Likewise.
51883         * m4/dirfd.m4: Likewise.
51884         * m4/double-slash-root.m4: Likewise.
51885         * m4/eaccess.m4: Likewise.
51886         * m4/eealloc.m4: Likewise.
51887         * m4/environ.m4: Likewise.
51888         * m4/errno_h.m4: Likewise.
51889         * m4/euidaccess.m4: Likewise.
51890         * m4/execute.m4: Likewise.
51891         * m4/fatal-signal.m4: Likewise.
51892         * m4/fchdir.m4: Likewise.
51893         * m4/fcntl_h.m4: Likewise.
51894         * m4/fileblocks.m4: Likewise.
51895         * m4/filenamecat.m4: Likewise.
51896         * m4/findprog.m4: Likewise.
51897         * m4/flexmember.m4: Likewise.
51898         * m4/fnmatch.m4: Likewise.
51899         * m4/fopen.m4: Likewise.
51900         * m4/fpending.m4: Likewise.
51901         * m4/fprintf-posix.m4: Likewise.
51902         * m4/free.m4: Likewise.
51903         * m4/frexp.m4: Likewise.
51904         * m4/frexpl.m4: Likewise.
51905         * m4/fsusage.m4: Likewise.
51906         * m4/ftruncate.m4: Likewise.
51907         * m4/gc-camellia.m4: Likewise.
51908         * m4/gc-random.m4: Likewise.
51909         * m4/gc.m4: Likewise.
51910         * m4/getaddrinfo.m4: Likewise.
51911         * m4/getcwd-abort-bug.m4: Likewise.
51912         * m4/getcwd-path-max.m4: Likewise.
51913         * m4/getdate.m4: Likewise.
51914         * m4/getdomainname.m4: Likewise.
51915         * m4/getgroups.m4: Likewise.
51916         * m4/gethostname.m4: Likewise.
51917         * m4/gethrxtime.m4: Likewise.
51918         * m4/getline.m4: Likewise.
51919         * m4/getloadavg.m4: Likewise.
51920         * m4/getndelim2.m4: Likewise.
51921         * m4/getpass.m4: Likewise.
51922         * m4/gettext.m4: Likewise.
51923         * m4/gettime.m4: Likewise.
51924         * m4/gettimeofday.m4: Likewise.
51925         * m4/gnulib-common.m4: Likewise.
51926         * m4/group-member.m4: Likewise.
51927         * m4/host-os.m4: Likewise.
51928         * m4/iconv.m4: Likewise.
51929         * m4/iconv_open.m4: Likewise.
51930         * m4/inet_ntop.m4: Likewise.
51931         * m4/inet_pton.m4: Likewise.
51932         * m4/inline.m4: Likewise.
51933         * m4/intldir.m4: Likewise.
51934         * m4/intlmacosx.m4: Likewise.
51935         * m4/intmax.m4: Likewise.
51936         * m4/intmax_t.m4: Likewise.
51937         * m4/inttypes.m4: Likewise.
51938         * m4/inttypes_h.m4: Likewise.
51939         * m4/inttypes-pri.m4: Likewise.
51940         * m4/isapipe.m4: Likewise.
51941         * m4/isnand.m4: Likewise.
51942         * m4/isnanf.m4: Likewise.
51943         * m4/isnanl.m4: Likewise.
51944         * m4/javacomp.m4: Likewise.
51945         * m4/javaexec.m4: Likewise.
51946         * m4/jm-winsz1.m4: Likewise.
51947         * m4/jm-winsz2.m4: Likewise.
51948         * m4/lchown.m4: Likewise.
51949         * m4/lcmessage.m4: Likewise.
51950         * m4/ldexpl.m4: Likewise.
51951         * m4/lib-ld.m4: Likewise.
51952         * m4/lib-link.m4: Likewise.
51953         * m4/libsigsegv.m4: Likewise.
51954         * m4/link-follow.m4: Likewise.
51955         * m4/localcharset.m4: Likewise.
51956         * m4/locale-fr.m4: Likewise.
51957         * m4/locale-ja.m4: Likewise.
51958         * m4/locale-tr.m4: Likewise.
51959         * m4/locale-zh.m4: Likewise.
51960         * m4/lock.m4: Likewise.
51961         * m4/longlong.m4: Likewise.
51962         * m4/ls-mntd-fs.m4: Likewise.
51963         * m4/lstat.m4: Likewise.
51964         * m4/malloc.m4: Likewise.
51965         * m4/mathl.m4: Likewise.
51966         * m4/mbrtowc.m4: Likewise.
51967         * m4/mbstate_t.m4: Likewise.
51968         * m4/mbswidth.m4: Likewise.
51969         * m4/memchr.m4: Likewise.
51970         * m4/memcmp.m4: Likewise.
51971         * m4/memcpy.m4: Likewise.
51972         * m4/memmem.m4: Likewise.
51973         * m4/memmove.m4: Likewise.
51974         * m4/mempcpy.m4: Likewise.
51975         * m4/memrchr.m4: Likewise.
51976         * m4/memset.m4: Likewise.
51977         * m4/minmax.m4: Likewise.
51978         * m4/mkdir-slash.m4: Likewise.
51979         * m4/mkdtemp.m4: Likewise.
51980         * m4/mktime.m4: Likewise.
51981         * m4/mmap-anon.m4: Likewise.
51982         * m4/mountlist.m4: Likewise.
51983         * m4/nanosleep.m4: Likewise.
51984         * m4/nls.m4: Likewise.
51985         * m4/nocrash.m4: Likewise.
51986         * m4/open.m4: Likewise.
51987         * m4/openat.m4: Likewise.
51988         * m4/openmp.m4: Likewise.
51989         * m4/pathmax.m4: Likewise.
51990         * m4/perl.m4: Likewise.
51991         * m4/physmem.m4: Likewise.
51992         * m4/pipe.m4: Likewise.
51993         * m4/po.m4: Likewise.
51994         * m4/poll.m4: Likewise.
51995         * m4/posixtm.m4: Likewise.
51996         * m4/posixver.m4: Likewise.
51997         * m4/printf-frexp.m4: Likewise.
51998         * m4/printf-frexpl.m4: Likewise.
51999         * m4/printf-posix.m4: Likewise.
52000         * m4/printf-posix-rpl.m4: Likewise.
52001         * m4/printf.m4: Likewise.
52002         * m4/progtest.m4: Likewise.
52003         * m4/putenv.m4: Likewise.
52004         * m4/readline.m4: Likewise.
52005         * m4/readlink.m4: Likewise.
52006         * m4/readutmp.m4: Likewise.
52007         * m4/realloc.m4: Likewise.
52008         * m4/regex.m4: Likewise.
52009         * m4/relocatable.m4: Likewise.
52010         * m4/relocatable-lib.m4: Likewise.
52011         * m4/rename-dest-slash.m4: Likewise.
52012         * m4/rename.m4: Likewise.
52013         * m4/rmdir-errno.m4: Likewise.
52014         * m4/rmdir.m4: Likewise.
52015         * m4/roundf.m4: Likewise.
52016         * m4/roundl.m4: Likewise.
52017         * m4/rpmatch.m4: Likewise.
52018         * m4/save-cwd.m4: Likewise.
52019         * m4/selinux-selinux-h.m4: Likewise.
52020         * m4/setenv.m4: Likewise.
52021         * m4/settime.m4: Likewise.
52022         * m4/sig2str.m4: Likewise.
52023         * m4/sig_atomic_t.m4: Likewise.
52024         * m4/signalblocking.m4: Likewise.
52025         * m4/signbit.m4: Likewise.
52026         * m4/sigpipe.m4: Likewise.
52027         * m4/sockets.m4: Likewise.
52028         * m4/sockpfaf.m4: Likewise.
52029         * m4/st_dm_mode.m4: Likewise.
52030         * m4/stat-time.m4: Likewise.
52031         * m4/stdbool.m4: Likewise.
52032         * m4/stdint.m4: Likewise.
52033         * m4/stdint_h.m4: Likewise.
52034         * m4/stpcpy.m4: Likewise.
52035         * m4/stpncpy.m4: Likewise.
52036         * m4/strcase.m4: Likewise.
52037         * m4/strchrnul.m4: Likewise.
52038         * m4/strcspn.m4: Likewise.
52039         * m4/strdup.m4: Likewise.
52040         * m4/strftime.m4: Likewise.
52041         * m4/strndup.m4: Likewise.
52042         * m4/strnlen.m4: Likewise.
52043         * m4/strpbrk.m4: Likewise.
52044         * m4/strptime.m4: Likewise.
52045         * m4/strsep.m4: Likewise.
52046         * m4/strtod.m4: Likewise.
52047         * m4/strtoimax.m4: Likewise.
52048         * m4/strtok_r.m4: Likewise.
52049         * m4/strtol.m4: Likewise.
52050         * m4/strtoll.m4: Likewise.
52051         * m4/strtoul.m4: Likewise.
52052         * m4/strtoull.m4: Likewise.
52053         * m4/strtoumax.m4: Likewise.
52054         * m4/strverscmp.m4: Likewise.
52055         * m4/threadlib.m4: Likewise.
52056         * m4/timegm.m4: Likewise.
52057         * m4/tm_gmtoff.m4: Likewise.
52058         * m4/tmpdir.m4: Likewise.
52059         * m4/tmpfile.m4: Likewise.
52060         * m4/tzset.m4: Likewise.
52061         * m4/uintmax_t.m4: Likewise.
52062         * m4/unlinkdir.m4: Likewise.
52063         * m4/unlocked-io.m4: Likewise.
52064         * m4/uptime.m4: Likewise.
52065         * m4/userspec.m4: Likewise.
52066         * m4/utimbuf.m4: Likewise.
52067         * m4/utime.m4: Likewise.
52068         * m4/utimes-null.m4: Likewise.
52069         * m4/utimes.m4: Likewise.
52070         * m4/vararrays.m4: Likewise.
52071         * m4/vasnprintf.m4: Likewise.
52072         * m4/vfprintf-posix.m4: Likewise.
52073         * m4/vprintf-posix.m4: Likewise.
52074         * m4/wait-process.m4: Likewise.
52075         * m4/wchar_t.m4: Likewise.
52076         * m4/wint_t.m4: Likewise.
52077         * m4/write-any-file.m4: Likewise.
52078         * m4/yield.m4: Likewise.
52079
52080 2009-01-13  Bruno Haible  <bruno@clisp.org>
52081
52082         Avoid test-copy-file.sh failures when ACL support insufficient.
52083         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52084         TESTS_ENVIRONMENT.
52085         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52086         Reported by Jim Meyering.
52087
52088 2009-01-13  Bruno Haible  <bruno@clisp.org>
52089
52090         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52091         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52092         * modules/unistdio/u8-printf-parse (Files): Likewise.
52093         * modules/unistdio/u32-printf-parse (Files): Likewise.
52094         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52095
52096 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52097
52098         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52099         and m4/inttypes_h.m4 too.
52100
52101 2009-01-12  Eric Blake  <ebb9@byu.net>
52102
52103         tests: IRIX 6.2 cc can't compile -0.0 into .data
52104         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52105         rather than at compile-time.
52106         * tests/test-floorl.c (minus_zero): Likewise.
52107         * tests/test-frexpl.c (minus_zero): Likewise.
52108         * tests/test-isnan.c (minus_zerol): Likewise.
52109         * tests/test-isnanl.h (minus_zero): Likewise.
52110         * tests/test-ldexpl.c (minus_zero): Likewise.
52111         * tests/test-roundl.c (minus_zero): Likewise.
52112         * tests/test-signbit.c (minus_zerol): Likewise.
52113         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52114         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52115         * tests/test-truncl.c (minus_zero): Likewise.
52116         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52117         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52118         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52119
52120 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52121
52122         regex: fix glibc bug 9697
52123         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52124         handling.
52125
52126 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52127
52128         regex: fix glibc bug 697
52129         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52130         being NULL also if there are no backreferences.
52131
52132 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52133
52134         regex: merge glibc changes
52135         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52136         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52137         re_string_skip_chars, re_string_reconstruct): Likewise.
52138         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52139
52140 2009-01-07  Jim Meyering  <meyering@redhat.com>
52141
52142         poll: filter through cppi
52143         * lib/poll.c: Indent cpp directives to reflect nesting.
52144
52145 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52146
52147         poll: don't return uninitialized
52148         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52149
52150 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52151
52152         avoid compile failure on AIX 6.1
52153         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52154         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52155
52156 2009-01-04  Jim Meyering  <meyering@redhat.com>
52157
52158         remove duplicate inclusion of <stdio.h>
52159         * tests/test-fprintf-posix.c: Likewise.
52160         * tests/test-printf-posix.c: Likewise.
52161         * tests/test-snprintf-posix.c: Likewise.
52162         * tests/test-sprintf-posix.c: Likewise.
52163         * tests/test-vasprintf-posix.c: Likewise.
52164         * tests/test-vfprintf-posix.c: Likewise.
52165         * tests/test-vprintf-posix.c: Likewise.
52166         * tests/test-vsnprintf-posix.c: Likewise.
52167         * tests/test-vsprintf-posix.c: Likewise.
52168
52169 2009-01-03  Jim Meyering  <meyering@redhat.com>
52170
52171         gnulib-tool: fix sed-based filtering
52172         * gnulib-tool (func_filter_filelist): Remove extra backslash
52173         in sed_fff_filter definition.
52174
52175 2009-01-02  Jim Meyering  <meyering@redhat.com>
52176
52177         strftime: avoid compilation failure on Solaris 2.6
52178         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52179         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52180         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52181         be available.  Reported by Tom G. Christensen.  Details in
52182         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52183
52184 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52185             Bruno Haible  <bruno@clisp.org>
52186
52187         Speed up gnulib-tool by doing more string processing through shell
52188         built-ins.
52189         * gnulib-tool (fast_func_append): New variable.
52190         (func_remove_prefix, func_remove_suffix): New functions.
52191         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52192         (func_filter_filelist): New function.
52193         (func_get_dependencies): Use func_remove_suffix instead of sed.
52194         (func_get_automake_snippet): Use func_filter_filelist instead of a
52195         subshell and sed invocation.
52196
52197 2009-01-01  Bruno Haible  <bruno@clisp.org>
52198
52199         Fix a security bug.
52200         * gnulib-tool (func_import, import, update): Don't allow the characters
52201         '"', '$', '`', '\' in macro arguments that become part of commands that
52202         are evaluated.
52203
52204 2009-01-01  Bruno Haible  <bruno@clisp.org>
52205
52206         * gnulib-tool (func_reset_sigpipe): Add more comments.
52207
52208 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52209
52210         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52211         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52212         already know the answer.
52213
52214 2009-01-01  Jim Meyering  <meyering@redhat.com>
52215
52216         * lib/version-etc.c (version_etc_va): Update copyright year.
52217
52218 2008-12-30  Bruno Haible  <bruno@clisp.org>
52219
52220         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52221         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52222         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52223
52224 2008-12-29  Eric Blake  <ebb9@byu.net>
52225
52226         multiarch: avoid autoconf AC_REQUIRE bug
52227         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52228         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52229         2.63 and older.
52230         Reported by Bruno Haible, and analyzed in
52231         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52232
52233 2008-12-29  Bruno Haible  <bruno@clisp.org>
52234
52235         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52236         files in subdirectories correctly.
52237         Reported by Ralf Wildenhues.
52238
52239 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52240
52241         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52242         rather than 'join FILE -', for Solaris join.
52243
52244 2008-12-29  Bruno Haible  <bruno@clisp.org>
52245
52246         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52247         quoting.
52248         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52249         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52250         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52251         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52252         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52253         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52254         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52255         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52256         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52257         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52258         * m4/nls.m4 (AM_NLS): Likewise.
52259         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52260         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52261         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52262         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52263         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52264         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52265         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52266         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52267         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52268         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52269         * m4/xsize.m4 (gl_XSIZE): Likewise.
52270         Suggested by Jim Meyering.
52271
52272 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52273
52274         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52275         * lib/parse-duration.c: use a switch instead of cascading if's.
52276
52277 2008-12-29  Eric Blake  <ebb9@byu.net>
52278
52279         wchar.h: supply WEOF on Irix 5.3
52280         * lib/wchar.in.h (wint_t): Also supply WEOF.
52281         * lib/wctype.in.h (wint_t): Likewise.
52282         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52283         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52284         Reported by Tom G. Christensen.
52285
52286 2008-12-26  Bruno Haible  <bruno@clisp.org>
52287
52288         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52289         i486, i586, i686.
52290
52291 2008-12-26  Bruno Haible  <bruno@clisp.org>
52292
52293         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52294
52295 2008-12-26  Bruno Haible  <bruno@clisp.org>
52296
52297         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52298         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52299         not __STDC_CONSTANT_MACROS.
52300         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52301
52302 2008-12-25  Bruno Haible  <bruno@clisp.org>
52303
52304         Add support for universal builds to vasnprintf.
52305         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52306         universal builds, guess no.
52307         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52308         * modules/vasprintf-posix (Depends-on): Likewise.
52309         * modules/fprintf-posix (Depends-on): Likewise.
52310         * modules/vfprintf-posix (Depends-on): Likewise.
52311         * modules/snprintf-posix (Depends-on): Likewise.
52312         * modules/vsnprintf-posix (Depends-on): Likewise.
52313         * modules/sprintf-posix (Depends-on): Likewise.
52314         * modules/vsprintf-posix (Depends-on): Likewise.
52315         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52316         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52317         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52318         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52319         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52320         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52321         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52322
52323         Add support for universal builds to <inttypes.h>.
52324         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52325         _SCNu64_PREFIX): In Apple
52326         universal builds, define directly, using _LP64.
52327         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52328         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52329         * modules/inttypes (Depends-on): Add multiarch.
52330         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52331
52332         Add support for universal builds to <stdint.h>.
52333         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52334         universal builds, define directly, using _LP64.
52335         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52336         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52337         and size_t.
52338         * modules/stdint (Depends-on): Add multiarch.
52339         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52340
52341         New module 'multiarch'.
52342         * modules/multiarch: New file.
52343         * m4/multiarch.m4: New file.
52344
52345 2008-12-25  Bruno Haible  <bruno@clisp.org>
52346
52347         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52348
52349 2008-12-25  Bruno Haible  <bruno@clisp.org>
52350
52351         * modules/btowc (License): Relicense under LGPLv2+.
52352         * modules/mbsinit (License): Likewise.
52353         * modules/mbrtowc (License): Likewise.
52354         * modules/wcrtomb (License): Likewise.
52355         * modules/streq (License): Likewise.
52356         Reported by David Lutterkort <lutter@redhat.com>.
52357
52358 2008-12-23  Bruno Haible  <bruno@clisp.org>
52359
52360         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52361
52362 2008-12-23  Bruno Haible  <bruno@clisp.org>
52363
52364         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52366         GETADDRINFO_LIB, not in LIBS.
52367         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52368         * modules/canon-host (Link): Likewise.
52369         * NEWS: Mention the change.
52370         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52371         GETADDRINFO_LIB.
52372
52373 2008-12-22  Bruno Haible  <bruno@clisp.org>
52374
52375         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52376         * doc/posix-functions/iswalpha_l.texi: Likewise.
52377         * doc/posix-functions/iswblank_l.texi: Likewise.
52378         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52379         * doc/posix-functions/iswctype_l.texi: Likewise.
52380         * doc/posix-functions/iswdigit_l.texi: Likewise.
52381         * doc/posix-functions/iswgraph_l.texi: Likewise.
52382         * doc/posix-functions/iswlower_l.texi: Likewise.
52383         * doc/posix-functions/iswprint_l.texi: Likewise.
52384         * doc/posix-functions/iswpunct_l.texi: Likewise.
52385         * doc/posix-functions/iswspace_l.texi: Likewise.
52386         * doc/posix-functions/iswupper_l.texi: Likewise.
52387         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52388         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52389         * doc/posix-functions/open_wmemstream.texi: Likewise.
52390         * doc/posix-functions/swscanf.texi: Likewise.
52391         * doc/posix-functions/towctrans_l.texi: Likewise.
52392         * doc/posix-functions/towlower.texi: Likewise.
52393         * doc/posix-functions/towlower_l.texi: Likewise.
52394         * doc/posix-functions/towupper.texi: Likewise.
52395         * doc/posix-functions/towupper_l.texi: Likewise.
52396         * doc/posix-functions/vfwprintf.texi: Likewise.
52397         * doc/posix-functions/vfwscanf.texi: Likewise.
52398         * doc/posix-functions/vswscanf.texi: Likewise.
52399         * doc/posix-functions/vwprintf.texi: Likewise.
52400         * doc/posix-functions/vwscanf.texi: Likewise.
52401         * doc/posix-functions/wcpcpy.texi: Likewise.
52402         * doc/posix-functions/wcpncpy.texi: Likewise.
52403         * doc/posix-functions/wcscasecmp.texi: Likewise.
52404         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52405         * doc/posix-functions/wcscoll_l.texi: Likewise.
52406         * doc/posix-functions/wcsdup.texi: Likewise.
52407         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52408         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52409         * doc/posix-functions/wcsnlen.texi: Likewise.
52410         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52411         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52412         * doc/posix-functions/wctrans_l.texi: Likewise.
52413         * doc/posix-functions/wctype_l.texi: Likewise.
52414         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52415         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52416         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52417         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52418         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52419         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52420         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52421         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52422         * doc/glibc-functions/wcschrnul.texi: Likewise.
52423         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52424         * doc/glibc-functions/wcstod_l.texi: Likewise.
52425         * doc/glibc-functions/wcstof_l.texi: Likewise.
52426         * doc/glibc-functions/wcstol_l.texi: Likewise.
52427         * doc/glibc-functions/wcstold_l.texi: Likewise.
52428         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52429         * doc/glibc-functions/wcstoq.texi: Likewise.
52430         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52431         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52432         * doc/glibc-functions/wcstouq.texi: Likewise.
52433         * doc/glibc-functions/wmempcpy.texi: Likewise.
52434
52435 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52436             Eric Blake  <ebb9@byu.net>
52437             Paolo Bonzini  <bonzini@gnu.org>
52438             Bruno Haible  <bruno@clisp.org>
52439
52440         Make c-stack work on Haiku.
52441         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52442         (c_stack_action): Use SA_ONSTACK flag.
52443
52444 2008-12-22  Bruno Haible  <bruno@clisp.org>
52445
52446         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52447
52448 2008-12-22  Bruno Haible  <bruno@clisp.org>
52449
52450         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52451         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52452         being overridden.
52453         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52454         New macros.
52455         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52456         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52457         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52458         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52459
52460 2008-12-22  Bruno Haible  <bruno@clisp.org>
52461
52462         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52463         from test code.
52464
52465 2008-12-22  Eric Blake  <ebb9@byu.net>
52466
52467         Avoid gcc warnings on cygwin.
52468         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52469         Avoid unused variable.
52470         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52471         Likewise.
52472
52473 2008-12-22  Bruno Haible  <bruno@clisp.org>
52474
52475         Remove HAVE_MBRTOWC conditionals.
52476         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52477         (mbscasecmp): Assume mbrtowc function.
52478         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52479         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52480         * lib/mbschr.c: Include mbuiter.h unconditionally.
52481         (mbschr): Assume mbrtowc function.
52482         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52483         (mbscspn): Assume mbrtowc function.
52484         * lib/mbslen.c: Include mbuiter.h unconditionally.
52485         (mbslen): Assume mbrtowc function.
52486         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52487         (mbsncasecmp): Assume mbrtowc function.
52488         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52489         (mbsnlen): Assume mbrtowc function.
52490         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52491         (mbspbrk): Assume mbrtowc function.
52492         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52493         (mbspcasecmp): Assume mbrtowc function.
52494         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52495         (mbsrchr): Assume mbrtowc function.
52496         * lib/mbssep.c: Include mbuiter.h unconditionally.
52497         (mbssep): Assume mbrtowc function.
52498         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52499         (mbsspn): Assume mbrtowc function.
52500         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52501         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52502         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52503         (mbstok_r): Assume mbrtowc function.
52504         * lib/propername.c: Include mbuiter.h unconditionally.
52505         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52506         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52507         (trim2): Assume mbrtowc function.
52508         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52509         (mbsnwidth): Assume mbrtowc function.
52510         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52511         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52512         fallback definitions.
52513         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52514
52515 2008-12-22  Bruno Haible  <bruno@clisp.org>
52516
52517         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52518
52519 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52520
52521         * modules/regex: Request emulations for the mb*/wc* functions we need.
52522         * m4/regex.m4: Don't look for those functions here.
52523         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52524
52525 2008-12-22  Bruno Haible  <bruno@clisp.org>
52526
52527         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52528
52529 2008-12-21  Bruno Haible  <bruno@clisp.org>
52530
52531         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52532         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52533         (Include): Remove conditionalization.
52534         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52535         (Include): Remove conditionalization.
52536         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52537         (Include): Remove conditionalization.
52538         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52539         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52540         * NEWS: Mention the change.
52541         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52542         via Sergey Poznyakoff <gray@gnu.org.ua>.
52543
52544 2008-12-21  Bruno Haible  <bruno@clisp.org>
52545
52546         * MODULES.html.sh (Extended multibyte and wide character utilities
52547         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52548         wcrtomb, wcsrtombs.
52549         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52550         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52551         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52552         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52553
52554 2008-12-21  Bruno Haible  <bruno@clisp.org>
52555
52556         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52557
52558 2008-12-21  Bruno Haible  <bruno@clisp.org>
52559
52560         * modules/wcsnrtombs-tests: New file.
52561         * tests/test-wcsnrtombs1.sh: New file.
52562         * tests/test-wcsnrtombs2.sh: New file.
52563         * tests/test-wcsnrtombs3.sh: New file.
52564         * tests/test-wcsnrtombs4.sh: New file.
52565         * tests/test-wcsnrtombs.c: New file.
52566
52567         New module 'wcsnrtombs'.
52568         * lib/wchar.in.h (wcsnrtombs): New declaration.
52569         * lib/wcsnrtombs.c: New file.
52570         * lib/wcsrtombs-state.c: New file.
52571         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52572         (internal_state): Remove variable.
52573         * m4/wcsnrtombs.m4: New file.
52574         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52575         compilation units.
52576         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52577         HAVE_WCSNRTOMBS.
52578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52579         HAVE_WCSNRTOMBS.
52580         * modules/wcsnrtombs: New file.
52581         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52582         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52583
52584 2008-12-21  Bruno Haible  <bruno@clisp.org>
52585
52586         * modules/wcsrtombs-tests: New file.
52587         * tests/test-wcsrtombs1.sh: New file.
52588         * tests/test-wcsrtombs2.sh: New file.
52589         * tests/test-wcsrtombs3.sh: New file.
52590         * tests/test-wcsrtombs4.sh: New file.
52591         * tests/test-wcsrtombs.c: New file.
52592
52593         New module 'wcsrtombs'.
52594         * lib/wchar.in.h (wcsrtombs): New declaration.
52595         * lib/wcsrtombs.c: New file.
52596         * m4/wcsrtombs.m4: New file.
52597         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52598         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52600         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52601         * modules/wcsrtombs: New file.
52602         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52603         bugs.
52604
52605 2008-12-21  Bruno Haible  <bruno@clisp.org>
52606
52607         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52608         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52609         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52610         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52611         if not correct.
52612         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52613         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52614         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52615         m4/locale-zh.m4, m4/codeset.m4.
52616         * doc/posix-functions/wcrtomb.texi: Document the bug.
52617
52618 2008-12-21  Bruno Haible  <bruno@clisp.org>
52619
52620         Work around a btowc() bug on IRIX 6.5.
52621         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52622         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52623         REPLACE_WTOBC if not.
52624         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52625         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52626         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52627
52628 2008-12-21  Bruno Haible  <bruno@clisp.org>
52629
52630         * modules/wcrtomb-tests: New file.
52631         * tests/test-wcrtomb.sh: New file.
52632         * tests/test-wcrtomb.c: New file.
52633
52634         New module 'wcrtomb'.
52635         * lib/wchar.in.h (wcrtomb): New declaration.
52636         * lib/wcrtomb.c: New file.
52637         * m4/wcrtomb.m4: New file.
52638         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52639         HAVE_WCRTOMB.
52640         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52641         HAVE_WCRTOMB.
52642         * modules/wcrtomb: New file.
52643         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52644
52645 2008-12-21  Bruno Haible  <bruno@clisp.org>
52646
52647         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52648         * modules/mbsrtowcs (Files): Likewise.
52649         * modules/wctob (Files): Likewise.
52650         * modules/c-strcase-tests (Files): Likewise.
52651         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52652         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52653         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52654         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52655         * modules/vasnprintf-posix-tests (Files): Likewise.
52656
52657 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52658
52659         gitlog-to-changelog: pass all command-line arguments to git-log
52660         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52661         it is sometimes convenient to filter the commits in various ways.
52662         gitlog-to-changelog only allows --since to specify a start date,
52663         but git-log itself supports many other filtering mechanisms.
52664         At the moment, I want to filter by branch name.  Rather than
52665         adding a --branch option to gitlog-to-changelog, it seems more
52666         flexible to simply pass all options directly to git-log and let
52667         git do the work.  Notice that this effectively makes --since a
52668         redundant option for gitlog-to-changelog, but removing it would
52669         require current usage to change since calls would then require
52670         an additional '--'.
52671
52672 2008-12-21  Bruno Haible  <bruno@clisp.org>
52673
52674         * modules/mbsnrtowcs-tests: New file.
52675         * tests/test-mbsnrtowcs1.sh: New file.
52676         * tests/test-mbsnrtowcs2.sh: New file.
52677         * tests/test-mbsnrtowcs3.sh: New file.
52678         * tests/test-mbsnrtowcs4.sh: New file.
52679         * tests/test-mbsnrtowcs.c: New file.
52680
52681         New module 'mbsnrtowcs'.
52682         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52683         * lib/mbsnrtowcs.c: New file.
52684         * lib/mbsrtowcs-state.c: New file.
52685         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52686         (internal_state): Remove variable.
52687         * m4/mbsnrtowcs.m4: New file.
52688         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52689         compilation units.
52690         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52691         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52692         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52693         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52694         * modules/mbsnrtowcs: New file.
52695         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52696         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52697         portability problem.
52698
52699 2008-12-21  Bruno Haible  <bruno@clisp.org>
52700
52701         Work around mbsrtowcs bug.
52702         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52703         (gl_FUNC_MBSRTOWCS): Invoke it.
52704         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52705         m4/locale-zh.m4.
52706         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52707
52708 2008-12-21  Bruno Haible  <bruno@clisp.org>
52709
52710         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52711
52712 2008-12-21  Bruno Haible  <bruno@clisp.org>
52713
52714         Update doc for AIX.
52715         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52716         16-bit wchar_t type.
52717         * doc/posix-functions/btowc.texi: Likewise.
52718         * doc/posix-functions/fgetwc.texi: Likewise.
52719         * doc/posix-functions/fgetws.texi: Likewise.
52720         * doc/posix-functions/fputwc.texi: Likewise.
52721         * doc/posix-functions/fputws.texi: Likewise.
52722         * doc/posix-functions/fwide.texi: Likewise.
52723         * doc/posix-functions/fwprintf.texi: Likewise.
52724         * doc/posix-functions/fwscanf.texi: Likewise.
52725         * doc/posix-functions/getwchar.texi: Likewise.
52726         * doc/posix-functions/getwc.texi: Likewise.
52727         * doc/posix-functions/iswalnum.texi: Likewise.
52728         * doc/posix-functions/iswalpha.texi: Likewise.
52729         * doc/posix-functions/iswblank.texi: Likewise.
52730         * doc/posix-functions/iswcntrl.texi: Likewise.
52731         * doc/posix-functions/iswctype.texi: Likewise.
52732         * doc/posix-functions/iswdigit.texi: Likewise.
52733         * doc/posix-functions/iswgraph.texi: Likewise.
52734         * doc/posix-functions/iswlower.texi: Likewise.
52735         * doc/posix-functions/iswprint.texi: Likewise.
52736         * doc/posix-functions/iswpunct.texi: Likewise.
52737         * doc/posix-functions/iswspace.texi: Likewise.
52738         * doc/posix-functions/iswupper.texi: Likewise.
52739         * doc/posix-functions/iswxdigit.texi: Likewise.
52740         * doc/posix-functions/mbrtowc.texi: Likewise.
52741         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52742         * doc/posix-functions/mbstowcs.texi: Likewise.
52743         * doc/posix-functions/mbtowc.texi: Likewise.
52744         * doc/posix-functions/putwchar.texi: Likewise.
52745         * doc/posix-functions/putwc.texi: Likewise.
52746         * doc/posix-functions/swprintf.texi: Likewise.
52747         * doc/posix-functions/tolower.texi: Likewise.
52748         * doc/posix-functions/toupper.texi: Likewise.
52749         * doc/posix-functions/towctrans.texi: Likewise.
52750         * doc/posix-functions/ungetwc.texi: Likewise.
52751         * doc/posix-functions/vswprintf.texi: Likewise.
52752         * doc/posix-functions/wcrtomb.texi: Likewise.
52753         * doc/posix-functions/wcscat.texi: Likewise.
52754         * doc/posix-functions/wcschr.texi: Likewise.
52755         * doc/posix-functions/wcscmp.texi: Likewise.
52756         * doc/posix-functions/wcscoll.texi: Likewise.
52757         * doc/posix-functions/wcscpy.texi: Likewise.
52758         * doc/posix-functions/wcscspn.texi: Likewise.
52759         * doc/posix-functions/wcsftime.texi: Likewise.
52760         * doc/posix-functions/wcslen.texi: Likewise.
52761         * doc/posix-functions/wcsncat.texi: Likewise.
52762         * doc/posix-functions/wcsncmp.texi: Likewise.
52763         * doc/posix-functions/wcsncpy.texi: Likewise.
52764         * doc/posix-functions/wcspbrk.texi: Likewise.
52765         * doc/posix-functions/wcsrchr.texi: Likewise.
52766         * doc/posix-functions/wcsrtombs.texi: Likewise.
52767         * doc/posix-functions/wcsspn.texi: Likewise.
52768         * doc/posix-functions/wcsstr.texi: Likewise.
52769         * doc/posix-functions/wcstod.texi: Likewise.
52770         * doc/posix-functions/wcstof.texi: Likewise.
52771         * doc/posix-functions/wcstoimax.texi: Likewise.
52772         * doc/posix-functions/wcstok.texi: Likewise.
52773         * doc/posix-functions/wcstold.texi: Likewise.
52774         * doc/posix-functions/wcstoll.texi: Likewise.
52775         * doc/posix-functions/wcstol.texi: Likewise.
52776         * doc/posix-functions/wcstombs.texi: Likewise.
52777         * doc/posix-functions/wcstoull.texi: Likewise.
52778         * doc/posix-functions/wcstoul.texi: Likewise.
52779         * doc/posix-functions/wcstoumax.texi: Likewise.
52780         * doc/posix-functions/wcswidth.texi: Likewise.
52781         * doc/posix-functions/wcsxfrm.texi: Likewise.
52782         * doc/posix-functions/wctob.texi: Likewise.
52783         * doc/posix-functions/wctomb.texi: Likewise.
52784         * doc/posix-functions/wctrans.texi: Likewise.
52785         * doc/posix-functions/wctype.texi: Likewise.
52786         * doc/posix-functions/wcwidth.texi: Likewise.
52787         * doc/posix-functions/wmemchr.texi: Likewise.
52788         * doc/posix-functions/wmemcmp.texi: Likewise.
52789         * doc/posix-functions/wmemcpy.texi: Likewise.
52790         * doc/posix-functions/wmemmove.texi: Likewise.
52791         * doc/posix-functions/wmemset.texi: Likewise.
52792         * doc/posix-functions/wprintf.texi: Likewise.
52793         * doc/posix-functions/wscanf.texi: Likewise.
52794
52795 2008-12-21  Bruno Haible  <bruno@clisp.org>
52796
52797         Update doc for HP-UX 11.11.
52798         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52799         in HP-UX version 11.00, not in all versions of HP-UX 11.
52800         * doc/posix-functions/fwide.texi: Likewise.
52801         * doc/posix-functions/fwprintf.texi: Likewise.
52802         * doc/posix-functions/fwscanf.texi: Likewise.
52803         * doc/posix-functions/inet_ntop.texi: Likewise.
52804         * doc/posix-functions/inet_pton.texi: Likewise.
52805         * doc/posix-functions/mbrlen.texi: Likewise.
52806         * doc/posix-functions/mbrtowc.texi: Likewise.
52807         * doc/posix-functions/mbsinit.texi: Likewise.
52808         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52809         * doc/posix-functions/swprintf.texi: Likewise.
52810         * doc/posix-functions/swscanf.texi: Likewise.
52811         * doc/posix-functions/towctrans.texi: Likewise.
52812         * doc/posix-functions/vfwprintf.texi: Likewise.
52813         * doc/posix-functions/vswprintf.texi: Likewise.
52814         * doc/posix-functions/vwprintf.texi: Likewise.
52815         * doc/posix-functions/wcrtomb.texi: Likewise.
52816         * doc/posix-functions/wcsrtombs.texi: Likewise.
52817         * doc/posix-functions/wcsstr.texi: Likewise.
52818         * doc/posix-functions/wctob.texi: Likewise.
52819         * doc/posix-functions/wctrans.texi: Likewise.
52820         * doc/posix-functions/wmemchr.texi: Likewise.
52821         * doc/posix-functions/wmemcmp.texi: Likewise.
52822         * doc/posix-functions/wmemcpy.texi: Likewise.
52823         * doc/posix-functions/wmemmove.texi: Likewise.
52824         * doc/posix-functions/wmemset.texi: Likewise.
52825         * doc/posix-functions/wprintf.texi: Likewise.
52826         * doc/posix-functions/wscanf.texi: Likewise.
52827
52828 2008-12-21  Bruno Haible  <bruno@clisp.org>
52829
52830         Work around a portability problem.
52831         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52832         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52833
52834 2008-12-20  Bruno Haible  <bruno@clisp.org>
52835
52836         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52837         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52838         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52839         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52840         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52841
52842         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52843         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52844         set.
52845         (GNULIB_defined_mbstate_t): New macro.
52846         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52847         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52848         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52849         reuses the system's mbrtowc function but works around the bugs.
52850         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52851         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52852         macros.
52853         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52854         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52855         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52856         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52857         REPLACE_MBSINIT if mbsinit needs to be overridden.
52858         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52859         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52860         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52861         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52862         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52863         m4/locale-zh.m4.
52864         (Depends): Add mbsinit.
52865         * modules/mbsinit (Depends): Add mbrtowc.
52866         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52867
52868 2008-12-20  Bruno Haible  <bruno@clisp.org>
52869
52870         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52871         so that there are no conversion errors on AIX.
52872         * tests/test-mbsrtowcs.c (main): LIkewise.
52873
52874 2008-12-20  Bruno Haible  <bruno@clisp.org>
52875
52876         Work around wctob bug on Solaris <= 9.
52877         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52878         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52879         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52880         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52881         * modules/wctob (Files): Add m4/locale-fr.m4.
52882         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52883
52884 2008-12-20  Bruno Haible  <bruno@clisp.org>
52885
52886         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52887         /dev/null.
52888         * tests/test-select-in.sh: Likewise.
52889         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52890
52891 2008-12-20  Bruno Haible  <bruno@clisp.org>
52892
52893         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52894         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52895         Cygwin 1.5.x.
52896
52897 2008-12-20  Bruno Haible  <bruno@clisp.org>
52898
52899         Ensure mbstate_t is defined on HP-UX 11.11.
52900         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52901         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52902         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52903         AC_USE_SYSTEM_EXTENSIONS.
52904         * modules/fnmatch (Depends-on): Add extensions.
52905         * modules/mbrlen (Depends-on): Likewise.
52906         * modules/mbrtowc (Depends-on): Likewise.
52907         * modules/mbsinit (Depends-on): Likewise.
52908         * modules/mbsrtowcs (Depends-on): Likewise.
52909         * modules/mbswidth (Depends-on): Likewise.
52910         * modules/quotearg (Depends-on): Likewise.
52911         * modules/strftime (Depends-on): Likewise.
52912
52913 2008-12-20  Bruno Haible  <bruno@clisp.org>
52914
52915         Ensure wctob is declared on IRIX 6.5.
52916         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52917         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52918         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52919         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52920         of HAVE_WCTOB.
52921         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52922         HAVE_WCTOB.
52923         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52924
52925 2008-12-19  Bruno Haible  <bruno@clisp.org>
52926
52927         * modules/mbsrtowcs-tests: New file.
52928         * tests/test-mbsrtowcs1.sh: New file.
52929         * tests/test-mbsrtowcs2.sh: New file.
52930         * tests/test-mbsrtowcs3.sh: New file.
52931         * tests/test-mbsrtowcs4.sh: New file.
52932         * tests/test-mbsrtowcs.c: New file.
52933
52934         New module 'mbsrtowcs'.
52935         * lib/wchar.in.h (mbsrtowcs): New declaration.
52936         * lib/mbsrtowcs.c: New file.
52937         * m4/mbsrtowcs.m4: New file.
52938         * modules/mbsrtowcs: New file.
52939         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52940         HAVE_MBSRTOWCS.
52941         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52942         HAVE_MBSRTOWCS.
52943         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52944
52945 2008-12-19  Bruno Haible  <bruno@clisp.org>
52946
52947         New module 'mbrlen'.
52948         * lib/wchar.in.h (mbrlen): New declaration.
52949         * lib/mbrlen.c: New file.
52950         * m4/mbrlen.m4: New file.
52951         * modules/mbrlen: New file.
52952         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52953         HAVE_MBRLEN.
52954         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52955         HAVE_MBRLEN.
52956         * doc/posix-functions/mbrlen.texi: Document the new module.
52957
52958 2008-12-19  Bruno Haible  <bruno@clisp.org>
52959
52960         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52961         * modules/mbrtowc (Depends-on): Add verify.
52962         Suggested by Paul Eggert.
52963
52964 2008-12-18  Bruno Haible  <bruno@clisp.org>
52965
52966         * modules/mbsinit-tests: New file.
52967         * tests/test-mbsinit.sh: New file.
52968         * tests/test-mbsinit.c: New file.
52969
52970 2008-12-18  Bruno Haible  <bruno@clisp.org>
52971
52972         * modules/mbrtowc-tests: New file.
52973         * tests/test-mbrtowc1.sh: New file.
52974         * tests/test-mbrtowc2.sh: New file.
52975         * tests/test-mbrtowc3.sh: New file.
52976         * tests/test-mbrtowc4.sh: New file.
52977         * tests/test-mbrtowc.c: New file.
52978
52979         New module 'mbrtowc'.
52980         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52981         mbsinit and mbrtowc.
52982         (mbrtowc): New declaration.
52983         * lib/mbrtowc.c: New file.
52984         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52985         * modules/mbrtowc: New file.
52986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52987         HAVE_MBRTOWC.
52988         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52989         HAVE_MBRTOWC.
52990         * doc/posix-functions/mbrtowc.texi: Document the new module.
52991
52992 2008-12-18  Bruno Haible  <bruno@clisp.org>
52993
52994         New module 'wctob'.
52995         * lib/wchar.in.h (wctob): New declaration.
52996         * lib/wctob.c: New file.
52997         * m4/wctob.m4: New file.
52998         * modules/wctob: New file.
52999         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53000         HAVE_WCTOB.
53001         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53002         * doc/posix-functions/wctob.texi: Document the new module.
53003
53004 2008-12-18  Bruno Haible  <bruno@clisp.org>
53005
53006         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53007         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53008
53009 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53010
53011         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53012         G. Christensen" <tgc@jupiterrise.com>.
53013
53014         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53015         G. Christensen" <tgc@jupiterrise.com>.
53016
53017         * lib/flock.c: Need to include string.h.  Reported by "Tom
53018         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53019         <ebb9@byu.net>.
53020
53021 2008-12-18  Bruno Haible  <bruno@clisp.org>
53022
53023         * m4/locale-ja.m4: New file, from GNU gettext.
53024
53025 2008-12-17  Bruno Haible  <bruno@clisp.org>
53026
53027         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53028         Suggested by Eric Blake.
53029
53030 2008-12-17  Bruno Haible  <bruno@clisp.org>
53031
53032         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53033
53034 2008-12-17  Bruno Haible  <bruno@clisp.org>
53035
53036         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53037         * modules/mbsinit (Depends-on): Add verify.
53038         Suggested by Paul Eggert.
53039
53040 2008-12-17  Bruno Haible  <bruno@clisp.org>
53041
53042         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53043         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53044         gl_FUNC_MBRTOWC.
53045         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53046         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53047         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53048         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53049         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53050         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53051         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53052         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53053         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53054         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53055         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53056         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53057         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53058         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53059         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53060         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53061         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53062         * modules/trim (configure.ac): Likewise.
53063
53064 2008-12-17  Bruno Haible  <bruno@clisp.org>
53065
53066         * modules/btowc-tests: New file.
53067         * tests/test-btowc1.sh: New file.
53068         * tests/test-btowc2.sh: New file.
53069         * tests/test-btowc.c: New file.
53070
53071         New module 'btowc'.
53072         * lib/wchar.in.h (btowc): New declaration.
53073         * lib/btowc.c: New file.
53074         * m4/btowc.m4: New file.
53075         * modules/btowc: New file.
53076         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53077         HAVE_BTOWC.
53078         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53079         * doc/posix-functions/btowc.texi: Document the new module.
53080
53081 2008-12-17  Bruno Haible  <bruno@clisp.org>
53082
53083         New module 'mbsinit'.
53084         * lib/wchar.in.h (mbsinit): New declaration.
53085         * lib/mbsinit.c: New file.
53086         * m4/mbsinit.m4: New file.
53087         * modules/mbsinit: New file.
53088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53089         HAVE_MBSINIT.
53090         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53091         HAVE_MBSINIT.
53092         * doc/posix-functions/mbsinit.texi: Document the new module.
53093
53094 2008-12-16  Bruno Haible  <bruno@clisp.org>
53095
53096         * lib/unistd.in.h: Add comment.
53097         * tests/test-environ.c: Don't include <stdlib.h>.
53098
53099 2008-12-16  Bruno Haible  <bruno@clisp.org>
53100
53101         * lib/parse-duration.h (parse_duration): Document return value
53102         convention.
53103         * lib/parse-duration.c: Include specification header first. Add
53104         comments.
53105         (_): Remove macro.
53106         (parse_year_month_day, parse_hour_minute_second): Move side effects
53107         outside of strchr call.
53108         (parse_non_iso8601): Move side effects outside of isspace call.
53109         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53110         call.
53111
53112 2008-12-16  Bruno Haible  <bruno@clisp.org>
53113
53114         * tests/test-parse-duration.sh: Produce no output when the test
53115         succeeds.
53116
53117 2008-12-16  Bruno Haible  <bruno@clisp.org>
53118
53119         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53120         expressions.
53121
53122 2008-12-15  Bruno Haible  <bruno@clisp.org>
53123
53124         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53125         * doc/glibc-functions/flistxattr.texi: Likewise.
53126         * doc/glibc-functions/fopencookie.texi: Likewise.
53127         * doc/glibc-functions/fremovexattr.texi: Likewise.
53128         * doc/glibc-functions/fsetxattr.texi: Likewise.
53129         * doc/glibc-functions/getxattr.texi: Likewise.
53130         * doc/glibc-functions/lgetxattr.texi: Likewise.
53131         * doc/glibc-functions/listxattr.texi: Likewise.
53132         * doc/glibc-functions/llistxattr.texi: Likewise.
53133         * doc/glibc-functions/lremovexattr.texi: Likewise.
53134         * doc/glibc-functions/lsetxattr.texi: Likewise.
53135         * doc/glibc-functions/removexattr.texi: Likewise.
53136         * doc/glibc-functions/setxattr.texi: Likewise.
53137         * doc/posix-functions/open_memstream.texi: Likewise.
53138
53139 2008-12-15  Eric Blake  <ebb9@byu.net>
53140
53141         Update doc for cygwin 1.7.
53142         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53143         functions.
53144         * doc/posix-functions/fchmodat.texi: Likewise.
53145         * doc/posix-functions/fchownat.texi: Likewise.
53146         * doc/posix-functions/fdopendir.texi: Likewise.
53147         * doc/posix-functions/fmemopen.texi: Likewise.
53148         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53149         * doc/posix-functions/fstatat.texi: Likewise.
53150         * doc/posix-functions/futimens.texi: Likewise.
53151         * doc/posix-functions/gai_strerror.texi: Likewise.
53152         * doc/posix-functions/getaddrinfo.texi: Likewise.
53153         * doc/posix-functions/getnameinfo.texi: Likewise.
53154         * doc/posix-functions/if_freenameindex.texi: Likewise.
53155         * doc/posix-functions/if_indextoname.texi: Likewise.
53156         * doc/posix-functions/if_nameindex.texi: Likewise.
53157         * doc/posix-functions/if_nametoindex.texi: Likewise.
53158         * doc/posix-functions/insque.texi: Likewise.
53159         * doc/posix-functions/linkat.texi: Likewise.
53160         * doc/posix-functions/llrint.texi: Likewise.
53161         * doc/posix-functions/llrintf.texi: Likewise.
53162         * doc/posix-functions/llrintl.texi: Likewise.
53163         * doc/posix-functions/lockf.texi: Likewise.
53164         * doc/posix-functions/lrintl.texi: Likewise.
53165         * doc/posix-functions/mkdirat.texi: Likewise.
53166         * doc/posix-functions/mkfifoat.texi: Likewise.
53167         * doc/posix-functions/mknodat.texi: Likewise.
53168         * doc/posix-functions/mq_close.texi: Likewise.
53169         * doc/posix-functions/mq_getattr.texi: Likewise.
53170         * doc/posix-functions/mq_notify.texi: Likewise.
53171         * doc/posix-functions/mq_open.texi: Likewise.
53172         * doc/posix-functions/mq_receive.texi: Likewise.
53173         * doc/posix-functions/mq_send.texi: Likewise.
53174         * doc/posix-functions/mq_setattr.texi: Likewise.
53175         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53176         * doc/posix-functions/mq_timedsend.texi: Likewise.
53177         * doc/posix-functions/mq_unlink.texi: Likewise.
53178         * doc/posix-functions/open_memstream.texi: Likewise.
53179         * doc/posix-functions/openat.texi: Likewise.
53180         * doc/posix-functions/posix_fadvise.texi: Likewise.
53181         * doc/posix-functions/posix_fallocate.texi: Likewise.
53182         * doc/posix-functions/posix_madvise.texi: Likewise.
53183         * doc/posix-functions/posix_memalign.texi: Likewise.
53184         * doc/posix-functions/posix_openpt.texi: Likewise.
53185         * doc/posix-functions/readlinkat.texi: Likewise.
53186         * doc/posix-functions/remque.texi: Likewise.
53187         * doc/posix-functions/renameat.texi: Likewise.
53188         * doc/posix-functions/rintl.texi: Likewise.
53189         * doc/posix-functions/sem_unlink.texi: Likewise.
53190         * doc/posix-functions/shm_open.texi: Likewise.
53191         * doc/posix-functions/shm_unlink.texi: Likewise.
53192         * doc/posix-functions/signgam.texi: Likewise.
53193         * doc/posix-functions/sigset.texi: Likewise.
53194         * doc/posix-functions/stpcpy.texi: Likewise.
53195         * doc/posix-functions/stpncpy.texi: Likewise.
53196         * doc/posix-functions/strerror.texi: Likewise.
53197         * doc/posix-functions/strtod.texi: Likewise.
53198         * doc/posix-functions/symlinkat.texi: Likewise.
53199         * doc/posix-functions/unlinkat.texi: Likewise.
53200         * doc/posix-functions/utimensat.texi: Likewise.
53201         * doc/glibc-functions/bindresvport.texi: Likewise.
53202         * doc/glibc-functions/dn_expand.texi: Likewise.
53203         * doc/glibc-functions/exp10.texi: Likewise.
53204         * doc/glibc-functions/exp10f.texi: Likewise.
53205         * doc/glibc-functions/fgetxattr.texi: Likewise.
53206         * doc/glibc-functions/flistxattr.texi: Likewise.
53207         * doc/glibc-functions/fopencookie.texi: Likewise.
53208         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53209         * doc/glibc-functions/fremovexattr.texi: Likewise.
53210         * doc/glibc-functions/fsetxattr.texi: Likewise.
53211         * doc/glibc-functions/getifaddrs.texi: Likewise.
53212         * doc/glibc-functions/getxattr.texi: Likewise.
53213         * doc/glibc-functions/lgetxattr.texi: Likewise.
53214         * doc/glibc-functions/listxattr.texi: Likewise.
53215         * doc/glibc-functions/llistxattr.texi: Likewise.
53216         * doc/glibc-functions/lremovexattr.texi: Likewise.
53217         * doc/glibc-functions/lsetxattr.texi: Likewise.
53218         * doc/glibc-functions/pow10.texi: Likewise.
53219         * doc/glibc-functions/pow10f.texi: Likewise.
53220         * doc/glibc-functions/rcmd_af.texi: Likewise.
53221         * doc/glibc-functions/removexattr.texi: Likewise.
53222         * doc/glibc-functions/res_init.texi: Likewise.
53223         * doc/glibc-functions/res_mkquery.texi: Likewise.
53224         * doc/glibc-functions/res_query.texi: Likewise.
53225         * doc/glibc-functions/res_querydomain.texi: Likewise.
53226         * doc/glibc-functions/res_send.texi: Likewise.
53227         * doc/glibc-functions/rresvport_af.texi: Likewise.
53228         * doc/glibc-functions/setxattr.texi: Likewise.
53229         * doc/glibc-functions/strcasestr.texi: Likewise.
53230
53231 2008-12-15  Bruno Haible  <bruno@clisp.org>
53232
53233         Fix compilation error on OSF/1 4.0.
53234         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53235         <sys/time.h>, simply delegate to the system header.
53236         Reported by Daniel Richard G. <oss@teragram.com>.
53237
53238 2008-12-15  Bruno Haible  <bruno@clisp.org>
53239
53240         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53241         * doc/posix-functions/fchmodat.texi: Likewise.
53242         * doc/posix-functions/fchownat.texi: Likewise.
53243         * doc/posix-functions/fdopendir.texi: Likewise.
53244         * doc/posix-functions/fstatat.texi: Likewise.
53245         * doc/posix-functions/mkdirat.texi: Likewise.
53246         * doc/posix-functions/unlinkat.texi: Likewise.
53247
53248 2008-12-14  Bruno Haible  <bruno@clisp.org>
53249
53250         Update doc for POSIX:2008.
53251         * doc/posix-functions/faccessat.texi: New file.
53252         * doc/posix-functions/fchmodat.texi: New file.
53253         * doc/posix-functions/fchownat.texi: New file.
53254         * doc/posix-functions/fdopendir.texi: New file.
53255         * doc/posix-functions/fstatat.texi: New file.
53256         * doc/posix-functions/futimens.texi: New file.
53257         * doc/posix-functions/linkat.texi: New file.
53258         * doc/posix-functions/mkdirat.texi: New file.
53259         * doc/posix-functions/mkfifoat.texi: New file.
53260         * doc/posix-functions/mknodat.texi: New file.
53261         * doc/posix-functions/open_wmemstream.texi: New file.
53262         * doc/posix-functions/openat.texi: New file.
53263         * doc/posix-functions/psiginfo.texi: New file.
53264         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53265         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53266         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53267         * doc/posix-functions/readlinkat.texi: New file.
53268         * doc/posix-functions/renameat.texi: New file.
53269         * doc/posix-functions/strerror_l.texi: New file.
53270         * doc/posix-functions/symlinkat.texi: New file.
53271         * doc/posix-functions/unlinkat.texi: New file.
53272         * doc/posix-functions/utimensat.texi: New file.
53273         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53274
53275 2008-12-14  Bruno Haible  <bruno@clisp.org>
53276
53277         Update doc for POSIX:2008.
53278         * doc/posix-functions/alphasort.texi: Renamed from
53279         doc/glibc-functions/alphasort.texi.
53280         * doc/posix-functions/dirfd.texi: Renamed from
53281         doc/glibc-functions/dirfd.texi.
53282         * doc/posix-functions/dprintf.texi: Renamed from
53283         doc/glibc-functions/dprintf.texi.
53284         * doc/posix-functions/duplocale.texi: Renamed from
53285         doc/glibc-functions/duplocale.texi.
53286         * doc/posix-functions/fexecve.texi: Renamed from
53287         doc/glibc-functions/fexecve.texi.
53288         * doc/posix-functions/fmemopen.texi: Renamed from
53289         doc/glibc-functions/fmemopen.texi.
53290         * doc/posix-functions/freelocale.texi: Renamed from
53291         doc/glibc-functions/freelocale.texi.
53292         * doc/posix-functions/getdate_err.texi: Renamed from
53293         doc/glibc-functions/getdate_err.texi.
53294         * doc/posix-functions/isalnum_l.texi: Renamed from
53295         doc/glibc-functions/isalnum_l.texi.
53296         * doc/posix-functions/isalpha_l.texi: Renamed from
53297         doc/glibc-functions/isalpha_l.texi.
53298         * doc/posix-functions/isblank_l.texi: Renamed from
53299         doc/glibc-functions/isblank_l.texi.
53300         * doc/posix-functions/iscntrl_l.texi: Renamed from
53301         doc/glibc-functions/iscntrl_l.texi.
53302         * doc/posix-functions/isdigit_l.texi: Renamed from
53303         doc/glibc-functions/isdigit_l.texi.
53304         * doc/posix-functions/isgraph_l.texi: Renamed from
53305         doc/glibc-functions/isgraph_l.texi.
53306         * doc/posix-functions/islower_l.texi: Renamed from
53307         doc/glibc-functions/islower_l.texi.
53308         * doc/posix-functions/isprint_l.texi: Renamed from
53309         doc/glibc-functions/isprint_l.texi.
53310         * doc/posix-functions/ispunct_l.texi: Renamed from
53311         doc/glibc-functions/ispunct_l.texi.
53312         * doc/posix-functions/isspace_l.texi: Renamed from
53313         doc/glibc-functions/isspace_l.texi.
53314         * doc/posix-functions/isupper_l.texi: Renamed from
53315         doc/glibc-functions/isupper_l.texi.
53316         * doc/posix-functions/iswalnum_l.texi: Renamed from
53317         doc/glibc-functions/iswalnum_l.texi.
53318         * doc/posix-functions/iswalpha_l.texi: Renamed from
53319         doc/glibc-functions/iswalpha_l.texi.
53320         * doc/posix-functions/iswblank_l.texi: Renamed from
53321         doc/glibc-functions/iswblank_l.texi.
53322         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53323         doc/glibc-functions/iswcntrl_l.texi.
53324         * doc/posix-functions/iswctype_l.texi: Renamed from
53325         doc/glibc-functions/iswctype_l.texi.
53326         * doc/posix-functions/iswdigit_l.texi: Renamed from
53327         doc/glibc-functions/iswdigit_l.texi.
53328         * doc/posix-functions/iswgraph_l.texi: Renamed from
53329         doc/glibc-functions/iswgraph_l.texi.
53330         * doc/posix-functions/iswlower_l.texi: Renamed from
53331         doc/glibc-functions/iswlower_l.texi.
53332         * doc/posix-functions/iswprint_l.texi: Renamed from
53333         doc/glibc-functions/iswprint_l.texi.
53334         * doc/posix-functions/iswpunct_l.texi: Renamed from
53335         doc/glibc-functions/iswpunct_l.texi.
53336         * doc/posix-functions/iswspace_l.texi: Renamed from
53337         doc/glibc-functions/iswspace_l.texi.
53338         * doc/posix-functions/iswupper_l.texi: Renamed from
53339         doc/glibc-functions/iswupper_l.texi.
53340         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53341         doc/glibc-functions/iswxdigit_l.texi.
53342         * doc/posix-functions/isxdigit_l.texi: Renamed from
53343         doc/glibc-functions/isxdigit_l.texi.
53344         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53345         doc/glibc-functions/mbsnrtowcs.texi.
53346         * doc/posix-functions/mkdtemp.texi: Renamed from
53347         doc/glibc-functions/mkdtemp.texi.
53348         * doc/posix-functions/newlocale.texi: Renamed from
53349         doc/glibc-functions/newlocale.texi.
53350         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53351         doc/glibc-functions/nl_langinfo_l.texi.
53352         * doc/posix-functions/open_memstream.texi: Renamed from
53353         doc/glibc-functions/open_memstream.texi.
53354         * doc/posix-functions/opterr.texi: Renamed from
53355         doc/glibc-functions/opterr.texi.
53356         * doc/posix-functions/optind.texi: Renamed from
53357         doc/glibc-functions/optind.texi.
53358         * doc/posix-functions/optopt.texi: Renamed from
53359         doc/glibc-functions/optopt.texi.
53360         * doc/posix-functions/psignal.texi: Renamed from
53361         doc/glibc-functions/psignal.texi.
53362         * doc/posix-functions/scandir.texi: Renamed from
53363         doc/glibc-functions/scandir.texi.
53364         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53365         doc/glibc-functions/sched_get_priority_min.texi.
53366         * doc/posix-functions/signgam.texi: Renamed from
53367         doc/glibc-functions/signgam.texi.
53368         * doc/posix-functions/stpcpy.texi: Renamed from
53369         doc/glibc-functions/stpcpy.texi.
53370         * doc/posix-functions/stpncpy.texi: Renamed from
53371         doc/glibc-functions/stpncpy.texi.
53372         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53373         doc/glibc-functions/strcasecmp_l.texi.
53374         * doc/posix-functions/strcoll_l.texi: Renamed from
53375         doc/glibc-functions/strcoll_l.texi.
53376         * doc/posix-functions/strfmon_l.texi: Renamed from
53377         doc/glibc-functions/strfmon_l.texi.
53378         * doc/posix-functions/strftime_l.texi: Renamed from
53379         doc/glibc-functions/strftime_l.texi.
53380         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53381         doc/glibc-functions/strncasecmp_l.texi.
53382         * doc/posix-functions/strndup.texi: Renamed from
53383         doc/glibc-functions/strndup.texi.
53384         * doc/posix-functions/strnlen.texi: Renamed from
53385         doc/glibc-functions/strnlen.texi.
53386         * doc/posix-functions/strsignal.texi: Renamed from
53387         doc/glibc-functions/strsignal.texi.
53388         * doc/posix-functions/strxfrm_l.texi: Renamed from
53389         doc/glibc-functions/strxfrm_l.texi.
53390         * doc/posix-functions/timer_gettime.texi: Renamed from
53391         doc/glibc-functions/timer_gettime.texi.
53392         * doc/posix-functions/tolower_l.texi: Renamed from
53393         doc/glibc-functions/tolower_l.texi.
53394         * doc/posix-functions/toupper_l.texi: Renamed from
53395         doc/glibc-functions/toupper_l.texi.
53396         * doc/posix-functions/towctrans_l.texi: Renamed from
53397         doc/glibc-functions/towctrans_l.texi.
53398         * doc/posix-functions/towlower_l.texi: Renamed from
53399         doc/glibc-functions/towlower_l.texi.
53400         * doc/posix-functions/towupper_l.texi: Renamed from
53401         doc/glibc-functions/towupper_l.texi.
53402         * doc/posix-functions/uselocale.texi: Renamed from
53403         doc/glibc-functions/uselocale.texi.
53404         * doc/posix-functions/vdprintf.texi: Renamed from
53405         doc/glibc-functions/vdprintf.texi.
53406         * doc/posix-functions/wcpcpy.texi:
53407         Renamed from doc/glibc-functions/wcpcpy.texi.
53408         * doc/posix-functions/wcpncpy.texi: Renamed from
53409         doc/glibc-functions/wcpncpy.texi.
53410         * doc/posix-functions/wcscasecmp.texi: Renamed from
53411         doc/glibc-functions/wcscasecmp.texi.
53412         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53413         doc/glibc-functions/wcscasecmp_l.texi.
53414         * doc/posix-functions/wcscoll_l.texi: Renamed from
53415         doc/glibc-functions/wcscoll_l.texi.
53416         * doc/posix-functions/wcsdup.texi: Renamed from
53417         doc/glibc-functions/wcsdup.texi.
53418         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53419         doc/glibc-functions/wcsncasecmp.texi.
53420         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53421         doc/glibc-functions/wcsncasecmp_l.texi.
53422         * doc/posix-functions/wcsnlen.texi: Renamed from
53423         doc/glibc-functions/wcsnlen.texi.
53424         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53425         doc/glibc-functions/wcsnrtombs.texi.
53426         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53427         doc/glibc-functions/wcsxfrm_l.texi.
53428         * doc/posix-functions/wctrans_l.texi: Renamed from
53429         doc/glibc-functions/wctrans_l.texi.
53430         * doc/posix-functions/wctype_l.texi: Renamed from
53431         doc/glibc-functions/wctype_l.texi.
53432         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53433         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53434         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53435         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53436         these subsections.
53437         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53438         Remove sections.
53439
53440 2008-12-14  Bruno Haible  <bruno@clisp.org>
53441
53442         Update doc for POSIX:2008.
53443         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53444
53445 2008-12-14  Bruno Haible  <bruno@clisp.org>
53446
53447         Update doc for POSIX:2008.
53448         * doc/pastposix-functions/bcmp.texi: Renamed from
53449         doc/posix-functions/bcmp.texi.
53450         * doc/pastposix-functions/bcopy.texi: Renamed from
53451         doc/posix-functions/bcopy.texi.
53452         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53453         doc/posix-functions/bsd_signal.texi.
53454         * doc/pastposix-functions/bzero.texi: Renamed from
53455         doc/posix-functions/bzero.texi.
53456         * doc/pastposix-functions/ecvt.texi: Renamed from
53457         doc/posix-functions/ecvt.texi.
53458         * doc/pastposix-functions/fcvt.texi: Renamed from
53459         doc/posix-functions/fcvt.texi.
53460         * doc/pastposix-functions/ftime.texi: Renamed from
53461         doc/posix-functions/ftime.texi.
53462         * doc/pastposix-functions/gcvt.texi: Renamed from
53463         doc/posix-functions/gcvt.texi.
53464         * doc/pastposix-functions/getcontext.texi: Renamed from
53465         doc/posix-functions/getcontext.texi.
53466         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53467         doc/posix-functions/gethostbyaddr.texi.
53468         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53469         doc/posix-functions/gethostbyname.texi.
53470         * doc/pastposix-functions/getwd.texi: Renamed from
53471         doc/posix-functions/getwd.texi.
53472         * doc/pastposix-functions/h_errno.texi: Renamed from
53473         doc/posix-functions/h_errno.texi.
53474         * doc/pastposix-functions/index.texi: Renamed from
53475         doc/posix-functions/index.texi.
53476         * doc/pastposix-functions/makecontext.texi: Renamed from
53477         doc/posix-functions/makecontext.texi.
53478         * doc/pastposix-functions/mktemp.texi: Renamed from
53479         doc/posix-functions/mktemp.texi.
53480         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53481         doc/posix-functions/pthread_attr_getstackaddr.texi.
53482         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53483         doc/posix-functions/pthread_attr_setstackaddr.texi.
53484         * doc/pastposix-functions/rindex.texi: Renamed from
53485         doc/posix-functions/rindex.texi.
53486         * doc/pastposix-functions/scalb.texi: Renamed from
53487         doc/posix-functions/scalb.texi.
53488         * doc/pastposix-functions/setcontext.texi: Renamed from
53489         doc/posix-functions/setcontext.texi.
53490         * doc/pastposix-functions/swapcontext.texi: Renamed from
53491         doc/posix-functions/swapcontext.texi.
53492         * doc/pastposix-functions/ualarm.texi: Renamed from
53493         doc/posix-functions/ualarm.texi.
53494         * doc/pastposix-functions/usleep.texi: Renamed from
53495         doc/posix-functions/usleep.texi.
53496         * doc/pastposix-functions/vfork.texi: Renamed from
53497         doc/posix-functions/vfork.texi.
53498         * doc/pastposix-functions/wcswcs.texi: Renamed from
53499         doc/posix-functions/wcswcs.texi.
53500         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53501         (Function Substitutes): Update.
53502
53503 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53504
53505         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53506         m4/strerror.m4.
53507
53508 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53509             Bruno Haible  <bruno@clisp.org>
53510
53511         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53512
53513 2008-12-13  Bruno Haible  <bruno@clisp.org>
53514
53515         * modules/strtoull (Depends-on): Remove unistd.
53516
53517 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53518
53519         * modules/strtoull (Depends-on): Add stdlib.
53520
53521 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53522
53523         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53524
53525 2008-12-10  Jim Meyering  <meyering@redhat.com>
53526
53527         gl_ASSERT: don't say assertions are disabled when they're not
53528         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53529         "checking whether to enable assertions... no", when they are in
53530         fact enabled.  This is solely a bug in the output of configure.
53531         In spite of saying "no", NDEBUG was not defined in that case.
53532         Also, as noted by Eric Blake, leave assertions enabled upon
53533         --enable-assert=INVALID.
53534
53535 2008-12-10  Bruno Haible  <bruno@clisp.org>
53536
53537         Change MODULES.html to refer to POSIX:2008 where possible.
53538         * MODULES.html.sh (POSIX2008_URL): New variable.
53539         (posix_headers): Remove sys/timeb, ucontext.
53540         (posix2001_headers): New variable.
53541         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53542         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53543         index, makecontext, mktemp, pthread_attr_getstackaddr,
53544         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53545         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53546         (posix2001_functions): New variable.
53547         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53548         otherwise.
53549
53550 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53551
53552         add missing include to parse-duration.c
53553         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53554         * modules/parse-duration (Depends-on): Add xalloc.
53555
53556         fix sed script reading maint.mk
53557         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53558         (syntax-check-rules): Use it.
53559
53560 2008-12-09  Bruno Haible  <bruno@clisp.org>
53561
53562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53563         MacOS X 10.4/PowerPC.
53564         Reported by Simon Josefsson.
53565
53566 2008-12-08  Jim Meyering  <meyering@redhat.com>
53567
53568         work around mingw's lack of some S_IF definitions
53569         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53570         Reported by Simon Josefsson.
53571
53572 2008-12-08  Bruno Haible  <bruno@clisp.org>
53573
53574         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53575         applied to variables. Needed on MacOS X 10.4/PowerPC.
53576         Reported by Simon Josefsson.
53577
53578 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53579         and Eric Blake  <ebb9@byu.net>
53580
53581         assert: honor --enable-assert
53582         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53583         order to honor --enable-assert, rather than treating it as a
53584         synonym for --disable-assert.
53585
53586 2008-12-08  Jim Meyering  <meyering@redhat.com>
53587
53588         * lib/posixtm.c: Remove now-useless declaration of mktime.
53589
53590         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53591
53592 2008-12-07  Bruno Haible  <bruno@clisp.org>
53593
53594         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53595         test_once): Mark functions as static.
53596         * tests/test-tls.c (test_tls): Likewise.
53597
53598 2008-12-07  Bruno Haible  <bruno@clisp.org>
53599
53600         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53601         iconv_register_autodetect.
53602
53603 2008-12-07  Jim Meyering  <meyering@redhat.com>
53604
53605         posixtm.c: avoid a warning
53606         * lib/posixtm.c (posixtime): Don't initialize tm0.
53607         It's no longer needed to placate gcc4's -Wuninitialized,
53608         and the attempt to placate would elicit a new warning.
53609
53610         unicodeio.c: mark unused parameters
53611         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53612         (fallback_failure_callback): Likewise.
53613
53614 2008-12-07  Bruno Haible  <bruno@clisp.org>
53615
53616         * gnulib-tool (func_create_testdir): When building the tests
53617         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53618         Reported by Simon Josefsson.
53619
53620 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53621
53622         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53623
53624 2008-12-06  Bruno Haible  <bruno@clisp.org>
53625
53626         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53627         Suggested by Eric Blake.
53628
53629 2008-12-06  Bruno Haible  <bruno@clisp.org>
53630
53631         Fix a c-stack test failure on MacOS X.
53632         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53633         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53634         handler for SIGBUS as well.
53635         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53636         install a signal handler for SIGBUS as well.
53637         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53638
53639 2008-12-06  Bruno Haible  <bruno@clisp.org>
53640
53641         Advocacy documentation.
53642         * doc/gnulib-intro.texi (Benefits): New section.
53643         * doc/gnulib.texi: Update.
53644
53645 2008-12-06  Bruno Haible  <bruno@clisp.org>
53646
53647         Document the 'manywarnings' module.
53648         * doc/manywarnings.texi: New file.
53649         * doc/gnulib.texi: Include it.
53650
53651 2008-12-05  Eric Blake  <ebb9@byu.net>
53652
53653         tests: silence some gcc warnings
53654         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53655         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53656         type mismatches.
53657
53658 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53659             Bruno Haible  <bruno@clisp.org>
53660
53661         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53662
53663 2008-11-29  Jim Meyering  <meyering@redhat.com>
53664
53665         unicodeio.c: mark unused parameters
53666         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53667         (fallback_failure_callback): Likewise.
53668
53669         fts: fix a thinko
53670         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53671         (set_stat_type): Return S_IF*-valued "type" directly.
53672         Prompted by James Youngman's spotting a related bug.
53673         Confirmed by further testing through find.
53674
53675         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53676         * lib/fts.c (D_TYPE): Define.
53677         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53678         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53679         (s_ifmt_shift_bits): New function.
53680         (set_stat_type): New function.
53681         (fts_build): When not calling fts_stat, call set_stat_type
53682         to propagate dirent.d_type info to fts_read caller.
53683         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53684         fts_statp->st_mode type information may be valid.
53685
53686 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53687
53688         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53689         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53690         <sds@gnu.org>.
53691
53692 2008-11-20  Bruno Haible  <bruno@clisp.org>
53693
53694         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53695         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53696         INCLUDE_NEXT.
53697         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53698         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53699         * modules/math (Makefile.am): Substitute
53700         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53701         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53702
53703 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53704             Bruno Haible  <bruno@clisp.org>
53705
53706         * lib/stdint.in.h: Define all type macros so that their expansion is
53707         a single typedef'ed token. Fixes a compilation failure in Boost which
53708         does "using ::int8_t;".
53709
53710 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53711
53712         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53713         gl_MANYWARN_ALL_GCC.
53714         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53715         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53716         * modules/manywarnings: New file.
53717         * MODULES.html.sh: Mention manywarnings module.
53718
53719 2008-11-18  Bruno Haible  <bruno@clisp.org>
53720
53721         * doc/gnulib-tool.texi (Unit tests): New section.
53722
53723 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53724
53725         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53726         paths like 'lib/po/foo.po'.
53727
53728 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53729
53730         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53731         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53732
53733 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53734
53735         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53736         parameter works.
53737
53738 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53739
53740         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53741
53742 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53743
53744         * modules/parse-duration-tests: New file.
53745         * tests/test-parse-duration.sh: New file.
53746         * tests/test-parse-duration.c: New file.
53747
53748         New module 'parse-duration'.
53749         * lib/parse-duration.h: New file.
53750         * lib/parse-duration.c: New file.
53751         * modules/parse-duration: New file.
53752
53753 2008-11-17  Bruno Haible  <bruno@clisp.org>
53754
53755         * tests/test-select-out.sh: Comment out the first pipe test.
53756         Reported by Simon Josefsson.
53757
53758 2008-11-17  Bruno Haible  <bruno@clisp.org>
53759
53760         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53761         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53762         gl_HOSTENT.
53763
53764 2008-11-17  Bruno Haible  <bruno@clisp.org>
53765
53766         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53767         -lnetwork and -lnet. Needed for Haiku and BeOS.
53768
53769 2008-11-16  Bruno Haible  <bruno@clisp.org>
53770
53771         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53772
53773 2008-11-16  Bruno Haible  <bruno@clisp.org>
53774
53775         Avoid test failure on Haiku.
53776         * tests/test-fsync.c: Include <errno.h>.
53777         (main): Don't require that fsync (0) fails.
53778
53779 2008-11-15  Bruno Haible  <bruno@clisp.org>
53780
53781         New module 'hostent'.
53782         * modules/hostent: New file.
53783         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53784
53785 2008-11-15  Bruno Haible  <bruno@clisp.org>
53786
53787         New module 'servent'.
53788         * modules/servent: New file.
53789         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53790
53791 2008-11-15  Bruno Haible  <bruno@clisp.org>
53792
53793         Avoid generating same test program with two different rules.
53794         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53795         test-frexp to test-frexp-nolibm.
53796         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53797         test-frexpl to test-frexpl-nolibm.
53798
53799 2008-11-15  Bruno Haible  <bruno@clisp.org>
53800
53801         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53802         $(FREXPL_LIBM).
53803
53804 2008-11-15  Bruno Haible  <bruno@clisp.org>
53805
53806         * lib/netdb.in.h: Activate the definitions also when the system's
53807         <netdb.h> has 'struct addrinfo'.
53808         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53809         EAI_OVERFLOW or AI_NUMERICSERV.
53810         * doc/posix-headers/netdb.texi: Document the problem.
53811
53812 2008-11-15  Bruno Haible  <bruno@clisp.org>
53813
53814         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53815
53816         Make the 'sched' module work on platforms where <sched.h> exists but
53817         is incomplete (such as Haiku).
53818         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53819         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53820         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53821         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53822         HAVE_STRUCT_SCHED_PARAM.
53823         * modules/sched (Depends-on): Add include_next.
53824         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53825         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53826         * doc/posix-headers/sched.texi: Document the issue.
53827
53828 2008-11-13  Jim Meyering  <meyering@redhat.com>
53829
53830         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53831         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53832         test would fail due to the difference in the Report bugs to ...
53833         line.  The expected address is empty, "<>", while the actual
53834         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53835
53836 2008-11-12  Bruno Haible  <bruno@clisp.org>
53837
53838         lstat: don't compile lstat.c on systems lacking lstat
53839         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53840         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53841         Reported by Daniel P. Berrange via Jim Meyering.
53842
53843 2008-11-12  Jim Meyering  <meyering@redhat.com>
53844
53845         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53846
53847 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53848
53849         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53850         instead.
53851
53852 2008-11-12  Bruno Haible  <bruno@clisp.org>
53853
53854         * lib/unicodeio.c: Include unistr.h.
53855         (utf8_wctomb): Remove function.
53856         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53857
53858 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53859
53860         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53861         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53862         <bruno@clisp.org>.
53863         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53864
53865 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53866
53867         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53868         * doc/gnulib.texi: Add section for warnings.
53869
53870 2008-11-11  Bruno Haible  <bruno@clisp.org>
53871
53872         * lib/sockets.h: Add a comment.
53873
53874 2008-11-11  Karl Berry  <karl@gnu.org>
53875
53876         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53877
53878 2008-11-11  Eric Blake  <ebb9@byu.net>
53879
53880         fdl.texi: avoid git symlinks
53881         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53882
53883 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53884
53885         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53886
53887 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53888
53889         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53890         (gl_WARN_ADD): Substitute $2 if literal.
53891
53892 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53893
53894         * m4/warning.m4: Remove.
53895
53896 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53897
53898         * m4/warnings.m4: Almost complete rewrite. :-)
53899
53900 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53901
53902         * modules/warnings: New module.
53903         * m4/warnings.m4: New file.
53904         * MODULES.html.sh: Mention warnings module.
53905         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53906         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53907
53908 2008-11-10  Eric Blake  <ebb9@byu.net>
53909
53910         fdl.texi: make a symlink to the latest version
53911         * doc/standards.texi: Revert today's earlier change.
53912         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53913         * doc/fdl.texi: ...and replace this with a symlink to the newer
53914         fdl-1.3.texi.
53915
53916 2008-11-10  Bruno Haible  <bruno@clisp.org>
53917
53918         * tests/test-select-fd.c (main): Accept the result file name as fourth
53919         argument.
53920         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53921         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53922
53923 2008-11-10  Bruno Haible  <bruno@clisp.org>
53924
53925         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53926         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53927         as autoconf-substituted macros.
53928         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53929         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53930         gl_NETDB_H_DEFAULTS. Set these variables.
53931         * modules/netdb (Makefile.am): Substitute these variables.
53932
53933 2008-11-10  Eric Blake  <ebb9@byu.net>
53934
53935         standards.texi: include correct file for FDL 1.3
53936         * doc/standards.texi (GNU Free Documentation License): Change
53937         include file to pull in FDL 1.3, not 1.2.
53938
53939         fdl.texi: revert accidental change to license
53940         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53941
53942 2008-11-10  Bruno Haible  <bruno@clisp.org>
53943
53944         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53945         cross-compiling guesses also when the native compile gives no result.
53946
53947 2008-11-10  Bruno Haible  <bruno@clisp.org>
53948
53949         * lib/spawni.c (__spawni): Force variable into the stack.
53950
53951 2008-11-10  Bruno Haible  <bruno@clisp.org>
53952
53953         Add support for Haiku.
53954         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53955         glibc and BeOS, but also on Haiku.
53956         * lib/fpurge.c (fpurge): Likewise.
53957         * lib/freadable.c (freadable): Likewise.
53958         * lib/freadahead.c (freadahead): Likewise.
53959         * lib/freading.c (freading): Likewise.
53960         * lib/freadptr.c (freadptr): Likewise.
53961         * lib/freadseek.c (freadptrinc): Likewise.
53962         * lib/fseeko.c (rpl_fseeko): Likewise.
53963         * lib/fseterr.c (fseterr): Likewise.
53964         * lib/fwritable.c (fwritable): Likewise.
53965         * lib/fwriting.c (fwriting): Likewise.
53966         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53967
53968 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53969
53970         * lib/config.charset: Treat Haiku like BeOS.
53971
53972 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53973
53974         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53975         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53976
53977 2008-11-08  Bruno Haible  <bruno@clisp.org>
53978
53979         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53980         AC_CACHE_CHECK.
53981
53982 2008-11-08  Bruno Haible  <bruno@clisp.org>
53983
53984         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53985
53986 2008-11-08  Bruno Haible  <bruno@clisp.org>
53987
53988         * tests/test-select-fd.c: New file.
53989         * tests/test-select-in.sh: New file.
53990         * tests/test-select-out.sh: New file.
53991         * tests/test-select-stdin.c: New file.
53992         * modules/select-tests (Files): Add the new files.
53993         (Depends-on): Add gettimeofday.
53994         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53995         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53996         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53997
53998 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53999             Bruno Haible  <bruno@clisp.org>
54000
54001         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54002
54003 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54004
54005         * build-aux/pmccabe2html: Added support for C++ source files.
54006
54007 2008-11-05  Ben Pfaff  <blp@gnu.org>
54008
54009         Fix lib/close.c build on Windows.
54010         * modules/close (Files): Add lib/w32sock.h.
54011
54012 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54013
54014         Accept Bison's NEWS format.
54015         * build-aux/announce-gen (print_news_deltas): Tweak
54016         $re_prefix.
54017
54018 2008-11-04  Bruno Haible  <bruno@clisp.org>
54019
54020         * modules/random_r (Maintainer): Add glibc.
54021
54022 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54023
54024         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54025         by karl@freefriends.org (Karl Berry).
54026         * doc/alloca.texi: Likewise.
54027         * doc/c-ctype.texi: Likewise.
54028         * doc/c-strcase.texi: Likewise.
54029         * doc/c-strcaseeq.texi: Likewise.
54030         * doc/c-strcasestr.texi: Likewise.
54031         * doc/c-strstr.texi: Likewise.
54032         * doc/c-strtod.texi: Likewise.
54033         * doc/c-strtold.texi: Likewise.
54034         * doc/ctime.texi: Likewise.
54035         * doc/error.texi: Likewise.
54036         * doc/fdl.texi: Likewise.
54037         * doc/gcd.texi: Likewise.
54038         * doc/getdate.texi: Likewise.
54039         * doc/gnulib-intro.texi: Likewise.
54040         * doc/gnulib-tool.texi: Likewise.
54041         * doc/gnulib.texi: Likewise.
54042         * doc/inet_ntoa.texi: Likewise.
54043         * doc/maintain.texi: Likewise.
54044         * doc/make-stds.texi: Likewise.
54045         * doc/quote.texi: Likewise.
54046         * doc/regexprops-generic.texi: Likewise.
54047         * doc/standards.texi: Likewise.
54048         * doc/verify.texi: Likewise.
54049         * doc/visibility.texi: Likewise.
54050         * doc/gnulib.texi (GNU Free Documentation License): Include
54051         fdl-1.3.texi instead of fdl.texi.
54052
54053 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54054
54055         * doc/fdl-1.3.texi: New file, from
54056         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54057         * modules/fdl-1.3: Add.
54058         * MODULES.html.sh: Add fdl-1.3.
54059
54060 2008-11-03  Bruno Haible  <bruno@clisp.org>
54061
54062         Make determination of absolute name of header file work with AIX xlc.
54063         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54064         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54065         preprocessing.
54066         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54067         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54068
54069 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54070
54071         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54072         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54073         <ludo@gnu.org>.
54074
54075 2008-11-02  Bruno Haible  <bruno@clisp.org>
54076
54077         Mark 'strpbrk' obsolete.
54078         * modules/strpbrk (Status, Notice): New sections.
54079         * modules/strtok_r (Depends-on): Add strpbrk.
54080
54081 2008-11-02  Bruno Haible  <bruno@clisp.org>
54082
54083         Mark 'strdup' obsolete.
54084         * modules/strdup (Status, Notice): New sections.
54085         * modules/findprog (Depends-on): Add strdup.
54086         * modules/getaddrinfo (Depends-on): Likewise.
54087         * modules/localename (Depends-on): Likewise.
54088         * modules/relocatable-lib (Depends-on): Likewise.
54089         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54090         * modules/relocatable-prog (Depends-on): Likewise.
54091         * modules/trim (Depends-on): Likewise.
54092         * modules/unictype/gen-ctype (Depends-on): Likewise.
54093         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54094
54095 2008-11-02  Bruno Haible  <bruno@clisp.org>
54096
54097         Mark 'strcspn' obsolete.
54098         * modules/strcspn (Status, Notice): New sections.
54099
54100 2008-11-02  Bruno Haible  <bruno@clisp.org>
54101
54102         Mark 'rmdir' obsolete.
54103         * modules/rmdir (Status, Notice): New sections.
54104         * modules/clean-temp (Depends-on): Add rmdir.
54105         * modules/openat (Depends-on): Likewise.
54106
54107 2008-11-02  Bruno Haible  <bruno@clisp.org>
54108
54109         Mark 'raise' obsolete.
54110         * modules/raise (Status, Notice): New sections.
54111         (Include): Specify <signal.h>.
54112         * modules/stdio (Depends-on): Add raise.
54113         * modules/write (Depends-on): Likewise.
54114
54115 2008-11-02  Bruno Haible  <bruno@clisp.org>
54116
54117         Mark 'memset' obsolete.
54118         * modules/memset (Status, Notice): New sections.
54119
54120 2008-11-02  Bruno Haible  <bruno@clisp.org>
54121
54122         Mark 'memmove' obsolete.
54123         * modules/memmove (Status, Notice): New sections.
54124         * modules/argp (Depends-on): Add memmove.
54125         * modules/argz (Depends-on): Likewise.
54126         * modules/canonicalize (Depends-on): Likewise.
54127         * modules/canonicalize-lgpl (Depends-on): Likewise.
54128         * modules/fts (Depends-on): Likewise.
54129         * modules/getcwd (Depends-on): Likewise.
54130         * modules/human (Depends-on): Likewise.
54131         * modules/regex (Depends-on): Likewise.
54132         * modules/striconveh (Depends-on): Likewise.
54133         * modules/trim (Depends-on): Likewise.
54134         * modules/unistr/u8-move (Depends-on): Likewise.
54135         * modules/unistr/u16-move (Depends-on): Likewise.
54136         * modules/unistr/u32-move (Depends-on): Likewise.
54137
54138 2008-11-02  Bruno Haible  <bruno@clisp.org>
54139
54140         Mark 'memcpy' obsolete.
54141         * modules/memcpy (Status, Notice): New sections.
54142
54143 2008-11-02  Bruno Haible  <bruno@clisp.org>
54144
54145         Mark 'memcmp' obsolete.
54146         * modules/memcmp (Status, Notice): New sections.
54147         * modules/argmatch (Depends-on): Add memchr.
54148         * modules/backupfile (Depends-on): Likewise.
54149         * modules/c-strcasestr (Depends-on): Likewise.
54150         * modules/crypto/des (Depends-on): Likewise.
54151         * modules/csharpcomp (Depends-on): Likewise.
54152         * modules/fnmatch (Depends-on): Likewise.
54153         * modules/git-merge-changelog (Depends-on): Likewise.
54154         * modules/isnand (Depends-on): Likewise.
54155         * modules/isnand-nolibm (Depends-on): Likewise.
54156         * modules/isnanf (Depends-on): Likewise.
54157         * modules/isnanf-nolibm (Depends-on): Likewise.
54158         * modules/isnanl (Depends-on): Likewise.
54159         * modules/isnanl-nolibm (Depends-on): Likewise.
54160         * modules/mbchar (Depends-on): Likewise.
54161         * modules/memcoll (Depends-on): Likewise.
54162         * modules/quotearg (Depends-on): Likewise.
54163         * modules/regex (Depends-on): Likewise.
54164         * modules/relocatable-prog (Depends-on): Likewise.
54165         * modules/same (Depends-on): Likewise.
54166         * modules/signbit (Depends-on): Likewise.
54167         * modules/strcasestr-simple (Depends-on): Likewise.
54168         * modules/unictype/gen-ctype (Depends-on): Likewise.
54169         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54170         * modules/uniname/uniname (Depends-on): Likewise.
54171         * modules/unistr/u8-cmp (Depends-on): Likewise.
54172
54173 2008-11-02  Bruno Haible  <bruno@clisp.org>
54174
54175         Mark 'memchr' obsolete.
54176         * modules/memchr (Status, Notice): New sections.
54177         * modules/argp (Depends-on): Add memchr.
54178         * modules/base64 (Depends-on): Likewise.
54179         * modules/c-strcasestr (Depends-on): Likewise.
54180         * modules/chdir-long (Depends-on): Likewise.
54181         * modules/fnmatch (Depends-on): Likewise.
54182         * modules/getsubopt (Depends-on): Likewise.
54183         * modules/git-merge-changelog (Depends-on): Likewise.
54184         * modules/glob (Depends-on): Likewise.
54185         * modules/strcasestr-simple (Depends-on): Likewise.
54186         * modules/strnlen (Depends-on): Likewise.
54187
54188 2008-11-02  Bruno Haible  <bruno@clisp.org>
54189
54190         Mark 'atexit' obsolete.
54191         * modules/atexit (Status, Notice): New sections.
54192         * modules/chdir-long (Depends-on): Add atexit.
54193         * modules/wait-process (Depends-on): Likewise.
54194
54195 2008-11-02  Bruno Haible  <bruno@clisp.org>
54196
54197         * gnulib-tool: New option --with-obsolete.
54198         (func_usage): Document it.
54199         (func_modules_transitive_closure): Drop obsolete dependencies if
54200         incobsolete is not true.
54201         (func_import): Read and save the incobsolete variable to the cache.
54202
54203 2008-11-02  Bruno Haible  <bruno@clisp.org>
54204
54205         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54206         * gnulib-tool: New option --extract-status.
54207         (func_usage): Document it.
54208         (sed_extract_prog): Recognize it.
54209         (func_get_status): New function.
54210
54211 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54212
54213         * modules/sockets (License): Change from LGPL to LGPLv2+.
54214
54215 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54216
54217         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54218
54219 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54220
54221         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54222         Mention times and sys_times.
54223         * modules/sys_times, modules/sys_times-tests: New modules.
54224         * modules/times, modules/times-tests: Likewise
54225         * m4/sys_times_h.m4: New file.
54226         * lib/sys_times.in.h: Likewise
54227         * lib/times.c: Likewise.
54228         * tests/test-sys_times.c: Likewise.
54229         * tests/test-times.c: Likewise.
54230         * doc/posix-headers/sys_times.texi: Update.
54231         * doc/posix-functions/times.texi: Update.
54232
54233 2008-10-28  Jim Meyering  <meyering@redhat.com>
54234
54235         * modules/tempname (Depends-on): Add lstat.
54236
54237         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54238
54239 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54240
54241         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54242         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54243         using idiom used elsewhere in gnulib.
54244
54245 2008-10-27  Jim Meyering  <meyering@redhat.com>
54246
54247         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54248
54249 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54250
54251         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54252         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54253         programs.
54254         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54255
54256 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54257
54258         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54259
54260 2008-10-27  Bruno Haible  <bruno@clisp.org>
54261
54262         * tests/test-lstat.c: Include <stdio.h>.
54263
54264 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54265
54266         * modules/lstat-tests: New module.
54267         * tests/test-lstat.c: New file.
54268
54269 2008-10-26  Jim Meyering  <meyering@redhat.com>
54270
54271         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54272
54273 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54274             Bruno Haible  <bruno@clisp.org>
54275
54276         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54277         * modules/configmake (Include): Add a note that the include must come
54278         after all system headers.
54279         * lib/javaversion.c: Include configmake.h after all other includes.
54280
54281 2008-10-26  Bruno Haible  <bruno@clisp.org>
54282
54283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54284         HAVE_STRUCT_RANDOM_DATA to 1.
54285         (gl_STDLIB_H): Simplify.
54286
54287 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54288
54289         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54290         substitute HAVE_STRUCT_RANDOM_DATA.
54291         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54292         random_data.
54293         * modules/stdlib (Makefile.am): Substitute
54294         HAVE_STRUCT_RANDOM_DATA.
54295
54296 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54297
54298         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54299         * doc/gnulib-intro.texi (Copyright): Likewise.
54300
54301 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54302
54303         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54304         findings.
54305
54306 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54307             Bruno Haible  <bruno@clisp.org>
54308
54309         * lib/unistd.in.h: Include <winsock2.h>.
54310         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54311         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54312         Provide dummy declarations.
54313         (gethostname): Override.
54314         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54315         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54316         gl_PREREQ_SYS_H_WINSOCK2.
54317         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54318         * doc/posix-functions/gethostname.texi: More details.
54319
54320 2008-10-25  Bruno Haible  <bruno@clisp.org>
54321
54322         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54323         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54324         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54325
54326         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54327         here ...
54328         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54329         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54330         gl_UNISTD_H_DEFAULTS.
54331
54332 2008-10-25  Eric Blake  <ebb9@byu.net>
54333
54334         signbit: avoid spurious compiler failure
54335         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54336         declarations inside function.
54337
54338 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54339             Bruno Haible  <bruno@clisp.org>
54340
54341         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54342         * modules/random_r (Depends-on): Add stdint.
54343
54344 2008-10-24  Bruno Haible  <bruno@clisp.org>
54345
54346         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54347         Eggert.
54348         * modules/strerror (License): Likewise.
54349
54350 2008-10-24  Jim Meyering  <meyering@redhat.com>
54351
54352         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54353         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54354
54355 2008-10-24  Eric Blake  <ebb9@byu.net>
54356
54357         getgroups: fix compilation when getgroups is available
54358         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54359         but with <config.h> override of getgroups disabled.
54360
54361 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54362
54363         * doc/gnulib.texi (Header files): Add note about C++ problems.
54364         Explained by Bruno Haible <bruno@clisp.org>.
54365
54366 2008-10-23  Bruno Haible  <bruno@clisp.org>
54367
54368         Define a dummy SA_NODEFER macro on Interix.
54369         * lib/signal.in.h (SA_NODEFER): Define fallback.
54370         Reported by Aleksey Cheusov <cheusov@tut.by> via
54371         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54372
54373 2008-10-23  Bruno Haible  <bruno@clisp.org>
54374
54375         * modules/freadahead (License): Change to LGPLv2+.
54376         Suggested by Simon Josefsson.
54377
54378 2008-10-23  Jim Meyering  <meyering@redhat.com>
54379
54380         random_r: new module
54381         * modules/random_r: New file.
54382         * m4/random_r.m4: New file.
54383         * lib/random_r.c: New file, from glibc.
54384         * modules/random_r-tests: New file.
54385         * tests/test-random_r.c: New file.
54386         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54387          Declare.
54388         (RAND_MAX): Define.
54389         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54390         * modules/stdlib: Substitute them, too.
54391         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54392         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54393         * doc/glibc-functions/random_r.texi: Likewise.
54394         * doc/glibc-functions/setstate_r.texi: Likewise.
54395         * doc/glibc-functions/srandom_r.texi: Likewise.
54396         * config/srclist.txt: Mention it.
54397
54398 2008-10-23  David Lutterkort  <lutter@redhat.com>
54399
54400         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54401         link requirement
54402
54403 2008-10-23  Jim Meyering  <meyering@redhat.com>
54404
54405         selinux-h: mark parameters of stub functions as intentionally unused
54406         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54407         * lib/se-context.in.h: Likewise.
54408
54409 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54410
54411         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54412
54413 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54414
54415         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54416
54417 2008-10-22  Eric Blake  <ebb9@byu.net>
54418
54419         glthread/thread: avoid compiler warning
54420         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54421         Add unreachable abort to silence compiler.
54422
54423 2008-10-22  Eric Blake  <ebb9@byu.net>
54424
54425         netdb: also supply struct addrinfo for cygwin 1.5.x
54426         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54427         older cygwin.
54428         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54429         cygwin.
54430         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54431
54432 2008-10-22  Bruno Haible  <bruno@clisp.org>
54433
54434         * users.txt: Update entry about pspp.
54435
54436 2008-10-21  Bruno Haible  <bruno@clisp.org>
54437
54438         Simplification.
54439         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54440         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54441
54442         Simplification.
54443         * lib/ioctl.c (ioctl): Don't undefine.
54444         * lib/socket.c (socket): Don't undefine.
54445
54446         Remove unused module indicator macros.
54447         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54448         GNULIB_$1 as a C macro.
54449
54450         * doc/posix-functions/close.texi: Undo last change.
54451         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54452         Windows platforms.
54453
54454 2008-10-21  Bruno Haible  <bruno@clisp.org>
54455
54456         Add gethostname() declaration to <unistd.h>.
54457         * lib/unistd.in.h (gethostname): New declaration.
54458         * lib/gethostname.c: Include <unistd.h>.
54459         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54460         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54462         and HAVE_GETHOSTNAME.
54463         * modules/gethostname (Depends-on): Add unistd.
54464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54465         (Include): Specify <unistd.h>.
54466         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54467         HAVE_GETHOSTNAME.
54468         * tests/test-gethostname.c: Include <unistd.h> first.
54469
54470 2008-10-21  Bruno Haible  <bruno@clisp.org>
54471
54472         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54473         * modules/select-tests (Depends-on): Likewise.
54474         Reported by Simon Josefsson.
54475
54476 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54477
54478         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54479         * lib/accept.c: New file, based on winsock.c.
54480         * lib/bind.c: New file, based on winsock.c.
54481         * lib/connect.c: New file, based on winsock.c.
54482         * lib/getpeername.c: New file, based on winsock.c.
54483         * lib/getsockname.c: New file, based on winsock.c.
54484         * lib/getsockopt.c: New file, based on winsock.c.
54485         * lib/ioctl.c: New file, based on winsock.c.
54486         * lib/listen.c: New file, based on winsock.c.
54487         * lib/recv.c: New file, based on winsock.c.
54488         * lib/recvfrom.c: New file, based on winsock.c.
54489         * lib/send.c: New file, based on winsock.c.
54490         * lib/sendto.c: New file, based on winsock.c.
54491         * lib/setsockopt.c: New file, based on winsock.c.
54492         * lib/shutdown.c: New file, based on winsock.c.
54493         * lib/socket.c: New file, based on winsock.c.
54494         * lib/w32sock.h: New file, based on winsock.c.
54495         * lib/winsock.c: Remove file.
54496         * modules/accept: Likewise.
54497         * modules/bind: Likewise.
54498         * modules/connect: Likewise.
54499         * modules/getpeername: Likewise.
54500         * modules/getsockname: Likewise.
54501         * modules/getsockopt: Likewise.
54502         * modules/ioctl: Likewise.
54503         * modules/listen: Likewise.
54504         * modules/recv: Likewise.
54505         * modules/recvfrom: Likewise.
54506         * modules/send: Likewise.
54507         * modules/sendto: Likewise.
54508         * modules/setsockopt: Likewise.
54509         * modules/shutdown: Likewise.
54510         * modules/socket: Use socket.c instead of winsock.c.
54511         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54512         * doc/posix-functions/accept.texi: Doc fix.
54513         * doc/posix-functions/bind.texi: Doc fix.
54514         * doc/posix-functions/close.texi: Doc fix.
54515         * doc/posix-functions/connect.texi: Doc fix.
54516         * doc/posix-functions/getpeername.texi: Doc fix.
54517         * doc/posix-functions/getsockname.texi: Doc fix.
54518         * doc/posix-functions/getsockopt.texi: Doc fix.
54519         * doc/posix-functions/ioctl.texi: Doc fix.
54520         * doc/posix-functions/listen.texi: Doc fix.
54521         * doc/posix-functions/recv.texi: Doc fix.
54522         * doc/posix-functions/recvfrom.texi: Doc fix.
54523         * doc/posix-functions/send.texi: Doc fix.
54524         * doc/posix-functions/sendto.texi: Doc fix.
54525         * doc/posix-functions/setsockopt.texi: Doc fix.
54526         * doc/posix-functions/shutdown.texi: Doc fix.
54527         * doc/posix-functions/socket.texi: Doc fix.
54528
54529 2008-10-20  Bruno Haible  <bruno@clisp.org>
54530
54531         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54532         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54533         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54534         as an alias for SIGABRT.
54535         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54536         (sigaction): Map it to SIGABRT.
54537         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54538
54539 2008-10-20  Bruno Haible  <bruno@clisp.org>
54540
54541         * lib/fts.c: Don't include lstat.h.
54542         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54543
54544         Move the lstat() declaration to <sys/stat.h>.
54545         * lib/lstat.h: Remove file.
54546         * lib/sys_stat.in.h: Add special invocation convention.
54547         (lstat): New declaration.
54548         * lib/lstat.c (orig_lstat): New function.
54549         (rpl_lstat): Use orig_lstat instead of lstat.
54550         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54551         AC_C_INLINE. Set REPLACE_LSTAT.
54552         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54553         and REPLACE_LSTAT.
54554         * modules/lstat (Files): Remove lib/lstat.h.
54555         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54556         (Include): Specify <sys/stat.h> instead of lstat.h.
54557         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54558         REPLACE_LSTAT.
54559         * NEWS: Mention the change.
54560
54561 2008-10-20  Bruno Haible  <bruno@clisp.org>
54562
54563         * modules/posix_spawn-tests: New file.
54564         * tests/test-posix_spawn3.c: New file.
54565
54566 2008-10-20  Bruno Haible  <bruno@clisp.org>
54567
54568         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54569         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54570         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54571         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54572         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54573
54574 2008-10-20  Bruno Haible  <bruno@clisp.org>
54575
54576         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54577         of posix_spawn on AIX 5.3.
54578
54579 2008-10-20  Bruno Haible  <bruno@clisp.org>
54580
54581         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54582
54583 2008-10-20  Bruno Haible  <bruno@clisp.org>
54584
54585         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54586         of AC_LANG_PROGRAM.
54587
54588 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54589
54590         * lib/netdb.in.h: Don't define GNU specific constants until they
54591         are supported or needed.  Reported by Bruno Haible
54592         <bruno@clisp.org>.
54593
54594 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54595
54596         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54597
54598 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54599
54600         * lib/getaddrinfo.h: Remove file.
54601         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54602         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54603         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54604         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54605         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54606         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54607         * tests/test-getaddrinfo.c: Likewise.
54608         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54609         * NEWS: Mention change.
54610
54611 2008-10-19  Bruno Haible  <bruno@clisp.org>
54612
54613         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54614
54615 2008-10-19  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/wait-process.c: Include simply <sys/wait.h>.
54618         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54619         WIFSTOPPED): Remove fallback definitions.
54620         * modules/wait-process (Depends-on): Add sys_wait.
54621
54622         New module 'sys_wait'.
54623         * modules/sys_wait: New file.
54624         * lib/sys_wait.in.h: New file, partially copied from
54625         lib/wait-process.c.
54626         * m4/sys_wait_h.m4: New file.
54627         * doc/posix-headers/sys_wait.texi: Mention the new module.
54628
54629 2008-10-19  Bruno Haible  <bruno@clisp.org>
54630
54631         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54632
54633 2008-10-19  Bruno Haible  <bruno@clisp.org>
54634
54635         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54636         * lib/wait-process.c (WAIT_T): Remove type.
54637         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54638         (wait_subprocess): Update.
54639
54640 2008-10-19  Bruno Haible  <bruno@clisp.org>
54641
54642         New module 'atoll'.
54643         * modules/atoll: New file.
54644         * lib/stdlib.in.h (atoll): New declaration.
54645         * lib/atoll.c: New file, from glibc with modifications.
54646         * m4/atoll.m4: New file.
54647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54648         HAVE_ATOLL.
54649         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54650         * doc/posix-functions/atoll.texi: Mention the new module.
54651
54652 2008-10-19  Bruno Haible  <bruno@clisp.org>
54653
54654         Add strtoull() declaration to <stdlib.h>.
54655         * lib/stdlib.in.h (strtoull): New declaration.
54656         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54657         Set HAVE_STRTOULL.
54658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54659         HAVE_STRTOULL.
54660         * modules/strtoull (Depends-on): Add stdlib.
54661         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54662         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54663         HAVE_STRTOULL.
54664
54665 2008-10-19  Bruno Haible  <bruno@clisp.org>
54666
54667         Add strtoll() declaration to <stdlib.h>.
54668         * lib/stdlib.in.h (strtoll): New declaration.
54669         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54670         Set HAVE_STRTOLL.
54671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54672         HAVE_STRTOLL.
54673         * modules/strtoll (Depends-on): Add stdlib.
54674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54675         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54676
54677 2008-10-19  Bruno Haible  <bruno@clisp.org>
54678
54679         * modules/bcopy (Depends-on): Add strings.
54680         (Include): Specify <strings.h>.
54681
54682 2008-10-19  Bruno Haible  <bruno@clisp.org>
54683
54684         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54685
54686 2008-10-19  Bruno Haible  <bruno@clisp.org>
54687
54688         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54689         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54690         mingw.
54691
54692 2008-10-19  Bruno Haible  <bruno@clisp.org>
54693
54694         * lib/atanl.c: Don't include isnanl.h.
54695         * lib/cosl.c: Likewise.
54696         * lib/ldexpl.c: Likewise.
54697         * lib/logl.c: Likewise.
54698         * lib/sinl.c: Likewise.
54699         * lib/sqrtl.c: Likewise.
54700         * lib/tanl.c: Likewise.
54701
54702         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54703         * lib/isnanf.h: Remove file.
54704         * lib/isnand.h: Remove file.
54705         * lib/isnanl.h: Remove file.
54706         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54707         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54708         macros.
54709         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54710         HAVE_ISNANF, don't define it as a C macro.
54711         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54712         HAVE_ISNAND, don't define it as a C macro.
54713         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54714         HAVE_ISNANL, don't define it as a C macro.
54715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54716         HAVE_ISNAN[FDL].
54717         * modules/isnanf (Files): Remove lib/isnanf.h.
54718         (Depends-on): Add math.
54719         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54720         (Include): Specify <math.h> instead of isnanf.h.
54721         * modules/isnand (Files): Remove lib/isnand.h.
54722         (Depends-on): Add math.
54723         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54724         (Include): Specify <math.h> instead of isnand.h.
54725         * modules/isnanl (Files): Remove lib/isnanl.h.
54726         (Depends-on): Add math.
54727         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54728         (Include): Specify <math.h> instead of isnanl.h.
54729         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54730         HAVE_ISNAN[FDL].
54731         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54732         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54733         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54734         * NEWS: Mention the change.
54735
54736 2008-10-18  Bruno Haible  <bruno@clisp.org>
54737
54738         Add getusershell(), setusershell(), endusershell() declarations to
54739         <unistd.h>.
54740         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54741         declarations.
54742         * lib/getusershell.c: Include unistd.h.
54743         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54744         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54745         HAVE_GETUSERSHELL.
54746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54747         and HAVE_GETUSERSHELL.
54748         * modules/getusershell (Depends-on): Add unistd, extensions.
54749         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54750         (Include): Specify <unistd.h>.
54751         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54752         HAVE_GETUSERSHELL.
54753
54754 2008-10-18  Bruno Haible  <bruno@clisp.org>
54755
54756         Add a getloadavg() declaration to <stdlib.h>.
54757         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54758         getloadavg declaration.
54759         (getloadavg): New declaration.
54760         * lib/getloadavg.c: Include <stdlib.h> first.
54761         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54762         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54763         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54765         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54766         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54767         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54768         (Include): Specify <stdlib.h>.
54769         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54770         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54771
54772 2008-10-18  Bruno Haible  <bruno@clisp.org>
54773
54774         * lib/dirchownmod.c: Don't include lchmod.h.
54775
54776         Move the lchmod() declaration to <sys/stat.h>.
54777         * lib/lchmod.h: Remove file.
54778         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54779         (lchmod): New declaration, moved here from lib/lchown.h.
54780         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54781         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54782         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54783         and HAVE_LCHMOD.
54784         * modules/lchmod (Files): Remove lib/lchmod.h.
54785         (Depends-on): Add sys_stat, extensions.
54786         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54787         (Include): Specify <sys/stat.h> instead of lchmod.h.
54788         * modules/sys_stat (Depends-on): Add link-warning.
54789         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54790         definition of GL_LINK_WARNING.
54791         * NEWS: Mention the change.
54792
54793 2008-10-18  Bruno Haible  <bruno@clisp.org>
54794
54795         * lib/fchdir.c: Don't include dirfd.h.
54796         * lib/fts.c: Likewise.
54797         * lib/getcwd.c: Likewise.
54798         * lib/glob.c: Likewise.
54799
54800         Move the dirfd() declaration to <dirent.h>.
54801         * lib/dirfd.h: Remove file.
54802         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54803         (dirfd): New declaration.
54804         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54805         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54806         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54807         HAVE_DECL_DIRFD.
54808         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54809         HAVE_DECL_DIRFD.
54810         * modules/dirfd (Files): Remove lib/dirfd.h.
54811         (Depends-on): Add dirent, extensions.
54812         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54813         (Include): Specify <dirent.h> instead of dirfd.h.
54814         * modules/dirent (Depends-on): Add link-warning.
54815         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54816         definition of GL_LINK_WARNING.
54817         * NEWS: Mention the change.
54818
54819 2008-10-18  Bruno Haible  <bruno@clisp.org>
54820
54821         Move the euidaccess() declaration to <unistd.h>.
54822         * lib/euidaccess.h: Remove file.
54823         * lib/unistd.in.h (euidaccess): New declaration.
54824         * lib/euidaccess.c: Don't include euidaccess.h.
54825         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54826         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54828         and HAVE_EUIDACCESS.
54829         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54830         (Depends-on): Add unistd.
54831         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54832         (Include): Specify <unistd.h> instead of euidaccess.h.
54833         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54834         HAVE_EUIDACCESS.
54835         * NEWS: Mention the change.
54836
54837 2008-10-18  Bruno Haible  <bruno@clisp.org>
54838
54839         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54840
54841         Move the getdomainname() declaration to <unistd.h>.
54842         * lib/getdomainname.h: Remove file.
54843         * lib/unistd.in.h (getdomainname): New declaration.
54844         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54845         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54846         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54847         HAVE_GETDOMAINNAME.
54848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54849         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54850         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54851         (Depends-on): Add unistd, extensions.
54852         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54853         (Includes): Specify <unistd.h> instead of getdomainname.h.
54854         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54855         HAVE_GETDOMAINNAME.
54856         * NEWS: Mention the change.
54857
54858 2008-10-18  Bruno Haible  <bruno@clisp.org>
54859
54860         * modules/dirent: New file.
54861         * m4/dirent_h.m4: New file.
54862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54863         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54864         * modules/fchdir (Files): Remove lib/dirent.in.h.
54865         (Depends-on): Add dirent.
54866         (Makefile.am): Move rules to modules/dirent.
54867         * doc/posix-headers/dirent.texi: Mention the new module.
54868
54869 2008-10-18  Bruno Haible  <bruno@clisp.org>
54870
54871         Avoid -Wunused-parameter warnings in public gnulib header files.
54872         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54873         macro.
54874         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54875
54876 2008-10-18  Bruno Haible  <bruno@clisp.org>
54877
54878         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54879         * doc/glibc-functions/error.texi: Mention the module 'error'.
54880         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54881         * doc/glibc-functions/getdomainname.texi: Mention the module
54882         'getdomainname'.
54883         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54884         * doc/glibc-functions/getpagesize.texi: Mention the module
54885         'getpagesize'.
54886         * doc/glibc-functions/getusershell.texi: Mention the module
54887         'getusershell'.
54888         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54889         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54890         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54891         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54892         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54893         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54894         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54895         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54896         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54897         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54898         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54899         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54900         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54901         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54902
54903 2008-10-17  Bruno Haible  <bruno@clisp.org>
54904
54905         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54906         HP-UX and IRIX, use -0.0L.
54907         * tests/test-ceill.c (minus_zero): Likewise.
54908         * tests/test-floorl.c (minus_zero): Likewise.
54909         * tests/test-frexpl.c (minus_zero): Likewise.
54910         * tests/test-isnan.c (minus_zerol): Likewise.
54911         * tests/test-isnanl.h (minus_zero): Likewise.
54912         * tests/test-ldexpl.c (minus_zero): Likewise.
54913         * tests/test-roundl.c (minus_zero): Likewise.
54914         * tests/test-signbit.c (minus_zerol): Likewise.
54915         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54916         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54917         * tests/test-truncl.c (minus_zero): Likewise.
54918         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54919         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54920         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54921         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54922
54923 2008-10-17  Bruno Haible  <bruno@clisp.org>
54924
54925         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54926         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54927         that it gets activated only for gcc >= 3.0.
54928         * lib/dirent.in.h: Likewise.
54929         * lib/errno.in.h: Likewise.
54930         * lib/fcntl.in.h: Likewise.
54931         * lib/float.in.h: Likewise.
54932         * lib/iconv.in.h: Likewise.
54933         * lib/inttypes.in.h: Likewise.
54934         * lib/locale.in.h: Likewise.
54935         * lib/math.in.h: Likewise.
54936         * lib/netdb.in.h: Likewise.
54937         * lib/netinet_in.in.h: Likewise.
54938         * lib/search.in.h: Likewise.
54939         * lib/signal.in.h: Likewise.
54940         * lib/spawn.in.h: Likewise.
54941         * lib/stdarg.in.h: Likewise.
54942         * lib/stdint.in.h: Likewise.
54943         * lib/stdio.in.h: Likewise.
54944         * lib/stdlib.in.h: Likewise.
54945         * lib/string.in.h: Likewise.
54946         * lib/strings.in.h: Likewise.
54947         * lib/sys_file.in.h: Likewise.
54948         * lib/sys_ioctl.in.h: Likewise.
54949         * lib/sys_select.in.h: Likewise.
54950         * lib/sys_socket.in.h: Likewise.
54951         * lib/sys_stat.in.h: Likewise.
54952         * lib/sys_time.in.h: Likewise.
54953         * lib/sysexits.in.h: Likewise.
54954         * lib/time.in.h: Likewise.
54955         * lib/unistd.in.h: Likewise.
54956         * lib/wchar.in.h: Likewise.
54957         * lib/wctype.in.h: Likewise.
54958         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54959
54960 2008-10-17  Jim Meyering  <meyering@redhat.com>
54961
54962         ignore-value: don't depend on inline module
54963         * modules/ignore-value (Depends-on): Remove 'inline'.
54964         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54965         Suggestion from Bruno Haible.
54966
54967 2008-10-17  Bruno Haible  <bruno@clisp.org>
54968
54969         New implementation of condition variables for Win32.
54970         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54971         (gl_linked_waitqueue_t): New type.
54972         (gl_cond_t): Use it.
54973         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54974         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54975         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54976         (glthread_cond_init_func, glthread_cond_wait_func,
54977         glthread_cond_timedwait_func, glthread_cond_signal_func,
54978         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54979         Reimplemented on the basis of gl_linked_waitqueue_t.
54980         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54981         gl_waitqueue_t.
54982         (gl_rwlock_t): Update.
54983         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54984
54985 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54986
54987         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54988         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54989
54990 2008-10-17  Jim Meyering  <meyering@redhat.com>
54991
54992         ignore-value: new module
54993         * modules/ignore-value: New file.
54994         * lib/ignore-value.h: New file.
54995         * MODULES.html.sh (Compiler warning management): New section,
54996         just for this module.  More to come.
54997
54998 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54999
55000         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55001         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55002         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55003
55004 2008-10-16  Jim Meyering  <meyering@redhat.com>
55005
55006         openat-die.c: avoid 'no previous prototype' warning
55007         * lib/openat-die.c: Include "openat.h".
55008         Reported by Reuben Thomas <rrt@sc3d.org>.
55009
55010 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55011
55012         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55013         * lib/netdb.in.h: Fix typo.
55014         Reported by Bruno Haible  <bruno@clisp.org>
55015
55016         * lib/netdb.in.h: Include sys/socket.h for platforms without
55017         netdb.h, to get structures like hostent on MinGW.
55018         * modules/netdb (Depends-on): Add sys_socket.
55019
55020 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55021
55022         * modules/netdb, modules/netdb-tests: New file.
55023         * m4/netdb_h.m4: New file.
55024         * lib/netdb.in.h: Add, currently just an empty file pending
55025         definitions.
55026         * tests/test-netdb.c: New file.
55027         * doc/posix-headers/netdb.texi: Mention that we replace it if
55028         needed.
55029         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55030         netdb.
55031
55032 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55033
55034         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55035         with code.
55036
55037 2008-10-13  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/glthread/cond.c (glthread_cond_wait_func,
55040         glthread_cond_timedwait_func): Add a comment.
55041
55042 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55043
55044         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55045         * tests/test-select.c: Likewise,
55046
55047 2008-10-13  Bruno Haible  <bruno@clisp.org>
55048
55049         * lib/glthread/cond.c (glthread_cond_wait_func,
55050         glthread_cond_timedwait_func): Fix variable name.
55051         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55052
55053 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55054
55055         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55056         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55057         struct sockaddr.sa_len.
55058         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55059
55060 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55061
55062         * build-aux/pmccabe2html: Add css and css_url parameters.
55063
55064 2008-10-12  Bruno Haible  <bruno@clisp.org>
55065
55066         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55067         calling aclx_get.
55068         Reported by Rainer Tammer <tammer@tammer.net>.
55069
55070 2008-10-12  Bruno Haible  <bruno@clisp.org>
55071
55072         Use msvcrt aware primitives for creation/termination of Win32 threads.
55073         * lib/glthread/thread.c: Include <process.h>.
55074         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55075         (wrapper_func): Update signature.
55076         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55077
55078 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55079             Bruno Haible  <bruno@clisp.org>
55080
55081         Provide a Win32 implementation of the 'cond' module.
55082         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55083         * lib/glthread/cond.c (glthread_cond_init_func,
55084         glthread_cond_wait_func, glthread_cond_timedwait_func,
55085         glthread_cond_signal_func, glthread_cond_broadcast_func,
55086         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55087         * modules/cond (Dependencies): Add gettimeofday.
55088
55089 2008-10-11  Bruno Haible  <bruno@clisp.org>
55090
55091         Make sleep work on older versions of mingw.
55092         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55093         only whether it exists.
55094         * doc/posix-functions/sleep.texi: Mention the problem with older
55095         versions of mingw.
55096
55097 2008-10-11  Bruno Haible  <bruno@clisp.org>
55098
55099         New module 'shutdown'.
55100         * modules/shutdown: New file.
55101         * lib/sys_socket.in.h (shutdown): New declaration.
55102         * lib/winsock.c (shutdown): New function.
55103         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55104         GNULIB_SHUTDOWN.
55105         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55106         * doc/posix-functions/shutdown.texi: Document the new module.
55107
55108 2008-10-11  Jim Meyering  <meyering@redhat.com>
55109
55110         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55111
55112 2008-10-11  Bruno Haible  <bruno@clisp.org>
55113
55114         New module 'fclose'.
55115         * modules/fclose: New file.
55116         * lib/stdio.in.h (fclose): New declaration.
55117         * lib/fclose.c: New file.
55118         * m4/fclose.m4: New file.
55119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55120         REPLACE_FCLOSE.
55121         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55122         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55123         REPLACE_FCLOSE.
55124         * modules/close (Depends-on): fclose.
55125         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55126
55127 2008-10-11  Bruno Haible  <bruno@clisp.org>
55128
55129         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55130         set errno and don't call _close.
55131
55132 2008-10-10  Bruno Haible  <bruno@clisp.org>
55133
55134         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55135         ACL, not afterwards. Fixes test failure on Cygwin.
55136
55137 2008-10-09  Ben Pfaff  <blp@gnu.org>
55138
55139         * build-aux/announce-gen: Fix gnulib version related part of usage
55140         message.  Die with a useful error message if no tarballs are
55141         found.
55142
55143 2008-10-10  Jim Meyering  <meyering@redhat.com>
55144
55145         bootstrap: use git's --depth=N option only if it's supported
55146         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55147         recognize the --depth option.  Reported by Pádraig Brady.
55148
55149 2008-10-09  Bruno Haible  <bruno@clisp.org>
55150
55151         New module 'ioctl'.
55152         * modules/ioctl: New file.
55153         * lib/sys_socket.in.h (ioctl): Remove declaration.
55154         * lib/winsock.c: Include <sys/ioctl.h>.
55155         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55156         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55157         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55158         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55159         * doc/posix-functions/ioctl.texi: Mention the new module.
55160
55161 2008-10-09  Bruno Haible  <bruno@clisp.org>
55162
55163         New module 'sys_ioctl'.
55164         * lib/sys_ioctl.in.h: New file.
55165         * m4/sys_ioctl_h.m4: New file.
55166         * modules/sys_ioctl: New file.
55167         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55168
55169 2008-10-09  Bruno Haible  <bruno@clisp.org>
55170
55171         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55172         * lib/winsock.c: Include <stdarg.h>.
55173         (rpl_ioctl): Change to second argument 'int' and then varargs.
55174
55175 2008-10-09  Bruno Haible  <bruno@clisp.org>
55176
55177         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55178         when the sys_socket module is present and the system has <winsock2.h>.
55179
55180 2008-10-09  Bruno Haible  <bruno@clisp.org>
55181
55182         * doc/posix-functions/close.texi: Mention module 'close' instead of
55183         module 'sys_socket'.
55184
55185 2008-10-09  Bruno Haible  <bruno@clisp.org>
55186
55187         * doc/glibc-headers/sys_ioctl.texi: New file.
55188         * doc/gnulib.texi: Include it.
55189
55190 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55191             Bruno Haible  <bruno@clisp.org>
55192
55193         Combine the two replacements of 'close'.
55194         * lib/sys_socket.in.h (close): Define to a reminder to include
55195         <unistd.h>.
55196         (_gl_close_fd_maybe_socket): New declaration.
55197         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55198         * lib/winsock.c (close): Remove undefinition.
55199         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55200         needed for the gnulib module 'close'.
55201         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55202         define to an error symbol or to a warning, if suitable.
55203         * lib/close.c: Include <sys/socket.h>.
55204         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55205         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55206         UNISTD_H_HAVE_WINSOCK2_H.
55207         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55209         UNISTD_H_HAVE_WINSOCK2_H.
55210         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55211         (configure.ac): Set a module indicator.
55212         (Makefile.am): Substitute GNULIB_CLOSE.
55213         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55214         * modules/poll-tests (Depends-on): Add close.
55215         * modules/select-tests (Depends-on): Likewise.
55216
55217 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55218             Bruno Haible  <bruno@clisp.org>
55219
55220         New module 'close'.
55221         * modules/close: New file.
55222         * lib/unistd.in.h (close): Move declaration out of the
55223         FCHDIR_REPLACEMENT scope.
55224         (_gl_unregister_fd): New declaration.
55225         * lib/close.c: New file.
55226         * lib/fchdir.c (rpl_close): Remove function.
55227         * m4/close.m4: New file.
55228         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55229         close.
55230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55231         REPLACE_CLOSE.
55232         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55233         REPLACE_CLOSE.
55234         * modules/fchdir (Depends-on): Add close.
55235
55236 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55237             Bruno Haible  <bruno@clisp.org>
55238
55239         * lib/fcntl.in.h (open): Simplify conditionals.
55240         (_gl_register_fd): New declaration.
55241         * lib/fchdir.c (rpl_open): Remove function.
55242         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55243         also.
55244         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55246         open.
55247
55248 2008-10-09  Jim Meyering  <meyering@redhat.com>
55249
55250         GNUmakefile: use the more name-space-friendly "_version"
55251         * top/GNUmakefile (_dummy): Update.
55252         (_version): Rename from "version".
55253
55254 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55255             Bruno Haible  <bruno@clisp.org>
55256
55257         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55258         rpl_close.
55259         (_gl_register_fd): New function, extracted from rpl_open.
55260         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55261         (rpl_open, rpl_opendir): Use _gl_register_fd.
55262
55263 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55264
55265         Fix organization of 'open' replacement.
55266         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55267         (gl_FUNC_OPEN): Use it.
55268         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55269
55270 2008-10-08  Bruno Haible  <bruno@clisp.org>
55271
55272         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55273
55274 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55275
55276         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55277         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55278         listen).
55279
55280 2008-10-08  Eric Blake  <ebb9@byu.net>
55281
55282         GNUmakefile: add 'make version' target
55283         * top/GNUmakefile (_curr-ver): Split version update rules...
55284         (version): ...into a target.
55285
55286 2008-10-07  Bruno Haible  <bruno@clisp.org>
55287
55288         Use a more portable replacement expression for -0.0L.
55289         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55290         instead of -0.0L. Fix m4 quotation.
55291
55292         * tests/test-signbit.c: Include <float.h>.
55293         (minus_zero): New variable.
55294         (test_signbitl): Use minus_zero instead of -zero.
55295         * modules/signbit-tests (Depends-on): Add float.
55296
55297         * tests/test-ceill.c: Include <float.h>.
55298         (zero): Remove variable.
55299         (minus_zero): New variable.
55300         (main): Use minus_zero instead of -zero.
55301         * modules/ceill-tests (Depends-on): Add float.
55302
55303         * tests/test-floorl.c: Include <float.h>.
55304         (zero): Remove variable.
55305         (minus_zero): New variable.
55306         (main): Use minus_zero instead of -zero.
55307         * modules/floorl-tests (Depends-on): Add float.
55308
55309         * tests/test-roundl.c: Include <float.h>.
55310         (zero): Remove variable.
55311         (minus_zero): New variable.
55312         (main): Use minus_zero instead of -zero.
55313         * modules/roundl-tests (Depends-on): Add float.
55314
55315         * tests/test-truncl.c: Include <float.h>.
55316         (zero): Remove variable.
55317         (minus_zero): New variable.
55318         (main): Use minus_zero instead of -zero.
55319         * modules/truncl-tests (Depends-on): Add float.
55320
55321         * tests/test-frexpl.c (zero): Remove variable.
55322         (minus_zero): New variable.
55323         (main): Use minus_zero instead of -zero.
55324         * modules/frexpl-tests (Depends-on): Add float.
55325
55326         * tests/test-isnan.c (zerol): Remove variable.
55327         (minus_zerol): New variable.
55328         (test_long_double): Use minus_zerol instead of -zerol.
55329         * modules/isnan-tests (Depends-on): Add float.
55330
55331         * tests/test-isnanl.h (zero): Remove variable.
55332         (minus_zero): New variable.
55333         (main): Use minus_zero instead of -zero.
55334         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55335         * modules/isnanl-tests (Depends-on): Add float.
55336
55337         * tests/test-ldexpl.c (zero): Remove variable.
55338         (minus_zero): New variable.
55339         (main): Use minus_zero instead of -zero.
55340         * modules/ldexpl-tests (Depends-on): Add float.
55341
55342         * tests/test-snprintf-posix.h (zerol): Remove variable.
55343         (minus_zerol): New variable.
55344         (test_function): Use minus_zerol instead of -zerol.
55345         * modules/snprintf-posix-tests (Depends-on): Add float.
55346         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55347
55348         * tests/test-sprintf-posix.h (zerol): Remove variable.
55349         (minus_zerol): New variable.
55350         (test_function): Use minus_zerol instead of -zerol.
55351         * modules/sprintf-posix-tests (Depends-on): Add float.
55352         * modules/vsprintf-posix-tests (Depends-on): Add float.
55353
55354         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55355         (minus_zerol): New variable.
55356         (test_function): Use minus_zerol instead of -zerol.
55357         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55358
55359         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55360         (minus_zerol): New variable.
55361         (test_function): Use minus_zerol instead of -zerol.
55362         * modules/vasprintf-posix-tests (Depends-on): Add float.
55363
55364 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55365
55366         * MODULES.html.sh (Support for building documentation): Mention
55367         pmccabe2html.  Sort entries.
55368
55369         Add pmccabe2html module, from gnupdf.
55370         * build-aux/pmccabe.css: New file.
55371         * build-aux/pmccabe2html: New file.
55372         * m4/pmccabe2html.m4: New file.
55373         * modules/pmccabe2html: New file.
55374
55375 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55376
55377         flock: new module
55378         * MODULES.html.sh: Add to list of modules.
55379         * lib/flock.c: flock implementation for Windows and Unix systems
55380         which have fcntl.
55381         * doc/glibc-functions/flock.texi: Update documentation.
55382         * lib/sys_file.in.h: <sys/file.h> header file.
55383         * m4/flock.m4: M4 macros.
55384         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55385         * modules/flock: flock module.
55386         * modules/flock-tests: flock tests module.
55387         * modules/sys_file: sys/file.h module.
55388         * tests/test-flock.c: test suite for flock.
55389
55390 2008-10-06  Jim Meyering  <meyering@redhat.com>
55391
55392         bootstrap: check for LT_INIT more portably still ;-)
55393         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55394         Spotted by Bruno Haible.
55395
55396 2008-10-06  Eric Blake  <ebb9@byu.net>
55397
55398         test-signbit: avoid tripping Irix cc bug on -0.0L
55399         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55400         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55401         entire testsuite consistent and avoids an Irix 6.2 bug.
55402
55403 2008-10-05  Bruno Haible  <bruno@clisp.org>
55404             Jim Meyering  <jim@meyering.net>
55405
55406         Add an option for ignoring EPIPE during close_stdout.
55407         * lib/closeout.h: Include <stdbool.h>.
55408         (close_stdout_set_ignore_EPIPE): New declaration.
55409         * lib/closeout.c: Include <stdbool.h>.
55410         (ignore_EPIPE): New variable.
55411         (close_stdout_set_ignore_EPIPE): New function.
55412         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55413         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55414         failure.
55415         * modules/closeout (Depends-on): Add stdbool.
55416
55417 2008-10-05  Bruno Haible  <bruno@clisp.org>
55418
55419         * modules/accept: New file.
55420         * modules/bind: New file.
55421         * modules/connect: New file.
55422         * modules/getpeername: New file.
55423         * modules/getsockname: New file.
55424         * modules/getsockopt: New file.
55425         * modules/listen: New file.
55426         * modules/recv: New file.
55427         * modules/recvfrom: New file.
55428         * modules/send: New file.
55429         * modules/sendto: New file.
55430         * modules/setsockopt: New file.
55431         * modules/socket: New file.
55432         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55433         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55434         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55435         the particular module is requested. Add a link warning when the
55436         particular module is not requested.
55437         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55438         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55439         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55440         the particular module is requested.
55441         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55442         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55443         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55444         * modules/sys_socket (Depends-on): Add link-warning.
55445         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55446         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55447         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55448         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55449         GL_LINK_WARNING.
55450         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55451         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55452         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55453         * doc/posix-functions/getpeername.texi: Mention the new module
55454         'getpeername'.
55455         * doc/posix-functions/getsockname.texi: Mention the new module
55456         'getsockname'.
55457         * doc/posix-functions/getsockopt.texi: Mention the new module
55458         'getsockopt'.
55459         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55460         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55461         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55462         * doc/posix-functions/send.texi: Mention the new module 'send'.
55463         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55464         * doc/posix-functions/setsockopt.texi: Mention the new module
55465         'setsockopt'.
55466         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55467         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55468         listen, connect, accept.
55469         * modules/select-tests (Depends-on): Likewise.
55470
55471 2008-10-05  Bruno Haible  <bruno@clisp.org>
55472
55473         * lib/winsock.c (strerror): Remove unused #undef.
55474         (rpl_close): Remove unused local variable.
55475
55476         * modules/sys_socket (Depends-on); Add errno.
55477
55478 2008-10-05  Bruno Haible  <bruno@clisp.org>
55479
55480         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55481         (select): Add a link warning when the 'select' module is not used.
55482         * modules/sys_select (Depends-on): Add link-warning.
55483         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55484         Suggested by Paolo Bonzini.
55485
55486 2008-10-05  Jim Meyering  <meyering@redhat.com>
55487
55488         bootstrap: check for LT_INIT more portably
55489         * build-aux/bootstrap: Avoid using grep -E, since it's not
55490         portable enough.  Suggestion from Bruno Haible.
55491
55492 2008-10-05  Bruno Haible  <bruno@clisp.org>
55493
55494         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55495         as being fixed by gnulib.
55496
55497 2008-10-05  Bruno Haible  <bruno@clisp.org>
55498
55499         * modules/select-tests: New file, mostly copied from
55500         modules/sys_select-tests.
55501         * tests/test-select.c: New file, mostly copied from
55502         tests/test-sys_select.c.
55503         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55504         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55505         (Makefile.am): Remove test_sys_select_LDADD.
55506
55507         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55508         to an undefined symbol, for an error message.
55509         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55510         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55511         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55512         winsock-select.c here.
55513         * modules/sys_select (Files): Remove lib/winsock-select.c.
55514         (Depends-on): Remove alloca.
55515         (Makefile.am): Substitute GNULIB_SELECT.
55516         * modules/select: New file.
55517         * doc/posix-functions/select.texi: Update.
55518
55519 2008-10-05  Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55522         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55523         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55524         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55525         getdtablesize.
55526         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55527         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55528
55529 2008-10-05  Bruno Haible  <bruno@clisp.org>
55530
55531         * modules/getdtablesize-tests: New file.
55532         * tests/test-getdtablesize.c: New file.
55533
55534         New module 'getdtablesize'.
55535         * lib/unistd.in.h (getdtablesize): New declaration.
55536         * lib/getdtablesize.c: New file.
55537         * m4/getdtablesize.m4: New file.
55538         * modules/getdtablesize: New file.
55539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55540         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55541         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55542         HAVE_GETDTABLESIZE.
55543         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55544
55545 2008-10-05  Bruno Haible  <bruno@clisp.org>
55546
55547         * modules/sched (Makefile.am): Fix typo.
55548         Reported by Simon Josefsson.
55549
55550 2008-10-05  Jim Meyering  <meyering@redhat.com>
55551
55552         bootstrap: check for LT_INIT, too
55553         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55554         are deprecated.  Suggestion from Ralf Wildenhues.
55555
55556 2008-10-05  Bruno Haible  <bruno@clisp.org>
55557
55558         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55559         overriding them by ours.
55560         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55561
55562 2008-10-05  Jim Meyering  <meyering@redhat.com>
55563
55564         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55565         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55566         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55567
55568 2008-10-04  Bruno Haible  <bruno@clisp.org>
55569
55570         * modules/dup2 (License): Change to LGPLv2+.
55571         * modules/sleep (License): Likewise.
55572         * modules/perror (License): Likewise.
55573         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55574         Blake.
55575         * modules/signal (License): Likewise.
55576         * modules/sigprocmask (License): Likewise.
55577         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55578         Meyering.
55579
55580 2008-10-04  Bruno Haible  <bruno@clisp.org>
55581
55582         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55583         Reported by Rainer Tammer <tammer@tammer.net>.
55584
55585 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55586             Bruno Haible  <bruno@clisp.org>
55587
55588         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55589         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55590         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55591
55592 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55593
55594         filevercmp: new module
55595         * lib/filevercmp.h: New function filevercmp comparing version strings.
55596         * lib/filevercmp.c: Implementation of filevercmp function.
55597         * modules/filevercmp: Module metadata.
55598         * tests/test-filevercmp.c: Unit test for new module.
55599         * modules/filevercmp-tests: Unit test metadata.
55600         * MODULES.html.sh: Add filevercmp module.
55601
55602 2008-10-03  Bruno Haible  <bruno@clisp.org>
55603
55604         * lib/c-ctype.h: Add comment.
55605         Reported by Jim Meyering.
55606
55607 2008-10-02  Bruno Haible  <bruno@clisp.org>
55608
55609         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55610
55611 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55612
55613         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55614         name of bootstrap.conf accordingly.
55615
55616 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55617
55618         * build-aux/bootstrap: Install git-merge-changelog configuration
55619         items into .gitconfig if needed.
55620
55621 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55622
55623         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55624         git repository, and initialize/update it accordingly.
55625
55626 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55627
55628         * modules/fsync-tests: New file.
55629         * tests/test-fsync.c: New file.
55630
55631         New module 'fsync'.
55632         * lib/fsync.c: New file.
55633         * m4/fsync.m4: New file.
55634         * modules/fsync: New file.
55635         * lib/unistd.in.h (fsync): New declaration.
55636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55637         GNULIB_FSYNC and HAVE_FSYNC.
55638         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55639         * MODULES.html.sh (posix_functions): Add fsync.
55640         * doc/posix-functions/fsync.texi: Mention the new module.
55641
55642 2008-10-02  Jim Meyering  <meyering@redhat.com>
55643
55644         fts.c: sync with similar code from coreutils' remove.c
55645         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55646         Guard also with "#if defined __linux__", since for now at least,
55647         this code is Linux-kernel-specific.
55648
55649 2008-10-02  Jim Meyering  <meyering@redhat.com>
55650
55651         fts: bug fixes
55652         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55653         Include <sys/vfs.h>, not <sys/statfs.h>.
55654
55655         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55656         Include <sys/vfs.h>, not <sys/statfs.h>.
55657
55658 2008-10-01  Bruno Haible  <bruno@clisp.org>
55659
55660         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55661         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55662         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55663         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55664         * doc/posix-functions/posix_spawnp.texi: Likewise.
55665         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55666         whether posix_spawn actually works.
55667         * m4/pipe.m4 (gl_PIPE): Likewise.
55668         * modules/execute (Files): Add m4/posix_spawn.m4.
55669         * modules/pipe (Files): Add m4/posix_spawn.m4.
55670         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55671
55672 2008-10-01  Jim Meyering  <meyering@redhat.com>
55673
55674         remove trailing spaces
55675         * NEWS: Likewise.
55676         * lib/poll.c (poll): Likewise.
55677         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55678         * lib/winsock.c (rpl_close): Likewise.
55679         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55680         * modules/yield: Likewise.
55681         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55682         * tests/test-sys_select.c (connect_to_socket): Likewise.
55683
55684         fts.c: adjust a new interface to be more generally useful
55685         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55686         (fts_build): Adjust caller.
55687
55688 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55689
55690         * modules/cond-tests: New file.
55691         * tests/test-cond.c: New file.
55692
55693 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55694             Bruno Haible  <bruno@clisp.org>
55695
55696         * modules/cond (Dependencies): Add errno, time.
55697         * lib/glthread/cond.h: Include <time.h>.
55698         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55699         across platforms.
55700
55701 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55702             Bruno Haible  <bruno@clisp.org>
55703
55704         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55705
55706 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55707             Bruno Haible  <bruno@clisp.org>
55708
55709         * modules/tls-tests (Depends-on): Add thread, yield.
55710         (configure.ac): Remove all checks.
55711         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55712         * tests/test-tls.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_tls): Pass an additional NULL argument to gl_thread_join.
55716
55717 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55718             Bruno Haible  <bruno@clisp.org>
55719
55720         * modules/lock-tests (Depends-on): Add thread, yield.
55721         (configure.ac): Remove all checks.
55722         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55723         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55724         gl_thread_self): Remove definitions. Include glthread/thread.h and
55725         glthread/yield.h instead.
55726         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55727         additional NULL argument to gl_thread_join.
55728
55729 2008-09-30  Bruno Haible  <bruno@clisp.org>
55730
55731         Fix the Win32 implementation of the 'thread' module.
55732         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55733         pointer type.
55734         (gl_thread_self): Invoke gl_thread_self_func.
55735         (gl_thread_self_func): New declaration.
55736         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55737         (do_init_self_key, init_self_key): New functions.
55738         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55739         Remove some fields.
55740         (running_threads, running_lock): Remove variables.
55741         (get_current_thread_handle): New function.
55742         (gl_thread_self_func, wrapper_func, glthread_create_func,
55743         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55744         simplified.
55745
55746 2008-09-30  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55749         files.
55750
55751 2008-09-30  Jim Meyering  <meyering@redhat.com>
55752
55753         fts.m4: correct the test for statfs.f_type
55754         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55755         when checking for statfs.f_type.
55756
55757 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55758
55759         tests: avoid some compiler warnings
55760         * tests/test-memchr.c (main): Pass NULL indirectly.
55761         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55762
55763 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55764
55765         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55766         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55767         exactly specified dayshifts.
55768         (dayshift): New rule.
55769         (rel): Add dayshift.
55770         (relative_time_table) [tomorrow, yesterday, today, now]:
55771         Use tDAY_SHIFT in place of tDAY_UNIT.
55772         * tests/test-getdate.c: Add tests for now-disallowed countable
55773         dayshifts, e.g., "4 yesterday ago".
55774
55775 2008-09-29  Bruno Haible  <bruno@clisp.org>
55776
55777         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55778         * tests/test-posix_spawn1.in.sh: Renamed from
55779         tests/test-posix_spawn.in.sh.
55780         * tests/test-posix_spawn2.c: New file.
55781         * tests/test-posix_spawn2.in.sh: New file.
55782         * modules/posix_spawnp-tests (Files): Update.
55783         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55784
55785 2008-09-29  Bruno Haible  <bruno@clisp.org>
55786
55787         Propagate effects of putenv/setenv/unsetenv to child processes.
55788         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55789         * lib/pipe.c (create_pipe): Likewise.
55790
55791 2008-09-29  Bruno Haible  <bruno@clisp.org>
55792
55793         Enable use of shell scripts as executables in mingw.
55794         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55795         run the program as a shell script.
55796         * lib/pipe.c (create_pipe): Likewise.
55797         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55798         resulting array.
55799
55800 2008-09-29  Eric Blake  <ebb9@byu.net>
55801
55802         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55803
55804 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55805
55806         * doc/posix-functions/accept.texi: Update mingw problems.
55807         * doc/posix-functions/bind.texi: Update mingw problems.
55808         * doc/posix-functions/close.texi: Update mingw problems.
55809         * doc/posix-functions/connect.texi: Update mingw problems.
55810         * doc/posix-functions/getpeername.texi: Update mingw problems.
55811         * doc/posix-functions/getsockname.texi: Update mingw problems.
55812         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55813         * doc/posix-functions/ioctl.texi: Update mingw problems.
55814         * doc/posix-functions/listen.texi: Update mingw problems.
55815         * doc/posix-functions/recv.texi: Update mingw problems.
55816         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55817         * doc/posix-functions/select.texi: Update mingw problems.
55818         * doc/posix-functions/send.texi: Update mingw problems.
55819         * doc/posix-functions/sendto.texi: Update mingw problems.
55820         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55821         * doc/posix-functions/socket.texi: Update mingw problems.
55822
55823 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55824             Bruno Haible  <bruno@clisp.org>
55825
55826         * lib/sys_select.in.h: Include sys/time.h.
55827         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55828         * modules/sys_select: Depend on sys_time.
55829         * tests/test-sys_select.c: Test that sys/select.h defines struct
55830         timeval fully.
55831
55832 2008-09-29  Bruno Haible  <bruno@clisp.org>
55833
55834         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55835         * lib/sys_select.in.h: Likewise.
55836
55837 2008-09-29  Bruno Haible  <bruno@clisp.org>
55838
55839         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55840
55841 2008-09-29  Bruno Haible  <bruno@clisp.org>
55842
55843         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55844         Set LIBSOCKET instead of augmenting LIBS.
55845         * modules/sockets (Link): New section.
55846         * modules/sockets-tests (test_sockets_LDADD): New variable.
55847         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55848         * modules/poll-tests (test_poll_LDADD): New variable.
55849         * NEWS: Document the change.
55850
55851 2008-09-29  Bruno Haible  <bruno@clisp.org>
55852
55853         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55854         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55855         ARPA_INET_H directly.
55856         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55857
55858 2008-09-28  Bruno Haible  <bruno@clisp.org>
55859
55860         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55861         from gl_HEADER_SYS_SOCKET.
55862         (gl_HEADER_SYS_SOCKET): Invoke it.
55863         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55864
55865 2008-09-28  Bruno Haible  <bruno@clisp.org>
55866
55867         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55868         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55869         Needed on OSF/1 4.0.
55870
55871 2008-09-28  Bruno Haible  <bruno@clisp.org>
55872
55873         Override open more carefully.
55874         * lib/open.c (orig_open): New function.
55875         (rpl_open): Use orig_open instead of open.
55876         * lib/fcntl.in.h: Add special invocation convention.
55877         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55878         (gl_FUNC_OPEN): Invoke it.
55879
55880         Override freopen more carefully.
55881         * lib/freopen.c (orig_freopen): New function.
55882         (rpl_freopen): Use orig_freopen instead of freopen.
55883         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55884         (gl_FUNC_FREOPEN): Invoke it.
55885
55886         Override fopen more carefully.
55887         * lib/fopen.c (orig_fopen): New function.
55888         (rpl_fopen): Use orig_fopen instead of fopen.
55889         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55890         (gl_FUNC_FOPEN): Invoke it.
55891         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55892
55893 2008-09-28  Bruno Haible  <bruno@clisp.org>
55894
55895         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55896         SIGPIPE.
55897
55898 2008-09-28  Bruno Haible  <bruno@clisp.org>
55899
55900         * tests/test-sigaction.c (handler, main): Disable the check whether
55901         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55902         glibc systems with LinuxThreads.
55903
55904 2008-09-28  Bruno Haible  <bruno@clisp.org>
55905
55906         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55907
55908         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55909         with AIX xlc.
55910         * lib/fcntl.in.h (open): Likewise.
55911         Reported by Rainer Tammer <tammer@tammer.net>.
55912
55913 2008-09-28  Bruno Haible  <bruno@clisp.org>
55914
55915         * modules/posix_spawnp-tests: New file.
55916         * tests/test-posix_spawn.c: New file.
55917         * tests/test-posix_spawn.in.sh: New file.
55918
55919         New module 'posix_spawnp'.
55920         * modules/posix_spawnp: New file.
55921         * lib/spawnp.c: New file, from GNU libc with modifications.
55922         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55923
55924         New module 'posix_spawn'.
55925         * modules/posix_spawn: New file.
55926         * lib/spawn.c: New file, from GNU libc with modifications.
55927         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55928
55929         New module 'posix_spawnattr_destroy'.
55930         * modules/posix_spawnattr_destroy: New file.
55931         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55932         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55933         module.
55934
55935         New module 'posix_spawnattr_setsigmask'.
55936         * modules/posix_spawnattr_setsigmask: New file.
55937         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55938         modifications.
55939         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55940         new module.
55941
55942         New module 'posix_spawnattr_getsigmask'.
55943         * modules/posix_spawnattr_getsigmask: New file.
55944         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55945         modifications.
55946         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55947         new module.
55948
55949         New module 'posix_spawnattr_setsigdefault'.
55950         * modules/posix_spawnattr_setsigdefault: New file.
55951         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55952         modifications.
55953         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55954         new module.
55955
55956         New module 'posix_spawnattr_getsigdefault'.
55957         * modules/posix_spawnattr_getsigdefault: New file.
55958         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55959         modifications.
55960         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55961         new module.
55962
55963         New module 'posix_spawnattr_setschedpolicy'.
55964         * modules/posix_spawnattr_setschedpolicy: New file.
55965         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55966         modifications.
55967         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55968         new module.
55969
55970         New module 'posix_spawnattr_getschedpolicy'.
55971         * modules/posix_spawnattr_getschedpolicy: New file.
55972         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55973         modifications.
55974         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55975         new module.
55976
55977         New module 'posix_spawnattr_setschedparam'.
55978         * modules/posix_spawnattr_setschedparam: New file.
55979         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55980         modifications.
55981         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55982         new module.
55983
55984         New module 'posix_spawnattr_getschedparam'.
55985         * modules/posix_spawnattr_getschedparam: New file.
55986         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55987         modifications.
55988         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55989         new module.
55990
55991         New module 'posix_spawnattr_setpgroup'.
55992         * modules/posix_spawnattr_setpgroup: New file.
55993         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55994         modifications.
55995         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55996         module.
55997
55998         New module 'posix_spawnattr_getpgroup'.
55999         * modules/posix_spawnattr_getpgroup: New file.
56000         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56001         modifications.
56002         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56003         module.
56004
56005         New module 'posix_spawnattr_setflags'.
56006         * modules/posix_spawnattr_setflags: New file.
56007         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56008         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56009         module.
56010
56011         New module 'posix_spawnattr_getflags'.
56012         * modules/posix_spawnattr_getflags: New file.
56013         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56014         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56015         module.
56016
56017         New module 'posix_spawnattr_init'.
56018         * modules/posix_spawnattr_init: New file.
56019         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56020         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56021         module.
56022
56023         New module 'posix_spawn_file_actions_destroy'.
56024         * modules/posix_spawn_file_actions_destroy: New file.
56025         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56026         modifications.
56027         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56028         the new module.
56029
56030         New module 'posix_spawn_file_actions_addopen'.
56031         * modules/posix_spawn_file_actions_addopen: New file.
56032         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56033         modifications.
56034         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56035         the new module.
56036
56037         New module 'posix_spawn_file_actions_adddup2'.
56038         * modules/posix_spawn_file_actions_adddup2: New file.
56039         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56040         modifications.
56041         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56042         the new module.
56043
56044         New module 'posix_spawn_file_actions_addclose'.
56045         * modules/posix_spawn_file_actions_addclose: New file.
56046         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56047         modifications.
56048         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56049         the new module.
56050
56051         New module 'posix_spawn_file_actions_init'.
56052         * modules/posix_spawn_file_actions_init: New file.
56053         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56054         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56055         new module.
56056
56057         New module 'posix_spawn-internal'.
56058         * modules/posix_spawn-internal: New file.
56059         * lib/spawn_int.h: New file, from GNU libc with modifications.
56060         * lib/spawni.c: New file, from GNU libc with modifications.
56061         * m4/posix_spawn.m4: New file.
56062
56063         New module 'spawn'.
56064         * modules/spawn: New file.
56065         * lib/spawn.in.h: New file, from GNU libc with modifications.
56066         * m4/spawn_h.m4: New file.
56067         * doc/posix-headers/spawn.texi: Mention the new module.
56068
56069 2008-09-28  Bruno Haible  <bruno@clisp.org>
56070
56071         * modules/sched-tests: New file.
56072         * tests/test-sched.c: New file.
56073
56074         New module 'sched'.
56075         * modules/sched: New file.
56076         * lib/sched.in.h: New file.
56077         * m4/sched_h.m4: New file.
56078         * doc/posix-headers/sched.texi: Mention the new module.
56079
56080 2008-09-27  Eric Blake  <ebb9@byu.net>
56081
56082         Fix previous patch, and tweak references to $0.
56083         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56084         (func_version, func_gnulib_dir): Don't call this program
56085         gnulib-tool.
56086         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56087         with using $0 in function.
56088         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56089         (func_fatal_error): Reuse the name the user invoked us with.
56090
56091 2008-09-27  Bruno Haible  <bruno@clisp.org>
56092
56093         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56094         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56095         (gl_ICONV_H): Not here.
56096         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56097         instead of assigning ICONV_H directly.
56098
56099         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56101         WCHAR_H directly.
56102
56103 2008-09-27  Bruno Haible  <bruno@clisp.org>
56104
56105         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56106         * modules/arpa_inet (Depends-on): Add link-warning.
56107         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56108         * modules/unistd (Makefile.am): Likewise.
56109
56110 2008-09-26  Bruno Haible  <bruno@clisp.org>
56111
56112         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56113         variables.
56114         (func_version): Essentially copied from gnulib-tool.
56115         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56116         func_readlink): Copied from gnulib-tool.
56117
56118 2008-09-26  Bruno Haible  <bruno@clisp.org>
56119
56120         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56121         invoking git-version-gen.
56122
56123 2008-09-26  Bruno Haible  <bruno@clisp.org>
56124
56125         * posix-modules: Update to directory names changed on 2008-01-19.
56126         Remove commas in output before splitting into words. No more need to
56127         avoid 'ftruncate' since 2007-02-19.
56128
56129 2008-09-26  Bruno Haible  <bruno@clisp.org>
56130
56131         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56132
56133 2008-09-26  Bruno Haible  <bruno@clisp.org>
56134
56135         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56136         * modules/fwriteerror (Depends-on): Add errno.
56137
56138 2008-09-26  Bruno Haible  <bruno@clisp.org>
56139
56140         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56141         * tests/test-vc-list-files-cvs.sh: Likewise.
56142
56143 2008-09-26  Bruno Haible  <bruno@clisp.org>
56144
56145         * doc/posix-headers/sys_resource.texi: Reorder items.
56146
56147 2008-09-26  Jim Meyering  <meyering@redhat.com>
56148
56149         fts: tweak inode comparison function
56150         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56151         inode numbers, as documented.
56152
56153         fts: sort dirent entries on inode number before traversing
56154         This avoids a quadratic, seek-related performance penalty when
56155         operating on a directory containing many entries (measurable at 10k;
56156         3.5 hours at 2 million entries with a cold cache) on certain types
56157         of file systems, including ext3 and ext4, but not tmpfs.
56158         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56159         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56160         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56161         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56162         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56163         (fts_build): Set the stat.st_ino member from D_INO.
56164         If it is likely to be useful, sort dirent entries on inode number.
56165
56166         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56167         and the struct statfs.f_type member.
56168         * modules/fts (Depends-on): Add d-ino.
56169
56170 2008-09-26  Bruno Haible  <bruno@clisp.org>
56171
56172         * modules/sigpipe-die (Depends-on): Add sigpipe.
56173
56174         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56175         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56176         and GNULIB_STDIO_H_SIGPIPE are set.
56177         * lib/stdio-write.c: New file.
56178         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56179         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56180         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56181         REPLACE_STDIO_WRITE_FUNCS.
56182         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56183         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56184         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56185         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56186         * modules/stdio (Files): Add lib/stdio-write.c.
56187         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56188         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56189         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56190         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56191         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56192         REPLACE_FPRINTF_POSIX.
56193         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56194         REPLACE_PRINTF_POSIX.
56195         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56196         REPLACE_VFPRINTF_POSIX.
56197         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56198         REPLACE_VPRINTF_POSIX.
56199         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56200         SIGPIPE issue.
56201         * doc/posix-functions/fputc.texi: Likewise.
56202         * doc/posix-functions/fputs.texi: Likewise.
56203         * doc/posix-functions/fwrite.texi: Likewise.
56204         * doc/posix-functions/printf.texi: Likewise.
56205         * doc/posix-functions/putc.texi: Likewise.
56206         * doc/posix-functions/putchar.texi: Likewise.
56207         * doc/posix-functions/puts.texi: Likewise.
56208         * doc/posix-functions/vfprintf.texi: Likewise.
56209         * doc/posix-functions/vprintf.texi: Likewise.
56210
56211         * modules/safe-write (Depends-on): Add write.
56212
56213         * modules/sigpipe-tests: New file.
56214         * tests/test-sigpipe.c: New file.
56215         * tests/test-sigpipe.sh: New file.
56216
56217         * modules/write: New file.
56218         * lib/unistd.in.h: Include <sys/types.h>.
56219         (write): New declaration.
56220         * lib/write.c: New file.
56221         * m4/write.m4: New file.
56222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56223         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56224         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56225         GNULIB_WRITE, REPLACE_WRITE.
56226         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56227         and the SIGPIPE issue.
56228
56229         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56230         (raise): New declaration.
56231         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56232         (ext_signal): New function.
56233         (rpl_raise): New function.
56234         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56235         GNULIB_SIGNAL_H_SIGPIPE.
56236         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56237         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56238
56239         * modules/sigpipe: New file.
56240         * m4/sigpipe.m4: New file.
56241
56242 2008-09-25  Derek Price  <derek@ximbiot.com>
56243             Bruno Haible  <bruno@clisp.org>
56244
56245         * gnulib-tool (func_import): Report all license incompatibilities, not
56246         just the first one.
56247
56248 2008-09-25  Bruno Haible  <bruno@clisp.org>
56249
56250         * gnulib-tool (func_import): When computing the edits, consider not
56251         only the Makefile.ams that exist but also those that will be generated.
56252
56253 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56254
56255         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56256         fixes gnulib-tool --test warning about duplicate dependency.
56257
56258 2008-09-25  Bruno Haible  <bruno@clisp.org>
56259
56260         * gnulib-tool: Don't ask the user to perform edits in the generated
56261         Makefile.ams.
56262         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56263         apply to the Makefile.am being generated.
56264         (func_emit_tests_Makefile_am): Execute edits that apply to the
56265         Makefile.am being generated.
56266         (func_import): Setup list of Makefile.am edits before emitting the
56267         Makefile.ams, not at the end.
56268         (func_create_testdir): Update.
56269         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56270
56271 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56272
56273         * gnulib-tool (func_import): Store the --tests-base option in the
56274         comment in gnulib-cache.m4.
56275
56276 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56277
56278         * NEWS: Document increased portability that sys_select now provides.
56279
56280         * lib/sys_select.in.h: Install select wrapper.
56281         * lib/sys_socket.in.h: Use more descriptive name when there is no
56282         select wrapper.
56283         * lib/winsock-select.c: New.
56284         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56285         Require gl_HEADER_SYS_SOCKET.
56286         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56287         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56288         * tests/test-sys_select.c: Add functional tests.
56289
56290 2008-09-24  Eric Blake  <ebb9@byu.net>
56291
56292         open, fopen: close fd leak in last patch
56293         * lib/open.c (rpl_open): Close fd before returning error.
56294         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56295         * doc/posix-functions/open.texi (open): Document that Irix also
56296         has the bug.
56297         * doc/posix-functions/fopen.texi (fopen): Likewise.
56298         Reported by Paolo Bonzini.
56299
56300 2008-09-24  Bruno Haible  <bruno@clisp.org>
56301
56302         Ensure that a filename ending in a slash cannot be used to access a
56303         non-directory.
56304         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56305         to check whether it's really a directory.
56306         * lib/fopen.c: Include fcntl.h, unistd.h.
56307         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56308         and fdopen().
56309         * modules/fopen (Depends-on): Add unistd.
56310         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56311         * tests/test-fopen.c (main): Likewise.
56312         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56313         * doc/posix-functions/fopen.texi: Likewise.
56314         Reported by Eric Blake.
56315
56316 2008-09-23  Eric Blake  <ebb9@byu.net>
56317
56318         c-stack: avoid compiler optimizations when provoking overflow
56319         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56320         recursion harder to optimize, to ensure a stack overflow occurs.
56321         * tests/test-c-stack.c (recurse): Likewise.
56322         Borrowed from libsigsegv.
56323
56324         c-stack: work around Irix sigaltstack bug
56325         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56326         whether sigaltstack uses wrong end of stack_t (copied in part from
56327         libsigsegv).
56328         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56329         Irix bug, without requiring an over-allocation.
56330         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56331         bug.
56332
56333         fopen: document mingw bug on directories
56334         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56335         not allowing a stream visiting a directory, even though reading
56336         from such a stream is not portable.
56337
56338 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56339
56340         * lib/poll.c: Rewrite.
56341         * modules/poll: Depend on alloca.
56342
56343 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56344
56345         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56346         instead define prototypes for a full set of wrappers.  Ensure
56347         that Cygwin does not use the compatibility code, which is only
56348         for MinGW.
56349         * lib/winsock.c: New.
56350         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56351         * modules/sys_socket: Add lib/winsock.c.
56352
56353         * modules/poll-tests: Add errno and perror.
56354         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56355
56356 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56357
56358         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56359
56360 2008-09-23  Bruno Haible  <bruno@clisp.org>
56361
56362         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56363         * doc/glibc-functions/*: Likewise.
56364
56365 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56366
56367         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56368         success.
56369
56370 2008-09-22  Eric Blake  <ebb9@byu.net>
56371             Bruno Haible  <bruno@clisp.org>
56372
56373         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56374         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56375         supply %A but mishandle pseudo-NaN.
56376         Reported by Simon Josefsson.
56377
56378 2008-09-21  Bruno Haible  <bruno@clisp.org>
56379
56380         * tests/test-lock.c (main): Tweak skip message.
56381         * tests/test-tls.c (main): Likewise.
56382
56383 2008-09-21  Bruno Haible  <bruno@clisp.org>
56384
56385         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56386         whether 'struct sigaction' has sa_sigaction here...
56387         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56388         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56389
56390 2008-09-21  Bruno Haible  <bruno@clisp.org>
56391
56392         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56393         section.
56394         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56395         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56396         the new section.
56397         (Support for obsolete systems lacking POSIX:2001): New section.
56398         (String handling <string.h>): Move strdup to the new section.
56399         Suggested by Simon Josefsson and Paolo Bonzini.
56400
56401 2008-09-21  Bruno Haible  <bruno@clisp.org>
56402
56403         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56404         exponents in %e and %g results on 'long double'. Needed for mingw's
56405         improved *printf functions.
56406         * tests/test-vasprintf-posix.c (test_function): Likewise.
56407         * tests/test-snprintf-posix.h (test_function): Likewise.
56408         * tests/test-sprintf-posix.h (test_function): Likewise.
56409         Reported by Eric Blake.
56410
56411 2008-09-21  Bruno Haible  <bruno@clisp.org>
56412
56413         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56414         * tests/test-sprintf-posix.h (test_function): Likewise.
56415
56416 2008-09-21  Bruno Haible  <bruno@clisp.org>
56417
56418         * modules/getpass (Depends-on): Add strdup-posix.
56419
56420         New module 'strdup-posix'.
56421         * modules/strdup-posix: New file.
56422         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56423         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56425         REPLACE_STRDUP.
56426         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56427         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56428         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56429         strdup-posix.
56430
56431         * modules/strdup (Depends-on): Remove malloc-posix.
56432
56433 2008-09-20  Bruno Haible  <bruno@clisp.org>
56434
56435         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56436         Wildenhues.
56437
56438 2008-09-20  Bruno Haible  <bruno@clisp.org>
56439
56440         Ensure that wint_t gets defined on IRIX 5.3.
56441         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56442         * lib/wctype.in.h (wint_t): Likewise.
56443         (__wctype_wint_t): Remove type.
56444         (isw*): Use wint_t instead of __wctype_wint_t.
56445         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56446         * modules/wchar (Files): Add m4/wint_t.m4.
56447         (Makefile.am): Substitute HAVE_WINT_T.
56448         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56449         * tests/test-wctype.c: Check that wint_t is defined.
56450         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56451         * doc/posix-headers/wctype.texi: Likewise.
56452         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56453
56454 2008-09-18  Bruno Haible  <bruno@clisp.org>
56455
56456         * gnulib-tool (func_exit): Update comment.
56457
56458 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56459
56460         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56461         assumes strdup exists and does not depend on strdup to return
56462         ENOMEM on out of memory conditions.
56463
56464 2008-09-18  Bruno Haible  <bruno@clisp.org>
56465
56466         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56467         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56468         digits for the exponent.
56469
56470 2008-09-18  Jim Meyering  <meyering@redhat.com>
56471             Bruno Haible  <bruno@clisp.org>
56472
56473         * lib/vasnprintf.c (decimal_point_char): Define also if
56474         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56475
56476 2008-09-16  Bruno Haible  <bruno@clisp.org>
56477         and Eric Blake  <ebb9@byu.net>
56478
56479         vasnprintf: support Irix 5.3
56480         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56481         that mishandle long double infinity.
56482         Reported by Tom G. Christensen.
56483
56484 2008-09-16  Bruno Haible  <bruno@clisp.org>
56485
56486         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56487         Solaris 9.
56488         * doc/glibc-functions/alphasort.texi: Likewise.
56489         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56490
56491 2008-09-16  Jim Meyering  <meyering@redhat.com>
56492
56493         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56494         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56495         a umask modification leak out of a subshell.  Otherwise, the
56496         opensolaris /bin/sh would be accepted and thus cause unwarranted
56497         failures in the coreutils test suite.
56498
56499 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56500
56501         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56502         to succeed.
56503
56504 2008-09-16  Jim Meyering  <meyering@redhat.com>
56505
56506         avoid spurious test failure when library is built without ACL support
56507         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56508         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56509         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56510         * tests/test-copy-acl.sh: Likewise.
56511
56512 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56513
56514         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56515         based on character occurrence counts.
56516
56517 2008-09-15  Eric Blake  <ebb9@byu.net>
56518
56519         tests: avoid some compiler warnings
56520         * tests/test-memchr.c (main): Pass NULL indirectly.
56521         * tests/test-closein.c (main): Avoid unused variable.
56522
56523 2008-09-15  Bruno Haible  <bruno@clisp.org>
56524
56525         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56526         are missing on OpenBSD 4.0 individually.
56527         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56528
56529 2008-09-15  Bruno Haible  <bruno@clisp.org>
56530
56531         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56532         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56533         * doc/posix-functions/perror.texi: Likewise.
56534         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56535         is missing.
56536         Reported by Eric Blake.
56537
56538         * lib/errno.in.h: Use replacement values >= 2000.
56539         Reported by Eric Blake.
56540
56541 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56542
56543         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56544         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56545         limit.
56546         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56547         compareseq was aborted.
56548
56549 2008-09-14  Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56552         yvec_edit_count.
56553         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56554         (fstrcmp_bounded): Simplify result computation accordingly.
56555
56556 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56557
56558         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56559         (fstrcmp): Define in terms of fstrcmp_bounded.
56560         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56561         lower_bound argument.
56562         Return quickly if the result is certainly < lower_bound.
56563         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56564
56565 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56566
56567         * lib/diffseq.h (EARLY_ABORT): New macro.
56568         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56569         evaluates to true.
56570
56571 2008-09-14  Bruno Haible  <bruno@clisp.org>
56572
56573         * modules/perror-tests: New file.
56574         * tests/test-perror.sh: New file.
56575         * tests/test-perror.c: New file.
56576
56577         New module 'perror'.
56578         * lib/stdio.in.h (perror): New declaration.
56579         * lib/perror.c: New file.
56580         * m4/perror.m4: New file.
56581         * modules/perror: New file.
56582         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56583         * doc/posix-functions/perror.texi: Mention the perror module.
56584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56585         REPLACE_PERROR.
56586         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56587         REPLACE_PERROR.
56588
56589 2008-09-14  Bruno Haible  <bruno@clisp.org>
56590
56591         * modules/stdio (Makefile.am): Reorder to match the order in
56592         lib/stdio.in.h.
56593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56594
56595 2008-09-13  Bruno Haible  <bruno@clisp.org>
56596
56597         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56598
56599 2008-09-13  Bruno Haible  <bruno@clisp.org>
56600
56601         Extend strerror to cover the added errno values.
56602         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56603         (rpl_strerror): Provide error messages for the added errno values and
56604         for the WSA* values.
56605         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56606         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56607         strerror.
56608         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56609         * modules/strerror (Depends-on): Add errno.
56610         * doc/posix-functions/strerror.texi: Document the change.
56611         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56612         and EOVERFLOW.
56613
56614 2008-09-13  Bruno Haible  <bruno@clisp.org>
56615
56616         * modules/EOVERFLOW: Remove file.
56617         * m4/eoverflow.m4: Remove file.
56618         * modules/EOVERFLOW-tests: Remove file.
56619         * tests/test-EOVERFLOW.c: Remove file.
56620         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56621         * modules/ftell (Depends-on): Likewise.
56622         * modules/getdelim (Depends-on): Likewise.
56623         * modules/getugroups (Depends-on): Likewise.
56624         * modules/poll (Depends-on): Likewise.
56625         * modules/snprintf (Depends-on): Likewise.
56626         * modules/sprintf-posix (Depends-on): Likewise.
56627         * modules/vasnprintf (Depends-on): Likewise.
56628         * modules/vasprintf (Depends-on): Likewise.
56629         * modules/vfprintf-posix (Depends-on): Likewise.
56630         * modules/vsnprintf (Depends-on): Likewise.
56631         * modules/vsprintf-posix (Depends-on): Likewise.
56632         * modules/xvasprintf (Depends-on): Likewise.
56633         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56634         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56635         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56636         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56637         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56638         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56639         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56640         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56641         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56642         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56643         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56644         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56645         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56646         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56647         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56648         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56649         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56650         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56651         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56652         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56653         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56654         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56655         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56656         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56657         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56658         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56659         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56660         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56661         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56662         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56663         * MODULES.html.sh: Remove EOVERFLOW.
56664         * NEWS: Mention the change.
56665
56666 2008-09-13  Bruno Haible  <bruno@clisp.org>
56667
56668         * modules/errno-tests: New file.
56669         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56670
56671         * lib/errno.in.h: New file.
56672         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56673         * modules/errno: New file.
56674         * doc/posix-headers/errno.texi: Update documentation.
56675         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56676
56677 2008-09-13  Bruno Haible  <bruno@clisp.org>
56678
56679         * tests/test-poll.c: Use #if for native Windows, rather than testing
56680         __MSVCRT__.
56681
56682 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56683             Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/glob.c: Don't include <pwd.h> on native Windows.
56686         (WINDOWS32): New macro.
56687         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56688
56689 2008-09-13  Bruno Haible  <bruno@clisp.org>
56690
56691         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56692         (ETIMEDOUT): Remove macro.
56693         (glthread_cond_timedwait_multithreaded): New declaration.
56694         (glthread_cond_timedwait): Use it.
56695         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56696         (glthread_cond_timedwait_multithreaded): New function.
56697
56698 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56699
56700         * modules/poll-tests: Do not check for io.h.
56701         * tests/test-poll.c: Check for __MSVCRT__ instead.
56702
56703 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56704
56705         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56706         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56707         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56708
56709 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56710
56711         * modules/poll-tests: New.
56712         * tests/test-poll.c: New.
56713
56714 2008-09-12  Eric Blake  <ebb9@byu.net>
56715
56716         frexp: test for NetBSD failure on -0.0
56717         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56718         not all, bugs from NetBSD 3.0 have been fixed.
56719         * doc/posix-functions/frexp.texi (frexp): Document bug.
56720         Reported by Thomas Klausner.
56721
56722         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56723         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56724         literal -0.0.
56725         Reported by Jonathan C. Patschke <jp@centtech.com>.
56726
56727 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56728
56729         * lib/glthread/cond.h: Use dummy implementation also if
56730         USE_WIN32_THREADS.
56731
56732 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56733
56734         * modules/fnmatch-posix (License): Change to LGPLv2+.
56735         * modules/fnmatch-gnu (License): Likewise.
56736
56737 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56738
56739         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56740
56741 2008-09-11  Jim Meyering  <meyering@redhat.com>
56742
56743         * users.txt: Add gtk-vnc.
56744
56745 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56746
56747         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56748         rotate amounts.
56749
56750         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56751         required for 16-bit and 8-bit rotates.
56752         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56753         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56754         UINT8_MAX instead of hard-coded constants.
56755         Suggested by Paul Eggert.
56756
56757 2008-09-07  Bruno Haible  <bruno@clisp.org>
56758
56759         * tests/test-striconveh.c (main): Check behaviour when converting from
56760         UTF-7.
56761
56762         Make striconveh work better with stateful encodings.
56763         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56764         that iconv does not increment the inptr when returning -1/EINVAL.
56765
56766 2008-09-07  Bruno Haible  <bruno@clisp.org>
56767
56768         * build-aux/config.rpath: Update according to libtool-2.2.6.
56769         * build-aux/config.libpath: Likewise.
56770
56771 2008-09-06  Bruno Haible  <bruno@clisp.org>
56772
56773         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56774         * lib/freadptr.c (freadptr): Likewise.
56775         * lib/freadseek.c (freadptrinc): Likewise.
56776         Reported by Simon Josefsson.
56777
56778 2008-09-06  Bruno Haible  <bruno@clisp.org>
56779
56780         * modules/freadptr (License): Change to LGPLv2+.
56781         * modules/freadseek (License): Likewise.
56782         Suggested by Eric Blake.
56783
56784         * modules/memchr2 (License): Change to LGPLv2+.
56785         Approved by Eric Blake.
56786
56787 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56788             Bruno Haible  <bruno@clisp.org>
56789
56790         Make gnulib-tool work with native 'sed' on AIX.
56791         * gnulib-tool (sed_noop): New variable.
56792         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56793         func_add_or_update, func_create_testdir): Use it to initialize sed
56794         script variables.
56795         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56796
56797 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56798             Bruno Haible  <bruno@clisp.org>
56799
56800         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56801         also works after #include directives.
56802
56803 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56804
56805         getdate.y: reject an out-of-range timezone value
56806         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56807         the range [-24...+24].  When specified with only one or two digits,
56808         * tests/test-getdate.c: Tests for the fix.
56809         * doc/getdate.texi: Document this change.
56810
56811 2008-09-03  Bruno Haible  <bruno@clisp.org>
56812
56813         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56814
56815 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56816
56817         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56818         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56819         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56820         Blake <ebb9@byu.net>.
56821
56822         * tests/test-bitrotate.c: Add more test vectors.
56823
56824 2008-09-02  Eric Blake  <ebb9@byu.net>
56825
56826         vasnprintf-posix: handle large precision via %.*d
56827         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56828         when handling it ourselves.
56829         * tests/test-vasnprintf-posix.c (test_function): Add test.
56830         * tests/test-snprintf-posix.h (test_function): Likewise.
56831         * tests/test-sprintf-posix.h (test_function): Likewise.
56832         * tests/test-vasprintf-posix.c (test_function): Likewise.
56833         Reported by Alain Guibert.
56834
56835 2008-09-01  Eric Blake  <ebb9@byu.net>
56836
56837         c-stack: make configure-time check more robust
56838         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56839         successful sigaction call.
56840         Reported by Tom G. Christensen.
56841
56842 2008-09-01  Bruno Haible  <bruno@clisp.org>
56843
56844         New module 'findprog-lgpl'.
56845         * modules/findprog-lgpl: New file.
56846         * lib/findprog-lgpl.c: New file.
56847         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56848         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56849         to decide whether to use strdup or xstrdup, concatenated_filename or
56850         xconcatenated_filename.
56851
56852 2008-09-01  Bruno Haible  <bruno@clisp.org>
56853
56854         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56855         'xconcat-filename' (GPL).
56856         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56857         (License): Change to LGPLv2+.
56858         * modules/xconcat-filename: New file.
56859         * lib/concat-filename.h (concatenated_filename): Change specification.
56860         (xconcatenated_filename): New declaration.
56861         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56862         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56863         memory situations.
56864         * lib/xconcat-filename.c: New file.
56865         * NEWS: Mention the change.
56866         * lib/findprog.c: Include concat-filename.h, not filename.h.
56867         (find_in_path): Use xconcatenated_filename instead of
56868         concatenated_filename.
56869         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56870         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56871         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56872         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56873         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56874         instead of concatenated_filename.
56875         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56876         (execute_java_class): Use xconcatenated_filename instead of
56877         concatenated_filename.
56878         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56879         * modules/javacomp (Depends-on): Likewise.
56880         * modules/javaexec (Depends-on): Likewise.
56881
56882 2008-09-01  Bruno Haible  <bruno@clisp.org>
56883
56884         Split module 'filename' into 'filename' and 'concat-filename'.
56885         * modules/filename: Keep only lib/filename.h.
56886         (License): Change to LGPLv2+.
56887         * modules/concat-filename: New file, extracted from modules/filename.
56888         * lib/filename.h (concatenated_filename): Remove declaration.
56889         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56890         * lib/concat-filename.c: Include concat-filename.h.
56891         * NEWS: Mention the change.
56892
56893 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56894
56895         * lib/bitrotate.h (rotl8, rotr8): Add.
56896
56897         * modules/bitrotate (configure.ac): Need
56898         AC_REQUIRE([AC_C_INLINE]).
56899         (Description): Mention stdint.h.  Reported by Bruno Haible
56900         <bruno@clisp.org>.
56901
56902         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56903         Paolo Bonzini <bonzini@gnu.org>.
56904
56905 2008-08-31  Bruno Haible  <bruno@clisp.org>
56906
56907         Assume Solaris specific bi-arch conventions on Solaris systems.
56908         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56909         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56910         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56911         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56912         like acl_libdirstem.
56913         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56914         acl_libdirstem.
56915         * NEWS: Mention the change.
56916         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56917
56918 2008-08-31  Jim Meyering  <meyering@redhat.com>
56919
56920         * lib/strftime.h: Add comments describing the two added arguments.
56921
56922         remove duplicate #include directives
56923         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56924         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56925
56926 2008-08-31  Bruno Haible  <bruno@clisp.org>
56927
56928         New module 'sigpipe-die'.
56929         * modules/sigpipe-die: New file.
56930         * lib/sigpipe-die.h: New file.
56931         * lib/sigpipe-die.c: New file.
56932         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56933
56934 2008-08-31  Bruno Haible  <bruno@clisp.org>
56935
56936         Don't override previously installed signal handlers.
56937         * lib/fatal-signal.c (saved_sigactions): New variable.
56938         (uninstall_handlers): Reset the signal to the saved handler, not
56939         to SIG_DFL (except when ignored).
56940         (install_handlers): Save the previous handlers.
56941
56942 2008-08-30  Bruno Haible  <bruno@clisp.org>
56943
56944         * gnulib-tool (func_reset_sigpipe): New function.
56945         (func_get_automake_snippet, func_modules_transitive_closure,
56946         func_import): Invoke it before a join command that reads from stdin,
56947         to avoid "echo: write error: Broken pipe" error messages on stderr.
56948         Reported by Sam Steingold <sds@gnu.org>.
56949
56950 2008-08-30  Bruno Haible  <bruno@clisp.org>
56951
56952         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56953         Code copied from m4/open.m4.
56954         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56955         access and the filename ends in a slash. Code copied from lib/open.c.
56956         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56957         * tests/test-fopen.c (main): Check against bug with trailing slash.
56958
56959 2008-08-29  Bruno Haible  <bruno@clisp.org>
56960
56961         Avoid some "gcc -pedantic" warnings.
56962         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56963         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56964         * lib/dirent.in.h: Likewise.
56965         * lib/fcntl.in.h: Likewise.
56966         * lib/float.in.h: Likewise.
56967         * lib/iconv.in.h: Likewise.
56968         * lib/inttypes.in.h: Likewise.
56969         * lib/locale.in.h: Likewise.
56970         * lib/math.in.h: Likewise.
56971         * lib/netinet_in.in.h: Likewise.
56972         * lib/search.in.h: Likewise.
56973         * lib/signal.in.h: Likewise.
56974         * lib/stdarg.in.h: Likewise.
56975         * lib/stdint.in.h: Likewise.
56976         * lib/stdio.in.h: Likewise.
56977         * lib/stdlib.in.h: Likewise.
56978         * lib/string.in.h: Likewise.
56979         * lib/strings.in.h: Likewise.
56980         * lib/sys_select.in.h: Likewise.
56981         * lib/sys_socket.in.h: Likewise.
56982         * lib/sys_stat.in.h: Likewise.
56983         * lib/sys_time.in.h: Likewise.
56984         * lib/sysexits.in.h: Likewise.
56985         * lib/time.in.h: Likewise.
56986         * lib/unistd.in.h: Likewise.
56987         * lib/wchar.in.h: Likewise.
56988         * lib/wctype.in.h: Likewise.
56989         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56990         * modules/fchdir (Makefile.am): Likewise.
56991         * modules/fcntl (Makefile.am): Likewise.
56992         * modules/float (Makefile.am): Likewise.
56993         * modules/iconv_open (Makefile.am): Likewise.
56994         * modules/inttypes (Makefile.am): Likewise.
56995         * modules/locale (Makefile.am): Likewise.
56996         * modules/math (Makefile.am): Likewise.
56997         * modules/netinet_in (Makefile.am): Likewise.
56998         * modules/search (Makefile.am): Likewise.
56999         * modules/signal (Makefile.am): Likewise.
57000         * modules/stdarg (Makefile.am): Likewise.
57001         * modules/stdint (Makefile.am): Likewise.
57002         * modules/stdio (Makefile.am): Likewise.
57003         * modules/stdlib (Makefile.am): Likewise.
57004         * modules/string (Makefile.am): Likewise.
57005         * modules/strings (Makefile.am): Likewise.
57006         * modules/sys_select (Makefile.am): Likewise.
57007         * modules/sys_socket (Makefile.am): Likewise.
57008         * modules/sys_stat (Makefile.am): Likewise.
57009         * modules/sys_time (Makefile.am): Likewise.
57010         * modules/sysexits (Makefile.am): Likewise.
57011         * modules/time (Makefile.am): Likewise.
57012         * modules/unistd (Makefile.am): Likewise.
57013         * modules/wchar (Makefile.am): Likewise.
57014         * modules/wctype (Makefile.am): Likewise.
57015         Reported by Reuben Thomas <rrt@sc3d.org>.
57016
57017 2008-08-29  Bruno Haible  <bruno@clisp.org>
57018
57019         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57020         any more.
57021
57022 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57023
57024         * MODULES.html.sh (Misc): Add bitrotate.
57025
57026         * modules/bitrotate: New file.
57027
57028         * lib/bitrotate.h: New file.
57029
57030         * modules/bitrotate-tests: New file.
57031
57032         * tests/test-bitrotate.c: New file.
57033
57034         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57035         on the bitrotate module.
57036
57037         * lib/arctwo.c: Use new bitrotate module.
57038
57039 2008-08-29  Jim Meyering  <meyering@redhat.com>
57040
57041         bootstrap: merge changes from coreutils
57042         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57043         of copied files.  Remove a kludge, now that this is fixed.
57044         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57045         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57046         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57047
57048 2008-08-29  Bruno Haible  <bruno@clisp.org>
57049
57050         * MODULES.html.sh: Remove --cvs-urls option.
57051
57052 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57053
57054         maint.mk: adjust to file name change
57055         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57056
57057 2008-08-28  Jim Meyering  <meyering@redhat.com>
57058
57059         * modules/getndelim2 (License): Relicense to LGPLv2+.
57060         Approved by Richard Stallman for the version of 1995, and by
57061         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57062
57063 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57064
57065         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57066         dummy if one is not available.  Do not touch them if
57067         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57068         (getc_maybe_unlocked): New.
57069         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57070
57071 2008-08-26  Eric Blake  <ebb9@byu.net>
57072
57073         doc/INSTALL: resync from autoconf
57074         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57075         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57076         moving...
57077         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57078         * INSTALL: Regenerate.
57079         * INSTALL.ISO: New file.
57080         * INSTALL.UTF-8: Likewise.
57081
57082 2008-08-26  Jim Meyering  <meyering@redhat.com>
57083
57084         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57085         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57086         these definitions conditional, so that they may be overridden, too.
57087
57088 2008-08-26  Bruno Haible  <bruno@clisp.org>
57089
57090         Generate INSTALL file variants with prettier quotes.
57091         * doc/Makefile (INSTALL_PRELUDE): New macro.
57092         (INSTALL): Use it.
57093         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57094
57095 2008-08-26  Bruno Haible  <bruno@clisp.org>
57096
57097         Run makeinfo in an English locale.
57098         * doc/Makefile (MAKEINFO): New variable.
57099
57100 2008-08-26  Bruno Haible  <bruno@clisp.org>
57101
57102         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57103         Suggested by Eric Blake.
57104
57105 2008-08-25  Bruno Haible  <bruno@clisp.org>
57106
57107         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57108
57109 2008-08-25  Eric Blake  <ebb9@byu.net>
57110
57111         c-stack: test that stack overflow can be caught
57112         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57113         that platform allows handling stack overflow; at least OS/2 EMX
57114         has sigaltstack, but crashes before transferring control to
57115         handler on stack overflow.
57116         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57117         check for HAVE_STACK_OVERFLOW_HANDLING.
57118         Reported by Elbert Pol.
57119
57120 2008-08-25  Bruno Haible  <bruno@clisp.org>
57121
57122         * doc/posix-functions/strftime.texi: Fix description of strftime
57123         module.
57124
57125 2008-08-24  Bruno Haible  <bruno@clisp.org>
57126
57127         * tests/uniwidth/test-uc_width2.c: New file.
57128         * tests/uniwidth/test-uc_width2.sh: New file.
57129         * modules/uniwidth/width-tests (Files): Add the new files.
57130         (TESTS): Add uniwidth/test-uc_width2.sh.
57131         (TESTS_ENVIRONMENT): New variable.
57132         (check_PROGRAMS): Add test-uc_width2.
57133         (test_uc_width2_SOURCES): New variable.
57134
57135         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57136         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57137         not 0x00AB.
57138         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57139
57140 2008-08-22  Eric Blake  <ebb9@byu.net>
57141
57142         test-lock, test-tls: mention why a test is skipped
57143         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57144         skipped.
57145         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57146
57147         count-one-bits: relax license
57148         * modules/count-one-bits (License): Relicense to LGPLv2+.
57149         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57150
57151 2008-08-22  Andreas Schwab  <schwab@suse.de>
57152
57153         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57154         Remove spurious space in assignment.
57155
57156 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57157
57158         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57159         Paul Eggert <eggert@CS.UCLA.EDU>.
57160
57161 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57162
57163         * modules/gettext: Add m4/threadlib.m4.
57164
57165 2008-08-19  Eric Blake  <ebb9@byu.net>
57166
57167         test-c-stack: fix compilation failure on FreeBSD 5.0
57168         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57169         headers before <sys/resource.h>.
57170         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57171         the bug.
57172         Reported by Nelson H. F. Beebe.
57173
57174         strverscmp: migrate from "strverscmp.h" to <string.h>
57175         * modules/string (Makefile.am): Add new hooks.
57176         * modules/strverscmp (Files): Remove strverscmp.h.
57177         (Depends-on): Add string.
57178         (configure.ac): Add indicator.
57179         (Include): Mention new header.
57180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57181         defaults.
57182         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57183         results.
57184         * lib/strverscmp.h: Delete.
57185         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57186         * tests/test-strverscmp.c (includes): Adjust client.
57187         * lib/check-version.c (includes): Likewise.
57188         * NEWS: Document the change.
57189
57190         strverscmp: add unit test
57191         * modules/strverscmp-tests: New file.
57192         * tests/test-strverscmp.c: Likewise.
57193
57194 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57195
57196         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57197         regarding Windows crypto stuff, from Mono.
57198
57199 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57200
57201         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57202         if present, for intel RND.  Return error on failures.
57203
57204 2008-08-18  Ben Pfaff  <blp@gnu.org>
57205
57206         gitlog-to-changelog: give better diagnostic for failed pipe-open
57207         * build-aux/gitlog-to-changelog: Improve error message: suggest
57208         that the version of Git may be too old.
57209
57210 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57211
57212         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57213         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57214
57215 2008-08-18  Bruno Haible  <bruno@clisp.org>
57216
57217         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57218         pthread_in_use().
57219
57220 2008-08-18  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/glthread/threadlib.c: Include <pthread.h>.
57223
57224 2008-08-18  Bruno Haible  <bruno@clisp.org>
57225
57226         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57227         glthread_recursive_lock_* macros.
57228         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57229         Fix syntax error.
57230
57231 2008-08-18  Bruno Haible  <bruno@clisp.org>
57232
57233         * lib/glthread/thread.c: Avoid forcing a context switch right after
57234         thread creation.
57235
57236 2008-08-17  Bruno Haible  <bruno@clisp.org>
57237
57238         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57239         * lib/glthread/thread.h: Provide Win32 specific implementation.
57240         * modules/thread (Files): Add lib/glthread/thread.c.
57241         (Depends-on): Add lock.
57242         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57243
57244 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57245
57246         New module 'yield'.
57247         * modules/yield: New file.
57248         * lib/glthread/yield.h: New file.
57249         * m4/yield.m4: New file.
57250         * MODULES.html.sh (Multithreading): Add yield.
57251
57252 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57253
57254         New module 'thread'.
57255         * modules/thread: New file.
57256         * lib/glthread/thread.h: New file.
57257         * m4/thread.m4: New file.
57258         * MODULES.html.sh (Multithreading): Add thread.
57259
57260 2008-08-17  Bruno Haible  <bruno@clisp.org>
57261
57262         * lib/glthread/lock.h: Include <stdlib.h> always.
57263         * lib/glthread/tls.h: Likewise.
57264         * lib/glthread/cond.h: Likewise.
57265
57266 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57267
57268         New module 'cond'.
57269         * modules/cond: New file.
57270         * lib/glthread/cond.h: New file.
57271         * lib/glthread/cond.c: New file.
57272         * m4/cond.m4: New file.
57273         * MODULES.html.sh (Multithreading): Add cond.
57274
57275 2008-08-16  Eric Blake  <ebb9@byu.net>
57276
57277         c-stack: fix regression on Irix 5.3 from 2008-06-21
57278         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57279         sa_sigaction...
57280         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57281         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57282         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57283         * modules/signal (Makefile.am): Use the value.
57284         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57285         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57286         * doc/posix-headers/signal.texi (signal.h): Document this
57287         portability issue.
57288         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57289         Reported by Tom G. Christensen.
57290
57291 2008-08-17  Bruno Haible  <bruno@clisp.org>
57292
57293         New module 'threadlib'.
57294         * modules/threadlib: New file.
57295         * lib/glthread/threadlib.c: New file, extracted from
57296         lib/glthread/lock.c.
57297         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57298         functions.
57299         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57300         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57301         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57302         macros.
57303         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57304         (gl_DISABLE_THREADS): Remove macro.
57305         * modules/lock (Files): Remove build-aux/config.rpath.
57306         (Depends-on): Remove havelib. Add threadlib.
57307         (configure.ac-early): Remove section.
57308         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57309         * modules/tls (Depends-on): Remove lock. Add threadlib.
57310         (Link): New section, copied from threadlib.
57311         * MODULES.html.sh (Multithreading): Add threadlib.
57312
57313 2008-08-14  Bruno Haible  <bruno@clisp.org>
57314
57315         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57316         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57317         glthread_rwlock_unlock, glthread_rwlock_destroy,
57318         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57319         glthread_recursive_lock_destroy): Define as macros always.
57320         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57321         glthread_lock_lock.
57322         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57323         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57324         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57325         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57326         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57327         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57328         (glthread_recursive_lock_lock_func): Renamed from
57329         glthread_recursive_lock_lock.
57330         (glthread_recursive_lock_unlock_func): Renamed from
57331         glthread_recursive_lock_unlock.
57332         (glthread_recursive_lock_destroy_func): Renamed from
57333         glthread_recursive_lock_destroy.
57334
57335 2008-08-14  Bruno Haible  <bruno@clisp.org>
57336
57337         * lib/glthread/lock.h: Renamed from lib/lock.h.
57338         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57339         * lib/glthread/tls.h: Renamed from lib/tls.h.
57340         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57341         * lib/fstrcmp.c: Update includes.
57342         * lib/strsignal.c: Update includes.
57343         * modules/lock (Files, Makefile.am): Update.
57344         (Include): Change to "glthread/lock.h".
57345         * modules/tls (Files, Makefile.am): Update.
57346         (Include): Change to "glthread/tls.h".
57347         * tests/test-lock.c: Update includes.
57348         * tests/test-tls.c: Update includes.
57349         * NEWS: Mention the renamed header files.
57350
57351 2008-08-11  Jim Meyering  <meyering@redhat.com>
57352
57353         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57354
57355 2008-08-11  Eric Blake  <ebb9@byu.net>
57356
57357         test-c-stack: avoid C99-ism
57358         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57359         before statement.
57360         Reported by Alain Guibert.
57361
57362 2008-08-10  Jim Meyering  <meyering@redhat.com>
57363
57364         ensure that return value of uinttostr et al are not ignored
57365         * lib/inttostr.h (__GNUC_PREREQ): Define.
57366         (__attribute_warn_unused_result__): Define.
57367         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57368
57369 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57370
57371         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57372         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57373
57374 2008-08-07  Jim Meyering  <meyering@redhat.com>
57375
57376         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57377
57378         * modules/mkstemp (License): Relicense under LGPLv2+.
57379         * modules/tempname (License): Likewise.
57380
57381 2008-08-06  Bruno Haible  <bruno@clisp.org>
57382
57383         * lib/poll.c (poll): Further micro-optimization.
57384
57385 2008-08-06  Jim Meyering  <meyering@redhat.com>
57386
57387         inet_pton.c: use locale-independent tolower
57388         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57389         (inet_pton6): Use c_tolower rather than tolower.
57390         * modules/inet_pton (Depends-on): Add c-ctype.
57391
57392 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57393
57394         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57395         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57396
57397 2008-08-06  Jim Meyering  <meyering@redhat.com>
57398
57399         * modules/inet_pton (License): Relicense under LGPLv2+.
57400
57401 2008-08-03  Bruno Haible  <bruno@clisp.org>
57402
57403         Additional non-aborting API for lock and tls.
57404         * lib/lock.h: Include <errno.h>.
57405         (glthread_lock_init): New macro/function.
57406         (gl_lock_init): Define as wrapper around glthread_lock_init.
57407         (glthread_lock_lock): New macro/function.
57408         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57409         (glthread_lock_unlock): New macro/function.
57410         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57411         (glthread_lock_destroy): New macro/function.
57412         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57413         (glthread_rwlock_init): New macro/function.
57414         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57415         (glthread_rwlock_rdlock): New macro/function.
57416         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57417         (glthread_rwlock_wrlock): New macro/function.
57418         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57419         (glthread_rwlock_unlock): New macro/function.
57420         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57421         (glthread_rwlock_destroy): New macro/function.
57422         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57423         (glthread_recursive_lock_init): New macro/function.
57424         (gl_recursive_lock_init): Define as wrapper around
57425         glthread_recursive_lock_init.
57426         (glthread_recursive_lock_lock): New macro/function.
57427         (gl_recursive_lock_lock): Define as wrapper around
57428         glthread_recursive_lock_lock.
57429         (glthread_recursive_lock_unlock): New macro/function.
57430         (gl_recursive_lock_unlock): Define as wrapper around
57431         glthread_recursive_lock_unlock.
57432         (glthread_recursive_lock_destroy): New macro/function.
57433         (gl_recursive_lock_destroy): Define as wrapper around
57434         glthread_recursive_lock_destroy.
57435         (glthread_once): New macro/function.
57436         (gl_once): Define as wrapper around glthread_once.
57437         Update function declarations.
57438         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57439         glthread_rwlock_init. Return error code.
57440         (glthread_rwlock_rdlock_multithreaded): Renamed from
57441         glthread_rwlock_rdlock. Return error code.
57442         (glthread_rwlock_wrlock_multithreaded): Renamed from
57443         glthread_rwlock_wrlock. Return error code.
57444         (glthread_rwlock_unlock_multithreaded): Renamed from
57445         glthread_rwlock_unlock. Return error code.
57446         (glthread_rwlock_destroy_multithreaded): Renamed from
57447         glthread_rwlock_destroy. Return error code.
57448         (glthread_recursive_lock_init_multithreaded): Renamed from
57449         glthread_recursive_lock_init. Return error code.
57450         (glthread_recursive_lock_lock_multithreaded): Renamed from
57451         glthread_recursive_lock_lock. Return error code.
57452         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57453         glthread_recursive_lock_unlock. Return error code.
57454         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57455         glthread_recursive_lock_destroy. Return error code.
57456         (glthread_once_call): Make static.
57457         (glthread_once_multithreaded): Renamed from glthread_once.
57458         * lib/tls.h: Include <errno.h>.
57459         (glthread_tls_key_init): New macro/function.
57460         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57461         (glthread_tls_set): New macro/function.
57462         (gl_tls_set): Define as wrapper around glthread_tls_set.
57463         (glthread_tls_key_destroy): New macro/function.
57464         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57465         Update function declarations.
57466         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57467         glthread_tls_get.
57468         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57469
57470 2008-08-04  Eric Blake  <ebb9@byu.net>
57471
57472         gnumakefile: use space, not TAB, outside of targets
57473         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57474
57475 2008-08-02  Jim Meyering  <meyering@redhat.com>
57476
57477         getdate.y: avoid locale-dependent date parsing failure
57478         In Turkish locales, getdate would fail to recognize keywords
57479         containing a lowercase "i".  The solution is not to rely on
57480         locale-sensitive case-conversion.
57481         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57482         (lookup_word): Use c_toupper in place of toupper.
57483         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57484         Reported by Vefa Bicakci <bicave@superonline.com> in
57485         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57486         * modules/getdate (Depends-on): Add c-ctype.
57487
57488 2008-08-02  Bruno Haible  <bruno@clisp.org>
57489
57490         * gnulib-tool (func_import): When updating or creating a .gitignore
57491         file, prepend each added line with a slash, and ignore leading slashes
57492         from the existing lines.
57493         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57494
57495 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57496
57497         Portability fix for GNU make 3.79.1.
57498         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57499         versions do not understand.
57500
57501 2008-08-01  Bruno Haible  <bruno@clisp.org>
57502
57503         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57504         * tests/test-isnanf.h (zero): New variable.
57505         (main): Avoid literal -0.0f.
57506         * tests/test-isnand.h (zero): New variable.
57507         (main): Avoid literal -0.0.
57508         * tests/test-isnanl.h (zero): New variable.
57509         (main): Avoid literal -0.0L.
57510         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57511         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57512         -0.0, -0.0L.
57513         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57514         (test_signbitd): Avoid literal -0.0.
57515         (test_signbitl): Avoid literal -0.0L.
57516         * tests/test-ceilf1.c (zero): New variable.
57517         (main): Avoid literal -0.0f.
57518         * tests/test-ceill.c (zero): New variable.
57519         (main): Avoid literal -0.0L.
57520         * tests/test-floorf1.c (zero): New variable.
57521         (main): Avoid literal -0.0f.
57522         * tests/test-floorl.c (zero): New variable.
57523         (main): Avoid literal -0.0L.
57524         * tests/test-roundf1.c (zero): New variable.
57525         (main): Avoid literal -0.0f.
57526         * tests/test-round1.c (zero): New variable.
57527         (main): Avoid literal -0.0.
57528         * tests/test-roundl.c (zero): New variable.
57529         (main): Avoid literal -0.0L.
57530         * tests/test-truncf1.c (zero): New variable.
57531         (main): Avoid literal -0.0f.
57532         * tests/test-trunc1.c (zero): New variable.
57533         (main): Avoid literal -0.0.
57534         * tests/test-truncl.c (zero): New variable.
57535         (main): Avoid literal -0.0L.
57536         * tests/test-frexp.c (zero): New variable.
57537         (main): Avoid literal -0.0.
57538         * tests/test-frexpl.c (zero): New variable.
57539         (main): Avoid literal -0.0L.
57540         * tests/test-ldexpl.c (zero): New variable.
57541         (main): Avoid literal -0.0L.
57542         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57543         (zerod, zerol): New variables.
57544         (test_function): Avoid literals -0.0, -0.0L.
57545         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57546         (zerod, zerol): New variables.
57547         (test_function): Avoid literals -0.0, -0.0L.
57548         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57549         (zerod, zerol): New variables.
57550         (test_function): Avoid literals -0.0, -0.0L.
57551         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57552         (zerod, zerol): New variables.
57553         (test_function): Avoid literals -0.0, -0.0L.
57554         * tests/test-strtod.c (zero): New variable.
57555         (main): Avoid literal -0.0.
57556         Reported by Jonathan C. Patschke <jp@centtech.com>.
57557
57558 2008-07-31  Jim Meyering  <meyering@redhat.com>
57559
57560         sha256.h: correct definition of SHA224_DIGEST_SIZE
57561         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57562         Reported by Paulie Pena IV <paulie4@gmail.com>.
57563         Define as 224 / 8, rather than as a literal.
57564         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57565         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57566         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57567
57568 2008-07-31  Bruno Haible  <bruno@clisp.org>
57569
57570         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57571         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57572         Reported by Jonathan Patschke <jp@centtech.com>.
57573
57574 2008-07-31  Bruno Haible  <bruno@clisp.org>
57575
57576         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57577         Reported by Paolo Bonzini <bonzini@gnu.org>.
57578
57579 2008-07-30  Eric Blake  <ebb9@byu.net>
57580
57581         test-strtod: allow compilation without -lm
57582         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57583         Reported by Dennis Clarke <blastwave@gmail.com>.
57584
57585 2008-07-28  Jim Meyering  <meyering@redhat.com>
57586
57587         bootstrap: work also when there are no .po files in po/
57588         * build-aux/bootstrap (update_po_files): Complete the change
57589         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57590
57591 2008-07-27  Jim Meyering  <meyering@redhat.com>
57592
57593         * users.txt: Add zile.
57594
57595 2008-07-26  Ben Pfaff  <blp@gnu.org>
57596
57597         Add missing dependencies on new m4/exponent[fdl].m4 files.
57598         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57599         * modules/isnand-nolibm: Add m4/exponentd.m4.
57600         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57601         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57602         m4/isnan[fdl].m4, because the macros actually used moved.
57603         Reported by Jim Meyering.
57604
57605 2008-07-14  Ben Pfaff  <blp@gnu.org>
57606
57607         Add isinf module.
57608         * lib/isinf.c: New file.
57609         * lib/math.in.h: Define isinf macro if we have decided to replace
57610         it.
57611         * m4/isinf.m4: New file.
57612         * m4/math_h.m4: Initialize and substitute variables for isinf
57613         module.
57614         * modules/isinf: New file.
57615         * modules/isinf-tests: New file.
57616         * modules/math: Add substitutions for new module.
57617         * tests/test-isinf.c: New file.
57618         * doc/posix-functions/isinf.texi: Mention new module.
57619         * MODULES.html.sh: Mention new module.
57620
57621 2008-07-14  Ben Pfaff  <blp@gnu.org>
57622
57623         Factor out some macros for use by additional modules.
57624         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57625         exponentf.m4.
57626         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57627         exponentd.m4.
57628         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57629         file exponentl.m4.
57630         * m4/exponentf.m4: New file.
57631         * m4/exponentd.m4: New file.
57632         * m4/exponentl.m4: New file.
57633         * modules/isnanf: Use new file m4/exponentf.m4.
57634         * modules/isnand: Use new file m4/exponentd.m4.
57635         * modules/isnanl: Use new file m4/exponentl.m4.
57636
57637 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57638
57639         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57640         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57641         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57642         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57643
57644         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57645         readlink on platforms without PATH_MAX.
57646
57647 2008-07-21  Eric Blake  <ebb9@byu.net>
57648
57649         Warn, not fail, on stale version.
57650         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57651
57652         Don't allow installation with stale devel version number.
57653         * top/GNUmakefile (_is-install-target): New macro.
57654         (_curr-ver): Forbid installation with stale version number.
57655
57656 2008-07-20  Bruno Haible  <bruno@clisp.org>
57657
57658         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57659         TESTS_ENVIRONMENT.
57660         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57661
57662 2008-07-20  Bruno Haible  <bruno@clisp.org>
57663
57664         * lib/c-stack.h (c_stack_action): Add documentation.
57665         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57666
57667 2008-07-20  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57670         * modules/readlink (License): Likewise.
57671
57672 2008-07-17  Eric Blake  <ebb9@byu.net>
57673
57674         * modules/c-stack (Link): Fix typo.
57675
57676         Make c-stack use libsigsegv, when available.
57677         * modules/c-stack (Depends-on): Add libsigsegv.
57678         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57679         needed.
57680         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57681         (segv_handler, overflow_handler, c_stack_action)
57682         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57683         implementation when libsigsegv is available, but only when using
57684         the library is necessary.
57685         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57686         comment, explaining why XSI check fails on Linux.
57687         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57688         * tests/test-c-stack2.sh: Tweak skip message.
57689         * NEWS: Document new link-time requirements.
57690
57691 2008-07-16  Eric Blake  <ebb9@byu.net>
57692
57693         c-stack: Expose false positives when not using libsigsegv.
57694         * modules/c-stack-tests (Files): Expand test.
57695         * tests/test-c-stack.c (main): Add means to conditionally trigger
57696         non-overflow SIGSEGV.
57697         * tests/test-c-stack2.sh: New file.
57698
57699 2008-07-14  Bruno Haible  <bruno@clisp.org>
57700
57701         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57702         Reported by Eric Blake.
57703
57704 2008-07-14  Sam Steingold  <sds@gnu.org>
57705             Bruno Haible  <bruno@clisp.org>
57706
57707         New module libsigsegv.
57708         * modules/libsigsegv: New file.
57709         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57710         modifications.
57711         * MODULES.html.sh (Signal handling): New section.
57712
57713 2008-07-14  Bruno Haible  <bruno@clisp.org>
57714
57715         * modules/unictype/ctype-* (Description): Add the word "function".
57716         Improves the resulting doc in MODULES.html.
57717
57718 2008-07-12  Ben Pfaff  <blp@gnu.org>
57719
57720         Add longlong module.
57721         * modules/longlong: New file.
57722
57723 2008-07-12  Bruno Haible  <bruno@clisp.org>
57724
57725         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57726         to empty.
57727
57728 2008-07-10  Ben Pfaff  <blp@gnu.org>
57729
57730         Add isnan module.
57731         * doc/posix-functions/isnan.texi: Mention new module.
57732         * lib/math.in.h: Define isnan macro if we have decided to replace
57733         it.
57734         * m4/isnan.m4: New file.
57735         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57736         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57737         also.
57738         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57739         redundancy.
57740         * m4/math_h.m4: Initialize and substitute variables for isnan
57741         module.
57742         * modules/isnan: New file.
57743         * modules/isnan-tests: New file.
57744         * modules/math: Add substitutions for new module.
57745         * tests/test-isnan.c: New file.
57746         * MODULES.html.sh: Mention new module.
57747
57748 2008-07-10  Ben Pfaff  <blp@gnu.org>
57749
57750         Add isnanf module.
57751         * lib/isnanf.m4: New file.
57752         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57753         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57754         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57755         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57756         * modules/isnanf: New file.
57757         * modules/isnanf-tests: New file.
57758         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57759         files.
57760         * tests/test-isnanf-nolibm.c: factored most of its contents into
57761         new file tests/test-isnanf.h.
57762         * tests/test-isnanf.h: New file.
57763         * tests/test-isnanf.c: New file.
57764         * MODULES.html.sh: Mention new module.
57765         * doc/glibc-functions/isnanf.texi: Mention new module.
57766
57767 2008-07-10  Ben Pfaff  <blp@gnu.org>
57768
57769         Add isnand module.
57770         * lib/isnand.h: New file.
57771         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57772         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57773         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57774         functionality also.
57775         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57776         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57777         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57778         * modules/isnand: New file.
57779         * modules/isnand-tests: New file.
57780         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57781         files.
57782         * tests/test-isnand-nolibm.c: factored most of its contents into
57783         new file tests/test-isnand.h.
57784         * tests/test-isnand.h: New file.
57785         * tests/test-isnand.c: New file.
57786         * MODULES.html.sh: Mention new module.
57787
57788 2008-07-10  Ben Pfaff  <blp@gnu.org>
57789
57790         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57791         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57792         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57793         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57794         * modules/isnanf-nolibm: Update references to renamed files.
57795         * modules/isnand-nolibm: Likewise.
57796         * modules/isnanf-nolibm-tests: Likewise.
57797         * modules/isnand-nolibm-tests: Likewise.
57798         * lib/frexp.c: Likewise.
57799         * lib/isfinite.c: Likewise.
57800         * lib/signbitd.c: Likewise.
57801         * lib/signbitf.c: Likewise.
57802         * lib/vasnprintf.c: Likewise.
57803         * tests/test-ceilf1.c: Likewise.
57804         * tests/test-ceilf2.c: Likewise.
57805         * tests/test-floorf1.c: Likewise.
57806         * tests/test-floorf2.c: Likewise.
57807         * tests/test-frexp.c: Likewise.
57808         * tests/test-round1.c: Likewise.
57809         * tests/test-round2.c: Likewise.
57810         * tests/test-roundf1.c: Likewise.
57811         * tests/test-strtod.c: Likewise.
57812         * tests/test-trunc1.c: Likewise.
57813         * tests/test-trunc2.c: Likewise.
57814         * tests/test-truncf1.c: Likewise.
57815         * tests/test-truncf2.c: Likewise.
57816         * NEWS: Mention the renamed header files.
57817
57818 2008-07-11  Jim Meyering  <meyering@redhat.com>
57819
57820         vc-list-files: make the last-resort awk code more portable
57821         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57822         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57823         does not support it.
57824
57825 2008-07-10  Eric Blake  <ebb9@byu.net>
57826
57827         Work with tar's bootstrap.
57828         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57829         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57830         an m4 comment.
57831
57832 2008-07-09  Jim Meyering  <meyering@redhat.com>
57833
57834         posix-shell.m4: fix typo that made this test malfunction
57835         * m4/posix-shell.m4: Remove capitalization in variable name.
57836
57837 2008-07-08  Bruno Haible  <bruno@clisp.org>
57838
57839         * m4/onceonly.m4: Update comments.
57840         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57841
57842 2008-07-04  Jim Meyering  <meyering@redhat.com>
57843
57844         * users.txt: Add vc-dwim.
57845         (bison, coreutils): Use the gitweb URL.
57846
57847 2008-07-03  Jim Meyering  <meyering@redhat.com>
57848
57849         * users.txt: Add libffcall.  From Sam Steingold.
57850
57851 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57852
57853         getdate.y: do not ignore TZ with relative day, month or year offset
57854         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57855         relative-date-handling, since otherwise, the latter would clobber the
57856         sole output (an updated Start value) of the tz-handling block.
57857         * tests/test-getdate.c: Tests for the fix
57858
57859 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57860
57861         Recognize 'foo_LIBRARIES += libgnu.a'.
57862         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57863         makefile snippet has already specified an installation location,
57864         also using '+='.
57865
57866 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57867
57868         getdate.y: factor out common actions
57869         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57870         Use them in place of open-coded actions.
57871
57872 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57873
57874         Add self-test for getdate module.
57875         * modules/getdate-tests: New file.
57876         * tests/test-getdate.c: New file.
57877
57878 2008-06-29  Bruno Haible  <bruno@clisp.org>
57879
57880         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57881         .gitignore.
57882         Reported by Sylvain Beucler <beuc@beuc.net>.
57883
57884 2008-06-29  Bruno Haible  <bruno@clisp.org>
57885
57886         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57887         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57888
57889 2008-06-29  Bruno Haible  <bruno@clisp.org>
57890
57891         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57892         EXTRA_DIST.
57893         Reported by Sylvain Beucler <beuc@beuc.net>.
57894
57895 2008-06-26  Jim Meyering  <meyering@redhat.com>
57896
57897         make several modules depend on the "open" module
57898         This provides slightly increased consistency when opening-for-write
57899         the name of a non-directory spelled with a trailing slash.
57900         * modules/chdir-safer: Likewise.
57901         * modules/chown: Likewise.
57902         * modules/clean-temp: Likewise.
57903         * modules/copy-file: Likewise.
57904         * modules/fchdir: Likewise.
57905         * modules/fcntl-safer: Likewise.
57906         * modules/pipe: Likewise.
57907         * modules/utime: Likewise.
57908         Prompted by Eric Blake and Bruno Haible.
57909
57910 2008-06-24  Andreas Schwab  <schwab@suse.de>
57911
57912         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57913         literals can be used as initializers for global variables.
57914
57915 2008-06-23  Eric Blake  <ebb9@byu.net>
57916
57917         Make gnulib-cache.m4 easier to diff.
57918         * gnulib-tool (func_import): Allow newlines when reading cached
57919         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57920
57921 2008-06-23  Bruno Haible  <bruno@clisp.org>
57922
57923         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57924         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57925         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57926         m4/signalblocking.m4.
57927         (gl_PREREQ_SIGACTION): Don't invoke it.
57928         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57929         gl_PREREQ_SIG_HANDLER_H.
57930         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57931         Don't check for sigaction here.
57932
57933 2008-06-23  Bruno Haible  <bruno@clisp.org>
57934
57935         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57936         (install_handlers): Don't set the SA_RESETHAND flag.
57937
57938 2008-06-23  Bruno Haible  <bruno@clisp.org>
57939
57940         * m4/sigaction.m4: Comment fixes.
57941         * lib/signal.in.h: Likewise.
57942
57943 2008-06-23  Eric Blake  <ebb9@byu.net>
57944
57945         Fix typo.
57946         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57947
57948         Avoid SA_ namespace.
57949         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57950         Reported by Ralf Wildenhues.
57951
57952         Avoid test failure due to SA_RESTORER.
57953         * tests/test-sigaction.c (SA_MASK): New macro.
57954         (main): Avoid failing due to extension flags being set.
57955         Reported by Jim Meyering.
57956
57957         Revert use of sig-handler.h in sigprocmask.c.
57958         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57959         it requires the existence of struct sigaction.
57960         * lib/sigprocmask.c (handler_t): Restore typedef.
57961         (rpl_signal, old_handlers): Use local type.
57962
57963 2008-06-22  Bruno Haible  <bruno@clisp.org>
57964
57965         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57966         conditionally.
57967         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57968
57969 2008-06-22  Bruno Haible  <bruno@clisp.org>
57970
57971         * doc/posix-functions/siginterrupt.texi: Move note.
57972
57973         * lib/signal.in.h (SA_RESTART): New macro.
57974         * lib/sigaction.c: Update comment.
57975
57976         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57977
57978         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57979         (gl_PREREQ_SIGPROCMASK): Invoke it.
57980         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57981
57982         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57983
57984         * lib/sigprocmask.c: Update a comment.
57985
57986 2008-06-21  Eric Blake  <ebb9@byu.net>
57987
57988         Use sigaction module rather than signal().
57989         * modules/c-stack (Depends-on): Add sigaction.
57990         * modules/fatal-signal (Depends-on): Likewise.
57991         * modules/nanosleep (Depends-on): Likewise.
57992         * modules/sigprocmask (Files): Add sig-handler.h.
57993         * modules/sigaction (Files): Likewise.
57994         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57995         Eggert.
57996         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57997         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57998         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57999         (init_fatal_signals): Likewise.
58000         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58001         (siginterrupt): Delete fallback.
58002         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58003         instead.
58004         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58005         siginterrupt.
58006
58007         New module sigaction, for mingw.
58008         * modules/sigaction: New module...
58009         * modules/sigaction-tests: ...and its test.
58010         * m4/sigaction.m4: New file.
58011         * lib/sigaction.c: Likewise.
58012         * tests/test-sigaction.c: Likewise.
58013         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58014         * modules/signal (Makefile.am): Likewise.
58015         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58016         needed.
58017         * doc/posix-headers/signal.texi (signal.h): Mention provided
58018         types.
58019         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58020         that sigaction is preferable.
58021         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58022         module.
58023         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58024         sigaction.
58025
58026         Improve robustness of sigprocmask by overriding signal.
58027         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58028         is in use.
58029         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58030         (SIGKILL, SIGSTOP): Provide fallbacks.
58031         (rpl_signal): Implement.
58032         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58033         signal can be called inside handlers.
58034
58035         Fix nanosleep module on mingw.
58036         * modules/nanosleep (Depends-on): Add sys_select.
58037         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58038
58039         Fix licensing of sigprocmask.
58040         * modules/raise (License): Relicense as LGPL.
58041
58042 2008-06-21  Bruno Haible  <bruno@clisp.org>
58043
58044         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58045         result if it contains question marks.
58046         Reported by Michael Geng <linux@michaelgeng.de>.
58047
58048 2008-06-19  Bruno Haible  <bruno@clisp.org>
58049
58050         Fix CVS-ism.
58051         * doc/gnulib.texi: Include updated-stamp.texi.
58052         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58053         (updated-stamp.texi): New rule.
58054         (gnulib.info): Depend on it.
58055         * doc/.gitignore: Add updated-stamp.texi.
58056         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58057
58058 2008-06-19  Bruno Haible  <bruno@clisp.org>
58059
58060         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58061         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58062
58063 2008-06-19  Eric Blake  <ebb9@byu.net>
58064
58065         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58066         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58067         Reported by Stepan Kasal.
58068
58069 2008-06-18  Bruno Haible  <bruno@clisp.org>
58070
58071         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58072         Reported by Eric Blake.
58073
58074 2008-06-18  Eric Blake  <ebb9@byu.net>
58075
58076         Work around cygwin 1.5.25 strsignal bug.
58077         * tests/test-strsignal.c: Allow for const char *.
58078         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58079
58080 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58081
58082         * users.txt: Update URL to article and add author/date
58083         information.
58084
58085 2008-06-17  Bruno Haible  <bruno@clisp.org>
58086
58087         New macro gl_DISABLE_THREADS.
58088         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58089         if the user did not pass --enable-threads or --disable-threads option.
58090         (gl_DISABLE_THREADS): New macro.
58091         Reported by Eric Blake <ebb9@byu.net>.
58092
58093 2008-06-17  Bruno Haible  <bruno@clisp.org>
58094
58095         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58096         when the macro ignores it.
58097         Based on a patch by Eric Blake <ebb9@byu.net>.
58098
58099 2008-06-17  Bruno Haible  <bruno@clisp.org>
58100
58101         * modules/tls (License): Change to LGPLv2+.
58102         Reported by Eric Blake.
58103
58104 2008-06-17  Eric Blake  <ebb9@byu.net>
58105
58106         Simplify c-stack prerequisites.
58107         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58108         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58109         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58110         check.
58111         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58112         <sys/resource.h>.
58113
58114         Move c-stack test into testsuite.
58115         * modules/c-stack-tests: New file.
58116         * lib/c-stack.c [DEBUG]: Move test program...
58117         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58118         fail test if sigaltstack is lacking.
58119         * tests/test-c-stack.sh: New driver file.
58120
58121 2008-06-16  Eric Blake  <ebb9@byu.net>
58122
58123         Use raise module consistently.
58124         * modules/fatal-signal (Depends-on): Add raise.
58125         * modules/sigprocmask (Depends-on): Likewise.
58126         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58127         * lib/sigprocmask.c (sigprocmask): Likewise.
58128         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58129         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58130
58131         Fix compliance bug in sigpending.
58132         * lib/sigprocmask.c (sigpending): Return pending array via
58133         parameter, not return value.
58134
58135 2008-06-14  Eric Blake  <ebb9@byu.net>
58136
58137         Improve obstack-printf test code.
58138         * tests/test-obstack-printf.c (test_function): Fix comment, and
58139         simplify usage of obstack_* in macros.  Add a test for coverage.
58140         Reported by Bruno Haible.
58141
58142 2008-06-14  Bruno Haible  <bruno@clisp.org>
58143
58144         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58145         array size as a constant, not as a const variable.
58146         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58147         AC_USE_SYSTEM_EXTENSIONS.
58148         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58149         Test whether the obstack_printf function actually exists.
58150         * modules/obstack-printf (Depends-on): Add extensions.
58151         (Include): Remove obstack.h.
58152         * modules/obstack-printf-posix (Depends-on): Add extensions.
58153         (Include): Remove obstack.h.
58154
58155 2008-06-13  Eric Blake  <ebb9@byu.net>
58156
58157         Add obstack-printf and obstack-printf-posix modules.
58158         * modules/obstack-printf: New file.
58159         * modules/obstack-printf-posix: Likewise.
58160         * MODULES.html.sh (Misc): Mention them.
58161         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58162         Likewise.
58163         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58164         Likewise.
58165         * modules/stdio (Makefile.am): Accomodate new modules.
58166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58167         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58168         Declare.
58169         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58170         functions.
58171         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58172         (gl_REPLACE_OBSTACK_PRINTF): New macros
58173         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58174         * tests/test-obstack-printf.c: New file.
58175         * modules/obstack-printf-tests: Likewise.
58176         * modules/obstack-printf-posix-tests: Likewise.
58177
58178 2008-06-11  Bruno Haible  <bruno@clisp.org>
58179
58180         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58181         * lib/open.c: Include errno.h.
58182         (open): Fail when attempting to write to a file that has a trailing
58183         slash.
58184         * tests/test-open.c (main): Test against trailing slash bug.
58185         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58186
58187 2008-06-10  Bruno Haible  <bruno@clisp.org>
58188
58189         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58190         for $? to work inside the trap command, with various /bin/sh-s.
58191         * tests/test-vc-list-files-cvs.sh: Likewise.
58192
58193 2008-06-10  Bruno Haible  <bruno@clisp.org>
58194
58195         * lib/acl-internal.h: Don't include gettext.h here.
58196         * lib/set-mode-acl.c: Include gettext.h here.
58197         * lib/copy-acl.c: Likewise.
58198
58199 2008-06-10  Bruno Haible  <bruno@clisp.org>
58200
58201         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58202         * lib/wait-process.c (wait_subprocess): Likewise.
58203         * lib/execute.h (execute): Add termsigp argument.
58204         * lib/execute.c (execute): Likewise.
58205         * lib/csharpcomp.c (compile_csharp_using_pnet,
58206         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58207         * lib/csharpexec.c (execute_csharp_using_pnet,
58208         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58209         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58210         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58211         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58212         is_jikes_present): Update.
58213         * lib/javaexec.c (execute_java_class): Update.
58214         * lib/javaversion.c (execute_and_read_line): Update.
58215         * NEWS: Document the changes.
58216         Reported by Eric Blake.
58217
58218 2008-06-10  Eric Blake  <ebb9@byu.net>
58219
58220         Add missing include.
58221         * tests/test-strstr.c (includes): Add <signal.h>.
58222         * tests/test-strcasestr.c (includes): Likewise.
58223         * tests/test-memmem.c (includes): Likewise.
58224
58225 2008-06-10  Bruno Haible  <bruno@clisp.org>
58226
58227         * lib/wait-process.c (wait_subprocess): Add an assertion.
58228
58229 2008-06-10  Bruno Haible  <bruno@clisp.org>
58230
58231         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58232
58233 2008-06-10  Bruno Haible  <bruno@clisp.org>
58234
58235         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58236         using alarm().
58237         * tests/test-strcasestr.c (main): Likewise.
58238         * tests/test-strstr.c (main): Likewise.
58239
58240 2008-06-09  Bruno Haible  <bruno@clisp.org>
58241
58242         Work around the Solaris 10 ACE ACLs ABI change.
58243         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58244         declare if ACL_NO_TRIVIAL is present.
58245         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58246         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58247         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58248         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58249         define if ACL_NO_TRIVIAL is present.
58250         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58251         and use the current ABI.
58252         (file_has_acl): Use same #if condition as elsewhere.
58253         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58254         in use, and use the current ABI.
58255         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58256         Reported by Jim Meyering.
58257
58258 2008-06-09  Eric Blake  <ebb9@byu.net>
58259
58260         Work around environments that (stupidly) ignore SIGALRM.
58261         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58262         before using alarm().
58263         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58264         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58265         Reported by Ian Beckwith <ianb@erislabs.net>.
58266
58267         Produce autobuild blurb earlier in log.
58268         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58269
58270 2008-06-09  Jim Meyering  <meyering@redhat.com>
58271         and OndÅ™ej Vašík  <ovasik@redhat.com>
58272
58273         utimens.c: correct kernel bug work-around
58274         OndÅ™ej Vašík found that the invalid return value of 280 indicates
58275         failure, not success, and the kernel bug we're trying to work
58276         around affects not just the utimensat call, but also the fallback
58277         futimens call.
58278         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58279         not success.
58280         [HAVE_FUTIMENS]: Use the same work-around, here.
58281
58282 2008-06-09  Jim Meyering  <meyering@redhat.com>
58283
58284         add more guards around definition of ACE_-related code
58285         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58286         ALLOW and ACE_OWNER are also defined.
58287
58288 2008-06-08  Bruno Haible  <bruno@clisp.org>
58289
58290         * lib/acl-internal.h: Add me as co-author.
58291         * lib/file-has-acl.c: Likewise.
58292         * lib/set-mode-acl.c: Likewise.
58293         * lib/copy-acl.c: Likewise.
58294
58295 2008-06-08  Bruno Haible  <bruno@clisp.org>
58296
58297         Add support for AIX ACLs.
58298         * lib/acl-internal.h (acl_nontrivial): New declaration.
58299         * lib/file-has-acl.c (acl_nontrivial): New function.
58300         (file_has_acl): Add implementation using AIX 4 ACL API.
58301         * lib/set-mode-acl.c (qset_acl): Likewise.
58302         * lib/copy-acl.c (qcopy_acl): Likewise.
58303
58304 2008-06-08  Bruno Haible  <bruno@clisp.org>
58305
58306         Add support for HP-UX ACLs.
58307         * lib/acl-internal.h (acl_nontrivial): New declaration.
58308         * lib/file-has-acl.c (acl_nontrivial): New function.
58309         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58310         * lib/set-mode-acl.c (qset_acl): Likewise.
58311         * lib/copy-acl.c (qcopy_acl): Likewise.
58312
58313 2008-06-08  Bruno Haible  <bruno@clisp.org>
58314
58315         Add support for Cygwin ACLs.
58316         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58317         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58318         the chmod_or_fchmod call.
58319         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58320
58321 2008-06-08  Bruno Haible  <bruno@clisp.org>
58322
58323         Fix bug with setuid modes in Solaris 10+ code.
58324         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58325         succeeded, when the mode contains some special bits.
58326
58327 2008-06-08  Bruno Haible  <bruno@clisp.org>
58328
58329         Add support for Solaris 7..10 ACLs.
58330         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58331         declarations.
58332         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58333         functions.
58334         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58335         * lib/set-mode-acl.c (qset_acl): Likewise.
58336         * lib/copy-acl.c (qcopy_acl): Likewise.
58337
58338 2008-06-08  Bruno Haible  <bruno@clisp.org>
58339
58340         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58341         declaration.
58342         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58343         (acl_access_nontrivial): Remove MacOS X case.
58344         (file_has_acl): Use acl_extended_nontrivial.
58345         * lib/copy-acl.c (qcopy_acl): Likewise.
58346
58347 2008-06-08  Bruno Haible  <bruno@clisp.org>
58348
58349         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58350
58351 2008-06-08  Jim Meyering  <meyering@redhat.com>
58352
58353         * modules/acl (Maintainer): Add Bruno Haible.
58354
58355 2008-06-07  Bruno Haible  <bruno@clisp.org>
58356
58357         Improve support for Tru64 ACLs.
58358         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58359         ACL on OSF/1.
58360
58361 2008-06-07  Bruno Haible  <bruno@clisp.org>
58362
58363         Add support for MacOS X ACLs.
58364         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58365         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58366         * lib/set-mode-acl.c (qset_acl): Likewise.
58367         * lib/copy-acl.c (qcopy_acl): Likewise.
58368
58369 2008-06-07  Bruno Haible  <bruno@clisp.org>
58370
58371         Fix memory leak introduced on 2008-05-22.
58372         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58373         use.
58374
58375 2008-06-07  Bruno Haible  <bruno@clisp.org>
58376
58377         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58378         to construct an empty ACL.
58379
58380 2008-06-07  Bruno Haible  <bruno@clisp.org>
58381
58382         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58383         precisely.
58384         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58385
58386 2008-06-07  Bruno Haible  <bruno@clisp.org>
58387
58388         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58389         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58390
58391 2008-06-07  Bruno Haible  <bruno@clisp.org>
58392
58393         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58394         regardless of POSIX.
58395         * doc/posix-functions/_longjmp.texi: Likewise.
58396         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58397         SystemV platform in this case.
58398
58399 2008-06-06  Eric Blake  <ebb9@byu.net>
58400
58401         Document abort() bugs.
58402         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58403
58404         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58405         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58406         sigsetjmp.
58407         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58408         siglongjmp, but only as a macro.
58409         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58410         is obsolete.
58411         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58412
58413         Tweak documentation to cover cygwin argz bugs.
58414         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58415         argz bug fix; no code change needed since no cygwin releases
58416         occurred between the last fix and the bug being tested.
58417         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58418         module and recently fixed cygwin bugs.
58419         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58420         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58421         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58422         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58423         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58424         Likewise.
58425         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58426         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58427         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58428         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58429         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58430         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58431         Likewise.
58432
58433         Avoid gcc warning on cygwin.
58434         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58435         !ACL_NO_TRIVIAL]: Avoid unused variable.
58436
58437 2008-06-05  Eric Blake  <ebb9@byu.net>
58438
58439         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58440         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58441         git-version-gen fails to come up with a version.
58442         Reported by Simon Josefsson.
58443
58444 2008-06-05  Jim Meyering  <meyering@redhat.com>
58445             Paul Eggert  <eggert@cs.ucla.edu>
58446
58447         utimens.c: work around a probable Linux kernel bug
58448         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58449         appears to be a kernel bug that causes utimensat to return 280
58450         instead of 0, indicating success.
58451
58452 2008-06-04  Bruno Haible  <bruno@clisp.org>
58453
58454         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58455         2008-06-01 commit.
58456
58457 2008-06-04  Bruno Haible  <bruno@clisp.org>
58458
58459         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58460         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58461         (file_has_acl): Use it. Save errno afterwards.
58462         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58463
58464 2008-06-03  Bruno Haible  <bruno@clisp.org>
58465
58466         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58467         draft code. Simplify #ifs.
58468         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58469         Put Solaris code after POSIX-draft code. Fix comments regarding
58470         Solaris 10, HP-UX. Mention Cygwin.
58471         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58472
58473 2008-06-03  Eric Blake  <ebb9@byu.net>
58474
58475         Provide fallback for older kernels.
58476         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58477         Provide runtime fallback if kernel lacks support.
58478         Reported by Mike Frysinger.
58479
58480 2008-06-02  Bruno Haible  <bruno@clisp.org>
58481
58482         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58483         it exists.
58484
58485 2008-06-02  Bruno Haible  <bruno@clisp.org>
58486
58487         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58488         * lib/copy-acl.c (qcopy_acl): Update comment.
58489
58490 2008-06-02  Bruno Haible  <bruno@clisp.org>
58491
58492         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58493         like ACL APIs.
58494
58495 2008-06-02  Bruno Haible  <bruno@clisp.org>
58496
58497         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58498         * tests/test-set-mode-acl.sh: Likewise.
58499         * tests/test-copy-acl.sh: Likewise.
58500         * tests/test-copy-file.sh: Likewise.
58501
58502 2008-06-02  Bruno Haible  <bruno@clisp.org>
58503
58504         * tests/test-file-has-acl.sh: Remove unused code.
58505
58506 2008-06-01  Bruno Haible  <bruno@clisp.org>
58507
58508         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58509         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58510         messages.
58511         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58512
58513 2008-06-01  Bruno Haible  <bruno@clisp.org>
58514
58515         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58516         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58517         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58518         APIs.
58519         * modules/acl-tests (configure.ac): Remove tests now contained in
58520         m4/acl.m4.
58521
58522 2008-06-02  Jim Meyering  <meyering@redhat.com>
58523
58524         announce-gen: use a better key-server host name
58525         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58526         it may be more consistently reliable.  Suggested by Werner Koch
58527         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58528
58529 2008-06-01  Bruno Haible  <bruno@clisp.org>
58530
58531         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58532         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58533
58534 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58535
58536         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58537
58538 2008-06-01  Bruno Haible  <bruno@clisp.org>
58539
58540         New ACL tests.
58541         * tests/test-file-has-acl.sh: New file.
58542         * tests/test-file-has-acl.c: New file.
58543         * tests/test-set-mode-acl.sh: New file.
58544         * tests/test-set-mode-acl.c: New file.
58545         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58546         * tests/test-copy-acl.c: New file.
58547         * modules/acl-tests: New file, based on modules/copy-file-tests.
58548         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58549         (Depends-on): Add acl-tests.
58550         (configure.ac): Remove checks.
58551         (Makefile.am): Don't create test-sameacls program here any more.
58552
58553 2008-06-01  Bruno Haible  <bruno@clisp.org>
58554
58555         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58556         * tests/test-sameacls.c: Include progname.h.
58557         (main): Invoke set_program_name. Portability fixes for MacOS X,
58558         Solaris, HP-UX.
58559
58560 2008-06-01  Bruno Haible  <bruno@clisp.org>
58561
58562         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58563         function.
58564         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58565
58566 2008-06-01  Bruno Haible  <bruno@clisp.org>
58567
58568         * modules/rpmatch (Depends-on): Add strdup.
58569
58570 2008-06-01  Bruno Haible  <bruno@clisp.org>
58571
58572         * lib/pipe.c: Include unistd-safer.h.
58573         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58574         * modules/pipe (Depends-on): Add unistd-safer.
58575
58576 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58577
58578         * modules/autobuild (configure.ac): Call AB_INIT.
58579
58580 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58581
58582         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58583         Suggested by Bruno Haible <bruno@clisp.org>.
58584
58585 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58586
58587         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58588         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58589         <bruno@clisp.org>.
58590
58591 2008-05-29  Eric Blake  <ebb9@byu.net>
58592
58593         Prefer new POSIX 200x interfaces over futimesat.
58594         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58595         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58596         when available.
58597         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58598
58599 2008-05-28  Bruno Haible  <bruno@clisp.org>
58600
58601         * modules/stpcpy (License): Change to LGPLv2+.
58602         Requested by David Lutterkort <dlutter@redhat.com>.
58603
58604 2008-05-27  Bruno Haible  <bruno@clisp.org>
58605
58606         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58607         current mingw.
58608         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58609
58610 2008-05-27  Bruno Haible  <bruno@clisp.org>
58611
58612         * modules/iconv_open (Link): New section, from module 'iconv'.
58613         * modules/striconv (Link): Likewise.
58614         * modules/striconveh (Link): Likewise.
58615         * modules/xstriconv (Link): Likewise.
58616         * modules/unicodeio (Link): Likewise.
58617         * modules/propername (Link): Likewise.
58618         Reported by Jim Meyering.
58619
58620 2008-05-26  Jim Meyering  <meyering@redhat.com>
58621
58622         sha256: do not artificially restrict buffer length to be < 2^32
58623         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58624         uint32_t to size_t.
58625         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58626         to match.
58627
58628         avoid unaligned access errors, e.g., on sparc
58629         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58630         direct access through a possibly-unaligned uint64* pointer.
58631         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58632         direct access through a possibly-unaligned uint32* pointer.
58633         Prompted by this patch from Tom "spot" Callaway:
58634         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58635
58636         sha512.c: fix typo in comment
58637         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58638
58639 2008-05-25  Bruno Haible  <bruno@clisp.org>
58640
58641         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58642         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58643         (Makefile.am): Update lib_SOURCES.
58644
58645 2008-05-25  Bruno Haible  <bruno@clisp.org>
58646
58647         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58648
58649 2008-05-25  Jim Meyering  <meyering@redhat.com>
58650
58651         useless-if-before-free: freed expr may have white-space differences
58652         * build-aux/useless-if-before-free: Recognize cases in which the
58653         freed expression differs from the tested one in embedded white
58654         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58655         $1 was used, so we can't make any regexp shy.  Improved tests now
58656         detect this.
58657
58658         useless-if-before-free: accept white space in the expression.
58659         * build-aux/useless-if-before-free: For now, any white space
58660         in the expression must be identical in the free argument.
58661
58662         useless-if-before-free: efficiency tweak
58663         * build-aux/useless-if-before-free: Make the expression-matching
58664         regexp "shy".
58665         Make the *outer* regexp shy, not the expr-matching one.
58666
58667         update code-in-comment to accept cast of free arg
58668         * build-aux/useless-if-before-free: Update regexp.
58669
58670 2008-05-25  Bruno Haible  <bruno@clisp.org>
58671
58672         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58673         * modules/copy-file-tests (Files, Makefile.am): Update.
58674         * tests/test-copy-file.c (func_test_copy): Update.
58675
58676 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58677
58678         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58679
58680 2008-05-23  Bruno Haible  <bruno@clisp.org>
58681
58682         Improve support for ACLs on OSF/1.
58683         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58684         Remove fallback for unknown flavors of ACLs.
58685
58686 2008-05-22  Bruno Haible  <bruno@clisp.org>
58687
58688         Add support for ACLs on OSF/1.
58689         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58690         replacements.
58691         (acl_free_text): New macro fallback.
58692         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58693         acl_free.
58694         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58695         acl_free_text function. Require AC_C_INLINE.
58696
58697 2008-05-22  Bruno Haible  <bruno@clisp.org>
58698
58699         Make copy_acl work on MacOS X 10.5.
58700         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58701         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58702         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58703         If MODE_INSIDE_ACL, don't assume that every system has the same text
58704         representation for ACLs as FreeBSD.
58705         * lib/copy-acl.c (copy_acl): Add support for platforms with
58706         !MODE_INSIDE_ACL.
58707         * lib/file-has-acl.c (file_has_acl): Likewise.
58708         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58709         FreeBSD, MacOS X, or IRIX, respectively.
58710
58711 2008-05-22  Bruno Haible  <bruno@clisp.org>
58712
58713         * lib/acl.h: Don't include <sys/acl.h>.
58714         (GETACLCNT): Move fallback to lib/acl-internal.h.
58715         * lib/acl-internal.h: Include <sys/acl.h> here.
58716         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58717
58718 2008-05-22  Bruno Haible  <bruno@clisp.org>
58719
58720         Split off copy_acl function to separate file.
58721         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58722         * lib/acl.c (copy_acl): Moved function to separate file.
58723         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58724         * modules/acl (Files): Add lib/copy-acl.c.
58725         (Makefiles.am): Augment lib_SOURCES.
58726
58727 2008-05-22  Bruno Haible  <bruno@clisp.org>
58728
58729         * modules/copy-file-tests: New file.
58730         * tests/test-copy-file.sh: New file.
58731         * tests/test-copy-file.c: New file.
58732         * tests/test-copy-file-sameacls.c: New file.
58733
58734 2008-05-22  Eric Blake  <ebb9@byu.net>
58735
58736         Avoid gcc warning.
58737         * tests/test-memcmp.c (main): Pass NULL indirectly.
58738
58739 2008-05-21  Bruno Haible  <bruno@clisp.org>
58740
58741         Add reference doc about ACLs.
58742         * doc/acl-resources.txt: New file.
58743         * doc/acl-cygwin.txt: New file.
58744
58745 2008-05-21  Bruno Haible  <bruno@clisp.org>
58746
58747         Avoid one more warning from gcc.
58748         * lib/vasnprintf.c (IF_LINT): Update comments.
58749         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58750
58751 2008-05-21  Jim Meyering  <meyering@redhat.com>
58752
58753         avoid a warning from gcc
58754         * lib/vasnprintf.c (IF_LINT): Define.
58755         (scale10_round_decimal_long_double):
58756         Use it to avoid a "may be used uninitialized" warning.
58757         (scale10_round_decimal_double): Likewise.
58758
58759 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58760
58761         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58762         declared.
58763
58764 2008-05-20  Bruno Haible  <bruno@clisp.org>
58765
58766         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58767         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58768
58769 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58770
58771         * modules/memcmp-tests: New file.
58772         * tests/test-memcmp.c: New file.
58773
58774 2008-05-19  Bruno Haible  <bruno@clisp.org>
58775
58776         * modules/propername (Notice, configure.ac): Put quoted "..." into
58777         --keyword option.
58778         * lib/propername.h: Update comments accordingly.
58779         Reported by Eric Blake.
58780
58781 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58782
58783         * modules/getpass-gnu (Depends-on): Add fseeko.
58784
58785 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58786
58787         * modules/base64-tests: New file.
58788
58789 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58790
58791         * lib/base64.c (base64_decode_ctx): If a decode context structure
58792         was passed in use it to ignore newlines.  If a context structure
58793         was _not_ passed in, continue to treat newlines as garbage (this
58794         is the historical behavior).  Formerly base64_decode.
58795         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58796         takes a decode context structure.
58797         * lib/base64.h (base64_decode): Macro for four-argument calls.
58798         (base64_decode_alloc): Likewise.
58799         * lib/base64.c (base64_decode_ctx): If a decode context structure
58800         was passed in use it to ignore newlines.  If a context structure
58801         was _not_ passed in, continue to treat newlines as garbage (this
58802         is the historical behavior).  Formerly base64_decode.
58803         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58804         takes a decode context structure.
58805         * lib/base64.h (base64_decode): Macro for four-argument calls.
58806         (base64_decode_alloc): Likewise.
58807
58808 2008-05-19  Jim Meyering  <meyering@redhat.com>
58809
58810         avoid a warning from gcc
58811         * lib/trim.c (IF_LINT): Define.
58812         (trim2): Use it to avoid a "may be used uninitialized" warning.
58813
58814         Fix doc typo.
58815         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58816
58817 2008-05-19  Bruno Haible  <bruno@clisp.org>
58818
58819         * doc/glibc-functions/getpass.texi: Document limits of other
58820         implementations.
58821
58822 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58823             Bruno Haible <bruno@clisp.org>
58824
58825         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58826
58827 2008-05-18  Bruno Haible  <bruno@clisp.org>
58828
58829         * modules/propername: New file, from GNU gettext.
58830         * lib/propername.h: New file, from GNU gettext.
58831         * lib/propername.c: New file, from GNU gettext.
58832         * MODULES.html.sh (Internationalization functions): Add propername.
58833
58834 2008-05-16  Jim Meyering  <meyering@redhat.com>
58835             Bruno Haible  <bruno@clisp.org>
58836
58837         Avoid some warnings from "gcc -Wshadow".
58838         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58839
58840 2008-05-15  Eric Blake  <ebb9@byu.net>
58841
58842         Extend previous patch to cygwin 1.7.0.
58843         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58844         fast implementation in cygwin >= 1.7.0.
58845         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58846         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58847
58848 2008-05-15  Bruno Haible  <bruno@clisp.org>
58849
58850         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58851         implementation in glibc >= 2.9.
58852         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58853         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58854
58855 2008-05-15  Bruno Haible  <bruno@clisp.org>
58856
58857         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58858         (Unicode string functions): Add unilbrk/*.
58859         Reported by Karl Berry.
58860
58861 2008-05-15  Eric Blake  <ebb9@byu.net>
58862
58863         Fix violation of <stdbool.h> replacement in regex.
58864         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58865         * lib/regexec.c (re_search_internal): Likewise.
58866         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58867
58868 2008-05-15  Jim Meyering  <meyering@redhat.com>
58869
58870         avoid distracting test output when git or cvs is not found
58871         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58872         * tests/test-vc-list-files-git.sh: Likewise.
58873
58874 2008-05-15  Eric Blake  <ebb9@byu.net>
58875
58876         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58877         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58878         glibc version.
58879         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58880         * doc/posix-functions/strstr.texi (strstr): Likewise.
58881         * lib/str-two-way.h (MAX): Sychronize with glibc.
58882
58883 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58884
58885         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58886         opr.ctx_type.
58887         (calc_first): Initialize constraint field.
58888         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58889         Fix grammar.
58890         (duplicate_node): Merge constraint field for all node types.
58891         (calc_eclosure_iter): Look at constraint field for all node types.
58892         * lib/regex_internal.c (create_cd_newstate): Don't look at
58893         opr.ctx_type.
58894
58895 2008-05-14  Bruno Haible  <bruno@clisp.org>
58896
58897         Help GCC to do better code generation.
58898         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58899         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58900         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58901         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58902         Declare with attribute 'malloc' if supported.
58903
58904 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58905
58906         use "echo STR|wc -c" rather than unportable "expr length STR"
58907         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58908         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58909
58910 2008-05-14  Jim Meyering  <meyering@redhat.com>
58911
58912         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58913         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58914         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58915         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58916         via Collin Lasse.
58917
58918 2008-05-14  Eric Blake  <ebb9@byu.net>
58919
58920         Avoid quadratic growth in gl_LIBSOURCES.
58921         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58922         Suggested by Bruno Haible.
58923
58924         Test xmemdup0.
58925         * modules/xmemdup0-tests: New file.
58926         * tests/test-xmemdup0.c: Likewise.
58927
58928 2008-05-13  Eric Blake  <ebb9@byu.net>
58929
58930         Split xmemdup0 into its own module.
58931         * modules/xmemdup0: New file.
58932         * lib/xmemdup0.h: Likewise.
58933         * lib/xmemdup0.c: Likewise.
58934         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58935         * lib/xalloc.h (xmemdup0): Remove.
58936         * lib/xmalloc.c (xmemdup0): Likewise.
58937
58938 2008-05-13  Eric Blake  <ebb9@byu.net>
58939             Bruno Haible  <bruno@clisp.org>
58940
58941         Reduce number of forks required during autoconf.
58942         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58943         and gl_LIBSOURCES_DIR.
58944         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58945         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58946         m4_syscmd per file.
58947         <m4_foreach_w>: Move...
58948         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58949
58950 2008-05-13  Eric Blake  <ebb9@byu.net>
58951
58952         * gnulib-tool: Fix various comment typos.
58953
58954 2008-05-12  Bruno Haible  <bruno@clisp.org>
58955
58956         Tailor the linebreaking algorithm.
58957         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58958
58959 2008-05-12  Bruno Haible  <bruno@clisp.org>
58960
58961         Update to Unicode 5.0.0.
58962         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58963         LBP_JV, LBP_JT. Redistribute values.
58964         (unilbrk_table): Change size.
58965         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58966         Unicode TR#14 rev. 22.
58967         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58968         LBP_JV, LBP_JT. Redistribute values.
58969         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58970         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58971         Update.
58972         * lib/unilbrk/lbrkprop1.h: Regenerated.
58973         * lib/unilbrk/lbrkprop2.h: Regenerated.
58974         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58975         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58976         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58977         Likewise.
58978         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58979         Likewise.
58980         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58981         result.
58982         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58983         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58984         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58985         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58986         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58987         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58988
58989 2008-05-11  Bruno Haible  <bruno@clisp.org>
58990
58991         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58992
58993 2008-05-11  Bruno Haible  <bruno@clisp.org>
58994
58995         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58996         * modules/unilbrk/gen-lbrk: New file.
58997
58998 2008-05-11  Bruno Haible  <bruno@clisp.org>
58999
59000         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59001         * m4/sha512.m4 (gl_SHA512): Likewise.
59002
59003 2008-05-11  Jim Meyering  <meyering@redhat.com>
59004
59005         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59006         * modules/crypto/sha256: New file.
59007         * modules/crypto/sha512: Likewise.
59008         * lib/sha256.c: Likewise.
59009         * lib/sha256.h: Likewise.
59010         * lib/sha512.c: Likewise.
59011         * lib/sha512.h: Likewise.
59012         * lib/u64.h: Likewise.
59013         * m4/sha256.m4: Likewise.
59014         * m4/sha512.m4: Likewise.
59015         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59016
59017 2008-05-10  Bruno Haible  <bruno@clisp.org>
59018
59019         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59020         (Input/Output <stdio.h>): Add xprintf.
59021         (Signal handling <signal.h>): Add strsignal.
59022         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59023         (Core language properties): Add func.
59024         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59025         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59026         strings.
59027         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59028         (Input/output): New section.
59029         (File system functions): Add openat-die, stat-macros.
59030         (Networking functions): Add sockets.
59031         (Unicode string functions): Add unictype/*.
59032         (Support for building libraries and executables): Add gperf.
59033         (Support for building documentation): Add agpl-3.0.
59034         (Misc): Add nocrash.
59035
59036 2008-05-10  Bruno Haible  <bruno@clisp.org>
59037
59038         * modules/unictype/gen-ctype: New file.
59039
59040 2008-05-10  Jim Meyering  <meyering@redhat.com>
59041
59042         Make chdir-safer.c more efficient on a system with no symlinks.
59043         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59044         also if ELOOP is zero.  Suggested by Bruno Haible.
59045
59046         Make chdir-safer.c slightly safer.
59047         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59048         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59049
59050         Avoid compile failure on systems without ELOOP (like mingw).
59051         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59052         Reported by Bruno Haible.
59053
59054 2008-05-10  Bruno Haible  <bruno@clisp.org>
59055
59056         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59057         (is_utf8_encoding): Use a case-insensitive comparison.
59058         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59059         streq.
59060
59061 2008-05-10  Bruno Haible  <bruno@clisp.org>
59062
59063         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59064         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59065         * lib/unilbrk/ulc-common.h (iconv_string_length,
59066         iconv_string_keeping_offsets): Remove declarations.
59067         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59068         Don't include <iconv.h>, streq.h, xsize.h.
59069         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59070         conversion.
59071         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59072         <iconv.h>, streq.h, xsize.h.
59073         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59074         conversion.
59075         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59076         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59077         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59078         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59079
59080 2008-05-10  Bruno Haible  <bruno@clisp.org>
59081
59082         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59083         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59084
59085         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59086         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59087
59088         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59089         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59090
59091         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59092         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59093
59094         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59095         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59096
59097         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59098         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59099
59100         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59101         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59102
59103         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59104         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59105
59106 2008-05-10  Bruno Haible  <bruno@clisp.org>
59107
59108         Split up 'linebreak' module.
59109         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59110         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59111         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59112         modifications.
59113         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59114         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59115         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59116         lib/linebreak.c.
59117         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59118         lib/linebreak.c.
59119         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59120         lib/linebreak.c.
59121         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59122         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59123         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59124         lib/linebreak.c.
59125         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59126         lib/linebreak.c.
59127         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59128         lib/linebreak.c.
59129         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59130         lib/linebreak.c.
59131         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59132         lib/linebreak.c.
59133         * modules/unilbrk/base: New file.
59134         * modules/unilbrk/tables: New file.
59135         * modules/unilbrk/u8-possible-linebreaks: New file.
59136         * modules/unilbrk/u16-possible-linebreaks: New file.
59137         * modules/unilbrk/u32-possible-linebreaks: New file.
59138         * modules/unilbrk/ulc-common: New file.
59139         * modules/unilbrk/ulc-possible-linebreaks: New file.
59140         * modules/unilbrk/u8-width-linebreaks: New file.
59141         * modules/unilbrk/u16-width-linebreaks: New file.
59142         * modules/unilbrk/u32-width-linebreaks: New file.
59143         * modules/unilbrk/ulc-width-linebreaks: New file.
59144         * lib/linebreak.h: Remove file.
59145         * lib/linebreak.c: Remove file.
59146         * m4/linebreak.m4: Remove file.
59147         * modules/linebreak: Remove file.
59148         * NEWS: Mention the changes.
59149
59150 2008-05-09  Eric Blake  <ebb9@byu.net>
59151
59152         Add xmemdup0.
59153         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59154         implementation.
59155         * lib/xmalloc.c (xmemdup0): New C implementation.
59156
59157 2008-05-08  Bruno Haible  <bruno@clisp.org>
59158
59159         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59160
59161 2008-05-07  Eric Blake  <ebb9@byu.net>
59162
59163         Support cross-compilation of <wctype.h>.
59164         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59165         AC_CACHE_CHECK.
59166
59167 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59168
59169         * build-aux/vc-list-files: Add support for bzr.
59170
59171 2008-05-03  Jim Meyering  <meyering@redhat.com>
59172
59173         avoid failed assertion with tight malloc
59174         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59175
59176 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59177
59178         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59179         are needed from arpa/inet.h.
59180         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59181         Reported by Bruno Haible.
59182
59183 2008-05-02  Jim Meyering  <meyering@redhat.com>
59184
59185         avoid compilation error on FreeBSD 6
59186         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59187
59188 2008-05-01  Jim Meyering  <meyering@redhat.com>
59189
59190         useless-if-before-free: correct --help's exit status description
59191         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59192         for one or more matches, etc.  Reported by Bruno Haible.
59193
59194         vc-list-files: make the stand-alone gnulib test work
59195         * modules/vc-list-files-tests (configure.ac):
59196         Define and AC_SUBST abs_aux_dir.
59197         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59198         $(abs_top_srcdir) to each script and having each of them
59199         duplicate the work of setting PATH, set PATH here, using
59200         the new variable, abs_aux_dir instead.
59201         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59202         * tests/test-vc-list-files-git.sh: Likewise.
59203         Reported by Bruno Haible.
59204
59205 2008-05-01  Bruno Haible  <bruno@clisp.org>
59206
59207         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59208         reallocation. Rename 'done' to 'found_delimiter'.
59209
59210 2008-05-01  Jim Meyering  <meyering@redhat.com>
59211
59212         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59213         * build-aux/vc-list-files: Use `...`, not $(...).
59214
59215 2008-04-30  Jim Meyering  <meyering@redhat.com>
59216
59217         add tests for vc-list-files
59218         * modules/vc-list-files-tests: New module.
59219         * tests/test-vc-list-files-cvs.sh: New file.
59220         * tests/test-vc-list-files-git.sh: New file.
59221
59222         avoid a warning from gcc
59223         * lib/getndelim2.c (IF_LINT): Define.
59224         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59225
59226         vc-list-files: work properly with build-aux/cvsu, too
59227         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59228         to all cvs-based clauses.
59229
59230         vc-list-files: work properly in the CVS+awk case, too
59231         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59232
59233         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59234         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59235         take more than one file argument, so .  Add quotes, just in case $dir
59236         ever contains a shell meta-character.  Prompted by Soren Hansen in
59237         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59238
59239 2008-04-29  Eric Blake  <ebb9@byu.net>
59240
59241         Optimize getndelim2 to use block operations when possible.
59242         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59243         freadseek, and memchr2.
59244         * lib/getndelim2.c (getndelim2): Use them for block reads.
59245
59246 2008-04-29  Bruno Haible  <bruno@clisp.org>
59247
59248         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59249         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59250         * modules/inet_ntop (Depends-on): Add extensions.
59251         * modules/inet_pton (Depends-on): Likewise.
59252         Reported by Simon Josefsson.
59253
59254 2008-04-29  Jim Meyering  <meyering@redhat.com>
59255
59256         When the is more than one match in a block, match all of them.
59257         * build-aux/useless-if-before-free: Iterate through each block
59258         until there are no more matches.
59259
59260         Fix broken useless-if-before-free script.
59261         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59262         the expression to match cast of argument to free-like function.
59263
59264 2008-04-29  Eric Blake  <ebb9@byu.net>
59265
59266         Use new header.
59267         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59268
59269 2008-04-29  Jim Meyering  <meyering@redhat.com>
59270
59271         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59272         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59273         by gnulib to exist and to declare e.g., inet_ntop.
59274         Don't include "inet_ntop.h", now removed.
59275
59276         * m4/arpa_inet_h.m4: Remove trailing blanks.
59277
59278 2008-04-29  Eric Blake  <ebb9@byu.net>
59279
59280         Silence valgrind on safe reads beyond potential array bounds.
59281         * lib/rawmemchr.valgrind: New file.
59282         * lib/strchrnul.valgrind: Likewise.
59283         * modules/rawmemchr (Files): Distribute new file.
59284         * modules/strchrnul (Files): Likewise.
59285         Suggested by Bruno Haible.
59286
59287 2008-04-29  Bruno Haible  <bruno@clisp.org>
59288
59289         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59290         (inet_ntop, inet_pton): Change portability warning's wording.
59291         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59292         Invoke gl_CHECK_NEXT_HEADERS.
59293         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59294         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59295         set ARPA_INET_H.
59296         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59297         * modules/arpa_inet (Description): No longer only for systems that
59298         lack it.
59299         (Depends-on): Add include_next.
59300         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59301         HAVE_ARPA_INET_H.
59302
59303 2008-04-29  Jim Meyering  <meyering@redhat.com>
59304
59305         * modules/mkdir (License): Re-license as LGPLv2+.
59306
59307 2008-04-29  Bruno Haible  <bruno@clisp.org>
59308
59309         * modules/rawmemchr (Maintainer): Set to Eric.
59310         * modules/strchrnul (Maintainer): Likewise.
59311
59312 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59313
59314         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59315         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59316
59317         * modules/arpa_inet (arpa/inet.h): Use them.
59318
59319 2008-04-28  Eric Blake  <ebb9@byu.net>
59320
59321         Test getndelim2.
59322         * modules/getndelim2-tests: New file.
59323         * tests/test-getndelim2.c: Likewise.
59324         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59325         stream.
59326         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59327
59328         * MODULES.html.sh: Document new module.
59329
59330 2008-04-20  Bruno Haible  <bruno@clisp.org>
59331
59332         * lib/c-stack.c (die): Use raise.
59333         * modules/c-stack (Depends-on): Add raise.
59334
59335 2008-04-28  Bruno Haible  <bruno@clisp.org>
59336
59337         Expect rpmatch to be declared.
59338         * lib/yesno.c (rpmatch): Remove declaration.
59339
59340         Declare rpmatch.
59341         * lib/stdlib.in.h (rpmatch): New declaration.
59342         * lib/rpmatch.c: Include <stdlib.h> first.
59343         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59344         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59346         HAVE_RPMATCH.
59347         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59348         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59349         (Include): Set to <stdlib.h>.
59350         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59351         HAVE_RPMATCH.
59352         * NEWS: Document the change.
59353
59354 2008-04-28  Bruno Haible  <bruno@clisp.org>
59355
59356         Change rpmatch to use nl_langinfo when appropriate.
59357         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59358         (N_): New macro.
59359         (localized_pattern): New function/macro.
59360         (try): Remove match, nomatch arguments. Copy the pattern into safe
59361         memory before caching it.
59362         (rpmatch): Use localized_pattern. Add translator comments.
59363         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59364         Suggested by Eric Blake.
59365         * modules/rpmatch (Depends-on): Add stdbool.
59366
59367 2008-04-28  Eric Blake  <ebb9@byu.net>
59368
59369         Add rawmemchr module, matching glibc.
59370         * modules/string (Makefile.am): New indicator.
59371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59372         * lib/string.in.h (rawmemchr): Declare when appropriate.
59373         * modules/rawmemchr: New file.
59374         * m4/rawmemchr.m4: Likewise.
59375         * lib/rawmemchr.c: Likewise.
59376         * modules/rawmemchr-tests: Likewise.
59377         * tests/test-rawmemchr.c: Likewise.
59378         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59379         module.
59380         * modules/strchrnul (Depends-on): Add rawmemchr.
59381         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59382
59383         Whitespace cleanup.
59384         * tests/test-strchrnul.c: Reindent.
59385         * lib/strchrnul.c: Likewise.
59386
59387         Optimize and test strchrnul.
59388         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59389         * modules/strchrnul-tests: New file.
59390         * tests/test-strchrnul.c: Likewise.
59391
59392         Remove intprops dependency.
59393         * modules/memchr (Depends-on): Remove intprops.
59394         * modules/memrchr (Depends-on): Likewise.
59395         * modules/memchr2 (Depends-on): Likewise.
59396         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59397         * lib/memrchr.c (__memrchr): Likewise.
59398         * lib/memrchr2.c (memchr2): Likewise.
59399         Reported by Simon Josefsson.
59400
59401 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59402
59403         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59404         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59405
59406 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59407
59408         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59409
59410         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59411
59412         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59413
59414         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59415         declarations.
59416         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59417
59418         * m4/inet_pton.m4: Don't check for header files.
59419
59420         * m4/inet_ntop.m4: Don't check for header files.
59421
59422 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59423
59424         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59425         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59426         trigger for cygwin).
59427         Reported by Bruno Haible  <bruno@clisp.org>.
59428
59429 2008-04-28  Bruno Haible  <bruno@clisp.org>
59430
59431         * doc/posix-functions/strdup.texi: Mention mingw problem.
59432
59433 2008-04-27  Bruno Haible  <bruno@clisp.org>
59434
59435         * modules/stat-time-tests (Depends-on): Add sleep.
59436         * tests/test-stat-time.c (force_unlink): New function.
59437         (cleanup): Use it.
59438         (test_mtime): Remove the ctime related tests.
59439         (test_ctime): New function, containing the ctime related tests.
59440         (main): Call test_ctime, except on native Windows platforms.
59441
59442 2008-04-27  Bruno Haible  <bruno@clisp.org>
59443
59444         * lib/rpmatch.c (rpmatch): Add some comments.
59445         Reported by James Youngman <jay@gnu.org>.
59446
59447 2008-04-27  Bruno Haible  <bruno@clisp.org>
59448
59449         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59450         quiet NaNs.
59451
59452 2008-04-27  Bruno Haible  <bruno@clisp.org>
59453
59454         Make test-yesno.sh work on mingw.
59455         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59456         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59457         (main): Set stdin to binary mode.
59458         * modules/yesno-tests (Depends-on): Add binary-io.
59459
59460 2008-04-27  Bruno Haible  <bruno@clisp.org>
59461
59462         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59463         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59464         argument that lie outside the IEEE 854 domain.
59465         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59466         (gl_ISFINITE): Use it.
59467         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59468
59469 2008-04-27  Bruno Haible  <bruno@clisp.org>
59470
59471         Allow local renaming in config.h.
59472         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59473
59474 2008-04-27  Bruno Haible  <bruno@clisp.org>
59475
59476         * lib/memchr.c (__memchr): Change type of 'i'.
59477         * lib/memchr2.c (memchr2): Likewise.
59478
59479 2008-04-26  Eric Blake  <ebb9@byu.net>
59480         and Bruno Haible  <bruno@clisp.org>
59481
59482         Optimize and test memrchr.
59483         * modules/memrchr (Depends-on): Add intprops.
59484         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59485         * modules/memrchr-tests: New file.
59486         * tests/test-memrchr.c: New file.
59487
59488 2008-04-26  Bruno Haible  <bruno@clisp.org>
59489
59490         Add tentative support for DragonFly BSD.
59491         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59492         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59493         fp.
59494         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59495         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59496         * lib/fpurge.c (fpurge): Likewise.
59497         * lib/freadable.c (freaadable): Likewise.
59498         * lib/freadahead.c (freadahead): Likewise.
59499         * lib/freading.c (freading): Likewise.
59500         * lib/freadptr.c (freadptr): Likewise.
59501         * lib/freadseek.c (freadptrinc): Likewise.
59502         * lib/fseeko.c (fseeko): Likewise.
59503         * lib/fseterr.c (fseterr): Likewise.
59504         * lib/fwritable.c (fwritable): Likewise.
59505         * lib/fwriting.c (fwriting): Likewise.
59506
59507 2008-04-26  Bruno Haible  <bruno@clisp.org>
59508
59509         * lib/stdio-impl.h: New file.
59510         * lib/fbufmode.c: Include stdio-impl.h.
59511         (fbufmode): Use fp_, remove redundant #defines.
59512         * lib/fflush.c: Include stdio-impl.h.
59513         (clear_ungetc_buffer): Remove redundant #defines.
59514         * lib/fpurge.c: Include stdio-impl.h.
59515         (fpurge): Remove redundant #defines.
59516         * lib/freadable.c: Include stdio-impl.h.
59517         (freadable): Remove redundant #defines.
59518         * lib/freadahead.c: Include stdio-impl.h.
59519         (freadahead): Remove redundant #defines.
59520         * lib/freading.c: Include stdio-impl.h.
59521         (freading): Remove redundant #defines.
59522         * lib/freadptr.c: Include stdio-impl.h.
59523         (freadptr): Remove redundant #defines.
59524         * lib/freadseek.c: Include stdio-impl.h.
59525         (freadptrinc): Remove redundant #defines.
59526         * lib/fseeko.c: Include stdio-impl.h.
59527         (rpl_fseeko): Remove redundant #defines.
59528         * lib/fseterr.c: Include stdio-impl.h.
59529         (fseterr): Remove redundant #defines.
59530         * lib/fwritable.c: Include stdio-impl.h.
59531         (fwritable: Remove redundant #defines.
59532         * lib/fwriting.c: Include stdio-impl.h.
59533         (fwriting): Remove redundant #defines.
59534         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59535         * modules/fflush (Files): Likewise.
59536         * modules/fpurge (Files): Likewise.
59537         * modules/freadable (Files): Likewise.
59538         * modules/freadahead (Files): Likewise.
59539         * modules/freading (Files): Likewise.
59540         * modules/freadptr (Files): Likewise.
59541         * modules/freadseek (Files): Likewise.
59542         * modules/fseeko (Files): Likewise.
59543         * modules/fseterr (Files): Likewise.
59544         * modules/fwritable (Files): Likewise.
59545         * modules/fwriting (Files): Likewise.
59546
59547 2008-04-26  Bruno Haible  <bruno@clisp.org>
59548
59549         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59550         restore_seek_optimization, update_fpos_cache): New functions, extracted
59551         from rpl_fflush.
59552         (rpl_fflush): Use them.
59553         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59554         (gl_REPLACE_FFLUSH): Use it.
59555
59556 2008-04-26  Bruno Haible  <bruno@clisp.org>
59557
59558         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59559         on Solaris.
59560         * tests/test-xstrtoimax.sh: Likewise.
59561         * tests/test-xstrtoumax.sh: Likewise.
59562         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59563
59564 2008-04-26  Bruno Haible  <bruno@clisp.org>
59565
59566         * modules/memchr-tests: New file.
59567         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59568
59569 2008-04-26  Eric Blake  <ebb9@byu.net>
59570             Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/memchr.c: Include intprops.h.
59573         (__memchr): Optimize parallel detection of matching bytes. Rename local
59574         variables. Add explanatory comments.
59575
59576 2008-04-26  Bruno Haible  <bruno@clisp.org>
59577
59578         Fix module 'memchr', broken since 2000-10-28.
59579         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59580
59581 2008-04-26  Bruno Haible  <bruno@clisp.org>
59582
59583         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59584         comments.
59585
59586 2008-04-25  Eric Blake  <ebb9@byu.net>
59587
59588         Use native fstatat on cygwin 1.7.0.
59589         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59590         first.
59591
59592 2008-04-23  Eric Blake  <ebb9@byu.net>
59593
59594         Improve memchr2 performance.
59595         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59596         NUL bytes.
59597         * modules/memchr2 (Depends-on): Use intprops.h.
59598
59599 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59600
59601         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59602         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59603         <blp@cs.stanford.edu>.
59604
59605 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59606
59607         * lib/arpa_inet.in.h: New file.
59608
59609         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59610         (Makefile.am): Sed in substitute header file.
59611
59612         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59613         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59614
59615         * modules/inet_ntop (configure.ac): Use
59616         gl_ARPA_INET_MODULE_INDICATOR.
59617
59618         * modules/inet_pton (configure.ac): Use
59619         gl_ARPA_INET_MODULE_INDICATOR.
59620
59621 2008-04-22  Jim Meyering  <meyering@redhat.com>
59622
59623         * modules/verify (License): Re-license as LGPLv2+.
59624
59625 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59626
59627         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59628         parameter to void* as per POSIX standard (MinGW uses char*).
59629
59630 2008-04-21  Bruno Haible  <bruno@clisp.org>
59631
59632         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59633         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59634         Define to replacements if REPLACE_ISWCNTRL is 1.
59635         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59636         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59637         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59638         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59639         what it fixes.
59640         * doc/posix-functions/iswalpha.texi: Likewise.
59641         * doc/posix-functions/iswblank.texi: Likewise.
59642         * doc/posix-functions/iswcntrl.texi: Likewise.
59643         * doc/posix-functions/iswdigit.texi: Likewise.
59644         * doc/posix-functions/iswgraph.texi: Likewise.
59645         * doc/posix-functions/iswlower.texi: Likewise.
59646         * doc/posix-functions/iswprint.texi: Likewise.
59647         * doc/posix-functions/iswpunct.texi: Likewise.
59648         * doc/posix-functions/iswspace.texi: Likewise.
59649         * doc/posix-functions/iswupper.texi: Likewise.
59650         * doc/posix-functions/iswxdigit.texi: Likewise.
59651         Reported by Alain Guibert.
59652
59653 2008-04-21  Bruno Haible  <bruno@clisp.org>
59654
59655         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59656         Patch by Alain Guibert.
59657
59658 2008-04-21  Bruno Haible  <bruno@clisp.org>
59659
59660         Fix test failures on mingw.
59661         * tests/test-xstrtol.c (print_no_progname): New function.
59662         (main): Install it in error_print_progname hook.
59663         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59664         * tests/test-xstrtoimax.sh: Likewise.
59665         * tests/test-xstrtoumax.sh: Likewise.
59666
59667 2008-04-21  Bruno Haible  <bruno@clisp.org>
59668
59669         Fix test failure on mingw.
59670         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59671
59672 2008-04-21  Bruno Haible  <bruno@clisp.org>
59673
59674         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59675         Actually assign a value.
59676
59677 2008-04-20  Bruno Haible  <bruno@clisp.org>
59678
59679         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59680         take 2.
59681         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59682         'canonicalize-lgpl' module is also used.
59683         * lib/canonicalize-lgpl.c: Undo last change.
59684         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59685
59686 2008-04-20  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59689         config.h. Provide _mkdir based fallback for mingw.
59690         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59691         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59692         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59693         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59694         rather than defining mkdir in config.h.
59695         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59696         (gl_SYS_STAT_H_DEFAULTS): New macro.
59697         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59698         HAVE_IO_H any more.
59699         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59700         HAVE_DECL_MKDIR and HAVE_IO_H.
59701
59702 2008-04-20  Bruno Haible  <bruno@clisp.org>
59703
59704         * lib/isapipe.c: Port to native Windows platforms.
59705
59706 2008-04-20  Bruno Haible  <bruno@clisp.org>
59707
59708         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59709
59710 2008-04-21  Eric Blake  <ebb9@byu.net>
59711
59712         Work around preprocessors that don't handle UINTMAX_MAX.
59713         * lib/memchr2.c (memchr2): Avoid embedded #if.
59714         Reported by Alain Guibert, fix suggested by Bruno Haible.
59715
59716 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59717
59718         * doc/posix-functions/strftime.texi (strftime): Explain better
59719         Windows incompatibility.  Suggested by Micah Cowan
59720         <micah@cowan.name>.
59721
59722 2008-04-20  Bruno Haible  <bruno@clisp.org>
59723
59724         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59725         unistr/u8-mblen.
59726
59727 2008-04-20  Bruno Haible  <bruno@clisp.org>
59728
59729         Fix test failure on platforms with non-GNU iconv.
59730         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59731         (U_TO_U8): Use it, rather than u16_to_u8.
59732         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59733         units at the end of the input string.
59734         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59735
59736 2008-04-20  Bruno Haible  <bruno@clisp.org>
59737
59738         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59739         when the resulting length is 0.
59740         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59741
59742 2008-04-20  Bruno Haible  <bruno@clisp.org>
59743
59744         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59745         works.
59746         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59747
59748 2008-04-20  Bruno Haible  <bruno@clisp.org>
59749
59750         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59751         * modules/tsearch-tests (configure.ac): Test for initstate function.
59752
59753 2008-04-20  Bruno Haible  <bruno@clisp.org>
59754
59755         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59756         for nlink_t if missing.
59757         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59758
59759 2008-04-19  Bruno Haible  <bruno@clisp.org>
59760
59761         Work around snprintf bug on Linux libc5.
59762         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59763         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59764         gl_SNPRINTF_SIZE1.
59765         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59766         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59767         that test failed.
59768         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59769         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59770         * modules/snprintf (Files): Add m4/printf.m4.
59771         * modules/vsnprintf (Files): Likewise.
59772         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59773         * doc/posix-functions/vsnprintf.texi: Likewise.
59774
59775 2008-04-19  Bruno Haible  <bruno@clisp.org>
59776
59777         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59778         from 0.0058 to less than 10^-7.
59779
59780 2008-04-19  Bruno Haible  <bruno@clisp.org>
59781
59782         Fix rounding when a precision is given.
59783         * lib/vasnprintf.c (is_borderline): New function.
59784         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59785         9...9x.
59786         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59787         %e, %g.
59788         * tests/test-vasprintf-posix.c (test_function): Likewise.
59789         * tests/test-snprintf-posix.h (test_function): Likewise.
59790         * tests/test-sprintf-posix.h (test_function): Likewise.
59791         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59792         * tests/test-printf-posix.h (test_function): Likewise.
59793         * tests/test-printf-posix.output: Update.
59794         Reported by John Darrington <john@darrington.wattle.id.au> via
59795         Ben Pfaff <blp@cs.stanford.edu>.
59796
59797 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59798
59799         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59800         Suggested by Bruno Haible <bruno@clisp.org>.
59801
59802 2008-04-17  Bruno Haible  <bruno@clisp.org>
59803
59804         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59805         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59806         implementation.
59807         Patch by Bruce Merry <bmerry@gmail.com>.
59808
59809 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59810
59811         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59812         doesn't work under Windows.
59813
59814 2008-04-16  Bruno Haible  <bruno@clisp.org>
59815
59816         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59817         New macros.
59818         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59819         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59820         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59821         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59822         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59823         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59824         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59825         macros.
59826         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59827         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59828         Northern Sotho, Uighur.
59829
59830 2008-04-16  Bruno Haible  <bruno@clisp.org>
59831
59832         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59833         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59834         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59835         Reported by Daniel Bergström <daniel@octocode.com>.
59836
59837 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59838             Bruno Haible  <bruno@clisp.org>
59839
59840         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59841         function.
59842         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59843         New functions, mostly extracted from gl_locale_name_default.
59844         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59845
59846 2008-04-16  Eric Blake  <ebb9@byu.net>
59847
59848         Adjust strtod detection to catch glibc 2.7 bug.
59849         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59850         Reported by John Gatewood Ham.
59851
59852 2008-04-16  Bruno Haible  <bruno@clisp.org>
59853
59854         Add tentative support for Linux libc5.
59855         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59856         * lib/fpurge.c (fpurge): Likewise.
59857         * lib/freadable.c (freadable): Likewise.
59858         * lib/freadahead.c (freadahead): Likewise.
59859         * lib/freading.c (freading): Likewise.
59860         * lib/freadptr.c (freadptr): Likewise.
59861         * lib/freadseek.c (freadptrinc): Likewise.
59862         * lib/fseeko.c (rpl_fseeko): Likewise.
59863         * lib/fseterr.c (fseterr): Likewise.
59864         * lib/fwritable.c (fwritable): Likewise.
59865         * lib/fwriting.c (fwriting): Likewise.
59866         Reported by Alain Guibert <alguibert+bts@free.fr>.
59867
59868 2008-04-15  Bruno Haible  <bruno@clisp.org>
59869
59870         * modules/mathl (configure.ac): Define module indicator.
59871
59872 2008-04-15  Bruno Haible  <bruno@clisp.org>
59873
59874         * lib/logl.c (logl): Remove unused variables.
59875
59876 2008-04-15  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59879         fails.
59880
59881 2008-04-15  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/trim.c (trim2): Fix argument of isspace() macro.
59884
59885 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59886
59887         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59888         to 0.
59889         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59890
59891 2008-04-14  Bruno Haible  <bruno@clisp.org>
59892
59893         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59894         AC_LANG_PROGRAM argument.
59895         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59896         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59897         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59898         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59899         * m4/math_h.m4 (gl_MATH_H): Likewise.
59900         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59901         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59902         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59903         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59904         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59905         * m4/regex.m4 (gl_REGEX): Likewise.
59906         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59907         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59909         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59910         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59911         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59912         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59913         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59914
59915 2008-04-14  Jim Meyering  <meyering@redhat.com>
59916
59917         test-strtod: fix typos: s/abs/fabs/
59918         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59919
59920 2008-04-13  Bruno Haible  <bruno@clisp.org>
59921
59922         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59923         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59924         module is also used and while not building the reloc-wrapper.
59925
59926 2008-04-13  Bruno Haible  <bruno@clisp.org>
59927
59928         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59929
59930 2008-04-13  Bruno Haible  <bruno@clisp.org>
59931
59932         Fix AIX compilation failure introduced on 2008-04-02.
59933         * tests/test-frexp.c (exp): Undefine before redefining.
59934         * tests/test-frexpl.c (exp): Likewise.
59935
59936 2008-04-13  Bruno Haible  <bruno@clisp.org>
59937
59938         Work around a HP-UX stdio bug.
59939         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59940         * tests/test-ftello.c (main): Likewise.
59941         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59942         * doc/posix-functions/ftello.texi: Likewise.
59943
59944 2008-04-13  Bruno Haible  <bruno@clisp.org>
59945
59946         Make test-signbit pass on HP-UX/hppa.
59947         * tests/test-signbit.c (minus_zerol): New variable.
59948         (test_signbitl): Use it.
59949
59950 2008-04-13  Bruno Haible  <bruno@clisp.org>
59951
59952         Make truncl work on OSF/1 4.0.
59953         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59954         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59955         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59957         HAVE_DECL_TRUNCL.
59958         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59959         HAVE_DECL_TRUNCL.
59960         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59961
59962 2008-04-13  Bruno Haible  <bruno@clisp.org>
59963
59964         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59965
59966 2008-04-13  Bruno Haible  <bruno@clisp.org>
59967
59968         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59969         expression, so as to avoid HP-UX 11 cc compiler bug.
59970
59971 2008-04-13  Bruno Haible  <bruno@clisp.org>
59972
59973         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59974
59975 2008-04-13  Bruno Haible  <bruno@clisp.org>
59976
59977         * lib/git-merge-changelog.c: Remove empty declaration outside of
59978         functions.
59979
59980 2008-04-13  Bruno Haible  <bruno@clisp.org>
59981
59982         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59983
59984 2008-04-13  Bruno Haible  <bruno@clisp.org>
59985
59986         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59987         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59988         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59989         also if it exists but lacks definitions of the SHUT_* macros.
59990         * modules/sys_socket (Description): Update.
59991         Reported by Elbert Pol <e.pol@chello.nl>.
59992
59993 2008-04-13  Bruno Haible  <bruno@clisp.org>
59994
59995         * lib/localcharset.c (OS2): Don't redefine if already defined.
59996         Reported by Elbert Pol <e.pol@chello.nl>.
59997
59998 2008-04-13  Bruno Haible  <bruno@clisp.org>
59999
60000         * lib/binary-io.h [__EMX__]: Include <io.h>.
60001         Reported by Elbert Pol <e.pol@chello.nl>.
60002
60003 2008-04-12  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/fpucw.h: Enable the definitions also for x86_64.
60006         Needed for NetBSD/x86_64.
60007         Reported by Thomas Klausner <tk@giga.or.at>.
60008
60009 2008-04-12  Bruno Haible  <bruno@clisp.org>
60010
60011         * tests/test-strtod.c: Include isnand.h.
60012         (main): Use isnand instead of isnan.
60013         Reported by Jim Meyering.
60014
60015 2008-04-12  Bruno Haible  <bruno@clisp.org>
60016
60017         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60018         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60019
60020 2008-04-12  Jim Meyering  <meyering@redhat.com>
60021
60022         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60023
60024 2008-04-12  Bruno Haible  <bruno@clisp.org>
60025
60026         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60027         Reported by Elbert Pol <e.pol@chello.nl>.
60028
60029 2008-04-12  Eric Blake  <ebb9@byu.net>
60030
60031         Work around Solaris 10 math.h bug.
60032         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60033         (gl_MATH_H_DEFAULTS): Set up default.
60034         * modules/math (Makefile.am): Replace new indicators.
60035         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60036         * tests/test-math.c (main): Test this.
60037         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60038         * doc/posix-headers/math.texi (math.h): Mention bug.
60039         Reported by Nelson H. F. Beebe and Jim Meyering.
60040
60041 2008-04-11  Bruno Haible  <bruno@clisp.org>
60042
60043         Adapt to future versions of Apple GCC.
60044         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60045         Reported by Peter O'Gorman <peter@pogma.com>.
60046
60047 2008-04-11  Bruno Haible  <bruno@clisp.org>
60048
60049         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60050
60051 2008-04-11  Bruno Haible  <bruno@clisp.org>
60052
60053         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60054
60055         * modules/getaddrinfo-tests (Makefile.am): Define
60056         test_getaddrinfo_LDADD.
60057
60058 2008-04-11  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60061         (init): Fix syntax error.
60062         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60063         is declared.
60064
60065 2008-04-11  Bruno Haible  <bruno@clisp.org>
60066
60067         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60068         * modules/glob (Depends-on): Add stdbool.
60069
60070 2008-04-11  Bruno Haible  <bruno@clisp.org>
60071
60072         * lib/trim.c: Include <string.h>.
60073
60074 2008-04-11  Eric Blake  <ebb9@byu.net>
60075
60076         Avoid compile failure on OS/2.
60077         * lib/regex_internal.h (internal_function): Disable optimization
60078         on OS/2 (__EMX__), where it caused compiler error.
60079         Reported by Elbert Pol.
60080
60081 2008-04-11  Bruno Haible  <bruno@clisp.org>
60082
60083         Flush the standard error stream before aborting. Needed on mingw.
60084         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60085         * tests/test-array_list.c (ASSERT): Likewise.
60086         * tests/test-array_oset.c (ASSERT): Likewise.
60087         * tests/test-avltree_list.c (ASSERT): Likewise.
60088         * tests/test-avltree_oset.c (ASSERT): Likewise.
60089         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60090         * tests/test-binary-io.c (ASSERT): Likewise.
60091         * tests/test-byteswap.c (ASSERT): Likewise.
60092         * tests/test-c-ctype.c (ASSERT): Likewise.
60093         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60094         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60095         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60096         * tests/test-c-strstr.c (ASSERT): Likewise.
60097         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60098         * tests/test-canonicalize.c (ASSERT): Likewise.
60099         * tests/test-carray_list.c (ASSERT): Likewise.
60100         * tests/test-ceilf1.c (ASSERT): Likewise.
60101         * tests/test-ceilf2.c (ASSERT): Likewise.
60102         * tests/test-ceill.c (ASSERT): Likewise.
60103         * tests/test-count-one-bits.c (ASSERT): Likewise.
60104         * tests/test-fbufmode.c (ASSERT): Likewise.
60105         * tests/test-fflush2.c (ASSERT): Likewise.
60106         * tests/test-floorf1.c (ASSERT): Likewise.
60107         * tests/test-floorf2.c (ASSERT): Likewise.
60108         * tests/test-floorl.c (ASSERT): Likewise.
60109         * tests/test-fopen.c (ASSERT): Likewise.
60110         * tests/test-fpending.c (ASSERT): Likewise.
60111         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60112         * tests/test-fpurge.c (ASSERT): Likewise.
60113         * tests/test-freadable.c (ASSERT): Likewise.
60114         * tests/test-freadahead.c (ASSERT): Likewise.
60115         * tests/test-freading.c (ASSERT): Likewise.
60116         * tests/test-freadptr.c (ASSERT): Likewise.
60117         * tests/test-freadptr2.c (ASSERT): Likewise.
60118         * tests/test-freadseek.c (ASSERT): Likewise.
60119         * tests/test-freopen.c (ASSERT): Likewise.
60120         * tests/test-frexp.c (ASSERT): Likewise.
60121         * tests/test-frexpl.c (ASSERT): Likewise.
60122         * tests/test-fseek.c (ASSERT): Likewise.
60123         * tests/test-fseeko.c (ASSERT): Likewise.
60124         * tests/test-fstrcmp.c (ASSERT): Likewise.
60125         * tests/test-ftell.c (ASSERT): Likewise.
60126         * tests/test-ftello.c (ASSERT): Likewise.
60127         * tests/test-func.c (ASSERT): Likewise.
60128         * tests/test-fwritable.c (ASSERT): Likewise.
60129         * tests/test-fwriting.c (ASSERT): Likewise.
60130         * tests/test-getdelim.c (ASSERT): Likewise.
60131         * tests/test-getline.c (ASSERT): Likewise.
60132         * tests/test-i-ring.c (ASSERT): Likewise.
60133         * tests/test-iconv-utf.c (ASSERT): Likewise.
60134         * tests/test-iconv.c (ASSERT): Likewise.
60135         * tests/test-isfinite.c (ASSERT): Likewise.
60136         * tests/test-isnand.c (ASSERT): Likewise.
60137         * tests/test-isnanf.c (ASSERT): Likewise.
60138         * tests/test-isnanl.h (ASSERT): Likewise.
60139         * tests/test-ldexpl.c (ASSERT): Likewise.
60140         * tests/test-linked_list.c (ASSERT): Likewise.
60141         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60142         * tests/test-localename.c (ASSERT): Likewise.
60143         * tests/test-lseek.c (ASSERT): Likewise.
60144         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60145         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60146         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60147         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60148         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60149         * tests/test-mbschr.c (ASSERT): Likewise.
60150         * tests/test-mbscspn.c (ASSERT): Likewise.
60151         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60152         * tests/test-mbspbrk.c (ASSERT): Likewise.
60153         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60154         * tests/test-mbsrchr.c (ASSERT): Likewise.
60155         * tests/test-mbsspn.c (ASSERT): Likewise.
60156         * tests/test-mbsstr1.c (ASSERT): Likewise.
60157         * tests/test-mbsstr2.c (ASSERT): Likewise.
60158         * tests/test-mbsstr3.c (ASSERT): Likewise.
60159         * tests/test-memchr2.c (ASSERT): Likewise.
60160         * tests/test-memmem.c (ASSERT): Likewise.
60161         * tests/test-open.c (ASSERT): Likewise.
60162         * tests/test-printf-frexp.c (ASSERT): Likewise.
60163         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60164         * tests/test-printf-posix.c (ASSERT): Likewise.
60165         * tests/test-quotearg.c (ASSERT): Likewise.
60166         * tests/test-rbtree_list.c (ASSERT): Likewise.
60167         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60168         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60169         * tests/test-round1.c (ASSERT): Likewise.
60170         * tests/test-roundf1.c (ASSERT): Likewise.
60171         * tests/test-roundl.c (ASSERT): Likewise.
60172         * tests/test-signbit.c (ASSERT): Likewise.
60173         * tests/test-sleep.c (ASSERT): Likewise.
60174         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60175         * tests/test-snprintf.c (ASSERT): Likewise.
60176         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60177         * tests/test-stat-time.c (ASSERT): Likewise.
60178         * tests/test-strcasestr.c (ASSERT): Likewise.
60179         * tests/test-strerror.c (ASSERT): Likewise.
60180         * tests/test-striconv.c (ASSERT): Likewise.
60181         * tests/test-striconveh.c (ASSERT): Likewise.
60182         * tests/test-striconveha.c (ASSERT): Likewise.
60183         * tests/test-strsignal.c (ASSERT): Likewise.
60184         * tests/test-strstr.c (ASSERT): Likewise.
60185         * tests/test-strtod.c (ASSERT): Likewise.
60186         * tests/test-trunc1.c (ASSERT): Likewise.
60187         * tests/test-trunc2.c (ASSERT): Likewise.
60188         * tests/test-truncf1.c (ASSERT): Likewise.
60189         * tests/test-truncf2.c (ASSERT): Likewise.
60190         * tests/test-truncl.c (ASSERT): Likewise.
60191         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60192         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60193         * tests/test-vasnprintf.c (ASSERT): Likewise.
60194         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60195         * tests/test-vasprintf.c (ASSERT): Likewise.
60196         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60197         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60198         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60199         * tests/test-vsnprintf.c (ASSERT): Likewise.
60200         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60201         * tests/test-wcwidth.c (ASSERT): Likewise.
60202         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60203         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60204         * tests/test-xvasprintf.c (ASSERT): Likewise.
60205         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60206         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60207         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60208         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60209         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60210         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60211         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60212         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60213         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60214         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60215         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60216         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60217         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60218         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60219         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60220         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60221         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60222         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60223         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60224         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60225         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60226         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60227         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60228         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60229         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60230         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60231         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60232         * tests/unictype/test-combining.c (ASSERT): Likewise.
60233         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60234         * tests/unictype/test-digit.c (ASSERT): Likewise.
60235         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60236         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60237         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60238         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60239         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60240         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60241         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60242         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60243         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60244         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60245         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60246         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60247         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60248         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60249         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60250         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60251         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60252         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60253         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60254         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60255         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60256         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60257         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60258         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60259         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60260         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60261         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60262         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60263         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60264         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60265         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60266         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60267         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60268         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60269         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60270         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60271         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60272         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60273         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60274         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60275         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60276         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60277         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60278         Reported by Eric Blake.
60279
60280 2008-04-11  Bruno Haible  <bruno@clisp.org>
60281
60282         * lib/wchar.in.h: Tweak comment.
60283
60284 2008-04-11  Bruno Haible  <bruno@clisp.org>
60285
60286         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60287         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60288         gl_COMMON.
60289         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60290
60291 2008-04-11  Bruno Haible  <bruno@clisp.org>
60292
60293         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60294
60295 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60296
60297         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60298         of attempting to use non-existing /dev/*random.  Based on patch
60299         from Adam Strzelecki <ono@java.pl> in
60300         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60301
60302 2008-04-08  Bruno Haible  <bruno@clisp.org>
60303
60304         Add tentative support for emx+gcc.
60305         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60306         * lib/fpurge.c (fpurge): Likewise.
60307         * lib/freadable.c (freadable): Likewise.
60308         * lib/freadahead.c (freadahead): Likewise.
60309         * lib/freading.c (freading): Likewise.
60310         * lib/freadptr.c (freadptr): Likewise.
60311         * lib/freadseek.c (freadptrinc): Likewise.
60312         * lib/fseeko.c (rpl_fseeko): Likewise.
60313         * lib/fseterr.c (fseterr): Likewise.
60314         * lib/fwritable.c (fwritable): Likewise.
60315         * lib/fwriting.c (fwriting): Likewise.
60316         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60317
60318 2008-04-09  Eric Blake  <ebb9@byu.net>
60319
60320         Avoid some autoconf warnings.
60321         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60322         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60323         * m4/afs.m4 (gl_AFS): Likewise.
60324         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60325         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60326         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60327         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60328         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60329         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60330         (AC_CHECK_DECLS_ONCE): Likewise.
60331         Rename file...
60332         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60333         gnulib-tool requires autoconf 2.59 or better.
60334         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60335
60336 2008-04-08  Eric Blake  <ebb9@byu.net>
60337
60338         Use 'git describe --match' if present (added in git 1.5.5).
60339         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60340         if possible.
60341
60342 2008-04-08  Bruno Haible  <bruno@clisp.org>
60343
60344         Add tentative support for OpenServer.
60345         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60346         _ptr, _cnt.
60347         * lib/fpurge.c (fpurge): Likewise.
60348         * lib/freadable.c (freadable): Likewise.
60349         * lib/freadahead.c (freadahead): Likewise.
60350         * lib/freading.c (freading): Likewise.
60351         * lib/freadptr.c (freadptr): Likewise.
60352         * lib/freadseek.c (freadptrinc): Likewise.
60353         * lib/fseeko.c (rpl_fseeko): Likewise.
60354         * lib/fseterr.c (fseterr): Likewise.
60355         * lib/fwritable.c (fwritable): Likewise.
60356         * lib/fwriting.c (fwriting): Likewise.
60357         Reported by Roger Cornelius <rac@tenzing.org> and
60358         Brian K. White <brian@aljex.com>.
60359
60360 2008-04-06  Jim Meyering  <meyering@redhat.com>
60361
60362         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60363
60364 2008-04-06  Bruno Haible  <bruno@clisp.org>
60365
60366         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60367         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60368         * tests/test-printf-posix.sh: Likewise.
60369         * tests/test-vfprintf-posix.sh: Likewise.
60370         * tests/test-vprintf-posix.sh: Likewise.
60371         * tests/test-xprintf-posix.sh: Likewise.
60372
60373 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60374
60375         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60376         hide error from 'ls', needed on OS/2.
60377         Report by Elbert Pol <elbert.pol@gmail.com>.
60378
60379 2008-04-04  Eric Blake  <ebb9@byu.net>
60380
60381         Make test-fseeko.c failures meaningful.
60382         * tests/test-fseeko.c: Print line number on failure.
60383         * tests/test-fseek.c: Likewise.
60384         Reported by Nelson H. F. Beebe.
60385
60386         Improve strtod bug detection check.
60387         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60388         required for Solaris 10.
60389         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60390
60391 2008-04-04  Bruno Haible  <bruno@clisp.org>
60392
60393         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60394         by m4/setenv.m4.
60395
60396 2008-04-03  Eric Blake  <ebb9@byu.net>
60397
60398         Ensure sane .version contents.
60399         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60400         version string.
60401         * build-aux/git-version-gen: Improve documentation.
60402
60403         Make GNU make output nicer.
60404         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60405         MAKECMDGOALS to enforce message for all command line targets.  Set
60406         srcdir for use in maint.mk.
60407
60408         Another maintainer tweak.
60409         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60410         a target that regenerates version.
60411
60412 2008-04-03  Jim Meyering  <meyering@redhat.com>
60413
60414         vc-list-files: don't cause coreutils "make po-check" failure
60415         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60416
60417 2008-04-03  Eric Blake  <ebb9@byu.net>
60418
60419         Allow VPATH usage of vc-list-files.
60420         * build-aux/vc-list-files (scriptversion): Add timestamp.
60421         (options): Add --help, --version, -C.
60422         (CVS): Support installed cvsu.
60423
60424 2008-04-02  Bruno Haible  <bruno@clisp.org>
60425
60426         Avoid some "statement with no effect" warnings from gcc.
60427         * tests/test-wctype.c (main): Explicitly ignore unused values.
60428         Reported by Jim Meyering.
60429
60430 2008-04-02  Jim Meyering  <meyering@redhat.com>
60431
60432         Avoid some warnings from "gcc -Wshadow".
60433         * tests/test-frexp.c (exp): Define to a different identifier.
60434         * tests/test-frexpl.c (exp): Likewise.
60435
60436 2008-04-03  Jim Meyering  <meyering@redhat.com>
60437
60438         bootstrap: remove dangling *.[ch] symlinks from lib
60439         * build-aux/bootstrap [dangling symlink removal]: Move find's
60440         -depth option to precede all others, to avoid a warning.
60441         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60442
60443 2008-04-02  Bruno Haible  <bruno@clisp.org>
60444
60445         Avoid some warnings from "gcc -Wshadow".
60446         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60447         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60448         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60449         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60450         Reported by Jim Meyering.
60451
60452 2008-04-01  Bruno Haible  <bruno@clisp.org>
60453
60454         Fix test to work on IRIX 6.5 with cc.
60455         * tests/test-math.c (numeric_equal): New function.
60456         (main): Use it.
60457
60458 2008-04-01  Bruno Haible  <bruno@clisp.org>
60459
60460         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60461
60462 2008-04-01  Bruno Haible  <bruno@clisp.org>
60463
60464         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60465         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60466         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60467         (Depends-on): Remove math.
60468
60469         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60470         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60471         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60472         (Depends-on): Remove math.
60473
60474         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60475         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60476         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60477         (Depends-on): Remove math.
60478         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60479         (Depends-on): Remove math.
60480
60481         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60482         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60483         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60484         (Depends-on): Remove math.
60485         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60486         (Depends-on): Remove math.
60487
60488         * tests/test-round1.c: Include nan.h.
60489         (main): Use NaNd instead of NAN.
60490         * modules/round-tests (Files): Add tests/nan.h.
60491
60492         * tests/test-trunc1.c: Include nan.h.
60493         (main): Use NaNd instead of NAN.
60494         * modules/trunc-tests (Files): Add tests/nan.h.
60495
60496         * tests/test-roundf1.c: Include nan.h.
60497         (main): Use NaNf instead of NAN.
60498         * modules/roundf-tests (Files): Add tests/nan.h.
60499
60500         * tests/test-truncf1.c: Include nan.h.
60501         (main): Use NaNf instead of NAN.
60502         * modules/truncf-tests (Files): Add tests/nan.h.
60503
60504         * tests/test-ceilf1.c: Include nan.h.
60505         (main): Use NaNf instead of NAN.
60506         * modules/ceilf-tests (Files): Add tests/nan.h.
60507
60508         * tests/test-floorf1.c: Include nan.h.
60509         (main): Use NaNf instead of NAN.
60510         * modules/floorf-tests (Files): Add tests/nan.h.
60511
60512         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60513         (main): Use NaNf instead of NAN.
60514         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60515
60516         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60517         (main): Use NaNd instead of NAN.
60518         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60519
60520         * tests/test-frexp.c: Include nan.h.
60521         (main): Use NaNd instead of NAN.
60522         * modules/frexp-tests (Files): Add tests/nan.h.
60523
60524         * lib/isnan.c: Don't include <math.h>.
60525         (FUNC): Don't use NAN macro.
60526         * modules/isnand-nolibm (Depends-on): Remove math.
60527         * modules/isnanf-nolibm (Depends-on): Remove math.
60528         * modules/isnanl (Depends-on): Remove math.
60529         * modules/isnanl-nolibm (Depends-on): Remove math.
60530
60531         * tests/nan.h: New file.
60532
60533 2008-04-01  Eric Blake  <ebb9@byu.net>
60534
60535         Fix typos.
60536         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60537         values to be the right type.
60538
60539         For now, cater to gnulib strtod inaccuracies.
60540         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60541         fractional results.  While not as nice from a QoI perspective, it
60542         is a quicker patch than correctly implementing decimal to binary
60543         rounding.
60544
60545 2008-03-31  Eric Blake  <ebb9@byu.net>
60546
60547         Guarantee a definition of NAN.
60548         * lib/math.in.h (NAN): Define if missing.
60549         * tests/test-math.c (main): Test it.
60550         * doc/posix-headers/math.texi (math.h): Document this.
60551         * lib/isnan.c (rpl_isnand): Use it.
60552         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60553         * tests/test-floorf1.c (NaN): Likewise.
60554         * tests/test-frexp.c (NaN): Likewise.
60555         * tests/test-isnand.c (NaN): Likewise.
60556         * tests/test-isnanf.c (NaN): Likewise.
60557         * tests/test-round1.c (NaN): Likewise.
60558         * tests/test-roundf1.c (NaN): Likewise.
60559         * tests/test-snprintf-posix.h (NaN): Likewise.
60560         * tests/test-sprintf-posix.h (NaN): Likewise.
60561         * tests/test-trunc1.c (NaN): Likewise.
60562         * tests/test-truncf1.c (NaN): Likewise.
60563         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60564         * tests/test-vasprintf-posix.c (NaN): Likewise.
60565         * modules/isnand-nolibm (Depends-on): Add math.
60566         * modules/isnanf-nolibm (Depends-on): Likewise.
60567         * modules/isnanl (Depends-on): Likewise.
60568         * modules/isnanl-nolibm (Depends-on): Likewise.
60569         * modules/snprintf-posix-tests (Depends-on): Likewise.
60570         * modules/sprintf-posix-tests (Depends-on): Likewise.
60571         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60572         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60573         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60574         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60575
60576 2008-03-31  Bruno Haible  <bruno@clisp.org>
60577
60578         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60579         * doc/posix-functions/strtod.texi: Likewise.
60580
60581 2008-03-31  Bruno Haible  <bruno@clisp.org>
60582
60583         * tests/test-strtod.c (main): Don't use C99 syntax.
60584
60585 2008-03-31  Bruno Haible  <bruno@clisp.org>
60586
60587         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60588         Reported by Eric Blake.
60589
60590 2008-03-31  Jim Meyering  <meyering@redhat.com>
60591
60592         Don't compare actual signbit return values.
60593         * tests/test-strtod.c (main): Rather, compare only their
60594         zero/non-zero nature.
60595
60596 2008-03-31  Eric Blake  <ebb9@byu.net>
60597
60598         More strtod documentation.
60599         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60600         failures as distinct bugs.
60601
60602 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60603
60604         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60605         Problem reported by Erik Benada in
60606         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60607
60608 2008-03-30  Bruno Haible  <bruno@clisp.org>
60609
60610         * tests/test-strtod.c: Add comments about which assertion fails on which
60611         platform.
60612         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60613
60614 2008-03-30  Eric Blake  <ebb9@byu.net>
60615
60616         Test signbit behavior on zeros.
60617         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60618         (test_signbitd, test_signbitl): Likewise.
60619
60620         More strtod touchups.
60621         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60622         sign of negative underflow, for now.  Use .5, not .1.
60623         * doc/posix-functions/strtod.texi (strtod): Mention these
60624         limitations.
60625         Reported by Jim Meyering.
60626
60627 2008-03-30  Bruno Haible  <bruno@clisp.org>
60628
60629         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60630         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60631
60632 2008-03-30  Bruno Haible  <bruno@clisp.org>
60633
60634         Avoid failure when attempting to return empty iconv results on some
60635         platforms.
60636         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60637         allocation, don't report ENOMEM when the resulting string is empty.
60638
60639 2008-03-30  Bruno Haible  <bruno@clisp.org>
60640
60641         Fix buffer overrun.
60642         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60643         Don't consider the width for tmp_length. Check count against tmp_length
60644         before doing the padding. Ensure enough allocation during padding.
60645
60646 2008-03-30  Eric Blake  <ebb9@byu.net>
60647
60648         strtod touchups.
60649         * lib/strtod.c (strtod): Avoid compiler warnings.
60650         Reported by Jim Meyering.
60651
60652 2008-03-30  Bruno Haible  <bruno@clisp.org>
60653
60654         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60655         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60656         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60657         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60658         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60659         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60660         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60661         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60662
60663         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60664         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60665         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60666         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60667         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60668         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60669         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60670         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60671
60672         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60673         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60674         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60675         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60676         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60677         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60678         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60679         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60680
60681         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60682         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60683
60684         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60685         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60686
60687         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60688         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60689
60690         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60691         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60692         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60693
60694         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60695         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60696         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60697
60698         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60699         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60700         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60701
60702         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60703         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60704         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60705
60706         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60707         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60709         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60710         (Depends-on): Add EOVERFLOW.
60711         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60712         (Depends-on): Add EOVERFLOW.
60713         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60714         (Depends-on): Add EOVERFLOW.
60715         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60716         (Depends-on): Add EOVERFLOW.
60717         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60718         (Depends-on): Add EOVERFLOW.
60719         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60720         (Depends-on): Add EOVERFLOW.
60721         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60722         (Depends-on): Add EOVERFLOW.
60723         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60724         (Depends-on): Add EOVERFLOW.
60725
60726         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60727         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60728         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60729
60730         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60731         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60732         * modules/snprintf (Depends-on): Add EOVERFLOW.
60733
60734         * lib/poll.c (EOVERFLOW): Remove fallback.
60735         * modules/poll (Depends-on): Add EOVERFLOW.
60736
60737         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60738         * modules/getugroups (Depends-on): Add EOVERFLOW.
60739
60740         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60741         * modules/getdelim (Depends-on): Add EOVERFLOW.
60742
60743         * lib/ftell.c (EOVERFLOW): Remove fallback.
60744         * modules/ftell (Depends-on): Add EOVERFLOW.
60745
60746         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60747         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60748         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60749
60750         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60751
60752         * modules/EOVERFLOW-tests: New file.
60753         * tests/test-EOVERFLOW.c: New file.
60754
60755         * modules/EOVERFLOW: New file.
60756         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60757
60758 2008-03-30  Bruno Haible  <bruno@clisp.org>
60759
60760         Fix bug introduced on 2007-06-10.
60761         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60762         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60763
60764 2008-03-30  Bruno Haible  <bruno@clisp.org>
60765
60766         Improve freadseek's efficiency after ungetc.
60767         * lib/freadseek.c: Include freadahead.h.
60768         (freadptrinc): New function, extracted from freadseek.
60769         (freadseek): Use it in a loop. Use freadahead to determine the number
60770         of loop iterations.
60771         * modules/freadseek (Depends-on): Add freadahead.
60772         (configure.ac): Require AC_C_INLINE.
60773
60774 2008-03-30  Bruno Haible  <bruno@clisp.org>
60775
60776         * lib/freadseek.c (freadseek): Don't ignore the return value of
60777         freadptr.
60778
60779 2008-03-29  Eric Blake  <ebb9@byu.net>
60780
60781         Add hex float support.
60782         * modules/strtod (Depends-on): Add c-ctype.
60783         (Link): Mention POW_LIB.
60784         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60785         whitespace between 'e' and exponent.
60786         * tests/test-strtod.c (main): Enable hex float tests.
60787         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60788         now provides.
60789
60790         Document various strtod bugs, with some fixes.
60791         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60792         "-0x", "inf", "nan", and hex constants.
60793         * doc/posix-functions/atof.texi (atof): Likewise.
60794         * modules/stdlib (Makefile.am): Support strtod.
60795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60796         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60797         detect additional strtod bugs.
60798         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60799         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60800         bool where appropriate.  Parse 'inf' and 'nan'.
60801         * tests/test-strtod.c: New file.
60802         * modules/strtod (Depends-on): Add stdbool, stdlib.
60803         (configure.ac): Turn on module indicator.
60804         * modules/strtod-tests: New module.
60805
60806 2008-03-29  Eric Blake  <ebb9@byu.net>
60807
60808         Fix ftell on mingw.
60809         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60810         * modules/ftell-tests (Depends-on): Add binary-io.
60811         * modules/ftello-tests (Depends-on): Likewise.
60812         * tests/test-ftell.c (main): Enhance test to cover behavior after
60813         ungetc.  Enforce binary mode.
60814         * tests/test-ftello.c (main): Likewise.
60815
60816         Pass test-freadseek on cygwin.
60817         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60818         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60819         ungetc buffer.
60820
60821         * tests/test-fflush2.c (main): Fix typo.
60822
60823 2008-03-29  Bruno Haible  <bruno@clisp.org>
60824
60825         * tests/test-fflush2.c (main): Temporarily disable the contents of
60826         this test.
60827         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60828         Reported by Eric Blake.
60829
60830 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60831
60832         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60833         (GC_SHA224_DIGEST_SIZE): Add.
60834
60835         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60836         (gc_hash_digest_length): Likewise.
60837         (gc_hash_buffer): Likewise.
60838
60839 2008-03-25  Bruno Haible  <bruno@clisp.org>
60840
60841         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60842         detail which gettext release to use.
60843         Reported by Simon Josefsson.
60844
60845 2008-03-26  Jim Meyering  <meyering@redhat.com>
60846
60847         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60848         * modules/gnumakefile (clean-GNUmakefile): Also, use
60849         test ... && ... || : syntax rather than if-then ... fi.
60850
60851         gnumakefile: Don't double-quote-expand $(VPATH) value.
60852         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60853
60854 2008-03-24  Eric Blake  <ebb9@byu.net>
60855
60856         Alter GNUmakefile to install into top directory.
60857         * modules/maintainer-makefile: Split, and add dependency...
60858         * modules/gnumakefile: to this new module.
60859         * build-aux/GNUmakefile: Move...
60860         * top/GNUmakefile: ...here.
60861         * build-aux/maint.mk: Move...
60862         * top/maint.mk: ...here.
60863         * MODULES.html.sh (Support for maintaining...): Document new
60864         module.
60865
60866 2008-03-23  Bruno Haible  <bruno@clisp.org>
60867
60868         * gnulib-tool: New options --vc-files, --no-vc-files.
60869         (func_usage): Document them.
60870         (vc_files): New variable.
60871         (func_import): Consider vc_files.
60872         (func_create_testdir): Set vc_files to empty.
60873         Suggested by Jim Meyering and Karl Berry.
60874
60875 2008-03-23  Bruno Haible  <bruno@clisp.org>
60876
60877         Fix regex compilation error on HP-UX 11.
60878         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60879         * modules/regex (Files): Add m4/mbstate_t.m4.
60880         Reported by Ton Voon <ton.voon@altinity.com>.
60881
60882 2008-03-23  Bruno Haible  <bruno@clisp.org>
60883
60884         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60885
60886 2008-03-23  Eric Blake  <ebb9@byu.net>
60887             Bruno Haible  <bruno@clisp.org>
60888
60889         Install files from top/ in the destination directory.
60890         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60891         augmentation also for the files from top/.
60892         (func_import, func_create_testdir): Rewrite file names:
60893         top/filename -> filename.
60894
60895 2008-03-23  Bruno Haible  <bruno@clisp.org>
60896
60897         Tweak "gnulib --version" output.
60898         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60899
60900 2008-03-23  Bruno Haible  <bruno@clisp.org>
60901
60902         Tweak "gnulib --version" output.
60903         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60904         rather than contents of ChangeLog, when possible.
60905
60906 2008-03-21  Eric Blake  <ebb9@byu.net>
60907
60908         More --version tweaks.
60909         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60910         date of last ChangeLog entry.
60911
60912 2008-03-21  Jim Meyering  <meyering@redhat.com>
60913
60914         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60915
60916 2008-03-20  Eric Blake  <ebb9@byu.net>
60917
60918         VPATH fix.
60919         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60920
60921 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60922
60923         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60924         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60925
60926 2008-03-20  Eric Blake  <ebb9@byu.net>
60927
60928         Sync GNUmakefile with coreutils.
60929         * build-aux/GNUmakefile (have-Makefile): Rename...
60930         (_have-Makefile): ...to this, for namespace consideration.
60931         (GNUmakefile.cfg): Include, if present.
60932         (_autoreconf): Define a default.
60933         (_is-dist-target): New rule for rebuilds to pick up intra-release
60934         version.
60935         (maint-cfg.mk): Rename...
60936         (cfg.mk): ...to this.
60937
60938 2008-03-18  Jim Meyering  <meyering@redhat.com>
60939
60940         New script and module: mktempd
60941         * MODULES.html.sh (maint+release support): Add mktempd.
60942         * build-aux/mktempd: New file.
60943         * modules/mktempd: New file.
60944
60945 2008-03-15  Jim Meyering  <meyering@redhat.com>
60946
60947         Undo last change.
60948         * lib/sha1.c, lib/md5.c: 63 != ~63.
60949         Reported by Andreas Schwab.
60950
60951         sha1.c, md5.c: Hoist a redundant expression.
60952         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60953         "ctx->buflen" only once, before calling *_process_block.
60954         * lib/md5.c (md5_process_bytes): Likewise.
60955
60956 2008-03-14  Eric Blake  <ebb9@byu.net>
60957
60958         Bump copyright year in files generated by gnulib-tool.
60959         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60960         gnulib-tool, rather than hard-coding it.
60961
60962         Fix 'gnulib-tool --version' output to work with git.
60963         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60964         (startup): ...here.
60965         (func_version): Use it to invoke git-version-gen, rather than
60966         relying on CVS keyword expansion.  Modernize wording.
60967         (cvsdatestamp, last_checkin_date, version): Kill unused
60968         variables.
60969
60970 2008-03-12  Jim Meyering  <meyering@redhat.com>
60971
60972         Recognize optional cast of the argument to free.
60973         * build-aux/useless-if-before-free: Update regexps.
60974
60975         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60976
60977 2008-03-11  Bruno Haible  <bruno@clisp.org>
60978
60979         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60980         by a single package.
60981         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60982         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60983         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60984         Reported by Sam Steingold <sds@gnu.org>.
60985
60986 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60987
60988         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60989         repositories.
60990
60991 2008-03-11  Bruno Haible  <bruno@clisp.org>
60992
60993         Avoid conflicts between local macro definitions.
60994         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60995         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60996
60997 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60998             Bruno Haible  <bruno@clisp.org>
60999
61000         Make va_copy work with some version of xlc on AIX 5.1.
61001         * lib/stdarg.in.h: New file.
61002         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61003         On AIX, use a <stdarg.h> file substitute.
61004         * modules/stdarg (Files): Add lib/stdarg.in.h.
61005         (Depends-on): Add include_next.
61006         (Makefile.am): Build a stdarg.h substitute if requested.
61007         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61008
61009 2008-03-10  Bruno Haible  <bruno@clisp.org>
61010
61011         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61012         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61013         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61014
61015 2008-03-10  Bruno Haible  <bruno@clisp.org>
61016
61017         * modules/stdlib (Depends-on): Add include_next, remove
61018         absolute-header.
61019
61020 2008-03-09  Bruno Haible  <bruno@clisp.org>
61021
61022         * lib/freadahead.h (freadahead): Document more precisely.
61023         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61024         the sum of both buffer sizes.
61025         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61026         * NEWS: Document the change.
61027
61028 2008-03-09  Bruno Haible  <bruno@clisp.org>
61029
61030         Extend freadptr to return also the buffer size.
61031         * lib/freadptr.h (freadptr): Add sizep argument.
61032         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61033         (freadptr): Add sizep argument. Determine buffer size like freadahead
61034         does.
61035         * tests/test-freadptr.c: Don't include freadahead.h.
61036         (main): Adapt for new calling convention of freadptr.
61037         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61038         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61039         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61040         tests/test-freadptr2.sh.
61041         (Depends): Remove freadahead.
61042         (TESTS): Add test-freadptr2.sh.
61043         (check_PROGRAMS): Add test-freadptr2.
61044
61045 2008-03-09  Bruno Haible  <bruno@clisp.org>
61046
61047         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61048         Report and solution by Simon Josefsson.
61049
61050 2008-03-06  Bruno Haible  <bruno@clisp.org>
61051
61052         Make fflush after ungetc work on BSD platforms.
61053         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61054         * tests/test-fflush2.c: New file.
61055         * tests/test-fflush2.sh: New file.
61056         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61057         tests/test-fflush2.c.
61058         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61059         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61060
61061 2008-03-06  Eric Blake  <ebb9@byu.net>
61062
61063         Likewise for ftello.
61064         * modules/ftello (Dependencies): Add extensions.
61065         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61066
61067 2008-03-06  Bruno Haible  <bruno@clisp.org>
61068
61069         * modules/fseeko (Dependencies): Add extensions.
61070         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61071         Needed on glibc systems.
61072
61073 2008-03-06  Bruno Haible  <bruno@clisp.org>
61074
61075         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61076         email address.
61077         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61078
61079 2008-03-06  Bruno Haible  <bruno@clisp.org>
61080
61081         * users.txt: Add libgnupdf.
61082
61083 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61084
61085         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61086         (Header File Substitutes, Function Substitutes,
61087         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61088         (Build robot for gnulib): Fix typo.
61089
61090 2008-03-06  Bruno Haible  <bruno@clisp.org>
61091
61092         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61093         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61094
61095 2008-03-06  Bruno Haible  <bruno@clisp.org>
61096
61097         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61098         * doc/gnulib.texi: Include it.
61099
61100 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61101
61102         * modules/func (License): Change license to unlimited; there was
61103         no LGPL parts in the module anyway.
61104
61105 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61106
61107         * modules/__func__: Renamed to modules/func.
61108         * modules/__func__-tests: Renamed to modules/func-tests.
61109         * tests/test-__func__.c: Renamed to tests/test-func.c.
61110         * m4/__func__.m4: Renamed to m4/func.m4.
61111         * doc/gnulib.texi (__func__): Section renamed to func.
61112         Suggested by Eric Blake <ebb9@byu.net>.
61113
61114 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61115
61116         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61117         about __func__.  Make example self-contained.  Suggested by Eric
61118         Blake <ebb9@byu.net>.
61119
61120         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61121         Suggested by Eric Blake <ebb9@byu.net>.
61122
61123 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61124
61125         * modules/__func__: New file.
61126         * modules/__func__-tests: New file.
61127         * tests/test-__func__.c: New file.
61128         * m4/__func__.m4: New file.
61129         * doc/gnulib.texi (__func__): Document __func__ module.
61130
61131 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61132
61133         * modules/byteswap (License): Re-license as LGPLv2+.
61134
61135 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61136
61137         * doc/Makefile: Add pdf target.
61138
61139 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61140
61141         * modules/inline (License): Use 'unlimited', since there are only
61142         *.m4 files in this module.
61143
61144 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61145             Bruno Haible  <bruno@clisp.org>
61146
61147         Add support for HP C 7.1 on OpenVMS 8.3.
61148         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61149
61150 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61151
61152         Update VMS specifics.
61153         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61154
61155 2008-03-02  Jim Meyering  <meyering@redhat.com>
61156
61157         Remove the last dependency on the "free" module.
61158         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61159         Reported by Bob Proulx.
61160
61161         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61162
61163         Remove useless "if" tests before free.  Deprecate "free" module.
61164         * doc/posix-functions/free.texi: Mention that this
61165         module is no longer useful.
61166         * modules/free (Notice): Say this module is obsolete.
61167         * modules/readutmp (Depends-on): Remove free.
61168         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61169         * lib/putenv.c (putenv): Likewise.
61170         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61171         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61172         * tests/test-c-strcasestr.c (main): Likewise.
61173         * tests/test-c-strstr.c (main): Likewise.
61174         * tests/test-mbscasestr1.c (main): Likewise.
61175         * tests/test-mbscasestr2.c (main): Likewise.
61176         * tests/test-mbsstr1.c (main): Likewise.
61177         * tests/test-mbsstr2.c (main): Likewise.
61178         * tests/test-memmem.c (main): Likewise.
61179         * tests/test-strcasestr.c (main): Likewise.
61180         * tests/test-striconv.c (main): Likewise.
61181         * tests/test-striconveh.c (main): Likewise.
61182         * tests/test-striconveha.c (main): Likewise.
61183         * tests/test-strstr.c (main): Likewise.
61184
61185         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61186
61187         bootstrap: sync from coreutils again
61188         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61189
61190 2008-03-01  Jim Meyering  <meyering@redhat.com>
61191
61192         bootstrap: sync from coreutils
61193         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61194         also when the target doesn't exist.
61195
61196 2008-03-01  Eric Blake  <ebb9@byu.net>
61197
61198         Fix bugs in last patch.
61199         * lib/memchr2.c (memchr2): Fix typo.
61200         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61201         extension.
61202         Reported by Bruce Korb.
61203
61204         New module 'memchr2'.
61205         * modules/memchr2: New file.
61206         * modules/memchr2-tests: Likewise.
61207         * lib/memchr2.h: Likewise.
61208         * lib/memchr2.c: Likewise, based on memchr.c.
61209         * tests/test-memchr2.c: New test.
61210         * MODULES.html.sh (String handling): Add memchr2.
61211
61212 2008-02-29  Bruno Haible  <bruno@clisp.org>
61213
61214         * modules/freadseek-tests: New file.
61215         * tests/test-freadseek.sh: New file.
61216         * tests/test-freadseek.c: New file.
61217
61218         New module 'freadseek'.
61219         * modules/freadseek: New file.
61220         * lib/freadseek.h: New file.
61221         * lib/freadseek.c: New file.
61222         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61223
61224 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61225
61226         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61227         wydawca.
61228
61229         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61230         program_invocation_name and program_invocation_short_name are
61231         present.
61232
61233 2008-02-28  Bruno Haible  <bruno@clisp.org>
61234
61235         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61236         * tests/test-freadptr.sh: Also test non-seekable stdin.
61237
61238 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61239
61240         * build-aux/bootstrap (source_base, m4_base)
61241         (doc_base, tests_base): New variables.
61242         (gnulib_tool_options): Do not hardcode base directories, use
61243         the above variables instead.
61244
61245 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61246
61247         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61248
61249 2008-02-28  Bruno Haible  <bruno@clisp.org>
61250
61251         * modules/freadptr-tests: New file.
61252         * tests/test-freadptr.sh: New file.
61253         * tests/test-freadptr.c: New file.
61254
61255         New module 'freadptr'.
61256         * modules/freadptr: New file.
61257         * lib/freadptr.h: New file.
61258         * lib/freadptr.c: New file.
61259         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61260
61261 2008-02-26  Karl Berry  <karl@freefriends.org>
61262
61263         Sync from Libtool:
61264         * libltdl/argz.c (argz_add, argz_count): New functions.
61265         * libltdl/argz.in.h: Declare them.
61266         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61267
61268 2008-02-22  Bruno Haible  <bruno@clisp.org>
61269
61270         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61271         is a pointer type.  Needed for HP-UX 10.
61272         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61273         * doc/posix-functions/gmtime_r.texi: Likewise.
61274         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61275
61276 2008-02-24  Bruno Haible  <bruno@clisp.org>
61277
61278         * modules/environ-tests: New file.
61279         * tests/test-environ.c: New file.
61280
61281         New module 'environ'.
61282         * modules/environ: New file.
61283         * lib/unistd.in.h (environ): New declaration.
61284         * m4/environ.m4: New file.
61285         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61286         after use.
61287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61288         HAVE_DECL_ENVIRON.
61289         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61290         HAVE_DECL_ENVIRON.
61291         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61292         wrong claim that 'environ' is missing on some systems.
61293         * modules/execute (Depends-on): Add environ.
61294         * lib/execute.c (environ): Remove fallback declaration.
61295         * modules/pipe (Depends-on): Add environ.
61296         * lib/pipe.c (environ): Remove fallback declaration.
61297         * modules/setenv (Depends-on): Add environ.
61298         * lib/setenv.c (environ): Remove fallback declaration.
61299         * modules/unsetenv (Depends-on): Add environ.
61300         * lib/unsetenv.c (environ): Remove fallback declaration.
61301         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61302         m4/environ.m4.
61303         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61304         (gl_PREREQ_UNSETENV): Likewise.
61305
61306 2008-02-24  Bruno Haible  <bruno@clisp.org>
61307
61308         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61309
61310 2008-02-20  Bob Proulx  <bob@proulx.com>
61311
61312         Enable use of older two part flavor 'git describe'.
61313         * build-aux/git-version-gen: If using the older two part flavor of
61314         git version then recreate the third part now present in the
61315         newer three part flavor of git describe.
61316
61317 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61318
61319         * lib/fts.c (fts_build): Typo correction to comment.
61320
61321 2008-02-17  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61324         generating no-op conflicts.
61325
61326 2008-02-17  Bruno Haible  <bruno@clisp.org>
61327
61328         Speed up by 10%.
61329         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61330         result_entries, rather than an index-based loop.
61331
61332 2008-02-17  Bruno Haible  <bruno@clisp.org>
61333
61334         Speed up by 25%.
61335         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61336         'hashcode_cached'.
61337         (entry_create): New function.
61338         (entry_hashcode): Use the cached hashcode if possible.
61339         (read_changelog_file, try_split_merged_entry): Use entry_create.
61340
61341 2008-02-17  Bruno Haible  <bruno@clisp.org>
61342
61343         Speed up from O(n^2) to O(n) for long ChangeLog files.
61344         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61345         (read_changelog_file): Change implementation of entries_reversed list
61346         to rbtreehash.
61347         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61348
61349 2008-02-17  Bruno Haible  <bruno@clisp.org>
61350
61351         New option --split-merged-entry.
61352         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61353         (find_paragraph_end, try_split_merged_entry): New functions.
61354         (long_options): Add option --split-merged-entry.
61355         (usage): Document option --split-merged-entry.
61356         (main): Implement option --split-merged-entry.
61357         Reported by Eric Blake.
61358
61359 2008-02-17  Bruno Haible  <bruno@clisp.org>
61360
61361         * lib/git-merge-changelog.c: Include c-strstr.h.
61362         (main): Support the "git pull --rebase" situation.
61363         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61364         Reported by Eric Blake.
61365
61366 2008-02-16  Eric Blake  <ebb9@byu.net>
61367
61368         Avoid doubling \ in common case of "c-maybe" quoting style.
61369         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61370         eliding outer quotes.
61371         * lib/quotearg.h: Document this.
61372         * tests/test-quotearg.c (result_strings, inputs, results_g)
61373         (flag_results, locale_results): Test it by adding a new string to
61374         each test group.
61375         (compare_strings): Test new string.
61376
61377 2008-02-13  Eric Blake  <ebb9@byu.net>
61378
61379         Avoid trigraph quoting in default output.
61380         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61381         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61382         unless explicitly requested.
61383         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61384
61385 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61386
61387         Don't rely on signed integer overflowing to negative value.
61388         * lib/getugroups.c (getugroups): Include <limits.h>.
61389         Instead, compare against INT_MAX, and increment only if the test passes.
61390
61391 2008-02-13  Jim Meyering  <meyering@redhat.com>
61392         and Eric Blake  <ebb9@byu.net>
61393
61394         Avoid shadowing warning and compile errors on Linux.
61395         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61396         forwarding macros on Linux.
61397         (dcgettext): Define a stub, for Linux.
61398         (results_g, main): Avoid warnings.
61399
61400 2008-02-12  Eric Blake  <ebb9@byu.net>
61401
61402         Silence warning in last patch.
61403         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61404
61405         Quotearg part 4: add tests, fix c-maybe colon quoting.
61406         * lib/quotearg.h: Improve documentation.
61407         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61408         escapes when adding outer quotes.  When quoting trigraphs, use
61409         valid C notation.  When quoting NUL, omit extra characters if next
61410         character is not digit.  Alter prototype.
61411         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61412         callers.
61413         * modules/quotearg-tests: New module.
61414         * tests/test-quotearg.c: New test.
61415
61416 2008-02-07  Eric Blake  <ebb9@byu.net>
61417
61418         Quotearg part 3: add flag to control outer quote elision.
61419         * lib/quotearg.h (c_maybe_quoting_style): New style.
61420         (enum quoting_flags): Better documentation of flags.
61421         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61422         c-maybe style.
61423         (quotearg_buffer_restyled): Handle new flag to elide outer
61424         quotes.
61425
61426         Quotearg part 2: add flag that can control NUL elision.
61427         * lib/quotearg.h (set_quoting_flags): New prototype.
61428         * lib/quotearg.c (struct quoting_options): Add flag field.
61429         (set_quoting_flags): New function.
61430         (quotearg_buffer_restyled): Add flags parameter.
61431         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61432         (quotearg_n_options): Set the flag, since length cannot be
61433         returned.
61434         (quoting_options_from_style): Default flags correctly.
61435
61436         Quotearg part 1: more wrappers, restore quotearg_char state.
61437         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61438         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61439         (quotearg_colon_mem): New wrappers.
61440         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61441         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61442         functions.
61443         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61444         (quotearg_colon_mem): New functions.
61445
61446 2008-02-11  Bruno Haible  <bruno@clisp.org>
61447
61448         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61449         library in the current directory: it does not work with parallel make.
61450         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61451
61452 2008-02-11  Bruno Haible  <bruno@clisp.org>
61453
61454         * .gitattributes: New file.
61455
61456 2008-02-11  Jim Meyering  <meyering@redhat.com>
61457
61458         useless-if-before-free: Fix reversed exit values.
61459         * build-aux/useless-if-before-free: Use correct values
61460         for EXIT_MATCH and EXIT_NO_MATCH.
61461
61462         * build-aux/useless-if-before-free: Close stdout carefully.
61463
61464 2008-02-10  Bruno Haible  <bruno@clisp.org>
61465
61466         New module 'git-merge-changelog'.
61467         * modules/git-merge-changelog: New file.
61468         * lib/git-merge-changelog.c: New file.
61469
61470 2008-02-10  Jim Meyering  <meyering@redhat.com>
61471
61472         useless-if-before-free: New option: --list (-l).
61473
61474         useless-if-before-free: Don't exit immediately upon open failure.
61475         * build-aux/useless-if-before-free: Exit 2 for errors.
61476         Upon failure to open a file, don't exit immediately.
61477         Rather, just warn and continue with any remaining files.
61478
61479 2008-02-10  Bruno Haible  <bruno@clisp.org>
61480
61481         New abstract list operation 'node_set_value'.
61482         * lib/gl_list.h (gl_list_node_set_value): New function.
61483         (struct gl_list_implementation): New field node_set_value.
61484         * lib/gl_list.c (gl_list_node_set_value): New function.
61485         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61486         (gl_array_list_implementation): Update.
61487         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61488         (gl_carray_list_implementation): Update.
61489         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61490         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61491         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61492         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61493         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61494         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61495         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61496         Update.
61497         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61498         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61499         (gl_sublist_list_implementation): Update.
61500
61501 2008-02-10  Bruno Haible  <bruno@clisp.org>
61502
61503         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61504         Needed when ELEMENT is #defined to 'some_type *'.
61505
61506 2008-02-10  Jim Meyering  <meyering@redhat.com>
61507
61508         New script and module: useless-if-before-free
61509         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61510         * build-aux/useless-if-before-free: New file.
61511         * modules/useless-if-before-free: New file.
61512
61513         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61514
61515         xstrtol_error: Fix typo.
61516         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61517         s/exit_failure/exit_status/.
61518
61519 2008-02-09  Jim Meyering  <meyering@redhat.com>
61520
61521         New script and module: gitlog-to-changelog
61522         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61523         * modules/gitlog-to-changelog: New file.
61524         * build-aux/gitlog-to-changelog: New file.
61525
61526 2008-02-08  Jim Meyering  <meyering@redhat.com>
61527
61528         Avoid two "parameter unused" warnings.
61529         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61530         Mark "st" as used.
61531
61532         Use "git COMMAND", not "git-COMMAND".
61533         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61534         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61535         * build-aux/git-version-gen: Use "git status", not "git-status".
61536
61537 2008-02-07  Bruno Haible  <bruno@clisp.org>
61538
61539         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61540         Avoids a crash on Windows Vista.
61541         Reported by Adam Strzelecki <ono@java.pl> via
61542         Simon Josefsson <simon@josefsson.org>.
61543
61544 2008-02-06  Bruno Haible  <bruno@clisp.org>
61545
61546         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61547         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61548         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61549         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61550         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61551         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61552         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61553         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61555         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61557         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61558         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61561         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61562         left-adjust flag.
61563         * tests/test-snprintf-posix.h (test_function): Likewise.
61564         * tests/test-sprintf-posix.h (test_function): Likewise.
61565         * tests/test-vasprintf-posix.c (test_function): Likewise.
61566         * doc/posix-functions/fprintf.texi: Update.
61567         * doc/posix-functions/printf.texi: Update.
61568         * doc/posix-functions/snprintf.texi: Update.
61569         * doc/posix-functions/sprintf.texi: Update.
61570         * doc/posix-functions/vfprintf.texi: Update.
61571         * doc/posix-functions/vprintf.texi: Update.
61572         * doc/posix-functions/vsnprintf.texi: Update.
61573         * doc/posix-functions/vsprintf.texi: Update.
61574         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61575
61576 2008-02-06  Bruno Haible  <bruno@clisp.org>
61577
61578         Fix bug introduced on 2008-01-26.
61579         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61580
61581 2008-02-06  Bruno Haible  <bruno@clisp.org>
61582
61583         Fix bug introduced on 2007-06-10.
61584         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61585         !NEED_PRINTF_FLAG_ZERO.
61586
61587 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61588
61589         getloadavg: use libperfstat on AIX5
61590         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61591
61592 2008-02-03  Bruno Haible  <bruno@clisp.org>
61593
61594         * lib/diffseq.h: Add comments about required #includes.
61595         Reported by Michael Biggs <gnulib@doubleplum.net>.
61596
61597 2008-02-01  Bruno Haible  <bruno@clisp.org>
61598
61599         * users.txt: Add gnuit.
61600
61601 2008-01-31  Bruno Haible  <bruno@clisp.org>
61602
61603         * lib/md4.c (set_uint32): Mark as inline.
61604         * lib/md5.c (set_uint32): Likewise.
61605         * lib/sha1.c (set_uint32): Likewise.
61606         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61607         * m4/md5.m4 (gl_MD5): Likewise.
61608         * m4/sha1.m4 (gl_SHA1): Likewise.
61609
61610 2008-01-31  Jim Meyering  <meyering@redhat.com>
61611
61612         Use "sizeof VAR", rather than a literal "4".
61613         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61614         * lib/md4.c (md4_read_ctx): Likewise.
61615         * lib/sha1.c (sha1_read_ctx): Likewise.
61616
61617 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61618
61619         * tests/test-sha1.c: New file, based on test-md5.c.
61620
61621         * modules/crypto/sha1-tests: New file.
61622
61623 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61624
61625         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61626
61627 2008-01-31  Jim Meyering  <meyering@redhat.com>
61628
61629         Prefer "sizeof v" over the equivalent "4".
61630         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61631         * lib/md5.c (set_uint32): Likewise.
61632         * lib/sha1.c (set_uint32): Likewise.
61633
61634 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61635
61636         * lib/sha1.c (set_uint32): Mark function as static.
61637
61638 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61639
61640         md2: clarify comments to say that alignment is not required.
61641         * lib/md2.h: Remove warning about alignment in comment.
61642         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61643         never been required.
61644
61645 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61646
61647         md4: adapt alignment constraint fix from sha1.
61648         * lib/md4.c (set_uint32): New function, from sha1.c
61649         (md4_read_ctx): Use it.
61650         (md4_finish_ctx): Doc fix.
61651         * lib/md4.h: Doc fix.
61652
61653 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61654
61655         md5: adapt alignment constraint fix from sha1.
61656         * lib/md5.c (set_uint32): New function, from sha1.c
61657         (md5_read_ctx): Use it.
61658         (md5_finish_ctx): Doc fix.
61659         * lib/md5.h: Doc fix.
61660
61661 2008-01-30  Peter Palfrader  <weasel@debian.org>
61662
61663         sha1: remove the result buffer alignment constraint
61664         * lib/sha1.c (set_uint32): New function.
61665         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61666         constraint.
61667         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61668         * lib/sha1.h: Likewise.
61669
61670 2008-01-30  Andreas Schwab  <schwab@suse.de>
61671             Bruno Haible  <bruno@clisp.org>
61672
61673         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61674         correct definition of LDBL_MIN_EXP.
61675
61676 2008-01-30  Karl Berry  <karl@gnu.org>
61677
61678         * config/srclist-update: try to preserve x bit on updates.
61679         * config/srclistvars.sh: update for karl.
61680
61681 2008-01-29  Jim Meyering  <meyering@redhat.com>
61682
61683         vasnprintf.c: Avoid warning about unused label
61684         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61685         "overflow" label definition and associated code with the
61686         same cpp condition that guards the sole use of that label.
61687
61688 2008-01-26  Bruno Haible  <bruno@clisp.org>
61689
61690         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61691         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61692         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61693         * lib/isnanl-nolibm.h (isnanl): Likewise.
61694         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61695
61696 2008-01-26  Bruno Haible  <bruno@clisp.org>
61697
61698         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61699         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61700
61701 2008-01-26  Bruno Haible  <bruno@clisp.org>
61702
61703         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61704         GCC >= 4.0 built-in.
61705         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61706
61707 2008-01-26  Bruno Haible  <bruno@clisp.org>
61708
61709         Rename isnan, applicable to 'double' only, to isnand.
61710         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61711         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61712         (configure.ac): Update.
61713         (Include): Replace "isnan.h" with "isnand.h".
61714         * m4/isnand.m4: Renamed from m4/isnan.m4.
61715         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61716         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61717         instead of isnan.c.
61718         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61719         instead of HAVE_ISNAN_IN_LIBC.
61720         (isnand): Renamed from isnan.
61721         * lib/isnand.c: New file.
61722         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61723         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61724         (Makefile.am): Update.
61725         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61726         Include isnand.h instead of isnan.h.
61727         (main): Test isnand instead of isnan.
61728         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61729         isnan-nolibm.
61730         * modules/frexp (Depends-on): Likewise.
61731         * modules/frexp-tests (Depends-on): Likewise.
61732         * modules/frexp-nolibm (Depends-on): Likewise.
61733         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61734         * modules/isfinite (Depends-on): Likewise.
61735         * modules/round-tests (Depends-on): Likewise.
61736         * modules/signbit (Depends-on): Likewise.
61737         * modules/signbit-tests (Depends-on): Likewise.
61738         * modules/snprintf-posix (Depends-on): Likewise.
61739         * modules/sprintf-posix (Depends-on): Likewise.
61740         * modules/trunc-tests (Depends-on): Likewise.
61741         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61742         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61743         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61744         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61745         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61746         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61747         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61748         * modules/vasnprintf-posix (Depends-on): Likewise.
61749         * modules/vasprintf-posix (Depends-on): Likewise.
61750         * modules/vfprintf-posix (Depends-on): Likewise.
61751         * modules/vsnprintf-posix (Depends-on): Likewise.
61752         * modules/vsprintf-posix (Depends-on): Likewise.
61753         * lib/frexp.c: Include isnand.h instead of isnan.h.
61754         (ISNAN): Set to isnand instead of isnan.
61755         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61756         (gl_isfinited): Use isnand instead of isnan.
61757         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61758         (gl_signbitd): Use isnand instead of isnan.
61759         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61760         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61761         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61762         (main): Use isnand instead of isnan.
61763         * tests/test-round1.c: Include isnand.h.
61764         (main): Use isnand instead of isnan.
61765         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61766         (ISNAN): Set to isnand instead of isnan.
61767         * tests/test-trunc1.c: Include isnand.h.
61768         (main): Use isnand instead of isnan.
61769         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61770         (equal): Use isnand instead of isnan.
61771         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61772         isnand-nolibm.
61773         * NEWS: Mention the change.
61774
61775 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61776             Bruno Haible  <bruno@clisp.org>
61777
61778         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61779         the GCC builtins for signbits are present and set
61780         REPLACE_SIGNBIT_USING_GCC if so.
61781         * lib/math.in.h (signbit): Define using GCC builtins if
61782         REPLACE_SIGNBIT_USING_GCC is set.
61783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61784         REPLACE_SIGNBIT_USING_GCC.
61785         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61786
61787 2008-01-25  Jim Meyering  <meyering@redhat.com>
61788
61789         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61790         * lib/poll.c: Include <config.h>, not "config.h".
61791         * tests/test-getaddrinfo.c: Likewise.
61792
61793 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61794
61795         * modules/sockets-tests: New file.
61796
61797 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61798
61799         * modules/sockets: New module, can be used to call WSA_Startup and
61800         WSA_Cleanup when needed.
61801
61802         * lib/sockets.h, lib/sockets.c: New files.
61803
61804         * m4/sockets.m4: New file.
61805
61806         * tests/test-sockets.c: New file.
61807
61808 2008-01-19  Bruno Haible  <bruno@clisp.org>
61809
61810         * doc/posix-headers: Renamed from doc/headers.
61811         * doc/posix-functions: Renamed from doc/functions.
61812         * doc/gnulib.texi: Update.
61813
61814 2008-01-19  Bruno Haible  <bruno@clisp.org>
61815
61816         * doc/glibc-functions/strcasestr.texi: Include contents of
61817         doc/functions/strcasestr.texi, fixing the list of platforms.
61818         * doc/functions/strcasestr.texi: Remove file.
61819
61820 2008-01-19  Bruno Haible  <bruno@clisp.org>
61821
61822         * doc/glibc-functions/memmem.texi: Include contents of
61823         doc/functions/memmem.texi.
61824         * doc/functions/memmem.texi: Remove file.
61825
61826 2008-01-18  Bruno Haible  <bruno@clisp.org>
61827
61828         * doc/glibc-functions/*.texi: New files.
61829         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61830         to use the new files.
61831
61832 2008-01-17  Bruno Haible  <bruno@clisp.org>
61833
61834         * tests/test-gethostname.c (main): Fix printf statement.
61835
61836 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61837
61838         * modules/gethostname-tests: New file.
61839
61840         * tests/test-gethostname.c: New file.
61841
61842 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61843
61844         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61845         used by the UNAME case.  Reported by Bruno Haible
61846         <bruno@clisp.org>.
61847
61848 2008-01-17  Eric Blake  <ebb9@byu.net>
61849
61850         Convert c-strcasestr to be more efficient.
61851         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61852         (Depends-on): Add c-strcase, remove malloca, strnlen.
61853         * tests/test-c-strcasestr.c (main): Enhance test.
61854         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61855
61856 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61857
61858         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61859         Use it in creating po/Makevars.
61860
61861 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61862
61863         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61864         Applications that requires it should initialize libgcrypt
61865         manually.
61866
61867 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61868
61869         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61870
61871 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61872
61873         Fix problem with getdate on mingw32 reported by Simon Josefsson
61874         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61875         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61876         tzname", when deciding whether to declare tzname.
61877         * lib/strftime.c (tzname): Likewise.
61878
61879 2008-01-15  Bruno Haible  <bruno@clisp.org>
61880
61881         Work around a MacOS X 10.5 bug in frexpl().
61882         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61883         * doc/functions/frexpl.texi: Document the bug.
61884         Reported by Elias Pipping <pipping@gentoo.org>.
61885
61886 2008-01-14  Eric Blake  <ebb9@byu.net>
61887
61888         Touch up previous patch.
61889         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61890         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61891
61892         Convert strcasestr module to use Two-Way algorithm.
61893         * modules/strcasestr-simple: New module, based on the old
61894         strcasestr, but with Two-Way rather than KMP.
61895         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61896         * lib/string.in.h (rpl_strcasestr): Declare.
61897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61898         performance.
61899         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61900         * modules/string (Makefile.am): Support strcasestr.
61901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61902         * modules/strcasestr-tests (Depends-on): Check for alarm.
61903         * tests/test-strcasestr.c: Augment test.
61904         * lib/str-two-way.h: Clean up stray macro.
61905         * NEWS: Document new module.
61906         * MODULES.html.sh (string handling): Likewise.
61907         * doc/functions/strcasestr.texi: New file.
61908         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61909         here, since it is not a POSIX function.
61910
61911 2008-01-14  Colin Watson  <cjwatson@debian.org>
61912             Bruno Haible  <bruno@clisp.org>
61913
61914         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61915         works fine; if not, set REPLACE_STRSIGNAL.
61916         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61918         REPLACE_STRSIGNAL.
61919         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61920         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61921         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61922
61923 2008-01-14  Bruno Haible  <bruno@clisp.org>
61924
61925         * modules/strsignal (Include): Change to <string.h>.
61926
61927 2008-01-14  Colin Watson  <cjwatson@debian.org>
61928
61929         * modules/argp (Notice): Add a notice recommending to change
61930         XGETTEXT_OPTIONS.
61931         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61932
61933 2008-01-13  Colin Watson  <cjwatson@debian.org>
61934
61935         * modules/strsignal-tests: New file.
61936         * tests/test-strsignal.c: New file.
61937
61938         * lib/strsignal.c: New file, from glibc with modifications.
61939         * lib/siglist.h: New file, from glibc with modifications.
61940         * lib/string.in.h (strsignal): New declaration.
61941         * m4/strsignal.m4: New file.
61942         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61943         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61944         * modules/strsignal: New file.
61945         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61946         HAVE_DECL_STRSIGNAL.
61947
61948 2008-01-13  Bruno Haible  <bruno@clisp.org>
61949
61950         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61951         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61952         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61953         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61954
61955 2008-01-13  Bruno Haible  <bruno@clisp.org>
61956
61957         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61958         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61959         * lib/argp.h (__attribute__): Likewise.
61960         * lib/c-stack.c (__attribute__): Likewise.
61961         * lib/error.h (__attribute__): Likewise.
61962         * lib/fts.c (__attribute__): Likewise.
61963         * lib/openat.h (__attribute__): Likewise.
61964         * lib/stdio.in.h (__attribute__): Likewise.
61965         * lib/string.in.h (__attribute__): Likewise.
61966         * lib/utimens.c (__attribute__): Likewise.
61967         * lib/vasnprintf.h (__attribute__): Likewise.
61968         * lib/xalloc.h (__attribute__): Likewise.
61969         * lib/xprintf.h (__attribute__): Likewise.
61970         * lib/xstrtol.h (__attribute__): Likewise.
61971         * lib/xvasprintf.h (__attribute__): Likewise.
61972
61973 2008-01-12  Bruno Haible  <bruno@clisp.org>
61974
61975         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61976         * doc/glibc-headers/a.out.texi: New file.
61977         * doc/glibc-headers/aliases.texi: New file.
61978         * doc/glibc-headers/alloca.texi: New file.
61979         * doc/glibc-headers/ar.texi: New file.
61980         * doc/glibc-headers/argp.texi: New file.
61981         * doc/glibc-headers/argz.texi: New file.
61982         * doc/glibc-headers/byteswap.texi: New file.
61983         * doc/glibc-headers/crypt.texi: New file.
61984         * doc/glibc-headers/endian.texi: New file.
61985         * doc/glibc-headers/envz.texi: New file.
61986         * doc/glibc-headers/err.texi: New file.
61987         * doc/glibc-headers/error.texi: New file.
61988         * doc/glibc-headers/execinfo.texi: New file.
61989         * doc/glibc-headers/fpu_control.texi: New file.
61990         * doc/glibc-headers/fstab.texi: New file.
61991         * doc/glibc-headers/fts.texi: New file.
61992         * doc/glibc-headers/getopt.texi: New file.
61993         * doc/glibc-headers/ieee754.texi: New file.
61994         * doc/glibc-headers/ifaddrs.texi: New file.
61995         * doc/glibc-headers/libintl.texi: New file.
61996         * doc/glibc-headers/mcheck.texi: New file.
61997         * doc/glibc-headers/mntent.texi: New file.
61998         * doc/glibc-headers/obstack.texi: New file.
61999         * doc/glibc-headers/paths.texi: New file.
62000         * doc/glibc-headers/printf.texi: New file.
62001         * doc/glibc-headers/pty.texi: New file.
62002         * doc/glibc-headers/resolv.texi: New file.
62003         * doc/glibc-headers/shadow.texi: New file.
62004         * doc/glibc-headers/sysexits.texi: New file.
62005         * doc/glibc-headers/ttyent.texi: New file.
62006
62007 2008-01-12  Jim Meyering  <meyering@redhat.com>
62008
62009         announce-gen: emit Gnulib's git-based version string.
62010         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62011         New option --gnulib-version=V, where V is expected to be
62012         the output of running git describe in the gnulib directory.
62013         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62014         not useful, and plan to stop publishing an xdelta file with each
62015         coreutils release.
62016
62017         * build-aux/announce-gen: Also check for lzma-compressed files.
62018
62019 2008-01-11  Bruno Haible  <bruno@clisp.org>
62020
62021         * tests/test-memmem.c (main): Increase maximum allowed time.
62022         * tests/test-strstr.c (main): Likewise.
62023
62024 2008-01-11  Bruno Haible  <bruno@clisp.org>
62025
62026         * doc/functions/memmem.texi: Add more precisions about platforms.
62027         * doc/functions/strstr.texi: Likewise.
62028
62029 2008-01-10  Eric Blake  <ebb9@byu.net>
62030
62031         * m4/strstr.m4: Delete cruft from copy-n-paste.
62032         Reported by Bruno Haible.
62033
62034 2008-01-10  Bruno Haible  <bruno@clisp.org>
62035
62036         Make c-strstr rely on strstr.
62037         * lib/c-strstr.c: Don't include str-kmp.h.
62038         (c_strstr): Define in terms of strstr.
62039         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62040         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62041
62042 2008-01-10  Bruno Haible  <bruno@clisp.org>
62043
62044         * doc/gnulib.texi (String Functions in C Locale): New section.
62045         * doc/c-ctype.texi: New file.
62046         * doc/c-strcase.texi: New file.
62047         * doc/c-strcaseeq.texi: New file.
62048         * doc/c-strcasestr.texi: New file.
62049         * doc/c-strstr.texi: New file.
62050         * doc/c-strtod.texi: New file.
62051         * doc/c-strtold.texi: New file.
62052
62053 2008-01-10  Eric Blake  <ebb9@byu.net>
62054
62055         * lib/relocatable.h: Fix a comment.
62056
62057 2008-01-10  Eric Blake  <ebb9@byu.net>
62058
62059         Share two-way algorithm.
62060         * lib/str-two-way.h: New file, merged from...
62061         * lib/memmem.c: ...here...
62062         * lib/strstr.c: ...and here.
62063         * modules/memmem (Files): Use it.
62064         * modules/strstr (Files): Likewise.
62065
62066         Avoid quadratic strstr implementations.
62067         * lib/strstr.c: New file.
62068         * m4/strstr.m4: Likewise.
62069         * modules/strstr: Likewise.
62070         * modules/strstr-tests: Likewise.
62071         * tests/test-strstr.c: Likewise.
62072         * lib/string.in.h (rpl_strstr): Declare.
62073         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62075         * modules/string (Makefile.am): Likewise.
62076         * MODULES.html.sh (string handling): Mention new module.
62077         * doc/functions/strstr.texi (strstr): Document the bug.
62078
62079 2008-01-10  Bruno Haible  <bruno@clisp.org>
62080
62081         * lib/relocatable.h (relocate): State whether result is freshly
62082         allocated or not.
62083         * lib/relocatable.c (relocate): Return a freshly allocated string
62084         instead of a pointer to a privately held string.
62085         Reported by Sylvain Beucler <beuc@gnu.org>.
62086
62087 2008-01-10  Colin Watson  <cjwatson@debian.org>
62088
62089         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62090         s/S_ISNLK/S_ISLNK/.
62091
62092 2008-01-09  Bruno Haible  <bruno@clisp.org>
62093
62094         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62095         and other files.
62096         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62097         if it's only a guess.
62098         * modules/memmem: Simplify by depending on memmem-simple.
62099
62100 2008-01-09  Bruno Haible  <bruno@clisp.org>
62101
62102         Work around OpenBSD 4.0 tdelete() bug.
62103         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62104         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62105         macros and don't redefine the enum values.
62106         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62107         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62108         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62109
62110 2008-01-09  Bruno Haible  <bruno@clisp.org>
62111
62112         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62113         (main): Don't perform the tests if setlocale did not install a UTF-8
62114         locale. Needed on OpenBSD 4.0.
62115         * modules/wcwidth-tests (Depends-on): Add localcharset.
62116
62117 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62118
62119         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62120         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62121         * NEWS: announce this.
62122         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62123
62124 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62125         and Eric Blake  <ebb9@byu.net>
62126
62127         Add memmem-simple module.
62128         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62129         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62130         * modules/memmem-simple: New file.
62131         * modules/memmem (Description): Tweak.
62132         * MODULES.html.sh (string handling): Mention new module.
62133         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62134         addressed by memmem-simple.
62135         * NEWS: Document the difference.
62136
62137 2008-01-09  Eric Blake  <ebb9@byu.net>
62138
62139         Give gcc some memmem optimization hints.
62140         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62141         (strcasestr): Declare as pure.
62142         * modules/memmem (Maintainer): Claim my implementation.
62143
62144 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62145
62146         Support AIX 6.1 and higher.
62147         * build-aux/config.libpath: Likewise.
62148         * build-aux/config.rpath: Likewise.
62149
62150 2008-01-08  Jim Meyering  <meyering@redhat.com>
62151             Bruno Haible  <bruno@clisp.org>
62152
62153         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62154         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62155         Reported by Peter Fales in
62156         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62157
62158 2008-01-08  Bruno Haible  <bruno@clisp.org>
62159
62160         * modules/unictype/category-of (Depends-on): Add
62161         unictype/category-none.
62162         * modules/unictype/category-and-tests (Depends-on): Add
62163         unictype/category-{L,N,Lu,Nd}.
62164         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62165         * modules/unictype/category-or-tests (Depends-on): Add
62166         unictype/category-{L,N}.
62167         * modules/unictype/category-name-tests (Depends-on): Add
62168         unictype/category-{Z,Nl}.
62169         Reported by Simon Josefsson.
62170
62171 2008-01-08  Bruno Haible  <bruno@clisp.org>
62172
62173         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62174         convention better.
62175         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62176         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62177         Reported by Peter Miller <millerp@canb.auug.org.au>.
62178
62179 2008-01-08  Eric Blake  <ebb9@byu.net>
62180
62181         Rewrite memmem to guarantee linear complexity without malloc.
62182         * lib/memmem.c (memmem): Use Two-Way rather than
62183         Knuth-Morris-Pratt, to allow O(1) space usage.
62184         (critical_factorization, two_way_short_needle)
62185         (two_way_long_needle): New functions.
62186         (knuth_morris_pratt): Delete.
62187         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62188         Add stdint.
62189         * tests/test-memmem.c (main): Add tests for periodic needle and
62190         sublinear performance.
62191         * doc/functions/memmem.texi (memmem): Document other deficiencies
62192         in cygwin and older glibc.
62193
62194 2008-01-08  Bruno Haible  <bruno@clisp.org>
62195
62196         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62197         augmentation.
62198
62199 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62200
62201         Add a configure time option: --disable-acl.
62202         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62203         AC_ARG_ENABLE(acl).
62204
62205 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62206
62207         * tests/test-localename.c: Don't include obsolete "setenv.h".
62208
62209         * modules/localename-tests (Depends-on): Need unsetenv.
62210
62211 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62212
62213         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62214
62215 2008-01-06  Colin Watson  <cjwatson@debian.org>
62216
62217         * users.txt: Add man-db.
62218
62219 2008-01-07  Bruno Haible  <bruno@clisp.org>
62220
62221         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62222         previous section name.
62223
62224 2008-01-07  Bruno Haible  <bruno@clisp.org>
62225
62226         * lib/progname.c (set_program_name): Don't strip off a leading
62227         "lt-" prefix outside a .libs directory.
62228         Suggested by Paul Eggert.
62229
62230 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62231             Bruno Haible  <bruno@clisp.org>
62232
62233         Improve memory cleanup in 'relocatable' module.
62234         * lib/relocatable.h (compute_curr_prefix): Change return type to
62235         'char *'.
62236         * lib/relocatable.c (compute_curr_prefix): Change return type to
62237         'char *'. Free curr_installdir after use.
62238         (relocate): Free curr_prefix_better after use.
62239         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62240
62241 2008-01-01  Bruno Haible  <bruno@clisp.org>
62242
62243         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62244         failure on older glibc systems.
62245         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62246
62247 2008-01-05  Eric Blake  <ebb9@byu.net>
62248
62249         Avoid quadratic system memmem.
62250         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62251         Reported by Ralf Wildenhues.
62252
62253         Fix memmem test for mingw.
62254         * modules/memmem-tests (configure.ac): Check for alarm.
62255         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62256         it.
62257         * doc/functions/memmem.texi: New file.
62258         * doc/gnulib.texi (Function Substitutes): Add memmem.
62259         Reported by Bruno Haible.
62260
62261 2008-01-04  Bruno Haible  <bruno@clisp.org>
62262
62263         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62264         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62265         gl_HEADER_STRING_H_DEFAULTS.
62266
62267 2008-01-04  Eric Blake  <ebb9@byu.net>
62268
62269         Shorten duration of memmem test.
62270         * tests/test-memmem.c (main): Use alarm to declare failure if test
62271         is taking too long.
62272         Reported by Ralf Wildenhues.
62273
62274 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62275
62276         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62277         string, needed by strerror.
62278
62279 2008-01-03  Colin Watson  <cjwatson@debian.org>
62280             Bruno Haible  <bruno@clisp.org>
62281
62282         * doc/gnulib-tool.texi (Localization): New section.
62283
62284 2008-01-02  Bruno Haible  <bruno@clisp.org>
62285
62286         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62287         variables to 'unsigned char *' type.
62288         Reported by Paul Eggert.
62289
62290 2008-01-02  Jim Meyering  <jim@meyering.net>
62291
62292         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62293
62294 2007-12-31  Jim Meyering  <jim@meyering.net>
62295
62296         Avoid use of private FTS type name.
62297         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62298
62299 2007-12-30  Karl Berry  <karl@gnu.org>
62300
62301         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62302         work around defect in Texinfo and/or the standalone Info browser.
62303
62304 2007-12-30  Bruno Haible  <bruno@clisp.org>
62305
62306         Unify 5 copies of the KMP code.
62307         * lib/str-kmp.h: New file.
62308         * lib/c-strcasestr.c: Include str-kmp.h.
62309         (knuth_morris_pratt): Remove function.
62310         (c_strcasestr): Update.
62311         * lib/c-strstr.c: Include str-kmp.h.
62312         (knuth_morris_pratt): Remove function.
62313         (c_strcasestr): Update.
62314         * lib/mbscasestr.c: Include str-kmp.h.
62315         (knuth_morris_pratt_unibyte): Remove function.
62316         * lib/mbsstr.c: Include str-kmp.h.
62317         (knuth_morris_pratt_unibyte): Remove function.
62318         * lib/strcasestr.c: Include str-kmp.h.
62319         (knuth_morris_pratt): Remove function.
62320         (strcasestr): Update.
62321         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62322         * modules/c-strstr (Files): Likewise.
62323         * modules/mbscasestr (Files): Likewise.
62324         * modules/mbsstr (Files): Likewise.
62325         * modules/strcasestr (Files): Likewise.
62326         Suggested by Paul Eggert.
62327
62328 2007-12-30  Bruno Haible  <bruno@clisp.org>
62329
62330         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62331         defined.
62332
62333 2007-12-30  Bruno Haible  <bruno@clisp.org>
62334
62335         * lib/xmalloca.h: Include xalloc.h.
62336         (xnmalloca): New macro.
62337
62338 2007-12-30  Bruno Haible  <bruno@clisp.org>
62339
62340         * lib/malloca.h (nmalloca): New macro.
62341         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62342         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62343         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62344         knuth_morris_pratt_multibyte): Likewise.
62345         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62346         knuth_morris_pratt_multibyte): Likewise.
62347         * lib/memmem.c (knuth_morris_pratt): Likewise.
62348         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62349
62350 2007-12-25  Bruno Haible  <bruno@clisp.org>
62351
62352         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62353         * lib/glob.c: Don't include openat.h.
62354         (link_exists2_p): Add back the code that deals with the
62355         !GLOB_ALTDIRFUNC case.
62356         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62357         let it do the filename concatenation.
62358         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62359         * modules/glob (Depends-on): Remove openat.
62360
62361 2007-12-31  Bruno Haible  <bruno@clisp.org>
62362
62363         * modules/dirfd (License): Change to LGPLv2+.
62364         Approved by Jim Meyering.
62365
62366 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62367
62368         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62369         when multiplying M by sizeof (size_t).
62370
62371 2007-12-10  Martin Lambers  <marlam@marlam.de>
62372
62373         Override getpagesize on mingw.
62374         * lib/getpagesize.c: New file.
62375         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62376         * modules/getpagesize (Files): Add lib/getpagesize.c.
62377         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62379         REPLACE_GETPAGESIZE.
62380         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62381
62382 2007-12-25  Bruno Haible  <bruno@clisp.org>
62383
62384         * modules/localcharset (Notice): New field.
62385         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62386         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62387
62388 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62389             Bruno Haible  <bruno@clisp.org>
62390
62391         Avoid using the syntax symbol() in formatted documentation.
62392         * MODULES.html.sh (func_module): When replacing symbol() with a
62393         hyperlink, remove the parentheses. Show an error if some remain.
62394         Recognize and render the '...' syntax.
62395         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62396         Rework. Add paragraph about GCC's inlining.
62397         * doc/alloca.texi: Likewise.
62398         * doc/error.texi: Remove parentheses from symbol reference.
62399         * doc/gnulib-intro.texi: Likewise.
62400         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62401         * modules/fnmatch (Description): Reword to say "the ... function".
62402         * modules/full-read (Description): Likewise.
62403         * modules/full-write (Description): Likewise.
62404         * modules/safe-read (Description): Likewise.
62405         * modules/safe-write (Description): Likewise.
62406         * modules/strchrnul (Description): Likewise.
62407         * modules/trim (Description): Likewise.
62408         * modules/error (Description): Remove parentheses from symbol
62409         references.
62410         * modules/verror (Description): Likewise.
62411         Reported by Karl Berry.
62412
62413 2007-12-25  Bruno Haible  <bruno@clisp.org>
62414
62415         Fixup after 2007-10-16 commit.
62416         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62417
62418 2007-12-24  Bruno Haible  <bruno@clisp.org>
62419
62420         Make --enable-relocatable work with DESTDIR.
62421         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62422         to compute installdir from destprog.
62423         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62424         also set the RELOC_DESTDIR variable.
62425         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62426
62427 2007-12-24  Bruno Haible  <bruno@clisp.org>
62428
62429         Fix link error due to xalloc_die().
62430         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62431         of xreadlink.
62432         * lib/relocwrapper.c: Update comments.
62433         * build-aux/install-reloc: Remove xreadlink.c from file list.
62434         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62435         xreadlink.c.
62436         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62437
62438 2007-12-24  Bruno Haible  <bruno@clisp.org>
62439
62440         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62441         * lib/setenv.h: Remove file.
62442         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62443         lib/setenv.h.
62444         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62445         (Depends-on): Add stdlib.
62446         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62447         gl_FUNC_UNSETENV.
62448         (Include): Replace setenv.h with <stdlib.h>.
62449         * modules/unsetenv: New file.
62450         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62451         * lib/unsetenv.c: Include <stdlib.h> first.
62452         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62453         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62454         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62455         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62456         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62457         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62459         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62460         * doc/functions/unsetenv.texi: Update.
62461         * modules/xsetenv (Depends-on): Add unsetenv.
62462         * modules/getdate (Depends-on): Likewise.
62463         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62464         * lib/xsetenv.c: Don't include setenv.h.
62465         * lib/getdate.y: Likewise.
62466         * lib/relocwrapper.c: Likewise.
62467         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62468         (Depends-on): Add stdlib.
62469         * NEWS: Mention the changes.
62470         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62471
62472 2007-12-23  Bruno Haible  <bruno@clisp.org>
62473
62474         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62475         indentation.
62476
62477 2007-12-23  Bruno Haible  <bruno@clisp.org>
62478
62479         * lib/c-strcasestr.c: Add more comments.
62480         * lib/c-strstr.c: Likewise.
62481         * lib/mbscasestr.c: Likewise.
62482         * lib/mbsstr.c: Likewise.
62483         * lib/strcasestr.c: Likewise.
62484         * lib/memmem.c: Likewise.
62485
62486 2007-12-23  Bruno Haible  <bruno@clisp.org>
62487
62488         * tests/test-memmem.c: Include <string.h> first.
62489
62490 2007-12-22  Bruno Haible  <bruno@clisp.org>
62491
62492         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62493         the contents of $testsbase.
62494         Reported by Ralf Wildenhues.
62495
62496 2007-12-22  Bruno Haible  <bruno@clisp.org>
62497
62498         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62499         two variables local_ldadd_before, local_ldadd_last.
62500
62501 2007-12-20  Eric Blake  <ebb9@byu.net>
62502
62503         Work around circular library issue when cross-compiling.
62504         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62505         that progname.o does not need to pull in rpl_memcmp.
62506
62507 2007-12-19  Eric Blake  <ebb9@byu.net>
62508
62509         Fix memmem to avoid O(n^2) worst-case complexity.
62510         * lib/memmem.c (knuth_morris_pratt): New function.
62511         (memmem): Use it if first few naive iterations fail.
62512         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62513         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62514         * modules/memchr (License): Likewise.
62515         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62516         malloca.
62517         * tests/test-memmem.c: Rewrite, borrowing ideas from
62518         test-mbsstr1.c; the old version wouldn't even compile!
62519         * modules/memmem-tests: New file.
62520         * lib/string.in.h (rpl_memmem): Add declaration.
62521         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62522         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62523         REPLACE_MEMMEM.
62524
62525 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62526
62527         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62528         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62529         before any system include files, and undef after them all.  This
62530         should fix a problem on VMS reported by John E. Malmberg in
62531         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62532
62533 2007-12-17  Eric Blake  <ebb9@byu.net>
62534
62535         Revert addition of verify, for BSD/OS.
62536         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62537         can't handle large files, for the sake of obsolete platforms.
62538         * modules/fseeko (Depends-on): Remove verify.
62539         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62540         * doc/functions/ftello.texi (ftello): Likewise.
62541         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62542         Reported by Larry Jones.
62543
62544 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62545
62546         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62547         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62548
62549 2007-12-17  Jim Meyering  <meyering@redhat.com>
62550
62551         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62552         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62553         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62554         * modules/getcwd (Depends-on): Add openat.
62555         Reported by Petr Salinger.
62556
62557 2007-12-17  Bruno Haible  <bruno@clisp.org>
62558
62559         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62560         avoid a segmentation fault of the configure test on x86_64 systems.
62561
62562 2007-12-15  Jim Meyering  <meyering@redhat.com>
62563
62564         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62565
62566 2007-12-13  Eric Blake  <ebb9@byu.net>
62567
62568         Another fseek test.
62569         * tests/test-fseek.c (main): Also test ungetc handling.
62570         * tests/test-fseeko.c (main): Likewise.
62571         * modules/fseeko (Depends-on): Add verify.
62572         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62573         large.
62574         Reported by Larry Jones.
62575
62576         Fix fseeko on mingw.
62577         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62578         seek.
62579
62580         Beef up fseek tests.
62581         * tests/test-fseek.c (main): Also test eof handling.
62582         * tests/test-fseeko.c (main): Likewise.
62583         Reported by Larry Jones.
62584
62585 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62586
62587         Fix fseeko on BSD-based platforms.
62588         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62589         successful seek.
62590
62591 2007-12-12  Eric Blake  <ebb9@byu.net>
62592
62593         Allow circular dependency of separate libtests.a
62594         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62595         when use_libtests.
62596
62597 2007-12-11  Eric Blake  <ebb9@byu.net>
62598
62599         Fix bug with -0.0L in previous patch.
62600         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62601         * tests/test-isnan.c (main): Also test on zeroes.
62602         * tests/test-isnanf.c (main): Likewise.
62603         * tests/test-isnanl.h (main): Likewise.
62604
62605         Detect pseudo-denormals on x86 even when cross-compiling.
62606         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62607         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62608         invalid bit patterns that happen to satisfy ==.
62609
62610         Avoid link failures with separate libtests.a.
62611         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62612         last, to satisfy circular dependencies.
62613
62614 2007-12-11  Eric Blake  <ebb9@byu.net>
62615         and Bruno Haible  <bruno@clisp.org>
62616
62617         Fix OpenBSD 4.0 <float.h> handling of long double.
62618         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62619         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62620         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62621
62622 2007-12-11  Jim Meyering  <meyering@redhat.com>
62623
62624         * users.txt: Add libvirt.
62625
62626         Support versions of autoconf prior to 2.59c.
62627         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62628         if it is not already defined.
62629
62630 2007-12-09  Bruno Haible  <bruno@clisp.org>
62631
62632         Let 'gnulib-tool --import' collect sources needed for the tests in
62633         tests/ rather than in lib/.
62634         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62635         argument. If true, add rules to generate libtests.a, and put libtests.a
62636         into $(LDADD). Consider source files in subdirectories and set
62637         uses_subdirs.
62638         (func_emit_initmacro_start, func_emit_initmacro_end,
62639         func_emit_initmacro_done): Pass all arguments explicitly.
62640         (func_import): Determine two module lists main_modules,
62641         testsrelated_modules. Determine use_libtests. Determine two variables
62642         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62643         instead of just sed_transform_lib_file. Determine two variables
62644         main_files and testsrelated_files. Compute 'files' as the union of
62645         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62646         func_add_or_update. In the generated gnulib-comp.m4, collect the
62647         object files for tests/ in different variables than those for lib/.
62648         Substitute LIBTESTS_LIBDEPS.
62649         (func_create_testdir): Combine the uses_subdirs results from
62650         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62651
62652 2007-12-09  Bruno Haible  <bruno@clisp.org>
62653
62654         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62655         the build-aux directory.
62656
62657 2007-12-09  Bruno Haible  <bruno@clisp.org>
62658
62659         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62660         introduced on 2006-09-09.
62661
62662 2007-12-07  Jim Meyering  <meyering@redhat.com>
62663
62664         Let these macros work also with autoconf-2.59.
62665         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62666         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62667         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62668
62669 2007-12-06  Jim Meyering  <meyering@redhat.com>
62670
62671         Avoid a configure-time syntax error in gl_FUNC_ACL.
62672         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62673         function in each branch, before testing the cache variable.
62674
62675 2007-12-04  Eric Blake  <ebb9@byu.net>
62676
62677         Make scripts executable.
62678         * build-aux/config.guess: Add execute permissions.
62679         * build-aux/config.sub: Likewise.
62680         * build-aux/gendocs.sh: Likewise.
62681
62682         Fix frexp on mingw.
62683         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62684         cross-compiling.
62685         * doc/functions/frexp.texi (frexp): Document the bug.
62686
62687         Make cygwin fseeko check more reliable.
62688         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62689         version numbers, rather than unrelated feature check.
62690         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62691         * doc/functions/ftello.texi (ftello): Likewise.
62692         Reported by Bruno Haible.
62693
62694         * m4/strerror.m4: Bump version number.
62695
62696 2007-12-03  Bruno Haible  <bruno@clisp.org>
62697
62698         * doc/functions/mprotect.texi: Mention the mingw problem.
62699
62700 2007-12-03  Eric Blake  <ebb9@byu.net>
62701
62702         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62703         REPLACE_STRERROR is initialized before this macro.
62704
62705 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62706
62707         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62708         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62709         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62710         put -lsec in even for programs other than 'ls'.  This fixes a problem
62711         for gettext reported by Bruno Haible in
62712         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62713         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62714         Add support for Solaris 10.  This isn't efficient, but should get the
62715         job done for now.
62716
62717 2007-12-03  James Youngman  <jay@gnu.org>
62718
62719         * doc/regexprops-generic.texi: change "an close-group" to "a
62720         close-group" and "illegal" to "not allowed".
62721
62722 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62723
62724         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62725         pr_byname.h. Needed for the rare case when the maintainer has done
62726         "make maintainer-clean" in the source directory and then attempts a
62727         build outside the source directory.
62728         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62729         scripts_byname.h.
62730
62731 2007-12-02  Martin Lambers <marlam@marlam.de>
62732             Bruno Haible  <bruno@clisp.org>
62733
62734         * lib/getpagesize.h: Remove file.
62735         * lib/unistd.in.h: Include declaration of getpagesize here.
62736         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62737         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62738         HAVE_SYS_PARAM_H.
62739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62740         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62741         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62742         (Depends-on): Add unistd.
62743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62744         (Include): Use <unistd.h> instead of getpagesize.h.
62745         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62746         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62747         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62748         gl_GETPAGESIZE invocation, already handled by module dependency.
62749         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62750
62751 2007-12-02  Bruno Haible  <bruno@clisp.org>
62752
62753         * modules/strings-tests: New file.
62754         * tests/test-strings.c: New file.
62755
62756         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62757         * lib/strings.in.h: New file.
62758         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62759         * m4/strings_h.m4: New file.
62760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62761         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62762         * modules/strings: New file.
62763         * modules/string (Makefile.am): Update.
62764         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62765         Reported by Karl Berry.
62766
62767 2007-12-01  Eric Blake  <ebb9@byu.net>
62768
62769         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62770         accommodate fix in cygwin 1.5.25.
62771
62772 2007-12-01  Jim Meyering  <meyering@redhat.com>
62773
62774         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62775         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62776         that would inhibit utf8-optimization of a regexp containing line-
62777         or buffer-anchors, e.g., `^', `$'.
62778
62779 2007-11-30  Bruno Haible  <bruno@clisp.org>
62780
62781         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62782         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62783         glthread_recursive_lock_init.
62784         * lib/lock.c (glthread_recursive_lock_init)
62785         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62786         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62787
62788 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62789
62790         New function qset_acl, like set_acl but with syscall semantics.
62791         * lib/acl.h (qset_acl): New decl.
62792         * lib/acl.c (qset_acl): New function.
62793         (set_acl): Use new function.  Use more-consistent diagnostics.
62794
62795 2007-11-28  Jim Meyering  <meyering@redhat.com>
62796
62797         * modules/physmem (License): Change from GPL to LGPLv2+.
62798
62799 2007-11-26  Bruno Haible  <bruno@clisp.org>
62800
62801         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62802         'long double' type has excess precision.
62803         Reported by Jim Meyering in
62804         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62805
62806 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62807
62808         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62809         Sync from <http://gnu.org/licenses>.
62810         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62811         with license text from same location.
62812         * doc/maintain.texi, doc/standards.texi:  Sync from
62813         <http://savannah.gnu.org/projects/gnustandards>.
62814
62815 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62816         and Jim Meyering  <meyering@redhat.com>
62817
62818         Adjust getdate' grammar to accept a slightly more regular language.
62819         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62820         Before, the former was rejected.
62821         * lib/getdate.y (digits_to_date_time): New function, factored
62822         out of ...
62823         (number): ...here.  Just call digits_to_date_time.
62824         (hybrid): New non-terminal to handle an <unsigned number,
62825         signed relative offset> sequence consistently.
62826
62827 2007-11-18  Jim Meyering  <meyering@redhat.com>
62828
62829         Pull my changes from coreutils:
62830         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62831         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62832         use of $gnulib_tool_option_extras, so that it's separated from the
62833         preceding argument.
62834
62835         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62836         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62837         parent destination directories before copying a file into place.
62838
62839 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62840
62841         bootstrap: work also with 4-argument variant of AC_INIT
62842         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62843
62844 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62845
62846         Port test-getaddrinfo to Solaris.
62847         Problem reported by Bruno Haible in
62848         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62849         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62850         explanation of setting 'hints'.
62851         Don't reject an implementation merely because it returns EAI_SERVICE.
62852         (EAI_SERVICE): Define to 0 if not defined.
62853
62854 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62855
62856         The license of gnu-make and posix-shell is now "GPLed build tool".
62857         * modules/gnu-make (License): Likewise.
62858         * modules/posix-shell (License): Likewise.
62859
62860         New module posix-shell, for determining a POSIX shell
62861         or perhaps something that is close enough to a POSIX shell.
62862         * m4/posix-shell.m4: New file.
62863         * modules/posix-shell: New file.
62864
62865         * MODULES.html.sh: Mention new module.
62866
62867         New module gnu-make, for determining whether we're using GNU Make.
62868         * m4/gnu-make.m4: New file.
62869         * modules/gnu-make: New file.
62870         * MODULES.html.sh: Mention new module.
62871
62872 2007-11-14  Jim Meyering  <meyering@redhat.com>
62873
62874         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62875         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62876         use this macro to create a function _definition_.
62877         Remove useless "#undef ARGMATCH_DIE".
62878
62879 2007-11-14  Bruno Haible  <bruno@clisp.org>
62880
62881         * lib/config.charset: Update for OpenBSD 4.1.
62882         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62883
62884 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62885
62886         Document 64-bit #if problems in stdint.texi.
62887         * doc/headers/stdint.texi (stdint.h): Mention problems with
62888         64-bit-#if, and how to work around them.
62889
62890         Don't insist on 'long long int' support in the preprocessor.  It
62891         breaks too many things.  For example, PRIdMAX still uses a 'long
62892         long int' format with the latest Sun compiler, even though
62893         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62894         preprocessor problem.  This causes the latest coreutils to dump
62895         core on Solaris 10 sparc with the Sun C compiler.
62896         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62897         the troublesome expressions at configure-time, not at #if-time.
62898         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62899         preprocessor.
62900         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62901         compile-time C checks, done at 'configure'-time.
62902         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62903         * modules/inttypes (Makefile): Substitute the new symbols that
62904         gl_INTTYPES_H now generates.
62905         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62906
62907 2007-11-12  Bruno Haible  <bruno@clisp.org>
62908
62909         Tests for Unicode character classification functions.
62910
62911         * modules/unictype/bidicategory-byname-tests: New file.
62912         * modules/unictype/bidicategory-name-tests: New file.
62913         * modules/unictype/bidicategory-of-tests: New file.
62914         * modules/unictype/bidicategory-test-tests: New file.
62915         * modules/unictype/block-list-tests: New file.
62916         * modules/unictype/block-of-tests: New file.
62917         * modules/unictype/block-test-tests: New file.
62918         * modules/unictype/category-C-tests: New file.
62919         * modules/unictype/category-Cc-tests: New file.
62920         * modules/unictype/category-Cf-tests: New file.
62921         * modules/unictype/category-Cn-tests: New file.
62922         * modules/unictype/category-Co-tests: New file.
62923         * modules/unictype/category-Cs-tests: New file.
62924         * modules/unictype/category-L-tests: New file.
62925         * modules/unictype/category-Ll-tests: New file.
62926         * modules/unictype/category-Lm-tests: New file.
62927         * modules/unictype/category-Lo-tests: New file.
62928         * modules/unictype/category-Lt-tests: New file.
62929         * modules/unictype/category-Lu-tests: New file.
62930         * modules/unictype/category-M-tests: New file.
62931         * modules/unictype/category-Mc-tests: New file.
62932         * modules/unictype/category-Me-tests: New file.
62933         * modules/unictype/category-Mn-tests: New file.
62934         * modules/unictype/category-N-tests: New file.
62935         * modules/unictype/category-Nd-tests: New file.
62936         * modules/unictype/category-Nl-tests: New file.
62937         * modules/unictype/category-No-tests: New file.
62938         * modules/unictype/category-P-tests: New file.
62939         * modules/unictype/category-Pc-tests: New file.
62940         * modules/unictype/category-Pd-tests: New file.
62941         * modules/unictype/category-Pe-tests: New file.
62942         * modules/unictype/category-Pf-tests: New file.
62943         * modules/unictype/category-Pi-tests: New file.
62944         * modules/unictype/category-Po-tests: New file.
62945         * modules/unictype/category-Ps-tests: New file.
62946         * modules/unictype/category-S-tests: New file.
62947         * modules/unictype/category-Sc-tests: New file.
62948         * modules/unictype/category-Sk-tests: New file.
62949         * modules/unictype/category-Sm-tests: New file.
62950         * modules/unictype/category-So-tests: New file.
62951         * modules/unictype/category-Z-tests: New file.
62952         * modules/unictype/category-Zl-tests: New file.
62953         * modules/unictype/category-Zp-tests: New file.
62954         * modules/unictype/category-Zs-tests: New file.
62955         * modules/unictype/category-and-not-tests: New file.
62956         * modules/unictype/category-and-tests: New file.
62957         * modules/unictype/category-byname-tests: New file.
62958         * modules/unictype/category-name-tests: New file.
62959         * modules/unictype/category-none-tests: New file.
62960         * modules/unictype/category-of-tests: New file.
62961         * modules/unictype/category-or-tests: New file.
62962         * modules/unictype/category-test-withtable-tests: New file.
62963         * modules/unictype/combining-class-tests: New file.
62964         * modules/unictype/ctype-alnum-tests: New file.
62965         * modules/unictype/ctype-alpha-tests: New file.
62966         * modules/unictype/ctype-blank-tests: New file.
62967         * modules/unictype/ctype-cntrl-tests: New file.
62968         * modules/unictype/ctype-digit-tests: New file.
62969         * modules/unictype/ctype-graph-tests: New file.
62970         * modules/unictype/ctype-lower-tests: New file.
62971         * modules/unictype/ctype-print-tests: New file.
62972         * modules/unictype/ctype-punct-tests: New file.
62973         * modules/unictype/ctype-space-tests: New file.
62974         * modules/unictype/ctype-upper-tests: New file.
62975         * modules/unictype/ctype-xdigit-tests: New file.
62976         * modules/unictype/decimal-digit-tests: New file.
62977         * modules/unictype/digit-tests: New file.
62978         * modules/unictype/mirror-tests: New file.
62979         * modules/unictype/numeric-tests: New file.
62980         * modules/unictype/property-alphabetic-tests: New file.
62981         * modules/unictype/property-ascii-hex-digit-tests: New file.
62982         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62983         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62984         * modules/unictype/property-bidi-block-separator-tests: New file.
62985         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62986         * modules/unictype/property-bidi-common-separator-tests: New file.
62987         * modules/unictype/property-bidi-control-tests: New file.
62988         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62989         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62990         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62991         * modules/unictype/property-bidi-european-digit-tests: New file.
62992         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62993         * modules/unictype/property-bidi-left-to-right-tests: New file.
62994         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62995         * modules/unictype/property-bidi-other-neutral-tests: New file.
62996         * modules/unictype/property-bidi-pdf-tests: New file.
62997         * modules/unictype/property-bidi-segment-separator-tests: New file.
62998         * modules/unictype/property-bidi-whitespace-tests: New file.
62999         * modules/unictype/property-byname-tests: New file.
63000         * modules/unictype/property-combining-tests: New file.
63001         * modules/unictype/property-composite-tests: New file.
63002         * modules/unictype/property-currency-symbol-tests: New file.
63003         * modules/unictype/property-dash-tests: New file.
63004         * modules/unictype/property-decimal-digit-tests: New file.
63005         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63006         * modules/unictype/property-deprecated-tests: New file.
63007         * modules/unictype/property-diacritic-tests: New file.
63008         * modules/unictype/property-extender-tests: New file.
63009         * modules/unictype/property-format-control-tests: New file.
63010         * modules/unictype/property-grapheme-base-tests: New file.
63011         * modules/unictype/property-grapheme-extend-tests: New file.
63012         * modules/unictype/property-grapheme-link-tests: New file.
63013         * modules/unictype/property-hex-digit-tests: New file.
63014         * modules/unictype/property-hyphen-tests: New file.
63015         * modules/unictype/property-id-continue-tests: New file.
63016         * modules/unictype/property-id-start-tests: New file.
63017         * modules/unictype/property-ideographic-tests: New file.
63018         * modules/unictype/property-ids-binary-operator-tests: New file.
63019         * modules/unictype/property-ids-trinary-operator-tests: New file.
63020         * modules/unictype/property-ignorable-control-tests: New file.
63021         * modules/unictype/property-iso-control-tests: New file.
63022         * modules/unictype/property-join-control-tests: New file.
63023         * modules/unictype/property-left-of-pair-tests: New file.
63024         * modules/unictype/property-line-separator-tests: New file.
63025         * modules/unictype/property-logical-order-exception-tests: New file.
63026         * modules/unictype/property-lowercase-tests: New file.
63027         * modules/unictype/property-math-tests: New file.
63028         * modules/unictype/property-non-break-tests: New file.
63029         * modules/unictype/property-not-a-character-tests: New file.
63030         * modules/unictype/property-numeric-tests: New file.
63031         * modules/unictype/property-other-alphabetic-tests: New file.
63032         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63033         * modules/unictype/property-other-grapheme-extend-tests: New file.
63034         * modules/unictype/property-other-id-continue-tests: New file.
63035         * modules/unictype/property-other-id-start-tests: New file.
63036         * modules/unictype/property-other-lowercase-tests: New file.
63037         * modules/unictype/property-other-math-tests: New file.
63038         * modules/unictype/property-other-uppercase-tests: New file.
63039         * modules/unictype/property-paired-punctuation-tests: New file.
63040         * modules/unictype/property-paragraph-separator-tests: New file.
63041         * modules/unictype/property-pattern-syntax-tests: New file.
63042         * modules/unictype/property-pattern-white-space-tests: New file.
63043         * modules/unictype/property-private-use-tests: New file.
63044         * modules/unictype/property-punctuation-tests: New file.
63045         * modules/unictype/property-quotation-mark-tests: New file.
63046         * modules/unictype/property-radical-tests: New file.
63047         * modules/unictype/property-sentence-terminal-tests: New file.
63048         * modules/unictype/property-soft-dotted-tests: New file.
63049         * modules/unictype/property-space-tests: New file.
63050         * modules/unictype/property-terminal-punctuation-tests: New file.
63051         * modules/unictype/property-test-tests: New file.
63052         * modules/unictype/property-titlecase-tests: New file.
63053         * modules/unictype/property-unassigned-code-value-tests: New file.
63054         * modules/unictype/property-unified-ideograph-tests: New file.
63055         * modules/unictype/property-uppercase-tests: New file.
63056         * modules/unictype/property-variation-selector-tests: New file.
63057         * modules/unictype/property-white-space-tests: New file.
63058         * modules/unictype/property-xid-continue-tests: New file.
63059         * modules/unictype/property-xid-start-tests: New file.
63060         * modules/unictype/property-zero-width-tests: New file.
63061         * modules/unictype/scripts-tests: New file.
63062         * modules/unictype/syntax-c-ident-tests: New file.
63063         * modules/unictype/syntax-c-whitespace-tests: New file.
63064         * modules/unictype/syntax-java-ident-tests: New file.
63065         * modules/unictype/syntax-java-whitespace-tests: New file.
63066         * tests/unictype/test-bidi_byname.c: New file.
63067         * tests/unictype/test-bidi_name.c: New file.
63068         * tests/unictype/test-bidi_of.c: New file.
63069         * tests/unictype/test-bidi_test.c: New file.
63070         * tests/unictype/test-block_list.c: New file.
63071         * tests/unictype/test-block_of.c: New file.
63072         * tests/unictype/test-block_test.c: New file.
63073         * tests/unictype/test-categ_and.c: New file.
63074         * tests/unictype/test-categ_and_not.c: New file.
63075         * tests/unictype/test-categ_byname.c: New file.
63076         * tests/unictype/test-categ_name.c: New file.
63077         * tests/unictype/test-categ_none.c: New file.
63078         * tests/unictype/test-categ_of.c: New file.
63079         * tests/unictype/test-categ_or.c: New file.
63080         * tests/unictype/test-categ_test_withtable.c: New file.
63081         * tests/unictype/test-combining.c: New file.
63082         * tests/unictype/test-decdigit.c: New file.
63083         * tests/unictype/test-digit.c: New file.
63084         * tests/unictype/test-mirror.c: New file.
63085         * tests/unictype/test-numeric.c: New file.
63086         * tests/unictype/test-pr_byname.c: New file.
63087         * tests/unictype/test-pr_test.c: New file.
63088         * tests/unictype/test-predicate-part1.h: New file.
63089         * tests/unictype/test-predicate-part2.h: New file.
63090         * tests/unictype/test-scripts.c: New file.
63091         * tests/unictype/test-sy_c_ident.c: New file.
63092         * tests/unictype/test-sy_java_ident.c: New file.
63093
63094         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63095         for Unicode 5.0.0.
63096         * tests/unictype/test-categ_Cc.c: Likewise.
63097         * tests/unictype/test-categ_Cf.c: Likewise.
63098         * tests/unictype/test-categ_Cn.c: Likewise.
63099         * tests/unictype/test-categ_Co.c: Likewise.
63100         * tests/unictype/test-categ_Cs.c: Likewise.
63101         * tests/unictype/test-categ_L.c: Likewise.
63102         * tests/unictype/test-categ_Ll.c: Likewise.
63103         * tests/unictype/test-categ_Lm.c: Likewise.
63104         * tests/unictype/test-categ_Lo.c: Likewise.
63105         * tests/unictype/test-categ_Lt.c: Likewise.
63106         * tests/unictype/test-categ_Lu.c: Likewise.
63107         * tests/unictype/test-categ_M.c: Likewise.
63108         * tests/unictype/test-categ_Mc.c: Likewise.
63109         * tests/unictype/test-categ_Me.c: Likewise.
63110         * tests/unictype/test-categ_Mn.c: Likewise.
63111         * tests/unictype/test-categ_N.c: Likewise.
63112         * tests/unictype/test-categ_Nd.c: Likewise.
63113         * tests/unictype/test-categ_Nl.c: Likewise.
63114         * tests/unictype/test-categ_No.c: Likewise.
63115         * tests/unictype/test-categ_P.c: Likewise.
63116         * tests/unictype/test-categ_Pc.c: Likewise.
63117         * tests/unictype/test-categ_Pd.c: Likewise.
63118         * tests/unictype/test-categ_Pe.c: Likewise.
63119         * tests/unictype/test-categ_Pf.c: Likewise.
63120         * tests/unictype/test-categ_Pi.c: Likewise.
63121         * tests/unictype/test-categ_Po.c: Likewise.
63122         * tests/unictype/test-categ_Ps.c: Likewise.
63123         * tests/unictype/test-categ_S.c: Likewise.
63124         * tests/unictype/test-categ_Sc.c: Likewise.
63125         * tests/unictype/test-categ_Sk.c: Likewise.
63126         * tests/unictype/test-categ_Sm.c: Likewise.
63127         * tests/unictype/test-categ_So.c: Likewise.
63128         * tests/unictype/test-categ_Z.c: Likewise.
63129         * tests/unictype/test-categ_Zl.c: Likewise.
63130         * tests/unictype/test-categ_Zp.c: Likewise.
63131         * tests/unictype/test-categ_Zs.c: Likewise.
63132         * tests/unictype/test-ctype_alnum.c: Likewise.
63133         * tests/unictype/test-ctype_alpha.c: Likewise.
63134         * tests/unictype/test-ctype_blank.c: Likewise.
63135         * tests/unictype/test-ctype_cntrl.c: Likewise.
63136         * tests/unictype/test-ctype_digit.c: Likewise.
63137         * tests/unictype/test-ctype_graph.c: Likewise.
63138         * tests/unictype/test-ctype_lower.c: Likewise.
63139         * tests/unictype/test-ctype_print.c: Likewise.
63140         * tests/unictype/test-ctype_punct.c: Likewise.
63141         * tests/unictype/test-ctype_space.c: Likewise.
63142         * tests/unictype/test-ctype_upper.c: Likewise.
63143         * tests/unictype/test-ctype_xdigit.c: Likewise.
63144         * tests/unictype/test-decdigit.h: Likewise.
63145         * tests/unictype/test-digit.h: Likewise.
63146         * tests/unictype/test-numeric.h: Likewise.
63147         * tests/unictype/test-pr_alphabetic.c: Likewise.
63148         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63149         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63150         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63151         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63152         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63153         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63154         * tests/unictype/test-pr_bidi_control.c: Likewise.
63155         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63156         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63157         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63158         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63159         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63160         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63161         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63162         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63163         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63164         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63165         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63166         * tests/unictype/test-pr_combining.c: Likewise.
63167         * tests/unictype/test-pr_composite.c: Likewise.
63168         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63169         * tests/unictype/test-pr_dash.c: Likewise.
63170         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63171         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63172         * tests/unictype/test-pr_deprecated.c: Likewise.
63173         * tests/unictype/test-pr_diacritic.c: Likewise.
63174         * tests/unictype/test-pr_extender.c: Likewise.
63175         * tests/unictype/test-pr_format_control.c: Likewise.
63176         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63177         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63178         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63179         * tests/unictype/test-pr_hex_digit.c: Likewise.
63180         * tests/unictype/test-pr_hyphen.c: Likewise.
63181         * tests/unictype/test-pr_id_continue.c: Likewise.
63182         * tests/unictype/test-pr_id_start.c: Likewise.
63183         * tests/unictype/test-pr_ideographic.c: Likewise.
63184         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63185         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63186         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63187         * tests/unictype/test-pr_iso_control.c: Likewise.
63188         * tests/unictype/test-pr_join_control.c: Likewise.
63189         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63190         * tests/unictype/test-pr_line_separator.c: Likewise.
63191         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63192         * tests/unictype/test-pr_lowercase.c: Likewise.
63193         * tests/unictype/test-pr_math.c: Likewise.
63194         * tests/unictype/test-pr_non_break.c: Likewise.
63195         * tests/unictype/test-pr_not_a_character.c: Likewise.
63196         * tests/unictype/test-pr_numeric.c: Likewise.
63197         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63198         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63199         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63200         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63201         * tests/unictype/test-pr_other_id_start.c: Likewise.
63202         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63203         * tests/unictype/test-pr_other_math.c: Likewise.
63204         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63205         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63206         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63207         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63208         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63209         * tests/unictype/test-pr_private_use.c: Likewise.
63210         * tests/unictype/test-pr_punctuation.c: Likewise.
63211         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63212         * tests/unictype/test-pr_radical.c: Likewise.
63213         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63214         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63215         * tests/unictype/test-pr_space.c: Likewise.
63216         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63217         * tests/unictype/test-pr_titlecase.c: Likewise.
63218         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63219         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63220         * tests/unictype/test-pr_uppercase.c: Likewise.
63221         * tests/unictype/test-pr_variation_selector.c: Likewise.
63222         * tests/unictype/test-pr_white_space.c: Likewise.
63223         * tests/unictype/test-pr_xid_continue.c: Likewise.
63224         * tests/unictype/test-pr_xid_start.c: Likewise.
63225         * tests/unictype/test-pr_zero_width.c: Likewise.
63226         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63227         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63228
63229 2007-11-12  Bruno Haible  <bruno@clisp.org>
63230
63231         Unicode character classification functions.
63232         * lib/unictype.h: New file.
63233         * modules/unictype/base: New file.
63234         * modules/unictype/category-L: New file.
63235         * modules/unictype/category-Lu: New file.
63236         * modules/unictype/category-Ll: New file.
63237         * modules/unictype/category-Lt: New file.
63238         * modules/unictype/category-Lm: New file.
63239         * modules/unictype/category-Lo: New file.
63240         * modules/unictype/category-M: New file.
63241         * modules/unictype/category-Mn: New file.
63242         * modules/unictype/category-Mc: New file.
63243         * modules/unictype/category-Me: New file.
63244         * modules/unictype/category-N: New file.
63245         * modules/unictype/category-Nd: New file.
63246         * modules/unictype/category-Nl: New file.
63247         * modules/unictype/category-No: New file.
63248         * modules/unictype/category-P: New file.
63249         * modules/unictype/category-Pc: New file.
63250         * modules/unictype/category-Pd: New file.
63251         * modules/unictype/category-Ps: New file.
63252         * modules/unictype/category-Pe: New file.
63253         * modules/unictype/category-Pi: New file.
63254         * modules/unictype/category-Pf: New file.
63255         * modules/unictype/category-Po: New file.
63256         * modules/unictype/category-S: New file.
63257         * modules/unictype/category-Sm: New file.
63258         * modules/unictype/category-Sc: New file.
63259         * modules/unictype/category-Sk: New file.
63260         * modules/unictype/category-So: New file.
63261         * modules/unictype/category-Z: New file.
63262         * modules/unictype/category-Zs: New file.
63263         * modules/unictype/category-Zl: New file.
63264         * modules/unictype/category-Zp: New file.
63265         * modules/unictype/category-C: New file.
63266         * modules/unictype/category-Cc: New file.
63267         * modules/unictype/category-Cf: New file.
63268         * modules/unictype/category-Cs: New file.
63269         * modules/unictype/category-Co: New file.
63270         * modules/unictype/category-Cn: New file.
63271         * modules/unictype/category-or: New file.
63272         * modules/unictype/category-of: New file.
63273         * modules/unictype/category-test: New file.
63274         * modules/unictype/category-test-withtable: New file.
63275         * modules/unictype/category-byname: New file.
63276         * modules/unictype/category-none: New file.
63277         * modules/unictype/category-and: New file.
63278         * modules/unictype/category-and-not: New file.
63279         * modules/unictype/category-name: New file.
63280         * modules/unictype/combining-class: New file.
63281         * modules/unictype/category-all: New file.
63282         * modules/unictype/bidicategory-all: New file.
63283         * modules/unictype/bidicategory-byname: New file.
63284         * modules/unictype/bidicategory-name: New file.
63285         * modules/unictype/bidicategory-of: New file.
63286         * modules/unictype/bidicategory-test: New file.
63287         * modules/unictype/decimal-digit: New file.
63288         * modules/unictype/digit: New file.
63289         * modules/unictype/numeric: New file.
63290         * modules/unictype/mirror: New file.
63291         * modules/unictype/property-white-space: New file.
63292         * modules/unictype/property-alphabetic: New file.
63293         * modules/unictype/property-other-alphabetic: New file.
63294         * modules/unictype/property-not-a-character: New file.
63295         * modules/unictype/property-default-ignorable-code-point: New file.
63296         * modules/unictype/property-other-default-ignorable-code-point: New
63297         file.
63298         * modules/unictype/property-deprecated: New file.
63299         * modules/unictype/property-logical-order-exception: New file.
63300         * modules/unictype/property-variation-selector: New file.
63301         * modules/unictype/property-private-use: New file.
63302         * modules/unictype/property-unassigned-code-value: New file.
63303         * modules/unictype/property-uppercase: New file.
63304         * modules/unictype/property-other-uppercase: New file.
63305         * modules/unictype/property-lowercase: New file.
63306         * modules/unictype/property-other-lowercase: New file.
63307         * modules/unictype/property-titlecase: New file.
63308         * modules/unictype/property-soft-dotted: New file.
63309         * modules/unictype/property-id-start: New file.
63310         * modules/unictype/property-other-id-start: New file.
63311         * modules/unictype/property-id-continue: New file.
63312         * modules/unictype/property-other-id-continue: New file.
63313         * modules/unictype/property-xid-start: New file.
63314         * modules/unictype/property-xid-continue: New file.
63315         * modules/unictype/property-pattern-white-space: New file.
63316         * modules/unictype/property-pattern-syntax: New file.
63317         * modules/unictype/property-join-control: New file.
63318         * modules/unictype/property-grapheme-base: New file.
63319         * modules/unictype/property-grapheme-extend: New file.
63320         * modules/unictype/property-other-grapheme-extend: New file.
63321         * modules/unictype/property-grapheme-link: New file.
63322         * modules/unictype/property-bidi-control: New file.
63323         * modules/unictype/property-bidi-left-to-right: New file.
63324         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63325         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63326         * modules/unictype/property-bidi-european-digit: New file.
63327         * modules/unictype/property-bidi-eur-num-separator: New file.
63328         * modules/unictype/property-bidi-eur-num-terminator: New file.
63329         * modules/unictype/property-bidi-arabic-digit: New file.
63330         * modules/unictype/property-bidi-common-separator: New file.
63331         * modules/unictype/property-bidi-block-separator: New file.
63332         * modules/unictype/property-bidi-segment-separator: New file.
63333         * modules/unictype/property-bidi-whitespace: New file.
63334         * modules/unictype/property-bidi-non-spacing-mark: New file.
63335         * modules/unictype/property-bidi-boundary-neutral: New file.
63336         * modules/unictype/property-bidi-pdf: New file.
63337         * modules/unictype/property-bidi-embedding-or-override: New file.
63338         * modules/unictype/property-bidi-other-neutral: New file.
63339         * modules/unictype/property-hex-digit: New file.
63340         * modules/unictype/property-ascii-hex-digit: New file.
63341         * modules/unictype/property-ideographic: New file.
63342         * modules/unictype/property-unified-ideograph: New file.
63343         * modules/unictype/property-radical: New file.
63344         * modules/unictype/property-ids-binary-operator: New file.
63345         * modules/unictype/property-ids-trinary-operator: New file.
63346         * modules/unictype/property-zero-width: New file.
63347         * modules/unictype/property-space: New file.
63348         * modules/unictype/property-non-break: New file.
63349         * modules/unictype/property-iso-control: New file.
63350         * modules/unictype/property-format-control: New file.
63351         * modules/unictype/property-dash: New file.
63352         * modules/unictype/property-hyphen: New file.
63353         * modules/unictype/property-punctuation: New file.
63354         * modules/unictype/property-line-separator: New file.
63355         * modules/unictype/property-paragraph-separator: New file.
63356         * modules/unictype/property-quotation-mark: New file.
63357         * modules/unictype/property-sentence-terminal: New file.
63358         * modules/unictype/property-terminal-punctuation: New file.
63359         * modules/unictype/property-currency-symbol: New file.
63360         * modules/unictype/property-math: New file.
63361         * modules/unictype/property-other-math: New file.
63362         * modules/unictype/property-paired-punctuation: New file.
63363         * modules/unictype/property-left-of-pair: New file.
63364         * modules/unictype/property-combining: New file.
63365         * modules/unictype/property-composite: New file.
63366         * modules/unictype/property-decimal-digit: New file.
63367         * modules/unictype/property-numeric: New file.
63368         * modules/unictype/property-diacritic: New file.
63369         * modules/unictype/property-extender: New file.
63370         * modules/unictype/property-ignorable-control: New file.
63371         * modules/unictype/property-test: New file.
63372         * modules/unictype/property-byname: New file.
63373         * modules/unictype/property-all: New file.
63374         * modules/unictype/scripts: New file.
63375         * modules/unictype/scripts-all: New file.
63376         * modules/unictype/block-of: New file.
63377         * modules/unictype/block-test: New file.
63378         * modules/unictype/block-list: New file.
63379         * modules/unictype/block-all: New file.
63380         * modules/unictype/syntax-c-whitespace: New file.
63381         * modules/unictype/syntax-java-whitespace: New file.
63382         * modules/unictype/syntax-c-ident: New file.
63383         * modules/unictype/syntax-java-ident: New file.
63384         * modules/unictype/ctype-alnum: New file.
63385         * modules/unictype/ctype-alpha: New file.
63386         * modules/unictype/ctype-cntrl: New file.
63387         * modules/unictype/ctype-digit: New file.
63388         * modules/unictype/ctype-graph: New file.
63389         * modules/unictype/ctype-lower: New file.
63390         * modules/unictype/ctype-print: New file.
63391         * modules/unictype/ctype-punct: New file.
63392         * modules/unictype/ctype-space: New file.
63393         * modules/unictype/ctype-upper: New file.
63394         * modules/unictype/ctype-xdigit: New file.
63395         * modules/unictype/ctype-blank: New file.
63396         * lib/unictype/bidi_byname.c: New file.
63397         * lib/unictype/bidi_name.c: New file.
63398         * lib/unictype/bidi_of.c: New file.
63399         * lib/unictype/bidi_test.c: New file.
63400         * lib/unictype/bitmap.h: New file.
63401         * lib/unictype/block_test.c: New file.
63402         * lib/unictype/blocks.c: New file.
63403         * lib/unictype/categ_C.c: New file.
63404         * lib/unictype/categ_Cc.c: New file.
63405         * lib/unictype/categ_Cf.c: New file.
63406         * lib/unictype/categ_Cn.c: New file.
63407         * lib/unictype/categ_Co.c: New file.
63408         * lib/unictype/categ_Cs.c: New file.
63409         * lib/unictype/categ_L.c: New file.
63410         * lib/unictype/categ_Ll.c: New file.
63411         * lib/unictype/categ_Lm.c: New file.
63412         * lib/unictype/categ_Lo.c: New file.
63413         * lib/unictype/categ_Lt.c: New file.
63414         * lib/unictype/categ_Lu.c: New file.
63415         * lib/unictype/categ_M.c: New file.
63416         * lib/unictype/categ_Mc.c: New file.
63417         * lib/unictype/categ_Me.c: New file.
63418         * lib/unictype/categ_Mn.c: New file.
63419         * lib/unictype/categ_N.c: New file.
63420         * lib/unictype/categ_Nd.c: New file.
63421         * lib/unictype/categ_Nl.c: New file.
63422         * lib/unictype/categ_No.c: New file.
63423         * lib/unictype/categ_P.c: New file.
63424         * lib/unictype/categ_Pc.c: New file.
63425         * lib/unictype/categ_Pd.c: New file.
63426         * lib/unictype/categ_Pe.c: New file.
63427         * lib/unictype/categ_Pf.c: New file.
63428         * lib/unictype/categ_Pi.c: New file.
63429         * lib/unictype/categ_Po.c: New file.
63430         * lib/unictype/categ_Ps.c: New file.
63431         * lib/unictype/categ_S.c: New file.
63432         * lib/unictype/categ_Sc.c: New file.
63433         * lib/unictype/categ_Sk.c: New file.
63434         * lib/unictype/categ_Sm.c: New file.
63435         * lib/unictype/categ_So.c: New file.
63436         * lib/unictype/categ_Z.c: New file.
63437         * lib/unictype/categ_Zl.c: New file.
63438         * lib/unictype/categ_Zp.c: New file.
63439         * lib/unictype/categ_Zs.c: New file.
63440         * lib/unictype/categ_and.c: New file.
63441         * lib/unictype/categ_and_not.c: New file.
63442         * lib/unictype/categ_byname.c: New file.
63443         * lib/unictype/categ_name.c: New file.
63444         * lib/unictype/categ_none.c: New file.
63445         * lib/unictype/categ_of.c: New file.
63446         * lib/unictype/categ_or.c: New file.
63447         * lib/unictype/categ_test.c: New file.
63448         * lib/unictype/combining.c: New file.
63449         * lib/unictype/ctype_alnum.c: New file.
63450         * lib/unictype/ctype_alpha.c: New file.
63451         * lib/unictype/ctype_blank.c: New file.
63452         * lib/unictype/ctype_cntrl.c: New file.
63453         * lib/unictype/ctype_digit.c: New file.
63454         * lib/unictype/ctype_graph.c: New file.
63455         * lib/unictype/ctype_lower.c: New file.
63456         * lib/unictype/ctype_print.c: New file.
63457         * lib/unictype/ctype_punct.c: New file.
63458         * lib/unictype/ctype_space.c: New file.
63459         * lib/unictype/ctype_upper.c: New file.
63460         * lib/unictype/ctype_xdigit.c: New file.
63461         * lib/unictype/decdigit.c: New file.
63462         * lib/unictype/digit.c: New file.
63463         * lib/unictype/identsyntaxmap.h: New file.
63464         * lib/unictype/mirror.c: New file.
63465         * lib/unictype/numeric.c: New file.
63466         * lib/unictype/pr_alphabetic.c: New file.
63467         * lib/unictype/pr_ascii_hex_digit.c: New file.
63468         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63469         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63470         * lib/unictype/pr_bidi_block_separator.c: New file.
63471         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63472         * lib/unictype/pr_bidi_common_separator.c: New file.
63473         * lib/unictype/pr_bidi_control.c: New file.
63474         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63475         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63476         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63477         * lib/unictype/pr_bidi_european_digit.c: New file.
63478         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63479         * lib/unictype/pr_bidi_left_to_right.c: New file.
63480         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63481         * lib/unictype/pr_bidi_other_neutral.c: New file.
63482         * lib/unictype/pr_bidi_pdf.c: New file.
63483         * lib/unictype/pr_bidi_segment_separator.c: New file.
63484         * lib/unictype/pr_bidi_whitespace.c: New file.
63485         * lib/unictype/pr_byname.c: New file.
63486         * lib/unictype/pr_byname.gperf: New file.
63487         * lib/unictype/pr_combining.c: New file.
63488         * lib/unictype/pr_composite.c: New file.
63489         * lib/unictype/pr_currency_symbol.c: New file.
63490         * lib/unictype/pr_dash.c: New file.
63491         * lib/unictype/pr_decimal_digit.c: New file.
63492         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63493         * lib/unictype/pr_deprecated.c: New file.
63494         * lib/unictype/pr_diacritic.c: New file.
63495         * lib/unictype/pr_extender.c: New file.
63496         * lib/unictype/pr_format_control.c: New file.
63497         * lib/unictype/pr_grapheme_base.c: New file.
63498         * lib/unictype/pr_grapheme_extend.c: New file.
63499         * lib/unictype/pr_grapheme_link.c: New file.
63500         * lib/unictype/pr_hex_digit.c: New file.
63501         * lib/unictype/pr_hyphen.c: New file.
63502         * lib/unictype/pr_id_continue.c: New file.
63503         * lib/unictype/pr_id_start.c: New file.
63504         * lib/unictype/pr_ideographic.c: New file.
63505         * lib/unictype/pr_ids_binary_operator.c: New file.
63506         * lib/unictype/pr_ids_trinary_operator.c: New file.
63507         * lib/unictype/pr_ignorable_control.c: New file.
63508         * lib/unictype/pr_iso_control.c: New file.
63509         * lib/unictype/pr_join_control.c: New file.
63510         * lib/unictype/pr_left_of_pair.c: New file.
63511         * lib/unictype/pr_line_separator.c: New file.
63512         * lib/unictype/pr_logical_order_exception.c: New file.
63513         * lib/unictype/pr_lowercase.c: New file.
63514         * lib/unictype/pr_math.c: New file.
63515         * lib/unictype/pr_non_break.c: New file.
63516         * lib/unictype/pr_not_a_character.c: New file.
63517         * lib/unictype/pr_numeric.c: New file.
63518         * lib/unictype/pr_other_alphabetic.c: New file.
63519         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63520         * lib/unictype/pr_other_grapheme_extend.c: New file.
63521         * lib/unictype/pr_other_id_continue.c: New file.
63522         * lib/unictype/pr_other_id_start.c: New file.
63523         * lib/unictype/pr_other_lowercase.c: New file.
63524         * lib/unictype/pr_other_math.c: New file.
63525         * lib/unictype/pr_other_uppercase.c: New file.
63526         * lib/unictype/pr_paired_punctuation.c: New file.
63527         * lib/unictype/pr_paragraph_separator.c: New file.
63528         * lib/unictype/pr_pattern_syntax.c: New file.
63529         * lib/unictype/pr_pattern_white_space.c: New file.
63530         * lib/unictype/pr_private_use.c: New file.
63531         * lib/unictype/pr_punctuation.c: New file.
63532         * lib/unictype/pr_quotation_mark.c: New file.
63533         * lib/unictype/pr_radical.c: New file.
63534         * lib/unictype/pr_sentence_terminal.c: New file.
63535         * lib/unictype/pr_soft_dotted.c: New file.
63536         * lib/unictype/pr_space.c: New file.
63537         * lib/unictype/pr_terminal_punctuation.c: New file.
63538         * lib/unictype/pr_test.c: New file.
63539         * lib/unictype/pr_titlecase.c: New file.
63540         * lib/unictype/pr_unassigned_code_value.c: New file.
63541         * lib/unictype/pr_unified_ideograph.c: New file.
63542         * lib/unictype/pr_uppercase.c: New file.
63543         * lib/unictype/pr_variation_selector.c: New file.
63544         * lib/unictype/pr_white_space.c: New file.
63545         * lib/unictype/pr_xid_continue.c: New file.
63546         * lib/unictype/pr_xid_start.c: New file.
63547         * lib/unictype/pr_zero_width.c: New file.
63548         * lib/unictype/scripts.c: New file.
63549         * lib/unictype/sy_c_ident.c: New file.
63550         * lib/unictype/sy_c_whitespace.c: New file.
63551         * lib/unictype/sy_java_ident.c: New file.
63552         * lib/unictype/sy_java_whitespace.c: New file.
63553
63554         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63555         Unicode 5.0.0.
63556         * lib/unictype/blocks.h: Likewise.
63557         * lib/unictype/categ_C.h: Likewise.
63558         * lib/unictype/categ_Cc.h: Likewise.
63559         * lib/unictype/categ_Cf.h: Likewise.
63560         * lib/unictype/categ_Cn.h: Likewise.
63561         * lib/unictype/categ_Co.h: Likewise.
63562         * lib/unictype/categ_Cs.h: Likewise.
63563         * lib/unictype/categ_L.h: Likewise.
63564         * lib/unictype/categ_Ll.h: Likewise.
63565         * lib/unictype/categ_Lm.h: Likewise.
63566         * lib/unictype/categ_Lo.h: Likewise.
63567         * lib/unictype/categ_Lt.h: Likewise.
63568         * lib/unictype/categ_Lu.h: Likewise.
63569         * lib/unictype/categ_M.h: Likewise.
63570         * lib/unictype/categ_Mc.h: Likewise.
63571         * lib/unictype/categ_Me.h: Likewise.
63572         * lib/unictype/categ_Mn.h: Likewise.
63573         * lib/unictype/categ_N.h: Likewise.
63574         * lib/unictype/categ_Nd.h: Likewise.
63575         * lib/unictype/categ_Nl.h: Likewise.
63576         * lib/unictype/categ_No.h: Likewise.
63577         * lib/unictype/categ_P.h: Likewise.
63578         * lib/unictype/categ_Pc.h: Likewise.
63579         * lib/unictype/categ_Pd.h: Likewise.
63580         * lib/unictype/categ_Pe.h: Likewise.
63581         * lib/unictype/categ_Pf.h: Likewise.
63582         * lib/unictype/categ_Pi.h: Likewise.
63583         * lib/unictype/categ_Po.h: Likewise.
63584         * lib/unictype/categ_Ps.h: Likewise.
63585         * lib/unictype/categ_S.h: Likewise.
63586         * lib/unictype/categ_Sc.h: Likewise.
63587         * lib/unictype/categ_Sk.h: Likewise.
63588         * lib/unictype/categ_Sm.h: Likewise.
63589         * lib/unictype/categ_So.h: Likewise.
63590         * lib/unictype/categ_Z.h: Likewise.
63591         * lib/unictype/categ_Zl.h: Likewise.
63592         * lib/unictype/categ_Zp.h: Likewise.
63593         * lib/unictype/categ_Zs.h: Likewise.
63594         * lib/unictype/categ_of.h: Likewise.
63595         * lib/unictype/combining.h: Likewise.
63596         * lib/unictype/ctype_alnum.h: Likewise.
63597         * lib/unictype/ctype_alpha.h: Likewise.
63598         * lib/unictype/ctype_blank.h: Likewise.
63599         * lib/unictype/ctype_cntrl.h: Likewise.
63600         * lib/unictype/ctype_digit.h: Likewise.
63601         * lib/unictype/ctype_graph.h: Likewise.
63602         * lib/unictype/ctype_lower.h: Likewise.
63603         * lib/unictype/ctype_print.h: Likewise.
63604         * lib/unictype/ctype_punct.h: Likewise.
63605         * lib/unictype/ctype_space.h: Likewise.
63606         * lib/unictype/ctype_upper.h: Likewise.
63607         * lib/unictype/ctype_xdigit.h: Likewise.
63608         * lib/unictype/decdigit.h: Likewise.
63609         * lib/unictype/digit.h: Likewise.
63610         * lib/unictype/mirror.h: Likewise.
63611         * lib/unictype/numeric.h: Likewise.
63612         * lib/unictype/pr_alphabetic.h: Likewise.
63613         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63614         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63615         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63616         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63617         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63618         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63619         * lib/unictype/pr_bidi_control.h: Likewise.
63620         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63621         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63622         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63623         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63624         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63625         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63626         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63627         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63628         * lib/unictype/pr_bidi_pdf.h: Likewise.
63629         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63630         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63631         * lib/unictype/pr_combining.h: Likewise.
63632         * lib/unictype/pr_composite.h: Likewise.
63633         * lib/unictype/pr_currency_symbol.h: Likewise.
63634         * lib/unictype/pr_dash.h: Likewise.
63635         * lib/unictype/pr_decimal_digit.h: Likewise.
63636         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63637         * lib/unictype/pr_deprecated.h: Likewise.
63638         * lib/unictype/pr_diacritic.h: Likewise.
63639         * lib/unictype/pr_extender.h: Likewise.
63640         * lib/unictype/pr_format_control.h: Likewise.
63641         * lib/unictype/pr_grapheme_base.h: Likewise.
63642         * lib/unictype/pr_grapheme_extend.h: Likewise.
63643         * lib/unictype/pr_grapheme_link.h: Likewise.
63644         * lib/unictype/pr_hex_digit.h: Likewise.
63645         * lib/unictype/pr_hyphen.h: Likewise.
63646         * lib/unictype/pr_id_continue.h: Likewise.
63647         * lib/unictype/pr_id_start.h: Likewise.
63648         * lib/unictype/pr_ideographic.h: Likewise.
63649         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63650         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63651         * lib/unictype/pr_ignorable_control.h: Likewise.
63652         * lib/unictype/pr_iso_control.h: Likewise.
63653         * lib/unictype/pr_join_control.h: Likewise.
63654         * lib/unictype/pr_left_of_pair.h: Likewise.
63655         * lib/unictype/pr_line_separator.h: Likewise.
63656         * lib/unictype/pr_logical_order_exception.h: Likewise.
63657         * lib/unictype/pr_lowercase.h: Likewise.
63658         * lib/unictype/pr_math.h: Likewise.
63659         * lib/unictype/pr_non_break.h: Likewise.
63660         * lib/unictype/pr_not_a_character.h: Likewise.
63661         * lib/unictype/pr_numeric.h: Likewise.
63662         * lib/unictype/pr_other_alphabetic.h: Likewise.
63663         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63664         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63665         * lib/unictype/pr_other_id_continue.h: Likewise.
63666         * lib/unictype/pr_other_id_start.h: Likewise.
63667         * lib/unictype/pr_other_lowercase.h: Likewise.
63668         * lib/unictype/pr_other_math.h: Likewise.
63669         * lib/unictype/pr_other_uppercase.h: Likewise.
63670         * lib/unictype/pr_paired_punctuation.h: Likewise.
63671         * lib/unictype/pr_paragraph_separator.h: Likewise.
63672         * lib/unictype/pr_pattern_syntax.h: Likewise.
63673         * lib/unictype/pr_pattern_white_space.h: Likewise.
63674         * lib/unictype/pr_private_use.h: Likewise.
63675         * lib/unictype/pr_punctuation.h: Likewise.
63676         * lib/unictype/pr_quotation_mark.h: Likewise.
63677         * lib/unictype/pr_radical.h: Likewise.
63678         * lib/unictype/pr_sentence_terminal.h: Likewise.
63679         * lib/unictype/pr_soft_dotted.h: Likewise.
63680         * lib/unictype/pr_space.h: Likewise.
63681         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63682         * lib/unictype/pr_titlecase.h: Likewise.
63683         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63684         * lib/unictype/pr_unified_ideograph.h: Likewise.
63685         * lib/unictype/pr_uppercase.h: Likewise.
63686         * lib/unictype/pr_variation_selector.h: Likewise.
63687         * lib/unictype/pr_white_space.h: Likewise.
63688         * lib/unictype/pr_xid_continue.h: Likewise.
63689         * lib/unictype/pr_xid_start.h: Likewise.
63690         * lib/unictype/pr_zero_width.h: Likewise.
63691         * lib/unictype/scripts.h: Likewise.
63692         * lib/unictype/scripts_byname.gperf: Likewise.
63693         * lib/unictype/sy_c_ident.h: Likewise.
63694         * lib/unictype/sy_c_whitespace.h: Likewise.
63695         * lib/unictype/sy_java_ident.h: Likewise.
63696         * lib/unictype/sy_java_whitespace.h: Likewise.
63697
63698         * lib/unictype/Makefile: New file.
63699         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63700         glibc.
63701         * lib/unictype/3level.h: New file, copied from glibc.
63702         * lib/unictype/3levelbit.h: New file.
63703
63704 2007-11-11  Bruno Haible  <bruno@clisp.org>
63705
63706         * modules/gperf: New file.
63707         * modules/iconv_open (Depends-on): Add it.
63708         (Makefile.am): Remove the GPERF definition.
63709
63710 2007-11-11  Bruno Haible  <bruno@clisp.org>
63711
63712         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63713         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63714
63715 2007-11-11  Bruno Haible  <bruno@clisp.org>
63716
63717         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63718         (usage): Remove function.
63719
63720 2007-11-11  Bruno Haible  <bruno@clisp.org>
63721
63722         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63723         gl_FUNC_CEILF_LIBS.
63724         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63725         gl_FUNC_CEIL_LIBS.
63726         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63727         gl_FUNC_CEILL_LIBS.
63728         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63729         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63730         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63731
63732 2007-11-11  Bruno Haible  <bruno@clisp.org>
63733
63734         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63735         roundf were declared but do not exist on functions.
63736         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63737         roundl were declared but do not exist on functions.
63738         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63739         HAVE_FLOORL_AND_CEILL, respectively.
63740         Needed for Sun C on Solaris 10.
63741
63742 2007-11-11  Bruno Haible  <bruno@clisp.org>
63743
63744         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63745         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63746         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63747         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63748         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63749         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63750         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63751         HAVE_DECL_ROUNDF.
63752         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63753         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63755         of HAVE_DECL_ROUND*.
63756         * modules/math (Makefile.am): Update.
63757
63758 2007-11-10  Bruno Haible  <bruno@clisp.org>
63759
63760         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63761         ptrdiff_t as m4/intl.m4.
63762
63763 2007-11-10  Jim Meyering  <meyering@redhat.com>
63764
63765         Avoid link failure for the argmatch test.
63766         * tests/test-argmatch.c (usage): Define function to avoid a link
63767         failure: argmatch_die requires a usage function.
63768
63769 2007-11-09  Bruno Haible  <bruno@clisp.org>
63770
63771         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63772         * doc/functions/vsnprintf.texi: Likewise.
63773         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63774         with a size argument < 2.
63775
63776 2007-11-09  Bruno Haible  <bruno@clisp.org>
63777
63778         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63779         buffer. Fixes an inefficiency introduced on 2007-11-03.
63780
63781 2007-11-09  Bruno Haible  <bruno@clisp.org>
63782
63783         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63784         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63785
63786 2007-11-08  Jim Meyering  <meyering@redhat.com>
63787
63788         Change cache variable name prefix "jm_" to "gl_" everywhere.
63789         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63790         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63791         * m4/uptime.m4: s/gl_/jm_/
63792
63793 2007-11-07  Bruno Haible  <bruno@clisp.org>
63794
63795         Update to GNU gettext 0.17.
63796         * m4/intl.m4: Update to GNU gettext 0.17.
63797         * m4/po.m4: Likewise.
63798         * modules/gettext (Files): Remove m4/ulonglong.m4.
63799         (configure.ac): Require gettext infrastructure from version 0.17.
63800
63801 2007-11-06  Bruno Haible  <bruno@clisp.org>
63802
63803         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63804         symbolic values are not defined in a public header.
63805         * lib/freadable.c (freadable) [QNX]: Likewise.
63806         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63807         * lib/freading.c (freading) [QNX]: Likewise.
63808         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63809         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63810         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63811         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63812         Reported by Alain Magloire.
63813
63814         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63815
63816 2007-11-05  Bruno Haible  <bruno@clisp.org>
63817
63818         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63819         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63820         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63821         Reported by Eric Blake.
63822
63823 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63824             Bruno Haible  <bruno@clisp.org>
63825
63826         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63827         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63828         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63829         (malloc): Undefine also before including <stdlib.h>.
63830         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63831         Needed on OSF/1 4.0.
63832
63833 2007-11-05  Jim Meyering  <meyering@redhat.com>
63834
63835         git-version-gen: sync from coreutils.
63836         * build-aux/git-version-gen: Add comments.
63837         Change the first '-' to '.' in the snapshot version string,
63838         e.g., 6.9-377-08144 -> 6.9.377-08144
63839         Remove first parameter.
63840         Don't declare a version "-dirty" merely because a time
63841         stamp has changed.
63842
63843 2007-11-04  Bruno Haible  <bruno@clisp.org>
63844
63845         * lib/lock.h: Protect all macro definitions containing an 'if'
63846         statement through a "do { ... } while (0)".
63847         * lib/tls.h: Likewise.
63848
63849 2007-11-04  Bruno Haible  <bruno@clisp.org>
63850
63851         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63852
63853 2007-11-04  Bruno Haible  <bruno@clisp.org>
63854
63855         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63856         * modules/fprintf-posix (Depends-on): Add nocrash.
63857         * modules/snprintf-posix (Depends-on): Likewise.
63858         * modules/sprintf-posix (Depends-on): Likewise.
63859         * modules/vasnprintf-posix (Depends-on): Likewise.
63860         * modules/vasprintf-posix (Depends-on): Likewise.
63861         * modules/vfprintf-posix (Depends-on): Likewise.
63862         * modules/vsnprintf-posix (Depends-on): Likewise.
63863         * modules/vsprintf-posix (Depends-on): Likewise.
63864         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63865         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63866         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63867         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63868         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63869         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63870         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63871
63872 2007-11-04  Bruno Haible  <bruno@clisp.org>
63873
63874         * modules/nocrash: New file.
63875         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63876         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63877
63878 2007-11-04  Bruno Haible  <bruno@clisp.org>
63879
63880         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63881         precision handling.
63882         * tests/test-vasprintf-posix.c (test_function): Likewise.
63883         * tests/test-snprintf-posix.h (test_function): Likewise.
63884         * tests/test-sprintf-posix.h (test_function): Likewise.
63885
63886         Fix *printf behaviour for large precisions on mingw and BeOS.
63887         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63888         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63890         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63891         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63892         gl_PRINTF_PRECISION and test its result. Invoke
63893         gl_PREREQ_VASNPRINTF_PRECISION.
63894         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63895         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63896         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63898         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63899         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63900         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63901         * doc/functions/fprintf.texi: Update.
63902         * doc/functions/printf.texi: Update.
63903         * doc/functions/snprintf.texi: Update.
63904         * doc/functions/sprintf.texi: Update.
63905         * doc/functions/vfprintf.texi: Update.
63906         * doc/functions/vprintf.texi: Update.
63907         * doc/functions/vsnprintf.texi: Update.
63908         * doc/functions/vsprintf.texi: Update.
63909
63910 2007-11-04  Bruno Haible  <bruno@clisp.org>
63911
63912         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63913
63914 2007-11-04  Bruno Haible  <bruno@clisp.org>
63915
63916         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63917         Reported by Sylvain Beucler <beuc@gnu.org>.
63918
63919 2007-11-03  Bruno Haible  <bruno@clisp.org>
63920
63921         * tests/test-fprintf-posix2.sh: New file.
63922         * tests/test-fprintf-posix2.c: New file.
63923         * modules/fprintf-posix-tests (Files): Add them.
63924         (TESTS): Add test-fprintf-posix2.sh.
63925         (configure.ac): Check for getrlimit and setrlimit.
63926         (check_PROGRAMS): Add test-fprintf-posix2.
63927
63928         * tests/test-printf-posix2.sh: New file.
63929         * tests/test-printf-posix2.c: New file.
63930         * modules/printf-posix-tests (Files): Add them.
63931         (TESTS): Add test-printf-posix2.sh.
63932         (configure.ac): Check for getrlimit and setrlimit.
63933         (check_PROGRAMS): Add test-printf-posix2.
63934
63935         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63936         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63937         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63938         (decode_double): New function, copied from decode_long_double.
63939         (scale10_round_decimal_decoded): New function, extracted from
63940         scale10_round_decimal_long_double.
63941         (scale10_round_decimal_long_double): Use it.
63942         (scale10_round_decimal_double): New function.
63943         (floorlog10): New function.
63944         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63946         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63947         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63948         gl_PRINTF_ENOMEM and test its result. Invoke
63949         gl_PREREQ_VASNPRINTF_ENOMEM.
63950         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63951         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63952         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63953         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63954         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63955         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63956         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63957         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63958         * modules/snprintf-posix (Depends-on): Likewise.
63959         * modules/sprintf-posix (Depends-on): Likewise.
63960         * modules/vasnprintf-posix (Depends-on): Likewise.
63961         * modules/vasprintf-posix (Depends-on): Likewise.
63962         * modules/vfprintf-posix (Depends-on): Likewise.
63963         * modules/vsnprintf-posix (Depends-on): Likewise.
63964         * modules/vsprintf-posix (Depends-on): Likewise.
63965         * doc/functions/fprintf.texi: Update.
63966         * doc/functions/printf.texi: Update.
63967         * doc/functions/snprintf.texi: Update.
63968         * doc/functions/sprintf.texi: Update.
63969         * doc/functions/vfprintf.texi: Update.
63970         * doc/functions/vprintf.texi: Update.
63971         * doc/functions/vsnprintf.texi: Update.
63972         * doc/functions/vsprintf.texi: Update.
63973
63974 2007-11-03  Bruno Haible  <bruno@clisp.org>
63975
63976         * modules/frexp-nolibm-tests: New file.
63977
63978         * modules/frexp-nolibm: New file.
63979         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63980
63981 2007-11-03  Bruno Haible  <bruno@clisp.org>
63982
63983         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63984         value is C99 compliant.
63985         Needed for OSF/1 5.1.
63986
63987 2007-11-03  Bruno Haible  <bruno@clisp.org>
63988
63989         Fix out-of-memory handling of vasnprintf.
63990         * lib/printf-parse.c: Include <errno.h>.
63991         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63992         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63993         is already set.
63994
63995 2007-11-02  Eric Blake  <ebb9@byu.net>
63996
63997         Fix tests on cygwin.
63998         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63999
64000 2007-11-01  Bruno Haible  <bruno@clisp.org>
64001
64002         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64003         warning.
64004         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64005         needed for POSIX compatibility.
64006
64007 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64008
64009         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64010         for compatibility with GNU.
64011
64012 2007-11-01  Bruno Haible  <bruno@clisp.org>
64013
64014         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64015         (putenv): Renamed from rpl_putenv. Change argument type from
64016         'const char *' to 'char *'.
64017         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64018         of defining putenv in config.h, just set REPLACE_PUTENV.
64019         * modules/putenv (Depends-on): Add stdlib.
64020         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64021         (Include): Use <stdlib.h>.
64022         * lib/stdlib.in.h (putenv): New declaration.
64023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64024         REPLACE_PUTENV.
64025         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64026         REPLACE_PUTENV.
64027         Needed for MacOS X 10.5.0.
64028         Reported by Peter O'Gorman <peter@pogma.com>.
64029
64030 2007-11-01  Jim Meyering  <meyering@redhat.com>
64031
64032         Treat an empty date string exactly like "0".
64033         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64034         if the remaining date string (to be parsed) is empty, use "0".
64035         Reported by Mischa Molhoek and discussed in this thread:
64036         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64037
64038 2007-10-31  Bruno Haible  <bruno@clisp.org>
64039
64040         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64041         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64042         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64043         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64044         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64045         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64046
64047 2007-10-31  Bruno Haible  <bruno@clisp.org>
64048
64049         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64050         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64051         (AC_TYPE_LONG_LONG_INT): Use it.
64052         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64053         it as well.
64054         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64055         to m4/longlong.m4.
64056         * modules/stdint (Files): Remove m4/ulonglong.m4.
64057         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64058         m4/ulonglong.m4.
64059         * modules/strtoumax (Files): Likewise.
64060
64061 2007-10-30  Bruno Haible  <bruno@clisp.org>
64062
64063         * modules/xvasprintf-posix: New file.
64064         Suggested by Eric Blake.
64065
64066 2007-10-30  Bruno Haible  <bruno@clisp.org>
64067
64068         * modules/xprintf-posix-tests: New file.
64069         * tests/test-xprintf-posix.sh: New file.
64070         * tests/test-xprintf-posix.c: New file.
64071         * tests/test-xfprintf-posix.c: New file.
64072
64073         * modules/xprintf-posix: New file.
64074
64075 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64076
64077         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64078         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64079         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64080
64081 2007-10-29  Bruno Haible  <bruno@clisp.org>
64082
64083         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64084         contain the special marker '_cv_'.
64085         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64086         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64087         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64088         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64089         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64090         Reported by Ralf Wildenhues.
64091
64092 2007-10-29  Bruno Haible  <bruno@clisp.org>
64093
64094         * gnulib-tool (func_import): When --lgpl is not specified, set
64095         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64096         GPLv3.
64097         Reported by Simon Josefsson.
64098
64099 2007-10-28  Bruno Haible  <bruno@clisp.org>
64100
64101         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64102         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64103         HAVE_DECL_ISFINITE.
64104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64105         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64106         HAVE_DECL_ISFINITE.
64107
64108 2007-10-28  Bruno Haible  <bruno@clisp.org>
64109
64110         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64111         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64112
64113 2007-10-28  Bruno Haible  <bruno@clisp.org>
64114
64115         Fix link errors with Sun C 5.0 on Solaris 10.
64116         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64117         function is declared but not present in the compiler's libm.
64118         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64119         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64120         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64121         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64122         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64123         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64124         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64126         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64127         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64128         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64129         HAVE_DECL_FLOORL.
64130
64131 2007-10-28  Bruno Haible  <bruno@clisp.org>
64132
64133         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64134         gl_FUNC_FLOORL. Cache the result.
64135         (gl_FUNC_FLOORL): Use it.
64136         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64137         gl_FUNC_CEILL. Cache the result.
64138         (gl_FUNC_CEILL): Use it.
64139
64140         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64141         gl_FUNC_FLOOR. Cache the result.
64142         (gl_FUNC_FLOOR): Use it.
64143         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64144         gl_FUNC_CEIL. Cache the result.
64145         (gl_FUNC_CEIL): Use it.
64146
64147         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64148         gl_FUNC_FLOORF. Cache the result.
64149         (gl_FUNC_FLOORF): Use it.
64150         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64151         gl_FUNC_CEILF. Cache the result.
64152         (gl_FUNC_CEILF): Use it.
64153
64154 2007-10-28  Bruno Haible  <bruno@clisp.org>
64155
64156         * gnulib-tool: Allow specifying the LGPL version number through
64157         --lgpl=2 or --lgpl=3.
64158         (func_usage): Document --lgpl with argument.
64159         Handle --lgpl=... arguments.
64160         (func_import): Recognize also gl_LGPL calls with an argument. When
64161         --lgpl=2 is used and the module's license is just LGPL, report an
64162         error. Set sed_transform_lib_file according to the lgpl variable. In
64163         the generated files, use --lgpl or gl_LGPL invocations with argument,
64164         if necessary.
64165         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64166         an LGPv2+ license.
64167         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64168         gl_LGPL macro.
64169
64170 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64171             Bruno Haible  <bruno@clisp.org>
64172
64173         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64174         (u16_uctomb_aux): Likewise.
64175         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64176         !HAVE_INLINE.
64177         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64178
64179 2007-10-28  Bruno Haible  <bruno@clisp.org>
64180
64181         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64182         Invoke AM_GETTEXT_OPTION if it exists.
64183         * modules/vasprintf: Likewise.
64184         * modules/verror: Likewise.
64185         * modules/xprintf: Likewise.
64186         * modules/xvasprintf: Likewise.
64187
64188 2007-10-27  Ben Pfaff  <blp@gnu.org>
64189
64190         * lib/math.in.h: Define isfinite macro and prototypes for
64191         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64192         implementations.
64193         * m4/math_h.m4: New substitutions for isfinite module.
64194         * lib/isfinite.c: New file.
64195         * m4/isfinite.m4: New file.
64196         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64197         * modules/isfinite: New file.
64198         * modules/isfinite-tests: New file.
64199         * tests/tests-isfinite.c: New file.
64200         * doc/functions/isfinite.texi: Mention isfinite module.
64201         * MODULES.html.sh: Mention new module.
64202
64203 2007-10-27  Ben Pfaff  <blp@gnu.org>
64204
64205         Ralf Wildenhues reported that Tru64 4.0D declares the round
64206         functions but does not have definitions.
64207         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64208         cannot be found in any library, set the output variable to
64209         "missing" instead of "".
64210         * m4/round.m4: Also use our substitute if we cannot find round in
64211         any library, even if it is declared.
64212         * m4/roundf.m4: Likewise for roundf.
64213         * m4/roundl.m4: Likewise for roundl.
64214         * lib/math.in.h: Undefine roundf, round, roundl before defining
64215         their replacements, to allow for hypothetical systems where these
64216         may be defined as macros but not available in libraries.
64217
64218 2007-10-27  Bruno Haible  <bruno@clisp.org>
64219
64220         * doc/gnulib.texi: Invoke @firstparagraphindent.
64221         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64222         changes in gnulib.
64223         (Source changes): New section.
64224
64225 2007-10-26  Bruno Haible  <bruno@clisp.org>
64226
64227         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64228         borrowed from autoconf.
64229
64230 2007-10-26  Bruno Haible  <bruno@clisp.org>
64231
64232         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64233         strerror returned the empty string. Needed on HP-UX 11.00.
64234
64235 2007-10-24  Micah Cowan  <micah@cowan.name>
64236
64237         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64238         * build-aux/bootstrap: Remove support for now-unnecessary option,
64239         --cvs-user, and envvars CVS_USER, CVS_RSH.
64240
64241 2007-10-24  Jim Meyering  <meyering@redhat.com>
64242
64243         Avoid diagnostics from sha1sum when there is no cached checksum.
64244         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64245         if the po.s1 file hasn't been created yet.
64246
64247         * build-aux/bootstrap: Sync from coreutils:
64248         2007-10-24  Jim Meyering  <meyering@redhat.com>
64249         Get gnulib from the git repository, not from an obsolete cvs one.
64250         * build-aux/bootstrap: Suggestion from Micah Cowan.
64251         2007-10-04  Jim Meyering  <jim@meyering.net>
64252         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64253         (update_po_files): Work also when there are no .po files in po/.
64254
64255 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64256
64257         * README: Append ".git" to git and cg examples.
64258         Problem reported by Benoit Sigoure.
64259
64260 2007-10-23  Micah Cowan  <micah@cowan.name>
64261
64262         * users.txt: Add wget.
64263
64264 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64265
64266         Fix linking of some unistdio tests on FreeBSD.
64267         * modules/unistdio/u16-vsnprintf-tests
64268         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64269         * modules/unistdio/u16-vsprintf-tests
64270         (test_u16_vsnprintf1_LDADD): Likewise.
64271         * modules/unistdio/u32-vsnprintf-tests
64272         (test_u32_vsnprintf1_LDADD): Likewise.
64273         * modules/unistdio/u32-vsprintf-tests
64274         (test_u32_vsprintf1_LDADD): Likewise.
64275         * modules/unistdio/u8-vsnprintf-tests
64276         (test_u8_vsnprintf1_LDADD): Likewise.
64277         * modules/unistdio/u8-vsprintf-tests
64278         (test_u8_vsprintf1_LDADD): Likewise.
64279         * modules/unistdio/ulc-vsnprintf-tests
64280         (test_ulc_vsnprintf1_LDADD): Likewise.
64281         * modules/unistdio/ulc-vsprintf-tests
64282         (test_ulc_vsprintf1_LDADD): Likewise.
64283
64284         Fix linking of some uniconv tests on FreeBSD.
64285         * modules/uniconv/u16-conv-from-enc-tests
64286         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64287         * modules/uniconv/u16-conv-to-enc-tests
64288         (test_u16_conv_to_enc_LDADD): Likewise.
64289         * modules/uniconv/u16-strconv-from-enc-tests
64290         (test_u16_strconv_from_enc_LDADD): Likewise.
64291         * modules/uniconv/u16-strconv-to-enc-tests
64292         (test_u16_strconv_to_enc_LDADD): Likewise.
64293         * modules/uniconv/u32-conv-from-enc-tests
64294         (test_u32_conv_from_enc_LDADD): Likewise.
64295         * modules/uniconv/u32-conv-to-enc-tests
64296         (test_u32_conv_to_enc_LDADD): Likewise.
64297         * modules/uniconv/u32-strconv-from-enc-tests
64298         (test_u32_strconv_from_enc_LDADD): Likewise.
64299         * modules/uniconv/u32-strconv-to-enc-tests
64300         (test_u32_strconv_to_enc_LDADD): Likewise.
64301         * modules/uniconv/u8-conv-from-enc-tests
64302         (test_u8_conv_from_enc_LDADD): Likewise.
64303         * modules/uniconv/u8-conv-to-enc-tests
64304         (test_u8_conv_to_enc_LDADD): Likewise.
64305         * modules/uniconv/u8-strconv-from-enc-tests
64306         (test_u8_strconv_from_enc_LDADD): Likewise.
64307         * modules/uniconv/u8-strconv-to-enc-tests
64308         (test_u8_strconv_to_enc_LDADD): Likewise.
64309
64310 2007-10-22  Bruno Haible  <bruno@clisp.org>
64311
64312         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64313         size.
64314
64315 2007-10-22  Eric Blake  <ebb9@byu.net>
64316
64317         Tweak x*printf documentation.
64318         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64319         variable name and comments.
64320         Suggested by Bruno Haible.
64321
64322 2007-10-22  Bruno Haible  <bruno@clisp.org>
64323
64324         * lib/acl.c (copy_acl): Fix file name in comment.
64325
64326 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64327
64328         Fix Tru64 problem with stdbool.h.
64329         * lib/stdbool.in.h (false, true):
64330         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64331         Don't declare as an enum in this situation; it runs afoul of Tru64.
64332         Problem reported by Steven M. Schweda in
64333         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64334
64335 2007-10-22  Eric Blake  <ebb9@byu.net>
64336
64337         Also wrap vf?printf.
64338         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64339         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64340         (xvprintf, xvfprintf): New functions.
64341
64342 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64343
64344         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64345         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64346
64347         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64348         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64349
64350 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64351
64352         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64353         by Bruno Haible.
64354
64355 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64356
64357         * lib/getloadavg.c
64358         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64359         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64360
64361         * tests/test-i-ring.c: Work for C89.
64362
64363 2007-10-22  Bruno Haible  <bruno@clisp.org>
64364
64365         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64366         -1u, in preprocessor expression, so that we don't test for the bug
64367         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64369
64370 2007-10-22  Eric Blake  <ebb9@byu.net>
64371
64372         * tests/test-yesno.sh: Silence stderr during test.
64373
64374 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64375
64376         * modules/crypto/gc-camellia: New file.
64377
64378         * m4/gc-camellia.m4: New file.
64379
64380         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64381
64382         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64383
64384 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64385
64386         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64387         --help to stdout.  Reported by sms@antinode.org (Steven
64388         M. Schweda).
64389
64390 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64391
64392         * users.txt: Fix link to libksba.
64393
64394 2007-10-21  Ben Pfaff  <blp@gnu.org>
64395
64396         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64397         round.c roundf implementation that depends on floorf and ceilf to
64398         be tested unconditionally.
64399
64400 2007-10-21  Ben Pfaff  <blp@gnu.org>
64401
64402         * m4/check-libm-func.m4: Removed.
64403         * m4/check-math-lib.m4: New file.
64404         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64405         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64406         definition and lack of AC_LIBOBJ([roundf]).
64407         * m4/roundl.m4: Ditto, and similarly for roundl.
64408         * modules/round: Reference new m4 file.
64409         * modules/roundf: Ditto.
64410         * modules/roundl: Ditto.
64411         * tests/test-round2.c (main): Use ROUND instead of round.
64412         Bug report from Bruno Haible.
64413
64414 2007-10-21  Bruno Haible  <bruno@clisp.org>
64415
64416         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64417         context.
64418
64419 2007-10-21  Bruno Haible  <bruno@clisp.org>
64420
64421         * tests/test-wcwidth.c (main): Allow negative result for some control
64422         characters.
64423
64424         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64425         Needed on OSF/1 5.1.
64426
64427 2007-10-21  Bruno Haible  <bruno@clisp.org>
64428
64429         * tests/test-floorf1.c: Include isnanf.h.
64430         (main): Use isnanf() instead of isnan().
64431         * tests/test-ceilf1.c: Include isnanf.h.
64432         (main): Use isnanf() instead of isnan().
64433         * tests/test-truncf1.c: Include isnanf.h.
64434         (main): Use isnanf() instead of isnan().
64435         * tests/test-roundf1.c: Include isnanf.h.
64436         (main): Use isnanf() instead of isnan().
64437
64438 2007-10-21  Eric Blake  <ebb9@byu.net>
64439
64440         * users.txt: Update URL for m4.
64441
64442 2007-10-21  Bruno Haible  <bruno@clisp.org>
64443
64444         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64445
64446 2007-10-21  Bruno Haible  <bruno@clisp.org>
64447
64448         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64449         Git's management files if the CVS files are not present.
64450
64451 2007-10-20  Bruno Haible  <bruno@clisp.org>
64452
64453         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64454         gcc-3.4.x.
64455
64456 2007-10-20  Ben Pfaff  <blp@gnu.org>
64457
64458         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64459         implementations.
64460         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64461         * lib/round.c: New file.
64462         * lib/roundf.c: New file.
64463         * lib/roundl.c: New file.
64464         * m4/round.m4: New file.
64465         * m4/roundf.m4: New file.
64466         * m4/roundl.m4: New file.
64467         * m4/check-libm-func-m4: New file.
64468         * modules/math: Replace round, roundf, roundl related @VARS@ in
64469         math.in.h.
64470         * modules/round: New file.
64471         * modules/round-tests: New file.
64472         * modules/roundf: New file.
64473         * modules/roundf-tests: New file.
64474         * modules/roundl: New file.
64475         * modules/roundl-tests: New file.
64476         * tests/test-round1.c: New file.
64477         * tests/test-round2.c: New file.
64478         * tests/test-roundf1.c: New file.
64479         * tests/test-roundf2.c: New file.
64480         * tests/test-roundl.c: New file.
64481         * doc/functions/round.texi: Mention round module.
64482         * doc/functions/roundf.texi: Mention roundf module.
64483         * doc/functions/roundl.texi: Mention roundl module.
64484         * MODULES.html.sh: Mention new modules.
64485         Thanks to Bruno Haible for suggestions.
64486
64487 2007-10-20  Jim Meyering  <meyering@redhat.com>
64488
64489         * lib/xprintf.c: Include <config.h> unconditionally.
64490
64491         Change xprintf's license to GPL.
64492         * modules/xprintf (License): s/LGPL/GPL/, since this module
64493         depends on modules (exit and exitfail) which are GPL.
64494         Suggestion from Bruno Haible.
64495
64496         xprintf fixes.
64497         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64498         Use a clearer diagnostic.
64499         Patch from Bruno Haible.
64500
64501 2007-10-20  Bruno Haible  <bruno@clisp.org>
64502
64503         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64504         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64505         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64506
64507 2007-10-20  Bruno Haible  <bruno@clisp.org>
64508
64509         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64510         precision in the comparison result > x - 1 or similar.
64511         * tests/test-ceilf2.c (correct_result_p): Likewise.
64512         * tests/test-truncf2.c (correct_result_p): Likewise.
64513         * tests/test-trunc2.c (correct_result_p): Likewise.
64514         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64515
64516 2007-10-20  Bruno Haible  <bruno@clisp.org>
64517
64518         * modules/ceil: New file.
64519         * m4/ceil.m4: New file.
64520         * doc/functions/ceil.texi: Mention the 'ceil' module.
64521
64522 2007-10-20  Bruno Haible  <bruno@clisp.org>
64523
64524         * modules/floor: New file.
64525         * m4/floor.m4: New file.
64526         * doc/functions/floor.texi: Mention the 'floor' module.
64527
64528 2007-10-20  Bruno Haible  <bruno@clisp.org>
64529
64530         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64531         of %a.
64532         * modules/floorf-tests (Depends-on): Likewise.
64533         * modules/truncf-tests (Depends-on): Likewise.
64534         * modules/trunc-tests (Depends-on): Likewise.
64535         Reported by Ben Pfaff.
64536
64537 2007-10-19  Jim Meyering  <meyering@redhat.com>
64538
64539         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64540         Don't bother testing specific errno values.  Just test ferror.
64541
64542         New module: xprintf
64543         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64544
64545 2007-10-19  Bruno Haible  <bruno@clisp.org>
64546
64547         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64548         syntax.
64549         * modules/javaexec (Makefile.am): Likewise.
64550         * modules/relocatable-prog (Makefile.am): Likewise.
64551         Suggested by Jim Meyering.
64552
64553 2007-10-18  Bruno Haible  <bruno@clisp.org>
64554
64555         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64556         Reported by Jim Meyering.
64557
64558 2007-10-18  Eric Blake  <ebb9@byu.net>
64559
64560         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64561
64562 2007-10-18  Bruno Haible  <bruno@clisp.org>
64563
64564         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64565         the format string into writable memory. Needed in Fortify conditions.
64566
64567 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64568             Bruno Haible  <bruno@clisp.org>
64569
64570         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64571         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64572         * modules/trim (Depends-on): Add mbchar.
64573         (configure.ac): Add gl_FUNC_MBRTOWC.
64574         (Makefile.am): Augment lib_SOURCES.
64575
64576 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64577
64578         Modify glob.c to use fstatat and dirfd, to simplify it.
64579         Suggested by Eric Blake.
64580         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64581         Don't include <stdbool.h>; not used.
64582         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64583         (link_exists_p): Simplify implementation, since we can now assume
64584         dirfd and fstatat.
64585         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64586
64587 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64588
64589         * gnulib-tool (func_get_dependencies): Fix sed script to
64590         match only tests.
64591
64592 2007-10-17  Bruno Haible  <bruno@clisp.org>
64593
64594         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64595         allow locale names without encoding suffix.
64596         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64597         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64598
64599 2007-10-16  Bruno Haible  <bruno@clisp.org>
64600
64601         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64602         * lib/getgroups.c (getgroups): Likewise.
64603         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64604
64605 2007-10-16  Bruno Haible  <bruno@clisp.org>
64606
64607         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64608         * modules/malloc-posix (License): Likewise.
64609         * modules/realloc-posix (License): Likewise.
64610         * modules/calloc-posix (License): Likewise.
64611         * modules/intprops (License): Change from GPL to LGPL, with
64612         Paul Eggert's approval.
64613
64614 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64615
64616         Merge glibc changes into lib/glob.c.
64617
64618         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64619         2007-10-15 04:59:03 UTC.  Here are the changes:
64620
64621         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64622
64623         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64624
64625         * lib/glob.c: Add some branch prediction throughout.
64626
64627         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64628
64629         [BZ #5103]
64630         * lib/glob.c (glob): Recognize patterns starting \/.
64631
64632         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64633
64634         [BZ #3996]
64635         * lib/glob.c (attribute_hidden): Define if not defined.
64636         (glob): Unescape dirname, filename or username when needed and not
64637         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64638         is NULL.  Handle unescaped [ in pattern without closing ].
64639         Don't pass GLOB_CHECK down to recursive glob for directories.
64640         (__glob_pattern_type): New function.
64641         (__glob_pattern_p): Implement using __glob_pattern_type.
64642         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64643         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64644         Remove unreachable code.
64645
64646         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64647
64648         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64649         explain why there are no leaks.
64650
64651         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64652
64653         [BZ #3253]
64654         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64655         time, rather allocate increasingly bigger arrays of pointers, if
64656         possible with alloca, if too large with malloc.
64657
64658 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64659
64660         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64661         Problem reported by H.Merijn Brand in
64662         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64663         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64664         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64665
64666 2007-10-15  Bruno Haible  <bruno@clisp.org>
64667
64668         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64669         with explicit rpl_ prefix.
64670         * lib/fopen.c (fopen): Likewise.
64671         * lib/freopen.c (freopen): Likewise.
64672         * lib/iconv.c (iconv): Likewise.
64673         * lib/iconv_close.c (iconv_close): Likewise.
64674
64675 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64676
64677         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64678
64679 2007-10-15  Bruno Haible  <bruno@clisp.org>
64680
64681         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64682         <stddef.h> instead of <stdlib.h> since we only need NULL.
64683         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64684
64685 2007-10-15  Bruno Haible  <bruno@clisp.org>
64686
64687         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64688         Replace paragraph talking about LIBOBJS.
64689         Reported by Colin Watson <cjwatson@debian.org>.
64690
64691 2007-10-15  Bruno Haible  <bruno@clisp.org>
64692
64693         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64694         <stdlib.h> before using NULL.
64695
64696 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64697
64698         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64699         Reported by Albert Chin <china@thewrittenword.com>.
64700
64701 2007-10-14  Bruno Haible  <bruno@clisp.org>
64702
64703         * modules/iconv_open-utf-tests: New file.
64704         * tests/test-iconv-utf.c: New file.
64705
64706         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64707         * modules/iconv_open-utf: New file.
64708         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64709         (iconv, iconv_close): New declarations.
64710         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64711         be defined.
64712         (iconv_open): Add special handling of conversion between UTF-8 and
64713         UTF-{16,32}{BE,LE}.
64714         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64715         * lib/iconv_close.c: New file.
64716         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64717         gl_FUNC_ICONV_OPEN.
64718         (gl_FUNC_ICONV_OPEN): Use it.
64719         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64720         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64721         and REPLACE_ICONV_UTF.
64722         * modules/iconv_open (Depends-on): Add c-strcase.
64723         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64724         ICONV_CONST.
64725         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64726
64727 2007-10-13  Albert Chin  <china@thewrittenword.com>
64728             Bruno Haible  <bruno@clisp.org>
64729
64730         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64731         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64732
64733 2007-10-13  Bruno Haible  <bruno@clisp.org>
64734
64735         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64736         defined, use the ISO C99 inline semantics.
64737         * lib/argp.h (ARGP_EI): Likewise.
64738
64739 2007-10-13  Bruno Haible  <bruno@clisp.org>
64740
64741         Handle 'inline' change in gcc 4.3.0.
64742         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64743         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64744         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64745         argp_fmtstream_point): Disable 'extern' declaration if the function
64746         definition is going to be provided inline.
64747         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64748         semantics, not the ISO C99 inline semantics.
64749         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64750         'extern' declaration if the function definition is going to be provided
64751         inline.
64752         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64753         the GNU C inline semantics, not the ISO C99 inline semantics. With
64754         GCC 4.2, avoid a warning.
64755
64756 2007-10-13  Bruno Haible  <bruno@clisp.org>
64757
64758         * lib/freading.h (freading): Enable the use of __freading for
64759         glibc >= 2.7.
64760         * lib/freading.c (freading): Likewise.
64761
64762 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64763
64764         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64765         "warning: C99 inline functions are not supported; using GNU89".
64766
64767 2007-10-12  Bruno Haible  <bruno@clisp.org>
64768
64769         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64770         of 2.
64771         * tests/test-ceilf2.c: New file.
64772         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64773
64774         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64775         * modules/ceilf-tests: Update.
64776
64777 2007-10-12  Bruno Haible  <bruno@clisp.org>
64778
64779         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64780         of 2.
64781         * tests/test-floorf2.c: New file.
64782         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64783
64784         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64785         * modules/floorf-tests: Update.
64786
64787 2007-10-12  Bruno Haible  <bruno@clisp.org>
64788
64789         * tests/test-trunc2.c: New file.
64790         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64791
64792         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64793         * modules/trunc-tests: Update.
64794
64795 2007-10-12  Bruno Haible  <bruno@clisp.org>
64796
64797         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64798         of 2.
64799         * tests/test-truncf2.c: New file.
64800         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64801
64802         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64803         * modules/truncf-tests: Update.
64804
64805 2007-10-11  Eric Blake  <ebb9@byu.net>
64806
64807         Don't claim strerror is broken on Interix.
64808         * doc/functions/strerror.texi (strerror): Known broken systems are
64809         now Solaris 8, and not Interix.
64810         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64811         Interix on cross-compile.
64812         Reported by Martin Koeppe in
64813         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64814
64815 2007-10-11  Bruno Haible  <bruno@clisp.org>
64816
64817         * modules/i-ring-tests: New file.
64818         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64819         instead of assert.
64820
64821 2007-10-11  Bruno Haible  <bruno@clisp.org>
64822
64823         * modules/filenamecat-tests: New file.
64824         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64825         * lib/filenamecat.c: Remove test code.
64826
64827 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64830
64831         * lib/strerror.c: Include <string.h> always, to test interface,
64832         and to remove the need for the dummy.
64833         Include intprops.h to compute width instead of doing it ourselves
64834         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64835         (strerror): Define it to return NULL if there's no system strerror.
64836         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64837         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64838         ancient pre-strerror Unix systems well any more.  Saying "unknown
64839         system error" is enough.
64840         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64841         simpler strerror.c implementation.
64842         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64843         Simplify the tests to reflect the simpler strerror implementation.
64844         * modules/strerror (Depends-on): Add intprops.
64845
64846 2007-10-09  Eric Blake  <ebb9@byu.net>
64847
64848         Silence test-fpending.
64849         * modules/fpending-tests (Files): Add wrapper script.
64850         * tests/test-fpending.sh: New file.
64851
64852 2007-10-09  Bruno Haible  <bruno@clisp.org>
64853
64854         * MODULES.html.sh (func_module): Don't create a hyperlink for
64855         function names like 'printf_frexp'.
64856         (Misc): Add crc, memxor.
64857         (Characteristics of floating types): New section.
64858         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64859         isnanf-nolibm, signbit, trunc, truncf, truncl.
64860         (Enhancements for ISO C 99 functions): New subsection Input/output.
64861         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64862         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64863         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64864         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64865         (Enhancements for POSIX:2001 functions): Add chdir-long.
64866         (File system functions): Add areadlink, chdir-safer, read-file.
64867         Remove cycle-check.
64868         (File system as inode set): New section.
64869         (Date and time): Add gethrxtime.
64870         (Multithreading): Add openmp.
64871         (Internationalization functions): Add localename.
64872         (Unicode string functions): Add unistr/u*-mbsnlen.
64873         (Support for maintaining and releasing projects): Add git-version-gen.
64874         (Lone files): Remove directories.
64875
64876 2007-10-08  Ben Pfaff  <blp@gnu.org>
64877
64878         * lib/xmalloca.h: Fix typo in comment.
64879
64880 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64881
64882         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64883         when avoiding problems with integer overflow.  Use a portable test
64884         instead.
64885
64886 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64887
64888         * modules/dummy (License): Change to LGPLv2+.
64889         * modules/float (License): Likewise
64890         * modules/realloc (License): Likewise
64891         * modules/stdlib (License): Likewise
64892
64893 2007-10-07  Bruno Haible  <bruno@clisp.org>
64894
64895         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64896         * floor.c (TWO_MANT_DIG): Likewise.
64897         * ceil.c (TWO_MANT_DIG): Likewise.
64898         Reported by Ben Pfaff.
64899
64900 2007-10-07  Bruno Haible  <bruno@clisp.org>
64901
64902         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64903         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64904         * lib/frexp.c (FUNC): Likewise.
64905         * lib/printf-frexp.h (printf_frexp): Likewise.
64906         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64907         * lib/printf-frexp.c (FUNC): Likewise.
64908         Suggested by Jim Meyering.
64909
64910 2007-10-07  Jim Meyering  <meyering@redhat.com>
64911
64912         Make xnanosleep's integer overflow test more robust.
64913         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64914         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64915
64916 2007-10-07  Bruno Haible  <bruno@clisp.org>
64917
64918         * NEWS: Mention the license change.
64919
64920         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64921         abbreviations in the modules files.
64922
64923         Change copyright notice from GPLv2+ to GPLv3+.
64924         * README: Change copyright notice.
64925         * MODULES.html.sh: Likewise.
64926         * build-aux/bootstrap.conf: Likewise.
64927         * build-aux/config.libpath: Likewise.
64928         * build-aux/csharpcomp.sh.in: Likewise.
64929         * build-aux/csharpexec.sh.in: Likewise.
64930         * build-aux/install-reloc: Likewise.
64931         * build-aux/javacomp.sh.in: Likewise.
64932         * build-aux/javaexec.sh.in: Likewise.
64933         * build-aux/ldd.sh.in: Likewise.
64934         * build-aux/reloc-ldflags: Likewise.
64935         * build-aux/relocatable.sh.in: Likewise.
64936         * build-aux/x-to-1.in: Likewise.
64937         * check-module: Likewise.
64938         * config/srclistvars.sh: Likewise.
64939         * gnulib-tool: Likewise.
64940         * lib/acl-internal.h: Likewise.
64941         * lib/acl.c: Likewise.
64942         * lib/acl.h: Likewise.
64943         * lib/acl_entries.c: Likewise.
64944         * lib/areadlink-with-size.c: Likewise.
64945         * lib/areadlink.c: Likewise.
64946         * lib/areadlink.h: Likewise.
64947         * lib/argmatch.c: Likewise.
64948         * lib/argmatch.h: Likewise.
64949         * lib/argp-ba.c: Likewise.
64950         * lib/argp-eexst.c: Likewise.
64951         * lib/argp-fmtstream.c: Likewise.
64952         * lib/argp-fmtstream.h: Likewise.
64953         * lib/argp-fs-xinl.c: Likewise.
64954         * lib/argp-help.c: Likewise.
64955         * lib/argp-namefrob.h: Likewise.
64956         * lib/argp-parse.c: Likewise.
64957         * lib/argp-pin.c: Likewise.
64958         * lib/argp-pv.c: Likewise.
64959         * lib/argp-pvh.c: Likewise.
64960         * lib/argp-xinl.c: Likewise.
64961         * lib/argp.h: Likewise.
64962         * lib/at-func.c: Likewise.
64963         * lib/atanl.c: Likewise.
64964         * lib/backupfile.c: Likewise.
64965         * lib/backupfile.h: Likewise.
64966         * lib/basename.c: Likewise.
64967         * lib/binary-io.h: Likewise.
64968         * lib/byteswap.in.h: Likewise.
64969         * lib/c-stack.c: Likewise.
64970         * lib/c-stack.h: Likewise.
64971         * lib/c-strcasestr.c: Likewise.
64972         * lib/c-strcasestr.h: Likewise.
64973         * lib/c-strstr.c: Likewise.
64974         * lib/c-strstr.h: Likewise.
64975         * lib/c-strtod.c: Likewise.
64976         * lib/calloc.c: Likewise.
64977         * lib/canon-host.c: Likewise.
64978         * lib/canon-host.h: Likewise.
64979         * lib/canonicalize-lgpl.c: Likewise.
64980         * lib/canonicalize.c: Likewise.
64981         * lib/canonicalize.h: Likewise.
64982         * lib/ceil.c: Likewise.
64983         * lib/ceilf.c: Likewise.
64984         * lib/ceill.c: Likewise.
64985         * lib/chdir-long.c: Likewise.
64986         * lib/chdir-long.h: Likewise.
64987         * lib/chdir-safer.c: Likewise.
64988         * lib/chdir-safer.h: Likewise.
64989         * lib/chown.c: Likewise.
64990         * lib/classpath.c: Likewise.
64991         * lib/classpath.h: Likewise.
64992         * lib/clean-temp.c: Likewise.
64993         * lib/clean-temp.h: Likewise.
64994         * lib/cloexec.c: Likewise.
64995         * lib/close-stream.c: Likewise.
64996         * lib/closein.c: Likewise.
64997         * lib/closein.h: Likewise.
64998         * lib/closeout.c: Likewise.
64999         * lib/closeout.h: Likewise.
65000         * lib/concat-filename.c: Likewise.
65001         * lib/copy-file.c: Likewise.
65002         * lib/copy-file.h: Likewise.
65003         * lib/count-one-bits.h: Likewise.
65004         * lib/crc.c: Likewise.
65005         * lib/crc.h: Likewise.
65006         * lib/creat-safer.c: Likewise.
65007         * lib/csharpcomp.c: Likewise.
65008         * lib/csharpcomp.h: Likewise.
65009         * lib/csharpexec.c: Likewise.
65010         * lib/csharpexec.h: Likewise.
65011         * lib/cycle-check.c: Likewise.
65012         * lib/cycle-check.h: Likewise.
65013         * lib/diacrit.c: Likewise.
65014         * lib/diacrit.h: Likewise.
65015         * lib/diffseq.h: Likewise.
65016         * lib/dirchownmod.c: Likewise.
65017         * lib/dirent.in.h: Likewise.
65018         * lib/dirfd.c: Likewise.
65019         * lib/dirfd.h: Likewise.
65020         * lib/dirname.c: Likewise.
65021         * lib/dirname.h: Likewise.
65022         * lib/dummy.c: Likewise.
65023         * lib/dup-safer.c: Likewise.
65024         * lib/dup2.c: Likewise.
65025         * lib/eealloc.h: Likewise.
65026         * lib/error.c: Likewise.
65027         * lib/error.h: Likewise.
65028         * lib/euidaccess.c: Likewise.
65029         * lib/exclude.c: Likewise.
65030         * lib/exclude.h: Likewise.
65031         * lib/execute.c: Likewise.
65032         * lib/execute.h: Likewise.
65033         * lib/exitfail.c: Likewise.
65034         * lib/exitfail.h: Likewise.
65035         * lib/expl.c: Likewise.
65036         * lib/fatal-signal.c: Likewise.
65037         * lib/fatal-signal.h: Likewise.
65038         * lib/fbufmode.c: Likewise.
65039         * lib/fbufmode.h: Likewise.
65040         * lib/fchdir.c: Likewise.
65041         * lib/fchmodat.c: Likewise.
65042         * lib/fchownat.c: Likewise.
65043         * lib/fcntl--.h: Likewise.
65044         * lib/fcntl-safer.h: Likewise.
65045         * lib/fcntl.in.h: Likewise.
65046         * lib/fd-safer.c: Likewise.
65047         * lib/fflush.c: Likewise.
65048         * lib/file-has-acl.c: Likewise.
65049         * lib/file-set.c: Likewise.
65050         * lib/file-type.c: Likewise.
65051         * lib/file-type.h: Likewise.
65052         * lib/fileblocks.c: Likewise.
65053         * lib/filemode.c: Likewise.
65054         * lib/filemode.h: Likewise.
65055         * lib/filename.h: Likewise.
65056         * lib/filenamecat.c: Likewise.
65057         * lib/filenamecat.h: Likewise.
65058         * lib/findprog.c: Likewise.
65059         * lib/findprog.h: Likewise.
65060         * lib/float.in.h: Likewise.
65061         * lib/floor.c: Likewise.
65062         * lib/floorf.c: Likewise.
65063         * lib/floorl.c: Likewise.
65064         * lib/fopen-safer.c: Likewise.
65065         * lib/fopen.c: Likewise.
65066         * lib/fpending.c: Likewise.
65067         * lib/fpending.h: Likewise.
65068         * lib/fprintf.c: Likewise.
65069         * lib/fprintftime.h: Likewise.
65070         * lib/fpucw.h: Likewise.
65071         * lib/fpurge.c: Likewise.
65072         * lib/fpurge.h: Likewise.
65073         * lib/freadable.c: Likewise.
65074         * lib/freadable.h: Likewise.
65075         * lib/freadahead.c: Likewise.
65076         * lib/freadahead.h: Likewise.
65077         * lib/freading.c: Likewise.
65078         * lib/freading.h: Likewise.
65079         * lib/free.c: Likewise.
65080         * lib/freopen.c: Likewise.
65081         * lib/frexp.c: Likewise.
65082         * lib/frexpl.c: Likewise.
65083         * lib/fseek.c: Likewise.
65084         * lib/fseterr.c: Likewise.
65085         * lib/fseterr.h: Likewise.
65086         * lib/fstatat.c: Likewise.
65087         * lib/fstrcmp.c: Likewise.
65088         * lib/fstrcmp.h: Likewise.
65089         * lib/fsusage.c: Likewise.
65090         * lib/fsusage.h: Likewise.
65091         * lib/ftell.c: Likewise.
65092         * lib/ftello.c: Likewise.
65093         * lib/fts-cycle.c: Likewise.
65094         * lib/fts.c: Likewise.
65095         * lib/fts_.h: Likewise.
65096         * lib/full-read.c: Likewise.
65097         * lib/full-read.h: Likewise.
65098         * lib/full-write.c: Likewise.
65099         * lib/full-write.h: Likewise.
65100         * lib/fwritable.c: Likewise.
65101         * lib/fwritable.h: Likewise.
65102         * lib/fwriteerror.c: Likewise.
65103         * lib/fwriteerror.h: Likewise.
65104         * lib/fwriting.c: Likewise.
65105         * lib/fwriting.h: Likewise.
65106         * lib/gcd.c: Likewise.
65107         * lib/gcd.h: Likewise.
65108         * lib/getcwd.c: Likewise.
65109         * lib/getdate.h: Likewise.
65110         * lib/getdate.y: Likewise.
65111         * lib/getdomainname.c: Likewise.
65112         * lib/getdomainname.h: Likewise.
65113         * lib/getgroups.c: Likewise.
65114         * lib/gethostname.c: Likewise.
65115         * lib/gethrxtime.c: Likewise.
65116         * lib/gethrxtime.h: Likewise.
65117         * lib/getloadavg.c: Likewise.
65118         * lib/getndelim2.c: Likewise.
65119         * lib/getndelim2.h: Likewise.
65120         * lib/getnline.c: Likewise.
65121         * lib/getnline.h: Likewise.
65122         * lib/getopt.c: Likewise.
65123         * lib/getopt.in.h: Likewise.
65124         * lib/getopt1.c: Likewise.
65125         * lib/getopt_int.h: Likewise.
65126         * lib/getpagesize.h: Likewise.
65127         * lib/getsubopt.c: Likewise.
65128         * lib/gettime.c: Likewise.
65129         * lib/getugroups.c: Likewise.
65130         * lib/getugroups.h: Likewise.
65131         * lib/getusershell.c: Likewise.
65132         * lib/gl_anyavltree_list1.h: Likewise.
65133         * lib/gl_anyavltree_list2.h: Likewise.
65134         * lib/gl_anyhash_list1.h: Likewise.
65135         * lib/gl_anyhash_list2.h: Likewise.
65136         * lib/gl_anylinked_list1.h: Likewise.
65137         * lib/gl_anylinked_list2.h: Likewise.
65138         * lib/gl_anyrbtree_list1.h: Likewise.
65139         * lib/gl_anyrbtree_list2.h: Likewise.
65140         * lib/gl_anytree_list1.h: Likewise.
65141         * lib/gl_anytree_list2.h: Likewise.
65142         * lib/gl_anytree_oset.h: Likewise.
65143         * lib/gl_anytreehash_list1.h: Likewise.
65144         * lib/gl_anytreehash_list2.h: Likewise.
65145         * lib/gl_array_list.c: Likewise.
65146         * lib/gl_array_list.h: Likewise.
65147         * lib/gl_array_oset.c: Likewise.
65148         * lib/gl_array_oset.h: Likewise.
65149         * lib/gl_avltree_list.c: Likewise.
65150         * lib/gl_avltree_list.h: Likewise.
65151         * lib/gl_avltree_oset.c: Likewise.
65152         * lib/gl_avltree_oset.h: Likewise.
65153         * lib/gl_avltreehash_list.c: Likewise.
65154         * lib/gl_avltreehash_list.h: Likewise.
65155         * lib/gl_carray_list.c: Likewise.
65156         * lib/gl_carray_list.h: Likewise.
65157         * lib/gl_linked_list.c: Likewise.
65158         * lib/gl_linked_list.h: Likewise.
65159         * lib/gl_linkedhash_list.c: Likewise.
65160         * lib/gl_linkedhash_list.h: Likewise.
65161         * lib/gl_list.c: Likewise.
65162         * lib/gl_list.h: Likewise.
65163         * lib/gl_oset.c: Likewise.
65164         * lib/gl_oset.h: Likewise.
65165         * lib/gl_rbtree_list.c: Likewise.
65166         * lib/gl_rbtree_list.h: Likewise.
65167         * lib/gl_rbtree_oset.c: Likewise.
65168         * lib/gl_rbtree_oset.h: Likewise.
65169         * lib/gl_rbtreehash_list.c: Likewise.
65170         * lib/gl_rbtreehash_list.h: Likewise.
65171         * lib/gl_sublist.c: Likewise.
65172         * lib/gl_sublist.h: Likewise.
65173         * lib/group-member.c: Likewise.
65174         * lib/group-member.h: Likewise.
65175         * lib/hard-locale.c: Likewise.
65176         * lib/hard-locale.h: Likewise.
65177         * lib/hash-pjw.c: Likewise.
65178         * lib/hash-pjw.h: Likewise.
65179         * lib/hash-triple.c: Likewise.
65180         * lib/hash.c: Likewise.
65181         * lib/hash.h: Likewise.
65182         * lib/human.c: Likewise.
65183         * lib/human.h: Likewise.
65184         * lib/i-ring.c: Likewise.
65185         * lib/i-ring.h: Likewise.
65186         * lib/idcache.c: Likewise.
65187         * lib/imaxabs.c: Likewise.
65188         * lib/imaxdiv.c: Likewise.
65189         * lib/inet_pton.c: Likewise.
65190         * lib/inet_pton.h: Likewise.
65191         * lib/intprops.h: Likewise.
65192         * lib/inttostr.c: Likewise.
65193         * lib/inttostr.h: Likewise.
65194         * lib/inttypes.in.h: Likewise.
65195         * lib/isapipe.c: Likewise.
65196         * lib/isdir.c: Likewise.
65197         * lib/isnan.c: Likewise.
65198         * lib/isnan.h: Likewise.
65199         * lib/isnanf.c: Likewise.
65200         * lib/isnanf.h: Likewise.
65201         * lib/isnanl-nolibm.h: Likewise.
65202         * lib/isnanl.c: Likewise.
65203         * lib/isnanl.h: Likewise.
65204         * lib/javacomp.c: Likewise.
65205         * lib/javacomp.h: Likewise.
65206         * lib/javaexec.c: Likewise.
65207         * lib/javaexec.h: Likewise.
65208         * lib/javaversion.c: Likewise.
65209         * lib/javaversion.h: Likewise.
65210         * lib/javaversion.java: Likewise.
65211         * lib/lbrkprop.h: Likewise.
65212         * lib/lchmod.h: Likewise.
65213         * lib/lchown.c: Likewise.
65214         * lib/ldexpl.c: Likewise.
65215         * lib/linebreak.c: Likewise.
65216         * lib/linebreak.h: Likewise.
65217         * lib/linebuffer.c: Likewise.
65218         * lib/linebuffer.h: Likewise.
65219         * lib/locale.in.h: Likewise.
65220         * lib/logl.c: Likewise.
65221         * lib/long-options.c: Likewise.
65222         * lib/long-options.h: Likewise.
65223         * lib/lstat.c: Likewise.
65224         * lib/lstat.h: Likewise.
65225         * lib/math.in.h: Likewise.
65226         * lib/mbchar.c: Likewise.
65227         * lib/mbchar.h: Likewise.
65228         * lib/mbfile.h: Likewise.
65229         * lib/mbiter.h: Likewise.
65230         * lib/mbscasecmp.c: Likewise.
65231         * lib/mbscasestr.c: Likewise.
65232         * lib/mbschr.c: Likewise.
65233         * lib/mbscspn.c: Likewise.
65234         * lib/mbslen.c: Likewise.
65235         * lib/mbsncasecmp.c: Likewise.
65236         * lib/mbsnlen.c: Likewise.
65237         * lib/mbspbrk.c: Likewise.
65238         * lib/mbspcasecmp.c: Likewise.
65239         * lib/mbsrchr.c: Likewise.
65240         * lib/mbssep.c: Likewise.
65241         * lib/mbsspn.c: Likewise.
65242         * lib/mbsstr.c: Likewise.
65243         * lib/mbstok_r.c: Likewise.
65244         * lib/mbswidth.c: Likewise.
65245         * lib/mbswidth.h: Likewise.
65246         * lib/mbuiter.h: Likewise.
65247         * lib/memcasecmp.c: Likewise.
65248         * lib/memcasecmp.h: Likewise.
65249         * lib/memchr.c: Likewise.
65250         * lib/memcmp.c: Likewise.
65251         * lib/memcoll.c: Likewise.
65252         * lib/memcoll.h: Likewise.
65253         * lib/memcpy.c: Likewise.
65254         * lib/memrchr.c: Likewise.
65255         * lib/mkancesdirs.c: Likewise.
65256         * lib/mkdir-p.c: Likewise.
65257         * lib/mkdir-p.h: Likewise.
65258         * lib/mkdir.c: Likewise.
65259         * lib/mkdirat.c: Likewise.
65260         * lib/mkdtemp.c: Likewise.
65261         * lib/mkstemp-safer.c: Likewise.
65262         * lib/mkstemp.c: Likewise.
65263         * lib/modechange.c: Likewise.
65264         * lib/modechange.h: Likewise.
65265         * lib/mountlist.c: Likewise.
65266         * lib/mountlist.h: Likewise.
65267         * lib/mpsort.c: Likewise.
65268         * lib/nanosleep.c: Likewise.
65269         * lib/obstack.c: Likewise.
65270         * lib/obstack.h: Likewise.
65271         * lib/open-safer.c: Likewise.
65272         * lib/open.c: Likewise.
65273         * lib/openat-die.c: Likewise.
65274         * lib/openat-priv.h: Likewise.
65275         * lib/openat-proc.c: Likewise.
65276         * lib/openat.c: Likewise.
65277         * lib/openat.h: Likewise.
65278         * lib/pagealign_alloc.c: Likewise.
65279         * lib/pagealign_alloc.h: Likewise.
65280         * lib/physmem.c: Likewise.
65281         * lib/physmem.h: Likewise.
65282         * lib/pipe-safer.c: Likewise.
65283         * lib/pipe.c: Likewise.
65284         * lib/pipe.h: Likewise.
65285         * lib/posixtm.c: Likewise.
65286         * lib/posixtm.h: Likewise.
65287         * lib/posixver.c: Likewise.
65288         * lib/printf-frexp.c: Likewise.
65289         * lib/printf-frexp.h: Likewise.
65290         * lib/printf-frexpl.c: Likewise.
65291         * lib/printf-frexpl.h: Likewise.
65292         * lib/printf.c: Likewise.
65293         * lib/progname.c: Likewise.
65294         * lib/progname.h: Likewise.
65295         * lib/progreloc.c: Likewise.
65296         * lib/putenv.c: Likewise.
65297         * lib/quote.c: Likewise.
65298         * lib/quote.h: Likewise.
65299         * lib/quotearg.c: Likewise.
65300         * lib/quotearg.h: Likewise.
65301         * lib/raise.c: Likewise.
65302         * lib/readline.c: Likewise.
65303         * lib/readline.h: Likewise.
65304         * lib/readlink.c: Likewise.
65305         * lib/readtokens.c: Likewise.
65306         * lib/readtokens.h: Likewise.
65307         * lib/readtokens0.c: Likewise.
65308         * lib/readtokens0.h: Likewise.
65309         * lib/readutmp.c: Likewise.
65310         * lib/readutmp.h: Likewise.
65311         * lib/realloc.c: Likewise.
65312         * lib/relocwrapper.c: Likewise.
65313         * lib/rename-dest-slash.c: Likewise.
65314         * lib/rename.c: Likewise.
65315         * lib/rmdir.c: Likewise.
65316         * lib/rpmatch.c: Likewise.
65317         * lib/safe-read.c: Likewise.
65318         * lib/safe-read.h: Likewise.
65319         * lib/safe-write.c: Likewise.
65320         * lib/safe-write.h: Likewise.
65321         * lib/same-inode.h: Likewise.
65322         * lib/same.c: Likewise.
65323         * lib/same.h: Likewise.
65324         * lib/save-cwd.c: Likewise.
65325         * lib/save-cwd.h: Likewise.
65326         * lib/savedir.c: Likewise.
65327         * lib/savedir.h: Likewise.
65328         * lib/savewd.c: Likewise.
65329         * lib/savewd.h: Likewise.
65330         * lib/search.in.h: Likewise.
65331         * lib/setenv.c: Likewise.
65332         * lib/setenv.h: Likewise.
65333         * lib/settime.c: Likewise.
65334         * lib/sh-quote.c: Likewise.
65335         * lib/sh-quote.h: Likewise.
65336         * lib/sig2str.c: Likewise.
65337         * lib/sig2str.h: Likewise.
65338         * lib/signal.in.h: Likewise.
65339         * lib/signbitd.c: Likewise.
65340         * lib/signbitf.c: Likewise.
65341         * lib/signbitl.c: Likewise.
65342         * lib/sigprocmask.c: Likewise.
65343         * lib/sincosl.c: Likewise.
65344         * lib/sleep.c: Likewise.
65345         * lib/sprintf.c: Likewise.
65346         * lib/sqrtl.c: Likewise.
65347         * lib/stat-time.h: Likewise.
65348         * lib/stdio--.h: Likewise.
65349         * lib/stdio-safer.h: Likewise.
65350         * lib/stdlib--.h: Likewise.
65351         * lib/stdlib-safer.h: Likewise.
65352         * lib/stdlib.in.h: Likewise.
65353         * lib/stpcpy.c: Likewise.
65354         * lib/stpncpy.c: Likewise.
65355         * lib/strchrnul.c: Likewise.
65356         * lib/strcspn.c: Likewise.
65357         * lib/strerror.c: Likewise.
65358         * lib/strftime.c: Likewise.
65359         * lib/strftime.h: Likewise.
65360         * lib/striconveh.c: Likewise.
65361         * lib/striconveh.h: Likewise.
65362         * lib/striconveha.c: Likewise.
65363         * lib/striconveha.h: Likewise.
65364         * lib/stripslash.c: Likewise.
65365         * lib/strnlen1.c: Likewise.
65366         * lib/strnlen1.h: Likewise.
65367         * lib/strtod.c: Likewise.
65368         * lib/strtoimax.c: Likewise.
65369         * lib/strtok_r.c: Likewise.
65370         * lib/strtol.c: Likewise.
65371         * lib/strtoll.c: Likewise.
65372         * lib/strtoul.c: Likewise.
65373         * lib/strtoull.c: Likewise.
65374         * lib/sysexits.in.h: Likewise.
65375         * lib/tempname.c: Likewise.
65376         * lib/tempname.h: Likewise.
65377         * lib/timespec.h: Likewise.
65378         * lib/tls.c: Likewise.
65379         * lib/tls.h: Likewise.
65380         * lib/tmpdir.c: Likewise.
65381         * lib/tmpdir.h: Likewise.
65382         * lib/tmpfile-safer.c: Likewise.
65383         * lib/tmpfile.c: Likewise.
65384         * lib/trigl.c: Likewise.
65385         * lib/trigl.h: Likewise.
65386         * lib/trim.c: Likewise.
65387         * lib/trim.h: Likewise.
65388         * lib/trunc.c: Likewise.
65389         * lib/truncf.c: Likewise.
65390         * lib/truncl.c: Likewise.
65391         * lib/tsearch.c: Likewise.
65392         * lib/unicodeio.c: Likewise.
65393         * lib/unicodeio.h: Likewise.
65394         * lib/unistd--.h: Likewise.
65395         * lib/unistd-safer.h: Likewise.
65396         * lib/unistdio/ulc-fprintf.c: Likewise.
65397         * lib/unistdio/ulc-vfprintf.c: Likewise.
65398         * lib/unlinkdir.c: Likewise.
65399         * lib/unlinkdir.h: Likewise.
65400         * lib/unlocked-io.h: Likewise.
65401         * lib/unsetenv.c: Likewise.
65402         * lib/userspec.c: Likewise.
65403         * lib/utime.c: Likewise.
65404         * lib/utimecmp.c: Likewise.
65405         * lib/utimecmp.h: Likewise.
65406         * lib/utimens.c: Likewise.
65407         * lib/verify.h: Likewise.
65408         * lib/verror.c: Likewise.
65409         * lib/verror.h: Likewise.
65410         * lib/version-etc-fsf.c: Likewise.
65411         * lib/version-etc.c: Likewise.
65412         * lib/version-etc.h: Likewise.
65413         * lib/vfprintf.c: Likewise.
65414         * lib/vprintf.c: Likewise.
65415         * lib/vsprintf.c: Likewise.
65416         * lib/w32spawn.h: Likewise.
65417         * lib/wait-process.c: Likewise.
65418         * lib/wait-process.h: Likewise.
65419         * lib/wcwidth.c: Likewise.
65420         * lib/write-any-file.c: Likewise.
65421         * lib/xalloc-die.c: Likewise.
65422         * lib/xalloc.h: Likewise.
65423         * lib/xasprintf.c: Likewise.
65424         * lib/xgetcwd.c: Likewise.
65425         * lib/xgetcwd.h: Likewise.
65426         * lib/xgetdomainname.c: Likewise.
65427         * lib/xgetdomainname.h: Likewise.
65428         * lib/xgethostname.c: Likewise.
65429         * lib/xmalloc.c: Likewise.
65430         * lib/xmalloca.c: Likewise.
65431         * lib/xmalloca.h: Likewise.
65432         * lib/xmemcoll.c: Likewise.
65433         * lib/xnanosleep.c: Likewise.
65434         * lib/xreadlink.c: Likewise.
65435         * lib/xreadlink.h: Likewise.
65436         * lib/xsetenv.c: Likewise.
65437         * lib/xsetenv.h: Likewise.
65438         * lib/xstriconv.c: Likewise.
65439         * lib/xstriconv.h: Likewise.
65440         * lib/xstrndup.c: Likewise.
65441         * lib/xstrndup.h: Likewise.
65442         * lib/xstrtod.c: Likewise.
65443         * lib/xstrtod.h: Likewise.
65444         * lib/xstrtol-error.c: Likewise.
65445         * lib/xstrtol.c: Likewise.
65446         * lib/xstrtol.h: Likewise.
65447         * lib/xtime.h: Likewise.
65448         * lib/xvasprintf.c: Likewise.
65449         * lib/xvasprintf.h: Likewise.
65450         * lib/yesno.c: Likewise.
65451         * lib/yesno.h: Likewise.
65452         * posix-modules: Likewise.
65453         * tests/test-alloca-opt.c: Likewise.
65454         * tests/test-arcfour.c: Likewise.
65455         * tests/test-arctwo.c: Likewise.
65456         * tests/test-argmatch.c: Likewise.
65457         * tests/test-argp-2.sh: Likewise.
65458         * tests/test-argp.c: Likewise.
65459         * tests/test-arpa_inet.c: Likewise.
65460         * tests/test-array_list.c: Likewise.
65461         * tests/test-array_oset.c: Likewise.
65462         * tests/test-atexit.c: Likewise.
65463         * tests/test-avltree_list.c: Likewise.
65464         * tests/test-avltree_oset.c: Likewise.
65465         * tests/test-avltreehash_list.c: Likewise.
65466         * tests/test-base64.c: Likewise.
65467         * tests/test-binary-io.c: Likewise.
65468         * tests/test-byteswap.c: Likewise.
65469         * tests/test-c-ctype.c: Likewise.
65470         * tests/test-c-strcasecmp.c: Likewise.
65471         * tests/test-c-strcasestr.c: Likewise.
65472         * tests/test-c-strncasecmp.c: Likewise.
65473         * tests/test-c-strstr.c: Likewise.
65474         * tests/test-canonicalize-lgpl.c: Likewise.
65475         * tests/test-canonicalize.c: Likewise.
65476         * tests/test-carray_list.c: Likewise.
65477         * tests/test-ceilf.c: Likewise.
65478         * tests/test-ceill.c: Likewise.
65479         * tests/test-count-one-bits.c: Likewise.
65480         * tests/test-crc.c: Likewise.
65481         * tests/test-dirname.c: Likewise.
65482         * tests/test-fbufmode.c: Likewise.
65483         * tests/test-fcntl.c: Likewise.
65484         * tests/test-fflush.c: Likewise.
65485         * tests/test-floorf.c: Likewise.
65486         * tests/test-floorl.c: Likewise.
65487         * tests/test-fopen.c: Likewise.
65488         * tests/test-fprintf-posix.c: Likewise.
65489         * tests/test-fprintf-posix.h: Likewise.
65490         * tests/test-fpurge.c: Likewise.
65491         * tests/test-freadable.c: Likewise.
65492         * tests/test-freadahead.c: Likewise.
65493         * tests/test-freading.c: Likewise.
65494         * tests/test-freopen.c: Likewise.
65495         * tests/test-frexp.c: Likewise.
65496         * tests/test-frexpl.c: Likewise.
65497         * tests/test-fseek.c: Likewise.
65498         * tests/test-fseeko.c: Likewise.
65499         * tests/test-fseterr.c: Likewise.
65500         * tests/test-fstrcmp.c: Likewise.
65501         * tests/test-ftell.c: Likewise.
65502         * tests/test-ftello.c: Likewise.
65503         * tests/test-fwritable.c: Likewise.
65504         * tests/test-fwriting.c: Likewise.
65505         * tests/test-getaddrinfo.c: Likewise.
65506         * tests/test-getpass.c: Likewise.
65507         * tests/test-gettimeofday.c: Likewise.
65508         * tests/test-hmac-md5.c: Likewise.
65509         * tests/test-hmac-sha1.c: Likewise.
65510         * tests/test-iconv.c: Likewise.
65511         * tests/test-iconvme.c: Likewise.
65512         * tests/test-inttypes.c: Likewise.
65513         * tests/test-isnan.c: Likewise.
65514         * tests/test-isnanf.c: Likewise.
65515         * tests/test-isnanl-nolibm.c: Likewise.
65516         * tests/test-isnanl.c: Likewise.
65517         * tests/test-isnanl.h: Likewise.
65518         * tests/test-ldexpl.c: Likewise.
65519         * tests/test-linked_list.c: Likewise.
65520         * tests/test-linkedhash_list.c: Likewise.
65521         * tests/test-locale.c: Likewise.
65522         * tests/test-localename.c: Likewise.
65523         * tests/test-lock.c: Likewise.
65524         * tests/test-lseek.c: Likewise.
65525         * tests/test-malloca.c: Likewise.
65526         * tests/test-math.c: Likewise.
65527         * tests/test-mbscasecmp.c: Likewise.
65528         * tests/test-mbscasestr1.c: Likewise.
65529         * tests/test-mbscasestr2.c: Likewise.
65530         * tests/test-mbscasestr3.c: Likewise.
65531         * tests/test-mbscasestr4.c: Likewise.
65532         * tests/test-mbschr.c: Likewise.
65533         * tests/test-mbscspn.c: Likewise.
65534         * tests/test-mbsncasecmp.c: Likewise.
65535         * tests/test-mbspbrk.c: Likewise.
65536         * tests/test-mbspcasecmp.c: Likewise.
65537         * tests/test-mbsrchr.c: Likewise.
65538         * tests/test-mbsspn.c: Likewise.
65539         * tests/test-mbsstr1.c: Likewise.
65540         * tests/test-mbsstr2.c: Likewise.
65541         * tests/test-mbsstr3.c: Likewise.
65542         * tests/test-md5.c: Likewise.
65543         * tests/test-memmem.c: Likewise.
65544         * tests/test-netinet_in.c: Likewise.
65545         * tests/test-open.c: Likewise.
65546         * tests/test-printf-frexp.c: Likewise.
65547         * tests/test-printf-frexpl.c: Likewise.
65548         * tests/test-printf-posix.c: Likewise.
65549         * tests/test-printf-posix.h: Likewise.
65550         * tests/test-rbtree_list.c: Likewise.
65551         * tests/test-rbtree_oset.c: Likewise.
65552         * tests/test-rbtreehash_list.c: Likewise.
65553         * tests/test-read-file.c: Likewise.
65554         * tests/test-rijndael.c: Likewise.
65555         * tests/test-search.c: Likewise.
65556         * tests/test-signbit.c: Likewise.
65557         * tests/test-sleep.c: Likewise.
65558         * tests/test-snprintf-posix.c: Likewise.
65559         * tests/test-snprintf-posix.h: Likewise.
65560         * tests/test-snprintf.c: Likewise.
65561         * tests/test-sprintf-posix.c: Likewise.
65562         * tests/test-sprintf-posix.h: Likewise.
65563         * tests/test-stat-time.c: Likewise.
65564         * tests/test-stdbool.c: Likewise.
65565         * tests/test-stdint.c: Likewise.
65566         * tests/test-stdio.c: Likewise.
65567         * tests/test-stdlib.c: Likewise.
65568         * tests/test-stpncpy.c: Likewise.
65569         * tests/test-strcasestr.c: Likewise.
65570         * tests/test-striconv.c: Likewise.
65571         * tests/test-striconveh.c: Likewise.
65572         * tests/test-striconveha.c: Likewise.
65573         * tests/test-string.c: Likewise.
65574         * tests/test-sys_select.c: Likewise.
65575         * tests/test-sys_socket.c: Likewise.
65576         * tests/test-sys_stat.c: Likewise.
65577         * tests/test-sys_time.c: Likewise.
65578         * tests/test-sysexits.c: Likewise.
65579         * tests/test-time.c: Likewise.
65580         * tests/test-tls.c: Likewise.
65581         * tests/test-trunc.c: Likewise.
65582         * tests/test-truncf.c: Likewise.
65583         * tests/test-truncl.c: Likewise.
65584         * tests/test-unistd.c: Likewise.
65585         * tests/test-vasnprintf-posix.c: Likewise.
65586         * tests/test-vasnprintf-posix2.c: Likewise.
65587         * tests/test-vasnprintf.c: Likewise.
65588         * tests/test-vasprintf-posix.c: Likewise.
65589         * tests/test-vasprintf.c: Likewise.
65590         * tests/test-verify.c: Likewise.
65591         * tests/test-vfprintf-posix.c: Likewise.
65592         * tests/test-vprintf-posix.c: Likewise.
65593         * tests/test-vsnprintf-posix.c: Likewise.
65594         * tests/test-vsnprintf.c: Likewise.
65595         * tests/test-vsprintf-posix.c: Likewise.
65596         * tests/test-wchar.c: Likewise.
65597         * tests/test-wctype.c: Likewise.
65598         * tests/test-wcwidth.c: Likewise.
65599         * tests/test-xstrtol.c: Likewise.
65600         * tests/test-xvasprintf.c: Likewise.
65601         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65602         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65603         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65604         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65605         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65606         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65607         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65608         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65609         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65610         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65611         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65612         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65613         * tests/uniname/test-uninames.c: Likewise.
65614         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65615         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65616         * tests/unistdio/test-u16-printf1.h: Likewise.
65617         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65618         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65619         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65620         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65621         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65622         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65623         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65624         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65625         * tests/unistdio/test-u32-printf1.h: Likewise.
65626         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65627         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65628         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65629         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65630         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65631         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65632         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65633         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65634         * tests/unistdio/test-u8-printf1.h: Likewise.
65635         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65636         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65637         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65638         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65639         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65640         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65641         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65642         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65643         * tests/unistdio/test-ulc-printf1.h: Likewise.
65644         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65645         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65646         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65647         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65648         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65649         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65650         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65651         * tests/uniwidth/test-u16-width.c: Likewise.
65652         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65653         * tests/uniwidth/test-u32-width.c: Likewise.
65654         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65655         * tests/uniwidth/test-u8-width.c: Likewise.
65656         * tests/uniwidth/test-uc_width.c: Likewise.
65657         * config/srclist-update: Likewise.
65658         (fixlicense): Update to GPLv3+.
65659
65660         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65661         * tests/test-tsearch.c: Change copyright notice.
65662
65663         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65664         * lib/c-strcaseeq.h: Change copyright notice.
65665         * lib/streq.h: Likewise.
65666         * lib/uniconv.h: Likewise.
65667         * lib/uniconv/u-conv-from-enc.h: Likewise.
65668         * lib/uniconv/u-conv-to-enc.h: Likewise.
65669         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65670         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65671         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65672         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65673         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65674         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65675         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65676         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65677         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65678         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65679         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65680         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65681         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65682         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65683         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65684         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65685         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65686         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65687         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65688         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65689         * lib/uniname.h: Likewise.
65690         * lib/uniname/uniname.c: Likewise.
65691         * lib/unistdio.h: Likewise.
65692         * lib/unistdio/u-asnprintf.h: Likewise.
65693         * lib/unistdio/u-asprintf.h: Likewise.
65694         * lib/unistdio/u-printf-args.c: Likewise.
65695         * lib/unistdio/u-printf-args.h: Likewise.
65696         * lib/unistdio/u-printf-parse.h: Likewise.
65697         * lib/unistdio/u-snprintf.h: Likewise.
65698         * lib/unistdio/u-sprintf.h: Likewise.
65699         * lib/unistdio/u-vasprintf.h: Likewise.
65700         * lib/unistdio/u-vsnprintf.h: Likewise.
65701         * lib/unistdio/u-vsprintf.h: Likewise.
65702         * lib/unistdio/u16-asnprintf.c: Likewise.
65703         * lib/unistdio/u16-asprintf.c: Likewise.
65704         * lib/unistdio/u16-printf-parse.c: Likewise.
65705         * lib/unistdio/u16-snprintf.c: Likewise.
65706         * lib/unistdio/u16-sprintf.c: Likewise.
65707         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65708         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65709         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65710         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65711         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65712         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65713         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65714         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65715         * lib/unistdio/u16-vasnprintf.c: Likewise.
65716         * lib/unistdio/u16-vasprintf.c: Likewise.
65717         * lib/unistdio/u16-vsnprintf.c: Likewise.
65718         * lib/unistdio/u16-vsprintf.c: Likewise.
65719         * lib/unistdio/u32-asnprintf.c: Likewise.
65720         * lib/unistdio/u32-asprintf.c: Likewise.
65721         * lib/unistdio/u32-printf-parse.c: Likewise.
65722         * lib/unistdio/u32-snprintf.c: Likewise.
65723         * lib/unistdio/u32-sprintf.c: Likewise.
65724         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65725         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65726         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65727         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65728         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65729         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65730         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65731         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65732         * lib/unistdio/u32-vasnprintf.c: Likewise.
65733         * lib/unistdio/u32-vasprintf.c: Likewise.
65734         * lib/unistdio/u32-vsnprintf.c: Likewise.
65735         * lib/unistdio/u32-vsprintf.c: Likewise.
65736         * lib/unistdio/u8-asnprintf.c: Likewise.
65737         * lib/unistdio/u8-asprintf.c: Likewise.
65738         * lib/unistdio/u8-printf-parse.c: Likewise.
65739         * lib/unistdio/u8-snprintf.c: Likewise.
65740         * lib/unistdio/u8-sprintf.c: Likewise.
65741         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65742         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65743         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65744         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65745         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65746         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65747         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65748         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65749         * lib/unistdio/u8-vasnprintf.c: Likewise.
65750         * lib/unistdio/u8-vasprintf.c: Likewise.
65751         * lib/unistdio/u8-vsnprintf.c: Likewise.
65752         * lib/unistdio/u8-vsprintf.c: Likewise.
65753         * lib/unistdio/ulc-asnprintf.c: Likewise.
65754         * lib/unistdio/ulc-asprintf.c: Likewise.
65755         * lib/unistdio/ulc-printf-parse.c: Likewise.
65756         * lib/unistdio/ulc-snprintf.c: Likewise.
65757         * lib/unistdio/ulc-sprintf.c: Likewise.
65758         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65759         * lib/unistdio/ulc-vasprintf.c: Likewise.
65760         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65761         * lib/unistdio/ulc-vsprintf.c: Likewise.
65762         * lib/unistr.h: Likewise.
65763         * lib/unistr/u-cpy-alloc.h: Likewise.
65764         * lib/unistr/u-cpy.h: Likewise.
65765         * lib/unistr/u-endswith.h: Likewise.
65766         * lib/unistr/u-move.h: Likewise.
65767         * lib/unistr/u-set.h: Likewise.
65768         * lib/unistr/u-startswith.h: Likewise.
65769         * lib/unistr/u-stpcpy.h: Likewise.
65770         * lib/unistr/u-stpncpy.h: Likewise.
65771         * lib/unistr/u-strcat.h: Likewise.
65772         * lib/unistr/u-strcpy.h: Likewise.
65773         * lib/unistr/u-strcspn.h: Likewise.
65774         * lib/unistr/u-strdup.h: Likewise.
65775         * lib/unistr/u-strlen.h: Likewise.
65776         * lib/unistr/u-strncat.h: Likewise.
65777         * lib/unistr/u-strncpy.h: Likewise.
65778         * lib/unistr/u-strnlen.h: Likewise.
65779         * lib/unistr/u-strpbrk.h: Likewise.
65780         * lib/unistr/u-strspn.h: Likewise.
65781         * lib/unistr/u-strstr.h: Likewise.
65782         * lib/unistr/u-strtok.h: Likewise.
65783         * lib/unistr/u16-check.c: Likewise.
65784         * lib/unistr/u16-chr.c: Likewise.
65785         * lib/unistr/u16-cmp.c: Likewise.
65786         * lib/unistr/u16-cpy-alloc.c: Likewise.
65787         * lib/unistr/u16-cpy.c: Likewise.
65788         * lib/unistr/u16-endswith.c: Likewise.
65789         * lib/unistr/u16-mblen.c: Likewise.
65790         * lib/unistr/u16-mbsnlen.c: Likewise.
65791         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65792         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65793         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65794         * lib/unistr/u16-mbtouc.c: Likewise.
65795         * lib/unistr/u16-mbtoucr.c: Likewise.
65796         * lib/unistr/u16-move.c: Likewise.
65797         * lib/unistr/u16-next.c: Likewise.
65798         * lib/unistr/u16-prev.c: Likewise.
65799         * lib/unistr/u16-set.c: Likewise.
65800         * lib/unistr/u16-startswith.c: Likewise.
65801         * lib/unistr/u16-stpcpy.c: Likewise.
65802         * lib/unistr/u16-stpncpy.c: Likewise.
65803         * lib/unistr/u16-strcat.c: Likewise.
65804         * lib/unistr/u16-strchr.c: Likewise.
65805         * lib/unistr/u16-strcmp.c: Likewise.
65806         * lib/unistr/u16-strcpy.c: Likewise.
65807         * lib/unistr/u16-strcspn.c: Likewise.
65808         * lib/unistr/u16-strdup.c: Likewise.
65809         * lib/unistr/u16-strlen.c: Likewise.
65810         * lib/unistr/u16-strmblen.c: Likewise.
65811         * lib/unistr/u16-strmbtouc.c: Likewise.
65812         * lib/unistr/u16-strncat.c: Likewise.
65813         * lib/unistr/u16-strncmp.c: Likewise.
65814         * lib/unistr/u16-strncpy.c: Likewise.
65815         * lib/unistr/u16-strnlen.c: Likewise.
65816         * lib/unistr/u16-strpbrk.c: Likewise.
65817         * lib/unistr/u16-strrchr.c: Likewise.
65818         * lib/unistr/u16-strspn.c: Likewise.
65819         * lib/unistr/u16-strstr.c: Likewise.
65820         * lib/unistr/u16-strtok.c: Likewise.
65821         * lib/unistr/u16-to-u32.c: Likewise.
65822         * lib/unistr/u16-to-u8.c: Likewise.
65823         * lib/unistr/u16-uctomb-aux.c: Likewise.
65824         * lib/unistr/u16-uctomb.c: Likewise.
65825         * lib/unistr/u32-check.c: Likewise.
65826         * lib/unistr/u32-chr.c: Likewise.
65827         * lib/unistr/u32-cmp.c: Likewise.
65828         * lib/unistr/u32-cpy-alloc.c: Likewise.
65829         * lib/unistr/u32-cpy.c: Likewise.
65830         * lib/unistr/u32-endswith.c: Likewise.
65831         * lib/unistr/u32-mblen.c: Likewise.
65832         * lib/unistr/u32-mbsnlen.c: Likewise.
65833         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65834         * lib/unistr/u32-mbtouc.c: Likewise.
65835         * lib/unistr/u32-mbtoucr.c: Likewise.
65836         * lib/unistr/u32-move.c: Likewise.
65837         * lib/unistr/u32-next.c: Likewise.
65838         * lib/unistr/u32-prev.c: Likewise.
65839         * lib/unistr/u32-set.c: Likewise.
65840         * lib/unistr/u32-startswith.c: Likewise.
65841         * lib/unistr/u32-stpcpy.c: Likewise.
65842         * lib/unistr/u32-stpncpy.c: Likewise.
65843         * lib/unistr/u32-strcat.c: Likewise.
65844         * lib/unistr/u32-strchr.c: Likewise.
65845         * lib/unistr/u32-strcmp.c: Likewise.
65846         * lib/unistr/u32-strcpy.c: Likewise.
65847         * lib/unistr/u32-strcspn.c: Likewise.
65848         * lib/unistr/u32-strdup.c: Likewise.
65849         * lib/unistr/u32-strlen.c: Likewise.
65850         * lib/unistr/u32-strmblen.c: Likewise.
65851         * lib/unistr/u32-strmbtouc.c: Likewise.
65852         * lib/unistr/u32-strncat.c: Likewise.
65853         * lib/unistr/u32-strncmp.c: Likewise.
65854         * lib/unistr/u32-strncpy.c: Likewise.
65855         * lib/unistr/u32-strnlen.c: Likewise.
65856         * lib/unistr/u32-strpbrk.c: Likewise.
65857         * lib/unistr/u32-strrchr.c: Likewise.
65858         * lib/unistr/u32-strspn.c: Likewise.
65859         * lib/unistr/u32-strstr.c: Likewise.
65860         * lib/unistr/u32-strtok.c: Likewise.
65861         * lib/unistr/u32-to-u16.c: Likewise.
65862         * lib/unistr/u32-to-u8.c: Likewise.
65863         * lib/unistr/u32-uctomb.c: Likewise.
65864         * lib/unistr/u8-check.c: Likewise.
65865         * lib/unistr/u8-chr.c: Likewise.
65866         * lib/unistr/u8-cmp.c: Likewise.
65867         * lib/unistr/u8-cpy-alloc.c: Likewise.
65868         * lib/unistr/u8-cpy.c: Likewise.
65869         * lib/unistr/u8-endswith.c: Likewise.
65870         * lib/unistr/u8-mblen.c: Likewise.
65871         * lib/unistr/u8-mbsnlen.c: Likewise.
65872         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65873         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65874         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65875         * lib/unistr/u8-mbtouc.c: Likewise.
65876         * lib/unistr/u8-mbtoucr.c: Likewise.
65877         * lib/unistr/u8-move.c: Likewise.
65878         * lib/unistr/u8-next.c: Likewise.
65879         * lib/unistr/u8-prev.c: Likewise.
65880         * lib/unistr/u8-set.c: Likewise.
65881         * lib/unistr/u8-startswith.c: Likewise.
65882         * lib/unistr/u8-stpcpy.c: Likewise.
65883         * lib/unistr/u8-stpncpy.c: Likewise.
65884         * lib/unistr/u8-strcat.c: Likewise.
65885         * lib/unistr/u8-strchr.c: Likewise.
65886         * lib/unistr/u8-strcmp.c: Likewise.
65887         * lib/unistr/u8-strcpy.c: Likewise.
65888         * lib/unistr/u8-strcspn.c: Likewise.
65889         * lib/unistr/u8-strdup.c: Likewise.
65890         * lib/unistr/u8-strlen.c: Likewise.
65891         * lib/unistr/u8-strmblen.c: Likewise.
65892         * lib/unistr/u8-strmbtouc.c: Likewise.
65893         * lib/unistr/u8-strncat.c: Likewise.
65894         * lib/unistr/u8-strncmp.c: Likewise.
65895         * lib/unistr/u8-strncpy.c: Likewise.
65896         * lib/unistr/u8-strnlen.c: Likewise.
65897         * lib/unistr/u8-strpbrk.c: Likewise.
65898         * lib/unistr/u8-strrchr.c: Likewise.
65899         * lib/unistr/u8-strspn.c: Likewise.
65900         * lib/unistr/u8-strstr.c: Likewise.
65901         * lib/unistr/u8-strtok.c: Likewise.
65902         * lib/unistr/u8-to-u16.c: Likewise.
65903         * lib/unistr/u8-to-u32.c: Likewise.
65904         * lib/unistr/u8-uctomb-aux.c: Likewise.
65905         * lib/unistr/u8-uctomb.c: Likewise.
65906         * lib/unitypes.h: Likewise.
65907         * lib/uniwidth.h: Likewise.
65908         * lib/uniwidth/cjk.h: Likewise.
65909         * lib/uniwidth/u16-strwidth.c: Likewise.
65910         * lib/uniwidth/u16-width.c: Likewise.
65911         * lib/uniwidth/u32-strwidth.c: Likewise.
65912         * lib/uniwidth/u32-width.c: Likewise.
65913         * lib/uniwidth/u8-strwidth.c: Likewise.
65914         * lib/uniwidth/u8-width.c: Likewise.
65915         * lib/uniwidth/width.c: Likewise.
65916
65917 2007-10-07  Bruno Haible  <bruno@clisp.org>
65918
65919         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65920         The file is still under LGPL (see modules/inttypes).
65921
65922 2007-10-06  Bruno Haible  <bruno@clisp.org>
65923
65924         * modules/trunc (Dependencies): Add 'extensions'.
65925         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65926         Reported by Ben Pfaff <blp@gnu.org>.
65927
65928 2007-10-06  Bruno Haible  <bruno@clisp.org>
65929
65930         * modules/freopen-tests: New file.
65931         * tests/test-freopen.c: New file.
65932
65933         * modules/fopen-tests: New file.
65934         * tests/test-fopen.c: New file.
65935
65936         * modules/fopen: New file.
65937         * lib/fopen.c: New file.
65938         * m4/fopen.m4: New file.
65939         * modules/freopen: New file.
65940         * lib/freopen.c: New file.
65941         * m4/freopen.m4: New file.
65942         * lib/stdio.in.h (fopen, freopen): New declarations.
65943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65944         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65945         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65946         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65947         * doc/functions/fopen.texi: Mention the 'fopen' module.
65948         * doc/functions/freopen.texi: Mention the 'freopen' module.
65949
65950 2007-10-06  Bruno Haible  <bruno@clisp.org>
65951
65952         * modules/open-tests: New file.
65953         * tests/test-open.c: New file.
65954
65955         * modules/open: New file.
65956         * lib/open.c: New file.
65957         * m4/open.m4: New file.
65958         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65959         lib/open.c does.
65960         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65961         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65962         macros.
65963         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65964         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65965         REPLACE_OPEN.
65966         * doc/functions/open.texi: Mention the 'open' module.
65967
65968 2007-10-04  Bruno Haible  <bruno@clisp.org>
65969
65970         * modules/ceill-tests: New file.
65971         * tests/test-ceill.c: New file.
65972
65973         * modules/ceill: New file.
65974         * lib/ceill.c: Replace entire file.
65975         * m4/ceill.m4: New file.
65976         * lib/math.in.h (ceill): Replace declaration.
65977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65978         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65979         * doc/functions/ceill.texi: Mention the 'ceill' module.
65980         * modules/mathl (Files): Remove lib/ceill.c.
65981         (Depends-on): Add ceill.
65982
65983 2007-10-04  Bruno Haible  <bruno@clisp.org>
65984
65985         * modules/ceilf-tests: New file.
65986         * tests/test-ceilf.c: New file.
65987
65988         * modules/ceilf: New file.
65989         * lib/ceil.c: New file.
65990         * lib/ceilf.c: New file.
65991         * m4/ceilf.m4: New file.
65992         * lib/math.in.h (ceilf): New declaration.
65993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65994         HAVE_DECL_CEILF.
65995         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65996         HAVE_DECL_CEILF.
65997         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65998
65999 2007-10-04  Bruno Haible  <bruno@clisp.org>
66000
66001         * modules/floorl-tests: New file.
66002         * tests/test-floorl.c: New file.
66003
66004         * modules/floorl: New file.
66005         * lib/floorl.c: Replace entire file.
66006         * m4/floorl.m4: New file.
66007         * lib/math.in.h (floorl): Replace declaration.
66008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66009         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66010         * doc/functions/floorl.texi: Mention the 'floorl' module.
66011         * modules/mathl (Files): Remove lib/floorl.c.
66012         (Depends-on): Add floorl.
66013
66014 2007-10-04  Bruno Haible  <bruno@clisp.org>
66015
66016         * modules/floorf-tests: New file.
66017         * tests/test-floorf.c: New file.
66018
66019         * modules/floorf: New file.
66020         * lib/floor.c: New file.
66021         * lib/floorf.c: New file.
66022         * m4/floorf.m4: New file.
66023         * lib/math.in.h (floorf): New declaration.
66024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66025         HAVE_DECL_FLOORF.
66026         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66027         HAVE_DECL_FLOORF.
66028         * doc/functions/floorf.texi: Mention the 'floorf' module.
66029
66030 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66031             Bruno Haible  <bruno@clisp.org>
66032
66033         Advertise for the Git server instead of the CVS server.
66034         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66035         repository instead of the CVS one.
66036         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66037         about all VCS systems generically.
66038         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66039
66040 2007-10-04  Bruno Haible  <bruno@clisp.org>
66041
66042         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66043         means.
66044         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66045
66046 2007-10-04  Bruno Haible  <bruno@clisp.org>
66047
66048         * modules/truncl-tests: New file.
66049         * tests/test-truncl.c: New file.
66050
66051         * modules/truncl: New file.
66052         * lib/truncl.c: New file.
66053         * m4/truncl.m4: New file.
66054         * lib/math.in.h (truncl): New declaration.
66055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66056         HAVE_DECL_TRUNCL.
66057         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66058         HAVE_DECL_TRUNCL.
66059         * doc/functions/truncl.texi: Mention the 'truncl' module.
66060
66061 2007-10-04  Bruno Haible  <bruno@clisp.org>
66062
66063         * modules/truncf-tests: New file.
66064         * tests/test-truncf.c: New file.
66065
66066         * modules/truncf: New file.
66067         * lib/trunc.c: Make paramerizable through USE_* macros.
66068         * lib/truncf.c: New file.
66069         * m4/truncf.m4: New file.
66070         * lib/math.in.h (truncf): New declaration.
66071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66072         HAVE_DECL_TRUNCF.
66073         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66074         HAVE_DECL_TRUNCF.
66075         * doc/functions/truncf.texi: Mention the 'truncf' module.
66076
66077 2007-10-03  Bruno Haible  <bruno@clisp.org>
66078
66079         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66080         augmentation also for tests modules.
66081         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66082         * modules/atexit-tests (Makefile.am): Likewise.
66083         * modules/binary-io-tests (Makefile.am): Likewise.
66084         * modules/c-strcase-tests (Makefile.am): Likewise.
66085         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66086         * modules/canonicalize-tests (Makefile.am): Likewise.
66087         * modules/closein-tests (Makefile.am): Likewise.
66088         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66089         * modules/freadahead-tests (Makefile.am): Likewise.
66090         * modules/fseek-tests (Makefile.am): Likewise.
66091         * modules/fseeko-tests (Makefile.am): Likewise.
66092         * modules/ftell-tests (Makefile.am): Likewise.
66093         * modules/ftello-tests (Makefile.am): Likewise.
66094         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66095         * modules/isnanl-tests (Makefile.am): Likewise.
66096         * modules/lseek-tests (Makefile.am): Likewise.
66097         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66098         * modules/mbscasestr-tests (Makefile.am): Likewise.
66099         * modules/mbschr-tests (Makefile.am): Likewise.
66100         * modules/mbscspn-tests (Makefile.am): Likewise.
66101         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66102         * modules/mbspbrk-tests (Makefile.am): Likewise.
66103         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66104         * modules/mbsrchr-tests (Makefile.am): Likewise.
66105         * modules/mbsspn-tests (Makefile.am): Likewise.
66106         * modules/mbsstr-tests (Makefile.am): Likewise.
66107         * modules/printf-posix-tests (Makefile.am): Likewise.
66108         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66109         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66110         * modules/tsearch-tests (Makefile.am): Likewise.
66111         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66112         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66113         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66114         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66115         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66116         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66117         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66118         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66119         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66120         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66121         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66122         * modules/xstrtol-tests (Makefile.am): Likewise.
66123         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66124         * modules/yesno-tests (Makefile.am): Likewise.
66125
66126 2007-10-03  Bruno Haible  <bruno@clisp.org>
66127
66128         * modules/trunc-tests: New file.
66129         * tests/test-trunc.c: New file.
66130
66131         * modules/trunc: New file.
66132         * lib/trunc.c: New file.
66133         * m4/trunc.m4: New file.
66134         * lib/math.in.h (trunc): New declaration.
66135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66136         HAVE_DECL_TRUNC.
66137         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66138         HAVE_DECL_TRUNC.
66139         * doc/functions/trunc.texi: Mention the 'trunc' module.
66140
66141 2007-10-03  Bruno Haible  <bruno@clisp.org>
66142
66143         * tests/test-fpending.c: New file, mostly copied
66144         from coreutils/lib/t-fpending.c.
66145         * modules/fpending-tests: New file.
66146
66147 2007-10-03  Bruno Haible  <bruno@clisp.org>
66148
66149         Port the stdio extensions to QNX (untested).
66150         * lib/fseterr.c (fseterr): Add support for QNX.
66151         * lib/fbufmode.c (fbufmode): Likewise.
66152         * lib/freadable.c (freadable): Likewise.
66153         * lib/fwritable.c (fwritable): Likewise.
66154         * lib/freading.c (freading): Likewise.
66155         * lib/fwriting.c (fwriting): Likewise.
66156         * lib/freadahead.c (freadahed): Likewise.
66157         * lib/fpurge.c (fpurge): Likewise.
66158         * lib/fseeko.c (rpl_fseeko): Likewise.
66159
66160 2007-10-03  Bruno Haible  <bruno@clisp.org>
66161             Jim Meyering  <jim@meyering.net>
66162             Eric Blake  <ebb9@byu.net>
66163
66164         * doc/relocatable.texi: Use @command instead of @program.
66165
66166 2007-10-02  Jim Meyering  <jim@meyering.net>
66167
66168         Perform one more "_.h" -> ".in.h" substitution.
66169         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66170         instead of unistd_.h here, too.
66171
66172 2007-10-01  Bruno Haible  <bruno@clisp.org>
66173
66174         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66175         Needed for the alloca-opt module.
66176
66177 2007-09-30  Bruno Haible  <bruno@clisp.org>
66178
66179         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66180         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66181         alloca_.h.
66182         * lib/argz.in.h: Renamed from lib/argz_.h.
66183         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66184         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66185         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66186         byteswap_.h.
66187         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66188         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66189         dirent_.h.
66190         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66191         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66192         fcntl_.h.
66193         * lib/float.in.h: Renamed from lib/float_.h.
66194         * modules/float (Files, Makefile.am): Use float.in.h instead of
66195         float_.h.
66196         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66197         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66198         fnmatch_.h.
66199         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66200         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66201         getopt_.h.
66202         * lib/glob.in.h: Renamed from lib/glob_.h.
66203         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66204         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66205         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66206         iconv_.h.
66207         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66208         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66209         inttypes_.h.
66210         * lib/locale.in.h: Renamed from lib/locale_.h.
66211         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66212         locale_.h.
66213         * lib/math.in.h: Renamed from lib/math_.h.
66214         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66215         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66216         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66217         of netinet_in_.h. Add dependency.
66218         * lib/poll.in.h: Renamed from lib/poll_.h.
66219         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66220         * lib/search.in.h: Renamed from lib/search_.h.
66221         * modules/search (Files, Makefile.am): Use search.in.h instead of
66222         search_.h.
66223         * lib/signal.in.h: Renamed from lib/signal_.h.
66224         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66225         _signal.h.
66226         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66227         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66228         stdbool_.h.
66229         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66230         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66231         stdint_.h.
66232         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66233         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66234         stdio_.h.
66235         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66236         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66237         stdlib_.h.
66238         * lib/string.in.h: Renamed from lib/string_.h.
66239         * modules/string (Files, Makefile.am): Use string.in.h instead of
66240         string_.h.
66241         * doc/gnulib-tool.texi (Initial import): Update.
66242         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66243         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66244         of sys_select_.h. Add dependency.
66245         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66246         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66247         of sys_socket_.h.
66248         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66249         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66250         sys_stat_.h.
66251         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66252         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66253         sys_time_.h.
66254         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66255         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66256         sysexits_.h.
66257         * lib/time.in.h: Renamed from lib/time_.h.
66258         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66259         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66260         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66261         unistd_.h.
66262         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66263         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66264         wchar_.h.
66265         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66266         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66267         wctype_.h.
66268         * build-aux/bootstrap (slurp): Update.
66269         * lib/.cppi-disable: Update.
66270
66271 2007-09-30  Bruno Haible  <bruno@clisp.org>
66272
66273         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66274         Needed on BeOS.
66275
66276 2007-09-30  Bruno Haible  <bruno@clisp.org>
66277
66278         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66279
66280 2007-09-29  Bruno Haible  <bruno@clisp.org>
66281
66282         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66283
66284 2007-09-29  Bruno Haible  <bruno@clisp.org>
66285
66286         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66287         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66288         * build-aux/install-reloc: Compile also areadlink.c.
66289         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66290
66291 2007-09-29  Bruno Haible  <bruno@clisp.org>
66292
66293         * gnulib-tool (func_emit_initmacro_done): Indentation.
66294
66295 2007-09-29  Bruno Haible  <bruno@clisp.org>
66296
66297         * README: Add CVS checkout update instructions.
66298         Info from Bob Proulx <bob@proulx.com>.
66299
66300 2007-09-28  Eric Blake  <ebb9@byu.net>
66301
66302         Provide move-if-change.
66303         * build-aux/move-if-change: New file, based on best practice
66304         rather than any canonical upstream location.
66305
66306 2007-09-28  Jim Meyering  <jim@meyering.net>
66307
66308         Fix canonicalize loop-detection corner case.
66309         Do not attempt to stat the symlink values stored via seen_triple.
66310         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66311         on linux-2.6.18, (but not 2.6.22).
66312         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66313         triple_compare.  The former compares dev,ino,filename, while the latter
66314         would actually stat dirname(filename) when dev and ino were equal.
66315         * lib/hash-triple.c: Install <string.h>.
66316         (STREQ): Define.
66317         (triple_compare_ino_str): New function.
66318         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66319
66320 2007-09-28  Eric Blake  <ebb9@byu.net>
66321
66322         Enforce that AC_REPLACE_FUNCS files exist.
66323         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66324         override check for typos.
66325
66326         Fix test-closein on Solaris 10.
66327         * tests/test-closein.c (main): Don't assume stdin can be inherited
66328         closed on all systems.
66329         * tests/test-closein.sh: Likewise.
66330         Reported by Piotr Tarnowski.
66331
66332 2007-09-28  Jim Meyering  <jim@meyering.net>
66333
66334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66335
66336 2007-09-27  Jim Meyering  <jim@meyering.net>
66337
66338         canonicalize: Avoid a false-positive cycle failure.
66339         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66340         Sort.  Remove cycle-check.
66341         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66342         not cycle-check.h.
66343         (seen_triple): New function.
66344         (canonicalize_filename_mode): Use it instead of cycle-check.
66345         * tests/test-canonicalize.c: Add a test for this bug.
66346         * tests/test-canonicalize.sh: Set up and run the test.
66347
66348         New module, file-set, from coreutils.
66349         * modules/file-set: Define it.
66350         * lib/file-set.c, lib/file-set.h: Implement.
66351
66352         New module, hash-triple, from coreutils.
66353         * modules/hash-triple: Define it.
66354         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66355
66356 2007-09-25  Eric Blake  <ebb9@byu.net>
66357
66358         Fix strerror on Interix.
66359         * lib/string_.h (strerror): Declare replacement.
66360         * doc/functions/strerror.texi (strerror): Document the Interix
66361         shortcoming.
66362         * modules/string (Makefile.am): Support new hooks.
66363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66364         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66365         gl_FUNC_STRERROR_SEPARATE.
66366         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66367         * lib/strerror.c (rpl_strerror): Provide replacement.
66368         * modules/strerror (Depends-on): Add string.
66369         (configure.ac): Detect use of module.
66370         * tests/test-strerror.c: New file.
66371         * modules/strerror-tests: New test module.
66372         * modules/argp (Depends-on): Add strerror.
66373         * modules/error (Depends-on): Likewise.
66374         Reported by Martin Koeppe.
66375
66376 2007-09-24  Bruno Haible  <bruno@clisp.org>
66377
66378         * README: Update git instructions.
66379
66380 2007-09-24  Eric Blake  <ebb9@byu.net>
66381
66382         Revert fpending breakage from 2007-09-08.
66383         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66384         __fpending.c.
66385
66386 2007-09-24  Jim Meyering  <jim@meyering.net>
66387
66388         filenamecat.c: Add a test.
66389         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66390         showing how the function works when DIR is the empty string.
66391
66392 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66393
66394         * tests/test-canonicalize.sh: Turn on executable bit.
66395
66396 2007-09-19  Eric Blake  <ebb9@byu.net>
66397
66398         * README: Update CVS instructions.
66399
66400 2007-09-18  Bruno Haible  <bruno@clisp.org>
66401
66402         * modules/areadlink: New file.
66403         * lib/areadlink.h (areadlink): New declaration.
66404         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66405
66406 2007-09-17  Jim Meyering  <jim@meyering.net>
66407
66408         * lib/savewd.c (ESTALE) [!defined]: Define.
66409         Reported to be required on Interix by Martin Koeppe.
66410
66411 2007-09-17  Bruno Haible  <bruno@clisp.org>
66412
66413         * gnulib-tool (func_version): Use $version.
66414
66415 2007-09-16  Bruno Haible  <bruno@clisp.org>
66416
66417         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66418         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66419         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66420         Reported by Greg Schafer <gschafer@zip.com.au>.
66421
66422 2007-09-15  Bruno Haible  <bruno@clisp.org>
66423
66424         * gnulib-tool (sed): Try a little harder to make bash understand the
66425         alias.
66426         Reported by Bruce Korb <bruce.korb@gmail.com>.
66427
66428 2007-09-13  Eric Blake  <ebb9@byu.net>
66429
66430         * ChangeLog: Remove conflict markers.
66431
66432 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66433
66434         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66435         Reported by Bruno Haible <bruno@clisp.org>.
66436
66437 2007-09-12  Bruno Haible  <bruno@clisp.org>
66438
66439         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66440         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66441         is not defined.
66442
66443 2007-09-12  Eric Blake  <ebb9@byu.net>
66444
66445         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66446         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66447         Autoconf definition.
66448         * modules/euidaccess (Depends-on): Add extensions, for
66449         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66450         * modules/fnmatch (Depends-on): Likewise.
66451         * modules/getaddrinfo (Depends-on): Likewise.
66452         * modules/getdelim (Depends-on): Likewise.
66453         * modules/getline (Depends-on): Likewise.
66454         * modules/getsubopt (Depends-on): Likewise.
66455         * modules/gettext (Depends-on): Likewise.
66456         * modules/group-member (Depends-on): Likewise.
66457         * modules/mbchar (Depends-on): Likewise.
66458         * modules/memmem (Depends-on): Likewise.
66459         * modules/mempcpy (Depends-on): Likewise.
66460         * modules/memrchr (Depends-on): Likewise.
66461         * modules/pagealign_alloc (Depends-on): Likewise.
66462         * modules/readutmp (Depends-on): Likewise.
66463         * modules/stpcpy (Depends-on): Likewise.
66464         * modules/stpncpy (Depends-on): Likewise.
66465         * modules/strchrnul (Depends-on): Likewise.
66466         * modules/strndup (Depends-on): Likewise.
66467         * modules/strsep (Depends-on): Likewise.
66468         * modules/strverscmp (Depends-on): Likewise.
66469         * modules/vasprintf (Depends-on): Likewise.
66470         * modules/wcwidth (Depends-on): Likewise.
66471         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66472         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66473         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66474         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66475         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66476         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66477         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66478         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66479         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66480         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66481         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66482         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66483         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66484         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66485         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66486         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66487         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66488         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66489         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66490         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66491         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66492         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66493         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66494         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66495         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66497         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66498         so that lock.m4 can be used in gettext without extensions module.
66499
66500 2007-09-11  Bruno Haible  <bruno@clisp.org>
66501
66502         * m4/isc-posix.m4: Remove file.
66503         Suggested by Eric Blake.
66504
66505 2007-09-11  Eric Blake  <ebb9@byu.net>
66506
66507         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66508
66509 2007-09-10  Bruno Haible  <bruno@clisp.org>
66510
66511         * posix-modules: Fix typo in error message.
66512         Reported by Matt <mkraai@beckman.com>.
66513
66514 2007-09-09  Bruno Haible  <bruno@clisp.org>
66515
66516         * doc/functions/getdelim.texi: Update list of platforms lacking the
66517         function.
66518         * doc/functions/getline.texi: Likewise.
66519
66520 2007-09-09  Jim Meyering  <jim@meyering.net>
66521
66522         * lib/hash.c (hash_initialize): Detect calloc failure.
66523         Reported by Bruno Haible.
66524
66525 2007-09-09  Bruno Haible  <bruno@clisp.org>
66526
66527         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66528         malloc or realloc fails.
66529
66530 2007-09-09  Bruno Haible  <bruno@clisp.org>
66531
66532         * modules/getcwd (Depends-on): Add malloc-posix.
66533         * modules/glob (Depends-on): Likewise.
66534         * modules/putenv (Depends-on): Likewise.
66535         * modules/strdup (Depends-on): Likewise.
66536         * modules/getdelim (Depends-on): Add realloc-posix.
66537         * modules/read-file (Depends-on): Likewise.
66538
66539 2007-09-09  Bruno Haible  <bruno@clisp.org>
66540
66541         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66542         (gl_FUNC_MALLOC_POSIX): Require it.
66543         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66544         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66545         * modules/realloc (Files): Add m4/malloc.m4.
66546         * modules/calloc (Files): Likewise.
66547
66548 2007-09-09  Bruno Haible  <bruno@clisp.org>
66549
66550         * modules/malloc-posix: New file.
66551         * modules/malloc (Depends-on): Add malloc-posix.
66552         * lib/malloc.c: Include errno.h.
66553         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66554         and a POSIX-compatible malloc into a single function. Set ENOMEM
66555         when returning NULL.
66556         * m4/malloc.m4: New file.
66557         * doc/functions/malloc.texi: Mention the malloc-posix module.
66558         * lib/stdlib_.h (malloc): New declaration.
66559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66560         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66561         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66562         and HAVE_MALLOC_POSIX.
66563
66564 2007-09-09  Bruno Haible  <bruno@clisp.org>
66565
66566         * modules/realloc-posix: New file.
66567         * modules/realloc (Depends-on): Add realloc-posix.
66568         * lib/realloc.c: Include errno.h.
66569         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66570         and a POSIX-compatible realloc into a single function. Set ENOMEM
66571         when returning NULL.
66572         * m4/realloc.m4: New file.
66573         * doc/functions/realloc.texi: Mention the realloc-posix module.
66574         * lib/stdlib_.h (realloc): New declaration.
66575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66576         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66577         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66578         and HAVE_REALLOC_POSIX.
66579
66580 2007-09-09  Bruno Haible  <bruno@clisp.org>
66581
66582         * modules/calloc-posix: New file.
66583         * modules/calloc (Depends-on): Add calloc-posix.
66584         * lib/calloc.c: Include errno.h.
66585         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66586         and a POSIX-compatible calloc into a single function. Set ENOMEM
66587         when returning NULL.
66588         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66589         * doc/functions/calloc.texi: Mention the calloc-posix module.
66590         * lib/stdlib_.h (calloc): New declaration.
66591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66592         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66593         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66594         and HAVE_CALLOC_POSIX.
66595
66596 2007-09-09  Bruno Haible  <bruno@clisp.org>
66597
66598         Allow for modules to show an arbitrary notice.
66599         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66600         * gnulib-tool: New option --extract-notice.
66601         (func_usage): Document it.
66602         (sed_extract_prog): Update.
66603         (func_get_notice): New function.
66604         (func_modules_notice): New function.
66605         (func_import, func_create_testdir): Invoke it.
66606         Suggested by Jim Meyering.
66607
66608 2007-09-09  Bruno Haible  <bruno@clisp.org>
66609
66610         * gnulib-tool: New options --verbose, --quiet.
66611         (func_usage): Document them.
66612         (verbose): New variable.
66613         (func_execute_command): New function.
66614         (func_import): Don't show the module list and the file list if
66615         $verbose < 0.
66616         (func_create_testdir): Likewise. Use func_execute_command.
66617         (func_create_megatestdir): Use func_execute_command.
66618
66619 2007-09-08  Bruno Haible  <bruno@clisp.org>
66620
66621         * gnulib-tool (func_import): Prefer rsync over wget when available,
66622         for fetching the PO files.
66623
66624 2007-09-08  Bruno Haible  <bruno@clisp.org>
66625
66626         * posix-modules: New file. Portions copied from gnulib-tool.
66627         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66628
66629 2007-09-08  Jim Meyering  <jim@meyering.net>
66630
66631         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66632         * lib/fpending.h: Rename from __fpending.h.
66633         * lib/fpending.c: Rename from __fpending.c.
66634         Include "fpending.h", not "__fpending.h".
66635         * lib/__fpending.h, lib/__fpending.c: Remove files.
66636         * modules/fpending (Files): Reflect new file names.
66637         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66638
66639 2007-09-08  Bruno Haible  <bruno@clisp.org>
66640
66641         * m4/inttypes-h.m4: Remove stub file.
66642
66643 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66644
66645         * doc/headers/stdint.texi: Discuss #include_next issue.
66646
66647 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66648
66649         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66650
66651 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66652
66653         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66654         in variable name.
66655
66656 2007-09-03  Jim Meyering  <jim@meyering.net>
66657
66658         New module: git-version-gen.
66659         * modules/git-version-gen: New file.
66660
66661         Import changes from coreutils for bootstrap script.
66662
66663         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66664
66665         bootstrap: uses rsync to download the .po files
66666         * build-aux/bootstrap (po_download_command_format): New global.
66667         (download_po_files): Use rsync.
66668         (update_po_files): Don't remove .po files after download,
66669         so future rsync runs can take advantage of the copies.
66670
66671         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66672
66673         Solve the unnecessary-.po-file-regeneration problem once and for all.
66674         * build-aux/bootstrap (download_po_files): New function, renamed from
66675         get_translations.  Now, downloads, but doesn't update LINGUAS.
66676         (update_po_files): New function.
66677
66678         bootstrap: Ignore more.
66679         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66680         uniwidth to e.g., lib/.gitignore.
66681         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66682
66683         * build-aux/bootstrap: New setting: vc_ignore.
66684         (insert_sorted_if_absent): Create $file if absent.
66685         Adapt to new, possibly empty, list: $vc_ignore.
66686
66687         bootstrap: generate more ignorable names
66688         * build-aux/bootstrap (slurp): When generating ignorable names,
66689         also map .sin to .sed, .gperf to .c, and .y to .c.
66690
66691 2007-09-03  Jim Meyering  <jim@meyering.net>
66692
66693         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66694         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66695
66696 2007-09-02  Bruno Haible  <bruno@clisp.org>
66697
66698         Fix mis-recognition of 'mcs' on QNX 6.
66699         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66700         output contains the string "Mono".
66701         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66702         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66703
66704 2007-09-01  Bruno Haible  <bruno@clisp.org>
66705
66706         Fix collision between uniwidth/* and linebreak modules.
66707         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66708         u32_width): Remove declarations.
66709         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66710         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66711         streq3, streq2, streq1, streq0): Remove functions.
66712         (STREQ): Remove macro.
66713         (is_cjk_encoding): Remove function.
66714         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66715         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66716         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66717         * NEWS: Document the change.
66718
66719 2007-09-01  Bruno Haible  <bruno@clisp.org>
66720
66721         * lib/streq.h: Add double-inclusion guard.
66722
66723 2007-09-01  Karl Berry  <karl@gnu.org>
66724
66725         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66726
66727 2007-08-28  Jim Meyering  <jim@meyering.net>
66728
66729         Rename mreadlink_with_size to areadlink_with_size.
66730         * NEWS: Document the change.
66731         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66732         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66733         * lib/mreadlink.h: Rename this to...
66734         * lib/areadlink.h: ...this.
66735         * modules/mreadlink-with-size: Rename this to...
66736         * modules/areadlink-with-size: ...this.
66737         * lib/canonicalize.c: Reflect the renaming.
66738         * modules/canonicalize: Likewise.
66739
66740 2007-08-26  Bruno Haible  <bruno@clisp.org>
66741
66742         * gnulib-tool (func_import): When deciding which files to remove,
66743         consider also dangling symbolic links.
66744         Reported by Eric Blake.
66745
66746 2007-08-26  Bruno Haible  <bruno@clisp.org>
66747
66748         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66749
66750 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66751
66752         * lib/readline.c: Don't include getline.h, the prototype is now
66753         found in stdio.h.
66754
66755 2007-08-23  Jim Meyering  <jim@meyering.net>
66756
66757         Getdelim touchup.
66758         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66759         around the funlockfile call, since funlockfile never sets errno.
66760         Don't set errno upon failed realloc.
66761
66762 2007-08-22  Eric Blake  <ebb9@byu.net>
66763
66764         Getline touchups.
66765         * lib/getdelim.c (getdelim): Revert regression that required *n to
66766         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66767         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66768         getdelim, rather than whether implementation is missing.
66769         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66770         * lib/stdio_.h (getline): Also declare if replacement is
66771         required.
66772         * doc/functions/getdelim.texi: New file.
66773         * doc/functions/getline.texi: Likewise.
66774         * doc/gnulib.texi (Function Substitutes): Add new files.
66775         Reported by Bruno Haible.
66776
66777 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66778
66779         * users.txt: Add Guile.
66780
66781 2007-08-22  Eric Blake  <ebb9@byu.net>
66782
66783         * tests/test-getdelim.c (main): Use remove, not unlink.
66784         * tests/test-getline.c (main): Likewise.
66785
66786         Move getline and getdelim into stdio.h, per POSIX 200x.
66787         * modules/getline (Files): Remove getline.h.
66788         (Depends-on): Add stdio.
66789         (configure.ac): Add module indicator.
66790         * modules/getdelim (Files): Remove getdelim.h.
66791         (Depends-on): Add stdio.
66792         (configure.ac): Add module indicator.
66793         * modules/stdio (Makefile.am): Work with new indicators.
66794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66795         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66796         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66797         * lib/getdelim.h: Delete.
66798         * lib/getline.h: Delete.
66799         * lib/stdio_.h (getdelim, getline): Declare.
66800         * modules/getdelim-tests: New module.
66801         * modules/getline-tests: Likewise.
66802         * tests/test-getdelim.c: New file.
66803         * tests/test-getline.c: Likewise.
66804         * NEWS: Document the change.
66805         * lib/getline.c: Update choice of header.
66806         * lib/csharpcomp.c: Likewise.
66807         * lib/getpass.c: Likewise.
66808         * lib/javacomp.c: Likewise.
66809         * lib/javaversion.c: Likewise.
66810         * lib/yesno.c: Likewise.
66811         * lib/getdelim.c: Likewise.
66812         (getdelim): Set errno on failure, and avoid memory leak.
66813
66814 2007-08-19  Bruno Haible  <bruno@clisp.org>
66815
66816         * modules/closein (Depends-on): Add freadahead.
66817         * lib/closein.c: Include freadahead.h.
66818         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66819         is zero.
66820
66821 2007-08-19  Bruno Haible  <bruno@clisp.org>
66822
66823         * modules/freadahead-tests: New file.
66824         * tests/test-freadahead.sh: New file.
66825         * tests/test-freadahead.c: New file.
66826
66827         * modules/freadahead: New file.
66828         * lib/freadahead.h: New file.
66829         * lib/freadahead.c: New file.
66830         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66831         fbufmode, fpurge, freadable, fwritable.
66832
66833 2007-08-19  Eric Blake  <ebb9@byu.net>
66834
66835         Test yesno in combination with closein.
66836         * lib/yesno.c (yesno): Document use of stdin.
66837         * modules/yesno-tests (Files): New module.
66838         * tests/test-yesno.c (main): New file.
66839         * tests/test-yesno.sh: Likewise.
66840
66841 2007-08-19  Bruno Haible  <bruno@clisp.org>
66842
66843         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66844         * lib/fseeko.c (rpl_fseeko): Likewise.
66845         * lib/fseterr.c (fseterr): Likewise.
66846
66847 2007-08-19  Bruno Haible  <bruno@clisp.org>
66848
66849         * tests/test-lseek.c (main): Disable a test for BeOS.
66850         * doc/functions/lseek.texi: Document the BeOS bug.
66851
66852 2007-08-19  Bruno Haible  <bruno@clisp.org>
66853             Eric Blake  <ebb9@byu.net>
66854
66855         * lib/lseek.c: Include <sys/stat.h>.
66856         (rpl_lseek): Add workaround code also for Unix platforms.
66857         Needed for BeOS.
66858         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66859         * doc/functions/lseek.texi: Document BeOS definiency.
66860
66861 2007-08-18  Bruno Haible  <bruno@clisp.org>
66862
66863         * modules/fstrcmp-tests: New file.
66864         * tests/test-fstrcmp.c: New file.
66865
66866 2007-08-18  Bruno Haible  <bruno@clisp.org>
66867
66868         * modules/fstrcmp: New file, from GNU gettext with modifications.
66869         * lib/fstrcmp.h: New file, from GNU gettext.
66870         * lib/fstrcmp.c: New file, from GNU gettext.
66871         * MODULES.html.sh (String handling): Add fstrcmp.
66872
66873 2007-08-18  Bruno Haible  <bruno@clisp.org>
66874
66875         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66876         'bool'.
66877         (diag, compareseq): Remove const from the ctxt argument.
66878         (USE_HEURISTIC): Undefine at the end.
66879
66880 2007-08-18  Jim Meyering  <jim@meyering.net>
66881
66882         New file: lib/idcache.h
66883         * NEWS: Mention the addition.
66884         * modules/idcache (Files): Add lib/idcache.h
66885         * lib/idcache.c: Include "idcache.h".
66886         Don't include <sys/types.h>.
66887         Add a FIXME comment.
66888         Move file-scoped "static" declarations to the top.
66889         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66890
66891 2007-08-17  Bruno Haible  <bruno@clisp.org>
66892         and Paul Eggert  <eggert@cs.ucla.edu>
66893
66894         * MODULES.html.sh: Add diffseq.
66895         * modules/diffseq: New file.
66896         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66897         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66898
66899 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66900
66901         Import changes from coreutils for bootstrap script.
66902
66903         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66904
66905         * build-aux/bootstrap (slurp): Work even in environments where
66906         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66907         current code does not slurp files whose names start with ".", and
66908         this looks like it might be a troublesome area.
66909
66910         2007-07-11  Jim Meyering  <jim@meyering.net>
66911
66912         If there's a GPL vN copyright comment, require that N == 3.
66913
66914         2007-07-08  Jim Meyering  <jim@meyering.net>
66915
66916         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66917         * build-aux/bootstrap (mam_template): Move definition out of loop.
66918
66919         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66920
66921         * build-aux/bootstrap (symlink_to_dir): Rename function from
66922         symlink_to_gnulib.  Add a directory parameter.  Update all
66923         callers.
66924         (cp_mark_as_generated): Also check for -- and link to -- files in
66925         gl/.
66926
66927         2007-07-08  Jim Meyering  <jim@meyering.net>
66928
66929         Adapt to deeper hierarchy in gnulib.
66930         * build-aux/bootstrap (symlink_to_dir): If the destination
66931         directory doesn't exist, create it. This is required at least for
66932         "lib/uniwidth/cjk.h".
66933
66934         2007-05-15  Jim Meyering  <jim@meyering.net>
66935
66936         * build-aux/bootstrap: Now that generated Makefile.am files
66937         are no longer under version control, they must be created at
66938         bootstrap time.
66939
66940 2007-08-14  Ben Pfaff  <blp@gnu.org>
66941
66942         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66943
66944 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66945
66946         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66947         given the changes below.
66948         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66949         even on hosts that have padding bits beyond the supported 64.
66950
66951 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66952
66953         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66954         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66955         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66956         depends on it.
66957         (xstrtol_error): Remove.
66958         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66959         but with a different signature.
66960         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66961         * lib/xstrtol-error.c: Include exitfail.h.
66962         (xstrtol_fatal): New function, with a different signature from the
66963         old xstrtol_error, so that the caller need not worry about passing
66964         in an exit status, or about storage management of the option argument.
66965         (xstrtol_error): Now a static function.  Redo signature to
66966         implement xstrtol_fatal.  Output the correct number of hyphens in
66967         front of the option so that the caller need not worry about
66968         storage management.
66969         (N_): New macro.
66970         (_): Remove; not used now.
66971         * modules/xstrtol: Depend on getopt.
66972         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66973         of old STRTOL_FATAL_ERROR macro.
66974         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66975         of test program.
66976         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66977         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66978
66979 2007-08-08  Eric Blake  <ebb9@byu.net>
66980
66981         * lib/xstrtol-error.c: Add missing include.
66982
66983         Move xstrtol messages into gnulib domain, when --pobase is used.
66984         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66985         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66986         * modules/xstrtol (Files): Distribute new file.
66987         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66988         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66989         * tests/test-xstrtol.c: ...into new file.
66990         * tests/test-xstrtoul.c: Also test xstrtoul.
66991         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66992         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66993         * tests/test-xstrtol.sh: Drive the tests.
66994         * tests/test-xstrtoimax.sh: Likewise.
66995         * tests/test-xstrtoumax.sh: Likewise.
66996         * modules/xstrtol-tests: New module.
66997         * modules/xstrtoimax-tests: Likewise.
66998         * modules/xstrtoumax-tests: Likewise.
66999
67000 2007-08-08  Jim Meyering  <jim@meyering.net>
67001
67002         New function: mfile_name_concat.
67003         * lib/filenamecat.c (mfile_name_concat): New function, just like
67004         file_name_concat, but return NULL upon failure rather than exiting
67005         with a diagnostic.
67006         * lib/filenamecat.h: Declare it.
67007
67008 2007-08-07  Bruno Haible  <bruno@clisp.org>
67009
67010         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67011         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67012         warning from gcc.
67013         Reported by Eric Blake.
67014
67015 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67016
67017         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67018         * modules/crypto/arcfour (License): Likewise.
67019         * modules/crypto/des-tests (License): Likewise.
67020         * modules/crypto/gc-arctwo-tests (License): Likewise.
67021         * modules/crypto/gc-des-tests (License): Likewise.
67022         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67023         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67024         * modules/crypto/gc-md2-tests (License): Likewise.
67025         * modules/crypto/gc-md4-tests (License): Likewise.
67026         * modules/crypto/gc-md5-tests (License): Likewise.
67027         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67028         * modules/crypto/gc-rijndael-tests (License): Likewise.
67029         * modules/crypto/gc-sha1-tests (License): Likewise.
67030         * modules/crypto/gc-tests (License): Likewise.
67031         * modules/crypto/hmac-md5 (License): Likewise.
67032         * modules/crypto/hmac-sha1 (License): Likewise.
67033         * modules/crypto/md2-tests (License): Likewise.
67034         * modules/crypto/md4-tests (License): Likewise.
67035         * modules/crypto/md5 (License): Likewise.
67036         * modules/crypto/rijndael (License): Likewise.
67037         * modules/crypto/sha1 (License): Likewise.
67038         * modules/memxor (License): Likewise.
67039
67040 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67041         and Bruno Haible  <bruno@clisp.org>
67042
67043         * NEWS: Describe interface changes to human, xstrtol.
67044         * lib/human.h: Include <xstrtol.h>.
67045         (human_options): Return enum strtol_error, not int.  Remove
67046         bool arg; take int * instead.
67047         * lib/human.c: Don't include "gettext.h".
67048         (_): Remove; no longer used.
67049         Don't include <xstrtol.h>, since human.h does it.
67050         (human_options): Adjust to abovementioned interface changes.
67051         Do not report error to stderr; that's now the caller's
67052         responsibility.
67053         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67054         interface change.
67055         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67056         Str, Argument_type_string.  All uses changed.  Put " argument"
67057         in diagnostics to make them clearer.  Change wording of suffix
67058         message for clarity.
67059         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67060         Argument_type_string.
67061         (STRTOL_FATAL_WARN): Remove; no longer used.
67062         * modules/human (Depends-on): Remove gettext-h.
67063
67064 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67065
67066         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67067
67068 2007-07-31  Bruno Haible  <bruno@clisp.org>
67069
67070         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67071         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67072         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67073
67074 2007-07-31  Bruno Haible  <bruno@clisp.org>
67075
67076         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67077         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67078
67079 2007-07-30  Bruno Haible  <bruno@clisp.org>
67080
67081         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67082         * modules/c-ctype (License): Likewise.
67083         * modules/c-strcase (License): Likewise.
67084         * modules/check-version (License): Likewise.
67085         * modules/iconv (License): Likewise.
67086         * modules/iconv_open (License): Likewise.
67087         * modules/read-file (License): Likewise.
67088         * modules/striconv (License): Likewise.
67089         * modules/strverscmp (License): Likewise.
67090         * modules/vasprintf (License): Likewise.
67091         * modules/crypto/des (License): Likewise.
67092         * modules/crypto/gc (License): Likewise.
67093         * modules/crypto/gc-arcfour (License): Likewise.
67094         * modules/crypto/gc-arctwo (License): Likewise.
67095         * modules/crypto/gc-des (License): Likewise.
67096         * modules/crypto/gc-hmac-md5 (License): Likewise.
67097         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67098         * modules/crypto/gc-md2 (License): Likewise.
67099         * modules/crypto/gc-md4 (License): Likewise.
67100         * modules/crypto/gc-md5 (License): Likewise.
67101         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67102         * modules/crypto/gc-random (License): Likewise.
67103         * modules/crypto/gc-rijndael (License): Likewise.
67104         * modules/crypto/gc-sha1 (License): Likewise.
67105         * modules/crypto/md2 (License): Likewise.
67106         * modules/crypto/md4 (License): Likewise.
67107
67108 2007-07-30  Jim Meyering  <jim@meyering.net>
67109
67110         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67111         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67112         it has valid stat data.  This bug would cause du not to count the
67113         sizes of inaccessible directories.
67114         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67115         in <http://bugzilla.redhat.com/250077>.
67116
67117 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67118             Bruno Haible  <bruno@clisp.org>
67119
67120         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67121         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67122         #include_next, gives a diagnostic about it, but reports no error in
67123         the exit code.
67124         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67125
67126 2007-07-24  Ben Pfaff  <blp@gnu.org>
67127
67128         Improve name: "count-one-bits" is better than "popcount".
67129         * MODULES.html.sh: Update name.
67130         * lib/popcount.h: Renamed lib/count-one-bits.h.
67131         (popcount): Renamed count_one_bits.
67132         (popcountl): Renamed count_one_bits_l.
67133         (popcountll): Renamed count_one_bits_ll.
67134         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67135         * modules/popcount: Renamed module/count-one-bits.
67136         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67137         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67138
67139 2007-07-23  Ben Pfaff  <blp@gnu.org>
67140
67141         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67142         better code generation, and add U to large constants to avoid
67143         warnings, in non-GCC case.
67144         Suggested by Bruno Haible.
67145
67146 2007-07-23  Ben Pfaff  <blp@gnu.org>
67147
67148         * lib/popcount.h: Use verify_true instead of if...abort.
67149         * modules/popcount: Depend on verify module.
67150         Suggested by Jim Meyering.
67151
67152 2007-07-23  Bruno Haible  <bruno@clisp.org>
67153
67154         * gnulib-tool (func_import): Create a .cvsignore file also when the
67155         directory is not yet in CVS but the toplevel directory is. When
67156         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67157         Reported by Karl Berry.
67158
67159 2007-07-22  Ben Pfaff  <blp@gnu.org>
67160
67161         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67162         case.
67163         Suggested by Eric Blake.
67164
67165 2007-07-22  Ben Pfaff  <blp@gnu.org>
67166
67167         New module: popcount.
67168         * MODULES.html.sh: Add popcount.
67169         * modules/popcount: New file.
67170         * modules/popcount-tests: New file.
67171         * tests/test-popcount.c: New file.
67172         * lib/popcount.h: New file.
67173         * m4/popcount.m4: New file.
67174
67175 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67176
67177         * build-aux/announce-gen: Update to GPLv3.
67178
67179         * build-aux/config.guess: Update from config.
67180
67181 2007-07-21  Bruno Haible  <bruno@clisp.org>
67182
67183         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67184         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67185
67186 2007-07-20  Jim Meyering  <jim@meyering.net>
67187
67188         * check-module: Diagnose a self-dependency.
67189
67190 2007-07-19  Bruno Haible  <bruno@clisp.org>
67191
67192         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67193         empty.
67194         Reported by Eric Blake.
67195
67196 2007-07-18  Bruno Haible  <bruno@clisp.org>
67197
67198         * gnulib-tool: New options --po-base, --po-domain.
67199         (func_usage): Document them.
67200         (pobase, po_domain): New variables.
67201         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67202         DEFAULT_TEXT_DOMAIN.
67203         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67204         (func_import): Consider pobase and po_domain. Create a po/ directory.
67205         (func_create_testdir): Set pobase and po_domain to empty.
67206         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67207         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67208
67209 2007-07-18  Bruno Haible  <bruno@clisp.org>
67210
67211         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67212         EXTRA_DIST augmentation for files in build-aux/.
67213
67214 2007-07-16  Bruno Haible  <bruno@clisp.org>
67215
67216         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67217         * modules/getdelim (License): Likewise.
67218
67219 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67220
67221         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67222         * modules/d-type (License): Likewise.
67223         * modules/extensions (License): Likewise.
67224         * modules/fnmatch (License): Likewise.
67225         * modules/fseeko (License): Likewise.
67226         * modules/getaddrinfo (License): Likewise.
67227         * modules/getline (License): Likewise.
67228         * modules/getlogin_r (License): Likewise.
67229         * modules/getpass (License): Likewise.
67230         * modules/gettimeofday (License): Likewise.
67231         * modules/glob (License): Likewise.
67232         * modules/inet_ntop (License): Likewise.
67233         * modules/malloc (License): Likewise.
67234         * modules/malloca (License): Likewise.
67235         * modules/memmem (License): Likewise.
67236         * modules/mempcpy (License): Likewise.
67237         * modules/memset (License): Likewise.
67238         * modules/minmax (License): Likewise.
67239         * modules/mktime (License): Likewise.
67240         * modules/netinet_in (License): Likewise.
67241         * modules/pathmax (License): Likewise.
67242         * modules/poll (License): Likewise.
67243         * modules/regex (License): Likewise.
67244         * modules/snprintf (License): Likewise.
67245         * modules/stdbool (License): Likewise.
67246         * modules/stdint (License): Likewise.
67247         * modules/stdio (License): Likewise.
67248         * modules/strcase (License): Likewise.
67249         * modules/strcasestr (License): Likewise.
67250         * modules/strdup (License): Likewise.
67251         * modules/string (License): Likewise.
67252         * modules/strndup (License): Likewise.
67253         * modules/strnlen (License): Likewise.
67254         * modules/strpbrk (License): Likewise.
67255         * modules/strptime (License): Likewise.
67256         * modules/strsep (License): Likewise.
67257         * modules/sys_select (License): Likewise.
67258         * modules/sys_socket (License): Likewise.
67259         * modules/sys_stat (License): Likewise.
67260         * modules/sys_time (License): Likewise.
67261         * modules/time (License): Likewise.
67262         * modules/time_r (License): Likewise.
67263         * modules/timegm (License): Likewise.
67264         * modules/unistd (License): Likewise.
67265         * modules/vsnprintf (License): Likewise.
67266         * modules/wctype (License): Likewise.
67267
67268 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67269
67270         * modules/argz (License): LGPLv2+.
67271
67272 2007-07-15  Karl Berry  <karl@gnu.org>
67273
67274         * doc/gnulib.texi: revise node structure per new fdl.texi.
67275
67276 2007-07-14  Bruno Haible  <bruno@clisp.org>
67277
67278         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67279         the output file.
67280         * lib/uniname/uninames.h: Regenerated.
67281
67282 2007-07-14  Karl Berry  <karl@gnu.org>
67283
67284         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67285         omitting sectioning and index commands.
67286
67287 2007-07-13  Bruno Haible  <bruno@clisp.org>
67288
67289         New gnulib-tool option --more-symlinks.
67290         * gnulib-tool (func_usage): Document --more-symlinks.
67291         (do_copyrights): New variable.
67292         Recognize option --more-symlinks.
67293         (func_import): Don't add a copyright notice transform to
67294         sed_transform_lib_file if do_copyrights is empty.
67295
67296 2007-07-13  Bruno Haible  <bruno@clisp.org>
67297
67298         * lib/vasnprintf.c (decimal_point_char): Define also if
67299         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67300         && !NEED_PRINTF_DIRECTIVE_A.
67301         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67302         Gary V. Vaughan <gary@gnu.org>.
67303
67304 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67305
67306         * lib/inttypes_.h: Undo previous change, since it was fixed
67307         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67308
67309 2007-07-13  Bruno Haible  <bruno@clisp.org>
67310
67311         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67312         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67313
67314 2007-07-13  Jim Meyering  <jim@meyering.net>
67315
67316         df: Don't fail for Tru64's "file-on-file mount".
67317         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67318         so we fall through and use statfs instead.  Details here:
67319         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67320         Reported by Albert Chin.
67321
67322 2007-07-13  Bruno Haible  <bruno@clisp.org>
67323
67324         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67325         * modules/configmake (License): Likewise.
67326         * modules/gettext (License): Likewise.
67327         * modules/gettext-h (License): Likewise.
67328         * modules/include_next (License): Likewise.
67329         * modules/link-warning (License): Likewise.
67330         * modules/localcharset (License): Likewise.
67331         * modules/localename (License): Likewise.
67332         * modules/lock (License): Likewise.
67333         * modules/relocatable-lib-lgpl (License): Likewise.
67334         * modules/size_max (License): Likewise.
67335         * modules/vasnprintf (License): Likewise.
67336         * modules/wchar (License): Likewise.
67337         * modules/xsize (License): Likewise.
67338
67339 2007-07-13  Bruno Haible  <bruno@clisp.org>
67340
67341         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67342         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67343
67344 2007-07-12  Bruno Haible  <bruno@clisp.org>
67345
67346         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67347         in the modules files.
67348
67349 2007-07-11  Karl Berry  <karl@gnu.org>
67350
67351         * MODULES.html.sh (func_module): use
67352          sed -e '\|^'"${includefile}"'$|d'
67353          instead of /.../d, to avoid errors on $includefile's containing /.
67354
67355 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67356
67357         * gnulib-tool (func_import): Avoid duplication of --avoid
67358         statements
67359         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67360         names to `_' in variable names.
67361
67362 2007-07-10  Eric Blake  <ebb9@byu.net>
67363
67364         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67365         * NEWS: Document this change.
67366
67367 2007-07-08  Bruno Haible  <bruno@clisp.org>
67368
67369         Update to Unicode 5.0.
67370         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67371         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67372         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67373         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67374         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67375         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67376         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67377         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67378         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67379         U+10A3F, U+1D242..U+1D244.
67380         (nonspacing_table_ind): Update.
67381         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67382         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67383
67384 2007-07-08  Bruno Haible  <bruno@clisp.org>
67385
67386         Update to Unicode 5.0.
67387         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67388         code transform. Extend the name index field of unicode_name_to_code and
67389         unicode_code_to_name from 16 to 24 bits.
67390         * lib/uniname/uniname.c (unicode_character_name,
67391         unicode_name_character): Add the range 0x12xxx to the code transform.
67392         * lib/uniname/uninames.h: Regenerated.
67393         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67394
67395 2007-07-07  Bruno Haible  <bruno@clisp.org>
67396
67397         * modules/wcwidth-tests: New file.
67398         * tests/test-wcwidth.c: New file.
67399
67400         Work around MacOS X wcwidth() bug.
67401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67402         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67403         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67404         original wcwidth in non-UTF-8 locales.
67405         * modules/wcwidth (Depends-on): Add localcharset, streq,
67406         uniwidth/width.
67407         * doc/functions/wcwidth.texi: Update.
67408
67409 2007-07-07  Bruno Haible  <bruno@clisp.org>
67410
67411         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67412         (wcwidth): New declaration.
67413         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67414         macros.
67415         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67416         here. Prepare for creating <wchar.h> unconditionally.
67417         * modules/wchar (Depends-on): Add link-warning.
67418         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67419         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67420         * lib/wcwidth.h: Remove file.
67421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67422         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67423         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67424         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67425         (Include): Replace wcwidth.h with <wchar.h>.
67426         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67427         * lib/mbchar.h: Don't include wcwidth.h.
67428         * lib/mbswidth.c: Likewise.
67429         * NEWS: Mention the change.
67430
67431 2007-07-07  Bruno Haible  <bruno@clisp.org>
67432
67433         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67434         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67435         definition with an external declaration.
67436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67437         defined as a function. Remove AC_C_INLINE requirement.
67438         * modules/wcwidth (Files): Add lib/wcwidth.c.
67439         (Makefile.am): Remove redundant statement.
67440
67441 2007-07-07  Bruno Haible  <bruno@clisp.org>
67442
67443         * MODULES.html.sh (Unicode string functions): Add the new modules.
67444
67445         * tests/uniwidth/test-u32-strwidth.c: New file.
67446         * modules/uniwidth/u32-strwidth-tests: New file.
67447
67448         * lib/uniwidth/u32-strwidth.c: New file.
67449         * modules/uniwidth/u32-strwidth: New file.
67450
67451         * tests/uniwidth/test-u16-strwidth.c: New file.
67452         * modules/uniwidth/u16-strwidth-tests: New file.
67453
67454         * lib/uniwidth/u16-strwidth.c: New file.
67455         * modules/uniwidth/u16-strwidth: New file.
67456
67457         * tests/uniwidth/test-u8-strwidth.c: New file.
67458         * modules/uniwidth/u8-strwidth-tests: New file.
67459
67460         * lib/uniwidth/u8-strwidth.c: New file.
67461         * modules/uniwidth/u8-strwidth: New file.
67462
67463         * tests/uniwidth/test-u32-width.c: New file.
67464         * modules/uniwidth/u32-width-tests: New file.
67465
67466         * lib/uniwidth/u32-width.c: New file.
67467         * modules/uniwidth/u32-width: New file.
67468
67469         * tests/uniwidth/test-u16-width.c: New file.
67470         * modules/uniwidth/u16-width-tests: New file.
67471
67472         * lib/uniwidth/u16-width.c: New file.
67473         * modules/uniwidth/u16-width: New file.
67474
67475         * tests/uniwidth/test-u8-width.c: New file.
67476         * modules/uniwidth/u8-width-tests: New file.
67477
67478         * lib/uniwidth/u8-width.c: New file.
67479         * modules/uniwidth/u8-width: New file.
67480
67481         * tests/uniwidth/test-uc_width.c: New file.
67482         * modules/uniwidth/width-tests: New file.
67483
67484         * lib/uniwidth/width.c: New file, from GNU libiconv.
67485         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67486         * modules/uniwidth/width: New file.
67487
67488         * lib/uniwidth.h: New file, from GNU libiconv.
67489         * modules/uniwidth/base: New file.
67490
67491 2007-07-07  Bruno Haible  <bruno@clisp.org>
67492
67493         * lib/uniname.h: New file, from GNU gettext.
67494         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67495         * lib/uniname/uninames.h: New file, from GNU gettext.
67496         * lib/uniname/uniname.c: New file, from GNU gettext.
67497         * tests/uniname/test-uninames.sh: New file.
67498         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67499         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67500         * modules/uniname/base: New file.
67501         * modules/uniname/uniname: New file.
67502         * modules/uniname/uniname-tests: New file.
67503         * MODULES.html.sh (Unicode string functions): Add the new modules.
67504
67505 2007-07-06  Bruno Haible  <bruno@clisp.org>
67506
67507         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67508
67509 2007-07-06  Bruno Haible  <bruno@clisp.org>
67510
67511         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67512         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67513         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67514         include <sys/time.h>.
67515         Reported by Eric Blake.
67516
67517 2007-07-06  Eric Blake  <ebb9@byu.net>
67518
67519         Fix testing canonicalize on cygwin.
67520         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67521         Revert patch from 2007-06-19.
67522         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67523         canonicalize module is also in use.
67524         * tests/test-canonicalize.c: New file.
67525         * tests/test-canonicalize.sh: Likewise.
67526         * modules/canonicalize-tests: Likewise.
67527
67528 2007-07-06  Jim Meyering  <jim@meyering.net>
67529
67530         * lib/getugroups.c (getugroups): Detect getgrent failure.
67531         Adjust comment to reflect reality: this function may return -1.
67532
67533 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67534
67535         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67536         the new TP address.
67537         (usage): Fix typo
67538         (gnulib_mk): New variable.
67539
67540 2007-07-05  Jim Meyering  <jim@meyering.net>
67541
67542         Don't let endgrent clobber errno, no matter how improbable.
67543         * lib/getugroups.c (getugroups): Save and restore errno around
67544         endgrent call.
67545
67546         Close the group DB even when failing with 2^31 or more members.
67547         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67548
67549 2007-07-04  Jim Meyering  <jim@meyering.net>
67550
67551         * lib/getugroups.h: New file.
67552         * lib/getugroups.c: Include "getugroups.h".
67553         Remove uses of "register" keyword.
67554         Move local variable, "cp", down into scope where used.
67555         Give "username" parameter the "const" attribute.
67556         * modules/getugroups (Files): Add lib/getugroups.h
67557
67558 2007-07-04  Karl Berry  <karl@gnu.org>
67559
67560         * MODULES.html.sh (func_all_modules): Complete rename of
67561         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67562
67563 2007-07-02  Bruno Haible  <bruno@clisp.org>
67564
67565         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67566         mode, when inttypes.h comes from gnulib.
67567         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67568
67569 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67570
67571         * NEWS: Mention lgpl module name change.
67572
67573         * modules/lgpl-2.1: Renamed from lgpl.
67574
67575         * NEWS: Mention gpl module name change.
67576
67577         * modules/gpl-3.0: New file, based on gpl-2.0.
67578
67579         * modules/gpl-2.0: Renamed from gpl.
67580
67581         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67582         doc/gpl-2.0.texi.
67583
67584 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67585
67586         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67587         #define __STDC_LIMIT_MACROS temporarily while including
67588         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67589         Problem reported by Joel E. Denny in
67590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67591
67592 2007-07-01  Bruno Haible  <bruno@clisp.org>
67593
67594         * lib/unistdio.h: New file.
67595         * lib/unistdio/u-asnprintf.h: New file.
67596         * lib/unistdio/u-asprintf.h: New file.
67597         * lib/unistdio/u-printf-args.c: New file.
67598         * lib/unistdio/u-printf-args.h: New file.
67599         * lib/unistdio/u-printf-parse.h: New file.
67600         * lib/unistdio/u-snprintf.h: New file.
67601         * lib/unistdio/u-sprintf.h: New file.
67602         * lib/unistdio/u-vasprintf.h: New file.
67603         * lib/unistdio/u-vsnprintf.h: New file.
67604         * lib/unistdio/u-vsprintf.h: New file.
67605         * lib/unistdio/ulc-asnprintf.c: New file.
67606         * lib/unistdio/ulc-asprintf.c: New file.
67607         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67608         * lib/unistdio/ulc-printf-parse.c: New file.
67609         * lib/unistdio/ulc-snprintf.c: New file.
67610         * lib/unistdio/ulc-sprintf.c: New file.
67611         * lib/unistdio/ulc-vasnprintf.c: New file.
67612         * lib/unistdio/ulc-vasprintf.c: New file.
67613         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67614         * lib/unistdio/ulc-vsnprintf.c: New file.
67615         * lib/unistdio/ulc-vsprintf.c: New file.
67616         * lib/unistdio/u8-asnprintf.c: New file.
67617         * lib/unistdio/u8-asprintf.c: New file.
67618         * lib/unistdio/u8-printf-parse.c: New file.
67619         * lib/unistdio/u8-snprintf.c: New file.
67620         * lib/unistdio/u8-sprintf.c: New file.
67621         * lib/unistdio/u8-vasnprintf.c: New file.
67622         * lib/unistdio/u8-vasprintf.c: New file.
67623         * lib/unistdio/u8-vsnprintf.c: New file.
67624         * lib/unistdio/u8-vsprintf.c: New file.
67625         * lib/unistdio/u8-u8-asnprintf.c: New file.
67626         * lib/unistdio/u8-u8-asprintf.c: New file.
67627         * lib/unistdio/u8-u8-snprintf.c: New file.
67628         * lib/unistdio/u8-u8-sprintf.c: New file.
67629         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67630         * lib/unistdio/u8-u8-vasprintf.c: New file.
67631         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67632         * lib/unistdio/u8-u8-vsprintf.c: New file.
67633         * lib/unistdio/u16-asnprintf.c: New file.
67634         * lib/unistdio/u16-asprintf.c: New file.
67635         * lib/unistdio/u16-printf-parse.c: New file.
67636         * lib/unistdio/u16-snprintf.c: New file.
67637         * lib/unistdio/u16-sprintf.c: New file.
67638         * lib/unistdio/u16-vasnprintf.c: New file.
67639         * lib/unistdio/u16-vasprintf.c: New file.
67640         * lib/unistdio/u16-vsnprintf.c: New file.
67641         * lib/unistdio/u16-vsprintf.c: New file.
67642         * lib/unistdio/u16-u16-asnprintf.c: New file.
67643         * lib/unistdio/u16-u16-asprintf.c: New file.
67644         * lib/unistdio/u16-u16-snprintf.c: New file.
67645         * lib/unistdio/u16-u16-sprintf.c: New file.
67646         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67647         * lib/unistdio/u16-u16-vasprintf.c: New file.
67648         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67649         * lib/unistdio/u16-u16-vsprintf.c: New file.
67650         * lib/unistdio/u32-asnprintf.c: New file.
67651         * lib/unistdio/u32-asprintf.c: New file.
67652         * lib/unistdio/u32-printf-parse.c: New file.
67653         * lib/unistdio/u32-snprintf.c: New file.
67654         * lib/unistdio/u32-sprintf.c: New file.
67655         * lib/unistdio/u32-vasnprintf.c: New file.
67656         * lib/unistdio/u32-vasprintf.c: New file.
67657         * lib/unistdio/u32-vsnprintf.c: New file.
67658         * lib/unistdio/u32-vsprintf.c: New file.
67659         * lib/unistdio/u32-u32-asnprintf.c: New file.
67660         * lib/unistdio/u32-u32-asprintf.c: New file.
67661         * lib/unistdio/u32-u32-snprintf.c: New file.
67662         * lib/unistdio/u32-u32-sprintf.c: New file.
67663         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67664         * lib/unistdio/u32-u32-vasprintf.c: New file.
67665         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67666         * lib/unistdio/u32-u32-vsprintf.c: New file.
67667         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67668         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67669         * tests/unistdio/test-ulc-printf1.h: New file.
67670         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67671         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67672         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67673         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67674         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67675         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67676         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67677         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67678         * tests/unistdio/test-u8-asnprintf1.c: New file.
67679         * tests/unistdio/test-u8-asnprintf1.h: New file.
67680         * tests/unistdio/test-u8-printf1.h: New file.
67681         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67682         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67683         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67684         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67685         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67686         * tests/unistdio/test-u8-vasprintf1.c: New file.
67687         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67688         * tests/unistdio/test-u8-vsprintf1.c: New file.
67689         * tests/unistdio/test-u16-asnprintf1.c: New file.
67690         * tests/unistdio/test-u16-asnprintf1.h: New file.
67691         * tests/unistdio/test-u16-printf1.h: New file.
67692         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67693         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67694         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67695         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67696         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67697         * tests/unistdio/test-u16-vasprintf1.c: New file.
67698         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67699         * tests/unistdio/test-u16-vsprintf1.c: New file.
67700         * tests/unistdio/test-u32-asnprintf1.c: New file.
67701         * tests/unistdio/test-u32-asnprintf1.h: New file.
67702         * tests/unistdio/test-u32-printf1.h: New file.
67703         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67704         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67705         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67706         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67707         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67708         * tests/unistdio/test-u32-vasprintf1.c: New file.
67709         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67710         * tests/unistdio/test-u32-vsprintf1.c: New file.
67711         * modules/unistdio/base: New file.
67712         * modules/unistdio/u-printf-args: New file.
67713         * modules/unistdio/ulc-asnprintf: New file.
67714         * modules/unistdio/ulc-asprintf: New file.
67715         * modules/unistdio/ulc-fprintf: New file.
67716         * modules/unistdio/ulc-printf-parse: New file.
67717         * modules/unistdio/ulc-snprintf: New file.
67718         * modules/unistdio/ulc-sprintf: New file.
67719         * modules/unistdio/ulc-vasnprintf: New file.
67720         * modules/unistdio/ulc-vasprintf: New file.
67721         * modules/unistdio/ulc-vfprintf: New file.
67722         * modules/unistdio/ulc-vsnprintf: New file.
67723         * modules/unistdio/ulc-vsprintf: New file.
67724         * modules/unistdio/u8-asnprintf: New file.
67725         * modules/unistdio/u8-asprintf: New file.
67726         * modules/unistdio/u8-printf-parse: New file.
67727         * modules/unistdio/u8-snprintf: New file.
67728         * modules/unistdio/u8-sprintf: New file.
67729         * modules/unistdio/u8-vasnprintf: New file.
67730         * modules/unistdio/u8-vasprintf: New file.
67731         * modules/unistdio/u8-vsnprintf: New file.
67732         * modules/unistdio/u8-vsprintf: New file.
67733         * modules/unistdio/u8-u8-asnprintf: New file.
67734         * modules/unistdio/u8-u8-asprintf: New file.
67735         * modules/unistdio/u8-u8-snprintf: New file.
67736         * modules/unistdio/u8-u8-sprintf: New file.
67737         * modules/unistdio/u8-u8-vasnprintf: New file.
67738         * modules/unistdio/u8-u8-vasprintf: New file.
67739         * modules/unistdio/u8-u8-vsnprintf: New file.
67740         * modules/unistdio/u8-u8-vsprintf: New file.
67741         * modules/unistdio/u16-asnprintf: New file.
67742         * modules/unistdio/u16-asprintf: New file.
67743         * modules/unistdio/u16-printf-parse: New file.
67744         * modules/unistdio/u16-snprintf: New file.
67745         * modules/unistdio/u16-sprintf: New file.
67746         * modules/unistdio/u16-vasnprintf: New file.
67747         * modules/unistdio/u16-vasprintf: New file.
67748         * modules/unistdio/u16-vsnprintf: New file.
67749         * modules/unistdio/u16-vsprintf: New file.
67750         * modules/unistdio/u16-u16-asnprintf: New file.
67751         * modules/unistdio/u16-u16-asprintf: New file.
67752         * modules/unistdio/u16-u16-snprintf: New file.
67753         * modules/unistdio/u16-u16-sprintf: New file.
67754         * modules/unistdio/u16-u16-vasnprintf: New file.
67755         * modules/unistdio/u16-u16-vasprintf: New file.
67756         * modules/unistdio/u16-u16-vsnprintf: New file.
67757         * modules/unistdio/u16-u16-vsprintf: New file.
67758         * modules/unistdio/u32-asnprintf: New file.
67759         * modules/unistdio/u32-asprintf: New file.
67760         * modules/unistdio/u32-printf-parse: New file.
67761         * modules/unistdio/u32-snprintf: New file.
67762         * modules/unistdio/u32-sprintf: New file.
67763         * modules/unistdio/u32-vasnprintf: New file.
67764         * modules/unistdio/u32-vasprintf: New file.
67765         * modules/unistdio/u32-vsnprintf: New file.
67766         * modules/unistdio/u32-vsprintf: New file.
67767         * modules/unistdio/u32-u32-asnprintf: New file.
67768         * modules/unistdio/u32-u32-asprintf: New file.
67769         * modules/unistdio/u32-u32-snprintf: New file.
67770         * modules/unistdio/u32-u32-sprintf: New file.
67771         * modules/unistdio/u32-u32-vasnprintf: New file.
67772         * modules/unistdio/u32-u32-vasprintf: New file.
67773         * modules/unistdio/u32-u32-vsnprintf: New file.
67774         * modules/unistdio/u32-u32-vsprintf: New file.
67775         * modules/unistdio/ulc-asnprintf-tests: New file.
67776         * modules/unistdio/ulc-vasnprintf-tests: New file.
67777         * modules/unistdio/ulc-vasprintf-tests: New file.
67778         * modules/unistdio/ulc-vsnprintf-tests: New file.
67779         * modules/unistdio/ulc-vsprintf-tests: New file.
67780         * modules/unistdio/u8-asnprintf-tests: New file.
67781         * modules/unistdio/u8-vasnprintf-tests: New file.
67782         * modules/unistdio/u8-vasprintf-tests: New file.
67783         * modules/unistdio/u8-vsnprintf-tests: New file.
67784         * modules/unistdio/u8-vsprintf-tests: New file.
67785         * modules/unistdio/u16-asnprintf-tests: New file.
67786         * modules/unistdio/u16-vasnprintf-tests: New file.
67787         * modules/unistdio/u16-vasprintf-tests: New file.
67788         * modules/unistdio/u16-vsnprintf-tests: New file.
67789         * modules/unistdio/u16-vsprintf-tests: New file.
67790         * modules/unistdio/u32-asnprintf-tests: New file.
67791         * modules/unistdio/u32-vasnprintf-tests: New file.
67792         * modules/unistdio/u32-vasprintf-tests: New file.
67793         * modules/unistdio/u32-vsnprintf-tests: New file.
67794         * modules/unistdio/u32-vsprintf-tests: New file.
67795         * MODULES.html.sh (Unicode string functions): Add the new modules.
67796
67797 2007-07-01  Bruno Haible  <bruno@clisp.org>
67798
67799         * lib/sprintf.c (sprintf): Limit the available length estimation,
67800         to avoid address wraparound.
67801         * lib/vsprintf.c (vsprintf): Likewise.
67802         * modules/sprintf-posix (Dependencies): Add stdint.
67803         * modules/vsprintf-posix (Dependencies): Likewise.
67804
67805 2007-07-01  Bruno Haible  <bruno@clisp.org>
67806
67807         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67808         Windows PATH as well. Conservative double-quoting. Comments.
67809
67810 2007-07-01  Bruno Haible  <bruno@clisp.org>
67811             Eric Blake  <ebb9@byu.net>
67812             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67813
67814         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67815         empty components in $PATH, denoting '.'.
67816
67817 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67818
67819         * gnulib-tool: Fix indentation.
67820         (func_create_megatestdir): Likewise.
67821         Report by Bruno Haible.
67822
67823 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67824
67825         Sync from Automake.
67826         * build-aux/gnupload: Fix shell portability issues with for loops.
67827         Report by Karl Berry.
67828
67829 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67830
67831         * build-aux/maint.mk (POURL): Use translationproject.org.
67832
67833 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67834             Bruno Haible  <bruno@clisp.org>
67835
67836         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67837         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67838         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67839         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67840         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67841
67842 2007-06-27  Bruno Haible  <bruno@clisp.org>
67843
67844         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67845         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67846
67847 2007-06-26  Karl Berry  <karl@gnu.org>
67848
67849         * MODULES.html.sh: remove xreadlink-with-size.
67850
67851 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67852
67853         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67854         method that I hope also handles the double-include problem noted
67855         by Bruno Haible in
67856         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67857
67858 2007-06-23  Bruno Haible  <bruno@clisp.org>
67859
67860         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67861         Don't let the 'mostlyclean' target fail if the last subdirectory could
67862         not be removed.
67863         Reported by Karl Berry.
67864
67865 2007-06-23  Bruno Haible  <bruno@clisp.org>
67866
67867         * gnulib-tool (echo): Add a speedier workaround for ksh.
67868         * tests/test-echo.sh: Likewise.
67869
67870 2007-06-23  Bruno Haible  <bruno@clisp.org>
67871
67872         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67873         * tests/test-echo.sh: Likewise.
67874
67875 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67876
67877         * gnulib-tool (IFS): Initialize early, so we don't set it to
67878         empty later.
67879         (self_abspathname): Rewrite algorithm to set it, reindent.
67880         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67881         (func_create_megatestdir): Merge some sed scripts.
67882
67883 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67884
67885         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67886         exposed by Sun Studio 11 cc on Solaris 8.
67887
67888 2007-06-22  Bruno Haible  <bruno@clisp.org>
67889
67890         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67891         backslashes.
67892         * tests/test-echo.sh: New file.
67893
67894 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67895
67896         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67897         simplify `sed_replace_build_aux' scripts, they are portable but
67898         echoing them with `echo' is not.
67899         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67900
67901 2007-06-21  Karl Berry  <karl@gnu.org>
67902
67903         * config/srclist.txt: guess we can't handle the licenses via
67904         srclist at the moment.
67905
67906 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * MODULES.html.sh: Add include_next.
67909         * modules/include_next: New file.
67910
67911 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67914         INCLUDE_NEXT.
67915         (gl_CHECK_NEXT_HEADERS): New macro.
67916         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67917         the obsolescent gl_ABSOLUTE_HEADER.
67918         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67919         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67920         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67921         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67922         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67923         * m4/math_h.m4 (gl_MATH_H): Likewise.
67924         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67925         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67926         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67927         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67928         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67929         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67930         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67931         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67932         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67933         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67934         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67935         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67936         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67937         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67938         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67939         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67940         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67941         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67942         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67943         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67944         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67945         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67946         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67947         * lib/float_.h: Likewise.
67948         * lib/inttypes_.h: Likewise.
67949         * lib/math_.h: Likewise.
67950         * lib/search_.h: Likewise.
67951         * lib/signal_.h: Likewise.
67952         * lib/stdint_.h: Likewise.
67953         * lib/stdio_.h: Likewise.
67954         * lib/stdlib_.h: Likewise.
67955         * lib/string_.h: Likewise.
67956         * lib/sys_stat_.h: Likewise.
67957         * lib/sys_time_.h: Likewise.
67958         * lib/time_.h: Likewise.
67959         * lib/unistd_.h: Likewise.
67960         * lib/wchar_.h: Likewise.
67961         * lib/wctype_.h: Likewise.
67962         * lib/dirent_.h: Likewise.
67963         * lib/iconv_.h: Likewise.
67964         * lib/locale_.h: Likewise.
67965         * lib/netinet_in_.h: Likewise.
67966         * lib/sys_select_.h: Likewise.
67967         * lib/sys_socket_.h: Likewise.
67968         * lib/sysexits_.h: Likewise.
67969         * modules/fcntl (Depends-on): Depend on include_next, not
67970         absolute_header.
67971         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67972         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67973         * modules/fchdir: Likewise.
67974         * modules/float: Likewise.
67975         * modules/iconv_open: Likewise.
67976         * modules/inttypes: Likewise.
67977         * modules/locale: Likewise.
67978         * modules/math: Likewise.
67979         * modules/netinet_in: Likewise.
67980         * modules/search: Likewise.
67981         * modules/signal: Likewise.
67982         * modules/stdint: Likewise.
67983         * modules/stdio: Likewise.
67984         * modules/stdlib: Likewise.
67985         * modules/string: Likewise.
67986         * modules/sys_select: Likewise.
67987         * modules/sys_socket: Likewise.
67988         * modules/sys_stat: Likewise.
67989         * modules/sys_time: Likewise.
67990         * modules/sysexits: Likewise.
67991         * modules/time: Likewise.
67992         * modules/unistd: Likewise.
67993         * modules/wchar: Likewise.
67994         * modules/wctype: Likewise.
67995         * modules/sys_stat: Change maintainer to "all".
67996         * modules/unistd: Likewise.
67997
67998 2007-06-20  Karl Berry  <karl@gnu.org>
67999
68000         * config/srclist.txt: track www changes in license files.
68001
68002 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68003
68004         * build-aux/bootstrap: Remove stray dot.
68005         Make sure build_aux settings are honored when linking
68006         gnulib_extra_files.
68007
68008 2007-06-19  Eric Blake  <ebb9@byu.net>
68009
68010         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68011         Allow compilation on cygwin.
68012
68013 2007-06-19  Jim Meyering  <jim@meyering.net>
68014
68015         xreadlink-with-size: Remove module.  No longer used.
68016         Ex-callers now use xreadlink or mreadlink-with-size.
68017         * modules/xreadlink-with-size: Remove module.
68018         * lib/xreadlink-with-size.c: Remove file.
68019         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68020         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68021         just before the function definition *is* accurate.
68022
68023         Eliminate one way canonicalize_filename_mode could exit.
68024         * lib/canonicalize.c (canonicalize_filename_mode):
68025         Use mreadlink_with_size, not xreadlink_with_size.
68026
68027 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68028
68029         Detect porting problems to FreeBSD/arm, which has time_t wider than
68030         long int.  Original problem reported for GNU diff by Xin Li in
68031         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68032         * modules/getdate (Depends-on): Add intprops, verify.
68033         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68034         is an integer type no wider than long int.
68035
68036 2007-06-18  Jim Meyering  <jim@meyering.net>
68037
68038         New module: mreadlink-with-size.
68039         * MODULES.html.sh: Add mreadlink-with-size.
68040         * modules/mreadlink-with-size: New module
68041         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68042         not xreadlink-with-size.
68043         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68044
68045 2007-06-16  Bruno Haible  <bruno@clisp.org>
68046
68047         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68048         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68049         Reported by Gary V. Vaughan <gary@gnu.org>.
68050
68051 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68052
68053         Revamp lchown so that it lives in unistd.h where it belongs.
68054         * lib/lchown.h: Remove.
68055         * lib/dirchownmod.c: Don't include lib/lchown.h.
68056         * lib/fchownat.c: Likewise.
68057         * lib/openat.c: Likewise.
68058         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68059         does not follow symlinks.
68060         (EOPNOTSUPP): Define if not defined.
68061         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68062         is defined to 0.
68063         (lchown): New decl.
68064         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68065         Do not check for lchown decl.
68066         Set REPLACE_LCHOWN.
68067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68068         REPLACE_LCHOWN.
68069         * modules/chown: Make it clear it follows symlinks.
68070         * modules/lchown: Make it clear it doesn't follow symlinks.
68071         (Files): Remove lib/lchown.h
68072         (Depends-on): Add unistd.
68073         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68074         (Include): Include <unistd.h>, not "lchown.h".
68075         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68076         REPLACE_LCHOWN.
68077
68078 2007-06-15  Jim Meyering  <jim@meyering.net>
68079
68080         Change license (GPL to LGPL) of fsusage and dependents.
68081         * modules/fsusage (License): Change to LGPL.
68082         * modules/full-read (License): Likewise.
68083         * modules/full-write (License): Likewise.
68084         * modules/safe-read (License): Likewise.
68085         * modules/safe-write (License): Likewise.
68086
68087 2007-06-14  Ben Pfaff  <blp@gnu.org>
68088
68089         Missing part of allocsa -> malloca transition.
68090         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68091         gl_MALLOCA.
68092
68093 2007-06-12  Bruno Haible  <bruno@clisp.org>
68094
68095         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68096         to ia64, x86_64, i386.
68097         Reported by Eric Blake.
68098
68099 2007-06-12  Bruno Haible  <bruno@clisp.org>
68100
68101         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68102         cross-compiling to x86_64.
68103
68104 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68105
68106         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68107         glitch reported by Ralf Wildenhues in
68108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68109
68110         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68111         Vin Shelton.
68112
68113 2007-06-11  Bruno Haible  <bruno@clisp.org>
68114
68115         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68116         replacement string.
68117         Reported by Eric Blake.
68118
68119 2007-06-10  Bruno Haible  <bruno@clisp.org>
68120
68121         Prepare vasnprintf code for use with Unicode strings.
68122         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68123         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68124         TYPE_U32_STRING.
68125         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68126         a_u32_string variants.
68127         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68128         * lib/printf-args.c: Don't include config.h and the specification
68129         header if PRINTF_FETCHARGS is already defined.
68130         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68131         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68132         TYPE_U16_STRING, TYPE_U32_STRING.
68133         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68134         u16_directive, u16_directives, u32_directive, u32_directives): New
68135         types.
68136         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68137         New declarations.
68138         * lib/printf-parse.c: Don't include config.h and the specification
68139         header if PRINTF_PARSE is already defined. Eliminate the set of
68140         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68141         them now. Include c-ctype.h.
68142         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68143         directive and CHAR_T_ONLY_ASCII.
68144         * lib/vasnprintf.c: Don't include config.h and the specification header
68145         if VASNPRINTF is already defined.
68146         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68147         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68148         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68149         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68150         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68151         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68152         code accordingly.
68153         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68154         pad_ourselves also in this case, with the 'c' and 's' directives, and
68155         with a different notion of "width".
68156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68157
68158 2007-06-10  Bruno Haible  <bruno@clisp.org>
68159
68160         * modules/unistr/u32-mbsnlen: New file.
68161         * lib/unistr/u32-mbsnlen.c: New file.
68162
68163         * modules/unistr/u16-mbsnlen: New file.
68164         * lib/unistr/u16-mbsnlen.c: New file.
68165
68166         * modules/unistr/u8-mbsnlen: New file.
68167         * lib/unistr/u8-mbsnlen.c: New file.
68168
68169         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68170         declarations.
68171
68172 2007-06-10  Bruno Haible  <bruno@clisp.org>
68173
68174         * lib/string_.h (mbsnlen): New declaration.
68175         * lib/mbsnlen.c: New file.
68176         * m4/mbsnlen.m4: New file.
68177         * modules/mbsnlen: New file.
68178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68179         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68180         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68181
68182 2007-06-10  Bruno Haible  <bruno@clisp.org>
68183
68184         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68185
68186 2007-06-10  Bruno Haible  <bruno@clisp.org>
68187
68188         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68189         * lib/mbuiter.h: Likewise.
68190
68191 2007-06-10  Bruno Haible  <bruno@clisp.org>
68192
68193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68194         declaration.
68195
68196 2007-06-10  Karl Berry  <karl@gnu.org>
68197
68198         * config/srclist.txt: remove gettext entries, Bruno prefers
68199         to update individually.
68200
68201 2007-06-10  Bruno Haible  <bruno@clisp.org>
68202
68203         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68204         'maxlen'. Ensure only length + width bytes are allocated, not
68205         length + 1 + width.
68206
68207 2007-06-09  Bruno Haible  <bruno@clisp.org>
68208
68209         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68210         (CHAR_T): Remove macro.
68211         (VASNPRINTF): Update.
68212
68213 2007-06-09  Bruno Haible  <bruno@clisp.org>
68214
68215         * MODULES.html.sh (Unicode string functions): Add the new modules.
68216
68217         * modules/uniconv/u32-conv-to-enc: New file.
68218         * lib/uniconv/u32-conv-to-enc.c: New file.
68219         * modules/uniconv/u32-conv-to-enc-tests: New file.
68220         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68221
68222         * modules/uniconv/u16-conv-to-enc: New file.
68223         * lib/uniconv/u16-conv-to-enc.c: New file.
68224         * lib/uniconv/u-conv-to-enc.h: New file.
68225         * modules/uniconv/u16-conv-to-enc-tests: New file.
68226         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68227
68228         * modules/uniconv/u8-conv-to-enc: New file.
68229         * lib/uniconv/u8-conv-to-enc.c: New file.
68230         * modules/uniconv/u8-conv-to-enc-tests: New file.
68231         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68232
68233         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68234         u32_conv_to_encoding): New declarations.
68235
68236 2007-06-09  Bruno Haible  <bruno@clisp.org>
68237
68238         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68239
68240 2007-06-09  Bruno Haible  <bruno@clisp.org>
68241
68242         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68243         * modules/malloca: Renamed from modules/allocsa, updated.
68244         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68245         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68246         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68247         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68248         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68249         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68250         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68251         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68252         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68253         * modules/c-strcasestr (Depends-on): Update.
68254         * lib/c-strcasestr.c: Update.
68255         * modules/c-strstr (Depends-on): Update.
68256         * lib/c-strstr.c: Update.
68257         * modules/canonicalize-lgpl (Depends-on): Update.
68258         * lib/canonicalize-lgpl.c: Update.
68259         * modules/clean-temp (Depends-on): Update.
68260         * lib/clean-temp.c: Update.
68261         * modules/csharpcomp (Depends-on): Update.
68262         * lib/csharpcomp.c: Update.
68263         * modules/csharpexec (Depends-on): Update.
68264         * lib/csharpexec.c: Update.
68265         * modules/javacomp (Depends-on): Update.
68266         * lib/javacomp.c: Update.
68267         * modules/javaexec (Depends-on): Update.
68268         * lib/javaexec.c: Update.
68269         * modules/mbscasestr (Depends-on): Update.
68270         * lib/mbscasestr.c: Update.
68271         * modules/mbsstr (Depends-on): Update.
68272         * lib/mbsstr.c: Update.
68273         * modules/setenv (Depends-on): Update.
68274         * lib/setenv.c: Update.
68275         * modules/strcasestr (Depends-on): Update.
68276         * lib/strcasestr.c: Update.
68277         * modules/striconveha (Depends-on): Update.
68278         * lib/striconveha.c: Update.
68279         * modules/relocatable-prog-wrapper (Files): Update.
68280         * lib/relocwrapper.c: Update.
68281         * build-aux/install-reloc: Update.
68282         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68283
68284 2007-06-08  Bruno Haible  <bruno@clisp.org>
68285
68286         Port to uClibc.
68287         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68288         * lib/fpurge.c (fpurge): Likewise.
68289         * lib/freading.c (freading): Likewise.
68290         * lib/fseeko.c (rpl_fseeko): Likewise.
68291         * lib/fseterr.c (fseterr): Likewise.
68292         * lib/fwriting.c (fwriting): Likewise.
68293         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68294
68295 2007-06-08  Bruno Haible  <bruno@clisp.org>
68296
68297         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68298         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68299         * modules/gettext (Files): Add m4/intlmacosx.m4.
68300
68301 2007-06-07  Bruno Haible  <bruno@clisp.org>
68302
68303         * modules/localename-tests: New file.
68304         * tests/test-localename.c: New file.
68305
68306         New module 'localename'.
68307         * lib/localename.h: New file.
68308         * lib/localename.c: New file, from GNU gettext.
68309         * m4/localename.m4: New file.
68310         * modules/localename: New file.
68311
68312 2007-06-07  Bruno Haible  <bruno@clisp.org>
68313
68314         Work around the lack of <wchar.h> on some builds of uClibc.
68315         * doc/headers/wchar.texi: Update.
68316         * lib/wchar_.h: Include <wchar.h> only if it exists.
68317         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68318         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68319         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68320         doesn't exist.
68321         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68322         * modules/mbfile (Depends-on): Add wchar.
68323         * modules/mbiter (Depends-on): Likewise.
68324         * modules/mbuiter (Depends-on): Likewise.
68325         Reported by Simon Josefsson.
68326
68327 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68328
68329         Work around problem reported by Steven M. Schweda in
68330         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68331         Tru64 5.1B with the Compaq compiler environment installed declares
68332         an 'isblank' function but does not define it in the C library.
68333         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68334         * lib/regex_internal.h (isblank): Likewise.
68335         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68336         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68337
68338 2007-06-05  Bruno Haible  <bruno@clisp.org>
68339
68340         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68341         ia64.
68342         * modules/printf-safe: New file.
68343         * modules/fprintf-posix (Depends-on): Add printf-safe.
68344         * modules/printf-posix (Depends-on): Likewise.
68345         * modules/snprintf-posix (Depends-on): Likewise.
68346         * modules/sprintf-posix (Depends-on): Likewise.
68347         * modules/vasnprintf-posix (Depends-on): Likewise.
68348         * modules/vasprintf-posix (Depends-on): Likewise.
68349         * modules/vfprintf-posix (Depends-on): Likewise.
68350         * modules/vprintf-posix (Depends-on): Likewise.
68351         * modules/vsnprintf-posix (Depends-on): Likewise.
68352         * modules/vsprintf-posix (Depends-on): Likewise.
68353         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68354         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68355         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68356         "no" on i386, x86_64, ia64.
68357         * tests/test-snprintf-posix.h (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-sprintf-posix.h (LDBL80_WORDS): New macro.
68361         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68362         on i386, x86_64, ia64.
68363         * tests/test-vasnprintf-posix.c: Include float.h.
68364         (LDBL80_WORDS): New macro.
68365         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68366         on i386, x86_64, ia64.
68367         * tests/test-vasprintf-posix.c: Include float.h.
68368         (LDBL80_WORDS): New macro.
68369         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68370         on i386, x86_64, ia64.
68371         * tests/test-snprintf-posix.c: Include float.h.
68372         * tests/test-sprintf-posix.c: Likewise.
68373         * tests/test-vsnprintf-posix.c: Likewise.
68374         * tests/test-vsprintf-posix.c: Likewise.
68375
68376 2007-06-05  Bruno Haible  <bruno@clisp.org>
68377
68378         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68379         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68380         non-IEEE numbers on i386, x86_64, ia64.
68381         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68382         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68383         * tests/test-isnanl.h: Include float.h.
68384         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68385
68386 2007-06-05  Bruno Haible  <bruno@clisp.org>
68387
68388         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68389         also the %a / %A. Handle the %a / %A code before this extra handling.
68390
68391 2007-06-05  Bruno Haible  <bruno@clisp.org>
68392
68393         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68394         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68395
68396 2007-06-05  Bruno Haible  <bruno@clisp.org>
68397
68398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68399         typo in variable name.
68400
68401 2007-06-05  Eric Blake  <ebb9@byu.net>
68402
68403         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68404         Reported by Simon Josefsson.
68405
68406 2007-06-04  Bruno Haible  <bruno@clisp.org>
68407
68408         Avoid test failures on some PowerPC platforms.
68409         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68410         Define differently for PowerPC.
68411         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68412         Reported by Gary V. Vaughan <gary@gnu.org>.
68413
68414 2007-06-02  Bruno Haible  <bruno@clisp.org>
68415
68416         Fix test-stdint failure on FreeBSD/ia64.
68417         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68418         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68419         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68420         * doc/headers/stdint.texi: Update.
68421
68422 2007-06-01  Bruno Haible  <bruno@clisp.org>
68423
68424         * tests/test-binary-io.c (main): Pass a third argument to open().
68425         Reported by Gary V. Vaughan <gary@gnu.org>.
68426
68427 2007-06-01  Bruno Haible  <bruno@clisp.org>
68428
68429         * doc/functions/frexpl.texi: Update for mingw.
68430
68431 2007-06-01  Bruno Haible  <bruno@clisp.org>
68432
68433         * tests/test-lseek.c (main): Disable test of errno for invalid third
68434         argument.
68435         * doc/functions/lseek.texi: Update.
68436         Reported by Gary V. Vaughan <gary@gnu.org>.
68437
68438 2007-05-28  Bruno Haible  <bruno@clisp.org>
68439
68440         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68441
68442 2007-05-31  Eric Blake  <ebb9@byu.net>
68443
68444         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68445         cross compiling.
68446
68447 2007-05-30  Eric Blake  <ebb9@byu.net>
68448         and Bruno Haible  <bruno@clisp.org>
68449
68450         Work around mingw test failures exposed by m4-1.4.9b.
68451         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68452         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68453         moment.
68454
68455 2007-05-30  Bruno Haible  <bruno@clisp.org>
68456
68457         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68458         assuming that they are closed. Needed on HP-UX 11.
68459
68460 2007-05-29  Bruno Haible  <bruno@clisp.org>
68461
68462         Fix a problem with #include_next.
68463         * lib/dirent_.h: Split the double-inclusion guard.
68464         * lib/fcntl_.h: Likewise.
68465         * lib/float_.h: Likewise.
68466         * lib/iconv_.h: Likewise.
68467         * lib/inttypes_.h: Likewise.
68468         * lib/locale_.h: Likewise.
68469         * lib/math_.h: Likewise.
68470         * lib/netinet_in_.h: Likewise.
68471         * lib/search_.h: Likewise.
68472         * lib/signal_.h: Likewise.
68473         * lib/stdint_.h: Likewise.
68474         * lib/stdio_.h: Likewise.
68475         * lib/stdlib_.h: Likewise.
68476         * lib/string_.h: Likewise.
68477         * lib/sys_select_.h: Likewise.
68478         * lib/sys_socket_.h: Likewise.
68479         * lib/sys_stat_.h: Likewise.
68480         * lib/sys_time_.h: Likewise.
68481         * lib/sysexits_.h: Likewise.
68482         * lib/time_.h: Likewise.
68483         * lib/unistd_.h: Likewise.
68484         * lib/wchar_.h: Likewise.
68485         * lib/wctype_.h: Likewise.
68486
68487 2007-05-29  Bruno Haible  <bruno@clisp.org>
68488
68489         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68490         for the moment.
68491
68492 2007-05-29  Bruno Haible  <bruno@clisp.org>
68493
68494         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68495         invocation.
68496         Reported by Eric Blake.
68497
68498 2007-05-29  Bruno Haible  <bruno@clisp.org>
68499
68500         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68501         compiling case.
68502
68503 2007-05-29  Eric Blake  <ebb9@byu.net>
68504             Bruno Haible  <bruno@clisp.org>
68505
68506         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68507         cross compiles.
68508
68509 2007-05-28  Eric Blake  <ebb9@byu.net>
68510
68511         * modules/closein-tests (test_closein_LDADD): Support test on
68512         cygwin with libtool.
68513
68514 2007-05-28  Bruno Haible  <bruno@clisp.org>
68515
68516         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68517         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68518         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68519         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68520         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68521         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68522         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68523         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68524         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68525
68526 2007-05-28  Eric Blake  <ebb9@byu.net>
68527
68528         Unconditionally include <config.h> in unit tests.
68529         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68530         * tests/test-allocsa.c, tests/test-arcfour.c,
68531         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68532         tests/test-array_list.c, tests/test-array_oset.c,
68533         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68534         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68535         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68536         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68537         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68538         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68539         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68540         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68541         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68542         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68543         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68544         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68545         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68546         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68547         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68548         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68549         test-md5.c, test-memmem.c, test-printf-posix.c,
68550         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68551         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68552         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68553         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68554         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68555         test-vasnprintf-posix2.c, test-vasnprintf.c,
68556         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68557         test-vfprintf-posix.c, test-vprintf-posix.c,
68558         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68559         test-xvasprintf.c: Likewise.
68560
68561 2007-05-28  Bruno Haible  <bruno@clisp.org>
68562
68563         * gnulib-tool (func_import): Remember the --with-tests command-line
68564         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68565         Reported by Eric Blake.
68566
68567 2007-05-28  Bruno Haible  <bruno@clisp.org>
68568
68569         * modules/ftell-tests: New file.
68570         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68571         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68572
68573         * lib/ftell.c: New file.
68574         * modules/ftell: New file.
68575         * m4/ftell.m4: New file.
68576         * doc/functions/ftell.texi: Update.
68577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68578         REPLACE_FTELL.
68579         * lib/stdio_.h (rpl_ftell): New declaration.
68580         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68581         REPLACE_FTELL.
68582
68583 2007-05-28  Eric Blake  <ebb9@byu.net>
68584
68585         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68586
68587 2007-05-28  Bruno Haible  <bruno@clisp.org>
68588
68589         * modules/fseek-tests: New file.
68590         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68591         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68592
68593         * lib/fseek.c: New file.
68594         * modules/fseek: New file.
68595         * m4/fseek.m4: New file.
68596         * doc/functions/fseek.texi: Update.
68597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68598         REPLACE_FSEEK.
68599         * lib/stdio_.h (rpl_fseek): New declaration.
68600         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68601         REPLACE_FSEEK.
68602
68603 2007-05-28  Bruno Haible  <bruno@clisp.org>
68604
68605         * lib/stdio_.h (fflush): More comments.
68606
68607 2007-05-28  Bruno Haible  <bruno@clisp.org>
68608
68609         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68610         runtime test.
68611
68612 2007-05-28  Eric Blake  <ebb9@byu.net>
68613
68614         Improve lseek module.
68615         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68616         * lib/unistd_.h (lseek): Scale back link warning message.
68617         * tests/test-lseek.c: Beef up test.
68618         * tests/test-lseek.sh: Exercise more facets of lseek.
68619         Reported by Bruno Haible.
68620
68621 2007-05-28  Bruno Haible  <bruno@clisp.org>
68622
68623         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68624         to define.
68625
68626 2007-05-27  Bruno Haible  <bruno@clisp.org>
68627
68628         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68629
68630 2007-05-27  Bruno Haible  <bruno@clisp.org>
68631
68632         * modules/openmp: New file.
68633         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68634         Noah Misch.
68635
68636 2007-05-26  Bruno Haible  <bruno@clisp.org>
68637
68638         * modules/chdir-long (Depends-on): Add fchdir.
68639         * modules/chdir-safer (Depends-on): Likewise.
68640         * modules/fts (Depends-on): Likewise.
68641         * modules/fts-lgpl (Depends-on): Likewise.
68642         * modules/openat (Depends-on): Likewise.
68643         * modules/savewd (Depends-on): Likewise.
68644
68645 2007-05-24  Eric Blake  <ebb9@byu.net>
68646
68647         Fix lseek on mingw.
68648         * modules/lseek: New module.
68649         * m4/lseek.m4: New file.
68650         * lib/lseek.c: New file.
68651         * modules/lseek-tests: New file.
68652         * tests/test-lseek.c: New file.
68653         * tests/test-lseek.sh: New file.
68654         * MODULES.html.sh: Document lseek module.
68655         * modules/fflush (Depends-on): Add lseek, fseeko.
68656         * modules/fseeko (Depends-on): Likewise.
68657         * modules/ftello (Depends-on): Likewise.
68658         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68659         broken.
68660         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68661         broken.
68662         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68663         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68664         * lib/ftello.c (rpl_ftello): Likewise.
68665         * tests/test-fseeko.c (main): Test this.
68666         * tests/test-fseeko.sh: Likewise.
68667         * tests/test-ftello.c (main): Likewise.
68668         * tests/test-ftello.sh: Likewise.
68669         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68670         implies replacing fseek.
68671         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68672         HAVE_FTELLO.
68673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68674         * modules/unistd (Makefile.am): Likewise.
68675         * lib/unistd_.h (lseek): Declare a replacement.
68676         * doc/functions/lseek.texi (lseek): Document this fix.
68677         * doc/functions/fseek.texi (fseek): Likewise.
68678         * doc/functions/ftell.texi (ftell): Likewise.
68679
68680 2007-05-24  Bruno Haible  <bruno@clisp.org>
68681
68682         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68683         in the printed representation of a NaN.
68684         * tests/test-vasprintf-posix.c (test_function): Likewise.
68685         * tests/test-snprintf-posix.h (test_function): Likewise.
68686         * tests/test-sprintf-posix.h (test_function): Likewise.
68687         Reported by Eric Blake.
68688
68689 2007-05-23  Eric Blake  <ebb9@byu.net>
68690
68691         Fix fseeko/ftello on cygwin 1.5.24.
68692         * doc/functions/fseeko.texi (fseeko): Document the fix.
68693         * doc/functions/ftello.texi (ftello): Document the fix.
68694         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68695         * doc/functions/stdout.text (stdout): New file.
68696         * doc/functions/stderr.text (stderr): New file.
68697         * doc/gnulib.texi (Function Substitutes): Use new files.
68698         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68699         prior to 1.7.0.
68700         * tests/test-ftello.c (main): Likewise for ftello.
68701         * tests/test-fseeko.sh: New file.
68702         * tests/test-ftello.sh: New file.
68703         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68704         with seekable stdin.
68705         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68706         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68707         (gl_REPLACE_FSEEKO): New macro.
68708         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68709         * modules/fseeko (Files): Distribute fseeko.c.
68710         * modules/ftello (Files): Distribute ftello.c.
68711         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68712         mode.
68713         * lib/ftello.c (rpl_ftello): New file.
68714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68715         fseeko, ftello.
68716         (gl_STDIN_LARGE_OFFSET): New macro.
68717         * modules/stdio (Makefile.am): Perform the replacement.
68718         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68719
68720 2007-05-23  Bruno Haible  <bruno@clisp.org>
68721
68722         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68723         GNULIB_POSIXCHECK is defined.
68724
68725 2007-05-21  Bruno Haible  <bruno@clisp.org>
68726
68727         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68728         Check also the output for NaN arguments. When cross-compiling, guess
68729         no on IRIX.
68730         * lib/vasnprintf.c: Update comments.
68731         * tests/test-vasnprintf-posix.c (strisnan): New function.
68732         (test_function): Use it.
68733         * tests/test-vasprintf-posix.c (strisnan): New function.
68734         (test_function): Use it.
68735         * tests/test-snprintf-posix.h (strisnan): New function.
68736         (test_function): Use it.
68737         * tests/test-sprintf-posix.h (strisnan): New function.
68738         (test_function): Use it.
68739         Reported by Eric Blake.
68740
68741 2007-05-20  Bruno Haible  <bruno@clisp.org>
68742
68743         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68744         numbers that fails on BeOS.
68745         * doc/functions/frexpl.texi: Update.
68746
68747 2007-05-20  Jim Meyering  <jim@meyering.net>
68748
68749         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68750         forced upon us by glibc-2.6.
68751
68752 2007-05-20  Bruno Haible  <bruno@clisp.org>
68753
68754         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68755         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68756         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68757         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68758         NEED_PRINTF_INFINITE.
68759         (is_infinitel): New function.
68760         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68762         gl_PREREQ_VASNPRINTF_INFINITE.
68763         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68764         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68765         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68766         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68767         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68768         gl_PREREQ_VASNPRINTF_INFINITE.
68769         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68770         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68771         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68772         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68773         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68774         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68775         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68776         * doc/functions/fprintf.texi: Update.
68777         * doc/functions/printf.texi: Update.
68778         * doc/functions/snprintf.texi: Update.
68779         * doc/functions/sprintf.texi: Update.
68780         * doc/functions/vfprintf.texi: Update.
68781         * doc/functions/vprintf.texi: Update.
68782         * doc/functions/vsnprintf.texi: Update.
68783         * doc/functions/vsprintf.texi: Update.
68784
68785 2007-05-20  Bruno Haible  <bruno@clisp.org>
68786
68787         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68788         was not found in libc.
68789         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68790
68791 2007-05-20  Bruno Haible  <bruno@clisp.org>
68792
68793         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68794         printed as "-nan" instead of "nan".
68795         * tests/test-vasprintf-posix.c (test_function): Likewise.
68796         * tests/test-snprintf-posix.h (test_function): Likewise.
68797         * tests/test-sprintf-posix.h (test_function): Likewise.
68798         Needed for HP-UX 11.
68799
68800 2007-05-20  Jim Meyering  <jim@meyering.net>
68801
68802         Fix buggy test for the fchownat-deref bug.
68803         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68804         symlink required for the run-test.  Without it, this test would
68805         always declare that fchownat doesn't work, and client code would
68806         unnecessarily use the replacement function with fixed libc.
68807         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68808         Reported by Greg Schafer.
68809
68810 2007-05-19  Bruno Haible  <bruno@clisp.org>
68811
68812         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68813         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68814         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68815         Needed for IRIX 6.5 and Solaris 2.5.1.
68816
68817 2007-05-19  Bruno Haible  <bruno@clisp.org>
68818
68819         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68820         (test_function): Skip tests involving -0.0 on platforms where
68821         -0.0 = 0.0.
68822         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68823         (test_function): Skip tests involving -0.0 on platforms where
68824         -0.0 = 0.0.
68825         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68826         (test_function): Skip tests involving -0.0 on platforms where
68827         -0.0 = 0.0.
68828         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68829         (test_function): Skip tests involving -0.0 on platforms where
68830         -0.0 = 0.0.
68831         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68832         tests.
68833         * tests/test-printf-posix.h (test_function): Likewise.
68834         * tests/test-printf-posix.output: Remove all -0.0 related results.
68835         Needed for IRIX 6.5.
68836
68837 2007-05-19  Bruno Haible  <bruno@clisp.org>
68838
68839         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68840         printed as "nan0x7fffffff" instead of "nan".
68841         * tests/test-vasprintf-posix.c (test_function): Likewise.
68842         * tests/test-snprintf-posix.h (test_function): Likewise.
68843         * tests/test-sprintf-posix.h (test_function): Likewise.
68844         * tests/test-fprintf-posix.h (NaN): Remove macro.
68845         (test_function): Remove all NaN related tests.
68846         * tests/test-printf-posix.h (NaN): Remove macro.
68847         (test_function): Remove all NaN related tests.
68848         * tests/test-printf-posix.output: Remove all NaN related results.
68849         Needed for IRIX 6.5.
68850
68851 2007-05-19  Bruno Haible  <bruno@clisp.org>
68852
68853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68854         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68855
68856 2007-05-19  Bruno Haible  <bruno@clisp.org>
68857
68858         * lib/float_.h: New file.
68859         * m4/float_h.m4: New file.
68860         * modules/float: New file.
68861         * modules/isnanl (Dependencies): Add float.
68862         * modules/isnanl-nolibm (Dependencies): Likewise.
68863         * modules/mathl (Dependencies): Likewise.
68864         * modules/printf-frexpl (Dependencies): Likewise.
68865         * modules/signbit (Dependencies): Likewise.
68866         * modules/vasnprintf (Dependencies): Likewise.
68867         * doc/headers/float.texi: Update.
68868
68869 2007-05-19  Jim Meyering  <jim@meyering.net>
68870
68871         * lib/utimens.c (gl_futimens): Rename from futimens,
68872         now that glibc-2.6 declares futimens.
68873         * lib/utimens.h: Likewise.
68874
68875 2007-05-19  Bruno Haible  <bruno@clisp.org>
68876
68877         Avoid test failures on mingw.
68878         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68879         * tests/test-printf-posix.sh: Likewise.
68880         * tests/test-vfprintf-posix.sh: Likewise.
68881         * tests/test-vprintf-posix.sh: Likewise.
68882
68883 2007-05-19  Bruno Haible  <bruno@clisp.org>
68884
68885         Fix *printf result for NaN, Inf, -0.0 on mingw.
68886         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68887         * lib/vasnprintf.c: Include math.h and isnan.h.
68888         (is_infinite_or_zero): New function.
68889         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68890         values in the %f, %F, %e, %E, %g, %G directives.
68891         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68892         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68893         gl_PRINTF_INFINITE and test its result. Invoke
68894         gl_PREREQ_VASNPRINTF_INFINITE.
68895         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68896         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68897         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68898         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68899         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68900         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68901         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68902         * doc/functions/fprintf.texi: Update.
68903         * doc/functions/printf.texi: Update.
68904         * doc/functions/snprintf.texi: Update.
68905         * doc/functions/sprintf.texi: Update.
68906         * doc/functions/vfprintf.texi: Update.
68907         * doc/functions/vprintf.texi: Update.
68908         * doc/functions/vsnprintf.texi: Update.
68909         * doc/functions/vsprintf.texi: Update.
68910
68911 2007-05-19  Bruno Haible  <bruno@clisp.org>
68912
68913         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68914         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68915         Instead of multiplying with 10^k, set extra_zeroes to k.
68916         (scale10_round_long_double): Remove function.
68917
68918 2007-05-18  Bruno Haible  <bruno@clisp.org>
68919
68920         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68921         introduced on 2007-05-06.
68922
68923 2007-05-18  Bruno Haible  <bruno@clisp.org>
68924
68925         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68926         %g directives.
68927         * tests/test-vasprintf-posix.c (test_function): Likewise.
68928         * tests/test-snprintf-posix.h (test_function): Likewise.
68929         * tests/test-sprintf-posix.h (test_function): Likewise.
68930
68931 2007-05-18  Bruno Haible  <bruno@clisp.org>
68932
68933         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68934         (strmatch): New function.
68935         (test_function): Test the %f directive on numbers of various exponents.
68936         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68937         (strmatch): New function.
68938         (test_function): Test the %f directive on numbers of various exponents.
68939         * tests/test-snprintf-posix.h (strmatch): New function.
68940         (test_function): Test the %f directive on numbers of various exponents.
68941         * tests/test-sprintf-posix.h (strmatch): New function.
68942         (test_function): Test the %f directive on numbers of various exponents.
68943         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68944         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68945         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68946         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68947
68948 2007-05-18  Bruno Haible  <bruno@clisp.org>
68949
68950         Add support for 'long double' number output.
68951         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68952         * lib/vasnprintf.c: Include math.h and float+.h.
68953         (mp_limb_t): New type.
68954         (GMP_LIMB_BITS): New macro.
68955         (mp_twolimb_t): New type.
68956         (GMP_TWOLIMB_BITS): New macro.
68957         (mpn_t): New type.
68958         (multiply, divide, convert_to_decimal, decode_long_double,
68959         scale10_round_long_double, scale10_round_decimal_long_double,
68960         floorlog10l): New functions.
68961         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68962         for the %f, %F, %e, %E, %g, %G directives.
68963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68964         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68965         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68966         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68967         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68968         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68969         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68970         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68971         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68972         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68973         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68974         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68975         * modules/snprintf-posix (Depends-on): Likewise.
68976         * modules/sprintf-posix (Depends-on): Likewise.
68977         * modules/vasnprintf-posix (Depends-on): Likewise.
68978         * modules/vasprintf-posix (Depends-on): Likewise.
68979         * modules/vfprintf-posix (Depends-on): Likewise.
68980         * modules/vsnprintf-posix (Depends-on): Likewise.
68981         * modules/vsprintf-posix (Depends-on): Likewise.
68982         * modules/vasnprintf (Files): Add lib/float+.h.
68983         * doc/functions/fprintf.texi: Update.
68984         * doc/functions/printf.texi: Update.
68985         * doc/functions/snprintf.texi: Update.
68986         * doc/functions/sprintf.texi: Update.
68987         * doc/functions/vfprintf.texi: Update.
68988         * doc/functions/vprintf.texi: Update.
68989         * doc/functions/vsnprintf.texi: Update.
68990         * doc/functions/vsprintf.texi: Update.
68991
68992 2007-05-18  Bruno Haible  <bruno@clisp.org>
68993
68994         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68995
68996 2007-05-18  Bruno Haible  <bruno@clisp.org>
68997
68998         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68999         for printing 64-bit integers. Needed for mingw.
69000
69001 2007-05-18  Bruno Haible  <bruno@clisp.org>
69002
69003         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69004         gl_FUNC_FREXPL_WORKS.
69005         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69006
69007 2007-05-18  Bruno Haible  <bruno@clisp.org>
69008
69009         * modules/frexpl-nolibm-tests: New file.
69010
69011         * modules/frexpl-nolibm: New file.
69012         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69013
69014 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69017         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69018         GCC 4.2, which otherwise issues a lot of warnings.
69019         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69020         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69021         Likewise.
69022         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69023         * modules/iconv_open (iconv.h): Likewise.
69024         * modules/locale (locale.h): Likewise.
69025         * modules/netinet_in (netinet/in.h): Likewise.
69026         * modules/sys_select (sys_select.h): Likewise.
69027         * modules/sys_socket (sys/socket.h): Likewise.
69028         * modules/sys_stat (sys/stat.h): Likewise.
69029         * modules/sysexits (sysexits.h): Likewise.
69030         * modules/unistd (unistd.h): Likewise.
69031
69032 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69033
69034         * modules/closein-tests (Makefile.am): Distribute
69035         `test-closein.sh'.
69036
69037 2007-05-17  Bruno Haible  <bruno@clisp.org>
69038
69039         * tests/test-printf-posix.output: Renamed from
69040         tests/test-fprintf-posix.out.
69041         * modules/fprintf-posix-tests: Update.
69042         * modules/printf-posix-tests: Update.
69043         * modules/vfprintf-posix-tests: Update.
69044         * modules/vprintf-posix-tests: Update.
69045         * tests/test-fprintf-posix.sh: Update.
69046         * tests/test-printf-posix.sh: Update.
69047         * tests/test-vfprintf-posix.sh: Update.
69048         * tests/test-vprintf-posix.sh: Update.
69049         Reported by Ralf Wildenhues.
69050
69051 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69052
69053         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69054         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69055         GCC 4.2, which otherwise issues a lot of warnings.
69056         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69057         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69058         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69059         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69060         it should no longer be needed.
69061         * lib/string_.h: Likewise.
69062         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69063         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69064         * modules/inttypes (inttypes.h): Likewise.
69065         * modules/math (math.h): Likewise.
69066         * modules/search (search.h): Likewise.
69067         * modules/signal (signal.h): Likewise.
69068         * modules/stdint (stdint.h): Likewise.
69069         * modules/stdio (stdio.h): Likewise.
69070         * modules/stdlib (stdlib.h): Likewise.
69071         * modules/string (string.h): Likewise.
69072         * modules/sys_time (sys/time.h): Likewise.
69073         * modules/time (time.h): Likewise.
69074         * modules/wchar (wchar.h): Likewise.
69075         * modules/wctype (wtype.h): Likewise.
69076
69077 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69078
69079         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69080
69081 2007-05-13  Bruno Haible  <bruno@clisp.org>
69082
69083         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69084         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69085         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69086         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69087         (gl_PREREQ_STRTOK_R): Don't require it here.
69088
69089 2007-05-13  Bruno Haible  <bruno@clisp.org>
69090
69091         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69092         when used in C++ mode.
69093
69094 2007-05-12  Bruno Haible  <bruno@clisp.org>
69095
69096         * lib/linebuffer.h: Tweak doc.
69097         * lib/linebuffer.c: Likewise.
69098
69099 2007-05-12  James Youngman  <jay@gnu.org>
69100
69101         * lib/linebuffer.c (readlinebuffer_delim): New function,
69102         like readlinebuffer, but use a caller-specified delimiter.
69103         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69104         as the delimiter.
69105         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69106
69107 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69108
69109         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69110         * modules/openat (Files): Remove openat-die.c.
69111         (Depends-on): Add openat-die.
69112         * modules/openat-die: New module.
69113
69114 2007-05-06  Bruno Haible  <bruno@clisp.org>
69115
69116         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69117         Update with info about Cygwin.
69118         * doc/functions/fprintf.texi: Update.
69119         * doc/functions/printf.texi: Update.
69120         * doc/functions/snprintf.texi: Update.
69121         * doc/functions/sprintf.texi: Update.
69122         * doc/functions/vfprintf.texi: Update.
69123         * doc/functions/vprintf.texi: Update.
69124         * doc/functions/vsnprintf.texi: Update.
69125         * doc/functions/vsprintf.texi: Update.
69126         Reported by Eric Blake.
69127
69128 2007-05-06  Bruno Haible  <bruno@clisp.org>
69129
69130         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69131         padding ourselves for the floating-point directives.
69132         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69135         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69136         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69137         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69138         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69139         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69140         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69141         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69142         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69143         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69144         * tests/test-snprintf-posix.h (test_function): Also check the width
69145         and some flags in the %f directive.
69146         * tests/test-sprintf-posix.h (test_function): Likewise.
69147         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69148         * tests/test-vasprintf-posix.c (test_function): Likewise.
69149         * doc/functions/fprintf.texi: Update.
69150         * doc/functions/printf.texi: Update.
69151         * doc/functions/snprintf.texi: Update.
69152         * doc/functions/sprintf.texi: Update.
69153         * doc/functions/vfprintf.texi: Update.
69154         * doc/functions/vprintf.texi: Update.
69155         * doc/functions/vsnprintf.texi: Update.
69156         * doc/functions/vsprintf.texi: Update.
69157
69158 2007-05-06  Bruno Haible  <bruno@clisp.org>
69159
69160         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69161         pass the ' flag character to sprintf or snprintf.
69162         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69164         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69165         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69166         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69167         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69168         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69169         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69170         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69171         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69174         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69175         flag.
69176         * tests/test-sprintf-posix.h (test_function): Likewise.
69177         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69178         * tests/test-vasprintf-posix.c (test_function): Likewise.
69179         * doc/functions/fprintf.texi: Update.
69180         * doc/functions/printf.texi: Update.
69181         * doc/functions/snprintf.texi: Update.
69182         * doc/functions/sprintf.texi: Update.
69183         * doc/functions/vfprintf.texi: Update.
69184         * doc/functions/vprintf.texi: Update.
69185         * doc/functions/vsnprintf.texi: Update.
69186         * doc/functions/vsprintf.texi: Update.
69187
69188 2007-05-01  Bruno Haible  <bruno@clisp.org>
69189
69190         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69191
69192 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69193
69194         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69195         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69196
69197 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69198
69199         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69200         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69201         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69202
69203 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69204
69205         * lib/argp-help.c (struct hol_entry): New member `ord'.
69206         (HOL_ENTRY_PTRCMP): Use ord for comparison
69207         (hol_sort): Initialize ord.
69208
69209 2007-05-01  Bruno Haible  <bruno@clisp.org>
69210
69211         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69212         Reported by Eric Blake.
69213         * doc/gnulib.texi (Function Substitutes): Update.
69214
69215 2007-05-01  Bruno Haible  <bruno@clisp.org>
69216
69217         * doc/functions.texi: Remove file, now redundant through
69218         doc/functions/*.texi.
69219
69220 2007-05-01  Bruno Haible  <bruno@clisp.org>
69221
69222         * modules/argp (Depends-on): Add sleep.
69223
69224 2007-05-01  Bruno Haible  <bruno@clisp.org>
69225
69226         * modules/sleep-tests: New file.
69227         * tests/test-sleep.c: New file.
69228
69229         * modules/sleep: New file.
69230         * lib/sleep.c: New file.
69231         * m4/sleep.m4: New file.
69232         * lib/unistd_.h (sleep): New declaration.
69233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69234         HAVE_SLEEP.
69235         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69236         * doc/functions/sleep.texi: Document the sleep module.
69237
69238 2007-05-01  Bruno Haible  <bruno@clisp.org>
69239
69240         * lib/sigprocmask.h: Remove file.
69241         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69242         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69243         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69244         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69245         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69246         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69247         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69248         HAVE_SIGSET_T as a shell variable.
69249         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69250         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69251         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69252         (Depends-on): Add signal. Remove verify.
69253         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69254         (Include): Mention <signal.h> instead of sigprocmask.h.
69255         * NEWS: Mention the change.
69256         * lib/fatal-signal.c: Don't include sigprocmask.h.
69257
69258 2007-05-01  Bruno Haible  <bruno@clisp.org>
69259
69260         * modules/signal: New file.
69261         * lib/signal_.h: New file.
69262         * m4/signal_h.m4: New file.
69263
69264 2007-05-01  Bruno Haible  <bruno@clisp.org>
69265
69266         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69267         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69268         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69269         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69270
69271 2007-05-01  Bruno Haible  <bruno@clisp.org>
69272
69273         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69274         configure time.
69275         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69276         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69277         * modules/sys_stat (Makefile.am): Substitute their values into
69278         sys/stat.h.
69279
69280 2007-05-01  Bruno Haible  <bruno@clisp.org>
69281
69282         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69283         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69284         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69285
69286 2007-05-01  Bruno Haible  <bruno@clisp.org>
69287
69288         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69289         'assert' module here.
69290
69291 2007-05-01  Bruno Haible  <bruno@clisp.org>
69292
69293         * doc/functions/*.texi: New files.
69294         * doc/functions/google-ranking.txt: New file.
69295         * doc/gnulib.texi (Function Substitutes): New chapter.
69296         (ctime, inet_ntoa): Remove sections.
69297         * doc/ctime.texi: Remove file.
69298         * doc/inet_ntoa.texi: Remove file.
69299         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69300         dependencies.
69301         (%.info): New rule, specifying a --reference-limit.
69302
69303 2007-05-01  Bruno Haible  <bruno@clisp.org>
69304
69305         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69306
69307 2007-05-01  Bruno Haible  <bruno@clisp.org>
69308
69309         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69310         the portability of 'mkdir' to mingw systems.
69311
69312 2007-05-01  Bruno Haible  <bruno@clisp.org>
69313
69314         * doc/headers/google-ranking.txt: New file.
69315
69316 2007-04-30  Eric Blake  <ebb9@byu.net>
69317
69318         Prefer fseeko to fseek.
69319         * modules/getpass (Depends-on): Add fseeko.
69320         * lib/getpass.c (getpass): Use fseeko, not fseek.
69321
69322 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69323
69324         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69325         assumes the sorting is stable, while most qsort implementations
69326         are not.  Use argument addresses to ensure they never compare as
69327         equal.
69328
69329         * tests/test-argp-2.sh (usage-indent test): Fix output
69330         (func_compare): Restore diff options
69331         * tests/test-argp.c: Restore #include "progname.h"
69332
69333 2007-04-29  Bruno Haible  <bruno@clisp.org>
69334
69335         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69337         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69338         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69339         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69340         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69341         (TESTS, check_PROGRAMS): Add test-snprintf.
69342         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69343         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69344         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69345         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69346         assertions that fail on HP-UX, OSF/1, or IRIX.
69347         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69348
69349 2007-04-29  Bruno Haible  <bruno@clisp.org>
69350
69351         * MODULES.html.sh (posix_functions): Remove 'contents'.
69352
69353 2007-04-29  Karl Berry  <karl@gnu.org>
69354
69355         * config/srclist.txt (gendocs_template_min): new entry.
69356
69357 2007-04-29  Bruno Haible  <bruno@clisp.org>
69358
69359         Work around fpurge bug on BSD systems.
69360         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69361         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69362         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69363         fpurge to rpl_fpurge if the system already has this function.
69364         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69365         the case where the system already has this function. Correct invariants
69366         on BSD systems.
69367         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69368         BSD systems.
69369
69370 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69371
69372         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69373         proposed by Sven Verdoolaege.
69374
69375         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69376         options.
69377         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69378         (usage and help tests): Update
69379
69380 2007-04-29  Bruno Haible  <bruno@clisp.org>
69381
69382         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69383         Print more information in case of failure. Disable a test on BeOS.
69384
69385 2007-04-29  Bruno Haible  <bruno@clisp.org>
69386
69387         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69388         This helps debugging on systems on which no gdb is available.
69389
69390 2007-04-29  Bruno Haible  <bruno@clisp.org>
69391
69392         * lib/freading.h: Improve comments.
69393         * lib/fwriting.h: Likewise.
69394         * tests/test-freading.c (main): Don't check freading immediately after
69395         repositioning. Needed for glibc.
69396
69397 2007-04-29  Bruno Haible  <bruno@clisp.org>
69398
69399         * lib/freading.c (freading): Trivial simplification.
69400
69401 2007-04-28  Bruno Haible  <bruno@clisp.org>
69402
69403         * tests/test-fwriting.c (main): Also test the interaction between
69404         fflush and fwriting.
69405         * modules/fwriting-tests (Depends-on): Add fflush.
69406
69407         * tests/test-freading.c (main): Also test the interaction between
69408         fflush and freading.
69409         * modules/freading-tests (Depends-on): Add fflush.
69410
69411 2007-04-28  Bruno Haible  <bruno@clisp.org>
69412
69413         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69414         fseeko and ftello.
69415         Suggested by Eric Blake.
69416
69417 2007-04-28  Jim Meyering  <jim@meyering.net>
69418
69419         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69420         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69421         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69422
69423 2007-04-27  Eric Blake  <ebb9@byu.net>
69424
69425         * doc/headers/assert.texi (assert.h): Document assert module use.
69426
69427 2007-04-27  Bruno Haible  <bruno@clisp.org>
69428
69429         * doc/headers/*.texi: New files.
69430         * doc/gnulib.texi (Header File Substitutes): New chapter.
69431         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69432         dependencies.
69433         (standards.info ,standards.html, standards.dvi): Update dependencies.
69434         (mostlyclean, clean): New targets.
69435
69436 2007-04-27  Bruno Haible  <bruno@clisp.org>
69437
69438         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69439         * modules/sysexits (Files, Makefile.am): Update.
69440
69441         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69442         * modules/sys_socket (Files, Makefile.am): Update.
69443
69444         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69445         * modules/sys_stat (Files, Makefile.am): Update.
69446
69447 2007-04-27  Eric Blake  <ebb9@byu.net>
69448
69449         * lib/freading.h: Improve comments.
69450         * lib/fwriting.h: Likewise.
69451         * lib/fflush.c: Likewise.
69452
69453         Fix closein for mingw.
69454         * modules/closein-tests: Add tests for closein.
69455         * tests/test-closein.c: New file.
69456         * tests/test-closein.sh: Likewise.
69457         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69458         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69459
69460 2007-04-27  Bruno Haible  <bruno@clisp.org>
69461
69462         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69463         version is < 6.
69464         * lib/math_.h [__DECC]: Likewise.
69465         * lib/stdio_.h [__DECC]: Likewise.
69466         * lib/stdlib_.h [__DECC]: Likewise.
69467         * lib/string_.h [__DECC]: Likewise.
69468         * lib/time_.h [__DECC]: Likewise.
69469         * lib/wchar_.h [__DECC]: Likewise.
69470         * lib/wctype_.h [__DECC]: Likewise.
69471
69472 2007-04-27  Bruno Haible  <bruno@clisp.org>
69473
69474         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69475
69476 2007-04-27  Bruno Haible  <bruno@clisp.org>
69477
69478         * lib/fflush.c: Add comments.
69479         * modules/fpurge-tests (Depends-on): Add fflush.
69480         * modules/freadable-tests (Depends-on): Likewise.
69481         * modules/fwritable-tests (Depends-on): Likewise.
69482
69483 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69484
69485         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69486         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69487         Report by Bruno Haible <bruno@clisp.org>.
69488
69489 2007-04-26  Eric Blake  <ebb9@byu.net>
69490
69491         Fix fflush on mingw.
69492         * modules/fflush (Depends-on): Add freading.
69493         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69494         but unread data.
69495
69496 2007-04-26  Eric Blake  <ebb9@byu.net>
69497         and Bruno Haible  <bruno@clisp.org>
69498
69499         Implement freading and fwriting.
69500         * lib/freading.c: New file.
69501         * lib/freading.h: Likewise.
69502         * m4/freading.m4: Likewise.
69503         * modules/freading: Likewise.
69504         * modules/freading-tests: Likewise.
69505         * tests/test-freading.c: Likewise.
69506         * lib/fwriting.c: New file.
69507         * lib/fwriting.h: Likewise.
69508         * m4/fwriting.m4: Likewise.
69509         * modules/fwriting: Likewise.
69510         * modules/fwriting-tests: Likewise.
69511         * tests/test-fwriting.c: Likewise.
69512         * MODULES.html.sh (File stream based Input/Output): Mention them.
69513
69514 2007-04-26  Bruno Haible  <bruno@clisp.org>
69515
69516         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69517         'long' when we assume it.
69518         Suggested by Eric Blake.
69519
69520 2007-04-26  Bruno Haible  <bruno@clisp.org>
69521
69522         Ensure fseeko, ftello are declared on glibc systems.
69523         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69524         * modules/fseeko (configure.ac-early): Likewise.
69525         * modules/ftello (configure.ac-early): Likewise.
69526         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69527         AC_FUNC_FSEEKO for this.
69528         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69529         (gl_CHECK_FSEEKO): Remove macro.
69530
69531 2007-04-26  Bruno Haible  <bruno@clisp.org>
69532
69533         * tests/test-fflush.c (main): Also check the ftell result after
69534         fflush and fseek/fseeko.
69535         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69536         file descriptor position cache in the stream.
69537         * lib/fseeko.c (rpl_fseeko): Likewise.
69538
69539 2007-04-26  Bruno Haible  <bruno@clisp.org>
69540
69541         * modules/fflush-tests (Depends-on): Add fseeko.
69542
69543 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69544             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69545
69546         * lib/argz_.h: ensure error_t definition is obtained in same
69547         mechanism system argz.h would have.
69548         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69549         argz facilities are known bad.  Err on the side of caution if
69550         cross-compiling.
69551
69552 2007-04-25  Eric Blake  <ebb9@byu.net>
69553
69554         * lib/fpurge.c (includes): Use stdlib.h for free.
69555         * tests/test-fflush.c (main): Also test fflush-fseeko.
69556
69557 2007-04-25  Bruno Haible  <bruno@clisp.org>
69558
69559         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69560         * lib/fseeko.c: New file.
69561         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69562         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69563         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69564         gl_FUNC_FSEEKO.
69565         (gl_FUNC_FSEEKO): Invoke it.
69566         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69567         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69568         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69569
69570 2007-04-25  Bruno Haible  <bruno@clisp.org>
69571
69572         * modules/fflush (Depends-on): Add ftello.
69573
69574 2007-04-25  Bruno Haible  <bruno@clisp.org>
69575
69576         * modules/ftello-tests: New file.
69577         * tests/test-ftello.c: New file.
69578
69579         * modules/ftello: New file.
69580         * m4/ftello.m4: New file.
69581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69582         HAVE_FTELLO.
69583         * lib/stdio_.h (ftello): New declaration.
69584         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69585         HAVE_FTELLO.
69586
69587 2007-04-25  Bruno Haible  <bruno@clisp.org>
69588
69589         * modules/fseeko-tests: New file.
69590         * tests/test-fseeko.c: New file.
69591
69592         * modules/fseeko: New file.
69593         * m4/fseeko.m4: New file.
69594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69595         HAVE_FSEEKO.
69596         * lib/stdio_.h (fseeko): New declaration.
69597         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69598         HAVE_FSEEKO.
69599
69600 2007-04-25  Bruno Haible  <bruno@clisp.org>
69601
69602         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69603
69604 2007-04-25  Bruno Haible  <bruno@clisp.org>
69605
69606         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69607         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69608         * tests/test-unistd.c: Likewise.
69609         * tests/test-fcntl.c: Likewise.
69610
69611 2007-04-23  Eric Blake  <ebb9@byu.net>
69612
69613         * lib/fflush.c: Fix missing include.
69614         Reported by Bruno Haible.
69615
69616 2007-04-23  Bruno Haible  <bruno@clisp.org>
69617
69618         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69619         Reported by Eric Blake.
69620
69621 2007-04-23  Bruno Haible  <bruno@clisp.org>
69622
69623         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69624
69625 2007-04-23  Bruno Haible  <bruno@clisp.org>
69626
69627         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69628
69629 2007-04-23  Bruno Haible  <bruno@clisp.org>
69630
69631         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69632         Needed on HP-UX 11.
69633
69634 2007-04-16  Eric Blake  <ebb9@byu.net>
69635
69636         Make fflush rely on fpurge.
69637         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69638         open coding all variants.
69639         * modules/fflush (Depends-on): Add fpurge and unistd.
69640         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69641         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69642
69643         Fix --with-tests compilation on cygwin.
69644         * modules/argmatch-tests (Makefile.am): List gnulib library first
69645         in LDADD.
69646         * modules/argp-tests (Makefile.am): Likewise.
69647         * modules/array-list-tests (Makefile.am): Likewise.
69648         * modules/array-oset-tests (Makefile.am): Likewise.
69649         * modules/avltree-list-tests (Makefile.am): Likewise.
69650         * modules/avltree-oset-tests (Makefile.am): Likewise.
69651         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69652         * modules/carray-list-tests (Makefile.am): Likewise.
69653         * modules/dirname-tests (Makefile.am): Likewise.
69654         * modules/frexp-tests (Makefile.am): Likewise.
69655         * modules/isnanl-tests (Makefile.am): Likewise.
69656         * modules/linked-list-tests (Makefile.am): Likewise.
69657         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69658         * modules/lock-tests (Makefile.am): Likewise.
69659         * modules/rbtree-list-tests (Makefile.am): Likewise.
69660         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69661         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69662         * modules/tls-tests (Makefile.am): Likewise.
69663         * modules/tsearch-tests (Makefile.am): Likewise.
69664         * modules/xvasprintf-tests (Makefile.am): Likewise.
69665
69666         Fix fpurge for cygwin.
69667         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69668         value.
69669         * modules/fpurge-tests (Depends-on): Clean up trash.
69670
69671 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69672
69673         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69674
69675         * m4/autobuild.m4: Re-indent.
69676
69677 2007-04-13  Bruno Haible  <bruno@clisp.org>
69678
69679         * modules/fpurge-tests: New file.
69680         * tests/test-fpurge.c: New file.
69681
69682         * modules/fpurge: New file.
69683         * lib/fpurge.h: New file.
69684         * lib/fpurge.c: New file.
69685         * m4/fpurge.m4: New file.
69686
69687 2007-04-13  Bruno Haible  <bruno@clisp.org>
69688
69689         * modules/fbufmode-tests: New file.
69690         * tests/test-fbufmode.c: New file.
69691
69692         * modules/fbufmode: New file.
69693         * lib/fbufmode.h: New file.
69694         * lib/fbufmode.c: New file.
69695         * m4/fbufmode.m4: New file.
69696
69697 2007-04-13  Bruno Haible  <bruno@clisp.org>
69698
69699         * modules/fwritable-tests: New file.
69700         * tests/test-fwritable.c: New file.
69701
69702         * modules/fwritable: New file.
69703         * lib/fwritable.h: New file.
69704         * lib/fwritable.c: New file.
69705         * m4/fwritable.m4: New file.
69706
69707 2007-04-13  Bruno Haible  <bruno@clisp.org>
69708
69709         * modules/freadable-tests: New file.
69710         * tests/test-freadable.c: New file.
69711
69712         * modules/freadable: New file.
69713         * lib/freadable.h: New file.
69714         * lib/freadable.c: New file.
69715         * m4/freadable.m4: New file.
69716
69717 2007-04-13  Bruno Haible  <bruno@clisp.org>
69718
69719         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69720         MOSTLYCLEANFILES.
69721
69722 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69723
69724         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69725         gzip bootstrap.conf to avoid dragging in i18n machinery.
69726         (gnulib_tool_option): Use it.
69727
69728 2007-04-13  Bruno Haible  <bruno@clisp.org>
69729
69730         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69731         %F directives.
69732         * tests/test-vasprintf-posix.c (test_function): Likewise.
69733         * tests/test-snprintf-posix.h (test_function): Likewise.
69734         * tests/test-sprintf-posix.h (test_function): Likewise.
69735         * tests/test-fprintf-posix.h (test_function): Likewise.
69736         * tests/test-printf-posix.h (test_function): Likewise.
69737         * tests/test-fprintf-posix.out: Likewise.
69738
69739 2007-04-13  Bruno Haible  <bruno@clisp.org>
69740
69741         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69742         * modules/tls-tests (configure.ac): Likewise.
69743         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69744
69745 2007-04-13  Bruno Haible  <bruno@clisp.org>
69746
69747         * lib/tls.c (glthread_tls_get): Fix return type.
69748         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69749
69750 2007-04-12  Eric Blake  <ebb9@byu.net>
69751
69752         * modules/gettime (Depends-on): Remove gettime.
69753         Reported by Dmitry V. Levin.
69754
69755 2007-04-12  Bruno Haible  <bruno@clisp.org>
69756
69757         * modules/fflush (Include): Mention <stdio.h>.
69758         * modules/strtoimax (Include): Mention <inttypes.h>.
69759         * modules/strtoumax (Include): Likewise.
69760
69761 2007-04-12  Eric Blake  <ebb9@byu.net>
69762
69763         * .cvsignore: New file.
69764         * .gitignore: Likewise.
69765
69766 2007-04-12  Bruno Haible  <bruno@clisp.org>
69767
69768         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69769         not before, since $(LDADD) often contains libgnu.a.
69770         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69771         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69772         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69773         Needed on Cygwin.
69774
69775 2007-04-12  Eric Blake  <ebb9@byu.net>
69776
69777         Work around glibc's failure to flush stdin on fclose.
69778         * lib/closein.c (close_stdin): Flush stdin before closing.
69779
69780         Work around glibc's failure to reset seekable stdin on exit.
69781         * modules/closein: New module.
69782         * lib/closein.c: New file.
69783         * lib/closein.h: Likewise.
69784         * m4/closein.m4: Likewise.
69785         * MODULES.html.sh (File stream based Input/Output): Document it.
69786
69787 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69788
69789         * gnulib-tool: Rename generated 'autobuild' script to
69790         'do-autobuild' in --create-megatestdir output.
69791
69792         * doc/gnulib.texi (Build robot for gnulib): Fix.
69793
69794 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69795
69796         * modules/sysexits (Depends-on): Add absolute-header.
69797
69798 2007-04-12  Eric Blake  <ebb9@byu.net>
69799
69800         No need to preserve errno on success.
69801         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69802         Reported by Bruno Haible.
69803
69804 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69805
69806         * MODULES.html.sh (Support for maintaining and releasing
69807         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69808
69809 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69810
69811         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69812
69813 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69814
69815         * modules/autobuild: New module.
69816
69817         * m4/autobuild.m4: New file.
69818
69819 2007-04-11  Bruno Haible  <bruno@clisp.org>
69820
69821         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69822         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69823         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69825         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69826         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69827         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69828         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69829         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69830         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69831         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69832         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69833         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69834         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69835         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69836         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69837         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69838         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69839         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69840         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69841         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69842         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69844         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69845         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69846         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69847         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69848         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69849         Reported by Eric Blake.
69850
69851 2007-04-11  Bruno Haible  <bruno@clisp.org>
69852
69853         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69854
69855 2007-04-10  Bruno Haible  <bruno@clisp.org>
69856
69857         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69858         for NaN and Infinity. Needed on FreeBSD 6.1.
69859         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69860         regarding results for "%010a" of Infinity and NaN.
69861         * tests/test-vasprintf-posix.c (test_function): Likewise.
69862         * tests/test-snprintf-posix.h (test_function): Likewise.
69863         * tests/test-sprintf-posix.h (test_function): Likewise.
69864         * tests/test-fprintf-posix.h (test_function): Likewise.
69865         * tests/test-printf-posix.h (test_function): Likewise.
69866         * tests/test-fprintf-posix.out: Likewise.
69867
69868 2007-04-10  Bruno Haible  <bruno@clisp.org>
69869
69870         * modules/locale-tests: New file.
69871         * tests/test-locale.c: New file.
69872
69873         * modules/locale: New file.
69874         * lib/locale_.h: New file.
69875         * m4/locale_h.m4: New file.
69876
69877 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69878             Bruno Haible  <bruno@clisp.org>
69879
69880         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69881         be determined, test for availability of the copysignf, copysign,
69882         copysignl functions.
69883         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69884         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69885         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69886
69887 2007-04-09  Eric Blake  <ebb9@byu.net>
69888
69889         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69890         * modules/stdio (Makefile.am): Support fflush.
69891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69892         * modules/fflush: New file.
69893         * lib/fflush.c: Likewise.
69894         * m4/fflush.m4: Likewise.
69895         * modules/fflush-tests: New test.
69896         * tests/test-fflush.c: Likewise.
69897         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69898
69899 2007-04-06  Bruno Haible  <bruno@clisp.org>
69900
69901         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69902         (VASNPRINTF): Use signbit for faster determination whether to print a
69903         minus sign.
69904         * modules/vasnprintf (Files): Remove lib/float+.h.
69905         * modules/fprintf-posix (Depends-on): Add signbit.
69906         * modules/snprintf-posix (Depends-on): Likewise.
69907         * modules/sprintf-posix (Depends-on): Likewise.
69908         * modules/vasnprintf-posix (Depends-on): Likewise.
69909         * modules/vasprintf-posix (Depends-on): Likewise.
69910         * modules/vfprintf-posix (Depends-on): Likewise.
69911         * modules/vsnprintf-posix (Depends-on): Likewise.
69912         * modules/vsprintf-posix (Depends-on): Likewise.
69913
69914 2007-04-06  Bruno Haible  <bruno@clisp.org>
69915
69916         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69917         * tests/test-frexpl.c (main): Likewise.
69918         * tests/test-ldexpl.c (main): Likewise.
69919         * modules/frexp-tests (Depends-on): Add signbit.
69920         * modules/frexpl-tests (Depdends-on): Likewise.
69921         * modules/ldexpl-tests (Depdends-on): Likewise.
69922
69923 2007-04-06  Bruno Haible  <bruno@clisp.org>
69924
69925         * modules/signbit-tests: New file.
69926         * tests/test-signbit.c: New file.
69927
69928         * modules/signbit: New file.
69929         * lib/signbitf.c: New file.
69930         * lib/signbitd.c: New file.
69931         * lib/signbitl.c: New file.
69932         * m4/signbit.m4: New file.
69933         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69934         (signbit): New macro.
69935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69936         REPLACE_SIGNBIT.
69937         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69938         REPLACE_FREXPL into math.h.
69939
69940 2007-04-06  Bruno Haible  <bruno@clisp.org>
69941
69942         * modules/isnanf-nolibm-tests: New file.
69943         * tests/test-isnanf.c: New file.
69944
69945         * modules/isnanf-nolibm: New file.
69946         * lib/isnanf.h: New file.
69947         * lib/isnanf.c: New file.
69948         * lib/isnan.c: Consider the USE_FLOAT macro.
69949         * m4/isnanf.m4: New file.
69950
69951 2007-04-06  Bruno Haible  <bruno@clisp.org>
69952
69953         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69954         (Link): New section.
69955
69956         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69957
69958 2007-04-06  Bruno Haible  <bruno@clisp.org>
69959
69960         Assume the 'long double' type.
69961         * m4/longdouble.m4: Remove file.
69962         * config/srclist.txt: Don't mention longdouble.m4.
69963         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69964         * lib/float+.h: Likewise.
69965         * lib/frexp.c: Likewise.
69966         * lib/printf-args.h: Likewise.
69967         * lib/printf-args.c: Likewise.
69968         * lib/printf-frexp.c: Likewise.
69969         * lib/printf-parse.c: Likewise.
69970         * lib/vasnprintf.c: Likewise.
69971         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69972         * m4/intl.m4: Likewise.
69973         * m4/isnanl.m4: Likewise.
69974         * m4/printf.m4: Likewise.
69975         * m4/printf-frexpl.m4: Likewise.
69976         * m4/vasnprintf.m4: Likewise.
69977         * modules/allocsa (Files): Remove m4/longdouble.m4.
69978         * modules/gettext (Files): Likewise.
69979         * modules/relocatable-prog-wrapper (Files): Likewise.
69980         * modules/vasnprintf (Files): Likewise.
69981         * modules/isnanl (Files): Likewise.
69982         (Include): Simplify.
69983         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69984         (Include): Simplify.
69985         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69986         (Include): Simplify.
69987         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69988         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69989         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69990         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69991         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69992         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69993         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69994         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69995         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69996         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69997         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69998         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69999         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70000         * tests/test-isnanl.c: Likewise.
70001         * tests/test-snprintf-posix.h: Likewise.
70002         * tests/test-sprintf-posix.h: Likewise.
70003         * tests/test-vasnprintf-posix.c: Likewise.
70004         * tests/test-vasnprintf-posix2.c: Likewise.
70005         * tests/test-vasprintf-posix.c: Likewise.
70006
70007 2007-04-06  Bruno Haible  <bruno@clisp.org>
70008
70009         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70010         * lib/math_.h [__DECC]: Include the overridden include file through
70011         #include_next, outside the double-inclusion guard.
70012         * lib/stdio_.h [__DECC]: Likewise.
70013         * lib/stdlib_.h [__DECC]: Likewise.
70014         * lib/string_.h [__DECC]: Likewise.
70015         * lib/time_.h [__DECC]: Likewise.
70016         * lib/wchar_.h [__DECC]: Likewise.
70017         * lib/wctype_.h [__DECC]: Likewise.
70018         * lib/inttypes_.h [__DECC]: Likewise.
70019         Reported by Albert Chin <china@thewrittenword.com> in
70020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70021
70022 2007-04-04  Eric Blake  <ebb9@byu.net>
70023
70024         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70025         1.5.x.
70026
70027 2007-04-04  Bruno Haible  <bruno@clisp.org>
70028
70029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70030         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70031
70032 2007-04-04  Bruno Haible  <bruno@clisp.org>
70033
70034         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70035         results for "%010a" of Infinity and NaN.
70036         * tests/test-vasprintf-posix.c (test_function): Likewise.
70037         * tests/test-snprintf-posix.h (test_function): Likewise.
70038         * tests/test-sprintf-posix.h (test_function): Likewise.
70039         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70040         * tests/test-printf-posix.h (test_function): Likewise.
70041         * tests/test-fprintf-posix.out: Update.
70042         Needed for FreeBSD 6.1.
70043
70044 2007-04-04  Bruno Haible  <bruno@clisp.org>
70045
70046         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70047         directly used by the gnulib modules nor by gnulib-tool.
70048
70049 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70050
70051         * DEPENDENCIES: Give overall description of version dependency
70052         desirability.  Use more-typical names for apps.
70053         Add shell, coreutils, diffutils, grep, tar, gzip.
70054
70055 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70056
70057         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70058
70059 2007-04-04  Karl Berry  <karl@gnu.org>
70060
70061         * MODULES.html.sh (func_module): missing '.
70062
70063 2007-04-03  Bruno Haible  <bruno@clisp.org>
70064
70065         * modules/argmatch-tests (Makefile.am): New variable
70066         test_argmatch_LDADD.
70067         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70068         * modules/array-list-tests (Makefile.am): New variable
70069         test_array_list_LDADD.
70070         * modules/array-oset-tests (Makefile.am): New variable
70071         test_array_oset_LDADD.
70072         * modules/avltree-list-tests (Makefile.am): New variable
70073         test_avltree_list_LDADD.
70074         * modules/avltree-oset-tests (Makefile.am): New variable
70075         test_avltree_oset_LDADD.
70076         * modules/avltreehash-list-tests (Makefile.am): New variable
70077         test_avltreehash_list_LDADD.
70078         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70079         test_canonicalize_lgpl_LDADD.
70080         * modules/carray-list-tests (Makefile.am): New variable
70081         test_carray_list_LDADD.
70082         * modules/dirname-tests (Makefile.am): New variable
70083         test_dirname_LDADD.
70084         * modules/linked-list-tests (Makefile.am): New variable
70085         test_linked_list_LDADD.
70086         * modules/linkedhash-list-tests (Makefile.am): New variable
70087         test_linkedhash_list_LDADD.
70088         * modules/rbtree-list-tests (Makefile.am): New variable
70089         test_rbtree_list_LDADD.
70090         * modules/rbtree-oset-tests (Makefile.am): New variable
70091         test_rbtree_oset_LDADD.
70092         * modules/rbtreehash-list-tests (Makefile.am): New variable
70093         test_rbtreehash_list_LDADD.
70094         * modules/xvasprintf-tests (Makefile.am): New variable
70095         test_xvasprintf_LDADD.
70096         Reported by Eric Blake.
70097
70098 2007-04-03  Eric Blake  <ebb9@byu.net>
70099
70100         * DEPENDENCIES: Weaken m4 requirements.
70101
70102 2007-04-03  Bruno Haible  <bruno@clisp.org>
70103
70104         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70105         * modules/isnanl-tests (configure.ac): Likewise.
70106
70107 2007-04-03  Ben Pfaff  <blp@gnu.org>
70108
70109         * modules/iconv_open: Add $(srcdir)/ to source directory
70110         references in Makefile fragments that call gperf, to fix VPATH
70111         builds.
70112
70113 2007-04-03  Bruno Haible  <bruno@clisp.org>
70114
70115         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70116         * lib/ldexpl.c: Undo last change.
70117
70118 2007-04-03  Bruno Haible  <bruno@clisp.org>
70119
70120         * modules/printf-frexpl (Depends-on): Undo last change.
70121         (Files): Add m4/ldexpl.m4.
70122
70123 2007-04-03  Bruno Haible  <bruno@clisp.org>
70124
70125         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70126         * modules/isnanl (Link): New section.
70127
70128         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70129         * modules/frexp (Link): New section.
70130
70131         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70132         * modules/frexpl (Link): New section.
70133
70134         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70135         * modules/ldexpl (Link): New section.
70136
70137 2007-04-03  Bruno Haible  <bruno@clisp.org>
70138
70139         * modules/TEMPLATE-EXTENDED: New file.
70140         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70141
70142 2007-04-03  Bruno Haible  <bruno@clisp.org>
70143
70144         * DEPENDENCIES: New file.
70145         Suggested by Simon Josefsson.
70146
70147 2007-04-03  Bruno Haible  <bruno@clisp.org>
70148
70149         * doc/gnulib.texi: Escape @.
70150
70151 2007-04-03  James Youngman  <jay@gnu.org>
70152         and Paul Eggert  <eggert@cs.ucla.edu>
70153
70154         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70155         birthtime on all systems that have birthtime, not just those which
70156         use st_birthtimensec rather than st_birthtim.  Putting zero in
70157         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70158         that the birth time is not available for files on an NFS mount.
70159
70160 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70161
70162         * modules/memxor: Move back from crypto/, suggested by Bruno.
70163         * modules/crypto/hmac-sha1: Fix memxor dependency.
70164
70165         * modules/crypto/gc: Moved from ../.
70166
70167 2007-04-02  Eric Blake  <ebb9@byu.net>
70168
70169         * lib/ldexpl.c (includes): Avoid libm.
70170
70171         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70172
70173 2007-04-02  Bruno Haible  <bruno@clisp.org>
70174
70175         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70176         on IRIX.
70177
70178 2007-04-02  Bruno Haible  <bruno@clisp.org>
70179
70180         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70181         x86 or x86_64 platforms running MacOS X.
70182         Reported by Ryan Schmidt <@ryandesign.com>.
70183
70184 2007-04-02  Bruno Haible  <bruno@clisp.org>
70185
70186         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70187         i386.
70188
70189 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70190
70191         * modules/crypto/arcfour: Moved from ../.
70192         * modules/crypto/arcfour-tests: Moved from ../.
70193         * modules/crypto/arctwo: Moved from ../.
70194         * modules/crypto/arctwo-tests: Moved from ../.
70195         * modules/crypto/des: Moved from ../.
70196         * modules/crypto/des-tests: Moved from ../.
70197         * modules/crypto/gc-arcfour: Moved from ../.
70198         * modules/crypto/gc-arcfour-tests: Moved from ../.
70199         * modules/crypto/gc-arctwo: Moved from ../.
70200         * modules/crypto/gc-arctwo-tests: Moved from ../.
70201         * modules/crypto/gc-des: Moved from ../.
70202         * modules/crypto/gc-des-tests: Moved from ../.
70203         * modules/crypto/gc-hmac-md5: Moved from ../.
70204         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70205         * modules/crypto/gc-hmac-sha1: Moved from ../.
70206         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70207         * modules/crypto/gc-md2: Moved from ../.
70208         * modules/crypto/gc-md2-tests: Moved from ../.
70209         * modules/crypto/gc-md4: Moved from ../.
70210         * modules/crypto/gc-md4-tests: Moved from ../.
70211         * modules/crypto/gc-md5: Moved from ../.
70212         * modules/crypto/gc-md5-tests: Moved from ../.
70213         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70214         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70215         * modules/crypto/gc-random: Moved from ../.
70216         * modules/crypto/gc-rijndael: Moved from ../.
70217         * modules/crypto/gc-rijndael-tests: Moved from ../.
70218         * modules/crypto/gc-sha1: Moved from ../.
70219         * modules/crypto/gc-sha1-tests: Moved from ../.
70220         * modules/crypto/gc-tests: Moved from ../.
70221         * modules/crypto/hmac-md5: Moved from ../.
70222         * modules/crypto/hmac-md5-tests: Moved from ../.
70223         * modules/crypto/hmac-sha1: Moved from ../.
70224         * modules/crypto/hmac-sha1-tests: Moved from ../.
70225         * modules/crypto/md2: Moved from ../.
70226         * modules/crypto/md2-tests: Moved from ../.
70227         * modules/crypto/md4: Moved from ../.
70228         * modules/crypto/md4-tests: Moved from ../.
70229         * modules/crypto/md5: Moved from ../.
70230         * modules/crypto/md5-tests: Moved from ../.
70231         * modules/crypto/memxor: Moved from ../.
70232         * modules/crypto/rijndael: Moved from ../.
70233         * modules/crypto/rijndael-tests: Moved from ../.
70234         * modules/crypto/sha1: Moved from ../.
70235
70236 2007-03-30  James Youngman  <jay@gnu.org>
70237
70238         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70239         rename() to change the ctime of a file (because ctime is unaffected
70240         by rename on jfs2 on AIX 5.1).
70241         (main): Start by doing cleanup, in case a previous run failed leaving
70242         test files behind.
70243
70244 2007-03-31  Bruno Haible  <bruno@clisp.org>
70245
70246         Support old proprietary implementations of iconv.
70247         * modules/iconv_open: New file.
70248         * lib/iconv_.h: New file.
70249         * m4/iconv_h.m4: New file.
70250         * lib/iconv_open.c: New file.
70251         * lib/iconv_open-aix.gperf: New file.
70252         * lib/iconv_open-hpux.gperf: New file.
70253         * lib/iconv_open-irix.gperf: New file.
70254         * lib/iconv_open-osf.gperf: New file.
70255         * m4/iconv_open.m4: New file.
70256         * modules/linebreak (Depends-on): Add iconv_open.
70257         * modules/striconv (Depends-on): Likewise.
70258         * modules/striconveh (Depends-on): Likewise.
70259         * modules/unicodeio (Depends-on): Likewise.
70260         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70261         (iconv_t)(-1).
70262         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70263         conversion if cd is (iconv_t)(-1).
70264         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70265         is not possible.
70266
70267 2007-03-31  Bruno Haible  <bruno@clisp.org>
70268
70269         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70270         work on Solaris either. Protect also second use of "autodetect_jp".
70271
70272 2007-03-31  Bruno Haible  <bruno@clisp.org>
70273
70274         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70275         the function is not present.
70276
70277 2007-03-31  Bruno Haible  <bruno@clisp.org>
70278
70279         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70280         the function is not present.
70281
70282 2007-03-31  Bruno Haible  <bruno@clisp.org>
70283
70284         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70285         a bug in HP-UX iconv_open().
70286
70287 2007-03-31  Bruno Haible  <bruno@clisp.org>
70288
70289         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70290         (Mathematics <math.h>): New section, add fpieee.
70291         (Input/output <stdio.h>): Add fseterr.
70292         (Mathematics <math.h>): New section, add printf-frexp.
70293         (Container data structures): Add sublist.
70294         (Core language properties): Add fpucw, inline.
70295         (Functions for greatest-width integer types <inttypes.h>): Add
70296         imaxabs, imaxdiv, inttypes.
70297         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70298         isnanl-nolibm, ldexp.
70299         (Mathematics <math.h>): New section, add printf-frexpl.
70300         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70301         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70302         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70303         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70304         (Unicode string functions): Add unistr/u*-mbtoucr.
70305         (Java): Add javacomp-script, javaexec-script.
70306         (C#): Add csharpcomp-script, csharpexec-script.
70307         (Support for building libraries and executables): Add havelib,
70308         relocatable-*.
70309         (Support for maintaining and releasing projects): Renamed from
70310         'Support for maintaining and release projects'. Add announce-gen.
70311
70312 2007-03-31  Bruno Haible  <bruno@clisp.org>
70313
70314         * README: Talk primarily about git.
70315         (git and CVS): Renamed from CVS.
70316         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70317         gnulib is available through git.
70318         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70319
70320 2007-03-30  Bruno Haible  <bruno@clisp.org>
70321
70322         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70323         * lib/poll_.h: Likewise.
70324         * lib/stat_.h: Likewise.
70325         * lib/sys_time_.h: Likewise.
70326         * lib/sysexit_.h: Likewise.
70327         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70328         * lib/stdbool_.h: Likewise.
70329         * lib/byteswap_.h: Add double-inclusion guard.
70330
70331 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70332
70333         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70334
70335 2007-03-30  Karl Berry  <karl@gnu.org>
70336
70337         * config/srclist-update: double space after USA in the license
70338         substitution, since that's how it's usually (?) written.
70339
70340 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70341
70342         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70343         reported by Bruno Haible.
70344
70345 2007-03-29  Bruno Haible  <bruno@clisp.org>
70346
70347         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70348         a bug in AIX iconv().
70349
70350 2007-03-29  Bruno Haible  <bruno@clisp.org>
70351
70352         * modules/ldexpl-tests: New file.
70353         * tests/test-ldexpl.c: New file.
70354
70355 2007-03-29  Bruno Haible  <bruno@clisp.org>
70356
70357         * lib/ldexpl.c: Include fpucw.h.
70358         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70359         multiplication.
70360         * modules/ldexpl (Depends-on): Add fpucw.
70361
70362 2007-03-29  Bruno Haible  <bruno@clisp.org>
70363
70364         * modules/ldexpl: New file.
70365         * m4/ldexpl.m4: New file.
70366         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70367         set.
70368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70369         REPLACE_LDEXPL.
70370         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70371         REPLACE_LDEXPL.
70372         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70373         gl_FUNC_LDEXPL_WORKS.
70374         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70375         * modules/mathl (Files): Remove lib/ldexpl.c.
70376         (Depends-on): Add ldexpl.
70377
70378 2007-03-29  Bruno Haible  <bruno@clisp.org>
70379
70380         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70381
70382 2007-03-29  Bruno Haible  <bruno@clisp.org>
70383
70384         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70385         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70386         and possibly also HP-UX.
70387         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70388         work on AIX, IRIX, HP-UX, OSF/1.
70389         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70390         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70391         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70392         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70393         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70394         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70395
70396 2007-03-29  Bruno Haible  <bruno@clisp.org>
70397
70398         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70399
70400 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70401
70402         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70403         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70404
70405 2007-03-29  Eric Blake  <ebb9@byu.net>
70406
70407         * lib/acl-internal.h: Remove redundant include.
70408         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70409         Cygwin when a file is locked.
70410
70411 2007-03-29  Bruno Haible  <bruno@clisp.org>
70412
70413         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70414         file.
70415         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70416
70417 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70418
70419         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70420         try to remove a parent directory if the child couldn't be removed
70421         (except for the first rmdir, which could fail because the child
70422         doesn't exist).  Problem reported by Jeff Blaine in
70423         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70424
70425 2007-03-28  Bruno Haible  <bruno@clisp.org>
70426
70427         * lib/striconveh.c (utf8conv_carefully): New function.
70428         (mem_cd_iconveh_internal): Invoke it.
70429
70430 2007-03-28  Bruno Haible  <bruno@clisp.org>
70431
70432         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70433         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70434         input.
70435         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70436         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70437         unistr/u8-uctomb.
70438
70439 2007-03-28  Bruno Haible  <bruno@clisp.org>
70440
70441         * modules/unistr/u8-mbtoucr: New file.
70442         * lib/unistr/u8-mbtoucr.c: New file.
70443         * modules/unistr/u16-mbtoucr: New file.
70444         * lib/unistr/u16-mbtoucr.c: New file.
70445         * modules/unistr/u16-mbtoucr: New file.
70446         * lib/unistr/u16-mbtoucr.c: New file.
70447         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70448
70449 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70450             Bruno Haible  <bruno@clisp.org>
70451
70452         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70453         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70454         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70455
70456         * m4/stdio_h.m4: Add stubs for vasprintf too.
70457
70458         * modules/stdio: Support vasprintf in sed command.
70459
70460         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70461         vasprintf.h.  Add stdio module indicator.
70462
70463         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70464         vasprintf.h.
70465
70466         * lib/vasprintf.h: File removed.
70467
70468         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70469         * lib/vasprintf.c: Ditto.
70470         * lib/xvasprintf.c: Ditto.
70471         * tests/test-vasprintf-posix.c: Ditto.
70472         * tests/test-vasprintf.c: Ditto.
70473
70474 2007-03-27  Bruno Haible  <bruno@clisp.org>
70475
70476         Make vasnprintf multithread-safe.
70477         * lib/vasnprintf.c (decimal_point_char): New function.
70478         (VASNPRINTF): Use it.
70479         Suggested by Simon Josefsson.
70480
70481 2007-03-27  Eric Blake  <ebb9@byu.net>
70482
70483         Support sub-second birthtime on cygwin.
70484         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70485         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70486         (get_stat_birthtime): Also work with st_birthtim.
70487
70488 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70491         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70492         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70493         (get_stat_birthtime_ns): Simplify compile-time tests.
70494         (get_stat_birthtime): Change the API to look like
70495         get_stat_mtime etc., except return a negative tv_nsec on error.
70496         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70497         Don't check for "spare" fields.
70498         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70499         or for struct stat.st_birthtime, as these tests aren't used.
70500         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70501
70502 2007-03-27  Bruno Haible  <bruno@clisp.org>
70503
70504         * lib/stat-time.h: Include <sys/stat.h>.
70505
70506 2007-03-27  James Youngman  <jay@gnu.org>
70507
70508         * lib/stat-time.h (get_stat_birthtime): New function for
70509           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70510         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70511           and its variants.
70512         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70513         * modules/stat-time-test: New file.
70514         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70515
70516 2007-03-26  Bruno Haible  <bruno@clisp.org>
70517
70518         Better support of signalling NaNs.
70519         * lib/atanl.c: Include isnanl.h.
70520         (atanl): Perform test for NaN at the beginning of the function and
70521         through a call to isnanl.
70522         * lib/cosl.c: Include isnanl.h.
70523         (cosl): Perform test for NaN at the beginning of the function and
70524         through a call to isnanl.
70525         * lib/ldexpl.c: Include isnanl.h.
70526         (ldexpl): Perform test for NaN through a call to isnanl.
70527         * lib/logl.c: Include isnanl.h.
70528         (logl): Perform test for NaN at the beginning of the function and
70529         through a call to isnanl.
70530         * lib/sinl.c: Include isnanl.h.
70531         (sinl): Perform test for NaN at the beginning of the function and
70532         through a call to isnanl.
70533         * lib/sqrtl.c: Include isnanl.h.
70534         (sqrtl): Perform test for NaN at the beginning of the function and
70535         through a call to isnanl.
70536         * lib/tanl.c: Include isnanl.h.
70537         (tanl): Perform test for NaN at the beginning of the function and
70538         through a call to isnanl.
70539         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70540         * modules/mathl (Depends-on): Add isnanl.
70541
70542 2007-03-26  Eric Blake  <ebb9@byu.net>
70543
70544         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70545         regression in logic sense of previous patch.
70546
70547 2007-03-26  Bruno Haible  <bruno@clisp.org>
70548
70549         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70550         unportable shell command "if ! ...".
70551         Reported by Ralf Wildenhues.
70552
70553 2007-03-25  Bruno Haible  <bruno@clisp.org>
70554
70555         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70556         <sysexits.h> file, and only add EX_CONFIG.
70557         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70558         absolute file name and whether it is sufficient. Substitute also
70559         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70560         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70561         ABSOLUTE_SYSEXITS_H into sysexits.h.
70562
70563 2007-03-25  Bruno Haible  <bruno@clisp.org>
70564
70565         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70566         hints is NULL.
70567
70568 2007-03-25  Bruno Haible  <bruno@clisp.org>
70569
70570         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70571         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70572
70573 2007-03-25  Bruno Haible  <bruno@clisp.org>
70574
70575         * lib/vasnprintf.c: Include langinfo.h.
70576         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70577         multithread-safe.
70578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70579         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70581         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70587         Reported by Simon Josefsson.
70588
70589 2007-03-25  Bruno Haible  <bruno@clisp.org>
70590
70591         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70592         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70593         * modules/vasnprintf (Depends-on): Add stdint.
70594
70595 2007-03-25  Bruno Haible  <bruno@clisp.org>
70596
70597         * modules/fpieee: New file.
70598         * m4/fpieee.m4: New file.
70599         * modules/isnan-nolibm (Depends-on): Add fpieee.
70600         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70601         * modules/isnanl (Depends-on): Add fpieee.
70602
70603 2007-03-25  Bruno Haible  <bruno@clisp.org>
70604
70605         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70606
70607 2007-03-25  Bruno Haible  <bruno@clisp.org>
70608
70609         Avoid test failures on IRIX 6.5.
70610         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70611         (main): Use it.
70612         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70613         macros.
70614         (main): Use them.
70615
70616 2007-03-25  Bruno Haible  <bruno@clisp.org>
70617
70618         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70619         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70620         exists but doesn't work.
70621         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70622         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70624         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70625         math.h.
70626
70627 2007-03-25  Bruno Haible  <bruno@clisp.org>
70628
70629         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70630         returns inf. Needed on IRIX 6.5.
70631
70632 2007-03-25  Bruno Haible  <bruno@clisp.org>
70633
70634         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70635         (main): Use isnanl instead of x != x idiom.
70636         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70637
70638         * tests/test-frexp.c: Include isnan.h.
70639         (main): Use isnan instead of x != x idiom.
70640         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70641
70642 2007-03-25  Bruno Haible  <bruno@clisp.org>
70643
70644         * tests/test-frexp.c (NaN): New function/macro.
70645         (main): Use it instead of 0.0 / 0.0.
70646         * tests/test-isnan.c (NaN): New function/macro.
70647         (main): Use it instead of 0.0 / 0.0.
70648         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70649         (test_function): Use it instead of 0.0 / 0.0.
70650         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70651         (test_function): Use it instead of 0.0 / 0.0.
70652         * tests/test-snprintf-posix.h (NaN): New function/macro.
70653         (test_function): Use it instead of 0.0 / 0.0.
70654         * tests/test-sprintf-posix.h (NaN): New function/macro.
70655         (test_function): Use it instead of 0.0 / 0.0.
70656         * tests/test-fprintf-posix.h (NaN): New function/macro.
70657         (test_function): Use it instead of 0.0 / 0.0.
70658         * tests/test-printf-posix.h (NaN): New function/macro.
70659         (test_function): Use it instead of 0.0 / 0.0.
70660
70661         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70662
70663 2007-03-25  Bruno Haible  <bruno@clisp.org>
70664
70665         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70666
70667 2007-03-25  Bruno Haible  <bruno@clisp.org>
70668
70669         * lib/regexec.c (merge_state_with_log): Make static.
70670
70671 2007-03-25  Bruno Haible  <bruno@clisp.org>
70672
70673         * lib/trigl.c (kernel_rem_pio2): Make static.
70674
70675 2007-03-25  Bruno Haible  <bruno@clisp.org>
70676
70677         * lib/sincosl.c (sincosl_table): Make static.
70678
70679 2007-03-25  Bruno Haible  <bruno@clisp.org>
70680
70681         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70682         if the compiler does not support C99.
70683
70684 2007-03-25  Bruno Haible  <bruno@clisp.org>
70685
70686         * modules/time (Makefile.am): Ensure all rule action lines start with a
70687         tab.
70688
70689 2007-03-24  Bruno Haible  <bruno@clisp.org>
70690
70691         * modules/tsearch-tests: New file.
70692         * tests/test-tsearch.sh: New file.
70693         * tests/test-tsearch.c: New file, mostly copied from glibc.
70694
70695         * modules/search-tests: New file.
70696         * tests/test-search.c: New file.
70697
70698         * modules/search: New file.
70699         * lib/search_.h: New file, incorporating lib/tsearch.h.
70700         * m4/search_h.m4: New file.
70701         * lib/tsearch.h: Remove file.
70702         * lib/tsearch.c: Include search.h instead of tsearch.h.
70703         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70704         HAVE_TSEARCH.
70705         * modules/tsearch (Files): Remove lib/tsearch.h.
70706         (Depends-on): Add search.
70707         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70708         (Include): Change tsearch.h into search.h.
70709
70710 2007-03-24  Bruno Haible  <bruno@clisp.org>
70711
70712         * modules/fpucw: New file.
70713         * lib/fpucw.h: New file.
70714         * lib/frexp.c: Include fpucw.h.
70715         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70716         (FUNC): Use them.
70717         * lib/printf-frexp.c: Include fpucw.h.
70718         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70719         (FUNC): Use them.
70720         * lib/vasnprintf.c: Include fpucw.h.
70721         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70722         'long double' calculations.
70723         * tests/test-frexpl.c: Include fpucw.h.
70724         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70725         * tests/test-printf-frexpl.c: Include fpucw.h.
70726         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70727         * modules/frexpl (Depends-on): Add fpucw.
70728         * modules/printf-frexpl (Depends-on): Likewise.
70729         * modules/fprintf-posix (Depends-on): Likewise.
70730         * modules/snprintf-posix (Depends-on): Likewise.
70731         * modules/sprintf-posix (Depends-on): Likewise.
70732         * modules/vasnprintf-posix (Depends-on): Likewise.
70733         * modules/vasprintf-posix (Depends-on): Likewise.
70734         * modules/vfprintf-posix (Depends-on): Likewise.
70735         * modules/vsnprintf-posix (Depends-on): Likewise.
70736         * modules/vsprintf-posix (Depends-on): Likewise.
70737         * modules/frexpl-tests (Depends-on): Likewise.
70738         * modules/printf-frexpl-tests (Depends-on): Likewise.
70739
70740 2007-03-24  Bruno Haible  <bruno@clisp.org>
70741
70742         * lib/float+.h: New file.
70743         * lib/isnan.c: Include float+.h.
70744         (SIZE): New macro.
70745         (FUNC): Compare only SIZE bytes of the value.
70746         * lib/vasnprintf.c: Include float+.h.
70747         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70748         SIZEOF_LDBL or SIZEOF_DBL bytes.
70749         * modules/isnan-nolibm (Files): Add lib/float+.h.
70750         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70751         * modules/isnanl (Files): Add lib/float+.h.
70752         * modules/vasnprintf (Files): Add lib/float+.h.
70753
70754 2007-03-24  Bruno Haible  <bruno@clisp.org>
70755
70756         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70757         include isnanl-nolibm.h.
70758
70759 2007-03-24  Bruno Haible  <bruno@clisp.org>
70760
70761         * tests/test-read-file.c (main): Don't produce spurious output for
70762         expected situations. Make the test fail if it encountered unexpected
70763         results.
70764
70765 2007-03-24  Bruno Haible  <bruno@clisp.org>
70766
70767         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70768         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70769
70770 2007-03-24  Bruno Haible  <bruno@clisp.org>
70771
70772         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70773
70774 2007-03-24  Bruno Haible  <bruno@clisp.org>
70775
70776         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70777         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70778
70779         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70780         * modules/utf8-ucs4: Turn into a symbolic link to module
70781         unistr/u8-mbtouc.
70782
70783         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70784         utf8-ucs4-unsafe.
70785         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70786         unistr/u8-mbtouc-unsafe.
70787
70788         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70789         * modules/utf16-ucs4: Turn into a symbolic link to module
70790         unistr/u16-mbtouc.
70791
70792         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70793         utf16-ucs4-unsafe.
70794         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70795         unistr/u16-mbtouc-unsafe.
70796
70797         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70798         * modules/ucs4-utf8: Turn into a symbolic link to module
70799         unistr/u8-ubtomb.
70800
70801         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70802         * modules/ucs4-utf16: Turn into a symbolic link to module
70803         unistr/u16-ubtomb.
70804
70805 2007-03-24  Bruno Haible  <bruno@clisp.org>
70806
70807         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70808         Enable the function only if HAVE_INLINE.
70809         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70810         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70811         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70812         Enable the function only if HAVE_INLINE.
70813         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70814         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70815         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70816         Enable the function only if HAVE_INLINE.
70817         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70818         Enable the function only if HAVE_INLINE.
70819         * modules/utf8-ucs4: Update.
70820         * modules/utf8-ucs4-unsafe: Update.
70821         * modules/utf16-ucs4: Update.
70822         * modules/utf16-ucs4-unsafe: Update.
70823         * modules/ucs4-utf8: Update.
70824         * modules/ucs4-utf16: Update.
70825
70826 2007-03-24  Bruno Haible  <bruno@clisp.org>
70827
70828         * lib/utf8-ucs4.h: Remove file.
70829         * lib/utf8-ucs4-unsafe.h: Remove file.
70830         * lib/utf16-ucs4.h: Remove file.
70831         * lib/utf16-ucs4-unsafe.h: Remove file.
70832         * lib/ucs4-utf8.h: Remove file.
70833         * lib/ucs4-utf16.h: Remove file.
70834         * lib/unistr.h: Include their previous contents.
70835         * m4/utf-ucs4.m4: Remove file.
70836         * m4/ucs4-utf.m4: Remove file.
70837         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70838         (Depends-on): Add unistr/base.
70839         (configure.ac): Remove gl_UTF_UCS4.
70840         (Makefile.am): Update.
70841         (Include): Change to unistr.h.
70842         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70843         (Depends-on): Add unistr/base.
70844         (configure.ac): Remove gl_UTF_UCS4.
70845         (Makefile.am): Update.
70846         (Include): Change to unistr.h.
70847         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70848         (Depends-on): Add unistr/base.
70849         (configure.ac): Remove gl_UTF_UCS4.
70850         (Makefile.am): Update.
70851         (Include): Change to unistr.h.
70852         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70853         (Depends-on): Add unistr/base.
70854         (configure.ac): Remove gl_UTF_UCS4.
70855         (Makefile.am): Update.
70856         (Include): Change to unistr.h.
70857         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70858         (Depends-on): Add unistr/base.
70859         (configure.ac): Remove gl_UCS4_UTF.
70860         (Makefile.am): Update.
70861         (Include): Change to unistr.h.
70862         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70863         (Depends-on): Add unistr/base.
70864         (configure.ac): Remove gl_UCS4_UTF.
70865         (Makefile.am): Update.
70866         (Include): Change to unistr.h.
70867         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70868         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70869         utf8-ucs4-unsafe.h.
70870         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70871         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70872         utf16-ucs4-unsafe.h.
70873         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70874         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70875         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70876         * lib/unistr/u8-strchr.c: Likewise.
70877         * lib/unistr/u8-strrchr.c: Likewise.
70878         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70879         * lib/unistr/u16-strchr.c: Likewise.
70880         * lib/unistr/u16-strrchr.c: Likewise.
70881         * lib/striconveh.c: Update.
70882         * lib/linebreak.c: Update.
70883
70884 2007-03-24  Bruno Haible  <bruno@clisp.org>
70885
70886         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70887         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70888
70889 2007-03-22  Bruno Haible  <bruno@clisp.org>
70890
70891         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70892
70893 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70894
70895         * MODULES.html.sh (File system functions): New module write-any-file.
70896         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70897         * m4/write-any-file.m4: New files.
70898
70899 2007-03-23  Eric Blake  <ebb9@byu.net>
70900
70901         * gnulib-tool: Rearrange space-tab sequences, since some editors
70902         like to eat them.
70903
70904 2007-03-23  Eric Blake  <ebb9@byu.net>
70905
70906         * lib/version-etc.c (version_etc_va): Update license wording to
70907         be more concise.  Recommended by Richard Stallman.
70908
70909 2007-03-22  Bruno Haible  <bruno@clisp.org>
70910
70911         * lib/poll.c (MSG_PEEK): New fallback definition.
70912
70913 2007-03-22  Bruno Haible  <bruno@clisp.org>
70914
70915         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70916         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70917         (main): Update.
70918         Fixes a compilation error on BeOS.
70919
70920 2007-03-22  Bruno Haible  <bruno@clisp.org>
70921
70922         * modules/frexpl-tests: New file.
70923         * tests/test-frexpl.c: New file.
70924
70925         * modules/frexpl: New file.
70926         * m4/frexpl.m4: New file.
70927         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70928         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70930         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70931         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70932         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70933
70934 2007-03-22  Bruno Haible  <bruno@clisp.org>
70935
70936         * lib/frexpl.c: Share code with lib/frexp.c.
70937         * modules/mathl (Files): Add lib/frexp.c.
70938         (Depends-on): Add isnanl-nolibm.
70939
70940 2007-03-22  Bruno Haible  <bruno@clisp.org>
70941
70942         * modules/printf-frexp (Files): Add m4/frexp.m4.
70943         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70944         only if the found frexp function actually works.
70945
70946 2007-03-22  Bruno Haible  <bruno@clisp.org>
70947
70948         * lib/frexp.c: Remove older implementation that uses divisions.
70949
70950 2007-03-21  Bruno Haible  <bruno@clisp.org>
70951
70952         * modules/frexp-tests: New file.
70953         * tests/test-frexp.c: New file.
70954
70955         * modules/frexp: New file.
70956         * lib/frexp.c: New file.
70957         * m4/frexp.m4: New file.
70958         * lib/math_.h (frexp): New declaration.
70959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70960         REPLACE_FREXP.
70961         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70962
70963 2007-03-21  Bruno Haible  <bruno@clisp.org>
70964
70965         * modules/isnanl-tests: New file.
70966         * tests/test-isnanl.c: New file.
70967
70968         * modules/isnanl: New file.
70969         * lib/isnanl.h: New file.
70970         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70971         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70972         gl_FUNC_ISNANL_WORKS.
70973         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70974         New macros.
70975
70976 2007-03-21  Bruno Haible  <bruno@clisp.org>
70977
70978         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70979         lib/isnanl.h.
70980         (Include): Update.
70981         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70982         * lib/vasnprintf.c: Update.
70983         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70984         tests/test-isnanl.h, remove tests/test-isnanl.c.
70985         (Makefile.am): Update.
70986         * tests/test-isnanl-nolibm.c: New file.
70987         * tests/test-isnanl.h: New file.
70988         * tests/test-isnanl.c: Remove file.
70989
70990 2007-03-21  Jim Meyering  <jim@meyering.net>
70991
70992         When trying to open ".", treat ESTALE like EACCES.
70993         * lib/savewd.c (savewd_save): Resort to forking not just upon
70994         failure with EACCES, but also when errno is ESTALE.
70995
70996 2007-03-20  Bruno Haible  <bruno@clisp.org>
70997
70998         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70999         Needed on AIX 5.1. Reported by Matthew Woehlke.
71000
71001 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         Suggestions by Bruno Haible:
71004         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71005         our own.
71006         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71007         * modules/acl (Depends-on): Add gettext.
71008
71009 2007-03-19  Bruno Haible  <bruno@clisp.org>
71010
71011         * modules/iconvme: Remove file.
71012         * lib/iconvme.h: Remove file.
71013         * lib/iconvme.c: Remove file.
71014         * m4/iconvme.m4: Remove file.
71015
71016 2007-03-19  Bruno Haible  <bruno@clisp.org>
71017
71018         * doc/relocatable-maint.texi: Break long shell script line.
71019         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71020
71021 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71022
71023         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71024         handle file_has_acl.
71025         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71026         * lib/acl.c: Move header inclusions and related macro defns into
71027         lib/acl-internal.h.
71028         (S_ISLNK): Remove defn, since that's now done for us.
71029         (file_has_acl): Move to lib/file-has-acl.c.
71030         Call acl_trivial if available.  This is the crucial part of the fix.
71031         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71032         shared within the library.  Rewrite a bit, partly to make it compatible
71033         with the GNU coding style.
71034         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71035         Remove unnecessary double-quotes.
71036         Don't test for acl_to_text; the build will catch that.
71037         Replace acl_entries if it doesn't exist and it is needed.
71038         Check for -lsec and acl_trivial (as used on Solaris 10).
71039         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71040         lib/file-has-acl.c.
71041         (Depends-on): Add sys_stat, for S_ISLNK.
71042
71043 2007-03-19  Ben Pfaff  <blp@gnu.org>
71044
71045         * doc/gnulib.texi: Fix typos.
71046         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71047
71048 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71049
71050         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71051         If size is zero here, buf must be zero.
71052
71053 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71054
71055         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71056         <bruno@clisp.org>.
71057
71058 2007-03-18  Bruno Haible  <bruno@clisp.org>
71059
71060         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71061         Suggested by Eric Blake.
71062
71063 2007-03-18  Ben Pfaff  <blp@gnu.org>
71064
71065         * doc/relocatable.texi: Recommend using as prefix a directory
71066         that does not exist and will never be created.  Based on
71067         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71068         and others.
71069
71070 2007-03-17  Bruno Haible  <bruno@clisp.org>
71071
71072         * lib/fchownat.c: Include lchown.h.
71073
71074 2007-03-17  Bruno Haible  <bruno@clisp.org>
71075
71076         Fix endless loop when the given allocated size was > INT_MAX.
71077         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71078         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71079         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71080         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71081         * lib/sprintf.c (sprintf): Likewise.
71082
71083 2007-03-17  Bruno Haible  <bruno@clisp.org>
71084
71085         * tests/test-argp-2.sh (func_compare): Output a context diff.
71086
71087 2007-03-17  Bruno Haible  <bruno@clisp.org>
71088
71089         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71090         locale's decimal-point character.
71091
71092 2007-03-17  Bruno Haible  <bruno@clisp.org>
71093
71094         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71095         before comparing it. Needed because on some platforms (e.g. x86) a
71096         'long double' occupies less bytes than sizeof (long double).
71097
71098 2007-03-17  Bruno Haible  <bruno@clisp.org>
71099
71100         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71101         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71102         * tests/test-getaddrinfo.c (simple): Likewise.
71103         * tests/test-read-file.c (main): Likewise.
71104
71105 2007-03-17  Bruno Haible  <bruno@clisp.org>
71106
71107         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71108
71109 2007-03-17  Bruno Haible  <bruno@clisp.org>
71110
71111         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71112         unused variable.
71113
71114 2007-03-17  Bruno Haible  <bruno@clisp.org>
71115
71116         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71117         * tests/test-c-strncasecmp.c: Likewise.
71118
71119 2007-03-17  Bruno Haible  <bruno@clisp.org>
71120
71121         * modules/stdlib (Depends-on): Add unistd.
71122         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71123         Needed for MacOS X 10.3.
71124
71125 2007-03-17  Bruno Haible  <bruno@clisp.org>
71126
71127         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71128
71129 2007-03-17  Bruno Haible  <bruno@clisp.org>
71130
71131         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71132
71133 2007-03-17  Bruno Haible  <bruno@clisp.org>
71134
71135         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71136         to reflect files copied from gnulib (with or without modifications).
71137         Suggested by Jim Meyering.
71138
71139 2007-03-17  Eric Blake  <ebb9@byu.net>
71140
71141         * NEWS: Document stdlib change from 2007-02-18.
71142
71143 2007-03-17  Jim Meyering  <jim@meyering.net>
71144
71145         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71146         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71147         someone uses a name containing shell meta-characters.
71148         Reported by Alfred M. Szmidt.
71149
71150         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71151
71152 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71153
71154         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71155         and copy gettext configuration files only if configure.ac contains
71156         a use of AM_GNU_GETTEXT_VERSION.
71157
71158 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71159
71160         * build-aux/bootstrap (gnulib_name): New variable.
71161         (gnulib_tool_options): Use it.
71162
71163 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71164
71165         * tests/test-des.c: Use new namespace.
71166
71167 2007-03-15  Bruno Haible  <bruno@clisp.org>
71168
71169         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71170         Reported by James Youngman <jay@gnu.org>.
71171
71172 2007-03-15  Bruno Haible  <bruno@clisp.org>
71173
71174         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71175         declared prototype. Needed with cc on OSF/1 5.1.
71176
71177 2007-03-15  Bruno Haible  <bruno@clisp.org>
71178
71179         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71180         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71181         (struct gl_list_implementation): Add dispose_fn argument to the
71182         'create_empty', 'create' methods.
71183         (struct gl_list_impl_base): Add field 'dispose_fn'.
71184         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71185         argument.
71186         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71187         dispose_fn argument.
71188         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71189         dispose_fn on the dropped values.
71190         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71191         dispose_fn argument.
71192         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71193         dropped values.
71194         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71195         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71196         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71197         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71198         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71199         argument.
71200         (gl_tree_list_free): Call dispose_fn on the dropped values.
71201         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71202         the dropped values.
71203         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71204         Add dispose_fn argument.
71205         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71206         Call dispose_fn on the dropped values.
71207         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71208         Add dispose_fn argument.
71209         (gl_sublist_create): Initialize the 'dispose_fn' field.
71210         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71211         * tests/test-array_list.c (main): Update.
71212         * tests/test-carray_list.c (main): Update.
71213         * tests/test-avltree_list.c (main): Update.
71214         * tests/test-rbtree_list.c (main): Update.
71215         * tests/test-avltreehash_list.c (main): Update.
71216         * tests/test-rbtreehash_list.c (main): Update.
71217         * tests/test-linked_list.c (main): Update.
71218         * tests/test-linkedhash_list.c (main): Update.
71219         * tests/test-array_oset.c (main): Update.
71220
71221 2007-03-15  Bruno Haible  <bruno@clisp.org>
71222
71223         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71224         (gl_oset_create_empty): Add dispose_fn argument.
71225         (struct gl_oset_implementation): Add dispose_fn argument to
71226         'create_empty' method.
71227         (struct gl_oset_impl_base): Add dispose_fn field.
71228         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71229         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71230         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71231         values.
71232         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71233         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71234         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71235         dropped value.
71236         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71237         dropped value.
71238         * tests/test-array_oset.c (main): Update.
71239         * tests/test-avltree_oset.c (main): Update.
71240         * tests/test-rbtree_oset.c (main): Update.
71241         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71242
71243 2007-03-13  Bruno Haible  <bruno@clisp.org>
71244
71245         * tests/test-stdbool.c (i): Update after last patch.
71246
71247 2007-03-12  Bruno Haible  <bruno@clisp.org>
71248
71249         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71250         the iswprint macro. Needed on Solaris 2.5.1.
71251
71252 2007-03-12  Bruno Haible  <bruno@clisp.org>
71253
71254         * tests/test-printf-frexp.c (main): Declare x as volatile.
71255
71256 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71257
71258         * doc/gnulib.texi (Build robot for gnulib): New section.
71259
71260 2007-03-12  Jim Meyering  <jim@meyering.net>
71261
71262         * build-aux/bootstrap: New file.
71263         * build-aux/bootstrap.conf: New file, from coreutils.
71264
71265 2007-03-11  Bruno Haible  <bruno@clisp.org>
71266
71267         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71268
71269 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71270
71271         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71272         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71273         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71274
71275 2007-03-11  Bruno Haible  <bruno@clisp.org>
71276
71277         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71278         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71279
71280 2007-03-11  Bruno Haible  <bruno@clisp.org>
71281
71282         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71283         formula. Needed for SunPRO C 5.0.
71284
71285 2007-03-11  Bruno Haible  <bruno@clisp.org>
71286
71287         * modules/long-options (Depends-on): Add getopt.
71288
71289 2007-03-11  Bruno Haible  <bruno@clisp.org>
71290
71291         * modules/modechange (Depends-on): Add stdbool.
71292
71293 2007-03-11  Bruno Haible  <bruno@clisp.org>
71294
71295         * modules/i-ring (Depends-on): Add stdbool.
71296
71297 2007-03-11  Bruno Haible  <bruno@clisp.org>
71298
71299         * modules/gc-des (Depends-on): Add stdbool.
71300
71301 2007-03-11  Bruno Haible  <bruno@clisp.org>
71302
71303         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71304
71305 2007-03-11  Bruno Haible  <bruno@clisp.org>
71306
71307         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71308
71309 2007-03-11  Bruno Haible  <bruno@clisp.org>
71310
71311         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71312
71313 2007-03-11  Bruno Haible  <bruno@clisp.org>
71314
71315         * lib/vasnprintf.c (sprintf): Undefine.
71316
71317 2007-03-11  Bruno Haible  <bruno@clisp.org>
71318
71319         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71320         initializers in SunPRO C and Compaq C compilers.
71321
71322 2007-03-11  Bruno Haible  <bruno@clisp.org>
71323
71324         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71325         decrementing code ANSI C compliant.
71326
71327 2007-03-11  Bruno Haible  <bruno@clisp.org>
71328
71329         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71330         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71331
71332 2007-03-11  Bruno Haible  <bruno@clisp.org>
71333
71334         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71335         <stdbool.h> substitute doesn't pass.
71336
71337 2007-03-11  Bruno Haible  <bruno@clisp.org>
71338
71339         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71340
71341 2007-03-11  Bruno Haible  <bruno@clisp.org>
71342
71343         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71344         script, for submission to autobuild.josefsson.org.
71345
71346 2007-03-10  Bruno Haible  <bruno@clisp.org>
71347
71348         * modules/canonicalize-lgpl-tests: New file.
71349         * tests/test-canonicalize-lgpl.sh: New file.
71350         * tests/test-canonicalize-lgpl.c: New file.
71351
71352         * modules/c-strcase-tests: New file.
71353         * tests/test-c-strcase.sh: New file.
71354         * tests/test-c-strcasecmp.c: New file.
71355         * tests/test-c-strncasecmp.c: New file.
71356
71357         * modules/atexit-tests: New file.
71358         * tests/test-atexit.sh: New file.
71359         * tests/test-atexit.c: New file.
71360
71361 2007-03-10  Bruno Haible  <bruno@clisp.org>
71362
71363         * tests/test-binary-io.sh: Use temporary filenames that are not so
71364         likely to clash with those of other tests (in a parallel make).
71365         * tests/test-binary-io.c: Likewise.
71366
71367 2007-03-10  Bruno Haible  <bruno@clisp.org>
71368
71369         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71370         fallback; use #error instead.
71371         Suggested by Simon Josefsson.
71372
71373 2007-03-10  Bruno Haible  <bruno@clisp.org>
71374
71375         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71376         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71377         first and the last.
71378
71379 2007-03-10  Bruno Haible  <bruno@clisp.org>
71380
71381         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71382
71383 2007-03-10  Bruno Haible  <bruno@clisp.org>
71384
71385         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71386         "make distcheck".
71387         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71388         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71389         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71390
71391 2007-03-10  Bruno Haible  <bruno@clisp.org>
71392
71393         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71394         variable.
71395         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71396         variable.
71397
71398 2007-03-09  Eric Blake  <ebb9@byu.net>
71399         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71400
71401         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71402         types are not being provided by gnulib.
71403         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71404         types are supported.
71405
71406 2007-03-10  Bruno Haible  <bruno@clisp.org>
71407
71408         * lib/stdio_.h (__attribute__): New macro.
71409         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71410         vsprintf): Specify __attribute__ __format__ for GCC.
71411         Suggested by Eric Blake.
71412
71413 2007-03-09  Bruno Haible  <bruno@clisp.org>
71414
71415         * modules/printf-posix-tests: New file.
71416         * tests/test-printf-posix.sh: New file.
71417         * tests/test-printf-posix.c: New file.
71418
71419         * modules/printf-posix: New file.
71420         * lib/printf.c: New file.
71421         * m4/printf-posix-rpl.m4: New file.
71422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71423         REPLACE_PRINTF.
71424         * lib/stdio_.h (printf): New declaration.
71425         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71426         ____strfmon____): New macros.
71427         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71428         REPLACE_PRINTF.
71429
71430 2007-03-09  Bruno Haible  <bruno@clisp.org>
71431
71432         * tests/test-vasnprintf-posix2.sh: New file.
71433         * tests/test-vasnprintf-posix2.c: New file.
71434         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71435         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71436         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71437
71438         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71439         a locale dependent decimal point, rather than always '.'.
71440
71441 2007-03-09  Eric Blake  <ebb9@byu.net>
71442
71443         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71444         spite of platforms like Tandem/NSK that define it to -1.
71445
71446 2007-03-08  Bruno Haible  <bruno@clisp.org>
71447
71448         * modules/vprintf-posix-tests: New file.
71449         * tests/test-vprintf-posix.sh: New file.
71450         * tests/test-vprintf-posix.c: New file.
71451         * tests/test-printf-posix.h: New file.
71452
71453         * modules/vprintf-posix: New file.
71454         * lib/vprintf.c: New file.
71455         * m4/vprintf-posix.m4: New file.
71456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71457         REPLACE_VPRINTF.
71458         * lib/stdio_.h (vprintf): New declaration.
71459         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71460         REPLACE_VPRINTF.
71461
71462 2007-03-08  Bruno Haible  <bruno@clisp.org>
71463
71464         * modules/fprintf-posix-tests: New file.
71465         * tests/test-fprintf-posix.sh: New file.
71466         * tests/test-fprintf-posix.c: New file.
71467
71468         * modules/fprintf-posix: New file.
71469         * lib/fprintf.c: New file.
71470         * m4/fprintf-posix.m4: New file.
71471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71472         REPLACE_FPRINTF.
71473         * lib/stdio_.h (fprintf): New declaration.
71474         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71475         REPLACE_FPRINTF.
71476
71477 2007-03-08  Bruno Haible  <bruno@clisp.org>
71478
71479         * modules/vfprintf-posix-tests: New file.
71480         * tests/test-vfprintf-posix.sh: New file.
71481         * tests/test-vfprintf-posix.c: New file.
71482         * tests/test-fprintf-posix.h: New file.
71483         * tests/test-fprintf-posix.out: New file.
71484
71485         * modules/vfprintf-posix: New file.
71486         * lib/vfprintf.c: New file.
71487         * m4/vfprintf-posix.m4: New file.
71488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71489         REPLACE_VFPRINTF.
71490         * lib/stdio_.h (vfprintf): New declaration.
71491         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71492         REPLACE_VFPRINTF.
71493
71494 2007-03-08  Bruno Haible  <bruno@clisp.org>
71495
71496         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71497
71498 2007-03-08  Bruno Haible  <bruno@clisp.org>
71499
71500         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71501         instead of 'expr' invocations.
71502         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71503         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71504         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71506         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71507         Suggested by Paul Eggert.
71508
71509 2007-03-08  Bruno Haible  <bruno@clisp.org>
71510
71511         * modules/fseterr-tests: New file.
71512         * tests/test-fseterr.c: New file.
71513
71514         * modules/fseterr: New file.
71515         * lib/fseterr.h: New file.
71516         * lib/fseterr.c: New file.
71517
71518 2007-03-08  Bruno Haible  <bruno@clisp.org>
71519
71520         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71521         * lib/getopt_.h: Likewise.
71522         * lib/mbswidth.h: Likewise.
71523         * lib/setenv.h: Likewise.
71524         * lib/vasnprintf.h: Likewise.
71525         * lib/vasprintf.h: Likewise.
71526         * lib/verror.h: Likewise.
71527         * lib/xsetenv.h: Likewise.
71528         * lib/xvasprintf.h: Likewise.
71529
71530 2007-03-08  Jim Meyering  <jim@meyering.net>
71531
71532         * users.txt: Add parted.
71533
71534         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71535
71536 2007-03-07  Bruno Haible  <bruno@clisp.org>
71537
71538         * m4/printf.m4: Make the shell script snippets copy&pastable.
71539
71540 2007-03-02  Bruno Haible  <bruno@clisp.org>
71541
71542         * lib/netinet_in_.h: New file.
71543         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71544         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71545         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71546         (Depends-on): Add absolute-header.
71547         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71548         into netinet/in.h.
71549
71550 2007-03-03  Bruno Haible  <bruno@clisp.org>
71551
71552         * lib/sys_select_.h: New file.
71553         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71554         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71555         * modules/sys_select (Files): Add lib/sys_select_.h.
71556         (Depends-on): Add absolute-header.
71557         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71558         into sys/select.h.
71559
71560 2007-03-02  Bruno Haible  <bruno@clisp.org>
71561
71562         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71563         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71564         values.
71565         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71566         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71567         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71568         * modules/sys_socket (Depends-on): Add absolute-header.
71569         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71570         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71571         (Include): Remove requirement of inclusion of <sys/types.h>.
71572
71573 2007-03-02  Bruno Haible  <bruno@clisp.org>
71574
71575         * lib/byteswap_.h (bswap_32): Fix formula.
71576
71577 2007-03-06  Bruno Haible  <bruno@clisp.org>
71578
71579         * modules/sprintf-posix-tests: New file.
71580         * tests/test-sprintf-posix.c: New file.
71581
71582         * modules/sprintf-posix: New file.
71583         * lib/sprintf.c: New file.
71584         * m4/sprintf-posix.m4: New file.
71585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71586         REPLACE_SPRINTF.
71587         * lib/stdio_.h (sprintf): New declaration.
71588         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71589         REPLACE_SPRINTF.
71590
71591 2007-03-06  Bruno Haible  <bruno@clisp.org>
71592
71593         * modules/vsprintf-posix-tests: New file.
71594         * tests/test-vsprintf-posix.c: New file.
71595         * tests/test-sprintf-posix.h: New file.
71596
71597         * modules/vsprintf-posix: New file.
71598         * lib/vsprintf.c: New file.
71599         * m4/vsprintf-posix.m4: New file.
71600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71601         REPLACE_VSPRINTF.
71602         * lib/stdio_.h (vsprintf): New declaration.
71603         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71604         REPLACE_VSPRINTF.
71605
71606 2007-03-06  Bruno Haible  <bruno@clisp.org>
71607
71608         * modules/vsnprintf (Depend-on): Remove minmax.
71609
71610 2007-03-06  Bruno Haible  <bruno@clisp.org>
71611
71612         * modules/snprintf-posix-tests: New file.
71613         * tests/test-snprintf-posix.c: New file.
71614
71615         * modules/snprintf-posix: New file.
71616         * m4/snprintf-posix.m4: New file.
71617         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71618         gl_FUNC_SNPRINTF.
71619         (gl_FUNC_SNPRINTF): Invoke it.
71620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71621         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71622         is set.
71623         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71624
71625 2007-03-06  Bruno Haible  <bruno@clisp.org>
71626
71627         * modules/vsnprintf-posix-tests: New file.
71628         * tests/test-vsnprintf-posix.c: New file.
71629         * tests/test-snprintf-posix.h: New file.
71630
71631         * modules/vsnprintf-posix: New file.
71632         * m4/vsnprintf-posix.m4: New file.
71633         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71634         gl_FUNC_VSNPRINTF.
71635         (gl_FUNC_VSNPRINTF): Invoke it.
71636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71637         * lib/stdio_.h (vsnprintf): Define as a replacement if
71638         REPLACE_VSNPRINTF is set.
71639         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71640
71641 2007-03-06  Bruno Haible  <bruno@clisp.org>
71642
71643         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71644         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71645
71646 2007-03-06  Bruno Haible  <bruno@clisp.org>
71647
71648         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71649         (asinl): Declare also if HAVE_DECL_ASINL is set.
71650         (atanl): Declare also if HAVE_DECL_ATANL is set.
71651         (ceill): Declare also if HAVE_DECL_CEILL is set.
71652         (cosl): Declare also if HAVE_DECL_COSL is set.
71653         (expl): Declare also if HAVE_DECL_EXPL is set.
71654         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71655         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71656         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71657         (logl): Declare also if HAVE_DECL_LOGL is set.
71658         (sinl): Declare also if HAVE_DECL_SINL is set.
71659         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71660         (tanl): Declare also if HAVE_DECL_TANL is set.
71661         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71663         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71664         declaration of frexpl, ldexpl.
71665         * modules/printf-frexpl (Depends-on): Add math.
71666         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71667
71668 2007-03-05  Bruno Haible  <bruno@clisp.org>
71669
71670         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71671         frexpl and ldexpl are declared.
71672         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71673
71674 2007-03-05  Bruno Haible  <bruno@clisp.org>
71675
71676         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71677         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71678
71679 2007-03-05  Bruno Haible  <bruno@clisp.org>
71680
71681         * lib/stdio_.h: Include <stddef.h>.
71682
71683 2007-03-05  Bruno Haible  <bruno@clisp.org>
71684
71685         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71686
71687 2007-03-05  Bruno Haible  <bruno@clisp.org>
71688
71689         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71690         NetBSD 4, from Ralf Wildenhues.
71691
71692 2007-03-04  Bruno Haible  <bruno@clisp.org>
71693
71694         * lib/vasprintf.h: Update #if logic for the case when the functions
71695         exist but are overridden.
71696
71697 2007-03-04  Bruno Haible  <bruno@clisp.org>
71698
71699         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71700         implementations: glibc-2.4 and MacOS X 10.3.
71701         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71702         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71703         * tests/test-vasprintf-posix.c (test_function): Likewise.
71704
71705 2007-03-04  Bruno Haible  <bruno@clisp.org>
71706
71707         * modules/vasprintf-posix-tests: New file.
71708         * tests/test-vasprintf-posix.c: New file.
71709
71710         * modules/vasprintf-posix: New file.
71711         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71712         defined.
71713         * m4/vasprintf-posix.m4: New file.
71714         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71715         gl_FUNC_VASPRINTF.
71716         (gl_FUNC_VASPRINTF): Invoke it.
71717         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71718         here.
71719         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71720
71721 2007-03-04  Bruno Haible  <bruno@clisp.org>
71722
71723         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71724         REPLACE_GETTIMEOFDAY.
71725         * modules/sys_time (Makefile.am): Likewise.
71726         * m4/sys_time_h.m4: Likewise.
71727         * m4/gettimeofday.m4: Likewise.
71728
71729 2007-03-04  Bruno Haible  <bruno@clisp.org>
71730
71731         * modules/vasnprintf-posix-tests: New file.
71732         * tests/test-vasnprintf-posix.c: New file.
71733
71734         * modules/vasnprintf-posix: New file.
71735         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71736         printf-frexpl.h.
71737         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71738         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71739         REPLACE_VASNPRINTF is defined.
71740         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71741         gl_FUNC_VASNPRINTF.
71742         (gl_FUNC_VASNPRINTF): Invoke it.
71743         * m4/vasnprintf-posix.m4: New file.
71744         * m4/printf.m4: New file.
71745
71746 2007-03-04  Bruno Haible  <bruno@clisp.org>
71747
71748         Compile progreloc.c only if --enable-relocatable is specified.
71749         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71750         if --enable-relocatable was specified.
71751         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71752         lib_SOURCES.
71753
71754 2007-03-04  Jim Meyering  <jim@meyering.net>
71755
71756         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71757         Use it consistently, rather than enumerating errno constants.
71758
71759 2007-03-04  Bruno Haible  <bruno@clisp.org>
71760
71761         * modules/xvasprintf-tests: New file.
71762         * tests/test-xvasprintf.c: New file.
71763
71764         * modules/vasprintf-tests: New file.
71765         * tests/test-vasprintf.c: New file.
71766
71767         * modules/vasnprintf-tests: New file.
71768         * tests/test-vasnprintf.c: New file.
71769
71770         * modules/vsnprintf-tests: New file.
71771         * tests/test-vsnprintf.c: New file.
71772
71773         * modules/snprintf-tests: New file.
71774         * tests/test-snprintf.c: New file.
71775
71776 2007-03-04  Bruno Haible  <bruno@clisp.org>
71777
71778         Compile relocatable.c only if --enable-relocatable is specified.
71779         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71780         gl_RELOCATABLE_LIBRARY.
71781         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71782         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71783         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71784         gl_RELOCATABLE_LIBRARY.
71785         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71786         (Makefile.am): Remove lib_SOURCES.
71787         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71788         gl_RELOCATABLE_LIBRARY.
71789         (Makefile.am): Remove lib_SOURCES.
71790         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71791         always.
71792         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71793         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71794
71795 2007-03-04  Bruno Haible  <bruno@clisp.org>
71796
71797         * modules/argmatch-tests: New file.
71798         * tests/test-argmatch.c: New file.
71799
71800         * tests/test-allocsa.c (main): Halve the number of loop runs.
71801
71802         * modules/alloca-opt-tests: New file.
71803         * tests/test-alloca-opt.c: New file.
71804
71805 2007-03-04  Jim Meyering  <jim@meyering.net>
71806
71807         Work around difference between Linux ACLs and Solaris 10 ZFS.
71808         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71809         for EINVAL.
71810
71811 2007-03-03  Bruno Haible  <bruno@clisp.org>
71812
71813         * modules/relocatable-prog (Depends-on): Add back progreloc's
71814         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71815
71816 2007-03-03  Bruno Haible  <bruno@clisp.org>
71817
71818         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71819         * modules/relocatable-lib: New file.
71820
71821 2007-03-03  Bruno Haible  <bruno@clisp.org>
71822
71823         * modules/relocatable-prog: Renamed from modules/relocatable.
71824         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71825
71826 2007-03-03  Bruno Haible  <bruno@clisp.org>
71827
71828         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71829         m4/relocatable-lib.m4.
71830         (Depends-on): Remove 'relocatable'.
71831         (configure.ac): Add gl_RELOCATABLE_NOP.
71832
71833 2007-03-03  Bruno Haible  <bruno@clisp.org>
71834
71835         * modules/relocatable-prog-wrapper: New file.
71836         * modules/relocatable (Depends-on): Add it. Remove all other
71837         dependencies except progname.
71838         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71839
71840         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71841         (gl_FUNC_STRERROR): Nop.
71842         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71843
71844         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71845         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71846
71847         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71848         (gl_FUNC_READLINK): Update.
71849
71850         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71851
71852 2007-03-03  Bruno Haible  <bruno@clisp.org>
71853
71854         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71855         * modules/xreadlink (Depends-on): Add unistd.
71856         * modules/xreadlink-with-size (Depends-on): Likewise.
71857
71858 2007-03-03  Bruno Haible  <bruno@clisp.org>
71859
71860         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71861         extracted from gt_FUNC_SETENV.
71862         (gt_FUNC_SETENV): Remove macro.
71863         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71864         remove gt_FUNC_SETENV.
71865
71866 2007-03-03  Bruno Haible  <bruno@clisp.org>
71867
71868         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71869         ENABLE_RELOCATABLE here.
71870         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71871
71872 2007-03-03  Bruno Haible  <bruno@clisp.org>
71873
71874         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71875         * tests/test-rbtreehash_list.c: Include progname.h.
71876         (main): Call set_program_name.
71877
71878         * modules/rbtree-oset-tests (Depends-on): Add progname.
71879         * tests/test-rbtree_oset.c: Include progname.h.
71880         (main): Call set_program_name.
71881
71882         * modules/rbtree-list-tests (Depends-on): Add progname.
71883         * tests/test-rbtree_list.c: Include progname.h.
71884         (main): Call set_program_name.
71885
71886         * modules/linked-list-tests (Depends-on): Add progname.
71887         * tests/test-linked_list.c: Include progname.h.
71888         (main): Call set_program_name.
71889
71890 2007-03-03  Bruno Haible  <bruno@clisp.org>
71891
71892         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71893         All uses of __restrict changed to _Restrict_.
71894         * lib/glob_.h (__restrict): Remove macro.
71895
71896 2007-03-02  Bruno Haible  <bruno@clisp.org>
71897
71898         * modules/gettext (configure.ac): Require gettext infrastructure
71899         from version 0.16.1.
71900
71901 2007-03-02  Bruno Haible  <bruno@clisp.org>
71902
71903         * modules/linkedhash-list-tests (Depends-on): Add progname.
71904         * tests/test-linkedhash_list.c: Include progname.h.
71905         (main): Call set_program_name.
71906
71907         * modules/carray-list-tests (Depends-on): Add progname.
71908         * tests/test-carray_list.c: Include progname.h.
71909         (main): Call set_program_name.
71910
71911         * modules/avltreehash-list-tests (Depends-on): Add progname.
71912         * tests/test-avltreehash_list.c: Include progname.h.
71913         (main): Call set_program_name.
71914
71915         * modules/avltree-oset-tests (Depends-on): Add progname.
71916         * tests/test-avltree_oset.c: Include progname.h.
71917         (main): Call set_program_name.
71918
71919         * modules/avltree-list-tests (Depends-on): Add progname.
71920         * tests/test-avltree_list.c: Include progname.h.
71921         (main): Call set_program_name.
71922
71923         * modules/array-oset-tests (Depends-on): Add progname.
71924         * tests/test-array_oset.c: Include progname.h.
71925         (main): Call set_program_name.
71926
71927         * modules/array-list-tests (Depends-on): Add progname.
71928         * tests/test-array_list.c: Include progname.h.
71929         (main): Call set_program_name.
71930
71931         * modules/argp-tests (Depends-on): Add progname.
71932         * tests/test-argp.c: Include argp.h first. Include progname.h.
71933         (main): Call set_program_name.
71934
71935 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71936
71937         * doc/gnulib-tool.texi (Initial import): Reword description of
71938         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71939         limited effect even if defined after the first system include.
71940
71941 2007-03-01  Bruno Haible  <bruno@clisp.org>
71942
71943         * build-aux/config.libpath: Update to libtool-1.5.22.
71944         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71945
71946 2007-03-01  Bruno Haible  <bruno@clisp.org>
71947
71948         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71949         foo_CFLAGS.
71950         Reported by Ralf Wildenhues.
71951
71952 2007-03-01  Bruno Haible  <bruno@clisp.org>
71953
71954         * build-aux/install-reloc: Remove object files left over by some
71955         compilers.
71956         Reported by Ralf Wildenhues.
71957
71958 2007-03-01  Bruno Haible  <bruno@clisp.org>
71959
71960         * build-aux/install-reloc: Break long lines.
71961
71962 2007-03-01  Bruno Haible  <bruno@clisp.org>
71963
71964         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71965         Reported by Ralf Wildenhues.
71966
71967 2007-03-01  Bruno Haible  <bruno@clisp.org>
71968
71969         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71970         include ordering constraints.
71971
71972 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71973
71974         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71975         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71976         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71977         as another example.
71978         * lib/time_.h: Fix misspelling.
71979         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71980         Require gl_HEADER_TIME_H_DEFAULTS.
71981         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71982         * m4/time_r.m4 (gl_TIME_R): Likewise.
71983         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71984
71985 2007-03-01  Bruno Haible  <bruno@clisp.org>
71986
71987         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71988         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71989
71990 2007-03-01  Jim Meyering  <jim@meyering.net>
71991
71992         * modules/xreadlink (Maintainer): Add my name.
71993         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71994
71995 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71996             Bruno Haible  <bruno@clisp.org>
71997
71998         * build-aux/install-reloc: Compile also c-ctype.c.
71999         * build-aux/relocatable.sh.in: New file.
72000         * doc/relocatable.texi: New file.
72001         * doc/relocatable-maint.texi: New file.
72002         * doc/gnulib.texi: Include relocatable-maint.texi.
72003         * lib/progreloc.c: Include unistd.h unconditionally.
72004         * lib/relocwrapper.c: Include unistd.h unconditionally.
72005         Include c-ctype.h.
72006         (add_dotbin): Use c_tolower.
72007         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72008         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72009         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72010         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72011         to m4/relocatable-lib.m4.
72012         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72013         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72014         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72015         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72016         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72017         * modules/relocatable: New file.
72018         * modules/relocatable-lib: New file.
72019         * modules/relocatable-script: New file.
72020
72021 2007-02-28  Bruno Haible  <bruno@clisp.org>
72022
72023         Import --enable-relocatable infrastructure.
72024         * build-aux/config.libpath: New file, from GNU gettext.
72025         * build-aux/install-reloc: New file, from GNU gettext.
72026         * build-aux/reloc-ldflags: New file, from GNU gettext.
72027         * lib/relocatable.h: New file, from GNU gettext.
72028         * lib/relocatable.c: New file, from GNU gettext.
72029         * lib/relocwrapper.c: New file, from GNU gettext.
72030         * m4/relocatable.m4: New file, from GNU gettext.
72031
72032 2007-02-28  Bruno Haible  <bruno@clisp.org>
72033
72034         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72035
72036         * modules/xreadlink: New file, from GNU gettext with modifications.
72037         * lib/xreadlink.c: New file, from GNU gettext.
72038         * lib/xreadlink.h: Add comments.
72039         (xreadlink): New declaration.
72040
72041         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72042         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72043         lib/xreadlink-with-size.c.
72044         (configure.ac): Remove gl_XREADLINK invocation.
72045         (Makefile.am): Augment lib_SOURCES.
72046         * m4/xreadlink.m4: Remove file.
72047         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72048         (xreadlink_with_size): Renamed from xreadink.
72049         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72050         * modules/canonicalize (Depends-on): Replace xreadlink with
72051         xreadlink-with-size.
72052         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72053
72054 2007-02-25  Jim Meyering  <jim@meyering.net>
72055
72056         * build-aux/announce-gen: When complaining about excess arguments,
72057         list them.
72058
72059 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72060
72061         * README: Document signed integer overflow situation more
72062         accurately.
72063
72064 2007-02-25  Bruno Haible  <bruno@clisp.org>
72065
72066         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72067         'a' or 'A' conversion.
72068
72069 2007-02-25  Bruno Haible  <bruno@clisp.org>
72070
72071         * modules/filename: Renamed from modules/pathname.
72072         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72073         lib/concatpath.c with lib/concat-filename.c.
72074         (Makefile.am): Update.
72075         (Include): Replace pathname.h with filename.h.
72076         * lib/filename.h: Renamed from lib/pathname.h.
72077         (concatenated_filename): Renamed from concatenated_pathname.
72078         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72079         (concatenated_filename): Renamed from concatenated_pathname.
72080         * lib/findprog.c: Include filename.h instead of pathname.h.
72081         (find_in_path): Update.
72082         * lib/javacomp.c: Include filename.h instead of pathname.h.
72083         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72084         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72085         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72086         is_oldgcj_14_13_usable, is_javac_usable): Update.
72087         * lib/javaexec.c: Include filename.h instead of pathname.h.
72088         (execute_java_class): Update.
72089         * modules/findprog: Update.
72090         * modules/javacomp: Update.
72091         * modules/javaexec: Update.
72092         * MODULES.html.sh (File system functions): Add 'filename', remove
72093         'pathname'.
72094
72095 2007-02-25  Bruno Haible  <bruno@clisp.org>
72096
72097         * modules/printf-frexpl-tests: New file.
72098         * tests/test-printf-frexpl.c: New file.
72099
72100         * modules/printf-frexpl: New file.
72101         * lib/printf-frexpl.h: New file.
72102         * lib/printf-frexpl.c: New file.
72103         * m4/printf-frexpl.m4: New file.
72104
72105 2007-02-25  Bruno Haible  <bruno@clisp.org>
72106
72107         * modules/printf-frexp-tests: New file.
72108         * tests/test-printf-frexp.c: New file.
72109
72110         * modules/printf-frexp: New file.
72111         * lib/printf-frexp.h: New file.
72112         * lib/printf-frexp.c: New file.
72113         * m4/printf-frexp.m4: New file.
72114
72115 2007-02-25  Bruno Haible  <bruno@clisp.org>
72116
72117         Assume automake >= 1.10 for the tests.
72118         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72119         * modules/arctwo-tests: Likewise.
72120         * modules/argp-tests: Likewise.
72121         * modules/avltree-list-tests: Likewise.
72122         * modules/avltree-oset-tests: Likewise.
72123         * modules/avltreehash-list-tests: Likewise.
72124         * modules/carray-list-tests: Likewise.
72125         * modules/crc-tests: Likewise.
72126         * modules/des-tests: Likewise.
72127         * modules/gc-arcfour-tests: Likewise.
72128         * modules/gc-arctwo-tests: Likewise.
72129         * modules/gc-des-tests: Likewise.
72130         * modules/gc-hmac-md5-tests: Likewise.
72131         * modules/gc-hmac-sha1-tests: Likewise.
72132         * modules/gc-md2-tests: Likewise.
72133         * modules/gc-md4-tests: Likewise.
72134         * modules/gc-md5-tests: Likewise.
72135         * modules/gc-pbkdf2-sha1-tests: Likewise.
72136         * modules/gc-rijndael-tests: Likewise.
72137         * modules/gc-sha1-tests: Likewise.
72138         * modules/gc-tests: Likewise.
72139         * modules/getaddrinfo-tests: Likewise.
72140         * modules/hmac-md5-tests: Likewise.
72141         * modules/hmac-sha1-tests: Likewise.
72142         * modules/linked-list-tests: Likewise.
72143         * modules/linkedhash-list-tests: Likewise.
72144         * modules/lock-tests: Likewise.
72145         * modules/md2-tests: Likewise.
72146         * modules/md4-tests: Likewise.
72147         * modules/md5-tests: Likewise.
72148         * modules/rbtree-list-tests: Likewise.
72149         * modules/rbtree-oset-tests: Likewise.
72150         * modules/rbtreehash-list-tests: Likewise.
72151         * modules/read-file-tests: Likewise.
72152         * modules/rijndael-tests: Likewise.
72153         * modules/stdint-tests: Likewise.
72154         * modules/tls-tests: Likewise.
72155
72156 2007-02-24  Bruno Haible  <bruno@clisp.org>
72157
72158         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72159         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72160         function; instead check whether isnan with a double argument links.
72161         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72162         function; instead check whether isnan with a 'long double' argument
72163         links.
72164         Reported by Eric Blake <ebb9@byu.net>.
72165
72166 2007-02-24  Bruno Haible  <bruno@clisp.org>
72167
72168         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72169         defined.
72170         * lib/isnanl.c: Remove all code. Just include isnan.c.
72171         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72172
72173 2007-02-25  Jim Meyering  <jim@meyering.net>
72174
72175         Avoid conflicting types for 'unsetenv' on FreeBSD.
72176         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72177         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72178         in stdlib.h.
72179
72180 2007-02-24  Bruno Haible  <bruno@clisp.org>
72181
72182         * modules/isnanl-nolibm-tests: New file.
72183         * tests/test-isnanl.c: New file.
72184
72185         * modules/isnanl-nolibm: New file.
72186         * lib/isnanl.h: New file.
72187         * lib/isnanl.c: New file.
72188         * m4/isnanl.m4: New file.
72189
72190 2007-02-24  Bruno Haible  <bruno@clisp.org>
72191
72192         * modules/isnan-nolibm-tests: New file.
72193         * tests/test-isnan.c: New file.
72194
72195         * modules/isnan-nolibm: New file.
72196         * lib/isnan.h: New file.
72197         * lib/isnan.c: New file.
72198         * m4/isnan.m4: New file.
72199
72200 2007-02-24  Bruno Haible  <bruno@clisp.org>
72201
72202         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72203         assume that an exponent fits in 20 bits.
72204
72205 2007-02-24  Jim Meyering  <jim@meyering.net>
72206
72207         * m4/regex.m4: Update the description of the configure-time option,
72208         --without-included-regex, to state accurately what the defaults are,
72209         and perhaps to give people an idea why using this option is risky.
72210
72211 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72212
72213         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72214         loops on small arguments.  This attempts to avoid the problem
72215         Bruno Haible reported for AIX 4.3.2 in
72216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72217
72218 2007-02-23  Bruno Haible  <bruno@clisp.org>
72219
72220         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72221         Needed for help2man.
72222
72223 2007-02-23  Karl Berry  <karl@gnu.org>
72224
72225         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72226         exists, foo.h should be cvs-ignored, not committed.
72227
72228 2007-02-23  Eric Blake  <ebb9@byu.net>
72229
72230         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72231         * lib/stat-time.h (includes): Likewise.
72232         * lib/utimecmp.c (includes): Likewise.
72233         * lib/utimens.h (includes): Likewise.
72234         * lib/getdate.y (includes): Also include "timespec.h" for use
72235         internal to the module.
72236         * modules/utimens (Depends-on): Revert yesterday's patch.
72237         * modules/nanosleep (Depends-on): Add missing dependency.
72238
72239 2007-02-22  Bruno Haible  <bruno@clisp.org>
72240
72241         * lib/glob.c: Don't include getlogin_r.h.
72242
72243 2007-02-22  Jim Meyering  <jim@meyering.net>
72244
72245         * modules/utimens (Depends-on): Add timespec, required for
72246         utimens.h's inclusion of timespec.h.
72247
72248 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72249
72250         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72251         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72252         Schwab in
72253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72254         I'll try to think of a better way to fix the Solaris problem.
72255
72256         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72257         like glibc; on Solaris 10, it fails with errno == EINVAL.
72258         POSIX says the behavior is unspecified if the first argument is NULL,
72259         so play it safe and never pass NULL to the system getcwd.
72260
72261 2007-02-21  Jim Meyering  <jim@meyering.net>
72262
72263         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72264         of gettimeofday.  It would conflict with the one now always
72265         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72266         an IRIX 6.5 build failure.
72267
72268 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72269
72270         Minor fixups to port to Solaris 10 with Sun C 5.8.
72271         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72272         * modules/getcwd (Depends-on): Add dirfd.
72273         * lib/putenv.c (putenv): #undef it.
72274         (rpl_putenv): New decl.
72275         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72276
72277 2007-02-20  Bruno Haible  <bruno@clisp.org>
72278
72279         * modules/stdio-tests: New file.
72280         * tests/test-stdio.c: New file.
72281
72282         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72283         (Depends-on): Add stdio.
72284         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72285         (Include): Use <stdio.h> instead of vsnprintf.h.
72286         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72287         HAVE_DECL_VSNPRINTF.
72288         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72289
72290         * modules/snprintf (Files): Remove lib/snprintf.h.
72291         (Depends-on): Add stdio.
72292         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72293         (Include): Use <stdio.h> instead of snprintf.h.
72294         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72295         HAVE_DECL_SNPRINTF.
72296         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72297         * lib/getaddrinfo.c: Likewise.
72298
72299         * modules/stdio: New file.
72300         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72301         * lib/snprintf.h: Remove file.
72302         * lib/vsnprintf.h: Remove file.
72303         * lib/.cppi-disable: Remove snprintf.h.
72304         * m4/stdio_h.m4: New file.
72305         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72306
72307 2007-02-20  Jim Meyering  <jim@meyering.net>
72308
72309         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72310         used by e.g., mingw.  From Bruno Haible.
72311
72312 2007-02-19  Bruno Haible  <bruno@clisp.org>
72313
72314         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72315         warnings.
72316         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72317
72318 2007-02-19  Bruno Haible  <bruno@clisp.org>
72319
72320         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72321         from mingw users.
72322
72323 2007-02-19  Bruno Haible  <bruno@clisp.org>
72324
72325         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72326         warnings.
72327         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72328
72329 2007-02-19  Jim Meyering  <jim@meyering.net>
72330
72331         Don't use FD after a successful "fdopendir (fd)".
72332         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72333         Reset it by calling dirfd on the just-obtained DIR*.
72334
72335         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72336         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72337
72338 2007-02-18  Bruno Haible  <bruno@clisp.org>
72339
72340         * lib/readlink.c: Include <unistd.h>.
72341         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72342         HAVE_READLINK.
72343         * modules/readlink (Depends-on): Add unistd.
72344         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72345         (Include): Add <unistd.h>.
72346
72347         * lib/getlogin_r.h: Remove file.
72348         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72349         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72350         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72351         HAVE_DECL_GETLOGIN_R.
72352         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72353         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72354         (Include): Use <unistd.h> instead of getlogin_r.h.
72355
72356         * lib/getcwd.h: Remove file.
72357         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72358         * lib/xgetcwd.c: Likewise.
72359         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72360         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72361         * modules/getcwd (Files): Remove lib/getcwd.h.
72362         (Depends-on): Add unistd.
72363         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72364         (Include): Use <unistd.h> instad of getcwd.h.
72365
72366         * lib/ftruncate.c: Include <unistd.h> first.
72367         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72368         Set HAVE_FTRUNCATE.
72369         * modules/ftruncate (Depends-on): Add unistd.
72370         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72371
72372         * lib/fchdir.c: Include <unistd.h> first.
72373         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72374         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72375         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72376         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72377         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72378
72379         * lib/dup2.c: Include <unistd.h> first.
72380         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72381         HAVE_DUP2.
72382         * modules/dup2 (Depends-on): Add unistd.
72383         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72384
72385         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72386         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72387         REPLACE_CHOWN. Don't define chown as a macro here.
72388         * modules/chown (Depends-on): Add unistd.
72389         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72390
72391         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72392         Add definition for GL_LINK_WARNING.
72393         (chown, dup2): New declarations.
72394         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72395         link warning.
72396         (ftruncate): New declaration.
72397         (getcwd): New declaration, taken from old getcwd.h.
72398         (getlogin_r): New declaration, taken from old getlogin_r.h.
72399         (readlink): New declaration.
72400         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72401         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72402         (gl_PREREQ_UNISTD): Remove macro.
72403         (gl_UNISTD_MODULE_INDICATOR): New macro.
72404         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72405         many new variables. Don't set UNISTD_H.
72406         * modules/unistd (Description): Change.
72407         (Depends-on): Add link-warning.
72408         (configure.ac): Update.
72409         (Makefile.am): Create unistd.h always. Substitute many new variables
72410         into it.
72411
72412 2007-02-18  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72415         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72416         HAVE_GETSUBOPT.
72417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72418         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72419         * lib/getsubopt.h: Remove file.
72420         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72421         (Depends-on): Add stdlib.
72422         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72423         (Includes): Use <stdlib.h> instead of getsubopt.h.
72424         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72425         Set HAVE_GETSUBOPT.
72426         * lib/getsubopt.c: Don't include getsubopt.h.
72427
72428 2007-02-18  Bruno Haible  <bruno@clisp.org>
72429
72430         * modules/fchdir (Depends-on): Add dup2.
72431
72432 2007-02-18  Bruno Haible  <bruno@clisp.org>
72433
72434         * lib/stdlib_.h: Handle glibc's special invocation convention
72435         specially.
72436
72437 2007-02-18  Bruno Haible  <bruno@clisp.org>
72438
72439         * modules/stdlib-tests: New file.
72440         * tests/test-stdlib.c: New file.
72441
72442         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72443         (Depends-on): Add stdlib.
72444         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72445         (Includes): Use <stdlib.h> instead of mkstemp.h.
72446         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72447         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72448         * lib/mkstemp.c: Don't include mkstemp.h.
72449         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72450         * lib/stdlib--.h: Don't include mkstemp.h.
72451
72452         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72453         (Depends-on): Add stdlib.
72454         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72455         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72456         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72457         HAVE_MKDTEMP.
72458         * lib/mkdtemp.c: Don't include mkdtemp.h.
72459         * lib/clean-temp.c: Don't include mkdtemp.h.
72460
72461         * modules/exit (Files): Remove lib/exit.h.
72462         (Depends-on): Add stdlib.
72463         (Makefile.am): Remove lib_SOURCES.
72464         (Include): Use <stdlib.h> instead of exit.h.
72465         * lib/argmatch.c: Don't include exit.h.
72466         * lib/execute.c: Likewise.
72467         * lib/pagealign_alloc.c: Likewise.
72468         * lib/pipe.c: Likewise.
72469         * lib/wait-process.c: Likewise.
72470         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72471         * lib/exitfail.c: Likewise.
72472         * lib/savewd.c: Likewise.
72473         * lib/xsetenv.c: Likewise.
72474
72475         * modules/stdlib: New file.
72476         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72477         and extra comments about mkstemp().
72478         * lib/exit.h: Remove file.
72479         * lib/mkdtemp.h: Remove file.
72480         * lib/mkstemp.h: Remove file.
72481         * m4/stdlib_h.m4: New file.
72482         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72483
72484 2007-02-18  Bruno Haible  <bruno@clisp.org>
72485
72486         * modules/math-tests: New file.
72487         * tests/test-math.c: New file.
72488
72489         * modules/math: New file.
72490         * modules/mathl (Files): Remove lib/mathl.h.
72491         (Depends-on): Add math.
72492         (Makefile.am): Don't mention mathl.h.
72493         (Include): Use <math.h> instead of mathl.h.
72494         * lib/math_.h: New file.
72495         * lib/mathl.h: Remove file.
72496         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72497         mathl.h.
72498         * lib/asinl.c: Likewise.
72499         * lib/atanl.c: Likewise.
72500         * lib/ceill.c: Likewise.
72501         * lib/cosl.c: Likewise.
72502         * lib/expl.c: Likewise.
72503         * lib/floorl.c: Likewise.
72504         * lib/frexpl.c: Likewise.
72505         * lib/ldexpl.c: Likewise.
72506         * lib/logl.c: Likewise.
72507         * lib/sincosl.c: Likewise.
72508         * lib/sinl.c: Likewise.
72509         * lib/sqrtl.c: Likewise.
72510         * lib/tanl.c: Likewise.
72511         * lib/trigl.c: Likewise.
72512         * m4/math_h.m4: New file.
72513         * MODULES.html.sh (Mathematics): Add math.
72514
72515 2007-02-17  Bruno Haible  <bruno@clisp.org>
72516
72517         * modules/wctype-tests: New file.
72518         * tests/test-wctype.c: New file.
72519
72520         * modules/wchar-tests: New file.
72521         * tests/test-wchar.c: New file.
72522
72523         * modules/unistd-tests: New file.
72524         * tests/test-unistd.c: New file.
72525
72526         * modules/time-tests: New file.
72527         * tests/test-time.c: New file.
72528
72529         * modules/sysexits-tests: New file.
72530         * tests/test-sysexits.c: New file.
72531
72532         * modules/sys_time-tests: New file.
72533         * tests/test-sys_time.c: New file.
72534
72535         * modules/sys_stat-tests: New file.
72536         * tests/test-sys_stat.c: New file.
72537
72538         * modules/sys_socket-tests: New file.
72539         * tests/test-sys_socket.c: New file.
72540
72541         * modules/sys_select-tests: New file.
72542         * tests/test-sys_select.c: New file.
72543
72544         * modules/string-tests: New file.
72545         * tests/test-string.c: New file.
72546
72547         * modules/stdbool-tests: New file.
72548         * tests/test-stdbool.c: New file.
72549
72550         * modules/netinet_in-tests: New file.
72551         * tests/test-netinet_in.c: New file.
72552
72553         * modules/inttypes-tests: New file.
72554         * tests/test-inttypes.c: New file.
72555
72556         * modules/fcntl-tests: New file.
72557         * tests/test-fcntl.c: New file.
72558
72559         * modules/byteswap-tests: New file.
72560         * tests/test-byteswap.c: New file.
72561
72562         * modules/arpa_inet-tests: New file.
72563         * tests/test-arpa_inet.c: New file.
72564
72565 2007-02-17  Bruno Haible  <bruno@clisp.org>
72566
72567         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72568         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72569         if the corresponding module is not enabled. Emit link warnings if
72570         the function is used nevertheless.
72571         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72572         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72573         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72574         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72575         * modules/inttypes (Depends-on): Add link-warning.
72576         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72577         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72578         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72579         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72580         * modules/imaxdiv (configure.ac): Likewise.
72581         * modules/strtoimax (configure.ac): Likewise.
72582         * modules/strtoumax (configure.ac): Likewise.
72583
72584 2007-02-17  Bruno Haible  <bruno@clisp.org>
72585
72586         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72587         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72588         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72589         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72590
72591 2007-02-17  Bruno Haible  <bruno@clisp.org>
72592
72593         * modules/link-warning: New file.
72594         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72595         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72596         * modules/string (Depends-on): Add link-warning.
72597         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72598         string.h.
72599         * MODULES.html.sh (Support for building libraries and executables): Add
72600         link-warning.
72601
72602 2007-02-17  Bruno Haible  <bruno@clisp.org>
72603
72604         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72605         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72606         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72607         long lines.
72608
72609 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72610             Bruno Haible  <bruno@clisp.org>
72611
72612         * modules/tmpfile: New file.
72613         * lib/tmpfile.c: New file.
72614         * m4/tmpfile.m4: New file.
72615         * MODULES.html.sh (func_all_modules): New section "Input/output".
72616
72617 2007-02-15  Bruno Haible  <bruno@clisp.org>
72618
72619         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72620         (supports_delete_on_close): New function.
72621         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72622
72623 2007-02-14  Bruno Haible  <bruno@clisp.org>
72624
72625         * modules/mbspcasecmp-tests: New file.
72626         * tests/test-mbspcasecmp.sh: New file.
72627         * tests/test-mbspcasecmp.c: New file.
72628
72629         New module mbspcasecmp.
72630         * modules/mbspcasecmp: New file.
72631         * lib/mbspcasecmp.c: New file.
72632         * lib/string_.h (strncasecmp): Change warning message.
72633         (mbspcasecmp): New declaration.
72634         * m4/mbspcasecmp.m4: New file.
72635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72636         GNULIB_MBSPCASECMP.
72637         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72638         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72639
72640 2007-02-14  Bruno Haible  <bruno@clisp.org>
72641
72642         * modules/mbsncasecmp-tests: New file.
72643         * tests/test-mbsncasecmp.sh: New file.
72644         * tests/test-mbsncasecmp.c: New file.
72645
72646         New module mbsncasecmp.
72647         * modules/mbsncasecmp: New file.
72648         * lib/mbsncasecmp.c: New file.
72649         * lib/string_.h (mbsncasecmp): New declaration.
72650         * m4/mbsncasecmp.m4: New file.
72651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72652         GNULIB_MBSNCASECMP.
72653         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72654         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72655
72656 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72657
72658         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72659         Verify that it doesn't overlap with our flags.
72660         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72661         do not have the desired effect in multibyte locales; instead, use
72662         mbscasecmp.
72663         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72664         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72665         we don't require GNU fnmatch ourselves (if our users require it, they
72666         should do so explicitly).
72667
72668         Fix regex code so it doesn't rely on strcasecmp.
72669         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72670         Otherwise, include gnulib's langinfo.h.
72671         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72672         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72673         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72674         * modules/regex (FILES): Remove m4/codeset.m4.
72675         (Depends-on): Add localcharset.  Remove strcase.
72676
72677 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72678
72679         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72680         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72681
72682 2007-02-13  Bruno Haible  <bruno@clisp.org>
72683
72684         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72685         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72686
72687 2007-02-12  Bruno Haible  <bruno@clisp.org>
72688
72689         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72690         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72691         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72692         time warning rather than a link error.
72693
72694 2007-02-12  Bruno Haible  <bruno@clisp.org>
72695
72696         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72697         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72698         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72699
72700 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72701
72702         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72703         args, not 2.
72704
72705 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72706
72707         New module 'time', so that apps can include <time.h> as per
72708         POSIX and GNU instead of separate include files like time_r.h
72709         and timegm.h.  This implementation tries out a simpler approach
72710         for replacing decls in standard include files (as compared to
72711         the string module), somewhat as an experiment.
72712
72713         * config/srclist.txt: Comment out mktime.c for now.
72714         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72715         since it doesn't apply any more.  Use generic wording instead.
72716         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72717         'time'.
72718         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72719         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72720         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72721         Don't include <sys/types.h>; no longer needed since we assume C89.
72722         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72723         * lib/strftime.c: Likewise.
72724         * lib/time_r.c: Likewise.
72725         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72726         * lib/nanosleep.c: Include <time.h> first, to check interface.
72727         * lib/strptime.c: Likewise.
72728         * lib/time_r.c: Likewise.
72729         * lib/timegm.c: Likewise.
72730         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72731         needed.
72732         * lib/timegm.c: Don't include timegm.h; no longer needed.
72733         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72734         time.h now handles any problems in that area.
72735         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72736         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72737         that time.h defines struct timespec.
72738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72739         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72740         handles that.
72741         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72742         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72743         needed.  Set REPLACE_LOCALTIME.
72744         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72745         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72746         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72747         nanosleep; time_h.m4 now does that.  Don't require
72748         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72749         module handles this now.
72750         * modules/getdate (Depends-on): Remove timespec.  Add time.
72751         * modules/nanosleep (Depends-on): Likewise.
72752         * modules/stat-time (Depends-on): Likewise.
72753         * modules/nanosleep (Include): Include time.h, not timespec.h.
72754         * modules/strptime (Files): Remove lib/strptime.h.
72755         (Depends-on): Add extensions, time.
72756         (Include): Include time.h, not strptime.h.
72757         * modules/time_r (Files): Remove lib/time_r.h.
72758         (Depends-on): Add time.
72759         (Include): Include time.h, not time_r.h.
72760         * modules/timegm: Likewise.
72761         * modules/timespec (Description): Now does timespec-related decls
72762         of our own, instead of struct timespec itself.
72763         (Depends-on): Add time; remove extensions.
72764         (Maintainer): Add self.
72765         * modules/utimecmp (Depends-on): Add time; remove timespec.
72766         * modules/utimens (Depends-on): Likewise.
72767         * modules/xnanosleep (Depends-on): Likewise.
72768
72769 2007-02-11  Bruno Haible  <bruno@clisp.org>
72770
72771         * lib/c-strstr.c: Include allocsa.h.
72772         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72773         * lib/c-strcasestr.c: Include allocsa.h.
72774         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72775         * lib/strcasestr.c: Include allocsa.h.
72776         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72777         * lib/mbsstr.c: Include allocsa.h.
72778         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72779         allocsa/freesa instead of malloc/free.
72780         * lib/mbscasestr.c: Include allocsa.h.
72781         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72782         allocsa/freesa instead of malloc/free.
72783         * modules/c-strstr (Depends-on): Add allocsa.
72784         * modules/c-strcasestr (Depends-on): Likewise.
72785         * modules/strcasestr (Depends-on): Likewise.
72786         * modules/mbsstr (Depends-on): Likewise.
72787         * modules/mbscasestr (Depends-on): Likewise.
72788
72789 2007-02-11  Bruno Haible  <bruno@clisp.org>
72790
72791         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72792
72793         * modules/mbsspn-tests: New file.
72794         * tests/test-mbsspn.sh: New file.
72795         * tests/test-mbsspn.c: New file.
72796
72797 2007-02-11  Bruno Haible  <bruno@clisp.org>
72798
72799         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72800
72801         * modules/mbspbrk-tests: New file.
72802         * tests/test-mbspbrk.sh: New file.
72803         * tests/test-mbspbrk.c: New file.
72804
72805 2007-02-11  Bruno Haible  <bruno@clisp.org>
72806
72807         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72808         unneeded cast.
72809
72810         * modules/mbscspn-tests: New file.
72811         * tests/test-mbscspn.sh: New file.
72812         * tests/test-mbscspn.c: New file.
72813
72814 2007-02-11  Bruno Haible  <bruno@clisp.org>
72815
72816         * modules/mbscasecmp-tests: New file.
72817         * tests/test-mbscasecmp.sh: New file.
72818         * tests/test-mbscasecmp.c: New file.
72819
72820 2007-02-11  Bruno Haible  <bruno@clisp.org>
72821
72822         Ensure O(n) worst-case complexity of mbscasestr.
72823         * lib/mbscasestr.c: Include stdbool.h.
72824         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72825         functions.
72826         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72827         the bookkeeping indicates that it's worth it.
72828         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72829
72830         * modules/mbscasestr-tests: New file.
72831         * tests/test-mbscasestr1.c: New file.
72832         * tests/test-mbscasestr2.sh: New file.
72833         * tests/test-mbscasestr2.c: New file.
72834         * tests/test-mbscasestr3.sh: New file.
72835         * tests/test-mbscasestr3.c: New file.
72836         * tests/test-mbscasestr4.sh: New file.
72837         * tests/test-mbscasestr4.c: New file.
72838         * m4/locale-tr.m4: New file.
72839
72840 2007-02-11  Bruno Haible  <bruno@clisp.org>
72841
72842         Ensure O(n) worst-case complexity of mbsstr.
72843         * lib/mbsstr.c: Include stdbool.h.
72844         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72845         functions.
72846         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72847         bookkeeping indicates that it's worth it.
72848         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72849
72850         * modules/mbsstr-tests: New file.
72851         * tests/test-mbsstr1.c: New file.
72852         * tests/test-mbsstr2.sh: New file.
72853         * tests/test-mbsstr2.c: New file.
72854         * tests/test-mbsstr3.sh: New file.
72855         * tests/test-mbsstr3.c: New file.
72856         * m4/locale-fr.m4: New file.
72857
72858 2007-02-11  Bruno Haible  <bruno@clisp.org>
72859
72860         * lib/mbsrchr.c (mbsrchr): Fix bug.
72861
72862         * modules/mbsrchr-tests: New file.
72863         * tests/test-mbsrchr.sh: New file.
72864         * tests/test-mbsrchr.c: New file.
72865
72866 2007-02-11  Bruno Haible  <bruno@clisp.org>
72867
72868         * lib/mbschr.c (mbschr): Fix bug.
72869
72870         * modules/mbschr-tests: New file.
72871         * tests/test-mbschr.sh: New file.
72872         * tests/test-mbschr.c: New file.
72873         * m4/locale-zh.m4: New file.
72874
72875 2007-02-11  Bruno Haible  <bruno@clisp.org>
72876
72877         Support for copying multibyte string iterators.
72878         * lib/mbiter.h: Include <string.h>.
72879         (mbiter_multi_copy): New function.
72880         (mbi_copy): New macro.
72881         * lib/mbuiter.h: Include <string.h>.
72882         (mbuiter_multi_copy): New function.
72883         (mbui_copy): New macro.
72884
72885 2007-02-11  Bruno Haible  <bruno@clisp.org>
72886
72887         New module mbslen.
72888         * modules/mbslen: New file.
72889         * lib/mbslen.c: New file.
72890         * lib/string_.h (mbslen): New declaration.
72891         * m4/mbslen.m4: New file.
72892         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72893         GNULIB_MBSLEN.
72894         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72895         * MODULES.html.sh (Internationalization functions): Add mbslen.
72896
72897 2007-02-11  Bruno Haible  <bruno@clisp.org>
72898
72899         Ensure O(n) worst-case complexity of strcasestr substitute.
72900         * lib/strcasestr.c: Include stdbool.h.
72901         (knuth_morris_pratt): New function.
72902         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72903         bookkeeping indicates that it's worth it.
72904         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72905
72906         * modules/strcasestr-tests: New file.
72907         * tests/test-strcasestr.c: New file.
72908
72909 2007-02-11  Bruno Haible  <bruno@clisp.org>
72910
72911         Ensure O(n) worst-case complexity of c_strcasestr.
72912         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72913         (knuth_morris_pratt): New function.
72914         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72915         the bookkeeping indicates that it's worth it.
72916         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72917
72918         * modules/c-strcasestr-tests: New file.
72919         * tests/test-c-strcasestr.c: New file.
72920
72921 2007-02-11  Bruno Haible  <bruno@clisp.org>
72922
72923         Ensure O(n) worst-case complexity of c_strstr.
72924         * lib/c-strstr.c: Include stdbool.h, string.h.
72925         (knuth_morris_pratt): New function.
72926         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72927         bookkeeping indicates that it's worth it.
72928         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72929
72930         * lib/c-strstr.c: Complete rewrite for maintainability.
72931
72932         * modules/c-strstr-tests: New file.
72933         * tests/test-c-strstr.c: New file.
72934
72935 2007-02-11  Bruno Haible  <bruno@clisp.org>
72936
72937         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72938         5.2.1 and earlier, whereby \055 was treated just like the range
72939         delimiter '-'.
72940         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72941
72942 2007-02-08  Bruno Haible  <bruno@clisp.org>
72943
72944         * modules/regex (Depends-on): Add stdbool.
72945         Reported by Dalibor Topic <robilad@kaffe.org>.
72946
72947 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72948
72949         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72950         Prefer returning from main to exiting from it.
72951         Remove unnecessary parens after sizeof.
72952
72953 2007-02-05  Bruno Haible  <bruno@clisp.org>
72954
72955         New module mbssep.
72956         * modules/mbssep: New file.
72957         * lib/mbssep.c: New file.
72958         * lib/string_.h (strsep): Add a conditional link warning.
72959         (mbssep): New declaration.
72960         * m4/mbssep.m4: New file.
72961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72962         GNULIB_MBSSEP.
72963         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72964         * MODULES.html.sh (Internationalization functions): Add mbssep.
72965
72966 2007-02-05  Bruno Haible  <bruno@clisp.org>
72967
72968         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72969         Optimize search in case of 1 delimiter.
72970
72971 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72972
72973         * lib/acl.h: Include sys/types.h before sys/acl.h.
72974
72975 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72976
72977         Merge upstream fix for glibc bugzilla #3957:
72978
72979         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72980
72981         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72982         bit for RE_HAT_LISTS_NOT_NEWLINE.
72983         (build_charclass_op): Remove bogus comment.
72984
72985 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72986
72987         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72988
72989 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72990
72991         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72992         * lib/memmem.c [!defined _LIBC]: Include config.h.
72993
72994 2007-02-04  Bruno Haible  <bruno@clisp.org>
72995
72996         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72997         warning message.
72998
72999 2007-02-04  Bruno Haible  <bruno@clisp.org>
73000
73001         New module mbstok_r.
73002         * modules/mbstok_r: New file.
73003         * lib/mbstok_r.c: New file.
73004         * lib/string_.h (strtok_r): Change argument names to match the
73005         comments. Add a conditional link warning.
73006         (mbstok_r): New declaration.
73007         * m4/mbstok_r.m4: New file.
73008         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73009         GNULIB_MBSTOK_R.
73010         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73011         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73012
73013 2007-02-04  Bruno Haible  <bruno@clisp.org>
73014
73015         New module mbsspn.
73016         * modules/mbsspn: New file.
73017         * lib/mbsspn.c: New file.
73018         * lib/string_.h (strspn): Add a conditional link warning.
73019         (mbsspn): New declaration.
73020         * m4/mbsspn.m4: New file.
73021         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73022         GNULIB_MBSSPN.
73023         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73024         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73025
73026 2007-02-04  Bruno Haible  <bruno@clisp.org>
73027
73028         New module mbspbrk.
73029         * modules/mbspbrk: New file.
73030         * lib/mbspbrk.c: New file.
73031         * lib/string_.h (strpbrk): Add a conditional link warning.
73032         (mbspbrk): New declaration.
73033         * m4/mbspbrk.m4: New file.
73034         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73035         GNULIB_MBSPBRK.
73036         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73037         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73038
73039 2007-02-04  Bruno Haible  <bruno@clisp.org>
73040
73041         New module mbscspn.
73042         * modules/mbscspn: New file.
73043         * lib/mbscspn.c: New file.
73044         * lib/string_.h (strcspn): Add a conditional link warning.
73045         (mbscspn): New declaration.
73046         * m4/mbscspn.m4: New file.
73047         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73048         GNULIB_MBSCSPN.
73049         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73050         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73051
73052 2007-02-04  Bruno Haible  <bruno@clisp.org>
73053
73054         New module mbscasestr, reduced goal of strcasestr.
73055         * modules/mbscasestr: New file.
73056         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73057         (mbscasestr): Renamed from strcasestr.
73058         * lib/strcasestr.c: Don't include mbuiter.h.
73059         (strcasestr): Remove support for multibyte locales.
73060         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73061         Change the conditional link warning.
73062         (mbscasestr): New declaration.
73063         * m4/mbscasestr.m4: New file.
73064         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73065         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73066         REPLACE_STRCASESTR.
73067         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73069         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73070         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73071         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73072         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73073         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73074         (Depends-on): Remove mbuiter.
73075         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73076
73077 2007-02-04  Bruno Haible  <bruno@clisp.org>
73078
73079         Simplify handling of strncasecmp.
73080         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73081         the conditional link warning.
73082         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73083         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73084         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73085         * modules/strcase (configure.ac): Don't invoke
73086         gl_STRING_MODULE_INDICATOR.
73087         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73088
73089 2007-02-04  Bruno Haible  <bruno@clisp.org>
73090
73091         New module mbscasecmp, reduced goal of strcasecmp.
73092         * modules/mbscasecmp: New file.
73093         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73094         (mbscasecmp): Renamed from strcasecmp.
73095         * lib/strcasecmp.c: Don't include mbuiter.h.
73096         (strcasecmp): Remove support for multibyte locales.
73097         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73098         Change the conditional link warning.
73099         (mbscasecmp): New declaration.
73100         * m4/mbscasecmp.m4: New file.
73101         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73102         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73103         REPLACE_STRCASECMP.
73104         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73106         GNULIB_MBSCASECMP.
73107         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73108         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73109         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73110         (Depends-on): Remove mbuiter.
73111         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73112
73113 2007-02-04  Bruno Haible  <bruno@clisp.org>
73114
73115         New module mbsstr. Remove module strstr.
73116         * modules/mbsstr: New file.
73117         * modules/strstr: Remove file.
73118         * lib/mbsstr.c: Renamed from lib/strstr.c.
73119         (mbsstr): Renamed from strstr.
73120         * lib/string_.h (strstr): Remove declaration. Change the conditional
73121         link warning.
73122         (mbsstr): New declaration.
73123         * m4/mbsstr.m4: New file.
73124         * m4/strstr.m4: Remove file.
73125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73126         REPLACE_STRSTR.
73127         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73128         Don't initialize GNULIB_STRSTR.
73129         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73130         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73131         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73132         (Support for systems lacking ANSI C 89): Remove strstr.
73133
73134 2007-02-04  Bruno Haible  <bruno@clisp.org>
73135
73136         New module mbsrchr.
73137         * modules/mbsrchr: New file.
73138         * lib/mbsrchr.c: New file.
73139         * lib/string_.h (strrchr): Add a conditional link warning.
73140         (mbsrchr): New declaration.
73141         * m4/mbsrchr.m4: New file.
73142         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73143         GNULIB_MBSRCHR.
73144         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73145         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73146
73147 2007-02-04  Bruno Haible  <bruno@clisp.org>
73148
73149         New module mbschr.
73150         * modules/mbschr: New file.
73151         * lib/mbschr.c: New file.
73152         * lib/string_.h (strchr): Add a conditional link warning.
73153         (mbschr): New declaration.
73154         * m4/mbschr.m4: New file.
73155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73156         GNULIB_MBSCHR.
73157         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73158         * MODULES.html.sh (Internationalization functions): Add mbschr.
73159
73160 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73163
73164         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73165
73166 2007-02-04  Bruno Haible  <bruno@clisp.org>
73167
73168         New module description section 'configure.ac-early'.
73169         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73170         (func_get_autoconf_early_snippet): New function.
73171         (func_import, func_create_testdir): Use it. Remove special cases for
73172         modules 'extensions' and 'lock'.
73173         * modules/extensions (configure.ac-early): Require
73174         gl_USE_SYSTEM_EXTENSIONS.
73175         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73176
73177 2007-02-04  Bruno Haible  <bruno@clisp.org>
73178
73179         Make use of gcj-4.3's -fsource and -ftarget option.
73180         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73181         and if so try the options -fsource and -ftarget.
73182         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73183         source_version, ftarget_option, target_version arguments.
73184         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73185         (is_envjavac_oldgcj_14_14_usable): Renamed from
73186         is_envjavac_gcj_14_14_usable.
73187         (is_envjavac_oldgcj_14_13_usable): Renamed from
73188         is_envjavac_gcj_14_13_usable.
73189         (is_gcj_present): Update.
73190         (is_gcj_43, is_gcj43_usable): New functions.
73191         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73192         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73193         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73194         try the options -fsource and -ftarget.
73195
73196 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73197
73198         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73199         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73200         larger value.
73201
73202 2007-02-03  Jim Meyering  <jim@meyering.net>
73203
73204         Give tools a better chance to allocate space for very large buffers.
73205         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73206
73207         Make pwd and readlink work also when run with an unreadable parent dir
73208         on systems with openat support.
73209         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73210         provided getcwd function, even when we have openat support.
73211         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73212
73213 2007-02-02  Bruno Haible  <bruno@clisp.org>
73214
73215         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73216         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73217         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73218         portability problems if one of these functions is only used on specific
73219         platforms.
73220         Reported by Paul Eggert.
73221
73222 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73223
73224         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73225         is causing more trouble than it's curing.
73226         * lib/regex_internal.h (__mempcpy): Remove.
73227         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73228         (and make the code a tad smaller to boot).
73229         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73230
73231 2007-02-02  Jim Meyering  <jim@meyering.net>
73232
73233         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73234         section, not in the Makefile.am: one.
73235
73236 2007-02-02  Eric Blake  <ebb9@byu.net>
73237
73238         * lib/strchrnul.c: Always include config.h first.
73239
73240         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73241         gnulib strstr is not necessary here.
73242
73243 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73244
73245         * m4/socklen.m4: Fix typo.
73246
73247 2007-02-02  Eric Blake  <ebb9@byu.net>
73248
73249         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73250         * modules/netinet_in (Makefile.am): Likewise.
73251
73252 2007-02-01  Bruno Haible  <bruno@clisp.org>
73253
73254         * lib/string_.h (GL_LINK_WARNING): New macro.
73255         (strcasecmp, strstr, strcasestr): If provided by the system,
73256         conditionally define as a macro that leads to a warning instead of to
73257         an error.
73258         (strncasecmp): Conditionally define as a macro that leads to a warning.
73259
73260 2007-02-01  Karl Berry  <karl@gnu.org>
73261
73262         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73263
73264 2007-02-01  Bruno Haible  <bruno@clisp.org>
73265
73266         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73267         renamings.
73268
73269 2007-02-01  Eric Blake  <ebb9@byu.net>
73270
73271         * modules/regex (Depends-on): Revert dependence on mempcpy.
73272         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73273         module's definition of mempcpy.
73274         Reported by Paul Eggert.
73275
73276 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73277
73278         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73279         the symbol XYZ before redefining it.  This fixes a problem with
73280         programs that don't use XYZ, when compiled on systems that define
73281         XYZ to something else.
73282
73283 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73286         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73287         writeable to group or other and (2) is intended to have a special
73288         mode bit that is set or cleared.  In such a case, the directory
73289         should be neither group- nor other-writeable until the special
73290         mode bits are right.
73291
73292 2007-01-31  Eric Blake  <ebb9@byu.net>
73293
73294         * modules/mountlist (Depends-on): Add strstr.
73295
73296         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73297         bug.
73298         * modules/string (Makefile.am): Remove redundant replacement.
73299         * modules/regex (Depends-on): Add mempcpy.
73300
73301 2007-01-31  Bruno Haible  <bruno@clisp.org>
73302
73303         New module description field 'Link'.
73304         * gnulib-tool (func_usage): Document --extract-link-directive.
73305         (sed_extract_prog): Recognize 'Link' directive.
73306         (func_get_link_directive): New function.
73307         (func_import): Show summary of link directives.
73308         Handle --extract-link-directive option.
73309         * modules/acl (Link): New section.
73310         * modules/clock-time (Link): New section.
73311         * modules/euidaccess (Link): New section.
73312         * modules/gettext (Link): New section.
73313         * modules/iconv (Link): New section.
73314         * modules/lock (Link): New section.
73315         * modules/nanosleep (Link): New section.
73316         * modules/readline (Link): New section.
73317
73318 2007-01-27  Bruno Haible  <bruno@clisp.org>
73319
73320         Enforce the use of gnulib modules for unportable <string.h> functions.
73321         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73322         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73323         (gl_HEADER_STRING_H_BODY): Require it.
73324         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73325         the symbol XYZ to one that gives a link error.
73326         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73327         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73328         * modules/mempcpy (configure.ac): Likewise.
73329         * modules/memrchr (configure.ac): Likewise.
73330         * modules/stpcpy (configure.ac): Likewise.
73331         * modules/stpncpy (configure.ac): Likewise.
73332         * modules/strcase (configure.ac): Likewise.
73333         * modules/strcasestr (configure.ac): Likewise.
73334         * modules/strchrnul (configure.ac): Likewise.
73335         * modules/strdup (configure.ac): Likewise.
73336         * modules/strndup (configure.ac): Likewise.
73337         * modules/strnlen (configure.ac): Likewise.
73338         * modules/strpbrk (configure.ac): Likewise.
73339         * modules/strsep (configure.ac): Likewise.
73340         * modules/strstr (configure.ac): Likewise.
73341         * modules/strtok_r (configure.ac): Likewise.
73342
73343 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73344
73345         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73346
73347 2007-01-30  Jim Meyering  <jim@meyering.net>
73348
73349         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73350
73351 2007-01-29  Bruno Haible  <bruno@clisp.org>
73352
73353         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73354         * lib/execute.c: Likewise.
73355         * lib/pipe.c: Likewise.
73356         * lib/printf-args.h: Likewise.
73357         * lib/printf-args.c: Likewise.
73358         * lib/printf-parse.c: Likewise.
73359         * lib/vasnprintf.c: Likewise.
73360
73361 2007-01-29  Eric Blake  <ebb9@byu.net>
73362
73363         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73364         declaration.
73365
73366 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73367
73368         * lib/strptime.h (strptime): Use 'restrict' for args where
73369         POSIX requires this.
73370         * lib/strptime.c (strptime): Likewise.
73371         Change license notice from LGPL to GPL, since gnulib-tool will
73372         change this as needed.
73373         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73374         defined.
73375         Include "strptime.h" first, to check interface.
73376         Do not #undef _LIBC and _NL_CURRENT.
73377         Do not include <stdlib.h>; no longer needed.
73378         Include "time_r.h" and declare ptime_locale_status
73379         only if _LIBC is not defined.
73380         (__P): Remove unused macro.
73381         (match_string): Bring back glibc version, but use it only if _LIBC
73382         is defined.
73383         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73384         Remove unnecessary assertion and abort() call.
73385         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73386         * m4/strptime.m4: Fix serial number comment.
73387         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73388         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73389         (Depends-on): Add time_r.
73390
73391 2007-01-29  Bruno Haible  <bruno@clisp.org>
73392
73393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73394         strptime.
73395         * modules/strptime (Depends-on): Add stdbool.
73396         * lib/strptime.h: Include <time.h> always. Add comments.
73397
73398 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73399
73400         * modules/strptime: New file.
73401         * lib/strptime.h: New file.
73402         * lib/strptime.c: New file.
73403         * m4/strptime.m4: New file.
73404
73405 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         * MODULES.html.sh: New module mpsort.
73408         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73409
73410         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73411         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73412         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73413         All uses changed.
73414         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73415         All uses changed.
73416         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73417         to _Restrict_.
73418         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73419         the parameter matches the prototype.
73420
73421 2007-01-28  Jim Meyering  <jim@meyering.net>
73422
73423         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73424         sys/time.h here, reverting that part of the previous patch:
73425         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73426
73427 2007-01-28  Bruno Haible  <bruno@clisp.org>
73428
73429         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73430         value of $(SYS_TIME_H).
73431         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73432         remove it conditionally, too. [added by Jim Meyering]
73433         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73434         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73435         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73436         GETTIMEOFDAY_REPLACEMENT to 1.
73437
73438 2007-01-28  Bruno Haible  <bruno@clisp.org>
73439
73440         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73441         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73442         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73443         Set UNISTD_H instead of UNISTD_H2.
73444         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73445
73446 2007-01-28  Bruno Haible  <bruno@clisp.org>
73447
73448         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73449         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73450
73451 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73452
73453         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73454         (func_create_testdir): Ensure C locale for `grep' and `tr'
73455         character ranges.
73456         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73457         ACLOCAL_AMFLAGS parsing state machine.
73458
73459 2007-01-27  Bruno Haible  <bruno@clisp.org>
73460
73461         * modules/unistr/base: Update.
73462
73463 2007-01-27  Bruno Haible  <bruno@clisp.org>
73464
73465         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73466         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73467         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73468         modules/unistr/u32-mbtouc.
73469         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73470         * lib/unistr.h: Update.
73471         * lib/linebreak.c: Update.
73472         * modules/unistr/u32-mbtouc: Renamed from
73473         modules/unistr/u32-mbtouc-safe.
73474         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73475         * lib/unistr.h: Update.
73476         * lib/unistr/u32-to-u8.c: Update.
73477         * lib/unistr/u32-to-u16.c: Update.
73478
73479 2007-01-27  Bruno Haible  <bruno@clisp.org>
73480
73481         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73482         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73483         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73484         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73485         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73486         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73487         modules/unistr/u16-mbtouc.
73488         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73489         * lib/unistr.h: Update.
73490         * lib/linebreak.c: Update.
73491         * modules/linebreak: Update.
73492         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73493         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73494         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73495         * modules/unistr/u16-mbtouc: Renamed from
73496         modules/unistr/u16-mbtouc-safe.
73497         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73498         * lib/unistr.h: Update.
73499         * lib/unistr/u16-to-u8.c: Update.
73500         * modules/unistr/u16-to-u8: Update.
73501         * lib/unistr/u16-to-u32.c: Update.
73502         * modules/unistr/u16-to-u32: Update.
73503
73504 2007-01-27  Bruno Haible  <bruno@clisp.org>
73505
73506         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73507         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73508         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73509         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73510         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73511         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73512         modules/unistr/u8-mbtouc.
73513         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73514         * lib/unistr.h: Update.
73515         * lib/striconveh.c: Update.
73516         * modules/striconveh: Update.
73517         * lib/linebreak.c: Update.
73518         * modules/linebreak: Update.
73519         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73520         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73521         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73522         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73523         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73524         * lib/unistr.h: Update.
73525         * lib/striconveh.c: Update.
73526         * modules/striconveh: Update.
73527         * lib/unistr/u8-to-u16.c: Update.
73528         * modules/unistr/u8-to-u16: Update.
73529         * lib/unistr/u8-to-u32.c: Update.
73530         * modules/unistr/u8-to-u32: Update.
73531
73532 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73533
73534         Sync from Libtool.
73535         * lib/argz.c: Do not include strings.h nor memory.h, include
73536         string.h unconditionally.  Patch by Simon Josefsson.
73537
73538 2007-01-27  Bruno Haible  <bruno@clisp.org>
73539
73540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73541         from gl_HEADER_STRING_H_BODY.
73542         (gl_HEADER_STRING_H_BODY): Require it.
73543         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73544         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73545         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73546         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73547         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73548         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73549         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73550         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73551         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73552         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73553         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73554         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73555         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73556         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73557         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73558
73559 2007-01-27  Bruno Haible  <bruno@clisp.org>
73560
73561         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73562         check_PROGRAMS into noinst_PROGRAMS.
73563         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73564         check_PROGRAMS in this case.
73565         (func_import): Set for_test to false.
73566         (func_create_testdir): Set for_test to true.
73567
73568 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73569             Bruno Haible  <bruno@clisp.org>
73570
73571         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73572         (Depends-on): Add string.
73573         (Includes): Use <string.h> instead of strcasestr.h.
73574         * modules/string (Makefile.am): Also substitute the value of
73575         REPLACE_STRCASESTR.
73576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73577         assume strcasestr is declared in <string.h> not <strings.h>. Also
73578         set REPLACE_STRCASESTR.
73579         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73580         REPLACE_STRCASESTR.
73581         * lib/strcasestr.h: Remove file.
73582         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73583         * lib/string_.h (strcasestr): New declaration.
73584
73585 2007-01-27  Bruno Haible  <bruno@clisp.org>
73586
73587         * lib/string_.h: Use 'extern'.
73588
73589 2007-01-27  Jim Meyering  <jim@meyering.net>
73590
73591         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73592         of set-but-not-used local, "q".
73593
73594         * lib/mempcpy.c: Include <config.h> before <string.h>.
73595         This fixes a compilation error on HP-UX, due to the system's
73596         "restrict"-using mempcpy prototype.
73597
73598 2007-01-26  Bruno Haible  <bruno@clisp.org>
73599
73600         Small optimization.
73601         * lib/javacomp.c: Include c-strstr.h.
73602          (is_envjavac_gcj): Use c_strstr instead of strstr.
73603         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73604
73605 2007-01-26  Bruno Haible  <bruno@clisp.org>
73606
73607         * MODULES.html.sh (Unicode string functions): Add the new modules.
73608
73609         * modules/uniconv/u32-strconv-to-locale: New file.
73610         * lib/uniconv/u32-strconv-to-locale.c: New file.
73611
73612         * modules/uniconv/u16-strconv-to-locale: New file.
73613         * lib/uniconv/u16-strconv-to-locale.c: New file.
73614
73615         * modules/uniconv/u8-strconv-to-locale: New file.
73616         * lib/uniconv/u8-strconv-to-locale.c: New file.
73617
73618         * modules/uniconv/u32-strconv-from-locale: New file.
73619         * lib/uniconv/u32-strconv-from-locale.c: New file.
73620
73621         * modules/uniconv/u16-strconv-from-locale: New file.
73622         * lib/uniconv/u16-strconv-from-locale.c: New file.
73623
73624         * modules/uniconv/u8-strconv-from-locale: New file.
73625         * lib/uniconv/u8-strconv-from-locale.c: New file.
73626
73627         * modules/uniconv/u32-strconv-to-enc: New file.
73628         * lib/uniconv/u32-strconv-to-enc.c: New file.
73629         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73630         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73631
73632         * modules/uniconv/u16-strconv-to-enc: New file.
73633         * lib/uniconv/u16-strconv-to-enc.c: New file.
73634         * lib/uniconv/u-strconv-to-enc.h: New file.
73635         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73636         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73637
73638         * modules/uniconv/u8-strconv-to-enc: New file.
73639         * lib/uniconv/u8-strconv-to-enc.c: New file.
73640         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73641         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73642
73643         * modules/uniconv/u32-strconv-from-enc: New file.
73644         * lib/uniconv/u32-strconv-from-enc.c: New file.
73645         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73646         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73647
73648         * modules/uniconv/u16-strconv-from-enc: New file.
73649         * lib/uniconv/u16-strconv-from-enc.c: New file.
73650         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73651         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73652
73653         * modules/uniconv/u8-strconv-from-enc: New file.
73654         * lib/uniconv/u8-strconv-from-enc.c: New file.
73655         * lib/uniconv/u-strconv-from-enc.h: New file.
73656         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73657         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73658
73659         * modules/uniconv/u32-conv-from-enc: New file.
73660         * lib/uniconv/u32-conv-from-enc.c: New file.
73661         * modules/uniconv/u32-conv-from-enc-tests: New file.
73662         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73663
73664         * modules/uniconv/u16-conv-from-enc: New file.
73665         * lib/uniconv/u16-conv-from-enc.c: New file.
73666         * lib/uniconv/u-conv-from-enc.h: New file.
73667         * modules/uniconv/u16-conv-from-enc-tests: New file.
73668         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73669
73670         * modules/uniconv/u8-conv-from-enc: New file.
73671         * lib/uniconv/u8-conv-from-enc.c: New file.
73672         * modules/uniconv/u8-conv-from-enc-tests: New file.
73673         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73674
73675         * modules/uniconv/base: New file.
73676         * lib/uniconv.h: New file.
73677
73678 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73679
73680         * doc/gnulib-tool.texi (Initial import): Update to match current
73681         behavior with strdup module.
73682         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73683         * lib/memmem.h: Remove; all uses removed.  This is now done
73684         by <string.h>.
73685         * lib/mempcpy.h: Likewise.
73686         * lib/memrchr.h: Likewise.
73687         * lib/stpcpy.h: Likewise.
73688         * lib/stpncpy.h: Likewise.
73689         * lib/strcase.h: Likewise.
73690         * lib/strchrnul.h: Likewise.
73691         * lib/strdup.h: Likewise.
73692         * lib/strndup.h: Likewise.
73693         * lib/strnlen.h: Likewise.
73694         * lib/strpbrk.h: Likewise.
73695         * lib/strsep.h: Likewise.
73696         * lib/strstr.h: Likewise.
73697         * lib/strtok_r.h: Likewise.
73698         * lib/string_.h: New file.
73699         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73700         Rely on <string.h> instead.
73701         * lib/canon-host.c: Likewise.
73702         * lib/chdir-long.c: Likewise.
73703         * lib/concatpath.c: Likewise.
73704         * lib/exclude.c: Likewise.
73705         * lib/fchdir.c: Likewise.
73706         * lib/getaddrinfo.c: Likewise.
73707         * lib/getcwd.c: Likewise.
73708         * lib/getsubopt.c: Likewise.
73709         * lib/glob.c: Likewise.
73710         * lib/hard-locale.c: Likewise.
73711         * lib/iconvme.c: Likewise.
73712         * lib/javacomp.c: Likewise.
73713         * lib/mempcpy.c: Likewise.
73714         * lib/memrchr.c: Likewise.
73715         * lib/regex_internal.h: Likewise.
73716         * lib/stpncpy.c: Likewise.
73717         * lib/strcasecmp.c: Likewise.
73718         * lib/strchrnul.c: Likewise.
73719         * lib/strdup.c: Likewise.
73720         * lib/striconv.c: Likewise.
73721         * lib/striconveh.c: Likewise.
73722         * lib/striconveha.c: Likewise.
73723         * lib/strncasecmp.c: Likewise.
73724         * lib/strndup.c: Likewise.
73725         * lib/strnlen.c: Likewise.
73726         * lib/strsep.c: Likewise.
73727         * lib/strstr.c: Likewise.
73728         * lib/strtok_r.c: Likewise.
73729         * lib/userspec.c: Likewise.
73730         * lib/w32spawn.h: Likewise.
73731         * lib/xstrndup.c: Likewise.
73732         * lib/mountlist.c (strstr): Remove decl.
73733         * m4/string_h.m4: New file.
73734         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73735         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73736         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73737         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73738         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73739         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73740         Set REPLACE_STRCASECMP if necessary.
73741         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73742         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73743         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73744         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73745         HAVE_DECL_STRDUP if necessary.
73746         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73747         since gl_FUNC_STRNDUP does that now.
73748         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73749         Check for decl here...
73750         (gl_PREREQ_STRNLEN): ... not here.
73751         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73752         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73753         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73754         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73755         necessary.
73756         * modules/string: New file.
73757         * modules/memmem (Files): Remove special-purpose include file.
73758         (Depends-on): Add string.
73759         (Include): Include <string.h>, not the removed file.
73760         * modules/mempcpy: Likewise.
73761         * modules/memrchr: Likewise.
73762         * modules/stpcpy: Likewise.
73763         * modules/stpncpy: Likewise.
73764         * modules/strcase: Likewise.
73765         * modules/strchrnul: Likewise.
73766         * modules/strdup: Likewise.
73767         * modules/strndup: Likewise.
73768         * modules/strnlen: Likewise.
73769         * modules/strpbrk: Likewise.
73770         * modules/strsep: Likewise.
73771         * modules/strstr: Likewise.
73772         * modules/strtok_r: Likewise.
73773         * tests/test-dirname.c: Don't include "strdup.h", since
73774         <string.h> now suffices.
73775         * tests/test-memmem.c: Don't include "memmem.h", since
73776         <string.h> now suffices.
73777
73778 2007-01-25  Bruno Haible  <bruno@clisp.org>
73779
73780         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73781         *resultp is 0.
73782
73783         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73784         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73785         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73786         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73787
73788         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73789         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73790         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73791         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73792         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73793         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73794
73795 2007-01-24  Bruno Haible  <bruno@clisp.org>
73796
73797         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73798         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73799         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73800         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73801         gl_FUNC_FTS_CORE.
73802         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73803         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73804         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73805         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73806         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73807         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73808         gl_FUNC_FCHOWNAT.
73809         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73810         gl_FUNC_STRFTIME.
73811         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73812         Reported by Ralf Wildenhues.
73813
73814 2007-01-24  Bruno Haible  <bruno@clisp.org>
73815
73816         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73817         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73818         gl_GETADDRINFO.
73819         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73820         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73821         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73822
73823 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73824
73825         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73826         Don't use 'exit'; just return from 'main'.
73827         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73828
73829         * lib/fnmatch_.h: Readjust white space and comments to match
73830         glibc, to avoid spurious diffs.
73831
73832 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73835         2004-12-01 change by Jakub Jelinek, since this code won't compile
73836         if !LIBC.  Problem reported by Bob Proulx.
73837
73838 2007-01-23  Bruno Haible  <bruno@clisp.org>
73839
73840         * lib/striconveh.c: Include c-strcaseeq.h.
73841         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73842         * modules/striconveh (Depends-on): Add c-strcaseeq.
73843
73844 2007-01-23  Bruno Haible  <bruno@clisp.org>
73845
73846         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73847
73848         * modules/c-strcaseeq: New file.
73849         * lib/c-strcaseeq.h: New file.
73850
73851         * modules/streq: New file.
73852         * lib/streq.h: New file.
73853
73854 2007-01-23  Bruno Haible  <bruno@clisp.org>
73855
73856         * modules/striconveha-tests: New file.
73857         * tests/test-striconveha.c: New file.
73858
73859         * lib/striconveha.h: Include <stdbool.h>.
73860         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73861         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73862         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73863         (mem_iconveha): New function.
73864         (str_iconveha_notranslit): Renamed from str_iconveha.
73865         (str_iconveha): New function.
73866         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73867         c-strcase.
73868
73869 2007-01-23  Bruno Haible  <bruno@clisp.org>
73870
73871         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73872         encodings without forgiving before trying any encoding with handler.
73873         (str_iconveha): Try all encodings without forgiving before trying any
73874         encoding with handler.
73875
73876 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73877
73878         Import the following changes from libc.
73879
73880         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73881
73882         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73883
73884         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73885
73886         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73887         normal_bracket label.
73888
73889         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73890
73891         [BZ #361]
73892         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73893         to normal_bracket after fetching the next character.
73894
73895 2007-01-22  Bruno Haible  <bruno@clisp.org>
73896
73897         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73898         argument.
73899         * lib/striconveh.c (iconv_carefully_1): New function.
73900         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73901         argument.
73902         (str_cd_iconveh): Update.
73903         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73904         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73905         * tests/test-striconveh.c (MAGIC): New macro.
73906         (new_offsets): New function.
73907         (main): Test call with and without offsets.
73908
73909 2007-01-22  Bruno Haible  <bruno@clisp.org>
73910
73911         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73912         * modules/sys_select (Makefile.am): Likewise.
73913         * modules/sys_socket (Makefile.am): Likewise.
73914         * modules/sys_time (Makefile.am): Likewise.
73915
73916 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73917
73918         * modules/gettimeofday (License): Change from GPL to LGPL, since
73919         gettimeofday is a library function.
73920
73921 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73922
73923         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73924
73925 2007-01-21  Bruno Haible  <bruno@clisp.org>
73926
73927         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73928
73929 2007-01-21  Bruno Haible  <bruno@clisp.org>
73930
73931         * modules/striconveha: New file.
73932         * lib/striconveha.h: New file.
73933         * lib/striconveha.c: New file.
73934         * MODULES.html.sh (Internationalization functions): Add striconveha.
73935         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73936         string.
73937         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73938
73939 2007-01-21  Bruno Haible  <bruno@clisp.org>
73940
73941         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73942         * lib/striconveh.c (str_iconveh): Likewise.
73943
73944 2007-01-21  Bruno Haible  <bruno@clisp.org>
73945
73946         * lib/striconveh.h (mem_iconveh): New declaration.
73947         * lib/striconveh.c (mem_iconveh): New function.
73948         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73949
73950 2007-01-21  Bruno Haible  <bruno@clisp.org>
73951
73952         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73953
73954         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73955         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73956         original result buffer.
73957         (str_cd_iconveh): Update.
73958         * tests/test-striconveh.c (main): Update.
73959
73960         * lib/striconv.h (mem_cd_iconv): Change specification.
73961         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73962         result buffer.
73963         (str_cd_iconv): Update.
73964         * tests/test-striconv.c (main): Update.
73965
73966 2007-01-21  Bruno Haible  <bruno@clisp.org>
73967
73968         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73969
73970 2007-01-20  Jim Meyering  <jim@meyering.net>
73971
73972         * lib/userspec.c (parse_with_separator): If a user or group string
73973         starts with "+", skip the corresponding name-to-ID look-up, since
73974         such a look-up must fail: user and group names may not include "+".
73975
73976 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73977
73978         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73979         since we now assume the sys_time module.
73980         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73981         check for sys/time.h; no longer needed.
73982         * modules/poll (Depends-on): Depend on sys_time.
73983
73984 2007-01-18  Bruno Haible  <bruno@clisp.org>
73985
73986         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73987         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73988
73989         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73990         gettimeofday.
73991
73992         * tests/test-gettimeofday.c: Include <time.h>.
73993         (dummy): Remove variable.
73994
73995         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73996         gl_HEADER_SYS_TIME_H.
73997         (gl_HEADER_SYS_TIME_H): New macro.
73998
73999         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74000         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74001         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74002         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74003         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74004         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74005         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74006         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74007         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74008         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74009         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74010
74011         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74012         last change; it caused a compilation error when cross-compiling to
74013         Cygwin.
74014
74015 2007-01-18  Jim Meyering  <jim@meyering.net>
74016
74017         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74018         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74019         than the race-prone "test -d sys || mkdir sys".
74020         (configure.ac): Use AC_PROG_MKDIR_P.
74021         * modules/sys_select: Likewise.
74022         * modules/sys_socket: Likewise.
74023         * modules/sys_time: Likewise.
74024
74025 2007-01-18  Eric Blake  <ebb9@byu.net>
74026
74027         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74028         replace gettimeofday.
74029         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74030         name, to avoid infinite recursion.
74031
74032 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74033
74034         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74035         module sys_time.
74036         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74037         assume timespec.h defines struct timeval.
74038         * lib/settime.c: Likewise.
74039         * lib/utimens.c: Likewise.
74040         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74041         since we now assume the gettimeofday module.
74042         * lib/tempname.c (__gen_tempname): Likewise.
74043         * lib/gettimeofday.h: Remove.
74044         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74045         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74046         Include <time.h>, for 'time()'.
74047         (localtime_buffer_addr): Also use this workaround if
74048         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74049         to simplify the uses.  All uses changed.
74050         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74051         that #undef is inside {}, and 'const' follows type name consistently.
74052         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74053         (gettimeofday): Do not use the maximum possible value for
74054         tv->tv_usec, since that might break usages other than ls.c.
74055         Instead, we'll leave ls.c alone.  This undoes today's patch
74056         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74057         we've never observed the problem but might as well keep the
74058         canary.
74059         * lib/nanosleep.c: Include timespec.h first, for interface check.
74060         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74061         now assume the sys_time module.
74062         * lib/tempname.c: Likewise.
74063         * lib/timespec.h: Likewise.
74064         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74065         needed.
74066         * lib/strftime.c: Likewise.
74067         * lib/timespec.h: Likewise.
74068         * lib/posixtm.c: Include posixtm.h first, for interface check.
74069         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74070         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74071         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74072         * lib/sys_time_.h: New file.
74073         * lib/timespec.h (struct timespec): Use long int, not long.
74074         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74075         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74076         Remove obsolescent call to AC_HEADER_TIME.
74077         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74078         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74079         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74080         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74081         Likewise.
74082         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74083         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74084         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74085         into the sys_time module.  Check for gettimeofday just once.
74086         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74087         for gettimeofday signature to just check the signature.  Merely
74088         compile it, since linking doesn't test signature.  Improve test for
74089         whether gettimeofday.o is actually needed.
74090         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74091         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74092         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74093         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74094         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74095         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74096         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74097         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74098         than worrying about sys/time.h.
74099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74100         Don't bother worrying about TIME_WITH_SYS_TIME.
74101         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74102         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74103         * m4/sys_time_h.m4: New file.
74104         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74105         Don't include sys/time.h.  Return from main rather than exiting.
74106         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74107         all uses changed.
74108         * modules/gethrxtime (Depends-on): Add sys_time.
74109         * modules/gettime (Depends-on): Likewise.
74110         * modules/gettimeofday (Depends-on): Likewise.
74111         * modules/nanosleep (Depends-on): Likewise.
74112         * modules/settime (Depends-on): Likewise.
74113         * modules/tempname (Depends-on): Likewise.
74114         * modules/utimens (Depends-on): Likewise.
74115         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74116         (Include): Change back to <sys/time.h>.
74117         (Maintainer): Add self.
74118         * modules/sys_time: New file.
74119         * modules/tempname (Depends-on): Add gettimeofday.
74120         * tests/test-gettimeofday.c: Include <sys/time.h>
74121         rather than gettimeofday.h.
74122
74123 2007-01-17  Bruno Haible  <bruno@clisp.org>
74124
74125         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74126         the license default to GPL.
74127         (func_create_testdir): Don't complain if a module is LGPL and its
74128         tests module depends on GPLed modules.
74129
74130 2007-01-17  Bruno Haible  <bruno@clisp.org>
74131
74132         * lib/gettimeofday.c (gettimeofday): Add code for the case
74133         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74134         maximum possible value for tv->tv_usec, rather than the minimum one.
74135
74136 2005-10-08  Martin Lambers  <marlam@marlam.de>
74137 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74138 2007-01-16  Bruno Haible  <bruno@clisp.org>
74139
74140         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74141         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74142         gl_FUNC_GETTIMEOFDAY.
74143         (Include): Add gettimeofday.h.
74144         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74145         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74146         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74147         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74148         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74149         * lib/gettimeofday.h: New file.
74150         * lib/gettimeofday.c: Include <sys/timeb.h>.
74151         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74152         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74153         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74154         fall back on time().
74155
74156         * tests/test-gettimeofday.c: New file.
74157         * modules/gettimeofday-tests: New file.
74158
74159 2007-01-16  Eric Blake  <ebb9@byu.net>
74160
74161         * modules/fnmatch (Depends-on): Depend on wchar.
74162         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74163         * m4/fnmatch.m4: Likewise.
74164         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74165         * m4/mbchar.m4: Likewise.
74166         * modules/mbswidth (Depends-on): Depend on wchar.
74167         * lib/mbswidth.c: Assume <wchar.h>.
74168         * m4/mbswidth.m4: Likewise.
74169         * modules/quotearg (Depends-on): Depend on wchar.
74170         * lib/quotearg.c: Assume <wchar.h>.
74171         * m4/quotearg.m4: Likewise.
74172         * modules/regex (Depends-on): Depend on wchar.
74173         * lib/regex_internal.h: Assume <wchar.h>.
74174         * m4/regex.m4: Likewise.
74175         * modules/stdint (Depends-on): Depend on wchar.
74176         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74177         * m4/stdint.m4: Likewise.
74178         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74179         * modules/strftime (Depends-on): Depend on wchar.
74180         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74181         * modules/strtol (Depends-on): Depend on wchar.
74182         * lib/strtol.c: Assume <wchar.h>.
74183         * modules/wcwidth (Depends-on): Depend on wchar.
74184         * lib/wcwidth.h: Assume <wchar.h>.
74185         * m4/wcwidth.m4: Likewise.
74186
74187 2007-01-16  Bruno Haible  <bruno@clisp.org>
74188
74189         * modules/csharpexec-script: New, created from...
74190         * modules/csharpexec: ... this.
74191
74192 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74193
74194         * modules/javaexec-script: New, created from...
74195         * modules/javaexec: ... this.
74196
74197 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74198
74199         * modules/poll (Dependencies): Add sys_select.
74200
74201 2007-01-15  Jim Meyering  <jim@meyering.net>
74202
74203         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74204         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74205         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74206         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74207
74208 2007-01-15  Bruno Haible  <bruno@clisp.org>
74209
74210         * modules/striconveh: New file.
74211         * lib/striconveh.h: New file.
74212         * lib/striconveh.c: New file.
74213         * MODULES.html.sh (Internationalization functions): Add striconveh.
74214
74215         * modules/striconveh-tests: New file.
74216         * tests/test-striconveh.c: New file.
74217
74218 2007-01-15  Bruno Haible  <bruno@clisp.org>
74219
74220         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74221         not from GNU libiconv or GNU libc.
74222
74223 2007-01-15  Bruno Haible  <bruno@clisp.org>
74224
74225         * doc/gnulib-intro.texi (Copyright): Explain the different license
74226         terms for module descriptions, autoconf macros, tests, documentation.
74227
74228 2007-01-14  Bruno Haible  <bruno@clisp.org>
74229
74230         * modules/striconv-tests: New file.
74231         * tests/test-striconv.c: New file.
74232
74233 2007-01-14  Bruno Haible  <bruno@clisp.org>
74234
74235         * modules/iconv-tests: New file.
74236         * tests/test-iconv.c: New file.
74237
74238 2007-01-14  Bruno Haible  <bruno@clisp.org>
74239
74240         * gnulib-tool (func_get_license): For test modules, use the license of
74241         the main module.
74242
74243 2007-01-14  Bruno Haible  <bruno@clisp.org>
74244
74245         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74246         if iconv is found to exist.
74247
74248 2007-01-14  Bruno Haible  <bruno@clisp.org>
74249
74250         * modules/c-ctype-tests: New file.
74251         * tests/test-c-ctype.c: New file.
74252
74253 2007-01-14  Bruno Haible  <bruno@clisp.org>
74254
74255         * modules/binary-io-tests: New file.
74256         * tests/test-binary-io.sh: New file.
74257         * tests/test-binary-io.c: New file.
74258
74259 2007-01-14  Bruno Haible  <bruno@clisp.org>
74260
74261         * modules/array-oset-tests: New file.
74262         * tests/test-array_oset.c: New file.
74263
74264 2007-01-14  Bruno Haible  <bruno@clisp.org>
74265
74266         * modules/array-list-tests: New file.
74267         * tests/test-array_list.c: New file.
74268
74269 2007-01-14  Bruno Haible  <bruno@clisp.org>
74270
74271         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74272         and make.
74273         Reported by Simon Josefsson in
74274         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74275
74276 2007-01-14  Bruno Haible  <bruno@clisp.org>
74277
74278         * modules/allocsa-tests: New file.
74279         * tests/test-allocsa.c: New file.
74280
74281 2007-01-14  Bruno Haible  <bruno@clisp.org>
74282
74283         * modules/fchdir (Depends-on): Add absolute-header.
74284         * modules/unistd (Depends-on): Likewise.
74285
74286 2006-12-30  Bruno Haible  <bruno@clisp.org>
74287
74288         * modules/fchdir: New file.
74289         * modules/unistd (Files): Add lib/unistd_.h.
74290         (Makefile.am): Generate unistd.h from unistd_.h.
74291         * lib/fchdir.c: New file.
74292         * lib/dirent_.h: New file.
74293         * lib/unistd_.h: New file.
74294         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74295         * m4/fchdir.m4: New file.
74296         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74297         (gl_HEADER_UNISTD): Invoke it.
74298         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74299         function.
74300         * lib/backupfile.c (opendir, closedir): Undefine.
74301         * lib/chown.c (open, close): Undefine.
74302         * lib/clean-temp.c (open, close): Undefine.
74303         * lib/copy-file.c (open, close): Undefine.
74304         * lib/execute.c (open, close): Undefine.
74305         * lib/fsusage.c (open, close): Undefine.
74306         * lib/gc-gnulib.c (open, close): Undefine.
74307         * lib/getcwd.c (opendir, closedir): Undefine.
74308         * lib/glob.c (opendir, closedir): Undefine.
74309         * lib/javacomp.c (open, close): Undefine.
74310         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74311         * lib/openat-proc.c (open, close): Undefine.
74312         * lib/pagealign_alloc.c (open, close): Undefine.
74313         * lib/pipe.c (open, close): Undefine.
74314         * lib/progreloc.c (open, close): Undefine.
74315         * lib/savedir.c (opendir, closedir): Undefine.
74316         * lib/utime.c (open, close): Undefine.
74317         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74318
74319 2007-01-10  Bruno Haible  <bruno@clisp.org>
74320
74321         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74322
74323 2007-01-12  Eric Blake  <ebb9@byu.net>
74324
74325         Provide a robust <wchar.h>.  Further simplifications are now
74326         possible in other modules, but not included here.
74327         * modules/wchar: New module.
74328         * m4/wchar.m4: New file.
74329         * lib/wchar_.h: Likewise.
74330         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74331         of the new module.
74332         * MODULES.html.sh (Extended multibyte and wide character utilities):
74333         New section.
74334
74335 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74336
74337         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74338         to a reasonable default for memory allocation.
74339         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74340         file system that reports garbage st_size values for symlinks.
74341         Problem reported by Liyang Hu.
74342
74343 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74344
74345         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74346         Emacs .#* auto-save files).
74347
74348 2007-01-11  Bruno Haible  <bruno@clisp.org>
74349
74350         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74351         directory.
74352
74353 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74354
74355         Use @...@ consistently in lib/wctype_.h.
74356         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74357         on it being set to 1 or 0.
74358         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74359         go back to AC_SUBSTing it.
74360         * modules/wctype (Makefile.am): Undo previous change.
74361
74362 2007-01-10  Eric Blake  <ebb9@byu.net>
74363
74364         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74365         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74366         * modules/wctype (Makefile.am): Likewise.
74367         Reported by Chris McGuire.
74368
74369 2007-01-10  Jim Meyering  <jim@meyering.net>
74370
74371         fts.c: a small readability/maintainability improvement
74372         * lib/fts.c (fts_read): Make this code slightly more readable and
74373         maintainable by hoisting the "sp->fts_cur = p" assignments to
74374         immediately follow the statements that set P.  Derived from
74375         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74376
74377 2007-01-10  Eric Blake  <ebb9@byu.net>
74378
74379         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74380         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74382         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74383         Reported by Chris McGuire.
74384
74385 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74386
74387         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74388         in sed script.
74389
74390 2007-01-09  Bruno Haible  <bruno@clisp.org>
74391
74392         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74393         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74394         variables.
74395         (func_module): Use them.
74396
74397 2007-01-09  Bruno Haible  <bruno@clisp.org>
74398
74399         * modules/unistr/base: New file.
74400         * lib/unistr.h: New file.
74401
74402         * modules/unistr/u8-to-u16: New file.
74403         * lib/unistr/u8-to-u16.c: New file.
74404
74405         * modules/unistr/u8-to-u32: New file.
74406         * lib/unistr/u8-to-u32.c: New file.
74407
74408         * modules/unistr/u16-to-u8: New file.
74409         * lib/unistr/u16-to-u8.c: New file.
74410
74411         * modules/unistr/u16-to-u32: New file.
74412         * lib/unistr/u16-to-u32.c: New file.
74413
74414         * modules/unistr/u32-to-u8: New file.
74415         * lib/unistr/u32-to-u8.c: New file.
74416
74417         * modules/unistr/u32-to-u16: New file.
74418         * lib/unistr/u32-to-u16.c: New file.
74419
74420         * modules/unistr/u8-check: New file.
74421         * modules/unistr/u16-check: New file.
74422         * modules/unistr/u32-check: New file.
74423         * lib/unistr/u8-check.c: New file.
74424         * lib/unistr/u16-check.c: New file.
74425         * lib/unistr/u32-check.c: New file.
74426
74427         * modules/unistr/u8-chr: New file.
74428         * modules/unistr/u16-chr: New file.
74429         * modules/unistr/u32-chr: New file.
74430         * lib/unistr/u8-chr.c: New file.
74431         * lib/unistr/u16-chr.c: New file.
74432         * lib/unistr/u32-chr.c: New file.
74433
74434         * modules/unistr/u8-cmp: New file.
74435         * modules/unistr/u16-cmp: New file.
74436         * modules/unistr/u32-cmp: New file.
74437         * lib/unistr/u8-cmp.c: New file.
74438         * lib/unistr/u16-cmp.c: New file.
74439         * lib/unistr/u32-cmp.c: New file.
74440
74441         * modules/unistr/u8-cpy: New file.
74442         * modules/unistr/u16-cpy: New file.
74443         * modules/unistr/u32-cpy: New file.
74444         * lib/unistr/u8-cpy.c: New file.
74445         * lib/unistr/u16-cpy.c: New file.
74446         * lib/unistr/u32-cpy.c: New file.
74447         * lib/unistr/u-cpy.h: New file.
74448
74449         * modules/unistr/u8-cpy-alloc: New file.
74450         * modules/unistr/u16-cpy-alloc: New file.
74451         * modules/unistr/u32-cpy-alloc: New file.
74452         * lib/unistr/u8-cpy-alloc.c: New file.
74453         * lib/unistr/u16-cpy-alloc.c: New file.
74454         * lib/unistr/u32-cpy-alloc.c: New file.
74455         * lib/unistr/u-cpy-alloc.h: New file.
74456
74457         * modules/unistr/u8-endswith: New file.
74458         * modules/unistr/u16-endswith: New file.
74459         * modules/unistr/u32-endswith: New file.
74460         * lib/unistr/u8-endswith.c: New file.
74461         * lib/unistr/u16-endswith.c: New file.
74462         * lib/unistr/u32-endswith.c: New file.
74463         * lib/unistr/u-endswith.h: New file.
74464
74465         * modules/unistr/u8-mblen: New file.
74466         * modules/unistr/u16-mblen: New file.
74467         * modules/unistr/u32-mblen: New file.
74468         * lib/unistr/u8-mblen.c: New file.
74469         * lib/unistr/u16-mblen.c: New file.
74470         * lib/unistr/u32-mblen.c: New file.
74471
74472         * modules/unistr/u8-mbtouc: New file.
74473         * modules/unistr/u16-mbtouc: New file.
74474         * modules/unistr/u32-mbtouc: New file.
74475         * lib/unistr/u8-mbtouc.c: New file.
74476         * lib/unistr/u16-mbtouc.c: New file.
74477         * lib/unistr/u32-mbtouc.c: New file.
74478
74479         * modules/unistr/u8-mbtouc-safe: New file.
74480         * modules/unistr/u16-mbtouc-safe: New file.
74481         * modules/unistr/u32-mbtouc-safe: New file.
74482         * lib/unistr/u8-mbtouc-safe.c: New file.
74483         * lib/unistr/u16-mbtouc-safe.c: New file.
74484         * lib/unistr/u32-mbtouc-safe.c: New file.
74485
74486         * modules/unistr/u8-move: New file.
74487         * modules/unistr/u16-move: New file.
74488         * modules/unistr/u32-move: New file.
74489         * lib/unistr/u8-move.c: New file.
74490         * lib/unistr/u16-move.c: New file.
74491         * lib/unistr/u32-move.c: New file.
74492         * lib/unistr/u-move.h: New file.
74493
74494         * modules/unistr/u8-next: New file.
74495         * modules/unistr/u16-next: New file.
74496         * modules/unistr/u32-next: New file.
74497         * lib/unistr/u8-next.c: New file.
74498         * lib/unistr/u16-next.c: New file.
74499         * lib/unistr/u32-next.c: New file.
74500
74501         * modules/unistr/u8-prev: New file.
74502         * modules/unistr/u16-prev: New file.
74503         * modules/unistr/u32-prev: New file.
74504         * lib/unistr/u8-prev.c: New file.
74505         * lib/unistr/u16-prev.c: New file.
74506         * lib/unistr/u32-prev.c: New file.
74507
74508         * modules/unistr/u8-set: New file.
74509         * modules/unistr/u16-set: New file.
74510         * modules/unistr/u32-set: New file.
74511         * lib/unistr/u8-set.c: New file.
74512         * lib/unistr/u16-set.c: New file.
74513         * lib/unistr/u32-set.c: New file.
74514         * lib/unistr/u-set.h: New file.
74515
74516         * modules/unistr/u8-startswith: New file.
74517         * modules/unistr/u16-startswith: New file.
74518         * modules/unistr/u32-startswith: New file.
74519         * lib/unistr/u8-startswith.c: New file.
74520         * lib/unistr/u16-startswith.c: New file.
74521         * lib/unistr/u32-startswith.c: New file.
74522         * lib/unistr/u-startswith.h: New file.
74523
74524         * modules/unistr/u8-stpcpy: New file.
74525         * modules/unistr/u16-stpcpy: New file.
74526         * modules/unistr/u32-stpcpy: New file.
74527         * lib/unistr/u8-stpcpy.c: New file.
74528         * lib/unistr/u16-stpcpy.c: New file.
74529         * lib/unistr/u32-stpcpy.c: New file.
74530         * lib/unistr/u-stpcpy.h: New file.
74531
74532         * modules/unistr/u8-stpncpy: New file.
74533         * modules/unistr/u16-stpncpy: New file.
74534         * modules/unistr/u32-stpncpy: New file.
74535         * lib/unistr/u8-stpncpy.c: New file.
74536         * lib/unistr/u16-stpncpy.c: New file.
74537         * lib/unistr/u32-stpncpy.c: New file.
74538         * lib/unistr/u-stpncpy.h: New file.
74539
74540         * modules/unistr/u8-strcat: New file.
74541         * modules/unistr/u16-strcat: New file.
74542         * modules/unistr/u32-strcat: New file.
74543         * lib/unistr/u8-strcat.c: New file.
74544         * lib/unistr/u16-strcat.c: New file.
74545         * lib/unistr/u32-strcat.c: New file.
74546         * lib/unistr/u-strcat.h: New file.
74547
74548         * modules/unistr/u8-strchr: New file.
74549         * modules/unistr/u16-strchr: New file.
74550         * modules/unistr/u32-strchr: New file.
74551         * lib/unistr/u8-strchr.c: New file.
74552         * lib/unistr/u16-strchr.c: New file.
74553         * lib/unistr/u32-strchr.c: New file.
74554
74555         * modules/unistr/u8-strcmp: New file.
74556         * modules/unistr/u16-strcmp: New file.
74557         * modules/unistr/u32-strcmp: New file.
74558         * lib/unistr/u8-strcmp.c: New file.
74559         * lib/unistr/u16-strcmp.c: New file.
74560         * lib/unistr/u32-strcmp.c: New file.
74561
74562         * modules/unistr/u8-strcpy: New file.
74563         * modules/unistr/u16-strcpy: New file.
74564         * modules/unistr/u32-strcpy: New file.
74565         * lib/unistr/u8-strcpy.c: New file.
74566         * lib/unistr/u16-strcpy.c: New file.
74567         * lib/unistr/u32-strcpy.c: New file.
74568         * lib/unistr/u-strcpy.h: New file.
74569
74570         * modules/unistr/u8-strcspn: New file.
74571         * modules/unistr/u16-strcspn: New file.
74572         * modules/unistr/u32-strcspn: New file.
74573         * lib/unistr/u8-strcspn.c: New file.
74574         * lib/unistr/u16-strcspn.c: New file.
74575         * lib/unistr/u32-strcspn.c: New file.
74576         * lib/unistr/u-strcspn.h: New file.
74577
74578         * modules/unistr/u8-strdup: New file.
74579         * modules/unistr/u16-strdup: New file.
74580         * modules/unistr/u32-strdup: New file.
74581         * lib/unistr/u8-strdup.c: New file.
74582         * lib/unistr/u16-strdup.c: New file.
74583         * lib/unistr/u32-strdup.c: New file.
74584         * lib/unistr/u-strdup.h: New file.
74585
74586         * modules/unistr/u8-strlen: New file.
74587         * modules/unistr/u16-strlen: New file.
74588         * modules/unistr/u32-strlen: New file.
74589         * lib/unistr/u8-strlen.c: New file.
74590         * lib/unistr/u16-strlen.c: New file.
74591         * lib/unistr/u32-strlen.c: New file.
74592         * lib/unistr/u-strlen.h: New file.
74593
74594         * modules/unistr/u8-strmblen: New file.
74595         * modules/unistr/u16-strmblen: New file.
74596         * modules/unistr/u32-strmblen: New file.
74597         * lib/unistr/u8-strmblen.c: New file.
74598         * lib/unistr/u16-strmblen.c: New file.
74599         * lib/unistr/u32-strmblen.c: New file.
74600
74601         * modules/unistr/u8-strmbtouc: New file.
74602         * modules/unistr/u16-strmbtouc: New file.
74603         * modules/unistr/u32-strmbtouc: New file.
74604         * lib/unistr/u8-strmbtouc.c: New file.
74605         * lib/unistr/u16-strmbtouc.c: New file.
74606         * lib/unistr/u32-strmbtouc.c: New file.
74607
74608         * modules/unistr/u8-strncat: New file.
74609         * modules/unistr/u16-strncat: New file.
74610         * modules/unistr/u32-strncat: New file.
74611         * lib/unistr/u8-strncat.c: New file.
74612         * lib/unistr/u16-strncat.c: New file.
74613         * lib/unistr/u32-strncat.c: New file.
74614         * lib/unistr/u-strncat.h: New file.
74615
74616         * modules/unistr/u8-strncmp: New file.
74617         * modules/unistr/u16-strncmp: New file.
74618         * modules/unistr/u32-strncmp: New file.
74619         * lib/unistr/u8-strncmp.c: New file.
74620         * lib/unistr/u16-strncmp.c: New file.
74621         * lib/unistr/u32-strncmp.c: New file.
74622
74623         * modules/unistr/u8-strncpy: New file.
74624         * modules/unistr/u16-strncpy: New file.
74625         * modules/unistr/u32-strncpy: New file.
74626         * lib/unistr/u8-strncpy.c: New file.
74627         * lib/unistr/u16-strncpy.c: New file.
74628         * lib/unistr/u32-strncpy.c: New file.
74629         * lib/unistr/u-strncpy.h: New file.
74630
74631         * modules/unistr/u8-strnlen: New file.
74632         * modules/unistr/u16-strnlen: New file.
74633         * modules/unistr/u32-strnlen: New file.
74634         * lib/unistr/u8-strnlen.c: New file.
74635         * lib/unistr/u16-strnlen.c: New file.
74636         * lib/unistr/u32-strnlen.c: New file.
74637         * lib/unistr/u-strnlen.h: New file.
74638
74639         * modules/unistr/u8-strpbrk: New file.
74640         * modules/unistr/u16-strpbrk: New file.
74641         * modules/unistr/u32-strpbrk: New file.
74642         * lib/unistr/u8-strpbrk.c: New file.
74643         * lib/unistr/u16-strpbrk.c: New file.
74644         * lib/unistr/u32-strpbrk.c: New file.
74645         * lib/unistr/u-strpbrk.h: New file.
74646
74647         * modules/unistr/u8-strrchr: New file.
74648         * modules/unistr/u16-strrchr: New file.
74649         * modules/unistr/u32-strrchr: New file.
74650         * lib/unistr/u8-strrchr.c: New file.
74651         * lib/unistr/u16-strrchr.c: New file.
74652         * lib/unistr/u32-strrchr.c: New file.
74653
74654         * modules/unistr/u8-strspn: New file.
74655         * modules/unistr/u16-strspn: New file.
74656         * modules/unistr/u32-strspn: New file.
74657         * lib/unistr/u8-strspn.c: New file.
74658         * lib/unistr/u16-strspn.c: New file.
74659         * lib/unistr/u32-strspn.c: New file.
74660         * lib/unistr/u-strspn.h: New file.
74661
74662         * modules/unistr/u8-strstr: New file.
74663         * modules/unistr/u16-strstr: New file.
74664         * modules/unistr/u32-strstr: New file.
74665         * lib/unistr/u8-strstr.c: New file.
74666         * lib/unistr/u16-strstr.c: New file.
74667         * lib/unistr/u32-strstr.c: New file.
74668         * lib/unistr/u-strstr.h: New file.
74669
74670         * modules/unistr/u8-strtok: New file.
74671         * modules/unistr/u16-strtok: New file.
74672         * modules/unistr/u32-strtok: New file.
74673         * lib/unistr/u8-strtok.c: New file.
74674         * lib/unistr/u16-strtok.c: New file.
74675         * lib/unistr/u32-strtok.c: New file.
74676         * lib/unistr/u-strtok.h: New file.
74677
74678         * modules/unistr/u8-uctomb: New file.
74679         * modules/unistr/u16-uctomb: New file.
74680         * modules/unistr/u32-uctomb: New file.
74681         * lib/unistr/u8-uctomb.c: New file.
74682         * lib/unistr/u16-uctomb.c: New file.
74683         * lib/unistr/u32-uctomb.c: New file.
74684
74685         * MODULES.html.sh (Unicode string functions): Add the new modules.
74686
74687 2007-01-08  Bruno Haible  <bruno@clisp.org>
74688
74689         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74690         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74691         subdirectories.
74692
74693 2007-01-08  Karl Berry  <karl@gnu.org>
74694
74695         * doc/error.texi: mention that main() fns must set program_name
74696         when progname is used.
74697
74698 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74699
74700         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74701         WCTYPE_H is empty, for the benefit of builds from non-distclean
74702         directories.  Problem reported by Eric Blake in
74703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74704
74705 2007-01-08  Bruno Haible  <bruno@clisp.org>
74706
74707         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74708         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74709         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74710         PROVIDE_CANONICALIZE_FILENAME_MODE.
74711         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74712
74713 2007-01-08  Bruno Haible  <bruno@clisp.org>
74714
74715         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74716         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74717         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74718         * lib/fts.c: Likewise.
74719         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74720
74721 2006-12-25  Bruno Haible  <bruno@clisp.org>
74722
74723         * modules/utf8-ucs4-safe: New file.
74724         * lib/utf8-ucs4-safe.h: New file.
74725         * lib/unistr/utf8-ucs4-safe.c: New file.
74726
74727         * modules/utf16-ucs4-safe: New file.
74728         * lib/utf16-ucs4-safe.h: New file.
74729         * lib/unistr/utf16-ucs4-safe.c: New file.
74730
74731         * MODULES.html.sh (Unicode string functions): Add the new modules.
74732
74733 2007-01-08  Bruno Haible  <bruno@clisp.org>
74734
74735         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74736         (Depends-on): Add unitypes.
74737         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74738         (u8_mbtouc_aux): Move out to separate file.
74739         (u8_mbtouc): Use ucs4_t, uint8_t types.
74740         * lib/unistr/utf8-ucs4.c: New file.
74741
74742         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74743         (Depends-on): Add unitypes.
74744         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74745         (u16_mbtouc_aux): Move out to separate file.
74746         (u16_mbtouc): Use ucs4_t, uint16_t types.
74747         * lib/unistr/utf16-ucs4.c: New file.
74748
74749         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74750         (Depends-on): Add unitypes.
74751         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74752         (u8_uctomb_aux): Move out to separate file.
74753         (u8_uctomb): Use ucs4_t, uint8_t types.
74754         * lib/unistr/ucs4-utf8.c: New file.
74755
74756         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74757         (Depends-on): Add unitypes.
74758         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74759         (u16_uctomb_aux): Move out to separate file.
74760         (u16_uctomb): Use ucs4_t, uint16_t types.
74761         * lib/unistr/ucs4-utf16.c: New file.
74762
74763 2006-12-25  Bruno Haible  <bruno@clisp.org>
74764
74765         * modules/unitypes: New file.
74766         * lib/unitypes.h: New file.
74767         * MODULES.html.sh (func_all_modules): New section "Unicode string
74768         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74769         this section. Add unitypes.
74770
74771 2007-01-08  Bruno Haible  <bruno@clisp.org>
74772
74773         Avoid variable names that conflict with those from libtool.
74774         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74775         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74776         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74777         library_names_spec to acl_library_names_spec, hardcode_* to
74778         acl_hardcode_*.
74779         Reported by Ralf Wildenhues.
74780
74781 2007-01-08  Bruno Haible  <bruno@clisp.org>
74782
74783         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74784         definition.
74785         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74786         definition.
74787         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74788         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74789         definition.
74790         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74791         definition.
74792         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74793         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74794         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74795         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74796         definition.
74797         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74798         definition.
74799         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74800         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74801         GC_USE_<algorithm>.
74802         * lib/gc-libgcrypt.c: Likewise.
74803         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74804         * modules/gc-arctwo (configure.ac): Likewise.
74805         * modules/gc-des (configure.ac): Likewise.
74806         * modules/gc-hmac-md5 (configure.ac): Likewise.
74807         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74808         * modules/gc-md2 (configure.ac): Likewise.
74809         * modules/gc-md4 (configure.ac): Likewise.
74810         * modules/gc-md5 (configure.ac): Likewise.
74811         * modules/gc-random (configure.ac): Likewise.
74812         * modules/gc-rijndael (configure.ac): Likewise.
74813         * modules/gc-sha1 (configure.ac): Likewise.
74814
74815 2007-01-08  Bruno Haible  <bruno@clisp.org>
74816
74817         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74818         macro definition.
74819         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74820         definition.
74821         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74822         definition.
74823         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74824         * modules/fcntl-safer (configure.ac): Likewise.
74825         * modules/fopen-safer (configure.ac): Likewise.
74826         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74827         GNULIB_FWRITEERROR macro definition.
74828
74829 2007-01-08  Bruno Haible  <bruno@clisp.org>
74830
74831         * m4/gnulib-common.m4: New file.
74832         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74833         (func_get_filelist): Add m4/gnulib-common.m4.
74834
74835 2007-01-08  Bruno Haible  <bruno@clisp.org>
74836
74837         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74838         command.
74839
74840 2007-01-08  Jim Meyering  <jim@meyering.net>
74841
74842         Use a more robust test for a "can't happen" condition.
74843         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74844         narrowed the st_size value.  Presuming the "can't happen" condition
74845         is true, that narrowing could conceivably convert an invalid st_size
74846         value into a valid one.  Instead, use a change based on Matthew
74847         Woehlke's original patch.
74848
74849         Slight readability improvement: use an assert-like macro
74850         in place of literal "abort ()" uses.
74851         * lib/fts.c (fts_assert): Define.
74852         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74853         Use this macro instead of a bare 'abort'.
74854
74855 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74856
74857         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74858         simply work around them.
74859         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74860         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74861         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74862         declaring.
74863         Don't bother to define as macros, since the standard doesn't require it.
74864         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74865         longer worry about IRIX 5.3.
74866         (HAVE_WCTYPE_CTMP_BUG): Remove.
74867
74868 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74869
74870         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74871         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74872         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74873         Problems reported by Georg Schwarz for IRIX 5.3.
74874
74875         * gnulib-tool (autoconf_minversion): Take the maximum version number
74876         found, not the minimum.  Problem reported by James Youngman.
74877
74878 2007-01-03  Karl Berry  <karl@gnu.org>
74879
74880         * doc/error.texi: new file, explaining interaction with progname.
74881         * doc/gnulib.texi: include it.  Update copyright.
74882
74883 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74884
74885         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74886         AC_CANONICAL_HOST, to improve autobuild outputs.
74887
74888 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74889             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74890
74891         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74892         sockets, server sockets, and other file descriptors.  Count errors
74893         to compute the return value.  Reorder the code a bit to be easier
74894         to follow.  Don't set event bits that were not requested (except
74895         POLLERR and POLLHUP).
74896
74897 2007-01-01  Bruno Haible  <bruno@clisp.org>
74898
74899         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74900
74901 2007-01-03  Jim Meyering  <jim@meyering.net>
74902
74903         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74904
74905 2007-01-02  Bruno Haible  <bruno@clisp.org>
74906
74907         * modules/settime (Include): Require timespec.h.
74908         * modules/nanosleep (Include): Likewise.
74909
74910 2007-01-01  Bruno Haible  <bruno@clisp.org>
74911
74912         * gnulib-tool (func_emit_copyright_notice): Bump year.
74913         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74914
74915 2007-01-01  Bruno Haible  <bruno@clisp.org>
74916
74917         Improve support for OpenBSD.
74918         * build-aux/config.rpath (libname_spec): Export.
74919         (library_names_spec): New variable. Export.
74920         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74921         library_names_spec from the config.rpath output. Locate shared library
74922         through the name pattern in library_names_spec.
74923
74924 2007-01-01  Eric Blake  <ebb9@byu.net>
74925
74926         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74927
74928 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74929
74930         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74931         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74932         assume the C locale, and avoid an "eval" that could cause trouble.
74933         Problem with SORT reported by Bob Proulx.
74934
74935         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74936         Define.  Trivial patch from Henning Nielsen Lund, originally
74937         sent to bug-grep@gnu.org today.
74938
74939 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74942         struct stat.  Problem reported by Henning Nielsen Lund.
74943         * lib/acl.c: Include acl.h first, to check interface.  Don't
74944         bother to include sys/types.h and sys/stat.h again.
74945
74946 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         Import the following change from libc; problem reported by
74949         Sven Verdoolaege.
74950
74951         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74952
74953         [BZ #1373]
74954         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74955
74956 2006-12-28  Jim Meyering  <jim@meyering.net>
74957
74958         * build-aux/announce-gen: Do not assume that the package
74959         builds any of tar.gz, tar.bz2, and .xdelta files.
74960         Suggestion from Simon Josefsson.
74961
74962 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74963
74964         * modules/announce-gen: New file.
74965
74966 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74967
74968         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74969         handles its gotchas now.
74970         * lib/mbswidth.c: Likewise.
74971         * lib/wcwidth.h: Likewise.
74972         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74973         and iswcntrl; the wctype module does this stuff now.
74974         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74975         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74976         * modules/mbchar (Depends-on): Add wctype.
74977         * modules/mbswidth (Depends-on): Likewise.
74978         * modules/wcwidth (Depends-on): Likewise.
74979
74980 2006-12-27  Eric Blake  <ebb9@byu.net>
74981
74982         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74983         module uses more than what <wctype.h> is required to provide.
74984
74985 2006-12-26  Eric Blake  <ebb9@byu.net>
74986
74987         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74988
74989 2006-12-26  Eric Blake  <ebb9@byu.net>
74990
74991         * modules/absolute-header: New module.
74992         * modules/fcntl (Depends-on): Depend on it.
74993         * modules/inttypes (Depends-on): Likewise.
74994         * modules/stdint (Depends-on): Likewise.
74995         * modules/sys_stat (Depends-on): Likewise.
74996         * modules/wctype (Depends-on): Likewise.
74997         * MODULES.html.sh (Support for building libraries and
74998         executables): Document it.
74999
75000 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75001
75002         * gnulib-tool (SED): Remove, undoing previous change.
75003         The problem was that it broke coreutils on Solaris, because
75004         "sed --posix" leaked into a makefile.
75005         (sed): New alias, if 'alias' and GNU sed.
75006
75007 2006-12-24  Jim Meyering  <jim@meyering.net>
75008
75009         Work around an fchownat bug in glibc-2.4:
75010         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75011         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75012         in spite of the -P option.
75013         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75014         New macros.
75015         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75016         * modules/openat (Files): Add lib/fchownat.c.
75017         * lib/openat.c (fchownat): Don't define here.  Move to...
75018         * lib/fchownat.c: ...this new file.
75019
75020 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75021
75022         Fix bug reported by Bruno Haible in
75023         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75024         where quotearg.c didn't compile on Mac OS X 10.2 because it
75025         lacks <wchar.h> and wint_t.
75026         * lib/wctype_.h (__wctype_wint_t): New type.
75027         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75028         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75029         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75030         Arg is now of type __wctype_wint_t, not wint_t.
75031         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75032         substitute HAVE_WINT_T.
75033         * modules/wctype (Files): Add m4/wint_t.m4.
75034         (wctype.h): Substitute HAVE_WINT_T.
75035
75036 2006-12-23  Bruno Haible  <bruno@clisp.org>
75037
75038         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75039
75040 2006-12-23  Bruno Haible  <bruno@clisp.org>
75041
75042         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75043         S_ISLNK.
75044         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75045         mingw.
75046
75047 2006-12-22  Bruno Haible  <bruno@clisp.org>
75048
75049         * lib/copy-file.c: Include acl.h.
75050         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75051         Close the file descriptors only after being done with copy_acl.
75052         * modules/copy-file (Depends-on): Add acl.
75053
75054 2006-12-22  Bruno Haible  <bruno@clisp.org>
75055
75056         * gnulib-tool (SED): New variable.
75057         Use $SED instead of sed everywhere.
75058
75059 2006-12-22  Bruno Haible  <bruno@clisp.org>
75060
75061         * modules/no-c++: New file.
75062         * m4/no-c++.m4: New file.
75063         * MODULES.html.sh (Support for building libraries and executables):
75064         Add no-c++.
75065
75066 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75067
75068         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75069         Include <limits.h>, and use its INT_MAX to rewrite the
75070         j loop so that it does not overflow 'int'.  Problem reported by
75071         Ralf Wildenhues in
75072         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75073         Play it safe by shifting left by 1 rather than multiplying by 2,
75074         as GCC is less likely to optimize this away when the value
75075         is signed (when it assumes overflow leads to undefined behavior).
75076         Also, don't assume time_t uses two's complement.
75077
75078 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75079
75080         * MODULES.html.sh: New module wctype.
75081         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75082         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75083         <wctype.h>, since the new wctype module should fix this.
75084         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75085         the wctype module should arrange for it.
75086         * lib/regex_internal.h: Likewise.
75087         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75088         since the wctype module should handle this now.
75089         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75090         * modules/fnmatch (Depends-on): Add wctype.
75091         * modules/quotearg (Depends-on): Likewise.
75092         * modules/regex (Depends-on): Likewise.
75093
75094 2006-12-19  Bruno Haible  <bruno@clisp.org>
75095
75096         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75097         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75098
75099 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75100
75101         * modules/savewd (Depends-on): Fix dependency on fcntl.
75102
75103 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75104
75105         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75106         conforms to C99, rather than relying on the user's environment
75107         setting of STDINT_H.
75108
75109 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75110         and Eric Blake  <ebb9@byu.net>
75111
75112         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75113         This is more consistent with the other defines here.
75114         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75115         Port to z/OS.  Problem reported by Paul Gilmartin.
75116         Change local vars to use gl_ prefix rather than ac_.
75117         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75118         with other defines.
75119         * modules/double-slash-root: New module.
75120         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75121         (Depends-on): Add double-slash-root.
75122         * MODULES.html.sh (File system functions): Mention new module.
75123
75124 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75125
75126         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75127         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75128         This is for the benefit of gzip, which doesn't do i18n.
75129
75130 2006-12-12  Jim Meyering  <jim@meyering.net>
75131
75132         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75133         Reported by Andreas Schwab <schwab@suse.de>.
75134
75135 2006-12-12  Bruno Haible  <bruno@clisp.org>
75136
75137         Merge these changes.
75138         2006-09-05  Bruno Haible  <bruno@clisp.org>
75139         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75140         iconv_alloc succeeded.
75141         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75142         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75143         test for " && dest " at the end - dest is always != NULL there. Call
75144         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75145         with 2xNULL arguments, also to flush the state storage. Handle the
75146         IRIX iconv behaviour. Realloc the final result, to throw away unused
75147         memory.
75148
75149 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75150
75151         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75152         and fchmodat unconditionally, since glibc 2.4 has them.
75153         Problem reported by Arkadiusz Miskiewicz.
75154
75155 2006-12-10  Bruno Haible  <bruno@clisp.org>
75156
75157         * gnulib-tool (func_import): Show the include files only for those
75158         modules that are copied and specified.
75159         Reported by Karl Berry.
75160
75161 2006-12-08  Jim Meyering  <jim@meyering.net>
75162
75163         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75164         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75165
75166         * build-aux/announce-gen: Add two new options, both optional:
75167         --bootstrap-tools=TOOL_LIST
75168               a comma-separated list of tools, e.g.,
75169               autoconf,automake,bison,gnulib
75170         --gnulib-snapshot-date=DATE
75171               if gnulib is in the bootstrap tool list,
75172               then report this as the snapshot date.
75173               If not specified, use the current date/time.
75174               If you specify a date here, be sure it's UTC.
75175
75176 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75177
75178         * tests/test-argp-2.sh: Fix test to match actual output.
75179         (func_compare): Fix sed script to be portable.
75180
75181 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75182
75183         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75184         workaround for this case.  It is not autoconfigured now; offhand
75185         it's hard to see how to autoconfigure it.
75186
75187 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75188
75189         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75190         a directory that is about to be chowned.  Such a directory's
75191         initial file permissions should permit the owner only and this
75192         should not be changed until after the chown, since the group and
75193         other bits would be incorrect if they granted permission before
75194         the chown.
75195
75196         Fix porting problem for iswctype reported by Georg Schwarz in:
75197         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75198         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75199         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75200         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75201         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75202
75203 2006-12-03  Jim Meyering  <jim@meyering.net>
75204
75205         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75206         p->fts_statp may not yet be defined.
75207         (fts_read): Instead, set it in the caller, once p->fts_statp is
75208         sure to be defined, and corresponds to a top-level directory.
75209         This bug made du -x fail.  Here's the coreutils test case:
75210         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75211         Reported by Mike Frysinger.
75212
75213 2006-12-01  Jim Meyering  <jim@meyering.net>
75214
75215         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75216         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75217         Reported by Simon Josefsson.
75218
75219 2006-11-30  Jim Meyering  <jim@meyering.net>
75220
75221         * m4/warning.m4: Use the all-permissive copyright notice
75222         recommended by RMS (rather than LGPL).
75223         * m4/vararrays.m4: Likewise.
75224         * m4/flexmember.m4: Likewise.
75225
75226 2006-11-29  Bruno Haible  <bruno@clisp.org>
75227
75228         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75229         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75230         using +=.
75231         Reported by Simon Josefsson <simon@josefsson.org>.
75232
75233 2006-11-28  James Youngman <jay@gnu.org>
75234
75235         * README: Advise users that they might find the bug-gnulib@gnu.org
75236         and autotools-announce@gnu.org mailing lists useful.
75237
75238 2006-11-28  Bruno Haible  <bruno@clisp.org>
75239
75240         * m4/ptrdiff_max.m4: Remove file.
75241
75242 2006-11-21  Bruno Haible  <bruno@clisp.org>
75243
75244         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75245         _AC_COMPUTE_INT.
75246         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75247         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75248         _AC_COMPUTE_INT.
75249         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75250         * m4/size_max.m4 (gl_SIZE_MAX): 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-28  Jim Meyering  <jim@meyering.net>
75255
75256         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75257         warning from "gcc -Wshadow" about shadowing the builtin.
75258
75259 2006-11-27  Bruno Haible  <bruno@clisp.org>
75260
75261         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75262         _AC_COMPUTE_INT.
75263         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75264
75265 2006-11-27  Bruno Haible  <bruno@clisp.org>
75266             Paul Eggert  <eggert@cs.ucla.edu>
75267
75268         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75269
75270 2006-11-26  Bruno Haible  <bruno@clisp.org>
75271
75272         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75273         noinst_LTLIBRARIES.
75274
75275 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75276             Bruno Haible  <bruno@clisp.org>
75277
75278         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75279         if compiling with "gcc -ansi".
75280
75281 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75282
75283         Fix some incompatibilities with gcc -ansi -pedantic.
75284         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75285         if compiling pedantically with GCC, unless it's C99 or later.
75286         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75287         it mishandles gcc -ansi -pedantic as well.
75288         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75289         if gcc -pedantic.
75290         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75291         initializers for struct if -pedantic, unless it's C99 or later.
75292
75293 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75294
75295         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75296         Don't close an fd more than once. Identical atimes indicate
75297         success, not failure.
75298
75299 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75300
75301         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75302
75303 2006-11-23  Jim Meyering  <jim@meyering.net>
75304
75305         * build-aux/announce-gen: New file.  From coreutils.
75306
75307 2006-11-22  Jim Meyering  <jim@meyering.net>
75308
75309         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75310         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75311         (fts_read): Use a temporary to narrow the overused st_size member
75312         before using it in a switch statement.  Reported by Matthew Woehlke.
75313
75314         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75315         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75316
75317 2006-11-20  Bruno Haible  <bruno@clisp.org>
75318
75319         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75320         changequote instead of pairs of brackets.
75321         Reported by Andreas Schwab <schwab@suse.de>.
75322
75323 2006-11-21  Jim Meyering  <jim@meyering.net>
75324
75325         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75326         so as to remain compatible with older compilers.
75327         Patch from Michael Deutschmann.
75328
75329 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75330
75331         * MODULES.html.sh (File system functions): Add openat.
75332
75333         * lib/openat.h (rpl_fstatat): New macro, if
75334         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75335         (fstatat): Define to rpl_fstatat under the same conditions,
75336         unless COMPILING_FSTATAT.
75337         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75338         seems to have the bug.
75339         * lib/fstatat.c: New file.
75340         * modules/openat (Files): Add it.
75341
75342 2006-11-20  Bruno Haible  <bruno@clisp.org>
75343
75344         * Makefile: New file.
75345
75346 2006-11-20  Jim Meyering  <jim@meyering.net>
75347
75348         The beginnings of syntax-related checks for gnulib.
75349         * lib/Makefile: New file.
75350         * lib/t-idcache: New script.  Ensure that the two halves of
75351         idcache.c stay in sync.
75352
75353         * lib/idcache.c: Adjust comments in user- and group- portions to
75354         be more accurate, and to be consistent with one another.
75355
75356 2006-11-20  Jim Meyering  <jim@meyering.net>
75357
75358         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75359         continue using the flexible array member (thus, this module performs
75360         half as many malloc calls), with the addition that...
75361         (getgroup, getuser): Consistently record a non-match via an empty
75362         "name" string, and map an empty string match to a NULL return value.
75363         * modules/idcache (Depends-on): Re-add flexmember.
75364
75365         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75366         (getuidbyname, getgroup, getgidbyname): Likewise.
75367
75368         Use cleaner syntax: NULL rather than 0.
75369         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75370
75371 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75372
75373         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75374         It mishandled the case where the group was missing.
75375         Problem reported by Greg Schafer.
75376         * modules/idcache: Likewise.
75377
75378 2006-11-18  Jim Meyering  <jim@meyering.net>
75379
75380         * check-module (%exempt_header): Add exception for some
75381         conditionally-included headers.
75382
75383         * modules/i-ring (Depends-on): Add verify.
75384         (License): Change to LGPL.
75385
75386 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75387
75388         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75389         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75390         and inttostr.h.  Use snprintf rather than uinttostr, so that
75391         LGPLed code doesn't depend on GPLed.
75392
75393 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75394
75395         * modules/inline (License): Change from GPL to LGPL.
75396
75397 2006-11-17  Jim Meyering  <jim@meyering.net>
75398
75399         * modules/d-type (License): Switch to LGPL.
75400
75401 2006-11-15  Bruno Haible  <bruno@clisp.org>
75402
75403         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75404
75405 2006-11-15  Eric Blake  <ebb9@byu.net>
75406
75407         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75408         the module dependency.
75409
75410 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75411             Bruno Haible  <bruno@clisp.org>
75412
75413         * gnulib-tool (func_create_testdir): Add license consistency check.
75414
75415 2006-11-15  Eric Blake  <ebb9@byu.net>
75416
75417         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75418         random "(cached)" in configure output.
75419
75420 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75421
75422         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75423         test for conforming inttypes.h is both announced and cached.
75424
75425         * MODULES.html.sh (seen_modules, seen_files): New variables.
75426         (func_module): Rewrite to use a few less gnulib-tool and sed
75427         invocations.  Avoid a couple of quadratic algorithms for ...
75428         (missed_modules, missed_files): ... these, with ...
75429         (func_append, func_tmpdir): ... these new functions, from
75430         gnulib-tool.  Analogously, install traps for cleanup.
75431
75432         * tests/test-gc.c (main): Remove unused variables.
75433         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75434
75435 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75436
75437         * modules/inttostr (License): Change to LGPL.
75438
75439 2006-11-14  Eric Blake  <ebb9@byu.net>
75440
75441         * modules/tempname (License): Change to LGPL.
75442
75443 2006-11-14  Eric Blake  <ebb9@byu.net>
75444
75445         * doc/functions.texi (Function Portability): *printf functions on
75446         Cygwin now understand all POSIX size specifiers.
75447
75448 2006-11-14  Bruno Haible  <bruno@clisp.org>
75449
75450         * modules/c-ctype (License): Change to LGPL.
75451
75452 2006-11-12  Bruno Haible  <bruno@clisp.org>
75453
75454         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75455         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75456         for GNOME libraries, for which the include files are installed in
75457         subdirectories of $prefix/include.
75458
75459 2006-11-12  Bruno Haible  <bruno@clisp.org>
75460
75461         * m4/lib-link.m4: Require at least autoconf-2.54.
75462         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75463         name to underscores for the --with option.
75464
75465 2006-11-13  Bruno Haible  <bruno@clisp.org>
75466
75467         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75468         the tests directory.
75469         Reported by Ralf Wildenhues.
75470
75471 2006-11-13  Bruno Haible  <bruno@clisp.org>
75472
75473         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75474         (func_emit_initmacro_end): Undo the override here.
75475         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75476         Works around the famous automake error in coreutils.
75477
75478 2006-11-13  Eric Blake  <ebb9@byu.net>
75479
75480         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75481         element, not its node.
75482
75483 2006-11-12  Bruno Haible  <bruno@clisp.org>
75484
75485         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75486         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75487
75488 2006-11-12  Bruno Haible  <bruno@clisp.org>
75489
75490         * gnulib-tool: New option --local-symlink.
75491         (func_usage): Document it.
75492         (lsymbolic): New variable.
75493         (func_import, func_create_testdir): If --symlink was not specified,
75494         test whether --local-symlink was specified and the file comes from
75495         the local_gnulib_dir.
75496
75497 2006-11-12  Bruno Haible  <bruno@clisp.org>
75498
75499         * gnulib-tool (func_ln): New function.
75500         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75501
75502 2006-11-12  Bruno Haible  <bruno@clisp.org>
75503
75504         Finish support for source files in subdirectories.
75505         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75506         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75507         AUTOMAKE_OPTIONS.
75508         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75509
75510 2006-11-12  Bruno Haible  <bruno@clisp.org>
75511
75512         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75513         EXTRA_lib_SOURCES augmentation.
75514         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75515
75516 2006-11-12  Jim Meyering  <jim@meyering.net>
75517
75518         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75519         file descriptors.  This also averts a failure on systems with
75520         native openat support when a traversed directory lacks "x" access.
75521         * lib/fts_.h: Include "i-ring.h"
75522         (struct FTS) [fts_fd_ring]: New member.
75523         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75524         (FCHDIR): Add parentheses.
75525         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75526         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75527         When descending, rather than simply closing the previous
75528         fts_cwd_fd value, push that file descriptor onto the ring.
75529         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75530         (fts_open): Initialize the new fd_ring member.
75531         (fts_close): Clear the ring.
75532         (fts_safe_changedir): When possible, use our new fd_ring to skip
75533         the diropen and fstat and dev/ino comparison that would normally
75534         accompany a virtual `chdir ("..")'.
75535
75536         * modules/fts (Depends-on): Add i-ring.
75537         * modules/i-ring: New module.
75538         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75539         * m4/i-ring.m4: New file.
75540
75541 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75542
75543         * gnulib-tool (func_create_testdir): Fix replacement of
75544         `build-aux' in configure.ac.  Run autotools in gltests
75545         subdirectory.
75546         (func_create_testdir, func_create_megatestdir, test): There is
75547         no need for '--force' in most autotool invocations in a new
75548         tree.  Actually fail the whole test if any of the tools, or the
75549         configure or make stages fail.
75550
75551         Sync from Automake.
75552         * build-aux/gnupload: Revert last change.  Add pointer to upload
75553         instructions of the GNU Maintenance Instructions.
75554         Suggestion by Karl Berry.
75555
75556 2006-11-10  Jim Meyering  <jim@meyering.net>
75557
75558         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75559
75560 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75561
75562         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75563         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75564         (bind_textdomain_codeset) [! ENABLE_NLS]:
75565         Evaluate all the arguments.  That way, callers get compatible behavior
75566         if the arguments have side effects.  Also, it avoids some GCC
75567         diagnostics in some cases; Joel E. Denny reported problems when Bison
75568         was configured with --enable-gcc-warnigs.
75569
75570 2006-11-10  Jim Meyering  <jim@meyering.net>
75571
75572         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75573         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75574         account.
75575
75576 2006-11-10  Jim Meyering  <jim@meyering.net>
75577
75578         * modules/inline: New file/module.
75579         * modules/xalloc (Files): Remove m4/inline.m4.
75580         (Depends-on): Add inline, instead.
75581         * modules/oset: Likewise.
75582         * modules/list: Likewise.
75583
75584 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75587         Problem reported by Matthew Woehlke.
75588
75589 2006-11-09  Bruno Haible  <bruno@clisp.org>
75590
75591         * lib/tempname.c (gen_tempname): Remove variant that invokes
75592         __gen_tempname.
75593         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75594         __gen_tempname.
75595
75596 2006-11-08  Bruno Haible  <bruno@clisp.org>
75597
75598         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75599         to 'yes' instead of 'cross-compiling'.
75600
75601 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75602
75603         * lib/quotearg.h (quotearg_free): New decl.
75604         * lib/quotearg.c (quotearg_free): New function.
75605         (slot0, nslots, slotvec0, slotvec):
75606         Now file-scope so that quotearg_free can get at them.
75607
75608 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75609
75610         Sync from Automake.
75611         * build-aux/gnupload: Add missing 'gnu' to example URL.
75612         Report by Karl Berry.
75613
75614 2006-11-08  Bruno Haible  <bruno@clisp.org>
75615
75616         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75617         Suggested by Paul Eggert.
75618
75619 2006-11-08  Jim Meyering  <jim@meyering.net>
75620
75621         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75622         It's already included if !_LIBC.
75623         (fts_safe_changedir): Add a comment.
75624
75625 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75626
75627         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75628         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75629         Matthew Woehlke.
75630
75631         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75632         definitions up, to avoid colliding with change below.
75633         (static_inline) [HAVE_INLINE]: New macro.
75634         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75635         Provide extern decls when !HAVE_INLINE.  Do not define unless
75636         static_inline is defined, either by us or by xmalloc.c.  Use
75637         static_inline rather than static inline.
75638         (XCALLOC): Optimize sizeof(T) = 1 case.
75639         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75640
75641 2006-11-07  Bruno Haible  <bruno@clisp.org>
75642
75643         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75644         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75645         AC_C_INLINE.
75646         * modules/xalloc (Files): Add m4/inline.m4.
75647
75648 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75649
75650         * README: Fix typo.
75651         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75652         (Miscellanous Notes): ...from this.
75653
75654 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75655
75656         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75657         Mention that offsetof should be used instead of sizeof.
75658         From Bruno Haible.
75659
75660 2006-11-07  Bruno Haible  <bruno@clisp.org>
75661
75662         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75663
75664 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75665
75666         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75667         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75668         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75669         (gl_tree_add_before, gl_tree_add_after):
75670         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75671         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75672         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75673         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75674         (gl_linked_add_after, gl_linked_add_at): Likewise.
75675         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75676         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75677         (gl_tree_add_before, gl_tree_add_after): Likewise.
75678         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75679         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75680         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75681
75682 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75683
75684         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75685
75686 2006-11-06  Bruno Haible  <bruno@clisp.org>
75687
75688         * m4/inline.m4: New file.
75689         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75690         * modules/list (Files): Add m4/inline.m4.
75691         * modules/oset (Files): Likewise.
75692
75693 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75694
75695         * lib/idcache.c: Include <stddef.h>, for offsetof.
75696         (struct userid.name): Change from char * to a flexible array member.
75697         All uses changed.
75698         * modules/idcache (Depends-on): Add flexmember.
75699
75700         * MODULES.html.sh (Core language properties): New module flexmember.
75701         * modules/flexmember, m4/flexmember.m4: New files.
75702
75703         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75704         inline functions that are identical with the old xnmalloc_inline,
75705         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75706         that we can avoid some unnecessary integer multiplications and
75707         divisions in the common case where the element size is known at
75708         compile time.
75709         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75710         needed.
75711         (xnboundedmalloc): Remove.
75712         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75713         arguments, for consistency with rest of this header.
75714         (xcharalloc): Rewrite using XNMALLOC.
75715         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75716         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75717         versions have been moved to lib/xalloc.h and renamed to be the
75718         non-*_inline versions.
75719         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75720         and xnrealloc functions, since those functions are now inline and
75721         now call us.
75722         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75723         renaming described above.
75724         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75725         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75726         captures the dependency in AC_C_INLINE.
75727
75728         New module canonicalize-lgpl, proposed by Charles Wilson in
75729         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75730         with a few small changes afterwards.
75731         * MODULES.html.sh (File system functions): New module
75732         canonicalize-lgpl.
75733         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75734         and canonicalize_file_name.
75735         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75736         * modules/canonicalize-lgpl: New files.
75737
75738 2006-11-05  Bruno Haible  <bruno@clisp.org>
75739
75740         * gnulib-tool (func_import, func_create_testdir): Create directories
75741         also for files in subdirectories of lib/.
75742
75743 2006-11-05  Bruno Haible  <bruno@clisp.org>
75744
75745         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75746         ANSI C compliant.
75747
75748 2006-11-03  Bruno Haible  <bruno@clisp.org>
75749
75750         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75751         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75752         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75753         (xnboundedmalloc): New inline function.
75754         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75755         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75756         xmalloc.
75757         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75758         xmalloc.
75759         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75760         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75761         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75762         xmalloc.
75763         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75764         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75765         xmalloc.
75766         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75767         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75768         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75769         xmalloc.
75770         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75771         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75772         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75773         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75774         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75775         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75776         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75777
75778 2006-11-03  Bruno Haible  <bruno@clisp.org>
75779
75780         * lib/c-ctype.h [C++]: Define functions without name mangling.
75781         * lib/fwriteerror.h [C++]: Likewise.
75782         * lib/gcd.h [C++]: Likewise.
75783         * lib/linebreak.h [C++]: Likewise.
75784
75785 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75786
75787         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75788         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75789         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75790         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75791         Check for functions and headers just once.
75792         Check for declaration of canonicalize_file_name.
75793         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75794
75795 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75796
75797         * gnulib-tool (func_import): Fix typo in actioncmd.
75798
75799 2006-11-02  Bruno Haible  <bruno@clisp.org>
75800
75801         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75802         newline sequence in the Makefile.am snippet as a space, like "make"
75803         does.
75804         Reported by Roger Persson <perrog@gmail.com>.
75805
75806 2006-11-01  Bruno Haible  <bruno@clisp.org>
75807
75808         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75809         already declared in <string.h>.
75810         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75811
75812 2006-11-01  Bruno Haible  <bruno@clisp.org>
75813
75814         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75815         * lib/strcase.h: Include <string.h>.
75816         (strcasecmp): Define to rpl_strcasecmp here.
75817
75818 2006-11-01  Bruno Haible  <bruno@clisp.org>
75819
75820         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75821
75822 2006-11-01  Eric Blake  <ebb9@byu.net>
75823
75824         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75825
75826         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75827
75828 2006-10-29  Bruno Haible  <bruno@clisp.org>
75829
75830         Make it compile in C++ mode.
75831         * lib/full-write.c (full_rw): Add a cast.
75832
75833 2006-11-01  Bruno Haible  <bruno@clisp.org>
75834
75835         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75836         be POSIX compliant.
75837         Reported by Roger Persson <perrog@gmail.com>.
75838
75839 2006-11-01  Eric Blake  <ebb9@byu.net>
75840
75841         * lib/getopt_.h: Fix comments.
75842
75843 2006-10-31  Eric Blake  <ebb9@byu.net>
75844
75845         * modules/tmpdir (Depends-on): Add sys_stat.
75846         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75847         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75848         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75849         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75850         tempname.
75851
75852 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75853
75854         Avoid some C++ diagnostics reported by Bruno Haible.
75855         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75856         xmalloc.
75857         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75858         (struct slotvec): Move to top level.
75859         (quotearg_n_options): Rewrite to avoid xmalloc.
75860         * lib/xalloc.h (xcharalloc): New function.
75861         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75862         [defined __cplusplus]: Add function template that provides result
75863         type propagation.  This part of the change is from Bruno Haible.
75864
75865 2006-10-29  Bruno Haible  <bruno@clisp.org>
75866
75867         Make it compile in C++ mode.
75868         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75869         * lib/strnlen1.c (strnlen1): Cast memchr result.
75870         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75871         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75872         (create_temp_dir): Rename local variable 'template'.
75873         (compile_csharp_using_sscli): Add cast.
75874         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75875         * lib/findprog.c (find_in_path): Likewise.
75876         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75877         * lib/wait-process.c (register_slave_subprocess): Likewise.
75878
75879 2006-10-22  Bruno Haible  <bruno@clisp.org>
75880
75881         * modules/tsearch: New file.
75882         * lib/tsearch.h: New file.
75883         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75884         * m4/tsearch.m4: New file.
75885         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75886
75887 2006-10-29  Eric Blake  <ebb9@byu.net>
75888
75889         * lib/arcfour.c: Assume config.h.
75890         * lib/arctwo.c: Likewise.
75891         * lib/base64.c: Likewise.
75892         * lib/check-version.c: Likewise.
75893         * lib/crc.c: Likewise.
75894         * lib/des.c: Likewise.
75895         * lib/gc-gnulib.c: Likewise.
75896         * lib/gc-libgcrypt.c: Likewise.
75897         * lib/gc-pbkdf2-sha1.c: Likewise.
75898         * lib/getaddrinfo.c: Likewise.
75899         * lib/getdelim.c: Likewise.
75900         * lib/getline.c: Likewise.
75901         * lib/hmac-md5.c: Likewise.
75902         * lib/hmac-sha1.c: Likewise.
75903         * lib/iconvme.c: Likewise.
75904         * lib/md2.c: Likewise.
75905         * lib/md4.c: Likewise.
75906         * lib/memxor.c: Likewise.
75907         * lib/read-file.c: Likewise.
75908         * lib/readline.c: Likewise.
75909         * lib/rijndael-alg-fst.c: Likewise.
75910         * lib/rijndael-api-fst.c: Likewise.
75911         * lib/xgetdomainname.c: Likewise.
75912
75913 2006-10-28  Eric Blake  <ebb9@byu.net>
75914
75915         * lib/xstrndup.c: Assume config.h.
75916
75917 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75918
75919         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75920         stat-macros.h is now for our own macros, whereas stat_h is for
75921         macros in the <sys/stat.h> name space.
75922         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75923         (STAT_MACROS_H): Remove.
75924         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75925         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75926         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75927         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75928         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75929         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75930         Move these macros to ...
75931         * lib/stat_.h: here.  Don't include stat-macros.h.
75932         * lib/canonicalize.c: Don't include stat-macros.h.
75933         * lib/chown.c: Likewise.
75934         * lib/euidaccess.c: Likewise.
75935         * lib/file-type.c: Likewise.
75936         * lib/filemode.c: Likewise.
75937         * lib/glob.c: Likewise.
75938         * lib/isapipe.c: Likewise.
75939         * lib/lchown.c: Likewise.
75940         * lib/lstat.c: Likewise.
75941         * lib/mkdir-p.c: Likewise.
75942         * lib/rmdir.c: Likewise.
75943         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75944         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75945         unless mkdir isn't declared, to speed up 'configure'.
75946         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75947         would define all the S_* symbols.
75948         * modules/canonicalize (Depends-on):
75949         Depend on sys_stat, not stat-macros.
75950         * modules/chown: Likewise.
75951         * modules/euidaccess: Likewise.
75952         * modules/filemode: Likewise.
75953         * modules/file-type: Likewise.
75954         * modules/glob: Likewise.
75955         * modules/isapipe: Likewise.
75956         * modules/lchown: Likewise.
75957         * modules/lstat: Likewise.
75958         * modules/mkancesdirs: Likewise.
75959         * modules/rmdir: Likewise.
75960         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75961         * modules/modechange: Likewise.
75962         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75963         (configure.ac): Remove gl_STAT_MACROS.
75964         * modules/sys_stat (Depends-on): Remove stat-macros.
75965
75966 2006-10-27  Bruno Haible  <bruno@clisp.org>
75967
75968         * m4/signed.m4: Remove file.
75969         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75970         invocation.
75971         * modules/vasnprintf (Files): Remove m4/signed.m4.
75972
75973 2006-10-27  Bruno Haible  <bruno@clisp.org>
75974
75975         Update to GNU gettext 0.16.
75976         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75977         m4/inttypes-h.m4, m4/signed.m4.
75978         * m4/gettext.m4: Update to GNU gettext 0.16.
75979         * m4/intl.m4: New file, from GNU gettext.
75980         * m4/intldir.m4: New file, from GNU gettext.
75981         * config/srclist.txt: Update
75982
75983 2006-10-27  Eric Blake  <ebb9@byu.net>
75984
75985         * MODULES.html.sh: Document tempname.
75986         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75987         dependencies.
75988         (Files): Move lib/tempname.c...
75989         * modules/tempname: ...to this new module.
75990         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75991         (gl_PREREQ_TEMPNAME): Move...
75992         * m4/tempname.m4: ...to this new file.
75993         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75994         * modules/sys_stat (Depends-on): Add stat-macros.
75995         * lib/stat_.h (includes): Pick up stat macros.
75996         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75997         if stat macros are broken.
75998         * lib/tempname.c (includes): No need to include "stat-macros.h".
75999         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76000         (direxists, __path_search) [!_LIBC]: Don't compile these in
76001         gnulib; the tmpdir module covers that.
76002         * lib/tempname.h: New file.
76003
76004 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76005
76006         * COPYING: Explain how gnulib-tool converts licence headers.
76007         Almost all wording by Eric Blake.
76008
76009 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76010
76011         * lib/mbchar.h (is_basic_table): Make read-only.
76012         * lib/mbchar.c (is_basic_table): Likewise.
76013         Reported by John Darrington.
76014
76015 2006-10-25  Bruno Haible  <bruno@clisp.org>
76016
76017         * lib/progname.h (set_program_name): Undefine before defining.
76018
76019 2006-10-25  Bruno Haible  <bruno@clisp.org>
76020
76021         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76022         false for non-gcc C++ compilers.
76023         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76024
76025 2006-10-24  Bruno Haible  <bruno@clisp.org>
76026
76027         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76028         iconv implementations like Irix iconv.
76029
76030 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76031
76032         * modules/vararrays: New file.
76033         * m4/vararrays.m4: New file, taken from diffutils.
76034         * MODULES.html.sh: New module vararrays.
76035
76036 2006-10-24  Karl Berry  <karl@gnu.org>
76037
76038         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76039         Don't call GNU Unix.
76040
76041 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76042
76043         * users.txt: Add Libtool.
76044
76045         Sync from Libtool:
76046
76047         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76048
76049         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76050         to gnulib's policy of including config.h unconditionally.
76051
76052 2006-10-24  Bruno Haible  <bruno@clisp.org>
76053
76054         * modules/wcwidth (Files): Add m4/wint_t.m4.
76055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76056         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76057
76058 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76059
76060         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76061         to pacify GCC with some -W flags enabled.  Problem reported by
76062         Bruno Haible.
76063
76064 2006-10-24  Jim Meyering  <jim@meyering.net>
76065
76066         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76067         Reported by Karl Berry.
76068
76069 2006-10-23  Bruno Haible  <bruno@clisp.org>
76070
76071         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76072
76073 2006-10-24  Bruno Haible  <bruno@clisp.org>
76074
76075         * lib/gl_list.h: Use C comment style, not C++ comment style.
76076
76077 2006-10-23  Eric Blake  <ebb9@byu.net>
76078
76079         * lib/getaddrinfo.c (includes): Add missing include.
76080
76081 2006-10-23  Bruno Haible  <bruno@clisp.org>
76082             Paul Eggert  <eggert@cs.ucla.edu>
76083
76084         Ability to rename obstack_free.
76085         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76086         obstack_free.
76087         (obstack_free): Invoke the __obstack_free macro.
76088         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76089
76090 2006-10-23  Bruno Haible  <bruno@clisp.org>
76091             Paul Eggert  <eggert@cs.ucla.edu>
76092
76093         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76094         __argc, __argv from the declaration. (They are defined as macros on
76095         mingw.)
76096
76097 2006-10-22  Bruno Haible  <bruno@clisp.org>
76098
76099         * doc/gnulib-intro.texi: New file.
76100         * doc/gnulib.texi: Include it.
76101
76102 2006-10-21  Bruno Haible  <bruno@clisp.org>
76103
76104         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76105         "Introduction", "Miscellanous Notes", "Particular Modules".
76106
76107 2006-10-21  Bruno Haible  <bruno@clisp.org>
76108
76109         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76110         Change mostlyclean-local rule to avoid sh syntax error from bash
76111         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76112
76113 2006-10-23  Jim Meyering  <jim@meyering.net>
76114
76115         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76116         in place of snprintf.
76117
76118         * modules/inttostr (Files): Add lib/uinttostr.c.
76119         * lib/uinttostr.c (inttostr): New file/function.
76120         * lib/inttostr.h (uinttostr): Declare.
76121         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76122         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76123         Add uinttostr.
76124         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76125
76126 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76127
76128         * lib/canonicalize.c (ELOOP): Define if not already defined.
76129         Problem reported by Bruno Haible in
76130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76131
76132 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76135         Problem reported by Perry Smith and Ville Laurikari.
76136
76137         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76138         uses.
76139
76140 2006-10-19  Bruno Haible  <bruno@clisp.org>
76141
76142         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76143         for mingw.
76144
76145 2006-10-19  Bruno Haible  <bruno@clisp.org>
76146
76147         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76148         Needed for mingw.
76149
76150 2006-10-19  Bruno Haible  <bruno@clisp.org>
76151
76152         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76153
76154 2006-10-19  Bruno Haible  <bruno@clisp.org>
76155
76156         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76157         it.
76158
76159 2006-10-19  Bruno Haible  <bruno@clisp.org>
76160
76161         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76162         invocation.
76163
76164 2006-10-19  Bruno Haible  <bruno@clisp.org>
76165
76166         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76167         mountlist by default.
76168
76169 2006-10-16  Bruno Haible  <bruno@clisp.org>
76170
76171         * lib/c-strstr.c: Include c-strstr.h.
76172
76173 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76174
76175         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76176         in a slash.
76177
76178 2006-10-18  Bruno Haible  <bruno@clisp.org>
76179
76180         * lib/lock.h [C++]: Wrap definitions in extern "C".
76181
76182 2006-10-18  Bruno Haible  <bruno@clisp.org>
76183
76184         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76185         gl_LIBOBJS list.
76186
76187 2006-10-18  Bruno Haible  <bruno@clisp.org>
76188
76189         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76190
76191 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76192
76193         * lib/xstrtol.h: Include gettext.h.
76194         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76195         Problem reported by Eric Blake.
76196         * modules/xstrtol (Depends-on): Add gettext-h.
76197
76198 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76199
76200         * lib/strftime.c (advance): New macro.
76201         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76202         incomplete type, so you can't add 0 to it.  Problem and patch
76203         reported by Eelco Dolstra for dietlibc.
76204
76205 2006-10-18  Jim Meyering  <jim@meyering.net>
76206
76207         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76208         type for a local, and rename it: s/up/user_proc/.
76209
76210 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76211
76212         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76213         READ_UTMP_USER_PROCESS.
76214         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76215
76216 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76217
76218         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76219         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76220
76221 2006-10-17  Eric Blake  <ebb9@byu.net>
76222
76223         * lib/sigprocmask.c (sigprocmask): Fix typo.
76224
76225         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76226
76227         * modules/clean-temp (Makefile.am): Don't add to make output...
76228         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76229         config.h.
76230
76231 2006-10-17  Bruno Haible  <bruno@clisp.org>
76232
76233         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76234         differently if DEFAULT_TEXT_DOMAIN is set.
76235
76236 2006-10-16  Bruno Haible  <bruno@clisp.org>
76237
76238         * lib/clean-temp.c: Include fwriteerror.h.
76239
76240 2006-10-16  Bruno Haible  <bruno@clisp.org>
76241
76242         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76243
76244 2006-10-16  Bruno Haible  <bruno@clisp.org>
76245
76246         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76247         * lib/sigprocmask.h: Include <sys/types.h>.
76248         (sigset_t): Use the system's definition if present.
76249
76250 2006-10-17  Eric Blake  <ebb9@byu.net>
76251
76252         * lib/xvasprintf.c (includes): Assume config.h.
76253         * lib/xasprintf.c (includes): Likewise.
76254
76255 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76256
76257         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76258         at least as wide as intmax_t.
76259
76260 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76261
76262         (Imported from Automake.)
76263         * build-aux/gnupload: Update to version 1.1 of directive file.
76264
76265 2006-10-16  Eric Blake  <ebb9@byu.net>
76266
76267         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76268         match Automake 1.10a.
76269
76270 2006-10-14  Bruno Haible  <bruno@clisp.org>
76271
76272         * modules/sigprocmask: New file.
76273         * lib/sigprocmask.h: New file.
76274         * lib/sigprocmask.c: New file.
76275         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76276         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76277         request sigprocmask.o.
76278         (gl_PREREQ_SIGPROCMASK): New macro.
76279         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76280         (Depends-on): Add sigprocmask.
76281         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76282         gt_SIGNALBLOCKING. Test for 'raise' only once.
76283         * lib/fatal-signal.c: Include sigprocmask.h.
76284         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76285         unblock_fatal_signals): Define always.
76286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76287         sigprocmask.
76288
76289 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76290
76291         Sync from Automake.
76292         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76293         which incorrectly sets the mode of an existing destination
76294         directory.  In some cases the unpatched install-sh could do the
76295         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76296         system.  We hope this is rare in practice, but it's clearly worth
76297         fixing.  Problem reported by Alex Unleashed in
76298         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76299         Also, don't bother to check for -m bugs unless we're using -m;
76300         suggested by Stepan Kasal.
76301
76302 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76303
76304         Sync from Automake.
76305         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76306         `-c' flag, so they appear at the same position as in %FASTDEP%
76307         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76308         which ignores unknown options only after the first non-option.
76309         Bug report against M4 by Nelson H. F. Beebe.
76310
76311 2006-10-13  Jim Meyering  <jim@meyering.net>
76312
76313         Fix a bug in yesterday's change.
76314         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76315         p->fts_statp->st_dev would be used uninitialized.
76316         Ensures that we always call fts_stat on the very first entry.
76317         Miklos Szeredi reported that find -xdev stopped working.
76318
76319 2006-10-12  Bruno Haible  <bruno@clisp.org>
76320
76321         * gnulib-tool (func_get_automake_snippet): Append an automatically
76322         computed EXTRA_DIST augmentation.
76323         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76324         * modules/alloca-opt (Makefile.am): Likewise.
76325         * modules/allocsa (Makefile.am): Likewise.
76326         * modules/arcfour (Makefile.am): Likewise.
76327         * modules/arctwo (Makefile.am): Likewise.
76328         * modules/argmatch (Makefile.am): Likewise.
76329         * modules/argz (Makefile.am): Likewise.
76330         * modules/atexit (Makefile.am): Likewise.
76331         * modules/backupfile (Makefile.am): Likewise.
76332         * modules/byteswap (Makefile.am): Likewise.
76333         * modules/c-strtod (Makefile.am): Likewise.
76334         * modules/c-strtold (Makefile.am): Likewise.
76335         * modules/calloc (Makefile.am): Likewise.
76336         * modules/canon-host (Makefile.am): Likewise.
76337         * modules/canonicalize (Makefile.am): Likewise.
76338         * modules/chdir-long (Makefile.am): Likewise.
76339         * modules/chdir-safer (Makefile.am): Likewise.
76340         * modules/check-version (Makefile.am): Likewise.
76341         * modules/chown (Makefile.am): Likewise.
76342         * modules/cloexec (Makefile.am): Likewise.
76343         * modules/close-stream (Makefile.am): Likewise.
76344         * modules/closeout (Makefile.am): Likewise.
76345         * modules/crc (Makefile.am): Likewise.
76346         * modules/csharpexec (Makefile.am): Likewise.
76347         * modules/cycle-check (Makefile.am): Likewise.
76348         * modules/des (Makefile.am): Likewise.
76349         * modules/dev-ino (Makefile.am): Likewise.
76350         * modules/dirfd (Makefile.am): Likewise.
76351         * modules/dirname (Makefile.am): Likewise.
76352         * modules/dup2 (Makefile.am): Likewise.
76353         * modules/eealloc (Makefile.am): Likewise.
76354         * modules/error (Makefile.am): Likewise.
76355         * modules/euidaccess (Makefile.am): Likewise.
76356         * modules/exclude (Makefile.am): Likewise.
76357         * modules/exitfail (Makefile.am): Likewise.
76358         * modules/fcntl-safer (Makefile.am): Likewise.
76359         * modules/fcntl (Makefile.am): Likewise.
76360         * modules/file-type (Makefile.am): Likewise.
76361         * modules/fileblocks (Makefile.am): Likewise.
76362         * modules/filemode (Makefile.am): Likewise.
76363         * modules/filenamecat (Makefile.am): Likewise.
76364         * modules/fnmatch (Makefile.am): Likewise.
76365         * modules/fopen-safer (Makefile.am): Likewise.
76366         * modules/fpending (Makefile.am): Likewise.
76367         * modules/fprintftime (Makefile.am): Likewise.
76368         * modules/free (Makefile.am): Likewise.
76369         * modules/fsusage (Makefile.am): Likewise.
76370         * modules/ftruncate (Makefile.am): Likewise.
76371         * modules/fts (Makefile.am): Likewise.
76372         * modules/gc-arcfour (Makefile.am): Likewise.
76373         * modules/gc-des (Makefile.am): Likewise.
76374         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76375         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76376         * modules/gc-md4 (Makefile.am): Likewise.
76377         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76378         * modules/gc-sha1 (Makefile.am): Likewise.
76379         * modules/gc (Makefile.am): Likewise.
76380         * modules/getaddrinfo (Makefile.am): Likewise.
76381         * modules/getcwd (Makefile.am): Likewise.
76382         * modules/getdelim (Makefile.am): Likewise.
76383         * modules/getdomainname (Makefile.am): Likewise.
76384         * modules/getgroups (Makefile.am): Likewise.
76385         * modules/gethostname (Makefile.am): Likewise.
76386         * modules/gethrxtime (Makefile.am): Likewise.
76387         * modules/getline (Makefile.am): Likewise.
76388         * modules/getloadavg (Makefile.am): Likewise.
76389         * modules/getlogin_r (Makefile.am): Likewise.
76390         * modules/getndelim2 (Makefile.am): Likewise.
76391         * modules/getopt (Makefile.am): Likewise.
76392         * modules/getpagesize (Makefile.am): Likewise.
76393         * modules/getpass-gnu (Makefile.am): Likewise.
76394         * modules/getpass (Makefile.am): Likewise.
76395         * modules/getsubopt (Makefile.am): Likewise.
76396         * modules/gettime (Makefile.am): Likewise.
76397         * modules/gettimeofday (Makefile.am): Likewise.
76398         * modules/getugroups (Makefile.am): Likewise.
76399         * modules/getusershell (Makefile.am): Likewise.
76400         * modules/glob (Makefile.am): Likewise.
76401         * modules/group-member (Makefile.am): Likewise.
76402         * modules/hard-locale (Makefile.am): Likewise.
76403         * modules/hash (Makefile.am): Likewise.
76404         * modules/hmac-md5 (Makefile.am): Likewise.
76405         * modules/hmac-sha1 (Makefile.am): Likewise.
76406         * modules/human (Makefile.am): Likewise.
76407         * modules/idcache (Makefile.am): Likewise.
76408         * modules/imaxabs (Makefile.am): Likewise.
76409         * modules/imaxdiv (Makefile.am): Likewise.
76410         * modules/inet_ntop (Makefile.am): Likewise.
76411         * modules/inet_pton (Makefile.am): Likewise.
76412         * modules/intprops (Makefile.am): Likewise.
76413         * modules/inttostr (Makefile.am): Likewise.
76414         * modules/inttypes (Makefile.am): Likewise.
76415         * modules/isapipe (Makefile.am): Likewise.
76416         * modules/javaversion (Makefile.am): Likewise.
76417         * modules/lchmod (Makefile.am): Likewise.
76418         * modules/lchown (Makefile.am): Likewise.
76419         * modules/localcharset (Makefile.am): Likewise.
76420         * modules/long-options (Makefile.am): Likewise.
76421         * modules/lstat (Makefile.am): Likewise.
76422         * modules/malloc (Makefile.am): Likewise.
76423         * modules/mathl (Makefile.am): Likewise.
76424         * modules/mbchar (Makefile.am): Likewise.
76425         * modules/md2 (Makefile.am): Likewise.
76426         * modules/md4 (Makefile.am): Likewise.
76427         * modules/md5 (Makefile.am): Likewise.
76428         * modules/memcasecmp (Makefile.am): Likewise.
76429         * modules/memchr (Makefile.am): Likewise.
76430         * modules/memcmp (Makefile.am): Likewise.
76431         * modules/memcoll (Makefile.am): Likewise.
76432         * modules/memcpy (Makefile.am): Likewise.
76433         * modules/memmem (Makefile.am): Likewise.
76434         * modules/memmove (Makefile.am): Likewise.
76435         * modules/mempcpy (Makefile.am): Likewise.
76436         * modules/memrchr (Makefile.am): Likewise.
76437         * modules/memset (Makefile.am): Likewise.
76438         * modules/memxor (Makefile.am): Likewise.
76439         * modules/mkancesdirs (Makefile.am): Likewise.
76440         * modules/mkdir-p (Makefile.am): Likewise.
76441         * modules/mkdir (Makefile.am): Likewise.
76442         * modules/mkdtemp (Makefile.am): Likewise.
76443         * modules/mkstemp (Makefile.am): Likewise.
76444         * modules/mktime (Makefile.am): Likewise.
76445         * modules/modechange (Makefile.am): Likewise.
76446         * modules/mountlist (Makefile.am): Likewise.
76447         * modules/nanosleep (Makefile.am): Likewise.
76448         * modules/obstack (Makefile.am): Likewise.
76449         * modules/openat (Makefile.am): Likewise.
76450         * modules/pagealign_alloc (Makefile.am): Likewise.
76451         * modules/pathmax (Makefile.am): Likewise.
76452         * modules/physmem (Makefile.am): Likewise.
76453         * modules/poll (Makefile.am): Likewise.
76454         * modules/posixtm (Makefile.am): Likewise.
76455         * modules/posixver (Makefile.am): Likewise.
76456         * modules/putenv (Makefile.am): Likewise.
76457         * modules/quote (Makefile.am): Likewise.
76458         * modules/quotearg (Makefile.am): Likewise.
76459         * modules/raise (Makefile.am): Likewise.
76460         * modules/read-file (Makefile.am): Likewise.
76461         * modules/readline (Makefile.am): Likewise.
76462         * modules/readlink (Makefile.am): Likewise.
76463         * modules/readtokens (Makefile.am): Likewise.
76464         * modules/readutmp (Makefile.am): Likewise.
76465         * modules/realloc (Makefile.am): Likewise.
76466         * modules/regex (Makefile.am): Likewise.
76467         * modules/rename-dest-slash (Makefile.am): Likewise.
76468         * modules/rename (Makefile.am): Likewise.
76469         * modules/rijndael (Makefile.am): Likewise.
76470         * modules/rmdir (Makefile.am): Likewise.
76471         * modules/rpmatch (Makefile.am): Likewise.
76472         * modules/safe-read (Makefile.am): Likewise.
76473         * modules/safe-write (Makefile.am): Likewise.
76474         * modules/same-inode (Makefile.am): Likewise.
76475         * modules/same (Makefile.am): Likewise.
76476         * modules/save-cwd (Makefile.am): Likewise.
76477         * modules/savedir (Makefile.am): Likewise.
76478         * modules/setenv (Makefile.am): Likewise.
76479         * modules/settime (Makefile.am): Likewise.
76480         * modules/sha1 (Makefile.am): Likewise.
76481         * modules/sig2str (Makefile.am): Likewise.
76482         * modules/snprintf (Makefile.am): Likewise.
76483         * modules/stat-macros (Makefile.am): Likewise.
76484         * modules/stat-time (Makefile.am): Likewise.
76485         * modules/stdbool (Makefile.am): Likewise.
76486         * modules/stdint (Makefile.am): Likewise.
76487         * modules/stdlib-safer (Makefile.am): Likewise.
76488         * modules/stpcpy (Makefile.am): Likewise.
76489         * modules/stpncpy (Makefile.am): Likewise.
76490         * modules/strcase (Makefile.am): Likewise.
76491         * modules/strcasestr (Makefile.am): Likewise.
76492         * modules/strchrnul (Makefile.am): Likewise.
76493         * modules/strcspn (Makefile.am): Likewise.
76494         * modules/strdup (Makefile.am): Likewise.
76495         * modules/strerror (Makefile.am): Likewise.
76496         * modules/strftime (Makefile.am): Likewise.
76497         * modules/strndup (Makefile.am): Likewise.
76498         * modules/strnlen (Makefile.am): Likewise.
76499         * modules/strpbrk (Makefile.am): Likewise.
76500         * modules/strsep (Makefile.am): Likewise.
76501         * modules/strstr (Makefile.am): Likewise.
76502         * modules/strtod (Makefile.am): Likewise.
76503         * modules/strtoimax (Makefile.am): Likewise.
76504         * modules/strtok_r (Makefile.am): Likewise.
76505         * modules/strtol (Makefile.am): Likewise.
76506         * modules/strtoll (Makefile.am): Likewise.
76507         * modules/strtoul (Makefile.am): Likewise.
76508         * modules/strtoull (Makefile.am): Likewise.
76509         * modules/strtoumax (Makefile.am): Likewise.
76510         * modules/strverscmp (Makefile.am): Likewise.
76511         * modules/sys_socket (Makefile.am): Likewise.
76512         * modules/sys_stat (Makefile.am): Likewise.
76513         * modules/sysexits (Makefile.am): Likewise.
76514         * modules/time_r (Makefile.am): Likewise.
76515         * modules/timegm (Makefile.am): Likewise.
76516         * modules/timespec (Makefile.am): Likewise.
76517         * modules/tmpfile-safer (Makefile.am): Likewise.
76518         * modules/trim (Makefile.am): Likewise.
76519         * modules/unistd-safer (Makefile.am): Likewise.
76520         * modules/unlinkdir (Makefile.am): Likewise.
76521         * modules/unlocked-io (Makefile.am): Likewise.
76522         * modules/userspec (Makefile.am): Likewise.
76523         * modules/utime (Makefile.am): Likewise.
76524         * modules/utimecmp (Makefile.am): Likewise.
76525         * modules/utimens (Makefile.am): Likewise.
76526         * modules/vasnprintf (Makefile.am): Likewise.
76527         * modules/vasprintf (Makefile.am): Likewise.
76528         * modules/vsnprintf (Makefile.am): Likewise.
76529         * modules/xalloc (Makefile.am): Likewise.
76530         * modules/xgetcwd (Makefile.am): Likewise.
76531         * modules/xnanosleep (Makefile.am): Likewise.
76532         * modules/xreadlink (Makefile.am): Likewise.
76533         * modules/xstrtod (Makefile.am): Likewise.
76534         * modules/xstrtol (Makefile.am): Likewise.
76535         * modules/xstrtold (Makefile.am): Likewise.
76536         * modules/yesno (Makefile.am): Likewise.
76537         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76538
76539 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76540
76541         * modules/error (Makefile.am): Distribute files through
76542         EXTRA_DIST, not lib_SOURCES.
76543
76544 2006-10-12  Eric Blake  <ebb9@byu.net>
76545
76546         * modules/error (Makefile.am): Distribute files in /lib.
76547         * modules/obstack (Makefile.am): Likewise.
76548
76549 2006-10-12  Bruno Haible  <bruno@clisp.org>
76550
76551         * modules/acl (Makefile.am): Distribute all files in lib/ through
76552         EXTRA_DIST.
76553         * modules/arcfour (Makefile.am): Likewise.
76554         * modules/arctwo (Makefile.am): Likewise.
76555         * modules/argmatch (Makefile.am): Likewise.
76556         * modules/argz (Makefile.am): Likewise.
76557         * modules/atexit (Makefile.am): Likewise.
76558         * modules/backupfile (Makefile.am): Likewise.
76559         * modules/c-strtod (Makefile.am): Likewise.
76560         * modules/c-strtold (Makefile.am): Likewise.
76561         * modules/calloc (Makefile.am): Likewise.
76562         * modules/canon-host (Makefile.am): Likewise.
76563         * modules/canonicalize (Makefile.am): Likewise.
76564         * modules/chdir-long (Makefile.am): Likewise.
76565         * modules/chdir-safer (Makefile.am): Likewise.
76566         * modules/check-version (Makefile.am): Likewise.
76567         * modules/chown (Makefile.am): Likewise.
76568         * modules/cloexec (Makefile.am): Likewise.
76569         * modules/close-stream (Makefile.am): Likewise.
76570         * modules/closeout (Makefile.am): Likewise.
76571         * modules/crc (Makefile.am): Likewise.
76572         * modules/cycle-check (Makefile.am): Likewise.
76573         * modules/des (Makefile.am): Likewise.
76574         * modules/dirfd (Makefile.am): Likewise.
76575         * modules/dirname (Makefile.am): Likewise.
76576         * modules/dup2 (Makefile.am): Likewise.
76577         * modules/euidaccess (Makefile.am): Likewise.
76578         * modules/exclude (Makefile.am): Likewise.
76579         * modules/exitfail (Makefile.am): Likewise.
76580         * modules/fcntl-safer (Makefile.am): Likewise.
76581         * modules/file-type (Makefile.am): Likewise.
76582         * modules/fileblocks (Makefile.am): Likewise.
76583         * modules/filemode (Makefile.am): Likewise.
76584         * modules/filenamecat (Makefile.am): Likewise.
76585         * modules/fnmatch (Makefile.am): Likewise.
76586         * modules/fopen-safer (Makefile.am): Likewise.
76587         * modules/fpending (Makefile.am): Likewise.
76588         * modules/fprintftime (Makefile.am): Likewise.
76589         * modules/free (Makefile.am): Likewise.
76590         * modules/fsusage (Makefile.am): Likewise.
76591         * modules/ftruncate (Makefile.am): Likewise.
76592         * modules/fts (Makefile.am): Likewise.
76593         * modules/gc (Makefile.am): Likewise.
76594         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76595         * modules/getaddrinfo (Makefile.am): Likewise.
76596         * modules/getcwd (Makefile.am): Likewise.
76597         * modules/getdelim (Makefile.am): Likewise.
76598         * modules/getdomainname (Makefile.am): Likewise.
76599         * modules/getgroups (Makefile.am): Likewise.
76600         * modules/gethostname (Makefile.am): Likewise.
76601         * modules/gethrxtime (Makefile.am): Likewise.
76602         * modules/getline (Makefile.am): Likewise.
76603         * modules/getloadavg (Makefile.am): Likewise.
76604         * modules/getlogin_r (Makefile.am): Likewise.
76605         * modules/getopt (Makefile.am): Likewise.
76606         * modules/getpass (Makefile.am): Likewise.
76607         * modules/getpass-gnu (Makefile.am): Likewise.
76608         * modules/getsubopt (Makefile.am): Likewise.
76609         * modules/gettime (Makefile.am): Likewise.
76610         * modules/gettimeofday (Makefile.am): Likewise.
76611         * modules/getugroups (Makefile.am): Likewise.
76612         * modules/getusershell (Makefile.am): Likewise.
76613         * modules/glob (Makefile.am): Likewise.
76614         * modules/group-member (Makefile.am): Likewise.
76615         * modules/hard-locale (Makefile.am): Likewise.
76616         * modules/hash (Makefile.am): Likewise.
76617         * modules/hmac-md5 (Makefile.am): Likewise.
76618         * modules/hmac-sha1 (Makefile.am): Likewise.
76619         * modules/human (Makefile.am): Likewise.
76620         * modules/idcache (Makefile.am): Likewise.
76621         * modules/imaxabs (Makefile.am): Likewise.
76622         * modules/imaxdiv (Makefile.am): Likewise.
76623         * modules/inet_ntop (Makefile.am): Likewise.
76624         * modules/inet_pton (Makefile.am): Likewise.
76625         * modules/inttostr (Makefile.am): Likewise.
76626         * modules/isapipe (Makefile.am): Likewise.
76627         * modules/lchown (Makefile.am): Likewise.
76628         * modules/long-options (Makefile.am): Likewise.
76629         * modules/lstat (Makefile.am): Likewise.
76630         * modules/malloc (Makefile.am): Likewise.
76631         * modules/mathl (Makefile.am): Likewise.
76632         * modules/mbchar (Makefile.am): Likewise.
76633         * modules/md2 (Makefile.am): Likewise.
76634         * modules/md4 (Makefile.am): Likewise.
76635         * modules/md5 (Makefile.am): Likewise.
76636         * modules/memcasecmp (Makefile.am): Likewise.
76637         * modules/memchr (Makefile.am): Likewise.
76638         * modules/memcmp (Makefile.am): Likewise.
76639         * modules/memcoll (Makefile.am): Likewise.
76640         * modules/memcpy (Makefile.am): Likewise.
76641         * modules/memmem (Makefile.am): Likewise.
76642         * modules/memmove (Makefile.am): Likewise.
76643         * modules/mempcpy (Makefile.am): Likewise.
76644         * modules/memrchr (Makefile.am): Likewise.
76645         * modules/memset (Makefile.am): Likewise.
76646         * modules/memxor (Makefile.am): Likewise.
76647         * modules/mkancesdirs (Makefile.am): Likewise.
76648         * modules/mkdir (Makefile.am): Likewise.
76649         * modules/mkdir-p (Makefile.am): Likewise.
76650         * modules/mkdtemp (Makefile.am): Likewise.
76651         * modules/mkstemp (Makefile.am): Likewise.
76652         * modules/mktime (Makefile.am): Likewise.
76653         * modules/modechange (Makefile.am): Likewise.
76654         * modules/mountlist (Makefile.am): Likewise.
76655         * modules/nanosleep (Makefile.am): Likewise.
76656         * modules/openat (Makefile.am): Likewise.
76657         * modules/pagealign_alloc (Makefile.am): Likewise.
76658         * modules/physmem (Makefile.am): Likewise.
76659         * modules/poll (Makefile.am): Likewise.
76660         * modules/posixtm (Makefile.am): Likewise.
76661         * modules/posixver (Makefile.am): Likewise.
76662         * modules/putenv (Makefile.am): Likewise.
76663         * modules/quote (Makefile.am): Likewise.
76664         * modules/quotearg (Makefile.am): Likewise.
76665         * modules/raise (Makefile.am): Likewise.
76666         * modules/read-file (Makefile.am): Likewise.
76667         * modules/readline (Makefile.am): Likewise.
76668         * modules/readlink (Makefile.am): Likewise.
76669         * modules/readtokens (Makefile.am): Likewise.
76670         * modules/readutmp (Makefile.am): Likewise.
76671         * modules/realloc (Makefile.am): Likewise.
76672         * modules/regex (Makefile.am): Likewise.
76673         * modules/rename (Makefile.am): Likewise.
76674         * modules/rename-dest-slash (Makefile.am): Likewise.
76675         * modules/rijndael (Makefile.am): Likewise.
76676         * modules/rmdir (Makefile.am): Likewise.
76677         * modules/rpmatch (Makefile.am): Likewise.
76678         * modules/safe-read (Makefile.am): Likewise.
76679         * modules/safe-write (Makefile.am): Likewise.
76680         * modules/same (Makefile.am): Likewise.
76681         * modules/save-cwd (Makefile.am): Likewise.
76682         * modules/savedir (Makefile.am): Likewise.
76683         * modules/setenv (Makefile.am): Likewise.
76684         * modules/settime (Makefile.am): Likewise.
76685         * modules/sha1 (Makefile.am): Likewise.
76686         * modules/sig2str (Makefile.am): Likewise.
76687         * modules/snprintf (Makefile.am): Likewise.
76688         * modules/stdlib-safer (Makefile.am): Likewise.
76689         * modules/stpcpy (Makefile.am): Likewise.
76690         * modules/stpncpy (Makefile.am): Likewise.
76691         * modules/strcase (Makefile.am): Likewise.
76692         * modules/strcasestr (Makefile.am): Likewise.
76693         * modules/strchrnul (Makefile.am): Likewise.
76694         * modules/strcspn (Makefile.am): Likewise.
76695         * modules/strdup (Makefile.am): Likewise.
76696         * modules/strerror (Makefile.am): Likewise.
76697         * modules/strftime (Makefile.am): Likewise.
76698         * modules/strndup (Makefile.am): Likewise.
76699         * modules/strnlen (Makefile.am): Likewise.
76700         * modules/strpbrk (Makefile.am): Likewise.
76701         * modules/strsep (Makefile.am): Likewise.
76702         * modules/strstr (Makefile.am): Likewise.
76703         * modules/strtod (Makefile.am): Likewise.
76704         * modules/strtoimax (Makefile.am): Likewise.
76705         * modules/strtok_r (Makefile.am): Likewise.
76706         * modules/strtol (Makefile.am): Likewise.
76707         * modules/strtoll (Makefile.am): Likewise.
76708         * modules/strtoul (Makefile.am): Likewise.
76709         * modules/strtoull (Makefile.am): Likewise.
76710         * modules/strtoumax (Makefile.am): Likewise.
76711         * modules/strverscmp (Makefile.am): Likewise.
76712         * modules/time_r (Makefile.am): Likewise.
76713         * modules/timegm (Makefile.am): Likewise.
76714         * modules/tmpfile-safer (Makefile.am): Likewise.
76715         * modules/unistd-safer (Makefile.am): Likewise.
76716         * modules/unlinkdir (Makefile.am): Likewise.
76717         * modules/userspec (Makefile.am): Likewise.
76718         * modules/utime (Makefile.am): Likewise.
76719         * modules/utimecmp (Makefile.am): Likewise.
76720         * modules/utimens (Makefile.am): Likewise.
76721         * modules/vasnprintf (Makefile.am): Likewise.
76722         * modules/vasprintf (Makefile.am): Likewise.
76723         * modules/vsnprintf (Makefile.am): Likewise.
76724         * modules/xalloc (Makefile.am): Likewise.
76725         * modules/xgetcwd (Makefile.am): Likewise.
76726         * modules/xnanosleep (Makefile.am): Likewise.
76727         * modules/xreadlink (Makefile.am): Likewise.
76728         * modules/xstrtod (Makefile.am): Likewise.
76729         * modules/xstrtol (Makefile.am): Likewise.
76730         * modules/xstrtold (Makefile.am): Likewise.
76731         * modules/yesno (Makefile.am): Likewise.
76732
76733 2006-10-12  Jim Meyering  <jim@meyering.net>
76734
76735         * m4/getloadavg.m4: Revert the change below.
76736
76737         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76738         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76739         fail with a symlink, which is what coreutils' ./bootstrap now
76740         creates by default.
76741
76742 2006-10-12  Bruno Haible  <bruno@clisp.org>
76743
76744         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76745         mingw.
76746         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76747         MSVC and mingw explicitly.
76748
76749 2006-10-11  Simon Josefsson  <jas@extundo.com>
76750             Bruno Haible  <bruno@clisp.org>
76751
76752         Add support for multiple gnulib-tool invocations in the scope of a
76753         single configure.ac file.
76754         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76755         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76756         with the same contents as the _LIBADD variable.
76757         (func_emit_initmacro_start, func_emit_initmacro_end,
76758         func_emit_initmacro_done): New functions.
76759         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76760         gl_LIBOBJS and gl_LTLIBOBJS.
76761
76762 2006-10-11  Bruno Haible  <bruno@clisp.org>
76763
76764         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76765         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76766         autoreconf. Instead, invoke autopoint explicitly but move back the
76767         *.m4 files from gnulib.
76768
76769 2006-10-11  Bruno Haible  <bruno@clisp.org>
76770
76771         * gnulib-tool (func_usage): Make module names after --create-testdir
76772         optional.
76773         (func_create_testdir): If no module was specified, use nearly all
76774         modules.
76775
76776 2006-10-12  Jim Meyering  <jim@meyering.net>
76777
76778         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76779         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76780         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76781         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76782         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76783         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76784         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76785         (fts_set_stat_required): New function.
76786         (fts_open): Defer the calls to fts_stat, if possible or requested.
76787         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76788         into fts_stat itself.
76789         (fts_read): Perform any required (deferred) fts_stat call.
76790         (fts_build): Likewise, for the directory we're about to open and read.
76791         In the readdir loop, carefully decide whether each entry will require
76792         an eventual call to fts_stat, using dirent.d_type info if available.
76793         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76794         a command line argument into this function.  Update all callers.
76795         Map a return value of FTS_DOT to FTS_D for a command line argument.
76796         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76797         Thanks to Miklos Szeredi for his tenacity and for the initial
76798         bug report about "find" failing on a FUSE-based file system.
76799
76800         * lib/fts.c (fts_open): Use consistent indentation.
76801
76802 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76803
76804         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76805         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76806         reported by Jim Meyering.  All uses of cache variables renamed
76807         to match Autoconf's.
76808         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76809         the other one.
76810
76811         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76812         Fix misspelling in diagnostic.
76813
76814 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76815
76816         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76817         defined.  Problem reported by Matthew Woehlke.
76818
76819         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76820         Add support for Tandem NonStop R series.
76821         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76822         Use new macro.
76823
76824         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76825         (has_trailing_slash): Omit size arg; all callers changed.
76826         Omit 'inline', since it doesn't help performance and we'd
76827         need to configure it.
76828         Don't count //, ///, etc. as having a trailing slash.
76829         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76830         (rpl_rename_dest_slash): On failure, use rename's errno rather
76831         than (in some cases) an incorrect or junk errno.
76832         Simplify code by removing need to compute length; this does
76833         cause it to make two passes instead of one over the file name,
76834         but it's worth it.
76835
76836         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76837         change, since Autoconf's version may no longer be appropriate now
76838         that we are using CVS Autoconf's version.  Add support for Tandem.
76839
76840 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76841             Bruno Haible  <bruno@clisp.org>
76842
76843         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76844         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76845         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76846         gl_AC_TYPE_LONG_LONG.
76847
76848         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76849         instead of HAVE_LONG_LONG.
76850         * lib/printf-args.c (printf_fetchargs): Likewise.
76851         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76852         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76853         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76854         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76855         gl_AC_TYPE_LONG_LONG.
76856
76857 2006-10-11  Bruno Haible  <bruno@clisp.org>
76858
76859         * m4/longlong.m4: Add comments.
76860         * m4/ulonglong.m4: Likewise.
76861
76862 2006-10-10  Bruno Haible  <bruno@clisp.org>
76863
76864         Make it possible to #define stpcpy, strdup to aliases.
76865         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76866         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76867
76868 2006-10-10  Bruno Haible  <bruno@clisp.org>
76869
76870         Make it possible to #define gcd to an alias.
76871         * lib/gcd.c: Include config.h.
76872
76873 2006-10-10  Bruno Haible  <bruno@clisp.org>
76874
76875         Make it possible to #define c_isascii to an alias.
76876         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76877         defined. Undefine the macros before defining them, to avoid gcc
76878         warnings.
76879         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76880         define NO_C_CTYPE_MACROS early.
76881
76882 2006-10-10  Bruno Haible  <bruno@clisp.org>
76883
76884         Make it possible to #define set_program_name to an alias.
76885         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76886         ENABLE_RELOCATABLE early.
76887
76888 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76889
76890         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76891         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76892         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76893         More generally, don't assume that 64-bit signed int is available
76894         if unsigned int is, and vice versa.
76895         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76896         unsigned symbols, not on their signed counterparts.
76897         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76898         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76899         (UINT64_C, UINTMAX_C):
76900         Likewise.
76901         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76902         unsigned counterparts.
76903         (Have_long_long, Unsigned): New macros.
76904         (Int): Renamed from INT.
76905         (strtoimax): Use the new macros.
76906         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76907         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76908         * modules/inttypes (inttypes.h): Substitute
76909         HAVE_UNSIGNED_LONG_LONG_INT.
76910         * modules/stdint (stdint.h): Likewise.
76911         (Files): Add m4/ulonglong.m4.
76912
76913 2006-10-10  Bruno Haible  <bruno@clisp.org>
76914
76915         Fix a gcc -Wshadow warning.
76916         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76917         to 'bucket'.
76918         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76919         gl_linked_indexof_from_to): Likewise.
76920         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76921         Likewise.
76922         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76923         Likewise.
76924         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76925         Reported by Eric Blake.
76926
76927 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76928
76929         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76930         for NetBSD.  Problem reported by Bruno Haible.
76931
76932 2006-10-09  Jim Meyering  <jim@meyering.net>
76933
76934         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76935         Patch from Bruno Haible.
76936
76937 2006-10-09  Jim Meyering  <jim@meyering.net>
76938
76939         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76940         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76941         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76942
76943 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         Don't include <config.h> twice; this doesn't work in some cases,
76946         e.g., when config.h has "#define intmax_t long long int" and
76947         we include <config.h>, <inttypes.h>, <config.h> in that order.
76948         Problem reported by Matthew Woehlke in:
76949         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76950         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76951         * lib/fts-cycle.c: Don't include config.h.
76952         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76953         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76954         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76955         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76956         inttypes.h.
76957         * lib/xstrtoumax.c: Likewise.
76958         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76959         __strtol and the like, so that this module is more like its siblings.
76960         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76961         Remove; no longer needed now that we assume gnulib inttypes.h.
76962
76963 2006-10-08  Bruno Haible  <bruno@clisp.org>
76964
76965         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76966         option.
76967
76968 2006-10-07  Jim Meyering  <jim@meyering.net>
76969
76970         * modules/inttypes (inttypes.h): Revert what seems to have been
76971         an inadvertent part of today's change: use "|", not "/" in the
76972         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76973
76974 2006-10-07  Bruno Haible  <bruno@clisp.org>
76975
76976         * modules/sublist: New file.
76977
76978 2006-10-07  Bruno Haible  <bruno@clisp.org>
76979
76980         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76981         * modules/argz (argz.h): Likewise.
76982         * modules/arpa_inet (arpa/inet.h): Likewise.
76983         * modules/byteswap (byteswap.h): Likewise.
76984         * modules/configmake (configmake.h): Likewise.
76985         * modules/fcntl (fcntl.h): Likewise.
76986         * modules/fnmatch (fnmatch.h): Likewise.
76987         * modules/getopt (getopt.h): Likewise.
76988         * modules/glob (glob.h): Likewise.
76989         * modules/inttypes (inttypes.h): Likewise.
76990         * modules/netinet_in (netinet/in.h): Likewise.
76991         * modules/poll (poll.h): Likewise.
76992         * modules/stdbool (stdbool.h): Likewise.
76993         * modules/stdint (stdint.h): Likewise.
76994         * modules/sys_select (sys/select.h): Likewise.
76995         * modules/sys_socket (sys/socket.h): Likewise.
76996         * modules/sys_stat (sys/stat.h): Likewise.
76997         * modules/sysexits (sysexits.h): Likewise.
76998         * modules/unistd (unistd.h): Likewise.
76999         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77000         Add a "DO NOT EDIT" comment to the generated file.
77001         (func_import): Likewise for gnulib-comp.m4.
77002
77003 2006-10-07  Bruno Haible  <bruno@clisp.org>
77004
77005         * lib/gl_sublist.h: New file.
77006         * lib/gl_sublist.c: New file.
77007
77008 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77009
77010         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77011         name (relative to the original working directory) and the file
77012         name component (relative to the temporary working directory).  All
77013         callers changed.
77014         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77015         * lib/mkdir-p.c (make_dir_parents): Likewise.
77016         * lib/mkdir-p.h (make_dir_parents): Likewise.
77017
77018 2006-10-06  Eric Blake  <ebb9@byu.net>
77019
77020         Define several macros for use by the clean-temp module.
77021         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77022         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77023         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77024
77025         * lib/clean-temp.h (close_stream_temp): New declaration.
77026         * lib/clean-temp.c (includes): Pull in headers according to what
77027         other modules are in use.
77028         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77029
77030 2006-10-06  Bruno Haible  <bruno@clisp.org>
77031
77032         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77033         instead of fopen, fwriteerror.
77034
77035 2006-10-06  Bruno Haible  <bruno@clisp.org>
77036
77037         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77038         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77039         int.
77040         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77041         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77042         Return an error indicator.
77043         Suggested by Eric Blake.
77044
77045 2006-10-06  Bruno Haible  <bruno@clisp.org>
77046
77047         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77048         Reported by Eric Blake.
77049
77050 2006-10-06  Bruno Haible  <bruno@clisp.org>
77051
77052         * modules/closeout (Description): Mention stderr too.
77053
77054 2006-10-06  Bruno Haible  <bruno@clisp.org>
77055         and Paul Eggert  <eggert@cs.ucla.edu>
77056
77057         * lib/closeout.c (close_stdout): Also close stderr.
77058         * lib/closeout.h: Update comment.
77059
77060 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77061
77062         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77063         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77064         * lib/dirchownmod.c: Include lchown.h.
77065         * lib/lchown.c: Don't include files that lchown.h now includes.
77066         Don't declare chown, since lchown.h now does that.
77067         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77068         (lchown): Define to rpl_chown if lchown is declared but
77069         does not exist.  Declare using a prototype if lchown is not
77070         declared.  Add a copyright notice.
77071         * lib/mkstemp.h: Include <unistd.h>.
77072         * lib/openat.c: Include lchown.h.
77073
77074         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77075         we now test for that separately.
77076         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77077         rather than O_NOFOLLOW, when testing whether it's possible to
77078         avoid a race condition reliably.
77079         * lib/savewd.c (savewd_chdir): Likewise.
77080
77081         Remove macros that are no longer needed now that stdint.h is
77082         reliable.
77083         * lib/fsusage.c (UINTMAX_MAX): Remove.
77084         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77085         * lib/utimecmp.c (SIZE_MAX): Remove.
77086
77087         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77088
77089         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77090         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77091         O_NOATIME works.
77092
77093 2006-10-05  Bruno Haible  <bruno@clisp.org>
77094
77095         * lib/gl_list.h (gl_sortedlist_search_from_to,
77096         gl_sortedlist_indexof_from_to): New declarations.
77097         (gl_list_implementation): New fields sortedlist_search_from_to,
77098         sortedlist_indexof_from_to.
77099         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77100         inline functions.
77101         * lib/gl_list.c (gl_sortedlist_search_from_to,
77102         gl_sortedlist_indexof_from_to): New functions.
77103         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77104         function.
77105         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77106         (gl_array_sortedlist_search_from_to): New function.
77107         (gl_array_list_implementation): Update.
77108         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77109         function.
77110         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77111         (gl_carray_sortedlist_search_from_to): New function.
77112         (gl_carray_list_implementation): Update.
77113         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77114         gl_linked_sortedlist_indexof_from_to): New functions.
77115         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77116         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77117         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77118         gl_tree_sortedlist_indexof_from_to): New functions.
77119         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77120         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77121         Update.
77122         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77123         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77124         Update.
77125
77126 2006-10-05  Bruno Haible  <bruno@clisp.org>
77127
77128         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77129         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77130         (struct gl_list_implementation): Add fields search_from_to,
77131         indexof_from_to. Remove fields search, indexof.
77132         (gl_list_search): Use the search_from_to method.
77133         (gl_list_search_from, gl_list_search_from_to): New functions.
77134         (gl_list_indexof): Use the indexof_from_to method.
77135         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77136         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77137         (gl_list_search_from, gl_list_search_from_to): New functions.
77138         (gl_list_indexof): Use the indexof_from_to method.
77139         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77140         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77141         gl_array_indexof. Add start_index, end_index arguments.
77142         (gl_array_search_from_to): Renamed from gl_array_search. Add
77143         start_index, end_index arguments.
77144         (gl_array_remove, gl_array_list_implementation): Update.
77145         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77146         gl_carray_indexof. Add start_index, end_index arguments.
77147         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77148         start_index, end_index arguments.
77149         (gl_carray_remove, gl_carray_list_implementation): Update.
77150         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77151         gl_linked_search. Add start_index, end_index arguments.
77152         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77153         start_index, end_index arguments.
77154         (gl_linked_remove): Update.
77155         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77156         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77157         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77158         field to 'size_t'.
77159         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77160         gl_tree_search. Add start_index, end_index arguments.
77161         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77162         start_index, end_index arguments.
77163         (gl_tree_remove): Update.
77164         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77165         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77166         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77167         function.
77168         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77169         gl_tree_search. Add start_index, end_index arguments.
77170         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77171         start_index, end_index arguments.
77172         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77173         Update.
77174         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77175
77176 2006-10-05  Bruno Haible  <bruno@clisp.org>
77177
77178         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77179
77180         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77181         fwriteerror_temp): New declarations.
77182         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77183         (descriptors): New variable.
77184         (cleanup): First, close the descriptors.
77185         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77186         fclose_temp, fwriteerror_temp): New functions.
77187
77188 2006-10-04  Jim Meyering  <jim@meyering.net>
77189
77190         * lib/fts.c (fts_open): Tiny comment change.
77191
77192 2006-10-04  Bruno Haible  <bruno@clisp.org>
77193
77194         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77195         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77196         gl_LOCK_BODY.
77197         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77198         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77199         gl_LOCK_EARLY_BODY.
77200         (gl_LOCK): Require gl_LOCK_BODY.
77201
77202 2006-10-04  Bruno Haible  <bruno@clisp.org>
77203
77204         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77205         (gl_oset_search_atleast): New declaration.
77206         (struct gl_oset_implementation): Add field 'search_atleast'.
77207         (gl_oset_search_atleast): New inline function.
77208         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77209         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77210         (gl_array_oset_implementation): Update.
77211         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77212         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77213         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77214
77215 2006-10-04  Bruno Haible  <bruno@clisp.org>
77216
77217         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77218
77219 2006-10-03  Bruno Haible  <bruno@clisp.org>
77220
77221         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77222         from gl_avltreehash_list_implementation.
77223
77224 2006-10-03  Bruno Haible  <bruno@clisp.org>
77225
77226         * lib/gl_oset.c (gl_oset_add): Fix return type.
77227
77228 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77229
77230         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77231
77232 2006-10-02  Eric Blake  <ebb9@byu.net>
77233
77234         * modules/strnlen (Depends-on): Add extensions.
77235
77236 2006-10-02  Eric Blake  <ebb9@byu.net>
77237
77238         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77239         definition in 2.60+.
77240
77241 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77242
77243         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77244         checks.
77245
77246 2006-10-02  Bruno Haible  <bruno@clisp.org>
77247
77248         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77249         to the AUTOMAKE_OPTIONS.
77250         Reported by Jim Meyering.
77251
77252 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77253
77254         Work around bug in Solaris 10 /proc file system:
77255         /proc/self/fd/NNN/.. isn't the parent directory of
77256         the directory whose file descriptor is NNN.  This needs to
77257         be worked around at run time, not compile time, since a
77258         program might be built on Solaris 8, where things work, and
77259         run on Solaris 10.
77260         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77261         to use the following interface instead:
77262         (OPENAT_BUFFER_SIZE): New macro.
77263         (openat_proc_name): New function.
77264         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77265         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77266         Likewise.
77267         * lib/openat-proc.c: New file.
77268         * modules/openat (Files): Add lib/openat-proc.c.
77269         (Depends-on): Add same-inode, stdbool.
77270         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77271
77272 2006-09-29  Bruno Haible  <bruno@clisp.org>
77273
77274         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77275         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77276         argument. Set stdout_closed before testing for ferror, not after.
77277         (fwriteerror, fwriteerror_no_ebadf): New functions.
77278
77279 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77280
77281         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77282
77283 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77284
77285         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77286         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77287
77288 2006-09-28  Jim Meyering  <jim@meyering.net>
77289
77290         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77291         Include <unistd.h>.
77292
77293 2006-09-28  Bruno Haible  <bruno@clisp.org>
77294
77295         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77296         * modules/linkedhash-list (Depends-on): Likewise.
77297         * modules/rbtreehash-list (Depends-on): Likewise.
77298
77299 2006-09-28  Bruno Haible  <bruno@clisp.org>
77300
77301         * lib/strndup.h: Simplify the redefinition of strndup.
77302         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77303         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77304
77305 2006-09-28  Bruno Haible  <bruno@clisp.org>
77306
77307         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77308         * lib/gl_linkedhash_list.c: Likewise.
77309         * lib/gl_rbtreehash_list.c: Likewise.
77310
77311 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77312
77313         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77314         getaddrinfo.
77315
77316         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77317         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77318         it causes <stdio_ext.h> to cause a compile-time error.
77319         Problem reported by Nelson H. F. Beebe.
77320         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77321         of HAVE_DECL___PENDING.
77322
77323         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77324         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77325         declaration.
77326
77327 2006-09-27  Jim Meyering  <jim@meyering.net>
77328
77329         This file could end up with a definition for a function
77330         named __strndup, rather than rpl_strndup on a system with
77331         incomplete weak_alias support.
77332         * lib/strndup.c (strndup): Rename from __strndup.
77333         Remove #defines that used to map __strndup to strndup.
77334         Don't use K&R prototypes.
77335         Remove LIBC-related code, since this file is not sync'd with glibc.
77336         * lib/strndup.h: Revamp, accordingly.
77337         * m4/strndup.m4: Modernize.
77338
77339 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77340
77341         * modules/savewd (Depends-on): Add 'raise'.
77342         * lib/savewd.c: Include <signal.h>, for 'raise'.
77343
77344 2006-09-26  Jim Meyering  <jim@meyering.net>
77345
77346         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77347         when we detect Darwin 8.7.0's acl_get_file bug.
77348         Rearrange to perform the new (below) run-test while $LIBS
77349         contains any acl-related library.  Set USE_ACL at the end.
77350         (gl_ACL_GET_FILE): New function.
77351
77352 2006-09-26  Eric Blake  <ebb9@byu.net>
77353
77354         * lib/verror.c: Include <config.h> unconditionally.
77355
77356 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77357
77358         * modules/clock-time (Maintainer): Add self.
77359         * modules/getlogin_r (Depends-on): Add extensions.
77360
77361 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77362
77363         * modules/clock-time: New module.
77364         * modules/nanosleep (Depends-on): Add clock-time.
77365         * modules/gethrxtime (Depends-on): Likewise.
77366         * modules/gettime (Depends-on): Likewise.
77367         * modules/settime (Depends-on): Likewise.
77368
77369         * modules/fts-lgpl: Depend on openat.
77370         * modules/mkancesdirs: Depend on savewd.
77371         * modules/mkdir-p: Likewise.
77372
77373 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77374
77375         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77376
77377         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77378         `gl_have_arbitrary_file_name_length_limit' to
77379         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77380         actually works between configure runs.
77381
77382 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77383             Bruno Haible  <bruno@clisp.org>
77384
77385         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77386
77387 2006-09-25  Jim Meyering  <jim@meyering.net>
77388
77389         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77390         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77391
77392 2006-09-25  Eric Blake  <ebb9@byu.net>
77393
77394         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77395         exec's in 2006-09-18 patch when shuffling fds.
77396
77397 2006-09-25  Bruno Haible  <bruno@clisp.org>
77398
77399         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77400         Reported by Jim Meyering.
77401
77402 2006-09-24  Jim Meyering  <jim@meyering.net>
77403
77404         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77405         compare a pointer against a literal "0".  That caused failures with
77406         at least HP-UX's hpcc.
77407
77408 2006-09-22  Simon Josefsson  <jas@extundo.com>
77409
77410         * modules/gc-sha1:
77411         * modules/gc-md4:
77412         * modules/gc-hmac-sha1:
77413         * modules/gc-hmac-md5:
77414         * modules/gc-des:
77415         * modules/gc-arcfour: Distribute more files.
77416
77417 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77418
77419         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77420         (gl_linked_iterator_from_to): Initialize struct completely.
77421         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77422         (gl_tree_iterator_from_to): Likewise
77423         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77424         * lib/gl_array_list.c [lint] (gl_array_iterator)
77425         (gl_array_iterator_from_to): Likewise.
77426         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77427         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77428         (gl_carray_iterator_from_to): Likewise.
77429
77430         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77431         * lib/md4.c (md4_process_block): Remove unused variable.
77432         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77433         parentheses for clarity.
77434
77435 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77436
77437         * modules/bison-i18n (Depends-on): Add gettext.
77438
77439 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77440
77441         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77442         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77443         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77444         also add missing comma that caused broken test.
77445         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77446         stdlib.h, for `abort'.
77447         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77448         variables.
77449         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77450         include unistd.h if present, for `rmdir'.
77451         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77452         variables.
77453         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77454         in the process include standard headers for prototypes.
77455         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77456         gets declared on GNU/Linux.
77457         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77458         unistd.h, for `rmdir'.
77459         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77460
77461         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77462         always true.
77463         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77464
77465         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77466
77467 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77468
77469         * gnulib-tool (func_version): Create output all at once.  This
77470         may help avoid triggering unnecessary SIGPIPEs, and at any
77471         rate it doesn't hurt.
77472
77473 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77474             Bruno Haible  <bruno@clisp.org>
77475
77476         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77477         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77478         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77479
77480         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77481         (gl_FUNC_VASPRINTF): Invoke it.
77482
77483 2006-09-22  Bruno Haible  <bruno@clisp.org>
77484
77485         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77486         getloadavg.c as first argument.
77487
77488 2006-09-22  Bruno Haible  <bruno@clisp.org>
77489
77490         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77491         at the beginning of the gl_INIT macro.
77492         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77493         gl_GETLOADAVG.
77494
77495 2006-09-22  Bruno Haible  <bruno@clisp.org>
77496
77497         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77498         module.
77499         Suggested by Ralf Wildenhues.
77500
77501 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77502
77503         Import this patch from libc:
77504
77505         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77506
77507         * lib/regex_internal.c (re_string_reconstruct): Handle
77508         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77509         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77510         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77511         re_string_context_at.
77512
77513         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77514         now requires it.
77515         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77516         gl_REGEX now does it for us.
77517         (gl_REGEX): Add test taken from
77518         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77519
77520         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77521         Check that large offsets work.  Modernize Autoconf usages.
77522         Prefer "yes" to mean a good thing rather than a bad.
77523         Don't put "#define mkstemp" in config.h, as this might interfere
77524         with standard system headers that "#define mkstemp mkstemp64".
77525
77526         * modules/mkstemp (Depends-on): Add extensions, so that
77527         mkstemp is visible on some platforms.
77528         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77529         (Include): Change to "mkstemp.h" from <stdlib.h>.
77530         (Files): Add mkstemp.h.
77531
77532         * lib/mkstemp.h: New file, since some standard headers
77533         #define mkstemp.
77534         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77535         Include "mkstemp.h".
77536         Make the _LIBC code resemble glibc original more,
77537         e.g., use K&R style.
77538         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77539         (mkstemp): Remove, since mkstemp.h does this for us.
77540         * lib/stdlib--.h: Include mkstemp.h.
77541
77542         Import this patch from libc:
77543
77544         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77545
77546         * lib/tempname.c (__gen_tempname): Change attempts_min
77547         into a macro.  Use preprocessor to decide how to initialize
77548         attempts [Coverity CID 67].
77549
77550 2006-09-20  Bruno Haible  <bruno@clisp.org>
77551
77552         * lib/mkdtemp.c: Import from libc.
77553         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77554                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77555                 attempts_min into a macro.  Use preprocessor to decide how to
77556                 initialize attempts [Coverity CID 67].
77557         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77558                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77559                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77560
77561 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77562
77563         * gnulib-tool (func_exit): New function, to allow to pass the
77564         exit status portably through the trap.  Use everywhere.
77565         (--help, --version): Signal a write error.
77566         (trap): catch SIGPIPE, for write errors.
77567         Exit at the end of the trap, with the correct exit status.
77568
77569 2006-09-19  Karl Berry  <karl@gnu.org>
77570
77571         * doc/gnulib.texi: note about the license texinfo files.
77572
77573 2006-09-19  Eric Blake  <ebb9@byu.net>
77574
77575         * gnulib-tool: Avoid space-tab.
77576
77577 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77578
77579         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77580         that prevented coreutils 6.1 from building.  Problem reported
77581         by Petter Reinholdtsen.
77582
77583 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77584
77585         * gnulib-tool (avoidlist): Fix typo that broke options like
77586         --avoid=lock that are used by coreutils bootstrap.
77587
77588 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77589
77590         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77591         more systematically.
77592
77593 2006-09-18  Jim Meyering  <jim@meyering.net>
77594
77595         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77596
77597 2006-09-18  Bruno Haible  <bruno@clisp.org>
77598
77599         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77600
77601 2006-09-18  Bruno Haible  <bruno@clisp.org>
77602
77603         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77604         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77605         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77606         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77607         * m4/gettext.m4: Require autoconf >= 2.52.
77608         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77609         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77610         of gl_cv_header_inttypes_h.
77611
77612 2006-09-18  Bruno Haible  <bruno@clisp.org>
77613
77614         * lib/javaversion.c: Include configmake.h.
77615
77616 2006-09-18  Bruno Haible  <bruno@clisp.org>
77617
77618         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77619         avoid that the while loops be executed in a subshell.
77620
77621 2006-09-18  Bruno Haible  <bruno@clisp.org>
77622
77623         * MODULES.html.sh (func_module): Break long lines.
77624         Suggested by Bruce Korb <bkorb@gnu.org>.
77625
77626 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77627
77628         Speed up by a factor of 1.12.
77629         * gnulib-tool (nl): New variable.
77630         (func_import): Rewrite include directive extraction to only read each
77631         directive once.
77632
77633 2006-09-17  Bruno Haible  <bruno@clisp.org>
77634
77635         * modules/javaversion (Makefile.am): Remove DEFS setting.
77636         (Depends-on): Add configmake, for PKGDATADIR definition.
77637
77638 2006-09-17  Bruno Haible  <bruno@clisp.org>
77639
77640         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77641
77642 2006-09-17  Bruno Haible  <bruno@clisp.org>
77643
77644         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77645         (func_modules_transitive_closure, func_modules_add_dummy,
77646         func_modules_to_filelist, func_import, func_create_testdir,
77647         func_create_megatestdir, ...): Use it wherever possible.
77648         Suggested by Ralf Wildenhues.
77649
77650 2006-09-16  Karl Berry  <karl@gnu.org>
77651
77652         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77653         to avoid sectioning errors.
77654         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77655         [ifinfo]: blank line after @center-ed titles.
77656         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77657         Spell FSF address consistently with others.
77658         (These changes approved by rms.)
77659
77660 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77661
77662         Speed up by a factor of 1.61.
77663         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77664         already checked module names again.
77665
77666 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77667
77668         Speed up by a factor of 1.13.
77669         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77670         for new_files, and the input to func_add_or_update.
77671
77672 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77673
77674         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77675         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77676
77677 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77678
77679         * modules/mkancesdirs (Depends-on): Add fcntl.
77680         * modules/savewd: New file.
77681         * MODULES.html.sh (File system functions): Add savewd.
77682
77683         * modules/configmake (Makefile.am): Add support for the
77684         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77685
77686 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77687
77688         * m4/savewd.m4: New file.
77689
77690 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77691
77692         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77693         (dirchownmod): New arg FD.  All callers changed.
77694         Use FD rather than opening the directory ourself, as opening is
77695         now the caller's responsibility.
77696         * lib/dirchownmod.h: Likewise.
77697         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77698         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77699         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77700         (test_dir): Remove.
77701         (mkancesdirs): Return length of prefix of FILE that has already
77702         been made, or -2 if there is a child doing the work.  Redo
77703         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77704         ".", and treat ".." specially since it might stray back into
77705         already-created areas.  Use a subprocess if necessary.  New arg
77706         WD; all users changed.  MAKE_DIR function should now return 1
77707         if it creates a directory that is not readable.  Return -2 if
77708         a child process is spun off.
77709         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77710         Adjust signature to match code.
77711         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77712         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77713         all users changed.
77714         * lib/savewd.c, lib/savewd.h: New files.
77715
77716 2006-09-15  Jim Meyering  <jim@meyering.net>
77717
77718         * modules/rename-dest-slash: New module.
77719         * MODULES.html.sh (posix_compat): Add it here.
77720
77721         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77722
77723 2006-09-15  Jim Meyering  <jim@meyering.net>
77724
77725         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77726         file.
77727
77728         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77729
77730 2006-09-15  Jim Meyering  <jim@meyering.net>
77731
77732         * lib/rename-dest-slash.c (has_trailing_slash): Use
77733         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77734         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77735         test before testing whether SRC is a directory.
77736         Suggestions from Bruno Haible.
77737
77738         Avoid a warning about an unused variable.
77739         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77740         into the #ifdef block where it's used.
77741
77742         * lib/rename-dest-slash.c: New file.
77743
77744 2006-09-14  Bruno Haible  <bruno@clisp.org>
77745
77746         * lib/allocsa.c: Include <config.h> unconditionally.
77747         * lib/asnprintf.c: Likewise.
77748         * lib/asprintf.c: Likewise.
77749         * lib/c-strcasecmp.c: Likewise.
77750         * lib/c-strcasestr.c: Likewise.
77751         * lib/c-strncasecmp.c: Likewise.
77752         * lib/c-strstr.c: Likewise.
77753         * lib/classpath.c: Likewise.
77754         * lib/clean-temp.c: Likewise.
77755         * lib/concatpath.c: Likewise.
77756         * lib/copy-file.c: Likewise.
77757         * lib/csharpcomp.c: Likewise.
77758         * lib/csharpexec.c: Likewise.
77759         * lib/execute.c: Likewise.
77760         * lib/fatal-signal.c: Likewise.
77761         * lib/findprog.c: Likewise.
77762         * lib/fwriteerror.c: Likewise.
77763         * lib/gl_array_list.c: Likewise.
77764         * lib/gl_array_oset.c: Likewise.
77765         * lib/gl_avltree_list.c: Likewise.
77766         * lib/gl_avltree_oset.c: Likewise.
77767         * lib/gl_avltreehash_list.c: Likewise.
77768         * lib/gl_carray_list.c: Likewise.
77769         * lib/gl_linked_list.c: Likewise.
77770         * lib/gl_linkedhash_list.c: Likewise.
77771         * lib/gl_list.c: Likewise.
77772         * lib/gl_oset.c: Likewise.
77773         * lib/gl_rbtree_list.c: Likewise.
77774         * lib/gl_rbtree_oset.c: Likewise.
77775         * lib/gl_rbtreehash_list.c: Likewise.
77776         * lib/imaxabs.c: Likewise.
77777         * lib/imaxdiv.c: Likewise.
77778         * lib/javacomp.c: Likewise.
77779         * lib/javaexec.c: Likewise.
77780         * lib/javaversion.c: Likewise.
77781         * lib/linebreak.c: Likewise.
77782         * lib/localcharset.c: Likewise.
77783         * lib/lock.c: Likewise.
77784         * lib/mbchar.c: Likewise.
77785         * lib/mbswidth.c: Likewise.
77786         * lib/mkdtemp.c: Likewise.
77787         * lib/pipe.c: Likewise.
77788         * lib/printf-args.c: Likewise.
77789         * lib/printf-parse.c: Likewise.
77790         * lib/progname.c: Likewise.
77791         * lib/progreloc.c: Likewise.
77792         * lib/readlink.c: Likewise.
77793         * lib/sh-quote.c: Likewise.
77794         * lib/stpcpy.c: Likewise.
77795         * lib/stpncpy.c: Likewise.
77796         * lib/strcasecmp.c: Likewise.
77797         * lib/strcasestr.c: Likewise.
77798         * lib/strcspn.c: Likewise.
77799         * lib/striconv.c: Likewise.
77800         * lib/strncasecmp.c: Likewise.
77801         * lib/strnlen1.c: Likewise.
77802         * lib/strstr.c: Likewise.
77803         * lib/strtok_r.c: Likewise.
77804         * lib/tls.c: Likewise.
77805         * lib/tmpdir.c: Likewise.
77806         * lib/unicodeio.c: Likewise.
77807         * lib/unsetenv.c: Likewise.
77808         * lib/vasnprintf.c: Likewise.
77809         * lib/vasprintf.c: Likewise.
77810         * lib/wait-process.c: Likewise.
77811         * lib/xallocsa.c: Likewise.
77812         * lib/xsetenv.c: Likewise.
77813         * lib/xstriconv.c: Likewise.
77814
77815 2006-09-13  Simon Josefsson  <jas@extundo.com>
77816
77817         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77818         that internally, suggested by Ralf Wildenhues
77819         <Ralf.Wildenhues@gmx.de>.
77820
77821 2006-09-13  Simon Josefsson  <jas@extundo.com>
77822
77823         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77824         @LIBOBJS@.
77825         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77826
77827 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77828
77829         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77830         longer worry about uses that don't define HAVE_CONFIG_H.
77831         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77832         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77833         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77834         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77835         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77836         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77837         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77838         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77839         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77840         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77841         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77842         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77843         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77844         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77845         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77846         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77847         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77848         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77849         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77850         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77851         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77852         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77853         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77854         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77855         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77856         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77857         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77858         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77859         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77860         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77861         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77862         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77863         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77864         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77865         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77866         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77867         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77868         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77869         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77870         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77871         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77872         Likewise.
77873
77874 2006-09-13  Eric Blake  <ebb9@byu.net>
77875
77876         * lib/getopt.c: Fix typo in last commit.
77877
77878 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77879
77880         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77881         dgettext.
77882
77883 2006-09-12  Jim Meyering  <jim@meyering.net>
77884
77885         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77886         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77887         Reported by Nelson H. F. Beebe.
77888
77889 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77890
77891         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77892         program_invocation_name and program_invocation_short_name are
77893         initialized.
77894         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77895         and program_invocation_short_name to argp.h, so they are visible
77896         to user programs.
77897         * lib/argp.h: Likewise
77898
77899 2006-09-10  Bruno Haible  <bruno@clisp.org>
77900
77901         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77902         m4/inttypes_h.m4, m4/uintmax_t.m4.
77903
77904 2006-09-10  Bruno Haible  <bruno@clisp.org>
77905
77906         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77907         gl_AC_TYPE_UINTMAX_T.
77908
77909 2006-09-10  Bruno Haible  <bruno@clisp.org>
77910
77911         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77912
77913 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77914
77915         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77916         convention.  Text proposed by Bruno Haible.
77917         (struct argp_option): Document the use of N_() wrappers.
77918
77919         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77920         '\v', and translate the two parts separately, instead of feeding
77921         the whole string to gettext.  This allows to exclude
77922         '\v' from the strings visible to the translator by writing doc
77923         strings as N_("..") "\v" N_("..").
77924
77925 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77926
77927         * config/srclist.txt: Undo latest change; the bug was fixed.
77928
77929 2006-09-09  Bruno Haible  <bruno@clisp.org>
77930
77931         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77932         assignments if building a library without libtool.
77933         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77934         in func_emit_lib_Makefile_am.
77935         (func_import): When building a static library libfoo.a, arrange to
77936         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77937         (func_create_testdir): Likewise.
77938         * modules/gc (configure.ac, Makefile.am): If building statically,
77939         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77940         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77941         * modules/striconv (configure.ac, Makefile.am): Likewise.
77942         Based on a suggestion by Ralf Wildenhues.
77943
77944 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77945
77946         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77947         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77948         Also:
77949
77950         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77951         Add year_2050_test to catch glibc bug 2821
77952         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77953
77954         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77955         Prefer #ifdef to #if.
77956
77957         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77958         Return from 'main' instead of calling 'exit'.
77959
77960 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77961
77962         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77963         returned the maximum time_t value rather than (time_t) -1.
77964         Problem originally reported by William Bardwell
77965         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77966
77967         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77968         Moved to here ...
77969         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77970         ... from here.
77971
77972 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77973
77974         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77975         2821 is fixed.
77976
77977 2006-09-08  Jim Meyering  <jim@meyering.net>
77978
77979         Don't make generated files read-only.  That would bother too many
77980         people.  However, do retain the ability to work when targets are
77981         read-only: remove the destination and temporary files before writing
77982         them (when generated via sed or echo), or by using the -f option for
77983         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77984         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77985         * modules/byteswap, modules/configmake, modules/fcntl:
77986         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77987         * modules/localcharset, modules/netinet_in, modules/poll:
77988         * modules/stdbool, modules/stdint, modules/sys_select:
77989         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77990
77991 2006-09-08  Jim Meyering  <jim@meyering.net>
77992
77993         Avoid new build failure on FreeBSD 6.0.
77994         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77995         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77996         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77997
77998 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77999
78000         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78001
78002 2006-09-07  Jim Meyering  <jim@meyering.net>
78003
78004         Fix global typo in last change: use chmod u-w, not chmod u-x.
78005         Spotted by Paul Eggert and Bruce Korb.
78006         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78007         * modules/byteswap, modules/configmake, modules/fcntl:
78008         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78009         * modules/localcharset, modules/netinet_in, modules/poll:
78010         * modules/stdbool, modules/stdint, modules/sys_select:
78011         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78012
78013 2006-09-06  Jim Meyering  <jim@meyering.net>
78014
78015         Make generated files be read-only.
78016         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78017         Ensure that each generated file is now read-only.
78018         * modules/argz: Likewise.
78019         * modules/arpa_inet: Likewise.
78020         * modules/byteswap: Likewise.
78021         * modules/configmake: Likewise.
78022         * modules/fcntl: Likewise.
78023         * modules/fnmatch: Likewise.
78024         * modules/getopt: Likewise.
78025         * modules/glob: Likewise.
78026         * modules/inttypes: Likewise.
78027         * modules/netinet_in: Likewise.
78028         * modules/poll: Likewise.
78029         * modules/stdbool: Likewise.
78030         * modules/stdint: Likewise.
78031         * modules/sys_select: Likewise.
78032         * modules/sys_socket: Likewise.
78033         * modules/sys_stat: Likewise.
78034         * modules/sysexits: Likewise.
78035         * modules/localcharset: Same as above, but continue using temporary
78036         file named "t-$@" (why different?) rather than the "$@-t" used
78037         everywhere else.
78038
78039         * modules/sysexits (Makefile.am): Replace literal occurrences
78040         of "sysexit.h" more readable, and more consistent, "$@".
78041
78042 2006-09-06  Bruno Haible  <bruno@clisp.org>
78043
78044         * modules/striconv: New file.
78045         * modules/xstriconv: New file.
78046         * MODULES.html.sh (Internationalization functions): Add striconv,
78047         xstriconv.
78048
78049 2006-09-06  Bruno Haible  <bruno@clisp.org>
78050
78051         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78052         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78053         not using libtool correctly.
78054
78055 2006-09-06  Bruno Haible  <bruno@clisp.org>
78056
78057         * lib/striconv.h: New file.
78058         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78059         iconvstring.c.
78060         * lib/xstriconv.h: New file.
78061         * lib/xstriconv.c: New file.
78062
78063 2006-09-06  Bruno Haible  <bruno@clisp.org>
78064
78065         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78066         lib_..._LDFLAGS.
78067
78068 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78069
78070         * lib/argz_.h: Sync from Libtool.
78071
78072         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78073                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78074
78075         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78076
78077 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78078
78079         * modules/trim: New file.
78080
78081 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78082
78083         * lib/trim.h: New file.
78084         * lib/trim.c: New file.
78085
78086 2006-09-05  Bruno Haible  <bruno@clisp.org>
78087
78088         * MODULES.html.sh (String handling): Add trim.
78089
78090 2006-09-04  Karl Berry  <karl@gnu.org>
78091
78092         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78093         until next release.
78094
78095 2006-09-03  Bruno Haible  <bruno@clisp.org>
78096
78097         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78098         correctly.
78099
78100 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78101
78102         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78103         not gl_GETLOADAVG.  Omit unneeded semicolons.
78104         Problems reported by Ralf Wildenhues in
78105         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78106         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78107         at the end, which is the usual gnulib style.
78108
78109         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78110         of doing all the work ourselves.
78111         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78112         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78113
78114 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78115
78116         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78117         Problem reported by Ralf Wildenhues in
78118         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78119
78120         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78121         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78122
78123 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78126         yesterday's patch by changing test -n to test -z.
78127
78128 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78131         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78132         the former is now obsolescent.
78133
78134         * modules/chdir-long (Depends-on): Add fcntl.
78135
78136 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78137
78138         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78139         obsolescent, and programs should use gnulib instead.
78140         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78141         but with prefixes changed.
78142
78143 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78144
78145         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78146         or stdbool.h, because they might not exist while configuring.
78147
78148         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78149         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78150         does that for us.
78151         (O_DIRECTORY): Remove.
78152
78153 2006-08-31  Eric Blake  <ebb9@byu.net>
78154
78155         * gnulib-tool: Don't let emacs change spaces to TAB.
78156
78157 2006-08-31  Bruno Haible  <bruno@clisp.org>
78158
78159         * gnulib-tool: When calling func_import more than once, do it in a
78160         subshell.
78161         Reported by Eric Blake <ebb9@byu.net>.
78162
78163 2006-08-31  Bruno Haible  <bruno@clisp.org>
78164
78165         * gnulib-tool (nl): Remove variable.
78166         (sed_transform_lib_file): Use more robust test for config-h module.
78167         (func_import): Fix typo in 2006-08-25 patch.
78168
78169 2006-08-31  Bruno Haible  <bruno@clisp.org>
78170
78171         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78172         specified, augment Makefile.am variables instead of assigning them.
78173
78174 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78175
78176         Work around a bug in both the Linux and SunOS 64-bit kernels:
78177         nanosleep mishandles sleeps for longer than 2**31 seconds.
78178         Problem reported by Frank v Waveren in
78179         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78181         Check for nanosleep bug.
78182         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78183
78184 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78185
78186         Work around a bug in both the Linux and SunOS 64-bit kernels:
78187         nanosleep mishandles sleeps for longer than 2**31 seconds.
78188         Problem reported by Frank v Waveren in
78189         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78190         * lib/nanosleep.c (BILLION): New constant.
78191         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78192         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78193         implementation.
78194
78195 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78196
78197         * modules/nanosleep (Depends-on): Add gettime.
78198
78199 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78200         and Simon Josefsson  <jas@extundo.com>
78201         and Oskar Liljeblad  <oskar@osk.mine.nu>
78202
78203         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78204         * gnulib-tool (func_import): New license type 'unmodifiable license
78205         text'.
78206         * modules/fdl: Use it.  Longer description.
78207         * module/gpl, module/lgpl: New files.
78208
78209 2006-08-30  Jim Meyering  <jim@meyering.net>
78210
78211         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78212         shadowing the parameter.
78213
78214 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78215
78216         Sync from Libtool:
78217
78218         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78219
78220         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78221         sharing with gnulib.  Report by Eric Blake.
78222
78223 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78224
78225         * modules/isapipe: New file.
78226         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78227
78228 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * modules/configmake (Makefile.am): Add a comment, and omit
78231         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78232         by Bruno Haible.
78233
78234 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78235
78236         * m4/isapipe.m4: New file.
78237
78238 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * lib/isapipe.c, lib/isapipe.h: New files.
78241
78242 2006-08-29  Jim Meyering  <jim@meyering.net>
78243
78244         * modules/configmake (Makefile.am): Make configmake.h depend on
78245         Makefile.  Otherwise, a stale configmake.h could hang around.
78246
78247 2006-08-29  Eric Blake  <ebb9@byu.net>
78248
78249         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78250         resolution of upstream bug 3044.
78251
78252 2006-08-29  Bruno Haible  <bruno@clisp.org>
78253
78254         * modules/localcharset (Depends-on): Add configmake.
78255         (Makefile.am): Remove setting of LIBDIR through DEFS.
78256
78257 2006-08-29  Bruno Haible  <bruno@clisp.org>
78258
78259         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78260         defined.
78261
78262 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78263
78264         * modules/fcntl: New file.
78265         * modules/chdir-safer (Depends-on): Add fcntl.
78266         * modules/fts: Likewise.
78267         * modules/mkdir-p: Likewise.
78268
78269         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78270         This undoes the most recent change, since we're now addressing the
78271         problem in a different way.
78272
78273         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78274         into output, since the output might be called Makefile.am even
78275         if $makefile_name is something different.
78276         (func_import): Use $makefile_am rather than
78277         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78278         empty.
78279
78280         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78281
78282 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78283
78284         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78285         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78286         recent change to stdint.m4, since we're now addressing the problem in a
78287         different way.
78288
78289 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78290
78291         * m4/fcntl_h.m4: New file.
78292
78293 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78294
78295         * lib/fcntl_.h: New file.
78296         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78297         the fcntl module.
78298         * lib/dirchownmod.c: Likewise.
78299         * lib/fts.c: Likewise.
78300
78301         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78302         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78303         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78304         just before including <inttypes.h>, to avoid circular inclusion.
78305
78306 2006-08-28  Jim Meyering  <jim@meyering.net>
78307
78308         * doc/visibility.texi: Actually read and correct the grammar of the
78309         sentence affected by yesterday's change.
78310
78311 2006-08-28  Eric Blake  <ebb9@byu.net>
78312
78313         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78314         needs wrapper.
78315
78316 2006-08-28  Eric Blake  <ebb9@byu.net>
78317
78318         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78319
78320 2006-08-28  Eric Blake  <ebb9@byu.net>
78321
78322         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78323
78324 2006-08-28  Bruno Haible  <bruno@clisp.org>
78325
78326         * modules/c-strstr: New file, from GNU gettext.
78327         * MODULES.html.sh (String handling): Add c-strstr.
78328
78329 2006-08-28  Bruno Haible  <bruno@clisp.org>
78330
78331         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78332         macros.
78333         Reported by Eric Blake.
78334
78335 2006-08-28  Bruno Haible  <bruno@clisp.org>
78336
78337         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78338         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78339         * lib/vasprintf.c: Include errno.h, limits.h.
78340         (EOVERFLOW): New fallback definition.
78341         (vasprintf): Test here whether the string length is > INT_MAX.
78342         * lib/vsnprintf.c: Include errno.h, limits.h.
78343         (EOVERFLOW): New fallback definition.
78344         (vsnprintf): Fix bug when generated string was too long for the buffer.
78345         Test here whether the string length is > INT_MAX.
78346
78347 2006-08-28  Bruno Haible  <bruno@clisp.org>
78348
78349         * lib/inttypes_.h (SCNX*): Remove definitions.
78350         Reported by Eric Blake.
78351
78352 2006-08-28  Bruno Haible  <bruno@clisp.org>
78353
78354         * lib/c-strstr.h: New file, from GNU gettext.
78355         * lib/c-strstr.c: New file, from GNU gettext.
78356
78357 2006-08-28  Bruno Haible  <bruno@clisp.org>
78358
78359         * gnulib-tool: Reorder some statements.
78360
78361 2006-08-28  Bruno Haible  <bruno@clisp.org>
78362
78363         * gnulib-tool: New option --makefile-name.
78364         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78365         $makefile_name.
78366         (func_import): Write $makefile_name to the cache file, and read it from
78367         there unless explicitly specified. Use $makefile_name as file name
78368         instead of Makefile.am. Adjust the recommendations accordingly.
78369
78370 2006-08-28  Bruno Haible  <bruno@clisp.org>
78371
78372         * gnulib-tool (func_verify_module): Check against misapplying patch.
78373
78374 2006-08-28  Bruno Haible  <bruno@clisp.org>
78375
78376         * gnulib-tool (func_relativize, func_relconcat): New functions.
78377         Give an error if --local-dir is given with --update.
78378         Remove trailing slashes from $local_gnulib_dir.
78379         (func_import): Store the relativized $local_gnulib_dir in
78380         gnulib-cache.m4, and read it from there if not specified explicitly.
78381
78382 2006-08-28  Bruno Haible  <bruno@clisp.org>
78383
78384         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78385         is the current directory. Respect also $local_gnulib_dir.
78386
78387 2006-08-28  Bruno Haible  <bruno@clisp.org>
78388             Simon Josefsson  <jas@extundo.com>
78389
78390         BeOS portability.
78391         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78392
78393 2006-08-27  Jim Meyering  <jim@meyering.net>
78394
78395         * doc/visibility.texi: Remove duplicate word: "pointer".
78396
78397 2006-08-26  Bruno Haible  <bruno@clisp.org>
78398
78399         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78400         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78401         (Makefile.am): Create inttypes.h from inttypes_.h.
78402         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78403
78404         * modules/imaxabs: New file.
78405
78406         * modules/imaxdiv: New file.
78407
78408 2006-08-26  Bruno Haible  <bruno@clisp.org>
78409
78410         * m4/inttypes.m4: New file.
78411         * m4/_inttypes_h.m4: Remove file.
78412         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78413         PRI_MACROS_BROKEN.
78414         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78415
78416         * m4/imaxabs.m4: New file.
78417
78418         * m4/imaxdiv.m4: New file.
78419
78420 2006-08-26  Bruno Haible  <bruno@clisp.org>
78421
78422         * lib/inttypes_.h: New file.
78423         * lib/inttypes.h: Remove file.
78424         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78425
78426         * lib/imaxabs.c: New file.
78427
78428         * lib/imaxdiv.c: New file.
78429
78430 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78431
78432         New config-h module, so that "make" output needn't be cluttered
78433         by -DHAVE_CONFIG_H.
78434         * MODULES.html.sh (Support for building libraries and executables):
78435         Add config-h.
78436         * modules/config-h: New file.
78437         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78438         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78439         the config-h module is used.
78440
78441         New configmake module, so that "make" output needn't be cluttered
78442         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78443         * MODULES.html.sh (Support for building libraries and executables):
78444         Add configmake.
78445         * modules/configmake: New file.
78446
78447 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78448
78449         * m4/config-h.m4: New file.
78450
78451 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78452
78453         * config/srclist.txt: Add elisp-comp.
78454
78455 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78456
78457         * MODULES.html.sh (Support for building libraries and executables):
78458         Add elisp-comp.
78459         * build-aux/elisp-comp: New file.
78460         * modules/elisp-comp: New file.
78461
78462 2006-08-24  Bruno Haible  <bruno@clisp.org>
78463
78464         * gnulib-tool (func_create_testdir): Use non-default values of
78465         sourcebase and m4base.
78466
78467 2006-08-24  Bruno Haible  <bruno@clisp.org>
78468
78469         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78470         HTML structure.
78471
78472 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78473
78474         * modules/openat (Depends-on): Add lchown.
78475
78476 2006-08-23  Bruno Haible  <bruno@clisp.org>
78477
78478         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78479         of gl_LOCK_EARLY instead of gl_LOCK.
78480
78481 2006-08-23  Bruno Haible  <bruno@clisp.org>
78482
78483         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78484         on OSF/1 to no.
78485         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78486
78487 2006-08-23  Bruno Haible  <bruno@clisp.org>
78488
78489         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78490         as unusable.
78491
78492         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78493         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78494         (gl_LOCK): New macro.
78495
78496 2006-08-22  Simon Josefsson  <jas@extundo.com>
78497
78498         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78499         to md5 module.
78500
78501 2006-08-22  Simon Josefsson  <jas@extundo.com>
78502
78503         * MODULES.html.sh: Add "Support for maintaining and release
78504         projects".
78505
78506         * build-aux/gnupload: New file, from coreutils.
78507
78508 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78509
78510         Avoid the need for AC_LIBSOURCES in m4 macros.
78511         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78512         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78513         * modules/check-version (EXTRA_DIST): Add check-version.h.
78514         * modules/crc (EXTRA_DIST): Add crc.h.
78515         * modules/des (EXTRA_DIST): Add des.h.
78516         * modules/gc (EXTRA_DIST): Add gc.h.
78517         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78518         * modules/getline (EXTRA_DIST): Add getline.h.
78519         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78520         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78521         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78522         * modules/md2 (EXTRA_DIST): Add md2.h.
78523         * modules/md4 (EXTRA_DIST): Add md4.h.
78524         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78525         * modules/read-file (EXTRA_DIST): Add read-file.h.
78526         * modules/readline (EXTRA_DIST): Add readline.h.
78527         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78528         rijndael-api-fst.h.
78529
78530 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78531
78532         * m4/rijndael.m4 (gl_ARCFOUR):
78533         * m4/arctwo.m4 (gl_ARCTWO):
78534         * m4/check-version.m4 (gl_CHECK_VERSION):
78535         * m4/crc.m4 (gl_CRC):
78536         * m4/des.m4 (gl_DES):
78537         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78538         * m4/gc.m4 (gl_GC):
78539         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78540         * m4/getline.m4 (gl_FUNC_GETLINE):
78541         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78542         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78543         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78544         * m4/md2.m4 (gl_MD2):
78545         * m4/md4.m4 (gl_MD4):
78546         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78547         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78548         * m4/readline.m4 (gl_FUNC_READLINE):
78549         * m4/rijndael.m4 (gl_RIJNDAEL):
78550         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78551         to get the necessary .h files and whatnot.
78552
78553 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78554
78555         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78556         gnulib rather than the other way around.
78557         * config/srclistvars.sh (COREUTILS): Remove.
78558
78559 2006-08-22  Jim Meyering  <jim@meyering.net>
78560
78561         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78562
78563         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78564
78565 2006-08-22  Eric Blake  <ebb9@byu.net>
78566
78567         * modules/regexprops-generic: New file.
78568         * MODULES.html.sh (Support for building documentation): List it.
78569
78570 2006-08-22  Eric Blake  <ebb9@byu.net>
78571
78572         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78573         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78574         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78575         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78576
78577 2006-08-22  Bruno Haible  <bruno@clisp.org>
78578
78579         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78580         and lib_LTLIBRARIES like the other lib_* variables.
78581
78582 2006-08-22  Bruno Haible  <bruno@clisp.org>
78583
78584         * build-aux/x-to-1.in: New file, from GNU gettext.
78585
78586 2006-08-22  Bruno Haible  <bruno@clisp.org>
78587
78588         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78589         <utmpx.h> exists.
78590
78591 2006-08-22  Bruno Haible  <bruno@clisp.org>
78592
78593         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78594         <utmpx.h> exists.
78595
78596 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78597
78598         BeOS portability.
78599         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78600         exist.
78601         Problem reported by Bruno Haible.
78602
78603 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78604
78605         Avoid the need for AC_LIBSOURCES in m4 macros.
78606         * modules/acl (EXTRA_DIST): Add acl.h.
78607         * modules/argmatch (Files): Add m4/argmatch.m4.
78608         (configure.ac): Add gl_ARGMATCH.
78609         (EXTRA_DIST): Renamed from lib_SOURCES, for
78610         consistency with the other modules.  Remove argmatch.c.
78611         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78612         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78613         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78614         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78615         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78616         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78617         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78618         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78619         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78620         * modules/closeout (EXTRA_DIST): Add closeout.h.
78621         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78622         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78623         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78624         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78625         dirname.h; remove basename.c and stripslash.c.
78626         * modules/exclude (EXTRA_DIST): Add exclude.h.
78627         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78628         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78629         * modules/file-type (EXTRA_DIST): Add file-type.h.
78630         * modules/filemode (EXTRA_DIST): Add filemode.h.
78631         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78632         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78633         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78634         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78635         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78636         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78637         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78638         * modules/getdate (EXTRA_DIST): Add getdate.c.
78639         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78640         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78641         * modules/getpass (EXTRA_DIST): Add getpass.h.
78642         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78643         * modules/group-member (EXTRA_DIST): Add group-member.h.
78644         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78645         * modules/hash (EXTRA_DIST): Add hash.h.
78646         * modules/human (EXTRA_DIST): Add human.h.
78647         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78648         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78649         * modules/lchown (EXTRA_DIST): Add lchown.h.
78650         * modules/long-options (EXTRA_DIST): Add long-options.h.
78651         * modules/lstat (EXTRA_DIST): Add lstat.h.
78652         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78653         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78654         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78655         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78656         * modules/memxor (EXTRA_DIST): Add memxor.h.
78657         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78658         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78659         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78660         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78661         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78662         * modules/physmem (EXTRA_DIST): Add physmem.h.
78663         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78664         * modules/posixver (EXTRA_DIST): Add posixver.h.
78665         * modules/quote (EXTRA_DIST): Add quote.h.
78666         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78667         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78668         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78669         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78670         regex_internal.h regexec.c.
78671         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78672         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78673         * modules/same (EXTRA_DIST): Add same.h.
78674         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78675         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78676         * modules/savedir (EXTRA_DIST): Add savedir.h.
78677         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78678         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78679         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78680         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78681         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78682         * modules/strdup (EXTRA_DIST): Add strdup.h.
78683         * modules/strftime (EXTRA_DIST): Add strftime.h.
78684         * modules/strndup (EXTRA_DIST): Add strndup.h.
78685         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78686         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78687         * modules/time_r (EXTRA_DIST): Add time_r.h.
78688         * modules/timespec (EXTRA_DIST): Add timespec.h.
78689         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78690         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78691         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78692         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78693         * modules/userspec (EXTRA_DIST): Add userspec.h.
78694         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78695         * modules/utimens (EXTRA_DIST): Add utimens.h.
78696         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78697         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78698         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78699         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78700         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78701         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78702         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78703         * modules/yesno (EXTRA_DIST): Add yesno.h.
78704
78705 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78706
78707         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78708
78709         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78710         * m4/dev-ino.m4, same-inode.m4: Remove.
78711
78712         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78713         * m4/acl.m4 (AC_FUNC_ACL):
78714         * m4/backupfile.m4 (gl_BACKUPFILE):
78715         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78716         * m4/canon-host.m4 (gl_CANON_HOST):
78717         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78718         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78719         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78720         * m4/cloexec.m4 (gl_CLOEXEC):
78721         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78722         * m4/closeout.m4 (gl_CLOSEOUT):
78723         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78724         * m4/dirname.m4 (gl_DIRNAME):
78725         * m4/exclude.m4 (gl_EXCLUDE):
78726         * m4/exitfail.m4 (gl_EXITFAIL):
78727         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78728         * m4/file-type.m4 (gl_FILE_TYPE):
78729         * m4/filemode.m4 (gl_FILEMODE):
78730         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78731         * m4/fpending.m4 (gl_FUNC_FPENDING):
78732         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78733         * m4/fts.m4 (gl_FUNC_FTS):
78734         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78735         * m4/getdate.m4 (gl_GETDATE):
78736         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78737         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78738         * m4/getpass.m4 (gl_FUNC_GETPASS):
78739         * m4/gettime.m4 (gl_GETTIME):
78740         * m4/getugroups.m4 (gl_GETUGROUPS):
78741         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78742         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78743         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78744         * m4/hash.m4 (gl_HASH):
78745         * m4/idcache.m4 (gl_IDCACHE):
78746         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78747         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78748         * m4/long-options.m4 (gl_LONG_OPTIONS):
78749         * m4/lstat.m4 (gl_FUNC_LSTAT):
78750         * m4/md5.m4 (gl_MD5):
78751         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78752         * m4/memcoll.m4 (gl_MEMCOLL):
78753         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78754         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78755         * m4/memxor.m4 (gl_MEMXOR):
78756         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78757         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78758         * m4/modechange.m4 (gl_MODECHANGE):
78759         * m4/mountlist.m4 (gl_MOUNTLIST):
78760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78761         * m4/openat.m4 (gl_FUNC_OPENAT):
78762         * m4/pathmax.m4 (gl_PATHMAX):
78763         * m4/physmem.m4 (gl_PHYSMEM):
78764         * m4/posixtm.m4 (gl_POSIXTM):
78765         * m4/posixver.m4 (gl_POSIXVER):
78766         * m4/quote.m4 (gl_QUOTE):
78767         * m4/quotearg.m4 (gl_QUOTEARG):
78768         * m4/readtokens.m4 (gl_READTOKENS):
78769         * m4/readutmp.m4 (gl_READUTMP):
78770         * m4/regex.m4 (gl_REGEX):
78771         * m4/safe-read.m4 (gl_SAFE_READ):
78772         * m4/safe-write.m4 (gl_SAFE_WRITE):
78773         * m4/same.m4 (gl_SAME):
78774         * m4/save-cwd.m4 (gl_SAVE_CWD):
78775         * m4/savedir.m4 (gl_SAVEDIR):
78776         * m4/settime.m4 (gl_SETTIME):
78777         * m4/sha1.m4 (gl_SHA1):
78778         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78779         * m4/stat-macros.m4 (gl_STAT_MACROS):
78780         * m4/stat-time.m4 (gl_STAT_TIME):
78781         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78782         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78783         * m4/strdup.m4 (gl_FUNC_STRDUP):
78784         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78785         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78786         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78787         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78788         * m4/time_r.m4 (gl_TIME_R):
78789         * m4/timespec.m4 (gl_TIMESPEC):
78790         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78791         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78792         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78793         * m4/userspec.m4 (gl_USERSPEC):
78794         * m4/utimecmp.m4 (gl_UTIMECMP):
78795         * m4/utimens.m4 (gl_UTIMENS):
78796         * m4/xalloc.m4 (gl_XALLOC):
78797         * m4/xgetcwd.m4 (gl_XGETCWD):
78798         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78799         * m4/xreadlink.m4 (gl_XREADLINK):
78800         * m4/xstrtod.m4 (gl_XSTRTOD):
78801         * m4/yesno.m4 (gl_YESNO):
78802         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78803         to get the necessary .h files and whatnot.
78804
78805 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78806             Bruno Haible  <bruno@clisp.org>
78807
78808         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78809         /bin/sh understanding of '!' conditional negation.
78810
78811 2006-08-21  Jim Meyering  <jim@meyering.net>
78812
78813         * modules/openat (Depends-on): Really alphabetize.
78814
78815         * modules/acl (Depends-on): Add error and quote.
78816
78817         * check-module (find_included_lib_files): Add at-func.c to the
78818         ok-to-include-more-than-once white list.
78819
78820         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78821
78822 2006-08-21  Bruno Haible  <bruno@clisp.org>
78823
78824         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78825         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78826         Reported by Martin Lambers <marlam@marlam.de>.
78827
78828 2006-08-21  Bruno Haible  <bruno@clisp.org>
78829
78830         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78831         specify an installation location, don't emit a noinst_LIBRARIES or
78832         noinst_LTLIBRARIES assignment.
78833
78834 2006-08-21  Bruno Haible  <bruno@clisp.org>
78835
78836         BeOS portability.
78837         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78838         BeOS has mbrtowc() but no <wctype.h>.
78839
78840 2006-08-21  Bruno Haible  <bruno@clisp.org>
78841
78842         BeOS portability.
78843         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78844         exist.
78845
78846 2006-08-21  Bruno Haible  <bruno@clisp.org>
78847
78848         BeOS portability.
78849         * lib/mbchar.h: Include <wctype.h> only if it exists.
78850
78851 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78852
78853         Remove files that are no longer needed by their respective modules.
78854         * m4/obstack.m4: Remove.
78855         * m4/strerror_r.m4: Remove.
78856         * m4/uint32_t.m4: Remove.
78857         * m4/uintptr_t.m4: Remove.
78858         * m4/ullong_max.m4: Remove.
78859         * m4/xstrtoimax.m4: Remove.
78860         * m4/xstrtoumax.m4: Remove.
78861
78862         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78863         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78864         dependencies now capture this.
78865
78866         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78867         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78868         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78869         * m4/human.m4 (gl_HUMAN): Likewise.
78870         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78871         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78872
78873         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78874
78875         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78876         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78877         stdint.
78878         * m4/human.m4 (gl_HUMAN): Likewise.
78879         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78880         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78881         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78882         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78883         * m4/xstrtol (gl_XSTRTOL): Likewise.
78884
78885         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78886         AC_TYPE_LONG_LONG_INT.
78887         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78888         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78889         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78890         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78891
78892         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78893         on stdbool.
78894
78895         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78896         (gl_PREREQ_XSTRTOUL): Remove.
78897
78898         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78899
78900         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78901         mode.
78902
78903 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78904
78905         Add and change modules to make it easier for coreutils to use
78906         gnulib-tool.
78907         * modules/backupfile (Files): Remove m4/d-ino.m4.
78908         (Depends-on): Add d-ino.
78909         * modules/cycle-check (Depends-on): Add stdint.
78910         (lib_SOURCES): Add cycle-check.h.
78911         * modules/d-ino: New module.
78912         * modules/d-type: New module.
78913         * modules/error (Files): Remove m4/strerror_r.m4.
78914         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78915         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78916         m4/inttypes_h.m4, m4/uintmax_t.m4.
78917         (Depends-on): Add stdint.
78918         (lib_SOURCES): Add fsusage.h.
78919         * modules/getcwd (Files): Remove d-ino.m4.
78920         (Depends-on): Add d-ino.
78921         * modules/getndelim2 (Depends-on): Add stdint.
78922         * modules/glob (Files): Remove m4/d-type.m4.
78923         (Depends-on): Add d-type.
78924         * modules/host-os: New module.
78925         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78926         m4/inttypes_h.m4, m4/uintmax_t.m4.
78927         * Depends-on: Add stdint.
78928         (lib_SOURCES): Add human.h.
78929         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78930         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78931         m4/uintmax_t.m4, m4/ulonglong.m4.
78932         (Depends-on): Add stdint.
78933         (EXTRA_DIST): Add inttostr.h.
78934         * modules/lchmod: New module.
78935         * modules/link-follow: New module.
78936         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78937         (Depends-on): Add lchmod.
78938         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78939         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78940         (Depends-on): Add stdint.
78941         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78942         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78943         (Depends-on): Add stdint.
78944         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78945         * modules/perl: New module.
78946         * modules/regex (Depends-on): Add stdint.
78947         * modules/rmdir-errno: New module.
78948         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78949         m4/intmax_t.m4.
78950         (Depends-on): Add stdint.
78951         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78952         m4/uintmax_t.m4.
78953         (Depends-on): Add stdint.
78954         * modules/unlink-busy: New module.
78955         * modules/utimecmp (Depends-on): Add stdint.
78956         * modules/uptime: New module.
78957         * modules/winsz-ioctl: New module.
78958         * modules/winsz-termios: New module.
78959         * modules/xnanosleep (Depends-on): Add nanosleep.
78960         * modules/ullong_max: Remove.
78961         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78962         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78963         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78964         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78965         (Depends-on): Add inttypes.
78966         (lib_SOURCES): Add xstrtol.h.
78967         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78968         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78969         * MODULES.html.sh: Move 'assert' into the assert section.
78970         Move 'dummy' into the linking section.
78971         Remove ullong_max.
78972         Add section for compatibility checks for POSIX:2001 functions,
78973         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78974         winsz-ioctl, and winsz-termios into it.
78975         Add lchmod.
78976         Add top-level Misc section and put host-os, perl, and uptime
78977         into it.
78978
78979 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78982         now assume the stdint module.  Do not include inttypes.h.
78983         * lib/fsusage.h: Likewise.
78984         * lib/getndelim2.c: Likewise.
78985         * lib/human.h: Likewise.
78986         * lib/inttostr.h: Likewise.
78987         * lib/obstack.c: Likewise.
78988         * lib/regex_internal.h: Likewise.
78989         * lib/tempname.c: Likewise.
78990         * lib/utimecmp.c: Likewise.
78991         * lib/xstrtol.h: Likewise.
78992
78993         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78994
78995         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78996         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78997         * lib/xtime.h: Likewise.
78998
78999 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         * modules/openat (Files): Add lib/fchmodat.c.
79002         Fixes problem reported by Jay Youngman.
79003
79004 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79005
79006         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79007         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79008
79009 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79010             Bruno Haible  <bruno@clisp.org>
79011
79012         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79013         and is a script that invokes bison. Tighten the code. Add comments.
79014
79015 2006-08-18  Jim Meyering  <jim@meyering.net>
79016
79017         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79018         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79019         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79020         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79021
79022 2006-08-18  Bruno Haible  <bruno@clisp.org>
79023
79024         * modules/bison-i18n: New file.
79025         * MODULES.html.sh (Internationalization functions): Add it.
79026
79027 2006-08-18  Bruno Haible  <bruno@clisp.org>
79028
79029         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79030         sys/statvfs.h. When getmntinfo was found, check its declaration and
79031         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79032
79033 2006-08-18  Bruno Haible  <bruno@clisp.org>
79034
79035         * m4/bison-i18n.m4: New file, from bison.
79036
79037 2006-08-18  Bruno Haible  <bruno@clisp.org>
79038
79039         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79040         (ME_DUMMY): Treat "kernfs" as a dummy.
79041         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79042
79043 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79044
79045         Update from coreutils.
79046
79047         2006-08-15  Jim Meyering  <jim@meyering.net>
79048
79049         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79050
79051         2006-01-17  Jim Meyering  <jim@meyering.net>
79052
79053         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79054
79055         2006-01-11  Jim Meyering  <jim@meyering.net>
79056
79057         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79058         Check for the lchmod function.
79059
79060 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79061
79062         Update from coreutils.
79063
79064         * lib/__fpending.h: Add copyright notice.
79065         * lib/fprintftime.h: Likewise.
79066         * lib/savedir.c: Use (C) in copyright notice.
79067         * lib/savedir.h: Likewise.
79068
79069         2006-08-15  Jim Meyering  <jim@meyering.net>
79070
79071         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79072         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79073         in support of the EXPECTED_ERRNO macro.
79074         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79075         definitions.  Instead, define the appropriate symbols and include
79076         "at-func.c".
79077         * lib/mkdirat.c (mkdirat): Likewise.
79078         * lib/fchmodat.c (fchmodat): Likewise.
79079         (ENOSYS): Remove definition.
79080         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79081         it.  Don't include "unistd--.h" -- it wasn't ever used.
79082
79083         2006-01-17  Jim Meyering  <jim@meyering.net>
79084
79085         Rewrite fts.c not to change the current working directory,
79086         by using openat, fstatat, fdopendir, etc..
79087
79088         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79089         (HAVE_OPENAT_SUPPORT): Define.
79090         [_LIBC] (fchdir): Don't undef or define; no longer used.
79091         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79092         Now, this `function' always succeeds, and consumes its file descriptor
79093         parameter -- so callers must not close such FDs.  Update callers.
79094         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79095         (diropen): Add parameter, SP.  Adjust all callers.
79096         Implement using diropen_fd, rather than open.
79097         (fts_open): Initialize new member, fts_cwd_fd.
79098         Remove fts_rft-setting code.
79099         (fts_close): Close fts_cwd_fd, if necessary.
79100         (__opendir2): Define in terms of opendir or opendirat,
79101         depending on whether the FST_NOCHDIR flag is set.
79102         (fts_build): Since fts_safe_changedir consumes its FD, and since
79103         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79104         and close the dup'd file descriptor upon failure.
79105         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79106         (fts_safe_changedir): Tweak semantics to reflect that this function
79107         now calls cwd_advance_fd and hence consumes its FD argument.
79108         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79109         [struct FTS] (fts_rft): Remove now-unused member.
79110         [struct FTS] (fts_cycle.state): Improve comment.
79111
79112         * lib/openat.c (openat_needs_fchdir): New function.
79113         * lib/openat.h (openat_needs_fchdir): Declare it.
79114
79115 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79116
79117         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79118         Problem and fix reported by Pádraig Brady in
79119         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79120
79121 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79122
79123         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79124
79125 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79126
79127         * lib/memcoll.c (memcoll): Optimize for the common case where the
79128         arguments are bytewise equal.
79129
79130 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79131
79132         * doc/regexprops-generic.texi: Add a copyright notice.
79133
79134 2006-08-15  Bruno Haible  <bruno@clisp.org>
79135
79136         * modules/tmpdir (License): Change to LGPL.
79137
79138 2006-08-15  Bruno Haible  <bruno@clisp.org>
79139
79140         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79141         module.
79142
79143 2006-08-14  Simon Josefsson  <jas@extundo.com>
79144
79145         * config/srclist.txt: Add gnupload.
79146
79147 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79148
79149         Change copyright notice from LGPL 2 to GPL 2, since that's the
79150         standard form used in the gnulib repository.
79151         * tests/test-lock.c: Likewise.
79152         * tests/test-stdint.c: Likewise.
79153         * tests/test-tls.c: Likewise.
79154
79155         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79156         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79157         Add copyright notice.
79158
79159         * check-module: Add copyright notice.  Output a copyright
79160         notice if "--version" is specified.
79161         * modules/COPYING: New file.
79162         * tests/test-getaddrinfo.c: Add copyright notice.
79163         * tests/test-verify.c: Likewise.
79164
79165 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79166
79167         Change copyright notice from LGPL 2 to GPL 2, since that's the
79168         standard form used in the gnulib repository.
79169         * lib/lock.c: LGPL -> GPL.
79170         * lib/lock.h: Likewise.
79171         * lib/strnlen1.c: Likewise.
79172         * lib/strnlen1.h: Likewise.
79173         * lib/tls.c: Likewise.
79174         * lib/tls.h: Likewise.
79175         * lib/tmpdir.c: Likewise.
79176
79177         * lib/TODO: Remove; this belongs only in coreutils.
79178
79179 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         Add copyright notices to long-enough files that lack them, since
79182         otherwise the files aren't clearly free.  Use the same notice that
79183         getdate.texi already uses.
79184         * doc/alloca-opt.texi: Add copyright notice.
79185         * doc/alloca.texi: Likewise.
79186         * doc/ctime.texi: Likewise.
79187         * doc/functions.texi: Likewise.
79188         * doc/gcd.texi: Likewise.
79189         * doc/gnulib-tool.texi: Likewise.
79190         * doc/inet_ntoa.texi: Likewise.
79191         * doc/visibility.texi: Likewise.
79192
79193         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79194         * doc/quote.texi: Add copyright notice.
79195
79196         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79197         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79198         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79199         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79200         is now obsolete, and give a pointer to the Sun list.
79201         Add copyright notice.
79202
79203 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79204
79205         * config/srclistvars.sh: Add copyright notice.
79206
79207 2006-08-14  Eric Blake  <ebb9@byu.net>
79208
79209         Import the following change from libc:
79210
79211         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79212
79213         Upstream bug 2997.
79214         * lib/misc/error.c: Add space between program name and message if file
79215         name is missing.
79216
79217 2006-08-12  Karl Berry  <karl@gnu.org>
79218
79219         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79220         remove, these originate in gnulib now.
79221
79222 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79223
79224         * doc/Makefile (standards.info standards.html standards.dvi):
79225         Also depend on make-stds.texi.
79226
79227 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79228
79229         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79230         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79231
79232         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79233         in wchar_t.  Problem reported by Eric Blake.
79234
79235         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79236         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79237         Also, help the compiler to keep LEN in a register.
79238
79239 2006-08-11  Eric Blake  <ebb9@byu.net>
79240
79241         * users.txt: Sort.  Add tar.
79242
79243 2006-08-11  Bruno Haible  <bruno@clisp.org>
79244
79245         * users.txt: New file.
79246
79247 2006-08-11  Bruno Haible  <bruno@clisp.org>
79248
79249         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79250         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79251
79252 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         * modules/snprintf (Depends-on): Remove minmax.
79255         (Maintainer): Add self and Bruno.
79256
79257 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79258
79259         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79260         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79261         (EOVERFLOW): Define if the system does not.
79262         Do not include "minmax.h"; it wasn't used.
79263         (snprintf): Don't assume size_t promotes to an unsigned type.
79264         Fix bug when generated string was too long for the buffer: the
79265         buffer's contents are supposed to be the initial prefix of the
79266         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79267         exceeds INT_MAX; do the check ourselves.
79268
79269         Import the following changes from libc:
79270
79271         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79272
79273         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79274         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79275         set wc to the byte which couldn't be converted.
79276         (re_string_reconstruct): Don't clear valid_raw_len before calling
79277         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79278         tip_context using re_string_context_at.
79279
79280         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79281
79282         * lib/posix/regex.h: g++ still cannot handled [restrict].
79283
79284         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79285
79286         * lib/posix/regex.h: Remove special handling for VMS.
79287
79288 2006-08-10  Jim Meyering  <jim@meyering.net>
79289
79290         * modules/same-inode: New module.
79291         * modules/dev-ino: New module.
79292         * modules/cycle-check: Depend on these modules, rather than simply
79293         including their .h files.
79294         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79295         required via m4/cycle-check.m4.
79296         * modules/same: Depend on new same-inode module, rather than
79297         including same-inode.h.
79298         * modules/chdir-safer: New file.
79299
79300         * modules/chown (Depends-on): Add stat-macros.
79301
79302 2006-08-10  Jim Meyering  <jim@meyering.net>
79303
79304         * m4/cycle-check.m4: New file.
79305         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79306         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79307
79308 2006-08-10  Eric Blake  <ebb9@byu.net>
79309
79310         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79311         in from original proposal.
79312
79313 2006-08-10  Eric Blake  <ebb9@byu.net>
79314         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79315
79316         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79317         namespace.
79318
79319 2006-08-10  Bruno Haible  <bruno@clisp.org>
79320
79321         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79322         as well.
79323
79324 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79325
79326         Sync from coreutils.
79327
79328         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79329
79330         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79331         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79332
79333 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79334
79335         * modules/restrict: Remove; no longer needed now that we assume
79336         Autoconf 2.59 or later.
79337         * MODULES.html.sh: Remove 'restrict'.
79338         * modules/argp (Depends-on): Remove 'restrict'.
79339         * modules/base64 (Depends-on): Likewise.
79340         * modules/gc (Depends-on): Likewise.
79341         * modules/getaddrinfo (Depends-on): Likewise.
79342         * modules/glob (Depends-on): Likewise.
79343         * modules/inet_ntop (Depends-on): Likewise.
79344         * modules/inet_pton (Depends-on): Likewise.
79345         * modules/memxor (Depends-on): Likewise.
79346         * modules/regex (Depends-on): Likewise.
79347         * modules/strtok_r (Depends-on): Likewise.
79348         * modules/time_r (Depends-on): Likewise.
79349
79350 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79351
79352         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79353         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79354         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79355         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79356         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79357         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79358         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79359         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79360
79361         Merge from coreutils.
79362         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79363         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79364         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79365         * m4/time_r.m4 (gl_TIME_R): Likewise.
79366
79367 2006-08-09  Karl Berry  <karl@gnu.org>
79368
79369         * config/srclist.txt: no more gettext-tools, per Bruno.
79370
79371 2006-08-08  Eric Blake  <ebb9@byu.net>
79372
79373         * modules/verror: New module.
79374         * MODULES.html.sh: Document it.
79375
79376 2006-08-08  Eric Blake  <ebb9@byu.net>
79377
79378         * lib/verror.h, lib/verror.c: New files.
79379
79380 2006-08-08  Eric Blake  <ebb9@byu.net>
79381
79382         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79383         verror_at_line output complies with GNU Coding Standards even when
79384         file is NULL.
79385
79386 2006-08-07  Bruno Haible  <bruno@clisp.org>
79387
79388         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79389         versions of AIX.
79390         Reported by Ralf Wildenhues.
79391
79392 2006-08-07  Bruno Haible  <bruno@clisp.org>
79393
79394         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79395         in an AC_DEFUN. Needed so that the autoconf snippets can use
79396         AC_REQUIRE.
79397
79398 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79399
79400         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79401         Initialize pkgdata_DATA.
79402         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79403         overriding it.
79404
79405 2006-08-06  Eric Blake  <ebb9@byu.net>
79406
79407         * lib/error.h: Fold in some upstream changes from glibc.
79408         * lib/error.c: Likewise.
79409
79410 2006-08-04  Bruno Haible  <bruno@clisp.org>
79411
79412         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79413         Make the mostlyclean-local rule depend on mostlyclean-generic.
79414         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79415
79416 2006-07-31  Bruno Haible  <bruno@clisp.org>
79417
79418         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79419         <stdlib.h>, <string.h>.
79420
79421 2006-07-30  Bruno Haible  <bruno@clisp.org>
79422
79423         * modules/readlink (License): Change to LGPL.
79424
79425 2006-07-30  Bruno Haible  <bruno@clisp.org>
79426
79427         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79428         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79429         set PKGDATADIR to point to it.
79430
79431 2006-07-30  Bruno Haible  <bruno@clisp.org>
79432
79433         * modules/csharpexec (configure.ac): Comment out macro invocation.
79434         * modules/javaexec (configure.ac): Likewise.
79435         * modules/javacomp-script (configure.ac): Likewise.
79436
79437         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79438
79439 2006-07-30  Bruno Haible  <bruno@clisp.org>
79440
79441         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79442         linked-list.
79443
79444 2006-07-30  Bruno Haible  <bruno@clisp.org>
79445
79446         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79447
79448 2006-07-30  Bruno Haible  <bruno@clisp.org>
79449
79450         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79451         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79452         get removed.
79453
79454 2006-07-29  Bruno Haible  <bruno@clisp.org>
79455
79456         Make it possible for gnulib-tool to work with locally modified or
79457         augmented gnulib repositories.
79458         * gnulib-tool (func_usage): Document --local-dir option.
79459         (local_gnulib_dir): New variable.
79460         Handle --local-dir option.
79461         (func_lookup_file): New function.
79462         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79463         (func_get_description, func_get_filelist, func_get_description,
79464         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79465         func_get_automake_snippet, func_get_include_directive,
79466         func_get_license, func_get_maintainer): Use func_lookup_file.
79467         (func_import, func_create_testdir): Use func_lookup_file.
79468
79469 2006-07-29  Bruno Haible  <bruno@clisp.org>
79470
79471         * modules/setenv (Depends-on): Add unistd.
79472
79473 2006-07-29  Bruno Haible  <bruno@clisp.org>
79474
79475         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79476
79477 2006-07-29  Bruno Haible  <bruno@clisp.org>
79478
79479         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79480
79481 2006-07-29  Bruno Haible  <bruno@clisp.org>
79482
79483         * gnulib-tool (import, update): If there is no Makefile.am, look at
79484         aclocal.m4, instead of bailing out.
79485
79486 2006-07-29  Bruno Haible  <bruno@clisp.org>
79487
79488         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79489         Categorize the options by when they are useful.
79490
79491 2006-07-29  Bruno Haible  <bruno@clisp.org>
79492
79493         * gnulib-tool (func_usage): Document option --no-libtool.
79494         Handle option --no-libtool.
79495         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79496         for changed semantics of $libtool variable.
79497         (func_import): Likewise. If libtool is not used, show this through
79498         an option --no-libtool.
79499         (func_create_testdir): Update.
79500
79501 2006-07-29  Bruno Haible  <bruno@clisp.org>
79502
79503         * gnulib-tool (func_import): Extend error message about missing
79504         --doc-base.
79505
79506 2006-07-29  Bruno Haible  <bruno@clisp.org>
79507
79508         * gnulib-tool (func_import): Don't create the $docbase directory if
79509         there is no file to store there.
79510
79511 2006-07-29  Bruno Haible  <bruno@clisp.org>
79512
79513         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79514         relevant, look for configure.ac there, not in the current directory.
79515         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79516
79517 2006-07-29  Bruno Haible  <bruno@clisp.org>
79518
79519         * gnulib-tool (SORT): New variable.
79520         (func_usage): Undocument --assume-autoconf option.
79521         Remove --assume-autoconf option handling.
79522         (autoconf_minversion): Determine from the contents of configure.ac.
79523         (func_import): Remove autoconf_minversion handling.
79524         Suggested by Eric Blake.
79525
79526 2006-07-29  Bruno Haible  <bruno@clisp.org>
79527
79528         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79529
79530 2006-07-29  Bruno Haible  <bruno@clisp.org>
79531
79532         * config/srclist.txt (*setenv.[ch]): Remove rules.
79533
79534 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79535
79536         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79537
79538 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79539
79540         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79541         arpa/inet.h.
79542
79543 2006-07-28  Simon Josefsson  <jas@extundo.com>
79544
79545         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79546         * modules/inet_pton (Depends-on): Likewise.
79547
79548 2006-07-28  Simon Josefsson  <jas@extundo.com>
79549
79550         * m4/netinet_in_h.m4: New file.
79551
79552 2006-07-28  Simon Josefsson  <jas@extundo.com>
79553
79554         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79555         #include's.
79556
79557 2006-07-28  Simon Josefsson  <jas@extundo.com>
79558
79559         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79560         #include's.
79561
79562 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79563
79564         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79565         setgid on directories only if they set these bits.
79566         * lib/modechange.h: Remove obsolete comment about masks.
79567
79568 2006-07-28  Eric Blake  <ebb9@byu.net>
79569
79570         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79571         macro expansion.
79572
79573 2006-07-28  Bruno Haible  <bruno@clisp.org>
79574
79575         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79576
79577 2006-07-28  Bruno Haible  <bruno@clisp.org>
79578
79579         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79580
79581 2006-07-28  Bruno Haible  <bruno@clisp.org>
79582
79583         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79584         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79585         Define fallbacks.
79586         Avoids link error on FreeBSD 4.x.
79587         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79588
79589         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79590         encoding.
79591         * lib/mbswidth.c (iswcntrl): Likewise.
79592
79593 2006-07-27  Bruno Haible  <bruno@clisp.org>
79594
79595         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79596         test.
79597
79598 2006-07-27  Bruno Haible  <bruno@clisp.org>
79599
79600         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79601         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79602         defined.
79603
79604 2006-07-26  Eric Blake  <ebb9@byu.net>
79605
79606         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79607
79608 2006-07-26  Eric Blake  <ebb9@byu.net>
79609
79610         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79611         like mingw that lack mkstemp.
79612         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79613         avoid compilation warning on mingw.
79614
79615 2006-07-26  Bruno Haible  <bruno@clisp.org>
79616
79617         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79618         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79619         INT_FAST*_MIN, INTPTR_MIN.
79620
79621 2006-07-25  Bruno Haible  <bruno@clisp.org>
79622
79623         * modules/version-etc (Depends-on): Add stdarg.
79624
79625 2006-07-25  Bruno Haible  <bruno@clisp.org>
79626
79627         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79628         complex commands.
79629
79630 2006-07-25  Bruno Haible  <bruno@clisp.org>
79631
79632         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79633         defined in <stdarg.h> or config.h.
79634
79635 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79636
79637         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79638         (gl_STDIO_SAFER): Remove.
79639
79640 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * MODULES.html.sh (File stream based Input/Output):
79643         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79644         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79645         * modules/fopen-safer, modules/tmpfile-safer: New files.
79646         * modules/stdio-safer: Remove.
79647
79648 2006-07-24  Bruno Haible  <bruno@clisp.org>
79649
79650         * modules/tmpdir: New file.
79651         * MODULES.html.sh (File system functions): Add it.
79652
79653 2006-07-24  Bruno Haible  <bruno@clisp.org>
79654
79655         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79656         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79657
79658 2006-07-24  Bruno Haible  <bruno@clisp.org>
79659
79660         * modules/clean-temp: New file.
79661
79662 2006-07-24  Bruno Haible  <bruno@clisp.org>
79663
79664         * m4/tmpdir.m4: New file, from GNU gettext.
79665
79666 2006-07-24  Bruno Haible  <bruno@clisp.org>
79667
79668         * lib/tmpdir.h: New file, from GNU gettext.
79669         * lib/tmpdir.c: New file, from GNU gettext.
79670
79671 2006-07-24  Bruno Haible  <bruno@clisp.org>
79672
79673         * lib/clean-temp.h: New file, from GNU gettext.
79674         * lib/clean-temp.c: New file, from GNU gettext.
79675
79676 2006-07-23  Eric Blake  <ebb9@byu.net>
79677
79678         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79679         (Depends-on): Add binary-io.
79680
79681 2006-07-23  Eric Blake  <ebb9@byu.net>
79682
79683         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79684
79685 2006-07-23  Eric Blake  <ebb9@byu.net>
79686
79687         * lib/tmpfile-safer.c: New file.
79688         * lib/stdio-safer.h (fopen_safer): Add prototype.
79689         * lib/stdio--.h (tmpfile): Make safer.
79690
79691 2006-07-23  Bruno Haible  <bruno@clisp.org>
79692
79693         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79694         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79695         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79696         gl_linked_remove_at): Use it.
79697
79698 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79699         and Simon Josefsson <jas@extundo.com>
79700
79701         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79702
79703         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79704
79705 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79706
79707         * modules/close-stream: New file.
79708         * modules/closeout (Description): Make it clear that it exits
79709         with a diagnostic on error.
79710         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79711         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79712
79713 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79714
79715         * m4/close-stream.m4: New file.
79716
79717 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79718
79719         * lib/close-stream.c, lib/close-stream.h: New files.
79720
79721 2006-07-22  Bruno Haible  <bruno@clisp.org>
79722
79723         Merge from GNU gettext 0.15.
79724
79725         2006-05-01  Bruno Haible  <bruno@clisp.org>
79726
79727                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79728
79729         2006-07-22  Bruno Haible  <bruno@clisp.org>
79730
79731                 * modules/javaversion: New file.
79732                 * MODULES.html.sh (Java): Add javaversion.
79733
79734         2006-03-12  Bruno Haible  <bruno@clisp.org>
79735
79736                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79737
79738         2005-12-04  Bruno Haible  <bruno@clisp.org>
79739
79740                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79741                 (untested).
79742
79743         2006-06-21  Bruno Haible  <bruno@clisp.org>
79744
79745                 Avoid warnings from recent versions of mcs.
79746                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79747                 -o, -L, -r any more. Use options documented since mcs-1.0
79748                 instead. Similarly for -g.
79749
79750         2005-12-04  Bruno Haible  <bruno@clisp.org>
79751
79752                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79753                 .resources, not .resource.
79754
79755         2005-07-09  Bruno Haible  <bruno@clisp.org>
79756
79757                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79758                 add a .dll suffix.
79759                 Reported by Mark Junker <mjscod@gmx.de>.
79760
79761         2006-07-22  Bruno Haible  <bruno@clisp.org>
79762
79763                 * modules/gettext: Upgrade to gettext-0.15.
79764                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79765                 m4/visibility.m4.
79766                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79767
79768 2006-07-22  Bruno Haible  <bruno@clisp.org>
79769
79770         Merge from GNU gettext 0.15.
79771
79772         2006-03-25  Bruno Haible  <bruno@clisp.org>
79773
79774                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79775
79776         2006-07-21  Bruno Haible  <bruno@clisp.org>
79777
79778                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79779                 "1.1".
79780
79781         2006-05-09  Bruno Haible  <bruno@clisp.org>
79782
79783                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79784                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79785                 for the conftestver execution.
79786
79787         2006-05-01  Bruno Haible  <bruno@clisp.org>
79788
79789                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79790                 optional target-version argument. Verify that the compiler
79791                 groks source of the specified source-version, or add -source
79792                 option as necessary. Verify that the compiler produces
79793                 bytecode in the specified target-version, or add -target and
79794                 -source options as necessary. Make the result of the test
79795                 available as variable CONF_JAVAC. Also log error output in
79796                 config.log.
79797
79798         2006-03-11  Bruno Haible  <bruno@clisp.org>
79799
79800                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79801
79802         2006-05-09  Bruno Haible  <bruno@clisp.org>
79803
79804                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79805                 CLASSPATH_SEPARATOR to a semicolon.
79806
79807         2006-03-12  Bruno Haible  <bruno@clisp.org>
79808
79809                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79810                 available as variable CONF_JAVA, for subsequent autoconf
79811                 tests. Also log error output in config.log.
79812
79813         2006-07-19  Bruno Haible  <bruno@clisp.org>
79814
79815                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79816                 that getline works on glibc2 systems. Needed to avoid trouble
79817                 in relocatable.c.
79818                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79819
79820         2005-12-04  Bruno Haible  <bruno@clisp.org>
79821
79822                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79823                 launcher (untested).
79824
79825         2005-12-04  Bruno Haible  <bruno@clisp.org>
79826
79827                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79828
79829         2006-07-22  Bruno Haible  <bruno@clisp.org>
79830
79831                 * gettext.m4: Update from GNU gettext-0.15.
79832                 * nls.m4: Likewise.
79833                 * po.m4: Likewise.
79834                 * inttypes-pri.m4: Likewise.
79835                 * inttypes-h.m4: Renamed from inttypes.m4.
79836                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79837
79838 2006-07-22  Bruno Haible  <bruno@clisp.org>
79839
79840         Merge from GNU gettext 0.15.
79841
79842         2005-07-05  Bruno Haible  <bruno@clisp.org>
79843
79844                 * printf-args.c (printf_fetchargs): Work around broken
79845                 definition of wint_t on mingw.
79846
79847         2005-02-12  Bruno Haible  <bruno@clisp.org>
79848
79849                 * xallocsa.h: Add extern "C" for C++.
79850
79851         2006-05-17  Bruno Haible  <bruno@clisp.org>
79852
79853                 Cygwin portability.
79854                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79855
79856         2006-04-30  Bruno Haible  <bruno@clisp.org>
79857
79858                 * progreloc.c: Include <mach-o/dyld.h> if available.
79859                 (find_executable): Use _NSGetExecutablePath when possible.
79860
79861         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79862
79863                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79864                 function.
79865
79866         2005-12-29  Bruno Haible  <bruno@clisp.org>
79867
79868                 * progreloc.c (set_program_name_and_installdir): Fix
79869                 compilation error.
79870
79871         2005-12-04  Bruno Haible  <bruno@clisp.org>
79872
79873                 Cygwin portability.
79874                 * progreloc.c: Include <windows.h> also on Cygwin.
79875                 (find_executable): Add support for Cygwin.
79876                 (set_program_name_and_installdir): Handle also platforms with
79877                 nonempty EXEEXT.
79878
79879         2006-07-11  Bruno Haible  <bruno@clisp.org>
79880
79881                 * javacomp.c: Fix a comment.
79882                 Reported by Jim Meyering.
79883
79884         2006-04-30  Bruno Haible  <bruno@clisp.org>
79885
79886                 * javacomp.h (compile_java_class): Add source_version,
79887                 target_version arguments.
79888                 * javacomp.c: Rewritten to choose only a compiler that
79889                 respects the specified source_version and target_version.
79890
79891         2006-06-27  Bruno Haible  <bruno@clisp.org>
79892
79893                 Assume correct S_ISDIR macro.
79894                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79895
79896         2006-07-22  Bruno Haible  <bruno@clisp.org>
79897
79898                 * javaversion.h: New file, from GNU gettext.
79899                 * javaversion.c: New file, from GNU gettext.
79900                 * javaversion.java: New file, from GNU gettext.
79901                 * javaversion.class: New file, from GNU gettext.
79902
79903         2006-05-17  Bruno Haible  <bruno@clisp.org>
79904
79905                 Cygwin portability.
79906                 * javaexec.c (execute_java_class): Test for jview program
79907                 also on Cygwin.
79908
79909         2006-04-09  Bruno Haible  <bruno@clisp.org>
79910
79911                 * fatal-signal.c: Don't include string.h.
79912                 (at_fatal_signal): Use a copying loop instead of memcpy.
79913
79914         2005-12-04  Bruno Haible  <bruno@clisp.org>
79915
79916                 * csharpexec.c: Add support for 'clix' launcher (untested).
79917                 (execute_csharp_using_sscli): New function.
79918                 (execute_csharp_program): Call it.
79919
79920         2006-06-21  Bruno Haible  <bruno@clisp.org>
79921
79922                 Avoid warnings from recent versions of mcs.
79923                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79924                 -o, -L, -r any more. Use options documented since mcs-1.0
79925                 instead. Similarly for -g.
79926
79927         2005-07-09  Bruno Haible  <bruno@clisp.org>
79928
79929                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79930                 add a .dll suffix.
79931                 Reported by Mark Junker <mjscod@gmx.de>.
79932
79933         2006-06-17  Bruno Haible  <bruno@clisp.org>
79934
79935                 * config.charset: Update for NetBSD 3.0.
79936
79937         2006-05-17  Bruno Haible  <bruno@clisp.org>
79938
79939                 Cygwin portability.
79940                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79941
79942         2006-05-16  Bruno Haible  <bruno@clisp.org>
79943
79944                 * localcharset.c [CYGWIN]: Include <windows.h>.
79945                 (get_charset_aliases): For Cygwin, return the same CPxxx
79946                 aliases list as under WIN32.
79947                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79948                 the environment variables. Fall back to GetACP().
79949
79950         2006-04-05  Bruno Haible  <bruno@clisp.org>
79951
79952                 * config.charset: Update Juan Manuel Guerrero's address.
79953
79954         2005-02-12  Bruno Haible  <bruno@clisp.org>
79955
79956                 * allocsa.h: Add extern "C" for C++.
79957
79958         2005-02-10  Bruno Haible  <bruno@clisp.org>
79959
79960                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79961                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79962
79963         2006-07-22  Bruno Haible  <bruno@clisp.org>
79964
79965                 * gettext.h: Update to GNU gettext-0.15.
79966
79967 2006-07-22  Bruno Haible  <bruno@clisp.org>
79968
79969         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79970         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79971         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79972
79973 2006-07-21  Eric Blake  <ebb9@byu.net>
79974
79975         * modules/stdlib-safer: New file.
79976         * MODULES.html.sh (File stream based Input/Output): Add
79977         stdlib-safer.
79978
79979 2006-07-21  Eric Blake  <ebb9@byu.net>
79980
79981         * lib/stdlib-safer.h: New file from coreutils, required by
79982         stdlib--.h.
79983
79984 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79985
79986         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79987
79988 2006-07-20  Bruno Haible  <bruno@clisp.org>
79989
79990         * gnulib-tool: Recognize new option --assume-autoconf.
79991         (autoconf_minversion): New variable.
79992         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79993
79994 2006-07-20  Bruno Haible  <bruno@clisp.org>
79995
79996         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79997
79998 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79999
80000         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80001         Reindent and repaginate.
80002
80003 2006-07-19  Derek Price  <derek@ximbiot.com>
80004
80005         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80006         Correct grammar.
80007
80008 2006-07-17  Bruno Haible  <bruno@clisp.org>
80009
80010         * modules/list: New file.
80011         * modules/array-list: New file.
80012         * modules/carray-list, modules/carray-list-tests: New files.
80013         * modules/linked-list, modules/linked-list-tests: New files.
80014         * modules/avltree-list, modules/avltree-list-tests: New files.
80015         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80016         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80017         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80018         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80019         * modules/oset: New file.
80020         * modules/array-oset: New file.
80021         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80022         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80023         * tests/test-carray_list.c: New file.
80024         * tests/test-linked_list.c: New file.
80025         * tests/test-avltree_list.c: New file.
80026         * tests/test-rbtree_list.c: New file.
80027         * tests/test-linkedhash_list.c: New file.
80028         * tests/test-avltreehash_list.c: New file.
80029         * tests/test-rbtreehash_list.c: New file.
80030         * tests/test-avltree_oset.c: New file.
80031         * tests/test-rbtree_oset.c: New file.
80032         * MODULES.html.sh (Container data structures): New section.
80033
80034 2006-07-17  Bruno Haible  <bruno@clisp.org>
80035
80036         * m4/gl_list.m4: New file.
80037
80038 2006-07-17  Bruno Haible  <bruno@clisp.org>
80039
80040         * lib/gl_list.h: New file.
80041         * lib/gl_list.c: New file.
80042         * lib/gl_array_list.h: New file.
80043         * lib/gl_array_list.c: New file.
80044         * lib/gl_carray_list.h: New file.
80045         * lib/gl_carray_list.c: New file.
80046         * lib/gl_linked_list.h: New file.
80047         * lib/gl_linked_list.c: New file.
80048         * lib/gl_anylinked_list1.h: New file.
80049         * lib/gl_anylinked_list2.h: New file.
80050         * lib/gl_avltree_list.h: New file.
80051         * lib/gl_avltree_list.c: New file.
80052         * lib/gl_anyavltree_list1.h: New file.
80053         * lib/gl_anyavltree_list2.h: New file.
80054         * lib/gl_rbtree_list.h: New file.
80055         * lib/gl_rbtree_list.c: New file.
80056         * lib/gl_anyrbtree_list1.h: New file.
80057         * lib/gl_anyrbtree_list2.h: New file.
80058         * lib/gl_anytree_list1.h: New file.
80059         * lib/gl_anytree_list2.h: New file.
80060         * lib/gl_linkedhash_list.h: New file.
80061         * lib/gl_linkedhash_list.c: New file.
80062         * lib/gl_anyhash_list1.h: New file.
80063         * lib/gl_anyhash_list2.h: New file.
80064         * lib/gl_avltreehash_list.h: New file.
80065         * lib/gl_avltreehash_list.c: New file.
80066         * lib/gl_rbtreehash_list.h: New file.
80067         * lib/gl_rbtreehash_list.c: New file.
80068         * lib/gl_anytreehash_list1.h: New file.
80069         * lib/gl_anytreehash_list2.h: New file.
80070
80071         * lib/gl_oset.h: New file.
80072         * lib/gl_oset.c: New file.
80073         * lib/gl_array_oset.h: New file.
80074         * lib/gl_array_oset.c: New file.
80075         * lib/gl_avltree_oset.h: New file.
80076         * lib/gl_avltree_oset.c: New file.
80077         * lib/gl_rbtree_oset.h: New file.
80078         * lib/gl_rbtree_oset.c: New file.
80079         * lib/gl_anytree_oset.h: New file.
80080
80081 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80082
80083         * m4/mkancesdirs.m4: New file.
80084         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80085         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80086         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80087         it.
80088
80089 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80090
80091         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80092         * lib/mkancesdirs.h: New files.
80093         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80094         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80095         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80096         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80097         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80098         callers changed.  Revamp internals significantly, by not
80099         attempting to create directories that are temporarily more
80100         permissive than the final results.  Do not attempt to use
80101         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80102         This removes some race conditions, fixes some bugs, and simplifies
80103         things.  Use new dirchownmod function to do owner and mode changes.
80104         * lib/mkdir-p.h: Likewise.
80105         * lib/modechange.c (octal_to_mode): New function.
80106         (struct mode_change): New member mentioned.
80107         (make_node_op_equals): New arg mentioned.  All callers changed.
80108         (mode_compile): Keep track of which mode bits the user has explicitly
80109         mentioned.
80110         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80111         New arg PMODE_BITS, to keep track of which mode bits the user
80112         mentioned; it treats S_ISUID and S_ISGID speciall.
80113         All callers changed.
80114         * lib/modechange.h: Likewise.
80115
80116 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80117
80118         * MODULES.html.sh: Add mkancestors.
80119         * modules/mkancesdirs: New module.
80120         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80121         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80122         The chdir-safer and afs files are now orphans; I'll remove them
80123         unless someone speaks up.
80124         Add lib/dirchownmod.c, lib/dirchownmod.h.
80125         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80126         Add lchown, mkancesdirs.
80127         (Maintainer): Add self.
80128
80129 2006-07-15  Karl Berry  <karl@gnu.org>
80130
80131         * gnulib-tool: help message wording/arrangement.
80132
80133 2006-07-14  Simon Josefsson  <jas@extundo.com>
80134
80135         * doc/gnulib.texi (Libtool and Windows): New section.
80136
80137 2006-07-12  Simon Josefsson  <jas@extundo.com>
80138
80139         * modules/gendocs (License): Fix license, approved by Karl.
80140
80141 2006-07-12  Eric Blake  <ebb9@byu.net>
80142
80143         * MODULES.html.sh: Add gendocs.
80144
80145 2006-07-11  Eric Blake  <ebb9@byu.net>
80146
80147         * modules/fdl: New module, to install doc/fdl.texi.
80148         * MODULES.html.sh: Add new section for documentation modules.
80149         * gnulib-tool: Avoid space-tab.
80150         (--doc-base): New option, to manage files from doc.
80151
80152 2006-07-11  Eric Blake  <ebb9@byu.net>
80153
80154         * m4/absolute-header.m4: Fix comments to match recent change.
80155
80156 2006-07-11  Eric Blake  <ebb9@byu.net>
80157
80158         * gnulib-tool: List --doc-base before --tests-base.
80159
80160 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80161
80162         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80163
80164 2006-07-11  Bruno Haible  <bruno@clisp.org>
80165
80166         * README: Mention where to put documentation.
80167
80168 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80169
80170         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80171
80172 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80173
80174         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80175         to stdint.m4.
80176
80177 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80178
80179         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80180         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80181         "no/such/file/stdint.h" when there is no such file, so that
80182         the resulting C code can be parsed by dodgy compilers.
80183         Problems reported by Bob Proulx.
80184
80185 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80186
80187         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80188         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80189         macros into the GNU _D_EXACT_NAMLEN.
80190         * lib/savedir.c:  Likewise.
80191         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80192
80193 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80194         and Paul Eggert  <eggert@cs.ucla.edu>
80195
80196         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80197         * m4/savedir.m4:
80198         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80199         macros into the GNU _D_EXACT_NAMLEN.
80200
80201 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80204         around the absolute name, to work around a problem with the HP-UX
80205         11.23 native C compiler, reported by Bob Proulx.
80206
80207 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80208
80209         * doc/maintain.texi, make-stds.texi: Sync from
80210         <http://savannah.gnu.org/projects/gnustandards>.
80211
80212 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80215
80216 2006-07-09  Jim Meyering  <jim@meyering.net>
80217
80218         * m4/glob.m4: Remove a doubled word in a comment.
80219
80220 2006-07-09  Jim Meyering  <jim@meyering.net>
80221
80222         * lib/argp-pv.c: Remove a doubled word in a comment.
80223         * lib/check-version.c (check_version): Likewise.
80224         * lib/javacomp.c (compile_java_class): Likewise.
80225
80226 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80227
80228         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80229         for the benefit of people using Autoconf 2.60.  If you want to
80230         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80231         (or m4/onceonly.m4, if pre-2.57) manually.
80232
80233 2006-07-08  Jim Meyering  <jim@meyering.net>
80234
80235         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80236         comment.
80237         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80238         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80239         comment.
80240
80241 2006-07-08  Jim Meyering  <jim@meyering.net>
80242
80243         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80244
80245 2006-07-07  Simon Josefsson  <jas@extundo.com>
80246
80247         * tests/test-crc.c: Change expected crc value, the test vector
80248         were probably computed using the old broken crc.c?
80249
80250 2006-07-06  Simon Josefsson  <jas@extundo.com>
80251
80252         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80253         now the canonical place for the M4 file).
80254
80255         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80256         from the sys_socket dependency now.
80257
80258         * modules/inet_pton (Files): Ditto.
80259
80260         * modules/inet_ntop (Files): Ditto.
80261
80262 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80263
80264         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80265         not gl_PREREQ_GETUSERSHELL.
80266
80267 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80268
80269         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80270         with only one argument, for Autoconf 2.60.
80271         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80272         expand to nothing, so add a shell command to avoid syntax error.
80273         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80274
80275 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80276
80277         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80278
80279 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80282         no longer needed.  Check for isblank decl.
80283         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80284         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80285         of existence.
80286
80287 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80288
80289         * lib/getloadavg.c: Use __VMS, not VMS.
80290         * lib/getopt.c: Likewise.
80291         * lib/getpagesize.h: Likewise.
80292         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80293         and probably does not work.
80294
80295 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         * lib/.cppi-disable: Add wcwidth.
80298         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80299         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80300         (ISGRAPH): Remove.  All uses changed to isgraph.
80301         (FOLD) [!defined _LIBC]: Remove special case.
80302         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80303         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80304         HAVE_ISBLANK.
80305         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80306         case.
80307
80308 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80309
80310         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80311         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80312         brackets.  Other minor changes to suppress some compiler
80313         warnings.
80314
80315 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80316         and Paul Eggert  <eggert@cs.ucla.edu>
80317
80318         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80319         of invoking obsolescent AC_HEADER_DIRENT macro.
80320         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80321         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80322         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80323         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80324         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80325         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80326         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80327         * m4/readdir.m4: Remove; no longer needed.
80328
80329 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80330         and Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80333         Don't worry about this obsolete case any more.
80334         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80335         directories.
80336         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80337         worry about this obsolete case any more.
80338         * lib/fts.c: Likewise.
80339         * lib/getcwd.c: Likewise.
80340         * lib/glob.h: Likewise.
80341         * lib/savedir.c: Likewise.
80342
80343 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80344
80345         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80346         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80347         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80348         needed.
80349         All uses removed.
80350         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80351         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80352         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80353         needed.
80354         * m4/getdate.m4 (gl_GETDATE): Likewise.
80355         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80356         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80357         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80358         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80359         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80360         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80361         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80362         needed.
80363
80364 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80365
80366         * lib/memcasecmp.c: Include <limits.h>.
80367         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80368         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80369         Don't assume isdigit succeeds only on '0' through '9'.
80370
80371 2006-07-05  Eric Blake  <ebb9@byu.net>
80372
80373         * modules/getaddrinfo (Depends-on): Add snprintf.
80374
80375 2006-07-05  Eric Blake  <ebb9@byu.net>
80376
80377         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80378         to avoid 'header present but could not be compiled' on cygwin.
80379
80380 2006-07-05  Eric Blake  <ebb9@byu.net>
80381
80382         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80383         missing from netdb.h.
80384         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80385
80386 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80387
80388         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80389         no longer needed.
80390         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80391         * m4/getdate.m4 (gl_GETDATE): Likewise.
80392         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80393         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80394         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80395         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80396         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80397
80398 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80399
80400         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80401         All uses of is_space replaced by isspace.
80402         * lib/exit.h: Don't talk about STDC_HEADERS.
80403         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80404         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80405         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80406         replaced by isprint etc.
80407         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80408         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80409         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80410         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80411         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80412         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80413
80414 2006-07-05  Bruno Haible  <bruno@clisp.org>
80415
80416         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80417         the function exists, before testing against AIX.
80418         Reported by Martin Lambers <marlam@marlam.de>.
80419
80420 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80421
80422         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80423         From Mark D. Baushke.
80424
80425 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80426
80427         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80428         to the absolute name, not just one, to bypass Sun C 5.8's
80429         "warning: #include of /usr/include/... may be non-portable".
80430
80431 2006-07-04  Eric Blake  <ebb9@byu.net>
80432
80433         * modules/dirname-tests: New test module.
80434         * tests/test-dirname.c: New file, replacing dirname.c
80435         TEST_DIRNAME section that was recently deleted.
80436
80437 2006-07-04  Bruno Haible  <bruno@clisp.org>
80438
80439         Assume ANSI C header files and <ctype.h> functions.
80440         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80441         (mbsnwidth): Use isprint, iscntrl instead.
80442
80443 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80444
80445         Merge from coreutils.
80446         * MODULES.html.sh: Add xstrtold.
80447         * modules/xstrtold: New file.
80448         * modules/cycle-check (Files): Add lib/same-inode.h.
80449         * modules/dirname (Files): Add m4/double-slash-root.m4.
80450         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80451         * modules/mkdir-p (Files): Add lib/same-inode.h.
80452         * modules/same (Files): Add lib/same-inode.h.
80453
80454 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80455
80456         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80457         This is to keep the terminology clean; POSIX talks about
80458         "absolute pathnames", not "full pathnames", but the GNU
80459         Coding Standards say to use "path" for something else;
80460         so use "absolute" to keep both sides happy.
80461         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80462         Set gl_absolute_header, not gl_full_header_path.
80463         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80464         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80465         All uses changed.
80466
80467         Merge from coreutils.
80468
80469         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80470
80471         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80472         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80473         want to require the building of c-strtod.o.
80474         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80475         needs -lm directly.
80476         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80477
80478         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80479
80480         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80481         --as-needed option if available.  Problem reported by Albert Chin in
80482         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80483         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80484         cc merely issues a bunch of annoying warnings for --as-needed
80485         (this problem was reported by Bob Proulx).  Also, try linking with
80486         -lm to detect a bug in binutils 2.16 (this problem was reported
80487         by Ralf Wildenhues).
80488
80489         2006-06-18  Jim Meyering  <jim@meyering.net>
80490
80491         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80492         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80493         macro.
80494         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80495         also check for glibc-2.4's abort-inducing bug.
80496
80497         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80498         Low-probability clean-up should be to use rmdir to get rid of
80499         the just-created directory, not unlink.
80500
80501         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80502         configure fail, and request a bug report to inform us about it.
80503         Add a comment that, barring reports to the contrary, in 2007 we'll
80504         assume ftruncate is universally available.
80505
80506         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80507
80508         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80509
80510         2006-03-12  Jim Meyering  <jim@meyering.net>
80511
80512         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80513         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80514         * m4/same.m4 (gl_SAME): Likewise.
80515         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80516
80517         2006-03-11  Eric Blake  <ebb9@byu.net>
80518
80519         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80520         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80521         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80522         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80523
80524 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80525
80526         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80527         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80528         reported by Mark D. Baushke, one in
80529         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80530
80531         Merge from coreutils.
80532
80533         * lib/.cppi-disable: Add stdint_.h.
80534         * lib/.cvsignore: Add stdint.h.
80535
80536         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80537
80538         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80539         both double and long double versions.
80540         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80541         * lib/xstrtold.c: New file.
80542         * lib/xstrtod.h (xstrtold): New decl.
80543
80544         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80545
80546         * lib/filemode.c (setst): Remove.
80547         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80548         (arguably) clearer, and the generated code is a bit smaller on my
80549         Debian GNU/Linux stable x86 host.
80550
80551         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80552
80553         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80554         Assume that filemode.h includes sys/types.h and sys/stat.h.
80555         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80556         (ftypelet): Reorder to put common cases first, for efficiency.
80557         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80558         to do 'M'.
80559         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80560         of 10, for compatibility with FreeBSD.  All callers changed.
80561         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80562         types that can't be deduced solely from st_mode.  First arg is now a
80563         const pointer.
80564         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80565         (strmode): Renamed from mode_string.
80566         (filemodestring): New decl.
80567         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80568         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80569         needed.
80570         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80571
80572         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80573
80574         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80575         fsusage.h now does that.  Include fsusage.h first, to test interface.
80576         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80577         at most one method (the old code could have generated decls that
80578         didn't conform to C89, not that this was ever exercised).
80579         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80580
80581         2006-03-19  Jim Meyering  <jim@meyering.net>
80582
80583         Work even in a chroot where d_ino values for entries in "/"
80584         don't match the stat.st_ino values for the same names.
80585         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80586         number, iterate through all entries again, using lstat instead.
80587         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80588         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80589
80590         * lib/getcwd.c (__getcwd): Clarify a comment.
80591         Use memcpy in place of a call to strcpy.
80592
80593         2006-03-12  Jim Meyering  <jim@meyering.net>
80594
80595         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80596         matches that of the current directory (which we're about to chdir ".."
80597         out of), then save the dev-ino of the parent, instead.
80598
80599         * lib/same-inode.h (SAME_INODE): New file/macro.
80600         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80601         Include "same-inode.h", instead.
80602         * lib/same.c: Likewise.
80603         * lib/cycle-check.h: Include "same-inode.h".
80604         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80605         * lib/cycle-check.c (SAME_INODE): Remove definition.
80606         * lib/root-dev-ino.h: Include "same-inode.h".
80607
80608         2006-03-11  Eric Blake  <ebb9@byu.net>
80609
80610         * lib/same.c (same_name): s/base_name/last_component/
80611         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80612         * lib/filenamecat.c (file_name_concat): Likewise.
80613
80614         2006-03-11  Eric Blake  <ebb9@byu.net>,
80615                     Paul Eggert  <eggert@cs.ucla.edu>
80616
80617         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80618         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80619         drive prefix.
80620         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80621         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80622         (last_component): New method.
80623         * lib/dirname.c (dir_len): Determine when drive letters need a
80624         subsequent slash.  Preserve // when it is special.
80625         (dir_name): Don't append dot when drive letter is absolute.
80626         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80627         * lib/basename.c (base_name): New semantics - malloc the result.
80628         Preserve // when it is special.  Preserve relative files that look
80629         like drive letters.
80630         (base_len): Preserve // when it is special.
80631         (last_component): New method, similar to old base_name semantics.
80632         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80633         base_name.  Strip redundant slashes from ///.
80634
80635 2006-07-03  Jim Meyering  <jim@meyering.net>
80636
80637         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80638         macro is used before the first cycle_check call.
80639
80640 2006-07-03  Eric Blake  <ebb9@byu.net>
80641
80642         * modules/dirname (Depends-on): Add xstrndup.
80643
80644 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80645
80646         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80647         test cases, so that config.log is a bit easier to follow.
80648
80649 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80650
80651         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80652         both are 64 bits, since this seems to be the tradition, and this
80653         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80654         we ever run into a host that prefers long long to long in this
80655         case, we'll need another configure-time test.  Problem reported by
80656         Jim Meyering.
80657
80658 2006-07-02  Eric Blake  <ebb9@byu.net>
80659
80660         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80661
80662 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80663
80664         * modules/inttypes (Depends-on): No longer depends on stdint.
80665         * modules/stdint (Description): Say more about assumptions.
80666         Say that the fast types might differ.  Say macros are used.
80667         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80668         (Makefile.am): Revise list of substituted symbols to match
80669         new stdint.m4.
80670         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80671         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80672         * tests/test-stdint.c (verify_same_types)
80673         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80674         the code conforms to C99/C89.
80675         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80676         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80677
80678 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80679
80680         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80681         but fix a bug, by requiring at least 64 bits.
80682         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80683         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80684         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80685         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80686
80687         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80688         changes.  Make 2.59 a prerequisite.  Check and substitute for
80689         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80690         inttypes.h.  Do not use special include files; just use the
80691         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80692         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80693         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80694         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80695         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80696         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80697         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80698         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80699         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80700         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80701         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80702         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80703         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80704         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80705         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80706         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80707         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80708         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80709         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80710         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80711         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80712         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80713         not check for things that C99 does not require, e.g., int8_t.  If
80714         a test isn't needed unless <stdint.h> isn't working, and is
80715         unlikely to be needed for any other reason, then don't do it
80716         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80717         size_t, since we assume C89 freestanding at least.  Do not check
80718         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80719         the right thing even if the types are not defined.  Instead use:
80720         (gl_STDINT_TYPE_PROPERTIES): New macro.
80721         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80722         testing whether <sys/types.h> clashes, as Autoconf does this for
80723         us now.  All uses removed.
80724         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80725         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80726         (gl_CHECK_TYPE_SAME):
80727         Remove; no longer needed.
80728         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80729         exists, since we'll return 0 anyway in that case.
80730         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80731
80732 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80733
80734         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80735         possible collision with system files.
80736         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80737         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80738         WCHAR_MIN and WCHAR_MAX in this case.
80739         (<stddef.h>): Do not include; no longer needed.
80740         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80741         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80742         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80743         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80744         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80745         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80746         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80747         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80748         !defined(__c99))]: Include in this case too, since it's harmless
80749         now.
80750         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80751         dangerous to do so.
80752         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80753         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80754         (_STDINT_MIN, _STDINT_MAX): New macros.
80755         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80756         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80757         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80758         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80759         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80760         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80761         macros, not typedefs; this simplifies things quite a bit.
80762         Use long int for all types narrower than int64_t.
80763         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80764         Define in terms of long long int or int64_t or long int,
80765         not int64_t or int32_t.  This saves some compile-time testing.
80766         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80767         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80768         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80769         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80770         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80771         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80772         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80773         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80774         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80775         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80776         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80777         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80778         undef any previous version and define our own version, for
80779         simplicity and consistency with the new macros for types.
80780         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80781         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80782         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80783         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80784         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80785         @WINT_T_SUFFIX@ to keep things simple here.
80786         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80787         Simplify by assuming typical 8/16/32/64 host, since we're
80788         already doing that elsewhere anyway.
80789         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80790         and assume long long int is 64 bits if available.  This
80791         speeds up 'configure'.
80792
80793 2006-07-01  Eric Blake  <ebb9@byu.net>
80794
80795         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80796         Reported by Andreas Buening.
80797
80798 2006-07-01  Eric Blake  <ebb9@byu.net>
80799
80800         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80801
80802 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80803
80804         * lib/getaddrinfo.c: fixed typo
80805
80806 2006-06-29  Jim Meyering  <jim@meyering.net>
80807
80808         * modules/strftime (Maintainer): Add my name, since with the
80809         FPRINTFTIME changes strftime.c has forked from glibc.
80810
80811 2006-06-29  Eric Blake  <ebb9@byu.net>
80812
80813         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80814
80815 2006-06-29  Eric Blake  <ebb9@byu.net>
80816
80817         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80818
80819 2006-06-29  Eric Blake  <ebb9@byu.net>
80820
80821         * lib/stat_.h: New file.
80822
80823 2006-06-29  Eric Blake  <ebb9@byu.net>
80824
80825         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80826         unused static function.
80827
80828 2006-06-29  Eric Blake  <ebb9@byu.net>
80829
80830         * doc/functions.texi (Function Portability): Document missing lstat
80831         on mingw.
80832
80833 2006-06-29  Eric Blake  <ebb9@byu.net>
80834
80835         * MODULES.html.sh: Add sys_stat.
80836         * modules/sys_stat: New module.
80837         * modules/mkstemp (Depends-on): Add sys_stat.
80838
80839 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80840
80841         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80842
80843 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80844
80845         * m4/c-bs-a.m4: Removed.
80846
80847 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80848
80849         * lib/strftime.c: Assume strftime() exists.
80850
80851 2006-06-29  Derek Price  <derek@ximbiot.com>
80852
80853         * modules/c-bs-a: Removed - \a is C89.
80854         * MODULES.html.sh: Remove c-bs-a.
80855
80856 2006-06-29  Bruno Haible  <bruno@clisp.org>
80857
80858         * modules/wcwidth (License): Change to LGPL.
80859
80860 2006-06-28  Simon Josefsson  <jas@extundo.com>
80861
80862         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80863         on _WIN32.
80864
80865         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80866         getnameinfo.
80867
80868 2006-06-28  Simon Josefsson  <jas@extundo.com>
80869
80870         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80871
80872 2006-06-28  Simon Josefsson  <jas@extundo.com>
80873
80874         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80875         functions there.  It will succeed on Windows XP, but on Windows
80876         2000 and (presumably) earlier, it will fail, and use the internal
80877         re-implementation.
80878         (use_win32_p): New function.
80879         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80880         Support AI_NUMERICSERV to disable getservbyname.
80881         (getnameinfo): New function, only supports
80882         NI_NUMERICHOST|NI_NUMERICSERV for now.
80883
80884         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80885         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80886         getnameinfo.
80887
80888 2006-06-28  Eric Blake  <ebb9@byu.net>
80889
80890         * modules/wcwidth: New file.
80891         * modules/mbchar (Depends-on): Add wcwidth.
80892         * modules/mbswidth (Depends-on): Add wcwidth.
80893         * MODULES.html.sh: Add wcwidth.
80894
80895 2006-06-28  Eric Blake  <ebb9@byu.net>
80896
80897         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80899
80900 2006-06-28  Eric Blake  <ebb9@byu.net>
80901
80902         * lib/xvasprintf.h: Fix comments.
80903
80904 2006-06-28  Eric Blake  <ebb9@byu.net>
80905
80906         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80907         * lib/mbswidth.c (wcwidth): Move from here...
80908         * lib/wcwidth.h: ...to this new file.
80909
80910 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80911
80912         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80913
80914         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80915         it's obsolete.
80916         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80917
80918 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80919
80920         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80921         Autoconf 2.60 says this stuff was obsolete.
80922
80923 2006-06-28  Bruno Haible  <bruno@clisp.org>
80924
80925         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80926
80927 2006-06-28  Bruno Haible  <bruno@clisp.org>
80928
80929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80930         gt_TYPE_WCHAR_T.
80931
80932 2006-06-28  Bruno Haible  <bruno@clisp.org>
80933
80934         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80935         declaration for wcwidth.
80936         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80937
80938 2006-06-28  Bruno Haible  <bruno@clisp.org>
80939
80940         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80941         (mkdir): Define using _mkdir.
80942
80943 2006-06-28  Bruno Haible  <bruno@clisp.org>
80944
80945         * lib/getaddrinfo.h: Fix POSIX URL.
80946         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80947         _WIN32.
80948         (use_win32_p): Make static.
80949         (getaddrinfo): Reject service name if it is empty or does not consist
80950         solely of decimal digits, or if its value is > 65535.
80951         (getnameinfo): Remove useless casts.
80952
80953 2006-06-27  Simon Josefsson  <jas@extundo.com>
80954
80955         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80956         Eggert and Martin Lambers.
80957
80958 2006-06-27  Simon Josefsson  <jas@extundo.com>
80959
80960         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80961         Eggert and Martin Lambers.
80962
80963 2006-06-27  Bruno Haible  <bruno@clisp.org>
80964
80965         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80966         result to 0, not to empty.
80967         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80968
80969 2006-06-27  Bruno Haible  <bruno@clisp.org>
80970
80971         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80972
80973 2006-06-26  Simon Josefsson  <jas@extundo.com>
80974
80975         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80976         present.
80977
80978 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80979
80980         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80981         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80982         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80983
80984 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80985
80986         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80987
80988 2006-06-26  Bruno Haible  <bruno@clisp.org>
80989
80990         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80991
80992 2006-06-26  Bruno Haible  <bruno@clisp.org>
80993
80994         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80995
80996 2006-06-26  Bruno Haible  <bruno@clisp.org>
80997
80998         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80999         SGI C compiler in pre-C99 mode.
81000         Suggested by Mark D. Baushke and Larry Jones.
81001
81002 2006-06-26  Bruno Haible  <bruno@clisp.org>
81003
81004         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81005         WCHAR_MAX.
81006         Reported by Mark D. Baushke and Larry Jones.
81007
81008 2006-06-26  Bruno Haible  <bruno@clisp.org>
81009
81010         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81011         in pre-C99 mode.
81012         Suggested by Mark D. Baushke and Larry Jones.
81013
81014 2006-06-23  Simon Josefsson  <jas@extundo.com>
81015             Bruno Haible  <bruno@clisp.org>
81016
81017         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81018         Emit mostlyclean-local rule.
81019         (func_emit_tests_Makefile_am): Likewise.
81020         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81021
81022 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81023
81024         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81025
81026 2006-06-23  Bruno Haible  <bruno@clisp.org>
81027
81028         * tests/test-stdint.c: Update to match ISO C 99 Technical
81029         Corrigendum 1.
81030
81031 2006-06-23  Bruno Haible  <bruno@clisp.org>
81032
81033         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81034
81035 2006-06-23  Bruno Haible  <bruno@clisp.org>
81036
81037         * lib/stdint_.h: Treat IRIX like OpenBSD.
81038
81039 2006-06-23  Bruno Haible  <bruno@clisp.org>
81040
81041         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81042         ISO C 99 Technical Corrigendum 1.
81043
81044 2006-06-22  Simon Josefsson  <jas@extundo.com>
81045
81046         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81047         MinGW.
81048
81049 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81050
81051         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81052         needed.  Some compiler complained about some of them.  Problem reported
81053         by Larry Jones in
81054         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81055
81056 2006-06-21  Simon Josefsson  <jas@extundo.com>
81057
81058         * tests/test-getaddrinfo.c: New file.
81059
81060         * modules/getaddrinfo-tests: New file.
81061
81062         * MODULES.html.sh: Add inet_pton.
81063
81064         * modules/inet_pton: New file.
81065
81066 2006-06-21  Simon Josefsson  <jas@extundo.com>
81067
81068         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81069         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81070         of using the (limited) gnulib implementation on Windows XP.
81071
81072         * m4/inet_pton.m4: New file.
81073
81074 2006-06-21  Simon Josefsson  <jas@extundo.com>
81075
81076         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81077         variable.
81078
81079         * lib/socket_.h: Don't define WINVER.
81080
81081         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81082         slightly modified to work in gnulib.
81083
81084 2006-06-21  Simon Josefsson  <jas@extundo.com>
81085
81086         * doc/gnulib.texi (Windows sockets): Add.
81087
81088 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81089
81090         * lib/read-file.c (fread_file): Start with buffer allocation of
81091         0 bytes rather than 1 byte; this simplifies the code.
81092         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81093         code to free buffer and save/restore errno.
81094         (internal_read_file): Remove unused local.
81095
81096 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81097
81098         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81099         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81100         Problem reported by Denis Excoffier in
81101         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81102
81103 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81104
81105         * modules/sys_socket, modules/socklen: Include sys/types since
81106         FreeBSD 4.x's sys/socket.h needs it.
81107
81108 2006-06-19  Simon Josefsson  <jas@extundo.com>
81109
81110         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81111
81112 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81113
81114         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81115
81116 2006-06-19  Bruno Haible  <bruno@clisp.org>
81117
81118         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81119         and FULL_PATH_INTTYPES_H in angle brackets.
81120         Reported by Mark D. Baushke <mdb@gnu.org>.
81121
81122 2006-06-17  Eric Blake  <ebb9@byu.net>
81123
81124         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81125         errno.
81126
81127 2006-06-17  Bruno Haible  <bruno@clisp.org>
81128
81129         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81130         <sys/inttypes.h>.
81131
81132 2006-06-17  Bruno Haible  <bruno@clisp.org>
81133
81134         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81135         whether errno is declared. Assume <errno.h> declares errno.
81136
81137 2006-06-17  Bruno Haible  <bruno@clisp.org>
81138
81139         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81140
81141 2006-06-17  Bruno Haible  <bruno@clisp.org>
81142
81143         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81144         problem on Solaris 2.5.1.
81145
81146 2006-06-16  Eric Blake  <ebb9@byu.net>
81147
81148         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81149         * lib/unicodeio.c [!defined errno]: Likewise.
81150         * lib/strtol.c [!defined errno]: Likewise.
81151         * lib/strtod.c [!defined errno]: Likewise.
81152
81153 2006-06-15  Eric Blake  <ebb9@byu.net>
81154
81155         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81156
81157 2006-06-15  Eric Blake  <ebb9@byu.net>
81158
81159         * config/srclist.txt (ssize_t.m4): Lose sync.
81160
81161 2006-06-15  Bruno Haible  <bruno@clisp.org>
81162
81163         * modules/stdint (Files): Include m4/full-header-path.m4,
81164         m4/size_max.m4, m4/wchar_t.m4.
81165         (Makefile.am): Many more substitutions.
81166         * modules/stdint-tests: New file.
81167         * tests/test-stdint.c: New file.
81168
81169 2006-06-15  Bruno Haible  <bruno@clisp.org>
81170
81171         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81172         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81173         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81174         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81175         gl_CHECK_TYPE_SAME): New macros.
81176
81177 2006-06-15  Bruno Haible  <bruno@clisp.org>
81178
81179         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81180
81181 2006-06-15  Bruno Haible  <bruno@clisp.org>
81182
81183         * lib/stdint_.h: Rewritten to be fully auto-configured.
81184         Fixes bug on HP-UX/IA64.
81185
81186 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81187
81188         * lib/getdate.y (__attribute__): Don't define if already defined.
81189         Problem reported by Larry Jones.
81190         * lib/utimens.c (__attribute__): Likewise.
81191
81192 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81193
81194         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81195         reported by Andreas Schwab.
81196
81197 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81198             Bruno Haible  <bruno@clisp.org>
81199
81200         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81201         check for the declaration of strnlen and a run test that exposes the
81202         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81203         rpl_strndup.
81204
81205 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81206             Bruno Haible  <bruno@clisp.org>
81207
81208         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81209
81210 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81211
81212         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81213         compile test, for Tru64 4.0D.
81214
81215 2006-05-28  Karl Berry  <karl@gnu.org>
81216
81217         * config/srclist.txt (printf-args.c): lose sync.
81218
81219 2006-05-26  Martin Lambers  <marlam@marlam.de>
81220
81221         * lib/getpass.c: Updates the test for the native W32 API, and adds
81222         missing includes, thus fixing compilation warnings.
81223
81224 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81225
81226         * lib/exclude.c (exclude_fnmatch): New function.
81227         (excluded_file_name): Call exclude_fnmatch.
81228         * lib/exclude.h (excluded_file_name): New prototype
81229
81230 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81231
81232         * lib/tempname.c (small_open, large_open): New macros.
81233         (__open, __open64) [!_LIBC]: Remove.
81234         (__gen_tempname): Use small_open and large_open instead of __open
81235         and __open64.  This fixes a portability bug on HP-UX 11.11i
81236         reported by Simon Wing-Tang in
81237         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81238
81239 2006-05-24  Bruno Haible  <bruno@clisp.org>
81240
81241         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81242         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81243         Reported by Thorsten Maerz <torte@netztorte.de> via
81244         Aaron Stone <aaron@serendipity.cx>.
81245
81246 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81247
81248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81249         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81250         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81251         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81252         not really conditional on the cache.
81253         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81254
81255 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81256
81257         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81258         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81259         (my_usleep): Don't mishandle maximum value.
81260
81261 2006-05-19  Jim Meyering  <jim@meyering.net>
81262
81263         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81264
81265 2006-05-17  Bruno Haible  <bruno@clisp.org>
81266
81267         Cygwin portability.
81268         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81269
81270 2006-05-17  Bruno Haible  <bruno@clisp.org>
81271
81272         * lib/stdint_.h: Fix recognition of Cygwin.
81273
81274 2006-05-15  Bruno Haible  <bruno@clisp.org>
81275
81276         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81277         on libtool patch by Ralf Wildenhues.
81278
81279 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81280
81281         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81282         test for C99 conformance; (bool) 0.5 is an integer constant
81283         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81284         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81285
81286 2006-05-11  Simon Josefsson  <jas@extundo.com>
81287
81288         * m4/xvasprintf.m4: Fix obvious typo.
81289
81290 2006-05-11  Jim Meyering  <jim@meyering.net>
81291
81292         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81293         James Lemley.
81294
81295 2006-05-10  Simon Josefsson  <jas@extundo.com>
81296
81297         * lib/md4.c: Typo fix, update copyright years.
81298         (K1, K2): Don't use L because it turn computations into 64-bit on
81299         64-bit platforms.
81300
81301 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81302
81303         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81304         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81305         unwanted sign propagation, e.g., on hosts with 64-bit int.
81306         There still are some problems with reeelly weird theoretical hosts
81307         (e.g., 33-bit int) but it's not worth worrying about now.
81308         * lib/sha1.c (rol): Likewise.
81309         (K1, K2, K3, K4): Remove unnecessary L suffix.
81310
81311 2006-05-10  Bruno Haible  <bruno@clisp.org>
81312
81313         * lib/des.c: Cast to avoid warnings.
81314
81315 2006-05-09  Bruno Haible  <bruno@clisp.org>
81316
81317         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81318         (Depends-on): Depend also on xsize, stdarg.
81319         (configure.ac): Add gl_XVASPRINTF.
81320
81321 2006-05-09  Bruno Haible  <bruno@clisp.org>
81322
81323         * m4/xvasprintf.m4: New file.
81324
81325 2006-05-09  Bruno Haible  <bruno@clisp.org>
81326
81327         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81328         (EOVERFLOW): Define fallback value.
81329         (xstrcat): New function.
81330         (xvasprintf): Recognize the special case of a string concatenation.
81331
81332 2006-05-08  Eric Blake  <ebb9@byu.net>
81333
81334         * gnulib-tool (func_version): Base copyright year on CVS date.
81335         (func_emit_copyright_notice): New function.
81336         (func_emit_lib_Makefile_am): Use it.
81337         (func_emit_tests_Makefile_am): Likewise.
81338         (func_import): Likewise.
81339
81340 2006-05-08  Bruno Haible  <bruno@clisp.org>
81341
81342         * modules/stdarg: New file.
81343         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81344
81345 2006-05-08  Bruno Haible  <bruno@clisp.org>
81346
81347         * m4/stdarg.m4: New file, from GNU gettext.
81348
81349 2006-05-08  Bruno Haible  <bruno@clisp.org>
81350
81351         * config/srclist.txt (build-aux/config.rpath): different from latest
81352         release.
81353
81354 2006-05-08  Bruno Haible  <bruno@clisp.org>
81355
81356         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81357
81358 2006-05-05  Jim Meyering  <jim@meyering.net>
81359
81360         * m4/warning.m4: New file, derived from bison's file by the same name.
81361
81362 2006-05-03  Bruno Haible  <bruno@clisp.org>
81363
81364         * lib/stdint_.h: Shorter URL.
81365         * lib/inttypes.h: Likewise.
81366
81367 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81368
81369         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81370
81371 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81372
81373         * lib/verify.h: Document the internals better.  Most of this change
81374         was written by Bruno Haible.
81375
81376 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * doc/verify.texi: New file, partly based on a proposal by
81379         Bruno Haible.
81380
81381 2006-05-02  Bruno Haible  <bruno@clisp.org>
81382
81383         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81384         test from here...
81385         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81386
81387 2006-04-29  Bruno Haible  <bruno@clisp.org>
81388
81389         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81390         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81391
81392 2006-04-29  Bruno Haible  <bruno@clisp.org>
81393
81394         * gnulib-tool: Make --update option actually work.
81395
81396 2006-04-29  Bruno Haible  <bruno@clisp.org>
81397
81398         * doc/gcd.texi: New file.
81399         * doc/gnulib.texi: Include it.
81400
81401 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81402
81403         * lib/getdate.y (get_date): When adding relative date, start with the
81404         initial time, not with the result of the first mktime call.
81405
81406 2006-04-25  Bruno Haible  <bruno@clisp.org>
81407
81408         * gnulib-tool (func_import): Output the include directives in three
81409         blocks, sorted separately.
81410         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81411
81412 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81413
81414         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81415         to define main with arguments, for C++.  Reported by Eric Blake.
81416         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81417         Prefer 'int main ()' to 'int main (void)', for C++.
81418         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81419         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81420         for 'main', for C99 and C++.
81421
81422 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81423
81424         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81425         Don't assume that exit status -1 is valid.
81426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81427         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81428         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81429         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81430         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81431         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81432         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81433         functions can be used without declaring them, or that you can
81434         exit with status -1.
81435         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81436
81437 2006-04-24  Karl Berry  <karl@gnu.org>
81438
81439         * config/srclist.txt (longdouble.m4): sync lost.
81440
81441 2006-04-24  Eric Blake  <ebb9@byu.net>
81442
81443         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81444
81445 2006-04-24  Bruno Haible  <bruno@clisp.org>
81446
81447         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81448         poll() implementation in AIX.
81449         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81450
81451 2006-04-24  Bruno Haible  <bruno@clisp.org>
81452
81453         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81454         assigned exactly once.
81455
81456 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81457             Bruno Haible  <bruno@clisp.org>
81458
81459         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81460         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81461         for AM_CPPFLAGS.
81462
81463 2006-04-23  Bruno Haible  <bruno@clisp.org>
81464
81465         * modules/copy-file: Depend on unistd.
81466         * modules/execute: Likewise.
81467         * modules/fatal-signal: Likewise.
81468         * modules/findprog: Likewise.
81469         * modules/mkdtemp : Likewise.
81470         * modules/pipe: Likewise.
81471         * modules/wait-process: Likewise.
81472
81473 2006-04-23  Bruno Haible  <bruno@clisp.org>
81474
81475         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81476         condition was already detected.
81477         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81478
81479 2006-04-23  Bruno Haible  <bruno@clisp.org>
81480
81481         * lib/copy-file.c: Include <unistd.h> unconditionally.
81482         * lib/execute.c: Likewise.
81483         * lib/fatal-signal.c: Likewise.
81484         * lib/findprog.c: Likewise.
81485         * lib/mkdtemp.c: Likewise.
81486         * lib/pipe.h: Likewise.
81487         * lib/pipe.c: Likewise.
81488         * lib/wait-process.h: Likewise.
81489
81490 2006-04-23  Bruno Haible  <bruno@clisp.org>
81491
81492         * gnulib-tool (func_usage): Fix --import description. Document
81493         --update.
81494         (func_import): Create temporary file in a temporary directory, if
81495         --dry-run is specified. Silence errors from 'grep' when there are no
81496         m4 files in $m4dir.
81497         (func_create_testdir): Silence errors from 'grep' when there are no
81498         m4 files in $m4dir.
81499         Reported by Karl Berry <karl@freefriends.org>.
81500
81501 2006-04-20  Bruno Haible  <bruno@clisp.org>
81502
81503         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81504         one argument, so that the code will be portable to Autoconf 2.60.
81505         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81506         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81507         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81508
81509 2006-04-19  Derek Price  <derek@ximbiot.com>
81510             Eric Blake  <ebb9@byu.net>
81511
81512         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81513         rather than "/full/path.h".  Update comment to match.  Shorten &
81514         generalize m4_translit call via AS_TR_CPP.
81515
81516 2006-04-19  Derek Price  <derek@ximbiot.com>
81517             Eric Blake  <ebb9@byu.net>
81518
81519         * lib/inttypes.h: Correct grammar in comment.
81520
81521 2006-04-18  Derek Price  <derek@ximbiot.com>
81522             Paul Eggert  <eggert@cs.ucla.edu>
81523
81524         * modules/inttypes: New file.
81525         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81526
81527 2006-04-18  Derek Price  <derek@ximbiot.com>
81528             Paul Eggert  <eggert@cs.ucla.edu>
81529
81530         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81531         New files.
81532
81533 2006-04-18  Derek Price  <derek@ximbiot.com>
81534             Paul Eggert  <eggert@cs.ucla.edu>
81535
81536         * lib/inttypes.h: New file.
81537         * lib/strtoimax.c: Assume <inttypes.h>.
81538
81539 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81540
81541         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81542         isn't mounted.  Problem reported by Kir Kolyshkin.
81543
81544 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81545
81546         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81547         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81548         Derek R. Price.
81549         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81550         implementation.
81551
81552 2006-04-12  Eric Blake  <ebb9@byu.net>
81553
81554         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81555         is now done automatically by the corresponding Autoconf macro.
81556
81557 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81558
81559         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81560         time_r.h.
81561
81562 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81563
81564         Merge regex changes from libc, removing some of our
81565         POSIX-conformance changes that were rejected and redoing them in a
81566         less-intrusive way.
81567
81568         * lib/regcomp.c (re_compile_internal, init_dfa):
81569         Length arg is now size_t, not Idx.  All uses changed.
81570         (peek_token): Forward decl now says internal_function.
81571         (__re_error_msgid, __re_error_msgid_idx):
81572         Now static rather than extern with attribute_hidden.
81573         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81574         For some reason libc prefers K&R style defns for external functions.
81575         (regerror) [!defined _LIBC]: Likewise.
81576         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81577         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81578         (build_range_exp, build_collating_symbol):
81579         Use K&R-style defn.
81580         (re_compile_fastmap): Use '\0' to memset, not 0.
81581         (utf8_sb_map): Make the calculations more obvious.
81582         (init_dfa, parse_bracket_exp, build_charclass_op):
81583         Call calloc and cast result, as glibc does.
81584         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81585         (build_range_exp, build_collating_symbol):
81586         Now internal functions.
81587
81588         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81589
81590         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81591         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81592         Don't depend on VMS; depend on __VMS instead, for POSIX
81593         namespace cleanness.
81594         (regoff_t): Define to ssize_t, not long int.
81595
81596         Remove the REG_ macros named below.  Instead, make the old names
81597         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81598         __USE_GNU_REGEX.
81599         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81600         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81601         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81602         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81603         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81604         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81605         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81606         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81607         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81608         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81609         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81610         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81611         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81612         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81613         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81614         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81615         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81616         (REG_NREGS):
81617         Remove.  All uses replaced by the old RE_* names.
81618         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81619         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81620         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81621         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81622         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81623         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81624         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81625         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81626         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81627         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81628         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81629         Don't bother having these macros be independent of each others'
81630         values, since they no longer exist in the POSIX name space.
81631
81632         Rename the following member names back to their old names,
81633         unless !__USE_GNU_REGEX.  All uses changed back.
81634         (buffer): Renamed from re_buffer.
81635         (allocated): Renamed from re_allocated.
81636         (used): Renamed from re_used.
81637         (syntax): Renamed from re_syntax.
81638         (fastmap): Renamed from re_fastmap.
81639         (translate): Renamed from re_translate.
81640         (can_be_null): Renamed from re_can_be_null.
81641         (regs_allocated): Renamed from re_regs_allocated.
81642         (fastmap_accurate): Renamed from re_fastmap_accurate.
81643         (no_sub): Renamed from re_no_sub.
81644         (not_bol): Renamed from re_not_bol.
81645         (not_eol): Renamed from re_not_eol.
81646         (newline_anchor): Renamed from re_newline_anchor.
81647         (num_regs): Renamed from rm_num_regs.
81648         (start): Renamed from rm_start.
81649         (end): Renamed from rm_end.
81650
81651         (free_state): Move up a bit.
81652
81653         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81654         #define to be empty.
81655         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81656         when that is what is intended.
81657         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81658         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81659         (MAX): New macro.
81660         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81661         All uses changed back to re_malloc, etc.  It's now the caller's
81662         responsibility to check for overflow; all callers changed.
81663         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81664         (re_x2nrealloc): Remove.
81665         (free_state): Remove decl.
81666
81667         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81668         (re_set_registers, re_exec):
81669         Use K&R-style defn.
81670
81671         2006-01-31  Roland McGrath  <roland@redhat.com>
81672
81673         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81674         Reported by Mike Frysinger <vapier@gentoo.org>.
81675
81676         2006-01-15  Andreas Jaeger  <aj@suse.de>
81677
81678         [BZ #1950]
81679         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81680         build_wcs_upper_buffer change.
81681         (build_wcs_upper_buffer): Change return type.
81682
81683         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81684
81685         * lib/regex_internal.h: Include <stdint.h> if available.
81686
81687         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81688
81689         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81690
81691         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81692
81693         * lib/regcomp.c: Adjust for changed secondary hash function.
81694
81695         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81696
81697         * lib/regex.h: Pretty printing.
81698         Clean up namespace a bit.
81699
81700         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81701
81702         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81703         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81704
81705         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81706                     Ulrich Drepper  <drepper@redhat.com>
81707
81708         [BZ #1302]
81709         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81710         changed.
81711         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81712
81713         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81714
81715         [BZ #281]
81716         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81717         * lib/regcomp.c: Remove unnecessary uses of
81718         unsigned RE_TRANSLATE_TYPE.
81719         * lib/regex_internal.h: Likewise.
81720         * lib/regex_internal.c: Likewise.
81721         * lib/regexec.c: Likewise.
81722         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81723
81724         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81725
81726         * lib/regexec.c (find_recover_state): Remove unnecessary
81727         initialization.
81728         (transit_state_bkref): Make DFA a const pointer.
81729         (get_subexp): Likewise.
81730         (check_arrival): Likewise.
81731         (update_cur_sifted_state): Likewise.
81732         (re_search_internal): Likewise.
81733         (prune_impossible_nodes): Likewise.
81734         (acquire_init_state_context): Likewise.
81735         (proceed_next_node): Likewise.
81736         (set_regs): Likewise.
81737         (free_fail_stack_return): Likewise.
81738         (check_arrival_expand_ecl): Mark DFA parameter as const.
81739         (check_arrival_expand_ecl_sub): Likewise.
81740         (check_subexp_limits): Likewise.
81741         (sub_epsilon_src_nodes):  Likewise.
81742         (add_epsilon_src_nodes):  Likewise.
81743         (merge_state_array): Likewise.
81744         (update_regs): Likewise.
81745         (build_trtable): Likewise.
81746         (sift_states_backward): Mark MCTX parameter as const.
81747         (build_sifted_states): Likewise.
81748         (update_cur_sifted_state): Likewise.
81749         (sift_states_mkref): Likewise.
81750         (check_arrival_expand_ecl): Mark eclosure as const.
81751         (check_dst_limits_calc_pos_1): Likewise.
81752         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81753         pointer.
81754
81755         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81756
81757         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81758         (transit_state_sb): Likewise.
81759         (transit_state_mb): Likewise.
81760         (sift_states_iter_mb): Likewise.
81761         (check_arrival_add_next_nodes): Likewise.
81762         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81763         [_LIBC] (re_search_2_stub): Use mempcpy.
81764
81765         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81766         mbrtowc for very simple UTF-8 case.
81767
81768         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81769         a pointer-to-const.
81770         (re_acquire_state_context): Likewise.
81771         * lib/regex_internal.h: Adjust prototypes.
81772
81773         * lib/regex.c: Prevent using C++ compilers.
81774
81775         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81776         (re_acquire_state_context): Likewise.
81777
81778 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81779
81780         * modules/regex (Depends-on): Add ssize_t.
81781
81782 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81783
81784         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81785         translation table.
81786
81787 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81788
81789         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81790
81791 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81792             Bruno Haible  <bruno@clisp.org>
81793
81794         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81795         <sys/types.h> and <inttypes.h>.
81796
81797 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81798
81799         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81800         `__error_t_defined', so argp.h will not typedef the former.
81801
81802 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81803
81804         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81805         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81806         glibc names.  Even if glibc is changed to conform to POSIX, the
81807         traditional names will be available anyway, since regex depends on
81808         the extensions module.  Also, fix a longstanding typo in the
81809         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81810         reported by Emanuele Giaquinta.  Also, change sense of cached
81811         variable, so that the message makes sense.
81812
81813 2006-03-24  Simon Josefsson  <jas@extundo.com>
81814
81815         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81816         including some doc fixes.
81817         (base64_encode_alloc): Fix +1 bug on allocation failures.
81818
81819 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81820
81821         * lib/base64.c (base64_encode): Do not read past end of array with
81822         unsanitized input on systems with CHAR_BIT > 8.
81823
81824 2006-03-24  Eric Blake  <ebb9@byu.net>
81825
81826         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81827
81828 2006-03-22  Karl Berry  <karl@gnu.org>
81829
81830         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81831         * config/srclistvars.sh (COREUTILS): new var.
81832
81833 2006-03-17  Jim Meyering  <jim@meyering.net>
81834
81835         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81836         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81837
81838 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81839
81840         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81841         no longer needs it.  Instead, check that regoff_t is as least
81842         as wide as ptrdiff_t.
81843
81844         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81845         so that our regex.h stays compatible with the installed regex.
81846         This is helpful for installers who configure --without-included-regex.
81847         Problem reported by Emanuele Giaquinta.
81848
81849 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81850
81851         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81852         Typedef to long int, not to off_, as POSIX will likely change
81853         in that direction.
81854
81855 2006-03-15  Eric Blake  <ebb9@byu.net>
81856
81857         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81858
81859 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81860
81861         * lib/argp-help.c (validate_uparams): Fix typo
81862         * lib/argp-parse.c (argp_default_options): Consistently begin help
81863         messages with a lowercase letter.
81864
81865 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81866
81867         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81868         overrun buffers and shouldn't be used (much as gets shouldn't be
81869         used).
81870         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81871
81872 2006-03-08  Simon Josefsson  <jas@extundo.com>
81873
81874         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81875         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81876
81877 2006-03-08  Simon Josefsson  <jas@extundo.com>
81878
81879         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81880         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81881
81882 2006-03-08  Simon Josefsson  <jas@extundo.com>
81883
81884         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81885         signal that configure disabled the device.
81886
81887 2006-03-08  Simon Josefsson  <jas@extundo.com>
81888
81889         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81890         languages.
81891
81892 2006-03-07  Simon Josefsson  <jas@extundo.com>
81893
81894         * modules/getopt (Depends-on): Add unistd.
81895
81896         * modules/unistd: New file.
81897
81898 2006-03-07  Simon Josefsson  <jas@extundo.com>
81899
81900         * modules/gc-random: New file.
81901
81902 2006-03-07  Simon Josefsson  <jas@extundo.com>
81903
81904         * m4/unistd_h.m4: New file.
81905
81906 2006-03-07  Simon Josefsson  <jas@extundo.com>
81907
81908         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81909         test to be side-effect free by storing the result in the cache
81910         variable gl_cv_lib_readline, and moving the assignment of
81911         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81912         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81913
81914 2006-03-07  Simon Josefsson  <jas@extundo.com>
81915
81916         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81917         error on missing devices (the functions will return an error).
81918
81919         * m4/gc.m4: Move random stuff to gc-random.m4
81920
81921 2006-03-07  Simon Josefsson  <jas@extundo.com>
81922
81923         * lib/unistd_.h: New file.
81924
81925 2006-03-07  Simon Josefsson  <jas@extundo.com>
81926
81927         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81928
81929 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81930
81931         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81932         Problem reported by Juan Manuel Guerrero.
81933
81934 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81935
81936         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81937         the unistd module.
81938         * lib/getlogin_r.c: Likewise.
81939         * lib/getlogin_r.h: Likewise.
81940         * lib/glob.c: Likewise.
81941         * lib/pagealign_alloc.c: Likewise.
81942         * lib/unistd_.h: Remove; no longer needed.
81943
81944 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81945
81946         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81947         Add unistd.
81948         * modules/c-stack (Depends-on): Add unistd.
81949         * modules/getlogin_r: Likewise.
81950         * modules/glob: Likewise.
81951         * modules/pagealign_alloc: Likewise.
81952         * modules/unistd (Files): Remove lib/unistd_.h.
81953         (EXTRA_DIST): Remove.
81954         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81955         need unistd_.h.
81956         (MOSTLYCLEANFILES): Remove unistd.h-t.
81957
81958 2006-03-03  Simon Josefsson  <jas@extundo.com>
81959
81960         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81961
81962 2006-03-03  Simon Josefsson  <jas@extundo.com>
81963
81964         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81965         libidn and bison.
81966
81967 2006-03-03  Simon Josefsson  <jas@extundo.com>
81968
81969         * build-aux/maint.mk: Add indent target.
81970
81971 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81972
81973         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81974         our replacement poll.h in any case, to avoid a differing
81975         declaration from a system header.  Seen on AIX.
81976
81977 2006-03-01  Simon Josefsson  <jas@extundo.com>
81978
81979         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81980         <kasal@ucw.cz>.
81981
81982 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81983
81984         * modules/gettime (Depends-on): Add extensions module.
81985         * modules/nanosleep (Depends-on): Likewise.
81986         * modules/settime (Depends-on): Likewise.
81987
81988 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81989
81990         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81991         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81992         pedantically.
81993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81994         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81995
81996         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81997         not "==".  Reported by Ralf Wildenhues.
81998
81999 2006-03-01  Karl Berry  <karl@gnu.org>
82000
82001         * doc/Copyright/request-*: new files, synced from gnuorg.
82002
82003 2006-03-01  Karl Berry  <karl@gnu.org>
82004
82005         * config/srclist.txt (Copyright/*): new entries.
82006
82007 2006-02-28  Simon Josefsson  <jas@extundo.com>
82008
82009         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82010
82011 2006-02-27  Simon Josefsson  <jas@extundo.com>
82012
82013         * lib/base64.h: Indent #define's.  From Jim Meyering
82014         <jim@meyering.net>.
82015
82016 2006-02-27  Jim Meyering  <jim@meyering.net>
82017
82018         Revert the change of 2006-02-24, so these files can continue
82019         to be sync'd from gettext.
82020         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82021         of `config.h'.
82022
82023 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82024
82025         * modules/intprops: New file.
82026         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82027         Add intprops.
82028         * modules/getloadavg (Files): Remove lib/intprops.h.
82029         (Depends-on): Add intprops.
82030         * modules/human: Likewise.
82031         * modules/inttostr: Likewise.
82032         * modules/openat: Likewise.
82033         * modules/sig2str: Likewise.
82034         * modules/userspec: Likewise.
82035         * modules/utimecmp: Likewise.
82036         * modules/xnanosleep: Likewise.
82037         * modules/xstrtol: Likewise.
82038
82039 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82040
82041         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82042         * modules/lock-tests (TESTS): Use $(EXEEXT).
82043         * modules/tls-tests: Likewise.
82044         * modules/argp-tests: Likewise.
82045         (check_PROGRAMS): New var, replacing...
82046         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82047
82048 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82049
82050         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82051         `config.h'.
82052
82053 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82054
82055         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82056
82057 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82058
82059         Sync from coreutils.
82060         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82061         gl_CHDIR_SAFER.
82062
82063 2006-02-22  Jim Meyering  <jim@meyering.net>
82064
82065         Sync from coreutils.
82066         * m4/chdir-safer.m4: New file.
82067
82068 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82069
82070         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82071         AT_FDCWD exceeds INT_MAX.
82072         * lib/openat.h (AT_FDCWD): Likewise.
82073
82074 2006-02-17  Eric Blake  <address@hidden>
82075
82076         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82077
82078 2006-02-16  Simon Josefsson  <jas@extundo.com>
82079
82080         * modules/getaddrinfo (Depends-on): Add sys_socket.
82081
82082 2006-02-15  Simon Josefsson  <jas@extundo.com>
82083
82084         * build-aux/maint.mk: Add dsyntax-check rule.
82085
82086 2006-02-15  Eric Blake  <ebb9@byu.net>
82087
82088         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82089         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82090         'present but cannot compile' warnings on cygwin.
82091         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82092         use ws2tcpip.h if sys/socket.h works.
82093         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82094         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82095
82096 2006-02-14  Simon Josefsson  <jas@extundo.com>
82097
82098         * modules/maintainer-makefile (Files): Rename.
82099
82100         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82101         and (the local) Makefile.cfg to maint-cfg.mk.
82102
82103         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82104         to the latter.
82105
82106         * modules/maintainer-makefile: New module.
82107
82108         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82109         severaly stripped to make it possible to build it up from scratch
82110         with reliable tests.
82111
82112         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82113         fixes to permit overriding the default actions when configure and
82114         makefile are not available.
82115
82116 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82117
82118         Sync from coreutils.
82119         * modules/lstat (Depends-on): Don't depend on xalloc.
82120         (License): Change from GPL to LGPL, since this is now simply a
82121         replacement for a libc function.
82122
82123 2006-02-14  Jim Meyering  <jim@meyering.net>
82124
82125         Sync from coreutils.
82126
82127         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82128         failure on deficient systems, and simplify gnulib lgpl dependencies.
82129         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82130         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82131
82132         * lib/xalloc-die.c: Remove unused definition of N_.
82133
82134 2006-02-14  Jim Meyering  <jim@meyering.net>
82135
82136         Sync from coreutils.
82137         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82138         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82139         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82140         double-quote uses of that variable, to accommodate the rare case in
82141         which getmntent is available in none of the libraries checked.  This
82142         happens at least on FreeBSD 5.0.
82143
82144 2006-02-13  Simon Josefsson  <jas@extundo.com>
82145
82146         * gnulib-tool (Usage): Fix --import, from
82147         karl@freefriends.org (Karl Berry).
82148
82149 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82150
82151         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82152
82153 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82154
82155         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82156         "autoupdate" on 2005-12-12.
82157
82158 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82159
82160         * modules/closeout (Depends-on): Remove atexit.
82161
82162 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82163
82164         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82165         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82166
82167 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82168
82169         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82170         __EXTENSIONS__ if this causes compilation to fail.  Problem
82171         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82172         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82173
82174 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82175
82176         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82177         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82178         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82179         All uses changed.
82180
82181 2006-01-26  Simon Josefsson  <jas@extundo.com>
82182
82183         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82184         prototype is visible on mingw32.
82185
82186         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82187         for mingw32.
82188
82189         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82190         mingw32).
82191
82192 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82193
82194         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82195         attempt to open for write; this always fails, at least on POSIX
82196         hosts.  This reinstates the 2006-01-09 change, which was
82197         inadvertently removed.
82198
82199 2006-01-26  Bruno Haible  <bruno@clisp.org>
82200
82201         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82202         Reported by Paul Eggert.
82203
82204 2006-01-26  Bruno Haible  <bruno@clisp.org>
82205             Paul Eggert  <eggert@cs.ucla.edu>
82206
82207         * lib/stdbool_.h (_Bool)
82208         [(! (defined __cplusplus || defined __BEOS__)
82209           && !defined __GNUC__
82210           && !(defined __HP_cc || defined __xlc__
82211                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82212                || defined __sgi))]:
82213         #define to signed char in these cases too; this simplifies
82214         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82215         etc., separately) and makes it more conservative.
82216
82217 2006-01-25  Simon Josefsson  <jas@extundo.com>
82218
82219         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82220         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82221         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82222
82223 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82224
82225         * lib/argp-namefrob.h: Bugfix. Remove stray #
82226
82227 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82230         so that we test the test.
82231         Check for yet another HP-UX cc bug involving *bool |= bool.
82232
82233 2006-01-25  Karl Berry  <karl@gnu.org>
82234
82235         * config/srclist.txt (vasnprintf.c): sync lost.
82236
82237 2006-01-25  Jim Meyering  <jim@meyering.net>
82238
82239         Sync from the stable (b5) branch of coreutils:
82240
82241         * lib/fts.c (fts_children): Don't let close() clobber errno from
82242         failed fchdir().
82243
82244         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82245         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82246         a dangling symlink.  That can also happen at least for ELOOP.
82247         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82248         FYI, this bug predates the inclusion of fts.c in coreutils.
82249
82250         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82251         in their own block, so pre-c99 compilers don't object.
82252
82253         Avoid the double-free (first in fts_read, second in fts_close) that
82254         would occur when an `active' directory is made inaccessible (e.g.,
82255         via chmod a-x) during a traversal.
82256         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82257         before returning.  Reproduce this failure by
82258         mkdir -p a/b; cd a; chmod a-x . b
82259         Reported by Stavros Passas.
82260
82261 2006-01-25  Jim Meyering  <jim@meyering.net>
82262
82263         * lib/fileblocks.c: Remove more useless parentheses.
82264         * lib/readutmp.h: Likewise.
82265
82266 2006-01-25  Bruno Haible  <bruno@clisp.org>
82267
82268         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82269         warnings.
82270         Reported by Paul Eggert.
82271
82272 2006-01-25  Bruno Haible  <bruno@clisp.org>
82273
82274         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82275         rid of a trap command. For Solaris sh.
82276         Reported by Mark D. Baushke <mdb@gnu.org>.
82277
82278 2006-01-24  Simon Josefsson  <jas@extundo.com>
82279
82280         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82281         Bruno.
82282
82283 2006-01-24  Karl Berry  <karl@gnu.org>
82284
82285         * config/srclist.txt (argp-namefrob.h): sync lost.
82286
82287 2006-01-24  Jim Meyering  <jim@meyering.net>
82288
82289         * modules/openat (Files): Add lib/intprops.h.
82290         From Mark D. Baushke.
82291
82292 2006-01-24  Jim Meyering  <jim@meyering.net>
82293
82294         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82295         Reported by Mark D. Baushke.
82296
82297 2006-01-24  Jim Meyering  <jim@meyering.net>
82298
82299         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82300
82301 2006-01-24  Bruno Haible  <bruno@clisp.org>
82302
82303         * modules/strnlen (Maintainer): Change from glibc to all.
82304
82305 2006-01-24  Bruno Haible  <bruno@clisp.org>
82306
82307         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82308         Patch by Paul Eggert.
82309
82310 2006-01-24  Bruno Haible  <bruno@clisp.org>
82311
82312         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82313         already has it.
82314         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82315         2005-11-26.
82316
82317         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82318         'signed char' to avoid problems with the built-in _Bool type.
82319         Reported by Paul Eggert on 2005-11-26.
82320
82321 2006-01-24  Bruno Haible  <bruno@clisp.org>
82322
82323         * gnulib-tool (func_import): Avoid constructing complicated sed
82324         expressions inside backquote.
82325         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82326
82327 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82328
82329         These changes imported from libc.
82330         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82331         test and two separate function calls.
82332         * lib/strndup.c (__strndup): Add libc_hidden_def.
82333
82334 2006-01-23  Simon Josefsson  <jas@extundo.com>
82335
82336         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82337         Remove the test_*_SOURCES variable: automake infers it by default.
82338         * modules/tls-tests: Likewise.
82339
82340 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82341
82342         Work around porting bugs reported by Dieter in
82343         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82344         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82345         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82346         Include "getopt.h" first, to check interface.
82347         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82348         !HAVE_DECL_GETENV.
82349         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82350         (__strndup): Revert to K&R-style function dfns, the glibc style.
82351         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82352         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82353         Include strnlen.h first, to get prototype properly.
82354         (strnlen): Renamed from __strnlen.
82355         Remove weak alias.
82356
82357 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82358
82359         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82360
82361 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82362
82363         * config/srclist.txt: Adjust to reflect glibc reorganization.
82364         This affects only comments.
82365
82366 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82367
82368          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82369          Reported by Bruce Korb <bkorb@gnu.org>.
82370
82371 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82372
82373         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82374         to pacify gcc -Wswitch-default.
82375
82376 2006-01-22  Bruno Haible  <bruno@clisp.org>
82377
82378         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82379         temporary buffer for sprintf, take into account the precision also
82380         for 'd', 'i', 'u', 'o', 'x', 'X'.
82381
82382 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82383
82384         * modules/argp-tests: New module
82385         * tests/test-argp.c: New file
82386         * tests/test-argp-2.sh: New file
82387
82388 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82389
82390         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82391         (__argp_base_name): Removed
82392         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82393         typo.
82394         (__argp_base_name): Provide macro definition or extern declaration
82395         depending on the configuration
82396
82397 2006-01-20  Simon Josefsson  <jas@extundo.com>
82398
82399         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82400
82401 2006-01-20  Simon Josefsson  <jas@extundo.com>
82402
82403         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82404
82405 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82406
82407         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82408         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82409         Suggested by Bruno Haible.
82410
82411 2006-01-20  Karl Berry  <karl@gnu.org>
82412
82413         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82414         until changes propagate, I guess.
82415
82416 2006-01-19  Simon Josefsson  <jas@extundo.com>
82417
82418         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82419
82420 2006-01-19  Simon Josefsson  <jas@extundo.com>
82421
82422         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82423
82424 2006-01-19  Simon Josefsson  <jas@extundo.com>
82425
82426         * gnulib-tool: Set check_PROGRAMS.
82427
82428         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82429         modules/des-tests, modules/gc-arcfour-tests,
82430         modules/gc-arctwo-tests, modules/gc-des-tests,
82431         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82432         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82433         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82434         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82435         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82436         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82437         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82438         test_*_SOURCES.
82439
82440 2006-01-18  Simon Josefsson  <jas@extundo.com>
82441
82442         * modules/socklen (Depends-on): Depend on sys_socket.
82443
82444 2006-01-18  Simon Josefsson  <jas@extundo.com>
82445
82446         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82447         modules/des-tests, modules/gc-arcfour-tests,
82448         modules/gc-arctwo-tests, modules/gc-des-tests,
82449         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82450         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82451         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82452         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82453         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82454         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82455         $(EXEEXT) to automake TESTS variable, for mingw32.
82456
82457 2006-01-17  Simon Josefsson  <jas@extundo.com>
82458
82459         * modules/socklen (Include): Need sys/socket.h.
82460
82461 2006-01-17  Bruno Haible  <bruno@clisp.org>
82462
82463         * modules/ssize_t (Include): Add <sys/types.h>.
82464
82465 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82466
82467         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82468         it's not portable and it doesn't work with cross-compiles.
82469         Problem reported by Bruno Haible.  Fix missing-$ typo in
82470         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82471         -zignore from being used with Sun's C compiler.
82472
82473 2006-01-12  Simon Josefsson  <jas@extundo.com>
82474
82475         * lib/base64.c: Fix warning, reported by Bruno Haible
82476         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82477
82478 2006-01-12  Bruno Haible  <bruno@clisp.org>
82479
82480         * modules/ldd: New file.
82481         * build-aux/ldd.sh.in: New file.
82482         * MODULES.html.sh (Support for building libraries and executables): Add
82483         ldd.
82484
82485 2006-01-12  Bruno Haible  <bruno@clisp.org>
82486
82487         * m4/ldd.m4: New file.
82488
82489 2006-01-12  Bruno Haible  <bruno@clisp.org>
82490
82491         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82492         endless loop while replacing $auxdir with build-aux.
82493
82494 2006-01-11  Simon Josefsson  <jas@extundo.com>
82495
82496         * lib/stdint_.h (SIZE_MAX): Add missing (.
82497
82498 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82499
82500         Sync from coreutils.
82501         * lib/md5.c: Fix commentary typos.
82502         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82503         * lib/md5.h (__attribute__): Remove; unused.
82504         * lib/sha1.c: Fix commentary to match md5 better.
82505         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82506         so that we don't need to worry about alignment.  All uses changed.
82507         This merges the 2005-10-28 md5 change into sha1.
82508
82509 2006-01-11  Jim Meyering  <jim@meyering.net>
82510
82511         Sync from coreutils.
82512         * lib/md5.c (OP): Fix spacing.
82513
82514 2006-01-11  Bruno Haible  <bruno@clisp.org>
82515
82516         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82517         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82518         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82519
82520 2006-01-11  Bruno Haible  <bruno@clisp.org>
82521
82522         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82523         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82524         the "early" section as well.
82525
82526 2006-01-11  Bruno Haible  <bruno@clisp.org>
82527
82528         Avoid "ar: no archive members specified" error on MacOS X.
82529         * gnulib-tool (func_modules_add_dummy): New function.
82530         (func_import, func_create_testdir): Invoke it.
82531
82532 2006-01-11  Bruno Haible  <bruno@clisp.org>
82533
82534         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82535         with $auxdir in AC_CONFIG_FILES statements.
82536
82537 2006-01-11  Bruno Haible  <bruno@clisp.org>
82538
82539         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82540         Initialize also noinst_HEADERS to empty.
82541
82542 2006-01-11  Bruno Haible  <bruno@clisp.org>
82543
82544         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82545         variables.
82546         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82547         autoreconf.
82548
82549 2006-01-11  Bruno Haible  <bruno@clisp.org>
82550
82551         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82552         overridable by the user.
82553         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82554
82555 2006-01-10  Simon Josefsson  <jas@extundo.com>
82556
82557         * modules/sys_socket: New file.
82558
82559 2006-01-10  Simon Josefsson  <jas@extundo.com>
82560
82561         * m4/sys_socket_h.m4: New file.
82562
82563 2006-01-10  Simon Josefsson  <jas@extundo.com>
82564
82565         * lib/socket_.h: New file.
82566
82567 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82568
82569         * modules/readutmp (Maintainer): Add myself.
82570
82571 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82572
82573         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82574         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82575         People who are still concerned with buggy memcmp implementations
82576         can invoke gl_FUNC_MEMCMP themselves.
82577
82578 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82579
82580         * lib/regex_internal.h (BITSET_WORD_BITS):
82581         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82582         preprocessor mishandles large unsigned values as if they were signed.
82583         Problem reported by Claudio Fontana in
82584         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82585
82586 2006-01-10  Jim Meyering  <jim@meyering.net>
82587
82588         Avoid the double-free (first in fts_read, second in fts_close) that
82589         would occur when an `active' directory is made inaccessible (e.g.,
82590         via chmod a-x) during a traversal.
82591         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82592         before returning.  Reproduce this failure by
82593         mkdir -p a/b; cd a; chmod a-x . b
82594         Reported by Stavros Passas.
82595
82596         Sync from coreutils.
82597         * lib/sha1.c: Tweak grammar in a comment.
82598
82599 2006-01-10  Jim Meyering  <jim@meyering.net>
82600
82601         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82602         Patch by Joerg Sonnenberger.
82603
82604 2006-01-10  Bruno Haible  <bruno@clisp.org>
82605
82606         * modules/readutmp: Depend on module free.
82607         * modules/strtok_r: Depend on module restrict.
82608
82609 2006-01-10  Bruno Haible  <bruno@clisp.org>
82610
82611         * modules/gettext (configure.ac): Add an invocation of
82612         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82613
82614 2006-01-10  Bruno Haible  <bruno@clisp.org>
82615
82616         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82617         Reported by Werner Lemberg <wl@gnu.org>.
82618
82619 2006-01-10  Bruno Haible  <bruno@clisp.org>
82620
82621         * lib/localcharset.c: Update from GNU gettext.
82622
82623 2006-01-10  Bruno Haible  <bruno@clisp.org>
82624
82625         * lib/argp.h (__const): Remove macro. Use const instead.
82626         * lib/argp-fmtstream.h (__const): Likewise.
82627         * lib/glob_.h (__const): Remove macro.
82628         * lib/glob-libc.h: Use const instead of __const.
82629
82630 2006-01-10  Bruno Haible  <bruno@clisp.org>
82631
82632         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82633         variable.
82634         Needed to avoid an automake error regarding the 'gettext' module.
82635
82636 2006-01-09  Simon Josefsson  <jas@extundo.com>
82637
82638         * modules/inet_ntop (Depends-on): Add restrict.
82639
82640 2006-01-09  Simon Josefsson  <jas@extundo.com>
82641
82642         * modules/gc-rijndael-tests (License): Put under LGPL.
82643
82644         * modules/gc-des-tests (License): Likewise.
82645
82646         * modules/gc-arcfour-tests (License): Likewise.
82647
82648         * modules/gc-arctwo-tests (License): Likewise.
82649
82650         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82651
82652         * modules/gc-hmac-sha1-tests (Files): Likewise.
82653
82654         * modules/gc-hmac-md5-tests (License): Likewise.
82655
82656         * modules/gc-sha1-tests (License): Likewise.
82657
82658         * modules/gc-md5-tests (License): Likewise.
82659
82660         * modules/gc-md4-tests (License): Likewise.
82661
82662         * modules/gc-md2-tests (License): Likewise.
82663
82664         * modules/gc-tests (License): Likewise.
82665
82666         * modules/des-tests (License): Likewise.
82667
82668         * modules/md4-tests (License): Likewise.
82669
82670         * modules/md2-tests (License): Likewise.
82671
82672 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82673
82674         Sync from coreutils:
82675
82676         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82677         * modules/lib-ignore: New file.
82678         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82679         chdir-safer.m4, lchmod.m4.
82680         * modules/openat: Add mkdirat.c, openat-priv.h.
82681
82682 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82683
82684         Sync from coreutils.
82685         * m4/lib-ignore.m4: New file.
82686         * m4/lchmod.m4: New file.
82687
82688 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82689
82690         Sync from coreutils.
82691         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82692         for write access: POSIX says that must fail.
82693         * lib/fts.c (diropen): Likewise.
82694         * lib/save-cwd.c (save_cwd): Likewise.
82695         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82696         well, for minor improvements on hosts that lack O_DIRECTORY.
82697         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82698         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82699         Fall back on chown if open failed with EACCES.
82700
82701         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82702         Report an error at compile-time if only a 1-second nominal clock
82703         resolution is found.
82704
82705         * lib/lchmod.h: New file.
82706         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82707         (make_dir_parents): Use lchown rather than chown, and
82708         lchmod rather than chmod.
82709
82710         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82711         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82712         "proc" reported by n0dalus.
82713
82714         * lib/mountlist.c: Include <limits.h>.
82715         (dev_from_mount_options)
82716         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82717         New function.  It no longer assumes "dev=" has the System V meaning
82718         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82719         (read_file_system_list)
82720         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82721         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82722         dev= in that case.
82723
82724         * lib/posixtm.h (PDS_PRE_2000): New macro.
82725         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82726         allow_century.  All usages changed.  Reject dates outside the range
82727         1969-1999 if PDS_PRE_2000 is used.
82728
82729 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82730
82731         Sync from coreutils.
82732         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82733         (Time of day items): Mention the possibility of leap seconds.
82734         Problem reported by Dr. David Alan Gilbert.
82735
82736 2006-01-09  Jim Meyering  <jim@meyering.net>
82737
82738         Sync from coreutils.
82739
82740         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82741
82742         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82743
82744         * lib/modechange.c (mode_compile): Reject an invalid mode string
82745         that starts with an octal digit.  From Andreas Gruenbacher.
82746
82747         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82748         and dup to open_safer and dup_safer, respectively.
82749         (openat_permissive): Fix typo in comment.
82750
82751         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82752         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82753         (_): Remove; no longer needed.
82754         (openat): Renamed from rpl_openat; no need for rpl_openat
82755         since openat.h renames openat for us.
82756         Replace most of the body with a call to openat_permissive,
82757         to avoid duplicate code.
82758         Port to (probably hypothetical) environments were mode_t is
82759         wider than int.
82760         (openat_permissive): Require mode arg, so that we can check
82761         types better.  Put it just after flags.  Change cwd failure
82762         indicator from pointer-to-bool to pointer-to-errno-value.
82763         All callers changed.
82764         Invoke openat_save_fail and/or openat_restore_fail if
82765         cwd_errno is null, so that openat can call us.
82766         (openat_permissive, fdopendir, fstatat, unlinkat):
82767         Simplify errno handling to avoid some duplicate code,
82768         as it's OK to set errno on success.
82769         * lib/openat.h: Revamp code so that function macros depend on
82770         __OPENAT_PREFIX only, not also on AT_FDCWD.
82771         (openat_ro): Remove.  Caller changed to use openat_permissive.
82772         (openat_permissive): Now a macro, if not a function.
82773         (openat_restore_fail, openat_save_fail): Now always functions,
82774         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82775
82776         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82777         and openat.c.
82778         * lib/mkdirat.c: Include openat-priv.h.
82779         Remove definitions of macros defined therein.
82780         * lib/openat.c: Likewise.
82781
82782         * lib/mkdirat.c (mkdirat): New file and function.
82783         * lib/openat.h (mkdirat): Declare.
82784
82785         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82786
82787         * lib/openat.h (openat_permissive): Declare.
82788         (openat_ro): Define.
82789
82790         * lib/openat.c (EXPECTED_ERRNO): New macro.
82791         (openat_permissive): New function -- used in remove.c rewrite.
82792         (all functions): Set errno just before returning, only if there
82793         was an actual failure.
82794         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82795
82796         Emulate openat-family functions using Linux's procfs, if possible.
82797         Idea and some code based on Ulrich Drepper's glibc changes.
82798
82799         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82800         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82801         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82802         before falling back on save_cwd and restore_cwd.
82803         (fdopendir, fstatat, unlinkat): Likewise.
82804
82805         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82806         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82807
82808         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82809         as second argument to va_arg.  Otherwise, some versions of gcc
82810         warn that `if this code is reached, the program will abort'.
82811
82812 2006-01-09  Jim Meyering  <jim@meyering.net>
82813
82814         Sync from coreutils.
82815         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82816         Require openat-priv.h.
82817
82818 2006-01-09  Bruno Haible  <bruno@clisp.org>
82819
82820         * modules/strnlen (Include): Use strnlen.h.
82821
82822 2006-01-09  Bruno Haible  <bruno@clisp.org>
82823
82824         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82825
82826 2006-01-09  Bruno Haible  <bruno@clisp.org>
82827
82828         * lib/sysexit_.h (EX_OK): New macro.
82829         Suggested by Martin Lambers <marlam@marlam.de>.
82830
82831 2006-01-09  Bruno Haible  <bruno@clisp.org>
82832
82833         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82834         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82835
82836 2006-01-09  Bruno Haible  <bruno@clisp.org>
82837
82838         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82839         numbers.
82840
82841 2006-01-09  Bruno Haible  <bruno@clisp.org>
82842
82843         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82844         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82845         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82846         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82847
82848 2006-01-09  Bruno Haible  <bruno@clisp.org>
82849
82850         * build-aux/javacomp.sh.in: New file, moved from lib/.
82851         * modules/javacomp-script (Files): Update.
82852         (configure.ac): Add AC_CONFIG_FILES invocation.
82853         (EXTRA_DIST): Remove variable.
82854
82855         * build-aux/javaexec.sh.in: New file, moved from lib/.
82856         * modules/javaexec (Files): Update.
82857         (configure.ac): Add AC_CONFIG_FILES invocation.
82858         (EXTRA_DIST): Remove javaexec.sh.in.
82859
82860         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82861         * modules/csharpcomp-script (Files): Update.
82862         (configure.ac): Add AC_CONFIG_FILES invocation.
82863         (EXTRA_DIST): Remove variable.
82864
82865         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82866         * modules/csharpexec (Files): Update.
82867         (configure.ac): Add AC_CONFIG_FILES invocation.
82868         (EXTRA_DIST): Remove csharpexec.sh.in.
82869
82870 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82871
82872         Sync from coreutils.
82873
82874         Add POSIX ACL support
82875         * lib/acl.h (copy_acl, set_acl): Add declarations.
82876         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82877         systems other than Linux.
82878         (chmod_or_fchmod): New function: use fchmod when possible,
82879         and chmod otherwise.
82880         (file_has_acl): Add a POSIX ACL implementation, with a
82881         Linux-specific subcase.
82882         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82883         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82884         acls are unsupported.
82885         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82886         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82887         are unsupported.
82888
82889 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82890
82891         Sync from coreutils.
82892         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82893
82894 2006-01-07  Bruno Haible  <bruno@clisp.org>
82895
82896         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82897         gl_EARLY.
82898
82899 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82900
82901         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82902         Problem reported for Mingw by Mark Junker.
82903
82904 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82905
82906         * README: Gnulib normally doesn't generate a tarball.
82907
82908 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82909
82910         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82911         long int, not int, for nanosecond counts, so that people who are
82912         used to POSIX struct timespec won't be surprised.  Reported by Jim
82913         Meyering.
82914
82915 2005-12-28  Bruno Haible  <bruno@clisp.org>
82916
82917         * build-aux/config.rpath: Update from GNU gettext.
82918
82919 2005-12-16  Jim Meyering  <jim@meyering.net>
82920
82921         * modules/fprintftime: New module.
82922         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82923
82924 2005-12-16  Jim Meyering  <jim@meyering.net>
82925
82926         * m4/fprintftime.m4: New file.
82927
82928 2005-12-16  Jim Meyering  <jim@meyering.net>
82929
82930         * lib/fprintftime.c, lib/fprintftime.h: New files.
82931
82932 2005-12-15  Simon Josefsson  <jas@extundo.com>
82933
82934         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82935         new m4/socklen.m4.
82936
82937 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82938
82939         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82940         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82941
82942 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82943
82944         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82945         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82946         struct uparams is valid. Fall back to the default values if it is
82947         not.
82948
82949 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82950
82951         * modules/argp (Files): Add argp-pin.c
82952         (Depends-on): dirname
82953         (lib_SOURCES): Add argp-pin.c
82954
82955 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82956
82957         * m4/argp.m4:  Check if program_invocation_name and
82958         program_invocation_short_name are declared and define appropriate
82959         macros if they are not.
82960
82961 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82962
82963         * lib/argp-help.c (__argp_base_name): New function
82964         (__argp_short_program_name): Rewrite using __argp_base_name
82965         * lib/argp-namefrob.h: Define program_invocation_name and
82966         program_invocation_short_name if requested
82967         (__argp_base_name): Add prototype
82968         * lib/argp-parse.c (argp_def): Use gettext wrappers
82969         (argp_default_parser): Use __argp_base_name
82970         * lib/argp-pin.c: New file. Defines program_invocation_name and
82971         program_invocation_short_name on systems that lack them.
82972
82973 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82974
82975         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82976         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82977         porting problem reported by Georg Schwarz in
82978         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82979
82980 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82981
82982         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82983         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82984         porting problem reported by Georg Schwarz in
82985         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82986
82987 2005-12-05  Bruno Haible  <bruno@clisp.org>
82988
82989         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82990         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82991         Reported by Mark Junker <mjscod@gmx.de>.
82992
82993 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82994
82995         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82996         Use implementation from Albert Chin, with some
82997         comments/corrections by Stepan Kasal and myself.
82998
82999 2005-12-02  Bruno Haible  <bruno@clisp.org>
83000
83001         * gnulib-tool (func_import): Accept GPLed build tool modules when
83002         --lgpl is given.
83003         * modules/csharpcomp-script: New file.
83004         * modules/csharpcomp: Depend on it.
83005         * modules/javacomp-script: New file.
83006         * modules/javacomp: Depend on it.
83007         Suggested by Simon Josefsson.
83008
83009 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83010
83011         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83012         statement, to work around an HP-UX 10.20 compiler bug reported by
83013         Peter O'Gorman.
83014
83015 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83016
83017         * modules/savedir (Depends-on): Add openat.
83018
83019 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83020
83021         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83022         (uintmax_t) [defined uintmax_t]: Do not declare.
83023         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83024         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83025         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83026         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83027         sake of portability to weird hosts that C allows (though we don't
83028         know of any practical examples).
83029
83030         * lib/savedir.h (fdsavedir): New decl.
83031         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83032         contains most of the former guts of savedir.
83033         (savedir): Use savedirstream.
83034         Include "openat.h".
83035
83036 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83037
83038         * modules/obstack (Files): Add m4/ulonglong.m4.
83039         Problem reported by Davide Angelocola.
83040
83041 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83042
83043         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83044         coreutils no longer futzes with rounding modes.
83045
83046 2005-11-14  Jim Meyering  <jim@meyering.net>
83047
83048         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83049         replacement of mkstemp.
83050
83051 2005-11-10  Simon Josefsson  <jas@extundo.com>
83052
83053         * lib/readline.c: Remove EOL.
83054
83055 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83056
83057         * modules/gethrxtime (Depends-on): Add gettime.
83058
83059 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83060
83061         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83062         or gettimeofday; no longer needed.
83063
83064 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83065
83066         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83067         time business.
83068         (gethrxtime) [! (HAVE_NANOUPTIME
83069         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83070         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83071         our own approximation.
83072
83073 2005-11-08  Eric Blake  <ebb9@byu.net>
83074
83075         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83076
83077 2005-11-08  Eric Blake  <ebb9@byu.net>
83078
83079         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83080
83081 2005-11-04  Bruno Haible  <bruno@clisp.org>
83082
83083         * gnulib-tool: Implement --update mode.
83084
83085 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83086
83087         Fix porting problem reported by Theodoros V. Kalamatianos.
83088         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83089         Don't assume that futimes failing means we must fail.
83090
83091 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83092
83093         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83094         variables to suggest the intended function of the PATH_MAX check.
83095
83096 2005-10-30  Kean Johnston  <jkj@sco.com>
83097
83098         Trivial changes to support SCO systems.
83099         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83100         as PATH_MAX.
83101         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83102         where __ptr is null when no I/O is pending.
83103
83104 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83105
83106         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83107         leave errno alone.  Problem reported by Dmitry V. Levin.
83108
83109 2005-10-28  Simon Josefsson  <jas@extundo.com>
83110
83111         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83112         Test more.
83113
83114         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83115
83116         * modules/md2, modules/md2-tests: New files.
83117
83118 2005-10-28  Simon Josefsson  <jas@extundo.com>
83119
83120         * m4/inet_ntop.m4: More tests.
83121
83122         * m4/gc-md2.m4, md2.m4: New file.
83123
83124 2005-10-28  Simon Josefsson  <jas@extundo.com>
83125
83126         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83127         "restrict" keywords, as per POSIX.  Protect the function
83128         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83129         Don't use K&R prototypes.  Check the sprintf return values.
83130         Re-define EAFNOSUPPORT if not present.  Indent.
83131
83132         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83133         suggested by Bruno Haible <bruno@clisp.org>.
83134
83135         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83136
83137         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83138
83139         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83140         libgcrypt).
83141
83142         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83143
83144         * lib/md2.h, lib/md2.c: New files.
83145
83146 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83147
83148         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83149         errno alone.  Problem reported by Frederic Jolliton.
83150
83151 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83152
83153         * modules/verify (License): Change from GPL to LGPL.  This is a
83154         tiny module and there are apparently near-equivalents that are
83155         under the BSD license.
83156
83157 2005-10-24  Simon Josefsson  <jas@extundo.com>
83158
83159         * modules/sha1: Relicense to LGPL.
83160
83161 2005-10-24  Simon Josefsson  <jas@extundo.com>
83162
83163         * lib/md4.h: Shrink buffer size, now that we changed the type.
83164
83165 2005-10-23  Simon Josefsson  <jas@extundo.com>
83166
83167         * gnulib-tool (func_import): Fix --tests-base.
83168
83169 2005-10-22  Simon Josefsson  <jas@extundo.com>
83170
83171         * modules/arcfour (Depends-on): Need stdint.
83172
83173 2005-10-22  Simon Josefsson  <jas@extundo.com>
83174
83175         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83176         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83177
83178 2005-10-22  Simon Josefsson  <jas@extundo.com>
83179
83180         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83181         suggested by Bruno Haible <bruno@clisp.org>.
83182
83183 2005-10-22  Simon Josefsson  <jas@extundo.com>
83184
83185         * lib/crc.h: Include stddef.h, for size_t.
83186
83187 2005-10-22  Simon Josefsson  <jas@extundo.com>
83188
83189         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83190         arcfour_context struct (simplify test vector testing in GNU
83191         Shishi).
83192
83193 2005-10-21  Simon Josefsson  <jas@extundo.com>
83194
83195         * modules/des, modules/des-tests: New files.
83196
83197         * modules/gc-des, modules/gc-des-tests: New files.
83198
83199         * tests/test-des.c, tests/test-gc-des.c: New file.
83200
83201 2005-10-21  Simon Josefsson  <jas@extundo.com>
83202
83203         * modules/arctwo, modules/arctwo-tests: New files.
83204
83205         * tests/test-arctwo.c: New file.
83206
83207         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83208
83209         * tests/test-gc-arctwo.c: New file.
83210
83211 2005-10-21  Simon Josefsson  <jas@extundo.com>
83212
83213         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83214         Bruno Haible <bruno@clisp.org>.
83215
83216         * m4/gc-des.m4: New file.
83217
83218 2005-10-21  Simon Josefsson  <jas@extundo.com>
83219
83220         * m4/arctwo.m4: New file.
83221
83222         * m4/gc-arctwo.m4: New file.
83223
83224 2005-10-21  Simon Josefsson  <jas@extundo.com>
83225
83226         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83227         block.
83228
83229 2005-10-21  Simon Josefsson  <jas@extundo.com>
83230
83231         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83232         <bruno@clisp.org>.
83233
83234         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83235
83236         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83237         Bruno Haible <bruno@clisp.org>.
83238
83239         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83240         <bruno@clisp.org>.
83241
83242 2005-10-21  Simon Josefsson  <jas@extundo.com>
83243
83244         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83245
83246 2005-10-21  Simon Josefsson  <jas@extundo.com>
83247
83248         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83249
83250 2005-10-21  Simon Josefsson  <jas@extundo.com>
83251
83252         * lib/des.h, lib/des.c: New files.
83253
83254         * lib/gc-gnulib.c: Support DES.c
83255
83256 2005-10-21  Simon Josefsson  <jas@extundo.com>
83257
83258         * lib/arctwo.h, lib/arctwo.c: New files.
83259
83260         * lib/gc-gnulib.c: Support ARCTWO.
83261
83262 2005-10-21  Simon Josefsson  <jas@extundo.com>
83263
83264         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83265         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83266
83267 2005-10-21  Simon Josefsson  <jas@extundo.com>
83268
83269         * gnulib-tool (func_import, func_create_testdir): Define automake
83270         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83271         Makefile.am snippet),
83272         suggested by Bruno Haible <bruno@clisp.org>.
83273
83274         * modules/gc (Makefile.am): Use it.
83275
83276 2005-10-21  Bruno Haible  <bruno@clisp.org>
83277
83278         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83279         patch.
83280
83281 2005-10-19  Simon Josefsson  <jas@extundo.com>
83282
83283         * tests/test-gc-rijndael.c: New file.
83284
83285         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83286
83287 2005-10-19  Simon Josefsson  <jas@extundo.com>
83288
83289         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83290         interface too.
83291
83292 2005-10-19  Simon Josefsson  <jas@extundo.com>
83293
83294         * tests/test-gc-arcfour.c: New file.
83295
83296         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83297
83298 2005-10-19  Simon Josefsson  <jas@extundo.com>
83299
83300         * modules/gc-md4, modules/gc-md4-tests: New file.
83301
83302         * tests/test-gc-md4.c: New file.
83303
83304 2005-10-19  Simon Josefsson  <jas@extundo.com>
83305
83306         * m4/gc-md4.m4: New file.
83307
83308 2005-10-19  Simon Josefsson  <jas@extundo.com>
83309
83310         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83311         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83312         <kasal@ucw.cz>.
83313
83314 2005-10-19  Simon Josefsson  <jas@extundo.com>
83315
83316         * m4/gc-arcfour.m4: New file.
83317
83318         * m4/gc-rijndael.m4: New file.
83319
83320 2005-10-19  Simon Josefsson  <jas@extundo.com>
83321
83322         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83323
83324 2005-10-19  Simon Josefsson  <jas@extundo.com>
83325
83326         * lib/gc-gnulib.c: Support ARCFOUR.
83327
83328 2005-10-19  Simon Josefsson  <jas@extundo.com>
83329
83330         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83331         support.
83332
83333         * lib/gc.h: Add ECB enum type.
83334
83335         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83336
83337 2005-10-18  Simon Josefsson  <jas@extundo.com>
83338
83339         * tests/test-md5.c: New file.
83340
83341         * modules/md5-tests: New file.
83342
83343 2005-10-18  Simon Josefsson  <jas@extundo.com>
83344
83345         * tests/test-md4.c: New file.
83346
83347         * modules/md4, modules/md4-tests: New files.
83348
83349 2005-10-18  Simon Josefsson  <jas@extundo.com>
83350
83351         * m4/md4.m4: New file.
83352
83353 2005-10-18  Simon Josefsson  <jas@extundo.com>
83354
83355         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83356
83357 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83358
83359         * gnulib-tool (func_create_testdir): Omit the second check whether
83360         BUILT_SOURCES in nonempty.
83361
83362 2005-10-17  Simon Josefsson  <jas@extundo.com>
83363
83364         * tests/test-rijndael.c: New file.
83365
83366 2005-10-17  Simon Josefsson  <jas@extundo.com>
83367
83368         * modules/sha1: Depend on stdint instead of md5.
83369
83370         * modules/md5: Depend on stdint, remove uint32_t.
83371
83372 2005-10-17  Simon Josefsson  <jas@extundo.com>
83373
83374         * modules/gc-sha1-tests: New file.
83375
83376         * tests/test-gc-sha1.c: New file.
83377
83378 2005-10-17  Simon Josefsson  <jas@extundo.com>
83379
83380         * m4/md5.m4: Remove call to uint32_t.m4.
83381
83382 2005-10-17  Simon Josefsson  <jas@extundo.com>
83383
83384         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83385
83386         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83387         md5.h.
83388
83389         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83390
83391         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83392
83393 2005-10-17  Simon Josefsson  <jas@extundo.com>
83394
83395         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83396
83397 2005-10-17  Simon Josefsson  <jas@extundo.com>
83398
83399         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83400
83401 2005-10-17  Simon Josefsson  <jas@extundo.com>
83402
83403         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83404
83405         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83406
83407 2005-10-17  Bruno Haible  <bruno@clisp.org>
83408
83409         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83410         that it can also be used in a test.
83411
83412 2005-10-16  Bruno Haible  <bruno@clisp.org>
83413
83414         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83415         TESTS_ENVIRONMENT, so that individual tests can augment it.
83416
83417         * gnulib-tool (func_create_testdir): Use an intermediate target for
83418         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83419         macros, like $(ALLOCA_H), which cannot be passed through the command
83420         line.
83421
83422 2005-10-15  Simon Josefsson  <jas@extundo.com>
83423
83424         * modules/rijndael-tests: New file.
83425
83426         * modules/rijndael: New file.
83427
83428 2005-10-15  Simon Josefsson  <jas@extundo.com>
83429
83430         * m4/rijndael.m4: New file.
83431
83432 2005-10-15  Simon Josefsson  <jas@extundo.com>
83433
83434         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83435
83436         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83437
83438 2005-10-14  Simon Josefsson  <jas@extundo.com>
83439
83440         * tests/test-arcfour.c: New file.
83441
83442         * modules/arcfour, modules/arcfour-tests: New files.
83443
83444 2005-10-14  Simon Josefsson  <jas@extundo.com>
83445
83446         * m4/arcfour.m4: New file.
83447
83448 2005-10-14  Simon Josefsson  <jas@extundo.com>
83449
83450         * lib/arcfour.h, lib/arcfour.c: New files.
83451
83452 2005-10-14  Roland McGrath  <roland@redhat.com>
83453
83454         Import from libc.  [BZ #1331]
83455         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83456         macro argument.
83457         Reported by Matej Vela <vela@debian.org>.
83458
83459 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83460
83461         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83462         include <wchar.h>; no longer needed.
83463
83464 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83465
83466         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83467
83468 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83469         and  Ulrich Drepper  <drepper@redhat.com>
83470
83471         Import from libc.
83472         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83473         instead of inline stream orientation test and two separate
83474         function calls.  Pay no attention to USE_IN_LIBIO.
83475
83476 2005-10-13  Simon Josefsson  <jas@extundo.com>
83477
83478         * modules/gc-hmac-md5-tests: New file.
83479
83480         * tests/test-gc-hmac-sha1.c: New file.
83481
83482         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83483
83484         * modules/gc-hmac-md5-tests: New file.
83485
83486         * tests/test-gc-md5.c: New file.
83487
83488         * modules/gc-md5-tests: New file.
83489
83490 2005-10-13  Simon Josefsson  <jas@extundo.com>
83491
83492         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83493         Move memory allocation outside of loop.
83494
83495 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83496
83497         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83498         intermediate directory is in a read-only file system.  Problem
83499         reported by Eric Blake.
83500
83501 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83502
83503         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83504
83505 2005-10-12  Simon Josefsson  <jas@extundo.com>
83506
83507         * tests/test-hmac-sha1.c: New file.
83508
83509         * modules/hmac-sha1-tests: New file.
83510
83511         * modules/hmac-sha1: New file.
83512
83513 2005-10-12  Simon Josefsson  <jas@extundo.com>
83514
83515         * modules/gc-sha1: New file.
83516
83517 2005-10-12  Simon Josefsson  <jas@extundo.com>
83518
83519         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83520
83521         * tests/test-gc-pbkdf2-sha1.c: New file.
83522
83523 2005-10-12  Simon Josefsson  <jas@extundo.com>
83524
83525         * modules/gc-md5, modules/gc-hmac-md5: New files.
83526
83527         * modules/gc (Files): Remove md5, memxor and hmac files.
83528
83529 2005-10-12  Simon Josefsson  <jas@extundo.com>
83530
83531         * m4/gc-pbkdf2-sha1.m4: New file.
83532
83533         * m4/gc-hmac-sha1.m4: New file.
83534
83535         * m4/gc-sha1: New file.
83536
83537         * m4/hmac-sha1.m4: New file.
83538
83539 2005-10-12  Simon Josefsson  <jas@extundo.com>
83540
83541         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83542
83543         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83544
83545 2005-10-12  Simon Josefsson  <jas@extundo.com>
83546
83547         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83548         suggested by Bruno Haible <bruno@clisp.org>.
83549
83550 2005-10-12  Simon Josefsson  <jas@extundo.com>
83551
83552         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83553
83554 2005-10-12  Simon Josefsson  <jas@extundo.com>
83555
83556         * lib/gc-pbkdf2-sha1.c: New file.
83557
83558         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83559
83560 2005-10-12  Simon Josefsson  <jas@extundo.com>
83561
83562         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83563
83564         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83565
83566 2005-10-12  Simon Josefsson  <jas@extundo.com>
83567
83568         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83569         GC_USE_HMAC_MD5, respectively.
83570
83571         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83572         (gc_md5): Fix typo.
83573
83574         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83575
83576         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83577
83578         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83579
83580 2005-10-12  Bruno Haible  <bruno@clisp.org>
83581
83582         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83583         Reported by Stepan Kasal <kasal@ucw.cz>.
83584
83585 2005-10-11  Simon Josefsson  <jas@extundo.com>
83586
83587         * tests/test-crc.c: New file.
83588
83589         * modules/crc, modules/crc-tests: New files.
83590
83591 2005-10-11  Simon Josefsson  <jas@extundo.com>
83592
83593         * m4/crc.m4: New file.
83594
83595 2005-10-11  Simon Josefsson  <jas@extundo.com>
83596
83597         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83598
83599         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83600
83601         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83602
83603 2005-10-11  Simon Josefsson  <jas@extundo.com>
83604
83605         * lib/crc.h, lib/crc.c: New files.
83606
83607         * lib/gc.h (gc_hash_buffer): Add doc.
83608
83609 2005-10-11  Bruno Haible  <bruno@clisp.org>
83610
83611         * modules/c-strcasestr: New file.
83612         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83613
83614 2005-10-11  Bruno Haible  <bruno@clisp.org>
83615
83616         * modules/c-strcase: New file.
83617         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83618
83619 2005-10-11  Bruno Haible  <bruno@clisp.org>
83620
83621         * lib/strcasecmp.c: Include limits.h.
83622         (strcasecmp): Avoid integer overflow on exotic platforms.
83623         * lib/strncasecmp.c: Include limits.h.
83624         (strncasecmp): Avoid integer overflow on exotic platforms.
83625         Reported by Paul Eggert.
83626
83627 2005-10-11  Bruno Haible  <bruno@clisp.org>
83628
83629         * lib/c-strcasestr.h: New file, from GNU gettext.
83630         * lib/c-strcasestr.c: New file, from GNU gettext.
83631
83632 2005-10-11  Bruno Haible  <bruno@clisp.org>
83633
83634         * lib/c-strcase.h: New file, from GNU gettext.
83635         * lib/c-strcasecmp.c: New file, from GNU gettext.
83636         * lib/c-strncasecmp.c: New file, from GNU gettext.
83637
83638 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83639
83640         * modules/mempcpy (License): GPL -> LGPL.
83641         * modules/strchrnul (License): Likewise.
83642         * modules/sysexits (License): Likewise.
83643
83644 2005-10-08  Simon Josefsson  <jas@extundo.com>
83645
83646         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83647
83648 2005-10-07  Simon Josefsson  <jas@extundo.com>
83649
83650         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83651
83652 2005-10-06  Simon Josefsson  <jas@extundo.com>
83653
83654         * tests/test-hmac-md5.c: New file.
83655
83656         * modules/hmac-md5-tests: New file.
83657
83658         * modules/hmac-md5: New file.
83659
83660 2005-10-06  Simon Josefsson  <jas@extundo.com>
83661
83662         * m4/hmac-md5.m4: New file.
83663
83664         * m4/memxor.m4: Require gl_C_RESTRICT.
83665
83666 2005-10-06  Simon Josefsson  <jas@extundo.com>
83667
83668         * lib/memxor.c (memxor): Avoid casts and warnings.
83669
83670 2005-10-06  Simon Josefsson  <jas@extundo.com>
83671
83672         * lib/hmac-md5.c: New file.
83673
83674         * lib/hmac.h: New file.
83675
83676 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83677
83678         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83679         promotes to int, not unsigned int, to catch the AIX 5.3
83680         compiler bug.
83681
83682 2005-10-05  Simon Josefsson  <jas@extundo.com>
83683
83684         * modules/memxor: New file.
83685
83686         * modules/iconv (Files): Move config.rpath to havelib, it is used
83687         there.
83688
83689         * modules/havelib (Files): Add config.rpath.
83690
83691 2005-10-05  Simon Josefsson  <jas@extundo.com>
83692
83693         * m4/memxor.m4: New file.
83694
83695 2005-10-05  Simon Josefsson  <jas@extundo.com>
83696
83697         * lib/memxor.c (memxor): Fix compiler error.
83698
83699         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83700         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83701
83702         * lib/memxor.h, lib/memxor.c: New files.
83703
83704         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83705         we assume all systems have it, suggested by Jim Meyering
83706         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83707         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83708         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83709         same reasons.
83710
83711 2005-10-05  Simon Josefsson  <jas@extundo.com>
83712
83713         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83714
83715 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83716
83717         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83718         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83719         needed, since the source code now assumes these .h files.
83720
83721 2005-10-05  Derek Price  <derek@ximbiot.com>
83722
83723         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83724
83725 2005-10-05  Bruno Haible  <bruno@clisp.org>
83726
83727         * modules/stdint (License): Change to LGPL.
83728
83729 2005-10-04  Simon Josefsson  <jas@extundo.com>
83730
83731         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83732         D. Baushke" <mdb@gnu.org>.
83733
83734 2005-10-04  Bruno Haible  <bruno@clisp.org>
83735
83736         * lib/verify.h (verify_true): Provide alternative definition for C++.
83737
83738 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83739
83740         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83741         (SSIZE_MAX): New macro, if not already defined.
83742         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83743         than 2 GiB.
83744
83745 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83746
83747         Sync from coreutils.
83748         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83749         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83750         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83751         ULLONG_MAX doesn't work with 2.7.2.1.
83752
83753 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83754
83755         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83756         From Ben Pfaff.
83757
83758         * modules/exclude (Depends-on): Depend on verify.
83759         * modules/strtoimax (Depends-on): Likewise.
83760         * modules/utimecmp (Depends-on): Likewise.
83761
83762 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83763
83764         * lib/exclude.c: Include verify.h.
83765         (verify): Remove.  All callers changed to use verify.h's version.
83766         * lib/strtoimax.c: Likewise.
83767         * lib/utimecmp.c: Likewis.e
83768
83769         Sync from coreutils.
83770         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83771         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83772         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83773         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83774         bother returning ENOSYS if settimeofday or stime fails; just let
83775         them return whatever errno they want to return.
83776         * lib/utimens.c: Include unistd.h, for dup2.
83777         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83778         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83779
83780 2005-10-02  Jim Meyering  <jim@meyering.net>
83781
83782         Sync from coreutils.
83783         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83784         from glibc-2.2.5 that fails for read-only files.
83785
83786 2005-10-02  Jim Meyering  <jim@meyering.net>
83787
83788         Sync from coreutils.
83789         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83790         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83791         `#if HAVE_CONFIG_H'.
83792         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83793         Remove AT_FDCWD test.
83794         Do not consume the fd unless successful.
83795         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83796         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83797         block, so that we don't even try to compile it if settimeofday is
83798         available.  This works around a compilation failure on OSF1 V5.1,
83799         due to stime requiring a `long int*' while tv_sec is `int'.
83800
83801 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83802
83803         Sync from coreutils.
83804         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83805         against `yes', rather than just testing for nonempty.
83806
83807 2005-10-01  Simon Josefsson  <jas@extundo.com>
83808
83809         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83810         and Darwin.
83811
83812         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83813         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83814         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83815         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83816         Check if struct addrinfo is declared.
83817
83818 2005-10-01  Simon Josefsson  <jas@extundo.com>
83819
83820         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83821         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83822         AI_* and EAI_* definitions.  Protect function declarations.
83823
83824 2005-10-01  Jim Meyering  <jim@meyering.net>
83825
83826         Sync from coreutils.
83827
83828         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83829         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83830         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83831         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83832         in the inet and nsl libraries.  Required on Solaris 5.7.
83833
83834 2005-10-01  Jim Meyering  <jim@meyering.net>
83835
83836         Sync from coreutils.
83837         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83838         in the inet and nsl libraries.  Required on Solaris 5.7.
83839
83840 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83841
83842         * lib/getdelim.c (getdelim): Remove unused variables.
83843
83844 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83845
83846         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83847         so that the code works even with ancient cpp.  Portability problem
83848         with GCC 2.7.2.1 reported by Thomas M.Ott.
83849
83850 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83851
83852         * modules/regex (Depends-on): Add strcase.
83853
83854         * modules/gethostname (Licence): Change from GPL to LGPL, since
83855         gethostname.c is a trivial implementation of a standard library
83856         function.
83857         * modules/poll (License): Change from GPL to LGPL, since it's
83858         derived from LGPL code.
83859
83860 2005-09-27  Jim Meyering  <jim@meyering.net>
83861
83862         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83863         HAVE_CONFIG_H.
83864
83865         * lib/intprops.h (signed_type_or_expr__): Define.
83866         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83867         for unsigned types.
83868
83869 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83870
83871         * lib/verify.h (verify_expr): Remove, replacing with:
83872         (verify_true): New macro that returns true instead of void.
83873         (verify_type__): Remove.
83874         (verify): Use verify_true rather than verify_type__.
83875
83876 2005-09-26  Bruno Haible  <bruno@clisp.org>
83877
83878         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83879         is necessary.
83880         (lib_SOURCES): Remove mbchar.c.
83881         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83882         (Files): Add m4/mbrtowc.m4.
83883         * modules/mbiter: Likewise.
83884         * modules/mbuiter: Likewise.
83885
83886 2005-09-26  Bruno Haible  <bruno@clisp.org>
83887
83888         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83889         compile mbchar.c if they are not both present.
83890         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83891         * m4/mbiter.m4 (gl_MBITER): Likewise.
83892         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83893         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83894         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83895
83896 2005-09-25  Jim Meyering  <jim@meyering.net>
83897
83898         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83899         also uses socklen_t.
83900
83901 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83902
83903         * lib/utimens.c (ENOSYS): Define if not already defined.
83904         (futimens): Support having a null PATH if the file descriptor
83905         is nonnegative.
83906
83907         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83908         Remove.
83909         (__attribute): Define to empty unless GCC 3.1 or later.
83910         This works around a core dump on OpenBSD 3.4, which has GCC
83911         2.95.3, which dumps core when given __attribute__(()).  It also
83912         simplifies other tests, since we really don't want to bother with
83913         worrying about which ancient version of GCC supported what.
83914         Original problem reported by Yoann Vandoorselaere, with part of
83915         the fix suggested by Derek Price.
83916
83917 2005-09-24  Jim Meyering  <jim@meyering.net>
83918
83919         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83920         so we can once again use a positive bitfield width of 1 -- now we
83921         don't have to explain why we were using a bitfield width of 2.
83922
83923 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83924
83925         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83926         and similarly for the other external symbols.  Problem reported
83927         by James Gallager.
83928
83929         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83930         bug reported by Jim Meyering.
83931
83932         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83933         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83934         not needed, since socklen is a prerequisite module.
83935
83936 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83937
83938         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83939         Problem reported by Eric Blake.
83940         (getaddrinfo): Initialize se so that it's not garbage.
83941         Redo internal storage allocation so that it doesn't make unportable
83942         assumptions about alignment.
83943         Fix a memory leak.
83944
83945         * lib/utimens.c (futimens): Use futimesat if available.
83946         Prefer it to futimes since it doesn't have the futimes bug.
83947
83948         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83949         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83950         Instead, declare a function that returns a pointer to an array,
83951         and use verify_type__ to declare the size of the array.
83952         Problem and germ of a solution reported by Bruno Haible.
83953         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83954         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83955
83956 2005-09-23  Jim Meyering  <jim@meyering.net>
83957
83958         Sync from coreutils.
83959         Correct build failure (socklen_t not defined) on at least
83960         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83961         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83962
83963 2005-09-23  Jim Meyering  <jim@meyering.net>
83964
83965         * modules/getaddrinfo (Depends-on): Add socklen.
83966
83967 2005-09-23  Bruno Haible  <bruno@clisp.org>
83968
83969         * tests/test-verify.c: New file.
83970
83971 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83972
83973         Sync from coreutils.
83974
83975         * modules/argmatch (Depends-on): Add verify.
83976         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83977         unistd-safer.
83978         * modules/save-cwd (Depends-on): Likewise.
83979
83980         * modules/openat (Files): Add lib/openat-die.c.
83981         (Depends-on): Remove error, exitfail.
83982         Add dirname.
83983
83984         * modules/verify: New file.
83985         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83986         with "verify" module.
83987
83988 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83989
83990         Sync from coreutils.
83991
83992         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83993         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83994         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83995         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83996         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83997         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83998         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83999         Don't bother checking for string.h, stdlib.h, unistd.h.
84000         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84001         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84002         module's job.
84003         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84004         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84005
84006         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84007         (gl_GETDATE): Use it.
84008
84009         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84010
84011 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84012
84013         Sync from coreutils.
84014
84015         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84016         stat-time.h.
84017         * lib/argmatch.h: Include verify.h
84018         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84019         (ARGMATCH_ASSERT): Remove; unused.
84020         * lib/canonicalize.c: Assume STDC_HEADERS.
84021         * lib/exclude.c: Include "strcase.h".
84022         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84023         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84024         and stdio-safer.h.
84025         (getusershell): Call fopen, not fopen_safer.
84026         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84027         Do not include unistd-safer.h.
84028         (save_cwd): Don't call fd_safer; no longer needed
84029         now that we include fcntl--.h.
84030
84031         * lib/getdate.y (relative_time): New type.
84032         (RELATIVE_TIME_0): New constant.
84033         (parser_control): Use relative_time instead of doing it ourselves.
84034         (%union): Add new relative_time rel member.
84035         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84036         Now typeless.
84037         (relunit, relunit_snumber): Now of type rel.
84038         (zone, rel, relunit, get_date): Adjust to above changes.
84039
84040         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84041         Do not include unistd-safer.h.
84042         (getloadavg): Don't call fd_safer; no longer needed
84043         now that we include fcntl--.h.
84044
84045         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84046         (make_dir_parents): Treat ENOSYS like EEXIST.
84047
84048         Improve quality of diagnostics on restore_cwd failure.
84049         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84050         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84051         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84052         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84053         each time through the loop.  Do not diagnose restore_cwd failure;
84054         that is the caller's job (and perhaps the caller does not care).
84055
84056         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84057         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84058         If the file already exists but is not a directory, don't bother
84059         to try to make its parents.
84060         Close potential file descriptor leak if we can't chdir("/") (!).
84061         Don't always return true if chdir($PWD) fails; return true only
84062         if the requested action was done successfully (except for the
84063         chdir($PWD)).
84064         Don't log final directory unless we actually made it.
84065         Refactor to avoid duplicate code to fix up permissions.
84066         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84067
84068         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84069         to make it a bit faster and (I hope) clearer.
84070         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84071         Fix bug in formats like %2N.
84072
84073         * lib/verify.h: New file.
84074
84075 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84076
84077         Sync from coreutils.
84078         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84079
84080 2005-09-22  Jim Meyering  <jim@meyering.net>
84081
84082         Sync from coreutils.
84083
84084         * m4/lstat.m4 (gl_FUNC_LSTAT):
84085         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84086         Remove obsolete comment.
84087         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84088         * m4/xstrtod.m4: Likewise.
84089
84090         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84091
84092 2005-09-22  Jim Meyering  <jim@meyering.net>
84093
84094         Sync from coreutils.
84095
84096         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84097
84098         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84099         the .tm_year member, since otherwise gcc-4.0 would now warn about
84100         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84101
84102         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84103         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84104
84105         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84106         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84107         when run in a time zone for which daylight savings time is in effect
84108         for the starting date.
84109
84110         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84111         stop us from restricting permissions of just-created absolute-named
84112         directories.
84113         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84114         to restore initial working directory.
84115         * lib/mkdir-p.c (make_dir_parents): New parameter:
84116         different_working_dir, to tell caller if/when we change the working
84117         directory and are unable to return to the initial one.
84118         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84119         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84120         `return false'.  This fixes a bug introduced on 2004-07-30.
84121
84122         * lib/openat.c (fdopendir): Be sure to close the supplied
84123         file descriptor before returning.  This makes our replacement
84124         implementation a little closer to Solaris's, where fdopendir
84125         ties the file descriptor to the returned DIR* pointer.
84126         * lib/openat.c (unlinkat): New function.
84127         * lib/openat.h (unlinkat): Add prototype.
84128         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84129         (openat_restore_fail): Rename from openat_restore_die.
84130         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84131
84132         Provide an alternative to exiting immediately upon save_cwd or
84133         restore_cwd failure.  Now, an application can arrange e.g.,
84134         to perform a longjump in that case.
84135         * lib/openat.c: Include dirname.h.
84136         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84137         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84138         and openat_restore_die rather than calling error directly.
84139         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84140
84141         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84142         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84143         define.
84144
84145         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84146         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84147                             int utc, int nanoseconds);
84148         Background:
84149         date should not have to allocate a megabyte of virtual memory to
84150         handle a format argument like +%1048575T.  When implemented with
84151         strftime, it must allocate such a buffer, use strftime to fill it
84152         in, print it, then free it.
84153         With fprintftime, it simply prints everything and exits.
84154         With no need for memory allocation, that's one fewer way to fail.
84155         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84156         optional field width, not before, so we accept %9:z, not %:9z.
84157         (my_strftime): Be sure to use L_('x') for literals.
84158
84159         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84160         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84161         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84162         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84163         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84164         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84165         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84166         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84167         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84168         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84169         * lib/xgethostname.c, lib/xreadlink.c:
84170         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84171
84172         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84173         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84174         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84175         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84176         and don't include <sys/file.h>).
84177
84178 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84179
84180         Sync from coreutils.
84181
84182         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84183         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84184         [!LDAV_DONE]: Avoid unused variable warning.
84185
84186 2005-09-21  Bruno Haible  <bruno@clisp.org>
84187
84188         * lib/unicodeio.h (unicode_to_mb): New declaration.
84189
84190 2005-09-20  Derek Price  <derek@ximbiot.com>
84191
84192         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84193         getaddrinfo.h.
84194
84195 2005-09-20  Bruno Haible  <bruno@clisp.org>
84196
84197         * gnulib-tool: Remove trailing slashes from the values specified for
84198         --source-base, --m4-base, --tests-base, --aux-dir.
84199         Suggested by Simon Josefsson <jas@extundo.com>.
84200
84201 2005-09-20  Bruno Haible  <bruno@clisp.org>
84202
84203         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84204         func_modules_to_filelist, func_import, func_create_testdir): Make all
84205         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84206         change when gnulib-tool is invoked in a different locale.
84207
84208 2005-09-19  Simon Josefsson  <jas@extundo.com>
84209
84210         * m4/socklen.m4: Fix typo.
84211
84212 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84213
84214         Use a consistent style for including <config.h>.
84215         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84216         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84217         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84218         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84219         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84220         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84221         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84222         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84223         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84224         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84225         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84226         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84227         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84228         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84229         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84230         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84231         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84232         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84233         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84234         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84235         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84236         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84237         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84238         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84239         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84240         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84241         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84242         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84243         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84244         lib/xstrtoumax.c, lib/yesno.c:
84245         Standardize inclusion of config.h.
84246         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84247         lib/inttostr.h:  Removed inclusion of config.h from header files.
84248         * lib/inttostr.c:  Adjusted in-tree users.
84249         * lib/timespec.h: Remove superfluous warning to include config.h.
84250         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84251         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84252         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84253         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84254         config.h with HAVE_CONFIG_H.
84255
84256 2005-09-19  Jim Meyering  <jim@meyering.net>
84257
84258         * modules/pathmax (License): Change to LGPL.
84259
84260 2005-09-19  Derek Price  <derek@ximbiot.com>
84261
84262         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84263
84264 2005-09-19  Bruno Haible  <bruno@clisp.org>
84265
84266         * gnulib-tool (import): Provide default for --tests-base.
84267
84268 2005-09-19  Bruno Haible  <bruno@clisp.org>
84269
84270         * doc/quote.texi: New file, extracted from gnulib.texi.
84271         * doc/ctime.texi: New file, extracted from gnulib.texi.
84272         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84273         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84274         * doc/gnulib.texi: Include them.
84275
84276 2005-09-18  Bruno Haible  <bruno@clisp.org>
84277
84278         Portability fix.
84279         * gnulib-tool (func_readlink): New function.
84280         (func_ln_if_changed): Use it.
84281
84282 2005-09-18  Bruno Haible  <bruno@clisp.org>
84283
84284         * gnulib-tool: Support --with-tests also with --import.
84285         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84286         (func_import): Use variables $testsbase and $inctests. Emit a
84287         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84288         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84289         SUBDIRS += $testsdir.
84290         (func_create_testdir): Update.
84291
84292 2005-09-18  Bruno Haible  <bruno@clisp.org>
84293
84294         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84295         instead of $dry_run.
84296         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84297         (func_ln_if_changed): Don't handle dry-run here.
84298         (func_import): In dry-run mode, detect more precisely which actions
84299         would be performed, and don't use "...ing" verbs.
84300
84301 2005-09-18  Bruno Haible  <bruno@clisp.org>
84302
84303         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84304         (func_import): Use join on two temporary files instead of three nested
84305         loops, in order to determine which files are new or old.
84306
84307 2005-09-18  Bruno Haible  <bruno@clisp.org>
84308
84309         * gnulib-tool (func_import): Comment out code that spits out the
84310         new files with --dry-run.
84311
84312 2005-09-18  Bruno Haible  <bruno@clisp.org>
84313
84314         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84315
84316 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * lib/stat-time.h: New file.
84319         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84320         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84321         in a different way.
84322         (timespec_cmp): New function.
84323         * lib/utimecmp.c: Include stat-time.h.
84324         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84325         members exist, not on the obsolescent ST_MTIM_NSEC.
84326         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84327
84328 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84329
84330         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84331
84332 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84333
84334         * MODULES.html.sh (File system functions): Add stat-time.
84335         * modules/stat-time: New file.
84336         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84337         is now done in a different way, by the stat-time module.
84338         * modules/utimecmp (Depends-on): Add stat-time.
84339
84340 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84341
84342         * m4/st_mtim.m4: Remove.  Superseded by...
84343         * m4/stat-time.m4: New file.
84344         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84345         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84346
84347 2005-09-15  Derek Price  <derek@ximbiot.com>
84348
84349         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84350
84351 2005-09-15  Derek Price  <derek@ximbiot.com>
84352
84353         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84354         * lib/regex_internal.c: Ditto, using this...
84355         (__GNUC_PREREQ): ...new macro.
84356         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84357         using...
84358         (__GNUC_PREREQ): ...this new macro.
84359
84360         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84361
84362 2005-09-15  Derek Price  <derek@ximbiot.com>
84363             Paul Eggert  <eggert@cs.ucla.edu>
84364
84365         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84366         changes, consolidating in...
84367         * lib/regex_internal.h: ...this file.
84368
84369 2005-09-13  Jim Meyering  <jim@meyering.net>
84370
84371         * lib/canon-host.c: Filter through gnu indent and reword comments
84372         slightly.
84373         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84374
84375 2005-09-13  Derek Price  <derek@ximbiot.com>
84376
84377         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84378         failure.
84379         Reported by Jim Meyering  <jim@meyering.net>.
84380
84381 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84382
84383         * lib/base64.c: Typo.
84384         (base64_encode): Put b64str in initialized data section.
84385
84386 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84387
84388         Merge glibc and coreutils changes into gnulib, plus a few
84389         extra fixes.
84390         * lib/md5.c: Use #error rather than a string.
84391         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84392         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84393         (__attribute__): Define to empty for non recent-GCC.
84394         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84395         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84396         Renamed from their non-__ counterparts, with new macros replacing
84397         them if not _LIBC.  Add __THROW attribute.
84398         (rol): Remove.
84399         (struct md5_ctx): Align buffer if using GCC.
84400         * lib/sha1.h (struct sha1_ctx): Likewise.
84401         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84402         The old name was backwards.
84403         (NOTSWAP): Remove; not used.
84404         (rol): New macro, moved here from md5.h.
84405         (sha1_process_block): Remove a FIXME that doesn't make sense.
84406
84407 2005-09-12  Derek Price  <derek@ximbiot.com>
84408
84409         Return usable errors from canon-host.
84410         * lib/canon-host.h: New file.
84411         * lib/canon-host.c (canon_host): Wrap...
84412         (canon_host_r): ...this new function, which now relies exclusively on
84413         getaddrinfo.
84414         (ch_strerror): New function.
84415         (last_cherror): New global.
84416         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84417         interface.
84418         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84419         void *.
84420         (freeaddrinfo): Free ai->ai_canonname when set.
84421
84422 2005-09-12  Derek Price  <derek@ximbiot.com>
84423
84424         Make canon-host require getaddrinfo.
84425         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84426         AC_LIBSOURCE canon-host.h.  Call...
84427         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84428         gl_GETADDRINFO.
84429         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84430
84431 2005-09-12  Derek Price  <derek@ximbiot.com>
84432
84433         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84434         LGPL.
84435         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84436
84437 2005-09-12  Derek Price  <derek@ximbiot.com>
84438
84439         * lib/gai_strerror.c: Include config.h when available.  Include
84440         getaddrinfo.h before other headers to test interface.
84441         Reported by Larry Jones <lawrence.jones@ugs.com>.
84442
84443 2005-09-12  Derek Price  <derek@ximbiot.com>
84444             Paul Eggert  <eggert@cs.ucla.edu>
84445
84446         * modules/glob (Files): Add glob-libc.h.
84447
84448 2005-09-12  Derek Price  <derek@ximbiot.com>
84449             Paul Eggert  <eggert@cs.ucla.edu>
84450
84451         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84452         glob_.h, glob-libc.h.
84453         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84454
84455 2005-09-12  Derek Price  <derek@ximbiot.com>
84456             Paul Eggert  <eggert@cs.ucla.edu>
84457
84458         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84459         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84460         protecting things that should be done only in gnulib contexts.
84461         * lib/glob_.h: New file, containing only the glob things needed for
84462         gnulib.
84463         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84464         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84465         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84466         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84467         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84468         and to respect the namespace rules better.
84469
84470 2005-09-08  Simon Josefsson  <jas@extundo.com>
84471
84472         * modules/socklen: New file.
84473
84474 2005-09-08  Simon Josefsson  <jas@extundo.com>
84475
84476         * m4/socklen.m4: New file.
84477
84478 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84479
84480         * modules/utimens (Files): Add m4/utimbuf.m4, since
84481         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84482         Reported by Sergey Poznyakoff.
84483
84484 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84485
84486         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84487         definitions, since that's the preferred style in glibc.
84488         Fix a minor spacing issue, and update copyright notice to match
84489         glibc's.
84490
84491 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84492
84493         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84494
84495 2005-09-06  Simon Josefsson  <jas@extundo.com>
84496
84497         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84498         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84499
84500 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84501
84502         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84503         warning.
84504
84505 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84506
84507         * config/srclist.txt: Add glibc bug 1302.
84508
84509 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84510
84511         Change bitset word type from unsigned int to unsigned long int,
84512         as this has better performance on typical 64-bit hosts.
84513         Port bitset code to hosts with unusual word sizes.
84514         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84515         (build_collating_symbol):
84516         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84517         argument is a bitset.  This is merely a style issue, but it makes
84518         it clearer that an entire array is expected.
84519         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84520         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84521         Port to the case where bitset_word is not the same as unsigned int.
84522         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84523         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84524         Likewise.
84525         * lib/regexec.c (check_dst_limits_calc_pos_1,
84526         check_subexp_matching_top):
84527         (build_trtable, group_nodes_into_DFAstates):
84528         Likewise.
84529         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84530         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84531         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84532         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84533         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84534         * lib/regcomp.c (optimize_subexps, lower_subexp):
84535         Work even if bitset_word has holes in its bitwise representation.
84536         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84537         * lib/regexec.c (check_dst_limits_calc_pos_1,
84538         check_subexp_matching_top):
84539         Likewise.
84540         * lib/regex_internal.c (re_string_reconstruct):
84541         Don't assume UCHAR_MAX == 255.
84542         * lib/regex_internal.h (bitset_set_all): Likewise.
84543         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84544         All uses changed.
84545         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84546         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84547         All uses changed.
84548         (BITSET_WORD_MAX): New macro.
84549         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84550         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84551         (bitset_empty, bitset_copy):
84552         Prefer sizeof (bitset) to multiplying it out ourselves.
84553         (bitset_not_merge): Remove; unused.
84554         (bitset_contain): Return bool, not unsigned int with one bit on.
84555         All callers changed.
84556         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84557         alignment than re_node_set; do this by defining a new internal
84558         type struct dests_alloc and using it to allocate memory.
84559
84560 2005-09-05  Bruno Haible  <bruno@clisp.org>
84561
84562         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84563         links.
84564
84565 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84566
84567         * modules/size_max (Makefile.am): Add size_max.h
84568
84569 2005-09-04  Derek Price  <derek@ximbiot.com>
84570
84571         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84572
84573 2005-09-03  Simon Josefsson  <jas@extundo.com>
84574
84575         * gnulib-tool: Fix typo.
84576
84577 2005-09-03  Simon Josefsson  <jas@extundo.com>
84578
84579         * config/srclist.txt: Add glibc bug 1293.
84580
84581 2005-09-03  Derek Price  <derek@ximbiot.com>
84582
84583         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84584         From Larry Jones <lawrence.jones@ugs.com>.
84585
84586 2005-09-02  Simon Josefsson  <jas@extundo.com>
84587
84588         * modules/socklen: New file.
84589
84590 2005-09-02  Simon Josefsson  <jas@extundo.com>
84591
84592         * modules/havelib: New module.
84593
84594         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84595         Use havelib.
84596
84597 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84598
84599         Check for arithmetic overflow when calculating sizes, to prevent
84600         some buffer-overflow issues.  These patches are conservative, in the
84601         sense that when I couldn't determine whether an overflow was possible,
84602         I inserted a run-time check.
84603         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84604         macros.
84605         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84606         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84607         (re_xnrealloc, re_x2nrealloc): New inline functions.
84608         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84609         parse_bracket_exp):
84610         (build_equiv_class, build_charclass): Check for arithmetic overflow
84611         in size expression calculations.
84612         * lib/regex_internal.c (re_string_realloc_buffers):
84613         (build_wcs_upper_buffer, re_node_set_add_intersect):
84614         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84615         (re_dfa_add_node, register_state): Likewise.
84616         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84617         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84618         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84619         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84620
84621 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84622
84623         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84624         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84625
84626 2005-09-02  Bruno Haible  <bruno@clisp.org>
84627
84628         Support for lib vs. lib64 distinction on biarch platforms.
84629         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84630         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84631         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84632
84633 2005-09-02  Bruno Haible  <bruno@clisp.org>
84634
84635         * gnulib-tool (import): In the other first-use case, provide defaults
84636         as well.
84637
84638 2005-09-02  Bruno Haible  <bruno@clisp.org>
84639
84640         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84641         patches not yet found in the latest gettext release.
84642
84643 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84644
84645         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84646         to avoid a collision with bits/local_lim.h in glibc.
84647         All uses changed.  Problem reported by Dmitry V. Levin in
84648         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84649
84650         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84651         bugs in int versus size_t comparisons.
84652         (re_string_context_at): Fix bug where the code assumed that
84653         Idx is signed.
84654
84655         Use bool where appropriate.
84656         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84657         All callers changed.
84658         (calc_eclosure_iter): Likewise, for ROOT arg.
84659         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84660         (build_charclass_op): Likewise, for NON_MATCH arg.
84661         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84662         (re_string_construct_common): Likewise, for ICASE arg.
84663         * lib/regexec.c (re_search_2_stub, re_search_stub):
84664         Likewise, for RET_LEN arg.
84665         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84666         (set_regs): Likewise, for FL_BACKTRACK arg.
84667         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84668         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84669         (calc_eclosure_iter, parse_bracket_exp):
84670         Use bool for internal variables that are booleans.
84671         * lib/regexec.c (re_search_internal, check_matching,
84672         proceed_next_node):
84673         (set_regs, build_sifted_states, sift_states_bkref):
84674         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84675         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84676         (find_collation_sequence_value):
84677         Likewise.
84678         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84679         (re_node_set_compare):
84680         Return bool, not int. All callers changed.
84681         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84682         (build_trtable, check_node_accept): Likewise.
84683         * lib/regex_internal.h: Include stdbool.h.
84684
84685         Fix bugs uncovered when converting to bool.
84686         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84687         failure instead of charging ahead blindly.
84688         * lib/regex_internal.c (register_state): Likewise.
84689         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84690         for freeing internal storage.
84691         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84692         bitset pieces used as boolean, to avoid undefined behavior
84693         on hosts that do int overflow checking.
84694
84695 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84696
84697         * config/srclist.txt: Add glibc bugs 1285-1287.
84698
84699 2005-09-01  Jim Meyering  <jim@meyering.net>
84700
84701         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84702         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84703         Require gl_STAT_MACROS, too.
84704
84705 2005-09-01  Bruno Haible  <bruno@clisp.org>
84706
84707         * gnulib-tool (import): In the first-use case, provide defaults.
84708
84709 2005-09-01  Bruno Haible  <bruno@clisp.org>
84710
84711         * gnulib-tool (func_import): Remove the .tmp files.
84712
84713 2005-09-01  Bruno Haible  <bruno@clisp.org>
84714
84715         * gnulib-tool (func_import): Fix handling of symbolic links.
84716
84717 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84718
84719         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84720         old glibc regex code mishandles strings longer than 2**31 bytes.
84721         This patch fixes this when the regex code is used in gnulib
84722         (i.e., outside glibc).
84723
84724         This patch should not affect the use of the regex code inside
84725         glibc.  No doubt this problem also needs to be handled for glibc
84726         as well, but the result will be an incompatible change to the
84727         glibc ABI, and the old ABI will have to be supported too.  That
84728         can be the the subject for another patch.
84729
84730         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84731         governing whether the rest of this patch is active.  By default,
84732         the macro is disabled and the patch has no effect.
84733         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84734         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84735         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84736         (re_match_2, re_set_registers): Use the new types.
84737         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84738         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84739         New macros.
84740         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84741         (re_string_context_at, bin_tree_t, re_dfastate_t):
84742         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84743         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84744         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84745         (re_string_char_size_at, re_string_wchar_at):
84746         (re_string_elem_size_at):
84747         Use the new types and macros to port to 64-bit hosts.
84748         Use unsigned types for internal values, so that the code
84749         mostly works even for arrays larger than SSIZE_MAX.
84750         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84751         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84752         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84753         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84754         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84755         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84756         (calc_inveclosure, parse_dup_op, build_range_exp):
84757         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84758         (fetch_number, create_token_tree, mark_opt_subexp):
84759         Likewise.
84760         * lib/regex_internal.c (re_string_construct_common,
84761         create_ci_newstate):
84762         (create_cd_newstate, re_string_allocate, re_string_construct):
84763         (re_string_realloc_buffers, build_wcs_upper_buffer):
84764         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84765         (re_string_reconstruct, re_string_peek_byte_case):
84766         (re_string_fetch_byte_case, re_string_context_at):
84767         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84768         (re_node_set_init_copy, re_node_set_add_intersect):
84769         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84770         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84771         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84772         (re_acquire_state, re_acquire_state_context, register_state):
84773         Likewise.
84774         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84775         search_cur_bkref_entry):
84776         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84777         (re_search_internal, re_search_2_stub, re_search_stub)
84778         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84779         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84780         (update_cur_sifted_state, check_dst_limits):
84781         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84782         (check_subexp_limits, sift_states_bkref, merge_state_array):
84783         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84784         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84785         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84786         (expand_bkref_cache, check_node_accept_bytes):
84787         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84788         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84789         (acquire_init_state_context, check_halt_node_context):
84790         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84791         (sift_states_backward, clean_state_log_if_needed):
84792         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84793         (find_recover_state, transit_state_sb, transit_state_mb):
84794         (transit_state_bkref, build_trtable, match_ctx_clean):
84795         Likewise.
84796         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84797         to work around an assumption that REG_MISSING is negative.
84798
84799         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84800         (seek_collating_symbol_entry) [defined _LIBC]:
84801         (lookup_collation_sequence_value) [defined _LIBC]:
84802         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84803         Use prototypes rather than old-style function definitions.
84804         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84805         (transit_state_sb) [0]:
84806         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84807
84808         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84809         rm_eo.
84810
84811         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84812         (optimize_subexps, lower_subexp):
84813         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84814         since the signed shift might overflow.  Use 1u<<31 instead.
84815         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84816         Likewise.
84817         * lib/regexec.c (check_dst_limits_calc_pos_1,
84818         check_subexp_matching_top): Likewise.
84819
84820         * lib/regcomp.c (optimize_subexps, lower_subexp):
84821         Use CHAR_BIT rather than 8, for clarity.
84822         * lib/regexec.c (check_dst_limits_calc_pos_1):
84823         (check_subexp_matching_top): Likewise.
84824         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84825         have to worry about portability issues when shifting it left.
84826         Remove no-longer-needed test for table_size > 0.
84827         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84828         in a word, as the resulting behavior is undefined.
84829         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84830         in one case, a <= should have been an <, and in another case the
84831         whole test was missing.
84832         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84833         the standard name CHAR_BIT.
84834         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84835         this is not true on one's complement and signed-magnitude hosts.
84836
84837         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84838         next_last_offset.
84839         (struct re_dfa_t): Remove unused member states_alloc.
84840         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84841
84842 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84843
84844         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84845         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84846         and large-file glibc and in 32-bit large-file Solaris.
84847
84848 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84849
84850         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84851         lengths fit in regoff_t; this isn't true if regoff_t is the same
84852         width as size_t.
84853         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84854         (= START + RANGE) instead of RANGE.  This avoids overflow
84855         problems when regoff_t is the same width as size_t.
84856         All callers changed.
84857         (re_search_2_stub): Check for overflow when adding the
84858         sizes of the two strings.
84859         (re_search_stub): Check for overflow when adding START
84860         to RANGE; if it occurs, substitute the extreme value.
84861
84862 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84863
84864         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84865
84866 2005-08-31  Jim Meyering  <jim@meyering.net>
84867
84868         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84869         a pointer-to-const.
84870         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84871         (register_state): Likewise.
84872         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84873         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84874         (group_nodes_into_DFAstates): Likewise.
84875
84876 2005-08-31  Jim Meyering  <jim@meyering.net>
84877
84878         * check-module: Add a FIXME comment.
84879
84880 2005-08-31  Eric Blake  <ebb9@byu.net>
84881
84882         * modules/unistd-safer (Files): Add unistd--.h.
84883         * modules/stdio-safer (Files): Add stdio--.h.
84884
84885 2005-08-31  Derek Price  <derek@ximbiot.com>
84886
84887         * lib/getdelim.c (getdelim): Return EOF on EOF.
84888         Reported by Larry Jones <lawrence.jones@ugs.com>.
84889
84890 2005-08-31  Bruno Haible  <bruno@clisp.org>
84891
84892         Avoid unnecessary diffs in the generated lib/Makefile.am.
84893         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84894         the generated files.
84895         (func_import): Don't set cmd.
84896
84897 2005-08-31  Bruno Haible  <bruno@clisp.org>
84898
84899         * lib/strstr.c: Include <stddef.h>, for NULL.
84900         * lib/strcasestr.c: Likewise.
84901         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84902
84903 2005-08-31  Bruno Haible  <bruno@clisp.org>
84904
84905         * gnulib-tool: New option --macro-prefix.
84906         (func_import): Use macro_prefix.
84907         (import): Handle option --macro-prefix.
84908
84909 2005-08-31  Bruno Haible  <bruno@clisp.org>
84910
84911         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84912         Also use new variables cached_lgpl, cached_libtool.
84913
84914 2005-08-31  Bruno Haible  <bruno@clisp.org>
84915
84916         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84917         always instantiating them.
84918
84919 2005-08-31  Bruno Haible  <bruno@clisp.org>
84920
84921         * gnulib-tool (func_import): Read the previous cached settings
84922         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84923         earlier added by gnulib but are now dropped. Warn when a gnulib file
84924         overwrites a non-gnulib file.
84925
84926 2005-08-31  Bruno Haible  <bruno@clisp.org>
84927
84928         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84929         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84930         projects that don't keep autogenerated files in CVS. Put into
84931         actioncmd only the specified modules, not the transitive closure.
84932
84933 2005-08-31  Bruno Haible  <bruno@clisp.org>
84934
84935         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84936         Create directories that shall be filled.
84937         (import): Don't look for gl_* macros in configure.ac. Recurse across
84938         all directories containing a gnulib-cache.m4 files, if meaningful.
84939
84940 2005-08-31  Bruno Haible  <bruno@clisp.org>
84941
84942         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84943         (import): Set seen_libtool when we see gl_LIBTOOL.
84944
84945 2005-08-31  Bruno Haible  <bruno@clisp.org>
84946
84947         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84948         declaration macro definitions from generated gnulib.m4.
84949
84950 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84951
84952         * lib/iconvme.h: Add prototype for iconv_alloc.
84953
84954 2005-08-29  Simon Josefsson  <jas@extundo.com>
84955
84956         * lib/iconvme.c: Fix errno.
84957
84958 2005-08-29  Bruno Haible  <bruno@clisp.org>
84959
84960         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84961         that it works when the directory contains spaces.
84962
84963 2005-08-29  Bruno Haible  <bruno@clisp.org>
84964
84965         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84966
84967 2005-08-29  Bruno Haible  <bruno@clisp.org>
84968
84969         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84970         Emit more advice.
84971
84972 2005-08-29  Bruno Haible  <bruno@clisp.org>
84973         and Stepan Kasal  <kasal@ucw.cz>
84974
84975         * check-module: If more parameters are given, check each of them
84976         separately; add more exceptions, as noted by Jim Meyering.
84977         (check_module): New procedure.
84978         (%exempt_header): Now contains all exceptions.
84979
84980 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84981
84982         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84983
84984 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84985
84986         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84987
84988 2005-08-28  Bruno Haible  <bruno@clisp.org>
84989
84990         * m4/gnulib-tool.m4: New file.
84991
84992 2005-08-27  Jim Meyering  <jim@meyering.net>
84993
84994         * modules/unistd-safer (Files): Add pipe-safer.c.
84995         * modules/fcntl-safer (Files): Add creat-safer.c.
84996
84997 2005-08-27  Jim Meyering  <jim@meyering.net>
84998
84999         * m4/stdlib-safer.m4: New file.  From coreutils.
85000         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85001         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85002         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85003         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85004         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85005
85006 2005-08-27  Jim Meyering  <jim@meyering.net>
85007
85008         * lib/fopen-safer.c: Merge minor changes from coreutils.
85009         * lib/dup-safer.c: Likewise.
85010         * lib/fd-safer.c: Likewise.
85011
85012         Merge from coreutils.
85013         * lib/stdio--.h: New file.
85014         * lib/stdlib--.h: New file.
85015         * lib/mkstemp-safer.c: New file.
85016
85017         GNU tar needs these.
85018         * lib/pipe-safer.c: New file.
85019         * lib/creat-safer.c: New file.
85020         * lib/fcntl--.h (creat): Define to creat_safer.
85021         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85022         * lib/unistd--.h (pipe): Define to pipe_safer.
85023         * lib/unistd-safer.h: Declare pipe_safer.
85024
85025 2005-08-26  Simon Josefsson  <jas@extundo.com>
85026
85027         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85028         Haible <bruno@clisp.org>.
85029
85030 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85031
85032         * lib/regex_internal.h: Remove all references to
85033         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85034         or better.
85035         (bitset_not, bitset_merge, bitset_not_merge):
85036         (bitset_mask, re_string_allocate, re_string_construct):
85037         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85038         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85039         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85040         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85041         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85042         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85043         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85044         (re_acquire_state_context):
85045         Remove unnecessary forward decls.
85046         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85047         Put __attribute at function definition,
85048         now that the function decl has been removed.
85049         * lib/regex_internal.c (re_string_peek_byte_case):
85050         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85051         Likewise.
85052
85053 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85054
85055         * m4/regex.m4: Add AC_PREREQ(2.50).
85056         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85057
85058 2005-08-25  Simon Josefsson  <jas@extundo.com>
85059
85060         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85061         __fsetlocking.
85062
85063 2005-08-25  Simon Josefsson  <jas@extundo.com>
85064
85065         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85066         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85067         GLIBC specific code.
85068
85069 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85070
85071         Make regex safe for g++.  This fixes one real bug (an "err"
85072         that should have been "*err").  g++ problem reported by
85073         Sam Steingold.
85074         * lib/regex_internal.h (re_calloc): New macro, consistent with
85075         re_malloc etc.  All callers of calloc changed to use re_calloc.
85076         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85077         not int.  All callers changed.
85078         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85079         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85080         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85081         (find_recover_state): Change "err" to "*err"; this fixes what
85082         appears to be a real bug.
85083         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85084         versus int.
85085
85086 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85087
85088         * modules/regex (Depends-on): Add malloc, since the code
85089         assumes that !malloc(0) means failure.
85090
85091 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85092
85093         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85094
85095         alloca modernization/simplification for regex.
85096         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85097         needs to be at the start of the file, and can be moved into
85098         regex_internal.h and simplified.
85099         * lib/regex_internal.h: Include <alloca.h>.
85100         (__libc_use_alloca) [!defined _LIBC]: New macro.
85101         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85102         now works outside glibc.
85103
85104 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85105
85106         * config/srclist.txt: Add glibc bugs 1241, 1245.
85107
85108 2005-08-25  Jim Meyering  <jim@meyering.net>
85109
85110         * lib/open-safer.c: Include <config.h>.
85111         Otherwise, we'd lose LARGEFILE support in any file using
85112         e.g. "fcntl--.h"
85113
85114 2005-08-25  Bruno Haible  <bruno@clisp.org>
85115
85116         * m4/minmax.m4: Require autoconf 2.52.
85117         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85118         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85119         alternatives of translit over the alphabet.
85120         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85121
85122 2005-08-24  Simon Josefsson  <jas@extundo.com>
85123
85124         * tests/test-getpass.c: New file.
85125
85126 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85127
85128         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85129         for GNU regex features.
85130
85131 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85132
85133         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85134         * lib/regex.h (regerror): Likewise.
85135
85136         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85137         requires this.  (The code never needed it.)
85138
85139         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85140         All uses of recently-renamed identifiers changed to use the new,
85141         POSIX-compliant names.  The code will build and run just fine
85142         without these changes, but it's better to eat our own dog food
85143         and use the standard-conforming names.
85144
85145         * lib/regex.h: Fix a multitude of POSIX name space violations.
85146         These changes have an effect only for programs that define
85147         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85148         do not change anything for programs compiled in the normal way.
85149         Also, there is no effect on the ABI.
85150
85151         (_REGEX_SOURCE): New macro.
85152         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85153         defined and _GNU_SOURCE is not; this fixes a name space violation.
85154
85155         Rename the following macros to obey POSIX requirements.
85156         The old names are still visible as macros if _REGEX_SOURCE is defined.
85157         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85158         RE_BACKSLASH_ESCAPE_IN_LISTS.
85159         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85160         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85161         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85162         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85163         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85164         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85165         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85166         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85167         (REG_INTERVALS): renamed from RE_INTERVALS.
85168         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85169         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85170         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85171         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85172         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85173         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85174         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85175         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85176         RE_UNMATCHED_RIGHT_PAREN_ORD.
85177         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85178         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85179         (REG_DEBUG): renamed from RE_DEBUG.
85180         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85181         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85182         unusual, since we can't clash with the POSIX REG_ICASE.
85183         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85184         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85185         (REG_NO_SUB): renamed from RE_NO_SUB.
85186         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85187         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85188         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85189         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85190         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85191         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85192         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85193         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85194         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85195         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85196         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85197         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85198         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85199         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85200         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85201         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85202         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85203         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85204         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85205         (REG_FIXED): Renamed from REGS_FIXED.
85206         (REG_NREGS): Renamed from RE_NREGS.
85207
85208         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85209         of other REG_* macros, since POSIX says the user is allowed to
85210         #undef these macros selectively.
85211
85212         (reg_errcode_t): Update comment stating what other tables need
85213         to be consistent.
85214
85215         Rename the following enum values to obey POSIX requirements.
85216         The old names are still visible as macros.
85217         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85218         is not defined, since GNU is supposed to be a superset of POSIX as
85219         much as possible, and since we want reg_errcode_t to be a signed
85220         type for implementation consistency.
85221         (_REG_NOERROR): Renamed from REG_NOERROR.
85222         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85223         (_REG_BADPAT): Renamed from REG_BADPAT.
85224         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85225         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85226         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85227         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85228         (_REG_EBRACK): Renamed from REG_EBRACK.
85229         (_REG_EPAREN): Renamed from REG_EPAREN.
85230         (_REG_EBRACE): Renamed from REG_EBRACE.
85231         (_REG_BADBR): Renamed from REG_BADBR.
85232         (_REG_ERANGE): Renamed from REG_ERANGE.
85233         (_REG_ESPACE): Renamed from REG_ESPACE.
85234         (_REG_BADRPT): Renamed from REG_BADRPT.
85235         (_REG_EEND): Renamed from REG_EEND.
85236         (_REG_ESIZE): Renamed from REG_ESIZE.
85237         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85238         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85239         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85240         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85241         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85242
85243         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85244         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85245         changed.  But support the old name if the new one is not defined
85246         and if _REGEX_SOURCE.
85247
85248         Change the following member names in struct re_pattern_buffer.
85249         The old names are still supported if !_REGEX_SOURCE.
85250         The new names are always supported, regardless of _REGEX_SOURCE.
85251         (re_buffer): Renamed from buffer.
85252         (re_allocated): Renamed from allocated.
85253         (re_used): Renamed from used.
85254         (re_syntax): Renamed from syntax.
85255         (re_fastmap): Renamed from fastmap.
85256         (re_translate): Renamed from translate.
85257         (re_can_be_null): Renamed from can_be_null.
85258         (re_regs_allocated): Renamed from regs_allocated.
85259         (re_fastmap_accurate): Renamed from fastmap_accurate.
85260         (re_no_sub): Renamed from no_sub.
85261         (re_not_bol): Renamed from not_bol.
85262         (re_not_eol): Renamed from not_eol.
85263         (re_newline_anchor): Renamed from newline_anchor.
85264
85265         Change the following member names in struct re_registers.
85266         The old names are still supported if !_REGEX_SOURCE.
85267         The new names are always supported, regardless of _REGEX_SOURCE.
85268         (rm_num_regs): Renamed from num_regs.
85269         (rm_start): Renamed from start.
85270         (rm_end): Renamed from end.
85271
85272         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85273         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85274         Prepend __ to parameter names.
85275
85276         Undo yesterday's changes.
85277
85278 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85279
85280         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85281         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85282         lib/regex.c.
85283
85284 2005-08-24  Jim Meyering  <jim@meyering.net>
85285
85286         Sync from coreutils.
85287         * m4/fcntl-safer.m4: New file.
85288
85289         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85290         and object files for this module.
85291
85292 2005-08-24  Jim Meyering  <jim@meyering.net>
85293
85294         Sync from coreutils.
85295         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85296
85297 2005-08-24  Jim Meyering  <jim@meyering.net>
85298
85299         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85300         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85301
85302 2005-08-24  Jim Meyering  <jim@meyering.net>
85303
85304         * modules/fcntl-safer: New module.
85305         * modules/fts (Depends-on): Add fcntl-safer.
85306         * MODULES.html.sh (File descriptor based Input/Output):
85307         Add fcntl-safer.
85308
85309 2005-08-24  Bruno Haible  <bruno@clisp.org>
85310
85311         Support for unit test modules.
85312         * modules/README: Mention tests modules.
85313         * modules/TEMPLATE-TESTS: New file.
85314         * gnulib-tool: New options --extract-tests-module, --with-tests and
85315         --tests-base (unused for the moment).
85316         (testsbase, inctests): New variables.
85317         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85318         (func_verify_module): Exclude TEMPLATE-TESTS.
85319         (func_verify_nontests_module, func_verify_tests_module): New functions.
85320         (func_get_dependencies): Add implicit dependency for tests modules.
85321         (func_get_tests_module): New function.
85322         (func_modules_transitive_closure): When --with-tests was specified,
85323         include the unit tests as well, unless explicitly avoided.
85324         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85325         (func_emit_tests_Makefile_am): New function.
85326         (func_create_testdir): When --with-tests was specified, emit a
85327         tests/ directory.
85328         * MODULES.html.sh (Future developments): Update.
85329
85330 2005-08-24  Bruno Haible  <bruno@clisp.org>
85331
85332         * modules/tls-tests: New file.
85333         * tests/test-tls.c: New file, from GNU gettext.
85334
85335 2005-08-24  Bruno Haible  <bruno@clisp.org>
85336
85337         * modules/lock-tests: New file.
85338         * tests/test-lock.c: New file, from GNU gettext.
85339
85340 2005-08-24  Bruno Haible  <bruno@clisp.org>
85341
85342         * lib/lock.h: Add multiple inclusion guard.
85343         * lib/tls.h: Add multiple inclusion guard.
85344
85345 2005-08-24  Bruno Haible  <bruno@clisp.org>
85346
85347         * gnulib-tool: Add support for the --aux-dir option to
85348         --create-testdir, --create-megatestdir, --test, --megatest.
85349         (func_create_testdir, func_create_megatestdir): Optionally emit a
85350         AC_CONFIG_AUX_DIR directive.
85351         (create-testdir, create-megatestdir, test, megatest): Provide a
85352         default value for $auxdir.
85353
85354 2005-08-24  Bruno Haible  <bruno@clisp.org>
85355
85356         * gnulib-tool (import): Use compound statement instead of subshell
85357         where possible.
85358
85359 2005-08-24  Bruno Haible  <bruno@clisp.org>
85360
85361         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85362
85363 2005-08-24  Bruno Haible  <bruno@clisp.org>
85364
85365         * gnulib-tool (func_version): Update.
85366
85367 2005-08-24  Bruno Haible  <bruno@clisp.org>
85368
85369         * gnulib-tool (func_import, func_create_testdir,
85370         func_create_megatestdir): Quote all autoconf macro arguments.
85371
85372 2005-08-24  Bruno Haible  <bruno@clisp.org>
85373
85374         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85375         option --force, because --force causes the aclocal.m4 of each
85376         subdirectory to be newer than the corresponding config.h.in.
85377
85378 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85379
85380         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85381         All contents moved to gl_REGEX.
85382         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85383         assume that it does.
85384
85385 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         * lib/regex.h (REG_NOSYS)
85388         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85389         Define, since POSIX requires it as of 2001.
85390         (_REG_ENOSYS)
85391         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85392         New private symbol, used to keep the enum signed in all cases.
85393         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85394         Youngman in
85395         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85396
85397         * lib/regex_internal.c (re_string_skip_chars, register_state):
85398         (calc_state_hash):
85399         Remove forward decls; no longer needed now that we use prototypes.
85400         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85401         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85402         (clean_state_log_if_needed): Likewise.
85403
85404 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85405
85406         * config/srclist.txt: Add glibc bugs 1231-1233.
85407
85408 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85409
85410         Fix problems reported by Sam Steingold in
85411         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85412         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85413         assumed that reg_errcode_t is a signed type, which is not
85414         necessarily true if _XOPEN_SOURCE is not defined.
85415         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85416         since some compilers warn about it otherwise.
85417
85418 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85419
85420         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85421         (init_word_char, create_initial_state, duplicate_node_closure):
85422         (fetch_token, peek_token_bracket, build_range_exp):
85423         (build_collating_symbol): Remove forward decls; no longer needed
85424         now that we use prototypes.
85425
85426         * lib/regcomp.c:
85427         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85428         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85429         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85430         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85431         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85432         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85433         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85434         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85435         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85436         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85437         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85438         (build_charclass, build_charclass_op, fetch_number, create_tree):
85439         (create_token_tree, mark_opt_subexp, duplicate_tree):
85440         Use prototypes rather than old-style definitions.
85441
85442         * lib/regex_internal.c:
85443         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85444         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85445         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85446         (re_string_reconstruct, re_string_peek_byte_case):
85447         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85448         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85449         (re_node_set_init_copy, re_node_set_add_intersect):
85450         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85451         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85452         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85453         (re_acquire_state, re_acquire_state_context, register_state):
85454         (create_ci_newstate, create_cd_newstate, free_state):
85455         Likewise.
85456         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85457         re_search_2):
85458         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85459         (re_search_internal, prune_impossible_nodes):
85460         (acquire_init_state_context, check_matching, static):
85461         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85462         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85463         (update_regs, sift_states_backward, build_sifted_states):
85464         (clean_state_log_if_needed, merge_state_array):
85465         (update_cur_sifted_state, add_epsilon_src_nodes):
85466         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85467         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85468         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85469         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85470         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85471         (check_arrival, check_arrival_add_next_nodes):
85472         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85473         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85474         (check_node_accept_bytes, check_node_accept, extend_buffers):
85475         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85476         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85477         (sift_ctx_init):
85478         Likewise.
85479
85480         * lib/regex_internal.h:
85481         (re_string_allocate, re_string_construct, re_string_reconstruct):
85482         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85483         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85484         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85485         (re_string_context_at, re_string_peek_byte_case):
85486         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85487         is defined, since we now use prototypes always.
85488
85489         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85490         C89 or better.  All uses removed.
85491
85492 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85493
85494         * config/srclist.txt: Add glibc bugs 1220-1227.
85495
85496 2005-08-20  Jim Meyering  <jim@meyering.net>
85497
85498         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85499         of unused local, dfa.
85500
85501 2005-08-20  Bruno Haible  <bruno@clisp.org>
85502
85503         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85504
85505 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85506
85507         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85508         (re_node_set_insert_last, re_dfa_add_node):
85509         Rename local variables to avoid GCC shadowing warnings.
85510
85511 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85512
85513         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85514         [defined lint]: Suppress bogus uninitialized-variable warnings.
85515
85516         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85517         and let the caller return REG_ESPACE if out of space.  This
85518         removes an uninitialied-variable warning with GCC 4.0.1, and also
85519         avoids taking the address of a local variable.  All callers
85520         changed.
85521
85522 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85523
85524         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85525         $LIBCSRC/posix/regexec.c.
85526         Add glibc bug 1217 for regcomp.c.
85527
85528 2005-08-19  Jim Meyering  <jim@meyering.net>
85529
85530         * lib/regexec.c (proceed_next_node): Redo local variables to
85531         avoid GCC shadowing warnings.
85532
85533 2005-08-18  Bruno Haible  <bruno@clisp.org>
85534
85535         * lib/strstr.c (strstr): Fix return value in multibyte case.
85536         * lib/strcasestr.c (strcasestr): Likewise.
85537
85538 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85539
85540         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85541
85542 2005-08-17  Jim Meyering  <jim@meyering.net>
85543
85544         Make the %s format (seconds since the epoch) work for a negative
85545         number and when used with a zero-padded field width, e.g. %015s.
85546
85547         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85548         label so that it precedes the code to set `digits'.  Otherwise,
85549         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85550         print `00-22'.  Now, it prints `-0022', as it should.
85551
85552 2005-08-17  Bruno Haible  <bruno@clisp.org>
85553
85554         * modules/strstr (Files): Add m4/mbrtowc.m4.
85555         (Depends-on): Add mbuiter.
85556
85557 2005-08-17  Bruno Haible  <bruno@clisp.org>
85558
85559         * modules/strcasestr: New file.
85560         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85561         strcasestr.
85562
85563 2005-08-17  Bruno Haible  <bruno@clisp.org>
85564
85565         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85566
85567 2005-08-17  Bruno Haible  <bruno@clisp.org>
85568
85569         * modules/mbuiter: New file.
85570         * MODULES.html.sh (Extended multibyte and wide character utilities):
85571         Add mbuiter.
85572
85573 2005-08-17  Bruno Haible  <bruno@clisp.org>
85574
85575         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85576         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85577
85578 2005-08-17  Bruno Haible  <bruno@clisp.org>
85579
85580         * m4/strcasestr.m4: New file.
85581
85582 2005-08-17  Bruno Haible  <bruno@clisp.org>
85583
85584         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85585         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85586
85587 2005-08-17  Bruno Haible  <bruno@clisp.org>
85588
85589         * lib/strcasestr.h: New file.
85590         * lib/strcasestr.c: New file.
85591
85592 2005-08-17  Bruno Haible  <bruno@clisp.org>
85593
85594         * lib/strcasecmp.c: Use mbuiter.h.
85595
85596 2005-08-17  Bruno Haible  <bruno@clisp.org>
85597
85598         * lib/mbuiter.h: New file.
85599
85600 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85601
85602         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85603         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85604         and gl_GETOPT are both invoked via different paths (as happens
85605         with GNU tar CVS because it uses both argp and getopt), the former
85606         wins.
85607
85608 2005-08-16  Bruno Haible  <bruno@clisp.org>
85609
85610         * modules/tls: New file.
85611         * MODULES.html.sh (Multithreading): Add tls.
85612
85613 2005-08-16  Bruno Haible  <bruno@clisp.org>
85614
85615         * modules/strnlen1: New file.
85616         * MODULES.html.sh (String handling): Add strnlen1.
85617
85618 2005-08-16  Bruno Haible  <bruno@clisp.org>
85619
85620         * modules/strcase (Files): Add m4/mbrtowc.m4.
85621         (Depends-on): Add strnlen1, mbchar.
85622
85623 2005-08-16  Bruno Haible  <bruno@clisp.org>
85624
85625         * modules/mbiter: New file.
85626         * MODULES.html.sh (Extended multibyte and wide character utilities):
85627         Add mbiter.
85628
85629 2005-08-16  Bruno Haible  <bruno@clisp.org>
85630
85631         * modules/mbfile: New file.
85632         * MODULES.html.sh (Extended multibyte and wide character utilities):
85633         Add mbfile.
85634
85635 2005-08-16  Bruno Haible  <bruno@clisp.org>
85636
85637         * modules/mbchar: New file.
85638         * MODULES.html.sh (Extended multibyte and wide character utilities):
85639         New section.
85640
85641 2005-08-16  Bruno Haible  <bruno@clisp.org>
85642
85643         * m4/tls.m4: New file, from GNU gettext.
85644
85645 2005-08-16  Bruno Haible  <bruno@clisp.org>
85646
85647         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85648         always.
85649         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85650
85651 2005-08-16  Bruno Haible  <bruno@clisp.org>
85652
85653         * m4/mbiter.m4: New file.
85654
85655 2005-08-16  Bruno Haible  <bruno@clisp.org>
85656
85657         * m4/mbfile.m4: New file.
85658
85659 2005-08-16  Bruno Haible  <bruno@clisp.org>
85660
85661         * m4/mbchar.m4: New file.
85662
85663 2005-08-16  Bruno Haible  <bruno@clisp.org>
85664
85665         * lib/tls.h: New file, from GNU gettext.
85666         * lib/tls.c: New file, from GNU gettext.
85667
85668 2005-08-16  Bruno Haible  <bruno@clisp.org>
85669
85670         * lib/strnlen1.h: New file.
85671         * lib/strnlen1.c: New file.
85672
85673 2005-08-16  Bruno Haible  <bruno@clisp.org>
85674
85675         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85676         (mbi_init): Update.
85677         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85678         NUL byte, not after it.
85679
85680 2005-08-16  Bruno Haible  <bruno@clisp.org>
85681
85682         * lib/strcase.h (strcasecmp): Add note in comments.
85683         * lib/strncasecmp.c: Use code from strcasecmp.c.
85684         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85685         (strcasecmp): Work correctly in multibyte locales.
85686
85687 2005-08-16  Bruno Haible  <bruno@clisp.org>
85688
85689         * lib/mbiter.h: New file.
85690
85691 2005-08-16  Bruno Haible  <bruno@clisp.org>
85692
85693         * lib/mbfile.h: New file.
85694
85695 2005-08-16  Bruno Haible  <bruno@clisp.org>
85696
85697         * lib/mbchar.h: New file.
85698         * lib/mbchar.c: New file.
85699
85700 2005-08-16  Bruno Haible  <bruno@clisp.org>
85701
85702         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85703         the valid ones. Makes the comparison operations transitive:
85704         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85705         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85706
85707 2005-08-15  Simon Josefsson  <jas@extundo.com>
85708
85709         * modules/ssize_t (License): Change to 'unlimited'.
85710
85711         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85712
85713 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85714
85715         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85716         Add comments for each pending glibc patch.
85717
85718 2005-08-15  Bruno Haible  <bruno@clisp.org>
85719
85720         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85721         __cplusplus is defined.
85722
85723 2005-08-14  Jim Meyering  <jim@meyering.net>
85724
85725         Sync from coreutils.
85726
85727         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85728         Use the hash-table-based cycle-detection code not just when
85729         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85730         Reported by James Youngman in
85731         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85732         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85733         FTS_TIGHT_CYCLE_CHECK.
85734         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85735         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85736         once again.
85737         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85738         * lib/fts.c (fd_safer): Remove decl.
85739         Include fcntl--.h rather than unistd-safer.h
85740         (fts_safe_changedir): Don't call fd_safer; no longer needed
85741         now that we include fcntl--.h.
85742
85743 2005-08-12  Simon Josefsson  <jas@extundo.com>
85744
85745         * modules/getndelim2: Use ssize_t module.
85746         * modules/getnline: Likewise.
85747         * modules/safe-read: Likewise.
85748         * modules/xreadlink: Likewise.
85749
85750         * modules/ssize_t: New file.
85751
85752 2005-08-12  Simon Josefsson  <jas@extundo.com>
85753
85754         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85755
85756 2005-08-12  Simon Josefsson  <jas@extundo.com>
85757
85758         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85759         ssize_t.
85760
85761 2005-08-12  Simon Josefsson  <jas@extundo.com>
85762
85763         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85764         readline, getdelim and check_version.
85765         (Support for systems lacking ISO C 99: Sizes of integer types):
85766         Add size_max.
85767
85768 2005-08-12  Bruno Haible  <bruno@clisp.org>
85769
85770         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85771
85772 2005-08-11  Simon Josefsson  <jas@extundo.com>
85773
85774         * modules/readline: New file.
85775
85776         * modules/strnlen (Files): Add strnlen.h.
85777
85778 2005-08-11  Simon Josefsson  <jas@extundo.com>
85779
85780         * m4/readline.m4: New file.
85781
85782 2005-08-11  Simon Josefsson  <jas@extundo.com>
85783
85784         * lib/readline.h, readline.c: New file.
85785
85786 2005-08-11  Simon Josefsson  <jas@extundo.com>
85787
85788         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85789         gl_AVOID.
85790
85791 2005-08-11  Bruno Haible  <bruno@clisp.org>
85792
85793         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85794
85795 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85796
85797         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85798
85799 2005-08-10  Simon Josefsson  <jas@extundo.com>
85800
85801         * tests/test-iconvme.c: New file.
85802
85803 2005-08-10  Simon Josefsson  <jas@extundo.com>
85804
85805         * m4/strnlen.m4: New file.
85806
85807         * m4/strndup.m4: Don't check for strnlen declaration, done in
85808         strnlen.m4.
85809
85810 2005-08-10  Simon Josefsson  <jas@extundo.com>
85811
85812         * lib/strndup.c: Use strnlen.h.
85813
85814         * lib/strnlen.h: New file.
85815
85816 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85817
85818         * README: Typos.
85819
85820 2005-08-02  Simon Josefsson  <jas@extundo.com>
85821
85822         * modules/readline: New file.
85823
85824 2005-08-02  Simon Josefsson  <jas@extundo.com>
85825
85826         * modules/getdelim: New file.
85827
85828         * modules/getline: Rewrite, don't use getndelim2.
85829
85830 2005-08-02  Simon Josefsson  <jas@extundo.com>
85831
85832         * m4/getline.m4: Separate out getdelim stuff into separate module.
85833
85834         * m4/getdelim.m4: New file.
85835
85836 2005-08-02  Simon Josefsson  <jas@extundo.com>
85837
85838         * lib/getline.h, getline.c: Rewrite.
85839
85840         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85841
85842 2005-07-31  Bruno Haible  <bruno@clisp.org>
85843
85844         * lib/lock.h (gl_lock_initializer): New macro.
85845         (gl_lock_define_initialized): Use it.
85846         (gl_rwlock_initializer): New macro.
85847         (gl_rwlock_define_initialized): Use it.
85848         (gl_recursive_lock_initializer): New macro.
85849         (gl_recursive_lock_define_initialized): Use it.
85850
85851 2005-07-30  Karl Berry  <karl@gnu.org>
85852
85853         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85854         Report from Ben Pfaff, regarding getopt.
85855
85856 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85857
85858         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85859         normal way.
85860         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85861         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85862         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85863         (gl_GETOPT): Use the new macros.  Most of the implementation
85864         is moved to the new macros.  This is for programs like Emacs
85865         that don't want all the functionality of gl_GETOPT.
85866
85867 2005-07-26  Bruno Haible  <bruno@clisp.org>
85868
85869         * m4/lock.m4: Update from GNU gettext.
85870
85871 2005-07-26  Bruno Haible  <bruno@clisp.org>
85872
85873         * lib/lock.h: Update from GNU gettext.
85874         * lib/lock.c: Update from GNU gettext.
85875
85876 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85877
85878         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85879         obsolescent AC_TRY_RUN.  Include the default includes files, for
85880         'exit'.
85881
85882 2005-07-24  Bruno Haible  <bruno@clisp.org>
85883
85884         * modules/visibility: New file.
85885         * MODULES.html.sh (Misc): Add visibility.
85886
85887 2005-07-24  Bruno Haible  <bruno@clisp.org>
85888
85889         * m4/visibility.m4: New file.
85890
85891 2005-07-24  Bruno Haible  <bruno@clisp.org>
85892
85893         * doc/visibility.texi: New file.
85894
85895 2005-07-22  Bruno Haible  <bruno@clisp.org>
85896
85897         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85898         $(ALLOCA_H), redundant through BUILT_SOURCES.
85899         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85900         redundant through BUILT_SOURCES.
85901         * modules/byteswap (Makefile.am): Remove explicit dependency on
85902         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85903         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85904         $(FNMATCH_H), redundant through BUILT_SOURCES.
85905         * modules/getopt (Makefile.am): Remove explicit dependency on
85906         $(GETOPT_H), redundant through BUILT_SOURCES.
85907         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85908         redundant through BUILT_SOURCES.
85909         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85910         redundant through BUILT_SOURCES.
85911         * modules/stdbool (Makefile.am): Remove explicit dependency on
85912         $(STDBOOL_H), redundant through BUILT_SOURCES.
85913         * modules/stdint (Makefile.am): Remove explicit dependency on
85914         $(STDINT_H), redundant through BUILT_SOURCES.
85915         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85916         Remove explicit dependency on $(SYSEXITS_H).
85917         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85918
85919 2005-07-18  Simon Josefsson  <jas@extundo.com>
85920
85921         * lib/check-version.c (check_version): Accept identical versions too.
85922
85923 2005-07-18  Bruno Haible  <bruno@clisp.org>
85924
85925         * modules/lock: New file.
85926         * MODULES.html.sh (Multithreading): New section.
85927
85928 2005-07-18  Bruno Haible  <bruno@clisp.org>
85929
85930         * m4/lock.m4: New file, from GNU gettext.
85931
85932 2005-07-18  Bruno Haible  <bruno@clisp.org>
85933
85934         * lib/lock.h: New file, from GNU gettext.
85935         * lib/lock.c: New file, from GNU gettext.
85936
85937 2005-07-18  Bruno Haible  <bruno@clisp.org>
85938
85939         * lib/lock.h (gl_once_t): New type.
85940         (gl_once_define, gl_once): New macros.
85941         * lib/lock.c (fresh_once): New variable.
85942         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85943         functions.
85944
85945 2005-07-16  Simon Josefsson  <jas@extundo.com>
85946
85947         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85948         workaround, suggested by Bruno.
85949
85950 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85951
85952         * modules/xalloc (Depends-on): Add xalloc-die.
85953         * modules/xvasprintf (Depends-on): Add xalloc-die.
85954
85955 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85956
85957         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85958         with a minor change.
85959
85960 2005-07-15  Bruno Haible  <bruno@clisp.org>
85961
85962         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85963         When using lib/poll.c, define poll as rpl_poll.
85964
85965 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85966
85967         * modules/argp (Depends-on): Remove unlocked-io.
85968
85969 2005-07-14  Derek Price  <derek@ximbiot.com>
85970
85971         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85972         for glob symlink bug.
85973
85974 2005-07-14  Bruno Haible  <bruno@clisp.org>
85975
85976         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85977         Instead, test for *_unlocked function declarations directly.
85978
85979 2005-07-11  Simon Josefsson  <jas@extundo.com>
85980
85981         * modules/size_max: New file.
85982
85983         * modules/xsize: Depend on size_max module for size_max.m4.
85984
85985 2005-07-11  Simon Josefsson  <jas@extundo.com>
85986
85987         * lib/size_max.h: New file.
85988
85989 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85990
85991         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85992         copyright symbol and the year.
85993         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85994         (version_etc_va): Use parameterized copyright notice.
85995         Reword to conform to the current GNU coding standards.
85996
85997 2005-07-11  Karl Berry  <karl@gnu.org>
85998
85999         * doc/gnulib.texi (Quoting): new node.
86000         (Initial import): more info, from Patrice.
86001
86002 2005-07-11  Bruno Haible  <bruno@clisp.org>
86003
86004         * gnulib-tool (func_usage): Document option --avoid.
86005         (Command line options): Handle --avoid.
86006         (func_acceptable): New function.
86007         (func_modules_transitive_closure): Use it.
86008
86009 2005-07-11  Bruno Haible  <bruno@clisp.org>
86010
86011         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86012         Reported by Jim Meyering.
86013
86014 2005-07-10  Bruno Haible  <bruno@clisp.org>
86015
86016         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86017         Needed when size_t is smaller than 'unsigned int'.
86018         Reported by Paul Eggert.
86019
86020 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86021
86022         * modules/argp (Depends-on): Add unlocked-io
86023
86024 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86025
86026         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86027         block of defines.
86028
86029 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86030
86031         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86032         fix now.
86033
86034 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86035         and Paul Eggert  <eggert@cs.ucla.edu>
86036
86037         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86038         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86039
86040 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86041
86042         * modules/regex (Files): Add lib/regex_internal.c,
86043         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86044         (Depends-on): Add extensions.
86045         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86046
86047 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86048
86049         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86050         pathconf.
86051         * m4/same.m4 (gl_SAME): Likewise.
86052         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86053
86054         * m4/regex.m4: Adjust to new libc regex implementation.
86055         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86056         all the .c and .h parts of (the new) regex.
86057         Quote the m4 stuff better.
86058         Check for RE_ICASE bug of old gnulib.
86059         Check for REG_STARTEND of recent libc.
86060         Rename local variables from jm_* to gl_*.
86061         Quote operand of "test -f".
86062         Say "recent enough" version of libc, not "version 2".
86063         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86064         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86065         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86066         Remove check for btowc, isascii.
86067         Require AM_LANGINFO_CODESET.
86068
86069 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86070
86071         * lib/regex.c, regex.h: Sync from libc.
86072         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86073         * lib/regexec.c:
86074         New files, synced from libc, except that regex_internal.h
86075         currently has a small porting fix.
86076
86077 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86078
86079         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86080         regex_internal.c, regexec.c.
86081         Add regex_internal.h too, but as a comment, since the libc version
86082         is currently broken in gnulib mode.
86083
86084 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86085
86086         Support programs like Emacs that use gnulib but not gettext.
86087         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86088         * modules/gettext-h: New file.
86089         * modules/gettext (Files): Remove lib/gettext.h.
86090         (Depends-on): Add gettext-h.
86091         (Makefile.am): Remove lib_SOURCES.
86092         * modules/argmatch, modules/c-stack, modules/closeout:
86093         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86094         * modules/execute, modules/file-type, modules/getaddrinfo:
86095         * modules/getopt, modules/human, modules/javacomp:
86096         * modules/javaexec, modules/mkdir-p, modules/obstack:
86097         * modules/openat, modules/pagealign_alloc, modules/pipe:
86098         * modules/quotearg, modules/regex, modules/rpmatch:
86099         * modules/unicodeio, modules/userspec, modules/version-etc:
86100         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86101         * modules/xsetenv:
86102         Depend on gettext-h, not gettext.
86103
86104 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86105
86106         * gnulib-tool (func_import): Add support for 'public domain' license.
86107         * modules/alloca, modules/atexit, modules/memmove:
86108         Now public domain, not GPL.
86109         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86110         * modules/realloc, modules/strerror, modules/strtod:
86111         Now LGPL, not GPL.
86112
86113 2005-07-05  Bruno Haible  <bruno@clisp.org>
86114
86115         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86116         autoconf CVS. Needed for mingw.
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         * modules/strftime (Depends-on): Remove dependency on tzset.
86122
86123 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86124
86125         Remove the dependency of the strftime module on the tzset module.
86126         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86127         gl_FUNC_TZSET_CLOBBER.
86128
86129 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86130
86131         Remove the dependency of the strftime module on the tzset module.
86132         * lib/strftime.c (my_strftime)
86133         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86134         Copy the input structure, to work around some of the bug with
86135         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86136         Solaris releases, you should also use the tzset module, but we won't
86137         require it as a dependency any more since we don't want LGPLed code
86138         to depend on GPLed code.
86139
86140 2005-07-02  Jim Meyering  <jim@meyering.net>
86141
86142         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86143         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86144         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86145         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86146
86147 2005-07-02  Jim Meyering  <jim@meyering.net>
86148
86149         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86150
86151 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86152
86153         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86154         declares only 'struct timespec;' (!).
86155
86156 2005-07-01  Jim Meyering  <jim@meyering.net>
86157
86158         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86159         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86160         * lib/save-cwd.c, tempname.c:
86161         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86162         and don't include <sys/file.h>).
86163
86164 2005-06-29  Jim Meyering  <jim@meyering.net>
86165
86166         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86167         type name.  Use the variable name instead.
86168         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86169         Likewise.
86170
86171 2005-06-28  Simon Josefsson  <jas@extundo.com>
86172
86173         * modules/check-version (Files): Add check-version.m4.
86174
86175 2005-06-28  Simon Josefsson  <jas@extundo.com>
86176
86177         * m4/check-version.m4: New file, suggested by Jim Meyering
86178         <jim@meyering.net>.
86179
86180 2005-06-28  Simon Josefsson  <jas@extundo.com>
86181
86182         * lib/check-version.h, lib/check-version.c: New files.
86183
86184 2005-06-28  Simon Josefsson  <jas@extundo.com>
86185
86186         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86187         collision with global variable.  Better indentation.  Don't
86188         increment buffer pointer beyond buffer end.  Based on comments
86189         from Paul Eggert <eggert@cs.ucla.edu>.
86190
86191         * lib/base64.h: Indent.
86192
86193 2005-06-28  Simon Josefsson  <jas@extundo.com>
86194
86195         * doc/gnulib.texi (Library version handling): New section.
86196
86197 2005-06-28  Jim Meyering  <jim@meyering.net>
86198
86199         * check-module (find_included_lib_files): Hard-code another
86200         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86201         but modules/fts-lgpl (correctly) does not list those files.
86202
86203         * modules/canonicalize (Files): Add lib/pathmax.h.
86204
86205 2005-06-25  Simon Josefsson  <jas@extundo.com>
86206
86207         * modules/check-version: New file.
86208
86209 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86210
86211         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86212         initializer of struct addrinfo, as an indication that we don't
86213         care how many members the structure has.
86214
86215 2005-06-24  Derek Price  <derek@ximbiot.com>
86216         and Bruno Haible  <bruno@clisp.org>
86217
86218         Remove stat module & update lstat.
86219         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86220         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86221         * m4/stat.m4: Remove this file.
86222
86223 2005-06-24  Derek Price  <derek@ximbiot.com>
86224         and Bruno Haible  <bruno@clisp.org>
86225
86226         Remove stat module & update lstat.
86227         * lib/stat.c: Remove this file...
86228         (slash_aware_lstat): ...moving this content and its support...
86229         * lib/lstat.c (rpl_lstat): ...into here.
86230         * lib/lstat.h: New file.
86231
86232 2005-06-24  Derek Price  <derek@ximbiot.com>
86233         and Bruno Haible  <bruno@clisp.org>
86234
86235         Remove stat module & update lstat.
86236         * config/srclist.txt (libc sources): Remove stat.
86237
86238 2005-06-24  Derek Price  <derek@ximbiot.com>
86239         and Bruno Haible  <bruno@clisp.org>
86240
86241         Remove stat module & update lstat.
86242         * MODULES.html.sh (stat): Remove.
86243         * MODULES.html: Regenerated.
86244         * modules/lstat (Description): Correct function name.
86245         (Files): Add "lstat.h".
86246         (Depends-on): Remove stat, add xalloc, stat-macros.
86247         * modules/stat: Remove this file.
86248         (Include): Add "lstat.h", remove <sys/stat.h>.
86249
86250 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86251
86252         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86253         (ranged_convert): Don't save conversion in a temporary struct.
86254         This causes a warning with GCC 4.0.0, and anyway in the typical
86255         case it's not worth the extra 100 bytes or so of code.
86256         (ranged_convert, __mktime_internal): When calling a function via a
86257         pointer P, use P () rather than (*P) (), as we now assume C89 or
86258         better.
86259
86260 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86261
86262         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86263         "who -r" failed to give output.  Problem reported by Tim Waugh.
86264
86265         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86266         (xcalloc): Use it to avoid needless tests.
86267         Problem reported by Jim Meyering.
86268
86269 2005-06-20  Derek Price  <derek@ximbiot.com>
86270
86271         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86272         unnecessary for Autoconfs > 2.59c.
86273
86274 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86275
86276         * lib/argp.h (__option_is_short): Check upper limit of
86277         __key. Isprint() requires its argument to have the value
86278         of an unsigned char or EOF.
86279
86280 2005-06-16  Jim Meyering  <jim@meyering.net>
86281
86282         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86283         when either N or S is zero.
86284
86285 2005-06-16  Derek Price  <derek@ximbiot.com>
86286
86287         * m4/bison.m4: Declare YACC & YFLAGS precious.
86288
86289 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86290
86291         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86292         multibyte string or pattern, fall back on unibyte matching.
86293         Problem reported by James Youngman.
86294
86295 2005-06-08  Bruno Haible  <bruno@clisp.org>
86296
86297         * modules/csharpcomp: New file.
86298         * MODULES.html.sh (C#): Add csharpcomp.
86299
86300 2005-06-08  Bruno Haible  <bruno@clisp.org>
86301
86302         * m4/csharpcomp.m4: New file, from GNU gettext.
86303
86304 2005-06-08  Bruno Haible  <bruno@clisp.org>
86305
86306         * lib/csharpcomp.h: New file, from GNU gettext.
86307         * lib/csharpcomp.c: New file, from GNU gettext.
86308         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86309
86310 2005-06-08  Bruno Haible  <bruno@clisp.org>
86311
86312         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86313         warning on mingw.
86314
86315 2005-06-07  Derek Price  <derek@ximbiot.com>
86316
86317         Sync from CVS.
86318         * lib/glob_.h: Indent nested #ifdef.
86319
86320 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86321
86322         Sync from coreutils.
86323         Use "file name" when talking about file names, instead of "filename"
86324         or "path", as per the GNU coding standards.
86325         * lib/mkdir-p.c: Renamed from makepath.c.
86326         (make_dir_parents): Renamed from make_path.  All callers changed.
86327         * lib/mkdir-p.h: Likewise.  All includers changed.
86328         * lib/filenamecat.c: Renamed from path-concat.c.
86329         (file_name_concat): Renamed from path_concat.  All callers changed.
86330         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86331         * lib/filenamecat.h: Likewise.  All includers changed.
86332         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86333         in comments or local variable names.
86334         * lib/basename.c: Likewise.
86335         * lib/canonicalize.c, canonicalize.h: Likewise.
86336         * lib/dirname.c, dirname.h: Likewise.
86337         * lib/euidaccess.c: Likewise.
86338         * lib/exclude.c: Likewise
86339         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86340         * lib/fsusage.c, fsuage.h: Likewise.
86341         * lib/fts.c, fts_.h: Likewise.
86342         * lib/getcwd.c: Likewise.
86343         * lib/getloadavg.c: Likewise.
86344         * lib/mkstemp.c: Likewise.
86345         * lib/mountlist.c, mountlist.h: Likewise.
86346         * lib/openat.c, openat.h: Likewise.
86347         * lib/readlink-stub.c: Likewise.
86348         * lib/readutmp.c, readutmp.h: Likewise.
86349         * lib/rename.c: Likewise.
86350         * lib/rmdir.c: Likewise.
86351         * lib/same.c: Likewise.
86352         * lib/savedir.c: Likewise.
86353         * lib/stripslash.c: Likewise.
86354         * lib/tempname.c: Likewise.
86355         * lib/xreadlink.c: Likewise.
86356         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86357         All uses changed.
86358         * lib/exclude.h: Likewise.
86359
86360         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86361         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86362         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86363         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86364         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86365         files have been getting away with it for years (MORE/BSD 4.3
86366         is extinct now).
86367         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86368         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86369
86370         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86371         Define to 256, not 255, as per modern POSIX.
86372
86373 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86374
86375         Sync from coreutils.
86376         Use "file name" when talking about file names, instead of "filename"
86377         or "path", as per the GNU coding standards.
86378         * MODULES.html.sh: mkdir-p renamed from makepath.
86379         filenamecat renamed from path-concat.
86380         * modules/filenamecat: Renamed from modules/path-concat.
86381         (Files): filenamecat.h and filenamecat.c renamed from
86382         path-concat.h and path-concat.c.
86383         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86384         (Include): filenamecat.h, not path-concat.h.
86385         * modules/mkdir-p: Renamed from modules/makepath.
86386         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86387         makepath.c.
86388         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86389         (Include): mkdir-p.h, not makepath.h.
86390
86391 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86392
86393         Sync from coreutils.
86394         * m4/mkdir-p.m4: Renamed from makepath.m4.
86395         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86396         Rename files from makepath.c to mkdir-p.c, and from
86397         makepath.h to mkdir-p.h.
86398         * m4/filenamecat.m4: Renamed from path-concat.m4.
86399         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86400         Rename files from path-concat.c to filenamecat.c,
86401         and from path-concat.h to filenamecat.h.
86402         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86403         "file name" in local variables or comments.
86404         * m4/rename.m4: Likewise.
86405
86406 2005-06-01  Bruno Haible  <bruno@clisp.org>
86407
86408         * modules/csharpexec: New file.
86409         * MODULES.html.sh (C#): New section.
86410
86411 2005-06-01  Bruno Haible  <bruno@clisp.org>
86412
86413         * m4/csharp.m4: New file, from GNU gettext.
86414         * m4/csharpexec.m4: New file, from GNU gettext.
86415
86416 2005-06-01  Bruno Haible  <bruno@clisp.org>
86417
86418         * lib/csharpexec.h: New file, from GNU gettext.
86419         * lib/csharpexec.c: New file, from GNU gettext.
86420         * lib/csharpexec.sh.in: New file, from GNU gettext.
86421
86422 2005-05-31  Derek Price  <derek@ximbiot.com>
86423             Paul Eggert  <eggert@cs.ucla.edu>
86424
86425         Sync from cvs.
86426         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86427
86428 2005-05-31  Derek Price  <derek@ximbiot.com>
86429             Paul Eggert  <eggert@cs.ucla.edu>
86430
86431         Sync from cvs.
86432         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86433
86434 2005-05-29  Derek Price  <derek@ximbiot.com>
86435
86436         * config/srclist.txt (glob_.h, glob.c): Add these files.
86437
86438 2005-05-29  Derek Price  <derek@ximbiot.com>
86439
86440         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86441         * modules/glob: New file.
86442         * modules/getlogin_r: Add link to POSIX spec in description.
86443
86444 2005-05-29  Derek Price  <derek@ximbiot.com>
86445             Paul Eggert  <eggert@cs.ucla.edu>
86446
86447         * m4/glob.m4: New file.
86448
86449 2005-05-29  Derek Price  <derek@ximbiot.com>
86450             Paul Eggert  <eggert@cs.ucla.edu>
86451
86452         * lib/glob_.h, lib/glob.c: New files.
86453
86454 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86455
86456         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86457         * modules/fts-lgpl (Depends-on): Remove gettext.
86458
86459 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86460
86461         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86462         and don't require gt_INTTYPES_PRI.
86463
86464 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86465
86466         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86467
86468         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86469         the configuration hassle isn't worth it.
86470         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86471         (LONGEST_MODIFIER, PRIuMAX): Remove.
86472
86473 2005-05-27  Bruno Haible  <bruno@clisp.org>
86474
86475         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86476
86477 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86478
86479         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86480         _POSIX_PTHREAD_SEMANTICS for Solaris.
86481
86482 2005-05-25  Derek Price  <derek@ximbiot.com>
86483
86484         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86485
86486 2005-05-25  Derek Price  <derek@ximbiot.com>
86487             Paul Eggert  <eggert@cs.ucla.edu>
86488
86489         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86490         * lib/getlogin_r.c, getlogin_r.h: New files.
86491
86492 2005-05-25  Bruno Haible  <bruno@clisp.org>
86493             Derek Price  <derek@ximbiot.com>
86494
86495         * lib/getlogin_r.h: Simplify API documentation.
86496
86497 2005-05-23  Derek Price  <derek@ximbiot.com>
86498
86499         * modules/minmax (Files): Add m4/minmax.m4.
86500         (configure.ac): Add gl_MINMAX.
86501
86502 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86503
86504         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86505         so that unistd-safer.h (GPL'ed code) need not be included.
86506
86507 2005-05-22  Bruno Haible  <bruno@clisp.org>
86508
86509         * m4/minmax.m4: New file.
86510         Based on a patch by Derek Price <derek@ximbiot.com>.
86511
86512 2005-05-22  Bruno Haible  <bruno@clisp.org>
86513
86514         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86515         (INT64_MIN): Fix definition.
86516         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86517
86518         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86519         NEED_SIGNED_INT_TYPES.
86520
86521         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86522         HAVE_SYSTEM_INTTYPES.
86523
86524 2005-05-22  Bruno Haible  <bruno@clisp.org>
86525
86526         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86527         Also include <sys/param.h> if it defines MIN, MAX.
86528         Based on a patch by Derek Price <derek@ximbiot.com>.
86529
86530 2005-05-21  Jim Meyering  <jim@meyering.net>
86531
86532         * modules/fts (Files): Add m4/inttypes-pri.m4.
86533         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86534
86535 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86536
86537         New fts module.
86538         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86539         (setup_dir, free_dir): New functions.
86540         (enter_dir, leave_dir): Define trivial
86541         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86542         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86543         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86544         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86545         Move to fts-cycle.c.
86546         (fts_open): Use setup_dir.
86547         (fts_close): Use free_dir.
86548         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86549         This adds a label and some gotos, but the alternatives were messier.
86550         Check for memory allocation failure when entering a dir.
86551         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86552         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86553         (FTS): New member fts_cycle, that is a union that contains the
86554         old active_dir_ht and cycle_state.  All uses changed to mention
86555         fts_cycle.ht and fts_cycle.state.
86556         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86557         fts.c, with the following changes:
86558         (setup_dir, free_dir): New functions.
86559         (enter_dir): Now returns bool.  Return true if successful, false
86560         if memory exhausted.  All callers changed.
86561         Do not bother partly cleaning up on
86562         memory allocation failure; that is free_dir's job.
86563         However, free ad if hash_insert fails, to avoid memory leak.
86564         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86565         fts->fts_options to see which union member to use.
86566
86567 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86568
86569         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86570         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86571
86572 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86573
86574         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86575
86576 2005-05-20  Jim Meyering  <jim@meyering.net>
86577
86578         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86579         Now a macro, to pacify GCC.
86580
86581 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86582
86583         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86584         of -1.
86585
86586 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86587
86588         * lib/chown.c (rpl_chown): Return -1 on failure.
86589
86590 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86591
86592         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86593         Don't check for stddef.h.
86594         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86595         don't use its results.
86596         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86597         since we include them unconditionally.  Don't require
86598         AM_STDBOOL_H, since stdbool is a prerequisite.
86599         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86600         since we assume C89 or better.
86601         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86602         as we don't use their results.
86603         Don't check for fchdir, memmove, memset, strrchr, as we use
86604         them unconditionally.
86605         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86606         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86607
86608 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86609
86610         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86611         Include <stddef.h> unconditionally, since we assume C89 now.
86612         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86613         * lib/fts.c: Include fts_.h first, to check interface.
86614         Do not include intprops.h; no longer needed.
86615         Include cycle-check.h and hash.h, since fts_.h no longer does.
86616         Remove unnecessary casts of closedir to void.
86617         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86618         decide whether to decrement nlinks.
86619         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86620         (FTS): Use struct hash_table * instead of Hash_table, so that
86621         we no longer need to include hash.h here.
86622
86623 2005-05-18  Jim Meyering  <jim@meyering.net>
86624
86625         * modules/dirfd (License): Change to LGPL.  Most of the code
86626         is already in the public domain.
86627
86628 2005-05-18  Jim Meyering  <jim@meyering.net>
86629
86630         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86631         Reported by Yoann Vandoorselaere.
86632
86633 2005-05-17  Jim Meyering  <jim@meyering.net>
86634
86635         * m4/fts.m4: New file, from coreutils.
86636
86637 2005-05-17  Jim Meyering  <jim@meyering.net>
86638
86639         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86640
86641 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86642
86643         Sync from coreutils.
86644         * m4/unlinkdir.m4: New file.
86645
86646 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86647
86648         Sync from coreutils.
86649         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86650         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86651         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86652         White space changes only.
86653         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86654         special.
86655         * lib/yesno.c: Include getline.h, not ctype.h.
86656         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86657         Use getline to remove arbitrary restriction on response length.
86658
86659 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86660
86661         * config/srclist-update: Spell out "Street" in FSF postal
86662         mail address; this is the style the FSF seems to prefer.
86663
86664         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86665         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86666         this updates FSF postal mail address.
86667
86668         Sync from coreutils.
86669         * modules/unlinkdir: New file.
86670         * modules/yesno (Depends-on): Add getline.
86671         * MODULES.html.sh (File system functions): Add unlinkdir.
86672
86673 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86674
86675         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86676         lib/strsep.h:
86677         Change the initial comment to refer to GPL, not LGPL.
86678         gnulib-tool will change it to LGPL as needed.
86679
86680         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86681         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86682         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86683         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86684         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86685         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86686         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86687         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86688         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86689         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86690         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86691         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86692         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86693         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86694         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86695         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86696         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86697         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86698         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86699         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86700         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86701         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86702         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86703         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86704         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86705         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86706         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86707         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86708         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86709         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86710         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86711         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86712         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86713         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86714         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86715         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86716         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86717         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86718         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86719         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86720         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86721         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86722         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86723         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86724         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86725         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86726         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86727         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86728         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86729         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86730         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86731         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86732         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86733         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86734         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86735         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86736         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86737         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86738         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86739         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86740         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86741         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86742         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86743         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86744         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86745         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86746         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86747         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86748         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86749         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86750         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86751         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86752         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86753         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86754         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86755         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86756         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86757         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86758         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86759         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86760         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86761         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86762         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86763         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86764         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86765         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86766         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86767         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86768         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86769         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86770         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86771         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86772         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86773         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86774         lib/yesno.c, lib/yesno.h:
86775         Update FSF postal mail address.
86776
86777 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86778
86779         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86780         tests/test-memmem.c, tests/test-stpncpy.c:
86781         Update FSF postal mail address.
86782
86783 2005-05-13  Bruno Haible  <bruno@clisp.org>
86784
86785         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86786         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86787         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86788         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86789         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86790         Add support for 64-bit integers in the MSVC compiler.
86791
86792 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86793
86794         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86795
86796 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86797
86798         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86799
86800 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86801
86802         * doc/getdate.texi (General date syntax): Don't say that date
86803         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86804         Problem reported by Nic Ferrier.
86805
86806 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86807
86808         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86809         specified in ai_socktype. Fix invalid ai_protocol
86810         check. ai_protocol is usually set to 0 or depending on
86811         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86812         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86813         ai_socktype / ai_protocol in the returned addrinfo structure.
86814
86815 2005-05-10  Simon Josefsson  <jas@extundo.com>
86816
86817         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86818         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86819
86820 2005-05-10  Karl Berry  <karl@gnu.org>
86821
86822         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86823         (from http://www.gnu.org/licenses).
86824         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86825         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86826         fdl.texi suffices.
86827
86828 2005-05-10  Karl Berry  <karl@gnu.org>
86829
86830         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86831         (COPYING.DOC): remove.
86832
86833         * config/srclist-update: new FSF address.
86834
86835 2005-05-10  Derek Price  <derek@ximbiot.com>
86836
86837         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86838         possible.
86839
86840 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86841             Bruno Haible  <bruno@clisp.org>
86842
86843         * modules/inet_ntop: New file.
86844         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86845         inet_ntop.
86846
86847 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86848             Bruno Haible  <bruno@clisp.org>
86849
86850         * m4/inet_ntop.m4: New file.
86851
86852 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86853             Bruno Haible  <bruno@clisp.org>
86854
86855         * lib/inet_ntop.h: New file.
86856         * lib/inet_ntop.c: New file, from glibc with modifications.
86857
86858 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86859
86860         * modules/time_r (License): Change to LGPL.
86861         * modules/extensions (License): Change to LGPL.  Actually,
86862         the license is more permissive than that, but currently gnulib-tool
86863         doesn't know how to handle more-permissive licenses.
86864
86865         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86866         Problem reported by Dave Love.
86867
86868 2005-05-08  Jim Meyering  <jim@meyering.net>
86869
86870         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86871         blank.
86872
86873 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86874
86875         * modules/argmatch (Depends-on): Add stdbool.
86876         * modules/backupfile (Depends-on): Likewise.
86877         * modules/chdir-long (Depends-on): Likewise.
86878         * modules/closeout (Depends-on): Likewise.
86879         * modules/cycle-check (Depends-on): Likewise.
86880         * modules/dirname (Depends-on): Likewise.
86881         * modules/fnmatch (Depends-on): Likewise.
86882         * modules/fsusage (Depends-on): Likewise.
86883         * modules/fwriteerror (Depends-on): Likewise.
86884         * modules/getcwd (Depends-on): Likewise.
86885         * modules/getloadavg (Depends-on): Likewise.
86886         * modules/hard-locale (Depends-on): Likewise.
86887         * modules/makepath (Depends-on): Likewise.
86888         * modules/mountlist (Depends-on): Likewise.
86889         * modules/nanosleep (Depends-on): Likewise.
86890         * modules/posixtm (Depends-on): Likewise.
86891         * modules/quotearg (Depends-on): Likewise.
86892         * modules/readtokens (Depends-on): Likewise.
86893         * modules/readtokens0 (Depends-on): Likewise.
86894         * modules/readutmp (Depends-on): Likewise.
86895         * modules/save-cwd (Depends-on): Likewise.
86896         * modules/strftime (Depends-on): Likewise.
86897         * modules/userspec (Depends-on): Likewise.
86898         * modules/utimecmp (Depends-on): Likewise.
86899         * modules/xgetcwd (Depends-on): Likewise.
86900         * modules/xnanosleep (Depends-on): Likewise.
86901         * modules/xstrtod (Depends-on): Likewise.
86902         * modules/yesno (Depends-on): Likewise.
86903
86904 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86905
86906         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86907         needless checks.
86908
86909 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86910
86911         Merge from coreutils.  Among other things,
86912         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86913         * lib/fd-safer.c: New file.
86914         * lib/fcntl-safer.h, open-safer.c: Remove.
86915         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86916         * lib/dup-safer.c: Include unistd-safer.h first.
86917         Don't include errno.h.
86918         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86919         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86920         * lib/file-type.c: Rely on file-type.h change.
86921         * lib/getloadavg.c: Include unistd-safer.h.
86922         (getloadavg): Use safer open.
86923         * lib/getusershell.c: Include "stdio-safer.h".
86924         (getusershell): Use safer fopen.
86925         * lib/long-options.c (long_options): Use NULL rather than 0.
86926         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86927         'free'.
86928         * lib/modechange.c: Likewise.
86929         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86930         (MODE_DONE): New constant.
86931         (struct mode_change): Remove 'next' member.
86932         (make_node_op_equals): New function; like the old one of the
86933         same name, except it allocates an array.
86934         (mode_compile, mode_create_from_ref): Use it.
86935         (mode_compile): Allocate result as an array, not a linked list.
86936         Parse octal string ourself, so that we catch mistakes like "+0".
86937         (mode_adjust): Arg is an array, not a linked list.
86938         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86939         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86940         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86941         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86942         Remove.  This is now stat-macros.h's job.
86943         (talloc): Remove.  All callers replaced by xalloc, so that
86944         our invokers don't have to worry about reporting memory failures.
86945         (make_node_op_equals): Remove.
86946         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86947         New constants.
86948         (struct mode_change): Moved here from modechange.h.
86949         (mode_append_entry): Remove.
86950         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86951         apps to have incorrect behavior.  Use simpler algorithm for head
86952         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86953         Detect more invalid usages rather than having somewhat-random behavior.
86954         Don't insert an "a=" action, as that leads to incorrect behavior.
86955         (mode_compile, mode_create_from_ref): Return NULL on error instead
86956         of an enum, since now there's only one way to have an error.  All
86957         callers changed.
86958         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86959         at the correct time.  Simplify calculation of "+u" and its ilk.
86960         Don't mishandle "+X".
86961         (mode_free): Remove "register" and localize decls.
86962         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86963         (struct mode_change): Move to modechange.c; callers don't
86964         need to see this stuff.
86965         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86966         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86967         (mode_change, mode_adjust): Reflect the new signatures noted above.
86968         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86969         that might redefine system include files.
86970         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86971         (my_usleep): Use NULL rather than (void *) 0.
86972         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86973         Use siginterrupt to specify that system calls should be interrupted.
86974         (rpl_nanosleep): Move initialization of suspended closer to call of
86975         my_usleep.
86976         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86977         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86978         (desirable_utmp_entry): New function.
86979         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86980         using x2nrealloc, to simplify logic.
86981         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86982         size calculation.  Do not assume utmp file is a regular file.
86983         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86984         (READ_UTMP_CHECK_PIDS): New constant.
86985         * lib/save-cwd.c: Include unistd-safer.h.
86986         (save_cwd): Use fd_safer.
86987         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86988         [!_LIBC] Include "stat-macros.h" instead.
86989         * lib/unistd-safer.h (fd_safer): New decl.
86990
86991 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86992
86993         * modules/getloadavg (Depends-on): Add unistd-safer.
86994         * modules/getusershell (Depends-on): Add stdio-safer.
86995         * modules/lstat (Depends-on): Remove xalloc.
86996         * modules/mkstemp (Depends-on): Add stat-macros.
86997         * modules/modechange (Depends-on): Remove xstrtol.
86998         Add stat-macros, xalloc.
86999         * modules/save-cwd (Depends-on): Add unistd-safer.
87000         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87001         * modules/unistd-safer (Files): Add lib/fd-safer.c
87002         (Makefile.am): Remove lib_SOURCES.
87003
87004         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87005         Remove fcntl-safer; unistd-safer supersedes it.
87006
87007 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87008
87009         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87010         AC_HEADER_STAT.
87011         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87012         (gl_PREREQ_CHOWN): Remove.
87013         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87014         it.  Don't require AC_HEADER_STAT.
87015         (gl_PREREQ_LSTAT): Remove.
87016         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87017         Don't require AC_HEADER_STAT.
87018         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87019         (gl_PREREQ_RMDIR): Remove.
87020         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87021         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87022         the stat-macros module a prerequisite.
87023         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87024         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87025         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87026         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87027         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87028         variable names.
87029         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87030         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87031         variable prefixes.
87032         * m4/fcntl-safer.m4: Remove.
87033         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87034         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87035         Invoke gl_PREREQ_FD_SAFER.
87036         (gl_PREREQ_FD_SAFER): New macro.
87037         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87038         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87039         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87040         Remove duplicate call to AC_LIBOBJ(readutmp).
87041         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87042
87043         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87044         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87045
87046 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87047
87048         * MODULES.html.sh (Misc): Add byteswap.
87049
87050 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87051
87052         * modules/getcwd (Depends-on): Add extensions.
87053         * modules/openat (Depends-on): Likewise.
87054
87055 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87056
87057         * modules/byteswap: New file.
87058
87059 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87060
87061         * m4/byteswap.m4: New file.
87062
87063 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87064
87065         * lib/byteswap_.h: New file.
87066
87067 2005-04-25  Karl Berry  <karl@gnu.org>
87068
87069         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87070
87071 2005-04-25  Albert Chin  <china@thewrittenword.com>
87072
87073         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87074         Toolkit C bug.
87075
87076 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87077
87078         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87079         (func_ln_if_changed): Remove forcibly for no error message
87080         in case file does not exist.
87081
87082 2005-04-19  Simon Josefsson  <jas@extundo.com>
87083
87084         * gnulib-tool (Options): Make --symlink mean --symbolic.
87085
87086 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87087
87088         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87089
87090 2005-04-16  Simon Josefsson  <jas@extundo.com>
87091
87092         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87093
87094 2005-04-15  Simon Josefsson  <jas@extundo.com>
87095
87096         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87097
87098 2005-04-15  Simon Josefsson  <jas@extundo.com>
87099
87100         * gnulib-tool: Rename --symlink to --symbolic.
87101
87102 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87103
87104         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87105         symbolic links to files instead of copying/moving.  Add --aux-dir,
87106         specifying directory relative --dir where auxiliary build tools
87107         are placed.
87108
87109 2005-04-14  Bruno Haible  <bruno@clisp.org>
87110
87111         * modules/allocsa (License): Change to LGPL.
87112         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87113
87114 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87115
87116         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87117         that "UTC +1 second" continues to work.  Problem reported
87118         by Dmitry V. Levin.
87119         (relunit_snumber): New rule.
87120         (relunit): Use it.
87121
87122 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87123
87124         * lib/getdate.y (universal_time_zone_table): New constant.
87125         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87126         universal_time_zone_table.
87127         (lookup_zone): Prefer universal_time_zone_table to
87128         local_time_zone_table, so that "GMT" time stamps are allowed in
87129         London during the summer.  Problem reported by Ian Abbott.
87130
87131 2005-04-12  Jim Meyering  <jim@meyering.net>
87132
87133         * lib/human.c (humblock): Set *options even when returning due to
87134         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87135         warning from gcc-4.
87136
87137 2005-04-09  Jim Meyering  <jim@meyering.net>
87138
87139         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87140         -Wuninitialized: initialize tm0.tm_year.
87141
87142 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87143
87144         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87145         count, since there's no maximum.  All uses changed.
87146         Add member dsts_seen.
87147         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87148         not being INT_MAX.
87149         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87150         Use pc_rels_seen to decide whether a date is absolute.
87151
87152         * lib/getdate.y (number): Don't overwrite year.
87153         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87154         check.
87155
87156 2005-04-02  Simon Josefsson  <jas@extundo.com>
87157
87158         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87159         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87160
87161 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87162
87163         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87164         where no absolute path name can be longer than PATH_MAX.
87165
87166 2005-03-27  Jim Meyering  <jim@meyering.net>
87167
87168         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87169
87170 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87171
87172         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87173         "one's complement" -> "ones' complement" in comment, as per Knuth.
87174         "value of type" -> "type or expression" in comment.
87175         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87176
87177 2005-03-26  Jim Meyering  <jim@meyering.net>
87178
87179         Comment nits.
87180         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87181         Correct typos: s/or/of/.
87182
87183 2005-03-26  Jim Meyering  <jim@meyering.net>
87184
87185         * modules/check-include-files: Move to ../ and rename to...
87186         * check-module: ...this.
87187
87188 2005-03-25  Jim Meyering  <jim@meyering.net>
87189
87190         * modules/xvasprintf (Files): Add xalloc.h.
87191
87192 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87193
87194         * modules/gettext (Files): config/config.rpath ->
87195         build-aux/config.rpath
87196         * modules/iconv (Files): Likewise.
87197         Problem reported by Oskar Liljeblad.
87198
87199 2005-03-23  Jim Meyering  <jim@meyering.net>
87200
87201         * modules/check-include-files: New script to check for
87202         missing dependencies, multiple includes, etc.
87203
87204         * modules/c-strtold (Depends-on): Add xalloc.
87205         * modules/c-strtod (Depends-on): Add xalloc.
87206         * modules/hash (Depends-on): Add xalloc.
87207         (Files): Remove lib/xalloc.h.
87208
87209         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87210         * modules/userspec (Files): Add lib/inttostr.h.
87211
87212 2005-03-23  Jim Meyering  <jim@meyering.net>
87213
87214         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87215
87216 2005-03-22  Jim Meyering  <jim@meyering.net>
87217
87218         * modules/stat-macros: New module.
87219         * modules/canonicalize, modules/euidaccess, modules/file-type,
87220         * modules/filemode, modules/lchown, modules/makepath,
87221         * modules/rmdir, modules/stat: Depend on new stat-macros module
87222         rather than listing lib/stat-macros.h manually.
87223         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87224
87225 2005-03-22  Jim Meyering  <jim@meyering.net>
87226
87227         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87228
87229 2005-03-22  Bruno Haible  <bruno@clisp.org>
87230
87231         * config/srclist.txt: Replace target directory 'config' with
87232         'build-aux'.
87233         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87234         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87235         ../build-aux/.
87236
87237 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87238
87239         * modules/chdir-long (Depends-on): Add mempcpy.
87240
87241         * modules/acl, modules/backupfile, modules/c-strtod,
87242         modules/c-strtold, modules/canon-host, modules/canonicalize,
87243         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87244         modules/exclude, modules/exitfail, modules/file-type,
87245         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87246         modules/getdate, modules/getline, modules/getpagesize,
87247         modules/getpass, modules/getugroups, modules/group-member,
87248         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87249         modules/inttostr, modules/long-options, modules/makepath,
87250         modules/md5, modules/memcasecmp, modules/memcoll,
87251         modules/modechange, modules/mountlist, modules/path-concat,
87252         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87253         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87254         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87255         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87256         modules/strftime, modules/strndup, modules/strverscmp,
87257         modules/timespec, modules/unlocked-io, modules/userspec,
87258         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87259         modules/yesno:
87260         Remove lib_SOURCES line from Makefile.am section, as this is now
87261         done automatically by the corresponding Autoconf macro.
87262
87263 2005-03-21  Jim Meyering  <jim@meyering.net>
87264
87265         Changes imported from coreutils.
87266
87267         * lib/cycle-check.c: Don't include xalloc.h.
87268
87269         * lib/path-concat.c: Don't include assert.h.
87270         (path_concat): Remove assertion that would have triggered
87271         for ABASE starting with more than one slash.
87272         Reported by Andreas Schwab.
87273
87274         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87275         properly when ABASE is an absolute file name.
87276         Correct the description of this function.
87277         Include <assert.h>.
87278         Add an assertion and a test driver.
87279         This fixes a bug introduced on 2004-07-02.
87280         Andreas Schwab reported the resulting failure of cp --parents:
87281         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87282
87283 2005-03-21  Jim Meyering  <jim@meyering.net>
87284
87285         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87286         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87287
87288 2005-03-21  Jim Meyering  <jim@meyering.net>
87289         and  Paul Eggert  <eggert@cs.ucla.edu>
87290
87291         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87292         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87293         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87294         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87295         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87296         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87297         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87298         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87299         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87300         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87301         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87302         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87303         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87304         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87305         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87306         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87307         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87308         for these modules.
87309
87310 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87311
87312         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87313         (which shouldn't happen), generate nothing instead of returning 0
87314         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87315
87316 2005-03-16  Bruno Haible  <bruno@clisp.org>
87317
87318         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87319         HAVE_LONGLONG_64BIT.
87320
87321 2005-03-16  Bruno Haible  <bruno@clisp.org>
87322
87323         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87324         HAVE_LONGLONG_64BIT.
87325
87326 2005-03-16  Bruno Haible  <bruno@clisp.org>
87327
87328         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87329         HAVE_LONGLONG_64BIT.
87330
87331 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87332
87333         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87334         reliably distinguish strftime failure from empty output on POSIX
87335         hosts.
87336
87337 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87338
87339         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87340         (iconv_string): Don't guess a size-zero buffer, as that might cause
87341         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87342         result would be 'too large', where 'too large' is (heuristically)
87343         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87344         overflow concerns.  This will prevent some unwanted malloc failures
87345         when the inputs are very large.
87346
87347 2005-03-15  Karl Berry  <karl@gnu.org>
87348
87349         * config/srclist.txt (config.rpath): from gettext.
87350         * config/config.rpath: update.
87351
87352 2005-03-15  Bruno Haible  <bruno@clisp.org>
87353
87354         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87355         to 'negate'.
87356
87357         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87358         variable.
87359
87360         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87361         results.
87362
87363 2005-03-14  Simon Josefsson  <jas@extundo.com>
87364
87365         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87366         <fx@gnu.org>.
87367
87368 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87369
87370         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87371         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87372         intprops.h.
87373         * lib/strtol.c: Likewise.
87374
87375 2005-03-14  Jim Meyering  <jim@meyering.net>
87376
87377         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87378         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87379         to be nonzero so that we (and caller) can detect the difference
87380         between a valid zero-length expansion and an error return, even
87381         when the underlying strftime fails before writing anything into
87382         that location.
87383
87384 2005-03-14  Bruno Haible  <bruno@clisp.org>
87385
87386         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87387         Update from GNU gettext 0.14.3.
87388
87389 2005-03-10  Jim Meyering  <jim@meyering.net>
87390
87391         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87392
87393 2005-03-10  Jim Meyering  <jim@meyering.net>
87394
87395         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87396         so that this module works on systems without fchdir.
87397
87398 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87399
87400         Factor int-properties macros into a single file, except for
87401         glibc-related files.
87402         * lib/intprops.h: New file.
87403         * lib/getloadavg.c: Include it instead of limits.h.
87404         (INT_STRLEN_BOUND): Remove.
87405         * lib/human.c: Include intprops.h.
87406         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87407         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87408         302/1000.
87409         * lib/inttostr.h: Include intprops.h instead of limits.h.
87410         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87411         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87412         for consistency with intprops.h.
87413         (time_t_is_integer, twos_complement_arithmetic): Use them.
87414         * lib/sig2str.h: Include <signal.h>, intprops.h.
87415         (INT_STRLEN_BOUND): Remove.
87416         * lib/strftime.c (TYPE_SIGNED): Remove.
87417         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87418         * lib/strtol.c: Adjust comments to match intprops.h.
87419         * lib/userspec.c: Include intprops.h.
87420         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87421         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87422         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87423         instead of rolling our own expressions.
87424         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87425
87426         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87427         instead of int.
87428         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87429         the right thing even if adding 1900 would overflow.  Similarly
87430         for tm_mon + 1 and tm_yday + 1.
87431         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87432         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87433         (DO_SIGNED_NUMBER): New macro.
87434         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87435
87436 2005-03-07  Bruno Haible  <bruno@clisp.org>
87437
87438         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87439
87440 2005-03-07  Bruno Haible  <bruno@clisp.org>
87441
87442         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87443
87444 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87445
87446         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87447         (func_import): Only replace files via --import when they have actually
87448         changed.
87449
87450 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87451
87452         * m4/mmap-anon.m4: New file.
87453         * m4/pagealign_alloc.m4: New file.
87454
87455 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87456             Bruno Haible  <bruno@clisp.org>
87457
87458         * modules/pagealign_alloc: New file.
87459         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87460
87461 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87462             Bruno Haible  <bruno@clisp.org>
87463
87464         * lib/pagealign_alloc.h: New file.
87465         * lib/pagealign_alloc.c: New file.
87466
87467 2005-03-03  Bruno Haible  <bruno@clisp.org>
87468
87469         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87470         Use an all-permissive copyright notice, recommended by RMS.
87471
87472 2005-03-02  Bruno Haible  <bruno@clisp.org>
87473
87474         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87475         of AIX, the replacement has to be done only after <string.h> is
87476         included, therefore not in config.h. stpncpy.h does the replacement,
87477         and stpncpy.c uses it.
87478
87479 2005-03-02  Bruno Haible  <bruno@clisp.org>
87480
87481         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87482         stpncpy.c uses it.
87483
87484 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87485
87486         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87487         The workaround isn't strictly needed for POSIX conformance, and
87488         it's too much of a pain to configure and maintain.  We'll ask
87489         people to fix their kernels instead.
87490         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87491         (NANOSLEEP_BUG_WORKAROUND): Remove.
87492         (xnanosleep): Remove the workaround.
87493
87494 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87495
87496         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87497         Reported by Derek Price.
87498         (Include): Add "timespec.h".
87499
87500         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87501
87502 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87503
87504         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87505         to detect nanosleep bug.
87506
87507 2005-03-01  Bruno Haible  <bruno@clisp.org>
87508
87509         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87510
87511 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87512
87513         * modules/gethrxtime: New file.
87514         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87515         (Depends-on): Add gethrxtime.
87516         (configure.ac): Add gl_XNANOSLEEP.
87517         (Makefile.am): Remove lib_SOURCES line.
87518
87519 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87520
87521         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87522         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87523
87524 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87525
87526         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87527         * lib/timespec.h (gettime): Return void, since it always
87528         succeeds now.  All uses changed.
87529         * lib/gettime.c (gettime): Likewise.
87530         [HAVE_NANOTIME]: Prefer nanotime.
87531         Assume gettimeofday succeeds, as POSIX requires.
87532         Assime time () succeeds, since other code already does.
87533         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87534         (timespec_subtract): Remove.
87535         (NANOSLEEP_BUG_WORKAROUND): New constant.
87536         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87537         things considerably.  Use it only on GNU/Linux hosts, since the
87538         workaround shouldn't be needed elsewhere.
87539
87540 2005-02-24  Bruno Haible  <bruno@clisp.org>
87541
87542         * modules/gettext (Files): Add m4/glibc2.m4.
87543
87544 2005-02-24  Bruno Haible  <bruno@clisp.org>
87545
87546         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87547         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87548         * m4/progtest.m4:
87549         Update from GNU gettext 0.14.2.
87550         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87551
87552 2005-02-24  Bruno Haible  <bruno@clisp.org>
87553
87554         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87555         * lib/config.charset: Update from GNU gettext 0.14.2.
87556
87557 2005-02-24  Bruno Haible  <bruno@clisp.org>
87558
87559         * lib/gettext.h: Update from GNU gettext 0.14.2.
87560
87561 2005-02-23  Simon Josefsson  <jas@extundo.com>
87562
87563         * m4/iconvme.m4: New file.
87564
87565 2005-02-23  Jim Meyering  <jim@meyering.net>
87566
87567         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87568         change.
87569         Thanks to Bruno Haible for catching it.
87570
87571 2005-02-22  Simon Josefsson  <jas@extundo.com>
87572
87573         * modules/iconvme: New file.
87574
87575         * MODULES.html.sh: Add iconvme.
87576
87577 2005-02-22  Simon Josefsson  <jas@extundo.com>
87578
87579         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87580
87581 2005-02-22  Simon Josefsson  <jas@extundo.com>
87582
87583         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87584
87585 2005-02-22  Jim Meyering  <jim@meyering.net>
87586
87587         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87588         s/ifndef/ifdef/.
87589
87590 2005-02-20  Neil Conway  <neilc@samurai.com>
87591
87592         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87593         returned by OSX/Darwin if the specified buffer is not large
87594         enough for the hostname.
87595
87596 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87597
87598         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87599         pass it to _help, otherwise the latter coredumps trying to
87600         dereference state.root_argp.
87601
87602 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87603
87604         * modules/chdir-long (Depends-on): Add memrchr.
87605         * modules/memrchr (Files): Add lib/memrchr.h.
87606         (Include): "memrchr.h".
87607
87608 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87609
87610         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87611
87612 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87613
87614         * lib/memrchr.h: New file.
87615         * lib/chdir-long.c: Include it.
87616         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87617         Don't bother including stddef.h.
87618
87619 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87620
87621         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87622         inclusion.
87623         Include <sys/types.h>, for dev_t.
87624         (ME_DUMMY, ME_REMOTE): Move from here....
87625         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87626         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87627         Dmitry V. Levin.
87628         Include mountlist.h first, to test the interface.
87629
87630 2005-01-29  Bruno Haible  <bruno@clisp.org>
87631
87632         * lib/progname.c (program_name): Initialize.
87633         Needed when linking statically on MacOS X.
87634
87635 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87636
87637         Sync from coreutils.
87638         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87639         (Depends-on): Add c-strtod.
87640         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87641
87642 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87643
87644         Sync from coreutils.
87645         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87646
87647         Remove files that are specific to coreutils.
87648         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87649
87650 2005-01-28  Bruno Haible  <bruno@clisp.org>
87651
87652         * modules/javacomp: New file.
87653         * MODULES.html.sh (Java): Add javacomp.
87654
87655 2005-01-28  Bruno Haible  <bruno@clisp.org>
87656
87657         * m4/javacomp.m4: New file, from GNU gettext.
87658
87659 2005-01-28  Bruno Haible  <bruno@clisp.org>
87660
87661         * lib/javacomp.sh.in: New file, from GNU gettext.
87662         * lib/javacomp.h: New file, from GNU gettext.
87663         * lib/javacomp.c: New file, from GNU gettext.
87664
87665 2005-01-26  Simon Josefsson  <jas@extundo.com>
87666
87667         * lib/gai_strerror.c: Use GPL in header.
87668
87669 2005-01-26  Bruno Haible  <bruno@clisp.org>
87670
87671         * modules/javaexec: New file.
87672         * MODULES.html.sh (Java): Add javaexec.
87673
87674 2005-01-26  Bruno Haible  <bruno@clisp.org>
87675
87676         * m4/javaexec.m4: New file, from GNU gettext.
87677
87678 2005-01-26  Bruno Haible  <bruno@clisp.org>
87679
87680         * lib/javaexec.sh.in: New file, from GNU gettext.
87681         * lib/javaexec.h: New file, from GNU gettext.
87682         * lib/javaexec.c: New file, from GNU gettext.
87683
87684 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87685
87686         * modules/lchown (Depends-on): Remove lchown.h
87687
87688 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87689
87690         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87691         must be defined if the header file was not found, in order
87692         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87693
87694 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87695
87696         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87697         initializers for struct pentry_state.
87698         (__argp_error): Check return value of __asprintf
87699         (__argp_failure): Translate error message
87700
87701         * lib/argp-parse.c: Removed braces around the expansion of N_()
87702
87703 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87704
87705         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87706         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87707         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87708         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87709         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87710         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87711         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87712         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87713         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87714         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87715         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87716         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87717         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87718         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87719         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87720         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87721         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87722         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87723         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87724         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87725         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87726         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87727         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87728         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87729         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87730         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87731         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87732         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87733         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87734         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87735         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87736         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87737         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87738         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87739         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87740         Use an all-permissive copyright notice, recommended by RMS.
87741
87742 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87743
87744         * modules/chdir-long (Depends-on): Remove mempcpy.
87745
87746 2005-01-21  Jim Meyering  <jim@meyering.net>
87747
87748         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87749         same value as for Solaris 9.
87750
87751         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87752         component length.  This included changing the parameter to be
87753         of type `char *' rather than `char const *'.
87754         * lib/chdir-long.h (chdir_long): Update prototype.
87755
87756         * lib/openat.c (fdopendir, fstatat): New functions.
87757         * lib/openat.h: Include headers required for use of DIR and struct
87758         stat.
87759         [AT_SYMLINK_NOFOLLOW]: Define.
87760         (fdopendir, fstatat): Add prototypes.
87761
87762 2005-01-21  Bruno Haible  <bruno@clisp.org>
87763
87764         * modules/classpath: New file.
87765         * MODULES.html.sh (Java): Add classpath.
87766
87767 2005-01-21  Bruno Haible  <bruno@clisp.org>
87768
87769         * lib/classpath.h: New file, from GNU gettext.
87770         * lib/classpath.c: New file, from GNU gettext.
87771
87772 2005-01-20  Simon Josefsson  <jas@extundo.com>
87773
87774         * modules/version-etc-fsf: New file.
87775
87776 2005-01-20  Simon Josefsson  <jas@extundo.com>
87777
87778         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87779         * lib/version-etc.c: Remove version_etc_copyright.
87780         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87781         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87782
87783 2005-01-20  Simon Josefsson  <jas@extundo.com>
87784
87785         * lib/base64.h (isbase64): Add.
87786
87787         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87788         using a unsigned prototype, don't inline.
87789         (base64_decode): Use it.
87790
87791 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87792
87793         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87794         it.
87795
87796 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87797
87798         * lib/save-cwd.c (save_cwd): Remove code to support the case
87799         where fchdir is missing or flaky.
87800
87801 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87802
87803         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87804
87805 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87806
87807         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87808         AC_LIBSOURCES now does this.
87809         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87810         with new ullong_max module.
87811
87812 2005-01-19  Bruno Haible  <bruno@clisp.org>
87813
87814         * modules/sh-quote: New file.
87815         * MODULES.html.sh (Executing programs): Add sh-quote.
87816
87817 2005-01-19  Bruno Haible  <bruno@clisp.org>
87818
87819         * lib/sh-quote.h: New file, from GNU gettext.
87820         * lib/sh-quote.c: New file, from GNU gettext.
87821
87822 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87823
87824         Merge from coreutils.
87825         * m4/ullong_max.m4: New file.
87826         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87827         (gl_MACROS): Assume localeconv exists.
87828
87829 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87830
87831         Merge changes from coreutils, as described below in several
87832         changelogs dated today.
87833
87834         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87835         (O_DIRECTORY): Remove; not needed here, since "." must be
87836         a directory.  All uses removed.
87837         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87838         universal on Suns, and we also need to test for IRIX.
87839         Revamp code to use 'if' rather than '#if'.
87840         Avoid unnecessary comparison of cwd->desc to 0.
87841
87842         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87843         for known valid error numbers rather than observed invalid ones.
87844
87845 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87846
87847         * modules/ullong_max: New file.
87848
87849         * modules/chdir-long, modules/openat: New files.
87850         * modules/save-cwd (Depends-on): Depend on chdir-long.
87851         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87852
87853 2005-01-18  Jim Meyering  <jim@meyering.net>
87854
87855         Merge from coreutils.
87856         * m4/chdir-long.m4, m4/openat.m4: New files.
87857         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87858         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87859         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87860         is sane and DOES follow symlinks.  Besides, testing 20 different
87861         systems found no broken chown implementations.
87862         Prompted by a change in rsync's copy of this macro.
87863         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87864
87865         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87866
87867         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87868         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87869         NULL-means-set-to-current-time semantics.
87870         Remove temporary file immediately, rather than waiting
87871         for configure's at-exit trap code to do it.
87872
87873 2005-01-18  Jim Meyering  <jim@meyering.net>
87874
87875         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87876
87877         * lib/utimens.c (futimens): Account for the fact that futimes
87878         can also fail with errno == ENOSYS or errno == ENOENT.
87879         Patch from Dmitry V. Levin.
87880
87881         Change the name of the robust chdir function from chdir to chdir_long.
87882         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87883         (restore_cwd): Use chdir_long, not chdir.
87884         * lib/chdir-long.c: Renamed from chdir.c.
87885         * lib/chdir-long.h: Renamed from chdir.h.
87886         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87887         Hurd.
87888
87889 2005-01-18  Bruno Haible  <bruno@clisp.org>
87890
87891         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87892         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87893         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87894         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87895         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87896         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87897         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87898         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87899         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87900         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87901         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87902         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87903         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87904         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87905         Use an all-permissive copyright notice, recommended by RMS.
87906
87907 2005-01-18  Bob Proulx  <bob@proulx.com>
87908
87909         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87910         simplify offsetof() macro construct to avoid compile failure with
87911         native HP-UX 11.0 ANSI C compiler.
87912
87913 2005-01-17  Bruno Haible  <bruno@clisp.org>
87914
87915         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87916         redundant because stpncpy.m4 takes care of it.
87917
87918 2005-01-17  Bruno Haible  <bruno@clisp.org>
87919
87920         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87921
87922 2005-01-17  Bruno Haible  <bruno@clisp.org>
87923
87924         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87925         used.
87926
87927 2005-01-17  Bruno Haible  <bruno@clisp.org>
87928
87929         * lib/fwriteerror.h (fwriteerror): Change specification to include
87930         fclose.
87931         * lib/fwriteerror.c: Include <stdbool.h>.
87932         (fwriteerror): At the end, close the file stream. Record whether
87933         stdout was already closed.
87934
87935 2005-01-17  Bruno Haible  <bruno@clisp.org>
87936
87937         * lib/execute.c (environ): Declare if needed.
87938         * lib/pipe.c (environ): Likewise.
87939         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87940
87941 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87942
87943         * modules/argp: Depend on vsnprintf
87944
87945 2005-01-10  Jim Meyering  <jim@meyering.net>
87946
87947         * modules/closeout (Depends-on): Add atexit.
87948
87949 2005-01-06  Bruno Haible  <bruno@clisp.org>
87950
87951         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87952
87953 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87954
87955         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87956         definitions to be after all include files, to avoid collisions.
87957         Problem reported by Bob Proulx.
87958
87959 2005-01-04  Jim Meyering  <jim@meyering.net>
87960
87961         Changes imported from coreutils.
87962         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87963         as the mkstemp template, use a temporary directory and an
87964         8.3-friendly template to avoid trouble on systems like DJGPP.
87965         Reported by Juan M. Guerrero via Stepan Kasal.
87966         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87967         close. Remove the temporary directory right away, rather than waiting
87968         for configure's at-exit trap code to do it.
87969         Suggestion from Stepan Kasal.
87970
87971 2005-01-01  Simon Josefsson  <jas@extundo.com>
87972
87973         * gnulib-tool: Print #include directives when --import'ing.
87974
87975 2004-12-28  Simon Josefsson  <jas@extundo.com>
87976
87977         * tests/test-base64.c: Include required header files.  Remove
87978         unused variables.
87979
87980 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87981
87982         * modules/error (Depends-on): Remove gettext.
87983
87984 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87985
87986         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87987         not needed.  This removes a dependency on the gettext module.
87988         [defined _LIBC]: Do not include <libintl.h>; not needed.
87989
87990 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87991
87992         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87993         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87994
87995 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87996
87997         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87998         HAVE_DECL_STRTOLD.
87999
88000 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88001
88002         * modules/getdate (Depends-on): Remove alloca-opt.
88003
88004 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88005
88006         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88007
88008 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88009
88010         * lib/argp-parse.c: Include <stddef.h>.
88011         (alignof, alignto): New macros.
88012         (parser_init): Don't assume that void * is aligned sufficiently
88013         for struct option.
88014
88015         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88016         need to extend the stack.
88017         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88018         large.
88019
88020 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88021
88022         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88023
88024 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88025
88026         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88027         (2004-10-24) change.  Apparently this was a false alarm.
88028
88029         * modules/getdate: Depend on alloca-opt, not alloca.
88030
88031 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88032
88033         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88034         Remove now-obsolete comment about AIX.
88035         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88036         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88037         (YYMAXDEPTH): New macro.
88038
88039 2004-12-18  Simon Josefsson  <jas@extundo.com>
88040
88041         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88042
88043 2004-12-18  Bruno Haible  <bruno@clisp.org>
88044
88045         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88046
88047 2004-12-18  Bruno Haible  <bruno@clisp.org>
88048
88049         * lib/fatal-signal.c (fatal_signals): Make non-const.
88050         (init_fatal_signals): New function.
88051         (uninstall_handlers, install_handlers): Ignore signals that were set to
88052         SIG_IGN.
88053         (at_fatal_signal): Call init_fatal_signals.
88054         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88055         SIG_IGN.
88056         Reported by Paul Eggert.
88057
88058 2004-12-18  Bruno Haible  <bruno@clisp.org>
88059
88060         * doc/alloca.texi: New file.
88061         * doc/alloca-opt.texi: New file.
88062
88063 2004-12-17  Jim Meyering  <jim@meyering.net>
88064
88065         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88066         Otherwise, install-sh could exit with improper exit status when
88067         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88068
88069 2004-12-16  Simon Josefsson  <jas@extundo.com>
88070
88071         * tests/test-base64.c: Add license.
88072
88073 2004-12-15  Stepan Kasal  <address@hidden>
88074
88075         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88076
88077 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88078
88079         * modules/getcwd (Files): Add m4/d-ino.m4.
88080         Suggested by Mark D. Baushke.
88081
88082 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88083
88084         * lib/getdate.y (textint): New member "negative".
88085         (time_zone_hhmm): New function.
88086         Expect 14 shift-reduce conflicts, not 13.
88087         (o_colon_minutes): New rule.
88088         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88089         (yylex): Set the "negative" member of signed numbers.
88090
88091 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88092
88093         * doc/getdate.texi (Time of day items, Time zone items):
88094         Describe new formats +00:00, UTC+00:00.
88095
88096 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88097
88098         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88099         spurious "-l"s.  Problem reported by Stepan Kasal.
88100
88101 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88102
88103         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88104         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88105
88106 2004-12-04  Simon Josefsson  <jas@extundo.com>
88107
88108         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88109         Vandoorselaere <yoann@prelude-ids.org>.
88110
88111 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88112
88113         Changes imported from coreutils.
88114         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88115         exist.
88116         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88117
88118 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88119
88120         Changes imported from coreutils.
88121         * lib/hard-locale.c: Assume <locale.h> exists.
88122         Include "strdup.h".
88123         (GLIBC_VERSION): New macro.
88124         (hard_locale): Assume setlocale exists.
88125         Rewrite to avoid #ifdef.
88126         Use strdup rather than malloc + strcpy.
88127         * lib/human.c: Assume <locale.h> exists.
88128         (human_readable): Assume localeconv exists.
88129
88130 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88131
88132         * modules/hard-locale (Depends-on): Add strdup.
88133
88134 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88135
88136         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88137         convert T2, not T.  (Imported from libc.)
88138
88139 2004-11-30  Simon Josefsson  <jas@extundo.com>
88140
88141         * modules/restrict (License): Change to LGPL.
88142
88143 2004-11-30  Simon Josefsson  <jas@extundo.com>
88144
88145         * m4/restrict.m4: Add copyright and copying conditions.
88146
88147 2004-11-30  Simon Josefsson  <jas@extundo.com>
88148
88149         * m4/base64.m4: New file.
88150
88151 2004-11-30  Simon Josefsson  <jas@extundo.com>
88152
88153         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88154         base64.
88155
88156         * tests/test-base64.c: New file.
88157
88158         * modules/base64: New file.
88159
88160 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88161
88162         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88163         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88164
88165         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88166
88167 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88168
88169         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88170         (__getcwd.c): Don't restore errno; glibc doesn't.
88171         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88172         first, falling back to our code only if its results look suspicious.
88173         Ensure that the resulting buffer is only as large as necessary.
88174
88175         * lib/readutmp.c: Include readutmp.h first.
88176         Include <errno.h>, since readutmp.h no longer does that.
88177         * lib/readutmp.h: Don't include <errno.h>,
88178         <sys/param.h>, <time.h>; not needed to establish interface.
88179         (errno): Remove decl.
88180         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88181         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88182         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88183
88184 2004-11-28  Simon Josefsson  <jas@extundo.com>
88185
88186         * lib/base64.h, base64.c: New file.
88187
88188 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88189
88190         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88191
88192 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88193
88194         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88195         (Depends-on): Remove pathmax, same.  Add mempcpy.
88196         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88197         (Makefile.am): Append getcwd.h to lib_SOURCES.
88198         (Include): Add getcwd.h.
88199         (Maintainer): Change from Jim Meyering to "all, glibc",
88200         since getdate now uses intended-for-glibc code.
88201         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88202         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88203
88204 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88205
88206         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88207         HP's ANSI C compiler.
88208         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88209         Declaring int functions causes warnings on some modern systems and
88210         shouldn't be needed to compile on ancient ones.
88211         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88212         defined.
88213
88214         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88215         with the following changes.
88216         (__set_errno): Parenthesize properly.
88217         Include <stdbool.h>.
88218         (MIN, MAX, MATCHING_INO): New macros.
88219         (__getcwd): Define with prototype, not K&R form.
88220         Use heuristics to allocate default buffer on stack if possible.
88221         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88222         behavior, and to avoid the PATH_MAX limit when computing
88223         ../../../../...
88224         Use MATCHING_INO to compare inode number to file.
88225         Check for arithmetic overflow in size calculations.
88226         Fix bug in reallocation of dot array that caused getcwd to fail
88227         on directories nested deeper than 75.
88228         Be more careful about saving errno on error.
88229         Do not use realloc; use only free+malloc, as this is a bit
88230         more flexible and avoids a needless copy operation.
88231         Do not inspect st_dev and st_ino for symbolic links; POSIX
88232         doesn't specify the latter.
88233         Check for closedir errors.
88234         Avoid needless casts.
88235         Use "#ifdef weak_alias" around weak_alias, to be like other
88236         glibc code.
88237         The following changes to getcwd.c have effect only when used in
88238         gnulib; they have no effect inside glibc proper.
88239         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88240         as alloca isn't used.
88241         (alloca, __alloca): Likewise.
88242         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88243         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88244         unconditionally, as gnulib assumes C89 or better.
88245         Do not include <sys/param.h>.
88246         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88247         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88248         better.
88249         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88250         Include <dirent.h> in a way that is compatible with modern Autoconf.
88251         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88252         New macros, if not already defined.
88253         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88254         Use "_LIBC", not "defined _LIBC", for consistency.
88255         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88256         a mempcpy module.
88257         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88258         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88259         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88260         credit only to Jim Meyering and adjust the copyright dates.
88261         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88262         <stdlib.h>, <unistd.h>, "pathmax.h".
88263         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88264         (INITIAL_BUFFER_SIZE): Remove.
88265         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88266
88267 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88268
88269         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88270         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88271         Use the _ONCE methods, for efficiency.
88272         Check for fcntl.h.  In test program, include <errno.h>
88273         and <fcntl.h> if available.  Remove old K&R cruft from
88274         test program.  Check for common errors in GNU/Linux,
88275         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88276         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88277         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88278         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88279         name accordingly.
88280         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88281         accommodate new getcwd.c.
88282         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88283         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88284         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88285         that's all we need now.
88286
88287 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88288
88289         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88290         argp-parse.c depends on getopt internals, that means we should
88291         always use our getopt, to be on the safe side.
88292         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88293         order not to spoil the result of an eventual previous invocation
88294         of gl_GETOPT_SUBSTITUTE.
88295
88296 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88297
88298         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88299         redefinition warnings. To avoid them, include the defines
88300         in `#if !defined __need_getopt ... #endif'. The only place
88301         where __getopt_argv_const is used is in definitions
88302         of getopt_long and getopt_long_only below, which are as well
88303         protected by `#ifndef __need_getopt'.
88304         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88305         __need_getopt after including <stdio.h> and <unistd.h> These
88306         headers might have defined it.
88307
88308 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88309
88310         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88311
88312 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88313
88314         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88315         (futimens): New function, which uses futimes if available.
88316         (futimens, utimens): Support timespec==NULL, with same semantics
88317         as utime and utimens.
88318         * lib/utimens.h (futimens): New decl.
88319
88320 2004-11-23  Jim Meyering  <jim@meyering.net>
88321
88322         * lib/getopt_.h: Remove trailing blanks.
88323
88324 2004-11-23  Jim Meyering  <jim@meyering.net>
88325
88326         * lib/__fpending.c: Add comment.
88327
88328 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88329
88330         * modules/canonicalize (Depends-on): Add xreadlink.
88331         Problem reported by James Youngman.
88332
88333 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88334
88335         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88336         New macros.
88337         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88338         optopt): Use them instead of invoking ## directly; otherwise, the
88339         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88340
88341 2004-11-19  Bruno Haible  <bruno@clisp.org>
88342
88343         * lib/strtok_r.c: Move comments from here...
88344         * lib/strtok_r.h: ... to here.
88345
88346 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88347
88348         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88349         implementations that mishandle size_t overflow.
88350
88351 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88352
88353         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88354         might fail.  Problem reported by Yoann Vandoorselaere.
88355         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88356         implementations that mishandle size_t overflow.
88357
88358 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88359
88360         * modules/canon-host (Depends-on): Add strdup.
88361
88362 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88363
88364         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88365
88366 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88367
88368         * lib/canon-host.c: Include "strdup.h".
88369         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88370         Use strdup instead of malloc/strcpy to duplicate strings.
88371
88372         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88373         (human_space_before_unit): New constant.
88374         * lib/human.c (human_readable): Support it.
88375
88376         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88377         (xgetcwd): Set errno correctly when failing.
88378         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88379         the failure is actually due to a PATH_MAX problem.
88380
88381         Further getopt changes to make it more likely that glibc will
88382         buy the changes back.
88383         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88384         (getopt): Use it, so to preserve glibc semantic
88385         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88386         when compiling for libc.
88387         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88388         (getopt_long, getopt_long_only): Use it.
88389
88390         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88391         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88392         (getopt): Argv is now char * const *, as per standard.
88393         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88394         not char *__getopt_argv_const *.
88395         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88396         _getopt_long_only_r): Likewise.
88397         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88398         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88399         _getopt_long_r, _getopt_long_only_r): Likewise.
88400         * lib/getopt_.h (__getopt_argv_const): Remove.
88401         (getopt): Argv is now char * const *, as per standard.
88402
88403         * lib/getdate.y (tORDINAL): New token.
88404         (day, relunit): Allow it for relative times.
88405         (relative_time_table): Use tORDINAL for ordinals.
88406
88407 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88408
88409         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88410         Document that "second" isn't allowed as an ordinal number.
88411
88412 2004-11-16  Jim Meyering  <jim@meyering.net>
88413
88414         * modules/closeout (Depends-on): Add fpending.
88415
88416 2004-11-15  Jim Meyering  <jim@meyering.net>
88417
88418         * lib/closeout.c: Include "__fpending.h" once again.
88419         Include <stdbool.h>.
88420         (close_stdout): Don't fail just because stdout was closed initially,
88421         since some programs don't write to stdout in the normal course of
88422         operation (other than --version and --help), and we don't want this
88423         function to make e.g. `touch file >&-' fail.
88424         But do fail if it was closed and someone has tried to write to it.
88425         E.g., `printf foo >&-' must fail.
88426
88427 2004-11-13  Jim Meyering  <jim@meyering.net>
88428
88429         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88430
88431 2004-11-12  Simon Josefsson  <jas@extundo.com>
88432
88433         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88434         small doc fix is still pending.
88435
88436 2004-11-11  Simon Josefsson  <jas@extundo.com>
88437
88438         * modules/strtok_r: New file.
88439
88440         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88441         strtok_r.
88442
88443 2004-11-11  Simon Josefsson  <jas@extundo.com>
88444
88445         * m4/strtok_r.m4: New file.
88446
88447         * m4/getopt.m4: Replace opterr.
88448
88449 2004-11-11  Simon Josefsson  <jas@extundo.com>
88450
88451         * lib/strtok_r.h, strtok_r.c: New file.
88452
88453 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88454
88455         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88456         of replacing opterr, getopt, etc.  This should handle the
88457         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88458
88459 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88460
88461         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88462         we can stop lying to compilers about the constness of argv when we
88463         are compiled outside glibc.
88464         (getopt, getopt_long, getopt_long_only): Use it.
88465         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88466         _getopt_internal, getopt): Likewise.
88467         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88468         _getopt_long_only_r): Likewise.
88469         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88470         _getopt_long_r, _getopt_long_only_r): Likewise.
88471
88472         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88473         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88474         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88475         the other external symbols.
88476         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88477         declaration, since the above renaming now works around collisions.
88478
88479 2004-11-11  Jim Meyering  <jim@meyering.net>
88480
88481         * lib/linebreak.c: Remove trailing blanks.
88482         * lib/alloca_.h: Likewise.
88483         * lib/acosl.c: Likewise.
88484         * lib/euidaccess.c: Likewise.
88485         * lib/allocsa.h: Likewise.
88486
88487 2004-11-10  Simon Josefsson  <jas@extundo.com>
88488
88489         * m4/getaddrinfo.m4: New file.
88490
88491 2004-11-10  Simon Josefsson  <jas@extundo.com>
88492
88493         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88494
88495 2004-11-10  Simon Josefsson  <jas@extundo.com>
88496
88497         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88498         getaddrinfo.
88499
88500         * modules/getaddrinfo: New file.
88501
88502 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88503
88504         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88505
88506 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88507
88508         * lib/mktime.c (SHR): New macro, which is a portable
88509         substitute for >> that should work even on Crays.
88510         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88511         Problem reported by Mark D. Baushke in
88512         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88513         * lib/getdate.y (SHR): Likewise.
88514         (tm_diff): Use it.
88515         * lib/strftime.c (SHR): Likewise.
88516         (tm_diff): Use it.
88517         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88518         quote_these_too, so that right shifts are well defined.  All uses
88519         changed.
88520
88521 2004-11-10  Jim Meyering  <jim@meyering.net>
88522
88523         Ensure that no close failure goes unreported.
88524         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88525         return early when it seems there's nothing to flush.
88526         Don't include __fpending.h.
88527
88528 2004-11-10  Jim Meyering  <jim@meyering.net>
88529
88530         * modules/closeout (Depends-on): Remove fpending.
88531
88532 2004-11-10  Jim Meyering  <jim@meyering.net>
88533
88534         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88535
88536 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88537
88538         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88539         gl_FUNC_STRFTIME.
88540         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88541         and AC_REQUIRE when possible, to avoid duplicate checks.
88542         Check for <wchar.h>.
88543
88544 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88545
88546         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88547
88548 2004-11-09  Bruno Haible  <bruno@clisp.org>
88549
88550         * m4/sockpfaf.m4: New file.
88551
88552 2004-11-05  Bruno Haible  <bruno@clisp.org>
88553
88554         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88555         Reported by Mark D. Baushke <mdb@cvshome.org>.
88556
88557 2004-11-04  Bruno Haible  <bruno@clisp.org>
88558
88559         2004-09-11  Bruno Haible  <bruno@clisp.org>
88560                 * allocsa.valgrind: New file.
88561         2004-02-06  Bruno Haible  <bruno@clisp.org>
88562                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88563                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88564                 Reported by Christopher Seip <chris.seip@hp.com>.
88565
88566 2004-11-04  Bruno Haible  <bruno@clisp.org>
88567
88568         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88569         (Makefile.am): Distribute it.
88570
88571 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88572
88573         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88574         with errno == ERANGE if the buffer is too small.
88575         Problem reported by Mark D. Baushke.
88576
88577 2004-11-03  Albert Chin  <china@thewrittenword.com>
88578             Paul Eggert  <eggert@cs.ucla.edu>
88579
88580         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88581         equivalent, substitute $ac_type for equivalent type rather than
88582         blindly using uint32_t *always* which won't work if uint32_t is not
88583         available.  Define _UINT32_T to work around typedef of uint32_t if
88584         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88585         2.5.1.
88586
88587 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88588
88589         * m4/jm-macros.m4: Sync from coreutils.
88590         (gl_MACROS): Check for mbrlen, for pathchk.
88591         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88592
88593 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88594
88595         * lib/xreadlink.c (MAXSIZE): New macro.
88596         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88597         size does not exceed MAXSIZE.  Avoid cast.
88598         As suggested by Mark D. Baushke in
88599         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88600         if readlink fails with buffer size just under MAXSIZE, try again
88601         with MAXSIZE.
88602
88603 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88604
88605         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88606
88607 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88608         and  Paul Eggert  <eggert@cs.ucla.edu>
88609
88610         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88611         (get_date): Overparenthesize to avoid GCC warning.
88612
88613 2004-11-02  Bruno Haible  <bruno@clisp.org>
88614
88615         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88616         returns void.
88617
88618 2004-11-02  Bruno Haible  <bruno@clisp.org>
88619
88620         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88621         function returns void.
88622
88623 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88624
88625         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88626         fflush_unlocked, flockfile, funlockfile, funlockfile,
88627         fputs_unlocked, putc_unlocked.
88628
88629 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88630
88631         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88632         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88633         already declared.
88634
88635 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88636
88637         * modules/getdate (Files): Add doc/getdate.texi.
88638         (Depends-on): Add setenv, xalloc.
88639
88640 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88641
88642         * lib/getdate.y: Add support for TZ="foo" within a date string.
88643         Fix some bugs near time_t boundaries.  Reject dates with
88644         out-of-range components, e.g., "Sept 31".
88645         Include <stdlib.h>, "setenv.h", "xalloc.h".
88646         (ISDIGIT_LOCALE): Remove; unused.
88647         Note that the TZ and time functions used here are not reentrant.
88648         (mktime_ok, get_tz): New functions.
88649         (TZBUFSIZE): New constant.
88650         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88651         This requires that we sometimes generate our own TZ="XXX..." setting.
88652
88653 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88654
88655         * doc/getdate.texi: New file, from coreutils with modifications for
88656         the new TZ parsing.
88657
88658 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88659
88660         * lib/mktime.c (not_equal_tm): Remove redundant check.
88661
88662 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88663
88664         * modules/regex (lib_SOURCES): Add regex.c.
88665         Reported by James Youngman in
88666         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88667
88668 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88669
88670         * lib/getdate.y: Use Bison 1.875 features, and some minor
88671         code cleanups.  This change does not affect semantics.
88672         Don't include <stdlib.h>; no longer needed.
88673         Don't include unlocked-io.h; only the "#if TEST" code uses
88674         stdio, and performance isn't crucial there.
88675         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88676         Bison 1.875 features as described below.
88677         All uses of "PC." replaced by "pc->".
88678         (YYSTYPE): Add a forward declaration.
88679         (yylex, yyerror): Use full prototypes in forward decls.
88680         Use "%pure-parser" rather than obsolescent "%pure_parser".
88681         Use %parse-param and %lex-param instead of obsolescent
88682         YYPARSE_PARAM and YYLEX_PARAM.
88683         (meridian_table, month_and_day_table, time_units_table,
88684         relative_time_table, time_zone_table, military_table,
88685         lookup_zone, lookup_word, get_date):
88686         Use NULL instead of 0 where appropriate.
88687         (to_hour): Avoid abort (), to avoid a dependency on
88688         stdlib.h.
88689         (yyerror, yylex): Now accepts parser_control * arg.
88690         (main) [TEST]: Use '\0' rather than 0 for char.
88691
88692 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88693
88694         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88695
88696 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88697
88698         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88699         It's now the caller's responsibility to handle the case where
88700         !HAVE_GETPAGESIZE && !defined getpagesize.
88701
88702         * lib/mktime.c (leapyear): Arg is long int, not int.
88703
88704 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88705
88706         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88707
88708 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88709
88710         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88711         missing.  Problem reported by James Youngman.
88712
88713 2004-10-16  Simon Josefsson  <jas@extundo.com>
88714
88715         * gnulib-tool: Fix comments.  Fix parse problem.
88716         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88717
88718 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88719
88720         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88721         implementation of getopt_long.  Problem reported by Alexander Taler in:
88722         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88723
88724 2004-10-15  Bruno Haible  <bruno@clisp.org>
88725
88726         * gnulib-tool: Untabify. Initialize supplied_libname.
88727         (func_usage): More homogenous output.
88728         (func_modules_transitive_closure, func_modules_to_filelist,
88729         func_emit_lib_Makefile_am): New functions.
88730         (func_import): New function, extracted from big case statement. Use
88731         func_get_license, func_modules_transitive_closure,
88732         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88733         opt_lgpl. Don't use test -a, as it's not portable.
88734         (func_create_testdir): Use func_modules_transitive_closure,
88735         func_modules_to_filelist, func_emit_lib_Makefile_am.
88736
88737 2004-10-15  Bruno Haible  <bruno@clisp.org>
88738
88739         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88740
88741 2004-10-15  Bruno Haible  <bruno@clisp.org>
88742
88743         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88744         the portions belonging to each module.
88745         Suggested by Derek Robert Price <derek@ximbiot.com>.
88746
88747 2004-10-12  Simon Josefsson  <jas@extundo.com>
88748
88749         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88750         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88751         to real functions.
88752
88753 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88754
88755         * modules/vsnprintf: New file.
88756
88757 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88758
88759         * m4/vsnprintf.m4: New file.
88760
88761 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88762
88763         * lib/vsnprintf.h: New file.
88764         * lib/vsnprintf.c: New file.
88765
88766 2004-10-11  Bruno Haible  <bruno@clisp.org>
88767
88768         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88769         vsnprintf.
88770
88771 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88772
88773         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88774
88775 2004-10-07  Bruno Haible  <bruno@clisp.org>
88776
88777         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88778         fits into the provided buffer.
88779
88780 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88781
88782         * lib/diacrit.c, diacrit.h: Add GPL notice.
88783
88784         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88785         notice.
88786         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88787         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88788         This avoids a potential constant-folding bug.
88789
88790 2004-10-05  Bruno Haible  <bruno@clisp.org>
88791
88792         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88793         for the declaration of strsep.
88794
88795 2004-10-05  Bruno Haible  <bruno@clisp.org>
88796
88797         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88798
88799 2004-10-04  Simon Josefsson  <jas@extundo.com>
88800
88801         * modules/memmem: New file.
88802         * tests/test-memmem.c: New file.
88803         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88804
88805 2004-10-04  Simon Josefsson  <jas@extundo.com>
88806
88807         * m4/memmem.m4: New file.
88808
88809 2004-10-04  Simon Josefsson  <jas@extundo.com>
88810
88811         * lib/memmem.h: New file.
88812         * lib/memmem.c: New file, taken from glibc.
88813
88814 2004-10-04  Simon Josefsson  <jas@extundo.com>
88815
88816         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88817         '#ifdef USE_UNLOCKED_IO'.
88818
88819 2004-10-04  Simon Josefsson  <jas@extundo.com>
88820
88821         * config/srclist.txt: Add memmem from glibc.
88822
88823 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88824
88825         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88826
88827         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88828         modules/exclude, modules/getdate, modules/getline,
88829         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88830         modules/getusershell, modules/linebuffer, modules/md5,
88831         modules/mountlist, modules/posixtm, modules/readtokens,
88832         modules/readutmp, modules/regex, modules/sha1,
88833         modules/version-etc, modules/yesno:
88834         Remove dependency on unlocked-io.
88835
88836 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88837
88838         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88839
88840         * m4/unlocked-io.m4: Add copyright notice.
88841         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88842
88843 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88844
88845         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88846         * lib/xmalloc.c (xmemdup): Likewise.
88847         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88848         XFREE): Remove these long-obsolescent macros.
88849         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88850         * lib/xstrdup.c: Remove.
88851
88852         * lib/regex.c (re_comp): Cast gettext return value to char *,
88853         Problem reported by Martin Neitzel via Mark D. Baushke.
88854
88855 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88856
88857         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88858         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88859         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88860         regex.c, sha1.c, version-etc.c, yesno.c:
88861         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88862         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88863         the includer's responsibility.
88864
88865         Sync from coreutils.
88866
88867         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88868         points to the start of a string, as the C Standard says the
88869         resulting behavior is undefined.
88870
88871         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88872         simple -> simple_backups, numbered_existing ->
88873         numbered_existing_backups, numbered -> numbered_backups
88874         to avoid shadowing problems.  All uses changed.
88875         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88876         * lib/backupfile.c (check_extension, numbered_backup):
88877         Rename locals to avoid shadowing 'basename'.
88878         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88879         once.
88880
88881         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88882         * lib/.cvsignore: Add getopt.h.
88883
88884 2004-10-04  Bruno Haible  <bruno@clisp.org>
88885
88886         * modules/README: New file.
88887         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88888         not a module.
88889
88890 2004-10-02  Jim Meyering  <jim@meyering.net>
88891
88892         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88893
88894 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88895
88896         * modules/strsep: New file.
88897
88898 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88899
88900         * m4/strsep.m4: New file.
88901
88902 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88903
88904         * lib/strsep.h: New file.
88905         * lib/strsep.c: New file.
88906
88907 2004-10-01  Simon Josefsson  <jas@extundo.com>
88908
88909         * lib/snprintf.c (snprintf): Handle size==0.
88910
88911 2004-10-01  Simon Josefsson  <jas@extundo.com>
88912             Bruno Haible  <bruno@clisp.org>
88913
88914         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88915         (snprintf): Declare 'args'.
88916
88917 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88918
88919         * lib/snprintf.c: Remove comments as to why each header is needed.
88920
88921 2004-10-01  Bruno Haible  <bruno@clisp.org>
88922
88923         * MODULES.html.sh: Add strsep.
88924
88925 2004-09-30  Simon Josefsson  <jas@extundo.com>
88926
88927         * modules/snprintf: New file.
88928
88929 2004-09-30  Simon Josefsson  <jas@extundo.com>
88930
88931         * m4/snprintf.m4: New file.
88932
88933 2004-09-30  Simon Josefsson  <jas@extundo.com>
88934
88935         * lib/snprintf.h, lib/snprintf.c: New files.
88936
88937 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88938
88939         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88940         (hol_entry_help): Never translate an empty string.
88941         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88942         * lib/argp.h (OPTION_NO_TRANS): New option.
88943
88944 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88945
88946         * modules/argp (Maintainer): Replace Simon Josefsson
88947         by Sergey Poznyakoff.
88948
88949 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88950
88951         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88952         changes merged back into glibc.
88953
88954 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88955
88956         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88957
88958 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88959
88960         * lib/xvasprintf.c: Include xalloc.h.
88961         (xvasprintf): Use xalloc_die, not xmalloc_die.
88962
88963 2004-09-29  Bruno Haible  <bruno@clisp.org>
88964
88965         * modules/alloca-opt: New file, derived from modules/alloca.
88966         * modules/allocsa: Depend on alloca-opt instead of alloca.
88967         * modules/setenv: Likewise.
88968         * modules/vasnprintf: Likewise.
88969         * MODULES.html.sh: Add alloca-opt.
88970
88971 2004-09-28  Simon Josefsson  <jas@extundo.com>
88972
88973         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88974         LGPL, and to replace license template from GPL to LGPL.
88975
88976 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88977
88978         * modules/dummy: Change license to LGPL.
88979
88980 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88981
88982         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88983
88984 2004-09-24  Simon Josefsson  <jas@extundo.com>
88985
88986         * modules/minmax (License): Change from GPL to LGPL.
88987
88988 2004-09-23  Simon Josefsson  <jas@extundo.com>
88989
88990         * gnulib-tool (--import): Typo.
88991
88992 2004-09-23  Simon Josefsson  <jas@extundo.com>
88993
88994         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88995
88996 2004-09-22  Bruno Haible  <bruno@clisp.org>
88997
88998         * modules/*: Add 'License' field.
88999         * gnulib-tool: Accept --extract-license option.
89000         (func_get_license): New function.
89001
89002 2004-09-21  Bruno Haible  <bruno@clisp.org>
89003
89004         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89005         Reported by Simon Josefsson.
89006
89007 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89008
89009         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89010         gl_AC_TYPE_LONG_LONG.
89011
89012 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89013
89014         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89015
89016 2004-09-18  Simon Josefsson  <jas@extundo.com>
89017         and  Paul Eggert  <eggert@cs.ucla.edu>
89018
89019         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89020         calls with autoreconf.  Define GL_LIB.
89021
89022 2004-09-14  Karl Berry  <karl@gnu.org>
89023
89024         * config/srclist.txt: unsync setenv.c, sigh.
89025
89026 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89027
89028         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89029         Problem reported by Bruno Haible in:
89030         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89031
89032 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89033
89034         * config/srclist.txt: Comment out argp-pvh.c.
89035
89036 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89037
89038         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89039         in case some system header has #define'd it.  Problem reported by
89040         Soeren D. Schulze in
89041         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89042
89043 2004-09-09  Karl Berry  <karl@gnu.org>
89044
89045         * regex.[ch]: delete from the root.  These were supposed to be
89046                 synced with emacs cvs, but this has not happened for about
89047                 a year, and anyway nothing else uses emacs regex.[ch].
89048                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89049                 lib/regex[.ch] is untouched.
89050
89051 2004-09-09  Bruno Haible  <bruno@clisp.org>
89052
89053         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89054
89055 2004-09-09  Bruno Haible  <bruno@clisp.org>
89056
89057         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89058         modifications.
89059         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89060
89061 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89062
89063         * modules/xvasprintf: New file.
89064         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89065
89066 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89067
89068         * lib/xvasprintf.h: New file.
89069         * lib/xvasprintf.c: New file.
89070         * lib/xasprintf.c: New file.
89071
89072 2004-09-08  Bruno Haible  <bruno@clisp.org>
89073
89074         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89075
89076 2004-09-08  Bruno Haible  <bruno@clisp.org>
89077
89078         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89079         length is > INT_MAX.
89080         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89081         more.
89082
89083 2004-09-08  Bruno Haible  <bruno@clisp.org>
89084
89085         * lib/stdint_.h: New file, taken from GNU clisp.
89086
89087 2004-09-08  Bruno Haible  <bruno@clisp.org>
89088             Oskar Liljeblad  <oskar@osk.mine.nu>
89089
89090         * modules/stdint: New file.
89091         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89092
89093 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89094
89095         Import from coreutils.
89096         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89097         strings on unbounded length.  alloca's performance benefits aren't
89098         that important here.
89099         (V_STRDUP): Remove.
89100         (parse_with_separator): New function, with most of the internals
89101         of the old parse_user_spec.  Allow user to omit both user and group,
89102         for compatibility with FreeBSD.
89103         Clone only the user name, not the entire spec.
89104         Do not set *uid, *gid unless entirely successful.
89105         Avoid memory leak in some failing cases.
89106         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89107         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89108         (parse_user_spec): Rewrite to use parse_with_separator.
89109
89110 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89111
89112         * modules/userspec: Don't depend on alloca.
89113
89114 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89115
89116         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89117
89118 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89119
89120         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89121         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89122         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89123
89124 2004-08-16  Simon Josefsson  <jas@extundo.com>
89125
89126         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89127         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89128         Add --dry-run for --import.
89129         Let user provided command line parameters override configure.ac
89130         settings.
89131
89132 2004-08-12  Simon Josefsson  <jas@extundo.com>
89133
89134         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89135         as discussed with Paul Eggert in threads rooted at
89136         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89137         and
89138         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89139         Before, the test was empty, and relied on ELIDE_CODE in source
89140         code.)
89141         (gl_PREREQ_GETOPT): New macro.
89142         (gl_GETOPT): Use them.
89143
89144 2004-08-12  Simon Josefsson  <jas@extundo.com>
89145
89146         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89147         * lib/getopt_.h: Renamed from getopt.h.
89148
89149 2004-08-12  Simon Josefsson  <jas@extundo.com>
89150
89151         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89152         Change default library name from libfoo to libgnu.
89153         Now, if you have a configure.ac that says:
89154                 gl_SOURCE_BASE(gl)
89155                 gl_M4_BASE(gl/m4)
89156                 gl_MODULES(error getopt etcetera)
89157                 gl_INIT
89158         you can import all you need by running:
89159                 ../gnulib/gnulib-tool --import
89160
89161         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89162         (Makefile.am): Rewrite, use logic from argz.
89163         (Include): Use <getopt.h> instead of "getopt.h".
89164
89165 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89166
89167         * modules/argp (Files): Add m4/unlocked-io.m4.
89168         (Depends-on): Add extensions.
89169
89170 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89171
89172         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89173         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89174         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89175         Check for program_invocation_name, program_invocation_short_name,
89176         flockfile, funlockfile, features.h, _getopt_long_only_r.
89177
89178 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89179
89180         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89181         its complicated substitute.
89182         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89183         and program_invocation_name.
89184         (__argp_basename) [!_LIBC]: Remove; the only use was
89185         replaced by its body.
89186         (__argp_short_program_name): Change condition from
89187         !defined __argp_short_program_name to
89188         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89189         to match argp-namefrob.h.
89190         (__argp_failure): Don't assume strerror_r returns char *.
89191         * lib/argp-parse.c (N_): Define unconditionally.
89192         (argp_default_options): Fill out initializers with 0 to avoid
89193         gcc warnings.
89194
89195 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89196
89197         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89198         getopt1.c.
89199
89200 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89201
89202         Merge from coreutils.
89203
89204         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89205
89206         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89207         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89208
89209 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89210
89211         Merge from coreutils.
89212
89213         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89214         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89215         for Reliant Unix 5.43.
89216
89217         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89218         (union fooround): Use uintmax_t, not long int.
89219         The rest is a merge from libc:
89220         [defined _LIBC]: Include <shlib-compat.h>.
89221         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89222
89223         * lib/settime.c (settime): Recode to avoid warning with
89224         Sun Forte C 6U2.
89225
89226         * lib/strverscmp.c: Convert to UTF-8.
89227
89228 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89229
89230         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89231         m4/uintmax_t.m4.
89232
89233 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89234
89235         * modules/xalloc-die: New file.
89236         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89237
89238         * modules/md5 (Files): Add m4/uint32_t.m4.
89239         * modules/sha1: Renamed from modules/sha.
89240         (Files):
89241         Rename lib/sha.h to lib/sha1.h.
89242         Rename lib/sha.c to lib/sha1.c.
89243         Rename m4/sha.m4 to m4/sha1.m4.
89244         (lib_SOURCES): Likewise.
89245         (configure.ac): Rename gl_SHA to gl_SHA1.
89246         (Include): sha.h -> sha1.h.
89247
89248 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89249
89250         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89251         * m4/sha1.m4: Renamed from sha.m4.
89252         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89253
89254 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89255
89256         * lib/obstack.h (obstack_empty_p):
89257         Don't assume that chunk->contents is suitably aligned.
89258         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89259         Likewise. Problem reported by Benno in
89260         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89261
89262         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89263         readable.  This could be improved further but it'd take some work.
89264
89265 2004-08-08  Simon Josefsson  <jas@extundo.com>
89266
89267         * modules/xgethostname (Depends-on): Remove exit and error (not
89268         used).
89269
89270         * modules/getpass-gnu: Add getpass.h.
89271         (Depends-on): Add stdbool.
89272         * modules/getpass: Add getpass.h.
89273
89274 2004-08-08  Simon Josefsson  <jas@extundo.com>
89275
89276         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89277         Check getpass declaration.
89278
89279 2004-08-08  Simon Josefsson  <jas@extundo.com>
89280
89281         * lib/xgethostname.c: Don't include error.h (not used).
89282
89283         * lib/getpass.h: Add.
89284         * lib/getpass.c: Include getpass.h first.
89285
89286 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89287
89288         * lib/xalloc-die.c: New file.
89289         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89290         All uses removed.
89291         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89292         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89293         xalloc-die.c.
89294         (_, N_, xalloc_die): Move to xalloc-die.c.
89295         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89296         so that we needn't mess with xalloc_msg_memory_exhausted.
89297
89298         * lib/sha1.h: Renamed from sha.h.
89299         (SHA1_H): Renamed from _SHA_H.
89300         (sha1_ctx): Renamed from sha_ctx.
89301         (sha1_init_ctx): Renamed from sha_init_ctx.
89302         (sha1_process_block): Renamed from sha_process_block.
89303         (sha1_process_bytes): Renamed from sha_process_bytes.
89304         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89305         (sha1_read_ctx): Renamed from sha_read_ctx.
89306         (sha1_stream): Renamed from sha_stream.
89307         (sha1_buffer): Renamed from sha_buffer.
89308         * lib/sha1.c: Likewise; renamed from sha.c.
89309         Do not include <sys/types.h>.
89310         Include <stddef.h> rather than <stdlib.h>.
89311
89312 2004-08-08  Bruno Haible  <bruno@clisp.org>
89313
89314         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89315         FILESYSTEM_PREFIX_LEN.
89316         * lib/progreloc.c: Likewise.
89317         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89318
89319 2004-08-06  Simon Josefsson  <jas@extundo.com>
89320
89321         * modules/progname (Depends-on): Don't depend on stdbool.
89322
89323 2004-08-06  Simon Josefsson  <jas@extundo.com>
89324
89325         * modules/getsubopt: New file.
89326         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89327         getsubopt.
89328
89329 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89330
89331         More merge from coreutils.
89332
89333         * m4/utimens.m4, m4/utimecmp.m4: New files.
89334         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89335         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89336         prereq.m4, sha.m4: Import changes from coreutils.
89337
89338 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89339
89340         More merge from coreutils.
89341         * modules/raise, modules/readtokens0, modules/utimens:
89342         * modules/utimecmp, module/xnanosleep: New files.
89343         * modules/strftime: Add lib/strftime.h.
89344         Change include from <time.h> to "strftime.h".
89345         * modules/yesno: Add lib/yesno.h.
89346         * modules/backupfile: Remove lib/addext.c.
89347         * modules/euidaccess: Add stat-macros.h.
89348         * modules/canonicalize, modules/euidaccess,
89349         modules/filemode, modules/lchown, modules/makepath,
89350         modules/rmdir, modules/stat: Likewise.
89351
89352 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89353
89354         Merge from tar.
89355         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89356         SIZE_MAX is a valid preprocessor constant.
89357         (__argp_basename): Change from "#ifndef _LIBC"
89358         to "#ifndef __argp_short_program_name", so that
89359         we don't compile these functions for tar.
89360
89361         More merges from coreutils.
89362         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89363         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89364         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89365         * lib/addext.c: Remove; no longer needed.
89366         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89367         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89368         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89369         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89370         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89371         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89372         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89373         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89374         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89375         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89376         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89377         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89378         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89379         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89380         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89381         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89382         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89383         Import changes from coreutils.
89384
89385 2004-08-05  Simon Josefsson  <jas@extundo.com>
89386
89387         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89388
89389 2004-08-05  Simon Josefsson  <jas@extundo.com>
89390
89391         * m4/getsubopt.m4: New file.
89392
89393 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89394
89395         Merge from coreutils.
89396
89397         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89398         * m4/getcwd-path-max.m4: New files.
89399
89400         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89401         FILESYSTEM_PREFIX_LEN ->
89402         FILE_SYSTEM_PREFIX_LEN.
89403         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89404         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89405         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89406         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89407
89408         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89409         prerequisite modules now handle the DOS stuff.
89410         Don't check for unistd.h.
89411
89412 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89413
89414         Merge from coreutils.
89415
89416         * lib/.gdb-history: Remove; this doesn't belong here.
89417
89418         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89419         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89420         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89421         * lib/getcwd.c: New files.
89422
89423         * lib/dirname.h: Include <stdbool.h>.
89424         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89425         for consistency with POSIX terminology.  All uses changed.
89426         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89427         (strip_trailing_slashes): Use bool for booleans.
89428         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89429
89430         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89431         sometimes returns a positive errno value even when it succeeds.
89432         (print_errno_message) [!LIBC]: Fall back on strerror if
89433         __strerror_r fails.
89434
89435         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89436         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89437         (longest_relative_suffix): New function.
89438         (path_concat): Use it.  Assume first argument is not NULL.
89439         Port to DOS.  Omit redundant separators.
89440         Report an error instead of returning NULL.
89441         Use mempcpy instead of memcpy.
89442         (xpath_concat): Remove: not declared or used.
89443
89444         * lib/same.h: Include <stdbool.h>
89445         (same_name): Return bool, not int.
89446         * lib/same.c (same_name): Likewise.
89447         (errno): Don't declare; we assume C89 or better now.
89448
89449         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89450         if not already defined.
89451
89452         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89453         * lib/dup-safer.c (errno): Likewise.
89454
89455 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89456
89457         Merge from coreutils.
89458         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89459         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89460         * modules/path-concat: Don't depend on strdup.
89461
89462 2004-08-03  Simon Josefsson  <jas@extundo.com>
89463
89464         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89465         * lib/progname.h: Don't include stdbool.h.
89466
89467 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89468
89469         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89470         * MODULES.html.sh (func_all_modules): Remove fatal.
89471
89472 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89473
89474         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89475
89476 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89477
89478         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89479         working.
89480
89481 2004-08-02  Simon Josefsson  <jas@extundo.com>
89482
89483         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89484         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89485         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89486
89487 2004-08-01  Simon Josefsson  <jas@extundo.com>
89488
89489         * lib/xgetdomainname.c: Include stdlib.h, for free().
89490
89491 2004-07-19  Bruno Haible  <bruno@clisp.org>
89492
89493         * MODULES.html.sh (func_all_modules): Add dummy.
89494
89495 2004-07-16  Simon Josefsson  <jas@extundo.com>
89496
89497         * modules/dummy: New file.
89498
89499 2004-07-16  Simon Josefsson  <jas@extundo.com>
89500
89501         * lib/dummy.c: New file.
89502
89503 2004-07-16  Bruno Haible  <bruno@clisp.org>
89504
89505         * lib/backupfile.h: Add extern "C" for C++.
89506         * lib/closeout.h: Likewise.
89507         * lib/copy-file.h: Likewise.
89508         * lib/findprog.h: Likewise.
89509         * lib/full-write.h: Likewise.
89510         * lib/pathname.h: Likewise.
89511         * lib/progname.h: Likewise.
89512         * lib/stpcpy.h: Likewise.
89513         * lib/stpncpy.h: Likewise.
89514         * lib/strcase.h: Likewise.
89515         * lib/strstr.h: Likewise.
89516         * lib/xalloc.h: Likewise.
89517
89518         * lib/mbswidth.h: Add extern "C" for C++.
89519         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89520
89521 2004-07-13  Robert Millan  <robertmh@gnu.org>
89522
89523         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89524
89525 2004-07-09  Simon Josefsson  <jas@extundo.com>
89526
89527         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89528         failed without this.)
89529
89530 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89531
89532         * modules/chown (Files): Add lib/fchown-stub.c, since
89533         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89534
89535 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89536
89537         * lib/fchown-stub.c: New file.
89538
89539 2004-06-24  Jim Meyering  <jim@meyering.net>
89540
89541         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89542
89543 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89544
89545         * modules/argz: Omit "#include".
89546
89547         * MODULES.html.sh (func_all_modules): Add calloc, to match
89548         2004-06-01 addition of calloc module.
89549
89550 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89551
89552         * m4/argz.m4: New file, which is autoupdated from libtool.
89553
89554 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89555
89556         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89557         libtool.
89558
89559 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89560
89561         * config/srclist-update: Don't insist on "USA." before the
89562         close-comment, as libtool omits the period and puts the */ on a
89563         separate line.
89564         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89565         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89566
89567 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89568
89569         * modules/argz: New file.
89570         * MODULES.html.sh (func_all_modules): Add argz.
89571
89572 2004-06-12  Jim Meyering  <jim@meyering.net>
89573         and  Paul Eggert  <eggert@cs.ucla.edu>
89574
89575         * modules/hash (Files): Add lib/xalloc.h.
89576         * modules/pipe (Depends-on): Add wait-process.
89577         * modules/stat (Depends-on): Add xalloc.
89578         * modules/userspec (Files): Add lib/userspec.h.
89579         * modules/xstrto
89580
89581         Upgrade from gettext-0.13.
89582         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89583         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89584         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89585
89586 2004-06-10  Jim Meyering  <jim@meyering.net>
89587
89588         * lib/calloc.c: New file.
89589
89590 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89591
89592         * lib/getdate.y (yylex): Allow space between sign and number.
89593         Problem reported by Dan Jacobson.
89594
89595 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89596
89597         Merge from coreutils CVS.
89598
89599         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89600         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89601         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89602         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89603         xstrtol.m4: Fix copyright date and/or serial number.
89604
89605         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89606         See if we need an fchown replacement.
89607         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89608         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89609         and use the replacement function if we detect either defect.
89610
89611         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89612         gl_UTIMECMP.
89613
89614 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89615         and  Jim Meyering  <jim@meyering.net>
89616
89617         Merge from coreutils CVS.
89618
89619         * lib/stat-macros.h: New file, with contents from file-type.h
89620         and coreutils' system.h.
89621         * lib/file-type.c: Include "stat-macros.h".
89622         * lib/file-type.h (file_type): Move all macro definitions to new file,
89623         stat-macros.h.
89624
89625         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89626         Wrap old code with this conditional.
89627         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89628         function that does not dereference symlinks.
89629         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89630
89631         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89632         dependency problems.
89633         (xreadlink): Accept new arg SIZE, for efficiency.
89634         All decls and uses changed.
89635         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89636
89637         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89638         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89639
89640         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89641         sysexits.h.
89642
89643 2004-06-01  Jim Meyering  <jim@meyering.net>
89644
89645         * m4/calloc.m4: New file.
89646
89647 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89648
89649         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89650         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89651         Also, fix a typo in a diagnostic.
89652
89653 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89654
89655         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89656         or AC_FUNC_REALLOC.
89657
89658 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89659
89660         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89661         macros to be defined.
89662         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89663         the allocator returns NULL because the requested size is zero.
89664
89665 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89666
89667         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89668         var.  Add comment explaining why libc still defines it.  This
89669         merges the following patch from glibc:
89670         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89671
89672 2004-05-20  Andreas Schwab  <schwab@suse.de>
89673
89674         * m4/free.m4: Replace free if it not known to work, not the other
89675         way round.
89676
89677 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89678
89679         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89680         present in glibc since revision 1.1 of this file.
89681         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89682         obstack_alignment_mask, obstack_alloc, obstack_base,
89683         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89684         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89685         obstack_grow0, obstack_init, obstack_int_grow,
89686         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89687         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89688         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89689         nonexistent functions.
89690
89691 2004-05-18  Karl Berry  <karl@gnu.org>
89692
89693         * config/srclist.txt: break link for vasnprintf.c.
89694
89695 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89696
89697         Port obstack to the AS/400, where pointers are 16 bytes wide and
89698         you cannot cast an integer to a valid pointer.  This patch is
89699         currently waiting to be integrated into glibc; see
89700         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89701
89702         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89703         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89704         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89705         (struct obstack): temp member is now a union of a pointer and
89706         an integer, instead of an integer.  All integer uses changed.
89707         This does not affect the physical layout of struct obstack,
89708         except on hosts (like the AS/400) where the size or alignment of
89709         void * is greater than that of ptrdiff_t.
89710         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89711         __STDC__)]: Store temporary in pointer member of union, not
89712         integer member.
89713         * lib/obstack.c: Include <stddef.h>, for offsetof.
89714         (struct fooalign): Remove; it doesn't need a name.
89715         (union fooround): Change double to long double, and add void *.
89716         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89717         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89718         not a macro.  Hence the values are always int; so remove all
89719         casts-to-int in uses.
89720
89721 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89722
89723         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89724         we can get this patch merged into glibc.
89725
89726 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89727             Paul Eggert  <eggert@cs.ucla.edu>
89728
89729         * m4/argp: Depend on alloca.
89730
89731 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89732             Paul Eggert  <eggert@cs.ucla.edu>
89733
89734         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89735         freecoding.
89736
89737 2004-05-17  Bruno Haible  <bruno@clisp.org>
89738
89739         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89740         precision that consists of a '.' followed by an empty digit string.
89741         Patch by Tor Lillqvist <tml@iki.fi>.
89742
89743 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89744
89745         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89746         for backward compatibility with older code.  We need our own
89747         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89748         it under some other name, and our alloca.h will define it.
89749
89750 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89751             Derek Price  <derek@ximbiot.com>
89752
89753         * lib/alloca.c: Include <alloca.h>, to get our interface.
89754         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89755         include <alloca.h> first.  Use C89 prototype for alloca; this
89756         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89757         Use #elif for simplicity, since we can assume C89 now.
89758         Don't try to source the system alloca.h since it will not be found
89759         and to prevent recursively including its replacement.
89760         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89761         * lib/regex.c: Likewise.
89762
89763 2004-05-16  Derek Price  <derek@ximbiot.com>
89764             Paul Eggert  <eggert@cs.ucla.edu>
89765
89766         getline cleanup.  This changes the getndelim2 API: both order of
89767         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89768         no delimiter).
89769
89770         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89771         interface does that.
89772         (getline): Always use getdelim, so that we don't have two
89773         copies of this code.
89774         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89775         if available.
89776         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89777         (GETNDELIM2_MAXIMUM): New macro.
89778         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89779         instead of the old practice of delim2==0.  All callers changed.
89780         Return -1 on overflow, instead of returning junk.
89781         Do not set *linesize unless allocation succeeds.
89782         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89783         that we include sys/types.h.
89784         * lib/getnline.h: Likewise.
89785         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89786         (getndelim2): Reorder arguments.
89787         * lib/getnline.c (getnline, getndelim):
89788         Don't discard the NMAX argument.
89789         (getnline): Invoke getndelim, to avoid code duplication.
89790         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89791         of (size_t) -1 by callers of the getnline family.
89792
89793 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89794
89795         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89796         Check for gettimeofday.
89797         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89798         Check for settimeofday, stime.
89799
89800 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89801
89802         * lib/nanosleep.c (suspended): Change its type from int to
89803         sig_atomic_t volatile.
89804         (first_call): Make it private to rpl_nanosleep, and have it
89805         be zero initially as that's a bit faster.
89806         (my_usleep): Round up fractional times instead of truncating them,
89807         as this is the usual meaning for 'sleep'.
89808
89809         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89810         doesn't work.
89811         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89812         (ENOSYS): Define if not defined.
89813         (settime): Fall back on stime if it exists and settimeofday fails.
89814         But don't bother with fallbacks if a method fails with errno == EPERM.
89815
89816 2004-05-11  Jim Meyering  <jim@meyering.net>
89817
89818         Prior to this change, the save_cwd caller required read access to the
89819         current directory on most systems (ones with the fchdir function).
89820
89821         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89822         fails, try write-only, and finally, resort to using xgetcwd.
89823
89824 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89825
89826         * lib/obstack.c, obstack.h: Import changes from libc.
89827
89828 2004-04-28  Bruno Haible  <bruno@clisp.org>
89829
89830         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89831         also implicitly appends .exe to executables.
89832         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89833         accepts Windows pathnames.
89834         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89835         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89836         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89837         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89838         Reported by Derek Robert Price <derek@ximbiot.com>.
89839
89840 2004-04-21  Karl Berry  <karl@gnu.org>
89841
89842         * config/srclist.txt (localcharset.c): break sync.
89843
89844 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89845
89846         * m4/host-os.m4: Add a copyright notice.
89847
89848 2004-04-20  Jim Meyering  <jim@meyering.net>
89849
89850         Change UTILS_ to gl_ in AC_DEFINE'd names.
89851         Change utils_- and jm_-prefixed variables, too.
89852         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89853         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89854         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89855
89856         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89857         Don't emit trailing blanks.
89858         Also rename jm_-prefixed variables to have gl_ prefix.
89859
89860         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89861         Also rename jm_-prefixed variables to have gl_ prefix.
89862
89863         * m4/jm-macros.m4: Reflect the renamings.
89864         * m4/prereq.m4: Likewise.
89865
89866 2004-04-20  Jim Meyering  <jim@meyering.net>
89867
89868         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89869         memory.
89870
89871 2004-04-20  Jim Meyering  <jim@meyering.net>
89872             Bruno Haible  <bruno@clisp.org>
89873
89874         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89875         memory when realloc fails.
89876
89877 2004-04-19  Jim Meyering  <jim@meyering.net>
89878
89879         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89880         now that readutmp.c may call `free (0)'.
89881
89882 2004-04-19  Bruno Haible  <bruno@clisp.org>
89883
89884         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89885         * m4/inttypes_h.m4: Likewise.
89886         * m4/stdint_h.m4: Likewise.
89887         * m4/intmax_t.m4: Likewise.
89888         * m4/uintmax_t.m4: Likewise.
89889
89890 2004-04-18  Jim Meyering  <jim@meyering.net>
89891
89892         * m4/prereq.m4: Don't forbid jm_ prefix.
89893
89894         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89895         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89896         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89897         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89898         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89899         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89900         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89901         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89902         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89903         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89904         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89905         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89906         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89907         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89908         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89909         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89910         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89911         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89912         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89913
89914 2004-04-18  Jim Meyering  <jim@meyering.net>
89915
89916         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89917         failure, don't leak memory and do call END_UTMP_ENT.
89918
89919 2004-04-16  Jim Meyering  <jim@meyering.net>
89920
89921         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89922         coreutils' stat program.
89923         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89924
89925 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89926
89927         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89928         C89.
89929         (CHAR_BIT): Remove, since we assume C89.
89930         Include <stdint.h> if available, as per current Autoconf CVS advice.
89931
89932 2004-03-31  Jim Meyering  <jim@meyering.net>
89933
89934         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89935         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89936         * m4/xalloc.m4: Likewise.
89937
89938 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89939
89940         Merge from coreutils.
89941
89942         * m4/inttostr.m4: New file.
89943         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89944         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89945         Require gl_CLOCK_TIME.
89946         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89947
89948 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89949
89950         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89951         not bool, to be more consistent with Unix conventions.
89952         Suggested by Bruno Haible.
89953
89954         Merge from coreutils.
89955
89956         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89957         * lib/umaxtostr.c: New files.
89958
89959         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89960         the usual <time.h> dance.
89961         (get_date): Change signature to support fractional time stamps.
89962         All callers changed.
89963         * lib/getdate.y: Include "getdate.h" first, as we can now
89964         assume C89 and don't need to worry about 'const'.
89965         Similarly, include "unlocked-io.h" near start, not in middle.
89966         Include <limits.h>.
89967         (textint.value): Use long int rather than int.
89968         (textint.digits): Use size_t rather than int.
89969         (BILLION, LOG10_BILLION): New constants.
89970         (parser_control): New member rel_ns.  Members day_ordinal,
89971         time_zone, month, day, hour, minutes, rel_year, rel_month,
89972         rel_day, rel_hour, rel_minutes, rel_seconds
89973         are now long int, not int.  Member seconds is now struct timespec,
89974         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89975         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89976         not int.
89977         (%union.intval): Now long int, not int.
89978         New member timespec.
89979         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89980         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89981         (spec): Now is a timespec or an item list.
89982         (timespec, items): New nonterminals.
89983         (time, rel, relunit, number, get_date):
89984         Add support for fractional seconds.
89985         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89986         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89987         (to_hour): First arg is now long int, not int.
89988         (to_year): Returns long int, not int.
89989         Don't treat year -70 like 70.
89990         (tm_diff): Returns long int, not int.
89991         (lookup_word): Use bool instead of int when appropriate.
89992         (yylex): Use size_t for count, not int.
89993         Detect overflow when parsing large integer constants.
89994         Add support for fractions.
89995         (get_date): Make pointers 'const' if possible.
89996         Use more-portable code to detect integer overflow.
89997         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89998         Don't use ctime; it's not reliable if the year has >4 digits.
89999
90000         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90001         This is for compatibility with BSD.
90002
90003         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90004         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90005         From coreutils' system.h.
90006
90007         * lib/userspec.c: Don't include "posixver.h".
90008         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90009         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90010         compatible extension.  Simplify code by removing a boolean int
90011         that was always nonzero if a string was nonnull.
90012
90013 2004-03-30  Jim Meyering  <jim@meyering.net>
90014
90015         Merge from coreutils.
90016
90017         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90018         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90019         on some systems one must include <grp.h> before it.
90020         Reported by Christian Krackowizer.
90021
90022 2004-03-30  Jim Meyering  <jim@meyering.net>
90023
90024         Merge from coreutils.
90025
90026         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90027
90028         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90029         an empty input stream.
90030
90031         * lib/readtokens.c: Include <stdbool.h>.
90032         (readtoken): Use `size_t' rather than int/long.
90033         All callers adjusted.
90034         Use `bool' rather than `int' where appropriate.
90035         Use memset rather than an explicit loop.
90036         Use x2nrealloc rather than xrealloc.
90037         Allow the use of `\0' as a delimiter.
90038         (readtokens): Likewise.
90039         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90040
90041 2004-03-30  Jim Meyering  <jim@meyering.net>
90042
90043         * m4/realloc.m4: Remove file, since now it does no more than
90044         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90045         the `configure.ac' section of module/realloc.
90046         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90047
90048 2004-03-30  Bruno Haible  <bruno@clisp.org>
90049
90050         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90051         nonnull.
90052
90053 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90054
90055         Merge changes to getloadavg.c from coreutils and Emacs.
90056
90057         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90058         Define to an expression, not to the empty string.
90059         Include cloexec.h and xalloc.h.
90060         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90061         Use set_cloexec_flag rather than rolling our own.
90062         * lib/cloexec.c, lib/cloexec.h: New files.
90063
90064 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90065
90066         * m4/cloexec.m4: New file.
90067
90068 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90069
90070         * lib/getopt.h: Sync with libc CVS.
90071
90072 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90073             Bruno Haible  <bruno@clisp.org>
90074
90075         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90076         mbswidth.
90077
90078 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90079             Bruno Haible  <bruno@clisp.org>
90080
90081         * lib/mbswidth.h: Include <wchar.h> only if
90082         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90083         <wchar.h>.
90084         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90085
90086 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90087
90088         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90089         Sync with libc CVS.
90090         * lib/getopt_int.h: New file, also synced from libc.
90091
90092 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90093
90094         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90095         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90096         Bring back getopt.c, getopt.h, getopt1.c.
90097
90098 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90099
90100         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90101         All uses changed.  Check for sa_sigaction member; this fixes
90102         a bug first reported by Jason Andrade in
90103         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90104
90105 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90106
90107         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90108         '#if' expressions.  Unlike the code it replaces, it does not
90109         depend on (defined _SC_PAGESIZE).  However, it does depend on
90110         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90111         first reported by Jason Andrade in
90112         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90113
90114 2004-02-25  Simon Josefsson  <jas@extundo.com>
90115
90116         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90117
90118 2004-02-25  Simon Josefsson  <jas@extundo.com>
90119
90120         * lib/strdup.h: New file.
90121         * lib/strdup.c: Include it.
90122         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90123         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90124
90125 2004-02-23  Karl Berry  <karl@gnu.org>
90126
90127         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90128         (from fencepost.gnu.org:/gd/gnuorg).
90129
90130 2004-02-23  Karl Berry  <karl@gnu.org>
90131
90132         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90133         * config/srclist.txt: add maintain/standards documents.
90134
90135 2004-02-18  Bruno Haible  <bruno@clisp.org>
90136
90137         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90138         Reported by Derek Robert Price <derek@ximbiot.com>.
90139
90140 2004-02-16  Karl Berry  <karl@gnu.org>
90141
90142         * config/mkinstalldirs, install-sh: update from automake.
90143
90144 2004-02-06  Karl Berry  <karl@gnu.org>
90145
90146         * m4/po.m4: update from gettext 0.14.1.
90147
90148 2004-02-06  Karl Berry  <karl@gnu.org>
90149
90150         * lib/config.charset: update from gettext 0.14.1.
90151
90152 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90153
90154         Add comments and code, prompted by suggestions from Bruno Haible
90155         for sh-quote.
90156         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90157         describing the enum quoting_style values.
90158         * lib/quotearg.c (quotearg_alloc): New function.
90159         (quotearg_buffer_restyled): Treat lone { and } as special.
90160         Treat = as special.  Work around bug with older shells
90161         that "see" a '\' that is really the 2nd byte of a multibyte char.
90162         Quote empty string with shell_quoting_style.
90163
90164 2004-02-03  Bruno Haible  <bruno@clisp.org>
90165
90166         * m4/pipe.m4: New file, from GNU gettext.
90167
90168 2004-02-03  Bruno Haible  <bruno@clisp.org>
90169
90170         * lib/pipe.h: New file, from GNU gettext.
90171         * lib/pipe.c: New file, from GNU gettext.
90172
90173 2004-01-27  Bruno Haible  <bruno@clisp.org>
90174
90175         * m4/execute.m4: New file, from GNU gettext.
90176
90177 2004-01-27  Bruno Haible  <bruno@clisp.org>
90178
90179         * lib/execute.h: New file, from GNU gettext.
90180         * lib/execute.c: New file, from GNU gettext.
90181         * lib/w32spawn.h: New file, from GNU gettext.
90182
90183 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90184
90185         Merge from diffutils.
90186
90187         * lib/file-type.c (file_type): Add typed memory objects.
90188         * lib/file-type.h (S_TYPEISTMO): New macro.
90189
90190         * lib/c-stack.h (c_stack_action): Remove argv argument.
90191         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90192         (die): Don't calculate message unless segv_action returns.
90193         (get_stack_location, min_address_from_argv, max_address_from_argv,
90194         volatile stack_base, volatile_stack_size): Remove.
90195         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90196         that every segmentation violation is a stack overflow.  (Ouch!)
90197         See Debian bug 136249 (still outstanding) for more info about why
90198         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90199
90200 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90201
90202         Exit-status fix from coreutils.
90203
90204         Use exit_failure consistently in place of EXIT_FAILURE,
90205         so that program exit statuses are consistent on failure.
90206
90207         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90208         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90209         * lib/argmatch.h: Comment fix to match the above.
90210         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90211         Now a macro referring to exit_failure, instead of a separate
90212         variable.  Include "exitfail.h" to get it.
90213         * lib/xstrtol.h: Include "exitfail.h".
90214         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90215
90216         * lib/long-options.c (parse_long_options): Use prototype
90217         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90218         for clarity.
90219
90220 2004-01-21  Jim Meyering  <jim@meyering.net>
90221
90222         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90223         so as not to conflict with a different-sized __mktime_internal
90224         function in GNU libc.
90225         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90226         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90227
90228 2004-01-20  Karl Berry  <karl@gnu.org>
90229
90230         * config/config.guess: update from config.
90231
90232         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90233
90234 2004-01-20  Bruno Haible  <bruno@clisp.org>
90235
90236         Safer stack allocation.
90237         * lib/setenv.c: Include allocsa.h.
90238         (alloca): Remove fallback definition.
90239         (freea): Remove macro.
90240         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90241         instead of freea.
90242
90243 2004-01-20  Bruno Haible  <bruno@clisp.org>
90244
90245         * m4/eealloc.m4: New file, from GNU gettext.
90246
90247 2004-01-20  Bruno Haible  <bruno@clisp.org>
90248
90249         * m4/allocsa.m4: New file, from GNU gettext.
90250
90251 2004-01-20  Bruno Haible  <bruno@clisp.org>
90252
90253         * lib/xallocsa.h: New file, from GNU gettext.
90254         * lib/xallocsa.c: New file, from GNU gettext.
90255
90256 2004-01-20  Bruno Haible  <bruno@clisp.org>
90257
90258         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90259
90260 2004-01-20  Bruno Haible  <bruno@clisp.org>
90261
90262         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90263         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90264         specially.
90265
90266 2004-01-20  Bruno Haible  <bruno@clisp.org>
90267
90268         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90269         patch.
90270
90271 2004-01-20  Bruno Haible  <bruno@clisp.org>
90272
90273         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90274
90275 2004-01-20  Bruno Haible  <bruno@clisp.org>
90276
90277         * lib/eealloc.h: New file.
90278
90279 2004-01-20  Bruno Haible  <bruno@clisp.org>
90280
90281         * lib/binary-io.h: Avoid warnings on Cygwin.
90282
90283 2004-01-20  Bruno Haible  <bruno@clisp.org>
90284
90285         * lib/allocsa.h: New file, from GNU gettext.
90286         * lib/allocsa.c: New file, from GNU gettext.
90287
90288 2004-01-18  Karl Berry  <karl@gnu.org>
90289
90290         * doc/gpl.texi, doc/lgpl.texi: new files.
90291
90292 2004-01-18  Karl Berry  <karl@gnu.org>
90293
90294         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90295         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90296
90297 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90298
90299         Merge from coreutils.
90300
90301         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90302         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90303         (gl_DEFAULT_POSIX2_VERSION): Move
90304         the documentation from 'configure' into 'config.hin',
90305         so that 'configure --help' isn't burdened by it and
90306         we don't have to worry about its formatting there.
90307         Reword the documentation so that it's more succinct
90308         and can be run together into a single paragraph.
90309         * m4/same.m4 (gl_SAME): Check for pathconf.
90310
90311 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90312
90313         Merge from coreutils.
90314
90315         * lib/posixver.c: Include posixver.h.
90316
90317         * lib/same.c: Include <stdbool.h>, <limits.h>.
90318         (_POSIX_NAME_MAX): Define if not defined.
90319         (MIN): New macro.
90320         (same_name): If file names are silently truncated, report
90321         that the file names are the same if they are the same after
90322         the silent truncation.
90323
90324         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90325         conversion function.
90326         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90327         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90328         longer needed.
90329
90330 2004-01-15  Jim Meyering  <jim@meyering.net>
90331
90332         Merge from coreutils.
90333
90334         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90335         if no library is required.
90336         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90337         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90338         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90339         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90340         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90341         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90342         value, $ac_cv_search_crypt, if it's "none required".
90343         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90344         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90345         not gl_FUNC_GETLOADAVG.
90346         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90347         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90348
90349 2004-01-15  Jim Meyering  <jim@meyering.net>
90350
90351         Merge from coreutils.
90352
90353         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90354         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90355         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90356
90357         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90358         optional configure-time default.
90359
90360         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90361
90362         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90363
90364 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90365
90366         Merge from coreutils.
90367
90368         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90369         value, $ac_cv_search_nanosleep, if it's "none required".
90370
90371 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90372
90373         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90374         with like-named macro in fnmatch.c.
90375         (EXT): Use an internal constant instead.
90376
90377         Merge fnmatch patches from glibc.
90378         * lib/fnmatch.c (mbsinit): Remove define.
90379         Add libc_hidden_ver (__fnmatch, fnmatch).
90380         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90381         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90382
90383 2004-01-14  Karl Berry  <karl@gnu.org>
90384
90385         * config/install-sh: update from automake.
90386
90387 2004-01-13  Karl Berry  <karl@gnu.org>
90388
90389         * config/install-sh: update from automake.
90390
90391 2004-01-09  Karl Berry  <karl@gnu.org>
90392
90393         * config/install-sh: update from automake.
90394
90395 2004-01-05  Karl Berry  <karl@gnu.org>
90396
90397         * config/config.{sub,guess}: update from config.
90398
90399 2003-12-31  Karl Berry  <karl@gnu.org>
90400
90401         * config/depcomp: update from automake.
90402
90403 2003-12-14  Karl Berry  <karl@gnu.org>
90404
90405         * lib/config.charset: update from gettext-runtime.
90406
90407 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90408
90409         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90410         Bug reported by Alfred M. Szmidt.
90411
90412 2003-12-03  Bruno Haible  <bruno@clisp.org>
90413
90414         * m4/gettext.m4: Upgrade from gettext-0.13.
90415         * m4/po.m4: Upgrade from gettext-0.13.
90416         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90417         * m4/intmax.m4: New file, from gettext-0.13.
90418         * m4/printf-posix.m4: New file, from gettext-0.13.
90419
90420 2003-11-29  Karl Berry  <karl@gnu.org>
90421
90422         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90423
90424 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90425             Bruno Haible  <bruno@clisp.org>
90426
90427         * lib/printf-parse.h: Don't include sys/types.h.
90428         (ARG_NONE): New macro.
90429         (char_directive): Change type of *arg_index fields to size_t.
90430         * lib/printf-parse.c: Don't include sys/types.h.
90431         (SSIZE_MAX): Remove macro.
90432         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90433         Remove unnecessary overflow check.
90434         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90435         fields.
90436
90437 2003-11-25  Bruno Haible  <bruno@clisp.org>
90438
90439         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90440
90441 2003-11-25  Bruno Haible  <bruno@clisp.org>
90442
90443         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90444         gt_TYPE_SSIZE_T.
90445
90446 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90447
90448         * modules/alloca: Remove dependency on xalloc.
90449
90450 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90451
90452         * lib/alloca.c: Remove dependency on xalloc module.
90453         (xalloc_die): Remove.
90454         (memory_full) [!defined emacs]: New macro.
90455         [!defined emacs]: Don't include xalloc.h.
90456         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90457         address arithmetic overflows.  Change datatypes a bit to avoid
90458         unnecessary casts.
90459
90460 2003-11-22  Jim Meyering  <jim@meyering.net>
90461
90462         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90463         s/size/size_t/.
90464
90465 2003-11-21  Karl Berry  <karl@gnu.org>
90466
90467         * config/config.{sub,guess}: update from config.
90468
90469 2003-11-18  Karl Berry  <karl@gnu.org>
90470
90471         * config/config.{sub,guess}: update from config.
90472
90473         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90474
90475 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90476
90477         * README: Mention that S+T cannot overflow if S is the size of
90478         an existing object and T is sufficiently small.
90479
90480 2003-11-17  Jim Meyering  <jim@meyering.net>
90481
90482         On systems without utime and without a utimes function capable of
90483         dealing with a NULL struct utimbuf* argument, this utime replacement
90484         could -- in unusual circumstances -- leak a file descriptor.
90485         * lib/utime.c: Include <unistd.h> and <errno.h>.
90486         (utime_null): Be sure to close `fd' and to preserve errno.
90487         Reported by Geoff Collyer via Arnold Robbins.
90488
90489 2003-11-17  Bruno Haible  <bruno@clisp.org>
90490
90491         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90492         (Depends-on): Add xsize.
90493
90494 2003-11-17  Bruno Haible  <bruno@clisp.org>
90495
90496         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90497
90498 2003-11-17  Bruno Haible  <bruno@clisp.org>
90499
90500         * lib/vasnprintf.c (alloca): Remove fallback definition.
90501         (freea): Remove definition.
90502         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90503         Reported by Paul Eggert.
90504
90505 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90506             Bruno Haible  <bruno@clisp.org>
90507
90508         Protect against address arithmetic overflow.
90509         * lib/printf-args.h: Include stddef.h.
90510         (arguments): Change type of field 'count' to size_t.
90511         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90512         'unsigned int' where appropriate.
90513         * lib/printf-parse.h: Include sys/types.h.
90514         (char_directive): Change type of *arg_index fields to ssize_t.
90515         (char_directives): Change type of fields 'count', max_*_length to
90516         size_t.
90517         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90518         (SSIZE_MAX): Define fallback value.
90519         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90520         instead of 'int' where appropriate. Check a_allocated, d_allocated
90521         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90522         * lib/vasnprintf.c: Include xsize.h.
90523         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90524         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90525         overflow. Avoid wraparound when converting a width or precision from
90526         decimal to binary.
90527
90528 2003-11-16  Bruno Haible  <bruno@clisp.org>
90529
90530         Update from GNU gettext.
90531         * lib/printf-parse.c: Generalize to it can be compiled for wide
90532         strings.
90533         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90534         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90535         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90536         SNPRINTF): New macros.
90537         Don't include <alloca.h> if the file is used inside libintl.
90538         (local_wcslen): New function, for Solaris 2.5.1.
90539         (VASNPRINTF): Use it instead of wcslen.
90540
90541 2003-11-16  Bruno Haible  <bruno@clisp.org>
90542
90543         * lib/xsize.h (xmax): New function.
90544         (xsum, xsum3, xsum4): Declare as "pure" functions.
90545
90546 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90547
90548         * modules/xalloc (Files): Undo latest change, since xalloc.h
90549         no longer needs SIZE_MAX or PTRDIFF_MAX.
90550
90551 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90552
90553         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90554         gl_PTRDIFF_MAX.
90555
90556 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90557
90558         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90559         "return", to pacify some unknown compiler.  Problem reported
90560         by Joerg Schilling.
90561
90562 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90563
90564         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90565         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90566         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90567         heuristic is just as accurate as far as we know, and it removes a
90568         dependency on size_max.m4 and ptrdiff_max.m4.
90569
90570 2003-11-11  Bruno Haible  <bruno@clisp.org>
90571
90572         * modules/xsize (Files): Add m4/size_max.m4.
90573         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90574
90575 2003-11-11  Bruno Haible  <bruno@clisp.org>
90576
90577         * m4/size_max.m4: New file.
90578         * m4/ptrdiff_max.m4: New file.
90579         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90580         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90581         (gl_XALLOC): Invoke it.
90582
90583 2003-11-11  Bruno Haible  <bruno@clisp.org>
90584
90585         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90586         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90587         defined.
90588
90589 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90590
90591         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90592         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90593         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90594         From Bruno Haible.
90595         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90596         not (size_t) -1, since it's defined here.
90597
90598 2003-11-09  Karl Berry  <karl@gnu.org>
90599
90600         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90601
90602 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90603
90604         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90605         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90606         Reject sizes of exactly SIZE_MAX bytes.
90607         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90608         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90609
90610 2003-11-05  Bruno Haible  <bruno@clisp.org>
90611
90612         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90613         SIZE_MAX defined in <limits.h> on Solaris.
90614
90615 2003-11-04  Jim Meyering  <jim@meyering.net>
90616
90617         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90618         variable names, rather than @VAR@.
90619         * modules/poll: Likewise.
90620
90621 2003-11-04  Bruno Haible  <bruno@clisp.org>
90622
90623         * modules/xsize: New file.
90624         * modules/linebreak: Depend on xsize.
90625         * MODULES.html.sh (func_all_modules): Add xsize.
90626
90627 2003-11-04  Bruno Haible  <bruno@clisp.org>
90628
90629         * m4/xsize.m4: New file.
90630
90631 2003-11-04  Bruno Haible  <bruno@clisp.org>
90632
90633         * lib/xsize.h: New file.
90634         * lib/linebreak.c: Include xsize.h.
90635         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90636         argument for overflow.
90637         Suggested by Paul Eggert.
90638
90639 2003-11-03  Karl Berry  <karl@gnu.org>
90640
90641         * config/config.{guess,sub}: update from config.
90642
90643 2003-11-03  Jim Meyering  <jim@meyering.net>
90644
90645         * modules/userspec (lib_SOURCES): Add userspec.h.
90646         (Include): Add "userspec.h".
90647         Improve description.
90648
90649 2003-11-03  Jim Meyering  <jim@meyering.net>
90650
90651         * lib/userspec.c: Include "userspec.h".
90652         * lib/userspec.h: New file.
90653
90654 2003-11-03  Bruno Haible  <bruno@clisp.org>
90655
90656         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90657
90658 2003-11-03  Bruno Haible  <bruno@clisp.org>
90659
90660         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90661         available, to avoid (extremely rare) race condition.
90662         Suggested by Paul Eggert.
90663
90664 2003-11-02  Karl Berry  <karl@gnu.org>
90665
90666         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90667
90668 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90669
90670         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90671         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90672         (read_filesystem_list): Set and use me_type_malloced.
90673         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90674         whatever the type happens to be), for brevity and consistency.
90675         Check for size calculation overflow on Alphas running OSF/1.
90676
90677 2003-10-31  Jim Meyering  <jim@meyering.net>
90678
90679         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90680
90681         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90682
90683 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90684             Bruno Haible  <bruno@clisp.org>
90685
90686         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90687         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90688
90689 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90690
90691         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90692         netbsd*-gnu*.  Suggested by Robert Millan.
90693
90694 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90695
90696         * modules/group-member: Depend on stdbool.
90697
90698 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90699
90700         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90701
90702 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90703
90704         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90705         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90706         after the 'gnu' in these cases.  This fixes some bugs in the
90707         previous change, and is based on suggestions by Robert Millan.
90708
90709 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90710
90711         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90712         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90713         no longer needed.
90714         * lib/quotearg.c (quotearg_n_options): Use it.
90715         * lib/group-member.c: Include <stdbool.h>.
90716         (free_group_info): Arg is now const *; don't free arg.
90717         (get_group_info): Now returns bool and accepts struct group_info *,
90718         rather than returning a malloc'ed struct group_info *.
90719         All uses changed.  Check for overflow in internal size calculation.
90720
90721         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90722         rather than xmalloc/xrealloc.
90723         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90724         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90725         conformance bug: the old code used a pointer after freeing the
90726         storage that it addressed.
90727         * lib/hash.c (hash_initialize): Simplify the code by using
90728         xalloc_oversized rather than doing it by hand.
90729         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90730         the buffer preserved.  Use free and xmalloc instead.
90731         * lib/quotearg.c (quotearg_n_options): Likewise.
90732         Use a simpler test for size overflow.  Don't use xalloc_oversized
90733         because unsigned int might be wider than size_t (!); this suggests
90734         that we should switch from unsigned int to size_t for slot numbers.
90735
90736 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90737
90738         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90739         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90740         NetBSD kernels.  Requested by Richard Stallman.
90741
90742 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90743
90744         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90745         to allocate the returned structure.  Do not allocate a subarray,
90746         as x2nrealloc will do that.
90747         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90748         instead of xnrealloc.
90749         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90750
90751 2003-10-27  Bruno Haible  <bruno@clisp.org>
90752
90753         * lib/stdbool_.h: Better support for BeOS.
90754
90755 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90756
90757         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90758         now uses inline.
90759
90760 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90761
90762         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90763         callers that want to do their own size-overflow checking.  Include
90764         <stdbool.h>, since xalloc_oversized returns bool.
90765         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90766         to use xalloc_oversized.
90767
90768         Add two functions x2realloc, x2nrealloc, for programs that grow
90769         arrays dynamically by doubling their sizes.
90770         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90771         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90772         New functions.
90773
90774         Port to C99 semantics for 'inline' of external functions.
90775         Bug reported by Bruno Haible.
90776         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90777         with the old contents of xnmalloc.
90778         (xnmalloc, xmalloc): Use it.
90779         (xnrealloc_inline): New static inline function,
90780         with the old contents of xnrealloc.
90781         (xnrealloc, xrealloc): Use it.
90782
90783         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90784         that.
90785
90786 2003-10-26  Karl Berry  <karl@gnu.org>
90787
90788         * config/srclist.txt (COPYING.DOC): no longer available from
90789         /gd/gnuorg; don't know where the ultimate source is.
90790
90791 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90792
90793         Fix several address-calculation bugs in the hash modules,
90794         plus some minor code cleanup.
90795
90796         * lib/hash.h: Include <stdbool.h>, for bool.
90797         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90798         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90799         hash_get_n_entries, hash_get_max_bucket_length,
90800         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90801         hash_rehash): Use size_t rather than unsigned.
90802         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90803         hash_get_n_buckets_used, hash_get_n_entries,
90804         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90805         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90806         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90807         Likewise.
90808         (SIZE_MAX): Define if not defined.
90809         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90810         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90811         hash_print):
90812         Use const * when possible.
90813         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90814         (check_tuning): Fix bug: if tuning parameters were very close to
90815         0 or 1, rounding errors could have caused subscript violations.
90816         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90817         (hash_initialize): Add 'fail:' label
90818         to free table and return NULL, and use it to simplify code.
90819         Use calloc rather than clearing the storage ourself.
90820         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90821         buffer size calculations.
90822         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90823         Include <stddef.h>, for size_t.
90824         * lib/hash-pjw.c (hash_pjw): Likewise.
90825         Switch to method described by Bruno Haible.
90826         Include <limits.h>, for CHAR_BIT.
90827         (SIZE_BITS): New macro.
90828
90829 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90830
90831         * m4/getline.m4 (AM_FUNC_GETLINE):
90832         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90833         hosts.  Problem reported by Derek Robert Price in
90834         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90835         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90836         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90837
90838 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90839
90840         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90841         ceiling the allocation at NMAX bytes rather than silently
90842         discarding input bytes before NMAX is reached.  This makes
90843         a difference only if NMAX exceeds SIZE_MAX / 2.
90844
90845         * lib/obstack.c: Merge from glibc.
90846         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90847         Add libc_hidden_def (_obstack_newchunk).
90848         (_obstack_free) [! defined _LIBC]: Remove.
90849         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90850         a clone of the function body.
90851         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90852         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90853
90854         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90855         glibc.
90856         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90857         arg to memcpy.
90858
90859         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90860         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90861         Don't use lvalue casts, as GCC plans to remove support for them
90862         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90863         was also present in the non-GCC version, indicating that this
90864         code had always been buggy and had never been widely used.
90865         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90866         Use the fast variant of each macro, rather than copying the
90867         definiens of the fast variant; that way, we'll be more likely to
90868         catch future bugs in the fast variants.
90869
90870 2003-10-20  Bruno Haible  <bruno@clisp.org>
90871
90872         * modules/wait-process: New file.
90873         * MODULES.html.sh (func_all_modules): Add wait-process.
90874
90875 2003-10-20  Bruno Haible  <bruno@clisp.org>
90876
90877         * m4/wait-process.m4: New file.
90878
90879 2003-10-20  Bruno Haible  <bruno@clisp.org>
90880
90881         * lib/wait-process.h: New file, from GNU gettext.
90882         * lib/wait-process.c: New file, from GNU gettext.
90883
90884 2003-10-19  Jim Meyering  <jim@meyering.net>
90885
90886         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90887         HPUX 10.20.
90888
90889 2003-10-18  Karl Berry  <karl@gnu.org>
90890
90891         * config/config.guess: update from config.
90892
90893 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90894
90895         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90896         (getgroups): First arg is int, not size_t.
90897         Don't let 'free' mangle errno.
90898
90899 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90900
90901         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90902
90903 2003-10-16  Karl Berry  <karl@gnu.org>
90904
90905         * config/config.{guess,sub}: update from config.
90906
90907 2003-10-16  Jim Meyering  <jim@meyering.net>
90908
90909         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90910         memcpy.
90911
90912 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90913
90914         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90915         (SIZE_MAX): Remove.
90916         (new_exclude, add_exclude_file): Initial size no longer needs to
90917         be a power of 2.
90918         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90919         our own address arithmetic overflow checking.
90920
90921         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90922         (fnmatch): Do not alloca more than 2000 wide characters;
90923         instead, use malloc for large buffers.
90924         Check for address arithmetic overflow, and return -1
90925         with errno set to ENOMEM in that case.
90926         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90927         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90928         instead, return -1.  Check for address arithmetic overflow.
90929
90930 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90931
90932         Handle invalid suffixes and overflow independently, so that
90933         callers can treat them independently as needed.  Fix some bugs in
90934         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90935         suffix for a human-readable blocksize.  The major caller-visible
90936         change is the addition of a new
90937         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90938         that both overflow and suffix chars were found.
90939
90940         * lib/human.c (humblock): Don't check separately for invalid suffix
90941         char; that is xstrtoumax's job (now that its bug is fixed).
90942         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90943         INTMAX_MAX]: New macros.
90944         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90945         TYPE_MAXIMUM): New macros.
90946         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90947         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90948         if overflow occurs, as it's what __strtol does and it's more useful
90949         in practice.
90950         (__xstrtol): If __strtol reports some error other than ERANGE,
90951         reflect it to the caller as LONGINT_INVALID.  If it reports
90952         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90953         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90954         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90955         value.
90956         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90957         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90958         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90959         [defined UINTMAX_MAX]: New macros.
90960
90961 2003-10-14  Bruno Haible  <bruno@clisp.org>
90962
90963         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90964
90965 2003-10-14  Bruno Haible  <bruno@clisp.org>
90966
90967         * m4/sig_atomic_t: New file, from GNU gettext.
90968         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90969
90970 2003-10-14  Bruno Haible  <bruno@clisp.org>
90971
90972         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90973         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90974         Also use volatile where needed.
90975
90976 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90977
90978         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90979         Change maintainer from Bruno Haible to 'all'.
90980
90981 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90982
90983         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90984
90985 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90986
90987         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90988         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90989         and define in terms of the other primitives.
90990         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90991         (SIZE_MAX): Define if not already defined.
90992         (array_size_overflow): New function.
90993         (xalloc_die): Abort instead of exiting if 'error' returns.
90994         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90995         (xmalloc, xrealloc): Use them.
90996         (xcalloc): Check for address arithmetic overflow.
90997         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90998         a bit faster than strcpy.
90999
91000 2003-10-10  Simon Josefsson  <jas@extundo.com>
91001
91002         * modules/argp (Depends-on): Add restrict and strcase.
91003
91004 2003-10-10  Simon Josefsson  <jas@extundo.com>
91005
91006         * m4/argp.m4: Add AC_C_INLINE.
91007
91008 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91009
91010         Merge getpass from libc, plus a few fixes.
91011
91012         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91013         Include <stdbool.h>.
91014         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91015         __fsetlocking to empty.
91016         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91017         do include <bits/libc-lock.h>.
91018         Do not include <fcntl.h>; not needed.
91019         [_LIBC]: Include <wchar.h>.
91020         (NOTCANCEL_MODE): New macro.
91021         (flockfile, funlockfile) [_LIBC]: New macros.
91022         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91023         [!_LIBC]: New macros.
91024         (call_fclose): New function.
91025         (getpass): Use it.  Save tty stream separately; this simplifies the
91026         code and makes it more reliable if stdin happens to equal stdout.
91027         Invoke __fsetlocking on tty.
91028         Handle thread cancellation if needed.
91029         Namespace cleanup (use __tcgetattr, __getline).
91030         Use bool for Booleans.
91031         [USE_IN_LIBIO]: Handle wide streams.
91032         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91033         stream might go where.
91034
91035         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91036         doesn't have to include <stdio.h> before us.
91037         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91038         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91039         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91040         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91041         if not declared, so that we can use getpass.c code from libc without
91042         rewriting it.
91043         (flockfile, ftrylockfile, funlockfile): New macros.
91044
91045 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91046
91047         * modules/getpass: Depend on stdbool.
91048
91049 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91050
91051         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91052
91053 2003-10-07  Karl Berry  <karl@gnu.org>
91054
91055         * config/config.{guess,sub}: update from config.
91056
91057 2003-10-06  Jim Meyering  <jim@meyering.net>
91058             Bruno Haible  <bruno@clisp.org>
91059
91060         This lets translators provide better translations for the
91061         "Written by ..." part of --version output.
91062         * lib/version-etc.h: Include stdarg.h.
91063         (version_etc_copyright): Declare as readonly.
91064         (version_etc): Make this function variadic with a NULL-terminated list
91065         of author name strings.
91066         (version_etc_va): New declaration.
91067         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91068         (version_etc_copyright): Declare as readonly.
91069         (version_etc_va): New function. Provide a different translatable string
91070         for each possible number of authors < 10. Abbreviate when there are 10
91071         authors or more.
91072         (version_etc): Make this function variadic. Call version_etc_va.
91073         Suggestion from Gary V. Vaughan.
91074
91075         * lib/long-options.h (parse_long_options): Change prototype: the
91076         authors string is moved to the end and becomes variadic.
91077         * lib/long-options.c: Include stdarg.h.
91078         (parse_long_options): Make this function variadic, too.
91079         Call version_etc_va, not version_etc.
91080
91081 2003-10-06  Bruno Haible  <bruno@clisp.org>
91082
91083         * modules/version-etc-2: Remove file.
91084         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91085
91086 2003-10-06  Bruno Haible  <bruno@clisp.org>
91087
91088         * modules/fatal-signal: New file.
91089         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91090
91091 2003-10-06  Bruno Haible  <bruno@clisp.org>
91092
91093         * m4/fatal-signal.m4: New file.
91094         * m4/signalblocking.m4: New file, from GNU gettext.
91095
91096 2003-10-06  Bruno Haible  <bruno@clisp.org>
91097
91098         * lib/version-etc-2.h: Remove file.
91099         * lib/version-etc-2.c: Remove file.
91100
91101 2003-10-06  Bruno Haible  <bruno@clisp.org>
91102
91103         * lib/fatal-signal.h: New file, from GNU gettext.
91104         * lib/fatal-signal.c: New file, from GNU gettext.
91105
91106 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91107
91108         * README: Rework advice for preventing empty .o files.
91109         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91110         not <sys/types.h>.
91111
91112 2003-10-04  Karl Berry  <karl@gnu.org>
91113
91114         * lib/argp*: update from libc.
91115
91116 2003-10-04  Karl Berry  <karl@gnu.org>
91117
91118         * config/config.{guess,sub}: update from config.
91119
91120 2003-10-02  Bruno Haible  <bruno@clisp.org>
91121
91122         * modules/lchown (Include): Add lchown.h.
91123         * modules/time_r (Include): Use "..." syntax.
91124         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91125
91126 2003-10-01  Simon Josefsson  <jas@extundo.com>
91127
91128         * MODULES.html.sh (func_all_modules): Move gethostname from section
91129         'based on' to section 'lacking' POSIX:2001.
91130
91131 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91132
91133         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91134         to output mode on the same stream.
91135
91136 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91137
91138         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91139         Fix arg typo in previous patch.
91140
91141 2003-09-28  Jim Meyering  <jim@meyering.net>
91142
91143         * lib/error.c: Correct cpp indentation.
91144
91145 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91146
91147         * modules/free: New file.
91148
91149 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91150
91151         * m4/free.m4: New file.
91152
91153 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91154
91155         * lib/minmax.h (MIN, MAX)
91156         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91157         Omit the special code that used __typeof__, since we worry that
91158         it could be more trouble than it's worth.  See:
91159         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91160         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91161
91162         * lib/free.c: New file.
91163
91164 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91165
91166         Trivial fixes to Makefile.am parts of module listings.
91167         * modules/strstr: Append strstr.h to lib_SOURCES.
91168         * modules/strcase: Likewise, for strcase.h.
91169
91170 2003-09-27  Karl Berry  <karl@gnu.org>
91171
91172         * config/mkinstalldirs: update from automake.
91173
91174 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91175
91176         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91177         (error_tail): Do not loop, reallocating temporary buffer, since
91178         the output cannot contain more wide characters than the input
91179         contains bytes, the size must be big enough already.  This avoids
91180         one potential size overflow calculation.  Check for size overflow
91181         when calculating temporary buffer size.  Free temporary buffer
91182         when done, if it was allocated with malloc; this plugs a memory
91183         leak.  Remove casts from void * to pointers, that are no longer
91184         needed now that we're assuming C89 or better.
91185
91186         Merge error changes from glibc.
91187
91188         * lib/error.c, error.h: Update copyright notice header to match glibc.
91189         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91190         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91191         Disable cancellation while printing error.
91192         * lib/error.h: Prepend __ to parameter names.
91193
91194 2003-09-26  Jim Meyering  <jim@meyering.net>
91195
91196         * lib/error.c (error_tail): Move some declarations
91197         into inner scope where the local variables are used.
91198
91199 2003-09-26  Bruno Haible  <bruno@clisp.org>
91200
91201         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91202         stpncpy().
91203         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91204
91205 2003-09-26  Bruno Haible  <bruno@clisp.org>
91206
91207         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91208         (stpncpy): Define as alias for gnu_stpncpy.
91209         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91210
91211 2003-09-25  Simon Josefsson  <jas@extundo.com>
91212
91213         * lib/xgetdomainname.h: New file.
91214         * lib/xgetdomainname.c: New file.
91215
91216 2003-09-25  Simon Josefsson  <jas@extundo.com>
91217             Bruno Haible  <bruno@clisp.org>
91218
91219         * modules/getdomainname: New file.
91220         * modules/xgetdomainname: New file.
91221         * MODULES.html.sh (func_all_modules): Add getdomainname,
91222         xgetdomainname.
91223
91224 2003-09-25  Simon Josefsson  <jas@extundo.com>
91225             Bruno Haible  <bruno@clisp.org>
91226
91227         * m4/getdomainname.m4: New file.
91228
91229 2003-09-25  Simon Josefsson  <jas@extundo.com>
91230             Bruno Haible  <bruno@clisp.org>
91231
91232         * lib/getdomainname.h: New file.
91233         * lib/getdomainname.c: New file.
91234
91235 2003-09-25  Karl Berry  <karl@gnu.org>
91236
91237         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91238
91239 2003-09-25  Karl Berry  <karl@gnu.org>
91240
91241         * config/install-sh: update from automake.
91242
91243 2003-09-25  Bruno Haible  <bruno@clisp.org>
91244
91245         * modules/version-etc-2: New file, from modules/version-etc with
91246         modifications.
91247         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91248
91249 2003-09-25  Bruno Haible  <bruno@clisp.org>
91250
91251         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91252         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91253
91254 2003-09-24  Simon Josefsson  <jas@extundo.com>
91255
91256         * modules/xgethostname: Add xgethostname.h.
91257
91258 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91259
91260         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91261         the buffer associated with the argument.  Bug reported by
91262         Simon Josefsson.
91263
91264 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91265
91266         * README: Document assumptions that 'int' is at least 32 bits
91267         wide, that integer arithmetic is 2's complement without overflow,
91268         that there are no holes in integer values, that adding sizes of
91269         two nonoverlapping objects can't overflow, and that all-bits-zero
91270         yields scalar zero.  Fix spelling and capitalization typos.
91271
91272 2003-09-19  Karl Berry  <karl@gnu.org>
91273
91274         * lib/argp.h: update from libc.
91275
91276 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91277
91278         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91279         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91280         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91281
91282 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91283
91284         * gnulib-tool: Use "test -h", not "test -L", for portability
91285         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91286         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91287         (sed_extract_prog): Issue s commands one-by-one, rather than
91288         using \| in one s command.
91289
91290 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91291
91292         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91293         input error, instead of returning NULL the next time we are called
91294         (and therefore losing track of errno).
91295
91296 2003-09-16  Bruno Haible  <bruno@clisp.org>
91297
91298         * gnulib-tool (func_create_testdir): Warn about duplicated
91299         dependencies.
91300
91301 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91302
91303         * modules/argmatch, modules/fatal, modules/obstack,
91304         modules/xalloc, modules/xgethostname: Sort dependencies by
91305         importance, not alphabetically.
91306
91307 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91308
91309         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91310         fails, so that the caller gets the proper errno.
91311
91312         * lib/readutmp.c (read_utmp): Likewise.
91313         Check for fstat error.  Close stream and free storage
91314         when failing.
91315
91316 2003-09-14  Karl Berry  <karl@gnu.org>
91317
91318         * config/srclist.txt (strdup.c): disable for c89 changes.
91319
91320 2003-09-14  Jim Meyering  <jim@meyering.net>
91321
91322         * lib/getloadavg.c: Correct cpp indentation.
91323         * lib/strdup.c: Likewise.
91324         * lib/vasnprintf.c: Likewise.
91325
91326 2003-09-14  Bruno Haible  <bruno@clisp.org>
91327
91328         * modules/fwriteerror: New file.
91329         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91330
91331 2003-09-14  Bruno Haible  <bruno@clisp.org>
91332
91333         * lib/fwriteerror.h: New file.
91334         * lib/fwriteerror.c: New file.
91335
91336 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91337
91338         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91339         modules/xgethostname, modules/xalloc: Depend on exit.
91340
91341 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91342
91343         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91344
91345         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91346         and AC_MINIX, too, so that their extensions are available.
91347
91348         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91349         This macro has been superseded by gl_BACKUPFILE.
91350
91351         More patches to assume C89 or better.
91352
91353         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91354
91355         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91356         unconditionally.
91357         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91358         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91359         Include <string.h>, <stdlib.h> unconditionally.
91360         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91361         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91362         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91363         headers or for string.h.
91364         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91365         or strtoul.
91366
91367         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91368         headers.
91369         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91370         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91371         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91372         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91373         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91374         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91375         memcpy, memset.
91376         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91377         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91378         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91379         strtol.
91380         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91381         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91382         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91383         strtoul.
91384
91385 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91386
91387         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91388         * lib/obstack.c [!defined _LIBC]: Likewise.
91389         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91390         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91391         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91392
91393         More changes to assume C89 or better.
91394
91395         * lib/error.c (error_tail): Assume vprintf.
91396
91397         * lib/argmatch.c (getenv): Remove decl.
91398         * lib/progreloc.c (get_full_program_name): Define via prototype.
91399         * lib/setenv.c (clearenv): Likewise.
91400         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91401         needed.
91402         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91403         (malloc, memcpy): Remove decls.
91404         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91405         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91406         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91407         (memcpy): Remove macro.
91408         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91409         (__P): Remove.  All uses removed.
91410         (PTR): Remove.  All uses changed to void *.
91411         (CHAR_BIT, NULL): Remove.
91412         (spaces, zeros, memset_space, memset_zero)
91413         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91414         Remove.
91415         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91416         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91417         Define with prototype.
91418         Remove now-unnecessary prototype decl.
91419         (extra_args_spec): Assume ANSI C.  All uses changed.
91420         (extra_args_spec_iso): Remove.
91421         (my_strftime, emacs_strftimeu): Define via prototype.
91422         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91423         unconditionally.
91424         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91425         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91426         (strtoul, strtol): Remove decls.
91427         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91428         LONG_MAX): Remove.
91429         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91430         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91431         (LOCALE_PARAM_PROTO): New macro.
91432         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91433         (INTERNAL (strtol), strtol): Define with a prototype.
91434         (PARAMS): Remove.  All uses removed.
91435         * lib/tempname.c: Include <string.h> unconditionally.
91436         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91437         * lib/xgethostname.c (main): Define with a prototype.
91438         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91439         Include <stdlib.h> unconditionally.
91440         (calloc, malloc, realloc, free): Remove decls.
91441         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91442         Include <stdlib.h> unconditionally.  Sort include file names.
91443         (strtod): Remove.
91444         (xstrtod): Define with a prototype.
91445         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91446         (strtol, strtoul): Remove decls.
91447
91448 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91449
91450         More patches to assume C89 or better.
91451         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91452         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91453         string.h, memchr, STDC_HEADERS.
91454
91455 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91456
91457         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91458         Include <stdlib.h>, <string.h> unconditionally.
91459         Remove now-unnecessary cast to char *.
91460         * lib/strnlen.c: Include <string.h> unconditionally.
91461         * lib/yesno.c (yesno): Define with a prototype.
91462
91463 2003-09-11  Bruno Haible  <bruno@clisp.org>
91464
91465         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91466
91467 2003-09-10  Jim Meyering  <jim@meyering.net>
91468
91469         * lib/error.c: Correct indentation of cpp directives.
91470
91471 2003-09-10  Bruno Haible  <bruno@clisp.org>
91472
91473         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91474         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91475         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91476         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91477         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91478         <stdlib.h> and <string.h> checks.
91479         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91480         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91481
91482 2003-09-10  Bruno Haible  <bruno@clisp.org>
91483
91484         * lib/strcspn.c: Include <string.h> unconditionally.
91485         * lib/strpbrk.c: Include <string.h> unconditionally.
91486         * lib/strstr.c: Include <string.h> unconditionally.
91487         * lib/unicodeio.c: Include <string.h> unconditionally.
91488         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91489         * lib/unsetenv.c: Likewise.
91490         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91491         * lib/yesno.c: Include <stdlib.h> unconditionally.
91492         (rpmatch): Add prototype.
91493
91494 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91495
91496         More patches to assume C89 or better.
91497         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91498         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91499         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91500         or for string.h.
91501         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91502         stdlib.h.
91503         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91504         C headers.
91505         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91506         string.h.
91507         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91508         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91509         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91510         or for string.h.
91511         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91512         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91513         C headers.
91514         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91515         memcpy.
91516         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91517         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91518         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91519         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91520         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91521         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91522         string.h, free.
91523         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91524         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91525         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91526         C headers, or for string.h.
91527         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91528         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91529         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91530         headers, memory.h, stdlib.h, string.h, strings.h.
91531         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91532         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91533         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91534         strchr.
91535         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91536         headers, memory.h, string.h.
91537         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91538         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91539         free.
91540         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91541         headers.
91542         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91543         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91544         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91545         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91546         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91547
91548 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91549
91550         More K&R removal.
91551
91552         * lib/acosl.c (main): Use a prototype.
91553         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91554         tanl.c: Likewise.
91555
91556         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91557
91558         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91559         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91560         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91561         with a prototype.
91562         * lib/getopt.c (const): Remove macro.
91563         Include <string.h> unconditionally.
91564         (my_index): Remove; all uses changed to strchr.
91565         (strlen): Remove decl.
91566         (exchange): Remove forward decl; no longer needed.
91567         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91568         Define with prototype.
91569         * lib/getopt1.c (const): Remove macro.
91570         (getopt_long, getopt_long_only, main): Define with prototype.
91571
91572         * lib/getugroups.c: Include <string.h> unconditionally.
91573
91574         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91575         (getusershell, setusershell, endusershell, readname, main):
91576         Define with prototypes.
91577
91578         * lib/group-member.c: Include group-member.h first.
91579         Include <stdlib.h> unconditionally.
91580
91581         * lib/hard-locale.c: Include hard-locale.h first.
91582         Include <stdlib.h>, <string.h> unconditionally.
91583
91584         * lib/hash.c (free, malloc): Remove decls.
91585         Include <stdlib.h> unconditionally.
91586
91587         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91588         (getenv): Do not declare.
91589
91590         * lib/idcache.c: Include <string.h> unconditionally.
91591
91592         * lib/long-options.c: Include long-options.h first, to test interface.
91593         Include <stdlib.h> unconditionally.
91594
91595         * lib/makepath.c: Include makepath.h first, to test interface.
91596         Include <stdlib.h> and <string.h> unconditionally.
91597
91598         * lib/linebuffer.c: Include <stdlib.h>.
91599         (free): Remove decl.
91600
91601         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91602         stddef.h. rpl_malloc returns void *, not char *.
91603         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91604         prototype.
91605
91606         * lib/md5.h: Include <limits.h> unconditionally.
91607         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91608         (__P): Remove; all uses removed.
91609         * lib/md5.c: Include "md5.h" first.
91610         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91611         md5_buffer, md5_process_bytes, md5_process_block):
91612         Define with prototypes.
91613         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91614         * lib/sha.c: Include "sha.h" first.
91615         Include <stdlib.h>, <string.h> unconditionally.
91616
91617         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91618         * lib/memcmp.c (__ptr_t): Likewise.
91619         * lib/memrchr.c (__ptr_t): Likewise.
91620         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91621         Include <string.h> unconditionally.
91622         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91623         * lib/memchr.c: Include <stdlib.h> unconditionally.
91624         * lib/memchr.c (LONG_MAX): Remove.
91625         * lib/memrchr.c (LONG_MAX): Likewise.
91626         * lib/memchr.c (__memchr): Define via a prototype.
91627         * lib/memrchr.c (__memrchr): Likewise.
91628         * lib/memcmp.c (__P): Remove, and remove all uses.
91629         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91630         Remove forward decls; no longer needed.
91631         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91632         Use types required by C89 in prototype.
91633
91634         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91635         * lib/savedir.c: Likewise.
91636         * lib/mkdir.c (free): Remove decl.
91637         * lib/rmdir.c (rmdir): Define with a prototype.
91638         * lib/savedir.c: Include savedir.h first, to test interface.
91639
91640         * lib/mktime.c (STDC_HEADERS): Remove.
91641         Include <stdlib.h>, <string.h> unconditionally.
91642
91643         * lib/modechange.c: Include <stdlib.h> unconditionally.
91644         (malloc): Remove decl.
91645
91646         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91647         (free): Remove decl.
91648
91649         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91650         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91651         (This type really should be intptr_t, but that's a C99ism.)
91652         (_obstack_memcpy): Remove: all uses changed to memcpy.
91653         Include <string.h> unconditionally.
91654         (struct obstack): Assume __STDC__ for types of members
91655         chunkfun, freefun, extra_arg.
91656         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91657         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91658         obstack_begin, obstack_specify_allocation,
91659         obstack_specify_allocation_with_arg, obstack_chunkfun,
91660         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91661         Remove unprototyped decls and the macros that use them.
91662         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91663         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91664         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91665         (defined __STDC__ && __STDC__)]:
91666         Remove nonprototyped code.
91667         Include <stdlib.h> unconditionally.
91668         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91669         _obstack_allocated_p, _obstack_free, obstack_free,
91670         _obstack_memory_used, print_and_abort):
91671         Define using prototypes.
91672         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91673         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91674         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91675         obstack_next_free, obstack_object_size, obstack_room) [0]:
91676         Remove unused, unprototyped code.
91677
91678         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91679
91680         * lib/physmem.c (physmem_total, physmem_available, main): Define
91681         with prototypes.
91682
91683         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91684         (main): Define with a prototype.
91685
91686         * lib/posixver.c (getenv): Remove decl.
91687
91688         * lib/putenv.c (malloc): Returns void *, not char *.
91689         Include <string.h> unconditionally.
91690         (strchr, memcpy, NULL): Do not define.
91691
91692         * lib/readtokens.c: Include readtokens.h first, to test interface.
91693         Include <stdlib.h>, <string.h> unconditionally.
91694         (init_tokenbuffer): Define with a prototype.
91695
91696         * lib/regex.c (PARAMS): Remove.  All uses removed.
91697         All uses of _RE_ARGS removed, too.
91698         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91699         unconditionally.
91700         (bzero): Assume memset exists.
91701         (memcmp, memcpy, NULL): Remove.
91702         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91703         char, or assignments to local vars of type signed char.
91704         (init_syntax_once, PREFIX(extract_number_and_incr),
91705         PREFIX(print_partial_compiled_pattern),
91706         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91707         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91708         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91709         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91710         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91711         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91712         wcs_compile_range, byte_compile_range, truncate_wchar,
91713         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91714         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91715         count_mbs_length, wcs_re_match_2_internal,
91716         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91717         PREFIX(alt_match_null_string_p),
91718         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91719         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91720         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91721         now-unnecessary declaration, if any.
91722         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91723         regcomp, regexec):
91724         Remove now-unnecessary casts among pointer types.
91725         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91726
91727         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91728         (free): Remove decl.
91729
91730         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91731
91732         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91733         (free): Remove decl.
91734
91735         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91736         * lib/xgetcwd.c: Likewise.
91737
91738         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91739         (free): Remove decl.
91740
91741         * lib/strchrnul.c (strchrnul): Define with a prototype.
91742         Fix bug: c_in was not converted to char before searching.
91743
91744         The following changes are not K&R related:
91745
91746         * lib/group-member.h: Include <sys/types.h>, so that this file is
91747         self-contained.
91748         * lib/makepath.h: Likewise.
91749
91750         * lib/getusershell.c (readname, default_index, line_size, readname):
91751         Use size_t, not int, for sizes.
91752         (readname): If the size overflows, report an error instead of
91753         looping forever.
91754
91755 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91756
91757         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91758         libc.
91759
91760 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91761
91762         * README: New section: portability guidelines.
91763
91764 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91765
91766         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91767         C89 spec.
91768
91769 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91770
91771         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91772
91773 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91774
91775         Assume C89 or better; remove K&R cruft.
91776         A few of these changes were first proposed by Derek Robert Price
91777         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91778
91779         * lib/addext.c: Include <string.h> unconditionally.
91780         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91781         Don't declare getenv or malloc.
91782
91783         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91784         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91785         (NULL): Remove.
91786         (find_stack_direction, alloca): Use prototypes.
91787
91788         * lib/atexit.c (atexit): Define using a prototype.
91789
91790         * lib/basename.c, dirname.c, stripslash.c:
91791         Include <string.h> unconditionally.
91792
91793         * lib/bcopy.c: Include <stddef.h>.
91794         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91795
91796         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91797
91798         * lib/error.h (error, error_at_line, error_print_progname)
91799         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91800         * lib/error.c: Include error.h first, to check interface.
91801         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91802         (VA_START): Remove; all uses changeed to va_start.
91803         (exit, strerror): Remove decls.
91804         (error_print_progname): Prototype uncondionally.
91805         Don't include <errno.h>; no longer needed.
91806         (private_strerror): Remove.
91807         (error_tail): Always define.
91808         (error, error_at_line): Assume C89 or better; always use prototypes.
91809         * lib/fatal.c: Include "fatal.h" first, to test interface.
91810         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91811         (VA_START): Remove; all uses changed to va_start.
91812         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91813         this case.
91814         (exit): Remove decl.
91815         (fatal): Prototype unconditionally.  Assume va_start works.
91816         Abort at end, to pacify gcc.
91817
91818         * lib/euidaccess.c (main): Define with a prototype.
91819
91820         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91821
91822         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91823
91824         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91825         prototypes.
91826         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91827         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91828         (getenv): Remove decl.
91829         (fnmatch): Define using a prototype.
91830         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91831         (FCT): Define using a prototype.
91832
91833         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91834
91835         * lib/gethostname.c: Include <stddef.h>.
91836         (gethostname): Define with prototype.  Length is size_t, not int.
91837
91838 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91839
91840         Assume C89 or better; remove K&R cruft.
91841         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91842         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91843         string.h, getenv, malloc.
91844         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91845         headers.
91846         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91847         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91848         do not check for strerror.
91849         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91850         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91851         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91852         do not check for doprnt or vprintf.
91853         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91854         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91855
91856 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91857
91858         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91859         getversion.c should have been removed then, but was accidentally
91860         preserved.
91861
91862         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91863         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91864
91865 2003-09-08  Karl Berry  <karl@gnu.org>
91866
91867         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91868                 config, forget about prep.
91869
91870         * config/depcomp, missing: update from automake.
91871
91872 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91873
91874         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91875         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91876
91877 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91878
91879         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91880         copy_tm_result.  Bug reported by Simon Josefsson in
91881         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91882
91883 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91884
91885         * m4/time_r.m4: New file.
91886         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91887         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91888         is. Check for timegm declaration.
91889         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91890         Do not check for gmtime_r.
91891         Replace mktime if __mktime_internal does not exist and if mktime
91892         hasn't been replaced already.
91893
91894 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91895
91896         * lib/time_r.c, lib/time_r.h: New files.
91897
91898         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91899         __localtime_r.
91900         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91901         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91902
91903         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91904         __gmtime_r.
91905         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91906         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91907         Include <time_r.h>.
91908
91909         * lib/timegm.c: Switch to glibc implementation, with the following
91910         changes:
91911         [defined HAVE_CONFIG_H]: Include <config.h>.
91912         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91913         (__mktime_internal) [!defined _LIBC]: New decl.
91914         (__gmtime_r) [!defined _LIBC]: New macro and function.
91915         (timegm): Use a prototype, since gnulib assumes C89.
91916         Do not bother declaring tmp to be const, as it's not really usefu.
91917         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91918         (timegm): Declare only if HAVE_DECL_TIMEGM.
91919
91920 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91921
91922         * MODULES.html.sh (func_all_modules): Add time_r.
91923         * modules/time_r: New file.
91924         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91925         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91926
91927 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91928
91929         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91930         Bug reported by Lute Kamstra in
91931         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91932
91933         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91934         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91935         course with correspondingly smaller numbers for tomorrow and
91936         yesterday.  From Tadayoshi Funaba.  Originally installed into
91937         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91938         coreutils merge?).
91939
91940 2003-08-31  Simon Josefsson  <jas@extundo.com>
91941
91942         * modules/timegm: New file.
91943         * MODULES.html.sh (func_all_modules): Add timegm.
91944
91945 2003-08-31  Simon Josefsson  <jas@extundo.com>
91946
91947         * m4/timegm.m4: New file.
91948
91949 2003-08-31  Simon Josefsson  <jas@extundo.com>
91950
91951         * lib/timegm.h: New file.
91952         * lib/timegm.c: New file.  Based on
91953         wget-1.8.2/src/http.c:mktime_from_utc.
91954
91955 2003-08-31  Karl Berry  <karl@gnu.org>
91956
91957         * lib/argp.h: update from libc.
91958
91959 2003-08-28  Bruno Haible  <bruno@clisp.org>
91960
91961         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91962         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91963         followed by '#define fnmatch fnmatch_posix' gives an error.
91964
91965 2003-08-28  Bruno Haible  <bruno@clisp.org>
91966
91967         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91968         warning on QNX, which defines O_BINARY to 000000.
91969
91970 2003-08-27  Jim Meyering  <jim@meyering.net>
91971
91972         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91973         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91974         would fail after 32.  Reported by Danny Levinson.  Details here:
91975         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91976
91977 2003-08-24  Bruno Haible  <bruno@clisp.org>
91978
91979         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91980         MSVC7 <stdio.h> is included later.
91981
91982 2003-08-22  Simon Josefsson  <jas@extundo.com>
91983
91984         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91985
91986 2003-08-20  Karl Berry  <karl@gnu.org>
91987
91988         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91989
91990 2003-08-20  Bruno Haible  <bruno@clisp.org>
91991
91992         * modules/progname: New file.
91993         * MODULES.html.sh (func_all_modules): Add progname.
91994
91995 2003-08-20  Bruno Haible  <bruno@clisp.org>
91996
91997         * lib/progname.h: New file, from GNU gettext.
91998         * lib/progname.c: New file, from GNU gettext.
91999         * lib/progreloc.c: New file, from GNU gettext.
92000
92001 2003-08-19  Jim Meyering  <jim@meyering.net>
92002
92003         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92004         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92005
92006 2003-08-19  Bruno Haible  <bruno@clisp.org>
92007
92008         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92009         more.
92010
92011 2003-08-19  Bruno Haible  <bruno@clisp.org>
92012
92013         * lib/xstrdup.c: Assume <string.h> exists.
92014
92015 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92016
92017         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92018         in makefile rules.
92019
92020 2003-08-18  Jim Meyering  <jim@meyering.net>
92021
92022         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92023         * m4/lib-ld.m4: Likewise.
92024
92025 2003-08-18  Jim Meyering  <jim@meyering.net>
92026
92027         * lib/setenv.h: Indent nested cpp directive.
92028         * lib/vasnprintf.c: Remove trailing blanks.
92029
92030 2003-08-17  Simon Josefsson  <jas@extundo.com>
92031
92032         * modules/xstrndup: New file.
92033         * MODULES.html.sh (func_all_modules): Add xstrndup.
92034
92035 2003-08-17  Simon Josefsson  <jas@extundo.com>
92036
92037         * modules/argp: Fix autoconf macro name. Add more dependencies.
92038
92039 2003-08-17  Simon Josefsson  <jas@extundo.com>
92040
92041         * m4/xstrndup.m4: New file.
92042
92043 2003-08-17  Simon Josefsson  <jas@extundo.com>
92044
92045         * m4/argp.m4: New file.
92046
92047 2003-08-17  Simon Josefsson  <jas@extundo.com>
92048             Bruno Haible  <bruno@clisp.org>
92049
92050         * lib/xstrndup.h: New file.
92051         * lib/xstrndup.c: New file.
92052
92053 2003-08-17  Bruno Haible  <bruno@clisp.org>
92054
92055         * modules/strndup (Files, Include): Add lib/strndup.h.
92056
92057 2003-08-17  Bruno Haible  <bruno@clisp.org>
92058
92059         * modules/euidaccess (Files): Add lib/euidaccess.h.
92060
92061 2003-08-17  Bruno Haible  <bruno@clisp.org>
92062
92063         * lib/strndup.h: New file.
92064
92065 2003-08-17  Bruno Haible  <bruno@clisp.org>
92066
92067         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92068         like AC_GNU_SOURCE.
92069         * modules/extensions (configure.ac): Comment out the invocation of
92070         gl_USE_SYSTEM_EXTENSIONS.
92071
92072 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92073
92074         Merges from coreutils, etc.
92075         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92076         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92077         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92078         fixing a typo.
92079         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92080         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92081
92082 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92083
92084         Document merge from coreutils.
92085         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92086         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92087         * modules/utime: Add m4/utimes-null.m4.
92088
92089 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92090
92091         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92092         space, undoing this 2003-08-12 change:
92093         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92094
92095 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92096
92097         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92098         strtoul.c from libc, undoing this 2003-08-12 change:
92099         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92100
92101 2003-08-16  Jim Meyering  <jim@meyering.net>
92102
92103         Merges from coreutils.
92104         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92105         prefix.  Adjust cache variables similarly.  Create 500 rather than
92106         just 300 files, to exercise bug on Darwin6.5, too.
92107         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92108         $missing_dir.
92109         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92110         AM_SYS_POSIX_TERMIOS.
92111         Reported by mkc@mathdogs.com.
92112         Also change use of $am_cv_sys_posix_termios
92113         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92114         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92115         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92116         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92117         in /proc/mounts until it finds one with matching device number.  This
92118         is unnecessary when the FILE argument *is* a mount point.  No stat call
92119         is necessary in that case.  So, disable the statvfs-testing code on
92120         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92121         as RedHat bug# 84846.
92122         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92123         to 1MB, so as not to render systems with no stack size limit (e.g.,
92124         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92125         Include <unistd.h>.  On some systems,
92126         it is required for the definition of _SC_PAGESIZE.
92127
92128 2003-08-16  Jim Meyering  <jim@meyering.net>
92129
92130         Merge from coreutils.
92131         * lib/xstrtoimax.c: #else #if -> #elif.
92132         * lib/xstrtoumax.c: Likewise.
92133
92134 2003-08-16  Jim Meyering  <jim@meyering.net>
92135
92136         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92137         * m4/utimes.m4: Removed.
92138         * m4/utimes-null.m4: Renamed from utimes.m4.
92139
92140         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92141         to 1MB, so as not to render systems with no stack size limit (e.g.,
92142         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92143         Include <unistd.h>.  On some systems,
92144         it is required for the definition of _SC_PAGESIZE.
92145
92146 2003-08-16  Jim Meyering  <jim@meyering.net>
92147         and Paul Eggert  <eggert@cs.ucla.edu>
92148
92149         Merges from coreutils, etc.
92150
92151         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92152         using the latest version from cvs.  This avoids problems with #line
92153         directives using a vendor (Sun) compiler.
92154         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92155         Don't set GETGROUPS_LIB here; now it's
92156         done via getgroups.m4's wrapper function.
92157         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92158         rather than just in sh-util/configure.in, so that the
92159         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92160         same.
92161         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92162         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92163         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92164         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92165         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92166         Remove code that is now done by the newly-required macros.
92167         Append $(EXEEXT) to DF_PROG.
92168         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92169         Do not invoke or require the following here,
92170         since prereq.m4 or some gnulib .m4 now does this for us:
92171         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92172         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92173         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92174         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92175         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92176         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92177         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92178         AC_FUNC_OBSTACK.
92179         Do not replace the following functions, as this is now the job
92180         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92181         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92182         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92183         atexit getpass, strdup, getpagesize.
92184         Replace 'raise'.
92185         Do not check for the following functions, as this is now the job
92186         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92187         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92188         setregid.
92189         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92190         Check for sys/sysctl.h.
92191         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92192         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92193         of checking for ssize_t ourselves.
92194
92195         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92196         Require every macro that gnulib/modules/* suggests for us.
92197         (jm_PREREQ_ADDEXT): New macro.
92198         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92199         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92200
92201         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92202         (gl_PHYSMEM): Use it.
92203         Also check for `table' function.
92204         Check for new headers and functions.
92205         Add check for sys/sysmp.h.
92206         With suggestions from Kaveh Ghazi.
92207         Ignore headers that are present but cannot be compiled.  This
92208         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92209         C 5.4.
92210
92211 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92212
92213         Document merge from coreutils.
92214         * modules/userspec: Depend on posixver.
92215         * modules/strftime: Depend on tzset.
92216
92217 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92218
92219         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92220         rather than tab, after '#' in shell-script copyright notices.
92221         Suggested by Bruno Haible.
92222
92223 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92224
92225         * config/srclist-update: Use three spaces, rather than tab, after '#'
92226         in shell-script copyright notices.  Suggested by Bruno Haible.
92227         Remove unnecessary parenthesization in regular expression.
92228
92229 2003-08-15  Jim Meyering  <jim@meyering.net>
92230
92231         Merge from coreutils.
92232         * lib/xgethostname.c: Include <stdlib.h>.
92233         (xghostname): Don't exit for anything other than memory-related
92234         failure; just return NULL.
92235         * lib/userspec.c: Include "posixver.h".
92236         (parse_user_spec): Accept `.' as a separator only
92237         in pre-POSIX-200112 mode.
92238         * lib/strtoimax.c: Use #elif rather than #else #if.
92239         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92240         Remove function, now that we can rely on a working tzset function.
92241         [!_LIBC]: Ensure that the required autoconf test has been run.
92242         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92243         Use underlying_strftime for %r.
92244         * lib/sha.c: Merge in some clean-up and optimization changes from
92245         glibc.
92246         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92247         Ensure that it is a multiple of 64.
92248         Rearrange loop exit tests so as to avoid performing an
92249         additional fread after encountering an error or EOF.
92250         * lib/realloc.c: Update copyright date.
92251
92252 2003-08-15  Jim Meyering  <jim@meyering.net>
92253         and Paul Eggert  <eggert@twinsun.com>
92254
92255         Merge from coreutils.
92256         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92257         member but strut utmpx does not.  Needed for AIX 4.3.3.
92258         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92259
92260 2003-08-15  Jim Meyering  <jim@meyering.net>
92261         and Paul Eggert  <eggert@cs.ucla.edu>
92262
92263         Merges from coreutils, etc.
92264         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92265         Require gl_FUNC_TZSET_CLOBBER.
92266         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92267         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92268         members.
92269
92270 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92271
92272         Help the merge from coreutils.
92273         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92274         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92275         * m4/tzset.m4: Use it too.
92276
92277 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92278
92279         * modules/tzset: New file.
92280
92281 2003-08-14  Jim Meyering  <jim@meyering.net>
92282
92283         Merges from coreutils.
92284         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92285         variable names, rather than @FNMATCH_H@.
92286         * modules/alloca: Likewise for $(ALLOCA_H).
92287
92288         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92289         the three copies of the literal target, `fnmatch.h'.
92290         * modules/alloca (alloca.h): Likewise.
92291
92292 2003-08-14  Jim Meyering  <jim@meyering.net>
92293
92294         Merge from coreutils.
92295         * m4/tzset.m4: New file.
92296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92297         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92298         otherwise, AIX 5.1 systems would end up using the latter.
92299         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92300         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92301         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92302         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92303
92304 2003-08-14  Jim Meyering  <jim@meyering.net>
92305
92306         Merge from coreutils.
92307         * lib/obstack.h: Whitespace changes.
92308         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92309         and xcalloc return values.
92310         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92311         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92312         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92313         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92314         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92315         error from mntctl.
92316         Use mntctl's return value to drive the entry-processing loop, since
92317         we can't rely on the value of the vmt_length member in the last
92318         entry.  On some systems doing so could result in exhausting
92319         virtual memory.  Based in part on a patch from Mike Jetzer.
92320
92321 2003-08-14  Jim Meyering  <jim@meyering.net>
92322         and Paul Eggert  <eggert@twinsun.com>
92323
92324         Merges from coreutils, plus other fixes.
92325         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92326         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92327         for credits and details.  Thanks to Kaveh Ghazi for helping
92328         to keep these files in sync.
92329         (ARRAY_SIZE): Define it.
92330         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92331         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92332         (memcasecmp): Don't assume size_t fits in unsigned int.
92333         Remove casts and duplicate code.
92334         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92335         (memcpy): Remove definition.
92336         Merge in some clean-up and optimization changes from glibc.
92337         [BLOCKSIZE]: Move definition to top of file.
92338         Ensure that it is a multiple of 64.
92339         Rearrange loop exit tests so as to avoid performing an
92340         additional fread after encountering an error or EOF.
92341         * lib/md5.h (md5_uintptr): Define.
92342         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92343         return to the initial working directory.  Preserve errno
92344         for caller.
92345         * lib/idcache.c: Include "xalloc.h".
92346         (xmalloc, xrealloc): Remove decls.
92347         (getuser): Remove casts no longer required in C89.
92348         * lib/human.c: Include stdio.h, for sprintf.
92349         * lib/group-member.c: Include "xalloc.h".
92350         (xmalloc, xrealloc): Remove decls.
92351         (get_group_info): Remove casts no longer required in C89.
92352         * lib/getusershell.c (readname): Remove casts no longer required in
92353         C89.
92354         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92355         * lib/getline.c: Whitespace fix, from coreutils.
92356
92357 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92358
92359         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92360         Check for isascii.
92361
92362         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92363         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92364         Undo previous (whitespace-only) change.
92365
92366 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92367
92368         * lib/exclude.c: Include <ctype.h>
92369         (IN_CTYPE_DOMAIN): New macro.
92370         (is_space): New fn.
92371         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92372         and empty lines.
92373
92374         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92375         Undo previous (whitespace-only) change.
92376
92377 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92378
92379         * config/srclist-update: Change update back to the old behavior,
92380         leaving whitespace alone.  Use one 'sed' command rather than a
92381         pipeline.
92382         (fixlicense): Now a variable, not a function.
92383         (remove_trailing_blanks): Remove.
92384         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92385         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92386         Undo previous (whitespace-only) change.
92387
92388 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92389
92390         Merge from coreutils.
92391         * modules/euidaccess: Add lib_SOURCES, include for new
92392         file euidaccess.h
92393
92394 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92395
92396         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92397         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92398         Normalize leading white space and remove trailing white space.
92399
92400         Merge from coreutils
92401         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92402
92403         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92404         0.12.1.  These files are now being upgraded automatically by
92405         ../config/srclist-update.
92406
92407 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92408
92409         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92410         Normalize leading white space and remove trailing white space.
92411         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92412         notice, as per ../config/srclist-update.
92413
92414         Merge from coreutils.
92415         * lib/euidaccess.h: New file.
92416         * lib/euidaccess.c: Include it.
92417         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92418         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92419         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92420
92421 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92422
92423         * config/srclist-update: Add copyright notice.
92424         (remove_id_lines, remove_trailing_blanks): New constants.
92425         (fixfile): Use them to normalize spacing a bit in copied files.
92426         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92427         Normalize leading white space and remove trailing white space.
92428
92429         * config/texinfo.tex: Sync with texinfo.
92430
92431         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92432         strtoul.c from libc, to merge coreutils whitespace changes.
92433
92434         * config/srclist.txt: Get the following m4 files from gettext:
92435         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92436         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92437         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92438         wint_t.m4.
92439
92440 2003-08-12  Karl Berry  <karl@gnu.org>
92441
92442         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92443         been made.
92444
92445 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92446
92447         * modules/gnu-source, m4/gnu-source.m4:
92448         Remove; we're assuming Autoconf 2.54 or later now.
92449         Suggested by Bruno Haible.
92450         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92451
92452 2003-08-11  Bruno Haible  <bruno@clisp.org>
92453
92454         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92455
92456 2003-08-11  Bruno Haible  <bruno@clisp.org>
92457
92458         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92459         (vasnprintf): Use it instead of wcslen.
92460
92461 2003-08-11  Bruno Haible  <bruno@clisp.org>
92462
92463         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92464         value to ensure that _Bool promotes to int. Use #define for _Bool when
92465         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92466
92467 2003-08-10  Karl Berry  <karl@gnu.org>
92468
92469         * lib/regex.h: update from libc (whitespace fix).
92470
92471 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92472
92473         Merge some files from coreutils.  These changes were
92474         originally made by Jim Meyering.
92475         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92476         many older Unixes require this.
92477         * lib/alloca.c (alloca): Remove cast to argument of free;
92478         no longer needed in C89.
92479         * lib/alloca_.h, regex.h: Fix white space to match
92480         what GNU indent does.
92481
92482 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92483
92484         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92485         apparently Emacs's Unicode mode got confused before my 2003-08-05
92486         checkin.
92487
92488 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92489
92490         * m4/extensions.m4: New file.
92491         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92492         Require gl_USE_SYSTEM_EXTENSIONS.
92493         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92494         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92495
92496 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92497
92498         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92499         * modules/extensions, modules/gnu-source: New files.
92500         * modules/timespec, modules/unlocked-io: Depend on extensions.
92501
92502 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92503
92504         * modules/restrict: New file.
92505         * MODULES.html.sh (func_all_modules): Add restrict.
92506         * modules/regex: Depend on restrict.
92507
92508 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92509
92510         * m4/restrict.m4: New file.
92511         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92512
92513 2003-08-07  Bruno Haible  <bruno@clisp.org>
92514
92515         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92516         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92517
92518 2003-08-07  Bruno Haible  <bruno@clisp.org>
92519
92520         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92521         makes the module 'getndelim2' compatible with the module 'getline'.
92522
92523 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92524
92525         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92526         byte with "\201" to avoid glitches when editing that source file
92527         with multi-gnome-terminal.
92528
92529 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92530
92531         * lib/bumpalloc.h: Remove.
92532
92533 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92534
92535         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92536         * modules/bumpalloc: Remove.
92537
92538 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92539
92540         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92541         GNU coding style.
92542
92543         Merge from coreutils.
92544         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92545         1. From glibc.
92546         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92547         from Karl Berry, implemented by Jim Meyering.
92548         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92549         from Dmitry V. Levin.
92550         Remove anachronistic cast of xrealloc.
92551         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92552         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92553         type. Otherwise, it wouldn't compile with at least /bin/cc on
92554         ymp-cray-unicos9.0.2.X.
92555         Combine two mostly-identical uses of alloca into one.
92556         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92557
92558 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92559
92560         [From Emacs.]
92561
92562         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92563         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92564         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92565         obsolete NLIST_NAME_UNION.
92566         [__GNU__]: Undef BSD and FSCALE.
92567         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92568
92569 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92570
92571         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92572         an enum type, so that it's guaranteed to promote to int.  See:
92573         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92574
92575 2003-08-03  Karl Berry  <karl@gnu.org>
92576
92577         * config/depcomp: update from automake.
92578
92579 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92580
92581         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92582         (strerror): Don't assume that a printable int fits in 14 bytes.
92583
92584 2003-07-31  Bruno Haible  <bruno@clisp.org>
92585
92586         * modules/getpass-gnu: New file.
92587         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92588
92589 2003-07-31  Bruno Haible  <bruno@clisp.org>
92590
92591         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92592
92593 2003-07-24  Karl Berry  <karl@gnu.org>
92594
92595         * config/missing: update from automake.
92596
92597 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92598             Bruno Haible  <bruno@clisp.org>
92599
92600         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92601         * lib/getline.c (getline, getdelim): Likewise.
92602         Remove _GNU_SOURCE define; now it's defined in config.h through
92603         m4/getline.m4.
92604
92605 2003-07-23  Karl Berry  <karl@gnu.org>
92606
92607         * config/config.sub: update from prep.
92608
92609 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92610
92611         * modules/xalloc (Depends-on): Add exitfail.
92612         * modules/xmemcoll: Likewise.
92613
92614 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92615
92616         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92617         over-parenthesization in macros.
92618
92619         Sync with coreutils.
92620
92621         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92622         required by C99.
92623
92624         Use `exit_failure' for xalloc and xmemcoll instead of their own
92625         private exit-failure variables.
92626         * lib/xalloc.h (xalloc_exit_failure): Remove.
92627         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92628         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92629         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92630         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92631         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92632
92633 2003-07-20  Jim Meyering  <jim@meyering.net>
92634
92635         * modules/closeout (Depends-on): Add exitfail.
92636         Suggestion from Bruno Haible.
92637
92638 2003-07-19  Karl Berry  <karl@gnu.org>
92639
92640         * config/config.sub: update from prep.
92641
92642 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92643
92644         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92645         Remove.
92646         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92647         to test that it can stand by itself.  Include "exitfail.h".
92648         Clients should set exit_failure instead.
92649         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92650
92651 2003-07-18  Bruno Haible  <bruno@clisp.org>
92652
92653         * modules/getndelim2: New file.
92654         * modules/getline: Share files with module getndelim2.
92655         * modules/getnline: Depend on getndelim2 instead of sharing files with
92656         it. Add getnline.c to lib_SOURCES.
92657         * MODULES.html.sh (func_all_modules): Add getndelim2.
92658
92659 2003-07-18  Bruno Haible  <bruno@clisp.org>
92660
92661         * m4/getndelim2.m4: New file.
92662         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92663         invoke gl_PREREQ_GETNDELIM2.
92664         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92665         gl_PREREQ_GETNDELIM2.
92666         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92667         gl_GETNDELIM2.
92668
92669 2003-07-18  Bruno Haible  <bruno@clisp.org>
92670
92671         * lib/getndelim2.h: New file.
92672         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92673         getndelim2.h.
92674         (getndelim2): Make non-static. Change return type to ssize_t.
92675         * lib/getline.h: Change argument names.
92676         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92677         * lib/getnline.c: Include getndelim2.h.
92678
92679 2003-07-18  Andreas Schwab  <schwab@suse.de>
92680
92681         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92682
92683 2003-07-17  Karl Berry  <karl@gnu.org>
92684
92685         * config/config.sub: update from prep.
92686
92687 2003-07-17  Bruno Haible  <bruno@clisp.org>
92688
92689         * modules/getnline: New file.
92690         * modules/getline: Add lib/getndelim2.c to source file list.
92691         * MODULES.html.sh (func_all_modules): Add getnline.
92692
92693 2003-07-17  Bruno Haible  <bruno@clisp.org>
92694
92695         * m4/getnline.m4: New file.
92696
92697 2003-07-17  Bruno Haible  <bruno@clisp.org>
92698
92699         * m4/Makefile.am.in: Remove file.
92700         * m4/Makefile.am: Remove file.
92701         * m4/Makefile.in: Remove file.
92702
92703 2003-07-17  Bruno Haible  <bruno@clisp.org>
92704
92705         * lib/getnline.h: New file.
92706         * lib/getnline.c: New file.
92707         * lib/getndelim2.c: New file, extracted from getline.c.
92708         (getndelim2): Renamed from getdelim2, with added nmax argument.
92709         * lib/getline.c: Include getndelim2.c.
92710         (getdelim2): Moved out to getndelim2.c.
92711         (getline, getdelim): Update.
92712
92713 2003-07-17  Bruno Haible  <bruno@clisp.org>
92714
92715         * lib/Makefile.am: Remove file.
92716         * lib/Makefile.in: Remove file.
92717
92718 2003-07-17  Bruno Haible  <bruno@clisp.org>
92719
92720         * configure.in: Remove file.
92721         * Makefile.in: Remove file.
92722
92723 2003-07-17  Bruno Haible  <bruno@clisp.org>
92724
92725         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92726
92727 2003-07-16  Karl Berry  <karl@gnu.org>
92728
92729         * config/srclist-update: was running fixlicense twice, which caused
92730                 texinfo.tex to be nullified for some reason.  Simplify,
92731                 $gplsrc is no longer needed as far as I can see?
92732
92733 2003-07-16  Jim Meyering  <jim@meyering.net>
92734
92735         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92736
92737 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92738
92739         * config/srclist.txt: Get the following files from gettext-runtime/intl
92740         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92741         ref-del.sin.  From Bruno Haible.
92742         * config/srclist-update (fixfile): Change grep pattern again, since the
92743         previous fix didn't work (there was another trailing $).  Use
92744         '[$]' to escape the $s.
92745
92746 2003-07-15  Karl Berry  <karl@gnu.org>
92747
92748         * lib/vasnprintf.c: update from gettext.
92749
92750 2003-07-15  Karl Berry  <karl@gnu.org>
92751
92752         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92753         gets expanded when surrounded by '$'.
92754
92755 2003-07-15  Jim Meyering  <jim@meyering.net>
92756
92757         * modules/save-cwd: Don't depend on error.  From Derek Price.
92758
92759 2003-07-15  Jim Meyering  <jim@meyering.net>
92760
92761         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92762
92763 2003-07-14  Simon Josefsson  <jas@extundo.com>
92764
92765         * modules/mempcpy: New file.
92766         * MODULES.html.sh (func_all_modules): Add mempcpy.
92767
92768 2003-07-14  Simon Josefsson  <jas@extundo.com>
92769
92770         * m4/mempcpy.m4: New file.
92771
92772 2003-07-14  Simon Josefsson  <jas@extundo.com>
92773
92774         * lib/mempcpy.h: New file.
92775         * lib/mempcpy.c: New file.
92776
92777 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92778
92779         * modules/getdate, modules/posixtm: Depend on mktime.
92780
92781 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92782
92783         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92784         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92785         unicodeio.c, unicodeio.h, unlocked-io.h:
92786         Switch from LGPL to GPL.
92787
92788 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92789
92790         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92791         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92792         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92793         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92794         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92795         updated automatically by ../config/srclist-update.  This changes
92796         their license from LPGL to GPL.
92797
92798 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92799
92800         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92801         assumed to refer to the root of the most recent stable gettext version.
92802         * config/srclistvars.sh: Add defaults for eggert.
92803         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92804         Match "This program" as well as "The program".  This is needed
92805         for gettext.
92806
92807 2003-07-14  Jim Meyering  <jim@meyering.net>
92808
92809         Don't emit diagnostics.  Let callers do that.
92810         * lib/save-cwd.c: Don't include "error.h".
92811         (save_cwd): Don't call error.  Ensure that errno is valid
92812         when returning nonzero.
92813
92814         * lib/save-cwd.h (restore_cwd): Update prototype.
92815         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92816         Simplify.  Don't call error upon failure.  Let callers do that.
92817         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92818         when auditing is enabled.  But don't bother updating the #if.
92819
92820 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92821
92822         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92823         it breaks C++ compilation.
92824         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92825
92826 2003-07-10  Simon Josefsson  <jas@extundo.com>
92827
92828         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92829
92830 2003-07-10  Jim Meyering  <jim@meyering.net>
92831
92832         * m4/clock_time.m4: Remove trailing blank.
92833         * m4/intmax_t.m4: Likewise.
92834
92835 2003-07-10  Jim Meyering  <jim@meyering.net>
92836
92837         * lib/vasnprintf.c: Remove trailing blanks.
92838         Make cpp indentation consistent.
92839
92840 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92841
92842         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92843         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92844         Switch from LGPL to GPL.
92845
92846 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92847
92848         * config/srclist.txt: Sort sublists.  Add
92849         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92850         that differ from gnulib for one reason or another; we'd like this list
92851         to be smaller but for now let's document what we have.
92852
92853 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92854
92855         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92856         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92857         and sweeter "eval x=$x".
92858         * config/srclist.txt: Get lib/argp* from glibc.
92859
92860 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92861
92862         * lib/mktime.c: Fix some boundary cases and remove need for floating
92863         point.
92864
92865         Issue a compile-time diagnostic if time_t is floating point, or if
92866         two's complement arithmetic is not in effect, or if arithmetic
92867         right shift does not propagate the sign.  These assumptions were
92868         all in the original code but they weren't checked.
92869
92870         (TIME_T_MIDPOINT, verify): New macros.
92871         (__isleap): Remove; it has integer overflow problems.
92872         (leapyear): New function, without those problems.
92873         (ydhms_tm_diff): Remove; splitting into two parts.
92874         (ydhms_diff): New function, containing the arithmetic part of
92875         the old ydhms_tm_diff function.  Issue a compile-time
92876         diagnostic if we are not using C99 integer division.
92877         Avoid casts when possible.
92878         (guess_time_tm): New function, containing the checking part of
92879         the old ydhms_tm_diff function.  Return the new value, rather than
92880         the difference between it and the old.  Accept a new argument T
92881         so that *T specifies the old value.  Check for overflow in the result.
92882
92883         (__mktime_internal): Use a time_t offset, not a long int offset.
92884         This undoes the 2003-06-04 change, which is no longer needed now
92885         that we have better overflow checking.
92886         (localtime_offset): Likewise.
92887
92888         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92889         and long are 64-bit but int is only 32-bit.
92890         (ydhms_diff): Use long int to store year1 and yday1.
92891         Issue a compile-time diagnostic if long int is not wide enough.
92892
92893         (__mktime_internal): Use long int to store adjusted year and yday.
92894         Use plain C rather than preprocessor commands, if that doesn't
92895         affect efficiency.
92896         Check for overflow (and try to repair) after each probe
92897         rather than checking only at the very end.  This avoids some bugs
92898         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92899         does not equal GMT offset at maximum time).
92900         Use integer to check for overflow rather than floating point; this
92901         is more portable to non-IEEE hosts, and is a tad faster.
92902         When we detect that we are oscillating between two values,
92903         don't check whether tm_isdst has the requested value, since
92904         we already know the answer.  When tm_isdst has the wrong value,
92905         use a different heuristic to find the right one, based on the
92906         extreme values actually observed in practice in tz2003a,
92907         rather than the (overly optimistic) "previous 3 calendar quarters".
92908
92909         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92910         "T const" to accommodate glibc style.
92911         (check_result): Use less-confusing report format.  "long" -> "long int.
92912         (main): Likewise.
92913         Don't loop if the iteration overflows time_t.
92914         Allow a negative step in the iteration.
92915
92916 2003-07-06  Karl Berry  <karl@gnu.org>
92917
92918         * config/depcomp: update from automake.
92919         * config/config.sub: update from prep.
92920
92921 2003-07-03  Karl Berry  <karl@gnu.org>
92922
92923         * config/config.guess: update from prep.
92924
92925 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92926
92927         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92928         xreadlink.c now includes it unconditionally.
92929
92930 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92931
92932         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92933         having it depend on HAVE_SYS_TYPES_H.
92934
92935 2003-07-01  Bruno Haible  <bruno@clisp.org>
92936
92937         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92938         <sys/types.h> should be sufficient.
92939         Reported by Paul Eggert.
92940
92941 2003-06-26  Karl Berry  <karl@gnu.org>
92942
92943         * config/depcomp: update from automake.
92944
92945 2003-06-26  Bruno Haible  <bruno@clisp.org>
92946
92947         * modules/human: Depend on module stdbool.
92948
92949 2003-06-25  Bruno Haible  <bruno@clisp.org>
92950
92951         * modules/readlink: New file.
92952         * modules/xreadlink: Depend on it.
92953         * MODULES.html.sh (func_all_modules): Add readlink.
92954
92955 2003-06-25  Bruno Haible  <bruno@clisp.org>
92956
92957         * m4/readlink.m4: New file.
92958
92959 2003-06-25  Bruno Haible  <bruno@clisp.org>
92960
92961         * lib/readlink.c: New file.
92962
92963 2003-06-22  Karl Berry  <karl@gnu.org>
92964
92965         * config/srclist.txt: update mkinstalldirs from automake.
92966         * config/mkinstalldirs: update.
92967
92968 2003-06-22  Bruno Haible  <bruno@clisp.org>
92969
92970         Portability to mingw32.
92971         * m4/ssize_t.m4: New file, from GNU gettext.
92972         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92973         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92974
92975 2003-06-22  Bruno Haible  <bruno@clisp.org>
92976
92977         * modules/safe-read: Add m4/ssize_t.m4.
92978         * modules/xreadlink: Add m4/ssize_t.m4.
92979
92980 2003-06-20  Bruno Haible  <bruno@clisp.org>
92981
92982         Assume C89, so PARAMS isn't needed.
92983         * lib/unicodeio.h (PARAMS): Remove.
92984         * lib/unicodeio.c: Don't use PARAMS.
92985
92986 2003-06-18  Karl Berry  <karl@gnu.org>
92987
92988         * config/config.{guess,sub}: update from prep.
92989
92990 2003-06-18  Jim Meyering  <jim@meyering.net>
92991
92992         Merge changes from coreutils.
92993         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92994         Remove explicit declarations of xmalloc and realloc.
92995         Include xalloc.h.
92996         (read_utmp): Remove anachronistic cast of xmalloc.
92997
92998 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92999
93000         Assume C89, so PARAMS isn't needed.
93001         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93002         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93003         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93004         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93005         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93006         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93007         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93008         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93009         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93010         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93011         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93012         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93013         no longer needed. Anyway, config.h should always be included before any
93014         other file.
93015
93016 2003-06-11  Simon Josefsson  <jas@extundo.com>
93017
93018         * modules/sysexits: New file.
93019         * MODULES.html.sh (func_all_modules): Add sysexits.
93020
93021 2003-06-11  Simon Josefsson  <jas@extundo.com>
93022
93023         * lib/sysexit_.h: New file.
93024
93025 2003-06-11  Derek Price  <derek@ximbiot.com>
93026
93027         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93028         necessary.
93029
93030 2003-06-11  Bruno Haible  <bruno@clisp.org>
93031
93032         * m4/sysexits.m4: New file.
93033
93034 2003-06-10  Simon Josefsson  <jas@extundo.com>
93035
93036         * lib/argp.h: New file, from glibc.
93037         * lib/argp-ba.c: New file, from glibc.
93038         * lib/argp-eexst.c: New file, from glibc.
93039         * lib/argp-fmtstream.c: New file, from glibc.
93040         * lib/argp-fmtstream.h: New file, from glibc.
93041         * lib/argp-fs-xinl.c: New file, from glibc.
93042         * lib/argp-help.c: New file, from glibc.
93043         * lib/argp-namefrob.h: New file, from glibc.
93044         * lib/argp-parse.c: New file, from glibc.
93045         * lib/argp-pv.c: New file, from glibc.
93046         * lib/argp-pvh.c: New file, from glibc.
93047         * lib/argp-xinl.c: New file, from glibc.
93048
93049 2003-06-10  Simon Josefsson  <jas@extundo.com>
93050
93051         * modules/strchrnul: New file.
93052
93053 2003-06-10  Simon Josefsson  <jas@extundo.com>
93054
93055         * modules/argp: New file.
93056
93057 2003-06-10  Simon Josefsson  <jas@extundo.com>
93058
93059         * m4/strchrnul.m4: New file.
93060
93061 2003-06-10  Simon Josefsson  <jas@extundo.com>
93062
93063         * lib/strchrnul.h: New file.
93064         * lib/strchrnul.c: New file.
93065
93066 2003-06-10  Bruno Haible  <bruno@clisp.org>
93067
93068         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93069
93070 2003-06-07  Karl Berry  <karl@gnu.org>
93071
93072         * config/config.{guess,sub}: update from prep.
93073
93074 2003-06-07  Jim Meyering  <jim@meyering.net>
93075
93076         * modules/strtod: Use $(...) notation, not @...@ for
93077         AC_REPLACE'd variables.
93078         * modules/localcharset: Likewise.
93079
93080 2003-06-07  Jim Meyering  <jim@meyering.net>
93081
93082         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93083         in place of my name in the copyright comment.
93084         Remove definition and uses of __P.
93085
93086         From coreutils.
93087         * lib/stat.c: Don't declare xmalloc explicitly.
93088         Instead, include "xalloc.h".
93089         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93090         xrealloc, and xcalloc return values.
93091         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93092         Improve comment.
93093         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93094
93095 2003-06-07  Bruno Haible  <bruno@clisp.org>
93096
93097         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93098         avoid AC_CONFIG_LINKS.
93099         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93100         fnmatch.h, to avoid AC_CONFIG_LINKS.
93101         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93102
93103 2003-06-07  Bruno Haible  <bruno@clisp.org>
93104
93105         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93106         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93107         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93108         directory.
93109         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93110         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93111         directory.
93112
93113 2003-06-06  Jim Meyering  <jim@meyering.net>
93114
93115         Merge from coreutils.
93116         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93117         Consolidate declarations and initializations of *_base* locals.
93118
93119         Merge from coreutils.
93120         This avoids a core dump on systems without GNU putenv,
93121         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93122         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93123         (unsetenv): New static function, from GNU libc.
93124         (rpl_putenv): Use it.
93125
93126         * lib/modechange.c: Remove trailing blanks.
93127
93128         Merge from coreutils.
93129         * lib/fsusage.c: Remove declaration of statfs.
93130         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93131
93132         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93133
93134 2003-06-06  Jim Meyering  <jim@meyering.net>
93135
93136         * lib/stdbool_.h: Renamed from stdbool.h.in.
93137
93138 2003-06-06  Jim Meyering  <jim@meyering.net>
93139             Bruno Haible  <bruno@clisp.org>
93140
93141         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93142         Adjust Makefile.am snippet not to redirect directly to target.
93143         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93144
93145 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93146
93147         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93148         mismatch, look in future quarters as well as past.  This fixes a
93149         bug when processing fall-backwards gaps immediately after a long
93150         period of daylight-saving time.
93151
93152         * lib/mktime.c: Assume freestanding C89 or better.
93153         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93154         (__P): Remove; not used.
93155         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93156         (mktime, not_equal_tm, print_tm, check_result,
93157         main): Use prototypes.  Use const * where appropriate.
93158         (main): Fix typo in testing code that uncovered by above changes.
93159         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93160
93161 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93162
93163         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93164         locale.h, localeconv.  This merges changes from coreutils.
93165
93166         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93167         It can be removed after the next Autoconf is released.
93168         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93169         needed.
93170
93171 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93172
93173         * lib/mktime.c: Fix Debian bug 177940
93174         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93175         (localtime_offset): Now long int, not time_t, because we want it
93176         to be guaranteed to be signed.  All uses changed.
93177         (__mktime_internal): If overflow would occur when adding offset,
93178         don't add it.
93179
93180         Merge 'human' changes from coreutils.  Rewrite to support
93181         locale-specific notations like thousands separators.
93182         * lib/human.c: Simplify authorship notice.
93183         Include human.h immediately after config.h.
93184         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93185         <limits.h>: Do not include, since human.h does.
93186         (SIZE_MAX, UINTMAX_MAX): New macros.
93187         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93188         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93189         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93190         (power_letter): Renamed from suffixes.
93191         (generate_suffix_backwards): Remove.
93192         (adjust_value): Now takes int style (because of human.h changes)
93193         and long double value (for greater precision on some platforms).
93194         (group_number): New function.
93195         (human_readable): Use it.  Use integer options, not enum.
93196         Put the options before the sizes in the arg list.
93197         Support all the new options.
93198         The old human_readable function has been removed;
93199         use inttostr.h instead.
93200         (human_readable, default_block_size, humblock):
93201         Use uintmax_t, not int, for block sizes.
93202         (human_readable_inexact, block_size_types): Remove.
93203         (block_size_opts): New constant.
93204         (human_options): Renamed from human_block_size, with new signature
93205         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93206         * lib/human.h: Add copyright and authorship notice.
93207         Include <limits.h> and <stdbool.h> unconditionally.
93208         (PARAMS): Remove.  All uses removed.
93209         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93210         (enum human_inexact_style): Remove tag; now a nameless enum.
93211         (human_floor, human_ceiling, human_round_to_even): Now have
93212         values 2, 0, 1 rather than -1, 1, 0.
93213         (human_group_digits, human_suppress_point_zero, human_autoscale,
93214         human_base_1024, human_SI, human_B): New constants.
93215         (human_readable_inexact, human_block_size): Remove.
93216         (human_readable): Size args are now uintmax_t, not int.
93217         (human_options): New decl.
93218
93219         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93220         unnecessary now that we assume C89 or better.  This change
93221         imported from coreutils.
93222
93223         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93224         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93225         in the 2003-05-30 sync from glibc.
93226
93227         .h files should stand alone, but we shouldn't include <sys/types.h>
93228         if we can get away with just <stddef.h>.
93229
93230         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93231         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93232         rather than <sys/types.h>, as we merely need size_t.
93233         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93234         to get size_t.
93235         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93236         Include <stdio.h>, to get FILE.
93237         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93238         memcasecmp.h has included <stddef.h> and all we need is size_t.
93239         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93240         our interface, instead of including <sys/types.h>
93241
93242 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93243
93244         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93245         now, as glibc mktime is buggy on non-glibc systems.
93246
93247 2003-06-03  Karl Berry  <karl@gnu.org>
93248
93249         * config/config.sub: update from prep.
93250
93251 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93252
93253         [from coreutils]
93254         Fix some minor time-related bugs with POSIX time arguments.
93255         Some valid time stamps were being rejected (notably -1, and
93256         time stamps before 1900 on 64-bit hosts).  And some invalid
93257         time stamps were being accepted, e.g. September 31.
93258
93259         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93260         that we can return (time_t) -1 successfully.
93261         * lib/posixtm.c: Likewise.
93262         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93263         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93264         (t): Remove static var.
93265         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93266         of static var.  All uses changed.
93267         (year): Do not reject years before 1900; they can occur with
93268         64-bit time_t.
93269         (posix_time_parse): Do not check for out-of-range components;
93270         that is now the caller's responsibility, since our checks were
93271         only approximations.
93272         (posixtime): Use mktime to check for out-of-range components,
93273         since it knows them exactly.
93274         If mktime returns (time_t) -1, check whether an error actually occurred
93275         by invoking localtime on -1.
93276         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93277         posixtime failures better.
93278         Improve the test data (in comments only).
93279
93280 2003-06-02  Karl Berry  <karl@gnu.org>
93281
93282         * config/mkinstalldirs (version): new variable.
93283         (--version): new option.
93284         (usage): improve message.
93285
93286 2003-05-30  Karl Berry  <karl@gnu.org>
93287
93288         * lib/mktime.c: update from libc.
93289
93290 2003-05-30  Bruno Haible  <bruno@clisp.org>
93291
93292         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93293         * config/config.rpath: Upgrade to gettext-0.12.1.
93294
93295 2003-05-30  Bruno Haible  <bruno@clisp.org>
93296
93297         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93298         * m4/nls.m4: New file, from gettext-0.12.1.
93299         * m4/po.m4: New file, from gettext-0.12.1.
93300         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93301
93302 2003-05-30  Bruno Haible  <bruno@clisp.org>
93303
93304         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93305         * lib/localcharset.h: Likewise.
93306         * lib/localcharset.c: Likewise.
93307
93308 2003-05-29  Karl Berry  <karl@gnu.org>
93309
93310         * config/config.rpath: update from gettext.
93311
93312 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93313
93314         Assume the headers required for C89 freestanding compilers.
93315         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93316         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93317         * m4/human.m4 (gl_HUMAN): Likewise.
93318         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93319         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93320         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93321         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93322         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93323         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93324
93325 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93326
93327         Assume the headers required for C89 freestanding compilers.
93328         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93329         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93330         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93331         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93332         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93333         define, since <limits.h> is guaranteed to do that.
93334         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93335         * lib/exclude.c: Include <stdbool.h> unconditionally.
93336         * lib/tempname.c: Include <stddef.h> unconditionally.
93337         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93338         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93339         <stddef.h> does that.
93340         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93341         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93342         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93343         needed.
93344         * lib/xstrtol.c: Likewise.
93345         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93346         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93347
93348         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93349         warnings on some platforms.
93350
93351         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93352         arbitrarily.
93353
93354 2003-05-26  Jim Meyering  <jim@meyering.net>
93355
93356         Merge in a change from coreutils:
93357         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93358         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93359         that condition, rather than `-1' which is slightly misleading.
93360         Change the name of the cache variable to have the gl_ prefix.
93361         Prompted by a patch from Richard Dawe for DJGPP.
93362
93363 2003-05-24  Karl Berry  <karl@gnu.org>
93364
93365         * config/config.guess: update from prep.
93366
93367 2003-05-22  Karl Berry  <karl@gnu.org>
93368
93369         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93370
93371 2003-05-20  Karl Berry  <karl@gnu.org>
93372
93373         * config/config.guess: update from prep.
93374
93375 2003-05-18  Karl Berry  <karl@gnu.org>
93376
93377         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93378         might actually be set by the user.
93379
93380         * config/depcomp, install-sh, mdate-sh: update from automake.
93381
93382 2003-05-17  Bruno Haible  <bruno@clisp.org>
93383
93384         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93385         invalid expansion for AC_EGREP_CPP.
93386         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93387         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93388         Suggested by Akim Demaille <akim@epita.fr> in
93389         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93390
93391 2003-05-12  Jim Meyering  <jim@meyering.net>
93392
93393         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93394         the space-padded-by-default conversion specifiers, %e, %k, %l.
93395
93396 2003-05-12  Bruno Haible  <bruno@clisp.org>
93397
93398         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93399         the string is longer than 4 KB.
93400
93401 2003-05-11  Karl Berry  <karl@gnu.org>
93402
93403         * config/config.{guess,sub}: update from prep.
93404
93405 2003-05-09  Bruno Haible  <bruno@clisp.org>
93406
93407         * modules/error: Add m4/strerror_r.m4 to file list.
93408
93409 2003-05-03  Bruno Haible  <bruno@clisp.org>
93410
93411         Upgrade to Unicode-4.0.
93412         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93413         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93414         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93415         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93416         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93417         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93418         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93419         Change width of U+E0100..U+E01EF from 1 to 0.
93420
93421 2003-04-25  Jim Meyering  <jim@meyering.net>
93422
93423         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93424         of type size_t, not int.
93425
93426 2003-04-25  Bruno Haible  <bruno@clisp.org>
93427
93428         * lib/copy-file.c: Include <stddef.h>, for size_t.
93429
93430 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93431
93432         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93433         code which expansion is under static control.  Patch imported from
93434         Akim Demaille's patch to Bison; see
93435         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93436
93437 2003-04-14  Bruno Haible  <bruno@clisp.org>
93438
93439         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93440
93441 2003-04-11  Jim Meyering  <jim@meyering.net>
93442
93443         Merge changes from Coreutils.
93444
93445         2003-03-22  Jim Meyering  <jim@meyering.net>
93446
93447         * lib/strftime.c (widen): Cast alloca return value to proper type.
93448
93449         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93450
93451         From GNU libc.
93452         * lib/strftime.c (my_strftime): Handle very large width
93453         specifications for numeric values correctly.  Improve checks for
93454         overflow.
93455
93456         2003-01-19  Jim Meyering  <jim@meyering.net>
93457
93458         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93459         definitions.
93460         (nl_get_alt_digit) [! defined my_strftime]: Define.
93461         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93462         _nl_get_alt_digit and _nl_get_walt_digit.
93463
93464         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93465         libc. These changes have no effect outside of _LIBC.
93466
93467 2003-04-10  Bruno Haible  <bruno@clisp.org>
93468
93469         * modules/findprog: New file.
93470         * MODULES.html.sh (func_all_modules): Add it.
93471
93472 2003-04-10  Bruno Haible  <bruno@clisp.org>
93473
93474         * m4/findprog.m4: New file.
93475         * m4/eaccess.m4: New file.
93476
93477 2003-04-10  Bruno Haible  <bruno@clisp.org>
93478
93479         * lib/findprog.h: New file, from GNU gettext.
93480         * lib/findprog.c: New file, from GNU gettext.
93481
93482 2003-04-05  Jim Meyering  <jim@meyering.net>
93483
93484         Merge changes from Coreutils.
93485
93486         * lib/exclude.h (PARAMS): Remove definition and uses.
93487         * lib/exclude.c: Remove uses of `PARAMS'.
93488
93489         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93490         Add test-cases for DOS filenames. Declare program_name.
93491         (main): Set up program_name.  Patch by Rich Dawe.
93492
93493         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93494         error from mntctl.
93495         Use mntctl's return value to drive the entry-processing loop, since
93496         we can't rely on the value of the vmt_length member in the last
93497         entry.  On some systems doing so could result in exhausting
93498         virtual memory.  Based in part on a patch from Mike Jetzer.
93499
93500 2003-04-04  Bruno Haible  <bruno@clisp.org>
93501
93502         * modules/linebreak: New file.
93503         * MODULES.html.sh (func_all_modules): Add it.
93504
93505 2003-04-04  Bruno Haible  <bruno@clisp.org>
93506
93507         * m4/linebreak.m4: New file.
93508
93509 2003-04-04  Bruno Haible  <bruno@clisp.org>
93510
93511         * lib/linebreak.h: New file, from GNU gettext.
93512         * lib/linebreak.c: New file, from GNU gettext with slight
93513         modifications.
93514         * lib/lbrkprop.h: New file, from GNU gettext.
93515
93516 2003-04-03  Bruno Haible  <bruno@clisp.org>
93517
93518         * modules/utf8-ucs4: New file.
93519         * modules/utf16-ucs4: New file.
93520         * modules/ucs4-utf8: New file.
93521         * modules/ucs4-utf16: New file.
93522         * MODULES.html.sh (func_all_modules): Add them.
93523
93524 2003-04-03  Bruno Haible  <bruno@clisp.org>
93525
93526         * m4/utf-ucs4.m4: New file.
93527         * m4/ucs4-utf.m4: New file.
93528
93529 2003-04-03  Bruno Haible  <bruno@clisp.org>
93530
93531         * lib/utf8-ucs4.h: New file, from GNU gettext.
93532         * lib/utf16-ucs4.h: New file, from GNU gettext.
93533         * lib/ucs4-utf8.h: New file, from GNU gettext.
93534         * lib/ucs4-utf16.h: New file, from GNU gettext.
93535
93536 2003-04-02  Bruno Haible  <bruno@clisp.org>
93537
93538         * modules/binary-io: New file.
93539         * MODULES.html.sh (func_all_modules): Add it.
93540
93541 2003-04-02  Bruno Haible  <bruno@clisp.org>
93542
93543         * lib/binary-io.h: New file, from GNU gettext.
93544
93545 2003-04-01  Bruno Haible  <bruno@clisp.org>
93546
93547         * modules/pathname: New file.
93548         * MODULES.html.sh (func_all_modules): Add it.
93549
93550 2003-04-01  Bruno Haible  <bruno@clisp.org>
93551
93552         * lib/pathname.h: New file, from GNU gettext.
93553         * lib/concatpath.c: New file, from GNU gettext.
93554
93555 2003-03-30  Bruno Haible  <bruno@clisp.org>
93556
93557         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93558
93559 2003-03-30  Bruno Haible  <bruno@clisp.org>
93560
93561         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93562         function chown() doesn't exist.
93563
93564 2003-03-28  Bruno Haible  <bruno@clisp.org>
93565
93566         * modules/copy-file: New file.
93567         * MODULES.html.sh (func_all_modules): Add it.
93568
93569 2003-03-28  Bruno Haible  <bruno@clisp.org>
93570
93571         * m4/copy-file.m4: New file.
93572
93573 2003-03-28  Bruno Haible  <bruno@clisp.org>
93574
93575         * lib/copy-file.h: New file, from GNU gettext.
93576         * lib/copy-file.c: New file, from GNU gettext.
93577
93578 2003-03-18  Jim Meyering  <jim@meyering.net>
93579
93580         * lib/quote.c (quote_n): Fix typo in comment.
93581
93582 2003-03-18  Bruno Haible  <bruno@clisp.org>
93583
93584         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93585         checking.
93586         * m4/onceonly_2_57.m4: Likewise.
93587
93588 2003-03-17  Bruno Haible  <bruno@clisp.org>
93589
93590         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93591         (m4_quote): Remove macro.
93592         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93593
93594 2003-03-14  Jim Meyering  <jim@meyering.net>
93595
93596         Merge changes from Coreutils.
93597         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93598         to be const, in order to avoid warnings.
93599         (obstack_room): Likewise.
93600         (obstack_empty_p): Likewise.
93601
93602 2003-03-14  Bruno Haible  <bruno@clisp.org>
93603
93604         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93605         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93606
93607 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93608
93609         Merge changes from Bison.
93610         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93611         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93612         when compiling Bison 1.875's `bitset bset = obstack_alloc
93613         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93614         * lib/hash.c: Include <stdbool.h> unconditionally.
93615
93616 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93617
93618         * m4/onceonly.m4 (m4_quote): New macro.
93619         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93620         Quote AC_FOREACH variable-expansions properly.
93621
93622 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93623
93624         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93625
93626 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93627
93628         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93629         Reported by Bruce Becker; see:
93630         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93631
93632 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93633             Bruno Haible  <bruno@clisp.org>
93634
93635         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93636         Reported by John Hughes, see
93637         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93638
93639 2003-02-20  Bruno Haible  <bruno@clisp.org>
93640
93641         * MODULES.html.sh (func_all_modules): Add poll.
93642
93643 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93644
93645         * modules/poll: New file.
93646
93647 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93648
93649         * lib/poll_.h: New file.
93650         * lib/poll.c: New file.
93651
93652 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93653
93654         * m4/poll.m4: New file.
93655
93656 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93657
93658         * modules/mathl: New file.
93659
93660 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93661
93662         * lib/mathl.h: New file.
93663         * lib/acosl.c: New file.
93664         * lib/asinl.c: New file.
93665         * lib/atanl.c: New file.
93666         * lib/ceill.c: New file.
93667         * lib/cosl.c: New file.
93668         * lib/expl.c: New file.
93669         * lib/floorl.c: New file.
93670         * lib/frexpl.c: New file.
93671         * lib/ldexpl.c: New file.
93672         * lib/logl.c: New file.
93673         * lib/sincosl.c: New file.
93674         * lib/sinl.c: New file.
93675         * lib/sqrtl.c: New file.
93676         * lib/tanl.c: New file.
93677         * lib/trigl.c: New file.
93678         * lib/trigl.h: New file.
93679
93680 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93681
93682         * m4/mathl.m4: New file.
93683
93684 2003-02-18  Bruno Haible  <bruno@clisp.org>
93685
93686         * MODULES.html.sh (func_all_modules): Add mathl.
93687
93688 2003-02-17  Bruno Haible  <bruno@clisp.org>
93689
93690         * modules/mkdtemp: New module.
93691         * MODULES.html.sh (func_all_modules): Add it.
93692
93693 2003-02-17  Bruno Haible  <bruno@clisp.org>
93694
93695         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93696
93697 2003-02-17  Bruno Haible  <bruno@clisp.org>
93698
93699         * lib/mkdtemp.h: New file, from GNU gettext.
93700         * lib/mkdtemp.c: New file, from GNU gettext.
93701
93702 2003-02-02  Jim Meyering  <jim@meyering.net>
93703
93704         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93705         e.g. glibc-2.2.93.
93706
93707 2003-01-31  Bruno Haible  <bruno@clisp.org>
93708
93709         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93710         'rpl_rename'.
93711         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93712         'rpl_strnlen'.
93713         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93714         'rpl_strtod'.
93715         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93716         'rpl_utime'.
93717
93718 2003-01-31  Bruno Haible  <bruno@clisp.org>
93719
93720         * lib/rename.c: #undef rename before defining rpl_rename.
93721         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93722
93723 2003-01-30  Bruno Haible  <bruno@clisp.org>
93724
93725         * modules/vasnprintf, modules/vasprintf: New modules.
93726         * MODULES.html.sh (func_all_modules): Add them.
93727
93728 2003-01-30  Bruno Haible  <bruno@clisp.org>
93729
93730         * m4/signed.m4: New file, from GNU gettext.
93731         * m4/longdouble.m4: New file, from GNU gettext.
93732         * m4/wchar_t.m4: New file, from GNU gettext.
93733         * m4/wint_t.m4: New file, from GNU gettext.
93734         * m4/vasnprintf.m4: New file.
93735         * m4/vasprintf.m4: New file.
93736
93737 2003-01-30  Bruno Haible  <bruno@clisp.org>
93738
93739         * lib/printf-args.h: New file, from GNU gettext.
93740         * lib/printf-args.c: New file, from GNU gettext.
93741         * lib/printf-parse.h: New file, from GNU gettext.
93742         * lib/printf-parse.c: New file, from GNU gettext.
93743         * lib/vasnprintf.h: New file, from GNU gettext.
93744         * lib/vasnprintf.c: New file, from GNU gettext.
93745         * lib/asnprintf.c: New file, from GNU gettext.
93746         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93747         * lib/vasprintf.c: New file, from GNU gettext.
93748         * lib/asprintf.c: New file, from GNU gettext.
93749
93750 2003-01-29  Bruno Haible  <bruno@clisp.org>
93751
93752         * modules/stpncpy: New module.
93753         * MODULES.html.sh (func_all_modules): Add it.
93754
93755 2003-01-29  Bruno Haible  <bruno@clisp.org>
93756
93757         * m4/stpncpy.m4: New file.
93758
93759 2003-01-29  Bruno Haible  <bruno@clisp.org>
93760
93761         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93762         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93763
93764 2003-01-28  Bruno Haible  <bruno@clisp.org>
93765
93766         * modules/c-ctype: New module.
93767         * MODULES.html.sh (func_all_modules): Add it.
93768
93769 2003-01-28  Bruno Haible  <bruno@clisp.org>
93770
93771         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93772         Paul Eggert.
93773         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93774         Paul Eggert.
93775
93776 2003-01-27  Bruno Haible  <bruno@clisp.org>
93777
93778         * modules/xsetenv: New module.
93779         * MODULES.html.sh (func_all_modules): Add it.
93780
93781 2003-01-27  Bruno Haible  <bruno@clisp.org>
93782
93783         * lib/xsetenv.h: New file, from GNU gettext.
93784         * lib/xsetenv.c: New file, from GNU gettext.
93785
93786 2003-01-23  Jim Meyering  <jim@meyering.net>
93787
93788         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93789         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93790
93791 2003-01-23  Bruno Haible  <bruno@clisp.org>
93792
93793         * modules/minmax: New module.
93794         * MODULES.html.sh (func_all_modules): Add it.
93795
93796 2003-01-23  Bruno Haible  <bruno@clisp.org>
93797
93798         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93799         Eggert.
93800
93801 2003-01-22  Bruno Haible  <bruno@clisp.org>
93802
93803         * modules/exit: New module.
93804         * MODULES.html.sh (func_all_modules): Add it.
93805
93806 2003-01-22  Bruno Haible  <bruno@clisp.org>
93807
93808         * lib/exit.h: New file, from GNU gettext.
93809
93810 2003-01-19  Bruno Haible  <bruno@clisp.org>
93811
93812         * gnulib-tool: Recognize option --extract-maintainer.
93813         (func_get_maintainer): New function.
93814         * modules/*: Add Maintainer entry.
93815
93816 2003-01-16  Jim Meyering  <jim@meyering.net>
93817
93818         * m4/regex.m4: The `regex' struct is both input and output.
93819         Initialize it before each use.  Patch by Tim Waugh.
93820
93821 2003-01-16  Bruno Haible  <bruno@clisp.org>
93822
93823         * MODULES.html.sh: Add a table of contents. Add the module name as
93824         leftmost column. Add hyperlinks.
93825
93826 2003-01-15  Bruno Haible  <bruno@clisp.org>
93827
93828         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93829
93830 2003-01-15  Bruno Haible  <bruno@clisp.org>
93831
93832         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93833         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93834         suffix.
93835
93836 2003-01-15  Bruno Haible  <bruno@clisp.org>
93837
93838         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93839
93840 2003-01-15  Bruno Haible  <bruno@clisp.org>
93841
93842         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93843         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93844
93845 2003-01-14  Jim Meyering  <jim@meyering.net>
93846
93847         * lib/same.c (same_name): Tweak a comment.
93848
93849 2003-01-14  Bruno Haible  <bruno@clisp.org>
93850
93851         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93852         when a string comparison is sufficient.
93853
93854 2003-01-14  Bruno Haible  <bruno@clisp.org>
93855
93856         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93857         'unsigned int'.
93858
93859 2003-01-14  Bruno Haible  <bruno@clisp.org>
93860
93861         * lib/hash-pjw.c: Add comment about low quality of this function.
93862
93863 2003-01-13  Bruno Haible  <bruno@clisp.org>
93864
93865         * modules/stpcpy: Distribute lib/stpcpy.h.
93866         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93867
93868 2003-01-13  Bruno Haible  <bruno@clisp.org>
93869
93870         * modules/*: Add a description.
93871         * modules/strpbrk: Fix Makefile.am snippet.
93872         * modules/strtoimax: Fix dependencies.
93873         * modules/strtoumax: Likewise.
93874
93875 2003-01-13  Bruno Haible  <bruno@clisp.org>
93876
93877         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93878         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93879         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93880
93881 2003-01-13  Bruno Haible  <bruno@clisp.org>
93882
93883         * gnulib-tool (func_create_testdir): Store config/* files in the main
93884         directory.
93885         * config.rpath: Move to ...
93886         * config/config.rpath: ... here.
93887         * modules/gettext: Contains config/config.rpath, not config.rpath.
93888         * modules/iconv: Likewise.
93889
93890 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93891
93892         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93893         to avoid collisions with libcurses and libreadline.
93894
93895         * m4/getstr.m4: Remove.
93896         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93897
93898 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93899
93900         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93901         to avoid collisions with libcurses and libreadline.
93902
93903         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93904         * lib/getstr.h, getstr.c: Remove.
93905         * lib/getline.c: Include "getline.h", to check interface.
93906         Move body of old getstr.c here: this defines MIN_CHUNK and
93907         declares getdelim2, which is renamed from getstr.
93908         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93909
93910         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93911         All uses changed.
93912         * lib/linebuffer.h: Likewise.
93913         (readline): Remove backward-compatibility macro.
93914
93915 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93916
93917         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93918         to avoid collisions with libcurses and libreadline.
93919         * getstr: Remove.
93920         * MODULES.html.sh: Remove getstr.
93921         * modules/getline: Depend on unlocked-io, not getstr.
93922
93923 2003-01-12  Jim Meyering  <jim@meyering.net>
93924
93925         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93926
93927 2003-01-10  Bruno Haible  <bruno@clisp.org>
93928
93929         * modules/alloca: Change Makefile.am requirements. Simplify Include
93930         requirements. Add lib/alloca_.h to file list.
93931
93932 2003-01-10  Bruno Haible  <bruno@clisp.org>
93933
93934         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93935
93936 2003-01-10  Bruno Haible  <bruno@clisp.org>
93937
93938         * lib/alloca_.h: New file.
93939         * lib/getdate.y: Unconditionally include alloca.h.
93940         * lib/makepath.c: Likewise.
93941         * lib/setenv.c: Likewise.
93942         * lib/userspec.c: Likewise.
93943
93944 2003-01-09  Karl Berry  <karl@gnu.org>
93945
93946         * MODULES.html.sh: include `dirname $0` in PATH, to find
93947         gnulib-tool.
93948
93949 2003-01-09  Bruno Haible  <bruno@clisp.org>
93950
93951         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93952         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93953
93954 2003-01-09  Bruno Haible  <bruno@clisp.org>
93955
93956         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93957
93958 2003-01-09  Bruno Haible  <bruno@clisp.org>
93959
93960         * lib/stdbool.h.in: New file.
93961
93962 2003-01-09  Bruno Haible  <bruno@clisp.org>
93963
93964         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93965         * MODULES.html.sh: Likewise.
93966
93967 2003-01-08  Jim Meyering  <jim@meyering.net>
93968
93969         * lib/full-write.c: Undefine and define-away `const' after inclusion
93970         of errno.h, not before.  Suggestion from Bruno Haible.
93971
93972 2003-01-08  Bruno Haible  <bruno@clisp.org>
93973
93974         * modules/full-read: Depend on full-write.
93975
93976 2003-01-08  Bruno Haible  <bruno@clisp.org>
93977
93978         * lib/safe-read.c: Include specification header first, to ensure its
93979         selfcontainedness.
93980         * lib/full-write.c: Likewise.
93981
93982 2003-01-07  Jim Meyering  <jim@meyering.net>
93983
93984         * lib/full-write.c: Rework so that it may serve to define full_read,
93985         too.
93986         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93987
93988 2003-01-07  Bruno Haible  <bruno@clisp.org>
93989
93990         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93991         <inttypes.h>.
93992         * lib/xstrtol.h: Likewise.
93993         * lib/xstrtoimax.c: Likewise.
93994         * lib/xstrtoumax.c: Likewise.
93995         * lib/human.h: Likewise.
93996
93997         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93998         on systems that have <inttypes.h> but not <stdint.h>.
93999
94000 2003-01-07  Bruno Haible  <bruno@clisp.org>
94001
94002         * MODULES.html.sh: Add copyright notice.
94003         (missed_files): Omit CVS directory entries.
94004         (func_module): Make it work with sed-3.02.
94005         * MODULES.txt: Remove file.
94006
94007 2003-01-06  Jim Meyering  <jim@meyering.net>
94008
94009         * lib/version-etc.c: Update year in translatable copyright string.
94010
94011 2003-01-03  Karl Berry  <karl@gnu.org>
94012
94013         * config/config.{guess,sub}: update from prep.
94014
94015 2003-01-02  Karl Berry  <karl@gnu.org>
94016
94017         * doc/COPYING.DOC: belatedly updated to 1.2.
94018
94019 2003-01-01  Karl Berry  <karl@gnu.org>
94020
94021         * gnulib-tool (func_verify_module): report module name $module in
94022         error message, not $1.
94023         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94024         be created, only if it doesn't exist.
94025         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94026
94027 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94028
94029         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94030
94031 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94032
94033         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94034         memcmp if strcoll doesn't work.
94035
94036 2002-12-31  Bruno Haible  <bruno@clisp.org>
94037
94038         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94039         nonempty.
94040
94041 2002-12-31  Bruno Haible  <bruno@clisp.org>
94042
94043         * lib/memcoll.c (STRCOLL): New macro.
94044         (memcoll): Use it.
94045
94046 2002-12-31  Bruno Haible  <bruno@clisp.org>
94047
94048         * lib/localcharset.h: New file.
94049         * lib/localcharset.c: Include it.
94050         * lib/unicodeio.c: Likewise.
94051
94052 2002-12-31  Bruno Haible  <bruno@clisp.org>
94053
94054         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94055         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94056
94057 2002-12-31  Bruno Haible  <bruno@clisp.org>
94058
94059         * lib/getline.h: Include <stddef.h>, for size_t.
94060
94061         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94062         * lib/unicodeio.c: Don't include <stddef.h>.
94063
94064 2002-12-31  Bruno Haible  <bruno@clisp.org>
94065
94066         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94067         HAVE_TM_ZONE.
94068
94069 2002-12-24  Karl Berry  <karl@gnu.org>
94070
94071         * config/config.guess: update from prep.
94072
94073 2002-12-24  Bruno Haible  <bruno@clisp.org>
94074
94075         General infrasructure.
94076         * m4/README: Rewritten.
94077         * m4/onceonly.m4: New file.
94078         * m4/onceonly_2_57.m4: New file.
94079
94080         Module atexit.
94081         * m4/atexit.m4: New file.
94082
94083         Module strtod.
94084         * m4/strtod.m4: New file.
94085
94086         Module strtol.
94087         * m4/strtol.m4: New file.
94088
94089         Module strtoul.
94090         * m4/strtoul.m4: New file.
94091
94092         Module memchr.
94093         * m4/memchr.m4: New file.
94094
94095         Module memcmp.
94096         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94097         (jm_FUNC_MEMCMP): Invoke it.
94098
94099         Module memcpy.
94100         * m4/memcpy.m4: New file.
94101
94102         Module memmove.
94103         * m4/memmove.m4: New file.
94104
94105         Module memset.
94106         * m4/memset.m4: New file.
94107
94108         Module strcspn.
94109         * m4/strcspn.m4: New file.
94110
94111         Module strpbrk.
94112         * m4/strpbrk.m4: New file.
94113
94114         Module strstr.
94115         * m4/strstr.m4: New file.
94116
94117         Module strerror.
94118         * m4/strerror.m4: New file.
94119
94120         Module mktime.
94121         * m4/mktime.m4: Renamed from jm-mktime.m4.
94122         (gl_PREREQ_MKTIME): New macro.
94123         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94124
94125         Module malloc.
94126         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94127         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94128         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94129
94130         Module realloc.
94131         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94132         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94133         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94134
94135         Module strftime.
94136         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94137         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94138         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94139         gl_TM_GMTOFF.
94140         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94141
94142         Module xalloc.
94143         * m4/xalloc.m4: New file.
94144
94145         Module alloca.
94146         * m4/alloca.m4: New file.
94147
94148         Module putenv.
94149         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94150         (jm_FUNC_PUTENV): Invoke it.
94151
94152         Module setenv.
94153         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94154         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94155         when invoked twice.
94156         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94157         gt_FUNC_SETENV.
94158
94159         Module memrchr.
94160         * m4/memrchr.m4: New file.
94161
94162         Module stpcpy.
94163         * m4/stpcpy.m4: New file.
94164
94165         Module strcase.
94166         * m4/strcase.m4: New file.
94167
94168         Module strdup.
94169         * m4/strdup.m4: New file.
94170
94171         Module strnlen.
94172         * m4/strnlen.m4: New file.
94173
94174         Module strndup.
94175         * m4/strndup.m4: New file.
94176
94177         Module xstrtod.
94178         * m4/xstrtod.m4: New file.
94179
94180         Module xstrtol.
94181         * m4/xstrtol.m4: New file.
94182
94183         Module getdate.
94184         * m4/getdate.m4: New file.
94185
94186         Module unlocked-io.
94187         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94188         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94189         * m4/jm-glibc-io.m4n: Remove file.
94190
94191         Module long-options.
94192         * m4/long-options.m4: New file.
94193
94194         Module md5.
94195         * m4/md5.m4: New file.
94196
94197         Module sha.
94198         * m4/sha.m4: New file.
94199
94200         Module getstr.
94201         * m4/getstr.m4: New file.
94202
94203         Module getline.
94204         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94205         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94206         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94207         simply getline. Infoke gl_PREREQ_GETLINE.
94208
94209         Module obstack.
94210         * m4/obstack.m4: New file.
94211
94212         Module hash.
94213         * m4/hash.m4: New file.
94214
94215         Module readtokens.
94216         * m4/readtokens.m4: New file.
94217
94218         Module strverscmp.
94219         * m4/strverscmp.m4: New file.
94220
94221         Module stdbool.
94222         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94223         OSF/1.
94224
94225         Module strtoll.
94226         * m4/strtoll.m4: New file.
94227
94228         Module strtoull.
94229         * m4/strtoull.m4: New file.
94230
94231         Module strtoimax.
94232         * m4/strtoimax.m4: New file.
94233
94234         Module strtoumax.
94235         * m4/strtoumax.m4: New file.
94236
94237         Module xstrtoimax.
94238         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94239         jm_AC_PREREQ_XSTRTOIMAX.
94240         Moved the strtol prerequisites to strtol.m4.
94241         Moved the strtoll prerequisites to strtoll.m4.
94242         Moved the strtoimax prerequisites to strtoimax.m4.
94243
94244         Module xstrtoumax.
94245         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94246         jm_AC_PREREQ_XSTRTOUMAX.
94247         Moved the strtoul prerequisites to strtoul.m4.
94248         Moved the strtoull prerequisites to strtoull.m4.
94249         Moved the strtoumax prerequisites to strtoumax.m4.
94250
94251         Module chown.
94252         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94253         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94254
94255         Module dup2.
94256         * m4/dup2.m4: New file.
94257
94258         Module ftruncate.
94259         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94260         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94261
94262         Module getgroups.
94263         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94264         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94265
94266         Module gettimeofday.
94267         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94268         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94269         gl_PREREQ_GETTIMEOFDAY.
94270
94271         Module mkdir.
94272         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94273         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94274
94275         Module mkstemp.
94276         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94277         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94278         jm_AC_TYPE_UINTMAX_T.
94279         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94280
94281         Module stat.
94282         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94283         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94284
94285         Module lstat.
94286         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94287         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94288
94289         Module timespec.
94290         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94291         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94292         * m4/st_mtim.m4: Indentation.
94293
94294         Module nanosleep.
94295         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94296         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94297         gl_PREREQ_NANOSLEEP.
94298
94299         Module regex.
94300         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94301         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94302         (gl_REGEX): New macro.
94303
94304         Module rename.
94305         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94306         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94307
94308         Module rmdir.
94309         * m4/rmdir.m4: New file.
94310
94311         Module utime.
94312         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94313         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94314         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94315
94316         Module dirname.
94317         * m4/dirname.m4: New file.
94318
94319         Module getopt.
94320         * m4/getopt.m4: New file.
94321
94322         Module unistd-safer.
94323         * m4/unistd-safer.m4: New file.
94324
94325         Module fnmatch.
94326         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94327         declaration.
94328         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94329         (gl_FUNC_FNMATCH_POSIX): New macro.
94330         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94331         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94332         simply fnmatch.
94333
94334         Module exclude.
94335         * m4/exclude.m4: New file.
94336
94337         Module human.
94338         * m4/human.m4: New file.
94339
94340         Module acl.
94341         * m4/acl.m4: Nop.
94342
94343         Module backupfile.
94344         * m4/backupfile.m4: New file.
94345         * m4/d-ino.m4: Indentation.
94346
94347         Module fsusage.
94348         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94349         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94350         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94351
94352         Module dirfd.
94353         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94354         requirements.
94355
94356         Module euidaccess.
94357         * m4/euidaccess.m4: New file.
94358
94359         Module file-type.
94360         * m4/file-type.m4: New file.
94361
94362         Module fileblocks.
94363         * m4/fileblocks.m4: New file.
94364
94365         Module filemode.
94366         * m4/filemode.m4: New file.
94367
94368         Module isdir.
94369         * m4/isdir.m4: New file.
94370
94371         Module lchown.
94372         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94373         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94374
94375         Module makepath.
94376         * m4/makepath.m4: New file.
94377
94378         Module modechange.
94379         * m4/modechange.m4: New file.
94380
94381         Module mountlist.
94382         * m4/mountlist.m4: New file.
94383         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94384         Indentation.
94385
94386         Module path-concat.
94387         * m4/path-concat.m4: New file.
94388
94389         Module pathmax.
94390         * m4/pathmax.m4: New file.
94391
94392         Module same.
94393         * m4/same.m4: New file.
94394
94395         Module save-cwd.
94396         * m4/save-cwd.m4: New file.
94397
94398         Module savedir.
94399         * m4/savedir.m4: New file.
94400
94401         Module xgetcwd.
94402         * m4/xgetcwd.m4: New file.
94403         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94404
94405         Module xreadlink.
94406         * m4/xreadlink.m4: New file.
94407
94408         Module safe-read.
94409         * m4/safe-read.m4: New file.
94410
94411         Module safe-write.
94412         * m4/safe-write.m4: New file.
94413
94414         Module closeout.
94415         * m4/closeout.m4: New file.
94416
94417         Module stdio-safer.
94418         * m4/stdio-safer.m4: New file.
94419
94420         Module getpass.
94421         * m4/getpass.m4: New file.
94422
94423         Module getugroups.
94424         * m4/getugroups.m4: New file.
94425
94426         Module group-member.
94427         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94428         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94429
94430         Module idcache.
94431         * m4/idcache.m4: New file.
94432
94433         Module userspec.
94434         * m4/userspec.m4: New file.
94435
94436         Module gettime.
94437         * m4/clock_time.m4: New file.
94438         * m4/gettime.m4: New file.
94439
94440         Module settime.
94441         * m4/settime.m4: New file.
94442
94443         Module posixtm.
94444         * m4/posixtm.m4: New file.
94445
94446         Module gethostname.
94447         * m4/gethostname.m4: New file.
94448
94449         Module canon-host.
94450         * m4/canon-host.m4: New file.
94451
94452         Module gettext.
94453         * m4/codeset.m4: New file, from gettext-0.11.5.
94454         * m4/gettext.m4: New file, from gettext-0.11.5.
94455         * m4/glibc21.m4: New file, from gettext-0.11.5.
94456         * m4/iconv.m4: New file, from gettext-0.11.5.
94457         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94458         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94459         * m4/inttypes.m4: New file, from gettext-0.11.5.
94460         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94461         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94462         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94463         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94464         * m4/lib-link.m4: New file, from gettext-0.11.5.
94465         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94466         * m4/progtest.m4: New file, from gettext-0.11.5.
94467         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94468         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94469         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94470
94471         Module localcharset.
94472         * m4/localcharset.m4: New file.
94473
94474         Module hard-locale.
94475         * m4/hard-locale.m4: New file.
94476
94477         Module mbswidth.
94478         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94479         onceonly macros.
94480         * m4/mbrtowc.m4: Add comment.
94481
94482         Module memcasecmp.
94483         * m4/memcasecmp.m4: New file.
94484
94485         Module memcoll.
94486         * m4/memcoll.m4: New file.
94487
94488         Module unicodeio.
94489         * m4/unicodeio.m4: New file.
94490
94491         Module rpmatch.
94492         * m4/rpmatch.m4: New file.
94493
94494         Module yesno.
94495         * m4/yesno.m4: New file.
94496
94497         Module exitfail.
94498         * m4/exitfail.m4: New file.
94499
94500         Module c-stack.
94501         * m4/c-stack.m4 (gl_C_STACK): New macro.
94502         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94503
94504         Module error.
94505         * m4/error.m4 (gl_ERROR): New macro.
94506         (jm_PREREQ_ERROR): Use onceonly macros.
94507
94508         Module fatal.
94509         * m4/fatal.m4: New file.
94510
94511         Module getloadavg.
94512         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94513         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94514
94515         Module getpagesize.
94516         * m4/getpagesize.m4: New file.
94517
94518         Module getusershell.
94519         * m4/getusershell.m4: New file.
94520
94521         Module physmem.
94522         * m4/physmem.m4: New file.
94523
94524         Module posixver.
94525         * m4/posixver.m4: New file.
94526
94527         Module quotearg.
94528         * m4/quotearg.m4: New file.
94529
94530         Module quote.
94531         * m4/quote.m4: New file.
94532
94533         Module readutmp.
94534         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94535
94536         Module sig2str.
94537         * m4/sig2str.m4: New file.
94538
94539         Other.
94540         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94541         ulonglong.m4.
94542         * m4/intmax_t.m4: New file.
94543         * m4/d-type.m4: Indentation.
94544         * m4/jm-macros.m4: Update.
94545         * m4/prereq.m4 (jm_PREREQ): Update.
94546         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94547         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94548         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94549         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94550         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94551         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94552         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94553         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94554         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94555         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94556         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94557         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94558         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94559         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94560         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94561         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94562         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94563         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94564         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94565
94566 2002-12-24  Bruno Haible  <bruno@clisp.org>
94567
94568         * MODULES.txt: Update according to m4/ changes.
94569
94570         Module gettext.
94571         * config.rpath: New file, from gettext-0.11.5.
94572
94573         * modules/*: New module descriptions.
94574         * gnulib-tool: New file.
94575         * MODULES.html.sh: New file.
94576
94577 2002-12-21  Karl Berry  <karl@gnu.org>
94578
94579         * doc/fdl.texi: update to version 1.2.
94580
94581 2002-12-19  Karl Berry  <karl@gnu.org>
94582
94583         * config/config.guess: update from prep.
94584
94585 2002-12-18  Bruno Haible  <bruno@clisp.org>
94586
94587         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94588         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94589
94590 2002-12-17  Bruno Haible  <bruno@clisp.org>
94591
94592         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94593         stdlib.h, string.h.
94594
94595 2002-12-17  Bruno Haible  <bruno@clisp.org>
94596
94597         * lib/canon-host.c (strdup): Remove unused declaration.
94598
94599         * lib/fsusage.c: Include full_read.h.
94600         (get_fs_usage): Use full_read instead of safe_read.
94601
94602         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94603
94604 2002-12-12  Karl Berry  <karl@gnu.org>
94605
94606         * config/config.guess: update from prep.
94607
94608 2002-12-11  Bruno Haible  <bruno@clisp.org>
94609
94610         * m4/setenv.m4: New file, from gettext-0.11.5.
94611
94612 2002-12-11  Bruno Haible  <bruno@clisp.org>
94613
94614         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94615         not unsetenv().
94616         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94617         modifications:
94618
94619         2002-12-11  Bruno Haible  <bruno@clisp.org>
94620
94621                 * setenv.c (alloca): Fall back to malloc.
94622                 (freea): New macro.
94623                 (setenv): Use freea() to free memory allocated with alloca().
94624
94625         2002-11-13  Bruno Haible  <bruno@clisp.org>
94626
94627                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94628                 function declarations.
94629                 * unsetenv.c (unsetenv): Likewise.
94630
94631         2002-03-04  Bruno Haible  <bruno@clisp.org>
94632
94633                 Portability to AIX 4.3.3.
94634                 * unsetenv.c: New file, extracted from setenv.c.
94635                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94636
94637         2001-12-20  Bruno Haible  <bruno@clisp.org>
94638
94639                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94640                 use malloc instead. For SunOS 4.
94641
94642         2001-12-11  Bruno Haible  <bruno@clisp.org>
94643
94644                 * setenv.c: Declare alloca.
94645                 (compar_fn_t): New typedef.
94646                 (KNOWN_VALUE, STORE_VALUE): Use it.
94647
94648         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94649         setenv.h.
94650
94651 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94652
94653         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94654         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94655         Choose values that are less likely to collide with system fnmatch
94656         options.
94657         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94658         defined (e.g., a pure POSIX system).
94659         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94660         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94661
94662 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94663
94664         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94665         a pain in practice to deal with generated m4 files.  This change
94666         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94667
94668         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94669         and jm-glibc-io.m4, as they are no longer a special case.
94670         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94671         kludge and the auto-generation stuff.  Check only whether the
94672         functions are declared, not whether they exist, since older hosts
94673         that don't declare the functions can't use the optimization anyway.
94674
94675 2002-12-06  Jim Meyering  <jim@meyering.net>
94676
94677         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94678
94679         Merge in changes from libc's misc/error.c, in preparation
94680         for the merge of gnulib's changes back into libc.
94681
94682         * lib/error.c (_): Define only if not already defined.
94683         Move definition to follow all #include directives.
94684         Include unlocked-io.h only if !_LIBC.
94685         [_LIBC]: Include <libio/libioP.h>.
94686         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94687         (fflush): Tweak definition to use INTUSE.
94688         (putc): Define.
94689
94690 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94691
94692         * lib/alloca.c [defined emacs]: Include "lisp.h".
94693         (xalloc_die) [defined emacs]: New macro.
94694         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94695         [! defined emacs]: Include <xalloc.h>.
94696         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94697         (pointer): Typedef to POINTER_TYPE *.
94698         (malloc): Remove decl; we now always use xmalloc.
94699         (alloca): Use old-style definition, since Emacs needs this.
94700         Check for arithmetic overflow when computing combined size.
94701
94702 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94703
94704         Do not generate unlocked-io.h automatically, since it's easier to
94705         maintain it by hand.
94706
94707         * lib/unlocked-io.h: New file, from GNU diffutils,
94708         but with proper copyright notice and attribution.
94709         * lib/gen-uio: Remove.
94710         * lib/Makefile.am: Add copyright notice.
94711         (libfetish_a_SOURCES): Add unlocked-io.h.
94712         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94713         (DISTCLEANFILES, io_functions): Remove macros.
94714         (EXTRA_DIST): Remove gen_uio.
94715         (unlocked-io.h): Remove rule.
94716
94717 2002-12-04  Jim Meyering  <jim@meyering.net>
94718
94719         Reflect the fact that stat.c and lstat.c are no longer generated.
94720         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94721         (DISTCLEANFILES): Likewise.
94722         (EXTRA_DIST): Likewise.
94723         (all_local): Don't depend on stat.c or lstat.c.
94724         (stat.c, lstat.c): Remove rules.
94725         (EXTRA_DIST): Remove xstat.in.
94726
94727         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94728         * lib/stat.c: New file.  Contents mostly from xstat.in.
94729         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94730         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94731
94732         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94733         too.
94734         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94735
94736 2002-12-03  Jim Meyering  <jim@meyering.net>
94737
94738         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94739         but not semantics, to minimize the differences between these two files.
94740         (safe_read): Change comment to mention SAFE_READ_ERROR.
94741
94742         * lib/safe-read.c (IS_EINTR): Define.
94743         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94744
94745 2002-12-02  Jim Meyering  <jim@meyering.net>
94746
94747         * lib/safe-read.c (EINTR): Define.
94748         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94749         (INT_MAX): Provide fallback.
94750         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94751
94752         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94753
94754 2002-12-02  Bruno Haible  <bruno@clisp.org>
94755
94756         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94757         Define, taken from safe-read.c.
94758         (INT_MAX): Provide fallback.
94759         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94760         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94761
94762         * lib/safe-read.c (EINTR): Remove definition.
94763         (safe_read): Don't use EINTR if it is absent.
94764
94765 2002-12-01  Jim Meyering  <jim@meyering.net>
94766
94767         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94768         zero.
94769         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94770
94771 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94772
94773         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94774         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94775         with `if (! (value < limit)) abort ();', for readability.
94776
94777 2002-11-26  Karl Berry  <karl@gnu.org>
94778
94779         * lib/strdup.c: copy from libc again, with jim's ok.
94780         * lib/.cppi-disable: re-add strdup.c
94781
94782 2002-11-25  Karl Berry  <karl@gnu.org>
94783
94784         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94785         instead of "strtol.c".
94786
94787 2002-11-25  Karl Berry  <karl@gnu.org>
94788
94789         * config/install-sh: update from automake for variable quoting, $0 in
94790         error msgs, etc.
94791
94792         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94793         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94794         entry.
94795
94796 2002-11-25  Jim Meyering  <jim@meyering.net>
94797
94798         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94799
94800 2002-11-24  Karl Berry  <karl@gnu.org>
94801
94802         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94803         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94804
94805 2002-11-24  Jim Meyering  <jim@meyering.net>
94806
94807         Update from coreutils:
94808
94809         * lib/mktime.c: Merge in changes from libc.
94810
94811         Avoid a link-time failure on some Linux systems.
94812         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94813         (otherwise).
94814         (__mon_yday): Declare with the STATIC attribute.
94815         (__mktime_internal): Likewise.
94816         Based on a report from Greg Schafer.
94817
94818 2002-11-23  Jim Meyering  <jim@meyering.net>
94819
94820         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94821         Use `unsigned', not `int', as type of index.
94822
94823         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94824
94825         * lib/fsusage.c: Remove unneeded parentheses around operands of
94826         `defined'.
94827
94828 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94829
94830         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94831         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94832         so that we can be included first.
94833         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94834         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94835         No need to include stddef.h or sys/types.h any more.
94836         Surround local include files with "", not "<>".
94837         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94838         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94839         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94840         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94841         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94842         (ISPRINT): Remove; no longer needed now that we assume C89.
94843
94844         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94845         Preserve errno.
94846
94847         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94848         quotearg_char): Use SIZE_MAX rather than
94849         (size_t) -1 when we are talking about "infinity".
94850
94851         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94852
94853 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94854
94855         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94856         hint that one should use `if (! x) abort ();' rather than `assert
94857         (x);', and anyway it's one less thing to worry about configuring.
94858         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94859         hash_rehash, hash_insert): Use abort rather than assert.
94860
94861 2002-11-22  Bruno Haible  <bruno@clisp.org>
94862
94863         * lib/safe-read.h: Assume C89. Add comments.
94864         (safe_read): Change return type to size_t.
94865         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94866         byte counts > SSIZE_MAX correctly.
94867         * lib/safe-write.h: New file.
94868         * lib/safe-write.c: New file.
94869         * lib/full-read.h: New file.
94870         * lib/full-read.c: New file.
94871         * lib/full-write.h: Assume C89. Add comments.
94872         * lib/full-write.c: Include safe-write.h.
94873         (full_write): Rewritten to use safe_write.
94874         Suggested by Jim Meyering and Paul Eggert.
94875
94876 2002-11-21  Jim Meyering  <jim@meyering.net>
94877
94878         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94879
94880         Merge in changes from the coreutils.
94881
94882         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94883         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94884         <stdint.h>.
94885         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94886         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94887         int.  Work more efficiently if X is the same width as uintmax_t.
94888         Do not compare X to -1, to avoid bogus compiler warning.
94889         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94890         Don't assume that f_frsize and f_bsize are the same type.
94891
94892         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94893         warning on FreeBSD.
94894
94895         * lib/makepath.c (make_path): Restore umask *before* creating the final
94896         component.
94897         (make_path): Minor reformatting.
94898
94899         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94900         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94901         HAVE_MALLOC/HAVE_REALLOC.
94902
94903         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94904         dummy ones.  At least on GNU/Linux systems, `auto' means something
94905         else.
94906         From Michael Stone.
94907
94908 2002-11-21  Bruno Haible  <bruno@clisp.org>
94909
94910         Remove case insensitive option matching.
94911         * lib/argmatch.h (argcasematch): Remove declaration.
94912         (ARGCASEMATCH): Remove macro.
94913         (__xargmatch_internal): Remove case_sensitive argument.
94914         (XARGMATCH): Update.
94915         (XARGCASEMATCH): Remove macro.
94916         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94917         case_sensitive argument.
94918         (argcasematch): Remove function.
94919         (__xargmatch_internal): Remove case_sensitive argument.
94920         (main): Use XARGMATCH instead of XARGCASEMATCH.
94921
94922         * lib/xmalloc.c: Change compile-time error message. Add comment about
94923         required autoconf version.
94924
94925 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94926
94927         Merge argmatch cleanups from Bison.  Assume C89.
94928
94929         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94930         Include stdlib.h, for EXIT_FAILURE.
94931         Always include <string.h>, since we assume C89.
94932         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94933         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94934         Include <stddef.h> instead, since it's all we need for size_t.
94935         (PARAMS): Remove.  All uses removed.
94936         (ARRAY_CARDINALITY): Do not bother to #undef.
94937         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94938         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94939         Remove unnecessary parentheses.
94940         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94941         Insert necessary parentheses.
94942         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94943         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94944
94945 2002-11-19  Bruno Haible  <bruno@clisp.org>
94946
94947         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94948         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94949
94950         * lib/mbswidth.h (PARAMS): Remove macro.
94951         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94952         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94953
94954         * lib/gcd.h (PARAMS): Remove macro.
94955         (gcd): Use ANSI C function declarations.
94956         * lib/gcd.c (gcd): Likewise.
94957
94958 2002-11-15  Bruno Haible  <bruno@clisp.org>
94959
94960         * lib/strcspn.c: Include <stddef.h>.
94961         (strcspn): Use ANSI C function declaration. Change return type to
94962         size_t. Use NULL.
94963         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94964         (strpbrk): Use NULL.
94965         * lib/strpbrk.h (PARAMS): Remove macro.
94966         (strpbrk): Use ANSI C function declaration.
94967         * lib/strstr.c: Don't include <sys/types.h>.
94968         * lib/strstr.h (PARAMS): Remove macro.
94969         (strstr): Use ANSI C function declarations.
94970
94971 2002-11-14  Karl Berry  <karl@gnu.org>
94972
94973         * config/mkinstalldirs: `do' on separate line, instead of
94974         `for var; do'.
94975
94976 2002-11-06  Bruno Haible  <bruno@clisp.org>
94977
94978         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94979         * lib/gcd.c (gcd): Likewise.
94980
94981 2002-11-05  Bruno Haible  <bruno@clisp.org>
94982
94983         * lib/gcd.h: New file, from gettext-0.11.5.
94984         * lib/gcd.c: New file, from gettext-0.11.5.
94985
94986 2002-11-05  Bruno Haible  <bruno@clisp.org>
94987
94988         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94989         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94990         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94991         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94992
94993         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94994         <libintl.h>.
94995         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94996         <libintl.h>.
94997
94998         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94999         * lib/human.c: Include gettext.h instead of <libintl.h>.
95000         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95001         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95002         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95003         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95004         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95005         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95006         (textdomain): Remove definition.
95007         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95008
95009         * lib/long-options.c: Remove include of <libintl.h> and definition of
95010         _.
95011         * lib/same.c: Remove include of <libintl.h> and definition of _.
95012
95013 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95014
95015         * lib/config.charset: A few additions for Solaris.
95016
95017 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95018
95019         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95020         * lib/localcharset.c (locale_charset): Declare as extern "C".
95021
95022 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95023
95024         * lib/config.charset: msdos in uk_UA uses CP1125.
95025
95026 2002-11-04  Bruno Haible  <bruno@clisp.org>
95027
95028         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95029         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95030         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95031         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95032         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95033
95034 2002-11-04  Bruno Haible  <bruno@clisp.org>
95035
95036         * lib/localcharset.c (locale_charset): Don't return an empty string.
95037
95038 2002-11-04  Bruno Haible  <bruno@clisp.org>
95039
95040         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95041         aliases.
95042
95043 2002-11-04  Bruno Haible  <bruno@clisp.org>
95044
95045         * lib/config.charset: Update for newest glibc. Add canonical names
95046         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95047
95048 2002-11-04  Bruno Haible  <bruno@clisp.org>
95049
95050         * lib/config.charset: Add support for NetBSD.
95051
95052 2002-11-04  Bruno Haible  <bruno@clisp.org>
95053
95054         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95055
95056 2002-11-01  Bruno Haible  <bruno@clisp.org>
95057
95058         * configure.in: Add AC_CONFIG_AUX_DIR call.
95059         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95060         test/Makefile.
95061         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95062
95063 2002-09-28  Karl Berry  <karl@gnu.org>
95064
95065         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95066         installed automake until the next release, since changes have been
95067         made.
95068
95069 2002-09-25  Karl Berry  <karl@gnu.org>
95070
95071         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95072         * lib/getopt*: copy from libc/posix.
95073         * lib/gettext.h: copy from gettext.
95074         * lib/.cppi-disable: add strdup.c, gettext.h.
95075
95076 2002-09-25  Karl Berry  <karl@gnu.org>
95077
95078         * config/srclist.txt: enable gettext.h check.
95079         * config/config.{guess,sub}: update from prep.
95080         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95081                 from automake 1.6.3.
95082         See srclist*.
95083
95084 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95085
95086         * regex.c (PATFETCH): Remove the translating fetch.
95087         (PATFETCH_RAW): Rename to PATFETCH.
95088         (set_image_of_range): New fun.
95089         (SET_RANGE_TABLE_WORK_AREA): Use it.
95090         (regex_compile): Don't translate the pattern chars so eagerly.
95091         Only do it when inserting an `exactn' bytecode or when handling
95092         a char-range.
95093         (mutually_exclusive_p): Avoid empty statement.
95094
95095 2002-07-06  Jim Meyering  <meyering@lucent.com>
95096
95097         * m4/README: Don't mention Makefile.am.in.
95098         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95099
95100 2002-07-01  Jim Meyering  <meyering@lucent.com>
95101
95102         * lib/c-stack.c: Include sys/time.h.
95103         From Volker Borchert.
95104
95105 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95106
95107         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95108
95109 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95110
95111         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95112         New macro.  Use it uniformly instead of
95113         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95114         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95115         reported by Vin Shelton.
95116
95117 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95118
95119         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95120         Do not assume SA_SIGINFO behavior.
95121         Bug reported by Jim Meyering on NetBSD 1.5.2.
95122
95123 2002-06-22  Jim Meyering  <meyering@lucent.com>
95124
95125         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95126         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95127
95128         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95129         now that configure.ac uses AC_GNU_SOURCE.
95130         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95131         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95132
95133         Update to latest tools.  Suggestions from Paul Eggert.
95134         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95135         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95136         * m4/fnmatch.m4: Likewise.
95137         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95138         to AC_HEADER_STDBOOL
95139
95140 2002-06-22  Jim Meyering  <meyering@lucent.com>
95141
95142         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95143         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95144
95145 2002-06-22  Jim Meyering  <meyering@lucent.com>
95146
95147         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95148
95149         * lib/exitfail.c, exitfail.h: Likewise.
95150         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95151
95152         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95153         of fnmatch.h.
95154         (EXTRA_DIST): Add fnmatch_loop.c.
95155         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95156
95157         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95158         * lib/fnmatch.c: Update from diffutils-2.8.2.
95159         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95160         * lib/fnmatch.h: Remove file.
95161
95162 2002-06-21  Jim Meyering  <meyering@lucent.com>
95163
95164         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95165         * m4/mbrtowc.m4: Likewise.
95166
95167         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95168         * m4/mbswidth.m4: Reflect name change:
95169         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95170         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95171
95172         * m4/lib-link.m4: Update from gettext-0.11.2.
95173         * m4/gettext.m4: Likewise.
95174
95175         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95176         From Alfred M. Szmidt.
95177
95178 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95179
95180         * lib/file-type.h: Report an error if neither S_ISREG nor
95181         S_IFREG is defined, instead of using a test specific to glibc
95182         2.2.  This should be safe, since POSIX requires S_ISREG and
95183         Unix Version 7 had S_IFREG.  We don't need to check for
95184         <sys/types.h> since we don't use any symbols that it defines.
95185
95186 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95187
95188         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95189         $@-t, so that each temporary file name is unique and valid in the first
95190         8 characters, for operation under DOS.
95191
95192 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95193
95194         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95195
95196 2002-06-15  Jim Meyering  <meyering@lucent.com>
95197
95198         Work even with DJGPP 2.03, which lacks support for symlinks.
95199         From Richard Dawe.
95200         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95201         is defined.
95202         * lib/lchown.c (S_ISLNK): Likewise.
95203
95204 2002-06-15  Jim Meyering  <meyering@lucent.com>
95205
95206         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95207         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95208         have been included before this file.
95209
95210 2002-06-14  Jim Meyering  <meyering@lucent.com>
95211
95212         * lib/file-type.h: Use the version from diffutils-2.8.2.
95213         * lib/file-type.c: Likewise.
95214
95215 2002-06-07  Jim Meyering  <meyering@lucent.com>
95216
95217         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95218         They're needed at least for NetBSD 1.5.2.
95219         ($statxfs_includes): Include those same headers.
95220         ($statxfs_includes): Include sys/vfs.h if available.
95221         ($statxfs_includes): Likewise for sys/statvfs.h.
95222         Check for the following members in both structs statfs and statvfs:
95223         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95224
95225 2002-06-01  Jim Meyering  <meyering@lucent.com>
95226
95227         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95228         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95229
95230 2002-05-28  Jim Meyering  <meyering@lucent.com>
95231
95232         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95233         Reported by Volker Borchert.
95234
95235 2002-05-27  Jim Meyering  <meyering@lucent.com>
95236
95237         Fix a problem seen only on nonconforming systems whereby ls.c's
95238         use of localtime, and then of gettimeofday would cause trouble:
95239         the localtime call used to initialize rpl_gettimeofday's save
95240         mechanism would clobber ls's current local time information so
95241         that in any long listing the first file would always be listed
95242         with date 1970-01-01.  Analysis by Volker Borchert.
95243
95244         * lib/gettimeofday.c (localtime): Undefine.
95245         (rpl_localtime): New function.
95246
95247 2002-05-27  Jim Meyering  <meyering@lucent.com>
95248
95249         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95250         localtime.
95251
95252         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95253         use the replacement function; it wouldn't resolve at link time.
95254         Reported by Volker Borchert.
95255
95256 2002-05-22  Jim Meyering  <meyering@lucent.com>
95257
95258         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95259         file-type.h.
95260         * lib/file-type.h: New file.
95261         * lib/file-type.c (file_type): New file/function.  Extracted from
95262         diffutils.
95263
95264 2002-04-30  Jim Meyering  <meyering@lucent.com>
95265
95266         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95267
95268 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95269
95270         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95271
95272 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95273
95274         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95275         Do not check for alloca.h (no longer used) or stdbool.h (was never
95276         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95277
95278 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95279
95280         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95281
95282 2002-04-29  Jim Meyering  <meyering@lucent.com>
95283
95284         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95285         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95286         Use AC_FUNC_STRNLEN here instead.
95287
95288         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95289         With autoconf-2.53a, it's part of AC_PROG_CC.
95290
95291 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95292
95293         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95294         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95295
95296 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95297
95298         * lib/sig2str.h, lib/sig2str.c: New files.
95299         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95300
95301 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95302
95303         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95304         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95305         of 127, since 64 is the largest conceivable number for ancient
95306         nonstandard hosts.
95307         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95308
95309 2002-04-28  Jim Meyering  <meyering@lucent.com>
95310
95311         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95312
95313 2002-04-24  Jim Meyering  <meyering@lucent.com>
95314
95315         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95316         (jm_PREREQ): Use it.
95317
95318         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95319         mach/mach.h fcntl.h.
95320         Check for this function: setlocale.
95321
95322 2002-04-24  Jim Meyering  <meyering@lucent.com>
95323
95324         * lib/gettext.h: New file, from Gettext.
95325         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95326         (libfetish_a_SOURCES): Add gettext.h.
95327
95328 2002-04-16  Jim Meyering  <meyering@lucent.com>
95329
95330         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95331         ut_pid, ut_id, ut_exit.
95332
95333 2002-04-16  Jim Meyering  <meyering@lucent.com>
95334
95335         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95336         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95337         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95338
95339 2002-04-12  Jim Meyering  <meyering@lucent.com>
95340
95341         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95342         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95343         existence of the getmntinfo function.  Needed for Darwin 5.3.
95344
95345         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95346         This is necessary at least on Darwin 5.3.
95347
95348         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95349         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95350         strnlen.o in the library, and that makes some versions of ranlib
95351         object.
95352
95353 2002-04-12  Jim Meyering  <meyering@lucent.com>
95354
95355         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95356
95357 2002-04-09  Jim Meyering  <meyering@lucent.com>
95358
95359         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95360         to be more precise.  Rather than saying we're checking whether the
95361         function `works', say what we're testing.
95362         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95363         Reported by Bruno Haible.
95364
95365 2002-03-10  Jim Meyering  <meyering@lucent.com>
95366
95367         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95368         Suggestion from Santiago Vila.
95369
95370 2002-03-08  Jim Meyering  <meyering@lucent.com>
95371
95372         * lib/rename.c: Mention that this wrapper is needed also on
95373         mips-dec-ultrix4.4 systems.
95374
95375 2002-03-02  Jim Meyering  <meyering@lucent.com>
95376
95377         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95378         not HAVE_CLOCK_SETTIME.
95379
95380 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95381
95382         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95383         Check for clock_settime.
95384
95385 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95386
95387         * lib/nanosleep.h: Rename to....
95388         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95389
95390         * lib/gettime.c: New file.
95391         * lib/settime.c: New file.
95392         * lib/stime.c: Remove.
95393
95394         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95395         timespec.h.  Remove nanosleep.h.
95396
95397 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95398
95399         * m4/acl.m4: New file.
95400         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95401         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95402
95403 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95404
95405         * lib/acl.c, lib/acl.h: New files.
95406         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95407
95408 2002-02-24  Jim Meyering  <meyering@lucent.com>
95409
95410         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95411         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95412         cause trouble.  Reported by Nelson Beebe.
95413
95414 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95415
95416         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95417         compilers that don't know that xalloc_die never returns.
95418
95419 2002-02-20  Jim Meyering  <meyering@lucent.com>
95420
95421         * lib/getdate.c: Regenerate using bison-1.33.
95422
95423 2002-02-17  Jim Meyering  <meyering@lucent.com>
95424
95425         * config/config.guess (main): Don't use `head -1'; it's no longer
95426         portable. Use `sed 1q' instead.
95427
95428 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95429
95430         * m4/codeset.m4: Upgrade to gettext-0.11.
95431         * m4/gettext.m4: Upgrade to gettext-0.11.
95432         * m4/glibc21.m4: Upgrade to gettext-0.11.
95433         * m4/iconv.m4: Upgrade to gettext-0.11.
95434         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95435         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95436         * m4/lib-ld.m4: New file, from gettext-0.11.
95437         * m4/lib-link.m4: New file, from gettext-0.11.
95438         * m4/lib-prefix.m4: New file, from gettext-0.11.
95439         * m4/progtest.m4: Upgrade to gettext-0.11.
95440
95441 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95442
95443         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95444         (jm_PREREQ): Use it.
95445
95446 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95447
95448         * lib/posixver.c, lib/posixver.h: New files.
95449         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95450
95451 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95452             Bruno Haible  <bruno@clisp.org>
95453
95454         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95455         (fwrite_success_callback): New declaration.
95456         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95457         print_unicode_char. Call failure callback instead of error.
95458         (fwrite_success_callback): New function.
95459         (exit_failure_callback): New function.
95460         (fallback_failure_callback): New function.
95461         (print_unicode_char): Call unicode_to_mb.
95462
95463 2002-01-26  Jim Meyering  <meyering@lucent.com>
95464
95465         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95466         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95467
95468 2002-01-26  Jim Meyering  <meyering@lucent.com>
95469
95470         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95471
95472 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95473
95474         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95475
95476 2002-01-22  Jim Meyering  <meyering@lucent.com>
95477
95478         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95479         Otherwise, some versions of automake would omit the rule that makes
95480         Makefile from Makefile.in.
95481
95482 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95483
95484         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95485         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95486         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95487         (memcoll): Set errno to zero if there is no error.
95488
95489         * lib/quotearg.c (quotearg_buffer_restyled):
95490         Fix bug with quoting buffers containing NUL when backslashing escapes.
95491         This bug was exposed by the other changes in this patch.
95492         (quotearg_n_options): New arg ARGSIZE.
95493         All callers changed.
95494         (quoting_options_from_style): New function.
95495         (quotearg_n_style): Use it.
95496         (quotearg_n_style_mem): New function.
95497
95498         * lib/quotearg.h (quotearg_n_style_mem): New function.
95499
95500 2002-01-19  Jim Meyering  <meyering@lucent.com>
95501
95502         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95503         Remove useless quotes: DF_PROG="df".
95504         * m4/strnlen.m4: New file.
95505
95506 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95507
95508         * lib/backupfile.c (ISDIGIT): Comment fix.
95509         * lib/getdate.y (ISDIGIT): Likewise.
95510         * lib/posixtm.c (ISDIGIT, year): Likewise.
95511         * lib/strverscmp.c (ISDIGIT): Likewise.
95512         * lib/userspec.c (ISDIGIT): Likewise.
95513
95514 2002-01-16  Jim Meyering  <meyering@lucent.com>
95515
95516         * lib/getdate.y: Add three semicolons, each just before a closing
95517         brace. Bison (as of version 1.31) no longer papers over that mistake.
95518
95519 2002-01-05  Jim Meyering  <meyering@lucent.com>
95520
95521         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95522
95523 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95524
95525         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95526         not silently exit merely because the output buffer happens to
95527         have nothing pending.
95528
95529 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95530
95531         See the big note in ../ChangeLog.
95532         * lib/human.c (suffixes): Prefer K to k for 1024.
95533         (generate_suffix_backwards): New function.
95534         (human_readable_inexact): Use it.
95535         * lib/xstrtol.c (__xstrtol): If there is no number but there
95536         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95537         Accept 'K' as well as 'k'.
95538
95539 2001-12-15  Jim Meyering  <meyering@lucent.com>
95540
95541         * lib/regex.h (__restrict_arr): Update from libc.
95542
95543         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95544         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95545         (STREQ): Define.
95546
95547 2001-12-14  Jim Meyering  <meyering@lucent.com>
95548
95549         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95550         Suggestion from Bruno Haible.
95551
95552 2001-12-10  Jim Meyering  <meyering@lucent.com>
95553
95554         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95555         xrealloc, Instead, include "xalloc.h".
95556         (initbuffer): Don't cast xmalloc return value to char*.
95557         (readline): Reword comment.
95558         Don't cast xrealloc return value to char*
95559         Return NULL, not 0.
95560
95561 2001-12-09  Jim Meyering  <meyering@lucent.com>
95562
95563         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95564         about `signed and unsigned type in conditional expression'.
95565         * lib/posixtm.c (posix_time_parse): Likewise.
95566
95567         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95568
95569         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95570         to avoid a pedantic warning.
95571
95572         * lib/getstr.c: Don't include assert.h.
95573         (getstr): Remove warning-evoking assertions.
95574         Return -1 if offset parameter is out of bounds.
95575         Change the type of a local from int to size_t.
95576
95577         * lib/strftime.c (my_strftime_localtime_r): Include this function
95578         definition in the `#if ! HAVE_TM_GMTOFF' block.
95579
95580         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95581         Include xalloc.h instead.
95582
95583 2001-12-02  Jim Meyering  <meyering@lucent.com>
95584
95585         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95586         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95587         included.
95588
95589         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95590         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95591
95592 2001-11-30  Akim Demaille  <akim@epita.fr>
95593
95594         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95595         before being defined.
95596
95597 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95598
95599         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95600         First arg is int, not unsigned.
95601         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95602         (SIZE_MAX, UINT_MAX): New macros.
95603         (quotearg_n_options): Abort if N is negative.
95604         Avoid overflow check on hosts where size_t is 64 bits and int
95605         is 32 bits, as overflow is impossible there.
95606         Fix off-by-one typo that caused unnecessary reallocation.
95607
95608 2001-11-27  Jim Meyering  <meyering@lucent.com>
95609
95610         * lib/tempname.c: Merge with version from libc.
95611         * lib/regex.c: Likewise.
95612
95613         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95614         systems for which STDC_HEADERS is 0, it was not included, resulting in
95615         a warning about an integer-to-pointer conversion problem with getenv.
95616         Reported by Volker Borchert.
95617
95618 2001-11-26  Jim Meyering  <meyering@lucent.com>
95619
95620         * lib/gtod.h: Remove file.
95621         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95622         * lib/gettimeofday.c: Don't include gtod.h.
95623         (GTOD_init): Remove function.
95624         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95625         Suggestion from Volker Borchert.
95626
95627 2001-11-23  Jim Meyering  <meyering@lucent.com>
95628
95629         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95630         it.
95631         * lib/hash.c (struct hash_table): Define it here instead.
95632
95633 2001-11-22  Jim Meyering  <meyering@lucent.com>
95634
95635         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95636
95637 2001-11-20  Jim Meyering  <meyering@lucent.com>
95638
95639         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95640         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95641
95642 2001-11-19  Jim Meyering  <meyering@lucent.com>
95643
95644         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95645         directory.  Use "conftestXXXXXX" as the template.
95646         Suggestion from Paul Eggert.
95647
95648         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95649         immediately, so the test doesn't mistakenly hit the max-open-files
95650         limit.
95651
95652 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95653
95654         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95655         (TEMPORARIES): New macro.
95656         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95657         removes an artificial limitation (e.g. HP-UX 10.20, where
95658         TMP_MAX is 17576).
95659
95660 2001-11-18  Jim Meyering  <meyering@lucent.com>
95661
95662         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95663
95664 2001-11-18  Jim Meyering  <meyering@lucent.com>
95665
95666         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95667         on SunOS 4.
95668
95669         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95670         files will be created before anything else.
95671
95672 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95673
95674         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95675         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95676
95677 2001-11-17  Jim Meyering  <meyering@lucent.com>
95678
95679         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95680         Prompted by a report from Bob Proulx.
95681
95682         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95683         Instead, require UTILS_FUNC_MKSTEMP.
95684
95685 2001-11-17  Jim Meyering  <meyering@lucent.com>
95686
95687         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95688         Now, that's done as part of AC_FUNC_STRTOD.
95689
95690 2001-11-17  Jim Meyering  <meyering@lucent.com>
95691
95692         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95693         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95694         rather than group writable.  Patch by Juan F. Codagnone.
95695
95696         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95697         xrealloc, Instead, include "xalloc.h".
95698
95699         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95700         Remove explicit declarations of xmalloc, xrealloc,
95701         and xstrdup.  Instead, include "xalloc.h".
95702
95703         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95704         unlocked-io.h.
95705         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95706         Likewise.
95707         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95708
95709         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95710         Reported by Padraig Brady.
95711
95712         * lib/mkstemp.c: #undef mkstemp.
95713         Include config.h.
95714         (rpl_mkstemp): Rename from mkstemp.
95715         Protoize.
95716
95717 2001-11-16  Jim Meyering  <meyering@lucent.com>
95718
95719         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95720         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95721         determine the amount of total physical memory, use pstat_getstatic.
95722         HPUX-11 doesn't define _SC_PHYS_PAGES.
95723         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95724         If sysconf couldn't be used to determine the amount of available
95725         physical memory, use both pstat_getstatic and pstat_getdynamic.
95726         Based on a patch from Bob Proulx.
95727
95728 2001-11-10  Jim Meyering  <meyering@lucent.com>
95729
95730         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95731         (jm_PREREQ): Use it.
95732
95733 2001-11-09  Jim Meyering  <meyering@lucent.com>
95734
95735         * m4/jm-macros.m4: Require autoconf-2.52f.
95736         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95737         Use these AC_-prefixed names, not the AM_-prefixed ones.
95738
95739         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95740
95741 2001-11-05  Jim Meyering  <meyering@lucent.com>
95742
95743         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95744
95745 2001-11-04  Jim Meyering  <meyering@lucent.com>
95746
95747         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95748         $DEFS.
95749
95750 2001-11-03  Jim Meyering  <meyering@lucent.com>
95751
95752         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95753         of AC_DEFUN.
95754
95755         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95756         know the name of the variable in the macro definition.
95757
95758 2001-11-03  Jim Meyering  <meyering@lucent.com>
95759
95760         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95761         in argmatch_to_argument call.
95762
95763         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95764         argument.
95765
95766         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95767         e.g., a fault due to an attempt to free a NULL pointer.
95768
95769 2001-11-01  Jim Meyering  <meyering@lucent.com>
95770
95771         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95772         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95773
95774 2001-11-01  Jim Meyering  <meyering@lucent.com>
95775
95776         * lib/dirfd.c, lib/dirfd.h: New files.
95777         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95778
95779         * lib/hash.c (hash_print) [TESTING]: Clean up.
95780
95781 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95782
95783         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95784         to avoid a warning if -Wall.
95785
95786 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95787
95788         * README: New file
95789         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95790         (per RMS's instructions, this is now the canonical source)
95791         * lgpl/, gpl/: New directories.
95792
95793 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95794
95795         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95796
95797 2001-10-21  Jim Meyering  <meyering@lucent.com>
95798
95799         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95800         this code would end up calling gettext even in packages built
95801         with --disable-nls.
95802         * lib/getopt.c (_): Likewise.
95803         * lib/regex.c (_): Likewise.
95804
95805 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95806
95807         * m4/error.m4 (jm_PREREQ_ERROR):
95808         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95809         AC_FUNC_STRERROR_R does that.
95810         Check for strerror declaration.
95811
95812         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95813         are supposed to have them these days.
95814         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95815         Merge changes from latest Autoconf CVS.
95816         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95817         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95818         POSIX decided to standardize on the int flavor of strerror_r.
95819
95820 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95821
95822         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95823         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95824         Use strerror_r that is only a macro, even if it is not a function.
95825         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95826         (private_strerror): Use prototypes, not old-style function definition.
95827         (print_errno_message): New function.
95828         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95829         char*-flavored one.
95830         (error_tail, error, error_at_line): Use it.
95831
95832 2001-10-11  Jim Meyering  <meyering@lucent.com>
95833
95834         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95835         and quote_n (1, ... to avoid clobbering a buffer.
95836
95837 2001-10-05  Jim Meyering  <meyering@lucent.com>
95838
95839         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95840         hash-pjw.h.
95841         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95842         * lib/hash-pjw.h: New file.
95843
95844 2001-09-30  Jim Meyering  <meyering@lucent.com>
95845
95846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95847         `struct fsstat' has the `f_fstypename' member.
95848         Use that to define FS_TYPE, which is now used to make
95849         the getfsstat link test tighter.
95850
95851 2001-09-30  Jim Meyering  <meyering@lucent.com>
95852
95853         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95854         Include <sys/ucred.h>, for Apple Darwin.
95855         Include sys/mount.h and sys/fs_types.h only if available.
95856         (FS_TYPE): Define.
95857         (read_filesystem_list): Use FS_TYPE.
95858
95859 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95860
95861         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95862         a boolean context.
95863
95864 2001-09-29  Jim Meyering  <meyering@lucent.com>
95865
95866         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95867         [one-argument getmntent function]): Include stdio.h before mntent.h.
95868         SunOS 4.1.x needs it for the declaration of `FILE'.
95869         Patch by Volker Borchert.
95870
95871         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95872         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95873         sys/fs_types.h, and make the link-test for getfsstat guard #include
95874         directives with appropriate #if HAVE_*_H tests so that we can
95875         detect getfsstat on Apple Darwin1.3.7 systems.
95876         Reported by Nelson Beebe.
95877         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95878
95879 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95880
95881         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95882         #defines strtoimax.  Also treat the other strto* functions
95883         like strtoimax.
95884
95885         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95886         Check for strtoul and strtoumax,
95887         as those declarations are made even in the signed case.
95888         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95889         Likewise, for strtol and strtoimax.
95890
95891 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95892
95893         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95894         #defines strtoimax.  Also treat the other strto* functions
95895         like strtoimax.
95896
95897         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95898         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95899         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95900
95901 2001-09-26  Jim Meyering  <meyering@lucent.com>
95902
95903         Most macros in unlocked-io.h had the wrong number of arguments.
95904         * lib/gen-uio: New script.
95905         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95906         * lib/unlocked-io.hin: Remove file.
95907         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95908         rather than trying to embed it here.
95909         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95910         Reported by Padraig Brady.
95911
95912 2001-09-25  Volker Borchert  <bt@teknon.de>
95913
95914         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95915         `result'.
95916
95917 2001-09-24  Jim Meyering  <meyering@lucent.com>
95918
95919         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95920
95921 2001-09-23  Jim Meyering  <meyering@lucent.com>
95922
95923         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95924         instead of the mere test for existence of mntent.h.  The latter
95925         would get a false-positive on AIX 3.4 systems.
95926         In the outer getmntent if-block, don't die if neither of the getmntent
95927         tests succeeds.  Instead, just fall through and continue with the
95928         remaining tests.
95929
95930 2001-09-23  Jim Meyering  <meyering@lucent.com>
95931
95932         * lib/mountlist.c: Remove useless parentheses in #if directives.
95933         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95934         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95935
95936 2001-09-22  Jim Meyering  <meyering@lucent.com>
95937
95938         * m4/gettext.m4: New file.  From gettext.
95939         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95940         * m4/progtest.m4: Likewise
95941         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95942         * m4/glibc21.m4: Likewise.
95943
95944         * m4/libintl.m4: Remove.  No longer used.
95945
95946 2001-09-22  Jim Meyering  <meyering@lucent.com>
95947
95948         * lib/localcharset.c: Update from latest gettext.
95949         * lib/config.charset: Likewise.
95950
95951 2001-09-20  Jim Meyering  <meyering@lucent.com>
95952
95953         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95954         strtoimax.
95955         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95956         strtoumax.
95957
95958 2001-09-20  Jim Meyering  <meyering@lucent.com>
95959
95960         * lib/xstrtol.c (strtoimax): Guard declaration with
95961         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95962         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95963         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95964         (strtoumax): Likewise, for completeness (it wasn't necessary).
95965
95966 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95967
95968         * lib/strtoimax.c (HAVE_LONG_LONG):
95969         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95970         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95971         to work around bug in IBM C compiler.
95972
95973 2001-09-17  Jim Meyering  <meyering@lucent.com>
95974
95975         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95976         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95977         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95978         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95979         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95980         whenever the right hand side need not be expanded by the shell.
95981
95982 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95983
95984         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95985         library.  It's not correct, as some older glibcs are buggy.
95986         fnmatch wasn't fixed until glibc 2.2.
95987
95988         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95989         special shell magic here.
95990
95991 2001-09-16  Jim Meyering  <meyering@lucent.com>
95992
95993         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95994         * m4/jm-macros.m4: Require it.
95995
95996 2001-09-16  Jim Meyering  <meyering@lucent.com>
95997
95998         * lib/mkdir.c: New file.
95999
96000 2001-09-15  Jim Meyering  <meyering@lucent.com>
96001
96002         * m4/jm-macros.m4: Check for help2man.
96003
96004 2001-09-11  Jim Meyering  <meyering@lucent.com>
96005
96006         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96007         The body, by Paul Eggert, was moved here from configure.in.
96008         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96009
96010 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96011
96012         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96013         (jm_PREREQ): Use it.
96014
96015 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96016
96017         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96018         Use ssize_t, not int, to store result of readlink.
96019         Check for ssize_t overflow as well as size_t overflow,
96020         as POSIX says the result of readlink is implementation-defined
96021         when ssize_t overflows.
96022         Remove unnecessary cast to char*.
96023         Use free+malloc instead of realloc, as the storage doesn't need
96024         to be preserved and it's clearer and can be more efficient that way.
96025         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96026         * lib/xreadlink.h (xreadlink): Update prototype.
96027
96028 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96029
96030         * lib/xgetcwd.c: Revert some of the previous change; intead,
96031         fix the HAVE_GETCWD_NULL code to behave more like the
96032         !HAVE_GETCWD_NULL code used to.
96033
96034         Include "xalloc.h".
96035         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96036         invoke xalloc_die.
96037
96038 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96039
96040         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96041         sys/param.h, as pathmax.h includes them.
96042
96043 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96044
96045         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96046         (jm_PREREQ_XGETCWD): New macro.
96047
96048         * m4/getcwd.m4: New file.
96049
96050 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96051
96052         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96053         like the HAVE_GETCWD_NULL code.
96054         Include pathmax.h if not HAVE_GETCWD.
96055         Do not include xalloc.h.
96056         (INITIAL_BUFFER_SIZE): New symbol.
96057         Do not use xmalloc / xrealloc, since the caller is responsible for
96058         handling errors.  Preserve errno around `free' during failure.
96059         Do not overrun buffer when using getwd.
96060
96061 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96062
96063         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96064         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96065         getcwd (NULL, 0).
96066
96067 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96068
96069         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96070         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96071         spotted by Jim Meyering.
96072
96073 2001-09-03  Jim Meyering  <meyering@lucent.com>
96074
96075         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96076         failure.
96077
96078 2001-09-02  Jim Meyering  <meyering@lucent.com>
96079
96080         * lib/error.c: Update from GNU libc.
96081
96082 2001-09-01  Jim Meyering  <meyering@lucent.com>
96083
96084         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96085         Used by df.
96086
96087 2001-09-01  Jim Meyering  <meyering@lucent.com>
96088
96089         * lib/xreadlink.c: New file.
96090         * lib/xreadlink.h: New file.
96091         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96092         xreadlink.h.
96093
96094         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96095         doesn't conflict with sparc Solaris 7's definition in
96096         /usr/include/sys/int_types.h.
96097
96098         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96099         files.
96100         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96101         and strncasecmp as r-values.  Unixware didn't have declarations.
96102
96103 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96104
96105         * lib/xstrtol.h: Add copyright notice.
96106         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96107         LONGINT_INVALID_SUFFIX_CHAR.
96108
96109 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96110
96111         * lib/xstrtol.c (strtoimax): New decl.
96112
96113 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96114
96115         * lib/xgetcwd.c: Don't include pathmax.h.
96116         Include stdlib.h and unistd.h if available.
96117         Include xalloc.h.
96118         (xmalloc, xstrdup, free): Remove decls.
96119         (xgetcwd): Don't assume sizes fit in unsigned.
96120         Check for overflow when computing sizes.
96121         Simplify reallocation code.
96122
96123 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96124
96125         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96126         a directory's st_size can have an arbitrary value, so the old
96127         usage could waste an arbitrary amount of memory.  All uses
96128         changed.
96129         * lib/savedir.h: Update prototype.
96130
96131 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96132
96133         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96134
96135         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96136         old strtoimax.c.
96137
96138         Also, make the following further changes to make this file's
96139         configuration more similar to that of strtol.c:
96140         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96141         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96142         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96143         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96144         changed to signed values.
96145
96146         And make the following changes as well:
96147         Fix copyright notice, as 1999 was missing.
96148         (verify): New macro.
96149         (strtoimax): Check sizes at compile-time, not run-time.
96150         Prefer strtol to strtoll if both work.
96151         (main): Remove; it was not that useful and was a pain to maintain.
96152
96153         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96154
96155 2001-08-31  Jim Meyering  <meyering@lucent.com>
96156
96157         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96158         Use an initial, malloc'd, buffer of length 128 rather than
96159         a statically allocated one of length 1024.
96160
96161 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96162
96163         Simplify code, partly by assuming autoconf 2.52 semantics.
96164
96165         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96166
96167         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96168         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96169         All uses removed.
96170         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96171         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96172         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96173         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96174         jm_AC_HEADER_INTTYPES_H.
96175         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96176
96177         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96178
96179         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96180         Quote first arg of AC_DEFUN.
96181         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96182         since they are needed to parse the include file even if we need
96183         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96184         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96185         but with opposite signedness.
96186
96187 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96188
96189         Merge 'exclude' changes from tar 1.13.22.
96190         This fixes one or two unlikely storage allocation overflow bugs,
96191         but doesn't change user-visible behavior otherwise.
96192
96193 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96194
96195         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96196         (jm_PREREQ_EXCLUDE): New macro.
96197
96198 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96199
96200         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96201         tm to be declared.
96202
96203 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96204
96205         * lib/hash.c: Remove '2001' from copyright notice.
96206
96207 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96208
96209         * lib/full-write.h: New file.
96210         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96211         * lib/full-write.c: Correct credits, as cccp.c no longer
96212         exists and anyway it was so heavily changed from the old cccp
96213         code as to be unrecognizable.  Include full-write.h.
96214         (full_write): Return size_t, with short writes meaning failure.
96215         All callers changed.  This fixes a bug with large buffers
96216         on 64-bit hosts.
96217         * lib/utime.c: Include full-write.h.
96218
96219 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96220
96221         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96222         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96223         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96224         Include if available.
96225         (<xalloc.h>): Include
96226         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96227         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96228         collide with FNM macros.
96229         (struct patopts): New struct.
96230         (struct exclude): Use it, as exclude patterns now come with options.
96231         (new_exclude): Support above changes.
96232         (new_exclude, add_exclude_file):
96233         Initial size must now be a power of two to simplify overflow checking.
96234         (free_exclude, fnmatch_no_wildcards): New function.
96235         (excluded_filename): No longer requires options arg, as the options
96236         are determined by add_exclude.  Now returns bool, not int.
96237         (excluded_filename, add_exclude):
96238         Add support for the fancy new exclusion options.
96239         (add_exclude, add_exclude_file): Now takes int options arg.
96240         Check for arithmetic overflow when computing sizes.
96241         (add_exclude_file): xrealloc might modify errno, so don't
96242         realloc until after errno might be used.
96243
96244         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96245         New macros.
96246         (free_exclude): New decl.
96247         (add_exclude, add_exclude_file): Now takes int options arg.
96248         (excluded_filename): No longer requires options arg, as the options
96249         are determined by add_exclude.  Now returns bool, not int.
96250
96251 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96252
96253         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96254
96255 2001-08-27  Jim Meyering  <meyering@lucent.com>
96256
96257         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96258
96259         * lib/version-etc.c (N_): Remove definition.
96260         Revert most of last change.
96261         Instead, simply don't mark the `Copyright...' string for translation.
96262         Based on advice from Paul Eggert.
96263
96264         * lib/strtoxmax.c: Tweak comment.
96265
96266 2001-08-26  Jim Meyering  <meyering@lucent.com>
96267
96268         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96269
96270         * m4/xstrtoimax.m4: New file.
96271         * m4/xstrtoumax.m4: Add comments explaining why we
96272         AC_REPLACE_FUNCS(strtol).
96273
96274 2001-08-26  Jim Meyering  <meyering@lucent.com>
96275
96276         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96277         of copyright with `%s' so translators don't get an untranslated
96278         message in 2002.
96279         (COPYRIGHT_YEAR): Define.
96280         (version_etc): Use fprintf rather than fputs.
96281         Suggestion from Ulrich Drepper.
96282
96283         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96284
96285         * lib/strtoll.c: New file, from GNU libc.
96286         * lib/xstrtoimax.c: New file.
96287
96288         * lib/xstrtol.h: Add xstrtoimax.
96289         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96290         * lib/strtoimax.c: New file.  Likewise, but first define
96291         STRTOUXMAX_SIGNED.
96292
96293         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96294         ...
96295         * lib/strtoxmax.c: ... then renamed to this.
96296
96297 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96298
96299         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96300         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96301         (jm_AC_TYPE_INTMAX_T): New macro.
96302         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96303
96304         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96305
96306         * m4/longlong.m4: Renamed from ulonglong.m4.
96307         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96308         * m4/uintmax_t.m4: Removed.
96309
96310 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96311
96312         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96313         Port to Solaris 8, where 'sed' requires a space after the 'r'
96314         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96315         Redirect output to $tmp just once.
96316
96317 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96318
96319         * lib/addext.c (<errno.h>): Include.
96320         (errno): Declare if not defined.
96321         (addext): Work correctly when pathconf returns -1 and leaves
96322         errno alone because there is no limit.  Also, work even if
96323         pathconf returns a value greater than SIZE_MAX.
96324
96325 2001-08-12  Jim Meyering  <meyering@lucent.com>
96326
96327         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96328         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96329         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96330         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96331         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96332         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96333         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96334         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96335         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96336         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96337         utime.m4, utimes.m4, xstrtoumax.m4:
96338         Quote the first argument in each use of AC_DEFUN.
96339
96340 2001-08-12  Jim Meyering  <meyering@lucent.com>
96341
96342         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96343         Simply `return getcwd (NULL, 0);'.
96344         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96345         Use 1300 as initial value for length, not PATH_MAX.
96346
96347         * lib/pathmax.h: Clean up cpp syntax.
96348
96349 2001-08-12  Jim Meyering  <meyering@lucent.com>
96350
96351         * lib/gettimeofday.c: New file.
96352         * lib/gtod.h: New file.
96353         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96354
96355 2001-08-05  Jim Meyering  <meyering@lucent.com>
96356
96357         * m4/jm-macros.m4: Require autoconf-2.52.
96358
96359 2001-08-04  Jim Meyering  <meyering@lucent.com>
96360
96361         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96362         stmt, to get in sync with glibc.
96363
96364 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96365
96366         The following changes are from gettext 0.10.39 as maintained by
96367         Bruno Haible.
96368
96369         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96370         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96371         with inverted sense.  All uses changed.
96372
96373         * lib/mbswidth.c: Don't include <limits.h>.
96374         Include <stdlib.h> and <string.h> unconditionally.
96375         (iswcntrl, mbsinit, ISCNTRL): New macros.
96376         (mbsnwidth): Use K&R style function declarations.
96377         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96378         can optimize it when MB_CUR_MAX == 1.
96379         The width of control characters is zero, not 1.
96380
96381 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96382
96383         The following changes are from gettext 0.10.39 as maintained by
96384         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96385
96386         * m4/codeset.m4: Upgrade to serial AM1.
96387         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96388         all uses changed.  Quote first arg of AC_DEFUN.
96389         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96390
96391         * m4/iconv.m4: Upgrade to serial AM2.
96392         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96393         Add --with-libconv-prefix.
96394         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96395         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96396         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96397         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96398         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96399
96400         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96401         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96402         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96403         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96404         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96405         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96406         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96407         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96408         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96409
96410         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96411         string.h any more.
96412
96413         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96414         not the default value.
96415
96416         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96417         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96418         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96419         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96420         Also check for iswcntrl, used for wcwidth fallback.
96421         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96422         to Autoconf 2.13.
96423
96424 2001-08-03  Jim Meyering  <meyering@lucent.com>
96425
96426         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96427         as it was in the original.  Reported by Paul Eggert.
96428
96429 2001-07-16  Jim Meyering  <meyering@lucent.com>
96430
96431         * m4/gettimeofday.m4: New file.
96432         Prompted by a report from Bernhard Baehr.
96433
96434 2001-07-15  Jim Meyering  <meyering@lucent.com>
96435
96436         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96437         stuff. Now it's in ../Makefile.cfg.
96438
96439 2001-07-15  Jim Meyering  <meyering@lucent.com>
96440
96441         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96442         (BUILT_SOURCES): Add unlocked-io.h.
96443         (io_functions): Define.
96444         (unlocked-io.h): New rule.
96445         (DISTCLEANFILES): Add unlocked-io.h.
96446         (all-local): Depend on unlocked-io.h, to ensure it is created.
96447
96448         * lib/unlocked-io.hin: New file
96449
96450         * lib/regex.c: Update from glibc.
96451
96452 2001-07-05  Jim Meyering  <meyering@lucent.com>
96453
96454         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96455         recommendation.
96456         (libfetish_a_SOURCES): Put all .h files here instead.
96457         Remove a thus-exposed (better checks in automake) duplicate and
96458         two unnecessary .h files.
96459
96460 2001-07-04  Jim Meyering  <meyering@lucent.com>
96461
96462         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96463         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96464         distcheck failure.
96465
96466 2001-07-02  Jim Meyering  <meyering@lucent.com>
96467
96468         The following changes were prompted by suggestions from Bruno Haible.
96469
96470         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96471         is now generated.
96472         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96473         definition of EXTRA_DIST.
96474         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96475         ensure that the generated file is created/updated whenever the list
96476         of $(unlocked_functions) is changed.
96477         (jm-glibc-io.m4): New rule.
96478         (unlocked-io.h): New rule -- currently unused.
96479
96480 2001-06-24  Jim Meyering  <meyering@lucent.com>
96481
96482         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96483         unmatched right bracket, rather than kludging it with an extra,
96484         falsely-matching quote in a comment.  Patch by Akim Demaille.
96485
96486 2001-06-11  Jim Meyering  <meyering@lucent.com>
96487
96488         * lib/regex.c: Update from GNU libc.
96489
96490 2001-05-27  Jim Meyering  <meyering@lucent.com>
96491
96492         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96493         Check for ut_type in struct utmp.
96494
96495 2001-05-27  Jim Meyering  <meyering@lucent.com>
96496
96497         * lib/readutmp.h (UT_TYPE): Define.
96498
96499 2001-05-24  Jim Meyering  <meyering@lucent.com>
96500
96501         * lib/argmatch.c: Include "quote.h".
96502         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96503         quote function.  Reported by Göran Uddeborg.
96504
96505 2001-05-22  Jim Meyering  <meyering@lucent.com>
96506
96507         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96508         now that we use the package-supplied version unconditionally.
96509         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96510
96511 2001-05-21  Jim Meyering  <meyering@lucent.com>
96512
96513         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96514         shell syntax errors.
96515
96516 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96517
96518         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96519
96520 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96521
96522         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96523         Don't bother to check library strftime, since
96524         we'll be using our own my_strftime function anyway.
96525         Define my_strftime instead of strftime.
96526
96527 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96528
96529         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96530         which is not yet declared.
96531
96532 2001-05-15  Jim Meyering  <meyering@lucent.com>
96533
96534         * m4/regex.m4: Use proper quoting so brackets appear in the test
96535         program.
96536         Reported by, and with help from, Bruno Haible.
96537
96538 2001-05-13  Jim Meyering  <meyering@lucent.com>
96539
96540         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96541         undefined.
96542
96543 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96544
96545         dirname code cleanup.  base_name now behaves more compatibly
96546         with POSIX basename when given file names that have trailing
96547         slashes, and similarly for dir_name.  Add new primitives
96548         base_len and dir_len.  Put the directory-name-related decls
96549         into dirname.h.
96550
96551         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96552         * lib/backupfile.c (base_name): Likewise.
96553         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96554         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96555         * lib/makepath.c (strip_trailing_slashes): Likewise.
96556         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96557         ISSLASH): Likewise.
96558         * lib/rename.c (strip_trailing_slashes): Likewise.
96559         * lib/same.c (base_name): Likewise.
96560         * lib/stripslash.c (ISSLASH): Likewise.
96561
96562         * lib/addext.c: Include <dirname.h> after size_t is defined.
96563         * lib/backupfile.c: Likewise.
96564
96565         * lib/addext.c (addext): Use base_len to trim redundant
96566         trailing slashes instead of doing it ourselves.
96567         But do not trim the last slash if it is not redundant.
96568
96569         * lib/backupfile.c (find_backup_file_name,
96570         max_backup_version): Use base_len instead of rolling it ourselves.
96571         Handle the case of "" and (on DOS) "C:" correctly.
96572
96573         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96574         needed. Include <string.h>, <dirname.h>.
96575         (base_name): Allow file names ending in slashes, other than names
96576         that are all slashes.  In this case, return the basename followed
96577         by the slashes.  This is more general, and can be used in places
96578         where the original base_name purposely had an assertion failure.
96579         (base_len): New function.
96580
96581         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96582         Do not include <assert.h>; no longer needed.
96583         Include xalloc.h.
96584         (memrchr): Remove decl.
96585         (dir_name_r): Remove.
96586         (dir_len): Renamed from dirlen.  All callers changed.
96587         Rewrite in terms of base_name, for simplicity and consistency.
96588         (dir_name): Never return NULL.  All callers changed.
96589         Do not include <stdlib.h> in test program; no longer needed.
96590         return 0; is fine for test program.
96591
96592         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96593         New macros.
96594         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96595
96596         * lib/path-concat.c (path_concat): Use base_len to compute
96597         base length, not strlen; this means we cannot rely on memcpy
96598         to null-terminate.
96599
96600         * lib/same.c (STREQ): Remove.
96601         (same_name): Handle the case where the basename ends in trailing '/'.
96602
96603         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96604         a slash was stripped.  Do not strip the last slash after a
96605         file system prefix.
96606
96607 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96608
96609         * lib/Makefile.am (libfetish_a_SOURCES):
96610         Add strftime.c, since we now compile it on all hosts.
96611
96612         * lib/strftime.c (my_strftime):
96613         Define to nstrftime if emacs, but only if my_strftime is not defined.
96614         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96615         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96616         Add one more extra argument: a nanoseconds value.
96617         All uses changed.
96618         (ns): New macro.
96619         (my_strftime function): Add %N format.
96620         (emacs_strftimeu): Renamed from emacs_strftime,
96621         with extra ut argument.
96622
96623 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96624
96625         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96626
96627 2001-04-21  Jim Meyering  <meyering@lucent.com>
96628
96629         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96630         doesn't interfere.
96631
96632 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96633
96634         * m4/ftruncate.m4: Check for chsize.
96635         Link with ftruncate.o unconditionally if ftruncate is missing.
96636         This was required when cross-compiling to i586-mingw32msvc.
96637
96638 2001-04-08  Jim Meyering  <meyering@lucent.com>
96639
96640         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96641         recomputed; that's necessary when the offset spans a DST transition.
96642         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96643
96644 2001-04-02  Jim Meyering  <meyering@lucent.com>
96645
96646         * lib/regex.h, regex.c: Update from GNU libc.
96647
96648 2001-03-24  Jim Meyering  <meyering@lucent.com>
96649
96650         * m4/jm-macros.m4: Require autoconf-2.49d.
96651
96652 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96653
96654         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96655
96656 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96657
96658         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96659
96660 2001-03-17  Jim Meyering  <meyering@lucent.com>
96661
96662         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96663         now that the version in autoconf is equivalent.
96664         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96665
96666         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96667         Suggestion from Akim Demaille.
96668
96669         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96670         (jm_PREREQ_TEMPNAME): New function.
96671
96672 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96673
96674         * lib/tempname.c (uint64_t): Define to uintmax_t if
96675         not defined, and if UINT64_MAX is not defined.
96676         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96677         Reported by John David Anglin.
96678
96679 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96680
96681         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96682         resolve alias if codeset is empty.
96683         * lib/config.charset (BeOS): Use wildcard syntax.
96684
96685 2001-03-13  Jim Meyering  <meyering@lucent.com>
96686
96687         * lib/path-concat.c (path_concat)
96688         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96689         concatenating e.g., `C:' and `foo'.
96690         From Bruno Haible.
96691
96692 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96693
96694         * lib/localcharset.c (locale_charset): Don't use
96695         setlocale(LC_CTYPE,NULL). Don't return NULL.
96696         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96697
96698 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96699
96700         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96701         support for DOS/DJGPP.
96702
96703 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96704
96705         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96706         lacks mkstemp.  Compile our own tempname.c if we compile our own
96707         mkstemp.c, as mkstemp relies on tempname.
96708
96709 2001-03-01  Jim Meyering  <meyering@lucent.com>
96710
96711         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96712         AH_VERBATIM really does output its argument verbatim.
96713
96714 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96715
96716         * lib/Makefile.am (libfetish_a_SOURCES):
96717         Add dup-safer.c, fopen-safer.c.
96718         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96719
96720         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96721         * lib/unistd-safer.h: New files.
96722
96723 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96724
96725         The mkstemp replacement is taken from glibc 2.2.2, with some
96726         portability fixes for use outside glibc, as follows:
96727
96728         * lib/tempname.c (struct_stat64): New macro.
96729         (direxists, __gen_tempname): Use it.
96730         This avoids a portability problem with Solaris 8.
96731
96732         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96733         (<stddef.h>, <stdint.h>, <string.h>):
96734         Include only if STDC_HEADERS || _LIBC.
96735         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96736         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96737         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96738         (__set_errno): Define this macro if <errno.h> doesn't.
96739         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96740         Define these macros if <stdio.h> doesn't.
96741         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96742         Define these macros if <sys/stat.h>
96743         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96744         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96745         __xstat64): Define if not _LIBC.
96746         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96747         (__gen_tempname): Invoke gettimeofday only if
96748         HAVE_GETTIMEOFDAY || _LIBC;
96749         otherwise, fall back on plain "time".
96750         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96751
96752         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96753
96754         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96755
96756 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96757
96758         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96759
96760 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96761
96762         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96763         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96764         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96765         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96766
96767 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96768
96769         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96770         Remove workaround macros for hosts that have mbrtowc but not
96771         mbstate_t, as we now insist on proper declarations for both
96772         before using mbrtowc.
96773
96774 2001-02-17  Jim Meyering  <meyering@lucent.com>
96775
96776         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96777         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96778         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96779         UnixWare 7.1.1.
96780
96781         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96782         rather than AC_CACHE_VAL.
96783
96784 2001-02-17  Jim Meyering  <meyering@lucent.com>
96785
96786         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96787         around included file name.
96788
96789         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96790
96791         * lib/strftime.c: Update from GNU libc (the only changes were to
96792         comments).
96793
96794 2001-02-17  Jim Meyering  <meyering@lucent.com>
96795
96796         * lib/regex.c: Update from libc.
96797
96798 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96799
96800         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96801         clash.
96802
96803 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96804
96805         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96806         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96807         Reported by Mark Hounschell via Paul Eggert.
96808
96809 2001-02-07  Jim Meyering  <meyering@lucent.com>
96810
96811         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96812
96813 2001-02-05  Jim Meyering  <meyering@lucent.com>
96814
96815         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96816         it includes the patch required for `large file' support with at least
96817         HP-UX's 10.20 /bin/cc.
96818
96819 2001-02-03  Jim Meyering  <meyering@lucent.com>
96820
96821         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96822         AS_IF, now that it works once again (mysteriously).
96823         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96824
96825 2001-01-30  Jim Meyering  <meyering@lucent.com>
96826
96827         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96828         * m4/chown.m4: Rename conftestchown to conftest.chown.
96829         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96830         s/conftestdir2/conftest.d2/.
96831         * m4/utimes.m4: s/conftestdata/conftest.data/
96832         Inspired by Pavel Roskin's change in autoconf.
96833
96834 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96835
96836         * lib/config.charset: Update for FreeBSD 4.2.
96837
96838 2001-01-27  Jim Meyering  <meyering@lucent.com>
96839
96840         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96841         a use of AS_IF.
96842         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96843
96844 2001-01-26  Jim Meyering  <meyering@lucent.com>
96845
96846         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96847         quotearg.c includes it.
96848
96849 2001-01-26  Jim Meyering  <meyering@lucent.com>
96850
96851         * lib/quotearg.c: Include stddef.h.
96852         * lib/quote.c: Include stddef.h.
96853         Reported by Axel Kittenberger.
96854
96855         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96856         line in double quotes so that it evokes a better diagnostic.
96857         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96858         Reported by Axel Kittenberger.
96859
96860 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96861
96862         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96863         as if it was a `charset'.
96864
96865 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96866
96867         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96868         has const.
96869
96870 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96871
96872         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96873         to avoid a warning.  Add back 'const' to inptr.
96874
96875 2001-01-20  Jim Meyering  <meyering@lucent.com>
96876
96877         Be sure that headers are checked before used in code compiled
96878         for the type checks.
96879         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96880         In place of that, invoke jm_CHECK_ALL_TYPES.
96881         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96882         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96883         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96884         The check for ssize_t was mistakenly run before the test for unistd.h.
96885
96886         The configure-time check for stdbool.h was missing.
96887         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96888         (jm_PREREQ_HASH): New function.
96889
96890 2001-01-17  Jim Meyering  <meyering@lucent.com>
96891
96892         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96893         for autoconf-2.49c.
96894         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96895
96896 2001-01-16  Jim Meyering  <meyering@lucent.com>
96897
96898         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96899         From Bruno Haible.
96900
96901 2001-01-14  Jim Meyering  <meyering@lucent.com>
96902
96903         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96904         foo and bar.  Create conftestdir/ in the script, not in the C code.
96905         Remove directories in the script, not in the C code.
96906         Remove conftestdir{,2} before trying to create the directory.
96907         Make the entire configure script fail if the mkdir fails.
96908
96909 2001-01-14  Jim Meyering  <meyering@lucent.com>
96910
96911         * lib/rename.c: New file.  From Volker Borchert.
96912         Include stdlib.h, string.h or strings.h, and xalloc.h.
96913         Use strip_trailing_slashes rather than open-coding it.
96914
96915 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96916
96917         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96918
96919 2001-01-03  Jim Meyering  <meyering@lucent.com>
96920
96921         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96922         of local `inptr' to avoid warning with some system declarations of
96923         iconv.
96924
96925 2001-01-02  Volker Borchert  <bt@teknon.de>
96926
96927         * m4/rename.m4: New file.
96928         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96929
96930 2001-01-01  Jim Meyering  <meyering@lucent.com>
96931
96932         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96933         even on systems with utmpx.h.  It's necessary for the declaration of
96934         utmp's ut_user member.  Reported by Andreas Jaeger.
96935
96936         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96937         available. They are required for the declarations of getgrgid and
96938         getpwuid resp.
96939         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96940         Reported by Andreas Jaeger.
96941
96942 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96943
96944         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96945         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96946         so `make install' also works in VPATH builds.
96947
96948 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96949
96950         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96951         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96952         can be used in subdirectories.
96953
96954 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96955
96956         * lib/modechange.c: Do not assume that mode_t uses the
96957         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96958         the other-execute bit of FOO even if S_IXOTH != 1.
96959
96960         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96961         WOTH, XOTH, ALLM): New macros.
96962         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96963          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96964         Use them.
96965         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96966         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96967         (mode_compile):
96968         No need to use uintmax_t; unsigned long is long enough.
96969         Don't bother to get suffix since we don't use it.
96970
96971 2000-12-26  Jim Meyering  <meyering@lucent.com>
96972
96973         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96974         better with autoheader.
96975
96976 2000-12-24  Jim Meyering  <meyering@lucent.com>
96977
96978         * lib/hash.c (is_prime): Return explicit boolean values.
96979         (hash_get_first): Return NULL to appease Irix5.6's 89.
96980         Reported by Nelson Beebe.
96981
96982 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96983
96984         * lib/localcharset.c (locale_charset): Add support for Win32.
96985
96986 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96987
96988         * lib/physmem.h, lib/physmem.c: New files.
96989
96990         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96991         (noinst_HEADERS): Add physmem.h.
96992
96993         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96994         't' for compatibility with Solaris 8 sort.
96995
96996 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96997
96998         * lib/config.charset: Add support for BeOS.
96999
97000 2000-12-17  Jim Meyering  <meyering@lucent.com>
97001
97002         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97003         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97004
97005 2000-12-16  Jim Meyering  <meyering@lucent.com>
97006
97007         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97008         N and M) would have treated it like `chown N:N FILE'.
97009
97010         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97011
97012 2000-12-16  Jim Meyering  <meyering@lucent.com>
97013
97014         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97015         SHELLS_FILE to a file name that's useful on djgpp systems.
97016         Include stdlib.h.
97017         (ADDITIONAL_DEFAULT_SHELLS): Define.
97018         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97019         Based mostly on a patch from Prashant TR.
97020
97021 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97022
97023         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97024         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97025         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97026
97027 2000-12-08  Andreas Schwab  <schwab@suse.de>
97028
97029         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97030         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97031
97032 2000-12-07  Jim Meyering  <meyering@lucent.com>
97033
97034         * lib/stripslash.c (ISSLASH): Define.
97035         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97036         `/'.
97037         From Prashant TR.
97038
97039         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97040         (dir_name_r): Declare this function as static.
97041         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97042         manifest itself on a name containing a mix of slashes and
97043         backslashes.
97044         Make this function work with names starting with a DOS-style
97045         drive letter and colon prefix.
97046         (dir_name): Append `.' if necessary.
97047         Based mostly on patches from Prashant TR and Eli Zaretskii.
97048
97049         * lib/dirname.h (dir_name_r): Remove prototype.
97050
97051 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97052
97053         * m4/off_t-format.m4: Remove this file.
97054         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97055
97056 2000-12-06  Jim Meyering  <meyering@lucent.com>
97057
97058         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97059         replacement strtoull, we may well need the replacement strtoul, too.
97060         Check for declarations of strtoul and strtoull.
97061         Check for strtol.  Mainly as a cue to cause automake to include
97062         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97063         Check for limits.h -- strtol.c needs it.
97064
97065 2000-12-05  Jim Meyering  <meyering@lucent.com>
97066
97067         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97068
97069 2000-12-04  Jim Meyering  <meyering@lucent.com>
97070
97071         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97072         Also include memory.h, stdlib.h, unistd.h if appropriate.
97073         Reported by Andreas Jaeger (conflicting declaration of malloc).
97074
97075 2000-12-02  Jim Meyering  <meyering@lucent.com>
97076
97077         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97078         * m4/jm-macros.m4 (jm_MACROS): require it.
97079
97080 2000-12-02  Jim Meyering  <meyering@lucent.com>
97081
97082         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97083
97084 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97085
97086         * lib/memrchr.c: Include <config.h> before any system include file.
97087
97088 2000-11-30  Jim Meyering  <meyering@lucent.com>
97089
97090         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97091
97092 2000-11-30  Jim Meyering  <meyering@lucent.com>
97093
97094         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97095
97096 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97097
97098         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97099
97100 2000-11-26  Jim Meyering  <meyering@lucent.com>
97101
97102         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97103
97104 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97105
97106         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97107         size of (size_t) -1; it's not portable.
97108
97109 2000-11-17  Jim Meyering  <meyering@lucent.com>
97110
97111         * lib/strstr.c: Update from GNU libc.
97112
97113 2000-11-17  Akim Demaille  <akim@epita.fr>
97114
97115         * lib/obstack.h: Formatting changes.
97116         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97117         prevent type checking.
97118         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97119         cast the value to (void *): assigning a `foo *' to a `void *'
97120         variable is valid.
97121         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97122
97123 2000-11-16  Jim Meyering  <meyering@lucent.com>
97124
97125         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97126
97127 2000-11-11  Jim Meyering  <meyering@lucent.com>
97128
97129         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97130
97131 2000-11-10  Jim Meyering  <meyering@lucent.com>
97132
97133         * lib/obstack.h: Update from GNU libc.
97134         * lib/obstack.c: Likewise.
97135
97136 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97137
97138         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97139
97140 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97141
97142         * lib/getusershell.c (setusershell): Use rewind rather than
97143         fseek/fseeko, to avoid configuration hassles with fseeko.
97144         Don't bother opening SHELLS_FILE if shellstream is NULL;
97145         it's not necessary.
97146
97147 2000-11-05  Jim Meyering  <meyering@lucent.com>
97148
97149         * lib/makepath.h (make_dir): Declare.
97150         * lib/makepath.c (make_dir): Remove `static' attribute.
97151         Tweak a comment.
97152
97153 2000-11-04  Jim Meyering  <meyering@lucent.com>
97154
97155         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97156
97157 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97158
97159         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97160         last one in a bucket, advance to the next bucket.
97161
97162 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97163
97164         * lib/fnmatch.c: Do not comment out all the code if we are using
97165         the GNU C library, because in some cases we are replacing buggy
97166         code in the GNU C library itself.
97167
97168 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97169
97170         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97171         (regex_compile): Catch bogus \(\1\).
97172
97173 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97174
97175         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97176         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97177         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97178
97179 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97180
97181         * lib/error.h, getline.h, modechange.h:
97182         Remove "2000" from Copyright line, as the file hasn't been
97183         changed this year other than in the copyright notice.
97184
97185         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97186         was changed this year.
97187
97188 2000-10-29  Jim Meyering  <meyering@lucent.com>
97189
97190         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97191         renaming.
97192         * m4/ls-mntd-fs.m4: Likewise
97193
97194 2000-10-29  Jim Meyering  <meyering@lucent.com>
97195
97196         * lib/xstat.in: Fix grammar in comment.
97197
97198 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97199
97200         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97201         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97202         doesn't define __restrict_arr.
97203
97204 2000-10-28  Jim Meyering  <meyering@lucent.com>
97205
97206         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97207         (jm_PREREQ_MEMCHR): New function.
97208
97209 2000-10-28  Jim Meyering  <meyering@lucent.com>
97210
97211         * lib/memchr.c: Update from libc.
97212         Adjust for portability:
97213         [HAVE_STDLIB_H]: Include stdlib.h.
97214         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97215         Undef __memchr, too.
97216         [!weak_alias]: Define __memchr to memchr.
97217
97218         * lib/regex.c: Update from libc.
97219         * lib/regex.h: Likewise.
97220         * lib/getopt1.c: Likewise.
97221         * lib/memcmp.c: Likewise.
97222
97223         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97224         Avoid using fseek, when possible -- it's broken by design.
97225         Patch by Ulrich Drepper.
97226
97227 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97228
97229         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97230         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97231         Giving in to popular pressure to shut up the compiler with casts.
97232
97233 2000-10-26  Jim Meyering  <meyering@lucent.com>
97234
97235         * lib/strftime.c: Update from libc.
97236
97237 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97238
97239         * regex.c: More `unsigned char' -> `re_char' changes.
97240         Also change several `int' into `re_wchar_t'.
97241         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97242         (PUSH_FAILURE_POINTER): Don't cast any more.
97243         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97244         We want GCC to complain, since this piece of code makes
97245         re_match non-reentrant, which *should* be fixed.
97246         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97247         (EXTEND_BUFFER): Use RETALLOC.
97248         (SET_LIST_BIT): Don't cast.
97249         (re_wchar_t): New type.
97250         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97251         that those two functions will always properly return.
97252         (IMMEDIATE_QUIT_CHECK): Cast to void.
97253         (analyse_first): Use recursion rather than an explicit stack.
97254         (re_compile_fastmap): Can't fail anymore.
97255         (re_search_2): Don't check re_compile_fastmap for failure.
97256         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97257         Now also sets the new value (passed in a new argument).
97258         (re_match_2_internal): Use it.
97259         Also, use a new var `reg' of type size_t when looping through regs
97260         rather than reuse the inappropriate `mcnt'.
97261
97262 2000-10-25  Jim Meyering  <meyering@lucent.com>
97263
97264         * lib/obstack.c: Update from libc.
97265
97266 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97267
97268         * regex.c (regex_compile): Change the way of handling a range from
97269         a char less than 256 to a char not less than 256.
97270
97271 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97272
97273         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97274         NT-Emacs only.
97275         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97276         so that re_search functions only quit when callers expect them to.
97277
97278 2000-10-23  Jim Meyering  <meyering@lucent.com>
97279
97280         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97281         wrong.  That set_locale call must not have any side effects.
97282         From Paul Eggert.
97283
97284 2000-10-22  Jim Meyering  <meyering@lucent.com>
97285
97286         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97287         [CYCLIC]: Remove now-unused definition.
97288
97289         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97290         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97291         Suggestion from Ulrich Drepper.
97292
97293 2000-10-21  Jim Meyering  <meyering@lucent.com>
97294
97295         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97296         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97297         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97298
97299 2000-10-21  Jim Meyering  <meyering@lucent.com>
97300
97301         * lib/dirname.c (memrchr): Declare if necessary.
97302         (dir_name): Remove the restriction that there be no
97303         trailing slashes.  Now, this code skips past them, effectively
97304         ignoring them.
97305         [TEST_DIRNAME] (main): New unit tests.
97306
97307         * lib/memrchr.c: New file from GNU libc.
97308         Undef __memrchr, too.
97309         [!weak_alias]: Define __memrchr to memrchr.
97310         Guard weak_alias use with `#ifdef weak_alias'.
97311
97312 2000-10-21  Jim Meyering  <meyering@lucent.com>
97313
97314         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97315         (dir_name): Use dir_name_r.
97316         * lib/dirname.h (dir_name_r): Declare it.
97317
97318 2000-10-17  Jim Meyering  <meyering@lucent.com>
97319
97320         * lib/quote.h (PARAMS): Define and use.
97321         Reported by Akim Demaille.
97322
97323         * lib/getopt.c: Update from libc.
97324
97325 2000-10-16  Jim Meyering  <meyering@lucent.com>
97326
97327         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97328         setlocale.
97329         From Jan Fedak.
97330
97331 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97332
97333         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97334
97335 2000-09-25  Jim Meyering  <meyering@lucent.com>
97336
97337         * lib/md5.h (rol): Define (from GnuPG).
97338
97339         * lib/sha.c: Give credit (GnuPG) where due.
97340         (M): Use rol rather than open-coding it.
97341         Add a FIXME comment.
97342
97343 2000-09-21  Jim Meyering  <meyering@lucent.com>
97344
97345         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97346         Reported by Michael Stone.
97347
97348 2000-09-20  Jim Meyering  <meyering@lucent.com>
97349
97350         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97351         (noinst_HEADERS): Add sha.h.
97352         Based on code from Scott G. Miller and from GnuPG.
97353
97354 2000-09-18  Jim Meyering  <meyering@lucent.com>
97355
97356         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97357         LIBS. Otherwise, everyone ends up linking with -lelf for some
97358         configurations.
97359         Reported by Mike Stone.
97360
97361 2000-09-15  Jim Meyering  <meyering@lucent.com>
97362
97363         * lib/regex.c: Update from libc.
97364
97365 2000-09-10  Jim Meyering  <meyering@lucent.com>
97366
97367         * lib/getopt.c (_getopt_internal): Update from glibc.
97368
97369 2000-09-09  Jim Meyering  <meyering@lucent.com>
97370
97371         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97372         think it should be used as a general replacement for isascii.
97373         * lib/fnmatch.c: Likewise.
97374         * lib/mbswidth.c: Likewise
97375         * lib/regex.c: Likewise.
97376
97377         Don't use atoi.
97378         * lib/userspec.c: Include sys/param.h and limits.h.
97379         Include xstrtol.h.
97380         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97381         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97382         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97383         UID, GID.  Check range.
97384
97385 2000-09-06  Jim Meyering  <meyering@lucent.com>
97386
97387         * lib/getopt.c (_getopt_internal): Update from glibc.
97388
97389 2000-08-30  Jim Meyering  <meyering@lucent.com>
97390
97391         * lib/strftime.c: Merge in changes from GNU libc.
97392
97393 2000-08-26  Jim Meyering  <meyering@lucent.com>
97394
97395         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97396         * m4/fpending.m4: New file.
97397
97398 2000-08-26  Jim Meyering  <meyering@lucent.com>
97399
97400         * lib/closeout.c: Include "__fpending.h".
97401         (close_stdout_status): Return right away if there's nothing to flush.
97402
97403         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97404         * lib/__fpending.c: New file.
97405         * lib/__fpending.h: New file.
97406
97407 2000-08-20  Jim Meyering  <meyering@lucent.com>
97408
97409         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97410         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97411         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97412
97413 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97414
97415         Improve fileutils installation on systems where running
97416         programs (like install) can't be unlinked.
97417         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97418         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97419
97420 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97421
97422         Standardize on "memory exhausted" instead of "Memory exhausted"
97423         or "virtual memory exhausted".
97424         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97425         "virtual memory exhausted".
97426         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97427         our own message.
97428         * lib/userspec.c (parse_user_spec): Likewise.
97429         * lib/bumpalloc.h: comment fix
97430         * lib/same.c, userspec.c: Include xalloc.h.
97431
97432         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97433         not char *const and pointing to a constant array.
97434         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97435         (xrealloc): Comment fix.
97436
97437         * lib/userspec.c (parse_user_spec):
97438         Don't translate a message until just before returning,
97439         to avoid unnecessary translation.
97440
97441 2000-08-07  Jim Meyering  <meyering@lucent.com>
97442
97443         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97444         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97445         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97446         getgroups.c, gethostname.c, getopt.h, group-member.c,
97447         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97448         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97449         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97450         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97451         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97452         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97453         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97454         yesno.c: Back out Copyright date changes for each file with no change
97455         this year.  This eases coordination with other programs using the same
97456         source code modules.  From Paul Eggert.
97457
97458 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97459
97460         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97461         not char, for compatibility with glibc 2.1.3 strftime.c.
97462
97463 2000-08-03  Greg McGary  <greg@mcgary.org>
97464
97465         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97466         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97467         (EXTEND_BUFFER): Use them.
97468
97469 2000-08-01  Jim Meyering  <meyering@lucent.com>
97470
97471         * lib/dirname.c (ISSLASH): Define.
97472         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97473         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97474         both `\' and `/' may be use as path separators.
97475         Based on a patch from Prashant TR.
97476
97477 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97478
97479         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97480         slot vector a constant, since it might get modified.
97481
97482 2000-07-31  Jim Meyering  <meyering@lucent.com>
97483
97484         * lib/xmalloc.c: Use `virtual memory exhausted', not
97485         `Memory exhausted'.
97486         * lib/obstack.c (print_and_abort): Likewise.
97487
97488 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97489
97490         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97491         buffer, so that the caller can always quote one small
97492         component of a "memory exhausted" message in slot 0.
97493         From a suggestion by Jim Meyering.
97494
97495 2000-07-30  Jim Meyering  <meyering@lucent.com>
97496
97497         * lib/makepath.c (make_path): Quote the other instance, too.
97498
97499         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97500         (STATIC_BUF_SIZE): Define.
97501         (quotearg_n_options): Use only statically allocated storage when
97502         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97503         than STATIC_BUF_SIZE.
97504
97505 2000-07-29  Jim Meyering  <meyering@lucent.com>
97506
97507         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97508         * lib/dirname.c (dir_name): Likewise.
97509
97510         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97511         `/'.
97512
97513         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97514         (dir_name): Assert that there are no trailing slashes.
97515
97516 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97517
97518         * lib/mbswidth.h (mbswidth): Add a flags argument.
97519         (mbswidth): New declaration.
97520         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97521         * lib/mbswidth.c (mbswidth): Add a flags argument.
97522         (mbsnwidth): New function.
97523
97524 2000-07-24  Jim Meyering  <meyering@lucent.com>
97525
97526         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97527
97528 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97529
97530         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97531
97532 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97533
97534         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97535         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97536         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97537         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97538         invoke multibyte primitives.
97539
97540 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97541
97542         * lib/quotearg.c:
97543         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97544         so that mbstate_t is always defined.
97545
97546         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97547         be 1 in at least one GCC installation, and this configuration
97548         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97549         performance on hosts that have mbrtowc but have only unibyte
97550         locales, but I assume these hosts are rare.
97551
97552 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97553
97554         * lib/mbswidth.c (_XOPEN_SOURCE):
97555         Don't define; this causes problems on Solaris 7.
97556         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97557
97558 2000-07-23  Jim Meyering  <meyering@lucent.com>
97559
97560         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97561         too: getgrgid, getpwuid, getuid.
97562
97563 2000-07-23  Jim Meyering  <meyering@lucent.com>
97564
97565         * lib/basename.c (base_name): Add an assertion.
97566
97567 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97568
97569         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97570         shadow its mbsinit function.
97571
97572 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97573
97574         * lib/mbswidth.h: New file.
97575         * lib/mbswidth.c: New file.
97576         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97577         (noinst_HEADERS): Add mbswidth.h.
97578
97579 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97580
97581         * lib/config.charset: Add support for FreeBSD. Improve support for
97582         HP-UX and IRIX 6.
97583
97584 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97585
97586         * m4/mbswidth.m4: New file.
97587         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97588
97589 2000-07-15  Jim Meyering  <meyering@lucent.com>
97590
97591         * lib/makepath.c: Include quote.h.
97592         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97593         corresponding argument in a `quote (...)' call.
97594         Give better diagnostics.
97595
97596         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97597         (noinst_HEADERS): Add quote.h.
97598
97599         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97600         from tar's src/misc.c.
97601         * lib/quote.h: New file.  Prototypes for same.
97602
97603 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97604
97605         From a suggestion by Bruno Haible.
97606         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97607         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97608         to decide whether to define the BeOS workaround macro;
97609         this adjusts to the change to AC_MBSTATE_T.
97610
97611 2000-07-14  Jim Meyering  <meyering@lucent.com>
97612
97613         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97614         jm_AC_TYPE_UINTMAX_T.
97615
97616 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97617
97618         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97619
97620         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97621         quotearg_buffer_restyled): Add support for
97622         clocale_quoting_style.  Undo previous change to
97623         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97624         and "{RIGHT QUOTATION MARK}" msgids.
97625
97626 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97627
97628         From a suggestion by Bruno Haible.
97629         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97630         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97631         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97632         and mbstate_t, to a single-part test that simply defines mbstate_t.
97633         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97634         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97635
97636 2000-07-10  Jim Meyering  <meyering@lucent.com>
97637
97638         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97639
97640         * m4/gnu-source.m4: Output to confdefs.h directly.
97641         Suggestion from Akim Demaille.
97642
97643 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97644
97645         The old behavior of quoting `like this' doesn't look good with
97646         newer, ISO-style fonts.  See:
97647         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97648
97649         Instead, quote "like this" by default.  Let the translator
97650         tailor the locale-specific quoting behavior by providing
97651         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97652
97653         * lib/quotearg.c (N_): New macro.
97654         (gettext_default): New function.
97655         (quotearg_buffer_restyled): Use
97656         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97657         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97658
97659 2000-07-09  Jim Meyering  <meyering@lucent.com>
97660
97661         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97662         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97663
97664         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97665         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97666
97667 2000-07-09  Jim Meyering  <meyering@lucent.com>
97668
97669         * lib/Most files: Update copyright dates to include 2000.
97670
97671 2000-07-08  Jim Meyering  <meyering@lucent.com>
97672
97673         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97674         if not defined.
97675         (xgethostname): Remove now-unnecessary #ifdef.
97676         Move declaration of `err' into loop where it's used.
97677
97678 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97679         and Bruno Haible  <haible@clisp.cons.org>
97680
97681         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97682         only if the test for an object-type mbstate_t fails.  This
97683         prevents us from mistakenly reporting that mbstate_t is a
97684         system object type after we "#define mbstate_t int" to work
97685         around its lack.
97686
97687 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97688         and Bruno Haible  <haible@clisp.cons.org>
97689
97690         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97691
97692 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97693
97694         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97695         to strerror_r.
97696         Include <ctype.h> for use of isalpha.
97697
97698 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97699
97700         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97701         by allocating a larger buffer. Test the gethostname return value for
97702         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97703         returns an error and ENAMETOOLONG isn't defined.
97704
97705 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97706
97707         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97708         dimension.
97709
97710 2000-07-04  Jim Meyering  <meyering@lucent.com>
97711
97712         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97713         of the deprecated AC_CHECKING.
97714
97715 2000-07-04  Jim Meyering  <meyering@lucent.com>
97716
97717         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97718         Reported by Bruno Haible.
97719
97720 2000-07-04  Jim Meyering  <meyering@lucent.com>
97721
97722         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97723         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97724         lacks mbrtowc.
97725
97726 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97727
97728         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97729         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97730
97731 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97732         and Bruno Haible  <haible@clisp.cons.org>
97733
97734         * lib/quotearg.c (mbrtowc):
97735         Assign to *pwc, and return 1 only if result is nonzero.
97736         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97737
97738 2000-07-03  Jim Meyering  <meyering@lucent.com>
97739
97740         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97741
97742 2000-07-03  Jim Meyering  <meyering@lucent.com>
97743
97744         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97745         This is necessary to get a definition of e.g., UTMP_FILE on
97746         HP-UX 10.20.
97747         From Bob Proulx.
97748
97749 2000-07-02  Jim Meyering  <meyering@lucent.com>
97750
97751         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97752
97753         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97754         AC_LIBOBJ(function_name).
97755         * m4/chown.m4: Likewise.
97756         * m4/fnmatch.m4: Likewise.
97757         * m4/ftruncate.m4: Likewise.
97758         * m4/getgroups.m4: Likewise.
97759         * m4/getline.m4: Likewise.
97760         * m4/group-member.m4: Likewise.
97761         * m4/jm-macros.m4: Likewise.
97762         * m4/lstat.m4: Likewise.
97763         * m4/malloc.m4: Likewise.
97764         * m4/memcmp.m4: Likewise.
97765         * m4/nanosleep.m4: Likewise.
97766         * m4/putenv.m4: Likewise.
97767         * m4/realloc.m4: Likewise.
97768         * m4/regex.m4: Likewise.
97769         * m4/stat.m4: Likewise.
97770         * m4/strftime.m4: Likewise.
97771
97772 2000-07-02  Jim Meyering  <meyering@lucent.com>
97773
97774         * lib/quotearg.c (mbstate_t): Don't define here.
97775
97776 2000-07-02  Jim Meyering  <meyering@lucent.com>
97777
97778         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97779
97780 2000-07-01  Jim Meyering  <meyering@lucent.com>
97781
97782         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97783
97784 2000-07-01  Jim Meyering  <meyering@lucent.com>
97785
97786         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97787         problem.
97788
97789 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97790
97791         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97792         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97793
97794 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97795
97796         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97797         per change in ../m4/ls-mntd-fs.m4.
97798         (read_filesystem_list): Ignore symbolic links.
97799
97800 2000-06-29  Jim Meyering  <meyering@lucent.com>
97801
97802         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97803         for declaration of strcmp.
97804
97805         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97806
97807         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97808         Avoid warning by casting result to `char *' to remove `const'.
97809
97810 2000-06-28  Jim Meyering  <meyering@lucent.com>
97811
97812         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97813         included by quotearg.c, for which we perform this test.  From
97814         Bruno Haible.
97815
97816 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97817
97818         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97819         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97820         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97821
97822 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97823
97824         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97825
97826 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97827
97828         savedir now sets errno on failure and invokes xmalloc to get memory.
97829         Fix a couple of other minor bugs while we're at it.
97830
97831         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97832         (NAMLEN): Remove macro.
97833         (malloc, realloc): Remove decls.
97834         (stpcpy): Likewise.
97835         ("xalloc.h"): Include.
97836         (NAME_SIZE_DEFAULT): New macro.
97837         (savedir): Use xmalloc / xrealloc to allocate memory.
97838         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97839         Skip "" directory entries.
97840         Use strlen to calculate directory entry length, since the old method
97841         is rarely used these days and isn't worth supporting.
97842         Don't use a pointer after freeing it.
97843         Check for integer overflow when calculating allocation size.
97844         Use memcpy to copy entries, instead of stpcpy.
97845         Set errno properly when returning NULL.
97846         Check for readdir error.
97847
97848 2000-06-26  Jim Meyering  <meyering@lucent.com>
97849
97850         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97851
97852 2000-06-25  Jim Meyering  <meyering@lucent.com>
97853
97854         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97855         Linux header bug when _XOPEN_SOURCE is defined to 500.
97856
97857 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97858
97859         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97860         deficiency.
97861
97862 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97863
97864         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97865         Include xalloc.h.
97866         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97867
97868 2000-06-24  Jim Meyering  <meyering@lucent.com>
97869
97870         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97871         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97872         for which strerror does return char*, but which lacks a conveniently
97873         accessible declaration of the function.  If the compile-test says
97874         strerror_r doesn't work, then resort to a `run'-test that works on
97875         BeOS and segfaults on DEC Unix.
97876
97877 2000-06-24  Jim Meyering  <meyering@lucent.com>
97878
97879         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97880
97881 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97882
97883         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97884         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97885
97886 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97887
97888         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97889         (mbrtowc, mbstate_t): Define substitutes if
97890         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97891         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97892         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97893
97894 2000-06-23  Jim Meyering  <meyering@lucent.com>
97895
97896         * m4/afs.m4: Add missing AC_MSG_RESULT.
97897         Reported by Bruno Haible.
97898
97899         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97900         Suggestion from Bruno Haible.
97901
97902 2000-06-23  Jim Meyering  <meyering@lucent.com>
97903
97904         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97905
97906 2000-06-21  Jim Meyering  <meyering@lucent.com>
97907
97908         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97909
97910 2000-06-21  Jim Meyering  <meyering@lucent.com>
97911
97912         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97913         (noinst_HEADERS): Add getstr.h.
97914
97915         * lib/getline.c (getstr): Move into a separate file.
97916         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97917         the following changes: new parameter, delim2; both delim[12]
97918         parameters have type `int', not `char'.  The latter would lose
97919         with 8-bit delimiters.
97920         * lib/getstr.h: New file.
97921
97922 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97923
97924         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97925         than 1024, return a memory chunk of least possible size, instead
97926         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97927         Use free/xmalloc instead of xrealloc to avoid copying for very long
97928         paths.
97929
97930 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97931
97932         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97933         the empty string.
97934
97935 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97936
97937         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97938         address, not strdup.  Include <stdlib.h> and don't declare free().
97939
97940 2000-06-19  Jim Meyering  <meyering@lucent.com>
97941
97942         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97943
97944 2000-06-18  Jim Meyering  <meyering@lucent.com>
97945
97946         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97947
97948         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97949         `checking whether...' message to be consistent with that of the
97950         lstat test.
97951
97952 2000-06-18  Jim Meyering  <meyering@lucent.com>
97953
97954         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97955         Besides, these days every porting target provides a mkdir function.
97956
97957         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97958         needed. (this snippet comes from src/system.h).
97959
97960 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97961
97962         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97963
97964 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97965
97966         * lib/human.c (adjust_value): New function.
97967         (human_readable_inexact): Apply rounding style even when
97968         printing approximate values.
97969
97970 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97971
97972         * lib/human.c (human_readable_inexact): Allow an input block
97973         size that is not a multiple of the output block size, and vice versa.
97974         Reported by Piergiorgio Sartor.
97975
97976 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97977
97978         * lib/getdate.y (get_date): Apply relative times after time
97979         zone indicator, not before.  Reported by Todd A. Jacobs.
97980
97981 2000-06-13  Jim Meyering  <meyering@lucent.com>
97982
97983         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97984
97985         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97986
97987 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97988
97989         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97990
97991 2000-06-12  Jim Meyering  <meyering@lucent.com>
97992
97993         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97994         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97995         optional argument.
97996         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97997         the optional argument, `lib'.
97998
97999 2000-06-08  Jim Meyering  <meyering@lucent.com>
98000
98001         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98002
98003 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98004
98005         Rewrite largefile configuration so that we don't need to run
98006         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98007         AC_CANONICAL_HOST in configure.in -- jmm]
98008
98009         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98010         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98011         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98012         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98013         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98014         All uses changed.
98015         Instead of inspecting the output of getconf, try to compile the
98016         test program without and with the macro definition.
98017         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98018         for getconf.  Instead, check for the needed flags by compiling
98019         test programs.
98020
98021 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98022
98023         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98024
98025 2000-06-04  Jim Meyering  <meyering@lucent.com>
98026
98027         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98028         SunOS 4.1.4 for which gid_t is an unsigned type.
98029
98030 2000-06-03  Jim Meyering  <meyering@lucent.com>
98031
98032         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98033         now that autoconf requires that.
98034
98035         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98036         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98037         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98038
98039 2000-06-03  Jim Meyering  <meyering@lucent.com>
98040
98041         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98042
98043 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98044
98045         * m4/glibc21.m4: New file.
98046         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98047
98048 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98049
98050         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98051         newer, don't install charset.alias.
98052         * lib/config.charset: Change the Linux/glibc rules so they become empty
98053         on glibc-2.1 or newer.
98054
98055 2000-06-02  Jim Meyering  <meyering@lucent.com>
98056
98057         * lib/mountlist.c: Back out last change.  Instead, do this...
98058         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98059         me_dummy member using the same `ignore'-testing code.
98060         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98061         fs_type strings.
98062         From Mark D. Roth.
98063
98064 2000-05-29  Jim Meyering  <meyering@lucent.com>
98065
98066         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98067         mounts with the `ignore' attribute.  Based on a patch from
98068         Mark D. Roth.
98069
98070 2000-05-28  Jim Meyering  <meyering@lucent.com>
98071
98072         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98073         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98074         * m4/stat.m4: Likewise.
98075         * m4/lstat.m4: Likewise.
98076         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98077
98078         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98079         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98080
98081 2000-05-26  Jim Meyering  <meyering@lucent.com>
98082
98083         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98084
98085 2000-05-24  Jim Meyering  <meyering@lucent.com>
98086
98087         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98088         autoconf requires that.
98089         * m4/lib-check.m4: Likewise.
98090         * m4/jm-macros.m4: Likewise.
98091         * m4/strftime.m4: Likewise.
98092
98093         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98094         AC_CHECK_DECLS, now that autoconf requires that.
98095
98096 2000-05-22  Jim Meyering  <meyering@lucent.com>
98097
98098         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98099         * m4/lstat.m4: Likewise.
98100
98101 2000-05-22  Jim Meyering  <meyering@lucent.com>
98102
98103         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98104
98105 2000-05-20  Jim Meyering  <meyering@lucent.com>
98106
98107         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98108         (jm_PREREQ): Use it.
98109
98110 2000-05-18  Jim Meyering  <meyering@lucent.com>
98111
98112         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98113         back, too, since it may have been modified by allocate_entry.
98114         (hash_delete): Rewrite to use neither the assignment operator
98115         nor the comma operator in an if-expression.
98116
98117 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98118
98119         * lib/closeout.c:
98120         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98121         Remove; no longer needed.
98122         "quotearg.h": Add include.
98123         (file_name): Do not bother to explicitly initialize to NULL; it's less
98124         efficient on some hosts.
98125         (close_stdout_status): Remove test as to whether stdout was already
98126         closed; it breaks for the case "echo x | sort >&-".
98127         Quote file name colons.
98128         Do not assume that _("write error") lacks format strings.
98129
98130 2000-05-15  Jim Meyering  <meyering@lucent.com>
98131
98132         * lib/version-etc.c (version_etc_copyright): Update the copyright
98133         string used in all --version output.
98134
98135 2000-05-14  Jim Meyering  <meyering@lucent.com>
98136
98137         * lib/closeout.c (close_stdout_set_file_name): New function.
98138         (close_stdout_status): Use new file-scoped global.
98139         Return right away if fstat says the stdout file descriptor is invalid.
98140         * lib/closeout.h (close_stdout_set_file_name): Declare.
98141
98142 2000-05-10  Jim Meyering  <meyering@lucent.com>
98143
98144         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98145         (close_stdout_set_status): New function.
98146         * lib/closeout.h (close_stdout_set_status): Declare.
98147
98148 2000-05-09  Jim Meyering  <meyering@lucent.com>
98149
98150         * m4/gettext.m4: Rename this...
98151         * m4/libintl.m4: ...to this.
98152
98153 2000-05-08  Jim Meyering  <meyering@lucent.com>
98154
98155         * lib/long-options.c: Don't include closeout.h.
98156         (parse_long_options): Don't call close_stdout for --version.
98157
98158 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98159
98160         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98161         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98162         2.1.3 bug.  This avoids a clash when files like regex.c define
98163         _GNU_SOURCE.
98164
98165 2000-05-06  Jim Meyering  <meyering@lucent.com>
98166
98167         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98168         (AC_REPLACE_FUNCS): Add strnlen.
98169
98170         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98171         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98172
98173         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98174         AC_SEARCH_LIBS call for nanosleep.
98175         (LIB_NANOSLEEP): Set and AC_SUBST.
98176
98177 2000-05-06  Jim Meyering  <meyering@lucent.com>
98178
98179         * lib/strnlen.c: Undefine __strnlen and strnlen.
98180         [!weak_alias]: Define __strnlen to strnlen.
98181
98182         * lib/atexit.c: New file, from libiberty.
98183
98184 2000-05-06  Jim Meyering  <meyering@lucent.com>
98185
98186         * lib/closeout.c (close_stdout_status): Also check for errors on the
98187         stderr stream.
98188
98189 2000-05-05  Jim Meyering  <meyering@lucent.com>
98190
98191         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98192         AC_SEARCH_LIBS call for clock_gettime.
98193         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98194
98195         * m4/search-libs.m4: Update from autoconf.
98196
98197         su doesn't work on Solaris 2.6.
98198         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98199         <shadow.h>.  Reported by Dragos Harabor.
98200
98201 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98202
98203         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98204         memcpy instead of xmalloc, xrealloc, path_concat.
98205         (locale_charset): Treat empty environment variables as absent.
98206         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98207
98208 2000-05-04  Jim Meyering  <meyering@lucent.com>
98209
98210         * lib/getopt.c: Update from glibc.
98211         * lib/obstack.c: Likewise.
98212         * lib/obstack.h: Likewise.
98213         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98214         file
98215
98216         * lib/regex.h: Likewise.
98217         * lib/strndup.c: Likewise.
98218         * lib/strnlen.c: New file, from glibc.
98219
98220 2000-05-03  Jim Meyering  <meyering@lucent.com>
98221
98222         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98223
98224 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98225
98226         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98227         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98228         compile-time test, rather than inspecting host and OS, to
98229         decide whether to define _LARGEFILE_SOURCE.
98230
98231 2000-05-01  Jim Meyering  <meyering@lucent.com>
98232
98233         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98234
98235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98236         Based on a patch from Bruno Haible.
98237
98238 2000-05-01  Jim Meyering  <meyering@lucent.com>
98239
98240         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98241
98242 2000-04-29  Jim Meyering  <meyering@lucent.com>
98243
98244         * lib/path-concat.c: Declare strdup only if it's not defined.
98245         * lib/canon-host.c: Likewise.
98246
98247 2000-04-28  Jim Meyering  <meyering@lucent.com>
98248
98249         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98250         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98251         is included first, then limits.h is included by locale.h by libintl.h.
98252         From John David Anglin.
98253
98254 2000-04-25  Jim Meyering  <meyering@lucent.com>
98255
98256         * lib/makepath.c (S_IRWXUGO): Define.
98257         (make_path): Always perform explicit chmod if MODE specifies any
98258         of the `special' permission bits.  Prompted by a bug report against
98259         install from Mate Wierdl and Joost van Baal.
98260
98261 2000-04-18  Jim Meyering  <meyering@lucent.com>
98262
98263         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98264         (jm_PREREQ): Use it.
98265
98266 2000-04-18  Jim Meyering  <meyering@lucent.com>
98267
98268         * lib/README: New file.
98269
98270         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98271         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98272
98273 2000-04-17  Jim Meyering  <meyering@lucent.com>
98274
98275         Get it right :-)
98276         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98277         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98278         Suggestion from Akim Demaille.
98279
98280 2000-04-17  Jim Meyering  <meyering@lucent.com>
98281
98282         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98283         the definition of it to rpl_strftime also defined-away the system's
98284         declaration.
98285
98286 2000-04-15  Jim Meyering  <meyering@lucent.com>
98287
98288         Use `C' to denote so-called `contiguous' files, the same way
98289         that tar does.
98290         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98291         (ftypelet): Use S_ISCTG.
98292         From Michael Deutschmann.
98293
98294 2000-04-14  Jim Meyering  <meyering@lucent.com>
98295
98296         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98297         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98298         clobbered.
98299
98300 2000-04-14  Jim Meyering  <meyering@lucent.com>
98301
98302         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98303
98304 2000-04-13  Jim Meyering  <meyering@lucent.com>
98305
98306         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98307         AH_VERBATIM to insert required #ifndef into config.h.in.
98308         Suggestion from Akim Demaille.
98309
98310 2000-04-12  Jim Meyering  <meyering@lucent.com>
98311
98312         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98313         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98314         Christian Krackowizer.
98315
98316         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98317         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98318         (AC_SYS_LARGEFILE): Require.
98319         (AM_C_PROTOTYPES): Require.
98320
98321 2000-04-08  Jim Meyering  <meyering@lucent.com>
98322
98323         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98324         names don't conflict.  Reported by Eli Zaretskii.
98325
98326 2000-04-07  Jim Meyering  <meyering@lucent.com>
98327
98328         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98329         sys/types.h, to work around system header problems on AIX 3.2.5.
98330         From Bruno Haible.
98331
98332 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98333
98334         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98335         bug.  Deal with the different error behavior of Irix iconv.
98336
98337 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98338
98339         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98340         IRIX if the installer said otherwise.
98341
98342 2000-04-05  Jim Meyering  <meyering@lucent.com>
98343
98344         Portability tweaks required for ultrix4.3.
98345         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98346         (jm_CHECK_DECLS): Add getutent to the list of functions.
98347         (_jm_DECL_HEADERS): Add utmpx.h.
98348         From John David Anglin.
98349
98350         * m4/strftime.m4: Back out the 2000-04-02 change.
98351         Instead of that change, simply undefine putenv in the test program.
98352
98353 2000-04-05  Jim Meyering  <meyering@lucent.com>
98354
98355         Portability tweaks required for ultrix4.3.
98356         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98357         getutent.
98358         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98359         * lib/canon-host.c: Declare strdup.
98360         * lib/path-concat.c: Likewise.
98361         From John David Anglin.
98362
98363 2000-04-04  Jim Meyering  <meyering@lucent.com>
98364
98365         Be more DOS 8.3-friendly.
98366         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98367         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98368         * lib/Makefile.am: Reflect renaming.
98369         Reported by Eli Zaretskii.
98370
98371         Use a temporary file name that won't clash with `charset.alias'
98372         in the DOS 8.3 name space.
98373         * lib/Makefile.am (charset_tmp): Define.
98374         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98375         (uninstall-local): Likewise.
98376         Reported by Eli Zaretskii.
98377
98378 2000-04-03  Jim Meyering  <meyering@lucent.com>
98379
98380         * m4/gettext.m4: Fix typo in comment.
98381
98382         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98383         textutils/configure.in).  Suggestion from Paul Eggert.
98384         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98385
98386 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98387
98388         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98389         variable in the shell rather than using putenv, which isn't
98390         portable.  This avoids the configure-time inter-test dependency
98391         on the potentially-renamed putenv function.
98392
98393 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98394
98395         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98396         before checking struct stat.st_blksize, so that
98397         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98398
98399 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98400
98401         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98402         since strftime.c uses HAVE_STRFTIME to decide whether to use
98403         the underlying strftime.
98404
98405 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98406
98407         * lib/time/strftime.c (my_strftime): Make sure we call the system
98408         strftime, not ourselves, when invoking the underlying strftime.
98409
98410 2000-03-24  Jim Meyering  <meyering@lucent.com>
98411
98412         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98413         (charset_alias): Define.
98414         (install-exec-local): Factor out common code.
98415         (uninstall-local): Split lines longer than 80.
98416         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98417         (SUFFIXES): Define.
98418         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98419         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98420
98421 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98422
98423         * lib/config.charset: Output a line containing "Packages using this
98424         file".
98425         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98426         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98427         ref-del.sed): New rules.
98428
98429 2000-03-17  Jim Meyering  <meyering@lucent.com>
98430
98431         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98432         Otherwise, include <strings.h>
98433
98434 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98435
98436         * lib/unicodeio.c (utf8_wctomb): New function.
98437         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98438         format instead of in UCS-4 with platform dependent endianness.
98439
98440 2000-03-10  Jim Meyering  <meyering@lucent.com>
98441
98442         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98443         From Marco Franzen.
98444
98445 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98446
98447         * lib/savedir.c (savedir): Work even if directory size is
98448         negative; this can happen with some screwy NFS configurations.
98449
98450 2000-03-06  Jim Meyering  <meyering@lucent.com>
98451
98452         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98453         if it's NULL (because we ran out of memory).  From Bruno Haible.
98454
98455 2000-03-05  Jim Meyering  <meyering@lucent.com>
98456
98457         * lib/localcharset.c ("path-concat.h"): Include.
98458         (get_charset_aliases): Use path_concat instead of ANSI string
98459         concatenation.
98460
98461         * lib/unicodeio.h (PARAMS): Define.
98462         Use it to guard prototype.
98463
98464 2000-03-04  Jim Meyering  <meyering@lucent.com>
98465
98466         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98467         for lib/localcharset.c.
98468
98469 2000-03-04  Jim Meyering  <meyering@lucent.com>
98470
98471         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98472         installing into it.
98473         (uninstall-local): Uncomment this rule so `make distcheck' works
98474         once again.
98475
98476         * lib/unicodeio.c (<errno.h>): Include it.
98477         (errno): Declare if not defined.
98478
98479         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98480
98481         * lib/config.charset: New version, incorporating remarks from a linux
98482         i18n mailing list.  From Bruno Haible.
98483
98484 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98485
98486         * m4/codeset.m4: New file.
98487         * m4/iconv.m4: New file.
98488         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98489
98490 2000-03-03  Jim Meyering  <meyering@lucent.com>
98491
98492         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98493
98494 2000-03-02  Jim Meyering  <meyering@lucent.com>
98495
98496         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98497         the messages come out on separate lines.
98498
98499         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98500         rather than jm_CHECK_DECLARATIONS.
98501         * m4/decl.m4: Remove now-unused file.
98502
98503         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98504         geteuid.
98505
98506 2000-03-02  Jim Meyering  <meyering@lucent.com>
98507
98508         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98509
98510 2000-03-01  Jim Meyering  <meyering@lucent.com>
98511
98512         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98513         * lib/unicodeio.c: Likewise.
98514
98515 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98516
98517         * lib/config.charset: New file.
98518         * lib/localcharset.c: New file.
98519         * lib/unicodeio.h, lib/unicodeio.c: New files.
98520         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98521         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98522         (noinst_HEADERS): Add unicodeio.h.
98523         (all-local, install-exec-local, charset.alias): New targets.
98524
98525 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98526
98527         * lib/quotearg.c (ALERT_CHAR): New macro.
98528         (quotearg_buffer_restyled): Use it.
98529
98530 2000-02-27  Jim Meyering  <meyering@lucent.com>
98531
98532         * m4/check-decl.m4: Add getenv to the list.
98533
98534 2000-02-27  Jim Meyering  <meyering@lucent.com>
98535
98536         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98537         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98538
98539         * lib/backupfile.c: Guard inclusion of stdlib.h with
98540         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98541         Declare malloc if needed.
98542
98543         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98544         `#ifndef HAVE_DECL..'
98545         now that autoconf always defines the HAVE_DECL_ symbols.
98546         * lib/human.c: Likewise.
98547         * lib/same.c: Likewise.
98548         * lib/strtoumax.c: Likewise.
98549
98550         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98551         declaration check was not run.
98552         * lib/hash.c: Likewise.
98553         * lib/human.c: Likewise.
98554         * lib/same.c: Likewise.
98555         * lib/strtoumax.c: Likewise.
98556
98557         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98558         `.', then first look up the entire `.'-containing string as a login
98559         name.
98560
98561 2000-02-23  Jim Meyering  <meyering@lucent.com>
98562
98563         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98564         in place of my hack.
98565
98566 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98567
98568         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98569         (textint): New typedef.
98570         (parser_control): Member year changed from int to textint.
98571         All uses changed.
98572         (YYSTYPE): Removed; replaced by %union with int and textint members.
98573         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98574         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98575         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98576         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98577         (date, number, to_year): Use width of number in digits, not its value,
98578         to determine whether it's a 2-digit year, or a 2-digit time.
98579         (yylex): Store number of digits of numeric tokens.
98580         Reported by John Kendall.
98581
98582         (parser_control): Changed from struct parser_control to typedef (for
98583         consistency).  All uses changed.
98584
98585         (tID): Removed; not used.
98586         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98587
98588 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98589
98590         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98591         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98592
98593 2000-02-12  Jim Meyering  <meyering@lucent.com>
98594
98595         * lib/userspec.c (ISDIGIT): Define it.
98596         (isdigit): Remove definition.
98597         (is_number): Use ISDIGIT, not isdigit.
98598         <libintl.h>: Include.
98599         (_ and N_): Define.
98600         (parse_user_spec): Mark translatable strings.
98601
98602 2000-02-10  Jim Meyering  <meyering@lucent.com>
98603
98604         With these changes, nanosleep.[ch] are finally enough like the other
98605         lib/* replacement files to compile on a few more losing systems.
98606
98607         * lib/nanosleep.h: Don't include config.h.
98608         Remove prototype from declaration of nanosleep.
98609         (PARAMS): Remove now-unneeded definition.
98610         * lib/nanosleep.c: #undef nanosleep.
98611         (rpl_nanosleep): Rename from nanosleep.
98612
98613 2000-02-10  Jim Meyering  <meyering@lucent.com>
98614
98615         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98616         gnu_nanosleep to rpl_nanosleep.
98617
98618 2000-02-09  Jim Meyering  <meyering@lucent.com>
98619
98620         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98621         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98622
98623 2000-02-08  Akim Demaille  <akim@epita.fr>
98624
98625         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98626         `[' and `]' and remove uses of `changequote'.
98627         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98628         (AC_SYS_LARGEFILE): Likewise.
98629         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98630         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98631         of changequote.
98632         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98633         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98634         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98635         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98636
98637 2000-02-05  Jim Meyering  <meyering@lucent.com>
98638
98639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98640         Remove explicit use of AC_HEADER_TIME.  It is required by
98641         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98642         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98643         in autoconf whereby the expansion of the latter ended up preceding
98644         the expansion of its prerequisite, AC_HEADER_TIME.
98645         Reported by Volker Borchert.
98646
98647 2000-02-03  Jim Meyering  <meyering@lucent.com>
98648
98649         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98650
98651 2000-02-03  Jim Meyering  <meyering@lucent.com>
98652
98653         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98654         rather than with `#if HAVE_UTMPNAME'.
98655
98656 2000-02-02  Jim Meyering  <meyering@lucent.com>
98657
98658         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98659         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98660         Reported by Eli Zaretskii.
98661
98662 2000-02-01  Jim Meyering  <meyering@lucent.com>
98663
98664         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98665
98666 2000-01-31  Jim Meyering  <meyering@lucent.com>
98667
98668         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98669         functions.  Add the time.h and sys/time.h headers along with the
98670         AC_REQUIRE'ment of AC_HEADER_TIME.
98671
98672 2000-01-31  Jim Meyering  <meyering@lucent.com>
98673
98674         * lib/nanosleep.h (nanosleep): Guard declaration with
98675         `#if ! HAVE_DECL_NANOSLEEP'.
98676         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98677         the declaration in that vendor's sys/timers.h.
98678         Reported by Christian Krackowizer.
98679
98680         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98681         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98682         (ISPRINT): Likewise.
98683         Reported by Tom Tromey.
98684
98685 2000-01-30  Jim Meyering  <meyering@lucent.com>
98686
98687         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98688
98689         * m4/prereq.m4 (utmp_includes): Define.
98690         Check for ut_user and ut_name members in both struct utmpx
98691         and struct utmp.
98692
98693 2000-01-30  Jim Meyering  <meyering@lucent.com>
98694
98695         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98696         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98697         header files where only utmpx.ut_user is declared.
98698
98699         * lib/readutmp.h (UT_USER): Define.
98700
98701 2000-01-29  Jim Meyering  <meyering@lucent.com>
98702
98703         * m4/lib-check.m4: New file containing library-related checks from
98704         fileutils and sh-utils (textutils had none).
98705
98706 2000-01-28  Jim Meyering  <meyering@lucent.com>
98707
98708         * m4/perl.m4: Change format of warning message to look more like that
98709         from the missing script.  Suggestion from François Pinard.
98710
98711 2000-01-25  Jim Meyering  <meyering@lucent.com>
98712
98713         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98714         well as time.h in the compile check.
98715         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98716         Fix typo in cross-compiling case: s/yes/no/.
98717
98718 2000-01-23  Jim Meyering  <meyering@lucent.com>
98719
98720         * m4/jm-macros.m4: Move df-related tests here from
98721         fileutils/configure.in
98722
98723         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98724         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98725
98726         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98727         s/space/ac_fsusage_space/.
98728         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98729
98730         * m4/ftruncate.m4: New file (derived from part of
98731         fileutils/configure.in).
98732         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98733         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98734
98735         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98736         AC_SUBST these here, rather than just in sh-util/configure.in, so
98737         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98738         all the same.
98739         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98740         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98741         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98742         (AC_SUBST(POW_LIBM)): Likewise.
98743         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98744
98745 2000-01-23  Jim Meyering  <meyering@lucent.com>
98746
98747         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98748         obstack.c.
98749
98750 2000-01-22  Jim Meyering  <meyering@lucent.com>
98751
98752         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98753
98754         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98755
98756         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98757         configure.in
98758         (AC_CHECK_HEADERS): Likewise for sh-utils.
98759         (AC_CHECK_HEADERS): Likewise for textutils.
98760         Merge the three lists of headers.
98761
98762         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98763         from fileutils' configure.in.
98764
98765         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98766         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98767         check-decl.m4.
98768
98769         * m4/check-decl.m4: Use #if rather than #ifdef.
98770         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98771         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98772         (_jm_DECL_HEADERS): Define new function.
98773         (jm_CHECK_DECLARATIONS): Require it.
98774
98775 2000-01-22  Jim Meyering  <meyering@lucent.com>
98776
98777         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98778         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98779         Required for some AIX systems.  Reported by Christian Krackowizer.
98780         [TESTING] (main): New function.
98781
98782         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98783         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98784         letters.
98785
98786         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98787         iswprint.
98788
98789         * lib/strverscmp.c (ISDIGIT): Define.
98790         (strverscmp): Use ISDIGIT, not isdigit.
98791
98792 2000-01-19  Jim Meyering  <meyering@lucent.com>
98793
98794         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98795         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98796         defines `struct timespec' in <sys/time.h>
98797
98798         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98799         Thanks to Akim for explaining.
98800
98801 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98802
98803         * lib/nanosleep.c (nanosleep):
98804         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98805         POSIX.1 doesn't require SA_INTERRUPT and some systems
98806         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98807         it's been part of POSIX.1 since day 1 (in 1988).
98808
98809 2000-01-17  Jim Meyering  <meyering@lucent.com>
98810
98811         * lib/interlock: Remove unused file.  Reported by François Pinard.
98812
98813 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98814
98815         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98816         alert, backslash, formfeed, and vertical tab unnecessarily in
98817         shell quoting style.
98818
98819 2000-01-16  Jim Meyering  <meyering@lucent.com>
98820
98821         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98822         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98823         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98824         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98825
98826 2000-01-16  Jim Meyering  <meyering@lucent.com>
98827
98828         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98829         because the latter didn't work.
98830
98831 2000-01-15  Jim Meyering  <meyering@lucent.com>
98832
98833         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98834         (AC_REPLACE_FUNCS): Add memcpy and memset.
98835         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98836         Add strpbrk.
98837         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98838
98839 2000-01-12  Jim Meyering  <meyering@lucent.com>
98840
98841         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98842         (jm_PREREQ): Use it.
98843         (jm_PREREQ_READUTMP): New macro.
98844         (jm_PREREQ): Use it.
98845
98846 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98847
98848         Quote multibyte characters correctly.
98849         * m4/c-bs-a.m4: New file.
98850         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98851         (jm_PREREQ): Use it.
98852
98853 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98854
98855         * m4/uintmax_t.m4: Port to autoconf 2.13.
98856
98857 2000-01-08  Jim Meyering  <meyering@ascend.com>
98858
98859         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98860         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98861
98862 2000-01-04  Jim Meyering  <meyering@ascend.com>
98863
98864         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98865         jm_STRUCT_DIRENT_D_TYPE.
98866         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98867         jm_STRUCT_DIRENT_D_INO.
98868         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98869         jm_STRUCT_UTIMBUF.
98870         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98871         renamings.
98872         * m4/utime.m4: Likewise.
98873
98874         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98875         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98876
98877 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98878
98879         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98880         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98881
98882 2000-01-02  Jim Meyering  <meyering@ascend.com>
98883
98884         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98885         remember if this is necessary.
98886
98887 1999-12-26  Jim Meyering  <meyering@ascend.com>
98888
98889         * m4/jm-macros.m4: Use it here.
98890         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98891
98892 1999-12-23  Jim Meyering  <meyering@ascend.com>
98893
98894         * m4/jm-macros.m4: Check for clock_gettime (moved from
98895         fileutils/configure.in)
98896         Check for gettimeofday.
98897
98898 1999-12-20  Jim Meyering  <meyering@ascend.com>
98899
98900         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98901         autoconf-2.14a-1999-12-20.
98902
98903 1999-12-19  Jim Meyering  <meyering@ascend.com>
98904
98905         * m4/lstat-slash.m4: New file.
98906         * m4/jm-macros.m4: Use the new macro:
98907         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98908
98909 1999-12-07  Jim Meyering  <meyering@ascend.com>
98910
98911         * m4/perl.m4: Require that File::Compare be available, too.
98912         Too many systems seem to lack it.
98913
98914         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98915         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98916
98917 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98918
98919         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98920         problem with the QNX 4.25 shell, which doesn't propagate exit
98921         status of failed commands inside shell assignments.
98922
98923 1999-11-17  Jim Meyering  <meyering@ascend.com>
98924
98925         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98926
98927 1999-11-07  Jim Meyering  <meyering@ascend.com>
98928
98929         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98930
98931 1999-11-06  Jim Meyering  <meyering@ascend.com>
98932
98933         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98934         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98935
98936 1999-11-05  Jim Meyering  <meyering@ascend.com>
98937
98938         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98939         configure.in of textutils, fileutils, and sh-utils into this one
98940         (shared between those packages) file.
98941         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98942         AC_STRUCT_ST_BLKSIZE.
98943
98944 1999-11-03  Jim Meyering  <meyering@ascend.com>
98945
98946         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98947         of AC_CHECK_TYPE checks includes unistd.h.
98948         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98949         Suggestion from Akim Demaille.
98950
98951 1999-10-30  Jim Meyering  <meyering@ascend.com>
98952
98953         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98954         m4-quoted string.
98955         * m4/ls-mntd-fs.m4: Likewise.
98956         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98957         * m4/jm-winsz1.m4: Likewise.
98958
98959         * m4/const.m4: Remove file, since the fix made it into the experimental
98960         version of autoconf.
98961         * m4/mktime.m4: Likewise.
98962
98963         * m4/check-type.m4: Remove file, now that the latest version of
98964         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98965
98966         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98967         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98968         AC_CHECK_TYPE.
98969
98970 1999-10-04  Jim Meyering  <meyering@ascend.com>
98971
98972         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98973
98974 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98975
98976         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98977         2.95.1 bug with HP-UX 10.20.
98978
98979 1999-09-17  Jim Meyering  <meyering@ascend.com>
98980
98981         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98982         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98983         due to missing strdup (against sh-utils-2.0).
98984
98985 1999-08-29  Jim Meyering  <meyering@ascend.com>
98986
98987         * m4/jm-macros.m4: Require jm_BISON.
98988         * m4/bison.m4: New file.
98989
98990 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98991
98992         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98993         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98994
98995 1999-08-05  Jim Meyering  <meyering@ascend.com>
98996
98997         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98998         to avoid conflicts with `conftest' on 8+3 filesystems.
98999         Suggestion from Eli Zaretskii.
99000
99001 1999-08-04  Jim Meyering  <meyering@ascend.com>
99002
99003         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99004         fileutils and sh-utils (textutils's getline test was inadequate).
99005         (AM_FUNC_GETLINE): Run this test.
99006         (AC_CHECK_FUNCS): Check for getdelim.
99007         Reported by Bob Proulx.
99008
99009 1999-08-02  Jim Meyering  <meyering@ascend.com>
99010
99011         * m4/jm-macros.m4: Add a comment.
99012
99013 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99014
99015         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99016         <inttypes.h> defines strtoumax as a macro (and not as a
99017         function).
99018
99019 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99020
99021         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99022         that we can shift, multiply and divide unsigned long long
99023         values; Ultrix cc can't do it.
99024
99025 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99026
99027         * m4/mktime.m4: New file, which is a preview of what should appear
99028         in the next public autoconf release.
99029
99030 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99031
99032         * m4/lfs.m4: Remove this file.
99033         * m4/largefile.m4: New file.  It contains the old contents of
99034         lfs.m4, except that all names with prefix AC_LFS have been
99035         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99036         compatible with future autoconf versions.  Also, some minor m4
99037         quoting problems have been fixed.
99038
99039 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99040
99041         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99042         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99043         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99044         and simplify the shell code.
99045
99046 1999-08-01  Jim Meyering  <meyering@ascend.com>
99047
99048         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99049         m4.
99050
99051 1999-07-20  Jim Meyering  <meyering@ascend.com>
99052
99053         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99054
99055 1999-07-15  Jim Meyering  <meyering@ascend.com>
99056
99057         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99058
99059 1999-05-22  Jim Meyering  <meyering@ascend.com>
99060
99061         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99062
99063 1999-05-20  Jim Meyering  <meyering@ascend.com>
99064
99065         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99066         Add a colon after each `then' in case $4 is empty.
99067
99068 1999-05-16  Jim Meyering  <meyering@ascend.com>
99069
99070         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99071
99072 1999-05-10  Jim Meyering  <meyering@ascend.com>
99073
99074         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99075
99076         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99077         AC_FUNC_MKTIME.
99078
99079 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99080
99081         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99082
99083 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99084
99085         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99086         not CPPFLAGS, so that linking works correctly in IRIX.
99087
99088 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99089
99090         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99091
99092 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99093
99094         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99095         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99096         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99097         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99098         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99099
99100         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99101
99102 1999-04-20  Jim Meyering  <meyering@ascend.com>
99103
99104         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99105         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99106         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99107
99108 1999-04-18  Jim Meyering  <meyering@ascend.com>
99109
99110         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99111         * m4/jm-macros.m4: Use it.
99112
99113 1999-04-06  Jim Meyering  <meyering@ascend.com>
99114
99115         * m4/strftime.m4: Remove test for %f.
99116
99117 1999-03-29  Jim Meyering  <meyering@ascend.com>
99118
99119         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99120         superset of the AC_TYPE_* checks in the textutils, fileutils,
99121         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99122         AC_TYPE_PID_T.
99123
99124 1999-03-28  Jim Meyering  <meyering@ascend.com>
99125
99126         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99127         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99128         replaced e.g., in the *.sh files of the sh-utils.
99129
99130 1999-03-20  Jim Meyering  <meyering@ascend.com>
99131
99132         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99133         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99134         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99135
99136 1999-03-19  Jim Meyering  <meyering@ascend.com>
99137
99138         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99139
99140 1999-03-12  Jim Meyering  <meyering@ascend.com>
99141
99142         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99143
99144 1999-03-07  Jim Meyering  <meyering@ascend.com>
99145
99146         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99147         declared.
99148
99149 1999-02-17  Jim Meyering  <meyering@ascend.com>
99150
99151         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99152         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99153
99154 1999-02-07  Jim Meyering  <meyering@ascend.com>
99155
99156         * m4/group-member.m4: New file -- extracted from sh-utils'
99157         configure.in.
99158
99159         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99160         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99161
99162 1999-02-06  Jim Meyering  <meyering@ascend.com>
99163
99164         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99165         * m4/fnmatch.m4: Likewise.
99166         * m4/getgroups.m4: Likewise.
99167         * m4/lstat.m4: Likewise.
99168         * m4/malloc.m4: Likewise.
99169         * m4/putenv.m4: Likewise.
99170         * m4/realloc.m4: Likewise.
99171         * m4/regex.m4: Likewise.
99172         * m4/stat.m4: Likewise.
99173         * m4/strftime.m4: Likewise.
99174         Suggestion from Alain Magloire.
99175
99176         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99177         * m4/fnmatch.m4: Likewise.
99178         * m4/getgroups.m4: Likewise.
99179         * m4/getline.m4: Likewise.
99180         * m4/lstat.m4: Likewise.
99181         * m4/malloc.m4: Likewise.
99182         * m4/memcmp.m4: Likewise.
99183         * m4/putenv.m4: Likewise.
99184         * m4/realloc.m4: Likewise.
99185         * m4/regex.m4: Likewise.
99186         * m4/stat.m4: Likewise.
99187         * m4/strftime.m4: Likewise.
99188         Suggestion from Alain Magloire.
99189
99190         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99191         an argument.
99192
99193         * m4/regex.m4: Add a run-time Test for proper operation of
99194         re_compile_pattern.
99195
99196 1999-01-31  Jim Meyering  <meyering@ascend.com>
99197
99198         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99199
99200 1999-01-30  Jim Meyering  <meyering@ascend.com>
99201
99202         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99203
99204         * m4/jm-mktime.m4: Make this a wrapper around the official
99205         AM_FUNC_MKTIME rather than my private copy, now that the official one
99206         is up to date.
99207         * m4/mktime.m4: Remove file.
99208
99209         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99210         * m4/uptime.m4: Likewise.
99211         * m4/uintmax_t.m4: Likewise.
99212
99213 1999-01-28  Jim Meyering  <meyering@ascend.com>
99214
99215         * m4/jm-macros.m4: Use jm_AFS.
99216         * m4/afs.m4: New file (from fileutils' configure.in).
99217
99218         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99219         * m4/chown.m4: Likewise.
99220         * m4/d-ino.m4: Likewise.
99221         * m4/d-type.m4: Likewise.
99222         * m4/fnmatch.m4: Likewise.
99223         * m4/getgroups.m4: Likewise.
99224         * m4/gettext.m4: Likewise.
99225         * m4/jm-mktime.m4: Likewise.
99226         * m4/jm-winsz2.m4: Likewise.
99227         * m4/lcmessage.m4: Likewise.
99228         * m4/ls-mntd-fs.m4: Likewise.
99229         * m4/malloc.m4: Likewise.
99230         * m4/memcmp.m4: Likewise.
99231         * m4/putenv.m4: Likewise.
99232         * m4/realloc.m4: Likewise.
99233         * m4/st_mtim.m4: Likewise.
99234         * m4/strftime.m4: Likewise.
99235
99236 1999-01-16  Jim Meyering  <meyering@ascend.com>
99237
99238         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99239         (ARGMATCH_DIE_DECL): Define.
99240
99241 1999-01-12  Jim Meyering  <meyering@ascend.com>
99242
99243         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99244         Reported by Lars Hecking.
99245
99246 1999-01-10  Jim Meyering  <meyering@ascend.com>
99247
99248         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99249         gross kludge.
99250         * m4/inttypes_h.m4: Likewise.
99251         * m4/lstat.m4: Likewise.
99252         * m4/malloc.m4: Likewise.
99253         * m4/readdir.m4: Likewise.
99254         * m4/realloc.m4: Likewise.
99255         * m4/st_dm_mode.m4: Likewise.
99256         * m4/stat.m4: Likewise.
99257         * m4/utimbuf.m4: Likewise.
99258         * m4/utimes.m4: Likewise.
99259
99260         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99261         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99262         comments in config.h.in are meaningful.
99263
99264         * m4/jm-macros.m4: Require autoconf-2.13 here.
99265
99266         * m4/regex.m4: By default, don't use the included regex.c on systems
99267         with glibc 2.  Suggestion from Uli Drepper.
99268
99269 1999-01-02  Jim Meyering  <meyering@ascend.com>
99270
99271         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99272
99273 1998-12-18  Jim Meyering  <meyering@ascend.com>
99274
99275         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99276         Based on a suggestion from Lars Hecking.
99277
99278 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99279
99280         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99281
99282 1998-11-16  Jim Meyering  <meyering@ascend.com>
99283
99284         * m4/lfs.m4: Double-quote the `uname...` expression.
99285
99286 1998-11-14  Jim Meyering  <meyering@ascend.com>
99287
99288         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99289         * m4/stat.m4: Likewise.
99290
99291 1998-11-03  Jim Meyering  <meyering@ascend.com>
99292
99293         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99294         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99295
99296 1998-10-18  Jim Meyering  <meyering@ascend.com>
99297
99298         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99299
99300 1998-10-17  Jim Meyering  <meyering@ascend.com>
99301
99302         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99303         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99304         calls for those previously hard-coded headers.  Instead, take a new
99305         parameter.
99306         (jm_CHECK_DECLARATIONS): Reflect interface change.
99307         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99308         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99309
99310         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99311
99312 1998-10-14  Jim Meyering  <meyering@ascend.com>
99313
99314         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99315         instead of "TZ=America/Vancouver".  From Paul Eggert.
99316
99317 1998-10-11  Jim Meyering  <meyering@ascend.com>
99318
99319         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99320         This adds a test for a recently added compatibility fix for mktime.c.
99321         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99322
99323 1998-09-27  Jim Meyering  <meyering@ascend.com>
99324
99325         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99326
99327         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99328         ../configure.in, including a change from Gordon Matzigkeit to allow
99329         cross-compiling for the Hurd.
99330
99331         * m4/glibc.m4: New file/macro to test for the GNU C Library
99332         versions 1 and 2.  From Gordon Matzigkeit.
99333         Indent.
99334
99335 1998-09-21  Jim Meyering  <meyering@ascend.com>
99336
99337         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99338
99339 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99340
99341         Port nanosecond-resolution times to UnixWare 2.1.2 and
99342         pedantic Solaris 2.6.
99343
99344         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99345         AC_STRUCT_ST_MTIM.
99346         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99347         Generate name of ns member, instead of just 1 or undef.
99348         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99349
99350 1998-08-15  Jim Meyering  <meyering@ascend.com>
99351
99352         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99353         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99354         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99355         instead of jm_TYPE_SSIZE_T.
99356
99357 1998-08-12  Jim Meyering  <meyering@ascend.com>
99358
99359         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99360
99361 1998-08-02  Jim Meyering  <meyering@ascend.com>
99362
99363         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99364         in acconfig.h manually.
99365
99366 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99367
99368         * m4/st_mtim.m4: New file.
99369
99370 1998-07-28  Jim Meyering  <meyering@ascend.com>
99371
99372         * m4/utimes.m4: Undef stat.
99373
99374 1998-07-25  Jim Meyering  <meyering@ascend.com>
99375
99376         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99377         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99378
99379 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99380
99381         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99382         uid and gid actually remain unchanged.
99383
99384 1998-07-07  Jim Meyering  <meyering@ascend.com>
99385
99386         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99387
99388 1998-07-04  Jim Meyering  <meyering@ascend.com>
99389
99390         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99391         to prove that this macro can be used in packages without regex.c.
99392
99393 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99394
99395         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99396         is to be used.
99397
99398 1998-07-03  Jim Meyering  <meyering@ascend.com>
99399
99400         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99401
99402         * m4/gettext.m4: New file -- from gettext-0.10.35.
99403         * m4/lcmessage.m4: Likewise.
99404         * m4/progtest.m4: Likewise.
99405
99406         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99407         * m4/jm-macros.m4: Require the new macro.
99408
99409 1998-06-29  Jim Meyering  <meyering@ascend.com>
99410
99411         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99412         for the definition of NGROUPS (used in a system header included
99413         by sys/mount.h).
99414
99415 1998-06-28  Jim Meyering  <meyering@ascend.com>
99416
99417         * m4/ls-mntd-fs.m4: New file.
99418         * m4/fstypename.m4: New file.
99419
99420         * m4/jm-macros.m4: Require the new macro.
99421         * m4/jm-glibc-io.m4: New file.
99422
99423 1998-05-19  Jim Meyering  <meyering@ascend.com>
99424
99425         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99426         * m4/lchown.m4: New file.
99427
99428         * m4/Makefile.am.in: New file.
99429         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99430
99431 1998-05-14  Jim Meyering  <meyering@ascend.com>
99432
99433         * m4/Makefile.am (EXTRA_DIST): Add them.
99434         * m4/jm-macros.m4: New file.
99435         * m4/utimbuf.m4: New file.
99436
99437 1998-05-12  Jim Meyering  <meyering@ascend.com>
99438
99439         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99440
99441 1998-05-11  Jim Meyering  <meyering@ascend.com>
99442
99443         * m4/isc-posix.m4: New file.
99444
99445 1998-05-10  Jim Meyering  <meyering@ascend.com>
99446
99447         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99448
99449 1998-05-09  Jim Meyering  <meyering@ascend.com>
99450
99451         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99452         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99453         with automake.
99454
99455         * m4/ssize_t.m4: New file.
99456         * m4/mktime.m4: Remove file -- the new automake has this now.
99457
99458 1998-04-26  Jim Meyering  <meyering@ascend.com>
99459
99460         * m4/assert.m4: New file.
99461         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99462
99463 1998-04-05  Jim Meyering  <meyering@ascend.com>
99464
99465         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99466         (jm_PREREQ): Use it here.
99467
99468 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99469
99470         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99471         in acconfig.h.
99472
99473 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99474
99475         * m4/prereq.m4: New file.
99476         * m4/error.m4: New file.
99477         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99478
99479 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99480
99481         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99482         cache-check for the same variable -- that defeated the purpose of
99483         the test; the test program was never run.  This was a problem only
99484         on systems with losing getline functions -- HP-UX 10.20 is one.
99485         Reported by Bjorn Helgaas.
99486
99487 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99488
99489         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99490
99491 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99492
99493         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99494
99495         * m4/const.m4: New file.  Use an initializer in this declaration
99496         typedef int charset[2]; const charset x;
99497         Reported by Bob Glickstein.
99498
99499 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99500
99501         * m4/chown.m4: Fix reversed types on -1 args to chown.
99502         From Kaveh Ghazi.
99503
99504 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99505
99506         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99507         Add lseek and memchr.
99508
99509         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99510         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99511         have a 20-character limit on names.
99512
99513 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99514
99515         * m4/inttypes_h.m4: New file.
99516         * m4/uintmax_t.m4: New file.
99517         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99518
99519
99520         -----
99521
99522         Local Variables:
99523         coding: utf-8
99524         End:
99525
99526         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99527
99528         Copying and distribution of this file, with or without
99529         modification, are permitted provided the copyright notice
99530         and this notice are preserved.